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,q=A.push,L=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{L.apply(A=P.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.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 L.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.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 L.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):L.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)}L.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 L.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))/,q={children:!0,contents:!0,next:!0,prev:!0};function L(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 L(e,"nextSibling")},prev:function(e){return L(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&&(q[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 qe(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 Le(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=qe(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=qe(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=qe(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=Le(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=Le(v.reliableMarginRight,function(e,t){if(t)return Ae(e,{display:"inline-block"},qe,[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=[],qt=/(=)\?(?=&|$)|\?\?/;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&&(qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.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(qt,"$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 Lt=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&&Lt)return Lt.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]=Le(v.pixelPosition,function(e,n){if(n)return n=qe(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");var e=(0,r.default)(".js-current-step").prevAll();(e=(0,r.default)(".js-current-step").add(e)).addClass("-clickable"),e.on("click",function(e){var t=(0,r.default)(e.target).closest(".checkout-step");if(!t.hasClass("-unreachable"))if((0,r.default)(".js-current-step, .-current").removeClass("js-current-step -current"),t.toggleClass("-current"),t.toggleClass("js-current-step"),0==(0,r.default)("button.continue",t).length){var n=t.nextAll(".checkout-step.-clickable");n.removeClass("-unreachable").addClass("-complete"),(0,r.default)(".step-title",n).removeClass("not-allowed")}else{var o=t.nextAll();o.addClass("-unreachable").removeClass("-complete"),(0,r.default)(".step-title",o).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-2020 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-2020 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)(".quickview #product-availability, .page-product:not(.modal-open) .row #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)(".quickview .product-prices, .page-product:not(.modal-open) .row .product-prices, .page-product:not(.modal-open) .product-container .product-prices").first().replaceWith(e.product_prices),(0,r.default)(".quickview .product-customization, .page-product:not(.modal-open) .row .product-customization, .page-product:not(.modal-open) .product-container .product-customization").first().replaceWith(e.product_customization),(0,r.default)(".quickview .product-variants, .page-product:not(.modal-open) .row .product-variants, .page-product:not(.modal-open) .product-container .product-variants").first().replaceWith(e.product_variants),(0,r.default)(".quickview .product-discounts, .page-product:not(.modal-open) .row .product-discounts, .page-product:not(.modal-open) .product-container .product-discounts").first().replaceWith(e.product_discounts),(0,r.default)(".quickview .product-additional-info, .page-product:not(.modal-open) .row .product-additional-info, .page-product:not(.modal-open) .product-container .product-additional-info").first().replaceWith(e.product_additional_info),(0,r.default)(".quickview #product-details, #product-details").replaceWith(e.product_details),(0,r.default)(".quickview .product-flags, .page-product:not(.modal-open) .row .product-flags, .page-product:not(.modal-open) .product-container .product-flags").first().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)(".quickview #product-availability, .page-product:not(.modal-open) .row #product-availability, .page-product:not(.modal-open) .product-container #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(i){var o={};function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return 0==$("body#identity").length&&0==$("body#authentication").length?(i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports):void 0}
233n.m=i,n.c=o,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t){t.exports=jQuery},function(t){t.exports=prestashop},function(t){function o(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(t){return"function"==typeof t}function c(t){return"object"==typeof t&&null!==t}function d(t){return void 0===t}((t.exports=o).EventEmitter=o).prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},o.prototype.emit=function(t){var e,i,o,n,s,r;if(this._events||(this._events={}),"error"===t&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var a=new Error('Uncaught, unspecified "error" event. ('+e+")");throw a.context=e,a}if(d(i=this._events[t]))return!1;if(l(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),i.apply(this,n)}else if(c(i))for(n=Array.prototype.slice.call(arguments,1),o=(r=i.slice()).length,s=0;s<o;s++)r[s].apply(this,n);return!0},o.prototype.on=o.prototype.addListener=function(t,e){var i;if(!l(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,l(e.listener)?e.listener:e),this._events[t]?c(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,c(this._events[t])&&!this._events[t].warned&&(i=d(this._maxListeners)?o.defaultMaxListeners:this._maxListeners)&&0<i&&this._events[t].length>i&&(this._events[t].warned=!0,console.trace),this},o.prototype.once=function(t,e){if(!l(e))throw TypeError("listener must be a function");var i=!1;function o(){this.removeListener(t,o),i||(i=!0,e.apply(this,arguments))}return o.listener=e,this.on(t,o),this},o.prototype.removeListener=function(t,e){var i,o,n,s;if(!l(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=(i=this._events[t]).length,o=-1,i===e||l(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(c(i)){for(s=n;0<s--;)if(i[s]===e||i[s].listener&&i[s].listener===e){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},o.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(l(i=this._events[t]))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},o.prototype.listeners=function(t){return this._events&&this._events[t]?l(this._events[t])?[this._events[t]]:this._events[t].slice():[]},o.prototype.listenerCount=function(t){if(this._events){t=this._events[t];if(l(t))return 1;if(t)return t.length}return 0},o.listenerCount=function(t,e){return t.listenerCount(e)}},function(t){var e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,i){"use strict";i.r(e),i(40),i(38),i(36),i(35),i(34),i(33);var o,e=i(0),c=i.n(e),e=i(1),d=i.n(e);function n(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function s(t){t?c()("*[id^='_desktop_']").each(function(t,e){var i=c()("#"+e.id.replace("_desktop_","_mobile_"));i.length&&n(c()(e),i)}):c()("*[id^='_mobile_']").each(function(t,e){var i=c()("#"+e.id.replace("_mobile_","_desktop_"));i.length&&n(c()(e),i)}),d.a.emit("responsive update",{mobile:t})}function r(t){t?c()("*[id^='_desktop_']").each(function(t,e){var i=c()("#"+e.id.replace("_desktop_","_tablet_"));i.length&&n(c()(e),i)}):c()("*[id^='_tablet_']").each(function(t,e){var i=c()("#"+e.id.replace("_tablet_","_desktop_"));i.length&&n(c()(e),i)})}function a(t){var e=c()(".js-toggle-linklist-mobile").find("h3, h4");t?e.each(function(t,e){var i=c()(e).next();i.length&&(c()(e).addClass("toggle-linklist-title"),i.hide(),c()(e).click(function(){i.stop().slideToggle()}))}):e.each(function(t,e){var i=c()(e).next();i.length&&(c()(e).unbind("click"),c()(e).removeClass("toggle-linklist-title"),i.show())})}function l(t){var e=c()(".js-toggle-block-mobile");t?e.each(function(t,e){var i=c()(e).next();i.length&&(c()(e).addClass("toggle-block-title is-hide"),i.hide(),c()(e).click(function(){i.stop().slideToggle(),c()(e).toggleClass("is-hide")}))}):e.each(function(t,e){var i=c()(e).next();i.length&&(c()(e).unbind("click"),c()(e).removeClass("toggle-block-title is-hide"),i.show())})}function u(){c.a.each(c()("input.js-add-to-cart-quantity"),function(t,e){c()(e).makeTouchSpin()})}function p(){var t;"undefined"!=typeof varGetFinalDateMiniatureController&&(t={},c()(".js-product-countdown-miniature").each(function(){t[c()(this).data("id-product")]=c()(this).data("specific-prices-to")}
233),c.a.isEmptyObject(t)||c.a.ajax({type:"POST",url:varGetFinalDateMiniatureController,data:{ajax:!0,"specific-prices-to":JSON.stringify(t)},dataType:"json",success:function(o){c()(".js-product-countdown-miniature").each(function(){let t=c()(this);t.html(o[t.data("id-product")]);let e=t.find("[data-final-date]"),i=e.html();e.length&&(e.countdown(e.data("final-date")).on("update.countdown",function(t){t.offset.totalDays<=0&&(i="<time>%H:%M:%S</time>"),e.html(t.strftime(i))}).on("finish.countdown",function(){e.parent().addClass("expired")}),setTimeout(function(){t.slideDown()},500))})},error:function(){}}))}function h(){function e(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===c()(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return c()(t.target).parent()[0].dataset.searchUrl}var i=c()("#js-product-list").data("grid-columns"),o=window.localStorage||window.sessionStorage;c()("body").on("change","#search_filters input[data-search-url]",function(t){d.a.emit("updateFacets",e(t))}),c()("body").on("click",".js-search-filters-clear-all",function(t){d.a.emit("updateFacets",e(t))}),c()("body").on("click",".js-search-link",function(t){t.preventDefault(),d.a.emit("updateFacets",c()(t.target).closest("a").get(0).href)}),c()("body").on("change","#search_filters select",function(t){const e=c()(t.target).closest("form");d.a.emit("updateFacets","?"+e.serialize())}),d.a.on("updateFacets",function(){f("in")}),d.a.on("updateProductList",function(t){t=t,c()("#search_filters").replaceWith(t.rendered_facets),c()("#js-active-search-filters").replaceWith(t.rendered_active_filters),c()("#js-product-list-top").replaceWith(t.rendered_products_top),c()("#js-product-list").replaceWith(t.rendered_products),c()("#js-product-list-bottom").replaceWith(t.rendered_products_bottom),c()("#js-product-list").find(".js-product-list-view").removeClass("columns-2 columns-3 columns-4 columns-5").addClass(i),o&&o.productListView&&c()('#product_display_control a[data-view="'+o.productListView+'"]').trigger("click"),u(),setTimeout(function(){f("out"),p()},200),c()("#js-filter-scroll-here").length&&c.a.smoothScroll({scrollTarget:"#js-filter-scroll-here",offset:-145})})}function f(t){"in"==t?c()(".js-pending-query").fadeIn():c()(".js-pending-query").fadeOut()}function m(t){"undefined"!=typeof varProductPendingRefreshIcon&&varProductPendingRefreshIcon&&("in"==t?c()(".js-product-refresh-pending-query").fadeIn():c()(".js-product-refresh-pending-query").fadeOut())}function g(){c()(".zoomWrapper .js-main-zoom").css("position","static").unwrap(),c()(".zoomContainer").remove(),c()(".js-enable-zoom-image .js-main-zoom").elevateZoom({zoomType:"inner",gallery:"js-zoom-gallery",galleryActiveClass:"selected",imageCrossfade:!0,cursor:"crosshair",easing:!0,easingDuration:500,zoomWindowFadeIn:500,zoomWindowFadeOut:300})}function v(){var t,e,i=c()("#js_mfp_gallery");i.length&&(t=i.data("text-close"),e=i.data("text-prev"),i=i.data("text-next"),c()(".js_mfp_gallery_item").magnificPopup({type:"image",tClose:t,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>',removalDelay:500,mainClass:"mfp-fade",closeOnBgClick:!0,gallery:{enabled:!0,tPrev:e,tNext:i,tCounter:"%curr% / %total%"},image:{verticalFit:!1}}),c()(".js-mfp-button").bind("click",function(){var t=c()("#js-zoom-gallery .js-thumb.selected").data("id-image");c()(".js_mfp_gallery_item").filter('[data-id-image="'+t+'"]').trigger("click")}))}function y(){c()(".js-cover-image .js-thumb").on("click",function(t){c()(".js-thumb.selected").removeClass("selected"),c()(t.currentTarget).addClass("selected"),c()(".js-qv-product-cover").prop("src",c()(t.currentTarget).data("image"))})}function w(){c()(".js-product-thumbs-scrollbox").makeFlexScrollBox()}function b(){c()(".js-mobile-images-scrollbox").makeFlexScrollBox()}function x(){c()(".js-file-input").on("change",function(t){let e,i;(e=c()(t.currentTarget)[0])&&(i=e.files[0])&&c()(e).prev().text(i.name)})}function S(){let t=c()(".js-product-attributes-source"),e=c()(".js-product-attributes-destination"),i=c()(".js-product-availability-source"),o=c()(".js-product-availability-destination");e.empty(),t.length&&e.html(t.html()),o.empty(),i.length&&o.html(i.html())}d.a.responsive=d.a.responsive||{},d.a.responsive.min_width=768,d.a.responsive.tablet_min_width=992,d.a.responsive.scrollbar_width=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";t=t.offsetWidth;return i==t&&(t=e.clientWidth),document.body.removeChild(e),i-t}(),d.a.responsive.current_width=window.innerWidth,c()(document).ready(function(){d.a.responsive.mobile=d.a.responsive.current_width<d.a.responsive.min_width,d.a.responsive.tablet=d.a.responsive.current_width<d.a.responsive.tablet_min_width,d.a.responsive.mobile&&(s(d.a.responsive.mobile),l(d.a.responsive.mobile)),d.a.responsive.tablet&&(r(d.a.responsive.tablet),a(d.a.responsive.tablet))}),c()(window).on("resize",function(){var t=d.a.responsive.current_width,e=d.a.responsive.min_width,i=d.a.responsive.tablet_min_width,o=window.innerWidth,e=e<=t&&o<e||t<e&&e<=o,i=i<=t&&o<i||t<i&&i<=o;d.a.responsive.current_width=o,d.a.responsive.mobile=d.a.responsive.current_width<d.a.responsive.min_width,d.a.responsive.tablet=d.a.responsive.current_width<d.a.responsive.tablet_min_width,e&&(s(d.a.responsive.mobile),l(d.a.responsive.mobile)),i&&(r(d.a.responsive.tablet),a(d.a.responsive.tablet))}),c()(document).ready(function(){1===c()("body#checkout").length&&(0!==c()(".js-cancel-address").length&&c()(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed"),c()(".js-terms a").on("click",function(t){t.preventDefault();t=c()(t.target).attr("href");t&&(t+="?content_only=1",c.a.get(t,function(t){c()(".js-modal-content").html(c()(t).find(".page-cms").contents()),c()("#modal").modal("show")}).fail(function(t){d.a.emit("handleError",{eventType:"clickTerms",resp:t})}))}),c()(".js-gift-checkbox").on("click",function(){c()("#gift").collapse("toggle")}),function(){let t=c()("#checkout-guest-form"),e=c()("#checkout-login-form");t.length&&(""!=t.find('input[name="email"]').val()||t.has(".help-block").length)&&(e.hide(),t.show()),c()("body").on("click",".js-switch-personal-form",function(){let t=c()(c()(this).attr("href"));return c()(this).closest(".personal-form").fadeOut(400,function(){t.fadeIn()}),!1})}()),d.a.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&(c()(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown())})}),c()(document).ready(function(){c()("body#order-detail")&&c()("#order-return-form table thead input[type=checkbox]").on("click",function(){var i=c()(this).prop("checked");c()("#order-return-form table tbody input[type=checkbox]").each(function(t,e){c()(e).prop("checked",i)})})}),i(32),c()(document).ready(function(){var i="#product_display_control a",o=window.localStorage||window.sessionStorage;c()("body").on("click",i,function(t){t.preventDefault();var e=c()(this).data("view");c()(i).removeClass("selected"),c()(this).addClass("selected"),c()(".js-product-list-view").removeClass("grid list table-view").addClass(e);try{o.setItem("productListView",e)}catch(t){}}),(o.productListView?c()(i+'[data-view="'+o.productListView+'"]'):c()(i+".selected")).trigger("click")}),c()(window).load(function(){var r;!function(){c()("body").on("click",'[data-link-action="quickview"]',function(){c()(this).find(".js-waitting-quickview").length||c()(this).append('<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>'),c()(this).addClass("disabled")}),d.a.on("clickQuickView",function(t){t={action:"quickview",id_product:t.dataset.idProduct,id_product_attribute:t.dataset.idProductAttribute};c.a.post(d.a.urls.pages.product,t,null,"json").then(function(t){c()("body").append(t.quickview_html);let e=c()("#quickview-modal-"+t.product.id+"-"+t.product.id_product_attribute);e.modal("show"),i(e),e.on("hidden.bs.modal",function(){e.remove()}),c()('[data-link-action="quickview"]').removeClass("disabled")}).fail(function(t){d.a.emit("handleError",{eventType:"clickQuickView",resp:t})})});var i=function(t){let e=t.find(".js-product-thumbs-scrollbox"),i=t.find(".js-thumb"),o=t.find(".js-qv-product-cover"),n=t.find("#quantity_wanted"),s=t.find(".js-product-attributes-source"),r=t.find(".js-product-attributes-destination"),a=t.find(".js-product-availability-source"),l=t.find(".js-product-availability-destination");"undefined"!=typeof varGetFinalDateController&&setTimeout(function(){t.find(".js-product-countdown").runCountdown({specificPricesTo:t.find(".js-product-countdown").attr("data-specific-prices-to"),getFinalDateController:varGetFinalDateController})},300),r.empty(),s.length&&r.html(s.html()),l.empty(),a.length&&l.html(a.html()),i.on("click",function(t){i.removeClass("selected"),c()(t.currentTarget).addClass("selected"),o.attr("src",c()(t.currentTarget).data("image"))}),setTimeout(function(){e.makeFlexScrollBox()},500),n.makeTouchSpin()}}(),!1===d.a.configuration.is_catalog&&(r=!1,"undefined"!=typeof varPSAjaxCart&&varPSAjaxCart&&(r=varPSAjaxCart),c()("body").on("click",".js-ajax-add-to-cart",function(t){t.preventDefault();var e=c()(this);e.find(".js-waitting-addtocart").length||c()(this).append('<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>'),e.removeClass("added").addClass("disabled");let i=d.a.urls.pages.cart,o="id_product="+e.data("id-product")+"&add=1&action=update&token="+
233d.a.static_token,n=1,s=e.closest(".js-product-miniature").find(".js-add-to-cart-quantity");return s.length&&1<parseInt(s.val())&&(n=parseInt(s.val())),o=o+"&qty="+n,c.a.post(i,o,null,"json").then(function(t){d.a.emit("updateCart",{reason:{idProduct:t.id_product,idProductAttribute:t.id_product_attribute,linkAction:"add-to-cart"}}),t.success&&(e.addClass("added"),r||(window.location.href=d.a.urls.pages.cart+"?action=show")),t.hasError&&(c()(".js-modal-message-text").text(t.errors[0]),c()(".js-modal-message").modal("show"))}).fail(function(t){d.a.emit("handleError",{eventType:"addProductToCart",resp:t})}),!1})),p(),c()("body").on("click","#search_filter_toggler",function(){c()("#_mobile_search_filters").stop().slideToggle()}),c()("#search_filter_controls .ok").on("click",function(){c()("#_mobile_search_filters").stop().slideUp()}),u(),h()}),c()(document).ready(function(){c()("#quantity_wanted").makeTouchSpin(),c()("body").on("change keyup","#quantity_wanted",function(t){c()(t.currentTarget).trigger("touchspin.stopspin"),d.a.emit("updateProduct",{eventType:"updatedProductQuantity",event:t})}),x(),g(),v(),y(),w(),b(),S(),c()('.js-product-accordions [data-toggle="collapse"]').click(function(){c()(this).closest(".panel").toggleClass("active")}),c()("body").on("change",".product-variants *[name]",function(){m("in")}),d.a.on("updatedProduct",function(t){var e;x(),g(),y(),w(),b(),S(),t&&t.product_minimal_quantity&&(e=parseInt(t.product_minimal_quantity,10),c()("#quantity_wanted").trigger("touchspin.updatesettings",{min:e})),c()("#js_mfp_gallery").replaceWith(t.product_images_modal),v(),m("out"),c()('[data-button-action="add-to-cart"]').is(":disabled")?c()(".product-add-to-cart").addClass("add-to-cart-disabled"):c()(".product-add-to-cart").removeClass("add-to-cart-disabled")}),"undefined"!=typeof varCustomActionAddToCart&&varCustomActionAddToCart&&(c()("body").off("click",'[data-button-action="add-to-cart"]'),c()("body").on("click",'[data-button-action="add-to-cart"]',function(r){r.preventDefault();var a=c()(this),l=!1;if("undefined"!=typeof varPSAjaxCart&&varPSAjaxCart&&(l=varPSAjaxCart),c()("#quantity_wanted").val()>c()("[data-stock]").data("stock")&&0===c()("[data-allow-oosp]").data("allow-oosp").length)a.attr("disabled","disabled");else{var t=function(){let t=c()(r.target).closest("form"),e=t.serialize()+"&add=1&action=update",i=t.attr("action"),n=function(t){t.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),t.parent().find("label").addClass("error")},o=t.find("input[min]");if(s=!0,o.each(function(t,e){let i=c()(e),o=parseInt(i.attr("min"),10);o&&i.val()<o&&(n(i),s=!1)}),!s)return n(o),{v:void 0};var s;a.removeClass("added").addClass("disabled"),c.a.post(i,e,null,"json").then(function(t){d.a.emit("updateCart",{reason:{idProduct:t.id_product,idProductAttribute:t.id_product_attribute,idCustomization:t.id_customization,linkAction:"add-to-cart",cart:t.cart},resp:t}),t.success&&(a.addClass("added"),l||(window.location.href=d.a.urls.pages.cart+"?action=show")),t.hasError&&(c()(".js-modal-message-text").text(t.errors[0]),c()(".js-modal-message").modal("show"))}).fail(function(t){d.a.emit("handleError",{eventType:"addProductToCart",resp:t})})}();if("object"==typeof t)return t.v}}))}),c()(window).resize(function(){clearTimeout(o),o=setTimeout(function(){g()},250)}),d.a.cart=d.a.cart||{},d.a.cart.active_inputs=null;let T='input[name="product-quantity-spin"]',k=!1,_=!1,C="";function E(){c.a.each(c()(T),function(t,e){c()(e).makeTouchSpin()}),z.switchErrorStat()}c()(document).ready(function(){const s=".js-cart-line-product-quantity",a=[];let e=!1;d.a.on("updateCart",function(){c()(".quickview").modal("hide")}),d.a.on("updatedCart",function(){E()}),E();const t=c()("body");function l(){for(;0<a.length;)a.pop().abort()}function i(t){t.preventDefault();var i=c()(t.currentTarget),o=t.currentTarget.dataset,e=function(n,t){if("on.startupspin"!==t&&"on.startdownspin"!==t)return{url:n.attr("href"),type:function(){let t,e,i=n.data("link-action").split("-"),o="";for(t=0;t<i.length;t++)e=i[t],0!==t&&(e=e.substring(0,1).toUpperCase()+e.substring(1)),o+=e;return o}()};let e=(i=n.parents(".bootstrap-touchspin").find(s)).is(":focus")?null:i;var i;if(e)return"on.startupspin"===t?{url:e.data("up-url"),type:"increaseProductQuantity"}:{url:e.data("down-url"),type:"decreaseProductQuantity"}}
233(i,t.namespace);void 0!==e&&(l(),("removeVoucher"==e.type?c()(".js-cart-update-voucher"):c()(".js-cart-update-quantity")).fadeIn(),c.a.ajax({url:e.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend:function(t){a.push(t)}}).then(function(t){var e;z.checkUpdateOpertation(t),e=i,c()(e.parents(".bootstrap-touchspin").find("input")).val(t.quantity),t.hasError?(c()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),c()(".js-modal-message-text").text(t.errors[0]),c()(".js-modal-message").modal("show")):d.a.emit("updateCart",{reason:o})}).fail(function(t){d.a.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:e.type})}))}function o(t){const e=c()(t.currentTarget),i=e.data("update-url"),o=e.attr("value"),n=e.val();if(n!=parseInt(n)||n<0||isNaN(n))return e.val(o),0;var s,r=n-o;0!=r&&(e.attr("value",n),t=i,r=r,r={ajax:"1",qty:Math.abs(r),action:"update",op:0<r?"up":"down"},s=e,l(),c()(".js-cart-update-quantity").fadeIn(),c.a.ajax({url:t,method:"POST",data:r,dataType:"json",beforeSend:function(t){a.push(t)}}).then(function(t){z.checkUpdateOpertation(t),s.val(t.quantity),t.hasError?(c()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),c()(".js-modal-message-text").text(t.errors[0]),c()(".js-modal-message").modal("show")):(t=s&&s.dataset?s.dataset:t,d.a.emit("updateCart",{reason:t}))}).fail(function(t){d.a.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})}))}t.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',i),t.on("touchspin.on.startdownspin",T,i),t.on("touchspin.on.startupspin",T,i),t.on("focusout",s,function(t){e?e=!1:o(t)}),t.on("keyup",s,function(t){13==t.keyCode&&(e=!0,o(t))}),t.on("click",".js-discount .code",function(t){t.stopPropagation();const e=c()(t.currentTarget);return c()("[name=discount_name]").val(e.text()),!1}),"undefined"!=typeof varCustomActionAddVoucher&&varCustomActionAddVoucher&&(c()("body").off("submit",'[data-link-action="add-voucher"]'),c()("body").on("submit",'[data-link-action="add-voucher"]',function(e){e.preventDefault();var t=c()(e.currentTarget),i=t.attr("action");0===t.find("[name=action]").length&&t.append(c()("<input>",{type:"hidden",name:"ajax",value:1})),0===t.find("[name=action]").length&&t.append(c()("<input>",{type:"hidden",name:"action",value:"update"})),c()(".js-cart-update-voucher").fadeIn(),c.a.ajax({url:i,method:"POST",data:t.serialize(),dataType:"json"}).then(function(t){t.hasError?(c()(".js-cart-update-voucher, .js-cart-update-quantity").fadeOut(),c()(".js-error").show().find(".js-error-text").text(t.errors[0])):d.a.emit("updateCart",{reason:e.target.dataset,resp:t})}).fail(function(t){d.a.emit("handleError",{eventType:"updateCart",resp:t})})}))});const z={switchErrorStat:function(){const t=c()(".checkout a");var e;(c()("#notifications article.alert-danger").length||""!==C&&!k)&&t.addClass("disabled"),""!==C?(e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+C+"</li></ul></article>",c()("#notifications .container").html(e),C="",_=!1,k&&t.removeClass("disabled")):!k&&_&&(k=!1,_=!1,c()("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){k=t.hasOwnProperty("hasError");let e=t.errors||"";C=e instanceof Array?e.join(" "):e,_=!0}};var A,e=i(2),O=i.n(e);for(A in i(31),i(30),i(29),i(28),i(27),i(26),i(25),i(24),i(23),i(22),i(21),i(20),i(19),i(18),d.a.blockcart=d.a.blockcart||{},d.a.blockcart.showModal=function(t){function e(){return c()("#blockcart-modal")}let i=e();i.length&&i.remove(),c()("body").append(t),(i=e()).modal("show"),i.on("hidden.bs.modal",function(){"product"==d.a.page.page_name&&d.a.emit("updateProduct",{})})},c()(document).ready(function(){var t,e=!1;"1"==prestashop.language.is_rtl&&(e=!0),e=e,t=".js-crossselling-slider, .js-viewedproduct-slider, .js-accessories-slider, .js-category-products-slider, .js-featuredproducts-slider",c()(t).slick({slidesToShow:5,slidesToScroll:5,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:!1,dots:!1,arrows:!0,rtl:e,responsive:[{breakpoint:1220,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}}]}),c()(t).on("beforeChange",function(){c()(t).find(".slick-active img.js-lazy").trigger("appear")}),c()(".js-product-page-mobile-slider").each(function(){c()(this).on("scroll",function(){c()(this).scrollLeft()&&c()("img.js-lazy",c()(this)).trigger("appear")})})}),i(17),i(16),i(15),i(14),i(13),i(12),i(11),i(10),i(9),i(8),i(7),i(6),i(5),O.a.prototype)d.a[A]=O.a.prototype[A]},function(){$(document).ready(function(){"ontouchstart"in document.documentElement&&$("body").addClass("touch-screen")}
233),$(window).load(function(){var i,t;$('body:not(.touch-screen) [data-toggle="tooltip"]').tooltip({position:{my:"center bottom-8",at:"center top"},hide:!1,show:!1}),(i=$(".js-otherCustomerDropdownLinks")).length&&$(".js-displayCustomerAccount a").each(function(){$(this).removeAttr("id").removeAttr("class").addClass("dropdown-item");var t=$(this).find("span"),e=t.find("i");t.removeAttr("class"),$(this).remove("i"),$(this).append(e),$(this).wrap("<li></li>").parent().insertBefore(i)}),"undefined"!==(t=$(".js-category-page").data("current-category-id"))&&""!==t&&((t=$(".js-category-tree [data-category-id="+t+"]")).addClass("current"),t.parents("li").each(function(){$(this).children('[data-toggle="collapse"]').attr("aria-expanded","true"),$(this).children(".category-sub-menu.collapse").addClass("show")})),(t=$(".js-small-description")).length&&t.height()>t.data("max-height")&&$(".js-expand-description").click(function(){$(this).hasClass("see-less")?($(".see-more").show(),$(".see-less").hide()):($(".see-less").show(),$(".see-more").hide())}),$("#mobile-menu-icon").on("click",function(){$("#dropdown-mobile-menu").stop().slideToggle()})})},function(){function s(){setTimeout(function(){!function(){let e=$(".js-sidebar-category-tree");var i;e.length&&($.ajax({type:"POST",url:e.data("categorytree-controller"),data:{ajax:!0},success:function(t){e.append(t),i()},error:function(){}}),i=function(){let t=$(".js-sidebar-categories");t.length&&t.find(".js-collapse-trigger").click(function(){$(".js-collapse-trigger .add").show(),$(".js-collapse-trigger .remove").hide(),$(this).next(".js-sub-categories").stop().slideToggle(),$(this).find(".add").toggle(),$(this).find(".remove").toggle()});var e=$(".js-category-page").data("current-category-id");if("undefined"!==e&&""!==e){let t=$(".js-sidebar-categories [data-category-id="+e+"]");t.addClass("current"),t.parents("li").each(function(){$(this).children(".js-sub-categories").show(),$(this).find(" > .js-collapse-trigger .add").hide(),$(this).find(" > .js-collapse-trigger .remove").show()})}})}()},1e3),$("#js-header-phone-sidebar").removeClass("js-hidden").html($(".js-header-phone-source").html()),$("#js-account-sidebar").removeClass("js-hidden").html($(".js-account-source").html()),$("#js-language-sidebar").removeClass("js-hidden").html($(".js-language-source").html()),"undefined"==typeof varSidebarCart||varSidebarCart||$("#js-left-currency-sidebar").removeClass("js-hidden").html($(".js-currency-source").html()),$("[data-close-st-menu]").on("click",function(){$("html").removeClass("st-menu-open st-effect-left st-effect-right")}),$("[data-left-nav-trigger]").on("click",function(){return $("html").addClass("st-effect-left st-menu-open"),!1})}"undefined"!=typeof varPageProgressBar&&varPageProgressBar&&Pace.start(),$(window).load(function(){var t,e,i,o,n;(t=$(".js-cookieMessage")).length&&setTimeout(function(){t.cookieBar({closeButton:".js-cookieCloseButton",path:prestashop.urls.base_url.substring(prestashop.urls.shop_domain_url.length)})},2e3),$("img.js-lazy").lazyload({failure_limit:9999}),e=$("#header .main-header > .container").width(),i=$("[data-sticky-menu]"),o=$("[data-mobile-sticky]"),"undefined"!=typeof varStickyMenu&&varStickyMenu&&i.length&&540<e&&(i.sticky({wrapperClassName:"desktop-sticky-wrapper"}),$("[data-sticky-cart]").html($("[data-sticky-cart-source]").html())),"undefined"!=typeof varMobileStickyMenu&&varMobileStickyMenu&&o.length&&e<=540&&o.sticky({wrapperClassName:"mobile-sticky-wrapper"}),n=$("[data-scroll-to-top]"),$(window).scroll(function(){100<$(this).scrollTop()?n.fadeIn():n.fadeOut()}),n.find("a").smoothScroll({speed:500}),s(),"checkout"!==prestashop.page.page_name&&"cart"!==prestashop.page.page_name&&"undefined"!=typeof varSidebarCart&&varSidebarCart&&($("#js-cart-sidebar").removeClass("js-hidden").html($("[data-shopping-cart-source]").html()),$("[data-shopping-cart-source]").addClass("js-hidden"),$.each($('#js-cart-sidebar input[name="product-sidebar-quantity-spin"]'),function(t,e){$(e).makeTouchSpin(),$(e).on("change",function(){$(e).trigger("focusout")})}),$("#js-currency-sidebar").removeClass("js-hidden").html($(".js-currency-source").html()),$("[data-sidebar-cart-trigger]").on("click",function(){return $("html").addClass("st-effect-right st-menu-open"),!1}))})},function(){function o(t,e,i){"top"==t?jQuery(".nivo-caption").animate({top:"0"},i,e,n):"bottom"==t?jQuery(".nivo-caption").animate({bottom:"0"},i,e,n):"left"==t?jQuery(".nivo-caption").animate({left:"0"},i,e,n):"right"==t?jQuery(".nivo-caption").animate({right:"0"},i,e,n):"opacity"==t&&jQuery(".nivo-caption").animate({opacity:"1"},i,"swing",n)}
233function n(){jQuery(".nivo-caption .js-slide-products-related").fadeIn()}$(window).load(function(){var t=$("#aoneSlider"),e=$("#js-nivoSliderOverlay"),i=t.data("settings");t.length&&t.nivoSlider({effect:i.effect,slices:Number(i.slices),boxCols:Number(i.boxCols),boxRows:Number(i.boxRows),animSpeed:Number(i.animSpeed),pauseTime:Number(i.pauseTime),startSlide:Number(i.startSlide),directionNav:i.directionNav,controlNav:i.controlNav,controlNavThumbs:i.controlNavThumbs,pauseOnHover:i.pauseOnHover,manualAdvance:i.manualAdvance,randomStart:i.randomStart,afterLoad:function(){o(i.caption_effect,"easeInBack",400),e.hide(),t.fadeIn(400)},beforeChange:function(){var t=i.caption_effect,e="easeInBack";"top"==t?jQuery(".nivo-caption").animate({top:"-100%"},400,e):"bottom"==t?jQuery(".nivo-caption").animate({bottom:"-100%"},400,e):"left"==t?jQuery(".nivo-caption").animate({left:"-100%"},400,e):"right"==t?jQuery(".nivo-caption").animate({right:"-100%"},400,e):"opacity"==t&&jQuery(".nivo-caption").animate({opacity:"0"},400,"swing")},afterChange:function(){o(i.caption_effect,"easeInBack",400)}})})},function(){$(window).load(function(){$(".js-extraFieldPopup").each(function(){var t=$(this).find("iframe");$(this).on("hidden.bs.modal",function(){t.each(function(){$(this).attr("src",$(this).attr("src"))})})}),$("body").on("click",".js-switch-cbnt",function(t){if(t.preventDefault(),!$(this).hasClass("active")){$(this).parent().children().removeClass("active"),$(this).addClass("active");var e=$(this).data("groups");for(g in e)$('.product-variants [data-product-attribute="'+g+'"]').val(e[g]).trigger("change")}return!1}),"undefined"!=typeof varGetFinalDateController&&(setTimeout(function(){$(".js-product-countdown").runCountdown({specificPricesTo:$(".js-product-countdown").attr("data-specific-prices-to"),getFinalDateController:varGetFinalDateController})},300),prestashop.on("updatedProduct",function(){$(".js-product-countdown").updateCountdown({newSpecificPricesTo:$(".js-new-specific-prices-to").attr("data-new-specific-prices-to"),currentSpecificPricesTo:$(".js-product-countdown").attr("data-specific-prices-to"),getFinalDateController:varGetFinalDateController})})),$("body").on("click",".js-swatch-item",function(){var t=$(this).parent().attr("data-id-group"),e=$(this).attr("data-id-attribute");$(this).parent().children().removeClass("selected"),$(this).addClass("selected"),$('.product-variants [data-product-attribute="'+t+'"]').val(e).change()})})},function(){function t(){var r,e,i=$(".js-aone-popupnewsletter");i.length&&(r=i.data("save-time"),""===function(){for(var t="aonehidepopupnewsletter"+r+"=",e=document.cookie.split(";"),i=0;i<e.length;i++){for(var o=e[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}()&&($.ajax({type:"POST",url:i.data("modal-newsletter-controller"),data:{ajax:!0},success:function(t){i.replaceWith(t),e()},error:function(){}}),e=function(){let t=!1,e=$("#aone-popup-newsletter-modal"),s=e.data("hidepopup-time");var o,i;$(window).on("scroll",function(){!t&&600<$(this).scrollTop()&&(t=!0,e.modal("show"))}),e.on("hidden.bs.modal",function(){var t,e,i,o,n=prestashop.urls.base_url.substring(prestashop.urls.shop_domain_url.length);t="aonehidepopupnewsletter"+r,e=parseInt(s),i=n,o=new Date,n="",e&&(o.setTime(o.getTime()+24*e*60*60*1e3),n=";expires="+o.toUTCString()),document.cookie=t+"=1"+n+";path="+i}),$(".js-newsletter-nothanks").click(function(){return e.modal("hide"),!1}),o=$(".js-popup-newsletter-form").data("ajax-submit-url"),i=$(".js-emailsubscription .js-subscription-form"),o&&i.submit(function(t){t.preventDefault();var i=$(this);return $.ajax({type:"POST",url:o,data:i.serialize()+"&submitNewsletter=1&ajax=1",dataType:"json",success:function(t){let e='<p class="alert alert-success">'+t.msg+"</p>";t.nw_error&&(e='<p class="alert alert-danger">'+t.msg+"</p>"),i.find(".newsletter-message").fadeOut(400,function(){$(this).html(e).fadeIn()})},error:function(t){alert("Response Text:\n"+t.responseText)}}),!1})}))}$(window).load(function(){setTimeout(function(){t()},1500)})},function(){function i(){var t,e=$("#amegamenu");e.length&&((t=function(){var r,a,t,l,c;e.hasClass("amegamenu_rtl")?(r=(t=e).offset().left,a=t.offset().left+t.outerWidth(),$(".adropdown",t).each(function(){let t=$(this),e=t.parent(),i=0-(t.outerWidth()-e.outerWidth())/2,o=t.offset().left+t.outerWidth(),n=e.offset().left+e.outerWidth(),s=parseInt(t.css("margin-right"));t.offset().left+s-i<r?t.css("margin-right",0-(t.outerWidth()-n+r)+"px"):o+s-i>a?t.css("margin-right",0-(a-n)+"px"):t.css("margin-right",i+"px")})):(l=(t=e).offset().left,c=t.offset().left+t.outerWidth(),$(".adropdown",t).each(function(){let t=$(this),e=t.parent(".amenu-item"),i=0-(t.outerWidth()-e.outerWidth())/2,o=t.offset().left+t.outerWidth(),n=e.offset().left,s=p
233arseInt(t.css("margin-left"));o-s+i>c?t.css("margin-left",c-n-t.outerWidth()+"px"):t.offset().left-s+i<l?t.css("margin-left",l-n+"px"):t.css("margin-left",i+"px")}))})(),$(window).resize(t))}$(window).load(function(){setTimeout(function(){var e,t;(t=$(".js-ajax-mega-menu")).length&&($.ajax({type:"POST",url:t.data("ajax-dropdown-controller"),data:{ajax:!0},dataType:"json",success:function(t){e(t)},error:function(){}}),e=function(e){$(".js-dropdown-content",t).each(function(){var t=$(this).data("menu-id");$(this).replaceWith(e[t])})}),i()},500),$("#mobile-amegamenu .amenu-item.plex .amenu-link").on("click",function(){return $(this).next(".adropdown").stop().slideToggle(),$(this).parent(".amenu-item").toggleClass("active"),!1}),$("html").on("touchstart",function(){$("#amegamenu .anav-top > li").removeClass("hover")}),$("#amegamenu").on("touchstart",function(t){t.stopPropagation()}),$("#amegamenu .anav-top > li.plex > .amenu-link").on("touchstart",function(t){"use strict";var e=$(this).parent("li");return!!e.hasClass("hover")||($("#amegamenu .anav-top > li").removeClass("hover"),e.addClass("hover"),t.preventDefault(),!1)})})},function(){$(window).load(function(){$(".js-home-block-slider").each(function(){var t=$(this),e=$(this).data("slickoptions");$(t).slick({slidesToShow:e.slidesToShow,slidesToScroll:e.slidesToShow,adaptiveHeight:!1,infinite:!0,speed:e.speed,autoplay:e.autoplay,dots:e.dots,arrows:e.arrows,rtl:e.rtl,responsive:[{breakpoint:1220,settings:{slidesToShow:e.slidesToShow_1220,slidesToScroll:e.slidesToShow_1220}},{breakpoint:992,settings:{slidesToShow:e.slidesToShow_992,slidesToScroll:e.slidesToShow_992}},{breakpoint:768,settings:{slidesToShow:e.slidesToShow_768,slidesToScroll:e.slidesToShow_768}}]}),$(t).on("beforeChange",function(){$(t).find(".slick-active img.js-lazy").trigger("appear")})}),$('.aone-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(t){t=$(t.target).attr("data-slickID");$("#"+t).slick("setPosition"),$(".slick-active img.js-lazy","#"+t).trigger("appear")}),$(".js-home-block-mobile-slider").each(function(){$(this).on("scroll",function(){$(this).scrollLeft()&&$("img.js-lazy",$(this)).trigger("appear")})})})},function(){$(window).load(function(){var o=!1;"1"==prestashop.language.is_rtl&&(o=!0),$(".js-featured-categories-slider").each(function(){var t,e,i=$(this).data("slidestoshow");t=$(this),e=i,i=o,$(t).slick({slidesToShow:e,slidesToScroll:e,adaptiveHeight:!0,infinite:!0,speed:1e3,autoplay:!1,dots:!1,arrows:!0,rtl:i,responsive:[{breakpoint:992,settings:{slidesToShow:Math.min(2,e-1),slidesToScroll:Math.min(2,e-1)}},{breakpoint:576,settings:{slidesToShow:Math.min(1,e),slidesToScroll:Math.min(1,e)}}]}),$(t).on("beforeChange",function(){$(t).find(".slick-active img.js-lazy").trigger("appear")})})})},function(){$(window).load(function(){$(".js-column-block-slider").each(function(){var t=$(this),e=$(this).data("slickoptions");$(t).slick({slidesToShow:e.slidesToShow,slidesToScroll:e.slidesToShow,infinite:!0,speed:e.speed,autoplay:e.autoplay,dots:e.dots,arrows:e.arrows,rtl:e.rtl}),$(t).on("beforeChange",function(){$(t).find(".slick-active img.js-lazy").trigger("appear")})})})},function(){function t(){$(".js-previewToggle").length&&($(".js-previewToggle").click(function(){$(this).parent().toggleClass("open")}),function(t){$.ajax({type:"POST",url:t,data:{ajax:!0},success:function(t){$(".js-previewContainer").append(t),e()},error:function(){}});
233var e=function(){var e=$("#js-colorsLivePreview"),i=e.find(".js-colorPicker"),t=e.find(".js-previewReset"),o=e.find(".js-previewBoxed"),n=e.find(".js-previewWide"),s=e.find(".js-specialStyle");i.each(function(){$(this).colpick({layout:"hex",color:$(this).data("color"),onSubmit:function(t,i,e,o){$(o).css("background-color","#"+i);o=$(o).parent(".js-color").children(".style");$.each(o,function(){var t=$(this).children(".selector"),e=$(this).children(".property");$(this).children(".preview").html("<style>"+t.text()+"{"+e.text()+"#"+i+"}</style>")})}})}),t.click(function(t){return t.preventDefault(),e.find(".js-color .preview").html(""),i.each(function(){$(this).css("background-color",$(this).data("color"))}),!1}),o.click(function(t){return t.preventDefault(),$("body").addClass("boxed-layout"),n.removeClass("active"),$(this).addClass("active"),$(".js-boxedWide .style .preview").html("<style>"+$(".js-boxedBackgroundCSS").text()+"</style>"),!1}),n.click(function(t){return t.preventDefault(),$("body").removeClass("boxed-layout"),o.removeClass("active"),$(this).addClass("active"),$(".js-boxedWide .style .preview").html(""),!1}),$("body").hasClass("remove-border-radius")&&s.find('input[name="disable_border_radius"]').attr("checked","checked"),$("body").hasClass("remove-box-shadow")&&s.find('input[name="disable_box_shadow"]').attr("checked","checked"),$("#wrapper").hasClass("background-for-title")&&s.find('input[name="background_block_title"]').attr("checked","checked"),s.find('input[name="disable_border_radius"]').change(function(){$("body").toggleClass("remove-border-radius")}),s.find('input[name="disable_box_shadow"]').change(function(){$("body").toggleClass("remove-box-shadow")}),s.find('input[name="background_block_title"]').change(function(){$("#wrapper").toggleClass("background-for-title background-for-tab-title background-for-column-title")})}}($(".js-previewToggle").data("preview-controller")))}$(window).load(function(){setTimeout(function(){t()},2e3)})},function(){$(window).load(function(){var o=!1;"1"==prestashop.language.is_rtl&&(o=!0),$(".js-brand-logo-slider").each(function(){var t,e,i=$(this).data("autoscroll");t=$(this),e=i,i=o,$(t).slick({slidesToShow:6,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,speed:700,autoplay:e,dots:!1,arrows:!0,draggable:!1,rtl:i,responsive:[{breakpoint:1220,settings:{slidesToShow:5}},{breakpoint:992,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:3}},{breakpoint:576,settings:{slidesToShow:2}}]}),$(t).on("beforeChange",function(){$(t).find(".slick-active img.js-lazy").trigger("appear")})})})},function(){$(document).ready(function(){$('button[data-action="show-password"]').on("click",function(){var t=$(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),$(this).html($(this).data("textHide"))):(t.attr("type","password"),$(this).html($(this).data("textShow")))})})},function(){$(document).ready(function(){var t;"1"==prestashop.language.is_rtl&&$(".dropdown-menu").addClass("dropdown-menu-right"),(t=$(".js-dropdown")).on("show.bs.dropdown",function(t){$(t.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),t.on("hide.bs.dropdown",function(t){$(t.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),t.find("select.link").each(function(t,e){$(e).on("change",function(){window.location=$(this).val()})})})},function(t,e,i){var o,n;!function(){"use strict";o=[i(0)],void 0===(n="function"==typeof(n=function(o){function e(u){return function(t){var e,i,o=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(o)for(var n=0,s=o.length;n<s;++n){var r=o[n].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),a=(i=(i=r[0]).toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),new RegExp(i)),l=r[1]||"",c=r[3]||"",d=null,r=r[2];p.hasOwnProperty(r)&&(d=p[r],d=Number(u[d])),null!==d&&("!"===l&&(e=d,r=i=void 0,i="s",r="",(c=c)&&(i=1===(c=c.replace(/(:|;|\s)/gi,"").split(/\,/)).length?c[0]:(r=c[0],c[1])),d=1<Math.abs(e)?i:r),""===l&&d<10&&(d="0"+d.toString()),t=t.replace(a,d.toString()))}return t.replace(/%%/,"%")}}var n=[],i=[],s={precision:100,elapse:!1,defer:!1};i.push(/^[0-9]*$/.source),i.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),i=new RegExp(i.join("|"));function r(t,e,i){this.el=t,this.$el=o(t),this.interval=null,this.offset={},this.options=o.extend({},s),this.instanceNumber=n.length,n.push(this),this.$el.data("countdown-instance",this.instanceNumber),i&&("function"==typeof i?(this.$el.on("update.countdown",i),this.$el.on("stoped.
233countdown",i),this.$el.on("finish.countdown",i)):this.options=o.extend({},s,i)),this.setFinalDate(e),!1===this.options.defer&&this.start()}var p={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"};o.extend(r.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var t=this;this.update(),this.interval=setInterval(function(){t.update.call(t)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),n[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(t){this.finalDate=function(t){if(t instanceof Date)return t;if(String(t).match(i))return String(t).match(/^[0-9]*$/)&&(t=Number(t)),String(t).match(/\-/)&&(t=String(t).replace(/\-/g,"/")),new Date(t);throw new Error("Couldn't cast `"+t+"` to a date object.")}(t)},update:function(){var t,e,i;0!==this.$el.closest("html").length?(t=void 0!==o._data(this.el,"events"),e=new Date,i=this.finalDate.getTime()-e.getTime(),i=Math.ceil(i/1e3),i=!this.options.elapse&&i<0?0:Math.abs(i),this.totalSecsLeft!==i&&t&&(this.totalSecsLeft=i,this.elapsed=e>=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()-e.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")))):this.remove()},dispatchEvent:function(t){t=o.Event(t+".countdown");t.finalDate=this.finalDate,t.elapsed=this.elapsed,t.offset=o.extend({},this.offset),t.strftime=e(this.offset),this.$el.trigger(t)}}),o.fn.countdown=function(){var i=Array.prototype.slice.call(arguments,0);return this.each(function(){var t,e=o(this).data("countdown-instance");void 0!==e?(t=n[e],e=i[0],r.prototype.hasOwnProperty(e)?t[e].apply(t,i.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(t.setFinalDate.call(t,e),t.start()):o.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))):new r(this,i[0],i[1])})}})?n.apply(e,o):n)||(t.exports=n)}()},function(){"use strict";!function(v){function t(){var t=i();t!==o&&(o=t,s.trigger("orientationchange"))}function y(t,e,i,o){var n=i.type;i.type=e,v.event.dispatch.call(t,i,o),i.type=n}v.attrFn=v.attrFn||{};var e="ontouchstart"in window,w={tap_pixel_range:5,swipe_h_threshold:50,swipe_v_threshold:50,taphold_threshold:750,doubletap_int:500,touch_capable:e,orientation_support:"orientation"in window&&"onorientationchange"in window,startevent:e?"touchstart":"mousedown",endevent:e?"touchend":"mouseup",moveevent:e?"touchmove":"mousemove",tapevent:e?"tap":"click",
233scrollevent:e?"touchmove":"scroll",hold_timer:null,tap_timer:null};v.isTouchCapable=function(){return w.touch_capable},v.getStartEvent=function(){return w.startevent},v.getEndEvent=function(){return w.endevent},v.getMoveEvent=function(){return w.moveevent},v.getTapEvent=function(){return w.tapevent},v.getScrollEvent=function(){return w.scrollevent},v.each(["tapstart","tapend","tapmove","tap","tap2","tap3","tap4","singletap","doubletap","taphold","swipe","swipeup","swiperight","swipedown","swipeleft","swipeend","scrollstart","scrollend","orientationchange"],function(t,e){v.fn[e]=function(t){return t?this.on(e,t):this.trigger(e)},v.attrFn[e]=!0}),v.event.special.tapstart={setup:function(){var o=this,n=v(o);n.on(w.startevent,function t(e){if(n.data("callee",t),e.which&&1!==e.which)return!1;var i=e.originalEvent,i={position:{x:(w.touch_capable?i.touches[0]:e).screenX,y:(w.touch_capable?i.touches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(i.changedTouches[0].pageX-(n.offset()?n.offset().left:0)):Math.round(e.pageX-(n.offset()?n.offset().left:0)),y:w.touch_capable?Math.round(i.changedTouches[0].pageY-(n.offset()?n.offset().top:0)):Math.round(e.pageY-(n.offset()?n.offset().top:0))},time:Date.now(),target:e.target};return y(o,"tapstart",e,i),!0})},remove:function(){v(this).off(w.startevent,v(this).data.callee)}},v.event.special.tapmove={setup:function(){var o=this,n=v(o);n.on(w.moveevent,function t(e){n.data("callee",t);var i=e.originalEvent,i={position:{x:(w.touch_capable?i.touches[0]:e).screenX,y:(w.touch_capable?i.touches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(i.changedTouches[0].pageX-(n.offset()?n.offset().left:0)):Math.round(e.pageX-(n.offset()?n.offset().left:0)),y:w.touch_capable?Math.round(i.changedTouches[0].pageY-(n.offset()?n.offset().top:0)):Math.round(e.pageY-(n.offset()?n.offset().top:0))},time:Date.now(),target:e.target};return y(o,"tapmove",e,i),!0})},remove:function(){v(this).off(w.moveevent,v(this).data.callee)}},v.event.special.tapend={setup:function(){var o=this,n=v(o);n.on(w.endevent,function t(e){n.data("callee",t);var i=e.originalEvent,i={position:{x:(w.touch_capable?i.changedTouches[0]:e).screenX,y:(w.touch_capable?i.changedTouches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(i.changedTouches[0].pageX-(n.offset()?n.offset().left:0)):Math.round(e.pageX-(n.offset()?n.offset().left:0)),y:w.touch_capable?Math.round(i.changedTouches[0].pageY-(n.offset()?n.offset().top:0)):Math.round(e.pageY-(n.offset()?n.offset().top:0))},time:Date.now(),target:e.target};return y(o,"tapend",e,i),!0})},remove:function(){v(this).off(w.endevent,v(this).data.callee)}},v.event.special.taphold={setup:function(){var c,d=this,u=v(d),p={x:0,y:0},h=0,f=0;u.on(w.startevent,function o(n){if(n.which&&1!==n.which)return!1;u.data("tapheld",!1),c=n.target;var s=n.originalEvent,r=Date.now(),a={x:(w.touch_capable?s.touches[0]:n).screenX,y:(w.touch_capable?s.touches[0]:n).screenY},l={x:w.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:n.offsetX,y:w.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:n.offsetY};p.x=(n.originalEvent.targetTouches?n.originalEvent.targetTouches[0]:n).pageX,p.y=(n.originalEvent.targetTouches?n.originalEvent.targetTouches[0]:n).pageY,h=p.x,f=p.y;var t=(u.parent().data("threshold")?u.parent():u).data("threshold"),t=void 0!==t&&!1!==t&&parseInt(t)?parseInt(t):w.taphold_threshold;return w.hold_timer=window.setTimeout(function(){var t,e=p.x-h,i=p.y-f;n.target==c&&(p.x==h&&p.y==f||e>=-w.tap_pixel_range&&e<=w.tap_pixel_range&&i>=-w.tap_pixel_range&&i<=w.tap_pixel_range)&&(u.data("tapheld",!0),t=Date.now(),e={x:(w.touch_capable?s.touches[0]:n).screenX,y:(w.touch_capable?s.touches[0]:n).screenY},i={x:w.touch_capable?Math.round(s.changedTouches[0].pageX-(u.offset()?u.offset().left:0)):Math.round(n.pageX-(u.offset()?u.offset().left:0)),y:w.touch_capable?Math.round(s.changedTouches[0].pageY-(u.offset()?u.offset().top:0)):Math.round(n.pageY-(u.offset()?u.offset().top:0))},t={startTime:r,endTime:t,startPosition:a,startOffset:l,endPosition:e,endOffset:i,duration:t-r,target:n.target},u.data("callee1",o),y(d,"taphold",n,t))},t),!0}).on(w.endevent,function t(){u.data("callee2",t),u.data("tapheld",!1),window.clearTimeout(w.hold_timer)}).on(w.moveevent,function t(e){u.data("callee3",t),h=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageX,f=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageY})},remove:function(){v(this).off(w.startevent,v(this).data.callee1).off(w.endevent,v(this).data.callee2).off(w.moveevent,v(this).data.callee3)}},v.event.special.doubletap={setup:function(){var n,s,r=this,a=v(r),l=null,c=!1;a.on(w.startevent,function t(e){return!(e.which&&1!==e.which||(a.data("doubletapped",!1),e.target,a.data("callee1",t),s=e.originalEvent,l=l||{position:{x:(w.touch_capable?s.touches[0]:e).screenX,y:(w.touch_capable?s.touches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(s.changedTouches[0].pageX-(a.offset()?a.offset().left:0)):Math.round(e.pageX-(a.offset()?a.offset().left:0)),y:w.touch_capable?Math.round(s.changedTouches[0].pageY-(a.offset()?a.offset().top:0)):Math.round(e.pageY-(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target,element:e.originalEvent.srcElement,index:v(e.target).index()},0))}).on(w.endevent,function t(e){var i=Date.now(),o=i-(a.data("lastTouch")||i+1);window.clearTimeout(n),a.data("callee2",t),o<w.doubletap_int&&v(e.target).index()==l.index&&100<o?(a.data("doubletapped",!0),window.clearTimeout(w.tap_timer),o={position:{x:(w.touch_capable?e.originalEvent.changedTouches[0]:e).screenX,y:(w.touch_capable?e.originalEvent.changedTouches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(s.changedTouches[0].pageX-(a.offset()?a.offset().left:0)):Math.round(e.pageX-(a.offset()?a.offset().left:0)),y:w.touch_capable?Math.round(s.changedTouches[0].pageY-(a.offset()?a.offset().top:0)):Math.round(e.pageY-(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target,element:e.originalEvent.srcElement,index:v(e.target).index()},o={firstTap:l,secondTap:o,interval:o.time-l.time},c||(y(r,"doubletap",e,o),l=null),c=!0,window.setTimeout(function(){c=!1},w.doubletap_int)):(a.data("lastTouch",i),n=window.setTimeout(function(){l=null,window.clearTimeout(n)},w.doubletap_int,[e])),a.data("lastTouch",i)})},remove:function(){v(this).off(w.startevent,v(this).data.callee1).off(w.endevent,v(this).data.callee2)}},v.event.special.singletap={setup:function(){var s=this,r=v(s),a=null,l=null,c={x:0,y:0};r.on(w.startevent,function t(e){return!(e.which&&1!==e.which||(l=Date.now(),a=e.target,r.data("callee1",t),c.x=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageX,c.y=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageY,0))}).on(w.endevent,function t(i){var o,n;r.data("callee2",t),i.target==a&&(o=(i.originalEvent.changedTouches?i.originalEvent.changedTouches[0]:i).pageX,n=(i.originalEvent.changedTouches?i.originalEvent.changedTouches[0]:i).pageY,w.tap_timer=window.setTimeout(function(){var t=c.x-o,e=c.y-n;r.data("doubletapped")||r.data("tapheld")||!(c.x==o&&c.y==n||t>=-w.tap_pixel_range&&t<=w.tap_pixel_range&&e>=-w.tap_pixel_range&&e<=w.tap_pixel_range)||(e=i.originalEvent,(e={position:{x:(w.touch_capable?e.changedTouches[0]:i).screenX,y:(w.touch_capable?e.changedTouches[0]:i).screenY},offset:{x:w.touch_capable?Math.round(e.changedTouches[0].pageX-(r.offset()?r.offset().left:0)):Math.round(i.pageX-(r.offset()?r.offset().left:0)),y:w.touch_capable?Math.round(e.changedTouches[0].pageY-(r.offset()?r.offset().top:0)):Math.round(i.pageY-(r.offset()?r.offset().top:0))},time:Date.now(),target:i.target}).time-l<w.taphold_threshold&&y(s,"singletap",i,e))},w.doubletap_int))})},remove:function(){v(this).off(w.startevent,v(this).data.callee1).off(w.endevent,v(this).data.callee2)}},v.event.special.tap={setup:function(){var d,u,p=this,h=v(p),f=!1,m=null,g={x:0,y:0};h.on(w.startevent,function t(e){return h.data("callee1",t),!(e.which&&1!==e.which||(f=!0,g.x=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageX,g.y=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageY,d=Date.now(),m=e.target,u=e.originalEvent.targetTouches||[e],0))}).on(w.endevent,function t(e){h.data("callee2",t);var i=(e.originalEvent.targetTouches?e.originalEvent.changedTouches[0]:e).pageX,o=(e.originalEvent.targetTouches?e.originalEvent.changedTouches[0]:e).pageY,n=g.x-i,s=g.y-o;if(m==e.target&&f&&Date.now()-d<w.taphold_threshold&&(g.x==i&&g.y==o||n>=-w.tap_pixel_range&&n<=w.tap_pixel_range&&s>=-w.tap_pixel_range&&s<=w.tap_pixel_range)){for(var r,a=e.originalEvent,l=[],c=0;c<u.length;c++)r={position:{x:(w.touch_capable?a.changedTouches[c]:e).screenX,y:(w.touch_capable?a.changedTouches[c]:e).screenY},offset:{x:w.touch_capable?Math.round(a.changedTouches[c].pageX-(h.offset()?h.offset().left:0)):Math.round(e.pageX-(h.offset()?h.offset().left:0)),y:w.touch_capable?Math.round(a.changedTouches[c].pageY-(h.offset()?h.offset().top:0)):Math.round(e.pageY-(h.offset()?h.offset().top:0))},time:Date.now(),target:e.target},l.push(r);y(p,"tap",e,l)}})},remove:function(){v(this).off(w.startevent,v(this).data.callee1).off(w.endevent,v(this).data.callee2)}}
233,v.event.special.swipe={setup:function(){var r,a=v(this),l=!1,c=!1,s={x:0,y:0},d={x:0,y:0};a.on(w.startevent,function t(e){(a=v(e.currentTarget)).data("callee1",t),s.x=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageX,s.y=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageY,d.x=s.x,d.y=s.y,l=!0;var i=e.originalEvent;r={position:{x:(w.touch_capable?i.touches[0]:e).screenX,y:(w.touch_capable?i.touches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(i.changedTouches[0].pageX-(a.offset()?a.offset().left:0)):Math.round(e.pageX-(a.offset()?a.offset().left:0)),y:w.touch_capable?Math.round(i.changedTouches[0].pageY-(a.offset()?a.offset().top:0)):Math.round(e.pageY-(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target}}),a.on(w.moveevent,function t(e){(a=v(e.currentTarget)).data("callee2",t),d.x=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageX,d.y=(e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e).pageY;var i,o=(a.parent().data("xthreshold")?a.parent():a).data("xthreshold"),n=(a.parent().data("ythreshold")?a.parent():a).data("ythreshold"),o=void 0!==o&&!1!==o&&parseInt(o)?parseInt(o):w.swipe_h_threshold,n=void 0!==n&&!1!==n&&parseInt(n)?parseInt(n):w.swipe_v_threshold;s.y>d.y&&s.y-d.y>n&&(i="swipeup"),s.x<d.x&&d.x-s.x>o&&(i="swiperight"),s.y<d.y&&d.y-s.y>n&&(i="swipedown"),s.x>d.x&&s.x-d.x>o&&(i="swipeleft"),null!=i&&l&&(s.x=0,s.y=0,d.x=0,d.y=0,l=!1,n=e.originalEvent,o={position:{x:(w.touch_capable?n.touches[0]:e).screenX,y:(w.touch_capable?n.touches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(n.changedTouches[0].pageX-(a.offset()?a.offset().left:0)):Math.round(e.pageX-(a.offset()?a.offset().left:0)),y:w.touch_capable?Math.round(n.changedTouches[0].pageY-(a.offset()?a.offset().top:0)):Math.round(e.pageY-(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target},n=Math.abs(r.position.x-o.position.x),e=Math.abs(r.position.y-o.position.y),o={startEvnt:r,endEvnt:o,direction:i.replace("swipe",""),xAmount:n,yAmount:e,duration:o.time-r.time},c=!0,a.trigger("swipe",o).trigger(i,o))}),a.on(w.endevent,function t(e){var i,o,n,s="";(a=v(e.currentTarget)).data("callee3",t),c&&(o=a.data("xthreshold"),i=a.data("ythreshold"),n=void 0!==o&&!1!==o&&parseInt(o)?parseInt(o):w.swipe_h_threshold,o=void 0!==i&&!1!==i&&parseInt(i)?parseInt(i):w.swipe_v_threshold,i=e.originalEvent,e={position:{x:(w.touch_capable?i.changedTouches[0]:e).screenX,y:(w.touch_capable?i.changedTouches[0]:e).screenY},offset:{x:w.touch_capable?Math.round(i.changedTouches[0].pageX-(a.offset()?a.offset().left:0)):Math.round(e.pageX-(a.offset()?a.offset().left:0)),y:w.touch_capable?Math.round(i.changedTouches[0].pageY-(a.offset()?a.offset().top:0)):Math.round(e.pageY-(a.offset()?a.offset().top:0))},time:Date.now(),target:e.target},r.position.y>e.position.y&&r.position.y-e.position.y>o&&(s="swipeup"),r.position.x<e.position.x&&e.position.x-r.position.x>n&&(s="swiperight"),r.position.y<e.position.y&&e.position.y-r.position.y>o&&(s="swipedown"),r.position.x>e.position.x&&r.position.x-e.position.x>n&&(s="swipeleft"),o=Math.abs(r.position.x-e.position.x),n=Math.abs(r.position.y-e.position.y),e={startEvnt:r,endEvnt:e,direction:s.replace("swipe",""),xAmount:o,yAmount:n,duration:e.time-r.time},a.trigger("swipeend",e)),c=l=!1})},remove:function(){v(this).off(w.startevent,v(this).data.callee1).off(w.moveevent,v(this).data.callee2).off(w.endevent,v(this).data.callee3)}},v.event.special.scrollstart={setup:function(){function i(t,e){y(s,(o=e)?"scrollstart":"scrollend",t)}var o,n,s=this,r=v(s);r.on(w.scrollevent,function t(e){r.data("callee",t),o||i(e,!0),clearTimeout(n),n=setTimeout(function(){i(e,!1)},50)})},remove:function(){v(this).off(w.scrollevent,v(this).data.callee)}};var i,o,n,s=v(window),r={0:!0,180:!0};w.orientation_support&&(n=window.innerWidth||s.width(),n=(e=window.innerHeight||s.height())<n&&50<n-e,e=r[window.orientation],(n&&e||!n&&!e)&&(r={90:!0,"-90":!0})),v.event.special.orientationchange={setup:function(){return!w.orientation_support&&(o=i(),s.on("throttledresize",t),!0)},teardown:function(){return!w.orientation_support&&(s.off("throttledresize",t),!0)},add:function(t){var e=t.handler;t.handler=function(t){return t.orientation=i(),e.apply(this,arguments)}}},v.event.special.orientationchange.orientation=i=function(){var t=document.documentElement;return(w.orientation_support?r[window.orientation]:t&&t.clientWidth/t.clientHeight<1.1)?"portrait":"landscape"},v.event.special.throttledresize={setup:function(){v(this).on("resize",d)},teardown:function(){v(this).off("resize",d)}};var a,l,c,d=function(){l=Date.now(),250<=(c=l-u)?(u=l,v(this).trigger("throttledresize")):(a&&window.clearTimeout(a),a=window.setTimeout(t,250-c))},u=0;v.each({scrollend:"scrollstart",swipeup:"swipe",swiperight:"swipe",swipedown:"swipe",swipeleft:"swipe",swipeend:"swipe",tap2:"tap"},function(t,e){v.event.special[t]={setup:function(){v(this).on(e,v.noop)}}})}(jQuery)},function(){var r,o,a;
233r=jQuery,o=window,document,a=r(o),r.fn.lazyload=function(t){var n=this,s={threshold:0,failure_limit:0,event:"scroll.lazyload",effect:"show",container:o,data_attribute:"original",data_srcset:"srcset",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs="};function e(){var e=0;n.each(function(){var t=r(this);if((!s.skip_invisible||t.is(":visible"))&&!r.abovethetop(this,s)&&!r.leftofbegin(this,s))if(r.belowthefold(this,s)||r.rightoffold(this,s)){if(++e>s.failure_limit)return!1}else t.trigger("appear"),e=0})}t&&(void 0!==t.failurelimit&&(t.failure_limit=t.failurelimit,delete t.failurelimit),void 0!==t.effectspeed&&(t.effect_speed=t.effectspeed,delete t.effectspeed),r.extend(s,t)),t=void 0===s.container||s.container===o?a:r(s.container);var i=r(o).scrollTop();return 0===s.event.indexOf("scroll")&&t.off(s.event).on(s.event,function(){return r(this).scrollTop()>i+100||r(this).scrollTop()<i-100?(i=r(this).scrollTop(),e()):void 0}),this.each(function(){var i=this,o=r(i);i.loaded=!1,void 0!==o.attr("src")&&!1!==o.attr("src")||o.is("img")&&o.attr("src",s.placeholder),o.one("appear",function(){var t;this.loaded||(s.appear&&(t=n.length,s.appear.call(i,t,s)),r("<img />").one("load",function(){var t=o.attr("data-"+s.data_attribute),e=o.attr("data-"+s.data_srcset);t!=o.attr("src")&&o.is("img")&&(o.attr("src",t),null!=e&&o.attr("srcset",e)),i.loaded=!0;e=r.grep(n,function(t){return!t.loaded});n=r(e);e=r.grep(n,function(t){return r(t).attr("data-"+s.data_attribute)==o.attr("data-"+s.data_attribute)});r(e).each(function(){r(this).trigger("appear")}),s.load&&(e=n.length,s.load.call(i,e,s))}).attr({src:o.attr("data-"+s.data_attribute),srcset:o.attr("data-"+s.data_srcset)||""}))}),0!==s.event.indexOf("scroll")&&o.off(s.event).on(s.event,function(){i.loaded||o.trigger("appear")})}),a.off("resize.lazyload").bind("resize.lazyload",function(){e()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&a.on("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&n.each(function(){r(this).trigger("appear")})}),r(function(){e()}),this},r.belowthefold=function(t,e){return(void 0===e.container||e.container===o?(o.innerHeight||a.height())+a.scrollTop():r(e.container).offset().top+r(e.container).height())<=r(t).offset().top-e.threshold},r.rightoffold=function(t,e){return(void 0===e.container||e.container===o?a.width()+a.scrollLeft():r(e.container).offset().left+r(e.container).width())<=r(t).offset().left-e.threshold},r.abovethetop=function(t,e){return(void 0===e.container||e.container===o?a.scrollTop():r(e.container).offset().top)>=r(t).offset().top+e.threshold+r(t).height()},r.leftofbegin=function(t,e){return(void 0===e.container||e.container===o?a.scrollLeft():r(e.container).offset().left)>=r(t).offset().left+e.threshold+r(t).width()},r.inviewport=function(t,e){return!(r.rightoffold(t,e)||r.leftofbegin(t,e)||r.belowthefold(t,e)||r.abovethetop(t,e))},r.extend(r.expr[":"],{"below-the-fold":function(t){return r.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!r.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return r.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!r.rightoffold(t,{threshold:0})},"in-viewport":function(t){return r.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!r.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return r.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!r.rightoffold(t,{threshold:0})}})},function(){var c;(c=jQuery).cookie=function(t,e,i){var o,n;if(1<arguments.length&&(!/Object/.test(Object.prototype.toString.call(e))||null==e))return i=c.extend({},i),null!=e||(i.expires=-1),"number"==typeof i.expires&&(o=i.expires,(n=i.expires=new Date).setDate(n.getDate()+o)),e=String(e),document.cookie=[encodeURIComponent(t),"=",i.raw?e:encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("");for(var s,r=(i=e||{}).raw?function(t){return t}:decodeURIComponent,a=document.cookie.split("; "),l=0;s=a[l]&&a[l].split("=");l++)if(r(s[0])===t)return r(s[1]||"");return null},c.fn.cookieBar=function(t){var e=c.extend({closeButton:"none",hideOnClose:!0,secure:!1,path:"/",domain:""},t);return this.each(function(){var t=c(this);t.hide(),"none"==e.closeButton&&(t.append('<a class="cookiebar-close">Continue</a>'),c.extend(e,{closeButton:".cookiebar-close"})),"hide"!=c.cookie("cookiebar")&&t.show(),t.find(e.closeButton).click(function(){return e.hideOnClose&&t.hide(),c.cookie("cookiebar","hide",{path:e.path,secure:e.secure,domain:e.domain,expires:30}),t.trigger("cookieBar-close"),!1})})},c.cookieBar=function(t){c("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>'),c(".cookie-message").cookieBar(t)}}
vendor: 6,234 bytes, line 233
233,function(t,e,i){var o=[i(0)];void 0===(i="function"==typeof(i=function(c){function t(){}function d(t,e){f.ev.on("mfp"+t+b,e)}function u(t,e,i,o){var n=document.createElement("div");return n.className="mfp-"+t,i&&(n.innerHTML=i),o?e&&e.appendChild(n):(n=c(n),e&&n.appendTo(e)),n}function p(t,e){f.ev.triggerHandler("mfp"+t,e),f.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),f.st.callbacks[t]&&f.st.callbacks[t].apply(f,c.isArray(e)?e:[e]))}function h(t){return t===e&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=c(f.st.closeMarkup.replace("%title%",f.st.tClose)),e=t),f.currTemplate.closeBtn}function s(){c.magnificPopup.instance||((f=new t).init(),c.magnificPopup.instance=f)}var f,o,m,n,g,e,l="Close",v="BeforeClose",y="MarkupParse",w="Open",b=".mfp",x="mfp-ready",i="mfp-removing",r="mfp-prevent-close",a=!!window.jQuery,S=c(window);t.prototype={constructor:t,init:function(){var t=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(t),f.isIOS=/iphone|ipad|ipod/gi.test(t),f.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),m=c(document),f.popupsCache={}},open:function(t){if(!1===t.isObj){f.items=t.items.toArray(),f.index=0;for(var e,i=t.items,o=0;o<i.length;o++)if((e=i[o]).parsed&&(e=e.el[0]),e===t.el[0]){f.index=o;break}}else f.items=c.isArray(t.items)?t.items:[t.items],f.index=t.index||0;if(!f.isOpen){f.types=[],g="",t.mainEl&&t.mainEl.length?f.ev=t.mainEl.eq(0):f.ev=m,t.key?(f.popupsCache[t.key]||(f.popupsCache[t.key]={}),f.currTemplate=f.popupsCache[t.key]):f.currTemplate={},f.st=c.extend(!0,{},c.magnificPopup.defaults,t),f.fixedContentPos="auto"===f.st.fixedContentPos?!f.probablyMobile:f.st.fixedContentPos,f.st.modal&&(f.st.closeOnContentClick=!1,f.st.closeOnBgClick=!1,f.st.showCloseBtn=!1,f.st.enableEscapeKey=!1),f.bgOverlay||(f.bgOverlay=u("bg").on("click"+b,function(){f.close()}),f.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(t){f._checkIfClose(t.target)&&f.close()}),f.container=u("container",f.wrap)),f.contentContainer=u("content"),f.st.preloader&&(f.preloader=u("preloader",f.container,f.st.tLoading));var n=c.magnificPopup.modules;for(o=0;o<n.length;o++){var s=(s=n[o]).charAt(0).toUpperCase()+s.slice(1);f["init"+s].call(f)}p("BeforeOpen"),f.st.showCloseBtn&&(f.st.closeBtnInside?(d(y,function(t,e,i,o){i.close_replaceWith=h(o.type)}),g+=" mfp-close-btn-in"):f.wrap.append(h())),f.st.alignTop&&(g+=" mfp-align-top"),f.fixedContentPos?f.wrap.css({overflow:f.st.overflowY,overflowX:"hidden",overflowY:f.st.overflowY}):f.wrap.css({top:S.scrollTop(),position:"absolute"}),!1!==f.st.fixedBgPos&&("auto"!==f.st.fixedBgPos||f.fixedContentPos)||f.bgOverlay.css({height:m.height(),position:"absolute"}),f.st.enableEscapeKey&&m.on("keyup"+b,function(t){27===t.keyCode&&f.close()}),S.on("resize"+b,function(){f.updateSize()}),f.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&f.wrap.addClass(g);var r=f.wH=S.height(),a={};f.fixedContentPos&&f._hasScrollBar(r)&&((l=f._getScrollbarSize())&&(a.marginRight=l)),f.fixedContentPos&&(f.isIE7?c("body, html").css("overflow","hidden"):a.overflow="hidden");var l=f.st.mainClass;return f.isIE7&&(l+=" mfp-ie7"),l&&f._addClassToMFP(l),f.updateItemHTML(),p("BuildControls"),c("html").css(a),f.bgOverlay.add(f.wrap).prependTo(f.st.prependTo||c(document.body)),f._lastFocusedEl=document.activeElement,setTimeout(function(){f.content?(f._addClassToMFP(x),f._setFocus()):f.bgOverlay.addClass(x),m.on("focusin"+b,f._onFocusIn)},16),f.isOpen=!0,f.updateSize(r),p(w),t}f.updateItemHTML()},close:function(){f.isOpen&&(p(v),f.isOpen=!1,f.st.removalDelay&&!f.isLowIE&&f.supportsTransition?(f._addClassToMFP(i),setTimeout(function(){f._close()},f.st.removalDelay)):f._close())},_close:function(){p(l);var t=i+" "+x+" ";f.bgOverlay.detach(),f.wrap.detach(),f.container.empty(),f.st.mainClass&&(t+=f.st.mainClass+" "),f._removeClassFromMFP(t),f.fixedContentPos&&(t={marginRight:""},f.isIE7?c("body, html").css("overflow",""):t.overflow="",c("html").css(t)),m.off("keyup.mfp focusin"+b),f.ev.off(b),f.wrap.attr("class","mfp-wrap").removeAttr("style"),f.bgOverlay.attr("class","mfp-bg"),f.container.attr("class","mfp-container"),!f.st.showCloseBtn||f.st.closeBtnInside&&!0!==f.currTemplate[f.currItem.type]||f.currTemplate.closeBtn&&f.currTemplate.closeBtn.detach(),f.st.autoFocusLast&&f._lastFocusedEl&&c(f._lastFocusedEl).focus(),f.currItem=null,f.content=null,f.currTemplate=null,f.prevHeight=0,p("AfterClose")},updateSize:function(t){var e;f.isIOS?(e=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*e,f.wrap.css("height",e),f.wH=e):f.wH=t||S.height(),f.fixedContentPos||f.wrap.css("height",f.wH),p("Resize")},updateItemHTML:function(){var t=f.items[f.index];f.contentContainer.detach(),f.content&&f.content.detach(),t.parsed||(t=f.parseEl(f.index));var e=t.type;p("BeforeChange",[f.currItem?f.currItem.type:"",e]),f.currItem=t,f.currTemplate[e]||(i=!!f.st[e]&&f.st[e].markup,p("FirstMarkupParse",i),f.currTemplate[e]=!i||c(i)),n&&n!==t.type&&f.container.removeClass("mfp-"+n+"-holder");var i=f["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,f.currTemplate[e]);f.appendContent(i,e),t.preloaded=!0,p("Change",t),n=t.type,f.container.prepend(f.contentContainer),p("AfterChange")},appendContent:function(t,e){(f.content=t)?f.st.showCloseBtn&&f.st.closeBtnInside&&!0===f.currTemplate[e]?f.content.find(".mfp-close").length||f.content.append(h()):f.content=t:f.content="",p("BeforeAppend"),f.container.addClass("mfp-"+e+"-holder"),f.contentContainer.append(f.content)},parseEl:function(t){var e,i=f.items[t];if((i=i.tagName?{el:c(i)}:(e=i.type,{data:i,src:i.src})).el){for(var o=f.types,n=0;n<o.length;n++)if(i.el.hasClass("mfp-"+o[n])){e=o[n];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||f.st.type||"inline",i.index=t,i.parsed=!0,f.items[t]=i,p("ElementParse",i),f.items[t]},addGroup:function(e,i){function t(t){t.mfpEl=this,f._openClick(t,e,
233i)}var o="click.magnificPopup";(i=i||{}).mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,t)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,t):(i.items=e).off(o).on(o,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i:c.magnificPopup.defaults).midClick||!(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){var o=(void 0!==i.disableOn?i:c.magnificPopup.defaults).disableOn;if(o)if(c.isFunction(o)){if(!o.call(f))return!0}else if(S.width()<o)return!0;t.type&&(t.preventDefault(),f.isOpen&&t.stopPropagation()),i.el=c(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),f.open(i)}},updateStatus:function(t,e){var i;f.preloader&&(o!==t&&f.container.removeClass("mfp-s-"+o),e||"loading"!==t||(e=f.st.tLoading),p("UpdateStatus",i={status:t,text:e}),t=i.status,e=i.text,f.preloader.html(e),f.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),f.container.addClass("mfp-s-"+t),o=t)},_checkIfClose:function(t){if(!c(t).hasClass(r)){var e=f.st.closeOnContentClick,i=f.st.closeOnBgClick;if(e&&i)return!0;if(!f.content||c(t).hasClass("mfp-close")||f.preloader&&t===f.preloader[0])return!0;if(t===f.content[0]||c.contains(f.content[0],t)){if(e)return!0}else if(i&&c.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){f.bgOverlay.addClass(t),f.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),f.wrap.removeClass(t)},_hasScrollBar:function(t){return(f.isIE7?m.height():document.body.scrollHeight)>(t||S.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).focus()},_onFocusIn:function(t){return t.target===f.wrap[0]||c.contains(f.wrap[0],t.target)?void 0:(f._setFocus(),!1)},_parseMarkup:function(n,t,e){var s;e.data&&(t=c.extend(e.data,t)),p(y,[n,t,e]),c.each(t,function(t,e){return void 0===e||!1===e||void(1<(s=t.split("_")).length?0<(i=n.find(b+"-"+s[0])).length&&("replaceWith"===(o=s[1])?i[0]!==e[0]&&i.replaceWith(e):"img"===o?i.is("img")?i.attr("src",e):i.replaceWith(c("<img>").attr("src",e).attr("class",i.attr("class"))):i.attr(s[1],e)):n.find(b+"-"+t).html(e));var i,o})},_getScrollbarSize:function(){var t;return void 0===f.scrollbarSize&&((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),f.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),f.scrollbarSize}},c.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return s(),(t=t?c.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(c.magnificPopup.defaults[t]=e.options),c.extend(this.proto,e.proto),this.modules.push(t)},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}},c.fn.magnificPopup=function(t){s();var e,i,o,n=c(this);return"string"==typeof t?"open"===t?(e=a?n.data("magnificPopup"):n[0].magnificPopup,i=parseInt(arguments[1],10)||0,o=e.items?e.items[i]:(o=n,e.delegate&&(o=o.find(e.delegate)),o.eq(i)),f._openClick({mfpEl:o},n,e)):f.isOpen&&f[t].apply(f,Array.prototype.slice.call(arguments,1)):(t=c.extend(!0,{},t),a?n.data("magnificPopup",t):n[0].magnificPopup=t,f.addGroup(n,t)),n};function T(){C&&(_.after(C.addClass(k)).detach(),C=null)}var k,_,C,E="inline";c.magnificPopup.registerModule(E,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(E),d(l+"."+E,function(){T()})},getInline:function(t,e){if(T(),t.src){var i,o=f.st.inline,n=c(t.src);return n.length?((i=n[0].parentNode)&&i.tagName&&(_||(k=o.hiddenClass,_=u(k),k="mfp-"+k),C=n.after(_).detach().removeClass(k)),f.updateStatus("ready")):(f.updateStatus("error",o.tNotFound),n=c("<div>")),t.inlineElement=n}return f.updateStatus("ready"),f._parseMarkup(e,{},t),e}}});function z(){O&&c(document.body).removeClass(O)}
233function A(){z(),f.req&&f.req.abort()}var O,I,P,$="ajax";c.magnificPopup.registerModule($,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){f.types.push($),O=f.st.ajax.cursor,d(l+"."+$,A),d("BeforeChange."+$,A)},getAjax:function(o){O&&c(document.body).addClass(O),f.updateStatus("loading");var t=c.extend({url:o.src,success:function(t,e,i){i={data:t,xhr:i};p("ParseAjax",i),f.appendContent(c(i.data),$),o.finished=!0,z(),f._setFocus(),setTimeout(function(){f.wrap.addClass(x)},16),f.updateStatus("ready"),p("AjaxContentAdded")},error:function(){z(),o.finished=o.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",o.src))}},f.st.ajax.settings);return f.req=c.ajax(t),""}}}),c.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(){var t=f.st.image,e=".image";f.types.push("image"),d(w+e,function(){"image"===f.currItem.type&&t.cursor&&c(document.body).addClass(t.cursor)}),d(l+e,function(){t.cursor&&c(document.body).removeClass(t.cursor),S.off("resize"+b)}),d("Resize"+e,f.resizeImage),f.isLowIE&&d("AfterChange",f.resizeImage)},resizeImage:function(){var t,e=f.currItem;e&&e.img&&f.st.image.verticalFit&&(t=0,f.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",f.wH-t))},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,I&&clearInterval(I),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(f.content&&f.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(t){I&&clearInterval(I),I=setInterval(function(){return 0<o.naturalWidth?void f._onImageHasSize(e):(200<i&&clearInterval(I),void(3==++i?n(10):40===i?n(50):100===i&&n(500)))},t)};n(1)},getImage:function(t,e){var i,o=0,n=function(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,p("ImageLoadComplete")):++o<200?setTimeout(n,100):s())},s=function(){t&&(t.img.off(".mfploader"),t===f.currItem&&(f._onImageHasSize(t),f.updateStatus("error",r.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)},r=f.st.image,a=e.find(".mfp-img");return a.length&&((i=document.createElement("img")).className="mfp-img",t.el&&t.el.find("img").length&&(i.alt=t.el.find("img").attr("alt")),t.img=c(i).on("load.mfploader",n).on("error.mfploader",s),i.src=t.src,a.is("img")&&(t.img=t.img.clone()),0<(i=t.img[0]).naturalWidth?t.hasSize=!0:i.width||(t.hasSize=!1)),f._parseMarkup(e,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;
233var e=f.st.image.titleSrc;if(e){if(c.isFunction(e))return e.call(f,t);if(t.el)return t.el.attr(e)||""}return""}(t),img_replaceWith:t.img},t),f.resizeImage(),t.hasSize?(I&&clearInterval(I),t.loadError?(e.addClass("mfp-loading"),f.updateStatus("error",r.tError.replace("%url%",t.src))):(e.removeClass("mfp-loading"),f.updateStatus("ready"))):(f.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,e.addClass("mfp-loading"),f.findImageSize(t))),e}}}),c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,e,i,o,n,s,r=f.st.zoom,a=".zoom";r.enabled&&f.supportsTransition&&(o=r.duration,n=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+r.duration/1e3+"s "+r.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},t="transition";return o["-webkit-"+t]=o["-moz-"+t]=o["-o-"+t]=o[t]=i,e.css(o),e},s=function(){f.content.css("visibility","visible")},d("BuildControls"+a,function(){f._allowZoom()&&(clearTimeout(e),f.content.css("visibility","hidden"),(t=f._getItemToZoom())?((i=n(t)).css(f._getOffset()),f.wrap.append(i),e=setTimeout(function(){i.css(f._getOffset(!0)),e=setTimeout(function(){s(),setTimeout(function(){i.remove(),t=i=null,p("ZoomAnimationEnded")},16)},o)},16)):s())}),d(v+a,function(){if(f._allowZoom()){if(clearTimeout(e),f.st.removalDelay=o,!t){if(!(t=f._getItemToZoom()))return;i=n(t)}i.css(f._getOffset(!0)),f.wrap.append(i),f.content.css("visibility","hidden"),setTimeout(function(){i.css(f._getOffset())},16)}}),d(l+a,function(){f._allowZoom()&&(s(),i&&i.remove(),t=null)}))},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(t){var e,i=(e=t?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem)).offset(),o=parseInt(e.css("padding-top"),10),t=parseInt(e.css("padding-bottom"),10);i.top-=c(window).scrollTop()-o;o={width:e.width(),height:(a?e.innerHeight():e[0].offsetHeight)-t-o};return void 0===P&&(P=void 0!==document.createElement("p").style.MozTransform),P?o["-moz-transform"]=o.transform="translate("+i.left+"px,"+i.top+"px)":(o.left=i.left,o.top=i.top),o}}});function W(t){var e;!f.currTemplate[L]||(e=f.currTemplate[L].find("iframe")).length&&(t||(e[0].src="//about:blank"),f.isIE8&&e.css("display",t?"block":"none"))}var L="iframe";c.magnificPopup.registerModule(L,{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(){f.types.push(L),d("BeforeChange",function(t,e,i){e!==i&&(e===L?W():i===L&&W(!0))}),d(l+"."+L,function(){W()})},getIframe:function(t,e){var i=t.src,o=f.st.iframe;c.each(o.patterns,function(){return-1<i.indexOf(this.index)?(this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1):void 0});var n={};return o.srcAction&&(n[o.srcAction]=i),f._parseMarkup(e,n,t),f.updateStatus("ready"),e}}});function j(t){var e=f.items.length;return e-1<t?t-e:t<0?e+t:t}function D(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)}c.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(){var s=f.st.gallery,t=".mfp-gallery";return f.direction=!0,!(!s||!s.enabled)&&(g+=" mfp-gallery",d(w+t,function(){s.navigateByImgClick&&f.wrap.on("click"+t,".mfp-img",function(){return 1<f.items.length?(f.next(),!1):void 0}
233),m.on("keydown"+t,function(t){37===t.keyCode?f.prev():39===t.keyCode&&f.next()})}),d("UpdateStatus"+t,function(t,e){e.text&&(e.text=D(e.text,f.currItem.index,f.items.length))}),d(y+t,function(t,e,i,o){var n=f.items.length;i.counter=1<n?D(s.tCounter,o.index,n):""}),d("BuildControls"+t,function(){var t,e;1<f.items.length&&s.arrows&&!f.arrowLeft&&(e=s.arrowMarkup,t=f.arrowLeft=c(e.replace(/%title%/gi,s.tPrev).replace(/%dir%/gi,"left")).addClass(r),e=f.arrowRight=c(e.replace(/%title%/gi,s.tNext).replace(/%dir%/gi,"right")).addClass(r),t.click(function(){f.prev()}),e.click(function(){f.next()}),f.container.append(t.add(e)))}),d("Change"+t,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),void d(l+t,function(){m.off(t),f.wrap.off("click"+t),f.arrowRight=f.arrowLeft=null}))},next:function(){f.direction=!0,f.index=j(f.index+1),f.updateItemHTML()},prev:function(){f.direction=!1,f.index=j(f.index-1),f.updateItemHTML()},goTo:function(t){f.direction=t>=f.index,f.index=t,f.updateItemHTML()},preloadNearbyImages:function(){for(var t=f.st.gallery.preload,e=Math.min(t[0],f.items.length),i=Math.min(t[1],f.items.length),o=1;o<=(f.direction?i:e);o++)f._preloadItem(f.index+o);for(o=1;o<=(f.direction?e:i);o++)f._preloadItem(f.index-o)},_preloadItem:function(t){var e;t=j(t),f.items[t].preloaded||((e=f.items[t]).parsed||(e=f.parseEl(t)),p("LazyLoad",e),"image"===e.type&&(e.img=c('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,p("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0)}}});var H="retina";c.magnificPopup.registerModule(H,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){var i,o;1<window.devicePixelRatio&&(i=f.st.retina,o=i.ratio,1<(o=isNaN(o)?o():o)&&(d("ImageHasSize."+H,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+H,function(t,e){e.src=i.replaceSrc(e,o)})))}}}),s()})?i.apply(e,o):i)||(t.exports=i)},function(){var r,i;"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),r=jQuery,window,document,i={init:function(t,e){var i=this;i.elem=e,i.$elem=r(e),i.imageSrc=i.$elem.data("zoom-image")?i.$elem.data("zoom-image"):i.$elem.attr("src"),i.options=r.extend({},r.fn.elevateZoom.options,t),i.options.tint&&(i.options.lensColour="none",i.options.lensOpacity="1"),"inner"==i.options.zoomType&&(i.options.showLens=!1),i.$elem.parent().removeAttr("title").removeAttr("alt"),i.zoomImage=i.imageSrc,i.refresh(1),r("#"+i.options.gallery+" a").click(function(t){return i.options.galleryActiveClass&&(r("#"+i.options.gallery+" a").removeClass(i.options.galleryActiveClass),r(this).addClass(i.options.galleryActiveClass)),t.preventDefault(),r(this).data("zoom-image")?i.zoomImagePre=r(this).data("zoom-image"):i.zoomImagePre=r(this).data("image"),i.swaptheimage(r(this).data("image"),i.zoomImagePre),!1})},refresh:function(t){var e=this;setTimeout(function(){e.fetch(e.imageSrc)},t||e.options.refresh)},fetch:function(t){var e=this,i=new Image;i.onload=function(){e.largeWidth=i.width,e.largeHeight=i.height,e.startZoom(),e.currentImage=e.imageSrc,e.options.onZoomedImageLoaded(e.$elem)},i.src=t},startZoom:function(){var t,i=this;i.nzWidth=i.$elem.width(),i.nzHeight=i.$elem.height(),i.isWindowActive=!1,i.isLensActive=!1,i.isTintActive=!1,i.overWindow=!1,i.options.imageCrossfade&&(i.zoomWrap=i.$elem.wrap('<div style="height:'+i.nzHeight+"px;width:"+i.nzWidth+'px;" class="zoomWrapper" />'),i.$elem.css("position","absolute")),i.zoomLock=1,i.scrollingLock=!1,i.changeBgSize=!1,i.currentZoomLevel=i.options.zoomLevel,i.nzOffset=i.$elem.offset(),i.widthRatio=i.largeWidth/i.currentZoomLevel/i.nzWidth,i.heightRatio=i.largeHeight/i.currentZoomLevel/i.nzHeight,"window"==i.options.zoomType&&(i.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(i.options.zoomWindowBgColour)+";width: "+String(i.options.zoomWindowWidth)+"px;height: "+String(i.options.zoomWindowHeight)+"px;float: left;background-size: "+i.largeWidth/i.currentZoomLevel+"px "+i.largeHeight/i.currentZoomLevel+"px;display: none;z-index:100;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==i.options.zoomType&&(t=i.$elem.css("border-left-width"),i.zoomWindowStyle="overflow: hidden;margin-left: "+String(t)+";margin-top: "+String(t)+";background-position: 0px 0px;width: "+String(i.nzWidth)+"px;height: "+String(i.nzHeight)+"px;float: left;display: none;cursor:"+i.options.cursor+";px solid "+i.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"window"==i.options.zoomType&&(lensHeight=i.nzHeight<i.options.zoomWindowWidth/i.widthRatio?i.nzHeight:String(i.options.zoomWindowHeight/i.heightRatio),lensWidth=i.largeWidth<i.options.zoomWindowWidth?i.nzWidth:i.options.zoomWindowWidth/i.widthRatio,i.lensStyle="background-position: 0px 0px;width: "+String(i.options.zoomWindowWidth/i.widthRatio)+"px;height: "+String(i.options.zoomWindowHeight/i.heightRatio)+"px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:"+i.options.lensOpacity+";filter: alpha(opacity = "+100*i.options.lensOpacity+"); zoom:1;width:"+lensWidth+"px;height:"+lensHeight+"px;background-color:"+i.options.lensColour+";cursor:"+i.options.cursor+";border: "+i.options.lensBorderSize+"px solid "+i.options.lensBorderColour+";background-repeat: no-repeat;position: absolute;"),i.tintStyle="display: block;position: absolute;background-color: "+i.options.tintColour+";filter:alpha(opacity=0);opacity: 0;width: "+i.nzWidth+"px;height: "+i.nzHeight+"px;",i.lensRound="","lens"==i.options.zoomType&&(i.lensStyle="background-position: 0px 0px;float: left;display: none;border: "+String(i.options.borderSize)+"px solid "+i.options.borderColour+";width:"+String(i.options.lensSize)+"px;height:"+String(i.options.lensSize)+"px;background-repeat: no-repeat;position: absolute;"),"round"==i.options.lensShape&&(i.lensRound="border-top-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-top-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-left-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;border-bottom-right-radius: "+String(i.options.lensSize/2+i.options.borderSize)+"px;
233"),i.zoomContainer=r('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+i.nzOffset.left+"px;top:"+i.nzOffset.top+"px;height:"+i.nzHeight+"px;width:"+i.nzWidth+'px;"></div>'),r("body").append(i.zoomContainer),i.options.containLensZoom&&"lens"==i.options.zoomType&&i.zoomContainer.css("overflow","hidden"),"inner"!=i.options.zoomType&&(i.zoomLens=r("<div class='zoomLens' style='"+i.lensStyle+i.lensRound+"'> </div>").appendTo(i.zoomContainer).click(function(){i.$elem.trigger("click")}),i.options.tint&&(i.tintContainer=r("<div/>").addClass("tintContainer"),i.zoomTint=r("<div class='zoomTint' style='"+i.tintStyle+"'></div>"),i.zoomLens.wrap(i.tintContainer),i.zoomTintcss=i.zoomLens.after(i.zoomTint),i.zoomTintImage=r('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+i.nzWidth+"px; height: "+i.nzHeight+'px;" src="'+i.imageSrc+'">').appendTo(i.zoomLens).click(function(){i.$elem.trigger("click")}))),isNaN(i.options.zoomWindowPosition)?i.zoomWindow=r("<div style='z-index:999;left:"+i.windowOffsetLeft+"px;top:"+i.windowOffsetTop+"px;"+i.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo("body").click(function(){i.$elem.trigger("click")}):i.zoomWindow=r("<div style='z-index:999;left:"+i.windowOffsetLeft+"px;top:"+i.windowOffsetTop+"px;"+i.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo(i.zoomContainer).click(function(){i.$elem.trigger("click")}),i.zoomWindowContainer=r("<div/>").addClass("zoomWindowContainer").css("width",i.options.zoomWindowWidth),i.zoomWindow.wrap(i.zoomWindowContainer),"lens"==i.options.zoomType&&i.zoomLens.css({backgroundImage:"url('"+i.imageSrc+"')"}),"window"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+i.imageSrc+"')"}),"inner"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+i.imageSrc+"')"}),i.$elem.bind("touchmove",function(t){t.preventDefault(),i.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),i.zoomContainer.bind("touchmove",function(t){"inner"==i.options.zoomType&&i.showHideWindow("show"),t.preventDefault(),i.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),i.zoomContainer.bind("touchend",function(){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")}),i.$elem.bind("touchend",function(){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")}),i.options.showLens&&(i.zoomLens.bind("touchmove",function(t){t.preventDefault(),i.setPosition(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])}),i.zoomLens.bind("touchend",function(){i.showHideWindow("hide"),i.options.showLens&&i.showHideLens("hide"),i.options.tint&&"inner"!=i.options.zoomType&&i.showHideTint("hide")})),i.$elem.bind("mousemove",function(t){0==i.overWindow&&i.setElements("show"),i.lastX===t.clientX&&i.lastY===t.clientY||(i.setPosition(t),i.currentLoc=t),i.lastX=t.clientX,i.lastY=t.clientY}),i.zoomContainer.bind("mousemove",function(t){0==i.overWindow&&i.setElements("show"),i.lastX===t.clientX&&i.lastY===t.clientY||(i.setPosition(t),i.currentLoc=t),i.lastX=t.clientX,i.lastY=t.clientY}),"inner"!=i.options.zoomType&&i.zoomLens.bind("mousemove",function(t){i.lastX===t.clientX&&i.lastY===t.clientY||(i.setPosition(t),i.currentLoc=t),i.lastX=t.clientX,i.lastY=t.clientY}),i.options.tint&&"inner"!=i.options.zoomType&&i.zoomTint.bind("mousemove",function(t){i.lastX===t.clientX&&i.lastY===t.clientY||(i.setPosition(t),i.currentLoc=t),i.lastX=t.clientX,i.lastY=t.clientY}),"inner"==i.options.zoomType&&i.zoomWindow.bind("mousemove",function(t){i.lastX===t.clientX&&i.lastY===t.clientY||(i.setPosition(t),i.currentLoc=t),i.lastX=t.clientX,i.lastY=t.clientY}),i.zoomContainer.add(i.$elem).mouseenter(function(){0==i.overWindow&&i.setElements("show")}).mouseleave(function(){i.scrollLock||i.setElements("hide")}),"inner"!=i.options.zoomType&&i.zoomWindow.mouseenter(function(){i.overWindow=!0,i.setElements("hide")}).mouseleave(function(){i.overWindow=!1}),i.minZoomLevel=i.options.minZoomLevel||2*i.options.scrollZoomIncrement,i.options.scrollZoom&&i.zoomContainer.add(i.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(t){i.scrollLock=!0,clearTimeout(r.data(this,"timer")),r.data(this,"timer",setTimeout(function(){i.scrollLock=!1},250));var e=t.originalEvent.wheelDelta||-1*t.originalEvent.detail;return t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),0<e/120?i.currentZoomLevel>=i.minZoomLevel&&i.changeZoomLevel(i.currentZoomLevel-i.options.scrollZoomIncrement):(!i.options.maxZoomLevel||i.currentZoomLevel<=i.options.maxZoomLevel)&&i.changeZoomLevel(parseFloat(i.currentZoomLevel)+i.options.scrollZoomIncrement),!1})},setElements:function(t){if(!this.options.zoomEnabled)return!1;"show"==t&&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"==t&&("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"))},setPosition:function(t){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:String(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(t.pageX-this.nzOffset.left),this.mouseTop=p
233arseInt(t.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),this.mouseLeft<=0||this.mouseTop<0||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*((t.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((t.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(t)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(t),"window"==this.options.zoomType&&this.setWindowPostition(t),"inner"==this.options.zoomType&&this.setWindowPostition(t),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(t){"show"!=t||this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0),"hide"==t&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(t){"show"!=t||this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0),"hide"==t&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(t){"show"!=t||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"==t&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(){},setWindowPostition:function(t){var e=this;if(isNaN(e.options.zoomWindowPosition))e.externalContainer=r("#"+e.options.zoomWindowPosition),e.externalContainerWidth=e.externalContainer.width(),e.externalContainerHeight=e.externalContainer.height(),e.externalContainerOffset=e.externalContainer.offset(),e.windowOffsetTop=e.externalContainerOffset.top,e.windowOffsetLeft=e.externalContainerOffset.left;else switch(e.options.zoomWindowPosition){case 1:e.windowOffsetTop=e.options.zoomWindowOffety,e.windowOffsetLeft=+e.nzWidth;break;case 2:e.options.zoomWindowHeight>e.nzHeight&&(e.windowOffsetTop=-1*(e.options.zoomWindowHeight/2-e.nzHeight/2),e.windowOffsetLeft=e.nzWidth);break;case 3:e.windowOffsetTop=e.nzHeight-e.zoomWindow.height()-2*e.options.borderSize,e.windowOffsetLeft=e.nzWidth;break;case 4:e.windowOffsetTop=e.nzHeight,e.windowOffsetLeft=e.nzWidth;break;case 5:e.windowOffsetTop=e.nzHeight,e.windowOffsetLeft=e.nzWidth-e.zoomWindow.width()-2*e.options.borderSize;break;case 6:e.options.zoomWindowHeight>e.nzHeight&&(e.windowOffsetTop=e.nzHeight,e.windowOffsetLeft=-1*(e.options.zoomWindowWidth/2-e.nzWidth/2+2*e.options.borderSize));break;case 7:e.windowOffsetTop=e.nzHeight,e.windowOffsetLeft=0;break;case 8:e.windowOffsetTop=e.nzHeight,e.windowOffsetLeft=-1*(e.zoomWindow.width()+2*e.options.borderSize);break;case 9:e.windowOffsetTop=e.nzHeight-e.zoomWindow.height()-2*e.options.borderSize,e.windowOffsetLeft=-1*(e.zoomWindow.width()+2*e.options.borderSize);break;case 10:e.options.zoomWindowHeight>e.nzHeight&&(e.windowOffsetTop=-1*(e.options.zoomWindowHeight/2-e.nzHeight/2),e.windowOffsetLeft=-1*(e.zoomWindow.width()+2*e.options.borderSize));break;case 11:e.windowOffsetTop=e.options.zoomWindowOffety,e.windowOffsetLeft=-1*(e.zoomWindow.width()+2*e.options.borderSize);break;case 12:e.windowOffsetTop=-1*(e.zoomWindow.height()+2*e.options.borderSize),e.windowOffsetLeft=-1*(e.zoomWindow.width()+2*e.options.borderSize);break;case 13:e.windowOffsetTop=-1*(e.zoomWindow.height()+2*e.options.borderSize),e.windowOffsetLeft=0;break;case 14:e.options.zoomWindowHeight>e.nzHeight&&(e.windowOffsetTop=-1*(e.zoomWindow.height()+2*e.options.borderSize),e.windowOffsetLeft=-1*(e.options.zoomWindowWidth/2-e.nzWidth/2+2*e.options.borderSize));break;case 15:e.windowOffsetTop=-1*(e.zoomWindow.height()+2*e.options.borderSize),e.windowOffsetLeft=e.nzWidth-e.zoomWindow.width()-2*e.options.borderSize;break;case 16:e.windowOffsetTop=-1*(e.zoomWindow.height()+2*e.options.borderSize),e.windowOffsetLeft=e.nzWidth;break;default:e.windowOffsetTop=e.options.zoomWindowOffety,e.windowOffsetLeft=e.nzWidth}e.isWindowSet=!0,e.windowOffsetTop+=e.options.zoomWindowOffety,e.windowOffsetLeft+=e.options.zoomWindowOffetx,e.zoomWindow.css({top:e.windowOffsetTop}),e.zoomWindow.css({left:e.windowOffsetLeft}),"inner"==e.options.zoomType&&(e.zoomWindow.css({top:0}),e.zoomWindow.css({left:0})),e.windowLeftPos=String(-1*((t.pageX-e.nzOffset.left)*e.widthRatio-e.zoomWindow.width()/2)),e.
233windowTopPos=String(-1*((t.pageY-e.nzOffset.top)*e.heightRatio-e.zoomWindow.height()/2)),e.Etoppos&&(e.windowTopPos=0),e.Eloppos&&(e.windowLeftPos=0),e.Eboppos&&(e.windowTopPos=-1*(e.largeHeight/e.currentZoomLevel-e.zoomWindow.height())),e.Eroppos&&(e.windowLeftPos=-1*(e.largeWidth/e.currentZoomLevel-e.zoomWindow.width())),e.fullheight&&(e.windowTopPos=0),e.fullwidth&&(e.windowLeftPos=0),"window"!=e.options.zoomType&&"inner"!=e.options.zoomType||(1==e.zoomLock&&(e.widthRatio<=1&&(e.windowLeftPos=0),e.heightRatio<=1&&(e.windowTopPos=0)),e.largeHeight<e.options.zoomWindowHeight&&(e.windowTopPos=0),e.largeWidth<e.options.zoomWindowWidth&&(e.windowLeftPos=0),e.options.easing?(e.xp||(e.xp=0),e.yp||(e.yp=0),e.loop||(e.loop=setInterval(function(){e.xp+=(e.windowLeftPos-e.xp)/e.options.easingAmount,e.yp+=(e.windowTopPos-e.yp)/e.options.easingAmount,e.scrollingLock?(clearInterval(e.loop),e.xp=e.windowLeftPos,e.yp=e.windowTopPos,e.xp=-1*((t.pageX-e.nzOffset.left)*e.widthRatio-e.zoomWindow.width()/2),e.yp=-1*((t.pageY-e.nzOffset.top)*e.heightRatio-e.zoomWindow.height()/2),e.changeBgSize&&(e.nzHeight>e.nzWidth?("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})):("lens"!=e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"})),e.changeBgSize=!1),e.zoomWindow.css({backgroundPosition:e.windowLeftPos+"px "+e.windowTopPos+"px"}),e.scrollingLock=!1,e.loop=!1):(e.changeBgSize&&(e.nzHeight>e.nzWidth?("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})):("lens"!=e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"})),e.changeBgSize=!1),e.zoomWindow.css({backgroundPosition:e.xp+"px "+e.yp+"px"}))},16))):(e.changeBgSize&&(e.nzHeight>e.nzWidth?("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})):("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"}),e.largeHeight/e.newvaluewidth<e.options.zoomWindowHeight?e.zoomWindow.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"}):e.zoomWindow.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})),e.changeBgSize=!1),e.zoomWindow.css({backgroundPosition:e.windowLeftPos+"px "+e.windowTopPos+"px"})))},setTintPosition:function(t){this.nzOffset=this.$elem.offset(),this.tintpos=String(-1*(t.pageX-this.nzOffset.left-this.zoomLens.width()/2)),this.tintposy=String(-1*(t.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)),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"}))},swaptheimage:function(t,e){var i=this,o=new Image;i.options.loadingIcon&&(i.spinner=r("<div style=\"background: url('"+i.options.loadingIcon+"') no-repeat center;height:"+i.nzHeight+"px;width:"+i.nzWidth+'px;z-index: 2000;position: absolute; background-position: center center;"></div>'),i.$elem.after(i.spinner)),i.options.onImageSwap(i.$elem),o.onload=function(){i.largeWidth=o.width,i.largeHeight=o.height,i.zoomImage=e,i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.swapAction(t,e)},o.src=e},swapAction:function(t,e){var i,o,n=this,s=new Image;s.onload=function(){n.nzHeight=s.height,n.nzWidth=s.width,n.options.onImageSwapComplete(n.$elem),n.doneCallback()},s.src=t,n.currentZoomLevel=n.options.zoomLevel,n.options.maxZoomLevel=!1,"lens"==n.options.zoomType&&n.zoomLens.css({backgroundImage:"url('"+e+"')"}),"window"==n.options.zoomType&&n.zoomWindow.css({backgroundImage:"url('"+e+"')"}),"inner"==n.options.zoomType&&n.zoomWindow.css({backgroundImage:"url('"+e+"')"}),n.currentImage=e,n.options.imageCrossfade?(o=(i=n.$elem).clone(),n.$elem.attr("src",t),n.$elem.after(o),o.stop(!0).fadeOut(n.options.imageCrossfade,function(){r(this).remove()}),n.$elem.width("auto").removeAttr("width"),n.$elem.height("auto").removeAttr("height"),i.fadeIn(n.options.imageCrossfade),n.options.tint&&"inner"!=n.options.zoomType&&(o=(i=n.zoomTintImage).clone(),n.zoomTintImage.attr("src",e),n.zoomTintImage.after(o),o.stop(!0).fadeOut(n.options.imageCrossfade,function(){r(this).remove()}),i.fadeIn(n.options.imageCrossfade),n.zoomTint.css({height:n.$elem.height()}),n.zoomTint.css({width:n.$elem.width()})),n.zoomContainer.css("height",n.$elem.height()),n.zoomContainer.css("width",n.$elem.width()),"inner"!=n.options.zoomType||n.options.constrainType||(n.zoomWrap.parent().css("height",n.$elem.height()),n.zoomWrap.parent().css("width",n.$elem.width()),n.zoomWindow.css("height",n.$elem.height()),n.zoomWindow.css("width",n.$elem.width()))):(n.$elem.attr("src",t),n.options.tint&&(n.zoomTintImage.attr("src",e),n.zoomTintImage.attr("height",n.$elem.height()),n.zoomTintImage.css({height:n.$elem.height()}),n.zoomTint.css({height:n.$elem.height()})),n.zoomContainer.css("height",n.$elem.height()),n.zoomContainer.css("width",n.$elem.width())),n.options.imageCrossfade&&(n.zoomWrap.css("height",n.$elem.height()),n.zoomWrap.css("width",n.$elem.width())),n.options.constrainType&&("height"==n.options.constrainType&&(n.zoomContainer.css("height",n.options.constrainSize),n.zoomContainer.css("width","auto"),n.options.imageCrossfade?(n.zoomWrap.css("height",n.options.constrainSize),n.zoomWrap.css("width","auto"),n.c
233onstwidth=n.zoomWrap.width()):(n.$elem.css("height",n.options.constrainSize),n.$elem.css("width","auto"),n.constwidth=n.$elem.width()),"inner"==n.options.zoomType&&(n.zoomWrap.parent().css("height",n.options.constrainSize),n.zoomWrap.parent().css("width",n.constwidth),n.zoomWindow.css("height",n.options.constrainSize),n.zoomWindow.css("width",n.constwidth)),n.options.tint&&(n.tintContainer.css("height",n.options.constrainSize),n.tintContainer.css("width",n.constwidth),n.zoomTint.css("height",n.options.constrainSize),n.zoomTint.css("width",n.constwidth),n.zoomTintImage.css("height",n.options.constrainSize),n.zoomTintImage.css("width",n.constwidth))),"width"==n.options.constrainType&&(n.zoomContainer.css("height","auto"),n.zoomContainer.css("width",n.options.constrainSize),n.options.imageCrossfade?(n.zoomWrap.css("height","auto"),n.zoomWrap.css("width",n.options.constrainSize),n.constheight=n.zoomWrap.height()):(n.$elem.css("height","auto"),n.$elem.css("width",n.options.constrainSize),n.constheight=n.$elem.height()),"inner"==n.options.zoomType&&(n.zoomWrap.parent().css("height",n.constheight),n.zoomWrap.parent().css("width",n.options.constrainSize),n.zoomWindow.css("height",n.constheight),n.zoomWindow.css("width",n.options.constrainSize)),n.options.tint&&(n.tintContainer.css("height",n.constheight),n.tintContainer.css("width",n.options.constrainSize),n.zoomTint.css("height",n.constheight),n.zoomTint.css("width",n.options.constrainSize),n.zoomTintImage.css("height",n.constheight),n.zoomTintImage.css("width",n.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),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:String(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)))},getCurrentImage:function(){return this.zoomImage},getGalleryList:function(){var e=this;return e.gallerylist=[],e.options.gallery?r("#"+e.options.gallery+" a").each(function(){var t="";r(this).data("zoom-image")?t=r(this).data("zoom-image"):r(this).data("image")&&(t=r(this).data("image")),t==e.zoomImage?e.gallerylist.unshift({href:""+t,title:r(this).find("img").attr("title")}):e.gallerylist.push({href:""+t,title:r(this).find("img").attr("title")})}):e.gallerylist.push({href:""+e.zoomImage,title:r(this).find("img").attr("title")}),e.gallerylist},changeZoomLevel:function(t){this.scrollingLock=!0,this.newvalue=parseFloat(t).toFixed(2),newvalue=parseFloat(t).toFixed(2),maxheightnewvalue=this.largeHeight/(this.options.zoomWindowHeight/this.nzHeight*this.nzHeight),maxwidthtnewvalue=this.largeWidth/(this.options.zoomWindowWidth/this.nzWidth*this.nzWidth),"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)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(t){"enable"==t&&(this.options.zoomEnabled=!0),"disable"==t&&(this.options.zoomEnabled=!1)}},r.fn.elevateZoom=function(e){return this.each(function(){var t=Object.create(i);t.init(e,this),r.data(this,"elevateZoom",t)})},r.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZ
233oomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,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:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:r.noop,onZoomedImageLoaded:function(){},onImageSwap:r.noop,onImageSwapComplete:r.noop}},function(){var c=jQuery,t={showEvent:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},colorScheme:"light",color:"3289c7",livePreview:!0,flat:!1,layout:"full",submit:1,submitText:"OK",height:156},d=function(t,e){t=$(t);c(e).data("colpick").fields.eq(1).val(t.r).end().eq(2).val(t.g).end().eq(3).val(t.b).end()},u=function(t,e){c(e).data("colpick").fields.eq(4).val(Math.round(t.h)).end().eq(5).val(Math.round(t.s)).end().eq(6).val(Math.round(t.b)).end()},p=function(t,e){c(e).data("colpick").fields.eq(0).val(L(t))},h=function(t,e){c(e).data("colpick").selector.css("backgroundColor","#"+L({h:t.h,s:100,b:100})),c(e).data("colpick").selectorIndic.css({left:parseInt(c(e).data("colpick").height*t.s/100,10),top:parseInt(c(e).data("colpick").height*(100-t.b)/100,10)})},f=function(t,e){c(e).data("colpick").hue.css("top",parseInt(c(e).data("colpick").height-c(e).data("colpick").height*t.h/360,10))},m=function(t,e){c(e).data("colpick").currentColor.css("backgroundColor","#"+L(t))},g=function(t,e){c(e).data("colpick").newColor.css("backgroundColor","#"+L(t))},v=function(){var t,e=c(this).parent().parent();0<this.parentNode.className.indexOf("_hex")?(e.data("colpick").color=t=I(z(this.value)),d(t,e.get(0)),u(t,e.get(0))):0<this.parentNode.className.indexOf("_hsb")?(e.data("colpick").color=t=C({h:parseInt(e.data("colpick").fields.eq(4).val(),10),s:parseInt(e.data("colpick").fields.eq(5).val(),10),b:parseInt(e.data("colpick").fields.eq(6).val(),10)}),d(t,e.get(0)),p(t,e.get(0))):(e.data("colpick").color=t=P(E({r:parseInt(e.data("colpick").fields.eq(1).val(),10),g:parseInt(e.data("colpick").fields.eq(2).val(),10),b:parseInt(e.data("colpick").fields.eq(3).val(),10)})),p(t,e.get(0)),u(t,e.get(0))),h(t,e.get(0)),f(t,e.get(0)),g(t,e.get(0)),e.data("colpick").onChange.apply(e.parent(),[t,L(t),$(t),e.data("colpick").el,0])},y=function(){c(this).parent().removeClass("colpick_focus")},w=function(){c(this).parent().parent().data("colpick").fields.parent().removeClass("colpick_focus"),c(this).parent().addClass("colpick_focus")},b=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;var e=c(this).parent().find("input").focus(),e={el:c(this).parent().addClass("colpick_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:t.pageY,field:e,val:parseInt(e.val(),10),preview:c(this).parent().parent().data("colpick").livePreview};c(document).mouseup(e,o),c(document).mousemove(e,i)},i=function(t){return t.data.field.val(Math.max(0,Math.min(t.data.max,parseInt(t.data.val-t.pageY+t.data.y,10)))),t.data.preview&&v.apply(t.data.field.get(0),[!0]),!1},o=function(t){return v.apply(t.data.field.get(0),[!0]),t.data.el.removeClass("colpick_slider").find("input").focus(),c(document).off("mouseup",o),c(document).off("mousemove",i),!1},x=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;var e={cal:c(this).parent(),y:c(this).offset().top};c(document).on("mouseup touchend",e,s),c(document).on("mousemove touchmove",e,n);t=("touchstart"==t.type?t.originalEvent.changedTouches[0]:t).pageY;return v.apply(e.cal.data("colpick").fields.eq(4).val(parseInt(360*(e.cal.data("colpick").height-(t-e.y))/e.cal.data("colpick").height,10)).get(0),[e.cal.data("colpick").livePreview]),!1},n=function(t){var e=("touchmove"==t.type?t.originalEvent.changedTouches[0]:t).pageY;return v.apply(t.data.cal.data("colpick").fields.eq(4).val(parseInt(360*(t.data.cal.data("colpick").height-Math.max(0,Math.min(t.data.cal.data("colpick").height,e-t.data.y)))/t.data.cal.data("colpick").height,10)).get(0),[t.data.preview]),!1},s=function(t){return d(t.data.cal.data("colpick").color,t.data.cal.get(0)),p(t.data.cal.data("colpick").color,t.data.cal.get(0)),c(document).off("mouseup touchend",s),c(document).off("mousemove touchmove",n),!1},S=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;var e={cal:c(this).parent(),pos:c(this).offset()};e.preview=e.cal.data("colpick").livePreview,c(document).on("mouseup touchend",e,a),c(document).on("mousemove touchmove",e,r);var i=t.pageX,o=t.pageY;return"touchstart"==t.type&&(i=t.originalEvent.changedTouches[0].pageX,o=t.originalEvent.changedTouches[0].pageY),v.apply(e.cal.data("colpick").fields.eq(6).val(parseInt(100*(e.cal.data("colpick").height-(o-e.pos.top))/e.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*(i-e.pos.left)/e.cal.data("colpick").height,10)).get(0),[e.preview]),!1},r=function(t){var e=t.pageX,i=t.pageY;return"touchmove"==t.type&&(e=t.originalEvent.changedTouches[0].pageX,i=t.originalEvent.changedTouches[0].pageY),v.apply(t.data.cal.data("colpick").fields.eq(6).val(parseInt(100*(t.data.cal.data("colpick").height-Math.max(0,Math.min(t.data.cal.data("colpick").height,i-t.data.pos.top)))/t.data.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(t.data.cal.data("colpick").height,e-t.data.pos.left))/t.data.cal.data("colpick").height,10)).get(0),[t.data.preview]),!1},a=function(t){return d(t.data.cal.data("colpick").color,t.data.cal.get(0)),p(t.data.cal.data("colpick").color,t.data.cal.get(0)),c(document).off("mouseup touchend",a),c(document).off("mousemove touchmove",r),!1},T=function(){var t=c(this).parent(),e=t.data("colpick").color;t.data("colpick").origColor=e,m(e,t.get(0)),t.data("colpick").onSubmit(e,L(e),$(e),t.data("colpick").el)},k=function(t){t.stopPropagation();
233var e=c("#"+c(this).data("colpickid"));e.data("colpick").onBeforeShow.apply(this,[e.get(0)]);var i=c(this).offset(),o=i.top-c(window).scrollTop(),n=i.left-3,t=_(),i=e.width();n+i>t.l+t.w&&(n-=i),e.css({left:n+"px",top:o+"px"}),0!=e.data("colpick").onShow.apply(this,[e.get(0)])&&e.show(),c("html").mousedown({cal:e},l),e.mousedown(function(t){t.stopPropagation()})},l=function(t){0!=t.data.cal.data("colpick").onHide.apply(this,[t.data.cal.get(0)])&&t.data.cal.hide(),c("html").off("mousedown",l)},_=function(){var t="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(t?document.documentElement:document.body).scrollLeft,w:window.innerWidth||(t?document.documentElement:document.body).clientWidth}},C=function(t){return{h:Math.min(360,Math.max(0,t.h)),s:Math.min(100,Math.max(0,t.s)),b:Math.min(100,Math.max(0,t.b))}},E=function(t){return{r:Math.min(255,Math.max(0,t.r)),g:Math.min(255,Math.max(0,t.g)),b:Math.min(255,Math.max(0,t.b))}},z=function(t){var e=6-t.length;if(0<e){for(var i=[],o=0;o<e;o++)i.push("0");i.push(t),t=i.join("")}return t},A=function(){var t=c(this).parent(),e=t.data("colpick").origColor;t.data("colpick").color=e,d(e,t.get(0)),p(e,t.get(0)),u(e,t.get(0)),h(e,t.get(0)),f(e,t.get(0)),g(e,t.get(0))},e={init:function(l){if("string"==typeof(l=c.extend({},t,l||{})).color)l.color=I(l.color);else if(null!=l.color.r&&null!=l.color.g&&null!=l.color.b)l.color=P(l.color);else{if(null==l.color.h||null==l.color.s||null==l.color.b)return this;l.color=C(l.color)}return this.each(function(){if(!c(this).data("colpickid")){var t=c.extend({},l);t.origColor=l.color;var e="collorpicker_"+parseInt(1e3*Math.random());c(this).attr("data-colpickid",e);var i=c('<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>').attr("id",e);i.addClass("colpick_"+t.layout+(t.submit?"":" colpick_"+t.layout+"_ns")),"light"!=t.colorScheme&&i.addClass("colpick_"+t.colorScheme),i.find("div.colpick_submit").html(t.submitText).click(T),t.fields=i.find("input").change(v).blur(y).focus(w),i.find("div.colpick_field_arrs").mousedown(b).end().find("div.colpick_current_color").click(A),t.selector=i.find("div.colpick_color").on("mousedown touchstart",S),t.selectorIndic=t.selector.find("div.colpick_selector_outer"),t.el=this,t.hue=i.find("div.colpick_hue_arrs");var o=t.hue.parent(),n=navigator.userAgent.toLowerCase(),e="Microsoft Internet Explorer"===navigator.appName,n=e?parseFloat(n.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0,s=["#ff0000","#ff0080","#ff00ff","#8000ff","#0000ff","#0080ff","#00ffff","#00ff80","#00ff00","#80ff00","#ffff00","#ff8
233000","#ff0000"];if(e&&n<10)for(var r,a=0;a<=11;a++)r=c("<div></div>").attr("style","height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="+s[a]+", endColorstr="+s[a+1]+'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='+s[a]+", endColorstr="+s[a+1]+')";'),o.append(r);else{n=s.join(",");o.attr("style","background:-webkit-linear-gradient(top,"+n+"); background: -o-linear-gradient(top,"+n+"); background: -ms-linear-gradient(top,"+n+"); background:-moz-linear-gradient(top,"+n+"); -webkit-linear-gradient(top,"+n+"); background:linear-gradient(to bottom,"+n+"); ")}i.find("div.colpick_hue").on("mousedown touchstart",x),t.newColor=i.find("div.colpick_new_color"),t.currentColor=i.find("div.colpick_current_color"),i.data("colpick",t),d(t.color,i.get(0)),u(t.color,i.get(0)),p(t.color,i.get(0)),f(t.color,i.get(0)),h(t.color,i.get(0)),m(t.color,i.get(0)),g(t.color,i.get(0)),t.flat?(i.appendTo(this).show(),i.css({position:"relative",display:"block"})):(i.appendTo(document.body),c(this).on(t.showEvent,k),i.css({position:"fixed"}))}})},showPicker:function(){return this.each(function(){c(this).data("colpickid")&&k.apply(this)})},hidePicker:function(){return this.each(function(){c(this).data("colpickid")&&c("#"+c(this).data("colpickid")).hide()})},setColor:function(e,i){if(i=void 0===i?1:i,"string"==typeof e)e=I(e);else if(null!=e.r&&null!=e.g&&null!=e.b)e=P(e);else{if(null==e.h||null==e.s||null==e.b)return this;e=C(e)}return this.each(function(){var t;c(this).data("colpickid")&&((t=c("#"+c(this).data("colpickid"))).data("colpick").color=e,t.data("colpick").origColor=e,d(e,t.get(0)),u(e,t.get(0)),p(e,t.get(0)),f(e,t.get(0)),h(e,t.get(0)),g(e,t.get(0)),t.data("colpick").onChange.apply(t.parent(),[e,L(e),$(e),t.data("colpick").el,1]),i&&m(e,t.get(0)))})}},O=function(t){return{r:(t=parseInt(-1<t.indexOf("#")?t.substring(1):t,16))>>16,g:(65280&t)>>8,b:255&t}},I=function(t){return P(O(t))},P=function(t){var e={h:0,s:0,b:0},i=Math.min(t.r,t.g,t.b),o=Math.max(t.r,t.g,t.b),i=o-i;return e.b=o,e.s=0!=o?255*i/o:0,0!=e.s?t.r==o?e.h=(t.g-t.b)/i:t.g==o?e.h=2+(t.b-t.r)/i:e.h=4+(t.r-t.g)/i:e.h=-1,e.h*=60,e.h<0&&(e.h+=360),e.s*=100/255,e.b*=100/255,e},$=function(t){var e={},i=t.h,o=255*t.s/100,n=255*t.b/100;return 0==o?e.r=e.g=e.b=n:(n=i%60*((t=n)-(o=(255-o)*n/255))/60,360==i&&(i=0),i<60?(e.r=t,e.b=o,e.g=o+n):i<120?(e.g=t,e.b=o,e.r=t-n):i<180?(e.g=t,e.r=o,e.b=o+n):i<240?(e.b=t,e.r=o,e.g=t-n):i<300?(e.b=t,e.g=o,e.r=o+n):i<360?(e.r=t,e.g=o,e.b=t-n):(e.r=0,e.g=0,e.b=0)),{r:Math.round(e.r),g:Math.round(e.g),b:Math.round(e.b)}},W=function(t){var i=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return c.each(i,function(t,e){1==e.length&&(i[t]="0"+e)}),i.join("")},L=function(t){return W($(t))};c.fn.extend({colpick:e.init,colpickHide:e.hidePicker,colpickShow:e.showPicker,colpickSetColor:e.setColor}),c.extend({colpick:{rgbToHex:W,rgbToHsb:P,hsbToHex:L,hsbToRgb:$,hexToHsb:I,hexToRgb:O}})},function(){var S;(S=jQuery).fn.nivoSlider=function(u){return this.each(function(){var t=S(this);if(t.data("nivoslider"))return t.data("nivoslider");var e=new function(t,e){var i=S.extend({},S.fn.nivoSlider.defaults,u),o={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},n=S(t);n.data("nivo:vars",o).addClass("nivoSlider");var s=n.children();s.each(function(){var t=S(this),e="";t.is("img")||(t.is("a")&&(t.addClass("nivo-imageLink"),e=t),t=t.find("img:first"));t.width(),t.height();""!==e&&e.css("display","none"),t.css("display","none"),o.totalSlides++}),i.randomStart&&(i.startSlide=Math.floor(Math.random()*o.totalSlides)),0<i.startSlide&&(i.startSlide>=o.totalSlides&&(i.startSlide=o.totalSlides-1),o.currentSlide=i.startSlide),S(s[o.currentSlide]).is("img")?o.currentImage=S(s[o.currentSlide]):o.currentImage=S(s[o.currentSlide]).find("img:first"),S(s[o.currentSlide]).is("a")&&S(s[o.currentSlide]).css("display","block");var v=S("<img/>").addClass("nivo-main-image");v.attr("src",o.currentImage.attr("data-src")).attr("width",o.currentImage.attr("width")).attr("height",o.currentImage.attr("height")).attr("alt",o.currentImage.attr("alt")),n.append(v),S(window).resize(function(){n.children("img").width(n.width()),v.attr("src",o.currentImage.attr("data-src")),v.stop().height("auto"),S(".nivo-slice").remove(),S(".nivo-box").remove()}),n.append(S('<div class="nivo-caption"></div>'));function y(t){var e,i=S(".nivo-caption",n);""!=o.currentImage.attr("data-title")&&null!=o.currentImage.attr("data-title")?("#"==(e=o.currentImage.attr("data-title")).substr(0,1)&&(e=S(e).html()),"block"==i.css("display")?setTimeout(function(){i.html(e)},t.animSpeed):(i.html(e),i.stop().fadeIn(t.animSpeed))):i.stop().fadeOut(t.animSpeed)}y(i);var r=0;if(!i.manualAdvance&&1<s.length&&(r=setInterval(function(){d(n,s,i,!1)},i.pauseTime)),i.directionNav&&(n.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+i.prevText+'</a><a class="nivo-nextNav">'+i.nextText+"</a></div>"),S(n).on("click","a.nivo-prevNav",function(){return!o.running&&(clearInterval(r),r="",o.currentSlide-=2,void d(n,s,i,"prev"))}),S(n).on("click","a.nivo-nextNav",function(){return!o.running&&(clearInterval(r),r="",void d(n,s,i,"next"))})),i.controlNav){o.controlNavEl=S('<div class="nivo-controlNav"></div>'),n.append(o.controlNavEl);for(var a,l=0;l<s.length;l++)i.controlNavThumbs?(o.controlNavEl.addClass("nivo-thumbs-enabled"),(a=s.eq(l)).is("img")||(a=a.find("img:first")),a.attr("data-thumb")&&o.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+a.attr("data-thumb")+'" alt="" /></a>')):o.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>");S("a:eq("+o.currentSlide+")",o.controlNavEl).addClass("active"),S("a",o.controlNavEl).bind("click",function(){return!o.running&&!S(this).hasClass("active")&&(clearInterval(r),r="",v.attr("src",o.currentImage.attr("data-src")),o.currentSlide=S(this).attr("rel")-1,void d(n,s,i,"control"))})}i.pauseOnHover&&n.hover(function(){o.paused=!0,clearInterval(r),r=""},function(){o.paused=!1,""!==r||i.manualAdvance||(r=setInterval(function(){d(n,s,i,!1)},i.pauseTime))}),n.bind("nivo:animFinished",function(){v.attr("src",o.currentImage.attr("data-src")),o.running=!1,S(s).each(function(){S(this).is("a")&&S(this).css("display","none")}),S(s[o.currentSlide]).is("a")&&S(s[o.currentSlide]).css("display","block"),""!==r||o.paused||i.manualAdvance||(r=setInterval(function(){d(n,s,i,!1)},i.pauseTime)),i.afterChange.call(this)});function w(t,e,i){S(i.currentImage).parent().is("a")&&S(i.currentImage).parent().css("display","block"),S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var o=(S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent():S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img")).height(),n=0;n<e.slices;n++){var s=Math.round(t.width()/e.slices);n===e.slices-1?t.append(S('<div class="nivo-slice" name="'+n+'"><img src="'+i.currentImage.attr("data-src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(s+n*s-s)+'px;" /></div>').css({left:s*n+"px",width:t.width()-s*n+"px",height:o+"px",opacity:"0",overflow:"hidden"})):t.append(S('<div class="nivo-slice" name="'+n+'"><img src="'+i.currentImage.attr("data-src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(s+n*s-s)+'px;" /></div>').css({left:s*n+"px",width:s+"px",height:o+"px",opacity:"0",overflow:"hidden"}))}S(".nivo-slice",t).height(o),v.stop().animate({height:S(i.currentImage).height()},e.animSpeed)}function b(t,e,i){S(i.currentImage).parent().is("a")&&S(i.currentImage).parent().css("display","block"),S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var o=Math.round(t.width()/e.boxCols),n=Math.round(S('img[src="'+i.currentImage.attr("data-src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/e.boxRows),s=0;s<e.boxRows;s++)for(var r=0;r<e.boxCols;r++)r===e.boxCols-1?t.append(S('<div class="nivo-box" name="'+r+'" rel="'+s+'"><img src="'+i.currentImage.attr("data-src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+n*s+"px; left:-"+o*r+'px;" /></div>
233').css({opacity:0,left:o*r+"px",top:n*s+"px",width:t.width()-o*r+"px"})):t.append(S('<div class="nivo-box" name="'+r+'" rel="'+s+'"><img src="'+i.currentImage.attr("data-src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+n*s+"px; left:-"+o*r+'px;" /></div>').css({opacity:0,left:o*r+"px",top:n*s+"px",width:o+"px"})),S('.nivo-box[name="'+r+'"]',t).height(S('.nivo-box[name="'+r+'"] img',t).height()+"px");v.stop().animate({height:S(i.currentImage).height()},e.animSpeed)}function c(){this.console&&console.log}var d=function(r,t,a,e){var i=r.data("nivo:vars");if(i&&i.currentSlide===i.totalSlides-1&&a.lastSlide.call(this),(!i||i.stop)&&!e)return!1;a.beforeChange.call(this),e?("prev"===e&&v.attr("src",i.currentImage.attr("data-src")),"next"===e&&v.attr("src",i.currentImage.attr("data-src"))):v.attr("src",i.currentImage.attr("data-src")),i.currentSlide++,i.currentSlide===i.totalSlides&&(i.currentSlide=0,a.slideshowEnd.call(this)),i.currentSlide<0&&(i.currentSlide=i.totalSlides-1),S(t[i.currentSlide]).is("img")?i.currentImage=S(t[i.currentSlide]):i.currentImage=S(t[i.currentSlide]).find("img:first"),a.controlNav&&(S("a",i.controlNavEl).removeClass("active"),S("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active")),y(a),S(".nivo-slice",r).remove(),S(".nivo-box",r).remove();var l=a.effect,e="";"random"===a.effect&&(e=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),void 0===(l=e[Math.floor(Math.random()*(e.length+1))])&&(l="fade")),-1!==a.effect.indexOf(",")&&(e=a.effect.split(","),void 0===(l=e[Math.floor(Math.random()*e.length)])&&(l="fade")),i.currentImage.attr("data-transition")&&(l=i.currentImage.attr("data-transition")),i.running=!0;var o=0,n=0,t="",s="",c="",e="";if("sliceDown"===l||"sliceDownRight"===l||"sliceDownLeft"===l)w(r,a,i),n=o=0,t=S(".nivo-slice",r),"sliceDownLeft"===l&&(t=S(".nivo-slice",r)._reverse()),t.each(function(){var t=S(this);t.css({top:"0px"}),n===a.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed,"",function(){r.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed)},100+o),o+=50,n++});else if("sliceUp"===l||"sliceUpRight"===l||"sliceUpLeft"===l)w(r,a,i),n=o=0,t=S(".nivo-slice",r),"sliceUpLeft"===l&&(t=S(".nivo-slice",r)._reverse()),t.each(function(){var t=S(this);t.css({bottom:"0px"}),n===a.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed,"",function(){r.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed)},100+o),o+=50,n++});else if("sliceUpDown"===l||"sliceUpDownRight"===l||"sliceUpDownLeft"===l){w(r,a,i);var d=n=o=0,t=S(".nivo-slice",r);"sliceUpDownLeft"===l&&(t=S(".nivo-slice",r)._reverse()),t.each(function(){var t=S(this);0===n?(t.css("top","0px"),n++):(t.css("bottom","0px"),n=0),d===a.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed,"",function(){r.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},a.animSpeed)},100+o),o+=50,d++})}else if("fold"===l)w(r,a,i),n=o=0,S(".nivo-slice",r).each(function(){var t=S(this),e=t.width();t.css({top:"0px",width:"0px"}),n===a.slices-1?setTimeout(function(){t.animate({width:e,opacity:"1.0"},a.animSpeed,"",function(){r.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({width:e,opacity:"1.0"},a.animSpeed)},100+o),o+=50,n++});else if("fade"===l)w(r,a,i),(s=S(".nivo-slice:first",r)).css({width:r.width()+"px"}),s.animate({opacity:"1.0"},2*a.animSpeed,"",function(){r.trigger("nivo:animFinished")});else if("slideInRight"===l)w(r,a,i),(s=S(".nivo-slice:first",r)).css({width:"0px",opacity:"1"}),s.animate({width:r.width()+"px"},2*a.animSpeed,"",function(){r.trigger("nivo:animFinished")});else if("slideInLeft"===l)w(r,a,i),(s=S(".nivo-slice:first",r)).css({width:"0px",opacity:"1",left:"",right:"0px"}),s.animate({width:r.width()+"px"},2*a.animSpeed,"",function(){s.css({left:"0px",right:""}),r.trigger("nivo:animFinished")});else if("boxRandom"===l)b(r,a,i),c=a.boxCols*a.boxRows,o=n=0,(e=x(S(".nivo-box",r))).each(function(){var t=S(this);n===c-1?setTimeout(function(){t.animate({opacity:"1"},a.animSpeed,"",function(){r.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1"},a.animSpeed)},100+o),o+=20,n++});else if("boxRain"===l||"boxRainReverse"===l||"boxRainGrow"===l||"boxRainGrowReverse"===l){b(r,a,i),c=a.boxCols*a.boxRows;var u=o=n=0,p=0,h=[];h[u]=[],e=S(".nivo-box",r),"boxRainReverse"!==l&&"boxRainGrowReverse"!==l||(e=S(".nivo-box",r)._reverse()),e.each(function(){h[u][p]=S(this),++p===a.boxCols&&(p=0,h[++u]=[])});for(var f=0;f<2*a.boxCols;f++){for(var m=f,g=0;g<a.boxRows;
233g++)0<=m&&m<a.boxCols&&(function(t,e,i){var o=S(h[g][m]),n=o.width(),s=o.height();"boxRainGrow"!==l&&"boxRainGrowReverse"!==l||o.width(0).height(0),e===i-1?setTimeout(function(){o.animate({opacity:"1",width:n,height:s},a.animSpeed/1.3,"",function(){r.trigger("nivo:animFinished")})},100+t):setTimeout(function(){o.animate({opacity:"1",width:n,height:s},a.animSpeed/1.3)},100+t)}(o,n,c),n++),m--;o+=100}}},x=function(t){for(var e,i,o=t.length;o;e=parseInt(Math.random()*o,10),i=t[--o],t[o]=t[e],t[e]=i);return t};return this.stop=function(){S(t).data("nivo:vars").stop||(S(t).data("nivo:vars").stop=!0,c())},this.start=function(){S(t).data("nivo:vars").stop&&(S(t).data("nivo:vars").stop=!1,c())},i.afterLoad.call(this),this}(this);t.data("nivoslider",e)})},S.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,controlNav:!0,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}},S.fn._reverse=[].reverse},function(t,e,i){var o=[i(0)];void 0===(i="function"==typeof(i=function(d){function t(){for(var t=u.scrollTop(),e=p.height(),i=e-f,o=i<t?i-t:0,n=0,s=h.length;n<s;n++){var r,a,l=h[n],c=l.stickyWrapper.offset().top-l.topSpacing-o;l.stickyWrapper.css("height",l.stickyElement.outerHeight()),t<=c?null!==l.currentTop&&(l.stickyElement.css({width:"",position:"",top:""}),l.stickyElement.parent().removeClass(l.className),l.stickyElement.trigger("sticky-end",[l]),l.currentTop=null):((a=e-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-t-o)<0?a+=l.topSpacing:a=l.topSpacing,l.currentTop!==a&&(l.getWidthFrom?r=d(l.getWidthFrom).width()||null:l.widthFromWrapper&&(r=l.stickyWrapper.width()),null==r&&(r=l.stickyElement.width()),l.stickyElement.css("width",r).css("position","fixed").css("top",a),l.stickyElement.parent().addClass(l.className),null===l.currentTop?l.stickyElement.trigger("sticky-start",[l]):l.stickyElement.trigger("sticky-update",[l]),l.currentTop===l.topSpacing&&l.currentTop>a||null===l.currentTop&&a<l.topSpacing?l.stickyElement.trigger("sticky-bottom-reached",[l]):null!==l.currentTop&&a===l.topSpacing&&l.currentTop<a&&l.stickyElement.trigger("sticky-bottom-unreached",[l]),l.currentTop=a),c=l.stickyWrapper.parent(),l.stickyElement.offset().top+l.stickyElement.outerHeight()>=c.offset().top+c.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing?l.stickyElement.css("position","absolute").css("top","").css("bottom",0):l.stickyElement.css("position","fixed").css("top",a).css("bottom",""))}}function e(){f=u.height();for(var t=0,e=h.length;t<e;t++){var i=h[t],o=null;i.getWidthFrom?i.responsiveWidth&&(o=d(i.getWidthFrom).width()):i.widthFromWrapper&&(o=i.stickyWrapper.width()),null!=o&&i.stickyElement.css("width",o)}}var i=Array.prototype.slice,o=Array.prototype.splice,r={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},u=d(window),p=d(document),h=[],f=u.height(),a={init:function(s){return this.each(function(){var t=d.extend({},r,s),e=d(this),i=e.attr("id"),o=i?i+"-"+r.wrapperClassName:r.wrapperClassName,n=d("<div></div>").attr("id",o).addClass(t.wrapperClassName);e.wrapAll(function(){if(0==d(this).parent("#"+o).length)return n});i=e.parent();t.center&&i.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),t.stickyElement=e,t.stickyWrapper=i,t.currentTop=null,h.push(t),a.setWrapperHeight(this),a.setupChangeListeners(this)})},setWrapperHeight:function(t){var e=d(t),t=e.parent();t&&t.css("height",e.outerHeight())},setupChangeListeners:function(e){window.MutationObserver?new window.MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&a.setWrapperHeight(e)}).observe(e,{subtree:!0,childList:!0}):window.addEventListener?(e.addEventListener("DOMNodeInserted",function(){a.setWrapperHeight(e)},!1),e.addEventListener("DOMNodeRemoved",function(){a.setWrapperHeight(e)},!1)):window.attachEvent&&(e.attachEvent("onDOMNodeInserted",function(){a.setWrapperHeight(e)}),e.attachEvent("onDOMNodeRemoved",function(){a.setWrapperHeight(e)}))},update:t,unstick:function(){return this.each(function(){for(var t=d(this),e=-1,i=h.length;0<i--;)h[i].stickyElement.get(0)===this&&(o.call(h,i,1),e=i);-1!==e&&(t.unwrap(),t.css({width:"",position:"",top:"",float:""}))})}};window.addEventListener?(window.addEventListener("scroll",t,!1),window.addEventListener("resize",e,!1)):window.attachEvent&&(window.attachEvent("onscroll",t),window.attachEvent("onresize",e)),d.fn.sticky=function(t){return a[t]?a[t].apply(this,i.call(arguments,1
233)):"object"!=typeof t&&t?void d.error("Method "+t+" does not exist on jQuery.sticky"):a.init.apply(this,arguments)},d.fn.unstick=function(t){return a[t]?a[t].apply(this,i.call(arguments,1)):"object"!=typeof t&&t?void d.error("Method "+t+" does not exist on jQuery.sticky"):a.unstick.apply(this,arguments)},d(function(){setTimeout(t,0)})})?i.apply(e,o):i)||(t.exports=i)},function(){!function(){var l,c,s,e,v,t,d,y,o,n,i,a,w,b,u,r,p,h,f,m,g,x,S,T,k,_,C,E,z,A,O,I,P,$,W,L,j,D,H,M=[].slice,N={}.hasOwnProperty,F=function(t,e){for(var i in e)N.call(e,i)&&(t[i]=e[i]);function o(){this.constructor=t}return o.prototype=e.prototype,t.prototype=new o,t.__super__=e.prototype,t},B=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},R={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!1,restartOnPushState:!1,restartOnRequestAfter:!1,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:!1},q=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},V=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,Y=window.cancelAnimationFrame||window.mozCancelAnimationFrame;for(null==V&&(V=function(t){return setTimeout(t,50)},Y=function(t){return clearTimeout(t)}),T=function(e){var i,o=q();return(i=function(){var t;return 33<=(t=q()-o)?(o=q(),e(t,function(){return V(i)})):setTimeout(i,33-t)})()},S=function(){var t=arguments[0],e=arguments[1],i=3<=arguments.length?M.call(arguments,2):[];return"function"==typeof t[e]?t[e].apply(t,i):t[e]},u=function(){for(var t,e,i,o,n=arguments[0],s=0,r=(i=2<=arguments.length?M.call(arguments,1):[]).length;s<r;s++)if(e=i[s])for(t in e)N.call(e,t)&&(o=e[t],null!=n[t]&&"object"==typeof n[t]&&null!=o&&"object"==typeof o?u(n[t],o):n[t]=o);return n},a=function(t){for(var e,i,o=e=0,n=0,s=t.length;n<s;n++)i=t[n],o+=Math.abs(i),e++;return o/e},p=function(t,e){var i,o;if(null==t&&(t="options"),null==e&&(e=!0),o=document.querySelector("[data-pace-"+t+"]")){if(i=o.getAttribute("data-pace-"+t),!e)return i;try{return JSON.parse(i)}catch(t){return}}},U.prototype.on=function(t,e,i,o){var n;return null==o&&(o=!1),null==this.bindings&&(this.bindings={}),null==(n=this.bindings)[t]&&(n[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:o})},U.prototype.once=function(t,e,i){return this.on(t,e,i,!0)},U.prototype.off=function(t,e){var i,o,n;if(null!=(null!=(o=this.bindings)?o[t]:void 0)){if(null==e)return delete this.bindings[t];for(i=0,n=[];i<this.bindings[t].length;)this.bindings[t][i].handler===e?n.push(this.bindings[t].splice(i,1)):n.push(i++);return n}},U.prototype.trigger=function(){var t,e,i,o,n,s,r=arguments[0],a=2<=arguments.length?M.call(arguments,1):[];if(null!=(o=this.bindings)&&o[r]){for(i=0,s=[];i<this.bindings[r].length;)e=(n=this.bindings[r][i]).handler,t=n.ctx,n=n.once,e.apply(null!=t?t:this,a),n?s.push(this.bindings[r].splice(i,1)):s.push(i++);return s}},H=U,v=window.Pace||{},window.Pace=v,u(v,H.prototype),x=v.options=u({},R,window.paceOptions,p()),$=0,L=(j=["ajax","document","eventLag","elements"]).length;$<L;$++)!0===x[E=j[$]]&&(x[E]=R[E]);function U(){}function X(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=x.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=S(this.source,"progress"))}function Q(){var t,e,i=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=i.states[document.readyState]&&(i.progress=i.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}function Z(t){this.selector=t,this.progress=0,this.check()}function K(){var t=this;this.elements=[],h().on("request",function(){return t.watch.apply(t,arguments)})}function G(){var e,n=this;G.__super__.constructor.apply(this,arguments),e=function(i){var o=i.open;return i.open=function(t,e){return C(t)&&n.trigger("request",{type:t,url:e,request:i}),o.apply(i,arguments)}},window.XMLHttpRequest=function(t){t=new P(t);return e(t),t};try{r(window.XMLHttpRequest,P)}catch(t){}if(null!=I){window.XDomainRequest=function(){var t=new I;return e(t),t};try{r(window.XDomainRequest,I)}catch(t){}}if(null!=O&&x.ajax.trackWebSockets){window.WebSocket=function(t,e){var i=null!=e?new O(t,e):new O(t);return C("socket")&&n.trigger("request",{type:"socket",url:t,protocols:e,request:i}),i};try{r(window.WebSocket,O)}catch(t){}}}function J(){this.bindings={}}function tt(){this.progress=0}function et(){return et.__super__.constructor.apply(this,arguments)}H=Error,F(et,H),e=et,tt.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector(x.target)))throw new e;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>
233',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},tt.prototype.finish=function(){var t;return(t=this.getElement()).className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},tt.prototype.update=function(t){return this.progress=t,this.render()},tt.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){e=t}return this.el=void 0},tt.prototype.render=function(){var t,e,i,o,n,s,r;if(null==document.querySelector(x.target))return!1;for(t=this.getElement(),o="translate3d("+this.progress+"%, 0, 0)",n=0,s=(r=["webkitTransform","msTransform","transform"]).length;n<s;n++)e=r[n],t.children[0].style[e]=o;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?i="99":(i=this.progress<10?"0":"",i+=0|this.progress),t.children[0].setAttribute("data-progress",""+i)),this.lastRenderedProgress=this.progress},tt.prototype.done=function(){return 100<=this.progress},c=tt,J.prototype.trigger=function(t,e){var i,o,n,s,r;if(null!=this.bindings[t]){for(r=[],o=0,n=(s=this.bindings[t]).length;o<n;o++)i=s[o],r.push(i.call(this,e));return r}},J.prototype.on=function(t,e){var i;return null==(i=this.bindings)[t]&&(i[t]=[]),this.bindings[t].push(e)},p=J,P=window.XMLHttpRequest,I=window.XDomainRequest,O=window.WebSocket,r=function(t,e){var i,o=[];for(i in e.prototype)try{null==t[i]&&"function"!=typeof e[i]?"function"==typeof Object.defineProperty?o.push(Object.defineProperty(t,i,{get:function(){return e.prototype[i]},configurable:!0,enumerable:!0})):o.push(t[i]=e.prototype[i]):o.push(void 0)}catch(t){}return o},m=[],v.ignore=function(){var t=arguments[0],e=2<=arguments.length?M.call(arguments,1):[];return m.unshift("ignore"),e=t.apply(null,e),m.shift(),e},v.track=function(){var t=arguments[0],e=2<=arguments.length?M.call(arguments,1):[];return m.unshift("track"),e=t.apply(null,e),m.shift(),e},C=function(t){if(null==t&&(t="GET"),"track"===m[0])return"force";if(!m.length&&x.ajax){if("socket"===t&&x.ajax.trackWebSockets)return!0;if(t=t.toUpperCase(),0<=B.call(x.ajax.trackMethods,t))return!0}return!1},F(G,p),t=G,W=null,_=function(t){for(var e,i,o=0,n=(i=x.ajax.ignoreURLs).length;o<n;o++)if("string"==typeof(e=i[o])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(h=function(){return null==W&&(W=new t),W})().on("request",function(t){var s,r=t.type,a=t.request,e=t.url;if(!_(e))return v.running||!1===x.restartOnRequestAfter&&"force"!==C(r)?void 0:(s=arguments,"boolean"==typeof(e=x.restartOnRequestAfter||0)&&(e=0),setTimeout(function(){var t,e,i,o,n;if("socket"===r?a.readyState<2:0<(i=a.readyState)&&i<4){for(v.restart(),n=[],t=0,e=(o=v.sources).length;t<e;t++){if((E=o[t])instanceof l){E.watch.apply(E,s);break}n.push(void 0)}return n}},e))}),K.prototype.watch=function(t){var e=t.type,i=t.request,t=t.url;if(!_(t))return i=new("socket"===e?o:n)(i),this.elements.push(i)},l=K,n=function(e){var t,i,o,n,s,r=this;if(this.progress=0,null!=window.ProgressEvent)for(e.addEventListener("progress",function(t){return t.lengthComputable?r.progress=100*t.loaded/t.total:r.progress=r.progress+(100-r.progress)/2},!1),i=0,o=(s=["load","abort","timeout","error"]).length;i<o;i++)t=s[i],e.addEventListener(t,function(){return r.progress=100},!1);else n=e.onreadystatechange,e.onreadystatechange=function(){var t;return 0===(t=e.readyState)||4===t?r.progress=100:3===e.readyState&&(r.progress=50),"function"==typeof n?n.apply(null,arguments):void 0}},o=function(t){for(var e,i,o=this,n=this.progress=0,s=(i=["error","open"]).length;n<s;n++)e=i[n],t.addEventListener(e,function(){return o.progress=100},!1)},H=function(t){var e,i,o,n;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),i=0,o=(n=t.selectors).length;i<o;i++)e=n[i],this.elements.push(new s(e))},Z.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},x.elements.checkInterval)},Z.prototype.done=function(){return this.progress=100},s=Z,Q.prototype.states={loading:0,interactive:50,complete:100},F=Q,p=function(){var e,i,o,n,s,r=this;this.progress=0,s=[],n=0,o=q(),i=setInterval(function(){var t=q()-o-50;return o=q(),s.push(t),s.length>
233x.eventLag.sampleCount&&s.shift(),e=a(s),++n>=x.eventLag.minSamples&&e<x.eventLag.lagThreshold?(r.progress=100,clearInterval(i)):r.progress=3/(e+3)*100},50)},X.prototype.tick=function(t,e){return null==e&&(e=S(this.source,"progress")),100<=e&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/x.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),e=1-Math.pow(this.progress/100,x.easeFactor),this.progress+=e*this.rate*t,this.progress=Math.min(this.lastProgress+x.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},y=X,b=i=A=w=k=z=null,v.running=!1,f=function(){if(x.restartOnPushState)return v.restart()},null!=window.history.pushState&&(window.history.pushState,window.history.pushState=f),null!=window.history.replaceState&&(D=window.history.replaceState,window.history.replaceState=function(){return f(),D.apply(window.history,arguments)}),d={ajax:l,elements:H,document:F,eventLag:p},(g=function(){var t,e,i,o,n,s,r,a;for(v.sources=z=[],e=0,o=(s=["ajax","elements","document","eventLag"]).length;e<o;e++)!1!==x[t=s[e]]&&z.push(new d[t](x[t]));for(i=0,n=(a=null!=(r=x.extraSources)?r:[]).length;i<n;i++)E=a[i],z.push(new E(x));return v.bar=w=new c,k=[],A=new y})(),v.stop=function(){return v.trigger("stop"),v.running=!1,w.destroy(),b=!0,null!=i&&("function"==typeof Y&&Y(i),i=null),g()},v.restart=function(){return v.trigger("restart"),v.stop(),v.start()},v.go=function(){var g;return v.running=!0,w.render(),g=q(),b=!1,i=T(function(t,e){var i,o,n,s,r,a,l,c,d,u,p,h,f,m;for(w.progress,n=!(o=d=0),r=u=0,h=z.length;u<h;r=++u)for(E=z[r],c=null!=k[r]?k[r]:k[r]=[],a=p=0,f=(s=null!=(m=E.elements)?m:[E]).length;p<f;a=++p)l=s[a],n&=(l=null!=c[a]?c[a]:c[a]=new y(l)).done,l.done||(o++,d+=l.tick(t));return i=d/o,w.update(A.tick(t,i)),w.done()||n||b?(w.update(100),v.trigger("done"),setTimeout(function(){return w.finish(),v.running=!1,v.trigger("hide")},Math.max(x.ghostTime,Math.max(x.minTime-(q()-g),0)))):e()})},v.start=function(t){u(x,t),v.running=!0;try{w.render()}catch(t){e=t}return document.querySelector(".pace")?(v.trigger("start"),v.go()):setTimeout(v.start,50)}}(jQuery)},function(t,e,i){var o=[i(0)];void 0===(i="function"==typeof(i=function(m){function e(t){var e=[],i=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each(function(){var t=m(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(0<t[i]()?e.push(this):(t[i](1),0<t[i]()&&e.push(this),t[i](0))):(e.push(document.scrollingElement),!1)}),e.length||this.each(function(){this===document.documentElement&&"smooth"===m(this).css("scrollBehavior")&&(e=[this]),e.length||"BODY"!==this.nodeName||(e=[this])}),"first"===t.el&&1<e.length&&(e=[e[0]]),e}var u={},o=/^([\-\+]=)(\d+)/;m.fn.extend({scrollable:function(t){t=e.call(this,{dir:t});return this.pushStack(t)},firstScrollable:function(t){t=e.call(this,{el:"first",dir:t});return this.pushStack(t)},smoothScroll:function(t,e){if("options"===(t=t||{}))return e?this.each(function(){var t=m(this),t=m.extend(t.data("ssOpts")||{},e);m(this).data("ssOpts",t)}):this.first().data("ssOpts");function i(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var i=this,o=m(this),n=m.extend({},f,o.data("ssOpts")||{}),s=f.exclude,r=n.excludeWithin,a=0,l=0,c=!0,d={},u=m.smoothScroll.filterPath(location.pathname),p=m.smoothScroll.filterPath(i.pathname),h=location.hostname===i.hostname||!i.hostname,p=n.scrollTarget||p===u;if((u=e(i.hash))&&!m(u).length&&(c=!1),n.scrollTarget||h&&p&&u){for(;c&&a<s.length;)o.is(e(s[a++]))&&(c=!1);for(;c&&l<r.length;)o.closest(r[l++]).length&&(c=!1)}else c=!1;c&&(n.preventDefault&&t.preventDefault(),m.extend(d,n,{scrollTarget:n.scrollTarget||u,link:i}),m.smoothScroll(d))}var f=m.extend({},m.fn.smoothScroll.defaults,t);return null!==t.delegateSelector?this.off("click.smoothscroll",t.delegateSelector).on("click.smoothscroll",t.delegateSelector,i):this.off("click.smoothscroll").on("click.smoothscroll",i),this}});function p(t){var e={relative:""},i="string"==typeof t&&o.exec(t);return"number"==typeof t?e.px=t:i&&(e.relative=i[1],e.px=parseFloat(i[2])||0),e}m.smoothScroll=function(t,e){if("options"===t&&"object"==typeof e)return m.extend(u,e);var i,o,n,s=p(t),r=0,a="offset",l="scrollTop",c={},d={};s.px?i=m.extend({link:null},m.fn.smoothScroll.defaults,u):((i=m.extend({link:null},m.fn.smoothScroll.defaults,t||{},u)).scrollElement&&(a="position","static"===i.scrollElement.css("position")&&i.scrollElement.css("position","relative")),e&&(s=p(e))),l="left"
233===i.direction?"scrollLeft":l,i.scrollElement?(o=i.scrollElement,s.px||/^(?:HTML|BODY)$/.test(o[0].nodeName)||(r=o[l]())):o=m("html, body").firstScrollable(i.direction),i.beforeScroll.call(o,i),n=s.px?s:{relative:"",px:m(i.scrollTarget)[a]()&&m(i.scrollTarget)[a]()[i.direction]||0},c[l]=n.relative+(n.px+r+i.offset),"auto"===(r=i.speed)&&(r=Math.abs(c[l]-o[l]())/i.autoCoefficient),d={duration:r,easing:i.easing,complete:function(){i.afterScroll.call(i.link,i)}},i.step&&(d.step=i.step),o.length?o.stop().animate(c,d):i.afterScroll.call(i.link,i)},m.smoothScroll.version="2.1.2",m.smoothScroll.filterPath=function(t){return(t=t||"").replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},m.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0}})?i.apply(e,o):i)||(t.exports=i)},function(t,e,i){var o,n;!function(){"use strict";o=[i(0)],void 0===(n="function"==typeof(n=function(c){var o,r=window.Slick||{};o=0,(r=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" data-role="none" role="button" tabindex="0" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=c(t).data("slick")||{},i.options=c.extend({},i.defaults,e,t),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=o++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(t,e,i){var o=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=o.slideCount)return!1;o.unload(),"number"==typeof e?0===e&&0===o.$slides.length?c(t).appendTo(o.$slideTrack):i?c(t).insertBefore(o.$slides.eq(e)):c(t).insertAfter(o.$slides.eq(e)):!0===i?c(t).prependTo(o.$slideTrack):c(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),o.$slidesCache=o.$slides,o.reinit()},r.prototype.animateHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:t},e.options.speed))},r.prototype.animateSlide=function(t,e){var i={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(t=-t),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,e):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,e):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),c({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?i[o.animType]="translate("+t+"px, 0px)":i[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(o.applyTransition(),t=Math.ceil(t),!1===o.options.vertical?i[o.animType]="translate3d("+t+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(i),e&&setTimeout(function(){o.disableTransition(),e.call()},o.options.speed))},r.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=c(t).not(this.$slider)),t},r.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},r.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},r.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 12,342 bytes, line 233
233t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},r.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(c("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},r.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},r.prototype.buildRows=function(){var t,e,i,o=this,n=document.createDocumentFragment(),s=o.$slider.children();if(1<o.options.rows){for(i=o.options.slidesPerRow*o.options.rows,e=Math.ceil(s.length/i),t=0;t<e;t++){for(var r=document.createElement("div"),a=0;a<o.options.rows;a++){for(var l=document.createElement("div"),c=0;c<o.options.slidesPerRow;c++){var d=t*i+(a*o.options.slidesPerRow+c);s.get(d)&&l.appendChild(s.get(d))}r.appendChild(l)}n.appendChild(r)}o.$slider.empty().append(n),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(t,e){var i,o,n,s=this,r=!1,a=s.$slider.width(),l=window.innerWidth||c(window).width();if("window"===s.respondTo?n=l:"slider"===s.respondTo?n=a:"min"===s.respondTo&&(n=Math.min(l,a)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?n<s.breakpoints[i]&&(o=s.breakpoints[i]):n>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint&&o===s.activeBreakpoint&&!e||(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=c.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),r=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),r=o),t||!1===r||s.$slider.trigger("breakpoint",[s,r])}},r.prototype.changeSlide=function(t,e){var i,o=this,n=c(t.currentTarget);switch(n.is("a")&&t.preventDefault(),n.is("li")||(n=n.closest("li")),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":s=0==i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-s,!1,e);break;case"next":s=0==i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+s,!1,e);break;case"index":var s=0===t.data.index?0:t.data.index||n.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(s),!1,e),n.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=i;break}i=e[o]}return t},r.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),c(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},r.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",c.proxy(t.interrupt,t,!1))},r.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},r.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},r.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},r.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},r.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},r.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var t=this,e=0,i=0,o=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)o=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else o=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return o-1},r.prototype.getLeft=function(t){var e,i=this,o=0;return i.slideOffset=0,e=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,o=e*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(o=t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(t-i.slideCount))*e*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*e*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,o=(t+i.options.slidesToShow-i.slideCount)*e),i.slideCount<=i.options.slidesToShow&&(o=i.slideOffset=0),!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),e=!1===i.options.vertical?t*i.slideWidth*-1+i.slideOffset:t*e*-1+o,!0===i.options.variableWidth&&(o=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),e=!0===i.options.rtl?o[0]?-1*(i.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===i.options.centerMode&&(o=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),e=!0===i.options.rtl?o[0]?-1*(i.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(i.$list.width()-o.outerWidth())/2)),e},r.prototype.getOption=r.prototype.slickGetOption=function(t){return this.options[t]},r.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,o=[],n=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<n;)o.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var i,o=this,n=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0;return!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-n+c(e).outerWidth()/2>-1*o.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
233parseInt(t)}},e)},r.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(){c(this).attr({role:"option"})}),null!==e.$dots&&e.$dots.find("li").each(function(t){c(this).attr({id:"slick-slide"+e.instanceUid+t})}).end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},r.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide))},r.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},r.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",c.proxy(t.interrupt,t,!1)))},r.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
vendor: 7,879 bytes, line 233
233,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},r.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},r.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){var t,e,o=this;function i(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.attr("src",e).removeAttr("data-lazy").removeClass("slick-loading"),o.$slider.trigger("lazyLoaded",[o,t,e])},i.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},i.src=e})}!0===o.options.centerMode?e=!0===o.options.infinite?(t=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(t=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(t=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,e=Math.ceil(t+o.options.slidesToShow),!0===o.options.fade&&(0<t&&t--,e<=o.slideCount&&e++)),i(o.$slider.find(".slick-slide").slice(t,e)),o.slideCount<=o.options.slidesToShow?i(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?i(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&i(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},r.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},r.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(t){t.preventDefault()},r.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,o=this,n=c("img[data-lazy]",o.$slider);n.length?(e=n.first(),i=e.attr("data-lazy"),(n=document.createElement("img")).onload=function(){e.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,i]),o.progressiveLazyLoad()},n.onerror=function(){t<3?setTimeout(function(){o.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i]),o.progressiveLazyLoad())},n.src=i):o.$slider.trigger("allImagesLoaded",[o])},r.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),c.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},r.prototype.registerBreakpoints=function(){var t,e,i,o=this,n=o.options.responsive||null;if("array"===c.type(n)&&n.length){for(t in o.respondTo=o.options.respondTo||"window",n)if(i=o.breakpoints.length-1,e=n[t].breakpoint,n.hasOwnProperty(t)){for(;0<=i;)o.breakpoints[i]&&o.breakpoints[i]===e&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(e),o.breakpointSettings[e]=n[t].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},r.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},r.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(t,e,i){var o=this;if(t="boolean"==typeof t?!0===(e=t)?0:o.slideCount-1:!0===e?--t:t,o.slideCount<1||t<0||t>o.slideCount-1)return!1;o.unload(),(!0===i?o.$slideTrack.children():o.$slideTrack.children(this.options.slide).eq(t)).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},r.prototype.setCSS=function(t){var e,i,o=this,n={};!0===o.options.rtl&&(t=-t),e="left"==o.positionProp?Math.ceil(t)+"px":"0px",i="top"==o.positionProp?Math.ceil(t)+"px":"0px",n[o.positionProp]=t,!1===o.transformsEnabled||(!(n={})===o.cssTransitions?n[o.animType]="translate("+e+", "+i+")":n[o.animType]="translate3d("+e+", "+i+", 0px)"),o.$slideTrack.css(n)},r.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=t.listWidth/t.options.slidesToShow,t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},r.prototype.setFade=function(){var i,o=this;o.$slides.each(function(t,e){i=o.slideWidth*t*-1,!0===o.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:o.options.zIndex-2,opacity:0}
233):c(e).css({position:"relative",left:i,top:0,zIndex:o.options.zIndex-2,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:o.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",t))},r.prototype.setOption=r.prototype.slickSetOption=function(){var t,e,i,o,n,s=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],n="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],o=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)s.options[i]=o;else if("multiple"===n)c.each(i,function(t,e){s.options[t]=e});else if("responsive"===n)for(e in o)if("array"!==c.type(s.options.responsive))s.options.responsive=[o[e]];else{for(t=s.options.responsive.length-1;0<=t;)s.options.responsive[t].breakpoint===o[e].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(o[e])}r&&(s.unload(),s.reinit())},r.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},r.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},r.prototype.setSlideClasses=function(t){var e,i,o=this,n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode?(i=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(i<=t&&t<=o.slideCount-1-i?o.$slides.slice(t-i,t+i+1).addClass("slick-active").attr("aria-hidden","false"):(e=o.options.slidesToShow+t,n.slice(e-i+1,e+i+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):0<=t&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(i=o.slideCount%o.options.slidesToShow,e=!0===o.options.infinite?o.options.slidesToShow+t:t,(o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?n.slice(e-(o.options.slidesToShow-i),e+i):n.slice(e,e+o.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},r.prototype.setupInfinite=function(){var t,e,i,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(e=null,o.slideCount>o.options.slidesToShow)){for(i=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-i;--t)e=t-1,c(o.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;t<i;t+=1)e=t,c(o.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},r.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},r.prototype.selectHandler=function(t){var e=this,t=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;if(e.slideCount<=e.options.slidesToShow)return e.setSlideClasses(t),void e.asNavFor(t);e.slideHandler(t)}
vendor: 5,793 bytes, line 233
233,r.prototype.slideHandler=function(t,e,i){var o,n,s,r,a=this;if(e=e||!1,(!0!==a.animating||!0!==a.options.waitForAnimate)&&!(!0===a.options.fade&&a.currentSlide===t||a.slideCount<=a.options.slidesToShow))if(!1===e&&a.asNavFor(t),o=t,r=a.getLeft(o),e=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?e:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(t<0||t>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==i?a.animateSlide(e,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(t<0||t>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==i?a.animateSlide(e,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),n=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,e=a.currentSlide,a.currentSlide=n,a.setSlideClasses(a.currentSlide),a.$slider.trigger("beforeChange",[a,a.currentSlide,n]),a.options.asNavFor&&(s=(s=a.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==i?(a.fadeSlideOut(e),a.fadeSlide(n,function(){a.postSlide(n)})):a.postSlide(n),void a.animateHeight();!0!==i?a.animateSlide(r,function(){a.postSlide(n)}):a.postSlide(n)}},r.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var t=this,e=t.touchObject.startX-t.touchObject.curX,i=t.touchObject.startY-t.touchObject.curY,e=Math.atan2(i,e);return(e=Math.round(180*e/Math.PI))<0&&(e=360-Math.abs(e)),e<=45&&0<=e||e<=360&&315<=e?!1===t.options.rtl?"left":"right":135<=e&&e<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(){var t,e,i=this;if(i.dragging=!1,i.interrupted=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(e=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=e&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,e]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},r.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},r.prototype.swipeMove=function(t){var e,i,o=this,n=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!o.dragging||n&&1!==n.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,o.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),"vertical"!==(i=o.swipeDirection())?(void 0!==t.originalEvent&&4<o.touchObject.swipeLength&&t.preventDefault(),n=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(n=o.touchObject.curY>o.touchObject.startY?1:-1),t=o.touchObject.swipeLength,(o.touchObject.edgeHit=!1)===o.options.infinite&&(0===o.currentSlide&&"right"===i||o.currentSlide>=o.getDotCount()&&"left"===i)&&(t=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+t*n:o.swipeLeft=e+t*(o.$list.height()/o.listWidth)*n,!0===o.options.verticalSwiping&&(o.swipeLeft=e+t*n),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},r.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},r.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
233,r.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},r.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var t,e=this,i=arguments[0],o=Array.prototype.slice.call(arguments,1),n=e.length,s=0;s<n;s++)if("object"==typeof i||void 0===i?e[s].slick=new r(e[s],i):t=e[s].slick[i].apply(e[s].slick,o),void 0!==t)return t;return e}})?n.apply(e,o):n)||(t.exports=n)}()},function(){var g;(g=jQuery).fn.scrollbox=function(m){return(m=g.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},m)).scrollOffset="vertical"===m.direction?"scrollTop":"scrollLeft",m.queue&&(m.queue=g("#"+m.queue)),this.each(function(){var o,n,t,s,e,i,r,a,l,c=g(this),d=null,u=null,p=!1,h=0,f=0;m.onMouseOverPause&&(c.bind("mouseover",function(){p=!0}),c.bind("mouseout",function(){p=!1})),o=c.children(m.listElement+":first-child"),!1===m.infiniteLoop&&0===m.switchAmount&&(m.switchAmount=o.children().length),i=function(){var t,e,i;if(!p&&(e=o.children(m.listItemElement+":first-child"),e="auto"!==m.distance?m.distance:"vertical"===m.direction?e.outerHeight(!0):e.outerWidth(!0),i=m.linear?Math.min(c[0][m.scrollOffset]+m.step,e):(i=Math.max(3,parseInt(.3*(e-c[0][m.scrollOffset]),10)),Math.min(c[0][m.scrollOffset]+i,e)),e<=(c[0][m.scrollOffset]=i))){for(t=0;t<m.switchItems;t++)m.queue&&0<m.queue.find(m.listItemElement).length?(o.append(m.queue.find(m.listItemElement)[0]),o.children(m.listItemElement+":first-child").remove()):o.append(o.children(m.listItemElement+":first-child")),++h;(c[0][m.scrollOffset]=0,clearInterval(d),d=null,g.isFunction(m.afterForward)&&m.afterForward.call(c,{switchCount:h,currentFirstChild:o.children(m.listItemElement+":first-child")}),m.triggerStackable&&0!==f)?n():!1===m.infiniteLoop&&h>=m.switchAmount||m.autoPlay&&(u=setTimeout(s,1e3*m.delay))}},r=function(){if(!p){var t,e,i;if(0===c[0][m.scrollOffset]){for(t=0;t<m.switchItems;t++)o.children(m.listItemElement+":last-child").insertBefore(o.children(m.listItemElement+":first-child"));e=o.children(m.listItemElement+":first-child"),e="auto"!==m.distance?m.distance:"vertical"===m.direction?e.height():e.width(),c[0][m.scrollOffset]=e}i=m.linear?Math.max(c[0][m.scrollOffset]-m.step,0):(i=Math.max(3,parseInt(.3*c[0][m.scrollOffset],10)),Math.max(c[0][m.scrollOffset]-i,0)),0===(c[0][m.scrollOffset]=i)&&(--h,clearInterval(d),d=null,g.isFunction(m.afterBackward)&&m.afterBackward.call(c,{switchCount:h,currentFirstChild:o.children(m.listItemElement+":first-child")}),m.triggerStackable&&0!==f?n():m.autoPlay&&(u=setTimeout(s,1e3*m.delay)))}},n=function(){0!==f&&(u=0<f?(f--,setTimeout(s,0)):(f++,setTimeout(t,0)))},s=function(){clearInterval(d),d=setInterval(i,m.speed)},t=function(){clearInterval(d),d=setInterval(r,m.speed)},a=function(){m.autoPlay=!0,p=!1,clearInterval(d),d=setInterval(i,m.speed)},l=function(){p=!0},e=function(t){m.delay=t||m.delay,clearTimeout(u),m.autoPlay&&(u=setTimeout(s,1e3*m.delay))},m.autoPlay&&(u=setTimeout(s,1e3*m.startDelay)),c.bind("resetClock",function(t){e(t)}),c.bind("forward",function(){m.triggerStackable?null!==d?f++:s():(clearTimeout(u),s())}),c.bind("backward",function(){m.triggerStackable?null!==d?f--:t():(clearTimeout(u),t())}),c.bind("pauseHover",function(){l()}),c.bind("forwardHover",function(){a()}),c.bind("speedUp",function(t,e){"undefined"===e&&(e=Math.max(1,parseInt(m.speed/2,10))),m.speed=e}),c.bind("speedDown",function(t,e){"undefined"===e&&(e=2*m.speed),m.speed=e}),c.bind("updateConfig",function(t,e){m=g.extend(m,e)})})}},function(){!function(r){function a(t,e){this.options=e,this.$elementFilestyle=[],this.$element=r(t)}var i=0;a.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(t){if(!0===t)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==t)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(t){if(!0===t)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==t)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(t){if(!0===t)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==t)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".
233icon-span-filestyle").remove())}},input:function(t){if(!0===t)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==t)return this.options.input;this.options.input&&(this.options.input=!1,this.$elementFilestyle.find(":text").remove(),0<(t=this.pushNameFiles()).length&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn"))}},size:function(t){if(void 0===t)return this.options.size;var e=this.$elementFilestyle.find("label"),i=this.$elementFilestyle.find("input");e.removeClass("btn-lg btn-sm"),i.removeClass("input-lg input-sm"),"nr"!=t&&(e.addClass("btn-"+t),i.addClass("input-"+t))},placeholder:function(t){if(void 0===t)return this.options.placeholder;this.options.placeholder=t,this.$elementFilestyle.find("input").attr("placeholder",t)},buttonText:function(t){if(void 0===t)return this.options.buttonText;this.options.buttonText=t,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(t){if(void 0===t)return this.options.buttonName;this.options.buttonName=t,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(t){if(void 0===t)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var t="",e=[];void 0===this.$element[0].files?e[0]={name:this.$element[0]&&this.$element[0].value}:e=this.$element[0].files;for(var i=0;i<e.length;i++)t+=e[i].name.split("\\").pop()+", ";return""!==t?this.$elementFilestyle.find(":text").val(t.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),e},constructor:function(){var e=this,t=e.$element.attr("id");""!==t&&t||(t="filestyle-"+i,e.$element.attr({id:t}),i++),t='<span class="group-span-filestyle '+(e.options.input?"input-group-btn":"")+'"><label for="'+t+'" class="btn '+e.options.buttonName+" "+("nr"==e.options.size?"":"btn-"+e.options.size)+'" '+(e.options.disabled?'disabled="true"':"")+">"+e.htmlIcon()+'<span class="buttonText">'+e.options.buttonText+"</span></label></span>",t=e.options.buttonBefore?t+e.htmlInput():e.htmlInput()+t,e.$elementFilestyle=r('<div class="bootstrap-filestyle input-group">'+t+"</div>"),e.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(t){if(13===t.keyCode||32===t.charCode)return e.$elementFilestyle.find("label").click(),!1}),e.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(e.$elementFilestyle),e.options.disabled&&e.$element.attr("disabled","true"),e.$element.change(function(){var t=e.pushNameFiles();0==e.options.input&&e.options.badge?0==e.$elementFilestyle.find(".badge").length?e.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"):0==t.length?e.$elementFilestyle.find(".badge").remove():e.$elementFilestyle.find(".badge").html(t.length):e.$elementFilestyle.find(".badge").remove()}
233),-1<window.navigator.userAgent.search(/firefox/i)&&e.$elementFilestyle.find("label").click(function(){return e.$element.click(),!1})}};var t=r.fn.filestyle;r.fn.filestyle=function(o,n){var s="";this.each(function(){var t,e,i;"file"===r(this).attr("type")&&(e=(t=r(this)).data("filestyle"),i=r.extend({},r.fn.filestyle.defaults,o,"object"==typeof o&&o),e||(t.data("filestyle",e=new a(this,i)),e.constructor()),"string"==typeof o&&(s=e[o](n)))});return s},r.fn.filestyle.defaults={buttonText:"CHOIX DE FICHIER",iconName:"glyphicon glyphicon-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},r.fn.filestyle.noConflict=function(){return r.fn.filestyle=t,this},r(function(){r(".filestyle").each(function(){var t=r(this),e={input:"false"!==t.attr("data-input"),icon:"false"!==t.attr("data-icon"),buttonBefore:"true"===t.attr("data-buttonBefore"),disabled:"true"===t.attr("data-disabled"),size:t.attr("data-size"),buttonText:t.attr("data-buttonText"),buttonName:t.attr("data-buttonName"),iconName:t.attr("data-iconName"),badge:"false"!==t.attr("data-badge"),placeholder:t.attr("data-placeholder")};t.filestyle(e)})})}(window.jQuery)},function(e,i,o){var n;!function(e){"use strict";if(!e.jQuery){var c=function(t,e){return new c.fn.init(t,e)};c.isWindow=function(t){return t&&t===t.window},c.type=function(t){return t?"object"==typeof t||"function"==typeof t?i[s.call(t)]||"object":typeof t:t+""},c.isArray=Array.isArray||function(t){return"array"===c.type(t)},c.isPlainObject=function(t){if(!t||"object"!==c.type(t)||t.nodeType||c.isWindow(t))return!1;try{if(t.constructor&&!o.call(t,"constructor")&&!o.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(var e in t);return void 0===e||o.call(t,e)},c.each=function(t,e,i){var o=0,n=t.length,s=a(t);if(i){if(s)for(;o<n&&!1!==e.apply(t[o],i);o++);else for(o in t)if(t.hasOwnProperty(o)&&!1===e.apply(t[o],i))break}else if(s)for(;o<n&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(t.hasOwnProperty(o)&&!1===e.call(t[o],o,t[o]))break;return t},c.data=function(t,e,i){if(void 0===i){var o=t[c.expando],o=o&&n[o];return void 0===e?o:o&&e in o?o[e]:void 0}if(void 0!==e){t=t[c.expando]||(t[c.expando]=++c.uuid);return n[t]=n[t]||{},n[t][e]=i}},c.removeData=function(t,e){var t=t[c.expando],i=t&&n[t];i&&(e?c.each(e,function(t,e){delete i[e]}):delete n[t])},c.extend=function(){var t,e,i,o,n,s=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"!=typeof s&&"function"!==c.type(s)&&(s={}),r===a&&(s=this,r--);r<a;r++)if(o=arguments[r])for(i in o)o.hasOwnProperty(i)&&(n=s[i],s!==(e=o[i])&&(l&&e&&(c.isPlainObject(e)||(t=c.isArray(e)))?(n=t?(t=!1,n&&c.isArray(n)?n:[]):n&&c.isPlainObject(n)?n:{},s[i]=c.extend(l,n,e)):void 0!==e&&(s[i]=e)));return s},c.queue=function(t,e,i){if(t){e=(e||"fx")+"queue";var o=c.data(t,e);return i?(!o||c.isArray(i)?o=c.data(t,e,(t=[],(e=i)&&(a(Object(e))?function(t,e){for(var i=+e.length,o=0,n=t.length;o<i;)t[n++]=e[o++];if(i!=i)for(;void 0!==e[o];)t[n++]=e[o++];t.length=n}(t,"string"==typeof e?[e]:e):[].push.call(t,e)),t)):o.push(i),o):o||[]}},c.dequeue=function(t,n){c.each(t.nodeType?[t]:t,function(t,e){n=n||"fx";var i=c.queue(e,n),o=i.shift();"inprogress"===o&&(o=i.shift()),o&&("fx"===n&&i.unshift("inprogress"),o.call(e,function(){c.dequeue(e,n)}))})},c.fn=c.prototype={init:function(t){if(t.nodeType)return this[0]=t,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],t=function(){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(),i=this.offset(),o=/^(?:body|html)$/i.test(t.nodeName)?{top:0,left:0}:c(t).offset();return i.top-=parseFloat(e.style.marginTop)||0,i.left-=parseFloat(e.style.marginLeft)||0,t.style&&(o.top+=parseFloat(t.style.borderTopWidth)||0,o.left+=parseFloat(t.style.borderLeftWidth)||0),{top:i.top-o.top,left
233:i.left-o.left}}};var n={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var i={},o=i.hasOwnProperty,s=i.toString,t="Boolean Number String Function Array Date RegExp Object Error".split(" "),r=0;r<t.length;r++)i["[object "+t[r]+"]"]=t[r].toLowerCase();c.fn.init.prototype=c.fn,e.Velocity={Utilities:c}}function a(t){var e=t.length,i=c.type(t);return"function"!==i&&!c.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}}(window),function(t){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t():void 0===(n="function"==typeof(n=t)?n.call(i,o,i,e):n)||(e.exports=n)}(function(){"use strict";return function(t,N,F,B){function R(){return Array.prototype.includes?function(t,e){return t.includes(e)}:Array.prototype.indexOf?function(t,e){return 0<=t.indexOf(e)}:function(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1}}var o,e,k=function(){if(F.documentMode)return F.documentMode;for(var t=7;4<t;t--){var e=F.createElement("div");if(e.innerHTML="\x3c!--[if IE "+t+"]><span></span><![endif]--\x3e",e.getElementsByTagName("span").length)return e=null,t}return B}(),i=(o=0,N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-o));return o=e+i,setTimeout(function(){t(e+i)},i)}),_=("function"!=typeof(s=N.performance||{}).now&&(e=s.timing&&s.timing.navigationStart?s.timing.navigationStart:(new Date).getTime(),s.now=function(){return(new Date).getTime()-e}),s),n=function(){var a=Array.prototype.slice;try{return a.call(F.documentElement),a}catch(t){return function(t,e){var i=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof e&&(e=i),this.slice)return a.call(this,t,e);var o,n=[],s=0<=t?t:Math.max(0,i+t),r=(e<0?i+e:Math.min(e,i))-s;if(0<r)if(n=new Array(r),this.charAt)for(o=0;o<r;o++)n[o]=this.charAt(s+o);else for(o=0;o<r;o++)n[o]=this[s+o];return n}}}();function m(t){return V.isWrapped(t)?t=n.call(t):V.isNode(t)&&(t=[t]),t}var q,V={isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isWrapped:function(t){return t&&t!==N&&V.isNumber(t.length)&&!V.isString(t)&&!V.isFunction(t)&&!V.isNode(t)&&(0===t.length||V.isNode(t[0]))},isSVG:function(t){return N.SVGElement&&t instanceof N.SVGElement},isEmptyObject:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},s=!1;if(t.fn&&t.fn.jquery?(q=t,s=!0):q=N.Velocity.Utilities,k<=8&&!s)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(k<=7)){var r="swing",Y={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(N.navigator.userAgent),isAndroid:/Android/i.test(N.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(N.navigator.userAgent),isChrome:N.chrome,isFirefox:/Firefox/i.test(N.navigator.userAgent),prefixElement:F.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:q,Redirects:{},Easings:{},Promise:N.Promise,defaults:{queue:"",duration:400,easing:r,begin:B,complete:B,progress:B,display:B,visibility:B,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRe
233jectEmpty:!0},init:function(t){q.data(t,"velocity",{isSVG:V.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:1},debug:!1,timestamp:!0,pauseAll:function(i){var o=(new Date).getTime();q.each(Y.State.calls,function(t,e){if(e){if(i!==B&&(e[2].queue!==i||!1===e[2].queue))return!0;e[5]={resume:!1}}}),q.each(Y.State.delayedElements,function(t,e){e&&w(e,o)})},resumeAll:function(i){(new Date).getTime();q.each(Y.State.calls,function(t,e){if(e){if(i!==B&&(e[2].queue!==i||!1===e[2].queue))return!0;e[5]&&(e[5].resume=!0)}}),q.each(Y.State.delayedElements,function(t,e){e&&b(e)})}};N.pageYOffset!==B?(Y.State.scrollAnchor=N,Y.State.scrollPropertyLeft="pageXOffset",Y.State.scrollPropertyTop="pageYOffset"):(Y.State.scrollAnchor=F.documentElement||F.body.parentNode||F.body,Y.State.scrollPropertyLeft="scrollLeft",Y.State.scrollPropertyTop="scrollTop");var a=function t(e,i,o){var n,s,r,a,l,c,d,u,p,h,f={x:-1,v:0,tension:null,friction:null},m=[0],g=0;for(e=parseFloat(e)||500,i=parseFloat(i)||20,o=o||null,f.tension=e,f.friction=i,s=(n=null!==o)?(g=t(e,i))/o*.016:.016;l=s,p=h=p=u=d=c=void 0,c={dx:(a=r||f).v,dv:v(a)},d=y(a,.5*l,c),u=y(a,.5*l,d),p=y(a,l,u),h=1/6*(c.dx+2*(d.dx+u.dx)+p.dx),p=1/6*(c.dv+2*(d.dv+u.dv)+p.dv),a.x=a.x+h*l,a.v=a.v+p*l,r=a,m.push(1+r.x),g+=16,1e-4<Math.abs(r.x)&&1e-4<Math.abs(r.v););return n?function(t){return m[t*(m.length-1)|0]}:g};Y.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},q.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){Y.Easings[e[0]]=l.apply(null,e[1])});var U=Y.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|$))/gi},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 t,e,i,o,n,s=0;s<U.Lists.colors.length;s++){var r="color"===U.Lists.colors[s]?"0 0 0 1":"255 255 255 1";
233U.Hooks.templates[U.Lists.colors[s]]=["Red Green Blue Alpha",r]}if(k)for(t in U.Hooks.templates)U.Hooks.templates.hasOwnProperty(t)&&(i=(e=U.Hooks.templates[t])[0].split(" "),o=e[1].match(U.RegEx.valueSplit),"Color"===i[0]&&(i.push(i.shift()),o.push(o.shift()),U.Hooks.templates[t]=[i.join(" "),o.join(" ")]));for(t in U.Hooks.templates)if(U.Hooks.templates.hasOwnProperty(t))for(var a in i=(e=U.Hooks.templates[t])[0].split(" "))i.hasOwnProperty(a)&&(n=t+i[a],U.Hooks.registered[n]=[t,a])},getRoot:function(t){var e=U.Hooks.registered[t];return e?e[0]:t},getUnit:function(t,e){e=(t.substr(e||0,5).match(/^[a-z%]+/)||[])[0]||"";return e&&R(U.Lists.units)?e:""},fixColors:function(t){return t.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(t,e,i){return U.Lists.colorNames.hasOwnProperty(i)?(e||"rgba(")+U.Lists.colorNames[i]+(e?"":",1)"):e+i})},cleanRootPropertyValue:function(t,e){return U.RegEx.valueUnwrap.test(e)&&(e=e.match(U.RegEx.valueUnwrap)[1]),U.Values.isCSSNullValue(e)&&(e=U.Hooks.templates[t][1]),e},extractValue:function(t,e){var i=U.Hooks.registered[t];if(i){t=i[0],i=i[1];return(e=U.Hooks.cleanRootPropertyValue(t,e)).toString().match(U.RegEx.valueSplit)[i]}return e},injectValue:function(t,e,i){var o=U.Hooks.registered[t];if(o){var t=o[0],o=o[1];return(t=(i=U.Hooks.cleanRootPropertyValue(t,i)).toString().match(U.RegEx.valueSplit))[o]=e,t.join(" ")}return i}},Normalizations:{registered:{clip:function(t,e,i){switch(t){case"name":return"clip";case"extract":var o;return!U.RegEx.wrappedValueAlreadyExtracted.test(i)&&(o=i.toString().match(U.RegEx.valueUnwrap))?o[1].replace(/,(\s+)?/g," "):i;case"inject":return"rect("+i+")"}},blur:function(t,e,i){switch(t){case"name":return Y.State.isFirefox?"filter":"-webkit-filter";case"extract":var o,n=parseFloat(i);return n||0===n||(n=(o=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i))?o[1]:0),n;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(t,e,i){if(k<=8)switch(t){case"name":return"filter";case"extract":var o=i.toString().match(/alpha\(opacity=(.*)\)/i);return o?o[1]/100:1;case"inject":return(e.style.zoom=1)<=parseFloat(i)?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){k&&!(9<k)||Y.State.isGingerbread||(U.Lists.transformsBase=U.Lists.transformsBase.concat(U.Lists.transforms3D));for(var t=0;t<U.Lists.transformsBase.length;t++)!function(){var n=U.Lists.transformsBase[t];U.Normalizations.registered[n]=function(t,e,i){switch(t){case"name":return"transform";case"extract":return X(e)===B||X(e).transformCache[n]===B?/^scale/i.test(n)?1:0:X(e).transformCache[n].replace(/[()]/g,"");case"inject":var o=!1;switch(n.substr(0,n.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(i);break;case"scal":case"scale":Y.State.isAndroid&&X(e).transformCache[n]===B&&i<1&&(i=1),o=!/(\d)$/i.test(i);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(i)}return o||(X(e).transformCache[n]="("+i+")"),X(e).transformCache[n]}}}();for(var e=0;e<U.Lists.colors.length;e++)!function(){var s=U.Lists.colors[e];U.Normalizations.registered[s]=function(t,e,i){switch(t){case"name":return s;case"extract":var o,n=U.RegEx.wrappedValueAlreadyExtracted.test(i)?i:(o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(i)?n=o[i]!==B?o[i]:o.black:U.RegEx.isHex.test(i)?n="rgb("+U.Values.hexToRgb(i).join(" ")+")":/^rgba?\(/i.test(i)||(n=o.black),(n||i).toString().match(U.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," "));return(!k||8<k)&&3===n.split(" ").length&&(n+=" 1"),n;case"inject":return/^rgb/.test(i)?i:(k<=8?4===i.split(" ").length&&(i=i.split(/\s+/).slice(0,3).join(" ")):3===i.split(" ").length&&(i+=" 1"),(k<=8?"rgb":"rgba")+"("+i.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function s(t,e,i){if("border-box"===U.getPropertyValue(e,"boxSizing").toString().toLowerCase()!==(i||!1))return 0;for(var o,n=0,t="width"===t?["Left","Right"]:["Top","Bottom"],s=["padding"+t[0],"padding"+t[1],"border"+t[0]+"Width","border"+t[1]+"Width"],r=0;r<s.length;
233r++)o=parseFloat(U.getPropertyValue(e,s[r])),isNaN(o)||(n+=o);return i?-n:n}function i(o,n){return function(t,e,i){switch(t){case"name":return o;case"extract":return parseFloat(i)+s(o,e,n);case"inject":return parseFloat(i)-s(o,e,n)+"px"}}}U.Normalizations.registered.innerWidth=i("width",!0),U.Normalizations.registered.innerHeight=i("height",!0),U.Normalizations.registered.outerWidth=i("width"),U.Normalizations.registered.outerHeight=i("height")}},Names:{camelCase:function(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})},SVGAttribute:function(t){var e="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(k||Y.State.isAndroid&&!Y.State.isChrome)&&(e+="|transform"),new RegExp("^("+e+")$","i").test(t)},prefixCheck:function(t){if(Y.State.prefixMatches[t])return[Y.State.prefixMatches[t],!0];for(var e=["","Webkit","Moz","ms","O"],i=0,o=e.length;i<o;i++){var n=0===i?t:e[i]+t.replace(/^\w/,function(t){return t.toUpperCase()});if(V.isString(Y.State.prefixElement.style[n]))return[Y.State.prefixMatches[t]=n,!0]}return[t,!1]}},Values:{hexToRgb:function(t){return t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,o){return e+e+i+i+o+o}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(t){return!t||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(t)},getUnitType:function(t){return/^(rotate|skew)/i.test(t)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(t)?"":"px"},getDisplayType:function(t){t=t&&t.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(t,e){var i;t&&(t.classList?t.classList.add(e):V.isString(t.className)?t.className+=(t.className.length?" ":"")+e:(i=t.getAttribute(k<=7?"className":"class")||"",t.setAttribute("class",i+(i?" ":"")+e)))},removeClass:function(t,e){var i;t&&(t.classList?t.classList.remove(e):V.isString(t.className)?t.className=t.className.toString().replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," "):(i=t.getAttribute(k<=7?"className":"class")||"",t.setAttribute("class",i.replace(new RegExp("(^|s)"+e.split(" ").join("|")+"(s|$)","gi")," "))))}},getPropertyValue:function(t,e,i,a){function l(t,e){var i=0;if(k<=8)i=q.css(t,e);else{var o=!1;/^(width|height)$/.test(e)&&0===U.getPropertyValue(t,"display")&&(o=!0,U.setPropertyValue(t,"display",U.Values.getDisplayType(t)));var n=function(){o&&U.setPropertyValue(t,"display","none")};if(!a){if("height"===e&&"border-box"!==U.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var s=t.offsetHeight-(parseFloat(U.getPropertyValue(t,"borderTopWidth"))||0)-(parseFloat(U.getPropertyValue(t,"borderBottomWidth"))||0)-(parseFloat(U.getPropertyValue(t,"paddingTop"))||0)-(parseFloat(U.getPropertyValue(t,"paddingBottom"))||0);return n(),s}if("width"===e&&"border-box"!==U.getPropertyValue(t,"boxSizing").toString().toLowerCase()){var r=t.offsetWidth-(parseFloat(U.getPropertyValue(t,"borderLeftWidth"))||0)-(parseFloat(U.getPropertyValue(t,"borderRightWidth"))||0)-(parseFloat(U.getPropertyValue(t,"paddingLeft"))||0)-(parseFloat(U.getPropertyValue(t,"paddingRight"))||0);return n(),r}}r=X(t)===B?N.getComputedStyle(t,null):X(t).computedStyle?X(t).computedStyle:X(t).computedStyle=N.getComputedStyle(t,null),"borderColor"===e&&(e="borderTopColor"),""!==(i=9===k&&"filter"===e?r.getPropertyValue(e):r[e])&&null!==i||(i=t.style[e]),n()}return"auto"!==i||!/^(top|right|bottom|left)$/i.test(e)||("fixed"===(n=l(t,"position"))||"absolute"===n&&/top|left/i.test(e))&&(i=q(t).position()[e]+"px"),i}var o,n,s;if(U.Hooks.registered[e]?(n=e,s=U.Hooks.getRoot(n),i===B&&(i=U.getPropertyValue(t,U.Names.prefixCheck(s)[0])),U.Normalizations.registered[s]&&(i=U.Normalizations.registered[s]("extract",t,i)),o=U.Hooks.extractValue(n,i)):U.Normalizations.registered[e]&&("transform"!==(i=U.Normalizations.registered[e]("name",t))&&(r=l(t,U.Names.prefixCheck(i)[0]),U.Values.isCSSNullValue(r)&&U.Hooks.templates[e]&&(r=U.Hooks.templates[e][1])),o=U.Normalizations.registered[e]("extract",t,r)),!/^[\d-]/.test(o)){var r=X(t);if(r&&r.isSVG&&U.Names.SVGAttribute(e))if(/^(height|width)$/i.test(e))try{o=t.getBBox()[e]}catch(t){o=0}else o=t.getAttribute(e);else o=l(t,U.Names.prefixCheck(e)[0])}return U.Values.isCSSNullValue(o)&&(o=0),Y.debug,o}
233,setPropertyValue:function(t,e,i,o,n){var s=e;if("scroll"===e)n.container?n.container["scroll"+n.direction]=i:"Left"===n.direction?N.scrollTo(i,n.alternateValue):N.scrollTo(n.alternateValue,i);else if(U.Normalizations.registered[e]&&"transform"===U.Normalizations.registered[e]("name",t))U.Normalizations.registered[e]("inject",t,i),s="transform",i=X(t).transformCache[e];else{if(U.Hooks.registered[e]&&(n=e,r=U.Hooks.getRoot(e),o=o||U.getPropertyValue(t,r),i=U.Hooks.injectValue(n,i,o),e=r),U.Normalizations.registered[e]&&(i=U.Normalizations.registered[e]("inject",t,i),e=U.Normalizations.registered[e]("name",t)),s=U.Names.prefixCheck(e)[0],k<=8)try{t.style[s]=i}catch(t){Y.debug}else{var r=X(t);r&&r.isSVG&&U.Names.SVGAttribute(e)?t.setAttribute(e,i):t.style[s]=i}Y.debug}return[s,i]},flushTransformCache:function(e){var i,o,n,s="",t=X(e);(k||Y.State.isAndroid&&!Y.State.isChrome)&&t&&t.isSVG?(i={translate:[(t=function(t){return parseFloat(U.getPropertyValue(e,t))})("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]},q.each(X(e).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),i[t]&&(s+=t+"("+i[t].join(" ")+") ",delete i[t])})):(q.each(X(e).transformCache,function(t){return o=X(e).transformCache[t],"transformPerspective"===t?(n=o,!0):(9===k&&"rotateZ"===t&&(t="rotate"),void(s+=t+o+" "))}),n&&(s="perspective"+n+" "+s)),U.setPropertyValue(e,"transform",s)}};U.Hooks.register(),U.Normalizations.register(),Y.hook=function(t,o,n){var s;return t=m(t),q.each(t,function(t,e){var i;X(e)===B&&Y.init(e),n===B?s===B&&(s=U.getPropertyValue(e,o)):("transform"===(i=U.setPropertyValue(e,o,n))[0]&&Y.CSS.flushTransformCache(e),s=i)}),s};var g=function(){var i;function t(){return e?z.promise||null:o}var e,o,n,_,C,E,s=arguments[0]&&(arguments[0].p||q.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||V.isString(arguments[0].properties));V.isWrapped(this)?(e=!1,n=0,o=_=this):(e=!0,n=1,_=s?arguments[0].elements||arguments[0].e:arguments[0]);var z={promise:null,resolver:null,rejecter:null};if(e&&Y.Promise&&(z.promise=new Y.Promise(function(t,e){z.resolver=t,z.rejecter=e})),E=s?(C=arguments[0].properties||arguments[0].p,arguments[0].options||arguments[0].o):(C=arguments[n],arguments[n+1]),_=m(_)){var L,j=_.length,D=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(C)&&!q.isPlainObject(E)){E={};for(var r=n+1;r<arguments.length;r++)V.isArray(arguments[r])||!/^(fast|normal|slow)$/i.test(arguments[r])&&!/^\d/.test(arguments[r])?V.isString(arguments[r])||V.isArray(arguments[r])?E.easing=arguments[r]:V.isFunction(arguments[r])&&(E.complete=arguments[r]):E.duration=arguments[r]}switch(C){case"scroll":L="scroll";break;case"reverse":L="reverse";break;case"pause":var a=(new Date).getTime();return q.each(_,function(t,e){w(e,a)}),q.each(Y.State.calls,function(t,o){var n=!1;o&&q.each(o[1],function(t,i){var e=E===B?"":E;return!0!==e&&o[2].queue!==e&&(E!==B||!1!==o[2].queue)||(q.each(_,function(t,e){if(e===i)return o[5]={resume:!1},!(n=!0)}),!n&&void 0)})}),t();case"resume":return q.each(_,function(t,e){b(e)}),q.each(Y.State.calls,function(t,o){var n=!1;o&&q.each(o[1],function(t,i){var e=E===B?"":E;return!0!==e&&o[2].queue!==e&&(E!==B||!1!==o[2].queue)||!o[5]||(q.each(_,function(t,e){if(e===i)return o[5].resume=!0,!(n=!0)}),!n&&void 0)})}),t();case"finish":case"finishAll":case"stop":q.each(_,function(t,e){X(e)&&X(e).delayTimer&&(clearTimeout(X(e).delayTimer.setTimeout),X(e).delayTimer.next&&X(e).delayTimer.next(),delete X(e).delayTimer),"finishAll"!==C||!0!==E&&!V.isString(E)||(q.each(q.queue(e,V.isString(E)?E:""),function(t,e){V.isFunction(e)&&e()}),q.queue(e,V.isString(E)?E:"",[]))});var l=[];return q.each(Y.State.calls,function(n,s){s&&q.each(s[1],function(t,i){var o=E===B?"":E;if(!0!==o&&s[2].queue!==o&&(E!==B||!1!==s[2].queue))return!0;q.each(_,function(t,e){e===i&&(!0!==E&&!V.isString(E)||(q.each(q.queue(e,V.isString(E)?E:""),function(t,e){V.isFunction(e)&&e(null,!0)}),q.queue(e,V.isString(E)?E:"",[])),"stop"===C?((e=X(e))&&e.tweensContainer&&!1!==o&&q.each(e.tweensContainer,function(t,e){e.endValue=e.currentValue}),l.push(n)):"finish"!==C&&"finishAll"!==C||(s[2].duration=1))})})}),"stop"===C&&(q.each(l,function(t,e){A(e,!0)}),z.promise&&z.resolver(_)),t();default:if(!q.isPlainObject(C)||V.isEmptyObject(C)){if(V.isString(C)&&Y.Redirects[C]){var c=(i=q.extend({},E)).duration,d=i.delay||0;return!0===i.backwards&&(_=q.extend(!0,[],_).reverse()),q.each(_,function(t,e){parseFloat(i.stagger)?i.delay=d+parseFloat(i.stagger)*t:V.isFunction(i.stagger)&&(i.delay=d+i.stagger.call(e,t,j)),i.drag&&(i.duration=parseFloat(c)||(/^(callout|transition)/.test(C)?1e3:400),i.duration=Math.max(i.duration*(i.backwards?1-t/j:(t+1)/j),.75*i.duration,200)),Y.Redirects[C].call(e,e,i||{},t,j,_,z.promise?z:B)}),t()}var u="Velocity: First argument ("+C+") was not a property map, a known action, or a registered redirect. Aborting.";return z.promise?z.rejecter(new Error(u)):N.console,t()}L="start"}var H={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},M=[];q.each(_,function(t,e){V.isNode(e)&&function(I,k){var P,t,e,$=q.extend({},Y.defaults,E),W={};switch(X(I)===B&&Y.init(I),parseFloat($.delay)&&!1!==$.queue&&q.queue(I,$.queue,function(t,e){if(!0===e)return!0;Y.velocityQueueEntryFlag=!0;e=Y.State.delayedElements.count++;Y.State.delayedElements[e]=I;var i,e=(i=e,function(){Y.State.delayedElements[i]=!1,t()});X(I).delayBegin=(new Date).getTime(),X(I).delay=parseFloat($.delay),X(I).delayTimer={
233setTimeout:setTimeout(t,parseFloat($.delay)),next:e}}),$.duration.toString().toLowerCase()){case"fast":$.duration=200;break;case"normal":$.duration=400;break;case"slow":$.duration=600;break;default:$.duration=parseFloat($.duration)||1}function i(){var A,O,t,e,i,o,n,s;if($.begin&&0===D)try{$.begin.call(_,_)}catch(t){setTimeout(function(){throw t},1)}if("scroll"===L){var r,a,l,c=/^x$/i.test($.axis)?"Left":"Top",d=parseFloat($.offset)||0;$.container?V.isWrapped($.container)||V.isNode($.container)?($.container=$.container[0]||$.container,l=(r=$.container["scroll"+c])+q(I).position()[c.toLowerCase()]+d):$.container=null:(r=Y.State.scrollAnchor[Y.State["scrollProperty"+c]],a=Y.State.scrollAnchor[Y.State["scrollProperty"+("Left"===c?"Top":"Left")]],l=q(I).offset()[c.toLowerCase()]+d),W={scroll:{rootPropertyValue:!1,startValue:r,currentValue:r,endValue:l,unitType:"",easing:$.easing,scrollData:{container:$.container,direction:c,alternateValue:a}},element:I},Y.debug}else if("reverse"===L){if(!(A=X(I)))return;if(!A.tweensContainer)return void q.dequeue(I,$.queue);for(var u in"none"===A.opts.display&&(A.opts.display="auto"),"hidden"===A.opts.visibility&&(A.opts.visibility="visible"),A.opts.loop=!1,A.opts.begin=null,A.opts.complete=null,E.easing||delete $.easing,E.duration||delete $.duration,$=q.extend({},A.opts,$),O=q.extend(!0,{},A?A.tweensContainer:null))O.hasOwnProperty(u)&&"element"!==u&&(t=O[u].startValue,O[u].startValue=O[u].currentValue=O[u].endValue,O[u].endValue=t,V.isEmptyObject(E)||(O[u].easing=$.easing),Y.debug);W=O}else if("start"===L){(A=X(I))&&A.tweensContainer&&!0===A.isAnimating&&(O=A.tweensContainer);var p,h=function(t,e){var i,o=U.Hooks.getRoot(t),n=!1,s=e[0],r=e[1],a=e[2];if(A&&A.isSVG||"tween"===o||!1!==U.Names.prefixCheck(o)[1]||U.Normalizations.registered[o]!==B){($.display!==B&&null!==$.display&&"none"!==$.display||$.visibility!==B&&"hidden"!==$.visibility)&&/opacity|filter/.test(t)&&!a&&0!==s&&(a=0),$._cacheValues&&O&&O[t]?(a===B&&(a=O[t].endValue+O[t].unitType),n=A.rootPropertyValueCache[o]):U.Hooks.registered[t]?a===B?(n=U.getPropertyValue(I,o),a=U.getPropertyValue(I,t,n)):n=U.Hooks.templates[o][1]:a===B&&(a=U.getPropertyValue(I,t));var l,c,d=!1,e=function(t,e){var e=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i=i||U.Values.getUnitType(t);return[e,i]};if(a!==s&&V.isString(a)&&V.isString(s)){i="";for(var u=0,p=0,h=[],f=[],m=0,g=0,v=0,a=U.Hooks.fixColors(a),s=U.Hooks.fixColors(s);u<a.length&&p<s.length;){var y=a[u],w=s[p];if(/[\d\.-]/.test(y)&&/[\d\.-]/.test(w)){for(var b=y,x=w,S=".",T=".";++u<a.length;){if((y=a[u])===S)S="..";else if(!/\d/.test(y))break;b+=y}for(;++p<s.length;){if((w=s[p])===T)T="..";else if(!/\d/.test(w))break;x+=w}var k,_,C=U.Hooks.getUnit(a,u),E=U.Hooks.getUnit(s,p);u+=C.length,p+=E.length,C===E?b===x?i+=b+C:(i+="{"+h.length+(g?"!":"")+"}"+C,h.push(parseFloat(b)),f.push(parseFloat(x))):(k=parseFloat(b),_=parseFloat(x),i+=(m<5?"calc":"")+"("+(k?"{"+h.length+(g?"!":"")+"}":"0")+C+" + "+(_?"{"+(h.length+(k?1:0))+(g?"!":"")+"}":"0")+E+")",k&&(h.push(k),f.push(0)),_&&(h.push(0),f.push(_)))}else{if(y!==w){m=0;break}i+=y,u++,p++,0===m&&"c"===y||1===m&&"a"===y||2===m&&"l"===y||3===m&&"c"===y||4<=m&&"("===y?m++:(m&&m<5||4<=m&&")"===y&&--m<5)&&(m=0),0===g&&"r"===y||1===g&&"g"===y||2===g&&"b"===y||3===g&&"a"===y||3<=g&&"("===y?(3===g&&"a"===y&&(v=1),g++):v&&","===y?3<++v&&(g=v=0):(v&&g<(v?5:4)||(v?4:3)<=g&&")"===y&&--g<(v?5:4))&&(g=v=0)}}u===a.length&&p===s.length||(Y.debug,i=B),i&&(h.length?(Y.debug,a=h,s=f,l=c=""):i=B)}if(i||(a=(o=e(t,a))[0],c=o[1],s=(o=e(t,s))[0].replace(/^([+-\/*])=/,function(t,e){return d=e,""}),l=o[1],a=parseFloat(a)||0,s=parseFloat(s)||0,"%"===l&&(/^(fontSize|lineHeight)$/.test(t)?(s/=100,l="em"):/^scale/.test(t)?(s/=100,l=""):/(Red|Green|Blue)$/i.test(t)&&(s=s/100*255,l=""))),/[\/*]/.test(d))l=c;else if(c!==l&&0!==a)if(0===s)l=c;else{P=P||function(){var t={myParent:I.parentNode||F.body,position:U.getPropertyValue(I,"position"),fontSize:U.getPropertyValue(I,"fontSize")},e=t.position===H.lastPosition&&t.myParent===H.lastParent,i=t.fontSize===H.lastFontSize;H.lastParent=t.myParent,H.lastPosition=t.position,H.lastFontSize=t.fontSize;var o,n={};return i&&e?(n.emToPx=H.lastEmToPx,n.percentToPxWidth=H.lastPercentToPxWidth,n.percentToPxHeight=H.lastPercentToPxHeight):(o=A&&A.isSVG?F.createElementNS("http://www.w3.org/2000/svg","rect"):F.createElement("div"),Y.init(o),t.myParent.appendChild(o),q.each(["overflow","overflowX","overflowY"],function(t,e){Y.CSS.setPropertyValue(o,e,"hidden")}),Y.CSS.setPropertyValue(o,"position",t.position),Y.CSS.setPropertyValue(o,"fontSize",t.fontSize),Y.CSS.setPropertyValue(o,"boxSizing","content-box"),q.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){Y.CSS.setPropertyValue(o,e,"100%")}),Y.CSS.setPropertyValue(o,"paddingLeft","100em"),n.percentToPxWidth=H.lastPercentToPxWidth=(parseFloat(U.getPropertyValue(o,"width",null,!0))||1)/100,n.percentToPxHeight=H.lastPercentToPxHeight=(parseFloat(U.getPropertyValue(o,"height",null,!0))||1)/100,n.emToPx=H.lastEmToPx=(parseFloat(U.getPropertyValue(o,"paddingLeft"))||1)/100,t.myParent.removeChild(o)),null===H.remToPx&&(H.remToPx=parseFloat(U.getPropertyValue(F.body,"fontSize"))||16),null===H.vwToPx&&(H.vwToPx=parseFloat(N.innerWidth)/100,H.vhToPx=parseFloat(N.innerHeight)/100),n.remToPx=H.remToPx,n.vwToPx=H.vwToPx,n.vhToPx=
233H.vhToPx,Y.debug,n}();var z=/margin|padding|left|right|width|text|word|letter/i.test(t)||/X$/.test(t)||"x"===t?"x":"y";switch(c){case"%":a*="x"==z?P.percentToPxWidth:P.percentToPxHeight;break;case"px":break;default:a*=P[c+"ToPx"]}switch(l){case"%":a*=1/("x"==z?P.percentToPxWidth:P.percentToPxHeight);break;case"px":break;default:a*=1/P[l+"ToPx"]}}switch(d){case"+":s=a+s;break;case"-":s=a-s;break;case"*":s*=a;break;case"/":s=a/s}W[t]={rootPropertyValue:n,startValue:a,currentValue:a,endValue:s,unitType:l,easing:r},i&&(W[t].pattern=i),Y.debug}else Y.debug};for(p in C)if(C.hasOwnProperty(p)){var f=U.Names.camelCase(p),m=(e=C[p],s=n=o=i=void 0,V.isFunction(e)&&(e=e.call(I,k,j)),V.isArray(e)?(o=e[0],s=!V.isArray(e[1])&&/^[\d-]/.test(e[1])||V.isFunction(e[1])||U.RegEx.isHex.test(e[1])?e[1]:V.isString(e[1])&&!U.RegEx.isHex.test(e[1])&&Y.Easings[e[1]]||V.isArray(e[1])?(n=i?e[1]:Q(e[1],$.duration),e[2]):e[1]||e[2]):o=e,i||(n=n||$.easing),V.isFunction(o)&&(o=o.call(I,k,j)),V.isFunction(s)&&(s=s.call(I,k,j)),[o||0,n,s]);if(R(U.Lists.colors)){var g=m[0],v=m[1],y=m[2];if(U.RegEx.isHex.test(g)){for(var w=["Red","Green","Blue"],b=U.Values.hexToRgb(g),x=y?U.Values.hexToRgb(y):B,S=0;S<w.length;S++){var T=[b[S]];v&&T.push(v),x!==B&&T.push(x[S]),h(f+w[S],T)}continue}}h(f,m)}W.element=I}W.element&&(U.Values.addClass(I,"velocity-animating"),M.push(W),(A=X(I))&&(""===$.queue&&(A.tweensContainer=W,A.opts=$),A.isAnimating=!0),D===j-1?(Y.State.calls.push([M,_,$,null,z.resolver,null,0]),!1===Y.State.isTicking&&(Y.State.isTicking=!0,Z())):D++)}!1!==Y.mock&&(!0===Y.mock?$.duration=$.delay=1:($.duration*=parseFloat(Y.mock)||1,$.delay*=parseFloat(Y.mock)||1)),$.easing=Q($.easing,$.duration),$.begin&&!V.isFunction($.begin)&&($.begin=null),$.progress&&!V.isFunction($.progress)&&($.progress=null),$.complete&&!V.isFunction($.complete)&&($.complete=null),$.display!==B&&null!==$.display&&($.display=$.display.toString().toLowerCase(),"auto"===$.display&&($.display=Y.CSS.Values.getDisplayType(I))),$.visibility!==B&&null!==$.visibility&&($.visibility=$.visibility.toString().toLowerCase()),$.mobileHA=$.mobileHA&&Y.State.isMobile&&!Y.State.isGingerbread,!1===$.queue?$.delay?(e=Y.State.delayedElements.count++,Y.State.delayedElements[e]=I,t=e,e=function(){Y.State.delayedElements[t]=!1,i()},X(I).delayBegin=(new Date).getTime(),X(I).delay=parseFloat($.delay),X(I).delayTimer={setTimeout:setTimeout(i,parseFloat($.delay)),next:e}):i():q.queue(I,$.queue,function(t,e){return!0===e?(z.promise&&z.resolver(_),!0):(Y.velocityQueueEntryFlag=!0,void i())}),""!==$.queue&&"fx"!==$.queue||"inprogress"===q.queue(I)[0]||q.dequeue(I)}(e,t)}),(i=q.extend({},Y.defaults,E)).loop=parseInt(i.loop,10);var p=2*i.loop-1;if(i.loop)for(var h=0;h<p;h++){var f={delay:i.delay,progress:i.progress};h===p-1&&(f.display=i.display,f.visibility=i.visibility,f.complete=i.complete),g(_,"reverse",f)}return t()}
233z.promise&&(C&&E&&!1===E.promiseRejectEmpty?z.resolver():z.rejecter())};(Y=q.extend(g,Y)).animate=g;var C=N.requestAnimationFrame||i;return Y.State.isMobile||F.hidden===B||((s=function(){F.hidden?(C=function(t){return setTimeout(function(){t(!0)},16)},Z()):C=N.requestAnimationFrame||i})(),F.addEventListener("visibilitychange",s)),t.Velocity=Y,t!==N&&(t.fn.velocity=g,t.fn.velocity.defaults=Y.defaults),q.each(["Down","Up"],function(t,d){Y.Redirects["slide"+d]=function(i,t,o,e,n,s){var t=q.extend({},t),r=t.begin,a=t.complete,l={},c={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};t.display===B&&(t.display="Down"===d?"inline"===Y.CSS.Values.getDisplayType(i)?"inline-block":"block":"none"),t.begin=function(){for(var t in 0===o&&r&&r.call(n,n),c){var e;c.hasOwnProperty(t)&&(l[t]=i.style[t],e=U.getPropertyValue(i,t),c[t]="Down"===d?[e,0]:[0,e])}l.overflow=i.style.overflow,i.style.overflow="hidden"},t.complete=function(){for(var t in l)l.hasOwnProperty(t)&&(i.style[t]=l[t]);o===e-1&&(a&&a.call(n,n),s&&s.resolver(n))},Y(i,c,t)}}),q.each(["In","Out"],function(t,l){Y.Redirects["fade"+l]=function(t,e,i,o,n,s){var r=q.extend({},e),a=r.complete,e={opacity:"In"===l?1:0};0!==i&&(r.begin=null),r.complete=i!==o-1?null:function(){a&&a.call(n,n),s&&s.resolver(n)},r.display===B&&(r.display="In"===l?"auto":"none"),Y(this,e,r)}}),Y}function v(t){return-t.tension*t.x-t.friction*t.v}function y(t,e,i){t={x:t.x+i.dx*e,v:t.v+i.dv*e,tension:t.tension,friction:t.friction};return{dx:t.v,dv:v(t)}}function X(t){t=q.data(t,"velocity");return null===t?B:t}function w(t,e){t=X(t);t&&t.delayTimer&&!t.delayPaused&&(t.delayRemaining=t.delay-e+t.delayBegin,t.delayPaused=!0,clearTimeout(t.delayTimer.setTimeout))}function b(t){t=X(t);t&&t.delayTimer&&t.delayPaused&&(t.delayPaused=!1,t.delayTimer.setTimeout=setTimeout(t.delayTimer.next,t.delayRemaining))}function l(r,e,a,i){var t="Float32Array"in N;if(4!==arguments.length)return!1;for(var o=0;o<4;++o)if("number"!=typeof arguments[o]||isNaN(arguments[o])||!isFinite(arguments[o]))return!1;r=Math.min(r,1),a=Math.min(a,1),r=Math.max(r,0),a=Math.max(a,0);var s=new(t?Float32Array:Array)(11);function n(t,e){return 1-3*e+3*t}function l(t,e,i){return((n(e,i)*t+(3*i-6*e))*t+3*e)*t}function c(t,e,i){return 3*n(e,i)*t*t+2*(3*i-6*e)*t+3*e}var d=!1;function u(){d=!0,r===e&&a===i||function(){for(var t=0;t<11;++t)s[t]=l(.1*t,r,a)}()}t=function(t){return d||u(),r===e&&a===i?t:0===t?0:1===t?1:l(function(t){for(var e=0,i=1;10!==i&&s[i]<=t;++i)e+=.1;var o=e+(t-s[--i])/(s[i+1]-s[i])*.1,n=c(o,r,a);return.001<=n?function(t,e){for(var i=0;i<4;++i){var o=c(e,r,a);if(0===o)return e;e-=(l(e,r,a)-t)/o}return e}(t,o):0===n?o:function(t,e,i){for(var o,n,s=0;0<(o=l(n=e+(i-e)/2,r,a)-t)?i=n:e=n,1e-7<Math.abs(o)&&++s<10;);return n}(t,e,e+.1)}(t),e,i)};t.getControlPoints=function(){return[{x:r,y:e},{x:a,y:i}]};var p="generateBezier("+[r,e,a,i]+")";return t.toString=function(){return p},t}function Q(t,e){var i=t;return V.isString(t)?Y.Easings[t]||(i=!1):i=V.isArray(t)&&1===t.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,t):V.isArray(t)&&2===t.length?a.apply(null,t.concat([e])):!(!V.isArray(t)||4!==t.length)&&l.apply(null,t),!1===i&&(i=Y.Easings[Y.defaults.easing]?Y.defaults.easing:r),i}function Z(t){if(t){var e=Y.timestamp&&!0!==t?t:_.now(),i=Y.State.calls.length;1e4<i&&(Y.State.calls=function(t){for(var e=-1,i=t?t.length:0,o=[];++e<i;){var n=t[e];n&&o.push(n)}return o}(Y.State.calls),i=Y.State.calls.length);for(var o=0;o<i;o++)if(Y.State.calls[o]){var n=Y.State.calls[o],s=n[0],r=n[2],a=!(u=n[3]),l=null,c=n[5],d=n[6],u=u||(Y.State.calls[o][3]=e-16);if(c){if(!0!==c.resume)continue;u=n[3]=Math.round(e-d-16),n[5]=null}d=n[6]=e-u;for(var p=Math.min(d/r.duration,1),h=0,f=s.length;h<f;h++){var m=s[h],g=m.element;if(X(g)){var v,y=!1;for(v in r.display!==B&&null!==r.display&&"none"!==r.display&&("flex"===r.display&&q.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(t,e){U.setPropertyValue(g,"display",e)}),U.setPropertyValue(g,"display",r.display)),r.visibility!==B&&"hidden"!==r.visibility&&U.setPropertyValue(g,"visibility",r.visibility),m)if(m.hasOwnProperty(v)&&"element"!==v){var w,b,x,S=m[v],T=V.isString(S.easing)?Y.Easings[S.easing]:S.easing;
233if(x=V.isString(S.pattern)?(x=1===p?function(t,e,i){e=S.endValue[e];return i?Math.round(e):e}:function(t,e,i){var o=S.startValue[e],e=S.endValue[e]-o,e=o+e*T(p,r,e);return i?Math.round(e):e},S.pattern.replace(/{(\d+)(!)?}/g,x)):1===p?S.endValue:(b=S.endValue-S.startValue,S.startValue+b*T(p,r,b)),!a&&x===S.currentValue)continue;S.currentValue=x,"tween"===v?l=x:(U.Hooks.registered[v]&&(w=U.Hooks.getRoot(v),(b=X(g).rootPropertyValueCache[w])&&(S.rootPropertyValue=b)),x=U.setPropertyValue(g,v,S.currentValue+(k<9&&0===parseFloat(x)?"":S.unitType),S.rootPropertyValue,S.scrollData),U.Hooks.registered[v]&&(U.Normalizations.registered[w]?X(g).rootPropertyValueCache[w]=U.Normalizations.registered[w]("extract",null,x[1]):X(g).rootPropertyValueCache[w]=x[1]),"transform"===x[0]&&(y=!0))}r.mobileHA&&X(g).transformCache.translate3d===B&&(X(g).transformCache.translate3d="(0px, 0px, 0px)",y=!0),y&&U.flushTransformCache(g)}}r.display!==B&&"none"!==r.display&&(Y.State.calls[o][2].display=!1),r.visibility!==B&&"hidden"!==r.visibility&&(Y.State.calls[o][2].visibility=!1),r.progress&&r.progress.call(n[1],n[1],p,Math.max(0,u+r.duration-e),u,l),1===p&&A(o)}}Y.State.isTicking&&C(Z)}function A(t,e){if(Y.State.calls[t]){for(var i=Y.State.calls[t][0],o=Y.State.calls[t][1],n=Y.State.calls[t][2],s=Y.State.calls[t][4],r=!1,a=0,l=i.length;a<l;a++){var c=i[a].element;e||n.loop||("none"===n.display&&U.setPropertyValue(c,"display",n.display),"hidden"===n.visibility&&U.setPropertyValue(c,"visibility",n.visibility));var d,u=X(c);if(!0===n.loop||q.queue(c)[1]!==B&&/\.velocityQueueEntryFlag/i.test(q.queue(c)[1])||!u||(u.isAnimating=!1,d=!(u.rootPropertyValueCache={}),q.each(U.Lists.transforms3D,function(t,e){var i=/^scale/.test(e)?1:0,o=u.transformCache[e];u.transformCache[e]!==B&&new RegExp("^\\("+i+"[^.]").test(o)&&(d=!0,delete u.transformCache[e])}),n.mobileHA&&(d=!0,delete u.transformCache.translate3d),d&&U.flushTransformCache(c),U.Values.removeClass(c,"velocity-animating")),!e&&n.complete&&!n.loop&&a===l-1)try{n.complete.call(o,o)}catch(t){setTimeout(function(){throw t},1)}s&&!0!==n.loop&&s(o),u&&!0===n.loop&&!e&&(q.each(u.tweensContainer,function(t,e){var i;/^rotate/.test(t)&&(parseFloat(e.startValue)-parseFloat(e.endValue))%360==0&&(i=e.startValue,e.startValue=e.endValue,e.endValue=i),/^backgroundPosition/.test(t)&&100===parseFloat(e.endValue)&&"%"===e.unitType&&(e.endValue=0,e.startValue=100)}),Y(c,"reverse",{loop:!0,delay:n.delay})),!1!==n.queue&&q.dequeue(c,n.queue)}Y.State.calls[t]=!1;for(var p=0,h=Y.State.calls.length;p<h;p++)if(!1!==Y.State.calls[p]){r=!0;break}!1===r&&(Y.State.isTicking=!1,delete Y.State.calls,Y.State.calls=[])}}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})},function(){var s;(s=jQuery).fn.makeProductScrollBox=function(){var t,e,i,o;this.length&&!this.hasClass("js-enabled-scrollbox")&&(e=(t=this.find(".product-list")).find(".product-miniature"),i=this.find(".scroll-box-arrows"),o=t.data("autoscroll")||!1,t.width()+20<e.length*e.outerWidth()&&(this.addClass("js-enabled-scrollbox"),t.scrollbox({direction:"h",distance:"auto",autoPlay:o,infiniteLoop:!1,onMouseOverPause:o,listElement:".product-list-wrapper",listItemElement:".product-miniature"}),i.addClass("scroll"),i.find(".left").click(function(){t.trigger("backward")}),i.find(".right").click(function(){t.trigger("forward")}),"ontouchstart"in document.documentElement&&(t.on("swipeleft",function(){t.trigger("forward")}),t.on("swiperight",function(){t.trigger("backward")}))))},s.fn.makeFlexScrollBox=function(t){var e=s.extend({list:"ul",items:"li",arrows:".scroll-box-arrows",autoPlay:!1,onMouseOverPause:!1,forceMakeScroll:!1},t),i=this,o=i.find(e.items),t=i.next(e.arrows);(i.width()+20<o.length*o.outerWidth()||e.forceMakeScroll)&&(i.scrollbox({direction:"h",distance:"auto",autoPlay:e.autoPlay,onMouseOverPause:e.onMouseOverPause,infiniteLoop:!1,listElement:e.list,listItemElement:e.items}),t.addClass("scroll"),t.find(".left").click(function(){i.trigger("backward")}),t.find(".right").click(function(){i.trigger("forward")}),"ontouchstart"in document.documentElement&&(i.on("swipeleft",function(){i.trigger("forward")}),i.on("swiperight",function(){i.trigger("backward")})))},s.fn.runCountdown=function(t){var t=s.extend({specificPricesTo:!1,getFinalDateController:!1},t),o=this;t.specificPricesTo&&t.getFinalDateController&&s.ajax({type:"POST",url:t.getFinalDateController,data:{ajax:!0,"specific-prices-to":t.specificPricesTo},success:function(t){o.html(t);let i=o.find("[data-final-date]");if(i.length){let e=i.html();i.countdown(i.data("final-date")).on("update.countdown",function(t){t.offset.totalDays<=0&&(e="<time>%H:%M:%S</time>"),i.html(t.strftime(e))}).on("finish.countdown",function(){o.addClass("expired")}),setTimeout(function(){o.slideDown()},500)}},error:function(){}})},s.fn.updateCountdown=function(t){var o=s.extend({newSpecificPricesTo:"",currentSpecificPricesTo:"",getFinalDateController:!1},t),n=this;n.attr("data-specific-prices-to",o.newSpecificPricesTo),""!=o.newSpecificPricesTo&&o.getFinalDateController?o.currentSpecificPricesTo!=o.newSpecificPricesTo&&(""!=o.currentSpecificPricesTo&&n.addClass("updating-timer"),s.ajax({type:"POST",url:o.getFinalDateController,data:{ajax:!0,"specific-prices-to":o.newSpecificPricesTo},success:function(t){n.html(t);let i=n.find("[data-final-date]");if(i.length){let e=i.html();i.countdown(i.data("final-date")).on("update.countdown",function(t){t.offset.totalDays<=0&&(e="<time>%H:%M:%S</time>"),i.html(t.strftime(e))}).on("finish.countdown",function(){n.addClass("expired")}),setTimeout(function(){""!=o.currentSpecificPricesTo?n.removeClass("updating-timer"):n.slideDown()},500)}},error:function(){}})):n.slideUp().html("")},s.fn.makeTouchSpin=function(){this.TouchSpin({verticalbuttons:!1,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",buttondown_txt:'<i class="material-icons">remove</i>',buttonup_txt:'<i class="material-icons">add</i>',min:parseInt(this.attr("min"),10),max:1e6})}},function(){!function(a,l){"use strict";
233function c(t){var e=Array.prototype.slice.call(arguments,1);return(t.prop||t.attr).apply(t,e)}function d(t,e,i){var o,n;for(o in i)i.hasOwnProperty(o)&&(n=o.replace(/ |$/g,e.eventNamespace),t.bind(n,i[o]))}function u(t,e,i){d(t,i,{focus:function(){e.addClass(i.focusClass)},blur:function(){e.removeClass(i.focusClass),e.removeClass(i.activeClass)},mouseenter:function(){e.addClass(i.hoverClass)},mouseleave:function(){e.removeClass(i.hoverClass),e.removeClass(i.activeClass)},"mousedown touchbegin":function(){t.is(":disabled")||e.addClass(i.activeClass)},"mouseup touchend":function(){e.removeClass(i.activeClass)}})}function p(t,e){t.removeClass(e.hoverClass+" "+e.focusClass+" "+e.activeClass)}function s(t,e,i){i?t.addClass(e):t.removeClass(e)}function r(i,o,n){setTimeout(function(){var t="checked",e=o.is(":"+t);o.prop?o.prop(t,e):e?o.attr(t,t):o.removeAttr(t),s(i,n.checkedClass,e)},1)}function h(t,e,i){s(t,i.disabledClass,e.is(":disabled"))}function f(t,e,i){switch(i){case"after":return t.after(e),t.next();case"before":return t.before(e),t.prev();case"wrap":return t.wrap(e),t.parent()}return null}function m(t,e,i){var o,n,s;return i=i||{},i=l.extend({bind:{},divClass:null,divWrap:"wrap",spanClass:null,spanHtml:null,spanWrap:"wrap"},i),o=l("<div />"),n=l("<span />"),e.autoHide&&t.is(":hidden")&&"none"===t.css("display")&&o.hide(),i.divClass&&o.addClass(i.divClass),e.wrapperClass&&o.addClass(e.wrapperClass),i.spanClass&&n.addClass(i.spanClass),s=c(t,"id"),e.useID&&s&&c(o,"id",e.idPrefix+"-"+s),i.spanHtml&&n.html(i.spanHtml),o=f(t,o,i.divWrap),n=f(t,n,i.spanWrap),h(o,t,e),{div:o,span:n}}function n(t,e){return e.wrapperClass?f(t,l("<span />").addClass(e.wrapperClass),"wrap"):null}function g(){return navigator.cpuClass&&!navigator.product}function e(t){return t[0].multiple||(t=c(t,"size"))&&!(t<=1)}function v(){return!1}function y(t,e){var i="none";d(t,e,{"selectstart dragstart mousedown":v}),t.css({MozUserSelect:i,msUserSelect:i,webkitUserSelect:i,userSelect:i})}function w(t,e,i){t=""===(t=l.map(t[0].files,function(t){return t.name}).join(", "))?i.fileDefaultHtml:(t=t.split(/[\/\\]+/))[t.length-1];e.text(t)}function b(t,e,i){var o,n=[];for(t.each(function(){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n.push({el:this,name:t,old:this.style[t]}),this.style[t]=e[t])}),i();n.length;)(o=n.pop()).el.style[o.name]=o.old}function x(t,e){var i;(i=t.parents()).push(t[0]),b(i=i.not(":visible"),{visibility:"hidden",display:"block",position:"absolute"},e)}function S(t,e){return function(){t.unwrap().unwrap().unbind(e.eventNamespace)}}var T=!0,k=!1,_=[{match:function(t){return t.is("a, button, :submit, :reset, input[type='button']")},apply:function(i,t){var e,o,n,s,r=t.submitDefaultHtml;return i.is(":reset")&&(r=t.resetDefaultHtml),n=i.is("a, button")?function(){return i.html()||r}:function(){return((t=c(i,"value"))?l("<span />").text(t).html():"")||r;var t},o=m(i,t,{divClass:t.buttonClass,spanHtml:n()}),e=o.div,u(i,e,t),s=!1,d(e,t,{"click touchend":function(){var t,e;return!s&&!i.is(":disabled")&&(s=!0,i[0].dispatchEvent?((t=document.createEvent("MouseEvents")).initEvent("click",!0,!0),e=i[0].dispatchEvent(t),i.is("a")&&e&&(t=c(i,"target"),e=c(i,"href"),t&&"_self"!==t?a.open(e,t):document.location.href=e)):i.click(),void(s=!1))}}),y(e,t),{remove:function(){return e.after(i),e.remove(),i.unbind(t.eventNamespace),i},update:function(){p(e,t),h(e,i,t),i.detach(),o.span.html(n()).append(i)}}}},{match:function(t){return t.is(":checkbox")},apply:function(t,e){var i=m(t,e,{divClass:e.checkboxClass}),o=i.div,n=i.span;return u(t,o,e),d(t,e,{"click touchend":function(){r(n,t,e)}}),r(n,t,e),{remove:S(t,e),update:function(){p(o,e),n.removeClass(e.checkedClass),r(n,t,e),h(o,t,e)}}}},{match:function(t){return t.is(":file")},apply:function(t,e){function i(){w(t,o,e)}var o,n=void 0!==t.attr("multiple"),n=m(t,e,{divClass:e.fileClass,spanClass:e.fileButtonClass,spanHtml:n?e.filesButtonHtml:e.fileButtonHtml,spanWrap:"after"}),s=n.div,r=n.span;return(o=l("<span />").html(e.fileDefaultHtml)).addClass(e.filenameClass),o=f(t,o,"after"),c(t,"size")||c(t,"size",s.width()/10),u(t,s,e),i(),g()?d(t,e,{click:function(){t.trigger("change"),setTimeout(i,0)}}):d(t,e,{change:i}),y(o,e),y(r,e),{remove:function(){return o.remove(),r.remove(),t.unwrap().unbind(e.eventNamespace)},update:function(){p(s,e),w(t,o,e),h(s,t,e)}}}},{match:function(t){if(t.is("input")){t=(" "+c(t,"type")+" ").toLowerCase();return 0<=" color date datetime datetime-local email month number password search tel text time url week ".indexOf(t)}return!1},apply:function(t,e){var i,o=c(t,"type");return t.addClass(e.inputClass),i=n(t,e),u(t,t,e),e.inputAddTypeAsClass&&t.addClass(o),{remove:function(){t.removeClass(e.inputClass),e.inputAddTypeAsClass&&t.removeClass(o),i&&t.unwrap()},update:v}}},{match:function(t){return t.is(":radio")},apply:function(t,e){var i=m(t,e,{divClass:e.radioClass}),o=i.div,n=i.span;return u(t,o,e),d(t,e,{"click touchend":function(){void 0!==t.attr("name")?l.uniform.update(l(':radio[name="'+c(t,"name")+'"]')):l.uniform.update(t)}}),r(n,t,e),{remove:S(t,e),update:function(){p(o,e),r(n,t,e),h(o,t,e)}}}},{match:function(t){return!(!t.is("select")||e(t))},apply:function(e,t){var i,o,n,s;return t.selectAutoWidth&&x(e,function(){s=e.width()}),i=m(e,t,{divClass:t.selectClass,spanHtml:(e.find(":selected:first")||e.find("option:first")).html(),spanWrap:"before"}),o=i.div,n=i.span,t.selectAutoWidth?x(e,function(){b(l([n[0],o[0]]),{display:"block"},function(){var t=n.outerWidth()-n.width();o.width(s+t),n.width(s)})}):o.addClass("fixedWidth"),u(e,o,t),d(e,t,{change:function(){n.html(e.find(":selected").html()),o.removeClass(t.activeClass)},"click touchend":function(){var t=e.find(":selected").html();n.html()!==t&&e.trigger("change")},keyup:function(){n.html(e.find(":selected").html())}}),y(n,t),{remove:function(){return n.remove(),e.unwrap().unbind(t.eventNamespace),e},update:function(){t.selectAutoWidth?(l.uniform.restore(e),e.uniform(t)):(p(o,t),e[0].selectedIndex=e[0].selectedIndex,n.html(e.find(":selected").html()),h(o,e,t))}}}},{match:function(t){return!(!t.is("select")||!e(t))},apply:function(t,e){var i;return t.addClass(e.selectMultiClass),i=n(t,e),u(t,t,e),{remove:function(){t.removeClass(e.selectMultiClass),i&&t.unwrap()},update:v}}},{match:function(t){return t.is("textarea")},apply:function(t,e){var i;return t.addClass(e.textareaClass),i=n(t,e),u(t,t,e),{remove:function(){t.removeClass(e.textareaClass),i&&t.unwrap()},update:v}}}];g()&&void 0===a.XMLHttpRequest&&(T=!1),l.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"CHOIX DE FICHIER",filesButtonHtml:"CHOIX DE FICHIERs",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:[]},l.fn.uniform=function(o){var t,e,i=this;return o=l.extend({},l.uniform.defaults,o),k||(k=!0,e=l('<div style="width:0;height:0;color:'+"rgb(120,2,153)"+'">'),l("body").append(e),t=e.get(0),t=(a.getComputedStyle?a.getComputedStyle(t,""):t.currentStyle||t.style||{}).color,e.remove(),"rgb(120,2,153)"!==t.replace(/ /g,"")&&(T=!1)),T?(o.resetSelector&&l(o.resetSelector).mouseup(function(){a.setTimeout(function(){l.uniform.update(i)},10)}),this.each(function(){var t,e,i=l(this);if(i.data("uniformed"))l.uniform.update(i);else for(t=0;t<_.length;t+=1)if((e=_[t]).match(i,o))return e=e.apply(i,o),i.data("uniformed",e),void l.uniform.elements.push(i.get(0))})):this},l.uniform.restore=l.fn.uniform.restore=function(t){void 0===t&&(t=l.uniform.elements),l(t).each(function(){var t,e=l(this);(t=e.data("uniformed"))&&(t.remove(),0<=(t=l.inArray(this,l.uniform.elements))&&l.uniform.elements.splice(t,1),e.removeData("uniformed"))})},l.uniform.update=l.fn.uniform.update=function(t){void 0===t&&(t=l.uniform.elements),l(t).each(function(){var t,e=l(this);(t=e.data("uniformed"))&&t.update(e,t.options)})}}(this,jQuery)},function(){!function(k){"use strict";var _=0;function C(t,e){return k.map(t,function(t){return t+".touchspin_"+e})}k.fn.TouchSpin=function(x){if("destroy"!==x){var S={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},T={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){var a,l,i,o,t,e,n,s,r,c,d=k(this),u=d.data(),p=0,h=!1;function f(){var t,e,i;""!==(t=d.val())?0<a.decimals&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==a.replacementval?a.replacementval:0),(i=e).toString()!==t&&(i=e),e<a.min&&(i=a.min),e>a.max&&(i=a.max),i=function(t){switch(a.forcestepdivisibility){case"round":return(Math.round(t/a.step)*a.step).toFixed(a.decimals);case"floor":return(Math.floor(t/a.step)*a.step).toFixed(a.decimals);case"ceil":return(Math.ceil(t/a.step)*a.step).toFixed(a.decimals);default:return t}}(i),Number(t).toString()!==i.toString()&&(d.val(i),d.trigger("change"))):""!==a.replacementval&&(d.val(a.replacementval),d.trigger("change"))}function m(){if(a.booster){var t=Math.pow(2,Math.floor(p/a.boostat))*a.step;return a.maxboostedstep&&t>a.maxboostedstep&&(t=a.maxboostedstep,o=Math.round(o/t)*t),Math.max(a.step,t)}return a.step}function g(){f(),o=parseFloat(i.input.val()),isNaN(o)&&(o=0);var t=o,e=m();(o+=e)>a.max&&(o=a.max,d.trigger("touchspin.on.max"),b()),i.input.val(Number(o).toFixed(a.decimals)),t!==o&&d.trigger("change")}function v(){f(),o=parseFloat(i.input.val()),isNaN(o)&&(o=0);var t=o,e=m();(o-=e)<a.min&&(o=a.min,d.trigger("touchspin.on.min"),b()),i.input.val(o.toFixed(a.decimals)),t!==o&&d.trigger("change")}function y(){b(),p=0,h="down",d.trigger("touchspin.on.startspin"),d.trigger("touchspin.on.startdownspin"),n=setTimeout(function(){t=setInterval(function(){p++,v()},a.stepinterval)},a.stepintervaldelay)}function w(){b(),p=0,h="up",d.trigger("touchspin.on.startspin"),d.trigger("touchspin.on.startupspin"),s=setTimeout(function(){e=setInterval(function(){p++,g()},a.stepinterval)},a.stepintervaldelay)}function b(){switch(clearTimeout(n),clearTimeout(s),clearInterval(t),clearInterval(e),h){case"up":d.trigger("touchspin.on.stopupspin"),d.trigger("touchspin.on.stopspin");break;case"down":d.trigger("touchspin.on.stopdownspin"),d.trigger("touchspin.on.stopspin")}p=0,h=!1}d.data("alreadyinitialized")||(d.data("alreadyinitialized",!0),_+=1,d.data("spinnerid",_),d.is("input")&&(""!==(a=k.extend({},S,u,(c={},k.each(T,function(t,e){e="bts-"+e;d.is("[data-"+e+"]")&&(c[t]=d.data(e))}),c),x)).initval&&""===d.val()&&d.val(a.initval),f(),r=d.val(),u=d.parent(),""!==r&&(r=Number(r).toFixed(a.decimals)),d.data("initvalue",r).val(r),d.addClass("form-control"),u.hasClass("input-group")?function(t){t.addClass("bootstrap-touchspin");var e,i,o=d.prev(),n=d.next(),s='<span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+"</span>",r='<span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+"</span>";o.hasClass("input-group-btn")?(e='<button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+"</button>",o.append(e)):(e='<span class="input-group-btn"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+"</button></span>",k(e).insertBefore(d)),n.hasClass("input-group-btn")?(i='<button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button>",n.prepend(i)):(i='<span class="input-group-btn"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span>",k(i).insertAfter(d)),k(s).insertBefore(d),k(r).insertAfter(d),l=t}(u):(u=a.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+'</span><span class="input-group-btn-vertical"><button class="'+a.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+a.verticalupclass+'"></i></button><button class="'+a.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+a.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+a.buttondown_class+' bootstrap-touchspin-down" type="button">'+a.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+a.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+a.postfix+'</span><span class="input-group-btn"><button class="'+a.buttonup_class+' bootstrap-touchspin-up" type="button">'+a.buttonup_txt+"</button></span></div>",l=k(u).insertBefore(d),k(".bootstrap-touchspin-prefix",l).after(d),d.hasClass("input-sm")?l.addClass("input-group-sm"):d.hasClass("input-lg")&&l.addClass("input-group-lg")),i={down:k(".bootstrap-touchspin-down",l),up:k(".bootstrap-touchspin-up",l),input:k("input",l),prefix:k(".bootstrap-touchspin-prefix",l).addClass(a.prefix_extraclass),postfix:k(".bootstrap-touchspin-postfix",l).addClass(a.postfix_extraclass)},""===a.prefix&&i.prefix.hide(),""===a.postfix&&i.postfix.hide(),d.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==h&&(g(),w()),t.preventDefault()):40===e&&("down"!==h&&(v(),y()),t.preventDefault())}),d.on("keyup",function(t){t=t.keyCode||t.which;38!==t&&40!==t||b()}),d.on("blur",function(){f()}),i.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==h&&(v(),y()),t.preventDefault())}),i.down.on("keyup",function(t){t=t.keyCode||t.which;32!==t&&13!==t||b()}),i.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==h&&(g(),w()),t.preventDefault())}),i.up.on("keyup",function(t){t=t.keyCode||t.which;32!==t&&13!==t||b()}),i.down.on("mousedown.touchspin",function(t){i.down.off("touchstart.touchspin"),d.is(":disabled")||(v(),y(),t.preventDefault(),t.stopPropagation())}),i.down.on("touchstart.touchspin",function(t){i.down.off("mousedown.touchspin"),d.is(":disabled")||(v(),y(),t.preventDefault(),t.stopPropagation())}),i.up.on("mousedown.touchspin",function(t){i.up.off("touchstart.touchspin"),d.is(":disabled")||(g(),w(),t.preventDefault(),t.stopPropagation())}),i.up.on("touchstart.touchspin",function(t){i.up.off("mousedown.touchspin"),d.is(":disabled")||(g(),w(),t.preventDefault(),t.stopPropagation())}),i.up.on("mouseout touchleave touchend touchcancel",function(t){h&&(t.stopPropagation(),b())}),i.down.on("mouseout touchleave touchend touchcancel",function(t){h&&(t.stopPropagation(),b())}),i.down.on("mousemove touchmove",function(t){h&&(t.stopPropagation(),t.preventDefault())}),i.up.on("mousemove touchmove",function(t){h&&(t.stopPropagation(),t.preventDefault())}),k(document).on(C(["mouseup","touchend","touchcancel"],_).join(" "),function(t){h&&(t.preventDefault(),b())}),k(document).on(C(["mousemove","touchmove","scroll","scrollstart"],_).join(" "),function(t){h&&(t.preventDefault(),b())}),d.on("mousewheel DOMMouseScroll",function(t){var e;a.mousewheel&&d.is(":focus")&&(e=t.originalEvent.wheelDelta||-t.o
233riginalEvent.deltaY||-t.originalEvent.detail,t.stopPropagation(),t.preventDefault(),(e<0?v:g)())}),d.on("touchspin.uponce",function(){b(),g()}),d.on("touchspin.downonce",function(){b(),v()}),d.on("touchspin.startupspin",function(){w()}),d.on("touchspin.startdownspin",function(){y()}),d.on("touchspin.stopspin",function(){b()}),d.on("touchspin.updatesettings",function(t,e){e=e,a=k.extend({},a,e),f(),""!==(e=i.input.val())&&(e=Number(i.input.val()),i.input.val(e.toFixed(a.decimals)))}),i.input.css("display","block")))})}this.each(function(){var t=k(this).data();k(document).off(C(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],t.spinnerid).join(" "))})}}(jQuery)},function(t){t.exports=function o(n,s,r){function a(e,t){if(!s[e]){if(!n[e]){if(0,l)return l(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}i=s[e]={exports:{}};n[e][0].call(i.exports,function(t){return a(n[e][1][t]||t)},i,i.exports,o,n,s,r)}return s[e].exports}for(var l=!1,t=0;t<r.length;t++)a(r[t]);return a}({1:[function(t,e){e.exports=function(t){var e,i,o,n=-1;if(1<t.lines.length&&"flex-start"===t.style.alignContent)for(e=0;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(1<t.lines.length&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(1<t.lines.length&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;o=t.lines[++n];)o.crossStart=e,e+=o.cross;else if(1<t.lines.length&&"space-between"===t.style.alignContent)for(i=t.flexStyle.crossSpace/(t.lines.length-1),e=0;o=t.lines[++n];)o.crossStart=e,e+=o.cross+i;else if(1<t.lines.length&&"space-around"===t.style.alignContent)for(e=(i=2*t.flexStyle.crossSpace/(2*t.lines.length))/2;o=t.lines[++n];)o.crossStart=e,e+=o.cross+i;else for(i=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;o=t.lines[++n];)o.crossStart=e,o.cross+=i,e+=o.cross}},{}],2:[function(t,e){e.exports=function(t){for(var e,i=-1;line=t.lines[++i];)for(e=-1;child=line.children[++e];){var o=child.style.alignSelf;"auto"===o&&(o=t.style.alignItems),"flex-start"===o?child.flexStyle.crossStart=line.crossStart:"flex-end"===o?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===o?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e){e.exports=function(t,e){var i="row"===e||"row-reverse"===e,e=t.mainAxis;e?i&&"inline"===e||!i&&"block"===e||(t.flexStyle={main:t.flexStyle.cross,cross:t.flexStyle.main,mainOffset:t.flexStyle.crossOffset,crossOffset:t.flexStyle.mainOffset,mainBefore:t.flexStyle.crossBefore,mainAfter:t.flexStyle.crossAfter,crossBefore:t.flexStyle.mainBefore,crossAfter:t.flexStyle.mainAfter,mainInnerBefore:t.flexStyle.crossInnerBefore,mainInnerAfter:t.flexStyle.crossInnerAfter,crossInnerBefore:t.flexStyle.mainInnerBefore,crossInnerAfter:t.flexStyle.mainInnerAfter,mainBorderBefore:t.flexStyle.crossBorderBefore,mainBorderAfter:t.flexStyle.crossBorderAfter,crossBorderBefore:t.flexStyle.mainBorderBefore,crossBorderAfter:t.flexStyle.mainBorderAfter}):(t.flexStyle=i?{main:t.style.width,cross:t.style.height,mainOffset:t.style.offsetWidth,crossOffset:t.style.offsetHeight,mainBefore:t.style.marginLeft,mainAfter:t.style.marginRight,crossBefore:t.style.marginTop,crossAfter:t.style.marginBottom,mainInnerBefore:t.style.paddingLeft,mainInnerAfter:t.style.paddingRight,crossInnerBefore:t.style.paddingTop,crossInnerAfter:t.style.paddingBottom,mainBorderBefore:t.style.borderLeftWidth,mainBorderAfter:t.style.borderRightWidth,crossBorderBefore:t.style.borderTopWidth,crossBorderAfter:t.style.borderBottomWidth}:{main:t.style.height,cross:t.style.width,mainOffset:t.style.offsetHeight,crossOffset:t.style.offsetWidth,mainBefore:t.style.marginTop,mainAfter:t.style.marginBottom,crossBefore:t.style.marginLeft,crossAfter:t.style.marginRight,mainInnerBefore:t.style.paddingTop,mainInnerAfter:t.style.paddingBottom,crossInnerBefore:t.style.paddingLeft,crossInnerAfter:t.style.paddingRight,mainBorderBefore:t.style.borderTopWidth,mainBorderAfter:t.style.borderBottomWidth,crossBorderBefore:t.style.borderLeftWidth,crossBorderAfter:t.style.borderRightWidth},"content-box"===t.style.boxSizing&&("number"==typeof t.flexStyle.main&&(t.flexStyle.main+=t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),"number"==typeof t.flexStyle.cross&&(t.flexStyle.cross+=t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter))),t.mainAxis=i?"inline":"block",t.crossAxis=i?"block":"inl
233ine","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e){var n=t("../reduce");e.exports=function(i){var o;0<i.mainSpace&&(0<(o=n(i.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0))&&(i.main=n(i.children,function(t,e){return"auto"===e.flexStyle.main?e.flexStyle.main=e.flexStyle.mainOffset+parseFloat(e.style.flexGrow)/o*i.mainSpace:e.flexStyle.main+=parseFloat(e.style.flexGrow)/o*i.mainSpace,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,t+e.flexStyle.mainOuter},0),i.mainSpace=0))}},{"../reduce":12}],5:[function(t,e){var n=t("../reduce");e.exports=function(i){var o;i.mainSpace<0&&(0<(o=n(i.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0))&&(i.main=n(i.children,function(t,e){return e.flexStyle.main+=parseFloat(e.style.flexShrink)/o*i.mainSpace,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,t+e.flexStyle.mainOuter},0),i.mainSpace=0))}},{"../reduce":12}],6:[function(t,e){var n=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var i,o=-1;i=t.children[++o];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+i.flexStyle.mainOuter?(e.main+=i.flexStyle.mainOuter,e.cross=Math.max(e.cross,i.flexStyle.crossOuter)):t.lines.push(e={main:i.flexStyle.mainOuter,cross:i.flexStyle.crossOuter,children:[]}),e.children.push(i);t.flexStyle.mainLines=n(t.lines,function(t,e){return Math.max(t,e.main)},0),t.flexStyle.crossLines=n(t.lines,function(t,e){return t+e.cross},0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(n,t){t.exports=function(t){for(var e,i,o=-1;e=t.children[++o];)n("./flex-direction")(e,t.style.flexDirection);for(n("./flex-direction")(t,t.style.flexDirection),n("./order")(t),n("./flexbox-lines")(t),n("./align-content")(t),o=-1;i=t.lines[++o];)i.mainSpace=t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter-i.main,n("./flex-grow")(i),n("./flex-shrink")(i),n("./margin-main")(i),n("./margin-cross")(i),n("./justify-content")(i,t.style.justifyContent,t);n("./align-items")(t)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e){e.exports=function(t,e,i){var o,n,s,i=i.flexStyle.mainInnerBefore,r=-1;if("flex-end"===e)for(o=t.mainSpace,o+=i;s=t.children[++r];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter;else if("center"===e)for(o=t.mainSpace/2,o+=i;s=t.children[++r];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter;else if("space-between"===e)for(n=t.mainSpace/(t.children.length-1),o=0,o+=i;s=t.children[++r];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter+n;else if("space-around"===e)for(o=(n=2*t.mainSpace/(2*t.children.length))/2,o+=i;s=t.children[++r];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter+n;else for(o=0,o+=i;s=t.children[++r];)s.flexStyle.mainStart=o,o+=s.flexStyle.mainOuter}},{}],9:[function(t,e){e.exports=function(t){for(var e,i=-1;e=t.children[++i];){var o=0;"auto"===e.flexStyle.crossBefore&&++o,"auto"===e.flexStyle.crossAfter&&
233++o;var n=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=n/o),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=n/o),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e){e.exports=function(t){for(var e,i=0,o=-1;e=t.children[++o];)"auto"===e.flexStyle.mainBefore&&++i,"auto"===e.flexStyle.mainAfter&&++i;if(0<i){for(o=-1;e=t.children[++o];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/i),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/i),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e){var i=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),i.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e){e.exports=function(t,e,i){for(var o=t.length,n=-1;++n<o;)n in t&&(i=e(i,t[n],n));return i}},{}],13:[function(t,e){var i=t("./read"),o=t("./write"),n=t("./readAll"),s=t("./writeAll");e.exports=function(t){s(n(t))},e.exports.read=i,e.exports.write=o,e.exports.readAll=n,e.exports.writeAll=s},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e){e.exports=function(t,e,i){var o=t[e],n=String(o).match(r);if(!n){var s=e.match(c);return s?"none"!==t["border"+s[1]+"Style"]&&l[o]||0:o}s=n[1],n=n[2];return"px"===n?+s:"cm"===n?.3937*s*96:"in"===n?96*s:"mm"===n?.3937*s*96/10:"pc"===n?12*s*96/72:"pt"===n?96*s/72:"rem"===n?16*s:(o=o,i=i,a.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:"+o+"!important",i.parentNode.insertBefore(a,i.nextSibling),o=a.offsetWidth,i.parentNode.removeChild(a),o)};var r=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,a=document.createElement("div"),l={medium:4,none:0,thick:6,thin:2},c=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(t,e){e.exports=function(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(t instanceof Element){var i,o=t.hasAttribute("data-style"),n=o?t.getAttribute("data-style"):t.getAttribute("style")||"";for(i in o||t.setAttribute("data-style",n),function(t,e){for(var i in t)i in e&&!r.test(i)&&(t[i]=e[i])}(e,window.getComputedStyle&&getComputedStyle(t)||{}),function(t,e){for(var i in t){var o;i in e?t[i]=e[i]:(o=i.replace(/[A-Z]/g,"-$&").toLowerCase())in e&&(t[i]=e[o])}"-js-display"in e&&(t.display=e["-js-display"])}(e,t.currentStyle||{}),function(t,e){for(var i;i=s.exec(e);)t[i[1].toLowerCase().replace(/-[a-z]/g,function(t){return t.slice(1).toUpperCase()})]=i[2]}(e,n),e)e[i]=a(e,i,t);n=t.getBoundingClientRect();e.offsetHeight=n.height||t.offsetHeight,e.offsetWidth=n.width||t.offsetWidth}return{element:t,style:e}};var s=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,r=/^(alignSelf|height|width)$/,a=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e){e.exports=function(t){var e=[];return function t(e,i){for(var o,n,s,r=(n=(u=e)instanceof Element,s=n&&u.getAttribute("data-style"),u=n&&u.currentStyle&&u.currentStyle["-js-display"],h.test(s)||f.test(u)),a=[],l=-1;o=e.childNodes[++l];){var c,d=3===o.nodeType&&!/^\s*$/.test(o.nodeValue);r&&d&&(c=o,(o=e.insertBefore(document.createElement("flex-item"),c)).appendChild(c)),o instanceof Element&&(d=t(o,i),r&&((c=o.style).display="inline-block",c.position="absolute",d.style=p(o).style,a.push(d)))}var u={element:e,children:a};return r&&(u.style=p(e).style,i.push(u)),u}(t,e),e};var p=t("../read"),h=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,f=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e){function a(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=function(t){l(t);var e=t.element.style,i="inline"===t.mainAxis?["main","cross"]:["cross","main"];e.boxSizing="content-box",e.display="block",e.position="relative",e.width=a(t.flexStyle[i[0]]-t.flexStyle[i[0]+"InnerBefore"]-t.flexStyle[i[0]+"InnerAfter"]-t.flexStyle[i[0]+"BorderBefore"]-t.flexStyle[i[0]+"BorderAfter"]),e.height=a(t.flexStyle[i[1]]-t.flexStyle[i[1]+"InnerBefore"]-t.flexStyle[i[1]+"InnerAfter"]-t.flexStyle[i[1]+"BorderBefore"]-t.flexStyle[i[1]+"BorderAfter"]);for(var o,n=-1;o=t.children[++n];){var s=o.element.style,r="inline"===o.mainAxis?["main","cross"]:["cross","main"];s.boxSizing="content-box",s.display="block",s.position="absolute","auto"!==o.flexStyle[r[0]]&&(s.width=a(o.flexStyle[r[0]]-o.flexStyle[r[0]+"InnerBefore"]-o.flexStyle[r[0]+"InnerAfter"]-o.flexStyle[r[0]+"BorderBefore"]-o.flexStyle[r[0]+"BorderAfter"])),"auto"!==o.flexStyle[r[1]]&&(s.height=a(o.flexStyle[r[1]]-o.flexStyle[r[1]+"InnerBefore"]-o.flexStyle[r[1]+"InnerAfter"]-o.flexStyle[r[1]+"BorderBefore"]-o.flexStyle[r[1]+"BorderAfter"])),s.top=a(o.flexStyle[r[1]+"Start"]),s.left=a(o.flexStyle[r[0]+"Start"]),s.marginTop=a(o.flexStyle[r[1]+"Before"]),s.marginRight=a(o.flexStyle[r[0]+"After"]),s.marginBottom=a(o.flexStyle[r[1]+"After"]),s.marginLeft=a(o.flexStyle[r[0]+"Before"])}};
233var l=t("../flexbox")},{"../flexbox":7}],18:[function(t,e){e.exports=function(t){for(var e,i=-1;e=t[++i];)o(e)};var o=t("../write")},{"../write":17}]},{},[13])(13)},function(t,Q,e){"use strict";e.r(Q),function(t){for(var e="undefined"!=typeof window&&"undefined"!=typeof document,i=["Edge","Trident","Firefox"],o=0,n=0;n<i.length;n+=1)if(e&&0<=navigator.userAgent.indexOf(i[n])){o=1;break}var s=e&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},o))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function u(t,e){if(1!==t.nodeType)return[];t=getComputedStyle(t,null);return e?t[e]:t}function p(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function h(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=u(t),i=e.overflow,o=e.overflowX,e=e.overflowY;return/(auto|scroll)/.test(i+e+o)?t:h(p(t))}function d(t){var e=t&&t.offsetParent,i=e&&e.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===u(e,"position")?d(e):e:(t?t.ownerDocument:document).documentElement}function a(t){return null!==t.parentNode?a(t.parentNode):t}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=i?t:e,n=i?e:t,i=document.createRange();i.setStart(o,0),i.setEnd(n,0);i=i.commonAncestorContainer;if(t!==i&&e!==i||o.contains(n))return"BODY"===(n=(o=i).nodeName)||"HTML"!==n&&d(o.firstElementChild)!==o?d(i):i;i=a(t);return i.host?f(i.host,e):f(t,a(e).host)}function m(t,e){var i="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",e=t.nodeName;if("BODY"!==e&&"HTML"!==e)return t[i];e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[i]}function l(t,e){var i="x"===e?"Left":"Top",e="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+e+"Width"],10)}var c=void 0,g=function(){return void 0===c&&(c=-1!==navigator.appVersion.indexOf("MSIE 10")),c};function v(t,e,i,o){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],g()?i["offset"+t]+o["margin"+("Height"===t?"Top":"Left")]+o["margin"+("Height"===t?"Bottom":"Right")]:0)}function y(){var t=document.body,e=document.documentElement,i=g()&&getComputedStyle(e);return{height:v("Height",t,e,i),width:v("Width",t,e,i)}}function w(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},x=function(t,e,i){return e&&T(t.prototype,e),i&&T(t,i),t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,o=arguments[e];for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t};function T(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function k(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function _(t){var e={};if(g())try{e=t.getBoundingClientRect();var i=m(t,"top"),o=m(t,"left");e.top+=i,e.left+=o,e.bottom+=i,e.right+=o}catch(t){}else e=t.getBoundingClientRect();var n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?y():{},r=s.width||t.clientWidth||n.right-n.left,a=s.height||t.clientHeight||n.bottom-n.top,s=t.offsetWidth-r,r=t.offsetHeight-a;return(s||r)&&(s-=l(a=u(t),"x"),r-=l(a,"y"),n.width-=s,n.height-=r),k(n)}function C(t,e){var i=g(),o="HTML"===e.nodeName,n=_(t),s=_(e),r=h(t),a=u(e),l=parseFloat(a.borderTopWidth,10),t=parseFloat(a.borderLeftWidth,10),n=k({top:n.top-s.top-l,left:n.left-s.left-t,width:n.width,height:n.height});return n.marginTop=0,n.marginLeft=0,!i&&o&&(o=parseFloat(a.marginTop,10),a=parseFloat(a.marginLeft,10),n.top-=l-o,n.bottom-=l-o,n.left-=t-a,n.right-=t-a,n.marginTop=o,n.marginLeft=a),(i?e.contains(r):e===r&&"BODY"!==r.
233nodeName)&&(n=function(t,e,i){var o=2<arguments.length&&void 0!==i&&i,i=m(e,"top"),e=m(e,"left"),o=o?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=e*o,t.right+=e*o,t}(n,e)),n}function E(t,e,i,o){var n,s,r,a,l,c={top:0,left:0},d=f(t,e);return"viewport"===o?(n=d.ownerDocument.documentElement,s=C(d,n),r=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),l=m(n),n=m(n,"left"),c=k({top:l-s.top+s.marginTop,left:n-s.left+s.marginLeft,width:r,height:a})):(a=void 0,"scrollParent"===o?"BODY"===(a=h(p(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===o?t.ownerDocument.documentElement:o,o=C(a,d),"HTML"!==a.nodeName||function t(e){var i=e.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===u(e,"position")||t(p(e)))}(d)?c=o:(d=(a=y()).height,a=a.width,c.top+=o.top-o.marginTop,c.bottom=d+o.top,c.left+=o.left-o.marginLeft,c.right=a+o.left)),c.left+=i,c.top+=i,c.right-=i,c.bottom-=i,c}function z(t,e,i,o,n,s){s=5<arguments.length&&void 0!==s?s:0;if(-1===t.indexOf("auto"))return t;var n=E(i,o,s,n),r={top:{width:n.width,height:e.top-n.top},right:{width:n.right-e.right,height:n.height},bottom:{width:n.width,height:n.bottom-e.bottom},left:{width:e.left-n.left,height:n.height}},e=Object.keys(r).map(function(t){return S({key:t},r[t],{area:(t=r[t]).width*t.height})}).sort(function(t,e){return e.area-t.area}),n=e.filter(function(t){var e=t.width,t=t.height;return e>=i.clientWidth&&t>=i.clientHeight}),e=(0<n.length?n:e)[0].key,t=t.split("-")[1];return e+(t?"-"+t:"")}function A(t,e,i){return C(i,f(e,i))}function O(t){var e=getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),e=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+e,height:t.offsetHeight+i}}function I(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function P(t,e,i){i=i.split("-")[0];var o=O(t),n={width:o.width,height:o.height},s=-1!==["right","left"].indexOf(i),r=s?"top":"left",a=s?"left":"top",t=s?"height":"width",s=s?"width":"height";return n[r]=e[r]+e[t]/2-o[t]/2,n[a]=i===a?e[a]-o[s]:e[I(a)],n}function $(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,i,e){return(void 0===e?t:t.slice(0,function(t,e){if(Array.prototype.findIndex)return t.findIndex(function(t){return t.name===e});var i=$(t,function(t){return t.name===e});return t.indexOf(i)}(t,e))).forEach(function(t){t.function;var e=t.function||t.fn;t.enabled&&r(e)&&(i.offsets.popper=k(i.offsets.popper),i.offsets.reference=k(i.offsets.reference),i=e(i,t))}),i}function L(t,i){return t.some(function(t){var e=t.name;return t.enabled&&e===i})}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var n=e[o],n=n?""+n+i:t;if(void 0!==document.body.style[n])return n}return null}function D(t){t=t.ownerDocument;return t?t.defaultView:window}function H(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function M(i,o){Object.keys(o).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&H(o[t])&&(e="px"),i.style[t]=o[t]+e})}function N(t,e,i){var o=$(t,function(t){return t.name===e}),t=!!o&&t.some(function(t){return t.name===i&&t.enabled&&t.order<o.order});return t}var F=["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"],B=F.slice(3);function R(t,e){e=1<arguments.length&&void 0!==e&&e,t=B.indexOf(t),t=B.slice(t+1).concat(B.slice(0,t));return e?t.reverse():t}var q="flip",V="clockwise",Y="counterclockwise";var U={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e,i,o=t.placement,n=o.split("-")[0],s=o.split("-")[1];return s&&(e=(i=t.offsets).reference,o=i.popper,n=(i=-1!==["bottom","top"].indexOf(n))?"width":"height",n={start:w({},i=i?"left":"top",e[i]),end:w({},i,e[i]+e[n]-o[n])},t.offsets.popper=S({},o,n[s])),t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,s,r,a,i=e.offset,o=t.placement,l=t.offsets,c=l.popper,d=l.reference,e=o.split("-")[0],l=H(+i)?[+i,0]:(o=i,n=c,s=d,r=[0,0],a=-1!==["right","left"].indexOf(i=e),d=o.split(/(\+|\-)/).map(function(t){return t.trim()}),i=d.indexOf($(d,function(t){return-1!==t.search(/,|\s/)})),d[i]&&d[i].indexOf(","),o=/\s*,\s*|\s+/,(-1!==i?[d.slice(0,i).concat([d[i].split(o)[0]]),[d[i].split(o)[1]].concat(d.slice(i+1))]:[d]).map(function(t,e){var i=(1===e?!a:a)?"height":"width",o=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}
vendor: 4,111 bytes, line 233
233,[]).map(function(t){return function(t,e,i,o){var n=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+n[1],n=n[2];if(!s)return t;if(0!==n.indexOf("%"))return"vh"===n||"vw"===n?("vh"===n?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s;var r=void 0;switch(n){case"%p":r=i;break;case"%":case"%r":default:r=o}return k(r)[e]/100*s}(t,i,n,s)})}).forEach(function(i,o){i.forEach(function(t,e){H(t)&&(r[o]+=t*("-"===i[e-1]?-1:1))})}),r);return"left"===e?(c.top+=l[0],c.left-=l[1]):"right"===e?(c.top+=l[0],c.left+=l[1]):"top"===e?(c.left+=l[0],c.top-=l[1]):"bottom"===e&&(c.left+=l[0],c.top+=l[1]),t.popper=c,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,o){var e=o.boundariesElement||d(t.instance.popper);t.instance.reference===e&&(e=d(e));var n=E(t.instance.popper,t.instance.reference,o.padding,e);o.boundaries=n;var e=o.priority,s=t.offsets.popper,i={primary:function(t){var e=s[t];return s[t]<n[t]&&!o.escapeWithReference&&(e=Math.max(s[t],n[t])),w({},t,e)},secondary:function(t){var e="right"===t?"left":"top",i=s[e];return s[t]>n[t]&&!o.escapeWithReference&&(i=Math.min(s[e],n[t]-("right"===t?s.width:s.height))),w({},e,i)}};return e.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";s=S({},s,i[e](t))}),t.offsets.popper=s,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,o=e.reference,n=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(n),e=r?"right":"bottom",n=r?"left":"top",r=r?"width":"height";return i[e]<s(o[n])&&(t.offsets.popper[n]=s(o[n])-i[r]),i[n]>s(o[e])&&(t.offsets.popper[n]=s(o[e])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!N(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],n=t.offsets,s=n.popper,r=n.reference,a=-1!==["left","right"].indexOf(o),l=a?"height":"width",c=a?"Top":"Left",d=c.toLowerCase(),e=a?"left":"top",n=a?"bottom":"right",o=O(i)[l];r[n]-o<s[d]&&(t.offsets.popper[d]-=s[d]-(r[n]-o)),r[d]+o>s[n]&&(t.offsets.popper[d]+=r[d]+o-s[n]),t.offsets.popper=k(t.offsets.popper);a=r[d]+r[l]/2-o/2,n=u(t.instance.popper),r=parseFloat(n["margin"+c],10),c=parseFloat(n["border"+c+"Width"],10),c=a-t.offsets.popper[d]-r-c,c=Math.max(Math.min(s[l]-o,c),0);return t.arrowElement=i,t.offsets.arrow=(w(i={},d,Math.round(c)),w(i,e,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,c){if(L(l.instance.modifiers,"inner"))return l;if(l.flipped&&l.placement===l.originalPlacement)return l;var d=E(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement),u=l.placement.split("-")[0],p=I(u),h=l.placement.split("-")[1]||"",f=[];switch(c.behavior){case q:f=[u,p];break;case V:f=R(u);break;case Y:f=R(u,!0);break;default:f=c.behavior}return f.forEach(function(t,e){if(u!==t||f.length===e+1)return l;u=l.placement.split("-")[0],p=I(u);var i=l.offsets.popper,o=l.offsets.reference,n=Math.floor,s="left"===u&&n(i.right)>n(o.left)||"right"===u&&n(i.left)<n(o.right)||"top"===u&&n(i.bottom)>n(o.top)||"bottom"===u&&n(i.top)<n(o.bottom),r=n(i.left)<n(d.left),a=n(i.right)>n(d.right),t=n(i.top)<n(d.top),o=n(i.bottom)>n(d.bottom),i="left"===u&&r||"right"===u&&a||"top"===u&&t||"bottom"===u&&o,n=-1!==["top","bottom"].indexOf(u),o=!!c.flipVariations&&(n&&"start"===h&&r||n&&"end"===h&&a||!n&&"start"===h&&t||!n&&"end"===h&&o);(s||i||o)&&(l.flipped=!0,(s||i)&&(u=f[e+1]),o&&(h="end"===h?"start":"start"===h?"end":h),l.placement=u+(h?"-"+h:""),l.offsets.popper=S({},l.offsets.popper,P(l.instance.popper,l.offsets.reference,l.placement)),l=W(l.instance.modifiers,l,"flip"))}),l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],o=t.offsets,n=o.popper,s=o.reference,r=-1!==["left","right"].indexOf(i),o=-1===["top","left"].indexOf(i);
233return n[r?"left":"top"]=s[i]-(o?n[r?"width":"height"]:0),t.placement=I(e),t.offsets.popper=k(n),t}},hide:{order:800,enabled:!0,fn:function(t){if(!N(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=$(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,o=e.y,n=t.offsets.popper,s=$(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=_(d(t.instance.popper)),l={position:n.position},c={left:Math.floor(n.left),top:Math.floor(n.top),bottom:Math.floor(n.bottom),right:Math.floor(n.right)},s="bottom"===i?"top":"bottom",e="right"===o?"left":"right",n=j("transform"),o="bottom"==s?-a.height+c.bottom:c.top,i="right"==e?-a.width+c.right:c.left;r&&n?(l[n]="translate3d("+i+"px, "+o+"px, 0)",l[s]=0,l[e]=0,l.willChange="transform"):(r="bottom"==s?-1:1,n="right"==e?-1:1,l[s]=o*r,l[e]=i*n,l.willChange=s+", "+e);e={"x-placement":t.placement};return t.attributes=S({},e,t.attributes),t.styles=S({},l,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,i;return M(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEac
233h(function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&M(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i){var o=A(0,e,t),t=z(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",t),M(e,{position:"absolute"}),i},gpuAcceleration:void 0}}},x=(x(X,[{key:"update",value:function(){return function(){var t;this.state.isDestroyed||((t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=A(this.state,this.popper,this.reference),t.placement=z(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=P(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,L(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){var t,e,i;this.state.eventsEnabled||(this.state=(t=this.reference,this.options,e=this.state,i=this.scheduleUpdate,e.updateBound=i,D(t).addEventListener("resize",e.updateBound,{passive:!0}),function t(e,i,o,n){var s="BODY"===e.nodeName,e=s?e.ownerDocument.defaultView:e;e.addEventListener(i,o,{passive:!0}),s||t(h(e.parentNode),i,o,n),n.push(e)}(t=h(t),"scroll",e.updateBound,e.scrollParents),e.scrollElement=t,e.eventsEnabled=!0,e))}.call(this)}},{key:"disableEventListeners",value:function(){return function(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,D(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}.call(this)}}]),X);function X(t,e){var i=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};b(this,X),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=s(this.update.bind(this)),this.options=S({},X.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(S({},X.Defaults.modifiers,o.modifiers)).forEach(function(t){i.options.modifiers[t]=S({},X.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return S({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners(),this.state.eventsEnabled=e}x.Utils=("undefined"!=typeof window?window:t).PopperUtils,x.placements=F,x.Defaults=U,Q.default=x}.call(this,e(3))},function(t,e,i){!function(t,e,n){"use strict";function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}function r(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},e=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.forEach(function(t){var e,i=o,t=n[e=t];e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t})}return o}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var a,i,l,c,d,u,p,h,f,m,g,v,y,w,b,x,S,T,k,_,C,E,z,A,O,I,P,$,W,L,j,D,H,M,N,F,B,R,q,V,Y,U,X,Q,Z,K,G,J,tt,et,it,ot,nt,st,rt,at,lt,ct,dt,ut,pt,ht,ft,mt,gt,vt,yt,wt,bt,xt,St,Tt,kt,_t,Ct,Et,zt,At,Ot,It,Pt,$t,Wt,Lt,jt,Dt,Ht,Mt,Nt,Ft,Bt,Rt,qt,Vt,Yt,Ut,Xt,Qt,Zt,Kt,Gt,Jt,te,ee,ie,oe,ne,se,re,ae,le,ce,de,ue,pe,he,fe,me=(he="transitionend",fe={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;t=pe(t).css("transition-duration");return parseFloat(t)?(t=t.split(",")[0],1e3*parseFloat(t)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){pe(t).trigger(he)},supportsTransitionEnd:function(){return Boolean(he)},isElement:function(t){return(t[0]||t).nodeType}
233,typeCheckConfig:function(t,e,i){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var n=i[o],s=e[o],s=s&&fe.isElement(s)?"element":{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(s))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+n+'".')}}},(pe=e).fn.emulateTransitionEnd=function(t){var e=this,i=!1;return pe(this).one(fe.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||fe.triggerTransitionEnd(e)},t),this},pe.event.special[fe.TRANSITION_END]={bindType:he,delegateType:he,handle:function(t){if(pe(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},fe),ge=(i="alert",_e="."+(l="bs.alert"),c=(a=e).fn[i],d={CLOSE:"close"+_e,CLOSED:"closed"+_e,CLICK_DATA_API:"click"+_e+".data-api"},(ye=We.prototype).close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},ye.dispose=function(){a.removeData(this._element,l),this._element=null},ye._getRootElement=function(t){var e=me.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i=i||a(t).closest(".alert")[0]},ye._triggerCloseEvent=function(t){var e=a.Event(d.CLOSE);return a(t).trigger(e),e},ye._removeElement=function(e){var t,i=this;a(e).removeClass("show"),a(e).hasClass("fade")?(t=me.getTransitionDurationFromElement(e),a(e).one(me.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(t)):this._destroyElement(e)},ye._destroyElement=function(t){a(t).detach().trigger(d.CLOSED).remove()},We._jQueryInterface=function(i){return this.each(function(){var t=a(this),e=t.data(l);e||(e=new We(this),t.data(l,e)),"close"===i&&e[i](this)})},We._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(We,null,[{key:"VERSION",get:function(){return"4.1.2"}}]),u=We,a(document).on(d.CLICK_DATA_API,'[data-dismiss="alert"]',u._handleDismiss(new u)),a.fn[i]=u._jQueryInterface,a.fn[i].Constructor=u,a.fn[i].noConflict=function(){return a.fn[i]=c,u._jQueryInterface},u),ve=(h="button",xe="."+(f="bs.button"),ke=".data-api",m=(p=e).fn[h],g="active",Te='[data-toggle^="button"]',Se={CLICK_DATA_API:"click"+xe+ke,FOCUS_BLUR_DATA_API:"focus"+xe+ke+" blur"+xe+ke},(we=$e.prototype).toggle=function(){var t=!0,e=!0,i=p(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o,n=this._element.querySelector("input");if(n){if("radio"===n.type&&(n.checked&&this._element.classList.contains(g)?t=!1:(o=i.querySelector(".active"))&&p(o).removeClass(g)),t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!this._element.classList.contains(g),p(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g)),t&&p(this._element).toggleClass(g)},we.dispose=function(){p.removeData(this._element,f),this._element=null},$e._jQueryInterface=function(e){return this.each(function(){var t=p(this).data(f);t||(t=new $e(this),p(this).data(f,t)),"toggle"===e&&t[e]()})},s($e,null,[{key:"VERSION",get:function(){return"4.1.2"}}]),v=$e,p(document).on(Se.CLICK_DATA_API,Te,function(t){t.preventDefault();t=t.target;p(t).hasClass("btn")||(t=p(t).closest(".btn")),v._jQueryInterface.call(p(t),"toggle")}).on(Se.FOCUS_BLUR_DATA_API,Te,function(t){var e=p(t.target).closest(".btn")[0];p(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),p.fn[h]=v._jQueryInterface,p.fn[h].Constructor=v,p.fn[h].noConflict=function(){return p.fn[h]=m,v._jQueryInterface},v),ye=(w="carousel",x="."+(b="bs.carousel"),be=".data-api",S=(y=e).fn[w],T={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},k={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},_="next",C="prev",E={SLIDE:"slide"+x,SLID:"slid"+x,KEYDOWN:"keydown"+x,MOUSEENTER:"mouseenter"+x,MOUSELEAVE:"mouseleave"+x,TOUCHEND:"touchend"+x,LOAD_DATA_API:"load"+x+be,CLICK_DATA_API:"click"+x+be},z="active",A=".active.carousel-item",(_e=Pe.prototype).next=function(){this._isSliding||this._slide(_)},_e.nextWhenVisible=function(){!document.hidden&&y(this._element).is(":visible")&&"hidden"
233!==y(this._element).css("visibility")&&this.next()},_e.prev=function(){this._isSliding||this._slide(C)},_e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(me.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},_e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},_e.to=function(t){var e=this;this._activeElement=this._element.querySelector(A);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)y(this._element).one(E.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();i=i<t?_:C;this._slide(i,this._items[t])}},_e.dispose=function(){y(this._element).off(x),y.removeData(this._element,b),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},_e._getConfig=function(t){return t=r({},T,t),me.typeCheckConfig(w,t,k),t},_e._addEventListeners=function(){var e=this;this._config.keyboard&&y(this._element).on(E.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(y(this._element).on(E.MOUSEENTER,function(t){return e.pause(t)}).on(E.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&y(this._element).on(E.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},_e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},_e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},_e._getItemByDirection=function(t,e){var i=t===_,o=t===C,n=this._getItemIndex(e),s=this._items.length-1;if((o&&0===n||i&&n===s)&&!this._config.wrap)return e;t=(n+(t===C?-1:1))%this._items.length;return-1==t?this._items[this._items.length-1]:this._items[t]},_e._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(A)),i=y.Event(E.SLIDE,{relatedTarget:t,direction:e,from:o,to:i});return y(this._element).trigger(i),i},_e._setActiveIndicatorElement=function(t){var e;this._indicatorsElement&&(e=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),y(e).removeClass(z),(t=this._indicatorsElement.children[this._getItemIndex(t)])&&y(t).addClass(z))},_e._slide=function(t,e){var i,o,n,s=this,r=this._element.querySelector(A),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),c=this._getItemIndex(l),e=Boolean(this._interval),t=t===_?(i="carousel-item-left",o="carousel-item-next","left"):(i="carousel-item-right",o="carousel-item-prev","right");l&&y(l).hasClass(z)?this._isSliding=!1:!this._triggerSlideEvent(l,t).isDefaultPrevented()&&r&&l&&(this._isSliding=!0,e&&this.pause(),this._setActiveIndicatorElement(l),n=y.Event(E.SLID,{relatedTarget:l,direction:t,from:a,to:c}),y(this._element).hasClass("slide")?(y(l).addClass(o),me.reflow(l),y(r).addClass(i),y(l).addClass(i),c=me.getTransitionDurationFromElement(r),y(r).one(me.TRANSITION_END,function(){y(l).removeClass(i+" "+o).addClass(z),y(r).removeClass(z+" "+o+" "+i),s._isSliding=!1,setTimeout(function(){return y(s._element).trigger(n)},0)}).emulateTransitionEnd(c)):(y(r).removeClass(z),y(l).addClass(z),this._isSliding=!1,y(this._element).trigger(n)),e&&this.cycle())},Pe._jQueryInterface=function(o){return this.each(function(){var t=y(this).data(b),e=r({},T,y(this).data());"object"==typeof o&&(e=r({},e,o));var i="string"==typeof o?o:e.slide;if(t||(t=new Pe(this,e),y(this).data(b,t)),"number"==typeof o)t.to(o);else if("string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
233amed "'+i+'"');t[i]()}else e.interval&&(t.pause(),t.cycle())})},Pe._dataApiClickHandler=function(t){var e,i,o=me.getSelectorFromElement(this);!o||(e=y(o)[0])&&y(e).hasClass("carousel")&&(i=r({},y(e).data(),y(this).data()),(o=this.getAttribute("data-slide-to"))&&(i.interval=!1),Pe._jQueryInterface.call(y(e),i),o&&y(e).data(b).to(o),t.preventDefault())},s(Pe,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return T}}]),O=Pe,y(document).on(E.CLICK_DATA_API,"[data-slide], [data-slide-to]",O._dataApiClickHandler),y(window).on(E.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,i=t.length;e<i;e++){var o=y(t[e]);O._jQueryInterface.call(o,o.data())}}),y.fn[w]=O._jQueryInterface,y.fn[w].Constructor=O,y.fn[w].noConflict=function(){return y.fn[w]=S,O._jQueryInterface},O),we=(P="collapse",xe="."+($="bs.collapse"),W=(I=e).fn[P],L={toggle:!0,parent:""},j={toggle:"boolean",parent:"(string|element)"},D={SHOW:"show"+xe,SHOWN:"shown"+xe,HIDE:"hide"+xe,HIDDEN:"hidden"+xe,CLICK_DATA_API:"click"+xe+".data-api"},H="show",M="collapse",N="collapsing",F="collapsed",B='[data-toggle="collapse"]',(ke=Ie.prototype).toggle=function(){I(this._element).hasClass(H)?this.hide():this.show()},ke.show=function(){var t,e,i,o,n=this;this._isTransitioning||I(this._element).hasClass(H)||(this._parent&&0===(o=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return t.getAttribute("data-parent")===n._config.parent})).length&&(o=null),o&&(i=I(o).not(this._selector).data($))&&i._isTransitioning)||(t=I.Event(D.SHOW),I(this._element).trigger(t),t.isDefaultPrevented()||(o&&(Ie._jQueryInterface.call(I(o).not(this._selector),"hide"),i||I(o).data($,null)),e=this._getDimension(),I(this._element).removeClass(M).addClass(N),this._element.style[e]=0,this._triggerArray.length&&I(this._triggerArray).removeClass(F).attr("aria-expanded",!0),this.setTransitioning(!0),i="scroll"+(e[0].toUpperCase()+e.slice(1)),o=me.getTransitionDurationFromElement(this._element),I(this._element).one(me.TRANSITION_END,function(){I(n._element).removeClass(N).addClass(M).addClass(H),n._element.style[e]="",n.setTransitioning(!1),I(n._element).trigger(D.SHOWN)}).emulateTransitionEnd(o),this._element.style[e]=this._element[i]+"px"))},ke.hide=function(){var t=this;if(!this._isTransitioning&&I(this._element).hasClass(H)){var e=I.Event(D.HIDE);if(I(this._element).trigger(e),!e.isDefaultPrevented()){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",me.reflow(this._element),I(this._element).addClass(N).removeClass(M).removeClass(H);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var n=this._triggerArray[o],s=me.getSelectorFromElement(n);null!==s&&(I([].slice.call(document.querySelectorAll(s))).hasClass(H)||I(n).addClass(F).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[e]="";e=me.getTransitionDurationFromElement(this._element);I(this._element).one(me.TRANSITION_END,function(){t.setTransitioning(!1),I(t._element).removeClass(N).addClass(M).trigger(D.HIDDEN)}).emulateTransitionEnd(e)}}},ke.setTransitioning=function(t){this._isTransitioning=t},ke.dispose=function(){I.removeData(this._element,$),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},ke._getConfig=function(t){return(t=r({},L,t)).toggle=Boolean(t.toggle),me.typeCheckConfig(P,t,j),t},ke._getDimension=function(){return I(this._element).hasClass("width")?"width":"height"},ke._getParent=function(){var i=this,t=null;me.isElement(this._config.parent)?(t=this._config.parent,void 0!==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+'"]',e=[].slice.call(t.querySelectorAll(e));return I(e).each(function(t,e){i._addAriaAndCollapsedClass(Ie._getTargetFromElement(e),[e])}),t},ke._addAriaAndCollapsedClass=function(t,e){t&&(t=I(t).hasClass(H),e.length&&I(e).toggleClass(F,!t).attr("aria-expanded",t))},Ie._getTargetFromElement=function(t){t=me.getSelectorFromElement(t);return t?document.querySelector(t):null},Ie._jQueryInterface=function(o){return this.each(function(){var t=I(this),e=t.data($),i=r({},L,t.data(),"object"==typeof o&&o?o:{});if(!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||(e=new Ie(this,i),t.data($,e)),"string"==typeof o){if(void 0===e[o])throw new TypeError('No method n
233amed "'+o+'"');e[o]()}})},s(Ie,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return L}}]),R=Ie,I(document).on(D.CLICK_DATA_API,B,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=I(this),t=me.getSelectorFromElement(this),t=[].slice.call(document.querySelectorAll(t));I(t).each(function(){var t=I(this),e=t.data($)?"toggle":i.data();R._jQueryInterface.call(t,e)})}),I.fn[P]=R._jQueryInterface,I.fn[P].Constructor=R,I.fn[P].noConflict=function(){return I.fn[P]=W,R._jQueryInterface},R),be=(V="dropdown",U="."+(Y="bs.dropdown"),Se=".data-api",X=(q=e).fn[V],Q=new RegExp("38|40|27"),Z={HIDE:"hide"+U,HIDDEN:"hidden"+U,SHOW:"show"+U,SHOWN:"shown"+U,CLICK:"click"+U,CLICK_DATA_API:"click"+U+Se,KEYDOWN_DATA_API:"keydown"+U+Se,KEYUP_DATA_API:"keyup"+U+Se},K="disabled",G="show",J="dropdown-menu-right",tt='[data-toggle="dropdown"]',et=".dropdown-menu",it={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},ot={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},(Te=Oe.prototype).toggle=function(){if(!this._element.disabled&&!q(this._element).hasClass(K)){var t=Oe._getParentFromElement(this._element),e=q(this._menu).hasClass(G);if(Oe._clearMenus(),!e){var i={relatedTarget:this._element}
233,e=q.Event(Z.SHOW,i);if(q(t).trigger(e),!e.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");e=this._element;"parent"===this._config.reference?e=t:me.isElement(this._config.reference)&&(e=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])),"scrollParent"!==this._config.boundary&&q(t).addClass("position-static"),this._popper=new n(e,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===q(t).closest(".navbar-nav").length&&q(document.body).children().on("mouseover",null,q.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),q(this._menu).toggleClass(G),q(t).toggleClass(G).trigger(q.Event(Z.SHOWN,i))}}}},Te.dispose=function(){q.removeData(this._element,Y),q(this._element).off(U),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},Te.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},Te._addEventListeners=function(){var e=this;q(this._element).on(Z.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},Te._getConfig=function(t){return t=r({},this.constructor.Default,q(this._element).data(),t),me.typeCheckConfig(V,t,this.constructor.DefaultType),t},Te._getMenuElement=function(){var t;return this._menu||(t=Oe._getParentFromElement(this._element))&&(this._menu=t.querySelector(et)),this._menu},Te._getPlacement=function(){var t=q(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?(e="top-start",q(this._menu).hasClass(J)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":q(this._menu).hasClass(J)&&(e="bottom-end"),e},Te._detectNavbar=function(){return 0<q(this._element).closest(".navbar").length},Te._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;t={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},Oe._jQueryInterface=function(e){return this.each(function(){var t=q(this).data(Y);if(t||(t=new Oe(this,"object"==typeof e?e:null),q(this).data(Y,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},Oe._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(tt)),i=0,o=e.length;i<o;i++){var n,s=Oe._getParentFromElement(e[i]),r=q(e[i]).data(Y),a={relatedTarget:e[i]};t&&"click"===t.type&&(a.clickEvent=t),r&&(n=r._menu,!q(s).hasClass(G)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&q.contains(s,t.target)||(r=q.Event(Z.HIDE,a),q(s).trigger(r),r.isDefaultPrevented()||("ontouchstart"in document.documentElement&&q(document.body).children().off("mouseover",null,q.noop),e[i].setAttribute("aria-expanded","false"),q(n).removeClass(G),q(s).removeClass(G).trigger(q.Event(Z.HIDDEN,a)))))}},Oe._getParentFromElement=function(t){var e,i=me.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},Oe._dataApiKeydownHandler=function(t){var e,i,o;(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||q(t.target).closest(et).length):!Q.test(t.which))||(t.preventDefault(),t.stopPropagation(),this.disabled||q(this).hasClass(K))||(o=Oe._getParentFromElement(this),((i=q(o).hasClass(G))||27===t.which&&32===t.which)&&(!i||27!==t.which&&32!==t.which)?0!==(e=[].slice.call(o.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"))).length&&(i=e.indexOf(t.target),38===t.which&&0<i&&i--,40===t.which&&i<e.length-1&&i++,i<0&&(i=0),e[i].focus()):(27===t.which&&(o=o.querySelector(tt),q(o).trigger("focus")),q(this).trigger("click")))},s(Oe,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return ot}}]),nt=Oe,q(document).on(Z.KEYDOWN_DATA_API,tt,nt._dataApiKeydownHandler).on(Z.KEYDOWN_DATA_API,et,nt._dataApiKeydownHandler).on(Z.CLICK_DATA_API+" "+Z.KEYUP_DATA_API,nt._clearMenus).on(Z.CLICK_DATA_API,tt,function(t){t.preventDefault(),t.stopPropagation(),nt._jQueryInterface.call(q(this),"toggle")}).on(Z.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),q.fn[V]=nt._jQueryInterface,q.fn[V].Constructor=nt,q.fn[V].noConflict=function(){return q.fn[V]=X,nt._jQueryInterface},nt),xe=(rt="modal",lt="."+(at="bs.modal"),ct=(st=e).fn[rt],dt={backdrop:!0,keyboard:!0,focus:!0,show:!0},ut={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},pt={HIDE:"hide"+lt,HIDDEN:"hidden"+lt,SHOW:"show"+lt,SHOWN:"shown"+lt,FOCUSIN:"focusin"+lt,RESIZE:"resize"+lt,CLICK_DISMISS:"click.dismiss"+lt,KEYDOWN_DISMISS:"keydown.dismiss"+lt,MOUSEUP_DISMISS:"mouseup.dismiss"+lt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+lt,CLICK_DATA_API:"click"+lt+".data-api"},ht="modal-open",ft="fade",mt="show",gt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vt=".
233sticky-top",(_e=Ae.prototype).toggle=function(t){return this._isShown?this.hide():this.show(t)},_e.show=function(t){var e,i=this;this._isTransitioning||this._isShown||(st(this._element).hasClass(ft)&&(this._isTransitioning=!0),e=st.Event(pt.SHOW,{relatedTarget:t}),st(this._element).trigger(e),this._isShown||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),st(document.body).addClass(ht),this._setEscapeEvent(),this._setResizeEvent(),st(this._element).on(pt.CLICK_DISMISS,'[data-dismiss="modal"]',function(t){return i.hide(t)}),st(this._dialog).on(pt.MOUSEDOWN_DISMISS,function(){st(i._element).one(pt.MOUSEUP_DISMISS,function(t){st(t.target).is(i._element)&&(i._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return i._showElement(t)})))},_e.hide=function(t){var e=this;t&&t.preventDefault(),!this._isTransitioning&&this._isShown&&(t=st.Event(pt.HIDE),st(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented()&&(this._isShown=!1,(t=st(this._element).hasClass(ft))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),st(document).off(pt.FOCUSIN),st(this._element).removeClass(mt),st(this._element).off(pt.CLICK_DISMISS),st
233(this._dialog).off(pt.MOUSEDOWN_DISMISS),t?(t=me.getTransitionDurationFromElement(this._element),st(this._element).one(me.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(t)):this._hideModal()))},_e.dispose=function(){st.removeData(this._element,at),st(window,document,this._element,this._backdrop).off(lt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},_e.handleUpdate=function(){this._adjustDialog()},_e._getConfig=function(t){return t=r({},dt,t),me.typeCheckConfig(rt,t,ut),t},_e._showElement=function(t){var e=this,i=st(this._element).hasClass(ft);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&me.reflow(this._element),st(this._element).addClass(mt),this._config.focus&&this._enforceFocus();var o=st.Event(pt.SHOWN,{relatedTarget:t}),t=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,st(e._element).trigger(o)};i?(i=me.getTransitionDurationFromElement(this._element),st(this._dialog).one(me.TRANSITION_END,t).emulateTransitionEnd(i)):t()},_e._enforceFocus=function(){var e=this;st(document).off(pt.FOCUSIN).on(pt.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===st(e._element).has(t.target).length&&e._element.focus()})},_e._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?st(this._element).on(pt.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||st(this._element).off(pt.KEYDOWN_DISMISS)},_e._setResizeEvent=function(){var e=this;this._isShown?st(window).on(pt.RESIZE,function(t){return e.handleUpdate(t)}):st(window).off(pt.RESIZE)},_e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){st(document.body).removeClass(ht),t._resetAdjustments(),t._resetScrollbar(),st(t._element).trigger(pt.HIDDEN)})},_e._removeBackdrop=function(){this._backdrop&&(st(this._backdrop).remove(),this._backdrop=null)},_e._showBackdrop=function(t){var e,i=this,o=st(this._element).hasClass(ft)?ft:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",o&&this._backdrop.classList.add(o),st(this._backdrop).appendTo(document.body),st(this._element).on(pt.CLICK_DISMISS,function(t){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),o&&me.reflow(this._backdrop),st(this._backdrop).addClass(mt),t&&(o?(e=me.getTransitionDurationFromElement(this._backdrop),st(this._backdrop).one(me.TRANSITION_END,t).emulateTransitionEnd(e)):t())):!this._isShown&&this._backdrop?(st(this._backdrop).removeClass(mt),o=function(){i._removeBackdrop(),t&&t()},st(this._element).hasClass(ft)?(e=me.getTransitionDurationFromElement(this._backdrop),st(this._backdrop).one(me.TRANSITION_END,o).emulateTransitionEnd(e)):o()):t&&t()},_e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},_e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},_e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},_e._setScrollbar=function(){var t,e,n=this;this._isBodyOverflowing&&(t=[].slice.call(document.querySelectorAll(gt)),e=[].slice.call(document.querySelectorAll(vt)),st(t).each(function(t,e){var i=e.style.paddingRight,o=st(e).css("padding-right");st(e).data("padding-right",i).css("padding-right",parseFloat(o)+n._scrollbarWidth+"px")}),st(e).each(function(t,e){var i=e.style.marginRight,o=st(e).css("margin-right");st(e).data("margin-right",i).css("margin-right",parseFloat(o)-n._scrollbarWidth+"px")}),t=document.body.style.paddingRight,e=st(document.body).css("padding-right"),st(document.body).data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px"))},_e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(gt));st(t).each(function(t,e){var i=st(e).data("padding-right");st(e).removeData("padding-right"),e.style.paddingRight=i||""});t=[].slice.call(document.querySelectorAll(vt));st(t).each(function(t,e){var i=st(e).data("margin-right");void 0!==i&&st(e).css("margin-right",i).removeData("margin-right")});t=st(document.body).data("padding-right");st(document.body).removeData("padding-right"),document.body.style.paddingRight=t||""},_e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Ae._jQueryInterface=function(i,o){return this.each(function(){var t=st(this).data(at),e=r({},dt,st(this).data(),"object"==typeof i&&i?i:{});if(t||(t=new Ae(this,e),st(this).data(at,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method n
233amed "'+i+'"');t[i](o)}else e.show&&t.show(o)})},s(Ae,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return dt}}]),yt=Ae,st(document).on(pt.CLICK_DATA_API,'[data-toggle="modal"]',function(t){var e,i=this,o=me.getSelectorFromElement(this);o&&(e=document.querySelector(o));o=st(e).data(at)?"toggle":r({},st(e).data(),st(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var n=st(e).one(pt.SHOW,function(t){t.isDefaultPrevented()||n.one(pt.HIDDEN,function(){st(i).is(":visible")&&i.focus()})});yt._jQueryInterface.call(st(e),o,this)}),st.fn[rt]=yt._jQueryInterface,st.fn[rt].Constructor=yt,st.fn[rt].noConflict=function(){return st.fn[rt]=ct,yt._jQueryInterface},yt),Se=(bt="tooltip",St="."+(xt="bs.tooltip"),Tt=(wt=e).fn[bt],kt="bs-tooltip",_t=new RegExp("(^|\\s)"+kt+"\\S+","g"),zt={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:!(Et={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Ct={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Ot={HIDE:"hide"+St,HIDDEN:"hidden"+St,SHOW:(At="show")+St,SHOWN:"shown"+St,INSERTED:"inserted"+St,CLICK:"click"+St,FOCUSIN:"focusin"+St,FOCUSOUT:"focusout"+St,MOUSEENTER:"mouseenter"+St,MOUSELEAVE:"mouseleave"+St},It="fade",Pt="show",$t="hover",(ke=ze.prototype).enable=function(){this._isEnabled=!0},ke.disable=function(){this._isEnabled=!1},ke.toggleEnabled=function(){this._isEnabled=!this._isEnabled},ke.toggle=function(t){var e,i;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(i=wt(t.currentTarget).data(e))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),wt(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)):wt(this.getTipElement()).hasClass(Pt)?this._leave(null,this):this._enter(null,this))},ke.dispose=function(){clearTimeout(this._timeout),wt.removeData(this.element,this.constructor.DATA_KEY),wt(this.element).off(this.constructor.EVENT_KEY),wt(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&wt(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},ke.show=function(){var e=this;if("none"===wt(this.element).css("display"))throw new Error("Please use show on visible elements");var t,i,o=wt.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(wt(this.element).trigger(o),t=wt.contains(this.element.ownerDocument.documentElement,this.element),!o.isDefaultPrevented()&&t&&(i=this.getTipElement(),o=me.getUID(this.constructor.NAME),i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&wt(i).addClass(It),t="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,o=this._getAttachment(t),this.addAttachmentClass(o),t=!1===this.config.container?document.body:wt(document).find(this.config.container),wt(i).data(this.constructor.DATA_KEY,this),wt.contains(this.element.ownerDocument.documentElement,this.tip)||wt(i).appendTo(t),wt(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,i,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),wt(i).addClass(Pt),"ontouchstart"in document.documentElement&&wt(document.body).children().on("mouseover",null,wt.noop),o=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,wt(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)},wt(this.tip).hasClass(It)?(i=me.getTransitionDurationFromElement(this.tip),wt(this.tip).one(me.TRANSITION_END,o).emulateTransitionEnd(i)):o()))},ke.hide=function(t){function e(){i._hoverState!==At&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),wt(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var i=this,o=this.getTipElement(),n=wt.Event(this.constructor.Event.HIDE);wt(this.element).trigger(n),n.isDefaultPrevented()||(wt(o).removeClass(Pt),"ontouchstart"in document.documentElement&&wt(document.body).children().off("mouseover",null,wt.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[$t]=!1,wt(this.tip).hasClass(It)?(n=me.getTransitionDurationFromElement(o),wt(o).one(me.TRANSITION_END,e).emulateTransitionEnd(n)):e(),this._hoverState="")},ke.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},ke.isWithContent=function(){return Boolean(this.getTitle())},ke.addAttachmentClass=function(t){wt(this.getTipElement()).addClass(kt+"-"+t)},ke.getTipElement=function(){return this.tip=this.tip||wt(this.config.template)[0],this.tip},ke.setContent=function(){var t=this.getTipElement();this.setElementContent(wt(t.querySelectorAll(".tooltip-inner")),this.getTitle()),wt(t).removeClass("fade show")},ke.setElementContent=function(t,e){var i=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?i?wt(e).parent().is(t)||t.empty().append(e):t.text(wt(e).text()):t[i?"html":"text"](e)},ke.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},ke._getAttachment=function(t){return Et[t.toUpperCase()]},ke._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){var e;
233"click"===t?wt(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)}):"manual"!==t&&(e=t===$t?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,t=t===$t?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,wt(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(t,i.config.selector,function(t){return i._leave(t)})),wt(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},ke._fixTitle=function(){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",""))},ke._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||wt(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),wt(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":$t]=!0),wt(e.getTipElement()).hasClass(Pt)||e._hoverState===At?e._hoverState=At:(clearTimeout(e._timeout),e._hoverState=At,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===At&&e.show()},e.config.delay.show):e.show())},ke._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||wt(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),wt(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":$t]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},ke._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},ke._getConfig=function(t){return"number"==typeof(t=r({},this.constructor.Default,wt(this.element).data(),"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()),me.typeCheckConfig(bt,t,this.constructor.DefaultType),t},ke._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},ke._cleanTipClass=function(){var t=wt(this.getTipElement()),e=t.attr("class").match(_t);null!==e&&e.length&&t.removeClass(e.join(""))},ke._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},ke._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(wt(t).removeClass(It),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},ze._jQueryInterface=function(i){return this.each(function(){var t=wt(this).data(xt),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new ze(this,e),wt(this).data(xt,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},s(ze,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return zt}},{key:"NAME",get:function(){return bt}},{key:"DATA_KEY",get:function(){return xt}},{key:"Event",get:function(){return Ot}},{key:"EVENT_KEY",get:function(){return St}},{key:"DefaultType",get:function(){return Ct}}]),Wt=ze,wt.fn[bt]=Wt._jQueryInterface,wt.fn[bt].Constructor=Wt,wt.fn[bt].noConflict=function(){return wt.fn[bt]=Tt,Wt._jQueryInterface},Wt),Te=(jt="popover",Ht="."+(Dt="bs.popover"),Mt=(Lt=e).fn[jt],Nt="bs-popover",Ft=new RegExp("(^|\\s)"+Nt+"\\S+","g"),Bt=r({},Se.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>'}),Rt=r({},Se.DefaultType,{content:"(string|element|function)"}),qt={HIDE:"hide"+Ht,HIDDEN:"hidden"+Ht,SHOW:"show"+Ht,SHOWN:"shown"+Ht,INSERTED:"inserted"+Ht,CLICK:"click"+Ht,FOCUSIN:"focusin"+Ht,FOCUSOUT:"focusout"+Ht,MOUSEENTER:"mouseenter"+Ht,MOUSELEAVE:"mouseleave"+Ht},Vt=function(t){var e;function o(){return t.apply(this,arguments)||this}i=t,(e=o).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var i=o.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(t){Lt(this.getTipElement()).addClass(Nt+"-"+t)},i.getTipElement=function(){return this.tip=this.tip||Lt(this.config.template)[0],this.tip},i.setContent=function(){var t=Lt(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var t=Lt(this.getTipElement()),e=t.attr("class").match(Ft);null!==e&&0<e.length&&t.removeClass(e.join(""))},o._jQueryInterface=function(i){return this.each(function(){var t=Lt(this).data(Dt),e="object"==typeof i?i:null;if((t||!/destroy|hide/.test(i))&&(t||(t=new o(this,e),Lt(this).data(Dt,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method n
233amed "'+i+'"');t[i]()}})},s(o,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return Bt}},{key:"NAME",get:function(){return jt}},{key:"DATA_KEY",get:function(){return Dt}},{key:"Event",get:function(){return qt}},{key:"EVENT_KEY",get:function(){return Ht}},{key:"DefaultType",get:function(){return Rt}}]),o}(Se),Lt.fn[jt]=Vt._jQueryInterface,Lt.fn[jt].Constructor=Vt,Lt.fn[jt].noConflict=function(){return Lt.fn[jt]=Mt,Vt._jQueryInterface},Vt),ke=(Ut="scrollspy",Qt="."+(Xt="bs.scrollspy"),Zt=(Yt=e).fn[Ut],Kt={offset:10,method:"auto",target:""},Gt={offset:"number",method:"string",target:"(string|element)"},Jt={ACTIVATE:"activate"+Qt,SCROLL:"scroll"+Qt,LOAD_DATA_API:"load"+Qt+".data-api"},te="active",ee=".nav, .list-group",ie=".nav-link",oe=".list-group-item",(_e=Ee.prototype).refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":"position",o="auto"===this._config.method?t:this._config.method,n="position"===o?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,i=me.getSelectorFromElement(t);if(i&&(e=document.querySelector(i)),e){t=e.getBoundingClientRect();if(t.width||t.height)return[Yt(e)[o]().top+n,i]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},_e.dispose=function(){Yt.removeData(this._element,Xt),Yt(this._scrollElement).off(Qt),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},_e._getConfig=function(t){var e;return"string"!=typeof(t=r({},Kt,"object"==typeof t&&t?t:{})).target&&((e=Yt(t.target).attr("id"))||(e=me.getUID(Ut),Yt(t.target).attr("id",e)),t.target="#"+e),me.typeCheckConfig(Ut,t,Gt),t},_e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},_e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},_e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},_e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{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--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},_e._activate=function(e){this._activeTarget=e,this._clear();var t=(t=this._selector.split(",")).map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),t=Yt([].slice.call(document.querySelectorAll(t.join(","))));t.hasClass("dropdown-item")?(t.closest(".dropdown").find(".dropdown-toggle").addClass(te),t.addClass(te)):(t.addClass(te),t.parents(ee).prev(ie+", "+oe).addClass(te),t.parents(ee).prev(".nav-item").children(ie).addClass(te)),Yt(this._scrollElement).trigger(Jt.ACTIVATE,{relatedTarget:e})},_e._clear=function(){var t=[].slice.call(document.querySelectorAll(this._selector));Yt(t).filter(".active").removeClass(te)},Ee._jQueryInterface=function(e){return this.each(function(){var t=Yt(this).data(Xt);if(t||(t=new Ee(this,"object"==typeof e&&e),Yt(this).data(Xt,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(Ee,null,[{key:"VERSION",get:function(){return"4.1.2"}},{key:"Default",get:function(){return Kt}}]),ne=Ee,Yt(window).on(Jt.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var i=Yt(t[e]);ne._jQueryInterface.call(i,i.data())}}),Yt.fn[Ut]=ne._jQueryInterface,Yt.fn[Ut].Constructor=ne,Yt.fn[Ut].noConflict=function(){return Yt.fn[Ut]=Zt,ne._jQueryInterface},ne),_e=(_e="."+(re="bs.tab"),ae=(se=e).fn.tab,le={HIDE:"hide"+_e,HIDDEN:"hidden"+_e,SHOW:"show"+_e,SHOWN:"shown"+_e,CLICK_DATA_API:"click"+_e+".data-api"},ce="active",de="> li > .active",(_e=Ce.prototype).show=function(){var t,e,i,o,n,s,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&se(this._element).hasClass(ce)||se(this._element).hasClass("disabled")||(s=se(this._element).closest(".
233nav, .list-group")[0],e=me.getSelectorFromElement(this._element),s&&(n="UL"===s.nodeName?de:".active",i=(i=se.makeArray(se(s).find(n)))[i.length-1]),o=se.Event(le.HIDE,{relatedTarget:this._element}),n=se.Event(le.SHOW,{relatedTarget:i}),i&&se(i).trigger(o),se(this._element).trigger(n),n.isDefaultPrevented()||o.isDefaultPrevented()||(e&&(t=document.querySelector(e)),this._activate(this._element,s),s=function(){var t=se.Event(le.HIDDEN,{relatedTarget:r._element}),e=se.Event(le.SHOWN,{relatedTarget:i});se(i).trigger(t),se(r._element).trigger(e)},t?this._activate(t,t.parentNode,s):s()))},_e.dispose=function(){se.removeData(this._element,re),this._element=null},_e._activate=function(t,e,i){var o=this,n=("UL"===e.nodeName?se(e).find(de):se(e).children(".active"))[0],s=i&&n&&se(n).hasClass("fade"),e=function(){return o._transitionComplete(t,n,i)};n&&s?(s=me.getTransitionDurationFromElement(n),se(n).one(me.TRANSITION_END,e).emulateTransitionEnd(s)):e()},_e._transitionComplete=function(t,e,i){var o;e&&(se(e).removeClass("show "+ce),(o=se(e.parentNode).find("> .dropdown-menu .active")[0])&&se(o).removeClass(ce),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)),se(t).addClass(ce),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),me.reflow(t),se(t).addClass("show"),t.parentNode&&se(t.parentNode).hasClass("dropdown-menu")&&((e=se(t).closest(".dropdown")[0])&&(e=[].slice.call(e.querySelectorAll(".dropdown-toggle")),se(e).addClass(ce)),t.setAttribute("aria-expanded",!0)),i&&i()},Ce._jQueryInterface=function(i){return this.each(function(){var t=se(this),e=t.data(re);if(e||(e=new Ce(this),t.data(re,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},s(Ce,null,[{key:"VERSION",get:function(){return"4.1.2"}}]),ue=Ce,se(document).on(le.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),ue._jQueryInterface.call(se(this),"show")}),se.fn.tab=ue._jQueryInterface,se.fn.tab.Constructor=ue,se.fn.tab.noConflict=function(){return se.fn.tab=ae,ue._jQueryInterface},ue);function Ce(t){this._element=t}function Ee(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ie+","+this._config.target+" "+oe+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Yt(this._scrollElement).on(Jt.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}function ze(t,e){if(void 0===n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}function Ae(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}function Oe(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}function Ie(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=I.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(B)),o=0,n=i.length;o<n;o++){var s=i[o],r=me.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===e});null!==r&&0<a.length&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}function Pe(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=y(t)[0],this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._addEventListeners()}function $e(t){this._element=t}function We(t){this._element=t}!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");if((t=t.fn.jquery.split(" ")[0].split("."))[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")}(e),t.Util=me,t.Alert=ge,t.Button=ve,t.Carousel=ye,t.Collapse=we,t.Dropdown=be,t.Modal=xe,t.Popover=Te,t.Scrollspy=ke,t.Tab=_e,t.Tooltip=Se,Object.defineProperty(t,"__esMo
233dule",{value:!0})}(e,i(0),i(37))},function(t,e,i){var o;void 0===(o="function"==typeof(o=function(){"use strict";function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var S=void 0;void 0===S&&(S={modules:[]});var n=null;function s(t){var e,i=t.getBoundingClientRect(),o={};for(e in i)o[e]=i[e];return t.ownerDocument===document||(t=t.ownerDocument.defaultView.frameElement)&&(t=s(t),o.top+=t.top,o.bottom+=t.top,o.left+=t.left,o.right+=t.left),o}function r(t){var e=(getComputedStyle(t)||{}).position,i=[];if("fixed"===e)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var n=void 0;try{n=getComputedStyle(o)}catch(t){}if(null==n)return i.push(o),i;var s=n.overflow,r=n.overflowX,a=n.overflowY;/(auto|scroll|overlay)/.test(s+a+r)&&("absolute"!==e||0<=["relative","absolute","fixed"].indexOf(n.position))&&i.push(o)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}var t,a=(t=0,function(){return++t}),l={};function e(){n&&document.body.removeChild(n),n=null}function T(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,o=s(t),t=function(){var t=n;t&&document.body.contains(t)||((t=document.createElement("div")).setAttribute("data-tether-id",a()),C(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),n=t);var e=t.getAttribute("data-tether-id");return void 0===l[e]&&(l[e]=s(t),z(function(){delete l[e]})),l[e]}();return o.top-=t.top,o.left-=t.left,void 0===o.width&&(o.width=document.body.scrollWidth-o.left-o.right),void 0===o.height&&(o.height=document.body.scrollHeight-o.top-o.bottom),o.top=o.top-i.clientTop,o.left=o.left-i.clientLeft,o.right=e.body.clientWidth-o.width-o.left,o.bottom=e.body.clientHeight-o.height-o.top,o}function k(t){return t.offsetParent||document.documentElement}var c=null;function _(){if(c)return c;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");C(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";t=t.offsetWidth;i===t&&(t=e.clientWidth),document.body.removeChild(e);t=i-t;return c={width:t,height:t}}function C(){var i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var e in t)!{}.hasOwnProperty.call(t,e)||(i[e]=t[e])}),i}function d(e,t){void 0!==e.classList?t.split(" ").forEach(function(t){t.trim()&&e.classList.remove(t)}):(t=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),t=h(e).replace(t," "),f(e,t))}function u(e,t){void 0!==e.classList?t.split(" ").forEach(function(t){t.trim()&&e.classList.add(t)}):(d(e,t),t=h(e)+" "+t,f(e,t))}function p(t,e){if(void 0!==t.classList)return t.classList.contains(e);t=h(t);return new RegExp("(^| )"+e+"( |$)","gi").test(t)}function h(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function f(t,e){t.setAttribute("class",e)}function E(e,i,t){t.forEach(function(t){-1===i.indexOf(t)&&p(e,t)&&d(e,t)}),i.forEach(function(t){p(e,t)||u(e,t)})}var m=[],z=function(t){m.push(t)},A=function(){for(var t=void 0;t=m.pop();)t()},g=((y=function(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t})(v,[{key:"on",value:function(t,e,i){var o=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:o})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var i=0;i<this.bindings[t].length;)this.bindings[t][i].handler===e?this.bindings[t].splice(i,1):++i}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,i=arguments.length,o=Array(1<i?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];for(;e<this.bindings[t].length;){var s=this.bindings[t][e],r=s.handler,a=s.ctx,s=s.once,a=a;void 0===a&&(a=this),r.apply(a,o),s?this.bindings[t].splice(e,1):++e}}}}]),v);function v(){i(this,v)}S.Utils={getActualBoundingClientRect:s,getScrollParents:r,getBounds:T,getOffsetParent:k,extend:C,addClass:u,removeClass:d,hasClass:p,updateClasses:E,defer:z,flush:A,uniqueId:a,Evented:g,getScrollBarSize:_,removeUtilElements:e};var O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw s}}return i}(t,e);
233throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(t,e,i){return e&&b(t.prototype,e),i&&b(t,i),t},w=function(t,e,i){for(var o=!0;o;){var n=t,s=e,r=i,o=!1;null===n&&(n=Function.prototype);var a=Object.getOwnPropertyDescriptor(n,s);if(void 0!==a){if("value"in a)return a.value;var l=a.get;return void 0===l?void 0:l.call(r)}n=Object.getPrototypeOf(n);if(null===n)return;t=n,e=s,i=r,o=!0,a=void 0}};function b(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}if(void 0===S)throw new Error("You must include the utils.js file before tether.js");var r=(X=S.Utils).getScrollParents,T=X.getBounds,k=X.getOffsetParent,C=X.extend,u=X.addClass,d=X.removeClass,E=X.updateClasses,z=X.defer,A=X.flush,_=X.getScrollBarSize,e=X.removeUtilElements;function x(){j.forEach(function(t){t.position(!1)}),A()}var I,P,$,W,L=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var o=e[i];if(void 0!==t.style[o])return o}}(),j=[];function D(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}$=P=I=null,W=function t(){if(void 0!==P&&16<P)return P=Math.min(P-16,250),void($=setTimeout(t,250));void 0!==I&&D()-I<10||(null!=$&&(clearTimeout($),$=null),I=D(),x(),P=D()-I)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,W)});function H(t){var e=t.left,i=t.top;return void 0!==F[t.left]&&(e=F[t.left]),void 0!==F[t.top]&&(i=F[t.top]),{left:e,top:i}}var M={center:"center",left:"right",right:"left"},N={middle:"middle",top:"bottom",bottom:"top"},F={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};function B(){for(var i={top:0,left:0},t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.forEach(function(t){var e=t.top,t=t.left;"string"==typeof e&&(e=parseFloat(e,10)),"string"==typeof t&&(t=parseFloat(t,10)),i.top+=e,i.left+=t}),i}function R(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function q(t){return t=t.split(" "),{top:(t=O(t,2))[0],left:t[1]}}var V=q,y=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e}(Y,g),y(Y,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1];this.options=C({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t);var o=this.options,n=o.element,t=o.target,o=o.targetModifier;if(this.element=n,this.target=t,this.targetModifier=o,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),u(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&u(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return T(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((s={height:(t=T(this.target)).height,width:t.width,top:t.top,left
233:t.left}).height=Math.min(s.height,t.height-(pageYOffset-t.top)),s.height=Math.min(s.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),s.height=Math.min(innerHeight,s.height),s.height-=2,s.width=Math.min(s.width,t.width-(pageXOffset-t.left)),s.width=Math.min(s.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),s.width=Math.min(innerWidth,s.width),s.width-=2,s.top<pageYOffset&&(s.top=pageYOffset),s.left<pageXOffset&&(s.left=pageXOffset),s);if("scroll-handle"===this.targetModifier){var t=void 0,e=this.target;t=e===document.body?(e=document.documentElement,{left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):T(e);var i=getComputedStyle(e),o=0;(e.scrollWidth>e.clientWidth||0<=[i.overflow,i.overflowX].indexOf("scroll")||this.target!==document.body)&&(o=15);var n=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-o,s={width:15,height:.975*n*(n/e.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},o=0;n<408&&this.target===document.body&&(o=-11e-5*Math.pow(n,2)-.00727*n+22.58),this.target!==document.body&&(s.height=Math.max(s.height,24));e=this.target.scrollTop/(e.scrollHeight-n);return s.top=e*(n-s.height-o)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(s.height=Math.max(s.height,24)),s}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&u(this.target,this.getClass("enabled")),u(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)}),t&&this.position()}},{key:"disable",value:function(){var e=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.position)})}},{key:"destroy",value:function(){var i=this;this.disable(),j.forEach(function(t,e){t===i&&j.splice(e,1)}),0===j.length&&e()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var n=[];["left","top","bottom","right","middle","center"].forEach(function(t){n.push(i.getClass("element-attached")+"-"+t),n.push(i.getClass("target-attached")+"-"+t)}),z(function(){void 0!==i._addAttachClasses&&(E(i.element,i._addAttachClasses,n),!1!==i.options.addTargetClasses&&E(i.target,i._addAttachClasses,n),delete i._addAttachClasses)})}},{key:"position",value:function(){var t,e,i,o=this,n=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var s=(w=this.targetAttachment,l=this.attachment,d=w.left,w=w.top,"auto"===d&&(d=M[l.left]),"auto"===w&&(w=N[l.top]),{left:d,top:w});this.updateAttachClasses(this.attachment,s);var r=this.cache("element-bounds",function(){return T(o.element)}),a=r.width,l=r.height;0===a&&0===l&&void 0!==this.lastSize?(a=(b=this.lastSize).width,l=b.height):this.lastSize={width:a,height:l};for(var c=this.cache("target-bounds",function(){return o.getTargetBounds()}),d=c,u=R(H(this.attachment),{width:a,height:l}),p=R(H(s),d),h=R(this.offset,{width:a,height:l}),f=R(this.targetOffset,d),u=B(u,h),p=B(p,f),m=c.left+p.left-u.left,g=c.top+p.top-u.top,v=0;v<S.modules.length;++v){var y=S.modules[v].position.call(this,{left:m,top:g,targetAttachment:s,targetPos:c,elementPos:r,offset:u,targetOffset:p,manualOffset:h,manualTargetOffset:f,scrollbarSize:x,attachment:this.attachment});if(!1===y)return!1;void 0!==y&&"object"==typeof y&&(g=y.top,m=y.left)}var w={page:{top:g,left:m},viewport:{top:g-pageYOffset,bottom:pageYOffset-g-l+innerHeight,left:m-pageXOffset,right:pageXOffset-m-a+innerWidth}},b=this.target.ownerDocument,d=b.defaultView,x=void 0;return d.innerHeight>b.documentElement.clientHeight&&(x=this.cache("scrollbar-size",_),w.viewport.bottom-=x.height),d.innerWidth>b.documentElement.clientWidth&&(x=this.cache("scrollbar-size",_),w.viewport.right-=x.width),-1!==["","static"].indexOf(b.body.style.position)&&-1!==["","static"].indexOf(b.body.parentElement.style.position)||(w.page.bottom=b.body.scrollHeight-g-l,w.page.right=b.body.scrollWidth-m-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&(t=o.cache("target-offsetparent",function(){return k(o.target)}),l=o.cache("target-offsetparent-bounds",function(){return T(t)}),e=getComputedStyle(t),a=l,i={},["Top","Left","Bottom","Right"].forEach(function(t){i[t.toLowerCase()]=parseFloat(e["border"+t+"Width"])}),l.right=b.body.scrollWidth-l.left-a.width+i.right,l.bottom=b.body.scrollHeight-l.top-a.height+i.bottom,w.page.top>=l.top+i.top&&w.page.bottom>=l.bottom&&w.page.left>=l.left+i.left&&w.page.right>=l.right&&(b=t.scrollTop,a=t.scrollLeft,w.offset={top:w.page.top-l.top+b-i.top,left
233:w.page.left-l.left+a-i.left})),this.move(w),this.history.unshift(w),3<this.history.length&&this.history.pop(),n&&A(),!0}}},{key:"move",value:function(e){var n=this;if(void 0!==this.element.parentNode){var t,i={};for(t in e)for(var o in i[t]={},e[t]){for(var s=!1,r=0;r<this.history.length;++r){var a=this.history[r];if(void 0!==a[t]&&!function(t,e,i){return e<=t+(i=arguments.length<=2||void 0===i?1:i)&&t-i<=e}(a[t][o],e[t][o])){s=!0;break}}s||(i[t][o]=!0)}var l={top:"",left:"",right:"",bottom:""},c=function(t,e){var i,o;!1!==(void 0!==n.options.optimizations?n.options.optimizations.gpu:null)?(o=i=void 0,i=t.top?(l.top=0,e.top):(l.bottom=0,-e.bottom),o=t.left?(l.left=0,e.left):(l.right=0,-e.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(o=Math.round(o),i=Math.round(i))),l[L]="translateX("+o+"px) translateY("+i+"px)","msTransform"!==L&&(l[L]+=" translateZ(0)")):(t.top?l.top=e.top+"px":l.bottom=e.bottom+"px",t.left?l.left=e.left+"px":l.right=e.right+"px")},d=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(l.position="absolute",c(i.page,e.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(l.position="fixed",c(i.viewport,e.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){l.position="absolute";var t=n.cache("target-offsetparent",function(){return k(n.target)});k(n.element)!==t&&z(function(){n.element.parentNode.removeChild(n.element),t.appendChild(n.element)}),c(i.offset,e.offset),d=!0}():(l.position="absolute",c({top:!0,left:!0},e.page)),!d)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var u=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName;){if("static"!==getComputedStyle(p).position){u=!1;break}p=p.parentNode}u||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var h={},f=!1;for(o in l){var m=l[o];this.element.style[o]!==m&&(f=!0,h[o]=m)}f&&z(function(){C(n.element.style,h),n.trigger("repositioned")})}}}]),Y);function Y(t){var e=this;i(this,Y),w(Object.getPrototypeOf(Y.prototype),"constructor",this).call(this),this.position=this.position.bind(this),j.push(this),this.history=[],this.setOptions(t,!1),S.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(e)}),this.position()}y.modules=[],S.position=x;var y=C(y,S),O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=(X=S.Utils).getBounds,C=X.extend,E=X.updateClasses,z=X.defer,U=["left","top","right","bottom"];S.modules.push({position:function(t){var u=this,p=t.top,h=t.left,f=t.targetAttachment;if(!this.options.constraints)return!0;var t=this.cache("element-bounds",function(){return T(u.element)}),m=t.height,g=t.width;0===g&&0===m&&void 0!==this.lastSize&&(e=this.lastSize,g=e.width,m=e.height);var e=this.cache("target-bounds",function(){return u.getTargetBounds()}),v=e.height,y=e.width,i=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,t=t.pinnedClass;e&&i.push(e),t&&i.push(t)}),i.forEach(function(e){["left","top","right","bottom"].forEach(function(t){i.push(e+"-"+t)})});var w=[],b=C({},f),x=C({},this.attachment);return this.options.constraints.forEach(function(t){var e=t.to,i=t.attachment,o=t.pin;void 0===i&&(i="");var n=void 0,s=void 0;n=0<=i.indexOf(" ")?(t=i.split(" "),s=(t=O(t,2))[0],t[1]):s=i;var r,a,l,a=("scrollParent"===(r=e)?r=u.scrollParents[0]:"window"===r&&(r=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),r===document&&(r=r.documentElement),void 0!==r.nodeType&&(i=T(a=r),e=i,l=getComputedStyle(r),r=[e.left,e.top,i.width+e.left,i.height+e.top],a.ownerDocument!==document&&(a=a.ownerDocument.defaultView,r[0]+=a.pageXOffset,r[1]+=a.pageYOffset,r[2]+=a.pageXOffset,r[3]+=a.pageYOffset),U.forEac
233h(function(t,e){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?r[e]+=parseFloat(l["border"+t+"Width"]):r[e]-=parseFloat(l["border"+t+"Width"])})),r);"target"!==s&&"both"!==s||(p<a[1]&&"top"===b.top&&(p+=v,b.top="bottom"),p+m>a[3]&&"bottom"===b.top&&(p-=v,b.top="top")),"together"===s&&("top"===b.top&&("bottom"===x.top&&p<a[1]?(p+=v,b.top="bottom",p+=m,x.top="top"):"top"===x.top&&p+m>a[3]&&p-(m-v)>=a[1]&&(p-=m-v,b.top="bottom",x.top="bottom")),"bottom"===b.top&&("top"===x.top&&p+m>a[3]?(p-=v,b.top="top",p-=m,x.top="bottom"):"bottom"===x.top&&p<a[1]&&p+(2*m-v)<=a[3]&&(p+=m-v,b.top="top",x.top="top")),"middle"===b.top&&(p+m>a[3]&&"top"===x.top?(p-=m,x.top="bottom"):p<a[1]&&"bottom"===x.top&&(p+=m,x.top="top"))),"target"!==n&&"both"!==n||(h<a[0]&&"left"===b.left&&(h+=y,b.left="right"),h+g>a[2]&&"right"===b.left&&(h-=y,b.left="left")),"together"===n&&(h<a[0]&&"left"===b.left?"right"===x.left?(h+=y,b.left="right",h+=g,x.left="left"):"left"===x.left&&(h+=y,b.left="right",h-=g,x.left="right"):h+g>a[2]&&"right"===b.left?"left"===x.left?(h-=y,b.left="left",h-=g,x.left="right"):"right"===x.left&&(h-=y,b.left="left",h+=g,x.left="left"):"center"===b.left&&(h+g>a[2]&&"left"===x.left?(h-=g,x.left="right"):h<a[0]&&"right"===x.left&&(h+=g,x.left="left"))),"element"!==s&&"both"!==s||(p<a[1]&&"bottom"===x.top&&(p+=m,x.top="top"),p+m>a[3]&&"top"===x.top&&(p-=m,x.top="bottom")),"element"!==n&&"both"!==n||(h<a[0]&&("right"===x.left?(h+=g,x.left="left"):"center"===x.left&&(h+=g/2,x.left="left")),h+g>a[2]&&("left"===x.left?(h-=g,x.left="right"):"center"===x.left&&(h-=g/2,x.left="right"))),"string"==typeof o?o=o.split(",").map(function(t){return t.trim()}):!0===o&&(o=["top","left","right","bottom"]),o=o||[];var c,d,s=[],n=[];p<a[1]&&(0<=o.indexOf("top")?(p=a[1],s.push("top")):n.push("top")),p+m>a[3]&&(0<=o.indexOf("bottom")?(p=a[3]-m,s.push("bottom")):n.push("bottom")),h<a[0]&&(0<=o.indexOf("left")?(h=a[0],s.push("left")):n.push("left")),h+g>a[2]&&(0<=o.indexOf("right")?(h=a[2]-g,s.push("right")):n.push("right")),s.length&&(c=void 0!==u.options.pinnedClass?u.options.pinnedClass:u.getClass("pinned"),w.push(c),s.forEach(function(t){w.push(c+"-"+t)})),n.length&&(d=void 0!==u.options.outOfBoundsClass?u.options.outOfBoundsClass:u.getClass("out-of-bounds"),w.push(d),n.forEach(function(t){w.push(d+"-"+t)})),(0<=s.indexOf("left")||0<=s.indexOf("right"))&&(x.left=b.left=!1),(0<=s.indexOf("top")||0<=s.indexOf("bottom"))&&(x.top=b.top=!1),b.top===f.top&&b.left===f.left&&x.top===u.attachment.top&&x.left===u.attachment.left||(u.updateAttachClasses(x,b),u.trigger("update",{attachment:x,targetAttachment:b}))}),z(function(){!1!==u.options.addTargetClasses&&E(u.target,w,i),E(u.element,w,i)}),{top:p,left:h}}});var X,T=(X=S.Utils).getBounds,E=X.updateClasses,z=X.defer;S.modules.push({position:function(t){var e=this,i=t.top,o=t.left,n=this.cache("element-bounds",function(){return T(e.element)}),t=n.height,n=n.width,s=this.getTargetBounds(),r=i+t,a=o+n,l=[];i<=s.bottom&&r>=s.top&&["left","right"].forEach(function(t){var e=s[t];e!==o&&e!==a||l.push(t)}),o<=s.right&&a>=s.left&&["top","bottom"].forEach(function(t){var e=s[t];e!==i&&e!==r||l.push(t)});var c=[],d=[];return c.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(t){c.push(e.getClass("abutted")+"-"+t)}),l.length&&d.push(this.getClass("abutted")),l.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),z(function(){!1!==e.options.addTargetClasses&&E(e.target,d,c),E(e.element,d,c)}),!0}});O=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};return S.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var o=this.options.shift;"function"==typeof this.options.shift&&(o=this.options.shift.call(this,{top:e,left:i}));var n=void 0,s=void 0;return s="string"==typeof o?((o=o.split(" "))[1]=o[1]||o[0],n=(t=O(o,2))[0],s=t[1],n=parseFloat(n,10),parseFloat(s,10)):(n=o.top,o.left),{top:e+=n,left:i+=s}}}}),y})?o.call(e,i,e,t):o)||(t.exports=o)},function(e,t,i){(function(t){e.exports=t.Tether=i(39)}
233).call(this,i(3))},function(t,e,i){i(4),t.exports=i(101)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(){}]);/*! For license information please see front.js.LICENSE.txt */ 234(()=>{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} 235return r} 236function 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})} 237o.push(d)} 238return o} 239function 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()}} 240e.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--} 241for(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))} 242a=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);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null} 243t[e]=r} 244return 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} 245r.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","red"),n.find("path:not([fill])").css("fill","#000"),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)}))}}})}))}))})()})();/** 246 * 2007-2020 PrestaShop. 247 * 248 * NOTICE OF LICENSE 249 * 250 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
251 * that is bundled with this package in the file LICENSE.txt. 252 * It is also available through the world-wide-web at this URL: 253 * https://opensource.org/licenses/AFL-3.0 254 * If you did not receive a copy of the license and are unable to 255 * obtain it through the world-wide-web, please send an email 256 * to [email protected] so we can send you a copy immediately. 257 * 258 * DISCLAIMER 259 * 260 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 261 * versions in the future. If you wish to customize PrestaShop for your 262 * needs please refer to http://www.prestashop.com for more information. 263 * 264 * @author PrestaShop SA <[email protected]> 265 * @copyright 2007-2020 PrestaShop SA 266 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) 267 * International Registered Trademark & Property of PrestaShop SA 268 */ 269$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0} 270$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/*! For license information please see front.2.1.1.js.LICENSE.txt */ 271(()=>{var t={1669(t){"use strict";t.exports=jQuery}},e={};var i=function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}(1669),r=function(){var t=i(".js-product-miniature");Array.from(t).forEach(function(t){var e=i(t).find(".thumbnail-container"),r=i(t).find(".highlighted-informations");if(i(t).find(".ts-wdg-loc-pl-wrapper").length>0&&(n(t),!e.find(".thumbnail-top").length)){e.prepend(i('<div class="thumbnail-top"></div>'));var o=i(t).find(".thumbnail-top"),d=i(t).find(".product-thumbnail");o.append(d),o.append(r)}})},n=function(t){setTimeout(function(){var e=i(t).find(".ts-wdg-loc-pl-wrapper"),r=i(t).find(".thumbnail-container");r.addClass("with-ts-widget"),(e.height()>65||0==e.height())&&r.addClass("with-ts-widget-expanded")},500)};i(function(){var t=i(".ts-wdg-loc-pd-wrapper"),e=i(".ts-wdg-loc-pn-wrapper"),n=i("etrusted-product-review-list-widget-product-star-extension"),o=i(".ts-wdg-loc-hd-wrapper"),d=i(".header-top .container"),s=i(".ts-trstd-loc-navbar-wrapper, .ts-trstd-login-hd-wrapper");i("#description").length&&(void 0!==window.controller?"product"===window.controller&&t.detach().appendTo(i("body").find("#description")):t.detach().appendTo(i("body").find("#description"))),void 0!==window.controller?"product"===window.controller&&(e.detach().insertAfter(i("body").find("h1")),n.detach().insertAfter(i("body").find("h1"))):(e.detach().insertAfter(i("body").find("h1")),n.detach().insertAfter(i("body").find("h1"))),"undefined"!=typeof prestashop&&prestashop.on("updateProductList",function(){r()});var a=function(){d.append(o)},p=function(){if(s.length){var t=window.matchMedia("(max-width: 767px)").matches,e=i(t?"#_mobile_cart:visible, #_mobile_ps_shoppingcart:visible":"#_desktop_cart:visible, #_desktop_ps_shoppingcart:visible").first();if(e.length||(e=i(".blockcart:visible").first()),e.length||(e=i('#header a[href*="controller=cart"]:visible').first()),e.length||(e=i(t?"#_mobile_user_info:visible, #_mobile_ps_customersignin:visible":"#_desktop_user_info:visible, #_desktop_ps_customersignin:visible").first()),s.toggleClass("ts-trstd-loc-navbar-wrapper--mobile",t),e.length){if(t?e.next().is(s):e.prev().is(s))return;t?s.detach().insertAfter(e):s.detach().insertBefore(e)}else{var r=i(".header-top .container:visible, .header-top:visible, #header:visible").first();r.length&&!s.parent().is(r)&&s.detach().appendTo(r)}}};o.length&&(o.addClass("row"),a()),p();var l=null;i(window).on("resize",function(){a(),clearTimeout(l),l=setTimeout(p,150)}),i(window).on("load",function(){return p()})}),i(window).on("load",function(){return r()})})();(function(){var __indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1},__slice=[].slice;!function(root,factory){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function($){return factory($,root)}):factory(root.jQuery,root)}(this,function($,window){var $w,Context,Waypoint,allWaypoints,contextCounter,contextKey,contexts,isTouch,jQMethods,methods,resizeEvent,scrollEvent,waypointCounter,waypointKey,wp,wps;return $w=$(window),isTouch=__indexOf.call(window,"ontouchstart")>=0,allWaypoints={horizontal:{},vertical:{}},contextCounter=1,contexts={}
271,contextKey="waypoints-context-id",resizeEvent="resize.waypoints",scrollEvent="scroll.waypoints",waypointCounter=1,waypointKey="waypoints-waypoint-ids",wp="waypoint",wps="waypoints",Context=function(){function Context($element){var _this=this;this.$element=$element,this.element=$element[0],this.didResize=!1,this.didScroll=!1,this.id="context"+contextCounter++,this.oldScroll={x:$element.scrollLeft(),y:$element.scrollTop()},this.waypoints={horizontal:{},vertical:{}},$element.data(contextKey,this.id),contexts[this.id]=this,$element.bind(scrollEvent,function(){var scrollHandler;if(!_this.didScroll&&!isTouch)return _this.didScroll=!0,scrollHandler=function(){return _this.doScroll(),_this.didScroll=!1},window.setTimeout(scrollHandler,$[wps].settings.scrollThrottle)}),$element.bind(resizeEvent,function(){var resizeHandler;if(!_this.didResize)return _this.didResize=!0,resizeHandler=function(){return $[wps]("refresh"),_this.didResize=!1},window.setTimeout(resizeHandler,$[wps].settings.resizeThrottle)})}return Context.prototype.doScroll=function(){var axes,_this=this;return axes={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!isTouch||axes.vertical.oldScroll&&axes.vertical.newScroll||$[wps]("refresh"),$.each(axes,function(aKey,axis){var direction,isForward,triggered;return triggered=[],isForward=axis.newScroll>axis.oldScroll,direction=isForward?axis.forward:axis.backward,$.each(_this.waypoints[aKey],function(wKey,waypoint){var _ref,_ref1;return axis.oldScroll<(_ref=waypoint.offset)&&_ref<=axis.newScroll?triggered.push(waypoint):axis.newScroll<(_ref1=waypoint.offset)&&_ref1<=axis.oldScroll?triggered.push(waypoint):void 0}),triggered.sort(function(a,b){return a.offset-b.offset}),isForward||triggered.reverse(),$.each(triggered,function(i,waypoint){if(waypoint.options.continuous||i===triggered.length-1)return waypoint.trigger([direction])})}),this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}},Context.prototype.refresh=function(){var axes,cOffset,isWin,_this=this;return isWin=$.isWindow(this.element),cOffset=this.$element.offset(),this.doScroll(),axes={horizontal:{contextOffset:isWin?0:cOffset.left,contextScroll:isWin?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:isWin?0:cOffset.top,contextScroll:isWin?0:this.oldScroll.y,contextDimension:isWin?$[wps]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},$.each(axes,function(aKey,axis){return $.each(_this.waypoints[aKey],function(i,waypoint){var adjustment,elementOffset,oldOffset,_ref,_ref1;if(adjustment=waypoint.options.offset,oldOffset=waypoint.offset,elementOffset=$.isWindow(waypoint.element)?0:waypoint.$element.offset()[axis.offsetProp],$.isFunction(adjustment)?adjustment=adjustment.apply(waypoint.element):"string"==typeof adjustment&&(adjustment=parseFloat(adjustment),waypoint.options.offset.indexOf("%")>
271-1&&(adjustment=Math.ceil(axis.contextDimension*adjustment/100))),waypoint.offset=elementOffset-axis.contextOffset+axis.contextScroll-adjustment,(!waypoint.options.onlyOnScroll||null==oldOffset)&&waypoint.enabled)return null!==oldOffset&&oldOffset<(_ref=axis.oldScroll)&&_ref<=waypoint.offset?waypoint.trigger([axis.backward]):null!==oldOffset&&oldOffset>(_ref1=axis.oldScroll)&&_ref1>=waypoint.offset?waypoint.trigger([axis.forward]):null===oldOffset&&axis.oldScroll>=waypoint.offset?waypoint.trigger([axis.forward]):void 0})})},Context.prototype.checkEmpty=function(){if($.isEmptyObject(this.waypoints.horizontal)&&$.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([resizeEvent,scrollEvent].join(" ")),delete contexts[this.id]},Context}(),Waypoint=function(){function Waypoint($element,context,options){var idList,_ref;options=$.extend({},$.fn[wp].defaults,options),"bottom-in-view"===options.offset&&(options.offset=function(){var contextHeight;return contextHeight=$[wps]("viewportHeight"),$.isWindow(context.element)||(contextHeight=context.$element.height()),contextHeight-$(this).outerHeight()}),this.$element=$element,this.element=$element[0],this.axis=options.horizontal?"horizontal":"vertical",this.callback=options.handler,this.context=context,this.enabled=options.enabled,this.id="waypoints"+waypointCounter++,this.offset=null,this.options=options,context.waypoints[this.axis][this.id]=this,allWaypoints[this.axis][this.id]=this,idList=null!=(_ref=$element.data(waypointKey))?_ref:[],idList.push(this.id),$element.data(waypointKey,idList)}return Waypoint.prototype.trigger=function(args){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,args),this.options.triggerOnce?this.destroy():void 0},Waypoint.prototype.disable=function(){return this.enabled=!1},Waypoint.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},Waypoint.prototype.destroy=function(){return delete allWaypoints[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},Waypoint.getWaypointsByElement=function(element){var all,ids;return(ids=$(element).data(waypointKey))?(all=$.extend({},allWaypoints.horizontal,allWaypoints.vertical),$.map(ids,function(id){return all[id]})):[]},Waypoint}(),methods={init:function(f,options){var _ref;return null==options&&(options={}),null==(_ref=options.handler)&&(options.handler=f),this.each(function(){var $this,context,contextElement,_ref1;return $this=$(this),contextElement=null!=(_ref1=options.context)?_ref1:$.fn[wp].defaults.context,$.isWindow(contextElement)||(contextElement=$this.closest(contextElement)),contextElement=$(contextElement),context=contexts[contextElement.data(contextKey)],context||(context=new Context(contextElement)),new Waypoint($this,context,options)}),$[wps]("refresh"),this},disable:function(){return methods._invoke(this,"disable")},enable:function(){return methods._invoke(this,"enable")},destroy:function(){return methods._invoke(this,"destroy")},prev:function(axis,selector){return methods._traverse.call(this,axis,selector,function(stack,index,waypoints){if(index>0)return stack.push(waypoints[index-1])})},next:function(axis,selector){return methods._traverse.call(this,axis,selector,function(stack,index,waypoints){if(index<waypoints.length-1)return stack.push(waypoints[index+1])})},_traverse:function(axis,selector,push){var stack,waypoints;return null==axis&&(axis="vertical"),null==selector&&(selector=window),waypoints=jQMethods.aggregate(selector),stack=[],this.each(function(){var index;return index=$.inArray(this,waypoints[axis]),push(stack,index,waypoints[axis])}),this.pushStack(stack)},_invoke:function($elements,method){return $elements.each(function(){var waypoints;return waypoints=Waypoint.getWaypointsByElement(this),$.each(waypoints,function(i,waypoint){return waypoint[method](),!0})}),this}},$.fn[wp]=function(){var args,method;return method=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[],methods[method]?methods[method].apply(this,args):$.isFunction(method)?methods.init.apply(this,arguments):$.isPlainObject(method)?methods.init.apply(this,[null,method]):method?$.error("The "+method+" method does not exist in jQuery Waypoints."):$.error("jQuery Waypoints needs a callback function or handler option.")},$.fn[wp].defaults={context:window,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},jQMethods={refresh:function(){return $.each(contexts,function(i,context){return context.refresh()})}
271,viewportHeight:function(){var _ref;return null!=(_ref=window.innerHeight)?_ref:$w.height()},aggregate:function(contextSelector){var collection,waypoints,_ref;return collection=allWaypoints,contextSelector&&(collection=null!=(_ref=contexts[$(contextSelector).data(contextKey)])?_ref.waypoints:void 0),collection?(waypoints={horizontal:[],vertical:[]},$.each(waypoints,function(axis,arr){return $.each(collection[axis],function(key,waypoint){return arr.push(waypoint)}),arr.sort(function(a,b){return a.offset-b.offset}),waypoints[axis]=$.map(arr,function(waypoint){return waypoint.element}),waypoints[axis]=$.unique(waypoints[axis])}),waypoints):[]},above:function(contextSelector){return null==contextSelector&&(contextSelector=window),jQMethods._filter(contextSelector,"vertical",function(context,waypoint){return waypoint.offset<=context.oldScroll.y})},below:function(contextSelector){return null==contextSelector&&(contextSelector=window),jQMethods._filter(contextSelector,"vertical",function(context,waypoint){return waypoint.offset>context.oldScroll.y})},left:function(contextSelector){return null==contextSelector&&(contextSelector=window),jQMethods._filter(contextSelector,"horizontal",function(context,waypoint){return waypoint.offset<=context.oldScroll.x})},right:function(contextSelector){return null==contextSelector&&(contextSelector=window),jQMethods._filter(contextSelector,"horizontal",function(context,waypoint){return waypoint.offset>context.oldScroll.x})},enable:function(){return jQMethods._invoke("enable")},disable:function(){return jQMethods._invoke("disable")},destroy:function(){return jQMethods._invoke("destroy")},extendFn:function(methodName,f){return methods[methodName]=f},_invoke:function(method){var waypoints;return waypoints=$.extend({},allWaypoints.vertical,allWaypoints.horizontal),$.each(waypoints,function(key,waypoint){return waypoint[method](),!0})},_filter:function(selector,axis,test){var context,waypoints;return(context=contexts[$(selector).data(contextKey)])?(waypoints=[],$.each(context.waypoints[axis],function(i,waypoint){if(test(context,waypoint))return waypoints.push(waypoint)}),waypoints.sort(function(a,b){return a.offset-b.offset}),$.map(waypoints,function(waypoint){return waypoint.element})):[]}},$[wps]=function(){var args,method;return method=arguments[0],args=2<=arguments.length?__slice.call(arguments,1):[],jQMethods[method]?jQMethods[method].apply(null,args):jQMethods.aggregate.call(null,method)},$[wps].settings={resizeThrottle:100,scrollThrottle:30},$w.load(function(){return $[wps]("refresh")})})}).call(this);!function($,window,document,undefined){"use strict";function Plugin(element,options){this.element=element,this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}var pluginName="numerator",defaults={easing:"swing",duration:500,delimiter:undefined,rounding:0,toValue:undefined,fromValue:0,queue:!1,onStart:function(){},onStep:function(){},onProgress:function(){},onComplete:function(){}};Plugin.prototype={init:function(){this.parseElement(),this.setValue()},parseElement:function(){var elText=$.trim($(this.element).text());this.settings.fromValue=this.format(elText),this.settings.toValue=this.format($(this.element).data("to_value"))},setValue:function(){var self=this;$({value:self.settings.fromValue}).animate({value:self.settings.toValue},{duration:parseInt(self.settings.duration),easing:self.settings.easing,start:self.settings.onStart,step:function(now,fx){$(self.element).text(self.format(now)),self.settings.onStep(now,fx)},progress:self.settings.onProgress,complete:self.settings.onComplete})},format:function(value){var self=this;return value=parseInt(this.settings.rounding)<1?parseInt(value):parseFloat(value).toFixed(parseInt(this.settings.rounding)),self.settings.delimiter?this.delimit(value):value},delimit:function(value){var self=this;if(value=value.toString(),self.settings.rounding&&parseInt(self.settings.rounding)>0){var decimals=value.substring(value.length-(self.settings.rounding+1),value.length),wholeValue=value.substring(0,value.length-(self.settings.rounding+1));return self.addCommas(wholeValue)+decimals}return self.addCommas(value)},addCommas:function(value){return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.settings.delimiter)}},$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)&&$.data(this,"plugin_"+pluginName,null),$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}}(jQuery,window,document);!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,458 bytes, line 271
271sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.
271slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.o
vendor: 4,100 bytes, line 271
271ptions.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.
271slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0}
vendor: 4,284 bytes, line 271
271,100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focu
vendor: 2,346 bytes, line 271
271sHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}
vendor: 1,117 bytes, line 271
271):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b
vendor: 3,666 bytes, line 271
271.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.
vendor: 4,540 bytes, line 271
271interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>
2714&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});/*! 272 * Creative Elements - Elementor based PageBuilder 273 * pagebuilder.webshopworks.com 274 * Copyright 2019 WebshopWorks, Elementor 275 */ 276(function e$jscomp$0(f,h,k){function d(c,e){if(!h[c]){if(!f[c]){var g="function"==typeof require&&require;if(!e&&g)return g(c,!0);if(b)return b(c,!0);g=Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}g=h[c]={exports:{}};f[c][0].call(g.exports,function(b){var g=f[c][1][b];return d(g?g:b)},g,g.exports,e$jscomp$0,f,h,k)}return h[c].exports}for(var b="function"==typeof require&&require,e=0;e<k.length;e++)d(k[e]);return d})({1:[function(f,h,k){h.exports=function(a){this.runReadyTrigger=function(d){var b=d.data("element_type");b&&(elementorFrontend.hooks.doAction("frontend/element_ready/global",d,a),-1===["section","column"].indexOf(b)&&elementorFrontend.hooks.doAction("frontend/element_ready/widget",d,a),elementorFrontend.hooks.doAction("frontend/element_ready/"+b,d,a))}}},{}],2:[function(f,h,k){(function(a){var d=f("../utils/hooks"),b=f("elementor-frontend/elements-handler"),e=f("elementor-frontend/utils");window.elementorFrontend=new function(){var c=this,h=window,g=function(){a.each(c.handlers,function(b,g){c.hooks.addAction("frontend/element_ready/"+b,g)})},l=function(){(c.isEditMode()?c.getScopeWindow().jQuery(".elementor-element",".elementor:not(#elementor)"):a(".elementor-element")).each(function(){c.elementsHandler.runReadyTrigger(a(this))})};this.handlers={section:f("elementor-frontend/handlers/section"),"accordion.default":f("elementor-frontend/handlers/accordion"),"alert.default":f("elementor-frontend/handlers/alert"),"counter.default":f("elementor-frontend/handlers/counter"),"progress.default":f("elementor-frontend/handlers/progress"),"tabs.default":f("elementor-frontend/handlers/tabs"),"toggle.default":f("elementor-frontend/handlers/toggle"),"video.default":f("elementor-frontend/handlers/video"),"image-carousel.default":f("elementor-frontend/handlers/image-carousel"),"trustedshops-reviews.default":f("elementor-frontend/handlers/image-carousel"),"product-carou
276sel.default":f("elementor-frontend/handlers/image-carousel"),"menu-anchor.default":f("elementor-frontend/handlers/menu-anchor"),"flip-box.default":f("elementor-frontend/handlers/flip-box")};this.config=elementorFrontendConfig;this.getScopeWindow=function(){return h};this.setScopeWindow=function(c){h=c};this.isEditMode=function(){return c.config.isEditMode};this.hooks=new d;this.elementsHandler=new b(a);this.utils=new e(a);this.init=function(){c.hooks.addAction("frontend/element_ready/global",f("elementor-frontend/handlers/global"));c.hooks.addAction("frontend/element_ready/widget",f("elementor-frontend/handlers/widget"));g();c.utils.insertYTApi();l()};this.throttle=function(c,b){var g,e,l,a,d=0,f=function(){d=Date.now();g=null;a=c.apply(e,l);g||(e=l=null)};return function(){var m=Date.now(),h=b-(m-d);e=this;l=arguments;0>=h||h>b?(g&&(clearTimeout(g),g=null),d=m,a=c.apply(e,l),g||(e=l=null)):g||(g=setTimeout(f,h));return a}}}})(jQuery);jQuery(function(){elementorFrontend.isEditMode()||elementorFrontend.init()})},{"elementor-frontend/elements-handler":1,"elementor-frontend/handlers/accordion":3,"elementor-frontend/handlers/alert":4,"elementor-frontend/handlers/counter":5,"elementor-frontend/handlers/global":6,"elementor-frontend/handlers/image-carousel":7,"elementor-frontend/handlers/menu-anchor":8,"elementor-frontend/handlers/progress":9,"elementor-frontend/handlers/section":10,"elementor-frontend/handlers/tabs":11,"elementor-frontend/handlers/toggle":12,"elementor-frontend/handlers/video":13,"elementor-frontend/handlers/widget":14,"elementor-frontend/handlers/flip-box":15,"elementor-frontend/utils":16,"../utils/hooks":17}],3:[function(f,h,k){var a=function(a,b){var e=b.filter(".active"),c=b.filter('[data-section="'+a+'"]'),d=c.hasClass("active");e.removeClass("active").next().slideUp();d||c.addClass("active").next().slideDown()};h.exports=function(d,b){var e=d.find(".elementor-accordion").data("active-section"),c=d.find(".elementor-accordion-title");e||(e=1);a(e,c);c.on("click",function(){a(this.dataset.section,c)})}},{}],4:[function(f,h,k){h.exports=function(a,d){a.find(".elementor-alert-dismiss").on("click",function(){d(this).parent().fadeOut()})}},{}],5:[function(f,h,k){h.exports=function(a,d){a.find(".elementor-counter-number").waypoint(function(){var b=d(this);b.numerator({duration:b.data("duration")})},{offset:"90%"})}},{}],6:[function(f,h,k){h.exports=function(a,d){if(!elementorFrontend.isEditMode()){var b=a.data("animation");b&&(a.addClass("elementor-invisible").removeClass(b),a.waypoint(function(){a.removeClass("elementor-invisible").addClass(b)},{offset:"90%"}))}}},{}],7:[function(f,h,k){h.exports=function(a,d){var b=a.find(".elementor-image-carousel");if(b.length){var e=b.data("slider_options"),c=1===e.slidesToShow?1:2;e={respondTo:elementorFrontend.isEditMode()?"min":"window",responsive:[{breakpoint:769,settings:{slidesToShow:e.slidesToShowTablet,slidesToScroll:c}},{breakpoint:481,settings:{slidesToShow:e.slidesToShowMobile,slidesToScroll:1}}]};e=d.extend({},e,b.data("slider_options"));b.slick(e)}}},{}],8:[function(f,h,k){h.exports=function(a,d){if(!elementorFrontend.isEditMode()){var b=a.find(".elementor-menu-anchor"),e=b.attr("id");e=d('a[href*="#'+e+'"]');var c=d("html, body"),h=d("#wpadminbar").height();e.on("click",function(g){var e=location.pathname===this.pathname;location.hostname===this.hostname&&e&&(g.preventDefault(),c.animate({scrollTop:b.offset().top-h},1E3))})}}},{}],9:[function(f,h,k){h.exports=function(a,d){a.find(".elementor-progress-bar").waypoint(function(){var b=d(this),e=parseInt(b.data("max"),10),c=b.next(),a=c.find(".elementor-progress-text"),g=c.find(".elementor-progress-percentage"),l=c.data("inner")?c.data("inner"):"";b.css("width",e+"%");c.css("width",e+"%");a.html(l+"");g.html(e+"%")},{offset:"90%"})}},{}],10:[function(f,h,k){var a=function(b,e){var c,a={},g=!1,l=function(){var l=g?e(c.getIframe()):a.$backgroundVideo,d=b.outerWidth(),h=b.outerHeight();var f=["16","9"];var m=f[0]/f[1],k=d/h>m;f=k?d/m:h;l.width(k?d:h*m).height(f)},d=function(g,b){c=new g.Player(a.$backgroundVideo[0],{videoId:b,events:{onReady:function(){c.mute();l();c.playVideo()},onStateChange:function(b){b.data===g.PlayerState.ENDED&&c.seekTo(0)}},playerVars:{controls:0,showinfo:0}});e(elementorFrontend.getScopeWindow()).on("resize",l)};a.$backgroundVideo=b.children(".elementor-background-video");(function(){var c=a.$backgroundVideo.data("video-id");if(c)g=!0,elementorFrontend.utils.onYoutubeApiReady(function(g){setTimeout(function(){d(g,c)},1)});else a.$backgroundVideo.one("canplay",l)})()},d=function(b,a){var c={},d={},g=function(){var g=d.is_rtl?"right":"left",a={width:"auto"};a[g]=0;b.css(a);if(b.hasClass("elementor-section-stretched")){var e=c.$scopeWindow.width(),h=b.width(),f=b.offset().left,k=f;c.$sectionContainer.length&&(k=c.$sectionContainer.offset().left,e=c.$sectionContainer.outerWidth(),k=f>k?f-k:0);d.is_rtl&&(k=e-(h+k));a.width=e+"px";a[g]=-k+"px";b.css(a)}};d.sectionContainerSelector=elementorFrontend.config.stretchedSectionContainer;d.is_rtl=elementorFrontend.config.is_rtl;c.scopeWindow=elementorFrontend.getScopeWindow();c.$scopeWindow=a(c.scopeWindow);c.$sectionContainer=a(c.scopeWindow.document).find(d.sectionContainerSelector);c.$scopeWindow.on("resize",g);g()};h.exports=function(b,e){new d(b,e);var c=b.find(".elementor-background-video-container");c&&new a(c,e)}},{}],11:[function(f,h,k){h.exports=function(a,d){var b=a.find(".elementor-tabs").data("active-tab"),e=a.find(".elementor-tab-title"),c=a.find(".elementor-tab-content"),f,g;b||(b=1);var l=function(b){f&&(f.removeClass("active"),g.hide());f=e.filter('[data-tab="'+b+'"]');f.addClass("active");g=c.filter('[data-tab="'+b+'"]');g.show()};l(b);e.on("click",function(){l(this.dataset.tab)})}},{}],12:[function(f,h,k){h.exports=function(a,d){a.find(".elementor-toggle-title").on("click",function(){var b=d(this),a=b.next();
276b.hasClass("active")?(b.removeClass("active"),a.slideUp()):(b.addClass("active"),a.slideDown())})}},{}],13:[function(f,h,k){h.exports=function(a,d){var b=a.find(".elementor-custom-embed-image-overlay"),e=a.find("iframe");if(b.length)b.on("click",function(){b.remove();var c=e[0].src;c=c.replace("&autoplay=0","");e[0].src=c+"&autoplay=1"})}},{}],14:[function(f,h,k){h.exports=function(a,d){elementorFrontend.isEditMode()&&(a.hasClass("elementor-widget-edit-disabled")||a.find(".elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(d(this))}))}},{}],15:[function(f,h,k){function a(){d.html("#elementor .elementor-flip-box-back { transition: none; }");setTimeout(function(){d.html("")},100)}var d;h.exports=function(b,e){if(elementorFrontend.isEditMode()){if(d)return elementor.panel.$el.find(".elementor-control.elementor-open:first").prev(".elementor-control-section_b, .elementor-control-section_style_b, .elementor-control-section_style_button").length||a();d=e('<style id="ce-flip-box-edit-back">').appendTo(elementor.$previewContents.find("head"));elementor.panel.$el.on("mouseup.ce-flip-clear",".elementor-control-section_a, .elementor-control-section_style_a, .elementor-control-section_flip_box, .elementor-tabs-controls [data-tab]",function(c){1===c.which&&a()}).on("mouseup.ce-flip-back",".elementor-control-section_b, .elementor-control-section_style_b, .elementor-control-section_style_button",function(c){1===c.which&&(c="#elementor-element-"+elementor.panel.currentView.content.currentView.model.id,d.html(c+" .elementor-flip-box-front { display: none; }\n"+c+" .elementor-flip-box-back { transition: none; transform: none; opacity: 1; }"))})}}},{}],16:[function(f,h,k){h.exports=function(a){var d=this;this.onYoutubeApiReady=function(b){window.YT&&YT.loaded?b(YT):setTimeout(function(){d.onYoutubeApiReady(b)},350)};this.insertYTApi=function(){a("script:first").before(a("<script>",{src:"https://www.youtube.com/iframe_api"}))}}},{}],17:[function(f,h,k){h.exports=function(){function a(c,b,a,d){var g;if(f[c][b])if(a)if(c=f[c][b],d)for(g=c.length;g--;)b=c[g],b.callback===a&&b.context===d&&c.splice(g,1);else for(g=c.length;g--;)c[g].callback===a&&c.splice(g,1);else f[c][b]=[]}function d(c,b,a,d,e){a={callback:a,priority:d,context:e};if(d=f[c][b]){d.push(a);a=d;for(var g,h=1,l=a.length;h<l;h++){d=a[h];for(e=h;(g=a[e-1])&&g.priority>d.priority;)a[e]=a[e-1],--e;a[e]=d}d=a}else d=[a];f[c][b]=d}function b(c,a,b){a=f[c][a];var d;if(!a)return"filters"===c?b[0]:!1;var g=a.length;if("filters"===c)for(d=0;d<g;d++)b[0]=a[d].callback.apply(a[d].context,b);else for(d=0;d<g;d++)a[d].callback.apply(a[d].context,b);return"filters"===c?b[0]:!0}var e=Array.prototype.slice,c,f={actions:{},filters:{}};return c={removeFilter:function(b,d){"string"===typeof b&&a("filters",b,d);return c},applyFilters:function(){var a=e.call(arguments),d=a.shift();return"string"===typeof d?b("filters",d,a):c},addFilter:function(a,b,e,f){"string"===typeof a&&"function"===typeof b&&(e=parseInt(e||10,10),d("filters",a,b,e,f));return c},removeAction:function(b,d){"string"===typeof b&&a("actions",b,d);return c},doAction:function(){var a=e.call(arguments),d=a.shift();"string"===typeof d&&b("actions",d,a);return c},addAction:function(a,b,e,f){"string"===typeof a&&"function"===typeof b&&(e=parseInt(e||10,10),d("actions",a,b,e,f));return c}}}},{}]},{},[2]);$("html").on("click.ce",".elementor-quick-view",function(f){f.preventDefault();prestashop.emit("clickQuickView",{dataset:$(this).closest(".elementor-product-miniature").data()})});/** 277 * 2015-2024 Chronopost SAS 278 * 279 * NOTICE OF LICENSE 280 * 281 * This source file is subject to the Academic Free License 3.0 (AFL-3.0) 282 * that is bundled with this package in the file LICENSE.txt. 283 * It is also available through the world-wide-web at this URL: 284 * https://opensource.org/licenses/AFL-3.0 285 * If you did not receive a copy of the license and are unable to 286 * obtain it through the world-wide-web, please send an email 287 * to [email protected] so we can send you a copy immediately. 288 * 289 * @author Chronopost SAS <[email protected]> 290 * @copyright 2015-2024 Chronopost SAS 291 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) 292 */
293function chrAdminAjaxRequest(action,data,type='POST'){return new Promise((resolve,reject)=>{$.ajax({type:type,cache:!1,url:Chronopost.admin_ajax_endpoint,data:{ajax:!0,controller:'AdminChronopostAjax',action:action,ajaxData:data,token:Chronopost.csrf_token,},success:function(r){resolve(r)},error:function(r){reject(r)}})})} 294function chrAjaxRequest(data,type='POST'){return new Promise((resolve,reject)=>{$.ajax({type:type,url:Chronopost.ajax_endpoint,data:data,success:function(r){resolve(r)},error:function(r){reject(r)}})})};if(typeof Object.create!=="function"){Object.create=function(obj){function F(){} 295F.prototype=obj;return new F()}}(function($,window,document){var Carousel={init:function(options,el){var base=this;base.$elem=$(el);base.options=$.extend({},$.fn.owlCarousel.options,base.$elem.data(),options);base.userOptions=options;base.loadContent()},loadContent:function(){var base=this,url;function getData(data){var i,content="";if(typeof base.options.jsonSuccess==="function"){base.options.jsonSuccess.apply(this,[data])}else{for(i in data.owl){if(data.owl.hasOwnProperty(i)){content+=data.owl[i].item}} 296base.$elem.html(content)} 297base.logIn()} 298if(typeof base.options.beforeInit==="function"){base.options.beforeInit.apply(this,[base.$elem])} 299if(typeof base.options.jsonPath==="string"){url=base.options.jsonPath;$.getJSON(url,getData)}else{base.logIn()}},logIn:function(){var base=this;base.$elem.data("owl-originalStyles",base.$elem.attr("style"));base.$elem.data("owl-originalClasses",base.$elem.attr("class"));base.$elem.css({opacity:0});base.orignalItems=base.options.items;base.checkBrowser();base.wrapperWidth=0;base.checkVisible=null;base.setVars()},setVars:function(){var base=this;if(base.$elem.children().length===0){return!1} 300base.baseClass();base.eventTypes();base.$userItems=base.$elem.children();base.itemsAmount=base.$userItems.length;base.wrapItems();base.$owlItems=base.$elem.find(".owl-item");base.$owlWrapper=base.$elem.find(".owl-wrapper");base.playDirection="next";base.prevItem=0;base.prevArr=[0];base.currentItem=0;base.customEvents();base.onStartup()},onStartup:function(){var base=this;base.updateItems();base.calculateAll();base.buildControls();base.updateControls();base.response();base.moveEvents();base.stopOnHover();base.owlStatus();if(base.options.transitionStyle!==!1){base.transitionTypes(base.options.transitionStyle)} 301if(base.options.autoPlay===!0){base.options.autoPlay=5000} 302base.play();base.$elem.find(".owl-wrapper").css("display","block");if(!base.$elem.is(":visible")){base.watchVisibility()}else{base.$elem.css("opacity",1)} 303base.onstartup=!1;base.eachMoveUpdate();if(typeof base.options.afterInit==="function"){base.options.afterInit.apply(this,[base.$elem])}},eachMoveUpdate:function(){var base=this;if(base.options.lazyLoad===!0){base.lazyLoad()} 304if(base.options.autoHeight===!0){base.autoHeight()} 305base.onVisibleItems();if(typeof base.options.afterAction==="function"){base.options.afterAction.apply(this,[base.$elem])}}
305,updateVars:function(){var base=this;if(typeof base.options.beforeUpdate==="function"){base.options.beforeUpdate.apply(this,[base.$elem])} 306base.watchVisibility();base.updateItems();base.calculateAll();base.updatePosition();base.updateControls();base.eachMoveUpdate();if(typeof base.options.afterUpdate==="function"){base.options.afterUpdate.apply(this,[base.$elem])}},reload:function(){var base=this;window.setTimeout(function(){base.updateVars()},0)},watchVisibility:function(){var base=this;if(base.$elem.is(":visible")===!1){base.$elem.css({opacity:0});window.clearInterval(base.autoPlayInterval);window.clearInterval(base.checkVisible)}else{return!1} 307base.checkVisible=window.setInterval(function(){if(base.$elem.is(":visible")){base.reload();base.$elem.animate({opacity:1},200);window.clearInterval(base.checkVisible)}},500)},wrapItems:function(){var base=this;base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");base.wrapperOuter=base.$elem.find(".owl-wrapper-outer");base.$elem.css("display","block")},baseClass:function(){var base=this,hasBaseClass=base.$elem.hasClass(base.options.baseClass),hasThemeClass=base.$elem.hasClass(base.options.theme);if(!hasBaseClass){base.$elem.addClass(base.options.baseClass)} 308if(!hasThemeClass){base.$elem.addClass(base.options.theme)}},updateItems:function(){var base=this,width,i;if(base.options.responsive===!1){return!1} 309if(base.options.singleItem===!0){base.options.items=base.orignalItems=1;base.options.itemsCustom=!1;base.options.itemsDesktop=!1;base.options.itemsDesktopSmall=!1;base.options.itemsTablet=!1;base.options.itemsTabletSmall=!1;base.options.itemsMobile=!1;return!1} 310width=$(base.options.responsiveBaseWidth).width();if(width>(base.options.itemsDesktop[0]||base.orignalItems)){base.options.items=base.orignalItems} 311if(base.options.itemsCustom!==!1){base.options.itemsCustom.sort(function(a,b){return a[0]-b[0]});for(i=0;i<base.options.itemsCustom.length;i+=1){if(base.options.itemsCustom[i][0]<=width){base.options.items=base.options.itemsCustom[i][1]}}}else{if(width<=base.options.itemsDesktop[0]&&base.options.itemsDesktop!==!1){base.options.items=base.options.itemsDesktop[1]} 312if(width<=base.options.itemsDesktopSmall[0]&&base.options.itemsDesktopSmall!==!1){base.options.items=base.options.itemsDesktopSmall[1]} 313if(width<=base.options.itemsTablet[0]&&base.options.itemsTablet!==!1){base.options.items=base.options.itemsTablet[1]} 314if(width<=base.options.itemsTabletSmall[0]&&base.options.itemsTabletSmall!==!1){base.options.items=base.options.itemsTabletSmall[1]} 315if(width<=base.options.itemsMobile[0]&&base.options.itemsMobile!==!1){base.options.items=base.options.itemsMobile[1]}} 316if(base.options.items>base.itemsAmount&&base.options.itemsScaleUp===!0){base.options.items=base.itemsAmount}},response:function(){var base=this,smallDelay,lastWindowWidth;
316if(base.options.responsive!==!0){return!1} 317lastWindowWidth=$(window).width();base.resizer=function(){if($(window).width()!==lastWindowWidth){if(base.options.autoPlay!==!1){window.clearInterval(base.autoPlayInterval)} 318window.clearTimeout(smallDelay);smallDelay=window.setTimeout(function(){lastWindowWidth=$(window).width();base.updateVars()},base.options.responsiveRefreshRate)}};$(window).resize(base.resizer)},updatePosition:function(){var base=this;base.jumpTo(base.currentItem);if(base.options.autoPlay!==!1){base.checkAp()}},appendItemsSizes:function(){var base=this,roundPages=0,lastItem=base.itemsAmount-base.options.items;base.$owlItems.each(function(index){var $this=$(this);$this.css({"width":base.itemWidth}).data("owl-item",Number(index));if(index%base.options.items===0||index===lastItem){if(!(index>lastItem)){roundPages+=1}} 319$this.data("owl-roundPages",roundPages)})},appendWrapperSizes:function(){var base=this,width=base.$owlItems.length*base.itemWidth;base.$owlWrapper.css({"width":width*2,"left":0});base.appendItemsSizes()},calculateAll:function(){var base=this;base.calculateWidth();base.appendWrapperSizes();base.loops();base.max()},calculateWidth:function(){var base=this;base.itemWidth=Math.round(base.$elem.width()/base.options.items)},max:function(){var base=this,maximum=((base.itemsAmount*base.itemWidth)-base.options.items*base.itemWidth)*-1;if(base.options.items>base.itemsAmount){base.maximumItem=0;maximum=0;base.maximumPixels=0}else{base.maximumItem=base.itemsAmount-base.options.items;base.maximumPixels=maximum} 320return maximum},min:function(){return 0},loops:function(){var base=this,prev=0,elWidth=0,i,item,roundPageNum;base.positionsInArray=[0];base.pagesInArray=[];for(i=0;i<base.itemsAmount;i+=1){elWidth+=base.itemWidth;base.positionsInArray.push(-elWidth);if(base.options.scrollPerPage===!0){item=$(base.$owlItems[i]);roundPageNum=item.data("owl-roundPages");if(roundPageNum!==prev){base.pagesInArray[prev]=base.positionsInArray[i];prev=roundPageNum}}}},buildControls:function(){var base=this;if(base.options.navigation===!0||base.options.pagination===!0){base.owlControls=$("<div class=\"owl-controls\"/>").toggleClass("clickable",!base.browser.isTouch).appendTo(base.$elem)} 321if(base.options.pagination===!0){base.buildPagination()} 322if(base.options.navigation===!0){base.buildButtons()}},buildButtons:function(){var base=this,buttonsWrapper=$("<div class=\"owl-buttons\"/>");base.owlControls.append(buttonsWrapper);base.buttonPrev=$("<div/>",{"class":"owl-prev","html":base.options.navigationText[0]||""});base.buttonNext=$("<div/>",{"class":"owl-next","html":base.options.navigationText[1]||""});buttonsWrapper.append(base.buttonPrev).append(base.buttonNext);buttonsWrapper.on("touchstart.owlControls mousedown.owlControls","div[class^=\"owl\"]",function(event){event.preventDefault()});buttonsWrapper.on("touchend.owlControls mouseup.owlControls","div[class^=\"owl\"]",function(event){event.preventDefault();if($(this).hasClass("owl-next")){base.next()}else{base.prev()}})},buildPagination:function(){var base=this;base.paginationWrapper=$("<div class=\"owl-pagination\"/>");base.owlControls.append(base.paginationWrapper);base.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(event){event.preventDefault();if(Number($(this).data("owl-page"))!==base.currentItem){base.goTo(Number($(this).data("owl-page")),!0)}})},updatePagination:function(){var base=this,counter,lastPage,lastItem,i,paginationButton,paginationButtonInner;if(base.options.pagination===!1){return!1} 323base.paginationWrapper.html("");counter=0;lastPage=base.itemsAmount-base.itemsAmount%base.options.items;for(i=0;i<base.itemsAmount;i+=1){if(i%base.options.items===0){counter+=1;if(lastPage===i){lastItem=base.itemsAmount-base.options.items} 324paginationButton=$("<div/>",{"class":"owl-page"});paginationButtonInner=$("<span></span>",{"text":base.options.paginationNumbers===!0?counter:"","class":base.options.paginationNumbers===!0?"owl-numbers":""});paginationButton.append(paginationButtonInner);paginationButton.data("owl-page",lastPage===i?lastItem:i);paginationButton.data("owl-roundPages",counter);base.paginationWrapper.append(paginationButton)}} 325base.checkPagination()},checkPagination:function(){var base=this;if(base.options.pagination===!1){return!1} 326base.paginationWrapper.find(".owl-page").each(function(){if($(this).data("owl-roundPages")===$(base.$owlItems[base.currentItem]).data("owl-roundPages")){base.paginationWrapper.find(".owl-page").removeClass("active");$(this).addClass("active")}})},checkNavigation:function(){var base=this;if(base.options.navigation===!1){return!1} 327if(base.options.rewindNav===!1){if(base.currentItem===0&&base.maximumItem===0){base.buttonPrev.addClass("disabled");base.buttonNext.addClass("disabled")}else if(base.currentItem===0&&base.maximumItem!==0){base.buttonPrev.addClass("disabled");base.buttonNext.removeClass("disabled")}else if(base.currentItem===base.maximumItem){base.buttonPrev.removeClass("disabled");base.buttonNext.addClass("disabled")}else if(base.currentItem!==0&&base.currentItem!==base.maximumItem){base.buttonPrev.removeClass("disabled");base.buttonNext.removeClass("disabled")}}},updateControls:function(){var base=this;base.updatePagination();base.checkNavigation();if(base.owlControls){if(base.options.items>=base.itemsAmount){base.owlControls.hide()}else{base.owlControls.show()}}},destroyControls:function(){var base=this;if(base.owlControls){base.owlControls.remove()}},next:function(speed){var base=this;if(base.isTransition){return!1} 328base.currentItem+=base.options.scrollPerPage===!0?base.options.items:1;if(base.currentItem>base.maximumItem+(base.options.scrollPerPage===!0?(base.options.items-1):0)){if
328(base.options.rewindNav===!0){base.currentItem=0;speed="rewind"}else{base.currentItem=base.maximumItem;return!1}} 329base.goTo(base.currentItem,speed)},prev:function(speed){var base=this;if(base.isTransition){return!1} 330if(base.options.scrollPerPage===!0&&base.currentItem>0&&base.currentItem<base.options.items){base.currentItem=0}else{base.currentItem-=base.options.scrollPerPage===!0?base.options.items:1} 331if(base.currentItem<0){if(base.options.rewindNav===!0){base.currentItem=base.maximumItem;speed="rewind"}else{base.currentItem=0;return!1}} 332base.goTo(base.currentItem,speed)},goTo:function(position,speed,drag){var base=this,goToPixel;if(base.isTransition){return!1} 333if(typeof base.options.beforeMove==="function"){base.options.beforeMove.apply(this,[base.$elem])} 334if(position>=base.maximumItem){position=base.maximumItem}else if(position<=0){position=0} 335base.currentItem=base.owl.currentItem=position;if(base.options.transitionStyle!==!1&&drag!=="drag"&&base.options.items===1&&base.browser.support3d===!0){base.swapSpeed(0);if(base.browser.support3d===!0){base.transition3d(base.positionsInArray[position])}else{base.css2slide(base.positionsInArray[position],1)} 336base.afterGo();base.singleItemTransition();return!1} 337goToPixel=base.positionsInArray[position];if(base.browser.support3d===!0){base.isCss3Finish=!1;if(speed===!0){base.swapSpeed("paginationSpeed");window.setTimeout(function(){base.isCss3Finish=!0},base.options.paginationSpeed)}else if(speed==="rewind"){base.swapSpeed(base.options.rewindSpeed);window.setTimeout(function(){base.isCss3Finish=!0},base.options.rewindSpeed)}else{base.swapSpeed("slideSpeed");window.setTimeout(function(){base.isCss3Finish=!0},base.options.slideSpeed)} 338base.transition3d(goToPixel)}else{if(speed===!0){base.css2slide(goToPixel,base.options.paginationSpeed)}else if(speed==="rewind"){base.css2slide(goToPixel,base.options.rewindSpeed)}else{base.css2slide(goToPixel,base.options.slideSpeed)}} 339base.afterGo()},jumpTo:function(position){var base=this;if(typeof base.options.beforeMove==="function"){base.options.beforeMove.apply(this,[base.$elem])} 340if(position>=base.maximumItem||position===-1){position=base.maximumItem}else if(position<=0){position=0} 341base.swapSpeed(0);if(base.browser.support3d===!0){base.transition3d(base.positionsInArray[position])}else{base.css2slide(base.positionsInArray[position],1)} 342base.currentItem=base.owl.currentItem=position;base.afterGo()},afterGo:function(){var base=this;base.prevArr.push(base.currentItem);base.prevItem=base.owl.prevItem=base.prevArr[base.prevArr.length-2];base.prevArr.shift(0);if(base.prevItem!==base.currentItem){base.checkPagination();base.checkNavigation();base.eachMoveUpdate();if(base.options.autoPlay!==!1){base.checkAp()}} 343if(typeof base.options.afterMove==="function"&&base.prevItem!==base.currentItem){base.options.afterMove.apply(this,[base.$elem])}},stop:function(){var base=this;base.apStatus="stop";window.clearInterval(base.autoPlayInterval)},checkAp:function(){var base=this;if(base.apStatus!=="stop"){base.play()}},play:function(){var base=this;base.apStatus="play";if(base.options.autoPlay===!1){return!1} 344window.clearInterval(base.autoPlayInterval);base.autoPlayInterval=window.setInterval(function(){base.next(!0)},base.options.autoPlay)},swapSpeed:function(action){var base=this;if(action==="slideSpeed"){base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed))}else if(action==="paginationSpeed"){base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed))}else if(typeof action!=="string"){base.$owlWrapper.css(base.addCssSpeed(action))}},addCssSpeed:function(speed){return{"-webkit-transition":"all "+speed+"ms ease","-moz-transition":"all "+speed+"ms ease","-o-transition":"all "+speed+"ms ease","transition":"all "+speed+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"","transition":""}},doTranslate:function(pixels){return{"-webkit-transform":"translate3d("+pixels+"px, 0px, 0px)","-moz-transform":"translate3d("+pixels+"px, 0px, 0px)","-o-transform":"translate3d("+pixels+"px, 0px, 0px)","-ms-transform":"translate3d("+pixels+"px, 0px, 0px)","transform":"translate3d("+pixels+"px, 0px,0px)"}},transition3d:function(value){var base=this;base.$owlWrapper.css(base.doTranslate(value))},css2move:function(value){var base=this;base.$owlWrapper.css({"left":value})},css2slide:function(value,speed){var base=this;base.isCssFinish=!1;base.$owlWrapper.stop(!0,!0).animate({"left":value},{duration:speed||base.options.slideSpeed,complete:function(){base.isCssFinish=!0}})},checkBrowser:function(){var base=this,translate3D="translate3d(0px, 0px, 0px)",tempElem=document.createElement("div"),regex,asSupport,support3d,isTouch;tempElem.style.cssText=" -moz-transform:"+translate3D+"; -ms-transform:"+translate3D+"; -o-transform:"+translate3D+"; -webkit-transform:"+translate3D+"; transform:"+translate3D;regex=/translate3d\(0px, 0px, 0px\)/g;asSupport=tempElem.style.cssText.match(regex);support3d=(asSupport!==null&&asSupport.length===1);isTouch="ontouchstart" in window||window.navigator.msMaxTouchPoints;base.browser={"support3d":support3d,"isTouch":isTouch}},moveEvents:function(){var base=this;if(base.options.mouseDrag!==!1||base.options.touchDrag!==!1){base.gestures();base.disabledEvents()}},eventTypes:function(){var base=this,types=["s","e","x"];base.ev_types={};if(base.options.mouseDrag===!0&&base.options.touchDrag===!0){types=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]}else if(base.options.mouseDrag===!1&&base.options.touchDrag===!0){types=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]}else if(base.options.mouseDrag===!0&&base.options.touchDrag===!1){types=["mousedown.owl","mousemove.owl","mouseup.owl"]} 345base.ev_types.start=types[0];base.ev_types.move=types[1];base.ev_types.end=types[2]},disabledEvents:function(){var base=this;base.$elem.on("dragstart.owl",function(event){event.preventDefault()});base.$elem.on("mousedown.disableTextSelect",function(e){return $(e.target).is('input, textarea, select, option')})},gestures:function(){var base=this,locals={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};base.isCssFinish=!0;function getTouches(event){if(event.touches!==undefined){return{x:event.touches[0].pageX,y:event.touches[0].pageY}} 346if(event.touches===undefined){if(event.pageX!==undefined){return{x:event.pageX,y:event.pageY}} 347if(event.pageX===undefined){return{x:event.clientX,y:event.clientY}}}} 348function swapEvents(type){if(type==="on"){$(document).on(base.ev_types.move,dragMove);$(document).on(base.ev_types.end,dragEnd)}else if(type==="off"){$(document).off(base.ev_types.move);$(document).off(base.ev_types.end)}} 349function dragStart(event){var ev=event.originalEvent||event||window.event,position;if(ev.which===3){return!1} 350if(base.itemsAmount<=base.options.items){return} 351if(base.isCssFinish===!1&&!base.options.dragBeforeAnimFinish){return!1} 352if(base.isCss3Finish===!1&&!base.options.dragBeforeAnimFinish){return!1} 353if(base.options.autoPlay!==!1){window.clearInterval(base.autoPlayInterval)} 354if(base.browser.isTouch!==!0&&!base.$owlWrapper.hasClass("grabbing")){base.$owlWrapper.addClass("grabbing")} 355base.newPosX=0;base.newRelativeX=0;$(this).css(base.removeTransition());position=$(this).position();locals.relativePos=position.left;locals.offsetX=getTouches(ev).x-position.left;locals.offsetY=getTouches(ev).y-position.top;swapEvents("on");locals.sliding=!1;locals.targetElement=ev.target||ev.srcElement} 356function dragMove(event){var ev=event.originalEvent||event||window.event,minSwipe,maxSwi
356pe;base.newPosX=getTouches(ev).x-locals.offsetX;base.newPosY=getTouches(ev).y-locals.offsetY;base.newRelativeX=base.newPosX-locals.relativePos;if(typeof base.options.startDragging==="function"&&locals.dragging!==!0&&base.newRelativeX!==0){locals.dragging=!0;base.options.startDragging.apply(base,[base.$elem])} 357if((base.newRelativeX>8||base.newRelativeX<-8)&&(base.browser.isTouch===!0)){if(ev.preventDefault!==undefined){ev.preventDefault()}else{ev.returnValue=!1} 358locals.sliding=!0} 359if((base.newPosY>10||base.newPosY<-10)&&locals.sliding===!1){$(document).off("touchmove.owl")} 360minSwipe=function(){return base.newRelativeX/5};maxSwipe=function(){return base.maximumPixels+base.newRelativeX/5};base.newPosX=Math.max(Math.min(base.newPosX,minSwipe()),maxSwipe());if(base.browser.support3d===!0){base.transition3d(base.newPosX)}else{base.css2move(base.newPosX)}} 361function dragEnd(event){var ev=event.originalEvent||event||window.event,newPosition,handlers,owlStopEvent;ev.target=ev.target||ev.srcElement;locals.dragging=!1;if(base.browser.isTouch!==!0){base.$owlWrapper.removeClass("grabbing")} 362if(base.newRelativeX<0){base.dragDirection=base.owl.dragDirection="left"}else{base.dragDirection=base.owl.dragDirection="right"} 363if(base.newRelativeX!==0){newPosition=base.getNewPosition();base.goTo(newPosition,!1,"drag");if(locals.targetElement===ev.target&&base.browser.isTouch!==!0){$(ev.target).on("click.disable",function(ev){ev.stopImmediatePropagation();ev.stopPropagation();ev.preventDefault();$(ev.target).off("click.disable")});handlers=$._data(ev.target,"events").click;owlStopEvent=handlers.pop();handlers.splice(0,0,owlStopEvent)}} 364swapEvents("off")} 365base.$elem.on(base.ev_types.start,".owl-wrapper",dragStart)},getNewPosition:function(){var base=this,newPosition=base.closestItem();if(newPosition>base.maximumItem){base.currentItem=base.maximumItem;newPosition=base.maximumItem}else if(base.newPosX>=0){newPosition=0;base.currentItem=0} 366return newPosition},closestItem:function(){var base=this,array=base.options.scrollPerPage===!0?base.pagesInArray:base.positionsInArray,goal=base.newPosX,closest=null;$.each(array,function(i,v){if(goal-(base.itemWidth/20)>array[i+1]&&goal-(base.itemWidth/20)<v&&base.moveDirection()==="left"){closest=v;if(base.options.scrollPerPage===!0){base.currentItem=$.inArray(closest,base.positionsInArray)}else{base.currentItem=i}}else if(goal+(base.itemWidth/20)<v&&goal+(base.itemWidth/20)>(array[i+1]||array[i]-base.itemWidth)&&base.moveDirection()==="right"){if(base.options.scrollPerPage===!0){closest=array[i+1]||array[array.length-1];base.currentItem=$.inArray(closest,base.positionsInArray)}else{closest=array[i+1];base.currentItem=i+1}}});return base.currentItem},moveDirection:function(){var base=this,direction;if(base.newRelativeX<0){direction="right";base.playDirection="next"}else{direction="left";base.playDirection="prev"} 367return direction},customEvents:function(){var base=this;base.$elem.on("owl.next",function(){base.next()});base.$elem.on("owl.prev",function(){base.prev()});base.$elem.on("owl.play",function(event,speed){base.options.autoPlay=speed;base.play();base.hoverStatus="play"});base.$elem.on("owl.stop",function(){base.stop();base.hoverStatus="stop"});base.$elem.on("owl.goTo",function(event,item){base.goTo(item)});base.$elem.on("owl.jumpTo",function(event,item){base.jumpTo(item)})},stopOnHover:function(){var base=this;if(base.options.stopOnHover===!0&&base.browser.isTouch!==!0&&base.options.autoPlay!==!1){base.$elem.on("mouseover",function(){base.stop()});base.$elem.on("mouseout",function(){if(base.hoverStatus!=="stop"){base.play()}})}},lazyLoad:function(){var base=this,i,$item,itemNumber,$lazyImg,follow;if(base.options.lazyLoad===!1){return!1} 368for(i=0;i<base.itemsAmount;i+=1){$item=$(base.$owlItems[i]);if($item.data("owl-loaded")==="loaded"){continue} 369itemNumber=$item.data("owl-item");$lazyImg=$item.find(".lazyOwl");if(typeof $lazyImg.data("src")!=="string"){$item.data("owl-loaded","loaded");continue} 370if($item.data("owl-loaded")===undefined){$lazyImg.hide();$item.addClass("loading").data("owl-loaded","checked")} 371if(base.options.lazyFollow===!0){follow=itemNumber>=base.currentItem}else{follow=!0} 372if(follow&&itemNumber<base.currentItem+base.options.items&&$lazyImg.length){base.lazyPreload($item,$lazyImg)}}},lazyPreload:function($item,$lazyImg){var base=this,iterations=0,isBackgroun
372dImg;if($lazyImg.prop("tagName")==="DIV"){$lazyImg.css("background-image","url("+$lazyImg.data("src")+")");isBackgroundImg=!0}else{$lazyImg[0].src=$lazyImg.data("src")} 373function showImage(){$item.data("owl-loaded","loaded").removeClass("loading");$lazyImg.removeAttr("data-src");if(base.options.lazyEffect==="fade"){$lazyImg.fadeIn(400)}else{$lazyImg.show()} 374if(typeof base.options.afterLazyLoad==="function"){base.options.afterLazyLoad.apply(this,[base.$elem])}} 375function checkLazyImage(){iterations+=1;if(base.completeImg($lazyImg.get(0))||isBackgroundImg===!0){showImage()}else if(iterations<=100){window.setTimeout(checkLazyImage,100)}else{showImage()}} 376checkLazyImage()},autoHeight:function(){var base=this,$currentimg=$(base.$owlItems[base.currentItem]).find("img"),iterations;function addHeight(){var $currentItem=$(base.$owlItems[base.currentItem]).height();base.wrapperOuter.css("height",$currentItem+"px");if(!base.wrapperOuter.hasClass("autoHeight")){window.setTimeout(function(){base.wrapperOuter.addClass("autoHeight")},0)}} 377function checkImage(){iterations+=1;if(base.completeImg($currentimg.get(0))){addHeight()}else if(iterations<=100){window.setTimeout(checkImage,100)}else{base.wrapperOuter.css("height","")}} 378if($currentimg.get(0)!==undefined){iterations=0;checkImage()}else{addHeight()}},completeImg:function(img){var naturalWidthType;if(!img.complete){return!1} 379naturalWidthType=typeof img.naturalWidth;if(naturalWidthType!=="undefined"&&img.naturalWidth===0){return!1} 380return!0},onVisibleItems:function(){var base=this,i;if(base.options.addClassActive===!0){base.$owlItems.removeClass("active")} 381base.visibleItems=[];for(i=base.currentItem;i<base.currentItem+base.options.items;i+=1){base.visibleItems.push(i);if(base.options.addClassActive===!0){$(base.$owlItems[i]).addClass("active")}} 382base.owl.visibleItems=base.visibleItems},transitionTypes:function(className){var base=this;base.outClass="owl-"+className+"-out";base.inClass="owl-"+className+"-in"},singleItemTransition:function(){var base=this,outClass=base.outClass,inClass=base.inClass,$currentItem=base.$owlItems.eq(base.currentItem),$prevItem=base.$owlItems.eq(base.prevItem),prevPos=Math.abs(base.positionsInArray[base.currentItem])+base.positionsInArray[base.prevItem],origin=Math.abs(base.positionsInArray[base.currentItem])+base.itemWidth/2,animEnd='webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend';base.isTransition=!0;base.$owlWrapper.addClass('owl-origin').css({"-webkit-transform-origin":origin+"px","-moz-perspective-origin":origin+"px","perspective-origin":origin+"px"});function transStyles(prevPos){return{"position":"relative","left":prevPos+"px"}} 383$prevItem.css(transStyles(prevPos,10)).addClass(outClass).on(animEnd,function(){base.endPrev=!0;$prevItem.off(animEnd);base.clearTransStyle($prevItem,outClass)});$currentItem.addClass(inClass).on(animEnd,function(){base.endCurrent=!0;$currentItem.off(animEnd);base.clearTransStyle($currentItem,inClass)})},clearTransStyle:function(item,classToRemove){var base=this;item.css({"position":"","left":""}).removeClass(classToRemove);if(base.endPrev&&base.endCurrent){base.$owlWrapper.removeClass('owl-origin');base.endPrev=!1;base.endCurrent=!1;base.isTransition=!1}},owlStatus:function(){var base=this;base.owl={"userOptions":base.userOptions,"baseElement":base.$elem,"userItems":base.$userItems,"owlItems":base.$owlItems,"currentItem":base.currentItem,"prevItem":base.prevItem,"visibleItems":base.visibleItems,"isTouch":base.browser.isTouch,"browser":base.browser,"dragDirection":base.dragDirection}},clearEvents:function(){var base=this;base.$elem.off(".owl owl mousedown.disableTextSelect");$(document).off(".owl owl");$(window).off("resize",base.resizer)},unWrap:function(){var base=this;if(base.$elem.children().length!==0){base.$owlWrapper.unwrap();base.$userItems.unwrap().unwrap();if(base.owlControls){base.owlControls.remove()}} 384base.clearEvents();base.$elem.attr("style",base.$elem.data("owl-originalStyles")||"").attr("class",base.$elem.data("owl-originalClasses"))},destroy:function(){var base=this;base.stop();window.clearInterval(base.checkVisible);base.unWrap();base.$elem.removeData()},reinit:function(newOptions){var base=this,options=$.extend({},base.userOptions,newOptions);base.unWrap();base.init(options,base.$elem)},addItem:function(htmlString,targetPosition){var base=this,position;if(!htmlString){return!1} 385if(base.$elem.children().length===0){base.$elem.append(htmlString);base.setVars();return!1} 386base.unWrap();if(targetPosition===undefined||targetPosition===-1){position=-1}else{position=targetPosition} 387if(position>=base.$userItems.length||position===-1){base.$userItems.eq(-1).after(htmlString)}else{base.$userItems.eq(position).before(htmlString)} 388base.setVars()},removeItem:function(targetPosition){var base=this,position;if(base.$elem.children().length===0){return!1} 389if(targetPosition===undefined||targetPosition===-1){position=-1}else{position=targetPosition} 390base.unWrap();base.$userItems.eq(position).remove();base.setVars()}};$.fn.owlCarousel=function(options){return this.each(function(){if($(this).data("owl-init")===!0){return!1} 391$(this).data("owl-init",!0);
391var carousel=Object.create(Carousel);carousel.init(options,this);$.data(this,"owlCarousel",carousel)})};$.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1000,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document));/* 392 * 393 * NOTICE OF LICENSE 394 * 395 * This source file is subject to the Open Software License (OSL 3.0) 396 * that is bundled with this package in the file LICENSE.txt. 397 * It is also available through the world-wide-web at this URL: 398 * http://opensource.org/licenses/osl-3.0.php 399 * If you did not receive a copy of the license and are unable to 400 * obtain it through the world-wide-web, please send an email 401 * to [email protected] so we can send you a copy immediately. 402 * 403 * DISCLAIMER 404 * 405 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 406 * versions in the future. If you wish to customize PrestaShop for your 407 * needs please refer to http://www.prestashop.com for more information. 408 * 409 * @author PrestaShop SA <[email protected]> 410 * @copyright 2007-2024 PrestaShop SA 411 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 412 * International Registered Trademark & Property of PrestaShop SA 413 */ 414(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=!0}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=!0}else{if(ua.indexOf("linux")>-1){S.isLinux=!0}}} 415S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=!1,initialized=!1,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:!0,animateFade:!0,autoplayMovies:!0,continuous:!1,enableKeys:!0,flashParams:{bgcolor:"#000000",allowfullscreen:!0},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:!0,skipSetup:!1,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return} 416initialized=!0;if(S.skin.options){apply(S.options,S.skin.options)} 417if(options){apply(S.options,options)} 418if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}} 419if(callback){S.onReady=callback} 420bindLoad()};
420S.open=function(obj){if(open){return} 421var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return} 422S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===!1){return} 423open=!0;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return} 424open=!1;if(S.player){S.player.remove();S.player=null} 425if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null} 426slideDelay=0;listenKeys(!1);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return} 427if(!slideDelay){slideDelay=S.options.slideshowDelay*1000} 428if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return} 429slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}} 430S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0} 431S.options.onChange(S.getCurrent());load(!0)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight} 432var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth} 433var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}} 434S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]} 435if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)} 436if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length} 437gallery.push(o)}} 438if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}} 439each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}} 440if(!obj.player){obj.player=S.getPlayer(obj.content)} 441var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])} 442each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})} 443return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=!1;needed=null;switch(obj.player){case "flv":case "swf":if(!plugins.fla){needed="fla"} 444break;case "qt":if(!plugins.qt){needed="qt"} 445break;
445case "wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}} 446break;case "qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}} 447break} 448if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case "qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case "qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]} 449obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=!0}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=!0}}else{remove=!0}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}} 450if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}} 451function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)} 452function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return} 453var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break} 454if(handler){preventDefault(e);handler()}} 455function load(changing){listenKeys(!1);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw "unknown player "+player} 456if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})} 457S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content} 458var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}} 459S.skin.onLoad(changing,waitReady)} 460function waitReady(){if(!open){return} 461if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}} 462function show(){if(!open){return} 463S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)} 464function finish(){if(!open){return} 465if(S.player.onLoad){S.player.onLoad()} 466S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()} 467listenKeys(!0)} 468if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len} 469for(;from<len;++from){if(from in this&&this[from]===obj){return from}} 470return-1}} 471function now(){return(new Date).getTime()} 472function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original} 473function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==!1;value=obj[++i]){}} 474function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})} 475function noop(){} 476function get(id){return document.getElementById(id)} 477function remove(el){el.parentNode.removeChild(el)} 478var supportsOpacity=!0,supportsFixed=!0;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)} 479S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alph
479a(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target} 480function getPageXY(e){return[e.pageX,e.pageY]} 481function preventDefault(e){e.preventDefault()} 482function keyCode(e){return e.keyCode} 483function addEvent(el,type,handler){jQuery(el).bind(type,handler)} 484function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)} 485jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=!1,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,!1);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}} 486function doScrollCheck(){if(loaded){return} 487try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return} 488S.load()} 489function bindLoad(){if(document.readyState==="complete"){return S.load()} 490if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,!1);window.addEventListener("load",S.load,!1)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=!1;try{topLevel=window.frameElement===null}catch(e){} 491if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}} 492S.load=function(){if(loaded){return} 493if(!document.body){return setTimeout(S.load,13)} 494loaded=!0;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()} 495S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return!!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:!1}} 496var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}} 497return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)} 498S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)} 499S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}} 500S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=!1,baseHasDuplicate=!0;[0,0].sort(function(){baseHasDuplicate=!1;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]} 501if(!selector||typeof selector!=="string"){return results} 502var parts=[],m,set,checkSet,extra,prune=!0,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}} 503if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()} 504set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]} 505if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=!1} 506while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()} 507if(pop==null){pop=context} 508Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}} 509if(!checkSet){checkSet=set} 510if(!checkSet){throw "Syntax error, unrecognized expression: "+(cur||selector)} 511if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===!0||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)} 512if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)} 513return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);
513if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}} 514return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]} 515for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}} 516if(!set){set=context.getElementsByTagName("*")} 517return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=!1;if(curLoop===result){result=[]} 518if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=!0}else{if(match===!0){continue}}} 519if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=!0}else{curLoop[i]=!1}}else{if(pass){result.push(item);anyFound=!0}}}}} 520if(found!==undefined){if(!inplace){curLoop=result} 521expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]} 522break}}} 523if(expr===old){if(anyFound==null){throw "Syntax error, unrecognized expression: "+expr}else{break}} 524old=expr} 525return curLoop};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()} 526for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){} 527checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||!1:elem===part}} 528if(isPartStrNotTag){Sizzle.filter(part,checkSet,!0)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:!1}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,!0)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck} 529checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck} 530checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}} 531return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match} 532for(var i=0,elem;(elem=curLoop[i])!=null;
532i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=!1}}}} 533return!1},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0} 534match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,!0^not);if(!inplace){result.push.apply(result,ret)}return!1}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return!0}}return match},POS:function(match){match.unshift(!0);return match}},filters:{enabled:function(elem){return elem.disabled===!1&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===!0},checked:function(elem){return elem.checked===!0},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===!0},parent:function(elem){return!!elem.firstChild},empty:function(elem){return!elem.firstChild},has:function(elem,i,match){return!!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return!1}}return!0}else{throw "Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case "only":case "first":while((node=node.previousSibling)){if(node.nodeType===1){return!1}} 535if(type==="first"){return!0} 536node=elem;case "last":while((node=node.nextSibling)){if(node.nodeType===1){return!1}} 537return!0;case "nth":var first=match[2],last=match[3];if(first===1&&last===0){return!0} 538var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}} 539parent.sizcache=doneName} 540var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==!1:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":!1},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)} 541var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}} 542var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=!0}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=!0}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){
542if(a==b){hasDuplicate=!0}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=!0}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=!0}return a.ownerDocument?-1:1} 543var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=!0} 544return ret}}}} 545function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}} 546return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}} 547root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}} 548results=tmp} 549return results}} 550div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}} 551div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return} 552Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]} 553div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return} 554div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return} 555Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=!1;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break} 556if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i} 557if(elem.nodeName.toLowerCase()===cur){match=elem;break} 558elem=elem[dir]} 559checkSet[i]=match}}} 560function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=!1;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break} 561if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i} 562if(typeof cur!=="string"){if(elem===cur){match=!0;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}} 563elem=elem[dir]} 564checkSet[i]=match}}} 565var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):!0)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":!1};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")} 566selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)} 567return Sizzle.filter(later,tmpSet)};return Sizzle})();S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=!1,isExpressInstallActive=!1;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=!1;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=!0}} 568if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}} 569if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}} 570var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,ie=!1,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return} 571addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}} 572if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)} 573if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)} 574addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}} 575function callDomLoadFunctions(){if(isDomLoaded){return} 576if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}} 577isDomLoaded=!0;if(timer){clearInterval(timer);timer=null} 578var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}} 579function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}} 580function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,!1)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,!1)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}} 581function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)} 582setVisibility(id,!0)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,!0)}}} 583function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];
583if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}} 584var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}} 585obj.parentNode.replaceChild(e,obj)}} 586function showExpressInstall(regObj){isExpressInstallActive=!0;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)} 587if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"} 588if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"} 589doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)} 590createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}} 591function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}} 592function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(!0))}}}}}return ac}
593function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id} 594if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}} 595var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}} 596el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}} 597for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}} 598el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}} 599for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}} 600el.parentNode.replaceChild(o,el);r=o}}} 601return r} 602function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)} 603function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}} 604function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}} 605obj.parentNode.removeChild(obj)}} 606function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el} 607function createElement(el){return doc.createElement(el)} 608function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]} 609function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?!0:!1} 610function createCSS(sel,decl){if(ua.ie&&ua.mac){return} 611var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))} 612h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}} 613function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}} 614function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s} 615var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])} 616var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])} 617for(var k in ua){ua[k]=null} 618ua=null;for(var l in swfobject){swfobject[l]=null} 619swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return} 620var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:!1;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,!1)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parOb
620j,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return} 621widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,!1);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}} 622att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}} 623if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}} 624addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,!0)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=!0;setVisibility(replaceElemIdStr,!1);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parOb
624j,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,!0);if(ua.ie&&ua.win){storedAltContent.style.display="block"}} 625storedAltContent=null;storedAltContentId=null;isExpressInstallActive=!1}}}}}();return swfobject})();S.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}} 626function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})} 627function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)} 628function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null} 629dragTarget=null} 630function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}} 631function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})} 632function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}} 633S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=!1;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=!0;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width} 634img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)} 635disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case "resize":var el=get(this.id
635);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case "drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"} 636if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"} 637updateProxy()} 638break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}} 639html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight} 640this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var qtControllerHeight=16;S.qt=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=qtControllerHeight} 641this.width=obj.width?parseInt(obj.width,10):300};S.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];S.qt.prototype={append:function(body,dims){var opt=S.options,autoplay=String(opt.autoplayMovies),controls=String(opt.showMovieControls);var html="<object",movie={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(S.isIE){movie.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";
641movie.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{movie.type="video/quicktime";movie.data=this.obj.content} 642for(var m in movie){html+=" "+m+'="'+movie[m]+'"'} 643html+=">";var params={src:this.obj.content,scale:"aspect",controller:controls,autoplay:autoplay};for(var p in params){html+='<param name="'+p+'" value="'+params[p]+'">'} 644html+="</object>";body.innerHTML=html},remove:function(){try{document[this.id].Stop()}catch(e){}var el=get(this.id);if(el){remove(el)}}};var wmpControllerHeight=(S.isIE?70:45);S.wmp=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=wmpControllerHeight} 645this.width=obj.width?parseInt(obj.width,10):300};S.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];S.wmp.prototype={append:function(body,dims){var opt=S.options,autoplay=opt.autoplayMovies?1:0;var movie='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',params={autostart:opt.autoplayMovies?1:0};if(S.isIE){movie+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';params.url=this.obj.content;params.uimode=opt.showMovieControls?"full":"none"}else{movie+=' type="video/x-ms-wmv"';movie+=' data="'+this.obj.content+'"';params.showcontrols=opt.showMovieControls?1:0} 646movie+=">";for(var p in params){movie+='<param name="'+p+'" value="'+params[p]+'">'} 647movie+="</object>";body.innerHTML=movie},remove:function(){if(S.isIE){try{window[this.id].controls.stop();window[this.id].URL="movie"+now()+".wmv";window[this.id]=function(){}}catch(e){}} 648var el=get(this.id);if(el){setTimeout(function(){remove(el)},10)}}};var overlayOn=!1,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=!0;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return} 649var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return} 650duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)} 651function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"} 652function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"} 653function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}} 654function toggleNav(id,on){var el=get("sb-nav-"+id);if(el){el.style.display=on?"":"none"}} 655function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}} 656function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=!0;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=!0}else{next=(len-1)>S.current;previous=S.current>0}} 657if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=!1} 658toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len} 659end=S.current+(limit-h);if(end>len){end-=len}} 660while(i!=end){if(i==len){i=0} 661counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="sb-counter-current"'} 662counter+=">
662"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}} 663get("sb-counter").innerHTML=counter;callback()} 664function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)} 665animate(infoInner,"marginTop",0,duration,callback)} 666function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})} 667function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)} 668function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)} 669function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)} 670var K={};K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:!0,displayNav:!0,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:!1,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:!0,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed){container.style.position="absolute"} 671if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})} 672var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null} 673if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=!1;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)} 674overlayOn=!0} 675if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)} 676toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};
676K.onLoad=function(changing,callback){toggleLoading(!0);while(K.body.firstChild){remove(K.body.firstChild)} 677hideBars(changing,function(){if(!open){return} 678if(!changing){wrapper.style.visibility="visible"} 679buildBars(callback)})};K.onReady=function(callback){if(!open){return} 680var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case "hw":adjustHeight(dims.innerHeight,dims.top,!0,function(){adjustWidth(dims.width,dims.left,!0,wrapped)});break;case "wh":adjustWidth(dims.width,dims.left,!0,function(){adjustHeight(dims.innerHeight,dims.top,!0,wrapped)});break;default:adjustWidth(dims.width,dims.left,!0);adjustHeight(dims.innerHeight,dims.top,!0,wrapped)}};K.onShow=function(callback){toggleLoading(!1,callback);doWindowResize=!0};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)} 681removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(!0)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",!1);toggleNav("pause",!0)};K.onPause=function(){toggleNav("pause",!1);toggleNav("play",!0)};K.onWindowResize=function(){if(!doWindowResize){return} 682setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);/* 683 * 684 * NOTICE OF LICENSE 685 * 686 * This source file is subject to the Open Software License (OSL 3.0) 687 * that is bundled with this package in the file LICENSE.txt. 688 * It is also available through the world-wide-web at this URL: 689 * http://opensource.org/licenses/osl-3.0.php 690 * If you did not receive a copy of the license and are unable to 691 * obtain it through the world-wide-web, please send an email 692 * to [email protected] so we can send you a copy immediately. 693 * 694 * DISCLAIMER 695 * 696 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 697 * versions in the future. If you wish to customize PrestaShop for your 698 * needs please refer to http://www.prestashop.com for more information. 699 * 700 * @author PrestaShop SA <[email protected]> 701 * @copyright 2007-2024 PrestaShop SA 702 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 703 * International Registered Trademark & Property of PrestaShop SA 704 */ 705var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=!1,A=!1;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=!1;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=!0}} 706if(!AB){try{y=new ActiveXObject(p)}catch(t){}}} 707if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}} 708var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,q=!1,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return} 709f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}} 710if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)} 711if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)} 712R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}
713function E(){if(e){return} 714if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}} 715e=!0;if(Z){clearInterval(Z);Z=null} 716var q=o.length;for(var r=0;r<q;r++){o[r]()}} 717function f(q){if(e){q()}else{o[o.length]=q}} 718function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,!1)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,!1)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}} 719function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)} 720W(u,!0)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,!0)}}} 721function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}} 722var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}} 723t.parentNode.replaceChild(w,t)}} 724function k(w){A=!0;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)} 725if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"} 726if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"} 727K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)} 728U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}} 729function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}} 730function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(!0))}}}}}return u} 731function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t} 732if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}} 733var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}} 734v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}} 735for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}} 736v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}} 737for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}} 738v.parentNode.replaceChild(u,v);q=u}}} 739return q} 740function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)} 741function X(r){var q=C(r);
741if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}} 742function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}} 743r.parentNode.removeChild(r)}} 744function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q} 745function a(q){return K.createElement(q)} 746function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]} 747function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?!0:!1} 748function V(v,r){if(h.ie&&h.mac){return} 749var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))} 750u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}} 751function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}} 752function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s} 753var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])} 754var t=i.length;for(var u=0;u<t;u++){X(i[u])} 755for(var r in h){h[r]=null} 756h=null;for(var q in swfobject){swfobject[q]=null} 757swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return} 758var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:!1;N[N.length]=r;W(u,!1)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return} 759AB+="";AD+="";if(c(q)){W(AE,!1);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}} 760AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}} 761if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}} 762f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,!0)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=!0;W(AE,!1);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,!0);if(h.ie&&h.win){M.style.display="block"}} 763M=null;l=null;A=!1}}}}}();(function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){factory(require('jquery'))}else{if(root.jQuery){factory(root.jQuery)}else{factory(root.Zepto)}}}(this,function($,undefined){$.fn.jPlayer=function(options){var name="jPlayer";var isMethodCall=typeof options==="string",args=Array.prototype.slice.call(arguments,1),returnValue=this;options=!isMethodCall&&args.length?$.extend.apply(null,[!0,options].concat(args)):options;if(isMethodCall&&options.charAt(0)==="_"){return returnValue} 764if(isMethodCall){this.each(function(){var instance=$(this).data(name),methodValue=instance&&$.isFunction(instance[options])?instance[options].apply(instance,args):instance;if(methodValue!==instance&&methodValue!==undefined){returnValue=methodValue;return!1}})}else{this.each(function(){var instance=$(this).data(name);if(instance){instance.option(options||{})}else{$(this).data(name,new $.jPlayer(options,this))}})} 765return returnValue};$.jPlayer=function(options,element){if(arguments.length){this.element=$(element);this.options=$.extend(!0,{},this.options,options);var self=this;this.element.bind("remove.jPlayer",function(){self.destroy()});this._init()}};if(typeof $.fn.stop!=='function'){$.fn.stop=function(){}} 766$.jPlayer.emulateMethods="load play pause";$.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";$.jPlayer.emulateOptions="muted volume";$.jPlayer.reservedEvent="ready flashreset resize repeat error warning";$.jPlayer.event={};$.each(['ready','setmedia','flashreset','resize','repeat','click','error','warning','loadstart','progress','suspend','abort','emptied','stalled','play','pause','loadedmetadata','loadeddata','waiting','playing','canplay','canplaythrough','seeking','seeked','t
766imeupdate','ended','ratechange','durationchange','volumechange'],function(){$.jPlayer.event[this]='jPlayer_'+this});$.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"];$.jPlayer.pause=function(){$.jPlayer.prototype.destroyRemoved();$.each($.jPlayer.prototype.instances,function(i,element){if(element.data("jPlayer").status.srcSet){element.jPlayer("pause")}})};$.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var ConvertTime=function(){this.init()};ConvertTime.prototype={init:function(){this.options={timeFormat:$.jPlayer.timeFormat}},time:function(s){s=(s&&typeof s==='number')?s:0;var myTime=new Date(s*1000),hour=myTime.getUTCHours(),min=this.options.timeFormat.showHour?myTime.getUTCMinutes():myTime.getUTCMinutes()+hour*60,sec=this.options.timeFormat.showMin?myTime.getUTCSeconds():myTime.getUTCSeconds()+min*60,strHour=(this.options.timeFormat.padHour&&hour<10)?"0"+hour:hour,strMin=(this.options.timeFormat.padMin&&min<10)?"0"+min:min,strSec=(this.options.timeFormat.padSec&&sec<10)?"0"+sec:sec,strTime="";strTime+=this.options.timeFormat.showHour?strHour+this.options.timeFormat.sepHour:"";strTime+=this.options.timeFormat.showMin?strMin+this.options.timeFormat.sepMin:"";strTime+=this.options.timeFormat.showSec?strSec+this.options.timeFormat.sepSec:"";return strTime}};var myConvertTime=new ConvertTime();$.jPlayer.convertTime=function(s){return myConvertTime.time(s)};$.jPlayer.uaBrowser=function(userAgent){var ua=userAgent.toLowerCase();var rwebkit=/(webkit)[ \/]([\w.]+)/;var ropera=/(opera)(?:.*version)?[ \/]([\w.]+)/;var rmsie=/(msie) ([\w.]+)/;var rmozilla=/(mozilla)(?:.*? rv:([\w.]+))?/;var match=rwebkit.exec(ua)||ropera.exec(ua)||rmsie.exec(ua)||ua.indexOf("compatible")<0&&rmozilla.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};$.jPlayer.uaPlatform=function(userAgent){var ua=userAgent.toLowerCase();var rplatform=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;var rtablet=/(ipad|playbook)/;var randroid=/(android)/;var rmobile=/(mobile)/;var platform=rplatform.exec(ua)||[];var tablet=rtablet.exec(ua)||!rmobile.exec(ua)&&randroid.exec(ua)||[];if(platform[1]){platform[1]=platform[1].replace(/\s/g,"_")} 767return{platform:platform[1]||"",tablet:tablet[1]||""}};$.jPlayer.browser={};$.jPlayer.platform={};var browserMatch=$.jPlayer.uaBrowser(navigator.userAgent);if(browserMatch.browser){$.jPlayer.browser[browserMatch.browser]=!0;$.jPlayer.browser.version=browserMatch.version} 768var platformMatch=$.jPlayer.uaPlatform(navigator.userAgent);if(platformMatch.platform){$.jPlayer.platform[platformMatch.platform]=!0;$.jPlayer.platform.mobile=!platformMatch.tablet;$.jPlayer.platform.tablet=!!platformMatch.tablet} 769$.jPlayer.getDocMode=function(){var docMode;if($.jPlayer.browser.msie){if(document.documentMode){docMode=document.documentMode}else{docMode=5;if(document.compatMode){if(document.compatMode==="CSS1Compat"){docMode=7}}}} 770return docMode};$.jPlayer.browser.documentMode=$.jPlayer.getDocMode();$.jPlayer.nativeFeatures={init:function(){var d=document,v=d.createElement('video'),spec={w3c:['fullscreenEnabled','fullscreenElement','requestFullscreen','exitFullscreen','fullscreenchange','fullscreenerror'],moz:['mozFullScreenEnabled','mozFullScreenElement','mozRequestFullScreen','mozCancelFullScreen','mozfullscreenchange','mozfullscreenerror'],webkit:['','webkitCurrentFullScreenElement','webkitRequestFullScreen','webkitCancelFullScreen','webkitfullscreenchange',''],webkitVideo:['webkitSupportsFullscreen','webkitDisplayingFullscreen','webkitEnterFullscreen','webkitExitFullscreen','',''],ms:['','msFullscreenElement','msRequestFullscreen','msExitFullscreen','MSFullscreenChange','MSFullscreenError']},specOrder=['w3c','moz','webkit','webkitVideo','ms'],fs,i,il;this.fullscreen=fs={support:{w3c:!!d[spec.w3c[0]],moz:!!d[spec.moz[0]],webkit:typeof d[spec.webkit[3]]==='function',webkitVideo:typeof v[spec.webkitVideo[2]]==='function',ms:typeof v[spec.ms[2]]==='function'},used:{}};for(i=0,il=specOrder.length;i<il;i++){var n=specOrder[i];
770if(fs.support[n]){fs.spec=n;fs.used[n]=!0;break}} 771if(fs.spec){var s=spec[fs.spec];fs.api={fullscreenEnabled:!0,fullscreenElement:function(elem){elem=elem?elem:d;return elem[s[1]]},requestFullscreen:function(elem){return elem[s[2]]()},exitFullscreen:function(elem){elem=elem?elem:d;return elem[s[3]]()}};fs.event={fullscreenchange:s[4],fullscreenerror:s[5]}}else{fs.api={fullscreenEnabled:!1,fullscreenElement:function(){return null},requestFullscreen:function(){},exitFullscreen:function(){}};fs.event={}}}};$.jPlayer.nativeFeatures.init();$.jPlayer.focus=null;$.jPlayer.keyIgnoreElementNames="A INPUT TEXTAREA SELECT BUTTON";var keyBindings=function(event){var f=$.jPlayer.focus,ignoreKey;if(f){$.each($.jPlayer.keyIgnoreElementNames.split(/\s+/g),function(i,name){if(event.target.nodeName.toUpperCase()===name.toUpperCase()){ignoreKey=!0;return!1}});if(!ignoreKey){$.each(f.options.keyBindings,function(action,binding){if((binding&&$.isFunction(binding.fn))&&((typeof binding.key==='number'&&event.which===binding.key)||(typeof binding.key==='string'&&event.key===binding.key))){event.preventDefault();binding.fn(f);return!1}})}}};$.jPlayer.keys=function(en){var event="keydown.jPlayer";$(document.documentElement).unbind(event);if(en){$(document.documentElement).bind(event,keyBindings)}};$.jPlayer.keys(!0);$.jPlayer.prototype={count:0,version:{script:"2.9.2",needFlash:"2.9.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",auroraFormats:"wav",preload:'metadata',volume:0.8,muted:!1,remainingDuration:!1,toggleDuration:!1,captureDuration:!0,playbackRate:1,defaultPlaybackRate:1,minPlaybackRate:0.5,maxPlaybackRate:4,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",playbackRateBar:".jp-playback-rate-bar",playbackRateBarValue:".jp-playback-rate-bar-value",currentTime:".jp-current-time",duration:".jp-duration",title:".jp-title",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},stateClass:{playing:"jp-state-playing",seeking:"jp-state-seeking",muted:"jp-state-muted",looped:"jp-state-looped",fullScreen:"jp-state-full-screen",noVolume:"jp-state-no-volume"},useStateClassSkin:!1,autoBlur:!0,smoothPlayBar:!1,fullScreen:!1,fullWindow:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1000},loop:!1,repeat:function(event){if(event.jPlayer.options.loop){$(this).unbind(".jPlayerRepeat").bind($.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){$(this).jPlayer("play")})}else{$(this).unbind(".jPlayerRepeat")}},nativeVideoControls:{},noFullWindow:{msie:/msie [0-6]\./,ipad:/ipad.*?os [0-4]\./,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3]\.(?!.*?mobile)/,android_phone:/(?=.*android)(?!.*chrome)(?=.*mobile)/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,iemobile:/iemobile/,webos:/webos/,playbook:/playbook/},timeFormat:{},keyEnabled:!1,audioFullScreen:!1,keyBindings:{play:{key:80,fn:function(f){if(f.status.paused){f.play()}else{f.pause()}}},fullScreen:{key:70,fn:function(f){if(f.status.video||f.options.audioFullScreen){f._setOption("fullScreen",!f.options.fullScreen)}}},muted:{key:77,fn:function(f){f._muted(!f.options.muted)}},volumeUp:{key:190,fn:function(f){f.volume(f.options.volume+0.1)}},volumeDown:{key:188,fn:function(f){f.volume(f.options.volume-0.1)}},loop:{key:76,fn:function(f){f._loop(!f.options.loop)}}},verticalVolume:!1,verticalPlaybackRate:!1,globalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,consoleAlerts:!0,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,remaining:0,videoWidth:0,videoHeight:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,aurora:!0,flash:!0},format:{mp3:{codec:'audio/mpeg',flashCanPlay:!0,media:'audio'},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:'audio'},m3u8a:{codec:'application/vnd.apple.mpegurl; codecs="mp4a.40.2"',flashCanPlay:!1,media:'audio'},m3ua:{codec:'audio/mpegurl',flashCanPlay:!1,media:'audio'},oga:{codec:'audio/ogg; codecs="vorbis, opus"',flashCanPlay:!1,media:'audio'},flac:{codec:'audio/x-flac',flashCanPlay:!1,media:'audio'},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:'audio'},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:'audio'},fla:{codec:'audio/x-flv',flashCanPlay:!0,media:'audio'},rtmpa:{codec:'audio/rtmp; codecs="rtmp"',flashCanPlay:!0,media:'audio'},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:'video'},m3u8v:{codec:'application/vnd.apple.mpegurl; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!1,media:'video'},m3uv:{codec:'audio/mpegurl',flashCanPlay:!1,media:'video'},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1,media:'video'},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:'video'},flv:{codec:'video/x-flv',flashCanPlay:!0,media:'video'},rtmpv:{codec:'video/rtmp; codecs="rtmp"',flashCanPlay:!0,media:'video'}},_init:function(){var self=this;this.element.empty();this.status=$.extend({},this.status);this.internal=$.extend({},this.internal);this.options.timeFormat=$.extend({},$.jPlayer.timeFormat,this.options.timeFormat);this.internal.cmdsIgnored=$.jPlayer.platform.ipad||$.jPlayer.platform.iphone||$.jPlayer.platform.ipod;this.internal.domNode=this.element.get(0);if(this.options.keyEnabled&&!$.jPlayer.focus){$.jPlayer.focus=this} 772this.androidFix={setMedia:!1,play:!1,pause:!1,time:NaN};if($.jPlayer.platform.android){this.options.preload=this.options.preload!=='auto'?'metadata':'auto'} 773this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.aurora={};this.aurora.formats=[];this.aurora.properties=[];this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);$.each(this.options.supplied.toLowerCase().split(","),function(index1,value1){var format=value1.replace(/^\s+|\s+$/g,"");if(self.format[format]){var dupFound=!1;$.each(self.formats,function(index2,value2){if(format===value2){dupFound=!0;return!1}});
773if(!dupFound){self.formats.push(format)}}});$.each(this.options.solution.toLowerCase().split(","),function(index1,value1){var solution=value1.replace(/^\s+|\s+$/g,"");if(self.solution[solution]){var dupFound=!1;$.each(self.solutions,function(index2,value2){if(solution===value2){dupFound=!0;return!1}});if(!dupFound){self.solutions.push(solution)}}});$.each(this.options.auroraFormats.toLowerCase().split(","),function(index1,value1){var format=value1.replace(/^\s+|\s+$/g,"");if(self.format[format]){var dupFound=!1;$.each(self.aurora.formats,function(index2,value2){if(format===value2){dupFound=!0;return!1}});if(!dupFound){self.aurora.formats.push(format)}}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;if(!this.element.attr("id")){this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count)} 774this.internal.self=$.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=$.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:undefined});this.internal.video=$.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:undefined});this.internal.flash=$.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:undefined,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"jquery.jplayer.swf":"")});this.internal.poster=$.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:undefined});$.each($.jPlayer.event,function(eventName,eventType){if(self.options[eventName]!==undefined){self.element.bind(eventType+".jPlayer",self.options[eventName]);
774self.options[eventName]=undefined}});this.require.audio=!1;this.require.video=!1;$.each(this.formats,function(priority,format){self.require[self.format[format].media]=!0});if(this.require.video){this.options=$.extend(!0,{},this.optionsVideo,this.options)}else{this.options=$.extend(!0,{},this.optionsAudio,this.options)} 775this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this.status.noVolume=this._uaBlocklist(this.options.noVolume);if($.jPlayer.nativeFeatures.fullscreen.api.fullscreenEnabled){this._fullscreenAddEventListeners()} 776this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement('img');this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){if(!self.status.video||self.status.waitForPlay){self.internal.poster.jq.show()}};this.element.append(this.htmlElement.poster);this.internal.poster.jq=$("#"+this.internal.poster.id);this.internal.poster.jq.css({'width':this.status.width,'height':this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){self._trigger($.jPlayer.event.click)});this.html.audio.available=!1;if(this.require.audio){this.htmlElement.audio=document.createElement('audio');this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio)} 777this.html.video.available=!1;if(this.require.video){this.htmlElement.video=document.createElement('video');this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video)} 778this.flash.available=this._checkForFlash(10.1);this.html.canPlay={};this.aurora.canPlay={};this.flash.canPlay={};$.each(this.formats,function(priority,format){self.html.canPlay[format]=self.html[self.format[format].media].available&&""!==self.htmlElement[self.format[format].media].canPlayType(self.format[format].codec);self.aurora.canPlay[format]=($.inArray(format,self.aurora.formats)>-1);self.flash.canPlay[format]=self.format[format].flashCanPlay&&self.flash.available});this.html.desired=!1;this.aurora.desired=!1;this.flash.desired=!1;$.each(this.solutions,function(solutionPriority,solution){if(solutionPriority===0){self[solution].desired=!0}else{var audioCanPlay=!1;var videoCanPlay=!1;$.each(self.formats,function(formatPriority,format){if(self[self.solutions[0]].canPlay[format]){if(self.format[format].media==='video'){videoCanPlay=!0}else{audioCanPlay=!0}}});self[solution].desired=(self.require.audio&&!audioCanPlay)||(self.require.video&&!videoCanPlay)}});this.html.support={};this.aurora.support={};this.flash.support={};$.each(this.formats,function(priority,format){self.html.support[format]=self.html.canPlay[format]&&self.html.desired;self.aurora.support[format]=self.aurora.canPlay[format]&&self.aurora.desired;self.flash.support[format]=self.flash.canPlay[format]&&self.flash.desired});this.html.used=!1;this.aurora.used=!1;this.flash.used=!1;$.each(this.solutions,function(solutionPriority,solution){$.each(self.formats,function(formatPriority,format){if(self[solution].support[format]){self[solution].used=!0;return!1}})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);if(!(this.html.used||this.aurora.used||this.flash.used)){this._error({type:$.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SOLUTION,hint:$.jPlayer.errorHint.NO_SOLUTION});if(this.css.jq.noSolution.length){this.css.jq.noSolution.show()}}else{if(this.css.jq.noSolution.length){this.css.jq.noSolution.hide()}} 779if(this.flash.used){var htmlObj,flashVars='jQuery='+encodeURI(this.options.noConflict)+'&id='+encodeURI(this.internal.self.id)+'&vol='+this.options.volume+'&muted='+this.options.muted;if($.jPlayer.browser.msie&&(Number($.jPlayer.browser.version)<9||$.jPlayer.browser.documentMode<9)){var objStr='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0" tabindex="-1"></object>';var paramStr=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+flashVars+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];htmlObj=document.createElement(objStr);for(var i=0;i<paramStr.length;i++){htmlObj.appendChild(document.createElement(paramStr[i]))}}else{var createParam=function(el,n,v){var p=document.createElement("param");p.setAttribute("name",n);p.setAttribute("value",v);el.appendChild(p)};
779htmlObj=document.createElement("object");htmlObj.setAttribute("id",this.internal.flash.id);htmlObj.setAttribute("name",this.internal.flash.id);htmlObj.setAttribute("data",this.internal.flash.swf);htmlObj.setAttribute("type","application/x-shockwave-flash");htmlObj.setAttribute("width","1");htmlObj.setAttribute("height","1");htmlObj.setAttribute("tabindex","-1");createParam(htmlObj,"flashvars",flashVars);createParam(htmlObj,"allowscriptaccess","always");createParam(htmlObj,"bgcolor",this.options.backgroundColor);createParam(htmlObj,"wmode",this.options.wmode)} 780this.element.append(htmlObj);this.internal.flash.jq=$(htmlObj)} 781if(this.html.used&&!this.flash.used){this.status.playbackRateEnabled=this._testPlaybackRate('audio')}else{this.status.playbackRateEnabled=!1} 782this._updatePlaybackRate();if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=$("#"+this.internal.audio.id)} 783if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=$("#"+this.internal.video.id);if(this.status.nativeVideoControls){this.internal.video.jq.css({'width':this.status.width,'height':this.status.height})}else{this.internal.video.jq.css({'width':'0px','height':'0px'})} 784this.internal.video.jq.bind("click.jPlayer",function(){self._trigger($.jPlayer.event.click)})}} 785if(this.aurora.used){} 786if(this.options.emulateHtml){this._emulateHtmlBridge()} 787if((this.html.used||this.aurora.used)&&!this.flash.used){setTimeout(function(){self.internal.ready=!0;self.version.flash="n/a";self._trigger($.jPlayer.event.repeat);self._trigger($.jPlayer.event.ready)},100)} 788this._updateNativeVideoControls();if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()} 789$.jPlayer.prototype.count++},destroy:function(){this.clearMedia();this._removeUiClass();if(this.css.jq.currentTime.length){this.css.jq.currentTime.text("")} 790if(this.css.jq.duration.length){this.css.jq.duration.text("")} 791$.each(this.css.jq,function(fn,jq){if(jq.length){jq.unbind(".jPlayer")}});this.internal.poster.jq.unbind(".jPlayer");if(this.internal.video.jq){this.internal.video.jq.unbind(".jPlayer")} 792this._fullscreenRemoveEventListeners();if(this===$.jPlayer.focus){$.jPlayer.focus=null} 793if(this.options.emulateHtml){this._destroyHtmlBridge()} 794this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance]},destroyRemoved:function(){var self=this;$.each(this.instances,function(i,element){if(self.element!==element){if(!element.data("jPlayer")){element.jPlayer("destroy");delete self.instances[i]}}})},enable:function(){},disable:function(){},_testCanPlayType:function(elem){try{elem.canPlayType(this.format.mp3.codec);return!0}catch(err){return!1}},_testPlaybackRate:function(type){var el,rate=0.5;type=typeof type==='string'?type:'audio';el=document.createElement(type);try{if('playbackRate' in el){el.playbackRate=rate;return el.playbackRate===rate}else{return!1}}catch(err){return!1}},_uaBlocklist:function(list){var ua=navigator.userAgent.toLowerCase(),block=!1;$.each(list,function(p,re){if(re&&re.test(ua)){block=!0;return!1}});return block},_restrictNativeVideoControls:function(){if(this.require.audio){if(this.status.nativeVideoControls){this.status.nativeVideoControls=!1;this.status.noFullWindow=!0}}},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used){this.htmlElement.video.controls=this.status.nativeVideoControls;this._updateAutohide();if(this.status.nativeVideoControls&&this.require.video){this.internal.poster.jq.hide();this.internal.video.jq.css({'width':this.status.width,'height':this.status.height})}else if(this.status.waitForPlay&&this.status.video){this.internal.poster.jq.show();this.internal.video.jq.css({'width':'0px','height':'0px'})}}},_addHtmlEventListeners:function(mediaElement,entity){var self=this;mediaElement.preload=this.options.preload;mediaElement.muted=this.options.muted;mediaElement.volume=this.options.volume;if(this.status.playbackRateEnabled){mediaElement.defaultPlaybackRate=this.options.defaultPlaybackRate;mediaElement.playbackRate=this.options.playbackRate} 795mediaElement.addEventListener("progress",function(){if(entity.gate){if(self.internal.cmdsIgnored&&this.readyState>0){self.internal.cmdsIgnored=!1} 796self._getHtmlStatus(mediaElement);self._updateInterface();self._trigger($.jPlayer.event.progress)}},!1);mediaElement.addEventListener("loadeddata",function(){if(entity.gate){self.androidFix.setMedia=!1;if(self.androidFix.play){self.androidFix.play=!1;self.play(self.androidFix.time)} 797if(self.androidFix.pause){self.androidFix.pause=!1;self.pause(self.androidFix.time)} 798self._trigger($.jPlayer.event.loadeddata)}},!1);mediaElement.addEventListener("timeupdate",function(){if(entity.gate){self._getHtmlStatus(mediaElement);self._updateInterface();self._trigger($.jPlayer.event.timeupdate)}},!1);mediaElement.addEventListener("durationchange",function(){if(entity.gate){self._getHtmlStatus(mediaElement);self._updateInterface();self._trigger($.jPlayer.event.durationchange)}},!1);mediaElement.addEventListener("play",function(){if(entity.gate){self._updateButtons(!0);self._html_checkWaitForPlay();self._trigger($.jPlayer.event.play)}},!1);mediaElement.addEventListener("playing",function(){if(entity.gate){self._updateButtons(!0);self._seeked();self._trigger($.jPlayer.event.playing)}},!1);mediaElement.addEventListener("pause",function(){if(entity.gate){self._updateButtons(!1);self._trigger($.jPlayer.event.pause)}},!1);mediaElement.addEventListener("waiting",function(){if(entity.gate){self._seeking();self._trigger($.jPlayer.event.waiting)}},!1);mediaElement.addEventListener("seeking",function(){if(entity.gate){self._seeking();self._trigger($.jPlayer.event.seeking)}},!1);mediaElement.addEventListener("seeked",function(){if(entity.gate){self._seeked();self._trigger($.jPlayer.event.seeked)}},!1);mediaElement.addEventListener("volumechange",function(){if(entity.gate){self.options.volume=mediaElement.volume;self.options.muted=mediaElement.muted;self._updateMute();self._updateVolume();self._trigger($.jPlayer.event.volumechange)}},!1);mediaElement.addEventListener("ratechange",function(){if(entity.gate){self.options.defaultPlaybackRate=mediaElement.defaultPlaybackRate;self.options.playbackRate=mediaElement.playbackRate;self._updatePlaybackRate();self._trigger($.jPlayer.event.ratechange)}},!1);mediaElement.addEventListener("suspend",function(){if(entity.gate){self._seeked();self._trigger($.jPlayer.event.suspend)}},!1);mediaElement.addEventListener("ended",function(){if(entity.gate){if(!$.jPlayer.browser.webkit){self.htmlElement.media.currentTime=0} 799self.htmlElement.media.pause();self._updateButtons(!1);self._getHtmlStatus(mediaElement,!0);self._updateInterface();self._trigger($.jPlayer.event.ended)}},!1);mediaElement.addEventListener("error",function(){if(entity.gate){self._updateButtons(!1);self._seeked();if(self.status.srcSet){clearTimeout(self.internal.htmlDlyCmdId);self.status.waitForLoad=!0;self.status.waitForPlay=!0;if(self.status.video&&!self.status.nativeVideoControls){self.internal.video.jq.css({'width':'0px','height':'0px'})} 800if(self._validString(self.status.media.poster)&&!self.status.nativeVideoControls){self.internal.poster.jq.show()} 801if(self.css.jq.videoPlay.length){self.css.jq.videoPlay.show()} 802self._error({type:$.jPlayer.error.URL,context:self.status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL})}}},!1);$.each($.jPlayer.htmlEvent,function(i,eventType){mediaElement.addEventListener(this,function(){if(entity.gate){self._trigger($.jPlayer.event[eventType])}},!1)})},_addAuroraEventListeners:function(player,entity){var self=this;player.volume=this.options.volume*100;player.on("progress",function(){if(entity.gate){if(self.internal.cmdsIgnored&&this.readyState>0){self.internal.cmdsIgnored=!1} 803self._getAuroraStatus(player);self._updateInterface();self._trigger($.jPlayer.event.progress);if(player.duration>0){self._trigger($.jPlayer.event.timeupdate)}}},!1);player.on("ready",function(){if(entity.gate){self._trigger($.jPlayer.event.loadeddata)}},!1);player.on("duration",function(){if(entity.gate){self._getAuroraStatus(player);self._updateInterface();self._trigger($.jPlayer.event.durationchange)}},!1);player.on("end",function(){if(entity.gate){self._updateButtons(!1);self._getAuroraStatus(player,!0);self._updateInterface();self._trigger($.jPlayer.event.ended)}},!1);player.on("error",function(){if(entity.gate){self._updateButtons(!1);self._seeked();if(self.status.srcSet){self.status.waitForLoad=!0;self.status.waitForPlay=!0;if(self.status.video&&!self.status.nativeVideoControls){self.internal.video.jq.css({'width':'0px','height':'0px'})} 804if(self._validString(self.status.media.poster)&&!self.status.nativeVideoControls){self.internal.poster.jq.show()} 805if(self.css.jq.videoPlay.length){self.css.jq.videoPlay.show()} 806self._error({type:$.jPlayer.error.URL,context:self.status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL})}}},!1)},_getHtmlStatus:function(media,override){var ct=0,cpa=0,sp=0,cpr=0;if(isFinite(media.duration)){this.status.duration=media.duration} 807ct=media.currentTime;cpa=(this.status.duration>0)?100*ct/this.status.duration:0;if((typeof media.seekable==="object")&&(media.seekable.length>0)){sp=(this.status.duration>0)?100*media.seekable.end(media.seekable.length-1)/this.status.duration:100;cpr=(this.status.duration>0)?100*media.currentTime/media.seekable.end(media.seekable.length-1):0}else{sp=100;cpr=cpa} 808if(override){ct=0;cpr=0;cpa=0} 809this.status.seekPercent=sp;this.status.currentPercentRelative=cpr;this.status.currentPercentAbsolute=cpa;this.status.currentTime=ct;this.status.remaining=this.status.duration-this.status.currentTime;this.status.videoWidth=media.videoWidth;this.status.videoHeight=media.videoHeight;this.status.readyState=media.readyState;this.status.networkState=media.networkState;this.status.playbackRate=media.playbackRate;this.status.ended=media.ended},_getAuroraStatus:function(player,override){var ct=0,cpa=0,sp=0,cpr=0;this.status.duration=player.duration/1000;ct=player.currentTime/1000;cpa=(this.status.duration>0)?100*ct/this.status.duration:0;if(player.buffered>0){sp=(this.status.duration>0)?(player.buffered*this.status.duration)/this.status.duration:100;cpr=(this.status.duration>0)?ct/(player.buffered*this.status.duration):0}
809else{sp=100;cpr=cpa} 810if(override){ct=0;cpr=0;cpa=0} 811this.status.seekPercent=sp;this.status.currentPercentRelative=cpr;this.status.currentPercentAbsolute=cpa;this.status.currentTime=ct;this.status.remaining=this.status.duration-this.status.currentTime;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_resetStatus:function(){this.status=$.extend({},this.status,$.jPlayer.prototype.status)},_trigger:function(eventType,error,warning){var event=$.Event(eventType);event.jPlayer={};event.jPlayer.version=$.extend({},this.version);event.jPlayer.options=$.extend(!0,{},this.options);event.jPlayer.status=$.extend(!0,{},this.status);event.jPlayer.html=$.extend(!0,{},this.html);event.jPlayer.aurora=$.extend(!0,{},this.aurora);event.jPlayer.flash=$.extend(!0,{},this.flash);if(error){event.jPlayer.error=$.extend({},error)} 812if(warning){event.jPlayer.warning=$.extend({},warning)} 813this.element.trigger(event)},jPlayerFlashEvent:function(eventType,status){if(eventType===$.jPlayer.event.ready){if(!this.internal.ready){this.internal.ready=!0;this.internal.flash.jq.css({'width':'0px','height':'0px'});this.version.flash=status.version;if(this.version.needFlash!==this.version.flash){this._error({type:$.jPlayer.error.VERSION,context:this.version.flash,message:$.jPlayer.errorMsg.VERSION+this.version.flash,hint:$.jPlayer.errorHint.VERSION})} 814this._trigger($.jPlayer.event.repeat);this._trigger(eventType)}else{if(this.flash.gate){if(this.status.srcSet){var currentTime=this.status.currentTime,paused=this.status.paused;this.setMedia(this.status.media);this.volumeWorker(this.options.volume);if(currentTime>0){if(paused){this.pause(currentTime)}else{this.play(currentTime)}}} 815this._trigger($.jPlayer.event.flashreset)}}} 816if(this.flash.gate){switch(eventType){case $.jPlayer.event.progress:this._getFlashStatus(status);this._updateInterface();this._trigger(eventType);break;case $.jPlayer.event.timeupdate:this._getFlashStatus(status);this._updateInterface();this._trigger(eventType);break;case $.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(eventType);break;case $.jPlayer.event.pause:this._updateButtons(!1);this._trigger(eventType);break;case $.jPlayer.event.ended:this._updateButtons(!1);this._trigger(eventType);break;case $.jPlayer.event.click:this._trigger(eventType);break;case $.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;if(this.status.video){this.internal.flash.jq.css({'width':'0px','height':'0px'})} 817if(this._validString(this.status.media.poster)){this.internal.poster.jq.show()} 818if(this.css.jq.videoPlay.length&&this.status.video){this.css.jq.videoPlay.show()} 819if(this.status.video){this._flash_setVideo(this.status.media)}else{this._flash_setAudio(this.status.media)} 820this._updateButtons(!1);this._error({type:$.jPlayer.error.URL,context:status.src,message:$.jPlayer.errorMsg.URL,hint:$.jPlayer.errorHint.URL});break;case $.jPlayer.event.seeking:this._seeking();this._trigger(eventType);break;case $.jPlayer.event.seeked:this._seeked();this._trigger(eventType);break;case $.jPlayer.event.ready:break;default:this._trigger(eventType)}} 821return!1},_getFlashStatus:function(status){this.status.seekPercent=status.seekPercent;this.status.currentPercentRelative=status.currentPercentRelative;this.status.currentPercentAbsolute=status.currentPercentAbsolute;this.status.currentTime=status.currentTime;this.status.duration=status.duration;this.status.remaining=status.duration-status.currentTime;this.status.videoWidth=status.videoWidth;this.status.videoHeight=status.videoHeight;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_updateButtons:function(playing){if(playing===undefined){playing=!this.status.paused}else{this.status.paused=!playing} 822if(playing){this.addStateClass('playing')}else{this.removeStateClass('playing')} 823if(!this.status.noFullWindow&&this.options.fullWindow){this.addStateClass('fullScreen')}else{this.removeStateClass('fullScreen')} 824if(this.options.loop){this.addStateClass('looped')}else{this.removeStateClass('looped')} 825if(this.css.jq.play.length&&this.css.jq.pause.length){if(playing){this.css.jq.play.hide();this.css.jq.pause.show()}else{this.css.jq.play.show();this.css.jq.pause.hide()}} 826if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length){if(this.status.noFullWindow){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.hide()}else if(this.options.fullWindow){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.show()}else{this.css.jq.fullScreen.show();this.css.jq.restoreScreen.hide()}} 827if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length){if(this.options.loop){this.css.jq.repeat.hide();this.css.jq.repeatOff.show()}else{this.css.jq.repeat.show();this.css.jq.repeatOff.hide()}}},_updateInterface:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.width(this.status.seekPercent+"%")} 828if(this.css.jq.playBar.length){if(this.options.smoothPlayBar){this.css.jq.playBar.stop().animate({width:this.status.currentPercentAbsolute+"%"},250,"linear")}else{this.css.jq.playBar.width(this.status.currentPercentRelative+"%")}} 829var currentTimeText='';if(this.css.jq.currentTime.length){currentTimeText=this._convertTime(this.status.currentTime);if(currentTimeText!==this.css.jq.currentTime.text()){this.css.jq.currentTime.text(this._convertTime(this.status.currentTime))}} 830var durationText='',duration=this.status.duration,remaining=this.status.remaining;if(this.css.jq.duration.length){if(typeof this.status.media.duration==='string'){durationText=this.status.media.duration}else{if(typeof this.status.media.duration==='number'){duration=this.status.media.duration;remaining=duration-this.status.currentTime} 831if(this.options.remainingDuration){durationText=(remaining>0?'-':'')+this._convertTime(remaining)}else{durationText=this._convertTime(duration)}} 832if(durationText!==this.css.jq.duration.text()){this.css.jq.duration.text(durationText)}}},_convertTime:ConvertTime.prototype.time,_seeking:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.addClass("jp-seeking-bg")} 833this.addStateClass('seeking')},_seeked:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.removeClass("jp-seeking-bg")} 834this.removeStateClass('seeking')},_resetGate:function(){this.html.audio.gate=!1;this.html.video.gate=!1;this.aurora.gate=!1;this.flash.gate=!1},_resetActive:function(){this.html.active=!1;this.aurora.active=!1;this.flash.active=!1},_escapeHtml:function(s){return s.split('&').join('&').split('<').join('<').split('>').join('>').split('"').join('"')},_qualifyURL:function(url){var el=document.createElement('div');el.innerHTML='<a href="'+this._escapeHtml(url)+'">x</a>';return el.firstChild.href},_absoluteMediaUrls:function(media){var self=this;$.each(media,function(type,url){if(url&&self.format[type]&&url.substr(0,5)!=="data:"){media[type]=self._qualifyURL(url)}});return media},addStateClass:function(state){if(this.ancestorJq.length){this.ancestorJq.addClass(this.options.stateClass[state])}},removeStateClass:function(state){if(this.ancestorJq.length){this.ancestorJq.removeClass(this.options.stateClass[state])}},setMedia:function(media){var self=this,supported=!1,posterChanged=this.status.media.poster!==media.poster;this._resetMedia();this._resetGate();this._resetActive();this.androidFix.setMedia=!1;this.androidFix.play=!1;this.androidFix.pause=!1;media=this._absoluteMediaUrls(media);$.each(this.formats,function(formatPriority,format){var isVideo=self.format[format].media==='video';$.each(self.solutions,function(solutionPriority,solution){if(self[solution].support[format]&&self._validString(media[format])){var isHtml=solution==='html';var isAurora=solution==='aurora';if(isVideo){if(isHtml){self.html.video.gate=!0;self._html_setVideo(media);self.html.active=!0}else{self.flash.gate=!0;self._flash_setVideo(media);self.flash.active=!0} 835if(self.css.jq.videoPlay.length){self.css.jq.videoPlay.show()} 836self.status.video=!0}else{if(isHtml){self.html.audio.gate=!0;self._html_setAudio(media);self.html.active=!0;if($.jPlayer.platform.android){self.androidFix.setMedia=!0}}else if(isAurora){self.aurora.gate=!0;self._aurora_setAudio(media);self.aurora.active=!0}else{self.flash.gate=!0;self._flash_setAudio(media);self.flash.active=!0} 837if(self.css.jq.videoPlay.length){self.css.jq.videoPlay.hide()} 838self.status.video=!1} 839supported=!0;return!1}});if(supported){return!1}});if(supported){if(!(this.status.nativeVideoControls&&this.html.video.gate)){if(this._val
839idString(media.poster)){if(posterChanged){this.htmlElement.poster.src=media.poster}else{this.internal.poster.jq.show()}}} 840if(typeof media.title==='string'){if(this.css.jq.title.length){this.css.jq.title.html(media.title)} 841if(this.htmlElement.audio){this.htmlElement.audio.setAttribute('title',media.title)} 842if(this.htmlElement.video){this.htmlElement.video.setAttribute('title',media.title)}} 843this.status.srcSet=!0;this.status.media=$.extend({},media);this._updateButtons(!1);this._updateInterface();this._trigger($.jPlayer.event.setmedia)}else{this._error({type:$.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:$.jPlayer.errorMsg.NO_SUPPORT,hint:$.jPlayer.errorHint.NO_SUPPORT})}},_resetMedia:function(){this._resetStatus();this._updateButtons(!1);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);if(this.html.active){this._html_resetMedia()}else if(this.aurora.active){this._aurora_resetMedia()}else if(this.flash.active){this._flash_resetMedia()}},clearMedia:function(){this._resetMedia();if(this.html.active){this._html_clearMedia()}else if(this.aurora.active){this._aurora_clearMedia()}else if(this.flash.active){this._flash_clearMedia()} 844this._resetGate();this._resetActive()},load:function(){if(this.status.srcSet){if(this.html.active){this._html_load()}else if(this.aurora.active){this._aurora_load()}else if(this.flash.active){this._flash_load()}}else{this._urlNotSetError("load")}},focus:function(){if(this.options.keyEnabled){$.jPlayer.focus=this}},play:function(time){var guiAction=typeof time==="object";if(guiAction&&this.options.useStateClassSkin&&!this.status.paused){this.pause(time)}else{time=(typeof time==="number")?time:NaN;if(this.status.srcSet){this.focus();if(this.html.active){this._html_play(time)}else if(this.aurora.active){this._aurora_play(time)}else if(this.flash.active){this._flash_play(time)}}else{this._urlNotSetError("play")}}},videoPlay:function(){this.play()},pause:function(time){time=(typeof time==="number")?time:NaN;if(this.status.srcSet){if(this.html.active){this._html_pause(time)}else if(this.aurora.active){this._aurora_pause(time)}else if(this.flash.active){this._flash_pause(time)}}else{this._urlNotSetError("pause")}},tellOthers:function(command,conditions){var self=this,hasConditions=typeof conditions==='function',args=Array.prototype.slice.call(arguments);if(typeof command!=='string'){return} 845if(hasConditions){args.splice(1,1)} 846$.jPlayer.prototype.destroyRemoved();$.each(this.instances,function(){if(self.element!==this){if(!hasConditions||conditions.call(this.data("jPlayer"),self)){this.jPlayer.apply(this,args)}}})},pauseOthers:function(time){this.tellOthers("pause",function(){return this.status.srcSet},time)},stop:function(){if(this.status.srcSet){if(this.html.active){this._html_pause(0)}else if(this.aurora.active){this._aurora_pause(0)}else if(this.flash.active){this._flash_pause(0)}}else{this._urlNotSetError("stop")}},playHead:function(p){p=this._limitValue(p,0,100);if(this.status.srcSet){if(this.html.active){this._html_playHead(p)}else if(this.aurora.active){this._aurora_playHead(p)}else if(this.flash.active){this._flash_playHead(p)}}else{this._urlNotSetError("playHead")}},_muted:function(muted){this.mutedWorker(muted);if(this.options.globalVolume){this.tellOthers("mutedWorker",function(){return this.options.globalVolume},muted)}},mutedWorker:function(muted){this.options.muted=muted;if(this.html.used){this._html_setProperty('muted',muted)} 847if(this.aurora.used){this._aurora_mute(muted)} 848if(this.flash.used){this._flash_mute(muted)} 849if(!this.html.video.gate&&!this.html.audio.gate){this._updateMute(muted);this._updateVolume(this.options.volume);this._trigger($.jPlayer.event.volumechange)}},mute:function(mute){var guiAction=typeof mute==="object";if(guiAction&&this.options.useStateClassSkin&&this.options.muted){this._muted(!1)}else{mute=mute===undefined?!0:!!mute;this._muted(mute)}},unmute:function(unmute){unmute=unmute===undefined?!0:!!unmute;this._muted(!unmute)},_updateMute:function(mute){if(mute===undefined){mute=this.options.muted} 850if(mute){this.addStateClass('muted')}else{this.removeStateClass('muted')} 851if(this.css.jq.mute.length&&this.css.jq.unmute.length){if(this.status.noVolume){this.css.jq.mute.hide();this.css.jq.unmute.hide()}else if(mute){this.css.jq.mute.hide();this.css.jq.unmute.show()}else{this.css.jq.mute.show();this.css.jq.unmute.hide()}}},volume:function(v){this.volumeWorker(v);if(this.options.globalVolume){this.tellOthers("volumeWorker",function(){return this.options.globalVolume},v)}}
851,volumeWorker:function(v){v=this._limitValue(v,0,1);this.options.volume=v;if(this.html.used){this._html_setProperty('volume',v)} 852if(this.aurora.used){this._aurora_volume(v)} 853if(this.flash.used){this._flash_volume(v)} 854if(!this.html.video.gate&&!this.html.audio.gate){this._updateVolume(v);this._trigger($.jPlayer.event.volumechange)}},volumeBar:function(e){if(this.css.jq.volumeBar.length){var $bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),y=$bar.height()-e.pageY+offset.top,h=$bar.height();if(this.options.verticalVolume){this.volume(y/h)}else{this.volume(x/w)}} 855if(this.options.muted){this._muted(!1)}},_updateVolume:function(v){if(v===undefined){v=this.options.volume} 856v=this.options.muted?0:v;if(this.status.noVolume){this.addStateClass('noVolume');if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.hide()} 857if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.hide()} 858if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.hide()}}else{this.removeStateClass('noVolume');if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.show()} 859if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.show();this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"]((v*100)+"%")} 860if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.show()}}},volumeMax:function(){this.volume(1);if(this.options.muted){this._muted(!1)}},_cssSelectorAncestor:function(ancestor){var self=this;this.options.cssSelectorAncestor=ancestor;this._removeUiClass();this.ancestorJq=ancestor?$(ancestor):[];if(ancestor&&this.ancestorJq.length!==1){this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:ancestor,message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT})} 861this._addUiClass();$.each(this.options.cssSelector,function(fn,cssSel){self._cssSelector(fn,cssSel)});this._updateInterface();this._updateButtons();this._updateAutohide();this._updateVolume();this._updateMute()},_cssSelector:function(fn,cssSel){var self=this;if(typeof cssSel==='string'){if($.jPlayer.prototype.options.cssSelector[fn]){if(this.css.jq[fn]&&this.css.jq[fn].length){this.css.jq[fn].unbind(".jPlayer")} 862this.options.cssSelector[fn]=cssSel;this.css.cs[fn]=this.options.cssSelectorAncestor+" "+cssSel;if(cssSel){this.css.jq[fn]=$(this.css.cs[fn])}else{this.css.jq[fn]=[]} 863if(this.css.jq[fn].length&&this[fn]){var handler=function(e){e.preventDefault();self[fn](e);if(self.options.autoBlur){$(this).blur()}else{$(this).focus()}};this.css.jq[fn].bind("click.jPlayer",handler)} 864if(cssSel&&this.css.jq[fn].length!==1){this._warning({type:$.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[fn],message:$.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[fn].length+" found for "+fn+" method.",hint:$.jPlayer.warningHint.CSS_SELECTOR_COUNT})}}else{this._warning({type:$.jPlayer.warning.CSS_SELECTOR_METHOD,context:fn,message:$.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:$.jPlayer.warningHint.CSS_SELECTOR_METHOD})}}else{this._warning({type:$.jPlayer.warning.CSS_SELECTOR_STRING,context:cssSel,message:$.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:$.jPlayer.warningHint.CSS_SELECTOR_STRING})}},duration:function(e){if(this.options.toggleDuration){if(this.options.captureDuration){e.stopPropagation()} 865this._setOption("remainingDuration",!this.options.remainingDuration)}},seekBar:function(e){if(this.css.jq.seekBar.length){var $bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),p=100*x/w;this.playHead(p)}},playbackRate:function(pbr){this._setOption("playbackRate",pbr)},playbackRateBar:function(e){if(this.css.jq.playbackRateBar.length){var $bar=$(e.currentTarget),offset=$bar.offset(),x=e.pageX-offset.left,w=$bar.width(),y=$bar.height()-e.pageY+offset.top,h=$bar.height(),ratio,pbr;if(this.options.verticalPlaybackRate){ratio=y/h}else{ratio=x/w} 866pbr=ratio*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate;this.playbackRate(pbr)}},_updatePlaybackRate:function(){var pbr=this.options.playbackRate,ratio=(pbr-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);if(this.status.playbackRateEnabled){if(this.css.jq.playbackRateBar.length){this.css.jq.playbackRateBar.show()} 867if(this.css.jq.playbackRateBarValue.length){this.css.jq.playbackRateBarValue.show();this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"]((ratio*100)+"%")}}else{if(this.css.jq.playbackRateBar.length){this.css.jq.playbackRateBar.hide()} 868if(this.css.jq.playbackRateBarValue.length){this.css.jq.playbackRateBarValue.hide()}}},repeat:function(event){var guiAction=typeof event==="object";if(guiAction&&this.options.useStateClassSkin&&this.options.loop){this._loop(!1)}else{this._loop(!0)}},repeatOff:function(){this._loop(!1)},_loop:function(loop){if(this.options.loop!==loop){this.options.loop=loop;this._updateButtons();this._trigger($.jPlayer.event.repeat)}},option:function(key,value){var options=key;if(arguments.length===0){return $.extend(!0,{},this.options)}
869if(typeof key==="string"){var keys=key.split(".");if(value===undefined){var opt=$.extend(!0,{},this.options);for(var i=0;i<keys.length;i++){if(opt[keys[i]]!==undefined){opt=opt[keys[i]]}else{this._warning({type:$.jPlayer.warning.OPTION_KEY,context:key,message:$.jPlayer.warningMsg.OPTION_KEY,hint:$.jPlayer.warningHint.OPTION_KEY});return undefined}} 870return opt} 871options={};var opts=options;for(var j=0;j<keys.length;j++){if(j<keys.length-1){opts[keys[j]]={};opts=opts[keys[j]]}else{opts[keys[j]]=value}}} 872this._setOptions(options);return this},_setOptions:function(options){var self=this;$.each(options,function(key,value){self._setOption(key,value)});return this},_setOption:function(key,value){var self=this;switch(key){case "volume":this.volume(value);break;case "muted":this._muted(value);break;case "globalVolume":this.options[key]=value;break;case "cssSelectorAncestor":this._cssSelectorAncestor(value);break;case "cssSelector":$.each(value,function(fn,cssSel){self._cssSelector(fn,cssSel)});break;case "playbackRate":this.options[key]=value=this._limitValue(value,this.options.minPlaybackRate,this.options.maxPlaybackRate);if(this.html.used){this._html_setProperty('playbackRate',value)} 873this._updatePlaybackRate();break;case "defaultPlaybackRate":this.options[key]=value=this._limitValue(value,this.options.minPlaybackRate,this.options.maxPlaybackRate);if(this.html.used){this._html_setProperty('defaultPlaybackRate',value)} 874this._updatePlaybackRate();break;case "minPlaybackRate":this.options[key]=value=this._limitValue(value,0.1,this.options.maxPlaybackRate-0.1);this._updatePlaybackRate();break;case "maxPlaybackRate":this.options[key]=value=this._limitValue(value,this.options.minPlaybackRate+0.1,16);this._updatePlaybackRate();break;case "fullScreen":if(this.options[key]!==value){var wkv=$.jPlayer.nativeFeatures.fullscreen.used.webkitVideo;if(!wkv||wkv&&!this.status.waitForPlay){if(!wkv){this.options[key]=value} 875if(value){this._requestFullscreen()}else{this._exitFullscreen()} 876if(!wkv){this._setOption("fullWindow",value)}}} 877break;case "fullWindow":if(this.options[key]!==value){this._removeUiClass();this.options[key]=value;this._refreshSize()} 878break;case "size":if(!this.options.fullWindow&&this.options[key].cssClass!==value.cssClass){this._removeUiClass()} 879this.options[key]=$.extend({},this.options[key],value);this._refreshSize();break;case "sizeFull":if(this.options.fullWindow&&this.options[key].cssClass!==value.cssClass){this._removeUiClass()} 880this.options[key]=$.extend({},this.options[key],value);this._refreshSize();break;case "autohide":this.options[key]=$.extend({},this.options[key],value);this._updateAutohide();break;case "loop":this._loop(value);break;case "remainingDuration":this.options[key]=value;this._updateInterface();break;case "toggleDuration":this.options[key]=value;break;case "nativeVideoControls":this.options[key]=$.extend({},this.options[key],value);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case "noFullWindow":this.options[key]=$.extend({},this.options[key],value);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullWindow=this._uaBlocklist(this.options.noFullWindow);this._restrictNativeVideoControls();this._updateButtons();break;case "noVolume":this.options[key]=$.extend({},this.options[key],value);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case "emulateHtml":if(this.options[key]!==value){this.options[key]=value;if(value){this._emulateHtmlBridge()}else{this._destroyHtmlBridge()}} 881break;case "timeFormat":this.options[key]=$.extend({},this.options[key],value);break;case "keyEnabled":this.options[key]=value;if(!value&&this===$.jPlayer.focus){$.jPlayer.focus=null} 882break;case "keyBindings":this.options[key]=$.extend(!0,{},this.options[key],value);break;case "audioFullScreen":this.options[key]=value;break;case "autoBlur":this.options[key]=value;break} 883return this},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger($.jPlayer.event.resize)},_setSize:function(){if(this.options.fullWindow){this.status.width=this.options.sizeFull.width;this.status.height=this.options.sizeFull.height;this.status.cssClass=this.options.sizeFull.cssClass}else{this.status.width=this.options.size.width;this.status.height=this.options.size.height;this.status.cssClass=this.options.size.cssClass} 884this.element.css({'width':this.status.width,'height':this.status.height})},_addUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.addClass(this.status.cssClass)}},_removeUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.removeClass(this.status.cssClass)}},_updateSize:function(){this.internal.poster.jq.css({'width':this.status.width,'height':this.status.height});if(!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls){this.internal.video.jq.css({'width':this.status.width,'height':this.status.height})}else if(!this.status.waitForPlay&&this.flash.active&&this.status.video){this.internal.flash.jq.css({'width':this.status.width,'height':this.status.height})}}
884,_updateAutohide:function(){var self=this,event="mousemove.jPlayer",namespace=".jPlayerAutohide",eventType=event+namespace,handler=function(event){var moved=!1,deltaX,deltaY;if(typeof self.internal.mouse!=="undefined"){deltaX=self.internal.mouse.x-event.pageX;deltaY=self.internal.mouse.y-event.pageY;moved=(Math.floor(deltaX)>0)||(Math.floor(deltaY)>0)}else{moved=!0} 885self.internal.mouse={x:event.pageX,y:event.pageY};if(moved){self.css.jq.gui.fadeIn(self.options.autohide.fadeIn,function(){clearTimeout(self.internal.autohideId);self.internal.autohideId=setTimeout(function(){self.css.jq.gui.fadeOut(self.options.autohide.fadeOut)},self.options.autohide.hold)})}};if(this.css.jq.gui.length){this.css.jq.gui.stop(!0,!0);clearTimeout(this.internal.autohideId);delete this.internal.mouse;this.element.unbind(namespace);this.css.jq.gui.unbind(namespace);if(!this.status.nativeVideoControls){if(this.options.fullWindow&&this.options.autohide.full||!this.options.fullWindow&&this.options.autohide.restored){this.element.bind(eventType,handler);this.css.jq.gui.bind(eventType,handler);this.css.jq.gui.hide()}else{this.css.jq.gui.show()}}else{this.css.jq.gui.hide()}}},fullScreen:function(event){var guiAction=typeof event==="object";if(guiAction&&this.options.useStateClassSkin&&this.options.fullScreen){this._setOption("fullScreen",!1)}else{this._setOption("fullScreen",!0)}},restoreScreen:function(){this._setOption("fullScreen",!1)},_fullscreenAddEventListeners:function(){var self=this,fs=$.jPlayer.nativeFeatures.fullscreen;if(fs.api.fullscreenEnabled){if(fs.event.fullscreenchange){if(typeof this.internal.fullscreenchangeHandler!=='function'){this.internal.fullscreenchangeHandler=function(){self._fullscreenchange()}} 886document.addEventListener(fs.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)}}},_fullscreenRemoveEventListeners:function(){var fs=$.jPlayer.nativeFeatures.fullscreen;if(this.internal.fullscreenchangeHandler){document.removeEventListener(fs.event.fullscreenchange,this.internal.fullscreenchangeHandler,!1)}},_fullscreenchange:function(){if(this.options.fullScreen&&!$.jPlayer.nativeFeatures.fullscreen.api.fullscreenElement()){this._setOption("fullScreen",!1)}},_requestFullscreen:function(){var e=this.ancestorJq.length?this.ancestorJq[0]:this.element[0],fs=$.jPlayer.nativeFeatures.fullscreen;if(fs.used.webkitVideo){e=this.htmlElement.video} 887if(fs.api.fullscreenEnabled){fs.api.requestFullscreen(e)}},_exitFullscreen:function(){var fs=$.jPlayer.nativeFeatures.fullscreen,e;if(fs.used.webkitVideo){e=this.htmlElement.video} 888if(fs.api.fullscreenEnabled){fs.api.exitFullscreen(e)}},_html_initMedia:function(media){var $media=$(this.htmlElement.media).empty();$.each(media.track||[],function(i,v){var track=document.createElement('track');track.setAttribute("kind",v.kind?v.kind:"");track.setAttribute("src",v.src?v.src:"");track.setAttribute("srclang",v.srclang?v.srclang:"");track.setAttribute("label",v.label?v.label:"");if(v.def){track.setAttribute("default",v.def)} 889$media.append(track)});this.htmlElement.media.src=this.status.src;if(this.options.preload!=='none'){this._html_load()} 890this._trigger($.jPlayer.event.timeupdate)},_html_setFormat:function(media){var self=this;$.each(this.formats,function(priority,format){if(self.html.support[format]&&media[format]){self.status.src=media[format];self.status.format[format]=!0;self.status.formatType=format;return!1}})},_html_setAudio:function(media){this._html_setFormat(media);this.htmlElement.media=this.htmlElement.audio;this._html_initMedia(media)},_html_setVideo:function(media){this._html_setFormat(media);if(this.status.nativeVideoControls){this.htmlElement.video.poster=this._validString(media.poster)?media.poster:""} 891this.htmlElement.media=this.htmlElement.video;this._html_initMedia(media)},_html_resetMedia:function(){if(this.htmlElement.media){if(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls){this.internal.video.jq.css({'width':'0px','height':'0px'})} 892this.htmlElement.media.pause()}},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.src="about:blank";this.htmlElement.media.load()}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=!1;this.htmlElement.media.load()} 893clearTimeout(this.internal.htmlDlyCmdId)},_html_play:function(time){var self=this,media=this.htmlElement.media;this.androidFix.pause=!1;this._html_load();if(this.androidFix.setMedia){this.androidFix.play=!0;this.androidFix.time=time}else if(!isNaN(time)){if(this.internal.cmdsIgnored){media.play()} 894try{if(!media.seekable||typeof media.seekable==="object"&&media.seekable.length>0){media.currentTime=time;media.play()}else{throw 1}}catch(err){this.internal.htmlDlyCmdId=setTimeout(function(){self.play(time)},250);return}}else{media.play()} 895this._html_checkWaitForPlay()},_html_pause:function(time){var self=this,media=this.htmlElement.media;this.androidFix.play=!1;if(time>0){this._html_load()}else{clearTimeout(this.internal.htmlDlyCmdId)} 896media.pause();if(this.androidFix.setMedia){this.androidFix.pause=!0;this.androidFix.time=time}else if(!isNaN(time)){try{if(!media.seekable||typeof media.seekable==="object"&&media.seekable.length>0){media.currentTime=time}else{throw 1}}catch(err){this.internal.htmlDlyCmdId=setTimeout(function(){self.pause(time)},250);return}} 897if(time>0){this._html_checkWaitForPlay()}}
897,_html_playHead:function(percent){var self=this,media=this.htmlElement.media;this._html_load();try{if(typeof media.seekable==="object"&&media.seekable.length>0){media.currentTime=percent*media.seekable.end(media.seekable.length-1)/100}else if(media.duration>0&&!isNaN(media.duration)){media.currentTime=percent*media.duration/100}else{throw "e"}}catch(err){this.internal.htmlDlyCmdId=setTimeout(function(){self.playHead(percent)},250);return} 898if(!this.status.waitForLoad){this._html_checkWaitForPlay()}},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=!1;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()} 899if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({'width':this.status.width,'height':this.status.height})}}},_html_setProperty:function(property,value){if(this.html.audio.available){this.htmlElement.audio[property]=value} 900if(this.html.video.available){this.htmlElement.video[property]=value}},_aurora_setAudio:function(media){var self=this;$.each(this.formats,function(priority,format){if(self.aurora.support[format]&&media[format]){self.status.src=media[format];self.status.format[format]=!0;self.status.formatType=format;return!1}});this.aurora.player=new AV.Player.fromURL(this.status.src);this._addAuroraEventListeners(this.aurora.player,this.aurora);if(this.options.preload==='auto'){this._aurora_load();this.status.waitForLoad=!1}},_aurora_resetMedia:function(){if(this.aurora.player){this.aurora.player.stop()}},_aurora_clearMedia:function(){},_aurora_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=!1;this.aurora.player.preload()}},_aurora_play:function(time){if(!this.status.waitForLoad){if(!isNaN(time)){this.aurora.player.seek(time)}} 901if(!this.aurora.player.playing){this.aurora.player.play()} 902this.status.waitForLoad=!1;this._aurora_checkWaitForPlay();this._updateButtons(!0);this._trigger($.jPlayer.event.play)},_aurora_pause:function(time){if(!isNaN(time)){this.aurora.player.seek(time*1000)} 903this.aurora.player.pause();if(time>0){this._aurora_checkWaitForPlay()} 904this._updateButtons(!1);this._trigger($.jPlayer.event.pause)},_aurora_playHead:function(percent){if(this.aurora.player.duration>0){this.aurora.player.seek(percent*this.aurora.player.duration/100)} 905if(!this.status.waitForLoad){this._aurora_checkWaitForPlay()}},_aurora_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=!1}},_aurora_volume:function(v){this.aurora.player.volume=v*100},_aurora_mute:function(m){if(m){this.aurora.properties.lastvolume=this.aurora.player.volume;this.aurora.player.volume=0}else{this.aurora.player.volume=this.aurora.properties.lastvolume} 906this.aurora.properties.muted=m},_flash_setAudio:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case "m4a":case "fla":self._getMovie().fl_setAudio_m4a(media[format]);break;case "mp3":self._getMovie().fl_setAudio_mp3(media[format]);break;case "rtmpa":self._getMovie().fl_setAudio_rtmp(media[format]);break} 907self.status.src=media[format];self.status.format[format]=!0;self.status.formatType=format;return!1}});if(this.options.preload==='auto'){this._flash_load();this.status.waitForLoad=!1}}catch(err){this._flashError(err)}},_flash_setVideo:function(media){var self=this;try{$.each(this.formats,function(priority,format){if(self.flash.support[format]&&media[format]){switch(format){case "m4v":case "flv":self._getMovie().fl_setVideo_m4v(media[format]);break;case "rtmpv":self._getMovie().fl_setVideo_rtmp(media[format]);break} 908self.status.src=media[format];self.status.format[format]=!0;self.status.formatType=format;return!1}});if(this.options.preload==='auto'){this._flash_load();this.status.waitForLoad=!1}}catch(err){this._flashError(err)}},_flash_resetMedia:function(){this.internal.flash.jq.css({'width':'0px','height':'0px'});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(err){this._flashError(err)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(err){this._flashError(err)} 909this.status.waitForLoad=!1},_flash_play:function(time){try{this._getMovie().fl_play(time)}catch(err){this._flashError(err)} 910this.status.waitForLoad=!1;this._flash_checkWaitForPlay()},_flash_pause:function(time){try{this._getMovie().fl_pause(time)}catch(err){this._flashError(err)} 911if(time>0){this.status.waitForLoad=!1;this._flash_checkWaitForPlay()}},_flash_playHead:function(p){try{this._getMovie().fl_play_head(p)}catch(err){this._flashError(err)} 912if(!this.status.waitForLoad){this._flash_checkWaitForPlay()}},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=!1;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide()} 913if(this.status.video){this.internal.poster.jq.hide();this.internal.flash.jq.css({'width':this.status.width,'height':this.status.height})}}},_flash_volume:function(v){try{this._getMovie().fl_volume(v)}catch(err){this._flashError(err)}},_flash_mute:function(m){try{this._getMovie().fl_mute(m)}catch(err){this._flashError(err)}},_getMovie:function(){return document[this.internal.flash.id]},_getFlashPluginVersion:function(){var version=0,flash;if(window.ActiveXObject){try{flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(flash){var v=flash.GetVariable("$version");if(v){v=v.split(" ")[1].split(",");version=parseInt(v[0],10)+"."+parseInt(v[1],10)}}}catch(e){}}else if(navigator.plugins&&navigator.mimeTypes.length>0){flash=navigator.plugins["Shockwave Flash"];if(flash){version=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")}} 914return version*1},_checkForFlash:function(version){var flashOk=!1;if(this._getFlashPluginVersion()>=version){flashOk=!0} 915return flashOk},_validString:function(url){return(url&&typeof url==="string")},_limitValue:function(value,min,max){return(value<min)?min:((value>max)?max:value)},_urlNotSetError:function(context){this._error({type:$.jPlayer.error.URL_NOT_SET,context:context,message:$.jPlayer.errorMsg.URL_NOT_SET,hint:$.
915jPlayer.errorHint.URL_NOT_SET})},_flashError:function(error){var errorType;if(!this.internal.ready){errorType="FLASH"}else{errorType="FLASH_DISABLED"} 916this._error({type:$.jPlayer.error[errorType],context:this.internal.flash.swf,message:$.jPlayer.errorMsg[errorType]+error.message,hint:$.jPlayer.errorHint[errorType]});this.internal.flash.jq.css({'width':'1px','height':'1px'})},_error:function(error){this._trigger($.jPlayer.event.error,error);if(this.options.errorAlerts){this._alert("Error!"+(error.message?"\n"+error.message:"")+(error.hint?"\n"+error.hint:"")+"\nContext: "+error.context)}},_warning:function(warning){this._trigger($.jPlayer.event.warning,undefined,warning);if(this.options.warningAlerts){this._alert("Warning!"+(warning.message?"\n"+warning.message:"")+(warning.hint?"\n"+warning.hint:"")+"\nContext: "+warning.context)}},_alert:function(message){var msg="jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+message;if(!this.options.consoleAlerts){alert(msg)}else if(window.console&&window.console.log){window.console.log(msg)}},_emulateHtmlBridge:function(){var self=this;$.each($.jPlayer.emulateMethods.split(/\s+/g),function(i,name){self.internal.domNode[name]=function(arg){self[name](arg)}});$.each($.jPlayer.event,function(eventName,eventType){var nativeEvent=!0;$.each($.jPlayer.reservedEvent.split(/\s+/g),function(i,name){if(name===eventName){nativeEvent=!1;return!1}});if(nativeEvent){self.element.bind(eventType+".jPlayer.jPlayerHtml",function(){self._emulateHtmlUpdate();var domEvent=document.createEvent("Event");domEvent.initEvent(eventName,!1,!0);self.internal.domNode.dispatchEvent(domEvent)})}})},_emulateHtmlUpdate:function(){var self=this;$.each($.jPlayer.emulateStatus.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.status[name]});$.each($.jPlayer.emulateOptions.split(/\s+/g),function(i,name){self.internal.domNode[name]=self.options[name]})},_destroyHtmlBridge:function(){var self=this;this.element.unbind(".jPlayerHtml");var emulated=$.jPlayer.emulateMethods+" "+$.jPlayer.emulateStatus+" "+$.jPlayer.emulateOptions;$.each(emulated.split(/\s+/g),function(i,name){delete self.internal.domNode[name]})}};$.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};$.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+$.jPlayer.prototype.version.script+" needs Jplayer.swf version "+$.jPlayer.prototype.version.needFlash+" but found "};
916$.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};$.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};$.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};$.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}}));(function($,undefined){jPlayerPlaylist=function(cssSelector,playlist,options){var self=this;this.current=0;this.loop=!1;this.shuffled=!1;this.removing=!1;this.cssSelector=$.extend({},this._cssSelector,cssSelector);this.options=$.extend(!0,{keyBindings:{next:{key:221,fn:function(){self.next()}},previous:{key:219,fn:function(){self.previous()}},shuffle:{key:83,fn:function(){self.shuffle()}}},stateClass:{shuffled:"jp-state-shuffled"}},this._options,options);this.playlist=[];this.original=[];this._initPlaylist(playlist);this.cssSelector.details=this.cssSelector.cssSelectorAncestor+" .jp-details";this.cssSelector.playlist=this.cssSelector.cssSelectorAncestor+" .jp-playlist";this.cssSelector.next=this.cssSelector.cssSelectorAncestor+" .jp-next";this.cssSelector.previous=this.cssSelector.cssSelectorAncestor+" .jp-previous";this.cssSelector.shuffle=this.cssSelector.cssSelectorAncestor+" .jp-shuffle";this.cssSelector.shuffleOff=this.cssSelector.cssSelectorAncestor+" .jp-shuffle-off";this.options.cssSelectorAncestor=this.cssSelector.cssSelectorAncestor;this.options.repeat=function(event){self.loop=event.jPlayer.options.loop};$(this.cssSelector.jPlayer).bind($.jPlayer.event.ready,function(){self._init()});$(this.cssSelector.jPlayer).bind($.jPlayer.event.ended,function(){self.next()});$(this.cssSelector.jPlayer).bind($.jPlayer.event.play,function(){$(this).jPlayer("pauseOthers")});$(this.cssSelector.jPlayer).bind($.jPlayer.event.resize,function(event){if(event.jPlayer.options.fullScreen){$(self.cssSelector.details).show()}else{$(self.cssSelector.details).hide()}});$(this.cssSelector.previous).click(function(e){e.preventDefault();self.previous();self.blur(this)});$(this.cssSelector.next).click(function(e){e.preventDefault();self.next();self.blur(this)});$(this.cssSelector.shuffle).click(function(e){e.preventDefault();if(self.shuffled&&$(self.cssSelector.jPlayer).jPlayer("option","useStateClassSkin")){self.shuffle(!1)}else{self.shuffle(!0)} 917self.blur(this)});$(this.cssSelector.shuffleOff).click(function(e){e.preventDefault();self.shuffle(!1);self.blur(this)}).hide();if(!this.options.fullScreen){$(this.cssSelector.details).hide()} 918$(this.cssSelector.playlist+" ul").empty();this._createItemHandlers();$(this.cssSelector.jPlayer).jPlayer(this.options)};jPlayerPlaylist.prototype={_cssSelector:{jPlayer:"#jquery_jplayer_1",cssSelectorAncestor:"#jp_container_1"},_options:{playlistOptions:{autoPlay:!1,loopOnPrevious:!1,shuffleOnLoop:!0,enableRemoveControls:!1,displayTime:'slow',addTime:'fast',removeTime:'fast',shuffleTime:'slow',itemClass:"jp-playlist-item",freeGroupClass:"jp-free-media",freeItemClass:"jp-playlist-item-free",removeItemClass:"jp-playlist-item-remove"}},option:function(option,value){if(value===undefined){return this.options.playlistOptions[option]} 919this.options.playlistOptions[option]=value;switch(option){case "enableRemoveControls":this._updateControls();break;case "itemClass":case "freeGroupClass":case "freeItemClass":case "removeItemClass":this._refresh(!0);this._createItemHandlers();break} 920return this},_init:function(){var self=this;this._refresh(function(){if(self.options.playlistOptions.autoPlay){self.play(self.current)}else{self.select(self.current)}})},_initPlaylist:function(playlist){this.current=0;this.shuffled=!1;this.removing=!1;this.original=$.extend(!0,[],playlist);this._originalPlaylist()},_originalPlaylist:function(){var self=this;this.playlist=[];$.each(this.original,function(i){self.playlist[i]=self.original[i]})},_refresh:function(instant){var self=this;if(instant&&!$.isFunction(instant)){$(this.cssSelector.playlist+" ul").empty();$.each(this.playlist,function(i){$(self.cssSelector.playlist+" ul").append(self._createListItem(self.playlist[i]))});this._updateControls()}else{var displayTime=$(this.cssSelector.playlist+" ul").children().length?this.options.playlistOptions.displayTime:0;$(this.cssSelector.playlist+" ul").slideUp(displayTime,function(){var $this=$(this);$(this).empty();$.each(self.playlist,function(i){$this.append(self._createListItem(self.playlist[i]))});self._updateControls();if($.isFunction(instant)){instant()} 921if(self.playlist.length){$(this).slideDown(self.options.playlistOptions.displayTime)}
921else{$(this).show()}})}},_createListItem:function(media){var self=this;var listItem="<li><div>";listItem+="<a href='javascript:;' class='"+this.options.playlistOptions.removeItemClass+"'>×</a>";if(media.free){var first=!0;listItem+="<span class='"+this.options.playlistOptions.freeGroupClass+"'>(";$.each(media,function(property,value){if($.jPlayer.prototype.format[property]){if(first){first=!1}else{listItem+=" | "} 922listItem+="<a class='"+self.options.playlistOptions.freeItemClass+"' href='"+value+"' tabindex='-1'>"+property+"</a>"}});listItem+=")</span>"} 923listItem+="<a href='javascript:;' class='"+this.options.playlistOptions.itemClass+"' tabindex='0'>"+media.title+(media.artist?" <span class='jp-artist'>by "+media.artist+"</span>":"")+"</a>";listItem+="</div></li>";return listItem},_createItemHandlers:function(){var self=this;$(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.itemClass).on("click","a."+this.options.playlistOptions.itemClass,function(e){e.preventDefault();var index=$(this).parent().parent().index();if(self.current!==index){self.play(index)}else{$(self.cssSelector.jPlayer).jPlayer("play")} 924self.blur(this)});
924$(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click","a."+this.options.playlistOptions.freeItemClass,function(e){e.preventDefault();$(this).parent().parent().find("."+self.options.playlistOptions.itemClass).click();self.blur(this)});$(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(e){e.preventDefault();var index=$(this).parent().parent().index();self.remove(index);self.blur(this)})},_updateControls:function(){if(this.options.playlistOptions.enableRemoveControls){$(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show()}else{$(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide()} 925if(this.shuffled){$(this.cssSelector.jPlayer).jPlayer("addStateClass","shuffled")}else{$(this.cssSelector.jPlayer).jPlayer("removeStateClass","shuffled")} 926if($(this.cssSelector.shuffle).length&&$(this.cssSelector.shuffleOff).length){if(this.shuffled){$(this.cssSelector.shuffleOff).show();$(this.cssSelector.shuffle).hide()}else{$(this.cssSelector.shuffleOff).hide();$(this.cssSelector.shuffle).show()}}},_highlight:function(index){if(this.playlist.length&&index!==undefined){$(this.cssSelector.playlist+" .jp-playlist-current").removeClass("jp-playlist-current");$(this.cssSelector.playlist+" li:nth-child("+(index+1)+")").addClass("jp-playlist-current").find(".jp-playlist-item").addClass("jp-playlist-current")}},setPlaylist:function(playlist){this._initPlaylist(playlist);this._init()},add:function(media,playNow){$(this.cssSelector.playlist+" ul").append(this._createListItem(media)).find("li:last-child").hide().slideDown(this.options.playlistOptions.addTime);this._updateControls();this.original.push(media);this.playlist.push(media);if(playNow){this.play(this.playlist.length-1)}else{if(this.original.length===1){this.select(0)}}},remove:function(index){var self=this;if(index===undefined){this._initPlaylist([]);this._refresh(function(){$(self.cssSelector.jPlayer).jPlayer("clearMedia")});return!0}else{if(this.removing){return!1}else{index=(index<0)?self.original.length+index:index;if(0<=index&&index<this.playlist.length){this.removing=!0;$(this.cssSelector.playlist+" li:nth-child("+(index+1)+")").slideUp(this.options.playlistOptions.removeTime,function(){$(this).remove();if(self.shuffled){var item=self.playlist[index];$.each(self.original,function(i){if(self.original[i]===item){self.original.splice(i,1);return!1}});self.playlist.splice(index,1)}else{self.original.splice(index,1);self.playlist.splice(index,1)} 927if(self.original.length){if(index===self.current){self.current=(index<self.original.length)?self.current:self.original.length-1;self.select(self.current)}else if(index<self.current){self.current--}}else{$(self.cssSelector.jPlayer).jPlayer("clearMedia");self.current=0;self.shuffled=!1;self._updateControls()} 928self.removing=!1})} 929return!0}}},select:function(index){index=(index<0)?this.original.length+index:index;if(0<=index&&index<this.playlist.length){this.current=index;this._highlight(index);$(this.cssSelector.jPlayer).jPlayer("setMedia",this.playlist[this.current])}else{this.current=0}},play:function(index){index=(index<0)?this.original.length+index:index;if(0<=index&&index<this.playlist.length){if(this.playlist.length){this.select(index);$(this.cssSelector.jPlayer).jPlayer("play")}}else if(index===undefined){$(this.cssSelector.jPlayer).jPlayer("play")}},pause:function(){$(this.cssSelector.jPlayer).jPlayer("pause")},next:function(){var index=(this.current+1<this.playlist.length)?this.current+1:0;if(this.loop){if(index===0&&this.shuffled&&this.options.playlistOptions.shuffleOnLoop&&this.playlist.length>1){this.shuffle(!0,!0)}else{this.play(index)}}else{if(index>0){this.play(index)}}},previous:function(){var index=(this.current-1>=0)?this.current-1:this.playlist.length-1;if(this.loop&&this.options.playlistOptions.loopOnPrevious||index<this.playlist.length-1){this.play(index)}},shuffle:function(shuffled,playNow){var self=this;if(shuffled===undefined){shuffled=!this.shuffled} 930if(shuffled||shuffled!==this.shuffled){$(this.cssSelector.playlist+" ul").slideUp(this.options.playlistOptions.shuffleTime,function(){self.shuffled=shuffled;if(shuffled){self.playlist.sort(function(){return 0.5-Math.random()})}else{self._originalPlaylist()} 931self._refresh(!0);if(playNow||!$(self.cssSelector.jPlayer).data("jPlayer").status.paused){self.play(0)}else{self.select(0)} 932$(this).slideDown(self.options.playlistOptions.shuffleTime)})}},blur:function(that){if($(this.cssSelector.jPlayer).jPlayer("option","autoBlur")){$(that).blur()}}}})(jQuery);/** 933 * 934 * NOTICE OF LICENSE 935 * 936 * This source file is subject to the Open Software License (OSL 3.0)
937 * that is bundled with this package in the file LICENSE.txt. 938 * It is also available through the world-wide-web at this URL: 939 * http://opensource.org/licenses/osl-3.0.php 940 * 941 * @author FMM Modules 942 * @copyright Copyright 2023 © fmemodules All right reserved 943 * @license MIT License 944 */ 945(function($container){var initialContainerWidth=$container.width();$(window).resize(function(){if($container.width()!==initialContainerWidth){initialContainerWidth=$container.width();$container.trigger('resize',$container)}})}($('#container')));$('#container').on('resize',function(e){$('.jp-video').each(function(index){var $parentContainer=$(this).closest('#every, #container, #containing, #jplayer'),containerWidth=$parentContainer.width();var ARWidth=1280;var ARHeight=720;var aspectRatio=ARHeight/ARWidth;videoHeight=Math.round(aspectRatio*containerWidth);$(this).width(containerWidth).height(videoHeight)})});/*! 946 * Bootstrap v3.3.7 (http://getbootstrap.com) 947 * Copyright 2011-2022 Twitter, Inc. 948 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 949 */ 950 951/*! 952 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=2914b77acb00fe58db444d8ab128de3f) 953 * Config saved to config.json and https://gist.github.com/2914b77acb00fe58db444d8ab128de3f 954 */ 955if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.') 956if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')}}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=null 957this.options=null 958this.enabled=null 959this.timeout=null 960this.hoverState=null 961this.$element=null 962this.inState=null 963this.init('tooltip',element,options)} 964Tooltip.VERSION='3.3.7' 965Tooltip.TRANSITION_DURATION=150 966Tooltip.DEFAULTS={animation:!0,placement:'top',selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:!1,container:!1,viewport:{selector:'body',padding:0}} 967Tooltip.prototype.init=function(type,element,options){this.enabled=!0 968this.type=type 969this.$element=$(element) 970this.options=this.getOptions(options) 971this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport)) 972this.inState={click:!1,hover:!1,focus:!1} 973if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')} 974var triggers=this.options.trigger.split(' ') 975for(var i=triggers.length;i--;){var trigger=triggers[i] 976if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin' 977var eventOut=trigger=='hover'?'mouseleave':'focusout' 978this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this)) 979this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}} 980this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()} 981Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS} 982Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options) 983if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}} 984return options} 985Tooltip.prototype.getDelegateOptions=function(){var options={} 986var defaults=this.getDefaults() 987this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value}) 988return options} 989Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 990if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 991$(obj.currentTarget).data('bs.'+this.type,self)} 992if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focu
vendor: 5,539 bytes, lines 992-1088
992s':'hover']=!0} 993if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in' 994return} 995clearTimeout(self.timeout) 996self.hoverState='in' 997if(!self.options.delay||!self.options.delay.show)return self.show() 998self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)} 999Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return!0} 1000return!1} 1001Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 1002if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 1003$(obj.currentTarget).data('bs.'+this.type,self)} 1004if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=!1} 1005if(self.isInStateTrue())return 1006clearTimeout(self.timeout) 1007self.hoverState='out' 1008if(!self.options.delay||!self.options.delay.hide)return self.hide() 1009self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)} 1010Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type) 1011if(this.hasContent()&&this.enabled){this.$element.trigger(e) 1012var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]) 1013if(e.isDefaultPrevented()||!inDom)return 1014var that=this 1015var $tip=this.tip() 1016var tipId=this.getUID(this.type) 1017this.setContent() 1018$tip.attr('id',tipId) 1019this.$element.attr('aria-describedby',tipId) 1020if(this.options.animation)$tip.addClass('fade') 1021var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement 1022var autoToken=/\s?auto?\s?/i 1023var autoPlace=autoToken.test(placement) 1024if(autoPlace)placement=placement.replace(autoToken,'')||'top' 1025$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this) 1026this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element) 1027this.$element.trigger('inserted.bs.'+this.type) 1028var pos=this.getPosition() 1029var actualWidth=$tip[0].offsetWidth 1030var actualHeight=$tip[0].offsetHeight 1031if(autoPlace){var orgPlacement=placement 1032var viewportDim=this.getPosition(this.$viewport) 1033placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement 1034$tip.removeClass(orgPlacement).addClass(placement)} 1035var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight) 1036this.applyPlacement(calculatedOffset,placement) 1037var complete=function(){var prevHoverState=that.hoverState 1038that.$element.trigger('shown.bs.'+that.type) 1039that.hoverState=null 1040if(prevHoverState=='out')that.leave(that)} 1041$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}} 1042Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip() 1043var width=$tip[0].offsetWidth 1044var height=$tip[0].offsetHeight 1045var marginTop=parseInt($tip.css('margin-top'),10) 1046var marginLeft=parseInt($tip.css('margin-left'),10) 1047if(isNaN(marginTop))marginTop=0 1048if(isNaN(marginLeft))marginLeft=0 1049offset.top+=marginTop 1050offset.left+=marginLeft 1051$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0) 1052$tip.addClass('in') 1053var actualWidth=$tip[0].offsetWidth 1054var actualHeight=$tip[0].offsetHeight 1055if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight} 1056var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight) 1057if(delta.left)offset.left+=delta.left 1058else offset.top+=delta.top 1059var isVertical=/top|bottom/.test(placement) 1060var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight 1061var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight' 1062$tip.offset(offset) 1063this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)} 1064Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')} 1065Tooltip.prototype.setContent=function(){var $tip=this.tip() 1066var title=this.getTitle() 1067$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title) 1068$tip.removeClass('fade in top bottom left right')} 1069Tooltip.prototype.hide=function(callback){var that=this 1070var $tip=$(this.$tip) 1071var e=$.Event('hide.bs.'+this.type) 1072function complete(){if(that.hoverState!='in')$tip.detach() 1073if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)} 1074callback&&callback()} 1075this.$element.trigger(e) 1076if(e.isDefaultPrevented())return 1077$tip.removeClass('in') 1078$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete() 1079this.hoverState=null 1080return this} 1081Tooltip.prototype.fixTitle=function(){var $e=this.$element 1082if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}} 1083Tooltip.prototype.hasContent=function(){return this.getTitle()} 1084Tooltip.prototype.getPosition=function($element){$element=$element||this.$element 1085var el=$element[0] 1086var isBody=el.tagName=='BODY' 1087var elRect=el.getBoundingClientRect() 1088if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
1089var isSvg=window.SVGElement&&el instanceof window.SVGElement 1090var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset()) 1091var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()} 1092var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null 1093return $.extend({},elRect,scroll,outerDims,elOffset)} 1094Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}} 1095Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0} 1096if(!this.$viewport)return delta 1097var viewportPadding=this.options.viewport&&this.options.viewport.padding||0 1098var viewportDimensions=this.getPosition(this.$viewport) 1099if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll 1100var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight 1101if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding 1102var rightEdgeOffset=pos.left+viewportPadding+actualWidth 1103if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}} 1104return delta} 1105Tooltip.prototype.getTitle=function(){var title 1106var $e=this.$element 1107var o=this.options 1108title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) 1109return title} 1110Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000) 1111while(document.getElementById(prefix)) 1112return prefix} 1113Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template) 1114if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}} 1115return this.$tip} 1116Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))} 1117Tooltip.prototype.enable=function(){this.enabled=!0} 1118Tooltip.prototype.disable=function(){this.enabled=!1} 1119Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled} 1120Tooltip.prototype.toggle=function(e){var self=this 1121if(e){self=$(e.currentTarget).data('bs.'+this.type) 1122if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions()) 1123$(e.currentTarget).data('bs.'+this.type,self)}} 1124if(e){self.inState.click=!self.inState.click 1125if(self.isInStateTrue())self.enter(self) 1126else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}} 1127Tooltip.prototype.destroy=function(){var that=this 1128clearTimeout(this.timeout) 1129this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type) 1130if(that.$tip){that.$tip.detach()} 1131that.$tip=null 1132that.$arrow=null 1133that.$viewport=null 1134that.$element=null})} 1135function Plugin(option){return this.each(function(){var $this=$(this) 1136var data=$this.data('bs.tooltip') 1137var options=typeof option=='object'&&option 1138if(!data&&/destroy|hide/.test(option))return 1139if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options))) 1140if(typeof option=='string')data[option]()})} 1141var old=$.fn.tooltip 1142$.fn.tooltip=Plugin 1143$.fn.tooltip.Constructor=Tooltip 1144$.fn.tooltip.noConflict=function(){$.fn.tooltip=old 1145return this}}(jQuery);/*! lozad.js - v1.9.0 - 2019-02-09 1146* https://github.com/ApoorvSaxena/lozad.js 1147* Copyright (c) 2019 Apoorv Saxena; Licensed MIT */ 1148!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";var g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},n="undefined"!=typeof document&&document.documentMode,l={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var e=document.createElement("img");n&&t.getAttribute("data-iesrc")&&(e.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(e.alt=t.getAttribute("data-alt")),t.appendChild(e)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var r=t.children,o=void 0,a=0;a<=r.length-1;a++)(o=r[a].getAttribute("data-src"))&&(r[a].src=o);t.load()}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function f(t){t.setAttribute("data-loaded",!0)}var b=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var r,o,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=g({},l,t),n=e.root,i=e.rootMargin,d=e.threshold,c=e.load,u=e.loaded,s=void 0;return window.IntersectionObserver&&(s=new IntersectionObserver((r=c,o=u,function(t,e){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(e.unobserve(t.target),b(t.target)||(r(t.target),f(t.target),o(t.target)))})}),{root:n,rootMargin:i,threshold:d})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(a,n),e=0;e<t.length;e++)b(t[e])||(s?s.observe(t[e]):(c(t[e]),f(t[e]),u(t[e])))},triggerLoad:function(t){b(t)||(c(t),f(t),u(t))},observer:s}}});(function(undefined){}).call('object'===typeof window&&window||'object'===typeof self&&self||'object'===typeof global&&global||{});var observerLozad;$(document).ready(function(){initLozad();if(typeof prestashop!=='undefined'){prestashop.on('updateProductList',function(event){setTimeout(function(){initLozad()},100)})} 1149lozadObserve("#center_column")});function lozadObserve(selector){if($(selector).length==1){var target=document.querySelector(selector);var observer=new MutationObserver(function(mutations){observerLozad.observe()});var config={attributes:!0,childList:!0,characterData:!0}
1149;observer.observe(target,config)}} 1150function initLozad(){observerLozad=lozad("#center-column .lozad",{load:function(el){if(el.dataset.srcset){el.srcset=el.dataset.srcset}else{el.src=el.dataset.src}}});observerLozad.observe()};/** 1151 * @author Doofinder 1152 * @copyright Doofinder 1153 * @license MIT 1154 * @see https://opensource.org/licenses/MIT 1155 */ 1156class DoofinderAddToCartError extends Error{constructor(reason,status=""){const message="Error adding an item to the cart. Reason: "+reason+". Status code: "+status;super(message);this.name="DoofinderAddToCartError"}} 1157let dfAddToCart=(cartOptions)=>{let IdProductCart;let IdCustomization;if(cartOptions.productID.includes('VAR-')){IdProductCart=cartOptions.group_id;IdCustomization=cartOptions.productID.replace('VAR-','')}else{IdProductCart=cartOptions.productID;IdCustomization=cartOptions.customizationID} 1158let form=document.createElement("form");Object.assign(form,{method:"post",action:cartOptions.cartURL,style:"display: none;"});let quantityInput=document.createElement("input");Object.assign(quantityInput,{type:"number",name:"qty",value:cartOptions.quantity,min:1});let productAttributeInput=document.createElement("input");Object.assign(productAttributeInput,{type:"hidden",name:"id_product_attribute",value:IdCustomization});let productInput=document.createElement("input");Object.assign(productInput,{type:"hidden",name:"id_product",value:IdProductCart});let tokenInput=document.createElement("input");Object.assign(tokenInput,{type:"hidden",name:"token",value:cartOptions.cartToken});let submit=document.createElement("input");submit.setAttribute("type","submit");submit.setAttribute("data-button-action","add-to-cart");form.appendChild(quantityInput);form.appendChild(productAttributeInput);form.appendChild(productInput);form.appendChild(tokenInput);form.appendChild(submit);document.body.appendChild(form);if(typeof prestashop!=='undefined'&&typeof cartOptions.statusPromise!=='undefined'){prestashop.on('updateCart',function(event){if(typeof cartOptions.statusPromise==='undefined'||!event||!event.reason||!event.resp){return} 1159if(event.resp.success){cartOptions.statusPromise.resolve("The item has been successfully added to the cart.")}else{errorList=Array.isArray(event.resp.errors)?event.resp.errors.join(", "):event.resp.errors;console.warn("Error adding to the cart: "+errorList);cartOptions.statusPromise.reject(new DoofinderAddToCartError(errorList));if(0===event.resp.quantity&&'undefined'===typeof event.reason.cart){window.location.href=cartOptions.itemLink}}});prestashop.on('handleError',function(event){if(typeof cartOptions.statusPromise==='undefined'){return} 1160if(event&&event.eventType&&('updateProductInCart'===event.eventType||'updateShoppingCart'===event.eventType||'updateCart'===event.eventType||'updateProductInCart'===event.eventType||'updateProductQuantityInCart'===event.eventType||'addProductToCart'===event.eventType)){console.group(`Error of type '${event.eventType}' adding item to the cart.`);if(event.eventType==='addProductToCart'){console.error("Redirecting user to the item page.");window.location.href=item_link} 1161if(0===event.resp.readyState){console.error("The connection was interrupted while adding to the cart")} 1162console.groupEnd();cartOptions.statusPromise.reject(new DoofinderAddToCartError(message))}})} 1163submit.click();form.remove()} 1164let doofinderManageCart=(cartOptions)=>{dfAddToCart(cartOptions)};/* 1165* 1166* Dynamic Ads + Pixel 1167* 1168* @author BusinessTech.fr - https://www.businesstech.fr 1169* @copyright Business Tech - https://www.businesstech.fr 1170* @license Commercial 1171* 1172* ____ _______ 1173* | _ \ |__ __| 1174* | |_) | | | 1175* | _ < | | 1176* | |_) | | | 1177* |____/ |_| 1178* 1179*/ 1180$(document).ready(function(){if(typeof btPixel==='undefined'||!btPixel.pixel_id||btPixel.activate_pixel!=1){console.warn('Facebook Pixel: btPixel not configured or pixel disabled');return} 1181const sentEvents=new Set();const allowedCapiEvents=new Set(['PageView','ViewContent','ViewCategory','AddToCart','InitiateCheckout','AddPaymentInfo','Purchase','Search','Contact','AddToWishlist']);const initialTimestamp=Math.floor(Date.now()/1000);function getPreciseTimestamp(){return initialTimestamp+Math.floor((Date.now()-(initialTimestamp*1000))/1000)}
1182function canSendEventToConversionApi(eventName){return allowedCapiEvents.has(eventName)} 1183function captureFbclid(){const urlParams=new URLSearchParams(window.location.search);const fbclid=urlParams.get('fbclid');if(fbclid&&fbclid.length>10){const existingFbc=getCookie('_fbc');if(!existingFbc||!isValidFbc(existingFbc)||shouldUpdateFbc(existingFbc,fbclid)){const subdomainIndex=calculateSubdomainIndex();const timestamp=Date.now();const fbc=`fb.${subdomainIndex}.${timestamp}.${fbclid}`;const expirationDate=new Date();expirationDate.setDate(expirationDate.getDate()+30);document.cookie=`_fbc=${fbc}; expires=${expirationDate.toUTCString()}; path=/; secure; samesite=lax`;console.log('Facebook Pixel: fbc cookie set from fbclid')}}} 1184function getCookie(name){const value=`; ${document.cookie}`;const parts=value.split(`; ${name}=`);if(parts.length===2)return parts.pop().split(';').shift();return null} 1185function isValidFbc(fbc){if(!fbc||typeof fbc!=='string')return!1;const parts=fbc.split('.');return parts.length>=4&&parts[0]==='fb'&&!isNaN(parseInt(parts[1]))&&!isNaN(parseInt(parts[2]))} 1186function shouldUpdateFbc(existingFbc,newFbclid){const parts=existingFbc.split('.');if(parts.length<4)return!0;const existingFbclid=parts.slice(3).join('.');return existingFbclid!==newFbclid} 1187function calculateSubdomainIndex(){const hostname=window.location.hostname;const dotCount=(hostname.match(/\./g)||[]).length;if(dotCount===0)return 0;if(dotCount===1)return 1;return 2} 1188captureFbclid();function generateConsistentEventId(eventName,params){if(eventName==='Purchase'){if(btPixel.id_order&&btPixel.orderReference){return'purchase_'+btPixel.orderReference}else if(btPixel.id_order){return'purchase_order_'+btPixel.id_order}} 1189const timestamp=Math.floor(Date.now()/1000);const randomComponent=Math.floor(Math.random()*10000);const userId=btPixel.external_id||'anonymous';return eventName.toLowerCase()+'_'+userId+'_'+timestamp+'_'+randomComponent} 1190function getCategoryIdFromUrl(){const urlParams=new URLSearchParams(window.location.search);return urlParams.get('id_category')} 1191function getPageNumberFromUrl(){const urlParams=new URLSearchParams(window.location.search);return urlParams.get('p')||1} 1192function getSearchQueryFromUrl(){const urlParams=new URLSearchParams(window.location.search);return urlParams.get('search_query')||urlParams.get('s')} 1193function generateEventKey(eventName,params){let keyComponents=[eventName];if(params.content_ids){if(Array.isArray(params.content_ids)){keyComponents.push(params.content_ids.join(','))}else{keyComponents.push(params.content_ids)}} 1194if(params.currency){keyComponents.push(params.currency)} 1195if(params.value){keyComponents.push(params.value)} 1196if(params.content_type){keyComponents.push(params.content_type)} 1197const now=Math.floor(Date.now()/1000);const timeWindow=Math.floor(now/60);keyComponents.push(timeWindow.toString());keyComponents.push('fpa_module');const key=keyComponents.join('_');return btoa(key)} 1198function shouldSendEvent(eventName,params){if(eventName!=='ViewContent'&&eventName!=='PageView'){return!0} 1199if(!params.content_ids){return!0} 1200let normalizedParams={...params};if(Array.isArray(normalizedParams.content_ids)&&normalizedParams.content_ids.length===1){normalizedParams.content_ids=normalizedParams.content_ids[0]} 1201if(typeof normalizedParams.content_ids==='string'&&normalizedParams.content_ids.startsWith('[')&&normalizedParams.content_ids.endsWith(']')){try{const parsed=JSON.parse(normalizedParams.content_ids);if(Array.isArray(parsed)&&parsed.length===1){normalizedParams.content_ids=parsed[0]}}catch(e){}} 1202const eventKey=generateEventKey(eventName,normalizedParams);if(sentEvents.has(eventKey)){console.log(`Facebook Pixel: ${eventName} event deduplicated (key: ${eventKey.substring(0, 20)}...)`);return!1} 1203sentEvents.add(eventKey);if(sentEvents.size>100){const eventsArray=Array.from(sentEvents);sentEvents.clear();eventsArray.slice(-50).forEach(event=>sentEvents.add(event))} 1204return!0} 1205function setupCategoryPaginationTracking(){if(btPixel.currentPage==='category'){let currentPage=getPageNumberFromUrl();let categoryId=getCategoryIdFromUrl();function extractProductIdsFromPage(){const productIds=[];$('[data-id-product]').each(function(){const productId=$(this).data('id-product');if(productId){productIds.push(productId)}});return productIds} 1206function trackCategoryPageView(){const productIds=extractProductIdsFromPage();if(productIds.length>0){let formattedIds=[];productIds.forEach(id=>{let formattedId=id;if(btPixel.prefix){formattedId=btPixel.prefix+formattedId} 1207if(btPixel.prefixLang){formattedId=btPixel.prefixLang+formattedId} 1208formattedIds.push(formattedId)});const categoryName=$('h1.h1').first().text().trim();const viewCategoryParams={content_name:categoryName,content_category:categoryName,content_type:'product',content_ids:formattedIds};const sharedViewCategoryEventId=generateConsistentEventId('ViewCategory',viewCategoryParams);
1208window.btPixelSharedEventId=sharedViewCategoryEventId;fbq("trackCustom","ViewCategory",viewCategoryParams,{'eventID':sharedViewCategoryEventId});console.log('Facebook Pixel: ViewCategory tracked for page '+currentPage+' with '+productIds.length+' products');if(btPixel.useConversionApi){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:'sendApiData',token:btPixel.token,tagContent:JSON.stringify({aDynTags:{content_ids:{value:(Array.isArray(formattedIds)&&formattedIds.length===1)?formattedIds[0]:formattedIds},content_name:{value:categoryName},content_category:{value:categoryName},content_type:{value:'product'}},aTrackingType:{value:'ViewCategory'}}),pagetype:'category',clientTimestamp:getPreciseTimestamp(),client_url:window.location.href,shared_event_id:sharedViewCategoryEventId}})}}} 1209$(document).ajaxComplete(function(event,xhr,settings){if(settings.url&&(settings.url.indexOf('controller=category')!==-1||settings.url.indexOf('?p=')!==-1||settings.url.indexOf('&p=')!==-1)){const urlParams=new URLSearchParams(settings.url.split('?')[1]);const newPage=urlParams.get('p')||1;if(newPage!==currentPage){currentPage=newPage;console.log('Facebook Pixel: Category page changed to '+currentPage);setTimeout(trackCategoryPageView,500)}}});if(window.history&&window.history.pushState){$(window).on('popstate',function(){const newPage=getPageNumberFromUrl();if(newPage!==currentPage){currentPage=newPage;console.log('Facebook Pixel: Category page changed to '+currentPage+' (popstate)');setTimeout(trackCategoryPageView,500)}})} 1210$(document).on('updateProductList',function(){const newPage=getPageNumberFromUrl();if(newPage!==currentPage){currentPage=newPage;console.log('Facebook Pixel: Category page changed to '+currentPage+' (updateProductList)');setTimeout(trackCategoryPageView,500)}})}} 1211if(btPixel.pixel_id!=""&&btPixel.activate_pixel==1){console.log('Facebook Pixel: Initializing pixel with ID:',btPixel.pixel_id);!(function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version="2.0";n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");fbq("init",btPixel.pixel_id);fbq('set','autoConfig',!1,btPixel.pixel_id);console.log('Facebook Pixel: Pixel initialized successfully');if(btPixel.bUseConsent==!0){if(btPixel.bConsentHtmlElement!=""){$(document).on('click','#'+btPixel.bConsentHtmlElement,function(e){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:'updateConsent',token:btPixel.token},success:function(jsonData){const pageViewEventId=generateConsistentEventId('PageView',{});window.btPixelSharedEventId=pageViewEventId;fbq("track","PageView",{},{'eventID':pageViewEventId});if(btPixel.tagContent){const trackingType=btPixel.tagContent.aTrackingType.value;const dynTags=btPixel.tagContent.aDynTags;trackEvent(trackingType,dynTags)}}})})} 1212if(btPixel.bConsentHtmlElementSecond!=""){$(document).on('click','#'+btPixel.bConsentHtmlElementSecond,function(e){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:'updateConsent',token:btPixel.token},success:function(jsonData){const pageViewEventId=generateConsistentEventId('PageView',{});window.btPixelSharedEventId=pageViewEventId;fbq("track","PageView",{},{'eventID':pageViewEventId});if(btPixel.tagContent){const trackingType=btPixel.tagContent.aTrackingType.value;const dynTags=btPixel.tagContent.aDynTags;trackEvent(trackingType,dynTags)}}})})}}else{const pageViewEventId=generateConsistentEventId('PageView',{});window.btPixelSharedEventId=pageViewEventId;fbq("track","PageView",{},{'eventID':pageViewEventId});setupCategoryPaginationTracking();if(btPixel.useConversionApi&&btPixel.useApiForPageView){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:'sendApiData',token:btPixel.token,tagContent:JSON.stringify({aTrackingType:{value:'PageView'}}),useApiForPageView:btPixel.useApiForPageView,pagetype:btPixel.currentPage,clientTimestamp:getPreciseTimestamp(),client_url:window.location.href,shared_event_id:pageViewEventId}})} 1213function generateConsistentEventId(eventName,params){if(eventName==='Purchase'){if(btPixel.id_order&&btPixel.orderReference){return'purchase_'+btPixel.orderReference}else if(btPixel.id_order){return'purchase_order_'+btPixel.id_order}} 1214const timestamp=getPreciseTimestamp();const randomComponent=Math.floor(Math.random()*10000);const userId=btPixel.external_id||'anonymous';return eventName.toLowerCase()+'_'+userId+'_'+timestamp+'_'+randomComponent}
1215function getCategoryIdFromUrl(){const urlParams=new URLSearchParams(window.location.search);return urlParams.get('id_category')} 1216function getSearchQueryFromUrl(){const urlParams=new URLSearchParams(window.location.search);return urlParams.get('search_query')||urlParams.get('s')} 1217function generateEventKey(eventName,params){let keyComponents=[eventName];if(params.content_ids){if(Array.isArray(params.content_ids)){keyComponents.push(params.content_ids.join(','))}else{keyComponents.push(params.content_ids)}} 1218if(params.currency){keyComponents.push(params.currency)} 1219if(params.value){keyComponents.push(params.value)} 1220if(params.content_type){keyComponents.push(params.content_type)} 1221const now=Math.floor(Date.now()/1000);const timeWindow=Math.floor(now/60);keyComponents.push(timeWindow.toString());keyComponents.push('fpa_module');const key=keyComponents.join('_');return btoa(key)} 1222function shouldSendEvent(eventName,params){if(eventName!=='ViewContent'&&eventName!=='PageView'){return!0} 1223if(!params.content_ids){return!0} 1224let normalizedParams={...params};if(Array.isArray(normalizedParams.content_ids)&&normalizedParams.content_ids.length===1){normalizedParams.content_ids=normalizedParams.content_ids[0]} 1225if(typeof normalizedParams.content_ids==='string'&&normalizedParams.content_ids.startsWith('[')&&normalizedParams.content_ids.endsWith(']')){try{const parsed=JSON.parse(normalizedParams.content_ids);if(Array.isArray(parsed)&&parsed.length===1){normalizedParams.content_ids=parsed[0]}}catch(e){}} 1226const eventKey=generateEventKey(eventName,normalizedParams);if(sentEvents.has(eventKey)){console.log(`Facebook Pixel: ${eventName} event deduplicated (key: ${eventKey.substring(0, 20)}...)`);return!1} 1227sentEvents.add(eventKey);if(sentEvents.size>100){const eventsArray=Array.from(sentEvents);sentEvents.clear();eventsArray.slice(-50).forEach(event=>sentEvents.add(event))} 1228return!0} 1229if(btPixel.tagContent&&(btPixel.tagContent.aTrackingType||btPixel.tagContent.aDynTags.content_name||btPixel.tagContent.aDynTags.content_ids)){const trackingType=btPixel.tagContent.aTrackingType?.value;const dynTags=btPixel.tagContent.aDynTags;const trackEvent=(eventName,params)=>{if(eventName==="ViewContent"){if(!params.content_ids||(Array.isArray(params.content_ids)&¶ms.content_ids.length===0)){console.warn('Facebook Pixel: ViewContent event missing or empty content_ids');return} 1230if(!params.content_type){params.content_type='product'} 1231if(params.currency){if(typeof params.currency!=='string'||params.currency.length!==3||!/^[A-Z]{3}$/.test(params.currency)){console.warn('Facebook Pixel: Invalid currency format for ViewContent event, using fallback');params.currency=btPixel.pixelCurrency?btPixel.pixelCurrency.toUpperCase():'EUR'}} 1232if(params.value!==undefined){const numValue=parseFloat(params.value);if(isNaN(numValue)||numValue<0){console.warn('Facebook Pixel: Invalid value for ViewContent event, removing value parameter');delete params.value}else{params.value=numValue.toFixed(2)}} 1233if(params.content_name&&typeof params.content_name!=='string'){console.warn('Facebook Pixel: Invalid content_name for ViewContent event');delete params.content_name} 1234if(params.content_category&&typeof params.content_category!=='string'){console.warn('Facebook Pixel: Invalid content_category for ViewContent event');delete params.content_category}} 1235if(eventName==="Purchase"){if(!params.content_ids){console.warn('Facebook Pixel: Purchase event missing content_ids');return} 1236if(!params.currency){console.warn('Facebook Pixel: Purchase event missing currency');params.currency=btPixel.pixelCurrency?btPixel.pixelCurrency.toUpperCase():'EUR'} 1237if(params.value===undefined||params.value===null){console.warn('Facebook Pixel: Purchase event missing value');return}} 1238if(eventName==="AddToCart"){if(!params.content_ids){console.warn('Facebook Pixel: AddToCart event missing content_ids');return} 1239if(!params.content_type){params.content_type='product'}} 1240const consistentEventId=generateConsistentEventId(eventName,params);fbq(eventName==="ViewCategory"||eventName==="ViewContentHomepage"?"trackCustom":"track",eventName,params,{'eventID':consistentEventId});if(btPixel.useConversionApi==1&&canSendEventToConversionApi(eventName)){try{const dyn={};if(typeof params.content_ids!=='undefined'){dyn.content_ids={value:params.content_ids}} 1241if(typeof params.content_name!=='undefined'){dyn.content_name={value:params.content_name}} 1242if(typeof params.content_category!=='undefined'){dyn.content_category={value:params.content_category}} 1243if(typeof params.content_type!=='undefined'){dyn.content_type={value:params.content_type}} 1244if(typeof params.currency!=='undefined'){dyn.currency={value:params.currency}} 1245if(typeof params.value!=='undefined'){dyn.value={value:params.value}} 1246const payload={aDynTags:dyn,aTrackingType:{value:eventName}};const data={ajax:1,action:'sendApiData',token:btPixel.token,tagContent:JSON.stringify(payload),pagetype:btPixel.currentPage,clientTimestamp:getPreciseTimestamp(),client_url:window.location.href,shared_event_id:consistentEventId};if(eventName==='Purchase'&&btPixel.id_order){data.id_order=btPixel.id_order} 1247$.ajax({type:'POST',url:btPixel.ajaxUrl,dataType:'json',data})}catch(e){}}else if(btPixel.useConversionApi==1){console.warn(`Facebook Pixel: ${eventName} blocked from Conversions API allowlist`)}};const commonParams={content_name:dynTags.content_name?.value,content_category:dynTags.content_category?.value,content_type:dynTags.content_type?.value,};switch(trackingType){case "ViewContent":let currency=dynTags.currency?.value;let value=dynTags.value?.value;
1247let contentIds=dynTags.content_ids?.value;let contentName=dynTags.content_name?.value;let contentCategory=dynTags.content_category?.value;if(!contentIds||(Array.isArray(contentIds)&&contentIds.length===0)){if(typeof prestashop!=='undefined'&&prestashop.page&&prestashop.page.page_name==='product'&&prestashop.page.product){contentIds=[prestashop.page.product.id_product];if(!currency&&prestashop.currency){currency=prestashop.currency.iso_code} 1248if((!value||value==='0.00'||value===0)&&prestashop.page.product.price_amount){value=prestashop.page.product.price_amount}}else{break}} 1249if(currency&&typeof currency==='string'){currency=currency.trim().toUpperCase();if(currency.length!==3||!/^[A-Z]{3}$/.test(currency)){currency=btPixel.pixelCurrency?btPixel.pixelCurrency.toUpperCase():'EUR'}}else{currency=btPixel.pixelCurrency?btPixel.pixelCurrency.toUpperCase():'EUR'} 1250if(value!==undefined&&value!==null&&value!==''){const numValue=parseFloat(value);if(!isNaN(numValue)&&numValue>=0){value=numValue.toFixed(2)}else{value=undefined}} 1251if(contentName&&typeof contentName==='string'){contentName=contentName.trim();if(contentName===''){contentName=undefined}} 1252if(contentCategory&&typeof contentCategory==='string'){contentCategory=contentCategory.trim();if(contentCategory===''){contentCategory=undefined}} 1253const viewContentParams={content_ids:contentIds,content_type:dynTags.content_type?.value||'product',};if(contentName){viewContentParams.content_name=contentName} 1254if(contentCategory){viewContentParams.content_category=contentCategory} 1255if(currency){viewContentParams.currency=currency} 1256if(value!==undefined&&value!=='0.00'){viewContentParams.value=value} 1257if(shouldSendEvent('ViewContent',viewContentParams)){const sharedEventId=generateConsistentEventId('ViewContent',viewContentParams);window.btPixelSharedEventId=sharedEventId;fbq("track","ViewContent",viewContentParams,{'eventID':sharedEventId});if(btPixel.useConversionApi==1){try{const dyn={};if(typeof viewContentParams.content_ids!=='undefined'){dyn.content_ids={value:viewContentParams.content_ids}} 1258if(typeof viewContentParams.content_name!=='undefined'){dyn.content_name={value:viewContentParams.content_name}} 1259if(typeof viewContentParams.content_category!=='undefined'){dyn.content_category={value:viewContentParams.content_category}} 1260if(typeof viewContentParams.content_type!=='undefined'){dyn.content_type={value:viewContentParams.content_type}} 1261if(typeof viewContentParams.currency!=='undefined'){dyn.currency={value:viewContentParams.currency}} 1262if(typeof viewContentParams.value!=='undefined'){dyn.value={value:viewContentParams.value}} 1263const payload={aDynTags:dyn,aTrackingType:{value:'ViewContent'}};$.ajax({type:'POST',url:btPixel.ajaxUrl,dataType:'json',data:{ajax:1,action:'sendApiData',token:btPixel.token,tagContent:JSON.stringify(payload),pagetype:btPixel.currentPage,clientTimestamp:getPreciseTimestamp(),client_url:window.location.href,shared_event_id:sharedEventId}})}catch(e){}}}else{console.log('Facebook Pixel: ViewContent event skipped due to deduplication')} 1264break;case "ViewCategory":let viewCategoryParams={};if(dynTags.content_ids){let viewCategoryContentIds=dynTags.content_ids.value;viewCategoryParams={...commonParams,content_ids:viewCategoryContentIds,}}else if(dynTags.content_name){viewCategoryParams=commonParams} 1265const sharedViewCategoryEventId=generateConsistentEventId('ViewCategory',viewCategoryParams);window.btPixelSharedEventId=sharedViewCategoryEventId;fbq("trackCustom","ViewCategory",viewCategoryParams,{'eventID':sharedViewCategoryEventId});break;case "ViewContentHomepage":if(dynTags.content_ids?.value){let viewContentHomepageContentIds=dynTags.content_ids.value;trackEvent("ViewContentHomepage",{...commonParams,content_ids:viewContentHomepageContentIds})}else{trackEvent("ViewContentHomepage",commonParams)} 1266break;case "AddToCart":let addToCartContentIds=dynTags.content_ids?.value;let addToCartParams={content_ids:addToCartContentIds,content_type:dynTags.content_type?.value,value:dynTags.value?.value,currency:dynTags.currency?.value,};const sharedAddToCartEventId=generateConsistentEventId('AddToCart',addToCartParams);
1266window.btPixelSharedEventId=sharedAddToCartEventId;fbq("track","AddToCart",addToCartParams,{'eventID':sharedAddToCartEventId});break;case "Purchase":let purchaseContentIds=dynTags.content_ids?.value;trackEvent(trackingType,{content_ids:purchaseContentIds,content_type:dynTags.content_type?.value,value:dynTags.value?.value,currency:dynTags.currency?.value,});break;case "Contact":trackEvent("Contact",{});break;case "Search":let searchContentIds=dynTags.content_ids?.value;trackEvent("Search",{content_ids:searchContentIds,content_type:dynTags.content_type?.value,query:dynTags.search_string?.value,});break;case "InitiateCheckout":let initiateCheckoutParams={};if(dynTags.content_ids){initiateCheckoutParams.content_ids=dynTags.content_ids.value} 1267if(dynTags.content_type){initiateCheckoutParams.content_type=dynTags.content_type.value}else{initiateCheckoutParams.content_type='product'} 1268if(dynTags.value){initiateCheckoutParams.value=dynTags.value.value} 1269if(dynTags.currency){initiateCheckoutParams.currency=dynTags.currency.value} 1270if((!initiateCheckoutParams.content_ids||(Array.isArray(initiateCheckoutParams.content_ids)&&initiateCheckoutParams.content_ids.length===0))&&typeof prestashop!=='undefined'&&prestashop.cart&&prestashop.cart.products){let cartProductIds=[];prestashop.cart.products.forEach(function(product){cartProductIds.push(product.id_product)});if(cartProductIds.length>0){initiateCheckoutParams.content_ids=cartProductIds} 1271if(!initiateCheckoutParams.value&&prestashop.cart.totals&&prestashop.cart.totals.total){initiateCheckoutParams.value=prestashop.cart.totals.total.amount} 1272if(!initiateCheckoutParams.currency&&prestashop.currency){initiateCheckoutParams.currency=prestashop.currency.iso_code}} 1273trackEvent("InitiateCheckout",initiateCheckoutParams);break} 1274$(btPixel.btnAddToWishlist).on("click",function(){trackEvent("AddToWishlist",{content_type:'product'})});$('.ps-shown-by-js').on("click",function(){let paymentInfoParams={};if(btPixel.tagContent&&btPixel.tagContent.aDynTags&&btPixel.tagContent.aDynTags.value&&btPixel.tagContent.aDynTags.currency){paymentInfoParams={value:btPixel.tagContent.aDynTags.value.value,currency:btPixel.tagContent.aDynTags.currency.value};if(paymentInfoParams.value){const numValue=parseFloat(paymentInfoParams.value);if(!isNaN(numValue)){paymentInfoParams.value=numValue.toFixed(2)}}} 1275trackEvent("AddPaymentInfo",paymentInfoParams);if(btPixel.useConversionApi==1){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:"sendPaymentInfoToApi",token:btPixel.token,eventId:generateConsistentEventId('AddPaymentInfo',paymentInfoParams),}})}})} 1276if(typeof prestashop!=='undefined'){prestashop.on('updateCart',function(event){if(event&&event.reason&&event.reason.linkAction=="add-to-cart"){var idProduct=0;var idProductAttribute=0;if(typeof event.reason.idProductAttribute!=="undefined"){idProductAttribute=event.reason.idProductAttribute}else if(typeof event.resp.id_product_attribute!=="undefined"){idProductAttribute=event.resp.id_product_attribute} 1277if(typeof event.reason.idProduct!=="undefined"){idProduct=event.reason.idProduct}else if(typeof event.resp.id_product!=="undefined"){idProduct=event.resp.id_product} 1278const preliminaryAddToCartParams={content_ids:[idProduct],content_type:'product',value:0,currency:btPixel.pixelCurrency||'EUR',};const sharedAddToCartEventId=generateConsistentEventId('AddToCart',preliminaryAddToCartParams);window.btPixelSharedEventId=sharedAddToCartEventId;$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:"addToCart",id_product_attribute:idProductAttribute,id_product:idProduct,token:btPixel.token,shared_event_id:sharedAddToCartEventId,},success:function(jsonData,textStatus,jqXHR){let ajaxContentIds=jsonData.content_ids;if(Array.isArray(ajaxContentIds)&&ajaxContentIds.length===1){ajaxContentIds=ajaxContentIds[0]} 1279const addToCartParams={content_ids:ajaxContentIds,content_type:'product',value:jsonData.value,currency:jsonData.currency,};fbq('set','autoConfig',!1,btPixel.pixel_id);fbq("track","AddToCart",addToCartParams,{'eventID':sharedAddToCartEventId})},})}});prestashop.on('updatedProduct',function(event){if(event){$.ajax({type:"POST",url:btPixel.ajaxUrl,dataType:"json",data:{ajax:1,action:"updateCombination",id_product_attribute:event.id_product_attribute,id_product:$('input[name="id_product"').val(),token:btPixel.token,},success:function(jsonData,textStatus,jqXHR){if(jsonData.currency&&jsonData.value){let currency=jsonData.currency.toString().trim().toUpperCase();if(currency.length!==3||!/^[A-Z]{3}$/.test(currency)){currency=btPixel.pixelCurrency||'EUR'} 1280let value=parseFloat(jsonData.value);if(isNaN(value)||value<0){value=0} 1281value=value.toFixed(2);let combinationContentIds=jsonData.content_id;if(Array.isArray(combinationContentIds)&&combinationContentIds.length===1){combinationContentIds=combinationContentIds[0]} 1282const combinationParams={content_name:jsonData.content_name,content_category:jsonData.content_category,content_ids:combinationContentIds,content_type:'product',currency:currency,value:value,};
1282if(shouldSendEvent('ViewContent',combinationParams)){fbq('set','autoConfig',!1,btPixel.pixel_id);const viewContentEventId=generateConsistentEventId('ViewContent',combinationParams);fbq("track","ViewContent",combinationParams,{'eventID':viewContentEventId})}}},})}})}}}});!function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,i){function n(e){return Math.floor(e)}function o(){var e=S.params.autoplay,a=S.slides.eq(S.activeIndex);a.attr("data-swiper-autoplay")&&(e=a.attr("data-swiper-autoplay")||S.params.autoplay),S.autoplayTimeoutId=setTimeout(function(){S.params.loop?(S.fixLoop(),S._slideNext(),S.emit("onAutoplay",S)):S.isEnd?i.autoplayStopOnLast?S.stopAutoplay():(S._slideTo(0),S.emit("onAutoplay",S)):(S._slideNext(),S.emit("onAutoplay",S))},e)}function l(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodeType){var i;return s.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==s.length)return s[0]}function p(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,s=new t(function(e){e.forEach(function(e){S.onResize(!0),S.emit("onObserverUpdate",S,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes||a.attributes,childList:"undefined"==typeof a.childList||a.childList,characterData:"undefined"==typeof a.characterData||a.characterData}),S.observers.push(s)}function d(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;
1282if(!S.params.allowSwipeToNext&&(S.isHorizontal()&&39===a||!S.isHorizontal()&&40===a))return!1;if(!S.params.allowSwipeToPrev&&(S.isHorizontal()&&37===a||!S.isHorizontal()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(S.container.parents("."+S.params.slideClass).length>0&&0===S.container.parents("."+S.params.slideActiveClass).length)return;var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,r=window.innerHeight,n=S.container.offset();S.rtl&&(n.left=n.left-S.container[0].scrollLeft);for(var o=[[n.left,n.top],[n.left+S.width,n.top],[n.left,n.top+S.height],[n.left+S.width,n.top+S.height]],l=0;l<o.length;l++){var p=o[l];p[0]>=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+r&&(t=!0)}if(!t)return}S.isHorizontal()?(37!==a&&39!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!S.rtl||37===a&&S.rtl)&&S.slideNext(),(37===a&&!S.rtl||39===a&&S.rtl)&&S.slidePrev()):(38!==a&&40!==a||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&S.slideNext(),38===a&&S.slidePrev())}}function u(){var e="onwheel",a=e in document;if(!a){var t=document.createElement("div");t.setAttribute(e,"return;"),a="function"==typeof t[e]}return!a&&document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}function c(e){e.originalEvent&&(e=e.originalEvent);var a=0,t=S.rtl?-1:1,s=m(e);if(S.params.mousewheelForceToAxis)if(S.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return;a=s.pixelX*t}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*t:-s.pixelY;if(0!==a){if(S.params.mousewheelInvert&&(a=-a),S.params.freeMode){var i=S.getWrapperTranslate()+a*S.params.mousewheelSensitivity,r=S.isBeginning,n=S.isEnd;if(i>=S.minTranslate()&&(i=S.minTranslate()),i<=S.maxTranslate()&&(i=S.maxTranslate()),S.setWrapperTransition(0),S.setWrapperTranslate(i),S.updateProgress(),S.updateActiveIndex(),(!r&&S.isBeginning||!n&&S.isEnd)&&S.updateClasses(),S.params.freeModeSticky?(clearTimeout(S.mousewheel.timeout),S.mousewheel.timeout=setTimeout(function(){S.slideReset()},300)):S.params.lazyLoading&&S.lazy&&S.lazy.load(),S.emit("onScroll",S,e),S.params.autoplay&&S.params.autoplayDisableOnInteraction&&S.stopAutoplay(),0===i||i===S.maxTranslate())return}else{if((new window.Date).getTime()-S.mousewheel.lastScrollTime>60)if(a<0)if(S.isEnd&&!S.params.loop||S.animating){if(S.params.mousewheelReleaseOnEdges)return!0}else S.slideNext(),S.emit("onScroll",S,e);else if(S.isBeginning&&!S.params.loop||S.animating){if(S.params.mousewheelReleaseOnEdges)return!0}else S.slidePrev(),S.emit("onScroll",S,e);S.mousewheel.lastScrollTime=(new window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function m(e){var a=10,t=40,s=800,i=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=r,r=0),n=i*a,o=r*a,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1===e.deltaMode?(n*=t,o*=t):(n*=s,o*=s)),n&&!i&&(i=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:i,spinY:r,pixelX:n,pixelY:o}}function h(e,t){e=a(e);var s,i,r,n=S.rtl?-1:1;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),r=e.attr("data-swiper-parallax-y"),i||r?(i=i||"0",r=r||"0"):S.isHorizontal()?(i=s,r="0"):(r=s,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t*n+"%":i*t*n+"px",r=r.indexOf("%")>=0?parseInt(r,10)*t+"%":r*t+"px",e.transform("translate3d("+i+", "+r+",0px)")}function g(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,i);var f={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold: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",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,zoom:!1,zoomMax:3,zoomMin:1,zoomToggle:!0,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mou
1282sewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,mousewheelEventsTarged:"container",hashnav:!1,hashnavWatchState:!1,history:!1,replaceState:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",normalizeSlideIndex:!0,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",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",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",paginationClickableClass:"swiper-pagination-clickable",paginationModifierClass:"swiper-pagination-",lazyLoadingClass:"swiper-lazy",lazyStatusLoadingClass:"swiper-lazy-loading",lazyStatusLoadedClass:"swiper-lazy-loaded",lazyPreloaderClass:"swiper-lazy-preloader",notificationClass:"swiper-notification",preloaderClass:"preloader",zoomContainerClass:"swiper-zoom-container",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},v=i&&i.virtualTranslate;i=i||{};var w={};for(var y in i)if("object"!=typeof i[y]||null===i[y]||(i[y].nodeType||i[y]===window||i[y]===document||"undefined"!=typeof s&&i[y]instanceof s||"undefined"!=typeof jQuery&&i[y]instanceof jQuery))w[y]=i[y];else{w[y]={};for(var x in i[y])w[y][x]=i[y][x]}for(var T in f)if("undefined"==typeof i[T])i[T]=f[T];else if("object"==typeof i[T])for(var b in f[T])"undefined"==typeof i[T][b]&&(i[T][b]=f[T][b]);var S=this;if(S.params=i,S.originalParams=w,S.classNames=[],"undefined"!=typeof a&&"undefined"!=typeof s&&(a=s),("undefined"!=typeof a||(a="undefined"==typeof s?window.Dom7||window.Zepto||window.jQuery:s))&&(S.$=a,S.currentBreakpoint=void 0,S.getActiveBreakpoint=function(){if(!S.params.breakpoints)return!1;var e,a=!1,t=[];for(e in S.params.breakpoints)S.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,a){return parseInt(e,10)>parseInt(a,10)});for(var s=0;s<t.length;s++)e=t[s],e>=window.innerWidth&&!a&&(a=e);return a||"max"},S.setBreakpoint=function(){var e=S.getActiveBreakpoint();if(e&&S.currentBreakpoint!==e){var a=e in S.params.breakpoints?S.params.breakpoints[e]:S.originalParams,t=S.params.loop&&a.slidesPerView!==S.params.slidesPerView;for(var s in a)S.params[s]=a[s];S.currentBreakpoint=e,t&&S.destroyLoop&&S.reLoop(!0)}},S.params.breakpoints&&S.setBreakpoint(),S.container=a(e),0!==S.container.length)){if(S.container.length>1){var C=[];return S.container.each(function(){C.push(new t(this,i))}),C}S.container[0].swiper=S,S.container.data("swiper",S),S.classNames.push(S.params.containerModifierClass+S.params.direction),S.params.freeMode&&S.classNames.push(S.params.containerModifierClass+"free-mode"),S.support.flexbox||(S.classNames.push(S.params.containerModifierClass+"no-flexbox"),S.params.slidesPerColumn=1),S.params.autoHeight&&S.classNames.push(S.params.containerModifierClass+"autoheight"),(S.params.parallax||S.params.watchSlidesVisibility)&&(S.params.watchSlidesProgress=!0),S.params.touchReleaseOnEdges&&(S.params.resistanceRatio=0),["cube","coverflow","flip"].indexOf(S.params.effect)>=0&&(S.support.transforms3d?(S.params.watchSlidesProgress=!0,S.classNames.push(S.params.containerModifierClass+"3d")):S.params.effect="slide"),"slide"!==S.params.effect&&S.classNames.push(S.params.containerModifierClass+S.params.effect),"cube"===S.params.effect&&(S.params.resistanceRatio=0,S.params.slidesPerView=1,S.params.slidesPerColumn=1,S.params.slidesPerGroup=1,S.params.centeredSlides=!1,S.params.spaceBetween=0,S.params.virtualTranslate=!0,S.params.setWrapperSize=!1),"fade"!==S.params.effect&&"flip"!==S.params.effect||(S.params.slidesPerView=1,S.params.slidesPerColumn=1,S.params.slidesPerGroup=1,S.params.watchSlidesProgress=!0,S.params.spaceBetween=0,S.params.setWrapperSize=!1,"undefined"==typeof v&&(S.params.virtualTranslate=!0)),S.params.grabCursor&&S.support.touch&&(S.params.grabCursor=!1),S.wrapper=S.container.children("."+S.params.wrapperClass),S.params.pagination&&(S.paginationContainer=a(S.params.pagination),S.params.uniqueNavElements&&"string"==typeof S.params.pagination&&S.paginationContainer.length>1&&1===S.container.find(S.params.pagination).length&&(S.paginationContainer=S.container.find(S.params.pagination)),"bullets"===S.params.paginationType&&S.params.paginationClickable?S.paginationContainer.addClass(S.params.paginationModifierClass+"clickable"):S.params.paginationClickable=!1,S.paginationContainer.addClass(S.params.paginationModifierClass+S.params.paginationType)),(S.params.nextButton||S.params.prevButton)&&(S.params.nextButton&&(S.nextButton=a(S.params.nextButton),S.params.uniqueNavElements&&"string"==typeof S.params.nextButton&&S.nextButton.length>1&&1===S.container.find(S.params.nextButton).length&&(S.nextButton=S.container.find(S.params.nextButton))),S.params.prevButton&&(S.prevButton=a(S.params.prevButton),S.params.uniqueNavElements&&"string"==typeof S.params.prevButton&&S.prevButton.length>1&&1===S.container.find(S.params.prevButton).length&&(S.prevButton=S.container.find(S.params.prevButton)))),S.isHorizontal=function(){return"horizontal"===S.params.direction},S.rtl=S.isHorizontal()&&("rtl"===S.container[0].dir.toLowerCase()||"rtl"===S.container.css("direction")),S.rtl&&S.classNames.push(S.params.containerModifierClass+"rtl"),S.rtl&&(S.wrongRTL="-webkit-box"===S.wrapper.css("display")),S.params.slidesPerColumn>1&&S.classNames.push(S.params.containerModifierClass+"multirow"),S.device.android&&S.classNames.push(S.params.containerModifierClass+"android"),S.container.addClass(S.classNames.join(" ")),S.translate=0,S.progress=0,S.velocity=0,S.lockSwipeToNext=function(){S.params.allowSwipeToNext=!1,S.params.allowSwipeToPrev===!1&&S.params.grabCursor&&S.unsetGrabCursor(
1282)},S.lockSwipeToPrev=function(){S.params.allowSwipeToPrev=!1,S.params.allowSwipeToNext===!1&&S.params.grabCursor&&S.unsetGrabCursor()},S.lockSwipes=function(){S.params.allowSwipeToNext=S.params.allowSwipeToPrev=!1,S.params.grabCursor&&S.unsetGrabCursor()},S.unlockSwipeToNext=function(){S.params.allowSwipeToNext=!0,S.params.allowSwipeToPrev===!0&&S.params.grabCursor&&S.setGrabCursor()},S.unlockSwipeToPrev=function(){S.params.allowSwipeToPrev=!0,S.params.allowSwipeToNext===!0&&S.params.grabCursor&&S.setGrabCursor()},S.unlockSwipes=function(){S.params.allowSwipeToNext=S.params.allowSwipeToPrev=!0,S.params.grabCursor&&S.setGrabCursor()},S.setGrabCursor=function(e){S.container[0].style.cursor="move",S.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",S.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",S.container[0].style.cursor=e?"grabbing":"grab"},S.unsetGrabCursor=function(){S.container[0].style.cursor=""},S.params.grabCursor&&S.setGrabCursor(),S.imagesToLoad=[],S.imagesLoaded=0,S.loadImage=function(e,a,t,s,i,r){function n(){r&&r()}var o;e.complete&&i?n():a?(o=new window.Image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},S.preloadImages=function(){function e(){"undefined"!=typeof S&&null!==S&&(void 0!==S.imagesLoaded&&S.imagesLoaded++,S.imagesLoaded===S.imagesToLoad.length&&(S.params.updateOnImagesReady&&S.update(),S.emit("onImagesReady",S)))}S.imagesToLoad=S.container.find("img");for(var a=0;a<S.imagesToLoad.length;a++)S.loadImage(S.imagesToLoad[a],S.imagesToLoad[a].currentSrc||S.imagesToLoad[a].getAttribute("src"),S.imagesToLoad[a].srcset||S.imagesToLoad[a].getAttribute("srcset"),S.imagesToLoad[a].sizes||S.imagesToLoad[a].getAttribute("sizes"),!0,e)},S.autoplayTimeoutId=void 0,S.autoplaying=!1,S.autoplayPaused=!1,S.startAutoplay=function(){return"undefined"==typeof S.autoplayTimeoutId&&(!!S.params.autoplay&&(!S.autoplaying&&(S.autoplaying=!0,S.emit("onAutoplayStart",S),void o())))},S.stopAutoplay=function(e){S.autoplayTimeoutId&&(S.autoplayTimeoutId&&clearTimeout(S.autoplayTimeoutId),S.autoplaying=!1,S.autoplayTimeoutId=void 0,S.emit("onAutoplayStop",S))},S.pauseAutoplay=function(e){S.autoplayPaused||(S.autoplayTimeoutId&&clearTimeout(S.autoplayTimeoutId),S.autoplayPaused=!0,0===e?(S.autoplayPaused=!1,o()):S.wrapper.transitionEnd(function(){S&&(S.autoplayPaused=!1,S.autoplaying?o():S.stopAutoplay())}))},S.minTranslate=function(){return-S.snapGrid[0]},S.maxTranslate=function(){return-S.snapGrid[S.snapGrid.length-1]},S.updateAutoHeight=function(){var e=[],a=0;if("auto"!==S.params.slidesPerView&&S.params.slidesPerView>1)for(r=0;r<Math.ceil(S.params.slidesPerView);r++){var t=S.activeIndex+r;if(t>S.slides.length)break;e.push(S.slides.eq(t)[0])}else e.push(S.slides.eq(S.activeIndex)[0]);for(r=0;r<e.length;r++)if("undefined"!=typeof e[r]){var s=e[r].offsetHeight;a=s>a?s:a}a&&S.wrapper.css("height",a+"px")},S.updateContainerSize=function(){var e,a;e="undefined"!=typeof S.params.width?S.params.width:S.container[0].clientWidth,a="undefined"!=typeof S.params.height?S.params.height:S.container[0].clientHeight,0===e&&S.isHorizontal()||0===a&&!S.isHorizontal()||(e=e-parseInt(S.container.css("padding-left"),10)-parseInt(S.container.css("padding-right"),10),a=a-parseInt(S.container.css("padding-top"),10)-parseInt(S.container.css("padding-bottom"),10),S.width=e,S.height=a,S.size=S.isHorizontal()?S.width:S.height)},S.updateSlidesSize=function(){S.slides=S.wrapper.children("."+S.params.slideClass),S.snapGrid=[],S.slidesGrid=[],S.slidesSizesGrid=[];var e,a=S.params.spaceBetween,t=-S.params.slidesOffsetBefore,s=0,i=0;if("undefined"!=typeof S.size){"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*S.size),S.virtualSize=-a,S.rtl?S.slides.css({marginLeft:"",marginTop:""}):S.slides.css({marginRight:"",marginBottom:""});var r;S.params.slidesPerColumn>1&&(r=Math.floor(S.slides.length/S.params.slidesPerColumn)===S.slides.length/S.params.slidesPerColumn?S.slides.length:Math.ceil(S.slides.length/S.params.slidesPerColumn)*S.params.slidesPerColumn,"auto"!==S.params.slidesPerView&&"row"===S.params.slidesPerColumnFill&&(r=Math.max(r,S.params.slidesPerView*S.params.slidesPerColumn)));var o,l=S.params.slidesPerColumn,p=r/l,d=p-(S.params.slidesPerColumn*p-S.slides.length);for(e=0;e<S.slides.length;e++){o=0;var u=S.slides.eq(e);
1282if(S.params.slidesPerColumn>1){var c,m,h;"column"===S.params.slidesPerColumnFill?(m=Math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*r/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=Math.floor(e/p),m=e-h*p),u.css("margin-"+(S.isHorizontal()?"top":"left"),0!==h&&S.params.spaceBetween&&S.params.spaceBetween+"px").attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===S.params.slidesPerView?(o=S.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),S.params.roundLengths&&(o=n(o))):(o=(S.size-(S.params.slidesPerView-1)*a)/S.params.slidesPerView,S.params.roundLengths&&(o=n(o)),S.isHorizontal()?S.slides[e].style.width=o+"px":S.slides[e].style.height=o+"px"),S.slides[e].swiperSlideSize=o,S.slidesSizesGrid.push(o),S.params.centeredSlides?(t=t+o/2+s/2+a,0===e&&(t=t-S.size/2-a),Math.abs(t)<.001&&(t=0),i%S.params.slidesPerGroup===0&&S.snapGrid.push(t),S.slidesGrid.push(t)):(i%S.params.slidesPerGroup===0&&S.snapGrid.push(t),S.slidesGrid.push(t),t=t+o+a),S.virtualSize+=o+a,s=o,i++)}S.virtualSize=Math.max(S.virtualSize,S.size)+S.params.slidesOffsetAfter;var g;if(S.rtl&&S.wrongRTL&&("slide"===S.params.effect||"coverflow"===S.params.effect)&&S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}),S.support.flexbox&&!S.params.setWrapperSize||(S.isHorizontal()?S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}):S.wrapper.css({height:S.virtualSize+S.params.spaceBetween+"px"})),S.params.slidesPerColumn>1&&(S.virtualSize=(o+S.params.spaceBetween)*r,S.virtualSize=Math.ceil(S.virtualSize/S.params.slidesPerColumn)-S.params.spaceBetween,S.isHorizontal()?S.wrapper.css({width:S.virtualSize+S.params.spaceBetween+"px"}):S.wrapper.css({height:S.virtualSize+S.params.spaceBetween+"px"}),S.params.centeredSlides)){for(g=[],e=0;e<S.snapGrid.length;e++)S.snapGrid[e]<S.virtualSize+S.snapGrid[0]&&g.push(S.snapGrid[e]);S.snapGrid=g}if(!S.params.centeredSlides){for(g=[],e=0;e<S.snapGrid.length;e++)S.snapGrid[e]<=S.virtualSize-S.size&&g.push(S.snapGrid[e]);S.snapGrid=g,Math.floor(S.virtualSize-S.size)-Math.floor(S.snapGrid[S.snapGrid.length-1])>1&&S.snapGrid.push(S.virtualSize-S.size)}0===S.snapGrid.length&&(S.snapGrid=[0]),0!==S.params.spaceBetween&&(S.isHorizontal()?S.rtl?S.slides.css({marginLeft:a+"px"}):S.slides.css({marginRight:a+"px"}):S.slides.css({marginBottom:a+"px"})),S.params.watchSlidesProgress&&S.updateSlidesOffset()}},S.updateSlidesOffset=function(){for(var e=0;e<S.slides.length;e++)S.slides[e].swiperSlideOffset=S.isHorizontal()?S.slides[e].offsetLeft:S.slides[e].offsetTop},S.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=S.translate||0),0!==S.slides.length){"undefined"==typeof S.slides[0].swiperSlideOffset&&S.updateSlidesOffset();var a=-e;S.rtl&&(a=e),S.slides.removeClass(S.params.slideVisibleClass);for(var t=0;t<S.slides.length;t++){var s=S.slides[t],i=(a+(S.params.centeredSlides?S.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+S.params.spaceBetween);if(S.params.watchSlidesVisibility){var r=-(a-s.swiperSlideOffset),n=r+S.slidesSizesGrid[t],o=r>=0&&r<S.size||n>0&&n<=S.size||r<=0&&n>=S.size;o&&S.slides.eq(t).addClass(S.params.slideVisibleClass)}s.progress=S.rtl?-i:i}}},S.updateProgress=function(e){"undefined"==typeof e&&(e=S.translate||0);var a=S.maxTranslate()-S.minTranslate(),t=S.isBeginning,s=S.isEnd;0===a?(S.progress=0,S.isBeginning=S.isEnd=!0):(S.progress=(e-S.minTranslate())/a,S.isBeginning=S.progress<=0,S.isEnd=S.progress>=1),S.isBeginning&&!t&&S.emit("onReachBeginning",S),S.isEnd&&!s&&S.emit("onReachEnd",S),S.params.watchSlidesProgress&&S.updateSlidesProgress(e),S.emit("onProgress",S,S.progress)},S.updateActiveIndex=function(){var e,a,t,s=S.rtl?S.translate:-S.translate;for(a=0;a<S.slidesGrid.length;a++)"undefined"!=typeof S.slidesGrid[a+1]?s>=S.slidesGrid[a]&&s<S.slidesGrid[a+1]-(S.slidesGrid[a+1]-S.slidesGrid[a])/2?e=a:s>=S.slidesGrid[a]&&s<S.slidesGrid[a+1]&&(e=a+1):s>=S.slidesGrid[a]&&(e=a);S.params.normalizeSlideIndex&&(e<0||"undefined"==typeof e)&&(e=0),t=Math.floor(e/S.params.slidesPerGroup),t>=S.snapGrid.length&&(t=S.snapGrid.length-1),e!==S.activeIndex&&(S.snapIndex=t,S.previousIndex=S.activeIndex,S.activeIndex=e,S.updateClasses(),S.updateRealIndex())},S.updateRealIndex=function(){S.realIndex=S.slides.eq(S.activeIndex).attr("data-swiper-slide-index")||S.activeIndex},S.updateClasses=function(){S.slides.removeClass(S.params.slideActiveClass+" "+S.params.slideNextClass+" "+S.params.slidePrevClass+" "+S.params.slideDuplicateActiveClass+" "+S.params.slideDuplicateNextClass+" "+S.params.slideDuplicatePrevClass);var e=S.slides.eq(S.activeIndex);e.addClass(S.params.slideActiveClass),i.loop&&(e.hasClass(S.params.slideDuplicateClass)?S.wrapper.children("."+S.params.slideClass+":not(."+S.params.slideDuplicateClass+')[data-swiper-slide-index="'+S.realIndex+'"]').addClass(S.params.slideDuplicateActiveClass):S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass+'[data-swiper-slide-index="'+S.realIndex+'"]').addClass(S.params.slideDuplicateActiveClass));var t=e.next("."+S.params.slideClass).addClass(S.params.slideNextClass);S.params.loop&&0===t.length&&(t=S.slides.eq(0),t.addClass(S.params.slideNextClass));var s=e.prev("."+S.params.slideClass).addClass(S.params.slidePrevClass);if(S.params.loop&&0===s.length&&(s=S.slides.eq(-1),s.addClass(S.params.slidePrevClass)),i.loop&&(t.hasClass(S.params.slideDuplicateClass)?S.wrapper.children("."+S.params.slideClass+":not(."+S.params.slideDuplicateClass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addClass(S.params.slideDuplicateNextClass):S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addClass(S.params.slideDuplicateNextClass),s.hasClass(S.params.slideDuplicateClass)?S.wrapper.children("."+S.params.slideClass+":not(."+S.params.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(S.params.slideDuplicatePrevClass):S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(S.params.slideDuplicatePrevClass)),S.paginationContainer&&S.paginationContainer.length>
12820){var r,n=S.params.loop?Math.ceil((S.slides.length-2*S.loopedSlides)/S.params.slidesPerGroup):S.snapGrid.length;if(S.params.loop?(r=Math.ceil((S.activeIndex-S.loopedSlides)/S.params.slidesPerGroup),r>S.slides.length-1-2*S.loopedSlides&&(r-=S.slides.length-2*S.loopedSlides),r>n-1&&(r-=n),r<0&&"bullets"!==S.params.paginationType&&(r=n+r)):r="undefined"!=typeof S.snapIndex?S.snapIndex:S.activeIndex||0,"bullets"===S.params.paginationType&&S.bullets&&S.bullets.length>0&&(S.bullets.removeClass(S.params.bulletActiveClass),S.paginationContainer.length>1?S.bullets.each(function(){a(this).index()===r&&a(this).addClass(S.params.bulletActiveClass)}):S.bullets.eq(r).addClass(S.params.bulletActiveClass)),"fraction"===S.params.paginationType&&(S.paginationContainer.find("."+S.params.paginationCurrentClass).text(r+1),S.paginationContainer.find("."+S.params.paginationTotalClass).text(n)),"progress"===S.params.paginationType){var o=(r+1)/n,l=o,p=1;S.isHorizontal()||(p=o,l=1),S.paginationContainer.find("."+S.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+l+") scaleY("+p+")").transition(S.params.speed)}"custom"===S.params.paginationType&&S.params.paginationCustomRender&&(S.paginationContainer.html(S.params.paginationCustomRender(S,r+1,n)),S.emit("onPaginationRendered",S,S.paginationContainer[0]))}S.params.loop||(S.params.prevButton&&S.prevButton&&S.prevButton.length>0&&(S.isBeginning?(S.prevButton.addClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.disable(S.prevButton)):(S.prevButton.removeClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.enable(S.prevButton))),S.params.nextButton&&S.nextButton&&S.nextButton.length>0&&(S.isEnd?(S.nextButton.addClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.disable(S.nextButton)):(S.nextButton.removeClass(S.params.buttonDisabledClass),S.params.a11y&&S.a11y&&S.a11y.enable(S.nextButton))))},S.updatePagination=function(){if(S.params.pagination&&S.paginationContainer&&S.paginationContainer.length>0){var e="";if("bullets"===S.params.paginationType){for(var a=S.params.loop?Math.ceil((S.slides.length-2*S.loopedSlides)/S.params.slidesPerGroup):S.snapGrid.length,t=0;t<a;t++)e+=S.params.paginationBulletRender?S.params.paginationBulletRender(S,t,S.params.bulletClass):"<"+S.params.paginationElement+' class="'+S.params.bulletClass+'"></'+S.params.paginationElement+">";S.paginationContainer.html(e),S.bullets=S.paginationContainer.find("."+S.params.bulletClass),S.params.paginationClickable&&S.params.a11y&&S.a11y&&S.a11y.initPagination()}"fraction"===S.params.paginationType&&(e=S.params.paginationFractionRender?S.params.paginationFractionRender(S,S.params.paginationCurrentClass,S.params.paginationTotalClass):'<span class="'+S.params.paginationCurrentClass+'"></span> / <span class="'+S.params.paginationTotalClass+'"></span>',S.paginationContainer.html(e)),"progress"===S.params.paginationType&&(e=S.params.paginationProgressRender?S.params.paginationProgressRender(S,S.params.paginationProgressbarClass):'<span class="'+S.params.paginationProgressbarClass+'"></span>',S.paginationContainer.html(e)),"custom"!==S.params.paginationType&&S.emit("onPaginationRendered",S,S.paginationContainer[0])}},S.update=function(e){function a(){S.rtl?-S.translate:S.translate;s=Math.min(Math.max(S.translate,S.maxTranslate()),S.minTranslate()),S.setWrapperTranslate(s),S.updateActiveIndex(),S.updateClasses()}if(S.updateContainerSize(),S.updateSlidesSize(),S.updateProgress(),S.updatePagination(),S.updateClasses(),S.params.scrollbar&&S.scrollbar&&S.scrollbar.set(),e){var t,s;S.controller&&S.controller.spline&&(S.controller.spline=void 0),S.params.freeMode?(a(),S.params.autoHeight&&S.updateAutoHeight()):(t=("auto"===S.params.slidesPerView||S.params.slidesPerView>1)&&S.isEnd&&!S.params.centeredSlides?S.slideTo(S.slides.length-1,0,!1,!0):S.slideTo(S.activeIndex,0,!1,!0),t||a())}else S.params.autoHeight&&S.updateAutoHeight()},S.onResize=function(e){S.params.breakpoints&&S.setBreakpoint();var a=S.params.allowSwipeToPrev,t=S.params.allowSwipeToNext;S.params.allowSwipeToPrev=S.params.allowSwipeToNext=!0,S.updateContainerSize(),S.updateSlidesSize(),("auto"===S.params.slidesPerView||S.params.freeMode||e)&&S.updatePagination(),S.params.scrollbar&&S.scrollbar&&S.scrollbar.set(),S.c
1282ontroller&&S.controller.spline&&(S.controller.spline=void 0);var s=!1;if(S.params.freeMode){var i=Math.min(Math.max(S.translate,S.maxTranslate()),S.minTranslate());S.setWrapperTranslate(i),S.updateActiveIndex(),S.updateClasses(),S.params.autoHeight&&S.updateAutoHeight()}else S.updateClasses(),s=("auto"===S.params.slidesPerView||S.params.slidesPerView>1)&&S.isEnd&&!S.params.centeredSlides?S.slideTo(S.slides.length-1,0,!1,!0):S.slideTo(S.activeIndex,0,!1,!0);S.params.lazyLoading&&!s&&S.lazy&&S.lazy.load(),S.params.allowSwipeToPrev=a,S.params.allowSwipeToNext=t},S.touchEventsDesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerEnabled?S.touchEventsDesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled&&(S.touchEventsDesktop={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}),S.touchEvents={start:S.support.touch||!S.params.simulateTouch?"touchstart":S.touchEventsDesktop.start,move:S.support.touch||!S.params.simulateTouch?"touchmove":S.touchEventsDesktop.move,end:S.support.touch||!S.params.simulateTouch?"touchend":S.touchEventsDesktop.end},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===S.params.touchEventsTarget?S.container:S.wrapper).addClass("swiper-wp8-"+S.params.direction),S.initEvents=function(e){var a=e?"off":"on",t=e?"removeEventListener":"addEventListener",s="container"===S.params.touchEventsTarget?S.container[0]:S.wrapper[0],r=S.support.touch?s:document,n=!!S.params.nested;if(S.browser.ie)s[t](S.touchEvents.start,S.onTouchStart,!1),r[t](S.touchEvents.move,S.onTouchMove,n),r[t](S.touchEvents.end,S.onTouchEnd,!1);else{if(S.support.touch){var o=!("touchstart"!==S.touchEvents.start||!S.support.passiveListener||!S.params.passiveListeners)&&{passive:!0,capture:!1};s[t](S.touchEvents.start,S.onTouchStart,o),s[t](S.touchEvents.move,S.onTouchMove,n),s[t](S.touchEvents.end,S.onTouchEnd,o)}(i.simulateTouch&&!S.device.ios&&!S.device.android||i.simulateTouch&&!S.support.touch&&S.device.ios)&&(s[t]("mousedown",S.onTouchStart,!1),document[t]("mousemove",S.onTouchMove,n),document[t]("mouseup",S.onTouchEnd,!1))}window[t]("resize",S.onResize),S.params.nextButton&&S.nextButton&&S.nextButton.length>0&&(S.nextButton[a]("click",S.onClickNext),S.params.a11y&&S.a11y&&S.nextButton[a]("keydown",S.a11y.onEnterKey)),S.params.prevButton&&S.prevButton&&S.prevButton.length>0&&(S.prevButton[a]("click",S.onClickPrev),S.params.a11y&&S.a11y&&S.prevButton[a]("keydown",S.a11y.onEnterKey)),S.params.pagination&&S.params.paginationClickable&&(S.paginationContainer[a]("click","."+S.params.bulletClass,S.onClickIndex),S.params.a11y&&S.a11y&&S.paginationContainer[a]("keydown","."+S.params.bulletClass,S.a11y.onEnterKey)),(S.params.preventClicks||S.params.preventClicksPropagation)&&s[t]("click",S.preventClicks,!0)},S.attachEvents=function(){S.initEvents()},S.detachEvents=function(){S.initEvents(!0)},S.allowClick=!0,S.preventClicks=function(e){S.allowClick||(S.params.preventClicks&&e.preventDefault(),S.params.preventClicksPropagation&&S.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},S.onClickNext=function(e){e.preventDefault(),S.isEnd&&!S.params.loop||S.slideNext()},S.onClickPrev=function(e){e.preventDefault(),S.isBeginning&&!S.params.loop||S.slidePrev()},S.onClickIndex=function(e){e.preventDefault();var t=a(this).index()*S.params.slidesPerGroup;S.params.loop&&(t+=S.loopedSlides),S.slideTo(t)},S.updateClickedSlide=function(e){var t=l(e,"."+S.params.slideClass),s=!1;if(t)for(var i=0;i<S.slides.length;i++)S.slides[i]===t&&(s=!0);if(!t||!s)return S.clickedSlide=void 0,void(S.clickedIndex=void 0);if(S.clickedSlide=t,S.clickedIndex=a(t).index(),S.params.slideToClickedSlide&&void 0!==S.clickedIndex&&S.clickedIndex!==S.activeIndex){var r,n=S.clickedIndex;if(S.params.loop){if(S.animating)return;r=a(S.clickedSlide).attr("data-swiper-slide-index"),S.params.centeredSlides?n<S.loopedSlides-S.params.slidesPerView/2||n>S.slides.length-S.loopedSlides+S.params.slidesPerView/2?(S.fixLoop(),n=S.wrapper.children("."+S.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+S.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){S.slideTo(n)},0)):S.slideTo(n):n>S.slides.length-S.params.slidesPerView?(S.fixLoop(),n=S.wrapper.children("."+S.params.slideClass+'[data-swiper-slide-index="'+r+'"]:not(.'+S.params.slideDuplicateClass+")").eq(0).index(),setTimeout(function(){S.slideTo(n)},0)):S.slideTo(n)}else S.slideTo(n)}};var z,M,E,P,I,k,L,D,B,H,G="input, select, textarea, button, video",X=Date.now(),Y=[];S.animating=!1,S.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var A,O;S.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),A="touchstart"===e.type,A||!("which"in e)||3!==e.which){if(S.params.noSwiping&&l(e,"."+S.params.noSwipingClass))return void(S.allowClick=!0);if(!S.params.swipeHandler||l(e,S.params.swipeHandler)){var t=S.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s=S.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(S.device.ios&&S.params.iOSEdgeSwipeDetection&&t<=S.params.iOSEdgeSwipeThreshold)){if(z=!0,M=!1,E=!0,I=void 0,O=void 0,S.touches.startX=t,S.touches.startY=s,P=Date.now(),S.allowClick=!0,S.updateContainerSize(),S.swipeDirection=void 0,S.params.threshold>0&&(D=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(G)&&(i=!1),document.activeElement&&a(document.activeElement).is(G)&&document.activeElement.blur(),i&&e.preventDefault()}S.emit("onTouchStart",S,e)}}}},S.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!A||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return S.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(S.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(S.params.onlyExternal)return S.allowClick=!1,void(z&&(S.touches.startX=S.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,S.touches.startY=S.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,P=Date.now()));if(A&&S.params.touchReleaseOnEdges&&!S.params.loop)if(S.isHorizontal()){if(S.touches.currentX<S.touches.startX&&S.translate<=S.maxTranslate()||S.touches.currentX>S.touches.startX&&S.translate>=S.minTranslate())return}else if(S.touches.currentY<S.touches.startY&&S.translate<=S.maxTranslate()||S.touches.currentY>S.touches.startY&&S.translate>=S.minTranslate())return;if(A&&document.activeElement&&e.target===document.activeElement&&a(e.target).is(G))return M=!0,void(S.allowClick=!1);if(E&&S.emit("onTouchMove",S,e),!(e.targetTouches&&e.targetTouches.length>1)){if(S.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,S.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof I){var t;S.isHorizontal()&&S.touches.currentY===S.touches.startY||!S.isHorizontal()&&S.touches.currentX!==S.touches.startX?I=!1:(t=180*Math.atan2(Math.abs(S.touches.currentY-S.touches.startY),Math.abs(S.touches.currentX-S.touches.startX))/Math.PI,I=S.isHorizontal()?t>S.params.touchAngle:90-t>S.params.touchAngle)}if(I&&S.emit("onTouchMoveOpposite",S,e),"undefined"==typeof O&&S.browser.ieTouch&&(S.touches.currentX===S.touches.startX&&S.touches.currentY===S.touches.startY||(O=!0)),z){if(I
vendor: 12,241 bytes, line 1282
1282)return void(z=!1);if(O||!S.browser.ieTouch){S.allowClick=!1,S.emit("onSliderMove",S,e),e.preventDefault(),S.params.touchMoveStopPropagation&&!S.params.nested&&e.stopPropagation(),M||(i.loop&&S.fixLoop(),L=S.getWrapperTranslate(),S.setWrapperTransition(0),S.animating&&S.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),S.params.autoplay&&S.autoplaying&&(S.params.autoplayDisableOnInteraction?S.stopAutoplay():S.pauseAutoplay()),H=!1,!S.params.grabCursor||S.params.allowSwipeToNext!==!0&&S.params.allowSwipeToPrev!==!0||S.setGrabCursor(!0)),M=!0;var s=S.touches.diff=S.isHorizontal()?S.touches.currentX-S.touches.startX:S.touches.currentY-S.touches.startY;s*=S.params.touchRatio,S.rtl&&(s=-s),S.swipeDirection=s>0?"prev":"next",k=s+L;var r=!0;if(s>0&&k>S.minTranslate()?(r=!1,S.params.resistance&&(k=S.minTranslate()-1+Math.pow(-S.minTranslate()+L+s,S.params.resistanceRatio))):s<0&&k<S.maxTranslate()&&(r=!1,S.params.resistance&&(k=S.maxTranslate()+1-Math.pow(S.maxTranslate()-L-s,S.params.resistanceRatio))),r&&(e.preventedByNestedSwiper=!0),!S.params.allowSwipeToNext&&"next"===S.swipeDirection&&k<L&&(k=L),!S.params.allowSwipeToPrev&&"prev"===S.swipeDirection&&k>L&&(k=L),S.params.threshold>0){if(!(Math.abs(s)>S.params.threshold||D))return void(k=L);if(!D)return D=!0,S.touches.startX=S.touches.currentX,S.touches.startY=S.touches.currentY,k=L,void(S.touches.diff=S.isHorizontal()?S.touches.currentX-S.touches.startX:S.touches.currentY-S.touches.startY)}S.params.followFinger&&((S.params.freeMode||S.params.watchSlidesProgress)&&S.updateActiveIndex(),S.params.freeMode&&(0===Y.length&&Y.push({position:S.touches[S.isHorizontal()?"startX":"startY"],time:P}),Y.push({position:S.touches[S.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),S.updateProgress(k),S.setWrapperTranslate(k))}}}}},S.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),E&&S.emit("onTouchEnd",S,e),E=!1,z){S.params.grabCursor&&M&&z&&(S.params.allowSwipeToNext===!0||S.params.allowSwipeToPrev===!0)&&S.setGrabCursor(!1);var t=Date.now(),s=t-P;if(S.allowClick&&(S.updateClickedSlide(e),S.emit("onTap",S,e),s<300&&t-X>300&&(B&&clearTimeout(B),B=setTimeout(function(){S&&(S.params.paginationHide&&S.paginationContainer.length>0&&!a(e.target).hasClass(S.params.bulletClass)&&S.paginationContainer.toggleClass(S.params.paginationHiddenClass),S.emit("onClick",S,e))},300)),s<300&&t-X<300&&(B&&clearTimeout(B),S.emit("onDoubleTap",S,e))),X=Date.now(),setTimeout(function(){S&&(S.allowClick=!0)},0),!z||!M||!S.swipeDirection||0===S.touches.diff||k===L)return void(z=M=!1);z=M=!1;var i;if(i=S.params.followFinger?S.rtl?S.translate:-S.translate:-k,S.params.freeMode){if(i<-S.minTranslate())return void S.slideTo(S.activeIndex);if(i>-S.maxTranslate())return void(S.slides.length<S.snapGrid.length?S.slideTo(S.snapGrid.length-1):S.slideTo(S.slides.length-1));if(S.params.freeModeMomentum){if(Y.length>1){var r=Y.pop(),n=Y.pop(),o=r.position-n.position,l=r.time-n.time;S.velocity=o/l,S.velocity=S.velocity/2,Math.abs(S.velocity)<S.params.freeModeMinimumVelocity&&(S.velocity=0),(l>150||(new window.Date).getTime()-r.time>300)&&(S.velocity=0)}else S.velocity=0;S.velocity=S.velocity*S.params.freeModeMomentumVelocityRatio,Y.length=0;var p=1e3*S.params.freeModeMomentumRatio,d=S.velocity*p,u=S.translate+d;S.rtl&&(u=-u);var c,m=!1,h=20*Math.abs(S.velocity)*S.params.freeModeMomentumBounceRatio;if(u<S.maxTranslate())S.params.freeModeMomentumBounce?(u+S.maxTranslate()<-h&&(u=S.maxTranslate()-h),c=S.maxTranslate(),m=!0,H=!0):u=S.maxTranslate();else if(u>S.minTranslate())S.params.freeModeMomentumBounce?(u-S.minTranslate()>h&&(u=S.minTranslate()+h),c=S.minTranslate(),m=!0,H=!0):u=S.minTranslate();else if(S.params.freeModeSticky){var g,f=0;for(f=0;f<S.snapGrid.length;f+=1)if(S.snapGrid[f]>-u){g=f;break}u=Math.abs(S.snapGrid[g]-u)<Math.abs(S.snapGrid[g-1]-u)||"next"===S.swipeDirection?S.snapGrid[g]:S.snapGrid[g-1],S.rtl||(u=-u)}if(0!==S.velocity)p=S.rtl?Math.abs((-u-S.translate)/S.velocity):Math.abs((u-S.translate)/S.velocity);else if(S.params.freeModeSticky)return void S.slideReset();S.params.freeModeMomentumBounce&&m?(S.updateProgress(c),S.setWrapperTransition(p),S.setWrapperTranslate(u),S.onTransitionStart(),S.animating=!0,S.wrapper.transitionEnd(function(){S&&H&&(S.emit("onMomentumBounce",S),S.setWrapperTransition(S.params.speed),S.setWrapperTranslate(c),S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd()}))})):S.velocity?(S.updateProgress(u),S.setWrapperTransition(p),S.setWrapperTranslate(u),S.onTransitionStart(),S.animating||(S.animating=!0,S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd()}))):S.updateProgress(u),S.updateActiveIndex()}return void((!S.params.freeModeMomentum||s>=S.params.longSwipesMs)&&(S.updateProgress(),S.updateActiveIndex()))}var v,w=0,y=S.slidesSizesGrid[0];for(v=0;v<S.slidesGrid.length;v+=S.params.slidesPerGroup)"undefined"!=typeof S.slidesGrid[v+S.params.slidesPerGroup]?i>=S.slidesGrid[v]&&i<S.slidesGrid[v+S.params.slidesPerGroup]&&(w=v,y=S.slidesGrid[v+S.params.slidesPerGroup]-S.slidesGrid[v]):i>=S.slidesGrid[v]&&(w=v,y=S.slidesGrid[S.slidesGrid.length-1]-S.slidesGrid[S.slidesGrid.length-2]);var x=(i-S.slidesGrid[w])/y;if(s>S.params.longSwipesMs){if(!S.params.longSwipes)return void S.slideTo(S.activeIndex);"next"===S.swipeDirection&&(x>=S.params.longSwipesRatio?S.slideTo(w+S.params.slidesPerGroup):S.slideTo(w)),"prev"===S.swipeDirection&&(x>1-S.params.longSwipesRatio?S.slideTo(w+S.params.slidesPerGroup):S.slideTo(w))}else{if(!S.params.shortSwipes)return void S.slideTo(S.activeIndex);"next"===S.swipeDirection&&S.slideTo(w+S.params.slidesPerGroup),"prev"===S.swipeDirection&&S.slideTo(w)}}},S._slideTo=function(e,a){return S.slideTo(e,a,!0,!0)},S.slideTo=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),S.snapIndex=Math.floor(e/S.params.slidesPerGroup),S.snapIndex>=S.snapGrid.length&&(S.snapIndex=S.snapGrid.length-1);var i=-S.snapGrid[S.snapIndex];if(S.params.autoplay&&S.autoplaying&&(s||!S.params.autoplayDisableOnInteraction?S.pauseAutoplay(a):S.stopAutoplay()),S.updateProgress(i),S.params.normalizeSlideIndex)for(var r=0;r<S.slidesGrid.length;r++)-Math.floor(100*i)>=Math.floor(100*S.slidesGrid[r])&&(e=r);return!(!S.params.allowSwipeToNext&&i<S.translate&&i<S.minTranslate())&&(!(!S.params.allowSwipeToPrev&&i>S.translate&&i>S.maxTranslate()&&(S.activeIndex||0)!==e)&&("undefined"==typeof a&&(a=S.params.speed),S.previousIndex=S.activeIndex||0,S.activeIndex=e,S.updateRealIndex(),S.rtl&&-i===S.translate||!S.rtl&&i===S.translate?(S.params.autoHeight&&S.updateAutoHeight(),S.updateClasses(),"slide"!==S.params.effect&&S.setWrapperTranslate(i),!1):(S.updateClasses(),S.onTransitionStart(t),0===a||S.browser.lteIE9?(S.setWrapperTranslate(i),S.setWrapperTransition(0),S.onTransitionEnd(t)):(S.setWrapperTranslate(i),S.setWrapperTransition(a),S.animating||(S.animating=!0,S.wrapper.transitionEnd(function(){S&&S.onTransitionEnd(t)}))),!0)))},S.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),S.params.autoHeight&&S.updateAutoHeight(),S.lazy&&S.lazy.onTransitionStart(),e&&(S.emit("onTransitionStart",S),S.activeIndex!==S.previousIndex&&(S.emit("onSlideChangeStart",S),S.activeIndex>S.previousIndex?S.emit("onSlideNextStart",S):S.emit("onSlidePrevStart",S)))},S.onTransitionEnd=function(e){S.animating=!1,S.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),S.lazy&&S.lazy.onTransitionEnd(),e&&(S.emit("onTransitionEnd",S),S.activeIndex!==S.previousIndex&&(S.emit("onSlideChangeEnd",S),S.activeIndex>S.previousIndex?S.emit("onSlideNextEnd",S):S.emit("onSlidePrevEnd",S))),S.params.history&&S.history&&S.history.setHistory(S.params.history,S.activeIndex),S.params.hashnav&&S.hashnav&&S.hashnav.setHash()},S.slideNext=function(e,a,t){if(S.params.loop){if(S.animating)return!1;S.fixLoop();S.container[0].clientLeft;return S.slideTo(S.activeIndex+S.params.slidesPerGroup,a,e,t)}return S.slideTo(S.activeIndex+S.params.slidesPerGroup,a,e,t)},S._slideNext=function(e){return S.slideNext(!0,e,!0)},S.slidePrev=function(e,a,t){if(S.params.loop){if(S.animating)return!1;S.fixLoop();S.container[0].clientLeft;return S.slideTo(S.activeIndex-1,a,e,t)}return S.slideTo(S.activeIndex-1,a,e,t)},S._slidePrev=function(e){return S.slidePrev(!0,e,!0)},S.slideReset=function(e,a,t){return S.slideTo(S.activeIndex,a,e)},S.disableTouchControl=function(){return S.params.onlyExternal=!0,!0},S.enableTouchControl=function(){return S.params.onlyExternal=!1,!0},S.setWrapperTransition=function(e,a){S.wrapper.transition(e),"slide"!==S.params.effect&&S.effects[S.params.effect]&&S.effects[S.params.effect].setTransition(e),S.params.parallax&&S.parallax&&S.parallax.setTransition(e),S.params.scrollbar&&S.scrollbar&&S.scrollbar.setTransition(e),S.params.control&&S.controller&&S.controller.setTransition(e,a),S.emit("onSetTransition",S,e)},S.setWrapperTranslate=function(e,a,t){var s=0,i=0,r=0;S.isHorizontal()?s=S.rtl?-e:e:i=e,S.params.roundLengths&&(s=n(s),i=n(i)),S.params.virtualTranslate||(S.support.transforms3d?S.wrapper.transform("translate3d("+s+"px, "+i+"px, "+r+"px)"):S.wrapper.transform("translate("+s+"px, "+i+"px)")),S.translate=S.isHorizontal()?s:i;var o,l=S.maxTranslate()-S.minTranslate();o=0===l?0:(e-S.minTranslate())/l,o!==S.progress&&S.updateProgress(e),a&&S.updateActiveIndex(),"slide"!==S.params.effect&&S.effects[S.params.effect]&&S.effects[S.params.effect].setTranslate(S.translate),S.params.parallax&&S.parallax&&S.parallax.setTranslate(S.translate),S.params.scrollbar&&S.scrollbar&&S.scrollbar.setTranslate(S.translate),S.params.control&&S.controller&&S.controller.setTranslate(S.translate,t),S.emit("onSetTranslate",S,S.translate)},S.getTranslate=function(e,a){var t,s,i,r;return"undefined"==typeof a&&(a="x"),S.params.virtualTranslate?S.rtl?-S.translate:S.translate:(i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(s=i.transform||i.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.WebKitCSSMatrix("none"===s?"":s)):(r=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=r.toString().split(",")),"x"===a&&(s=window.WebKitCSSMatrix?r.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===a&&(s=window.WebKitCSSMatrix?r.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),S.rtl&&s&&(s=-s),s||0)},S.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=S.isHorizontal()?"x":"y"),S.getTranslate(S.wrapper[0],e)},S.observers=[],S.initObservers=function(){if(S.params.observeParents)for(var e=S.container.parents(),a=0;a<e.length;a++)p(e[a]);p(S.container[0],{childList:!1}),p(S.wrapper[0],{attributes:!1})},S.disconnectObservers=function(){for(var e=0;e<S.observers.length;e++)S.observers[e].disconnect();S.observers=[]},S.createLoop=function(){S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass).remove();var e=S.wrapper.children("."+S.params.slideClass);"auto"!==S.params.slidesPerView||S.params.loopedSlides||(S.params.loopedSlides=e.length),S.loopedSlides=parseInt(S.params.loopedSlides||S.params.slidesPerView,10),S.loopedSlides=S.loopedSlides+S.params.loopAdditionalSlides,S.loopedSlides>e.length&&(S.loopedSlides=e.length);var t,s=[],i=[];for(e.each(function(t,r){var n=a(this);t<S.loopedSlides&&i.push(r),t<e.length&&t>=e.length-S.loopedSlides&&s.push(r),n.attr("data-swiper-slide-index",t)}),t=0;t<i.length;t++)S.wrapper.append(a(i[t].cloneNode(!0)).addClass(S.params.slideDuplicateClass));for(t=s.length-1;t>=0;t--)S.wrapper.prepend(a(s[t].cloneNode(!0)).addClass(S.params.slideDuplicateClass))},S.destroyLoop=function(){S.wrapper.children("."+S.params.slideClass+"."+S.params.slideDuplicateClass).remove(),S.slides.removeAttr("data-swiper-slide-index")},S.reLoop=function(e){var a=S.activeIndex-S.loopedSlides;S.destroyLoop(),S.createLoop(),S.updateSlidesSize(),e&&S.slideTo(a+S.loopedSlides,0,!1)},S.fixLoop=function(){var e;S.activeIndex<S.loopedSlides?(e=S.slides.length-3*S.loopedSlides+S.activeIndex,e+=S.loopedSlides,S.slideTo(e,0,!1,!0)):("auto"===S.params.slidesPerView&&S.activeIndex>=2*S.loopedSlides||S.activeIndex>
1282S.slides.length-2*S.params.slidesPerView)&&(e=-S.slides.length+S.activeIndex+S.loopedSlides,e+=S.loopedSlides,S.slideTo(e,0,!1,!0))},S.appendSlide=function(e){if(S.params.loop&&S.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&S.wrapper.append(e[a]);else S.wrapper.append(e);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0)},S.prependSlide=function(e){S.params.loop&&S.destroyLoop();var a=S.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&S.wrapper.prepend(e[t]);a=S.activeIndex+e.length}else S.wrapper.prepend(e);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0),S.slideTo(a,0,!1)},S.removeSlide=function(e){S.params.loop&&(S.destroyLoop(),S.slides=S.wrapper.children("."+S.params.slideClass));var a,t=S.activeIndex;if("object"==typeof e&&e.length){for(var s=0;s<e.length;s++)a=e[s],S.slides[a]&&S.slides.eq(a).remove(),a<t&&t--;t=Math.max(t,0)}else a=e,S.slides[a]&&S.slides.eq(a).remove(),a<t&&t--,t=Math.max(t,0);S.params.loop&&S.createLoop(),S.params.observer&&S.support.observer||S.update(!0),S.params.loop?S.slideTo(t+S.loopedSlides,0,!1):S.slideTo(t,0,!1)},S.removeAllSlides=function(){for(var e=[],a=0;a<S.slides.length;a++)e.push(a);S.removeSlide(e)},S.effects={fade:{setTranslate:function(){for(var e=0;e<S.slides.length;e++){var a=S.slides.eq(e),t=a[0].swiperSlideOffset,s=-t;S.params.virtualTranslate||(s-=S.translate);var i=0;S.isHorizontal()||(i=s,s=0);var r=S.params.fade.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:r}).transform("translate3d("+s+"px, "+i+"px, 0px)")}},setTransition:function(e){if(S.slides.transition(e),S.params.virtualTranslate&&0!==e){var a=!1;S.slides.transitionEnd(function(){if(!a&&S){a=!0,S.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<e.length;t++)S.wrapper.trigger(e[t])}})}}},flip:{setTranslate:function(){for(var e=0;e<S.slides.length;e++){var t=S.slides.eq(e),s=t[0].progress;S.params.flip.limitRotation&&(s=Math.max(Math.min(t[0].progress,1),-1));var i=t[0].swiperSlideOffset,r=-180*s,n=r,o=0,l=-i,p=0;if(S.isHorizontal()?S.rtl&&(n=-n):(p=l,l=0,o=-n,n=0),t[0].style.zIndex=-Math.abs(Math.round(s))+S.slides.length,S.params.flip.slideShadows){var d=S.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),u=S.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===d.length&&(d=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"left":"top")+'"></div>'),t.append(d)),0===u.length&&(u=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"right":"bottom")+'"></div>'),t.append(u)),d.length&&(d[0].style.opacity=Math.max(-s,0)),u.length&&(u[0].style.opacity=Math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){if(S.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),S.params.virtualTranslate&&0!==e){var t=!1;S.slides.eq(S.activeIndex).transitionEnd(function(){if(!t&&S&&a(this).hasClass(S.params.slideActiveClass)){t=!0,S.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=0;s<e.length;s++)S.wrapper.trigger(e[s])}})}}},cube:{setTranslate:function(){var e,t=0;S.params.cube.shadow&&(S.isHorizontal()?(e=S.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),S.wrapper.append(e)),e.css({height:S.width+"px"})):(e=S.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),S.container.append(e))));for(var s=0;s<S.slides.length;s++){var i=S.slides.eq(s),r=90*s,n=Math.floor(r/360);S.rtl&&(r=-r,n=Math.floor(-r/360));var o=Math.max(Math.min(i[0].progress,1),-1),l=0,p=0,d=0;s%4===0?(l=4*-n*S.size,d=0):(s-1)%4===0?(l=0,d=4*-n*S.size):(s-2)%4===0?(l=S.size+4*n*S.size,d=S.size):(s-3)%4===0&&(l=-S.size,d=3*S.size+4*S.size*n),S.rtl&&(l=-l),S.isHorizontal()||(p=l,l=0);var u="rotateX("+(S.isHorizontal()?0:-r)+"deg) rotateY("+(S.isHorizontal()?r:0)+"deg) translate3d("+l+"px, "+p+"px, "+d+"px)";if(o<=1&&o>
1282-1&&(t=90*s+90*o,S.rtl&&(t=90*-s-90*o)),i.transform(u),S.params.cube.slideShadows){var c=S.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=S.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"left":"top")+'"></div>'),i.append(c)),0===m.length&&(m=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"right":"bottom")+'"></div>'),i.append(m)),c.length&&(c[0].style.opacity=Math.max(-o,0)),m.length&&(m[0].style.opacity=Math.max(o,0))}}if(S.wrapper.css({"-webkit-transform-origin":"50% 50% -"+S.size/2+"px","-moz-transform-origin":"50% 50% -"+S.size/2+"px","-ms-transform-origin":"50% 50% -"+S.size/2+"px","transform-origin":"50% 50% -"+S.size/2+"px"}),S.params.cube.shadow)if(S.isHorizontal())e.transform("translate3d(0px, "+(S.width/2+S.params.cube.shadowOffset)+"px, "+-S.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+S.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),g=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),f=S.params.cube.shadowScale,v=S.params.cube.shadowScale/g,w=S.params.cube.shadowOffset;e.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(S.height/2+w)+"px, "+-S.height/2/v+"px) rotateX(-90deg)")}var y=S.isSafari||S.isUiWebView?-S.size/2:0;S.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(S.isHorizontal()?0:t)+"deg) rotateY("+(S.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){S.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),S.params.cube.shadow&&!S.isHorizontal()&&S.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=S.translate,t=S.isHorizontal()?-e+S.width/2:-e+S.height/2,s=S.isHorizontal()?S.params.coverflow.rotate:-S.params.coverflow.rotate,i=S.params.coverflow.depth,r=0,n=S.slides.length;r<n;r++){var o=S.slides.eq(r),l=S.slidesSizesGrid[r],p=o[0].swiperSlideOffset,d=(t-p-l/2)/l*S.params.coverflow.modifier,u=S.isHorizontal()?s*d:0,c=S.isHorizontal()?0:s*d,m=-i*Math.abs(d),h=S.isHorizontal()?0:S.params.coverflow.stretch*d,g=S.isHorizontal()?S.params.coverflow.stretch*d:0;Math.abs(g)<.001&&(g=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var f="translate3d("+g+"px,"+h+"px,"+m+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(f),o[0].style.zIndex=-Math.abs(Math.round(d))+1,S.params.coverflow.slideShadows){var v=S.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),w=S.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"left":"top")+'"></div>'),o.append(v)),0===w.length&&(w=a('<div class="swiper-slide-shadow-'+(S.isHorizontal()?"right":"bottom")+'"></div>'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(S.browser.ie){var y=S.wrapper[0].style;y.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){S.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},S.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==S.slides.length)){var s=S.slides.eq(e),i=s.find("."+S.params.lazyLoadingClass+":not(."+S.params.lazyStatusLoadedClass+"):not(."+S.params.lazyStatusLoadingClass+")");!s.hasClass(S.params.lazyLoadingClass)||s.hasClass(S.params.lazyStatusLoadedClass)||s.hasClass(S.params.lazyStatusLoadingClass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var e=a(this);e.addClass(S.params.lazyStatusLoadingClass);var i=e.attr("data-background"),r=e.attr("data-src"),n=e.attr("data-srcset"),o=e.attr("data-sizes");S.loadImage(e[0],r||i,n,o,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeAttr("data-background")):(n&&(e.attr("srcset",n
1282),e.removeAttr("data-srcset")),o&&(e.attr("sizes",o),e.removeAttr("data-sizes")),r&&(e.attr("src",r),e.removeAttr("data-src"))),e.addClass(S.params.lazyStatusLoadedClass).removeClass(S.params.lazyStatusLoadingClass),s.find("."+S.params.lazyPreloaderClass+", ."+S.params.preloaderClass).remove(),S.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasClass(S.params.slideDuplicateClass)){var l=S.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+S.params.slideDuplicateClass+")");S.lazy.loadImageInSlide(l.index(),!1)}else{var p=S.wrapper.children("."+S.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');S.lazy.loadImageInSlide(p.index(),!1)}}S.emit("onLazyImageReady",S,s[0],e[0])}),S.emit("onLazyImageLoad",S,s[0],e[0])})}},load:function(){var e,t=S.params.slidesPerView;if("auto"===t&&(t=0),S.lazy.initialImageLoaded||(S.lazy.initialImageLoaded=!0),S.params.watchSlidesVisibility)S.wrapper.children("."+S.params.slideVisibleClass).each(function(){S.lazy.loadImageInSlide(a(this).index())});else if(t>1)for(e=S.activeIndex;e<S.activeIndex+t;e++)S.slides[e]&&S.lazy.loadImageInSlide(e);else S.lazy.loadImageInSlide(S.activeIndex);if(S.params.lazyLoadingInPrevNext)if(t>1||S.params.lazyLoadingInPrevNextAmount&&S.params.lazyLoadingInPrevNextAmount>1){var s=S.params.lazyLoadingInPrevNextAmount,i=t,r=Math.min(S.activeIndex+i+Math.max(s,i),S.slides.length),n=Math.max(S.activeIndex-Math.max(i,s),0);for(e=S.activeIndex+t;e<r;e++)S.slides[e]&&S.lazy.loadImageInSlide(e);for(e=n;e<S.activeIndex;e++)S.slides[e]&&S.lazy.loadImageInSlide(e)}else{var o=S.wrapper.children("."+S.params.slideNextClass);o.length>0&&S.lazy.loadImageInSlide(o.index());var l=S.wrapper.children("."+S.params.slidePrevClass);l.length>0&&S.lazy.loadImageInSlide(l.index())}},onTransitionStart:function(){S.params.lazyLoading&&(S.params.lazyLoadingOnTransitionStart||!S.params.lazyLoadingOnTransitionStart&&!S.lazy.initialImageLoaded)&&S.lazy.load()},onTransitionEnd:function(){S.params.lazyLoading&&!S.params.lazyLoadingOnTransitionStart&&S.lazy.load()}},S.scrollbar={isTouched:!1,setDragPosition:function(e){var a=S.scrollbar,t=S.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,s=t-a.track.offset()[S.isHorizontal()?"left":"top"]-a.dragSize/2,i=-S.minTranslate()*a.moveDivider,r=-S.maxTranslate()*a.moveDivider;s<i?s=i:s>r&&(s=r),s=-s/a.moveDivider,S.updateProgress(s),S.setWrapperTranslate(s,!0)},dragStart:function(e){var a=S.scrollbar;a.isTouched=!0,e.preventDefault(),e.stopPropagation(),a.setDragPosition(e),clearTimeout(a.dragTimeout),a.track.transition(0),S.params.scrollbarHide&&a.track.css("opacity",1),S.wrapper.transition(100),a.drag.transition(100),S.emit("onScrollbarDragStart",S)},dragMove:function(e){var a=S.scrollbar;a.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),S.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),S.emit("onScrollbarDragMove",S))},dragEnd:function(e){var a=S.scrollbar;a.isTouched&&(a.isTouched=!1,S.params.scrollbarHide&&(clearTimeout(a.dragTimeout),a.dragTimeout=setTimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),S.emit("onScrollbarDragEnd",S),S.params.scrollbarSnapOnRelease&&S.slideReset())},draggableEvents:function(){return S.params.simulateTouch!==!1||S.support.touch?S.touchEvents:S.touchEventsDesktop}(),enableDraggable:function(){var e=S.scrollbar,t=S.support.touch?e.track:document;a(e.track).on(e.draggableEvents.start,e.dragStart),a(t).on(e.draggableEvents.move,e.dragMove),a(t).on(e.draggableEvents.end,e.dragEnd)},disableDraggable:function(){var e=S.scrollbar,t=S.support.touch?e.track:document;a(e.track).off(S.draggableEvents.start,e.dragStart),a(t).off(S.draggableEvents.move,e.dragMove),a(t).off(S.draggableEvents.end,e.dragEnd)},set:function(){if(S.params.scrollbar){var e=S.scrollbar;e.track=a(S.params.scrollbar),S.params.uniqueNavElements&&"string"==typeof S.params.scrollbar&&e.track.length>1&&1===S.container.find(S.params.scrollbar).length&&(e.track=S.container.find(S.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=S.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=S.size/S.virtualSize,e.moveDivider=e.divider*(e.trackSize/S.size),e.dragSize=e.trackSize*e.divider,S.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",S.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(S.params.scrollbar){var e,a=S.scrollbar,t=(S.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*S.progress,S.rtl&&S.isHorizontal()?(e=-e,e>0?(t=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(t=a.trackSize+e)):e<0?(t=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(t=a.trackSize-e),S.isHorizontal()?(S.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translateX("+e+"px)"),a.drag[0].style.width=t+"px"):(S.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translateY("+e+"px)"),a.drag[0].style.height=t+"px"),S.params.scrollbarHide&&(clearTimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=setTimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}}
1282,setTransition:function(e){S.params.scrollbar&&S.scrollbar.drag.transition(e)}},S.controller={LinearSpline:function(e,a){this.x=e,this.y=a,this.lastIndex=e.length-1;var t,s;this.x.length;this.interpolate=function(e){return e?(s=i(this.x,e),t=s-1,(e-this.x[t])*(this.y[s]-this.y[t])/(this.x[s]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}()},getInterpolateFunction:function(e){S.controller.spline||(S.controller.spline=S.params.loop?new S.controller.LinearSpline(S.slidesGrid,e.slidesGrid):new S.controller.LinearSpline(S.snapGrid,e.snapGrid))},setTranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-S.translate:S.translate,"slide"===S.params.controlBy&&(S.controller.getInterpolateFunction(a),r=-S.controller.spline.interpolate(-e)),r&&"container"!==S.params.controlBy||(i=(a.maxTranslate()-a.minTranslate())/(S.maxTranslate()-S.minTranslate()),r=(e-S.minTranslate())*i+a.minTranslate()),S.params.controlInverse&&(r=a.maxTranslate()-r),a.updateProgress(r),a.setWrapperTranslate(r,!1,S),a.updateActiveIndex()}var i,r,n=S.params.control;if(S.isArray(n))for(var o=0;o<n.length;o++)n[o]!==a&&n[o]instanceof t&&s(n[o]);else n instanceof t&&a!==n&&s(n)},setTransition:function(e,a){function s(a){a.setWrapperTransition(e,S),0!==e&&(a.onTransitionStart(),a.wrapper.transitionEnd(function(){r&&(a.params.loop&&"slide"===S.params.controlBy&&a.fixLoop(),a.onTransitionEnd())}))}var i,r=S.params.control;if(S.isArray(r))for(i=0;i<r.length;i++)r[i]!==a&&r[i]instanceof t&&s(r[i]);else r instanceof t&&a!==r&&s(r)}},S.hashnav={onHashCange:function(e,a){var t=document.location.hash.replace("#",""),s=S.slides.eq(S.activeIndex).attr("data-hash");t!==s&&S.slideTo(S.wrapper.children("."+S.params.slideClass+'[data-hash="'+t+'"]').index())},attachEvents:function(e){var t=e?"off":"on";a(window)[t]("hashchange",S.hashnav.onHashCange)},setHash:function(){if(S.hashnav.initialized&&S.params.hashnav)if(S.params.replaceState&&window.history&&window.history.replaceState)window.history.replaceState(null,null,"#"+S.slides.eq(S.activeIndex).attr("data-hash")||"");else{var e=S.slides.eq(S.activeIndex),a=e.attr("data-hash")||e.attr("data-history");document.location.hash=a||""}},init:function(){if(S.params.hashnav&&!S.params.history){S.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e){for(var a=0,t=0,s=S.slides.length;t<s;t++){var i=S.slides.eq(t),r=i.attr("data-hash")||i.attr("data-history");if(r===e&&!i.hasClass(S.params.slideDuplicateClass)){var n=i.index();S.slideTo(n,a,S.params.runCallbacksOnInit,!0)}}S.params.hashnavWatchState&&S.hashnav.attachEvents()}}},destroy:function(){S.params.hashnavWatchState&&S.hashnav.attachEvents(!0)}},S.history={init:function(){if(S.params.history){if(!window.history||!window.history.pushState)return S.params.history=!1,void(S.params.hashnav=!0);S.history.initialized=!0,this.paths=this.getPathValues(),(this.paths.key||this.paths.value)&&(this.scrollToSlide(0,this.paths.value,S.params.runCallbacksOnInit),S.params.replaceState||window.addEventListener("popstate",this.setHistoryPopState))}},setHistoryPopState:function(){S.history.paths=S.history.getPathValues(),S.history.scrollToSlide(S.params.speed,S.history.paths.value,!1)},getPathValues:function(){var e=window.location.pathname.slice(1).split("/"),a=e.length,t=e[a-2],s=e[a-1];return{key:t,value:s}},setHistory:function(e,a){if(S.history.initialized&&S.params.history){var t=S.slides.eq(a),s=this.slugify(t.attr("data-history"));window.location.pathname.includes(e)||(s=e+"/"+s),S.params.replaceState?window.history.replaceState(null,null,s):window.history.pushState(null,null,s)}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,a,t){if(a)for(var s=0,i=S.slides.length;s<i;s++){var r=S.slides.eq(s),n=this.slugify(r.attr("data-history"));if(n===a&&!r.hasClass(S.params.slideDuplicateClass)){var o=r.index();S.slideTo(o,e,t)}}else S.slideTo(0,e,t)}}
1282,S.disableKeyboardControl=function(){S.params.keyboardControl=!1,a(document).off("keydown",d)},S.enableKeyboardControl=function(){S.params.keyboardControl=!0,a(document).on("keydown",d)},S.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},S.params.mousewheelControl&&(S.mousewheel.event=navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":u()?"wheel":"mousewheel"),S.disableMousewheelControl=function(){if(!S.mousewheel.event)return!1;var e=S.container;return"container"!==S.params.mousewheelEventsTarged&&(e=a(S.params.mousewheelEventsTarged)),e.off(S.mousewheel.event,c),!0},S.enableMousewheelControl=function(){if(!S.mousewheel.event)return!1;var e=S.container;return"container"!==S.params.mousewheelEventsTarged&&(e=a(S.params.mousewheelEventsTarged)),e.on(S.mousewheel.event,c),!0},S.parallax={setTranslate:function(){S.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){h(this,S.progress)}),S.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);h(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=S.params.speed),S.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),s=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.transition(s)})}},S.zoom={scale:1,currentScale:1,isScaling:!1,gesture:{slide:void 0,slideWidth:void 0,slideHeight:void 0,image:void 0,imageWrap:void 0,zoomMax:S.params.zoomMax},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},getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var a=e.targetTouches[0].pageX,t=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY,r=Math.sqrt(Math.pow(s-a,2)+Math.pow(i-t,2));return r},onGestureStart:function(e){var t=S.zoom;if(!S.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;t.gesture.scaleStart=t.getDistanceBetweenTouches(e)}return t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=a(this),0===t.gesture.slide.length&&(t.gesture.slide=S.slides.eq(S.activeIndex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imageWrap=t.gesture.image.parent("."+S.params.zoomContainerClass),t.gesture.zoomMax=t.gesture.imageWrap.attr("data-swiper-zoom")||S.params.zoomMax,0!==t.gesture.imageWrap.length)?(t.gesture.image.transition(0),void(t.isScaling=!0)):void(t.gesture.image=void 0)},onGestureChange:function(e){var a=S.zoom;if(!S.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;a.gesture.scaleMove=a.getDistanceBetweenTouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(S.support.gestures?a.scale=e.scale*a.currentScale:a.scale=a.gesture.scaleMove/a.gesture.scaleStart*a.currentScale,a.scale>a.gesture.zoomMax&&(a.scale=a.gesture.zoomMax-1+Math.pow(a.scale-a.gesture.zoomMax+1,.5)),a.scale<S.params.zoomMin&&(a.scale=S.params.zoomMin+1-Math.pow(S.params.zoomMin-a.scale+1,.5)),a.gesture.image.transform("translate3d(0,0,0) scale("+a.scale+")"))},onGestureEnd:function(e){var a=S.zoom;!S.support.gestures&&("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2)||a.gesture.image&&0!==a.gesture.image.length&&(a.scale=Math.max(Math.min(a.scale,a.gesture.zoomMax),S.params.zoomMin),a.gesture.image.transition(S.params.speed).transform("translate3d(0,0,0) scale("+a.scale+")"),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(a.gesture.slide=void 0))},onTouchStart:function(e,a){var t=e.zoom;t.gesture.image&&0!==t.gesture.image.length&&(t.image.isTouched||("android"===e.device.os&&a.preventDefault(),t.image.isTouched=!0,t.image.touchesStart.x="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,t.image.touchesStart.y="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY))},onTouchMove:function(e){var a=S.zoom;if(a.gesture.image&&0!==a.gesture.image.length&&(S.allowClick=!1,a.image.isTouched&&a.gesture.slide)){a.image.isMoved||(a.image.width=a.gesture.image[0].offsetWidth,a.image.height=a.gesture.image[0].offsetHeight,a.image.startX=S.getTranslate(a.gesture.imageWrap[
12820],"x")||0,a.image.startY=S.getTranslate(a.gesture.imageWrap[0],"y")||0,a.gesture.slideWidth=a.gesture.slide[0].offsetWidth,a.gesture.slideHeight=a.gesture.slide[0].offsetHeight,a.gesture.imageWrap.transition(0));var t=a.image.width*a.scale,s=a.image.height*a.scale;if(!(t<a.gesture.slideWidth&&s<a.gesture.slideHeight)){if(a.image.minX=Math.min(a.gesture.slideWidth/2-t/2,0),a.image.maxX=-a.image.minX,a.image.minY=Math.min(a.gesture.slideHeight/2-s/2,0),a.image.maxY=-a.image.minY,a.image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,a.image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!a.image.isMoved&&!a.isScaling){if(S.isHorizontal()&&Math.floor(a.image.minX)===Math.floor(a.image.startX)&&a.image.touchesCurrent.x<a.image.touchesStart.x||Math.floor(a.image.maxX)===Math.floor(a.image.startX)&&a.image.touchesCurrent.x>a.image.touchesStart.x)return void(a.image.isTouched=!1);if(!S.isHorizontal()&&Math.floor(a.image.minY)===Math.floor(a.image.startY)&&a.image.touchesCurrent.y<a.image.touchesStart.y||Math.floor(a.image.maxY)===Math.floor(a.image.startY)&&a.image.touchesCurrent.y>a.image.touchesStart.y)return void(a.image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),a.image.isMoved=!0,a.image.currentX=a.image.touchesCurrent.x-a.image.touchesStart.x+a.image.startX,a.image.currentY=a.image.touchesCurrent.y-a.image.touchesStart.y+a.image.startY,a.image.currentX<a.image.minX&&(a.image.currentX=a.image.minX+1-Math.pow(a.image.minX-a.image.currentX+1,.8)),a.image.currentX>a.image.maxX&&(a.image.currentX=a.image.maxX-1+Math.pow(a.image.currentX-a.image.maxX+1,.8)),a.image.currentY<a.image.minY&&(a.image.currentY=a.image.minY+1-Math.pow(a.image.minY-a.image.currentY+1,.8)),a.image.currentY>a.image.maxY&&(a.image.currentY=a.image.maxY-1+Math.pow(a.image.currentY-a.image.maxY+1,.8)),a.velocity.prevPositionX||(a.velocity.prevPositionX=a.image.touchesCurrent.x),a.velocity.prevPositionY||(a.velocity.prevPositionY=a.image.touchesCurrent.y),a.velocity.prevTime||(a.velocity.prevTime=Date.now()),a.velocity.x=(a.image.touchesCurrent.x-a.velocity.prevPositionX)/(Date.now()-a.velocity.prevTime)/2,a.velocity.y=(a.image.touchesCurrent.y-a.velocity.prevPositionY)/(Date.now()-a.velocity.prevTime)/2,Math.abs(a.image.touchesCurrent.x-a.velocity.prevPositionX)<2&&(a.velocity.x=0),Math.abs(a.image.touchesCurrent.y-a.velocity.prevPositionY)<2&&(a.velocity.y=0),a.velocity.prevPositionX=a.image.touchesCurrent.x,a.velocity.prevPositionY=a.image.touchesCurrent.y,a.velocity.prevTime=Date.now(),a.gesture.imageWrap.transform("translate3d("+a.image.currentX+"px, "+a.image.currentY+"px,0)")}}},onTouchEnd:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.isTouched||!t.image.isMoved)return t.image.isTouched=!1,void(t.image.isMoved=!1);t.image.isTouched=!1,t.image.isMoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentX+r,o=t.velocity.y*i,l=t.image.currentY+o;0!==t.velocity.x&&(s=Math.abs((n-t.image.currentX)/t.velocity.x)),0!==t.velocity.y&&(i=Math.abs((l-t.image.currentY)/t.velocity.y));var p=Math.max(s,i);t.image.currentX=n,t.image.currentY=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minX=Math.min(t.gesture.slideWidth/2-d/2,0),t.image.maxX=-t.image.minX,t.image.minY=Math.min(t.gesture.slideHeight/2-u/2,0),t.image.maxY=-t.image.minY,t.image.currentX=Math.max(Math.min(t.image.currentX,t.image.maxX),t.image.minX),t.image.currentY=Math.max(Math.min(t.image.currentY,t.image.maxY),t.image.minY),t.gesture.imageWrap.transition(p).transform("translate3d("+t.image.currentX+"px, "+t.image.currentY+"px,0)")}},onTransitionEnd:function(e){var a=e.zoom;a.gesture.slide&&e.previousIndex!==e.activeIndex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imageWrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imageWrap=void 0,a.scale=a.currentScale=1)},toggleZoom:function(e,t){var s=e.zoom;if(s.gesture.slide||(s.gesture.slide=e.clickedSlide?a(e.clickedSlide):e.slides.eq(e.activeIndex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imageWrap=s.gesture.image.parent("."+e.params.zoomContainerClass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,T;"undefined"==typeof s.image.touchesStart.x&&t?(i="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,r="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(i=s.image.touchesStart.x,r=s.image.touchesStart.y),s.scale&&1!==s.scale?(s.scale=s.currentScale=1,s.gesture.imageWrap.transition(300).transform("translate3d(0,
12820,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentScale=s.gesture.imageWrap.attr("data-swiper-zoom")||e.params.zoomMax,t?(x=s.gesture.slide[0].offsetWidth,T=s.gesture.slide[0].offsetHeight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+T/2-r,c=s.gesture.image[0].offsetWidth,m=s.gesture.image[0].offsetHeight,h=c*s.scale,g=m*s.scale,f=Math.min(x/2-h/2,0),v=Math.min(T/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,d<f&&(d=f),d>w&&(d=w),u<v&&(u=v),u>y&&(u=y)):(d=0,u=0),s.gesture.imageWrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachEvents:function(e){var t=e?"off":"on";if(S.params.zoom){var s=(S.slides,!("touchstart"!==S.touchEvents.start||!S.support.passiveListener||!S.params.passiveListeners)&&{passive:!0,capture:!1});S.support.gestures?(S.slides[t]("gesturestart",S.zoom.onGestureStart,s),S.slides[t]("gesturechange",S.zoom.onGestureChange,s),S.slides[t]("gestureend",S.zoom.onGestureEnd,s)):"touchstart"===S.touchEvents.start&&(S.slides[t](S.touchEvents.start,S.zoom.onGestureStart,s),S.slides[t](S.touchEvents.move,S.zoom.onGestureChange,s),S.slides[t](S.touchEvents.end,S.zoom.onGestureEnd,s)),S[t]("touchStart",S.zoom.onTouchStart),S.slides.each(function(e,s){a(s).find("."+S.params.zoomContainerClass).length>0&&a(s)[t](S.touchEvents.move,S.zoom.onTouchMove)}),S[t]("touchEnd",S.zoom.onTouchEnd),S[t]("transitionEnd",S.zoom.onTransitionEnd),S.params.zoomToggle&&S.on("doubleTap",S.zoom.toggleZoom)}},init:function(){S.zoom.attachEvents()},destroy:function(){S.zoom.attachEvents(!0)}},S._plugins=[];for(var N in S.plugins){var W=S.plugins[N](S,S.params[N]);W&&S._plugins.push(W)}return S.callPlugins=function(e){for(var a=0;a<S._plugins.length;a++)e in S._plugins[a]&&S._plugins[a][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},S.emitterEventListeners={},S.emit=function(e){S.params[e]&&S.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var a;if(S.emitterEventListeners[e])for(a=0;a<S.emitterEventListeners[e].length;a++)S.emitterEventListeners[e][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);S.callPlugins&&S.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},S.on=function(e,a){return e=g(e),S.emitterEventListeners[e]||(S.emitterEventListeners[e]=[]),S.emitterEventListeners[e].push(a),S},S.off=function(e,a){var t;if(e=g(e),"undefined"==typeof a)return S.emitterEventListeners[e]=[],S;if(S.emitterEventListeners[e]&&0!==S.emitterEventListeners[e].length){for(t=0;t<S.emitterEventListeners[e].length;t++)S.emitterEventListeners[e][t]===a&&S.emitterEventListeners[e].splice(t,1);return S}},S.once=function(e,a){e=g(e);var t=function(){a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),S.off(e,t)};return S.on(e,t),S},S.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,a){return e.attr("role",a),e},addLabel:function(e,a){return e.attr("aria-label",a),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(a(e.target).is(S.params.nextButton)?(S.onClickNext(e),S.isEnd?S.a11y.notify(S.params.lastSlideMessage):S.a11y.notify(S.params.nextSlideMessage)):a(e.target).is(S.params.prevButton)&&(S.onClickPrev(e),S.isBeginning?S.a11y.notify(S.params.firstSlideMessage):S.a11y.notify(S.params.prevSlideMessage)),a(e.target).is("."+S.params.bulletClass)&&a(e.target)[0].click())},liveRegion:a('<span class="'+S.params.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var a=S.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){S.params.nextButton&&S.nextButton&&S.nextButton.length>0&&(S.a11y.makeFocusable(S.nextButton),S.a11y.addRole(S.nextButton,"button"),S.a11y.addLabel(S.nextButton,S.params.nextSlideMessage)),S.params.prevButton&&S.prevButton&&S.prevButton.length>0&&(S.a11y.makeFocusable(S.prevButton),S.a11y.addRole(S.prevButton,"button"),S.a11y.addLabel(S.prevButton,S.params.prevSlideMessage)),a(S.container).append(S.a11y.liveRegion)},initPagination:function(){S.params.pagination&&S.params.paginationClickable&&S.bullets&&S.bullets.length&&S.bullets.each(function(){var e=a(this);S.a11y.makeFocusable(e),S.a11y.addRole(e,"button"),S.a11y.addLabel(e,S.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){S.a11y.liveRegion&&S.a11y.liveRegion.length>0&&S.a11y.liveRegion.remove()}},S.init=function(){S.params.loop&&S.createLoop(),S.updateContainerSize(),S.updateSlidesSize(),S.updatePagination(),S.params.scrollbar&&S.scrollbar&&(S.scrollbar.set(),S.params.scrollbarDraggable&&S.scrollbar.enableDraggable()),"slide"!==S.params.effect&&S.effects[S.params.effect]&&(S.params.loop||S.updateProgress(),S.effects[S.params.effect].setTranslate()),S.params.loop?S.slideTo(S.params.initialSlide+S.loopedSlides,0,S.params.runCallbacksOnInit):(S.slideTo(S.params.initialSlide,0,S.params.runCallbacksOnInit),0===S.params.initialSlide&&(S.parallax&&S.params.parallax&&S.parallax.setTranslate(),S.lazy&&S.params.lazyLoading&&(S.lazy.load(),S.lazy.initialImageLoaded=!0))),S.attachEvents(),S.params.observer&&S.support.observer&&S.initOb
1282servers(),S.params.preloadImages&&!S.params.lazyLoading&&S.preloadImages(),S.params.zoom&&S.zoom&&S.zoom.init(),S.params.autoplay&&S.startAutoplay(),S.params.keyboardControl&&S.enableKeyboardControl&&S.enableKeyboardControl(),S.params.mousewheelControl&&S.enableMousewheelControl&&S.enableMousewheelControl(),S.params.hashnavReplaceState&&(S.params.replaceState=S.params.hashnavReplaceState),S.params.history&&S.history&&S.history.init(),S.params.hashnav&&S.hashnav&&S.hashnav.init(),S.params.a11y&&S.a11y&&S.a11y.init(),S.emit("onInit",S)},S.cleanupStyles=function(){S.container.removeClass(S.classNames.join(" ")).removeAttr("style"),S.wrapper.removeAttr("style"),S.slides&&S.slides.length&&S.slides.removeClass([S.params.slideVisibleClass,S.params.slideActiveClass,S.params.slideNextClass,S.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),S.paginationContainer&&S.paginationContainer.length&&S.paginationContainer.removeClass(S.params.paginationHiddenClass),S.bullets&&S.bullets.length&&S.bullets.removeClass(S.params.bulletActiveClass),S.params.prevButton&&a(S.params.prevButton).removeClass(S.params.buttonDisabledClass),S.params.nextButton&&a(S.params.nextButton).removeClass(S.params.buttonDisabledClass),S.params.scrollbar&&S.scrollbar&&(S.scrollbar.track&&S.scrollbar.track.length&&S.scrollbar.track.removeAttr("style"),S.scrollbar.drag&&S.scrollbar.drag.length&&S.scrollbar.drag.removeAttr("style"))},S.destroy=function(e,a){S.detachEvents(),S.stopAutoplay(),S.params.scrollbar&&S.scrollbar&&S.params.scrollbarDraggable&&S.scrollbar.disableDraggable(),S.params.loop&&S.destroyLoop(),a&&S.cleanupStyles(),S.disconnectObservers(),S.params.zoom&&S.zoom&&S.zoom.destroy(),S.params.keyboardControl&&S.disableKeyboardControl&&S.disableKeyboardControl(),S.params.mousewheelControl&&S.disableMousewheelControl&&S.disableMousewheelControl(),S.params.a11y&&S.a11y&&S.a11y.destroy(),S.params.history&&!S.params.replaceState&&window.removeEventListener("popstate",S.history.setHistoryPopState),S.params.hashnav&&S.hashnav&&S.hashnav.destroy(),S.emit("onDestroy"),e!==!1&&(S=null)},S.init(),S}};t.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1,lteIE9:function(){var e=document.createElement("div");return e.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}()},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),s=e.match(/(iPod)(.*OS\s([\d_]+))?/),i=!t&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||i||s,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}(),passiveListener:function(){var e=!1;try{var a=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveListener",null,a)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in window}()},plugins:{}};for(var s=(function(){var e=function(e){var a=this,t=0;for(t=0;t<e.length;t++)a[t]=e[t];return a.length=e.length,this},a=function(a,t){var s=[],i=0;if(a&&!t&&a instanceof e)return a;
vendor: 10,466 bytes, line 1282
1282if(a)if("string"==typeof a){var r,n,o=a.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),n=document.createElement(l),n.innerHTML=a,i=0;i<n.childNodes.length;i++)s.push(n.childNodes[i])}else for(r=t||"#"!==a[0]||a.match(/[ .<>:~]/)?(t||document).querySelectorAll(a):[document.getElementById(a.split("#")[1])],i=0;i<r.length;i++)r[i]&&s.push(r[i])}else if(a.nodeType||a===window||a===document)s.push(a);else if(a.length>0&&a[0].nodeType)for(i=0;i<a.length;i++)s.push(a[i]);return new e(s)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.add(a[t]);return this},removeClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.remove(a[t]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var s=0;s<this.length;s++)this[s].classList.toggle(a[t]);return this},attr:function(e,a){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var t=0;t<this.length;t++)if(2===arguments.length)this[t].setAttribute(e,a);else for(var s in e)this[t][s]=e[s],this[t].setAttribute(s,e[s]);return this},removeAttr:function(e){for(var a=0;a<this.length;a++)this[a].removeAttribute(e);return this},data:function(e,a){if("undefined"!=typeof a){for(var t=0;t<this.length;t++){var s=this[t];s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=a}return this}if(this[0]){var i=this[0].getAttribute("data-"+e);return i?i:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this},on:function(e,t,s,i){function r(e){var i=e.target;if(a(i).is(t))s.call(i,e);else for(var r=a(i).parents(),n=0;n<r.length;n++)a(r[n]).is(t)&&s.call(r[n],e)}var n,o,l=e.split(" ");for(n=0;n<this.length;n++)if("function"==typeof t||t===!1)for("function"==typeof t&&(s=arguments[1],i=arguments[2]||!1),o=0;o<l.length;o++)this[n].addEventListener(l[o],s,i);else for(o=0;o<l.length;o++)this[n].dom7LiveListeners||(this[n].dom7LiveListeners=[]),this[n].dom7LiveListeners.push({listener:s,liveListener:r}),this[n].addEventListener(l[o],r,i);return this},off:function(e,a,t,s){for(var i=e.split(" "),r=0;r<i.length;r++)for(var n=0;n<this.length;n++)if("function"==typeof a||a===!1)"function"==typeof a&&(t=arguments[1],s=arguments[2]||!1),this[n].removeEventListener(i[r],t,s);else if(this[n].dom7LiveListeners)for(var o=0;o<this[n].dom7LiveListeners.length;o++)this[n].dom7LiveListeners[o].listener===t&&this[n].removeEventListener(i[r],this[n].dom7LiveListeners[o].liveListener,s);return this},once:function(e,a,t,s){function i(n){t(n),r.off(e,a,i,s)}var r=this;"function"==typeof a&&(a=!1,t=arguments[1],s=arguments[2]),r.on(e,a,i,s)},trigger:function(e,a){for(var t=0;t<this.length;t++){var s;try{s=new window.CustomEvent(e,{detail:a,bubbles:!0,cancelable:!0})}catch(t){s=document.createEvent("Event"),s.initEvent(e,!0,!0),s.detail=a}this[t].dispatchEvent(s)}return this},transitionEnd:function(e){function a(r){if(r.target===this)for(e.call(this,r),t=0;t<s.length;t++)i.off(s[t],a)}var t,s=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<s.length;t++)i.on(s[t],a);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getBoundingClientRect(),t=document.body,s=e.clientTop||t.clientTop||0,i=e.clientLeft||t.clientLeft||0,r=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;t<this.length;t++)for(var s in e)this[t].style[s]=e[s];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(t=0;t<this.length;t++)this[t].style[e]=a;return this}return this},each:function(e){for(var a=0;a<this.length;a++)e.call(this[a],a,this[a]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var a=0;a<this.length;a++)this[a].innerHTML=e;return this},text:function(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var a=0;a<this.length;a++)this[a].textContent=e;return this},is:function(t){if(!this[0])return!1;var s,i;if("string"==typeof t){var r=this[0];if(r===document)return t===document;if(r===window)return t===window;if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector)return r.mozMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(s=a(t),i=0;i<s.length;i++)if(s[i]===this[0])return!0;return!1}if(t===document)return this[0]===document;if(t===window)return this[0]===window;if(t.nodeType||t instanceof e){for(s=t.nodeType?[t]:t,i=0;i<s.length;i++)if(s[i]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],a=0;null!==(e=e.previousSibling);)1===e.nodeType&&a++;return a}},eq:function(a){if("undefined"==typeof a)return this;var t,s=this.length;return a>s-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a;i.firstChild;)this[t].appendChild(i.firstChild)}else if(a instanceof e)for(s=0;s<a.length;s++)this[t].appendChild(a[s]);else this[t].appendChild(a);return this},prepend:function(a){var t,s;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a,s=i.childNodes.length-1;s>=0;s--)this[t].insertBefore(i.childNodes[s],this[t].childNodes[0])}else if(a instanceof e)for(s=0;s<a.length;s++)this[t].insertBefore(a[s],this[t].childNodes[0]);else this[t].insertBefore(a,this[t].childNodes[0]);return this},insertBefore:function(e){for(var t=a(e),s=0;s<this.length;s++)if(1===t.length)t[0].parentNode.insertBefore(this[s],t[0]);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[s].cloneNode(!0),t[i])},insertAfter:function(e){for(var t=a(e),s=0;s<this.length;s++)if(1===t.length)t[0].parentNode.insertBefore(this[s],t[0].nextSibling);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[s].cloneNode(!0),t[i].nextSibling)},next:function(t){return new e(this.length>0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var r=i.nextElementSibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},prev:function(t){return new e(this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var r=i.previousElementSibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s<this.length;s++)e?a(this[s].parentNode).is(e)&&t.push(this[s].parentNode):t.push(this[s].parentNode);return a(a.unique(t))},parents:function(e){for(var t=[],s=0;s<this.length;s++)for(var i=this[s].parentNode;i;)e?a(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return a(a.unique(t))},find:function(a){for(var t=[],s=0;s<this.length;s++)for(var i=this[s].querySelectorAll(a),r=0;r<i.length;r++)t.push(i[r]);return new e(t)},children:function(t){for(var s=[],i=0;i<this.length;i++)for(var r=this[i].childNodes,n=0;n<r.length;n++)t?1===r[n].nodeType&&a(r[n]).is(t)&&s.push(r[n]):1===r[n].nodeType&&s.push(r[n]);return new e(a.unique(s))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,t,s=this;for(e=0;e<arguments.length;e++){var i=a(arguments[e]);for(t=0;t<i.length;t++)s[s.length]=i[t],s.length++}return s}},a.fn=e.prototype,a.unique=function(e){for(var a=[],t=0;t<e.length;t++)a.indexOf(e[t])===-1&&a.push(e[t]);return a},a}()),i=["jQuery","Zepto","Dom7"],r=0;r<i.length;r++)window[i[r]]&&e(window[i[r]]);var n;n="undefined"==typeof s?window.Dom7||window.Zepto||window.jQuery:s,n&&("transitionEnd"in n.fn||(n.fn.transitionEnd=function(e){function a(r){if(r.target===this)for(e.call(this,r),t=0;t<s.length;t++)i.off(s[t],a)}var t,s=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<s.length;t++)i.on(s[t],a);return this}),"transform"in n.fn||(n.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in n.fn||(n.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this}),"outerWidth"in n.fn||(n.fn.outerWidth=function(e){return this.length>
12820?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null})),window.Swiper=t}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper});/** 1283 * This source file is subject to a commercial license from ITINER 1284 * 1285 * @package Slider of Categories on Home Page 1286 * @author ITINER 1287 * @copyright Copyright (c) 2016 ITINER 1288 * @license Commercial license 1289 * 1290 * GSI 2026-10-06 : bandeau des marques type Wardow. 1291 * - Nombre de logos par vue selon la largeur de la fenetre (paliers ci-dessous), 1292 * la valeur du BO (CATSLIDERHOME_SLIDES_PER_VIEW) sert de maximum grand ecran. 1293 * - Fleches precedent / suivant (.swiper-button-prev / -next), defilement page par page. 1294 * - Pas de boucle : la fleche inutile est masquee en CSS (.swiper-button-disabled). 1295 * Swiper 3.4.0 : les cles de "breakpoints" sont des largeurs MAXIMALES de fenetre. 1296 */ 1297var categorysliderhome_toggler=function(slider_active){$('#categorysliderhome_cat li').hide();$('#categorysliderhome_cat li.slider-'+slider_active).show()};$(document).ready(function(){var slider_active=$('#categorysliderhome_tabs li > a.active').data('sliderid');if(slider_active==undefined){slider_active=0} 1298categorysliderhome_toggler(slider_active)});$(window).load(function(){var container='#categorysliderhome .swiper-container';var data=$(container).data();if(data){var perViewMax=parseInt(data.slidesperview,10);if(!perViewMax||perViewMax<1){perViewMax=8} 1299var swiper=new Swiper(container,{pagination:'.swiper-pagination',nextButton:'#categorysliderhome .swiper-button-next',prevButton:'#categorysliderhome .swiper-button-prev',slidesPerView:perViewMax,slidesPerGroup:perViewMax,paginationClickable:data.paginationclickable,spaceBetween:0,speed:data.speed,autoplay:data.autoplay,autoplayStopOnLast:data.autoplaystoponlast,autoplayDisableOnInteraction:data.autoplaydisableoninteraction,breakpoints:{576:{slidesPerView:3,slidesPerGroup:3},767:{slidesPerView:4,slidesPerGroup:4},991:{slidesPerView:5,slidesPerGroup:5},1399:{slidesPerView:6,slidesPerGroup:6},1599:{slidesPerView:7,slidesPerGroup:7}}});$('#categorysliderhome_tabs').on('click','li > a',function(event){event.preventDefault();var slider_active=$(this).data('sliderid');categorysliderhome_toggler(slider_active);swiper.update(!0);swiper.slideTo(0,0,!1);$(this).parents('ul').find('.active').removeClass('active');$(this).addClass('active').parent('li').addClass('active')})}});(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&module.exports){module.exports=factory(require('jquery'))}else{factory(jQuery)}}(function($){var slice=Array.prototype.slice;var splice=Array.prototype.splice;var defaults={topSpacing:0,bottomSpacing:0,className:'is-sticky',wrapperClassName:'sticky-wrapper',center:!1,getWidthFrom:'',widthFromWrapper:!0,responsiveWidth:!1,zIndex:'inherit'},$window=$(window),$document=$(document),sticked=[],windowHeight=$window.height(),scroller=function(){var scrollTop=$window.scrollTop(),documentHeight=$document.height(),dwh=documentHeight-windowHeight,extra=(scrollTop>dwh)?dwh-scrollTop:0;for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i],elementTop=s.stickyWrapper.offset().top,etse=elementTop-s.topSpacing-extra;s.stickyWrapper.css('height',s.stickyElement.outerHeight());if(scrollTop<=etse){if(s.currentTop!==null){s.stickyElement.css({'width':'','position':'','top':'','z-index':''});s.stickyElement.parent().removeClass(s.className);s.stickyElement.trigger('sticky-end',[s]);s.currentTop=null}}else{var newTop=documentHeight-s.stickyElement.outerHeight()-s.topSpacing-s.bottomSpacing-scrollTop-extra;if(newTop<0){newTop=newTop+s.topSpacing}else{newTop=s.topSpacing} 1300if(s.currentTop!==newTop){var newWidth;if(s.getWidthFrom){padding=s.stickyElement.innerWidth()-s.stickyElement.width();newWidth=$(s.getWidthFrom).width()-padding||null}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width()} 1301if(newWidth==null){newWidth=s.stickyElement.width()} 1302s.stickyElement.css('width',newWidth).css('position','fixed').css('top',newTop).css('z-index',s.zIndex);s.stickyElement.parent().addClass(s.className);if(s.currentTop===null){s.stickyElement.trigger('sticky-start',[s])}else{s.stickyElement.trigger('sticky-update',[s])} 1303if(s.currentTop===s.topSpacing&&s.currentTop>newTop||s.currentTop===null&&newTop<s.topSpacing){s.stickyElement.trigger('sticky-bottom-reached',[s])}else if(s.currentTop!==null&&newTop===s.topSpacing&&s.currentTop<newTop){s.stickyElement.trigger('sticky-bottom-unreached',[s])} 1304s.currentTop=newTop} 1305var stickyWrapperContainer=s.stickyWrapper.parent();var unstick=(s.stickyElement.offset().top+s.stickyElement.outerHeight()>=stickyWrapperContainer.offset().top+stickyWrapperContainer.outerHeight())&&
1305(s.stickyElement.offset().top<=s.topSpacing);if(unstick){s.stickyElement.css('position','absolute').css('top','').css('bottom',0).css('z-index','')}else{s.stickyElement.css('position','fixed').css('top',newTop).css('bottom','').css('z-index',s.zIndex)}}}},resizer=function(){windowHeight=$window.height();for(var i=0,l=sticked.length;i<l;i++){var s=sticked[i];var newWidth=null;if(s.getWidthFrom){if(s.responsiveWidth){newWidth=$(s.getWidthFrom).width()}}else if(s.widthFromWrapper){newWidth=s.stickyWrapper.width()} 1306if(newWidth!=null){s.stickyElement.css('width',newWidth)}}},methods={init:function(options){return this.each(function(){var o=$.extend({},defaults,options);var stickyElement=$(this);var stickyId=stickyElement.attr('id');var wrapperId=stickyId?stickyId+'-'+defaults.wrapperClassName:defaults.wrapperClassName;var wrapper=$('<div></div>').attr('id',wrapperId).addClass(o.wrapperClassName);stickyElement.wrapAll(function(){if($(this).parent("#"+wrapperId).length==0){return wrapper}});var stickyWrapper=stickyElement.parent();if(o.center){stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"})} 1307if(stickyElement.css("float")==="right"){stickyElement.css({"float":"none"}).parent().css({"float":"right"})} 1308o.stickyElement=stickyElement;o.stickyWrapper=stickyWrapper;o.currentTop=null;sticked.push(o);methods.setWrapperHeight(this);methods.setupChangeListeners(this)})},setWrapperHeight:function(stickyElement){var element=$(stickyElement);var stickyWrapper=element.parent();if(stickyWrapper){stickyWrapper.css('height',element.outerHeight())}},setupChangeListeners:function(stickyElement){if(window.MutationObserver){var mutationObserver=new window.MutationObserver(function(mutations){if(mutations[0].addedNodes.length||mutations[0].removedNodes.length){methods.setWrapperHeight(stickyElement)}});mutationObserver.observe(stickyElement,{subtree:!0,childList:!0})}else{if(window.addEventListener){stickyElement.addEventListener('DOMNodeInserted',function(){methods.setWrapperHeight(stickyElement)},!1);stickyElement.addEventListener('DOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement)},!1)}else if(window.attachEvent){stickyElement.attachEvent('onDOMNodeInserted',function(){methods.setWrapperHeight(stickyElement)});stickyElement.attachEvent('onDOMNodeRemoved',function(){methods.setWrapperHeight(stickyElement)})}}},update:scroller,unstick:function(options){return this.each(function(){var that=this;var unstickyElement=$(that);var removeIdx=-1;var i=sticked.length;while(i-->0){if(sticked[i].stickyElement.get(0)===that){splice.call(sticked,i,1);removeIdx=i}} 1309if(removeIdx!==-1){unstickyElement.unwrap();unstickyElement.css({'width':'','position':'','top':'','float':'','z-index':''})}})}};if(window.addEventListener){window.addEventListener('scroll',scroller,!1);window.addEventListener('resize',resizer,!1)}else if(window.attachEvent){window.attachEvent('onscroll',scroller);window.attachEvent('onresize',resizer)} 1310$.fn.sticky=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.sticky')}};$.fn.unstick=function(method){if(methods[method]){return methods[method].apply(this,slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.unstick.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.sticky')}};$(function(){setTimeout(scroller,0)})}));/** 1311* 2007-2019 PrestaShop 1312* 1313* NOTICE OF LICENSE 1314* 1315* This source file is subject to the Academic Free License (AFL 3.0) 1316* that is bundled with this package in the file LICENSE.txt. 1317* It is also available through the world-wide-web at this URL: 1318* http://opensource.org/licenses/afl-3.0.php 1319* If you did not receive a copy of the license and are unable to 1320* obtain it through the world-wide-web, please send an email 1321* to [email protected] so we can send you a copy immediately. 1322* 1323* DISCLAIMER 1324* 1325* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1326* versions in the future. If you wish to customize PrestaShop for your 1327* needs please refer to http://www.prestashop.com for more information. 1328* 1329* @author PrestaShop SA <[email protected]> 1330* @copyright 2007-2019 PrestaShop SA 1331* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1332* International Registered Trademark & Property of PrestaShop SA 1333* 1334* Don't forget to prefix your containers with your own identifier 1335* to avoid any conflicts with others containers. 1336*/ 1337$(window).load(function(){$("#header").sticky({topSpacing:0})});/* 1338 * 2007-2018 PrestaShop 1339 * 1340 * NOTICE OF LICENSE 1341 * 1342 * This source file is subject to the Open Software License (OSL 3.0)
1343 * that is bundled with this package in the file LICENSE.txt. 1344 * It is also available through the world-wide-web at this URL: 1345 * http://opensource.org/licenses/osl-3.0.php 1346 * If you did not receive a copy of the license and are unable to 1347 * obtain it through the world-wide-web, please send an email 1348 * to [email protected] so we can send you a copy immediately. 1349 * 1350 * DISCLAIMER 1351 * 1352 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1353 * versions in the future. If you wish to customize PrestaShop for your 1354 * needs please refer to http://www.prestashop.com for more information. 1355 * 1356 * @author PrestaShop SA <[email protected]> 1357 * @copyright 2007-2018 PrestaShop SA 1358 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 1359 * International Registered Trademark & Property of PrestaShop SA 1360 */ 1361$(document).ready(function(){setimagesposition();var position_upperleft=0;var position_upperright=0;var position_lowerleft=0;var position_lowerright=0;if(typeof pictos!=='undefined'){for(var i=0;i<pictos.length;i++){if(pictos[i].image!=''){if(pictos[i].display_tab==1){if(pictos[i].mode=='FEATURE'){if(pictos[i].only_image=='image'){$('.product-features .data-sheet dt').each(function(){if($(this).text()==pictos[i].name){$(this).html('<img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/>')}})}else{$('.product-features .data-sheet dt').each(function(){if($(this).text()==pictos[i].name){if(pictos[i].display_text=='after'){$(this).html('<img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/> '+pictos[i].name)}else{$(this).html(''+pictos[i].name+' <img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/>')}}})}}else{if(pictos[i].only_image=='image'){$('.product-features .data-sheet dd').each(function(){if($(this).text()==pictos[i].name){$(this).html('<img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/>')}})}else{$('.product-features .data-sheet dd').each(function(){if($(this).text()==pictos[i].name){if(pictos[i].display_text=='after'){$(this).html('<img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/> '+pictos[i].name)}else{$(this).html(''+pictos[i].name+' <img src="'+pictos[i].path+pictos[i].image+'" width="'+picto_size+'" height="'+picto_size+'" title="'+pictos[i].name+'"/>')}}})}}} 1362if(pictos[i].over_image==1){var img=pictos[i].path+pictos[i].image;if(pictos[i].position=='upperleft'){$('.images-container .product-cover').append('<div class="pictos" style="top:'+position_upperleft+'px;"><img src="'+pictos[i].path+pictos[i].image+'" class="picto_'+i+'" title="'+pictos[i].name+'"/></div>');var height=$('.pictos img.picto_'+i+'').height();position_upperleft=parseInt(position_upperleft)+parseInt(height)} 1363if(pictos[i].position=='upperright'){$('.images-container .product-cover').append('<div class="pictos" style="top:'+position_upperright+'px;right:0px;"><img src="'+pictos[i].path+pictos[i].image+'" class="picto_'+i+'" title="'+pictos[i].name+'"/></div>');var height=$('.pictos img.picto_'+i+'').height();position_upperright=parseInt(position_upperright)+parseInt(height)} 1364if(pictos[i].position=='lowerleft'){$('.images-container .product-cover').append('<div class="pictos" style="bottom:'+position_lowerleft+'px;"><img src="'+pictos[i].path+pictos[i].image+'" class="picto_'+i+'" title="'+pictos[i].name+'"/></div>');var height=$('.pictos img.picto_'+i+'').height();position_lowerleft=parseInt(position_lowerleft)+parseInt(height)} 1365if(pictos[i].position=='lowerright'){$('.images-container .product-cover').append('<div class="pictos" style="bottom:'+position_lowerright+'px;right:0px"><img src="'+pictos[i].path+pictos[i].image+'" class="picto_'+i+'" title="'+pictos[i].name+'"/></div>');var height=$('.pictos img.picto_'+i+'').height();position_lowerright=parseInt(position_lowerright)+parseInt(height)}}}}}});$(document).ajaxComplete(function(event,request,settings){setimagesposition()});function setimagesposition(){$('.thumbnail-container a.product-thumbnail').each(function(){var picto_html=$(this).closest('.product-miniature').find('.product-description .list-pictos');$(this).append(picto_html)})};
vendor: 15,653 bytes, line 1365
1365var EasyAutocomplete=function(a){return a.Configuration=function(a){function b(){if("xml"===a.dataType&&(a.getValue||(a.getValue=function(a){return $(a).text()}),a.list||(a.list={}),a.list.sort||(a.list.sort={}),a.list.sort.method=function(b,c){return b=a.getValue(b),c=a.getValue(c),c>b?-1:b>c?1:0},a.list.match||(a.list.match={}),a.list.match.method=function(a,b){return a.search(b)>-1}),void 0!==a.categories&&a.categories instanceof Array){for(var b=[],c=0,d=a.categories.length;d>c;c+=1){var e=a.categories[c];for(var f in h.categories[0])void 0===e[f]&&(e[f]=h.categories[0][f]);b.push(e)}a.categories=b}}function c(){function b(a,c){var d=a||{};for(var e in a)void 0!==c[e]&&null!==c[e]&&("object"!=typeof c[e]||c[e]instanceof Array?d[e]=c[e]:b(a[e],c[e]));return void 0!==c.data&&null!==c.data&&"object"==typeof c.data&&(d.data=c.data),d}h=b(h,a)}function d(){if("list-required"!==h.url&&"function"!=typeof h.url){var b=h.url;h.url=function(){return b}}if(void 0!==h.ajaxSettings.url&&"function"!=typeof h.ajaxSettings.url){var b=h.ajaxSettings.url;h.ajaxSettings.url=function(){return b}}if("string"==typeof h.listLocation){var c=h.listLocation;"XML"===h.dataType.toUpperCase()?h.listLocation=function(a){return $(a).find(c)}:h.listLocation=function(a){return a[c]}}if("string"==typeof h.getValue){var d=h.getValue;h.getValue=function(a){return a[d]}}void 0!==a.categories&&(h.categoriesAssigned=!0)}function e(){void 0!==a.ajaxSettings&&"object"==typeof a.ajaxSettings?h.ajaxSettings=a.ajaxSettings:h.ajaxSettings={}}function f(a){return void 0!==h[a]&&null!==h[a]}function g(a,b){function c(b,d){for(var e in d)void 0===b[e]&&a.log("Property '"+e+"' does not exist in EasyAutocomplete options API."),"object"==typeof b[e]&&-1===$.inArray(e,i)&&c(b[e],d[e])}c(h,b)}var h={data:"list-required",url:"list-required",dataType:"json",listLocation:function(a){return a},xmlElementName:"",getValue:function(a){return a},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(a,b){return a=h.getValue(a),b=h.getValue(b),b>a?-1:a>b?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(a,b){return a.search(b)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(a,b){return a},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},i=["ajaxSettings","template"];this.get=function(a){return h[a]},this.equals=function(a,b){return!(!f(a)||h[a]!==b)},this.checkDataUrlProperties=function(){return"list-required"!==h.url||"list-required"!==h.data},this.checkRequiredProperties=function(){for(var a in h)if("required"===h[a])return logger.error("Option "+a+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(a,b){g(a,b)},b(),c(),h.loggerEnabled===!0&&g(console,a),e(),d()},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Logger=function(){this.error=function(a){console.log("ERROR: "+a)},this.warning=function(a){console.log("WARNING: "+a)}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Constans=function(){var a={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(b){return a[b]}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.ListBuilderService=function(a,b){function c(b,c){function d(){var d,e={};return void 0!==b.xmlElementName&&(e.xmlElementName=b.xmlElementName),void 0!==b.listLocation?d=b.listLocation:void 0!==a.get("listLocation")&&(d=a.get("listLocation")),void 0!==d?"string"==typeof d?e.data=$(c).find(d):"function"==typeof d&&(e.data=d(c)):e.data=c,e}function e(){var a={};return void 0!==b.listLocation?"string"==typeof b.listLocation?a.data=c[b.listLocation]:"function"==typeof b.listLocation&&(a.data=b.listLocation(c)):a.data=c,a}var f={};if(f="XML"===a.get("dataType").toUpperCase()?d():e(),void 0!==b.header&&(f.header=b.header),void 0!==b.maxNumberOfElements&&(f.maxNumberOfElements=b.maxNumberOfElements),void 0!==a.get("list").maxNumberOfElements&&(f.maxListSize=a.get("list").maxNumberOfElements),void 0!==b.getValue)if("string"==typeof b.getValue){var g=b.getValue;f.getValue=function(a){return a[g]}}else"function"==typeof b.getValue&&(f.getValue=b.getValue);else f.getValue=a.get("getValue");return f}function d(b){var c=[];return void 0===b.xmlElementName&&(b.xmlElementName=a.get("xmlElementName")),$(b.data).find(b.xmlElementName).each(function(){c.push(this)}),c}this.init=function(b){var c=[],d={};return d.data=a.get("listLocation")(b),d.getValue=a.get("getValue"),d.maxListSize=a.get("list").maxNumberOfElements,c.push(d),c},this.updateCategories=function(b,d){if(a.get("categoriesAssigned")){b=[];for(var e=0;e<a.get("categories").length;e+=1){var f=c(a.get("categories")[e],d);b.push(f)}}return b},this.convertXml=function(b){if("XML"===a.get("dataType").toUpperCase())for(var c=0;c<b.length;c+=1)b[c].data=d(b[c]);return b},this.processData=function(c,d){for(var e=0,f=c.length;f>e;e+=1)c[e].data=b(a,c[e],d);return c},this.checkIfDataExists=function(a){for(var b=0,c=a.length;c>b;b+=1)if(void 0!==a[b].data&&a[b].data instanceof Array&&a[b].data.length>0)return!0;return!1}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.proccess=function(b,c,d){function e(a,c){var d=[],e="";if(b.get("list").match.enabled)for(var g=0,h=a.length;h>g;g+=1)e=b.get("getValue")(a[g]),f(e,c)&&d.push(a[g]);else d=a;return d}function f(a,c){return b.get("list").match.caseSensitive||("string"==typeof a&&(a=a.toLowerCase()),c=c.toLowerCase()),!!b.get("list").match.method(a,c)}function g(a){return void 0!==c.maxNumberOfElements&&a.length>c.maxNumberOfElements&&(a=a.slice(0,c.maxNumberOfElements)),a}function h(a){return b.get("list").sort.enabled&&a.sort(b.get("list").sort.method),a}a.proccess.match=f;var i=c.data,j=d;return i=e(i,j),i=g(i),i=h(i)},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Template=function(a){var b={basic:{type:"basic",method:function(a){return a},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(a){return a+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(a){return a},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(a){return a},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(a){return a},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},c=function(a){var c,d=a.fields;return"description"===a.type?(c=b.description.method,"string"==typeof d.description?c=function(a,b){return a+" - <span>"+b[d.description]+"</span>"}:"function"==typeof d.description&&(c=function(a,b){return a+" - <span>"+d.description(b)+"</span>"}),c):"iconRight"===a.type?("string"==typeof d.iconSrc?c=function(a,b){return a+"<img class='eac-icon' src='"+b[d.iconSrc]+"' />"}:"function"==typeof d.iconSrc&&(c=function(a,b){return a+"<img class='eac-icon' src='"+d.iconSrc(b)+"' />"}),c):"iconLeft"===a.type?("string"==typeof d.iconSrc?c=function(a,b){return"<img class='eac-icon' src='"+b[d.iconSrc]+"' />"+a}:"function"==typeof d.iconSrc&&(c=function(a,b){return"<img class='eac-icon' src='"+d.iconSrc(b)+"' />"+a}),c):"links"===a.type?("string"==typeof d.link?c=function(a,b){return"<a href='"+b[d.link]+"' >"+a+"</a>"}:"function"==typeof d.link&&(c=function(a,b){return"<a href='"+d.link(b)+"' >"+a+"</a>"}),c):"custom"===a.type?a.method:b.basic.method},d=function(a){return a&&a.type&&a.type&&b[a.type]?c(a):b.basic.method},e=function(a){var c=function(){return""};return a&&a.type&&a.type&&b[a.type]?function(){var c=b[a.type].cssClass;return function(){return c}}():c};this.getTemplateClass=e(a),this.build=d(a)},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.main=function(b,c){function d(){return 0===t.length?void p.error("Input field doesn't exist."):o.checkDataUrlProperties()?o.checkRequiredProperties()?(e(),void g()):void p.error("Will not work without mentioned properties."):void p.error("One of options variables 'data' or 'url' must be defined.")}function e(){function a(){var a=$("<div>"),c=n.getValue("WRAPPER_CSS_CLASS");o.get("theme")&&""!==o.get("theme")&&(c+=" eac-"+o.get("theme")),o.get("cssClasses")&&""!==o.get("cssClasses")&&(c+=" "+o.get("cssClasses")),""!==q.getTemplateClass()&&(c+=" "+q.getTemplateClass()),a.addClass(c),t.wrap(a),o.get("adjustWidth")===!0&&b()}function b(){var a=t.outerWidth();t.parent().css("width",a)}function c(){t.unwrap()}function d(){var a=$("<div>").addClass(n.getValue("CONTAINER_CLASS"));a.attr("id",f()).prepend($("<ul>")),function(){a.on("show.eac",function(){switch(o.get("list").showAnimation.type){case"slide":var b=o.get("list").showAnimation.time,c=o.get("list").showAnimation.callback;a.find("ul").slideDown(b,c);break;case"fade":var b=o.get("list").showAnimation.time,c=o.get("list").showAnimation.callback;a.find("ul").fadeIn(b),c;break;default:a.find("ul").show()}o.get("list").onShowListEvent()}).on("hide.eac",function(){switch(o.get("list").hideAnimation.type){case"slide":var b=o.get("list").hideAnimation.time,c=o.get("list").hideAnimation.callback;a.find("ul").slideUp(b,c);break;case"fade":var b=o.get("list").hideAnimation.time,c=o.get("list").hideAnimation.callback;a.find("ul").fadeOut(b,c);break;default:a.find("ul").hide()}o.get("list").onHideListEvent()}).on("selectElement.eac",function(){a.find("ul li").removeClass("selected"),a.find("ul li").eq(w).addClass("selected"),o.get("list").onSelectItemEvent()}).on("loadElements.eac",function(b,c,d){var e="",f=a.find("ul");f.empty().detach(),v=[];for(var h=0,i=0,k=c.length;k>i;i+=1){var l=c[i].data;if(0!==l.length){void 0!==c[i].header&&c[i].header.length>0&&f.append("<div class='eac-category' >"+c[i].header+"</div>");for(var m=0,n=l.length;n>m&&h<c[i].maxListSize;m+=1)e=$("<li><div class='eac-item'></div></li>"),function(){var a=m,b=h,f=c[i].getValue(l[a]);e.find(" > div").on("click",function(){t.val(f).trigger("change"),w=b,j(b),o.get("list").onClickEvent(),o.get("list").onChooseEvent()}).mouseover(function(){w=b,j(b),o.get("list").onMouseOverEvent()}).mouseout(function(){o.get("list").onMouseOutEvent()}).html(q.build(g(f,d),l[a]))}(),f.append(e),v.push(l[m]),h+=1}}a.append(f),o.get("list").onLoadEvent()})}(),t.after(a)}function e(){t.next("."+n.getValue("CONTAINER_CLASS")).remove()}function g(a,b){return o.get("highlightPhrase")&&""!==b?i(a,b):a}function h(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function i(a,b){var c=h(b);return(a+"").replace(new RegExp("("+c+")","gi"),"<b>$1</b>")}t.parent().hasClass(n.getValue("WRAPPER_CSS_CLASS"))&&(e(),c()),a(),d(),u=$("#"+f()),o.get("placeholder")&&t.attr("placeholder",o.get("placeholder"))}function f(){var a=t.attr("id");return a=n.getValue("CONTAINER_ID")+a}function g(){function a(){s("autocompleteOff",!0)&&n(),b(),c(),d(),e(),f(),g()}function b(){t.focusout(function(){var a,b=t.val();o.get("list").match.caseSensitive||(b=b.toLowerCase());for(var c=0,d=v.length;d>c;c+=1)if(a=o.get("getValue")(v[c]),o.get("list").match.caseSensitive||(a=a.toLowerCase()),a===b)return w=c,void j(w)})}function c(){t.off("keyup").keyup(function(a){function b(a){function b(){var a={},b=o.get("ajaxSettings")||{};for(var c in b)a[c]=b[c];return a}function c(a,b){return o.get("matchResponseProperty")!==!1?"string"==typeof o.get("matchResponseProperty")?b[o.get("matchResponseProperty")]===a:"function"==typeof o.get("matchResponseProperty")?o.get("matchResponseProperty")(b)===a:!0:!0}if(!(a.length<o.get("minCharNumber"))){if("list-required"!==o.get("data")){var d=o.get("data"),e=r.init(d);e=r.updateCategories(e,d),e=r.processData(e,a),k(e,a),t.parent().find("li").length>0?h():i()}var f=b();void 0!==f.url&&""!==f.url||(f.url=o.get("url")),void 0!==f.dataType&&""!==f.dataType||(f.dataType=o.get("dataType")),void 0!==f.url&&"list-required"!==f.url&&(f.url=f.url(a),f.data=o.get("preparePostData")(f.data,a),$.ajax(f).done(function(b){var d=r.init(b);d=r.updateCategories(d,b),d=r.convertXml(d),c(a,b)&&(d=r.processData(d,a),k(d,a)),r.checkIfDataExists(d)&&t.parent().find("li").length>0?h():i(),o.get("ajaxCallback")()}).fail(function(){p.warning("Fail to load response data")}).always(function(){}))}}switch(a.keyCode){case 27:i(),l();break;case 38:a.preventDefault(),v.length>0&&w>0&&(w-=1,t.val(o.get("getValue")(v[w])),j(w));break;case 40:a.preventDefault(),v.length>0&&w<v.length-1&&(w+=1,t.val(o.get("getValue")(v[w])),j(w));break;default:if(a.keyCode>40||8===a.keyCode){var c=t.val();o.get("list").hideOnEmptyPhrase!==!0||8!==a.keyCode||""!==c?o.get("requestDelay")>0?(void 0!==m&&clearTimeout(m),m=setTimeout(function(){b(c)},o.get("requestDelay"))):b(c):i()}}})}function d(){t.on("keydown",function(a){a=a||window.event;var b=a.keyCode;return 38===b?(suppressKeypress=!0,!1):void 0}).keydown(function(a){13===a.keyCode&&w>-1&&(t.val(o.get("getValue")(v[w])),o.get("list").onKeyEnterEvent(),o.get("list").onChooseEvent(),w=-1,i(),a.preventDefault())})}function e(){t.off("keypress")}function f(){t.focus(function(){""!==t.val()&&v.length>0&&(w=-1,h())})}function g(){t.blur(function(){setTimeout(function(){w=-1,i()},250)})}function n(){t.attr("autocomplete","off")}a()}function h(){u.trigger("show.eac")}function i(){u.trigger("hide.eac")}function j(a){u.trigger("selectElement.eac",a)}function k(a,b){u.trigger("loadElements.eac",[a,b])}function l(){t.trigger("blur")}var m,n=new a.Constans,o=new a.Configuration(c),p=new a.Logger,q=new a.Template(c.template),r=new a.ListBuilderService(o,a.proccess),s=o.equals,t=b,u="",v=[],w=-1;a.consts=n,this.getConstants=function(){return n},this.getConfiguration=function(){return o},this.getContainer=function(){return u},this.getSelectedItemIndex=function(){return w},this.getItems=function(){return v},this.getItemData=function(a){return v.length<a||void 0===v[a]?-1:v[a]},this.getSelectedItemData=function(){return this.getItemData(w)},this.build=function(){e()},this.init=function(){d()}},a.eacHandles=[],a.getHandle=function(b){return a.eacHandles[b]},a.inputHasId=function(a){return void 0!==$(a).attr("id")&&$(a).attr("id").length>0},a.assignRandomId=function(b){var c="";do c="eac-"+Math.floor(1e4*Math.random());while(0!==$("#"+c).length);elementId=a.consts.getValue("CONTAINER_ID")+c,$(b).attr("id",c)},a.setHandle=function(b,c){a.eacHandles[c]=b},a}(EasyAutocomplete||{});!function(a){a.fn.easyAutocomplete=function(b){return this.each(function(){var c=a(this),d=new EasyAutocomplete.main(c,b);EasyAutocomplete.inputHasId(c)||EasyAutocomplete.assignRandomId(c),d.init(),EasyAutocomplete.setHandle(d,c.attr("id"))})},a.fn.getSelectedItemIndex=function(){var b=a(this).attr("id");return void 0!==b?EasyAutocomplete.getHandle(b).getSelectedItemIndex():-1},a.fn.getItems=function(){var b=a(this).attr("id");return void 0!==b?EasyAutocomplete.getHandle(b).getItems():-1},a.fn.getItemData=function(b){var c=a(this).attr("id");return void 0!==c&&b>-1?EasyAutocomplete.getHandle(c).getItemData(b):-1},a.fn.getSelectedItemData=function(){var b=a(this).attr("id");return void 0!==b?EasyAutocomplete.getHandle(b).getSelectedItemData():-1}}(jQuery);
1365/* 1366 * 1367 * NOTICE OF LICENSE 1368 * 1369 * This source file is subject to the Open Software License (OSL 3.0) 1370 * that is bundled with this package in the file LICENSE.txt. 1371 * It is also available through the world-wide-web at this URL: 1372 * http://opensource.org/licenses/osl-3.0.php 1373 * If you did not receive a copy of the license and are unable to 1374 * obtain it through the world-wide-web, please send an email 1375 * to [email protected] so we can send you a copy immediately. 1376 * 1377 * DISCLAIMER 1378 * 1379 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1380 * versions in the future. If you wish to customize PrestaShop for your 1381 * needs please refer to http://www.prestashop.com for more information. 1382 * 1383 * @author PrestaShop SA <[email protected]> 1384 * @copyright 2007-2018 PrestaShop SA 1385 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 1386 * International Registered Trademark & Property of PrestaShop SA 1387 */ 1388function timeToSeconds(time){time=time.split(/:/);return time[0]*3600+time[1]*60+time[2]} 1389function initMarkers(){searchUrl+='?ajax=1&all=1';downloadUrl(searchUrl,function(data){var xml=parseXml(data);var markerNodes=xml.documentElement.getElementsByTagName('marker');var bounds=new google.maps.LatLngBounds();if(FMESL_LAYOUT_THEME>0){$('#fmmsl_split_list').html('<ul></ul>');clearLocations(markerNodes.length)} 1390for(var i=0;i<markerNodes.length;i++){var name=markerNodes[i].getAttribute('name');var address=markerNodes[i].getAttribute('address');var addressNoHtml=markerNodes[i].getAttribute('addressNoHtml');var other=markerNodes[i].getAttribute('other');var id_store=markerNodes[i].getAttribute('id_store');var phone=markerNodes[i].getAttribute('phone');var link=markerNodes[i].getAttribute('link');var email=markerNodes[i].getAttribute('email');var fax=markerNodes[i].getAttribute('fax');var note=markerNodes[i].getAttribute('note');var has_store_picture=markerNodes[i].getAttribute('has_store_picture');var latlng=new google.maps.LatLng(parseFloat(markerNodes[i].getAttribute('lat')),parseFloat(markerNodes[i].getAttribute('lng')));var all_hours=JSON.parse(markerNodes[i].getAttribute('allday'));var thisday=markerNodes[i].getAttribute('thisday');var fermeture_b='Fermé';for(var item in all_hours){if(item==thisday-1){fermeture=all_hours[item];if(fermeture[0].toLowerCase()!='fermé'){time=fermeture[0].toString().replaceAll('h','').replaceAll(' ','');fermeture_time=time.toString().split('-');if(Array.isArray(fermeture_time)&&fermeture_time.length>0){console.log(fermeture_time) 1391var now=new Date();var date_debut,date_fin=!1;if(/^[0-9]{2}:[0-9]{2}$/.test(fermeture_time[0])){var time_split=fermeture_time[0].toString().split(':');date_debut=new Date(now.getFullYear(),now.getMonth(),now.getDate(),time_split[0],time_split[1],00)}else if(/^[0-9]{2}$/.test(fermeture_time[0])){date_debut=new Date(now.getFullYear(),now.getMonth(),now.getDate(),fermeture_time[0],00,00)} 1392if(/^[0-9]{2}:[0-9]{2}$/.test(fermeture_time[1])){var time_split=fermeture_time[1].toString().split(':');date_fin=new Date(now.getFullYear(),now.getMonth(),now.getDate(),time_split[0],time_split[1],00)}else if(/^[0-9]{2}$/.test(fermeture_time[1])){date_fin=new Date(now.getFullYear(),now.getMonth(),now.getDate(),fermeture_time[1],00,00)} 1393if(date_debut&&date_fin){if(now.getTime()>=date_debut.getTime()&&now.getTime()<=date_fin.getTime()){fermeture_b='Ouvert jusqu\'à '+fermeture[0].toString().split('-')[1]}}}}}} 1394if(fermeture_b=='Fermé'){const now=new Date();const day=now.getDay();if(day>=1&&day<=6){fermeture_b="Ouvert jusqu'à 19:30h"}} 1395createMarker(latlng,name,address,other,id_store,has_store_picture,email,fax,note);var note=markerNodes[i].getAttribute('note');if(FMESL_LAYOUT_THEME>0){address=address.replace(phone,'');$('#fmmsl_split_list ul').append('<li><a href="javascript:void(0);" onclick="fmmSlTriggerStore('+i+');" title="'+name+'">'+name+'</a><div class="col-md-12 store-adress vvvv"> '+address+'</div>'+(FMESL_MAP_LINK>0?'<div class="col-md-12">Tél : <span class="store-tel"> <a href="tel:'+phone+'">'+phone+'</a></span></div><div class="col-md-12">Mail : <span class="store-mail">
1395'+email+'</span></div><div class="col-md-12 store-availability-bloc"><span class="fermeture_hour">'+fermeture_b+'</span><a href="'+link+'" class="button btn btn-primary fmmsl_storeview"><u>'+translation_11+'</u> ></a></div></li>':''))} 1396bounds.extend(latlng)}})} 1397function searchLocations(){$('#stores_loader').show();var address=document.getElementById('addressInput').value;var geocoder=new google.maps.Geocoder();geocoder.geocode({address:address},function(results,status){if(status===google.maps.GeocoderStatus.OK){searchLocationsNear(results[0].geometry.location)}else{alert(address+' '+translation_6)} 1398$('#stores_loader').hide()})} 1399function clearLocations(n){infoWindow.close();for(var i=0;i<markers.length;i++){markers[i].setMap(null)} 1400markers.length=0;if(FMESL_LAYOUT_THEME<=0){$(locationSelect).show();locationSelect.innerHTML='';var option=document.createElement('option');option.value='none';if(!n) 1401option.innerHTML=translation_1;else{if(n===1) 1402option.innerHTML='1'+' '+translation_2;else option.innerHTML=n+' '+translation_3} 1403locationSelect.appendChild(option);$('#stores-table tr.node').remove()}} 1404function searchLocationsNear(center){var radius=document.getElementById('radiusSelect').value;var productID=$('#fmeSearchProduct').attr('name');if(typeof(productID)=='undefined'||productID==null){productID=''} 1405var searchUrl=prestashop.urls.current_url+'?ajax=1&latitude='+center.lat()+'&longitude='+center.lng()+'&radius='+radius+'&product='+productID;downloadUrl(searchUrl,function(data){var xml=parseXml(data);var markerNodes=xml.documentElement.getElementsByTagName('marker');var bounds=new google.maps.LatLngBounds();clearLocations(markerNodes.length);$('#fmmsl_split_list').html('<ul></ul>');for(var i=0;i<markerNodes.length;i++){var name=markerNodes[i].getAttribute('name');var address=markerNodes[i].getAttribute('address');var addressNoHtml=markerNodes[i].getAttribute('addressNoHtml');var other=markerNodes[i].getAttribute('other');var distance=parseFloat(markerNodes[i].getAttribute('distance'));var id_store=parseFloat(markerNodes[i].getAttribute('id_store'));var phone=markerNodes[i].getAttribute('phone');var email=markerNodes[i].getAttribute('email');var fax=markerNodes[i].getAttribute('fax');var note=markerNodes[i].getAttribute('note');var has_store_picture=markerNodes[i].getAttribute('has_store_picture');var latlng=new google.maps.LatLng(parseFloat(markerNodes[i].getAttribute('lat')),parseFloat(markerNodes[i].getAttribute('lng')));createOption(name,distance,i);createMarker(latlng,name,address,other,id_store,has_store_picture,email,fax,note);bounds.extend(latlng);if(FMESL_LAYOUT_THEME>0){$('#fmmsl_split_list ul').append('<li><a href="javascript:void(0);" onclick="fmmSlTriggerStore('+i+');" title="'+name+'">'+name+'</a><p>'+addressNoHtml+(FMESL_STORE_FAX&&fax!==''?'<br />'+translation_8+' '+fax:'')+'<br />'+translation_10+' '+distance+' '+distance_unit+'</p></li>')}else{$('#stores-table tr:last').after('<tr class="node">'+'<td class="num">'+parseInt(i+1)+'</td>'+'<td><b>'+name+'</b>'+(has_store_picture===1?'<br /><img src="'+img_store_dir+parseInt(id_store)+'-medium.jpg" alt="" />':'')+'</td>'+'<td>'+address+(FMESL_STORE_EMAIL&&email!==''?'<br /><br />'+translation_7+' '+email:'')+(FMESL_STORE_FAX&&fax!==''?'<br /><br />'+translation_8+' '+fax:'')+(FMESL_STORE_NOTE&¬e!==''?'<br /><br />'+translation_9+' '+note:'')+'</td>'+'<td class="distance">'+distance+' '+distance_unit+'</td>'+'</tr>');$('#stores-table').show()}} 1406if(markerNodes.length){map.fitBounds(bounds);var listener=google.maps.event.addListener(map,"idle",function(){if(map.getZoom()>13)map.setZoom(13);google.maps.event.removeListener(listener)})} 1407if(FMESL_LAYOUT_THEME<=0){locationSelect.style.visibility='visible';$(locationSelect).show();locationSelect.onchange=function(){var markerNum=locationSelect.options[locationSelect.selectedIndex].value;google.maps.event.trigger(markers[markerNum],'click')}}})} 1408function createMarker(latlng,name,address,other,id_store,has_store_picture,email,fax,note){var html='<b>'+name+'</b><br/>'+address+(FMESL_STORE_EMAIL&&email!==''?'<br />'+translation_7+' '+email:'')+(FMESL_STORE_FAX&&fax!==''?'<br />'+translation_8+' '+fax:'')+(FMESL_STORE_NOTE&¬e!==''?'<br />'+translation_9+' '+note:'')+(other?'<br />'+other:'')+'<br />
1408<a href="https://maps.google.com/maps?saddr=&daddr='+latlng+'" target="_blank">S\'y rendre<\/a>';if(FMESL_STORE_GLOBAL_ICON>0){var image=new google.maps.MarkerImage(img_ps_dir+'st/icon_'+id_store+'.png')}else{var image=new google.maps.MarkerImage(img_ps_dir+logo_store)} 1409var marker='';if(hasStoreIcon){marker=new google.maps.Marker({map:map,icon:image,position:latlng})}else{marker=new google.maps.Marker({map:map,position:latlng})} 1410google.maps.event.addListener(marker,'click',function(){infoWindow.setContent(html);infoWindow.open(map,marker)});markers.push(marker);var _id_store=CurrentUrl;if(_id_store>0){google.maps.event.addListenerOnce(map,'tilesloaded',function(){$('select#locationSelect > option[label="'+_id_store+'"]').prop('selected',!0);$('select#locationSelect').trigger('change')})}} 1411function createOption(name,distance,num){var option=document.createElement('option');option.value=num;option.innerHTML=name+' ('+distance.toFixed(1)+' '+distance_unit+')';if(FMESL_LAYOUT_THEME<=0){locationSelect.appendChild(option)}} 1412function downloadUrl(url,callback){var request=window.ActiveXObject?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();request.onreadystatechange=function(){if(request.readyState===4){request.onreadystatechange=doNothing;callback(request.responseText,request.status)}};request.open('GET',url,!0);request.send(null)} 1413function parseXml(str){if(window.ActiveXObject){var doc=new ActiveXObject('Microsoft.XMLDOM');doc.loadXML(str);return doc}else if(window.DOMParser){return(new DOMParser()).parseFromString(str,'text/xml')}} 1414function doNothing(){} 1415function PosLoc(position){var coords=position.coords||position.coordinate||position;var LtLnPos=new google.maps.LatLng(coords.latitude,coords.longitude);map.setCenter(LtLnPos);map.setZoom(10);var marker=new google.maps.Marker({map:map,position:LtLnPos,title:translation_06});markers.push(marker);(new google.maps.Geocoder()).geocode({latLng:LtLnPos},function(resp){var place=translation_07;if(resp[0]){var bits=[];for(var i=0,I=resp[0].address_components.length;i<I;++i){var component=resp[0].address_components[i];if(jQuery.inArray(component.types,'political')){bits.push(component.long_name)}} 1416if(bits.length){place=bits} 1417marker.setTitle(resp[0].formatted_address)} 1418document.getElementById('addressInput').value=place;map.setZoom(5)})} 1419function PosUnSuccess(issue){var message;switch(issue.code){case issue.UNKNOWN_ERROR:message=translation_01;break;case issue.PERMISSION_DENINED:message=translation_02;break;case issue.POSITION_UNAVAILABLE:message=translation_03;break;case issue.BREAK:message=translation_04;break;default:message=translation_05}} 1420function ResetMap(n){infoWindow.close();map.setZoom(defaultZoom);initMarkers();var LtLnPos=new google.maps.LatLng(defaultLat,defaultLong);map.setCenter(LtLnPos);if(FMESL_LAYOUT_THEME<=0){locationSelect.innerHTML='';var option=document.createElement('option');option.value='none';if(!n){option.innerHTML=translation_1}else{if(n===1){option.innerHTML='1'+' '+translation_2}else{option.innerHTML=n+' '+translation_3}} 1421locationSelect.appendChild(option);$('#stores-table tr.node').remove();$('#locationSelect').hide()}} 1422function initMap(){var map_elements=$('.store_map');if(map_elements.length){map_elements.each(function(e){initGoogleMap($(this).get(0))})}} 1423function initGoogleMap(mapElement){if(typeof mapElement!=='undefined'&&typeof mapElement!=='null'&&mapElement){var mapOptions={center:new google.maps.LatLng(defaultLat,defaultLong),zoom:defaultZoom,mapTypeId:'roadmap',mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},styles:(typeof map_theme!=='undefined')?map_theme:'',} 1424map=new google.maps.Map(mapElement,mapOptions);infoWindow=new google.maps.InfoWindow();if(FMESL_LAYOUT_THEME<=0){locationSelect=document.getElementById('locationSelect');$('#locationSelect').hide();locationSelect.onchange=function(){var markerNum=locationSelect.options[locationSelect.selectedIndex].value;if(markerNum!=='none') 1425google.maps.event.trigger(markers[markerNum],'click');}} 1426$('#addressInput').keypress(function(e){code=e.keyCode?e.keyCode:e.which;if(code.toString()===13) 1427searchLocations();});google.maps.event.addListenerOnce(map,'tilesloaded',function(){if(autolocateUser){navigator.geolocation.getCurrentPosition(PosLoc,PosUnSuccess)}});initMarkers()}} 1428$(document).ready(function(){initMap();var $_slBox=$('.fmeSearchbyProduct');var sl_url=search_link;var options={url:search_url,dataType:'json',theme:"bootstrap",ajaxSettings:{method:'POST',},preparePostData:function(data,inputPhrase){data={ajax:!0,s:inputPhrase,resultsPerPage:10,action:'searchStoreProduct',};return data},placeholder:placeholder_label,requestDelay:300,getValue:function(element){return element.name},list:{maxNumberOfElements:10,onClickEvent:function(){var responseData=$_slBox.getSelectedItemData();var _id_sl=responseData.id_product;var _name_sl=responseData.name;$('#fmeSearchProduct').attr('value',_name_sl);$('#fmeSearchProduct').attr('name',_id_sl);$('#fmeSearchProduct').attr('placeholder',_name_sl)},},};$_slBox.easyAutocomplete(options)});
1428function fmmSlTriggerStore(id){google.maps.event.trigger(markers[id],'click')};/* 1429 * 2007-2018 PrestaShop 1430 * 1431 * NOTICE OF LICENSE 1432 * 1433 * This source file is subject to the Open Software License (OSL 3.0) 1434 * that is bundled with this package in the file LICENSE.txt. 1435 * It is also available through the world-wide-web at this URL: 1436 * http://opensource.org/licenses/osl-3.0.php 1437 * If you did not receive a copy of the license and are unable to 1438 * obtain it through the world-wide-web, please send an email 1439 * to [email protected] so we can send you a copy immediately. 1440 * 1441 * DISCLAIMER 1442 * 1443 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1444 * versions in the future. If you wish to customize PrestaShop for your 1445 * needs please refer to http://www.prestashop.com for more information. 1446 * 1447 * @author PrestaShop SA <[email protected]> 1448 * @copyright 2007-2018 PrestaShop SA 1449 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 1450 * International Registered Trademark & Property of PrestaShop SA 1451 */ 1452$(document).ready(function(){$(document).on('click','.quick-view',function(e){var id_product=$(this).closest('.product-miniature').attr('data-id-product');$.ajax({type:'POST',url:baseDir+'modules/facingsupermodelcombinations/facing.php?id_product_facing='+id_product,headers:{"cache-control":"no-cache"},data:'data-facing=true',async:!0,cache:!1,dataType:'json',success:function(jsonData){if(jsonData){var facingdata=jsonData.facingdata;setTimeout(function(){showFacingDeclinations(facingdata,id_product)},1000)}}})})});function showFacingDeclinations(data,id_product){var group_attribute=data.group;var group_type=data.group_type;var title='<span class="control-label">'+info_declinations+'</span>';var content='';for(var i=0;i<data.products.length;i++){for(var j=0;j<data.products[i].length;j++){if(data.products[i][j]){var attribute=data.products[i][j].id_attribute;var color=data.products[i][j].color;var name=data.products[i][j].name;var link=data.products[i][j].link;var img_color=data.products[i][j].img_color_exists;if(data.products[i][j].id_product!==id_product){if(group_type=='color'){content+='<li class="float-xs-left input-container"><a data-product-attribute="'+group_attribute+'" style="display: block;height: 22px;width: 22px;cursor: pointer;background-color: '+color+'" href="'+link+'" title="'+name+'">';if(img_color==1){content+='<img src="'+img_col_dir+''+attribute+'.jpg" alt="'+name+'" title="'+name+'" width="20" height="20" />'} 1453content+='</a></li>'} 1454if(group_type=='select'){content+='<option value="'+attribute+'" url_option="'+link+'" title="'+name+'">'+name+'</option>'} 1455if(group_type=='radio'){content+='<li class="float-xs-left input-container"><a href="'+link+'" style="display: block;height: 25px;width: 50px;cursor: pointer;border: solid 2px #000; text-align:center;color:#000;" title="'+name+'">'+name+'</a></li>'}}}}} 1456if(group_type=='color'){$(title+'<div class="clearfix product-variants-item" style="margin-bottom:10px;"><ul>'+content+'</ul></div>').insertBefore(".product-add-to-cart")} 1457if(group_type=='radio'){$('.product-variants').append(title+'<div class="clearfix product-variants-item" style="margin-bottom:10px;"><ul>'+content+'</ul></div>');$(title+'<div class="clearfix product-variants-item"><ul>'+content+'</ul></div>').insertBefore(".product-add-to-cart")} 1458if(group_type=='select'){$(title+'<div class="clearfix product-variants-item" style="margin-bottom:10px;"><select class="clearfix form-control form-control-select" id="select-facing" style="background-color: #fff;width: auto;padding-right: 1.875rem;">'+content+'</select></div>').insertBefore(".product-add-to-cart");$(document).on('change','select[id*=select-facing]',function(){var link=$(this).children(":selected").attr("url_option");window.location=link})}};var ap5GlobalPlugin={debug:!1,log:function(txt){if(ap5GlobalPlugin.debug){console.log(new Date().toUTCString()+' - '+txt)}},displayErrors:function(jsonData){if(jsonData.hasError){var errors='';for(error in jsonData.errors){errors+=$('<div />').html(jsonData.errors[error]).text()+"\n"}
1459if(!!$.prototype.modal){$('<div class="modal fade"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title text-danger">'+ap5_modalErrorTitle+'</h5></div><div class="modal-body"><p>'+errors+'</p></div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button></div></div></div></div>').modal('show')}else{alert(errors)}}},};prestashop.on('handleError',function(event){if(typeof(event)=='object'&&typeof(event.eventType)=='string'&&event.eventType=='addProductToCart'&&typeof(event.resp)=='object'&&typeof(event.resp.responseJSON)=='object'&&typeof(event.resp.responseJSON.from_AP5)=='boolean'&&typeof(event.resp.responseJSON.hasError)=='boolean'){ap5GlobalPlugin.displayErrors(event.resp.responseJSON)}});/** 1460* 2007-2019 PrestaShop 1461* 1462* NOTICE OF LICENSE 1463* 1464* This source file is subject to the Academic Free License (AFL 3.0) 1465* that is bundled with this package in the file LICENSE.txt. 1466* It is also available through the world-wide-web at this URL: 1467* http://opensource.org/licenses/afl-3.0.php 1468* If you did not receive a copy of the license and are unable to 1469* obtain it through the world-wide-web, please send an email 1470* to [email protected] so we can send you a copy immediately. 1471* 1472* DISCLAIMER 1473* 1474* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1475* versions in the future. If you wish to customize PrestaShop for your 1476* needs please refer to http://www.prestashop.com for more information. 1477* 1478* @author PrestaShop SA <[email protected]> 1479* @copyright 2007-2019 PrestaShop SA 1480* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1481* International Registered Trademark & Property of PrestaShop SA 1482* 1483* Don't forget to prefix your containers with your own identifier 1484* to avoid any conflicts with others containers. 1485*/ 1486$(document).ready(function(){var i=1;var modulo=Number($('#zonepromo_block').attr('data-modulo'));$('.products').children().each(function(index){var html="<article class='"+$(this).attr('class')+"'>"+$('#zonepromo_block').html()+"</article>";if(i%modulo==0){$(html).insertBefore($(this))} 1487i++})});/** 1488* 2007-2021 PrestaShop 1489* 1490* NOTICE OF LICENSE 1491* 1492* This source file is subject to the Academic Free License (AFL 3.0) 1493* that is bundled with this package in the file LICENSE.txt. 1494* It is also available through the world-wide-web at this URL: 1495* http://opensource.org/licenses/afl-3.0.php 1496* If you did not receive a copy of the license and are unable to 1497* obtain it through the world-wide-web, please send an email 1498* to [email protected] so we can send you a copy immediately. 1499* 1500* DISCLAIMER 1501* 1502* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1503* versions in the future. If you wish to customize PrestaShop for your 1504* needs please refer to http://www.prestashop.com for more information. 1505* 1506* @author PrestaShop SA <[email protected]> 1507* @copyright 2007-2021 PrestaShop SA 1508* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1509* International Registered Trademark & Property of PrestaShop SA 1510* 1511* Don't forget to prefix your containers with your own identifier 1512* to avoid any conflicts with others containers. 1513*/ 1514$(document).ready(function(){$('#outletDescriptionClick').click(function(){console.log("valhala");$.fancybox({type:'inline',content:jQuery('.outletDescriptionText').html(),})})});/** 1515 * NOTICE OF LICENSE 1516 * 1517 * This source file is subject to a commercial license from SAS Comptoir du Code 1518 * Use, copy, modification or distribution of this source file without written 1519 * license agreement from the SAS Comptoir du Code is strictly forbidden. 1520 * In order to obtain a license, please contact us: [email protected] 1521 * 1522 * @package cdc_googletagmanager 1523 * @author Vincent - Comptoir du Code 1524 * @copyright Copyright(c) 2015-2024 SAS Comptoir du Code 1525 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 1526 * 1527 * Project Name : Google Tag Manager Enhanced Ecommerce (UA) Tracking 1528 * Created By : Comptoir du Code 1529 * Created On : 2016-06-02 1530 * Support : https://addons.prestashop.com/contact-community.php?id_product=23806 1531 */ 1532var cdcGtm={clearDatalayer:function(){if(typeof dataLayer==='undefined'){dataLayer=[]} 1533dataLayer.push({ecommerce:null})},addToCart:function(product_id,attribute_id,qtity,addedFromProductPage,callerElement){if(product_id){cdcGtm.pushProductToDatalayer('cart-add',product_id,attribute_id,qtity)}},removeFromCart:function(product_id,attribute_id,qtity){if(product_id){cdcGtm.pushProductToDatalayer('cart-remove',product_id,attribute_id,qtity)}},productClick:function(product_id,attribute_id){if(product_id){cdcGtm.pushProductToDatalayer('product-click',product_id,attribute_id)}},displayCategoryAsync:function(product_ids){if(product_ids){let params='';if(typeof cdcDatalayer!=='undefined'&&cdcDatalayer&&cdcDatalayer.ecommerce&&cdcDatalayer.ecommerce.items&&cdcDatalayer.ecommerce.items.length>0&&cdcDatalayer.ecommerce.items[0].item_list_id&&/^cat_\d+$/.test(cdcDatalayer.ecommerce.items[0].item_list_id)){const item_list_id=cdcDatalayer.ecommerce.items[0].item_list_id;categoryId=parseInt(item_list_id.split('_')[1],10);if(categoryId){params='id_category='+categoryId}} 1534cdcGtm.pushProductListToDatalayer('category-display',product_ids,params)}},pushDalayerFromAjaxResponse:function(cdcgtmreq){if(cdcgtmreq.readyState==4){if(cdcgtmreq.status==200){var datalayerJs=cdcgtmreq.responseText;try{let datalayerJson=JSON.parse(datalayerJs);cdcGtm.clearDatalayer();dataLayer.push(datalayerJson)}catch(e){console.log("[CDCGTM] error while parsing json")}}}},pushProductToDatalayer:function(action,product_id,attribute_id,qtity){attribute_id=attribute_id||0;qtity=qtity||1;var cdcgtmreq=new XMLHttpRequest();cdcgtmreq.onreadystatechange=function(){cdcGtm.pushDalayerFromAjaxResponse(cdcgtmreq)} 1535if(typeof cdcGtmApi!=='undefined'&&cdcGtmApi){cdcgtmreq.open("GET",cdcGtmApi+"?action="+action+"&id="+product_id+"&id_attribute="+attribute_id+"&qtity="+qtity,!0);cdcgtmreq.setRequestHeader('X-Requested-With','XMLHttpRequest');cdcgtmreq.send()}else{console.error("[CDCGTM] cdcGtmApi not defined, cannot send action "+action)}},pushProductListToDatalayer:function(action,product_ids,params){var cdcgtmreq=new XMLHttpRequest();cdcgtmreq.onreadystatechange=function(){cdcGtm.pushDalayerFromAjaxResponse(cdcgtmreq)} 1536if(typeof cdcGtmApi!=='undefined'&&cdcGtmApi){if(params){params='&'+params}else{params=''} 1537cdcgtmreq.open("POST",cdcGtmApi+"?action="+action+params,!0);cdcgtmreq.setRequestHeader('Content-type','application/x-www-form-urlencoded');cdcgtmreq.send("id_products="+JSON.stringify(product_ids))}else{console.error("[CDCGTM] cdcGtmApi not defined, cannot send action "+action)}},handleValidateShippingStep:function($submitBtn,event,shippingName,doNotPreventClick){if(!$submitBtn.hasClass('clicked')){if(typeof doNotPreventClick==='undefined'||!doNotPreventClick){event.preventDefault()} 1538try{dataLayer=dataLayer||[];let cloneDatalayer=JSON.parse(JSON.stringify(cdcDatalayer)) 1539cloneDatalayer.event='add_shipping_info';cloneDatalayer.ecommerce.shipping_tier=shippingName;cdcGtm.clearDatalayer();dataLayer.push(cloneDatalayer)}catch(e){console.error(e)} 1540if(typeof doNotPreventClick==='undefined'||!doNotPreventClick){setTimeout(function(){$submitBtn.addClass('clicked');$submitBtn.click()},500)}}},handleValidatePayementStep:function(paymentName){try{dataLayer=dataLayer||[];let cloneDatalayer=JSON.parse(JSON.stringify(cdcDatalayer)) 1541cloneDatalayer.event='add_payment_info';cloneDatalayer.ecommerce.payment_type=paymentName;cdcGtm.clearDatalayer();dataLayer.push(cloneDatalayer)}catch(e){console.error(e)}}} 1542if(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)} 1543var 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){let requestData={};if(event&&event.reason){requestData={id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction};let quantity=1;if(event.resp&&event.resp.quantity){quantity=event.resp.quantity} 1544if(requestData.action=='add-to-cart'){cdcGtm.addToCart(requestData.id_product,requestData.id_product_attribute,quantity,null,null)}else if(requestData.action=='delete-from-cart'){cdcGtm.removeFromCart(requestData.id_product,requestData.id_product_attribute,quantity)}}});document.addEventListener('awp-add-to-cart',function(event){cdcGtm.addToCart(event.detail.productId,event.detail.id_product_attribute,event.detail.quantity,!0,'awp-add-to-cart')})})} 1545var 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])} 1546var 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])} 1547var val=$('input[name=quantity_'+id+']').val();var newVal=val;if(typeof(qty)=='undefined'||!qty){new_qty=1;newVal=val-1}else if(qty<0) 1548new_qty=-qty;if(newVal>0){cdcGtm.removeFromCart(productId,productAttributeId,new_qty)} 1549original_downQuantity(id,qty)}})();$(document).ready(function(){if(typeof ajaxShippingEvent!=='undefined'&&ajaxShippingEvent){$('#checkout').on('click','#checkout-delivery-step button[type=submit]',function(e){let $submitBtn=$(this);let $selectedShipping=$submitBtn.closest('#checkout-delivery-step').find('.delivery-options input[type=radio]:checked').closest('.delivery-option');let shippingName=$selectedShipping.find('.carrier-name').text();cdcGtm.handleValidateShippingStep($submitBtn,e,shippingName)});$('#order').on('click','button[name=processCarrier]',function(e){let $submitBtn=$(this);let $selectedShipping=$submitBtn.closest('form[name=carrier_area]').find('.delivery_options input[type=radio]:checked').closest('.delivery_option');let shippingName=$selectedShipping.find('td:not(.delivery_option_radio):not(.delivery_option_logo):not(.delivery_option_price)').find('strong').text();cdcGtm.handleValidateShippingStep($submitBtn,e,shippingName)})} 1550if(typeof ajaxPaymentEvent!=='undefined'&&ajaxPaymentEvent){$('#checkout').on('change','#checkout-payment-step input[type=radio][name=payment-option]',function(e){let paymentName=$(this).closest('.payment-option').find('label').text().trim();cdcGtm.handleValidatePayementStep(paymentName)});$('#order').on('click','#HOOK_PAYMENT .payment_module a',function(e,cdcGtmTriggered){let $submitBtn=$(this);e.preventDefault();cdcGtm.handleValidatePayementStep($submitBtn.attr('title'));setTimeout(function(){window.location.href=$submitBtn.attr("href")},500)})}});$(document).ready(function(){$('article[data-id-product]').find('a').on('click',function(){let $product=$(this).closest('article[data-id-product]');let idProduct=$product.data('id-product');let idProductAttribute=$product.data('id-product-attribute')|0;cdcGtm.productClick(idProduct,idProductAttribute)});$('.ajax_block_product').find('a.product-name,a.product_img_link,a.lnk_view,a.quick-view-mobile').on('click',function(e){let $productInfos=$(this).closest('.ajax_block_product').find('.cdcgtm_product');let idProduct=$productInfos.data('id-product');let idProductAttribute=$productInfos.data('id-product-attribute')|0;cdcGtm.productClick(idProduct,idProductAttribute)})});if(typeof(prestashop)!='undefined'){$(document).ready(function(){prestashop.on('updateProductList',function(event){const parser=new DOMParser();const doc=parser.parseFromString(event.rendered_products,'text/html');const products=doc.querySelectorAll('article[data-id-product]');const productsList=Array.from(products).map(product=>(product.getAttribute('data-id-product')+'-'+product.getAttribute('data-id-product-attribute')));cdcGtm.displayCategoryAsync(productsList)})})};/** 1551 * 2007-2023 PrestaShop 1552 * 1553 * NOTICE OF LICENSE 1554 * 1555 * This source file is subject to the Academic Free License (AFL 3.0)
1556 * that is bundled with this package in the file LICENSE.txt. 1557 * It is also available through the world-wide-web at this URL: 1558 * http://opensource.org/licenses/afl-3.0.php 1559 * If you did not receive a copy of the license and are unable to 1560 * obtain it through the world-wide-web, please send an email 1561 * to [email protected] so we can send you a copy immediately. 1562 * 1563 * DISCLAIMER 1564 * 1565 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1566 * versions in the future. If you wish to customize PrestaShop for your 1567 * needs please refer to http://www.prestashop.com for more information. 1568 * 1569 * @author PrestaShop SA <[email protected]> 1570 * @copyright 2007-2023 PrestaShop SA 1571 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1572 * International Registered Trademark & Property of PrestaShop SA 1573 * 1574 * Don't forget to prefix your containers with your own identifier 1575 * to avoid any conflicts with others containers. 1576 */ 1577;(function(){'use strict';if(typeof re_version==='undefined'||parseInt(re_version,10)!==3){return} 1578if(typeof site_key==='undefined'||!site_key){return} 1579var REFRESH_MS=100000;var FIELD='g-recaptcha-response';var TARGETS=[{action:'contact',selectors:['#contact .contact-form > form','#contact .contact-form-box','#contact #center_column form','#contact form','#contact .contact-page form']},{action:'login',selectors:['#authentication #login-form','#authentication #login_form']},{action:'register',selectors:['#authentication #customer-form','#authentication #account-creation_form','#registration #customer-form','#registration #account-creation_form','#checkout #customer-form']},{action:'password',selectors:['#password .forgotten-password','#password #form_forgotpassword']},{action:'comment',selectors:['#product #id_new_comment_form','#product #post-product-comment-modal']},{action:'newsletter',selectors:['.block_newsletter form','#newsletter_block_left form','#footercustom_newsletter_social form','.st_news_letter_form','#newsletter form','.footer-newsletter form']}];function findForms(selectors){for(var i=0;i<selectors.length;i++){var nodes=document.querySelectorAll(selectors[i]);var found=[];for(var j=0;j<nodes.length;j++){var el=nodes[j];var form=(el.tagName==='FORM')?el:el.querySelector('form');if(!form||found.indexOf(form)!==-1){continue} 1580if((form.getAttribute('method')||'get').toLowerCase()!=='post'){continue} 1581found.push(form)} 1582if(found.length){return found}} 1583return[]} 1584function ensureField(form){var input=form.querySelector('input[name="'+FIELD+'"]');
1584if(!input){input=document.createElement('input');input.type='hidden';input.name=FIELD;input.value='';form.appendChild(input)} 1585return input} 1586function markWhitelisted(form){if(form.querySelector('input[name="recaptcha_whitelisted"]')){return} 1587var input=document.createElement('input');input.type='hidden';input.name='recaptcha_whitelisted';input.value='1';form.appendChild(input)} 1588function refresh(input,action){try{grecaptcha.execute(site_key,{action:action}).then(function(token){if(token){input.value=token}})['catch'](function(){})}catch(e){}} 1589function setup(){var isWhitelisted=(typeof whitelisted!=='undefined')&&whitelisted&&whitelisted!=='0';for(var t=0;t<TARGETS.length;t++){var forms=findForms(TARGETS[t].selectors);for(var f=0;f<forms.length;f++){var form=forms[f];if(form.getAttribute('data-gsi-recaptcha')==='1'){continue} 1590form.setAttribute('data-gsi-recaptcha','1');if(isWhitelisted){markWhitelisted(form);continue}(function(form,action){var input=ensureField(form);var armed=!1;function arm(){if(armed){return} 1591armed=!0;refresh(input,action);setInterval(function(){refresh(input,action)},REFRESH_MS)}['focusin','input','change'].forEach(function(evt){form.addEventListener(evt,arm,{once:!1})});form.addEventListener('submit',function(){arm();setTimeout(function(){refresh(input,action)},500)})})(form,TARGETS[t].action)}}} 1592function start(){if(typeof grecaptcha==='undefined'||!grecaptcha.ready){return} 1593grecaptcha.ready(setup)} 1594if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',start)}else{start()}})();/*! jQuery UI - v1.10.3 - 2013-05-03 1595* http://jqueryui.com 1596* 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 1597* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 1598!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 1598
1598)&&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 1598
1598containment:!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 1598
1598a.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 1598
1598: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 1598
1598return 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 1598
1598if(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 1598
1598ight()-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 1598
159810)||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 1598
15980])*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 1598
1598,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 1598
1598),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 1598
1598)&&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]}
1598).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
1598ay","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 1598
1598,_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 1598
1598))}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 1598
1598,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 1598
1598,_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 1598
1598"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 1598
1598: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 1598
1598)}(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;
1598d=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);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;
1598if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});/** 1599 * 2007-2018 PrestaShop 1600 * 1601 * NOTICE OF LICENSE 1602 * 1603 * This source file is subject to the Open Software License (OSL 3.0) 1604 * that is bundled with this package in the file LICENSE.txt. 1605 * It is also available through the world-wide-web at this URL: 1606 * http://opensource.org/licenses/osl-3.0.php 1607 * If you did not receive a copy of the license and are unable to 1608 * obtain it through the world-wide-web, please send an email 1609 * to [email protected] so we can send you a copy immediately. 1610 * 1611 * DISCLAIMER 1612 * 1613 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1614 * versions in the future. If you wish to customize PrestaShop for your 1615 * needs please refer to http://www.prestashop.com for more information. 1616 * 1617 * @author PrestaShop SA <[email protected]> 1618 * @copyright 2007-2016 PrestaShop SA 1619 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 1620 * International Registered Trademark & Property of PrestaShop SA 1621 */ 1622$(document).ready(function(){var $searchWidget=$('#search_widget');var $searchBox=$searchWidget.find('input[type=text]');var searchURL=$searchWidget.attr('data-search-controller-url');$.widget('prestashop.psBlockSearchAutocomplete',$.ui.autocomplete,{_renderItem:function(ul,product){var cover='',ref='';if(product.cover&&product.cover.small&&product.cover.small.url){cover=$('<span>').addClass('cover').html('<img src="'+product.cover.small.url+'" class="img-fluid">')} 1623if(product.reference&&product.reference!=''){ref=$('<span>').addClass('pref').html(' (Ref: '+product.reference+')')} 1624return $('<li>').addClass('search-menu-item').append($('<a>').addClass('search-item').append(cover).append($('<span>').addClass('info').append($('<span>').html(product.category_name).addClass('category')).append($('<span>').html('  ').addClass('separator material-icons')).append($('<span>').html(product.name).addClass('product')).append($('<span>').html(product.price).addClass('pprice')).append(ref))).appendTo(ul)}});$searchBox.psBlockSearchAutocomplete({source:function(query,response){$.post(searchURL,{s:query.term,resultsPerPage:10},null,'json').then(function(resp){response(resp.products)}).fail(response)},select:function(event,ui){var url=ui.item.url;window.location.href=url},})});/** 1625 * 2007-2018 PrestaShop 1626 * 1627 * NOTICE OF LICENSE 1628 * 1629 * This source file is subject to the Open Software License (OSL 3.0) 1630 * that is bundled with this package in the file LICENSE.txt. 1631 * It is also available through the world-wide-web at this URL: 1632 * http://opensource.org/licenses/osl-3.0.php 1633 * If you did not receive a copy of the license and are unable to 1634 * obtain it through the world-wide-web, please send an email 1635 * to [email protected] so we can send you a copy immediately. 1636 * 1637 * DISCLAIMER 1638 * 1639 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1640 * versions in the future. If you wish to customize PrestaShop for your 1641 * needs please refer to http://www.prestashop.com for more information. 1642 * 1643 * @author PrestaShop SA <[email protected]> 1644 * @copyright 2007-2016 PrestaShop SA 1645 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 1646 * International Registered Trademark & Property of PrestaShop SA 1647 */ 1648$(document).ready(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;
1648if(typeof(varPSAjaxCart)!=='undefined'&&varPSAjaxCart){psAjaxCart=varPSAjaxCart} 1649prestashop.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}} 1650$.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'));var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));$('[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)}} 1651$('.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})})})});(function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof module==='object'&&typeof module.exports==='object'){module.exports=factory(require('jquery'))}else{root.Selectize=factory(root.jQuery)}}(this,function($){'use strict';var highlight=function(t,e){var r,a;if("string"!=typeof e||e.length)return r="string"==typeof e?new RegExp(e,"i"):e,a=function(t){var e=0;if(3===t.nodeType){var n,i,o=t.data.search(r);0<=o&&0<t.data.length&&(i=t.data.match(r),(n=document.createElement("span")).className="highlight",(o=t.splitText(o)).splitText(i[0].length),i=o.cloneNode(!0),n.appendChild(i),o.parentNode.replaceChild(n,o),e=1)}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var s=0;s<t.childNodes.length;++s)s+=a(t.childNodes[s]);return e},t.each(function(){a(this)})},MicroEvent=($.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()}).end()},function(){}),MicroPlugin=(MicroEvent.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=!1&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){var e=this._events=this._events||{};if(t in e!=!1)for(var n=0;n<e[t].length;n++)e[t][n].apply(this,Array.prototype.slice.call(arguments,1))}},MicroEvent.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=MicroEvent.prototype[e[n]]},{});MicroPlugin.mixin=function(o){o.plugins={},o.prototype.initializePlugins=function(t){var e,n,i,o=this,s=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},isArray(t))for(e=0,n=t.length;e<n;e++)"string"==typeof t[e]?s.push(t[e]):(o.plugins.settings[t[e].name]=t[e].options,s.push(t[e].name));else if(t)for(i in t)t.hasOwnProperty(i)&&(o.plugins.settings[i]=t[i],s.push(i));for(;s.length;)o.require(s.shift())},o.prototype.loadPlugin=function(t){var e=this,n=e.plugins,i=o.plugins[t];if(!o.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');n.requested[t]=!0,n.loaded[t]=i.fn.apply(e,[e.plugins.settings[t]||{}]),n.names.push(t)},o.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},o.define=function(t,e){o.plugins[t]={name:t,fn:e}}};const nanoid=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>t+((e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():62<e?"-":"_"),"");var Sifter=function(t,e){this.items=t,this.settings=e||{diacritics:!0}},cmp=(Sifter.prototype.tokenize=function(t,e){if(!(t=trim(String(t||"").toLowerCase()))||!t.length)return[];for(var n,i,o=[],s=t.split(/ +/),r=0,a=s.length;r<a;r++){if(n=escape_regex(s[r]),this.settings.diacritics)for(i in DIACRITICS)DIACRITICS.hasOwnProperty(i)&&(n=n.replace(new RegExp(i,"g"),DIACRITICS[i]));e&&(n="\\b"+n),o.push({string:s[r],regex:new RegExp(n,"i")})}return o},Sifter.prototype.iterator=function(t,e){var n=is_array(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;e<n;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)};n.apply(t,[e])},Sifter.prototype.getScoreFunction=function(t,e){function o(t,e){var n;return!t||-1===(n=(t=String(t||"")).search(e.regex))?0:(e=e.string.length/t.length,0===n&&(e+=.5),e)}var s,r=(t=this.prepareSearch(t,e)).tokens,a=t.options.fields,l=r.length,p=t.options.nesting,c=(s=a.length)?1===s?function(t,e){return o(getattr(e,a[0],p),t)}:function(t,e){for(var n=0,i=0;n<s;n++)i+=o(getattr(e,a[n],p),t);return i/s}:function(){return 0};return l?1===l?function(t){return c(r[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,i=0;n<l;n++){if((e=c(r[n],t))<=0)return 0;i+=e}return i/l}:function(t){for(var e=0,n=0;e<l;e++)n+=c(r[e],t);return n/l}:function(){return 0}},Sifter.prototype.getSortFunction=function(t,n){var e,i,o,s,r,a,l,p=this,c=!(t=p.prepareSearch(t,n)).query&&n.sort_empty||n.sort,d=function(t,e){return"$score"===t?e.score:getattr(p.items[e.id],t,n.nesting)},u=[];
vendor: 47,336 bytes, line 1651
1651if(c)for(e=0,i=c.length;e<i;e++)!t.query&&"$score"===c[e].field||u.push(c[e]);if(t.query){for(l=!0,e=0,i=u.length;e<i;e++)if("$score"===u[e].field){l=!1;break}l&&u.unshift({field:"$score",direction:"desc"})}else for(e=0,i=u.length;e<i;e++)if("$score"===u[e].field){u.splice(e,1);break}for(a=[],e=0,i=u.length;e<i;e++)a.push("desc"===u[e].direction?-1:1);return(s=u.length)?1===s?(o=u[0].field,r=a[0],function(t,e){return r*cmp(d(o,t),d(o,e))}):function(t,e){for(var n,i=0;i<s;i++)if(n=u[i].field,n=a[i]*cmp(d(n,t),d(n,e)))return n;return 0}:null},Sifter.prototype.prepareSearch=function(t,e){var n,i,o;return"object"==typeof t?t:(n=(e=extend({},e)).fields,i=e.sort,o=e.sort_empty,n&&!is_array(n)&&(e.fields=[n]),i&&!is_array(i)&&(e.sort=[i]),o&&!is_array(o)&&(e.sort_empty=[o]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t,e.respect_word_boundaries),total:0,items:[]})},Sifter.prototype.search=function(t,n){var i,o,e=this,s=this.prepareSearch(t,n);return n=s.options,t=s.query,o=n.score||e.getScoreFunction(s),t.length?e.iterator(e.items,function(t,e){i=o(t),(!1===n.filter||0<i)&&s.items.push({score:i,id:e})}):e.iterator(e.items,function(t,e){s.items.push({score:1,id:e})}),(t=e.getSortFunction(s,n))&&s.items.sort(t),s.total=s.items.length,"number"==typeof n.limit&&(s.items=s.items.slice(0,n.limit)),s},function(t,e){return"number"==typeof t&&"number"==typeof e?e<t?1:t<e?-1:0:(t=asciifold(String(t||"")),(e=asciifold(String(e||"")))<t?1:t<e?-1:0)}),extend=function(t,e){for(var n,i,o=1,s=arguments.length;o<s;o++)if(i=arguments[o])for(n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t},getattr=function(t,e,n){if(t&&e){if(!n)return t[e];for(var i=e.split(".");i.length&&(t=t[i.shift()]););return t}},trim=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},escape_regex=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},is_array=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},DIACRITICS={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ŹźáºáºÅ½Å¾Å»Å¼áºáºáºáºÆµÆ¶]"},asciifold=function(){var t,e,n,i,o="",s={};for(n in DIACRITICS)if(DIACRITICS.hasOwnProperty(n))for(o+=i=DIACRITICS[n].substring(2,DIACRITICS[n].length-1),t=0,e=i.length;t<e;t++)s[i.charAt(t)]=n;var r=new RegExp("["+o+"]","g");return function(t){return t.replace(r,function(t){return s[t]}).toLowerCase()}}(),IS_MAC=uaDetect("macOS",/Mac/),KEY_A=65,KEY_COMMA=188,KEY_RETURN=13,KEY_ESC=27,KEY_LEFT=37,KEY_UP=38,KEY_P=80,KEY_RIGHT=39,KEY_DOWN=40,KEY_N=78,KEY_BACKSPACE=8,KEY_DELETE=46,KEY_SHIFT=16,KEY_CMD=IS_MAC?91:17,KEY_CTRL=IS_MAC?18:17,KEY_TAB=9,TAG_SELECT=1,TAG_INPUT=2,SUPPORTS_VALIDITY_API=!uaDetect("Android",/android/i)&&!!document.createElement("input").validity,isset=function(t){return void 0!==t},isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},hash_key=function(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""},escape_html=function(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},escape_replace=function(t){return(t+"").replace(/\$/g,"$$$$")},hook={before:function(t,e,n){var i=t[e];t[e]=function(){return n.apply(t,arguments),i.apply(t,arguments)}},after:function(e,t,n){var i=e[t];e[t]=function(){var t=i.apply(e,arguments);return n.apply(e,arguments),t}}},once=function(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}},debounce=function(n,i){var o;return function(){var t=this,e=arguments;window.clearTimeout(o),o=window.setTimeout(function(){n.apply(t,e)},i)}},debounce_events=function(e,n,t){var i,o=e.trigger,s={};for(i in e.trigger=function(){var t=arguments[0];if(-1===n.indexOf(t))return o.apply(e,arguments);s[t]=arguments},t.apply(e,[]),e.trigger=o,s)s.hasOwnProperty(i)&&o.apply(e,s[i])},watchChildEvent=function(n,t,e,i){n.on(t,e,function(t){for(var e=t.target;e&&e.parentNode!==n[0];)e=e.parentNode;return t.currentTarget=e,i.apply(this,[t])})},getInputSelection=function(t){var e,n,i={};return void 0===t?console.warn("WARN getInputSelection cannot locate input control"):"selectionStart"in t?(i.start=t.selectionStart,i.length=t.selectionEnd-i.start):document.selection&&(t.focus(),e=document.selection.createRange(),n=document.selection.createRange().text.length,e.moveStart("character",-t.value.length),i.start=e.text.length-n,i.length=n),i},transferStyles=function(t,e,n){var i,o,s={};if(n)for(i=0,o=n.length;i<o;i++)s[n[i]]=t.css(n[i]);else s=t.css();e.css(s)},measureString=function(t,e){return t?(Selectize.$testInput||(Selectize.$testInput=$("<span />").css({position:"absolute",width:"auto",padding:0,whiteSpace:"pre"}),$("<div />").css({position:"absolute",width:0,height:0,overflow:"hidden"}).attr({"aria-hidden":!0}).append(Selectize.$testInput).appendTo("body")),Selectize.$testInput.text(t),transferStyles(e,Selectize.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),Selectize.$testInput.width()):0},autoGrow=function(s){function t(t,e){var n,i,o;e=e||{},(t=t||window.event||{}).metaKey||t.altKey||!e.force&&!1===s.data("grow")||(e=s.val(),t.type&&"keydown"===t.type.toLowerCase()&&(i=48<=(o=t.keyCode)&&o<=57||65<=o&&o<=90||96<=o&&o<=111||186<=o&&o<=222||32===o,o===KEY_DELETE||o===KEY_BACKSPACE?(n=getInputSelection(s[0])).length?e=e.substring(0,n.start)+e.substring(n.start+n.length):o===KEY_BACKSPACE&&n.start?e=e.substring(0,n.start-1)+e.substring(n.start+1):o===KEY_DELETE&&void 0!==n.start&&(e=e.substring(0,n.start)+e.substring(n.start+1)):i&&(o=t.shiftKey,n=String.fromCharCode(t.keyCode),e+=n=o?n.toUpperCase():n.toLowerCase())),i=s.attr("readonly")?0:4,o=(t=s.attr("placeholder"))?measureString(t,s)+i:0,(i=Math.max(measureString(e,s),o)+i)===r)||(r=i,s.width(i),s.triggerHandler("resize"))}var r=null;s.on("keydown keyup update blur",t),t()},domToString=function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML},logError=function(t,e){e=e||{};console.error("Selectize: "+t),e.explanation&&(console.group&&console.group(),console.error(e.explanation),console.group)&&console.groupEnd()},isJSON=function(t){try{JSON.parse(t)}catch(t){return!1}return!0};function uaDetect(t,e){return navigator.userAgentData?t===navigator.userAgentData.platform:e.test(navigator.userAgent)}var Selectize=function(t,e){var n,i,o=this,s=t[0],r=(s.selectize=o,window.getComputedStyle&&window.getComputedStyle(s,null));if(r=(r?r.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||t.parents("[dir]:first").attr("dir")||"",o.settings={},$.extend(o,{order:0,settings:e,$input:t,tabIndex:t.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?TAG_SELECT:TAG_INPUT,rtl:/rtl/i.test(r),eventNS:".selectize"+ ++Selectize.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:t.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:"",lastValidValue:"",lastOpenTarget:!1,caretPos:0,loading:0,loadedSearches:{},isDropdownClosing:!1,$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===e.loadThrottle?o.onSearchChange:debounce(o.onSearchChange,e.loadThrottle)}),o.sifter=new Sifter(this.options,{diacritics:e.diacritics}),o.settings.options){for(n=0,i=o.settings.options.length;n<i;n++)o.registerOption(o.settings.options[n]);delete o.settings.options}if(o.settings.optgroups){for(n=0,i=o.settings.optgroups.length;n<i;n++)o.registerOptionGroup(o.settings.optgroups[n]);delete o.settings.optgroups}o.settings.mode=o.settings.mode||(1===o.settings.maxItems?"single":"multi"),"boolean"!=typeof o.settings.hideSelected&&(o.settings.hideSelected="multi"===o.settings.mode),o.initializePlugins(o.settings.plugins),o.setupCallbacks(),o.setupTemplates(),o.setup()};MicroEvent.mixin(Selectize),MicroPlugin.mixin(Selectize),$.extend(Selectize.prototype,{setup:function(){var e=this,t=e.settings,n=e.eventNS,i=$(window),o=$(document),s=e.$input,r=e.settings.mode,a=s.attr("class")||"",l=t.showArrow?"":" no-arrow",p=$("<div>").addClass(t.wrapperClass).addClass(a+" selectize-control").addClass(r),l=$("<div>").addClass(t.inputClass+l+" selectize-input items").appendTo(p),c=$('<input type="text" autocomplete="new-password" autofill="no" />').appendTo(l).attr("tabindex",s.is(":disabled")?"-1":e.tabIndex),d=$(t.dropdownParent||p),r=$("<div>").addClass(t.dropdownClass).addClass(r+" selectize-dropdown").hide().appendTo(d),d=$("<div>").addClass(t.dropdownContentClass+" selectize-dropdown-content").attr("tabindex","-1").appendTo(r),u=((u=s.attr("id"))&&(c.attr("id",u+"-selectized"),$("label[for='"+u+"']").attr("for",u+"-selectized")),e.settings.copyClassesToDropdown&&r.addClass(a),p.css({width:s[0].style.width}),e.plugins.names.length&&(u="plugin-"+e.plugins.names.join(" plugin-"),p.addClass(u),r.addClass(u)),(null===t.maxItems||1<t.maxItems)&&e.tagType===TAG_SELECT&&s.attr("multiple","multiple"),e.settings.placeholder&&c.attr("placeholder",t.placeholder),e.settings.search||(c.attr("readonly",!0),c.attr("inputmode","none"),l.css("cursor","pointer")),!e.settings.splitOn&&e.settings.delimiter&&(a=e.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e.settings.splitOn=new RegExp("\\s*"+a+"+\\s*")),s.attr("autocorrect")&&c.attr("autocorrect",s.attr("autocorrect")),s.attr("autocapitalize")&&c.attr("autocapitalize",s.attr("autocapitalize")),s.is("input")&&(c[0].type=s[0].type),e.$wrapper=p,e.$control=l,e.$control_input=c,e.$dropdown=r,e.$dropdown_content=d,r.on("mouseenter mousedown mouseup click","[data-disabled]>[data-selectable]",function(t){t.stopImmediatePropagation()}),r.on("mouseenter","[data-selectable]",function(){return e.onOptionHover.apply(e,arguments)}),r.on("mouseup click","[data-selectable]",function(){return e.onOptionSelect.apply(e,arguments)}),watchChildEvent(l,"mouseup","*:not(input)",function(){return e.onItemSelect.apply(e,arguments)}),autoGrow(c),l.on({mousedown:function(){return e.onMouseDown.apply(e,arguments)},click:function(){return e.onClick.apply(e,arguments)}}),c.on({mousedown:function(t){""===e.$control_input.val()&&!e.settings.openOnFocus||t.stopPropagation()},keydown:function(){return e.onKeyDown.apply(e,arguments)},keypress:function(){return e.onKeyPress.apply(e,arguments)},input:function(){return e.onInput.apply(e,arguments)},resize:function(){e.positionDropdown.apply(e,[])},blur:function(){return e.onBlur.apply(e,arguments)},focus:function(){return e.onFocus.apply(e,arguments)},paste:function(){return e.onPaste.apply(e,arguments)}}),o.on("keydown"+n,function(t){e.isCmdDown=t[IS_MAC?"metaKey":"ctrlKey"],e.isCtrlDown=t[IS_MAC?"altKey":"ctrlKey"],e.isShiftDown=t.shiftKey}),o.on("keyup"+n,function(t){t.keyCode===KEY_CTRL&&(e.isCtrlDown=!1),t.keyCode===KEY_SHIFT&&(e.isShiftDown=!1),t.keyCode===KEY_CMD&&(e.isCmdDown=!1)}),o.on("mousedown"+n,function(t){if(e.isFocused){if(t.target===e.$dropdown[0]||e.$dropdown.has(t.target).length)return!1;t.target!==e.$control[0]&&e.blur(t.target)}}),i.on(["scroll"+n,"resize"+n].join(" "),function(){e.isOpen&&e.positionDropdown.apply(e,arguments)}),i.on("mousemove"+n,function(){e.ignoreHover=e.settings.ignoreHover}),$("<div></div>")),a=s.children().detach();s.replaceWith(u),u.replaceWith(s),this.revertSettings={$children:a,tabindex:s.attr("tabindex")},s.attr("tabindex",-1).hide().after(e.$wrapper),Array.isArray(t.items)&&(e.lastValidValue=t.items,e.setValue(t.items),delete t.items),SUPPORTS_VALIDITY_API&&s.on("invalid"+n,function(t){t.preventDefault(),e.isInvalid=!0,e.refreshState()}),e.updateOriginalInput(),e.refreshItems(),e.refreshState(),e.updatePlaceholder(),e.isSetup=!0,s.is(":disabled")&&e.disable(),e.on("change",this.onChange),s.data("selectize",e),s.addClass("selectized"),e.trigger("initialize"),!0===t.preload&&e.onSearchChange("")},setupTemplates:function(){var t=this,i=t.settings.labelField,o=t.settings.valueField,n=t.settings.optgroupLabelField;t.settings.render=$.extend({},{optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[n])+"</div>"},option:function(t,e){var n=t.classes?" "+t.classes:"";return n+=""===t[o]?" selectize-dropdown-emptyoptionlabel":"","<div"+(t.styles?' style="'+t.styles+'"':"")+' class="option'+n+'">'+e(t[i])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[i])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>"}},t.settings.render)},setupCallbacks:function(){var t,e,n={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",dropdown_item_activate:"onDropdownItemActivate",dropdown_item_deactivate:"onDropdownItemDeactivate"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]])&&this.on(t,e)},onClick:function(t){this.isDropdownClosing||this.isFocused&&this.isOpen||(this.focus(),t.preventDefault())},onMouseDown:function(t){var e=this,n=t.isDefaultPrevented(),t=$(t.target);if(e.isFocused||n||window.setTimeout(function(){e.isOpen||e.focus()},0),t!==e.$control_input[0]||""===e.$control_input.val())return"single"===e.settings.mode?e.isOpen?e.close():e.open():(n||e.setActiveItem(null),e.settings.openOnFocus||(e.isOpen&&t===e.lastOpenTarget?(e.close(),e.lastOpenTarget=!1):(e.isOpen||(e.refreshOptions(),e.open()),e.lastOpenTarget=t))),!1},onChange:function(){""!==this.getValue()&&(this.lastValidValue=this.getValue()),this.$input.trigger("input"),this.$input.trigger("change")},onPaste:function(t){var o=this;o.isFull()||o.isInputHidden||o.isLocked?t.preventDefault():o.settings.splitOn&&setTimeout(function(){var t=o.$control_input.val();if(t.match(o.settings.splitOn))for(var e=t.trim().split(o.settings.splitOn),n=0,i=e.length;n<i;n++)o.createItem(e[n])},0)},onKeyPress:function(t){var e;return this.isLocked?t&&t.preventDefault():(e=String.fromCharCode(t.keyCode||t.which),this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0)},onKeyDown:function(t){t.target,this.$control_input[0];var e,n=this;if(n.isLocked)t.keyCode!==KEY_TAB&&t.preventDefault();else{switch(t.keyCode){case KEY_A:if(n.isCmdDown)return void n.selectAll();break;case KEY_ESC:return void(n.isOpen&&(t.preventDefault(),t.stopPropagation(),n.close()));case KEY_N:if(!t.ctrlKey||t.altKey)break;case KEY_DOWN:return!n.isOpen&&n.hasOptions?n.open():n.$activeOption&&(n.ignoreHover=!0,(e=n.getAdjacentOption(n.$activeOption,1)).length)&&n.setActiveOption(e,!0,!0),void t.preventDefault();case KEY_P:if(!t.ctrlKey||t.altKey)break;case KEY_UP:return n.$activeOption&&(n.ignoreHover=!0,(e=n.getAdjacentOption(n.$activeOption,-1)).length)&&n.setActiveOption(e,!0,!0),void t.preventDefault();case KEY_RETURN:return void(n.isOpen&&n.$activeOption&&(n.onOptionSelect({currentTarget:n.$activeOption}),t.preventDefault()));case KEY_LEFT:return void n.advanceSelection(-1,t);case KEY_RIGHT:return void n.advanceSelection(1,t);case KEY_TAB:return n.settings.selectOnTab&&n.isOpen&&n.$activeOption&&(n.onOptionSelect({currentTarget:n.$activeOption}),n.isFull()||t.preventDefault()),void(n.settings.create&&n.createItem()&&n.settings.showAddOptionOnCreate&&t.preventDefault());case KEY_BACKSPACE:case KEY_DELETE:return void n.deleteSelection(t)}!n.isFull()&&!n.isInputHidden||(IS_MAC?t.metaKey:t.ctrlKey)||t.preventDefault()}},onInput:function(t){var e=this,n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(e){var n=this,i=n.settings.load;i&&!n.loadedSearches.hasOwnProperty(e)&&(n.loadedSearches[e]=!0,n.load(function(t){i.apply(n,[e,t])}))},onFocus:function(t){var e=this,n=e.isFocused;if(e.isDisabled)return e.blur(),t&&t.preventDefault(),!1;e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())},onBlur:function(t,e){var n,i=this;i.isFocused&&(i.isFocused=!1,i.ignoreFocus||(n=function(){i.close(),i.setTextboxValue(""),i.setActiveItem(null),i.setActiveOption(null),i.setCaret(i.items.length),i.refreshState(),e&&e.focus&&e.focus(),i.isBlurring=!1,i.ignoreFocus=!1,i.trigger("blur")},i.isBlurring=!0,i.ignoreFocus=!0,i.settings.create&&i.settings.createOnBlur?i.createItem(null,!1,n):n()))},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(t){var e,n=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(e=$(t.currentTarget)).hasClass("create")?n.createItem(null,function(){n.settings.closeAfterSelect&&n.close()}):void 0!==(e=e.attr("data-value"))&&(n.lastQuery=null,n.setTextboxValue(""),n.addItem(e),n.settings.closeAfterSelect?n.close():!n.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&n.setActiveOption(n.getOption(e)))},onItemSelect:function(t){this.isLocked||"multi"===this.settings.mode&&(t.preventDefault(),this.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},getTextboxValue:function(){return this.$control_input.val()},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return this.tagType===TAG_SELECT&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){(Array.isArray(t)?t:[t]).join("")!==this.items.join("")&&debounce_events(this,e?[]:["change"],function(){this.clear(e),this.addItems(t,e)})},setMaxItems:function(t){this.settings.maxItems=t=0===t?null:t,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),this.refreshState()},setActiveItem:function(t,e){var n,i,o,s,r,a,l=this;if("single"!==l.settings.mode)if((t=$(t)).length){if("mousedown"===(n=e&&e.type.toLowerCase())&&l.isShiftDown&&l.$activeItems.length){for(a=l.$control.children(".active:last"),a=Array.prototype.indexOf.apply(l.$control[0].childNodes,[a[0]]),(o=Array.prototype.indexOf.apply(l.$control[0].childNodes,[t[0]]))<a&&(r=a,a=o,o=r),i=a;i<=o;i++)s=l.$control[0].childNodes[i],-1===l.$activeItems.indexOf(s)&&($(s).addClass("active"),l.$activeItems.push(s));e.preventDefault()}else"mousedown"===n&&l.isCtrlDown||"keydown"===n&&this.isShiftDown?t.hasClass("active")?(r=l.$activeItems.indexOf(t[0]),l.$activeItems.splice(r,1),t.removeClass("active")):l.$activeItems.push(t.addClass("active")[0]):($(l.$activeItems).removeClass("active"),l.$activeItems=[t.addClass("active")[0]]);l.hideInput(),this.isFocused||l.focus()}else $(l.$activeItems).removeClass("active"),l.$activeItems=[],l.isFocused&&l.showInput()},setActiveOption:function(t,e,n){var i,o,s,r,a=this;a.$activeOption&&(a.$activeOption.removeClass("active"),a.trigger("dropdown_item_deactivate",a.$activeOption.attr("data-value"))),a.$activeOption=null,(t=$(t)).length&&(a.$activeOption=t.addClass("active"),a.isOpen&&a.trigger("dropdown_item_activate",a.$activeOption.attr("data-value")),!e&&isset(e)||(t=a.$dropdown_content.height(),i=a.$activeOption.outerHeight(!0),e=a.$dropdown_content.scrollTop()||0,r=(s=o=a.$activeOption.offset().top-a.$dropdown_content.offset().top+e)-t+i,t+e<o+i?a.$dropdown_content.stop().animate({scrollTop:r},n?a.settings.scrollDuration:0):o<e&&a.$dropdown_content.stop().animate({scrollTop:s},n?a.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){this.setTextboxValue(""),this.$control_input.css({opacity:0,position:"absolute",left:this.rtl?1e4:0}),this.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;return t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout(function(){t.ignoreFocus=!1,t.onFocus()},0)),t},blur:function(t){return this.$control_input[0].blur(),this.onBlur(null,t),this},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return{fields:t.searchField,conjunction:t.searchConjunction,sort:e="string"==typeof e?[{field:e}]:e,nesting:t.nesting,filter:t.filter,respect_word_boundaries:t.respect_word_boundaries}},search:function(t){var e,n,i,o=this,s=o.settings,r=this.getSearchOptions();if(s.score&&"function"!=typeof(i=o.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(s.normalize&&(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),o.lastQuery=t,n=o.sifter.search(t,$.extend(r,{score:i})),o.currentResults=n):n=$.extend(!0,{},o.currentResults),s.hideSelected)for(e=n.items.length-1;0<=e;e--)-1!==o.items.indexOf(hash_key(n.items[e].id))&&n.items.splice(e,1);return n},refreshOptions:function(t){void 0===t&&(t=!0);var e,n,i,o,s,r,a,l,p,c,d,u,h,g=this,f=g.$control_input.val().trim(),v=g.search(f),m=g.$dropdown_content,y=g.$activeOption&&hash_key(g.$activeOption.attr("data-value")),w=v.items.length;for("number"==typeof g.settings.maxOptions&&(w=Math.min(w,g.settings.maxOptions)),o={},s=[],e=0;e<w;e++)for(r=g.options[v.items[e].id],a=g.render("option",r),O=r[g.settings.optgroupField]||"",n=0,i=(l=Array.isArray(O)?O:[O])&&l.length;n<i;n++){var C,O=l[n];g.optgroups.hasOwnProperty(O)||"function"!=typeof g.settings.optionGroupRegister||(C=g.settings.optionGroupRegister.apply(g,[O]))&&g.registerOptionGroup(C),g.optgroups.hasOwnProperty(O)||(O=""),o.hasOwnProperty(O)||(o[O]=document.createDocumentFragment(),s.push(O)),o[O].appendChild(a)}for(this.settings.lockOptgroupOrder&&s.sort(function(t,e){return(g.optgroups[t]&&g.optgroups[t].$order||0)-(g.optgroups[e]&&g.optgroups[e].$order||0)}),p=document.createDocumentFragment(),e=0,w=s.length;e<w;e++)g.optgroups.hasOwnProperty(O=s[e])&&o[O].childNodes.length?((c=document.createDocumentFragment()).appendChild(g.render("optgroup_header",g.optgroups[O])),c.appendChild(o[O]),p.appendChild(g.render("optgroup",$.extend({},g.optgroups[O],{html:domToString(c),dom:c})))):p.appendChild(o[O]);if(m.html(p),g.settings.highlight&&(m.removeHighlight(),v.query.length)&&v.tokens.length)for(e=0,w=v.tokens.length;e<w;e++)highlight(m,v.tokens[e].regex);if(!g.settings.hideSelected)for(g.$dropdown.find(".selected").removeClass("selected"),e=0,w=g.items.length;e<w;e++)g.getOption(g.items[e]).addClass("selected");"auto"!==g.settings.dropdownSize.sizeType&&g.isOpen&&g.setupDropdownHeight(),g.positionDropdown(),(d=g.canCreate(f))&&g.settings.showAddOptionOnCreate&&(m.prepend(g.render("option_create",{input:f})),h=$(m[0].childNodes[0])),g.hasOptions=0<v.items.length||d&&g.settings.showAddOptionOnCreate||g.settings.setFirstOptionActive,g.hasOptions?(0<v.items.length?(f=y&&g.getOption(y),""!==v.query&&g.settings.setFirstOptionActive?u=m.find("[data-selectable]:first"):""!==v.query&&f&&f.length?u=f:"single"===g.settings.mode&&g.items.length&&(u=g.getOption(g.items[0])),u&&u.length||(u=h&&!g.settings.addPrecedence?g.getAdjacentOption(h,1):m.find("[data-selectable]:first"))):u=h,g.setActiveOption(u),t&&!g.isOpen&&g.open()):(g.setActiveOption(null),t&&g.isOpen&&g.close())},addOption:function(t){var e,n,i,o=this;if(Array.isArray(t))for(e=0,n=t.length;e<n;e++)o.addOption(t[e]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(t){var e=hash_key(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=hash_key(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,e){var n,i,o,s=this;if(t=hash_key(t),n=hash_key(e[s.settings.valueField]),null!==t&&s.options.hasOwnProperty(t)){if("string"!=typeof n)throw new Error("Value must be set in option data");o=s.options[t].$order,n!==t&&(delete s.options[t],-1!==(i=s.items.indexOf(t)))&&s.items.splice(i,1,n),e.$order=e.$order||o,s.options[n]=e,i=s.renderCache.item,o=s.renderCache.option,i&&(delete i[t],delete i[n]),o&&(delete o[t],delete o[n]),-1!==s.items.indexOf(n)&&(i=s.getItem(t),o=$(s.render("item",e)),i.hasClass("active")&&o.addClass("active"),i.replaceWith(o)),s.lastQuery=null,s.isOpen&&s.refreshOptions(!1)}},removeOption:function(t,e){var n=this,i=(t=hash_key(t),n.renderCache.item),o=n.renderCache.option;i&&delete i[t],o&&delete o[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(t){var n=this,i=(n.loadedSearches={},n.userOptions={},n.renderCache={},n.options);$.each(n.options,function(t,e){-1==n.items.indexOf(t)&&delete i[t]}),n.options=n.sifter.items=i,n.lastQuery=null,n.trigger("option_clear"),n.clear(t)},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getFirstOption:function(){var t=this.$dropdown.find("[data-selectable]");return 0<t.length?t.eq(0):$()},getAdjacentOption:function(t,e){var n=this.$dropdown.find("[data-selectable]"),t=n.index(t)+e;return 0<=t&&t<n.length?n.eq(t):$()},getElementWithValue:function(t,e){if(null!=(t=hash_key(t)))for(var n=0,i=e.length;n<i;n++)if(e[n].getAttribute("data-value")===t)return $(e[n]);return $()},getElementWithTextContent:function(t,e,n){if(null!=(t=hash_key(t)))for(var i=0,o=n.length;i<o;i++){var s=n[i].textContent;if(1==e&&(s=null!==s?s.toLowerCase():null,t=t.toLowerCase()),s===t)return $(n[i])}return $()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},getFirstItemMatchedByTextContent:function(t,e){return this.getElementWithTextContent(t,e=null!==e&&!0===e,this.$dropdown_content.find("[data-selectable]"))},addItems:function(t,e){this.buffer=document.createDocumentFragment();for(var n=this.$control[0].childNodes,i=0;i<n.length;i++)this.buffer.appendChild(n[i]);for(var o=Array.isArray(t)?t:[t],i=0,s=o.length;i<s;i++)this.isPending=i<s-1,this.addItem(o[i],e);t=this.$control[0];t.insertBefore(this.buffer,t.firstChild),this.buffer=null},addItem:function(s,r){debounce_events(this,r?[]:["change"],function(){var t,e,n,i=this,o=i.settings.mode;s=hash_key(s),-1!==i.items.indexOf(s)?"single"===o&&i.close():i.options.hasOwnProperty(s)&&("single"===o&&i.clear(r),"multi"===o&&i.isFull()||(t=$(i.render("item",i.options[s])),n=i.isFull(),i.items.splice(i.caretPos,0,s),i.insertAtCaret(t),i.isPending&&(n||!i.isFull())||i.refreshState(),i.isSetup&&(n=i.$dropdown_content.find("[data-selectable]"),i.isPending||(e=i.getOption(s),e=i.getAdjacentOption(e,1).attr("data-value"),i.refreshOptions(i.isFocused&&"single"!==o),e&&i.setActiveOption(i.getOption(e))),!n.length||i.isFull()?i.close():i.isPending||i.positionDropdown(),i.updatePlaceholder(),i.trigger("item_add",s,t),i.isPending||i.updateOriginalInput({silent:r}))))})},removeItem:function(t,e){var n,i,o=this,s=t instanceof $?t:o.getItem(t);t=hash_key(s.attr("data-value")),-1!==(n=o.items.indexOf(t))&&(o.trigger("item_before_remove",t,s),s.remove(),s.hasClass("active")&&(s.removeClass("active"),i=o.$activeItems.indexOf(s[0]),o.$activeItems.splice(i,1),s.removeClass("active")),o.items.splice(n,1),o.lastQuery=null,!o.settings.persist&&o.userOptions.hasOwnProperty(t)&&o.removeOption(t,e),n<o.caretPos&&o.setCaret(o.caretPos-1),o.refreshState(),o.updatePlaceholder(),o.updateOriginalInput({silent:e}),o.positionDropdown(),o.trigger("item_remove",t,s))},createItem:function(t,n){var i=this,o=i.caretPos,s=(t=t||(i.$control_input.val()||"").trim(),arguments[arguments.length-1]);if("function"!=typeof s&&(s=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return s(),!1;i.lock();var e="function"==typeof i.settings.create?this.settings.create:function(t){var e={},t=e[i.settings.labelField]=t;if(!i.settings.formatValueToKey||"function"!=typeof i.settings.formatValueToKey||null!=(t=i.settings.formatValueToKey.apply(this,[t]))&&"object"!=typeof t&&"function"!=typeof t)return e[i.settings.valueField]=t,e;throw new Error('Selectize "formatValueToKey" setting must be a function that returns a value other than object or function.')},r=once(function(t){var e;return i.unlock(),!t||"object"!=typeof t||"string"!=typeof(e=hash_key(t[i.settings.valueField]))?s():(i.setTextboxValue(""),i.addOption(t),i.setCaret(o),i.addItem(e),i.refreshOptions(n&&"single"!==i.settings.mode),void s(t))}),e=e.apply(this,[t,r]);return void 0!==e&&r(e),!0},refreshItems:function(t){this.lastQuery=null,this.isSetup&&this.addItem(this.items,t),this.refreshState(),this.updateOriginalInput({silent:t})},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var t=this,e=t.isFull(),n=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",n).toggleClass("full",e).toggleClass("not-full",!e).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!$.isEmptyObject(t.options)).toggleClass("has-items",0<t.items.length),t.$control_input.data("grow",!e&&!n)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,i,o,s,r,a=this;t=t||{},a.tagType===TAG_SELECT?(o=a.$input.find("option"),e=[],n=[],i=[],r=[],o.get().forEach(function(t){e.push(t.value)}),a.items.forEach(function(t){s=a.options[t][a.settings.labelField]||"",r.push(t),-1==e.indexOf(t)&&n.push('<option value="'+escape_html(t)+'" selected="selected">'+escape_html(s)+"</option>")}),i=e.filter(function(t){return r.indexOf(t)<0}).map(function(t){return'option[value="'+escape_html(t)+'"]'}),e.length-i.length+n.length!==0||a.$input.attr("multiple")||n.push('<option value="" selected="selected"></option>'),a.$input.find(i.join(", ")).remove(),a.$input.append(n.join(""))):(a.$input.val(a.getValue()),a.$input.attr("value",a.$input.val())),a.isSetup&&!t.silent&&a.trigger("change",a.$input.val())},updatePlaceholder:function(){var t;this.settings.placeholder&&(t=this.$control_input,this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0}))},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.setupDropdownHeight(),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring)&&t.$control_input[0].blur(),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position(),n=(e.top+=t.outerHeight(!0),"fit-content"===this.$wrapper[0].style.width||"body"===this.settings.dropdownParent?"max-content":"100%");this.settings.minWidth&&this.settings.minWidth>n&&(n=this.settings.minWidth),"body"!==this.settings.dropdownParent&&"max-content"===n&&t.outerWidth(!0)>=this.$dropdown.outerWidth(!0)&&(n="100%"),this.$dropdown.css({width:n,minWidth:t.outerWidth(!0),top:e.top,left:e.left})},setupDropdownHeight:function(){if("object"==typeof this.settings.dropdownSize&&"auto"!==this.settings.dropdownSize.sizeType){var t=this.settings.dropdownSize.sizeValue;if("numberItems"===this.settings.dropdownSize.sizeType){for(var e=this.$dropdown_content.find("*").not(".optgroup, .highlight").not(this.settings.ignoreOnDropwdownHeight),n=0,i=0,o=0,s=0,r=0;r<t;r++){var a=$(e[r]);if(0===a.length)break;n+=a.outerHeight(!0),void 0===a.data("selectable")&&(a.hasClass("optgroup-header")&&(a=window.getComputedStyle(a.parent()[0],":before"))&&(i=a.marginTop?Number(a.marginTop.replace(/\W*(\w)\w*/g,"$1")):0,o=a.marginBottom?Number(a.marginBottom.replace(/\W*(\w)\w*/g,"$1")):0,s=a.borderTopWidth?Number(a.borderTopWidth.replace(/\W*(\w)\w*/g,"$1")):0),t++)}t=n+(this.$dropdown_content.css("padding-top")?Number(this.$dropdown_content.css("padding-top").replace(/\W*(\w)\w*/g,"$1")):0)+(this.$dropdown_content.css("padding-bottom")?Number(this.$dropdown_content.css("padding-bottom").replace(/\W*(\w)\w*/g,"$1")):0)+i+o+s+"px"}else if("fixedHeight"!==this.settings.dropdownSize.sizeType)return void console.warn('Selectize.js - Value of "sizeType" must be "fixedHeight" or "numberItems');this.$dropdown_content.css({height:t,maxHeight:"none"})}},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),t=t[0],n=this.buffer||this.$control[0];0===e?n.insertBefore(t,n.firstChild):n.insertBefore(t,n.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(t){var e,n,i,o,s,r=this,a=t&&t.keyCode===KEY_BACKSPACE?-1:1,l=getInputSelection(r.$control_input[0]);if(r.$activeOption&&!r.settings.hideSelected&&(o=("string"==typeof r.settings.deselectBehavior&&"top"===r.settings.deselectBehavior?r.getFirstOption():r.getAdjacentOption(r.$activeOption,-1)).attr("data-value")),i=[],r.$activeItems.length){for(s=r.$control.children(".active:"+(0<a?"last":"first")),s=r.$control.children(":not(input)").index(s),0<a&&s++,e=0,n=r.$activeItems.length;e<n;e++)i.push($(r.$activeItems[e]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(r.isFocused||"single"===r.settings.mode)&&r.items.length&&(a<0&&0===l.start&&0===l.length?i.push(r.items[r.caretPos-1]):0<a&&l.start===r.$control_input.val().length&&i.push(r.items[r.caretPos]));if(!i.length||"function"==typeof r.settings.onDelete&&!1===r.settings.onDelete.apply(r,[i]))return!1;for(void 0!==s&&r.setCaret(s);i.length;)r.removeItem(i.pop());return r.showInput(),r.positionDropdown(),r.refreshOptions(!0),o&&(t=r.getOption(o)).length&&r.setActiveOption(t),!0},advanceSelection:function(t,e){var n,i,o,s=this;0!==t&&(s.rtl&&(t*=-1),n=0<t?"last":"first",o=getInputSelection(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(i=s.$control_input.val().length,(t<0?0!==o.start||0!==o.length:o.start!==i)||i||s.advanceCaret(t,e)):(o=s.$control.children(".active:"+n)).length&&(i=s.$control.children(":not(input)").index(o),s.setActiveItem(null),s.setCaret(0<t?i+1:i)))},advanceCaret:function(t,e){var n,i=this;0!==t&&(i.isShiftDown?(n=i.$control_input[0<t?"next":"prev"]()).length&&(i.hideInput(),i.setActiveItem(n),e)&&e.preventDefault():i.setCaret(i.caretPos+t))},setCaret:function(t){var e=this;if(t="single"===e.settings.mode?e.items.length:Math.max(0,Math.min(e.items.length,t)),!e.isPending)for(var n,i=e.$control.children(":not(input)"),o=0,s=i.length;o<s;o++)n=$(i[o]).detach(),o<t?e.$control_input.before(n):e.$control.append(n);e.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){this.$input.prop("disabled",!0),this.$control_input.prop("disabled",!0).prop("tabindex",-1),this.isDisabled=!0,this.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var t=this,e=t.eventNS,n=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(n.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:n.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--Selectize.count&&Selectize.$testInput&&(Selectize.$testInput.remove(),Selectize.$testInput=void 0),$(window).off(e),$(document).off(e),$(document.body).off(e),delete t.$input[0].selectize},render:function(t,e){var n,i,o="",s=!1,r=this;return(s="option"!==t&&"item"!==t?s:!!(n=hash_key(e[r.settings.valueField])))&&(isset(r.renderCache[t])||(r.renderCache[t]={}),r.renderCache[t].hasOwnProperty(n))?r.renderCache[t][n]:(o=$(r.settings.render[t].apply(this,[e,escape_html])),"option"===t||"option_create"===t?e[r.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===t&&(i=e[r.settings.optgroupValueField]||"",o.attr("data-group",i),e[r.settings.disabledField])&&o.attr("data-disabled",""),"option"!==t&&"item"!==t||o.attr("data-value",n||""),s&&(r.renderCache[t][n]=o[0]),o[0])},clearCache:function(t){void 0===t?this.renderCache={}:delete this.renderCache[t]},canCreate:function(t){var e;return!!this.settings.create&&(e=this.settings.createFilter,t.length)&&("function"!=typeof e||e.apply(this,[t]))&&("string"!=typeof e||new RegExp(e).test(t))&&(!(e instanceof RegExp)||e.test(t))}}),Selectize.count=0,Selectize.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,showAddOptionOnCreate:!0,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!0,preload:!1,allowEmptyOption:!1,showEmptyOptionInDropdown:!1,emptyOptionLabel:"--",setFirstOptionActive:!1,closeAfterSelect:!1,closeDropdownThreshold:250,scrollDuration:60,deselectBehavior:"previous",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",respect_word_boundaries:!1,normalize:!0,mode:null,wrapperClass:"",inputClass:"",dropdownClass:"",dropdownContentClass:"",dropdownParent:null,copyClassesToDropdown:!0,dropdownSize:{sizeType:"auto",sizeValue:"auto"},ignoreOnDropwdownHeight:"img, i",search:!0,showArrow:!0,render:{}},$.fn.selectize=function(c){function d(t,o){function e(t,e){t=$(t);var n,i=hash_key(t.val());(i||v.allowEmptyOption)&&(l.hasOwnProperty(i)?e&&((n=l[i][O])?Array.isArray(n)?n.push(e):l[i][O]=[n,e]:l[i][O]=e):((n=p(t)||{})[y]=n[y]||t.text(),n[w]=n[w]||i,n[C]=n[C]||t.prop("disabled"),n[O]=n[O]||e,n.styles=t.attr("style")||"",n.classes=t.attr("class")||"",l[i]=n,a.push(n),t.is(":selected")&&o.items.push(i)))}var n,i,s,r,a=o.options,l={},p=function(t){var e=m&&t.attr(m),t=t.data(),n={};return"string"==typeof e&&e.length&&(isJSON(e)?Object.assign(n,JSON.parse(e)):n[e]=e),Object.assign(n,t),n||null};for(o.maxItems=t.attr("multiple")?null:1,n=0,i=(r=t.children()).length;n<i;n++)if("optgroup"===(s=r[n].tagName.toLowerCase())){g=h=u=d=c=void 0;var c,d,u,h,g,f=r[n];for((u=(f=$(f)).attr("label"))&&((h=p(f)||{})[_]=u,h[b]=u,h[C]=f.prop("disabled"),o.optgroups.push(h)),c=0,d=(g=$("option",f)).length;c<d;c++)e(g[c],u)}else"option"===s&&e(r[n])}var u=$.fn.selectize.defaults,v=$.extend({},u,c),m=v.dataAttr,y=v.labelField,w=v.valueField,C=v.disabledField,O=v.optgroupField,_=v.optgroupLabelField,b=v.optgroupValueField;return this.each(function(){if(!this.selectize){var t=$(this),e=this.tagName.toLowerCase(),n=t.attr("placeholder")||t.attr("data-placeholder"),i=(n||v.allowEmptyOption||(n=t.children('option[value=""]').text()),v.allowEmptyOption&&v.showEmptyOptionInDropdown&&!t.children('option[value=""]').length&&(l=t.html(),i=escape_html(v.emptyOptionLabel||"--"),t.html('<option value="">'+i+"</option>"+l)),{placeholder:n,options:[],optgroups:[],items:[]});if("select"===e)d(t,i);else{var o,s,r,a,l=t,p=i,n=l.attr(m);if(n)for(p.options=JSON.parse(n),o=0,s=p.options.length;o<s;o++)p.items.push(p.options[o][w]);else{n=(l.val()||"").trim();if(v.allowEmptyOption||n.length){for(o=0,s=(r=n.split(v.delimiter)).length;o<s;o++)(a={})[y]=r[o],a[w]=r[o],p.options.push(a);p.items=r}}}new Selectize(t,$.extend(!0,{},u,i,c)).settings_user=c}})},$.fn.selectize.defaults=Selectize.defaults,$.fn.selectize.support={validity:SUPPORTS_VALIDITY_API},Selectize.define("auto_position",function(){var r=this;const a={top:"top",bottom:"bottom"};r.positionDropdown=function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position(),n=(e.top+=t.outerHeight(!0),this.$dropdown.prop("scrollHeight")+5),i=this.$control.get(0).getBoundingClientRect().top,o=this.$wrapper.height(),s=r.$control.get(0).getBoundingClientRect().bottom,i=i+n+o>window.innerHeight&&0<=s-n-o?a.top:a.bottom,s="fit-content"===this.$wrapper[0].style.width||"body"===this.settings.dropdownParent?"max-content":"100%",n={width:s,minWidth:t.outerWidth(!0),left:e.left};i===a.top?(o={bottom:e.top,top:"unset"},"body"===this.settings.dropdownParent&&(o.top=e.top-this.$dropdown.outerHeight(!0)-t.outerHeight(!0),o.bottom="unset"),Object.assign(n,o),this.$dropdown.addClass("selectize-position-top"),this.$control.addClass("selectize-position-top")):(Object.assign(n,{top:e.top,bottom:"unset"}),this.$dropdown.removeClass("selectize-position-top"),this.$control.removeClass("selectize-position-top")),"body"!==this.settings.dropdownParent&&"max-content"==s&&(t.outerWidth(!0),this.$dropdown.outerWidth(!0)),this.$dropdown.css(n)}}),Selectize.define("auto_select_on_type",function(t){var n,i=this;i.onBlur=(n=i.onBlur,function(t){var e=i.getFirstItemMatchedByTextContent(i.lastValue,!0);return void 0!==e.attr("data-value")&&i.getValue()!==e.attr("data-value")&&i.setValue(e.attr("data-value")),n.apply(this,arguments)})}),Selectize.define("autofill_disable",function(t){var e,n=this;n.setup=(e=n.setup,function(){e.apply(n,arguments),n.$control_input.attr({name:nanoid(21),autocomplete:nanoid(21)})})}),Selectize.define("clear_button",function(e){var t,n=this;e=$.extend({title:"Clear",className:"clear",label:"Ã",html:function(t){return'<a class="'+t.className+'" title="'+t.title+'"> '+t.label+"</a>"}},e),n.setup=(t=n.setup,function(){t.apply(n,arguments),n.$button_clear=$(e.html(e)),"single"===n.settings.mode&&n.$wrapper.addClass("single"),n.$wrapper.append(n.$button_clear),""!==n.getValue()&&0!==n.getValue().length||n.$wrapper.find("."+e.className).css("display","none"),n.on("change",function(){""===n.getValue()||0===n.getValue().length?n.$wrapper.find("."+e.className).css("display","none"):n.$wrapper.find("."+e.className).css("display","")}),n.$wrapper.on("click","."+e.className,function(t){t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation(),n.isLocked||(n.clear(),n.$wrapper.find("."+e.className).css("display","none"))})})}),Selectize.define("drag_drop",function(t){if(!$.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');var i,e,n,o;"multi"===this.settings.mode&&((i=this).lock=(e=i.lock,function(){var t=i.$control.data("sortable");return t&&t.disable(),e.apply(i,arguments)}),i.unlock=(n=i.unlock,function(){var t=i.$control.data("sortable");return t&&t.enable(),n.apply(i,arguments)}),i.setup=(o=i.setup,function(){o.apply(this,arguments);var n=i.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:i.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),n.addClass("dragging")},stop:function(){n.removeClass("dragging");var t=i.$activeItems?i.$activeItems.slice():null,e=[];n.children("[data-value]").each(function(){e.push($(this).attr("data-value"))}),i.isFocused=!1,i.setValue(e),i.isFocused=!0,i.setActiveItem(t),i.positionDropdown()}})}))}),Selectize.define("dropdown_header",function(t){var e,n=this;t=$.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">×</a></div></div>'}},t),n.setup=(e=n.setup,function(){e.apply(n,arguments),n.$dropdown_header=$(t.html(t)),n.$dropdown.prepend(n.$dropdown_header),n.$dropdown_header.find("."+t.closeClass).on("click",function(){n.close()})})}),Selectize.define("optgroup_columns",function(r){function t(){var t,e,n,i,o=$("[data-group]",a.$dropdown_content),s=o.length;if(s&&a.$dropdown_content.width()){if(r.equalizeHeight){for(t=e=0;t<s;t++)e=Math.max(e,o.eq(t).height());o.css({height:e})}r.equalizeWidth&&(i=a.$dropdown_content.innerWidth()-l(),n=Math.round(i/s),o.css({width:n}),1<s)&&(i=i-n*(s-1),o.eq(s-1).css({width:i}))}}
1651var i,a=this,l=(r=$.extend({equalizeWidth:!0,equalizeHeight:!0},r),this.getAdjacentOption=function(t,e){var n=t.closest("[data-group]").find("[data-selectable]"),t=n.index(t)+e;return 0<=t&&t<n.length?n.eq(t):$()},this.onKeyDown=(i=a.onKeyDown,function(t){var e,n;if(!this.isOpen||t.keyCode!==KEY_LEFT&&t.keyCode!==KEY_RIGHT)return i.apply(this,arguments);a.ignoreHover=!0,e=(n=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),(n=(n=(n=t.keyCode===KEY_LEFT?n.prev("[data-group]"):n.next("[data-group]")).find("[data-selectable]")).eq(Math.min(n.length-1,e))).length&&this.setActiveOption(n)}),function(){var t,e=l.width,n=document;return void 0===e&&((t=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,n.body.appendChild(t),e=l.width=t.offsetWidth-t.clientWidth,n.body.removeChild(t)),e});(r.equalizeHeight||r.equalizeWidth)&&(hook.after(this,"positionDropdown",t),hook.after(this,"refreshOptions",t))}),Selectize.define("read-only",function(t){var e;this.setup=(e=this.setup,function(){e.apply(this,arguments),this.$dropdown.hasClass("read-only")&&this.$control_input.attr("readonly","readonly")}),this.readonly=function(t){t?(this.$control_input.attr("readonly","readonly"),this.$dropdown.addClass("read-only")):(this.$control_input.removeAttr("readonly"),this.$dropdown.removeClass("read-only"))}}),Selectize.define("remove_button",function(t){var s,e,n,i,r;"single"!==this.settings.mode&&(t=$.extend({label:"×",title:"Remove",className:"remove",append:!0},t),i=s=this,r='<a href="javascript:void(0)" class="'+(e=t).className+'" tabindex="-1" title="'+escape_html(e.title)+'">'+e.label+"</a>",s.setup=(n=i.setup,function(){var o;e.append&&(o=i.settings.render.item,i.settings.render.item=function(t){return e=o.apply(s,arguments),n=r,i=e.search(/(<\/[^>]+>\s*)$/),e.substring(0,i)+n+e.substring(i);var e,n,i}),n.apply(s,arguments),s.$control.on("click","."+e.className,function(t){if(t.preventDefault(),!i.isLocked)return t=$(t.currentTarget).parent(),i.setActiveItem(t),i.deleteSelection()&&i.setCaret(i.items.length),!1})}))}),Selectize.define("restore_on_backspace",function(n){var i,t=this;n.text=n.text||function(t){return t[this.settings.labelField]},this.onKeyDown=(i=t.onKeyDown,function(t){var e;if(!(t.keyCode===KEY_BACKSPACE&&""===this.$control_input.val()&&!this.$activeItems.length&&0<=(e=this.caretPos-1)&&e<this.items.length))return i.apply(this,arguments);e=this.options[this.items[e]],this.deleteSelection(t)&&(this.setTextboxValue(n.text.apply(this,[e])),this.refreshOptions(!0)),t.preventDefault()})}),Selectize.define("select_on_focus",function(t){var n,e,i=this;i.on("focus",(n=i.onFocus,function(t){var e=i.getItem(i.getValue()).text();return i.clear(),i.setTextboxValue(e),i.$control_input.select(),setTimeout(function(){i.settings.selectOnTab&&i.setActiveOption(i.getFirstItemMatchedByTextContent(e)),i.settings.score=null},0),n.apply(this,arguments)})),i.onBlur=(e=i.onBlur,function(t){return""===i.getValue()&&i.lastValidValue!==i.getValue()&&i.setValue(i.lastValidValue),setTimeout(function(){i.settings.score=function(){return function(){return 1}}},0),e.apply(this,arguments)}),i.settings.score=function(){return function(){return 1}}}),Selectize.define("tag_limit",function(o){const t=this;o.tagLimit=o.tagLimit,this.onBlur=function(){const i=t.onBlur;return function(t){if(i.apply(this,t),t){var t=this.$control,e=t.find(".item");const n=o.tagLimit;void 0===n||e.length<=n||(e.toArray().forEach(function(t,e){e<n||$(t).hide()}),t.append("<span><b>"+(e.length-n)+"</b></span>"))}}}(),this.onFocus=function(){const e=t.onFocus;return function(t){e.apply(this,t),t&&((t=this.$control).find(".item").show(),t.find("span").remove())}}()});return Selectize}));(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);/*! 1652 * jQuery Form Plugin 1653 * version: 2.73 (03-MAY-2011) 1654 * @requires jQuery v1.3.2 or later 1655 * 1656 * Examples and documentation at: http://malsup.com/jquery/form/ 1657 * Dual licensed under the MIT and GPL licenses: 1658 * http://www.opensource.org/licenses/mit-license.php 1659 * http://www.gnu.org/licenses/gpl.html 1660 */ 1661;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: ski
1661pping submit process - no element selected');return this} 1662if(typeof options=='function'){options={success:options}} 1663var action=this.attr('action');var url=(typeof action==='string')?$.trim(action):'';if(url){url=(url.match(/^([^#]+)/)||[])[1]} 1664url=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} 1665if(options.beforeSerialize&&options.beforeSerialize(this,options)===!1){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this} 1666var 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})}}} 1667if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===!1){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this} 1668this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this} 1669var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null}else{options.data=q} 1670var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})} 1671if(options.clearForm){callbacks.push(function(){$form.clearForm()})} 1672if(!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)} 1673options.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)} 1674this.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} 1675var 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")} 1676if(g){$.event.trigger("ajaxSend",[xhr,s])} 1677if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===!1){if(s.global){$.active--} 1678return} 1679if(xhr.aborted){return} 1680var 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}}} 1681function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(form.getAttribute('method')!='POST'){form.setAttribute('method','POST')} 1682if(form.getAttribute('action')!=s.url){form.setAttribute('action',s.url)} 1683if(!s.skipEncodingOverride){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'})} 1684if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=!0;cb(!0)},s.timeout)} 1685var 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])}} 1686$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')} 1687$(extraInputs).remove()}} 1688if(s.forceSync){doSubmit()}else{setTimeout(doSubmit,10)} 1689var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return} 1690if(e===!0&&xhr){xhr.abort('timeout');return} 1691var doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;if(!doc||doc.location.href==s.iframeSrc){if(!timedOut) 1692return} 1693io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,!1);var ok=!0;try{if(timedOut){throw 'timeout'} 1694var 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}} 1695xhr.responseText=doc.body?doc.body.innerHTML:doc.documentElement?doc.documentElement.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml) 1696s.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)} 1697data=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])} 1698if(xhr.aborted){log('upload aborted');ok=!1} 1699if(ok){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s])} 1700g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop")} 1701s.complete&&s.complete.call(s.context,xhr,ok?'success':'error');callbackProcessed=!0;if(s.timeout) 1702clearTimeout(timeoutHandle);setTimeout(function(){$io.removeData('form-plugin-onload');$io.remove();xhr.responseXML=null},100)} 1703var 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')} 1704return(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')} 1705if(s&&s.dataFilter){data=s.dataFilter(data,type)} 1706if(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)}} 1707return 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} 1708log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this} 1709return 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} 1710target=t[0]} 1711var 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}} 1712setTimeout(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} 1713var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a} 1714var 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} 1715if(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})} 1716continue} 1717v=$.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})}} 1718if(!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})}} 1719return a};
1719$.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} 1720var 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} 1721v.constructor==Array?$.merge(val,v):val.push(v)} 1722return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=!0} 1723if(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} 1724if(tag=='select'){var index=el.selectedIndex;if(index<0){return null} 1725var 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} 1726if(one){return v} 1727a.push(v)}} 1728return a} 1729return $(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} 1730return this.each(function(){this.disabled=!b})};$.fn.selected=function(select){if(select===undefined){select=!0} 1731return 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)} 1732this.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)}}}})($); 1733/*! 1734 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+ 1735 * http://cherne.net/brian/resources/jquery.hoverIntent.html 1736 * 1737 * You may use hoverIntent under the terms of the MIT license. Basically that 1738 * means you are free to use hoverIntent as long as this header is left intact. 1739 * Copyright 2007, 2014 Brian Cherne 1740 */ 1741(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(/([?&])_=[^&]*/,'')} 1742if(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} 1743ttl=storage.getItem(cacheKey+'cachettl');if(cacheValid&&typeof cacheValid==='function'&&!cacheValid()){storage.removeItem(cacheKey)} 1744if(ttl&&ttl<+new Date()){storage.removeItem(cacheKey);storage.removeItem(cacheKey+'cachettl');ttl=0} 1745value=storage.getItem(cacheKey);if(!value){if(options.success){options.realsuccess=options.success} 1746options.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')} 1747if(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} 1748return} 1749as4Plugin.fromBackForwardEvent=!0;formOptionsObject=as4Plugin.getASFormOptions(event.state.id_search);
1749formOptionsObject.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);var $myGroup=$('.PM_ASCriterionsGroupList');$myGroup.on('show.bs.collapse','.collapse',function(){$myGroup.find('.collapse.in').collapse('hide')})};$(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){var $myGroup=$('.PM_ASCriterionsGroupList');$myGroup.on('show.bs.collapse','.collapse',function(){$myGroup.find('.collapse.in').collapse('hide')});if(!as4Plugin.fromBackForwardEvent){as4Plugin.pushNewState(idSearch)} 1750eventLabel=[];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) 1751if(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))}}}} 1752if(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)}})} 1753$(document).ready(function(){var $myGroup=$('.PM_ASCriterionsGroupList');$myGroup.on('show.bs.collapse','.collapse',function(){$myGroup.find('.collapse.in').collapse('hide')})});function getUrlParameter(sParam,url){var results=new RegExp('[\?&]'+name+'=([^&#]*)').exec(url);if(results==null){return null} 1754return decodeURI(results[1])||0} 1755var as4Plugin={locationName:!1,lastIdSearch:!1,localCache:!1,localCacheKey:'',waitingLayers:new Array(),params:new Array(),extraParams:new Array(),persistentParam
1755s: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}}} 1756return null},getParamValue:function(idSearch,varName){if(typeof(as4Plugin.params[idSearch][varName])!='undefined'){return as4Plugin.params[idSearch][varName]} 1757return!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()} 1758if(typeof(as4Plugin.persistentParams[idSearch][varName])!='undefined'){return as4Plugin.persistentParams[idSearch][varName]} 1759return!1},setPersistentParamValue:function(idSearch,varName,varValue){if(typeof(as4Plugin.persistentParam
1759s[idSearch])=='undefined'){as4Plugin.persistentParams[idSearch]=new Array()} 1760as4Plugin.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} 1761for(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} 1762if(isNaN(idSearch)&&as4Plugin.lastIdSearch!=!1&&!isNaN(as4Plugin.lastIdSearch)){idSearch=as4Plugin.lastIdSearch} 1763if(isNaN(idSearch)){idSearch=parseInt(as4Plugin.getObjectValueByKey(formData,'id_search'))} 1764if(!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)}}} 1765return!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()} 1766var destinationElement=$('body '+searchResultsSelector);if($(destinationElement).size()>0){$(searchResultsSelector).css('height','auto')} 1767as4Plugin.removeLayer();$(document).trigger('as4-After-Set-Results-Contents',[id_search,context])},showAsResponse:function(responseText,statusText,xhr,$form){console.log(responseText.current_url);if(typeof(responseText.redirect_to_url)!='undefined'&&responseText.redirect_to_url!=''){window.location=responseText.redirect_to_url;return} 1768if(responseText.rendered_products_top==null){responseText.rendered_products_top=function(){return $(this)}} 1769var withProduct=!0;if(responseText.rendered_products==null){withProduct=!1;responseText.without_products=!0;responseText.rendered_products=function(){return $(this)}}else{responseText.without_products=!1} 1770if(responseText.rendered_products_bottom==null){responseText.rendered_products_bottom=function(){return $(this)}} 1771if(responseText.sort_orders==''){$('.products-sort-order').remove();responseText.sort_orders=function(){return $(this)}} 1772if(typeof($form)=='undefined'){$form=$('#PM_ASForm_'+history.state.id_search)} 1773var 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" class="fbr"><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" class="fbr2"><div id="js-product-list-top" /><div id="js-product-list" /><div id="js-product-list-bottom /"></section>')}} 1774if((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){if(prestashop.responsive.mobile==!0||$(window).width()<=768){$(document).find('#block-filter-mobile').prepend('<div id="js-active-search-filters"></div>')}else{$('#products').parent().parent().parent().find('#main-category-actions').prepend('<div id="js-active-search-filters"></div>')}}}else{$('#js-active-search-filters').remove()} 1775prestashop.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)} 1776if(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)} 1777if(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)} 1778$('#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)} 1779$('#PM_ASCriterionsGroup_'+id_search+'_'+next_id_criterion_group).html(htmlBlock)}else{$('#PM_ASBlockOutput_'+id_search).html(htmlBlock)}}} 1780as4Plugin.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.
1780indexOf("?",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)}} 1781destUrl=ASSearchUrl+asQuery}} 1782return 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)} 1783if(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>')} 1784if(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')} 1785return!1},initMobileStyles:function(idSearch){if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$('.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} 1786as4Plugin.initDone=!0;$(document).on('click','#filter-mobile',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$('body').css('overflow','hidden') 1787$(document).find('.category-order-mobile').find('.card-block').removeClass('active') 1788$(document).find('#block-filter-mobile').toggleClass('filterMobileVisible')}});$(document).on('click','#block-filter-mobile .card-header i',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$('body').css('overflow','') 1789$(document).find('.category-order-mobile').find('.card-block').removeClass('active') 1790$(document).find('#block-filter-mobile').toggleClass('filterMobileVisible')}});$(document).on('click','#show_results button',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$('body').css('overflow','') 1791$(document).find('.category-order-mobile').find('.card-block').removeClass('active') 1792$(document).find('#block-filter-mobile').toggleClass('filterMobileVisible')}});$(document).on('click','.fa.fa-chevron-left.return',function(e){e.preventDefault();$('.advanced_content .collapse[aria-expanded="true"]').removeClass('in');$('.fa.fa-chevron-left.return').addClass('hidden')});$(document).on('click','.advanced-search-name',function(e){e.preventDefault();$('.fa.fa-chevron-left.return').removeClass('hidden')});$(document).on('click','.show_products_name',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$(this).parents('.PM_ASBlockOutput').toggleClass('PM_ASMobileVisible')}});$(document).on('click','.show_products_content',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&(prestashop.responsive.mobile==!0||$(window).width()<=768)){$(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} 1793id_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}} 1794if(!$(this).hasClass('PM_ASCriterionLinkSelected')){$(this).next('input').removeAttr('disabled');$(this).addClass('PM_ASCriterionLinkSelected')}else{$(this).next('input').attr('disabled','disabled');$(this).removeClass('PM_ASCriterionLinkSelected')} 1795$(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} 1796id_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}} 1797if(!$(this).hasClass('PM_ASCriterionLinkSelected')){$(this).next('input').removeAttr('disabled');$(this).addClass('PM_ASCriterionLinkSelected')}else{$(this).next('input').attr('disabled','disabled');$(this).removeClass('PM_ASCriterionLinkSelected')} 1798$(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',' .PM_ASBlockOutput .PM_ASCriterionGroupSelect',function(e){e.preventDefault();e.stopImmediatePropagation();id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');
1798$(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} 1799newInputValue=(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))} 1800if(search_method==2){$('#PM_ASForm_'+id_search+'').ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))}} 1801$(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')} 1802$(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} 1803if($(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','.js-search-link',function(e){e.preventDefault();var id_search=$('.PM_ASBlockOutputHorizontal').attr('data-id-search');var url=$(this).attr('href').split('?');$('#PM_ASForm_'+id_search).attr('action',$('#PM_ASForm_'+id_search).attr('action')+'?'+url[1]);setTimeout(function(){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormOptions(id_search))},300)});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionHideToggleClick a',function(e){e.preventDefault();e.stopPropagation();$(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);if($(this).hasClass('PM_ASCriterionClose')){$(this).removeClass('PM_ASCriterionClose').addClass('PM_ASCriterionOpen')}else if($(this).hasClass('PM_ASCriterionOpen')){$(this).removeClass('PM_ASCriterionOpen').addClass('PM_ASCriterionClose')}
1804$('#PM_ASBlock_'+id_search+' .PM_ASCriterionLevel[data-id-parent="'+id_category+'"]').slideToggle()});$(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();$(document).on('click','.advanced-search-name',function(){var $myGroup=$(document).find('.PM_ASCriterionsGroupList');$myGroup.find('.collapse').removeClass('show');if(!$(this).hasClass("show")){$(document).find(".collapse").removeClass("show");$(this).addClass("show");$(this).addClass('show');var failureid=$(this).data('id');$(failureid).addClass('show')}else{$(document).find('.advanced-search-name').removeClass('show');$myGroup.find('.collapse').removeClass('show')}});$(document).on('click','#advancedSearch a',function(e){if($(e.target).closest('.PM_ASCriterionHideToggleLink').length){return} 1805e.preventDefault();var $link=$(this);var targetId=$link.data('id');var $target=$('#'+targetId);if($link.hasClass('active')){$link.removeClass('active');$target.removeClass('active')}else{$('.search-tab-pane').removeClass('active');$('.search-nav-link').removeClass('active');$link.addClass('active');$target.addClass('active')}});$(document).on('click','.label_link_plus_options',function(e){e.preventDefault() 1806if($('.header-advancedSearch-plus').hasClass('hidden')){$(this).html('Moins de filtres <span class="fa fa-caret-down"></span>');$('.label_link_plus_options .fa').removeClass('fa-caret-right');$('.label_link_plus_options .fa').addClass('fa-caret-down')}else{$(this).html('Plus de filtres <span class="fa fa-caret-up"></span>');$('.label_link_plus_options .fa').removeClass('fa-caret-down');$('.label_link_plus_options .fa').addClass('fa-caret-right')} 1807$(".header-advancedSearch-plus").toggleClass('hidden')})},removeOldEvents:function(){},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');slideMinValue=Math.round(ui.values[0]*100)/100;slideMaxValue=Math.round(ui.values[1]*100)/100;if(typeof($(this).data('currency-format'))!='undefined'&&$(this).data('currency-format')!=null&&$(this).data('currency-format').length>0){$('#PM_ASCritRangeValue'+id_search+'_'+$(this).data('id-criterion-group')).html(as4Plugin.formatCurrency($(this).data('currency-format'),slideMinValue)+' - '+as4Plugin.formatCurrency($(this).data('currency-format'),slideMaxValue))}else{$('#PM_ASCritRangeValue'+id_search+'_'+$(this).data('id-criterion-group')).html($(this).data('left-range-sign')+slideMinValue+$(this).data('right-range-sign')+' - '+$(this).data('left-range-sign')+slideMaxValue+$(this).data('right-range-sign'))} 1808$('#PM_ASInputCritRange'+id_search+'_'+$(this).data('id-criterion-group')).val(''+slideMinValue+'~'+slideMaxValue)},stop:function(event,ui){id_search=$(this).data('id-search');search_method=as4Plugin.getParamValue(id_search,'searchMethod');step_search=as4Plugin.getParamValue(id_search,'stepSearch');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))} 1809if(search_method==2){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))}}}})})},initSearchBlock:function(id_search,search_method,step_search){$(document).trigger('as4-Before-Init-Search-Block',[id_search,search_method,step_search]);as4Plugin.initSliders();$('.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} 1810$(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))} 1811$(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;
1811while(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} 1812return 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()} 1813if(typeof(ajaxCart)!='undefined'){ajaxCart.overrideButtonsInThePage()} 1814if(typeof(modalAjaxCart)!='undefined'){modalAjaxCart.overrideButtonsInThePage()} 1815if(typeof(display)!='undefined'&&display instanceof Function){var view='grid';if($.totalStorage instanceof Function){viewFromLocalStorage=$.totalStorage('display');if(typeof(viewFromLocalStorage)!='undefined'&&viewFromLocalStorage){view=viewFromLocalStorage}} 1816try{if(view&&view!='grid'){display(view)}}catch(e){} 1817if(typeof(blockHover)!='undefined'&&blockHover instanceof Function){blockHover()} 1818$('#grid').click(function(e){e.preventDefault();try{display('grid')}catch(e){}});$('#list').click(function(e){e.preventDefault();try{display('list')}catch(e){}})}} 1819as4Plugin.addBestSalesOptions(id_search);$(document).ready(function(){if(typeof $.fn.chosen!=='undefined'){$(".PM_ASBlockOutput select.chosen:visible").chosen({inherit_select_classes:!0,search_contains:!0,width:'100%'})} 1820if(typeof($.uniform)!='undefined'){$(document).on('click','.PM_ASBlockOutput .title_block',function(e){$.uniform.update(".PM_ASBlockOutput select.form-control")});if($('.PM_ASBlockOutput').length>0){$("select.form-control,input[type='checkbox']:not(.comparator), input[type='radio']").not(".not_uniform").uniform()}} 1821if(typeof reloadProductComparison!='undefined'){reloadProductComparison()} 1822if(typeof compareButtonsStatusRefresh!='undefined'&&typeof comparedProductsIds!='undefined'){compareButtonsStatusRefresh()} 1823if(typeof totalCompareButtons!='undefined'){totalCompareButtons()} 1824if(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');$('.pop').popover({html:!0,content:function(){var elementId=$(this).attr("data-popover-content");return $(elementId).html()}});$(".pop").popover({trigger:"manual",html:!0,animation:!1}).on("mouseenter",function(){var _this=this;$(this).popover("show");$(".popover").on("mouseleave",function(){$(_this).popover('hide')})}).on("mouseleave",function(){var _this=this;setTimeout(function(){if(!$(".popover:hover").length){$(_this).popover("hide")}},300)})},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} 1825formOptionsObject=as4Plugin.getASFormOptions(idSearch);for(paramKey in as4Plugin.extraParams){formOptionsObject.data[as4Plugin.extraParams[paramKey].name]=as4Plugin.extraParams[paramKey].value} 1826as4Plugin.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')} 1827$(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}} 1828return 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} 1829var 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)} 1830szSep=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]=''} 1831value=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}} 1832value[0]=str} 1833value[1]=(mask[1]&&value[1])?decimal+value[1]:'';result=value.join('');if(result==='0'||result===''){isNegative=!1} 1834return prefix+((isNegative?'-':'')+result)+suffix}};/** 1835* 2007-2018 PrestaShop 1836* 1837* NOTICE OF LICENSE 1838* 1839* This source file is subject to the Academic Free License (AFL 3.0)
1840* that is bundled with this package in the file LICENSE.txt. 1841* It is also available through the world-wide-web at this URL: 1842* http://opensource.org/licenses/afl-3.0.php 1843* If you did not receive a copy of the license and are unable to 1844* obtain it through the world-wide-web, please send an email 1845* to [email protected] so we can send you a copy immediately. 1846* 1847* DISCLAIMER 1848* 1849* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 1850* versions in the future. If you wish to customize PrestaShop for your 1851* needs please refer to http://www.prestashop.com for more information. 1852* 1853* @author PrestaShop SA <[email protected]> 1854* @copyright 2007-2018 PrestaShop SA 1855* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 1856* International Registered Trademark & Property of PrestaShop SA 1857* 1858* Don't forget to prefix your containers with your own identifier 1859* to avoid any conflicts with others containers. 1860*/ 1861!function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=2)}({0:function(){function e(){$(".js-dropdown-fix-top .js-dropdown").each(function(){pos=$(".js-AOM-VerticalMegaMenu").offset().top-$(this).parent().offset().top-1,$(this).css("top",pos+"px")})}$(document).ready(function(){setTimeout(function(){e()},500),$(window).resize(e),$("body").on("click",".js-AOM-VerticalMegaMenu .mobile-toggle-plus",function(){$(this).next(".js-dropdown").stop().slideToggle("slow"),$(this).parent(".js-AOM-Vertical-Item").toggleClass("active")}),"none"!=$(".js-AOM-VerticalMegaMenu .js-dropdown").css("display")&&($("html").on("touchstart",function(){$(".js-AOM-VerticalMegaMenu .js-AOM-Vertical-Item").removeClass("hover")}),$("#zverticalmegamenu").on("touchstart",function(e){e.stopPropagation()}),$(".js-AOM-VerticalMegaMenu .js-AOM-Vertical-Item .menu-link").on("touchstart",function(e){"use strict";var t=$(this).parent(".js-AOM-Vertical-Item");return!!t.hasClass("hover")||($(".js-AOM-VerticalMegaMenu .js-AOM-Vertical-Item").removeClass("hover"),t.addClass("hover"),e.preventDefault(),!1)})),$("body").on("click",".js-AOM-TOP-VerticalMegaMenu .aom-vertical-title",function(){$(this).next(".js-AOM-VerticalMegaMenu").stop().slideToggle("slow",function(){$(this).is(":visible")&&e()})})})},1:function(e,t,n){"use strict";n.r(t);n(0)},2:function(e,t,n){n(1),e.exports=n(36)},36:function(){}});(function(){'use strict';function setup(form){var input=form.querySelector('input[name="email"]');var msg=form.querySelector('.rdornl-footer__msg');var btn=form.querySelector('button[type="submit"]');if(!input||!msg){return} 1862function show(text){msg.textContent=text;msg.hidden=!1} 1863input.addEventListener('input',function(){msg.hidden=!0});form.addEventListener('submit',function(event){var email=(input.value||'').trim();if(email===''){event.preventDefault();input.focus();return} 1864if(form.getAttribute('data-rdornl-checked')===email){return} 1865event.preventDefault();if(btn){btn.disabled=!0} 1866var keyInput=form.querySelector('input[name="k"]');var body='ajax=1&action=check&email='+encodeURIComponent(email)+'&k='+encodeURIComponent(keyInput?keyInput.value:'');var done=function(data){if(btn){btn.disabled=!1} 1867if(data&&data.message){show(data.message);return} 1868form.setAttribute('data-rdornl-checked',email);form.submit()};fetch(form.getAttribute('data-check-url'),{method:'POST',credentials:'same-origin',headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'},body:body}).then(function(response){return response.json()}).then(done).catch(function(){done(null)})})} 1869function init(){if(!window.fetch){return} 1870var forms=document.querySelectorAll('form.rdornl-footer__form[data-check-url]');for(var i=0;i<forms.length;i++){setup(forms[i])}} 1871if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}})();/** 1872 * Owl carousel
1873 * @version 2.3.4 1874 * @author Bartosz Wojciechowski 1875 * @author David Deutsch 1876 * @license The MIT License (MIT) 1877 * @todo Lazy Load Icon 1878 * @todo prevent animationend bubling 1879 * @todo itemsScaleUp 1880 * @todo Test Zepto 1881 * @todo stagePadding calculate wrong active classes 1882 */ 1883;(function($,window,document,undefined){function Owl(element,options){this.settings=null;this.options=$.extend({},Owl.Defaults,options);this.$element=$(element);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this)},this));$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this)},this));$.each(Owl.Workers,$.proxy(function(priority,worker){this._pipe.push({'filter':worker.filter,'run':$.proxy(worker.run,this)})},this));this.setup();this.initialize()} 1884Owl.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',slideTransition:'',info:!1,nestedItemSelector:!1,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};Owl.Width={Default:'default',Inner:'inner',Outer:'outer'};Owl.Type={Event:'event',State:'state'};Owl.Plugins={};Owl.Workers=[{filter:['width','settings'],run:function(){this._width=this.$element.width()}},{filter:['width','items','settings'],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:['items','settings'],run:function(){this.$stage.children('.cloned').remove()}},{filter:['width','items','settings'],run:function(cache){var margin=this.settings.margin||'',grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$stage.children().css(css);cache.css=css}},{filter:['width','items','settings'],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];cache.items={merge:!1,width:width};while(iterator--){merge=this._mergers[iterator];merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge;cache.items.merge=merge>1||cache.items.merge;widths[iterator]=!grid?this._items[iterator].width():width*merge} 1885this._widths=widths}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length/2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append='',prepend='';repeat/=2;while(repeat>0){clones.push(this.normalize(clones.length/2,!0));append=append+items[clones[clones.length-1]][0].outerHTML;clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0));prepend=items[clones[clones.length-1]][0].outerHTML+prepend;repeat-=1} 1886this._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage)}},{filter:['width','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator<size){previous=coordinates[iterator-1]||0;current=this._widths[this.relative(iterator)]+this.settings.margin;coordinates.push(previous+current*rtl)} 1887this._coordinates=coordinates}},{filter:['width','items','settings'],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={'width':Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,'padding-left':padding||'','padding-right':padding||''};this.$stage.css(css)}},{filter:['width','items','settings'],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();
1887if(grid&&cache.items.merge){while(iterator--){cache.css.width=this._widths[this.relative(iterator)];items.eq(iterator).css(cache.css)}}else if(grid){cache.css.width=cache.items.width;items.css(cache.css)}}},{filter:['items'],run:function(){this._coordinates.length<1&&this.$stage.removeAttr('style')}},{filter:['width','items','settings'],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0;cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current));this.reset(cache.current)}},{filter:['position'],run:function(){this.animate(this.coordinates(this._current))}},{filter:['width','position','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++){inner=this._coordinates[i-1]||0;outer=Math.abs(this._coordinates[i])+padding*rtl;if((this.op(inner,'<=',begin)&&(this.op(inner,'>',end)))||(this.op(outer,'<',begin)&&this.op(outer,'>',end))){matches.push(i)}} 1888this.$stage.children('.active').removeClass('active');this.$stage.children(':eq('+matches.join('), :eq(')+')').addClass('active');this.$stage.children('.center').removeClass('center');if(this.settings.center){this.$stage.children().eq(this.current()).addClass('center')}}}];Owl.prototype.initializeStage=function(){this.$stage=this.$element.find('.'+this.settings.stageClass);if(this.$stage.length){return} 1889this.$element.addClass(this.options.loadingClass);this.$stage=$('<'+this.settings.stageElement+'>',{"class":this.settings.stageClass}).wrap($('<div/>',{"class":this.settings.stageOuterClass}));this.$element.append(this.$stage.parent())};Owl.prototype.initializeItems=function(){var $items=this.$element.find('.owl-item');if($items.length){this._items=$items.get().map(function(item){return $(item)});this._mergers=this._items.map(function(){return 1});this.refresh();return} 1890this.replace(this.$element.children().not(this.$stage.parent()));if(this.isVisible()){this.refresh()}else{this.invalidate('width')} 1891this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)};Owl.prototype.initialize=function(){this.enter('initializing');this.trigger('initialize');this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$element.find('img');nestedSelector=this.settings.nestedItemSelector?'.'+this.settings.nestedItemSelector:undefined;width=this.$element.children(nestedSelector).width();if(imgs.length&&width<=0){this.preloadAutoWidthImages(imgs)}} 1892this.initializeStage();this.initializeItems();this.registerEventHandlers();this.leave('initializing');this.trigger('initialized')};Owl.prototype.isVisible=function(){return this.settings.checkVisibility?this.$element.is(':visible'):!0};Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},this.options)}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint)}});settings=$.extend({},this.options,overwrites[match]);if(typeof settings.stagePadding==='function'){settings.stagePadding=settings.stagePadding()} 1893delete settings.responsive;if(settings.responsiveClass){this.$element.attr('class',this.$element.attr('class').replace(new RegExp('('+this.options.responsiveClass+'-)\\S+\\s','g'),'$1'+match))}} 1894this.trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;this.settings=settings;this.invalidate('settings');this.trigger('changed',{property:{name:'settings',value:this.settings}})};Owl.prototype.optionsLogic=function(){if(this.settings.autoWidth){this.settings.stagePadding=!1;this.settings.merge=!1}};Owl.prototype.prepare=function(item){var event=this.trigger('prepare',{content:item});if(!event.data){event.data=$('<'+this.settings.itemElement+'/>').addClass(this.options.itemClass).append(item)} 1895this.trigger('prepared',{content:event.data});return event.data};Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i<n){if(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0){this._pipe[i].run(cache)} 1896i++} 1897this._invalidated={};!this.is('valid')&&this.enter('valid')};Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}};Owl.prototype.refresh=function(){this.enter('refreshing');this.trigger('refresh');this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave('refreshing');this.trigger('refreshed')};Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)};Owl.prototype.onResize=function(){if(!this._items.length){return!1} 1898if(this._width===this.$element.width()){return!1} 1899if(!this.isVisible()){return!1} 1900this.enter('resizing');
1900if(this.trigger('resize').isDefaultPrevented()){this.leave('resizing');return!1} 1901this.invalidate('width');this.refresh();this.leave('resizing');this.trigger('resized')};Owl.prototype.registerEventHandlers=function(){if($.support.transition){this.$stage.on($.support.transition.end+'.owl.core',$.proxy(this.onTransitionEnd,this))} 1902if(this.settings.responsive!==!1){this.on(window,'resize',this._handlers.onThrottledResize)} 1903if(this.settings.mouseDrag){this.$element.addClass(this.options.dragClass);this.$stage.on('mousedown.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('dragstart.owl.core selectstart.owl.core',function(){return!1})} 1904if(this.settings.touchDrag){this.$stage.on('touchstart.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('touchcancel.owl.core',$.proxy(this.onDragEnd,this))}};Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3){return} 1905if($.support.transform){stage=this.$stage.css('transform').replace(/.*\(|\)| /g,'').split(',');stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]}}else{stage=this.$stage.position();stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}} 1906if(this.is('animating')){$.support.transform?this.animate(stage.x):this.$stage.stop() 1907this.invalidate('position')} 1908this.$element.toggleClass(this.options.grabClass,event.type==='mousedown');this.speed(0);this._drag.time=new Date().getTime();this._drag.target=$(event.target);this._drag.stage.start=stage;this._drag.stage.current=stage;this._drag.pointer=this.pointer(event);$(document).on('mouseup.owl.core touchend.owl.core',$.proxy(this.onDragEnd,this));$(document).one('mousemove.owl.core touchmove.owl.core',$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on('mousemove.owl.core touchmove.owl.core',$.proxy(this.onDragMove,this));if(Math.abs(delta.x)<Math.abs(delta.y)&&this.is('valid')){return} 1909event.preventDefault();this.enter('dragging');this.trigger('drag')},this))};Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);if(!this.is('dragging')){return} 1910event.preventDefault();if(this.settings.loop){minimum=this.coordinates(this.minimum());maximum=this.coordinates(this.maximum()+1)-minimum;stage.x=(((stage.x-minimum)%maximum+maximum)%maximum)+minimum}else{minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());pull=this.settings.pullDrag?-1*delta.x/5:0;stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull)} 1911this._drag.stage.current=stage;this.animate(stage.x)};Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?'left':'right';$(document).off('.owl.core');this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is('dragging')||!this.is('valid')){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction));this.invalidate('position');this.update();this._drag.direction=direction;if(Math.abs(delta.x)>3||new Date().getTime()-this._drag.time>300){this._drag.target.one('click.owl.core',function(){return!1})}} 1912if(!this.is('dragging')){return} 1913this.leave('dragging');this.trigger('dragged')};Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();if(!this.settings.freeDrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinate<value+pull){position=index}else if(direction==='right'&&coordinate>value-width-pull&&coordinate<value-width+pull){position=index+1}else if(this.op(coordinate,'<',value)&&this.op(coordinate,'>',coordinates[index+1]!==undefined?coordinates[index+1]:value-width)){position=direction==='left'?index+1:index} 1914return position===-1},this))} 1915if(!this.settings.loop){if(this.op(coordinate,'>',coordinates[this.minimum()])){position=coordinate=this.minimum()}else if(this.op(coordinate,'<',coordinates[this.maximum()])){position=coordinate=this.maximum()}} 1916return position};Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is('animating')&&this.onTransitionEnd();if(animate){this.enter('animating');this.trigger('translate')}
1917if($.support.transform3d&&$.support.transition){this.$stage.css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(this.speed()/1000)+'s'+(this.settings.slideTransition?' '+this.settings.slideTransition:'')})}else if(animate){this.$stage.animate({left:coordinate+'px'},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this))}else{this.$stage.css({left:coordinate+'px'})}};Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0};Owl.prototype.current=function(position){if(position===undefined){return this._current} 1918if(this._items.length===0){return undefined} 1919position=this.normalize(position);if(this._current!==position){var event=this.trigger('change',{property:{name:'position',value:position}});if(event.data!==undefined){position=this.normalize(event.data)} 1920this._current=position;this.invalidate('position');this.trigger('changed',{property:{name:'position',value:this._current}})} 1921return this._current};Owl.prototype.invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=!0;this.is('valid')&&this.leave('valid')} 1922return $.map(this._invalidated,function(v,i){return i})};Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined){return} 1923this._speed=0;this._current=position;this.suppress(['translate','translated']);this.animate(this.coordinates(position));this.release(['translate','translated'])};Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!this.isNumeric(position)||n<1){position=undefined}else if(position<0||position>=n+m){position=((position-m/2)%n+n)%n+m/2} 1924return position};Owl.prototype.relative=function(position){position-=this._clones.length/2;return this.normalize(position,!0)};Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop){maximum=this._clones.length/2+this._items.length-1}else if(settings.autoWidth||settings.merge){iterator=this._items.length;if(iterator){reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$element.width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin;if(reciprocalItemsWidth>elementWidth){break}}} 1925maximum=iterator+1}else if(settings.center){maximum=this._items.length-1}else{maximum=this._items.length-settings.items} 1926if(relative){maximum-=this._clones.length/2} 1927return Math.max(maximum,0)};Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2};Owl.prototype.items=function(position){if(position===undefined){return this._items.slice()} 1928position=this.normalize(position,!0);return this._items[position]};Owl.prototype.mergers=function(position){if(position===undefined){return this._mergers.slice()} 1929position=this.normalize(position,!0);return this._mergers[position]};Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2===0?even+index/2:odd-(index+1)/2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)})} 1930return $.map(this._clones,function(v,i){return v===position?map(i):null})};Owl.prototype.speed=function(speed){if(speed!==undefined){this._speed=speed} 1931return this._speed};Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index)},this))} 1932if(this.settings.center){if(this.settings.rtl){multiplier=-1;newPosition=position+1} 1933coordinate=this._coordinates[position];coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier}else{coordinate=this._coordinates[newPosition]||0} 1934coordinate=Math.ceil(coordinate);return coordinate};Owl.prototype.duration=function(from,to,factor){if(factor===0){return 0} 1935return Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs((factor||this.settings.smartSpeed))};Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();if(this.settings.loop){if(!this.settings.rewind&&Math.abs(distance)>items/2){distance+=direction*-1*items} 1936position=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;this.reset(current)}}else if(this.settings.rewind){maximum+=1;position=(position%maximum+maximum)%maximum}else{position=Math.max(minimum,Math.min(maximum,position))} 1937this.speed(this.duration(current,position,speed));this.current(position);if(this.isVisible()){this.update()}};Owl.prototype.next=function(speed){speed=speed||!1;this.to(this.relative(this.current())+1,speed)};Owl.prototype.prev=function(speed){speed=speed||!1;this.to(this.relative(this.current())-1,speed)};Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)){return!1}} 1938this.leave('animating');this.trigger('translated')};Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window){width=$(this.options.responsiveBaseElement).width()}else if(window.innerWidth){width=window.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth){
1938width=document.documentElement.clientWidth}else{console.warn('Can not detect viewport width.')} 1939return width};Owl.prototype.replace=function(content){this.$stage.empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content)} 1940if(this.settings.nestedItemSelector){content=content.find('.'+this.settings.nestedItemSelector)} 1941content.filter(function(){return this.nodeType===1}).each($.proxy(function(index,item){item=this.prepare(item);this.$stage.append(item);this._items.push(item);this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate('items')};Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,!0);content=content instanceof jQuery?content:$(content);this.trigger('add',{content:content,position:position});content=this.prepare(content);if(this._items.length===0||position===this._items.length){this._items.length===0&&this.$stage.append(content);this._items.length!==0&&this._items[position-1].after(content);this._items.push(content);this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)}else{this._items[position].before(content);this._items.splice(position,0,content);this._mergers.splice(position,0,content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)} 1942this._items[current]&&this.reset(this._items[current].index());this.invalidate('items');this.trigger('added',{content:content,position:position})};Owl.prototype.remove=function(position){position=this.normalize(position,!0);if(position===undefined){return} 1943this.trigger('remove',{content:this._items[position],position:position});this._items[position].remove();this._items.splice(position,1);this._mergers.splice(position,1);this.invalidate('items');this.trigger('removed',{content:null,position:position})};Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){element.attr('src',e.target.src);element.css('opacity',1);this.leave('pre-loading');!this.is('pre-loading')&&!this.is('initializing')&&this.refresh()},this)).attr('src',element.attr('src')||element.attr('data-src')||element.attr('data-src-retina'))},this))};Owl.prototype.destroy=function(){this.$element.off('.owl.core');this.$stage.off('.owl.core');$(document).off('.owl.core');if(this.settings.responsive!==!1){window.clearTimeout(this.resizeTimer);this.off(window,'resize',this._handlers.onThrottledResize)} 1944for(var i in this._plugins){this._plugins[i].destroy()} 1945this.$stage.children('.cloned').remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$stage.remove();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr('class',this.$element.attr('class').replace(new RegExp(this.options.responsiveClass+'-\\S+\\s','g'),'')).removeData('owl.carousel')};Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case '<':return rtl?a>b:a<b;case '>':return rtl?a<b:a>b;case '>=':return rtl?a<=b:a>=b;case '<=':return rtl?a>=b:a<=b;default:break}};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture)}else if(element.attachEvent){element.attachEvent('on'+event,listener)}};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture)}else if(element.detachEvent){element.detachEvent('on'+event,listener)}};Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}}
1945,handler=$.camelCase($.grep(['on',name,namespace],function(v){return v}).join('-').toLowerCase()),event=$.Event([name,'owl',namespace||'carousel'].join('.').toLowerCase(),$.extend({relatedTarget:this},status,data));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(plugin.onTrigger){plugin.onTrigger(event)}});this.register({type:Owl.Type.Event,name:name});this.$element.trigger(event);if(this.settings&&typeof this.settings[handler]==='function'){this.settings[handler].call(this,event)}} 1946return event};Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){if(this._states.current[name]===undefined){this._states.current[name]=0} 1947this._states.current[name]++},this))};Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--},this))};Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if(!$.event.special[object.name]){$.event.special[object.name]={}} 1948if(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){if(_default&&_default.apply&&(!e.namespace||e.namespace.indexOf('owl')===-1)){return _default.apply(this,arguments)} 1949return e.namespace&&e.namespace.indexOf('owl')>-1};$.event.special[object.name].owl=!0}}else if(object.type===Owl.Type.State){if(!this._states.tags[object.name]){this._states.tags[object.name]=object.tags}else{this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags)} 1950this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i},this))}};Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=!0},this))};Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event]},this))};Owl.prototype.pointer=function(event){var result={x:null,y:null};event=event.originalEvent||event||window.event;event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event;if(event.pageX){result.x=event.pageX;result.y=event.pageY}else{result.x=event.clientX;result.y=event.clientY} 1951return result};Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number))};Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}};$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data('owl.carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$this.data('owl.carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){data.register({type:Owl.Type.Event,name:event});data.$element.on(event+'.owl.carousel.core',$.proxy(function(e){if(e.namespace&&e.relatedTarget!==this){this.suppress([event]);data[event].apply(this,[].slice.call(arguments,1));this.release([event])}},data))})} 1952if(typeof option=='string'&&option.charAt(0)!=='_'){data[option].apply(data,args)}})};$.fn.owlCarousel.Constructor=Owl})(window.Zepto||window.jQuery,window,document);/** 1953 * Navigation Plugin 1954 * @version 2.3.4 1955 * @author Artus Kolanowski 1956 * @author David Deutsch 1957 * @license The MIT License (MIT) 1958 */ 1959;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={'prepared.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'</div>')}},this),'added.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,0,this._templates.pop())}},this),'remove.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,1)}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.draw()}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&!this._initialized){this._core.trigger('initialize',null,'navigation');this.initialize();this.update();this.draw();this._initialized=!0;this._core.trigger('initialized',null,'navigation')}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._initialized){this._core.trigger('refresh',null,'navigation');this.update();this.draw();this._core.trigger('refreshed',null,'navigation')}},this)};this._core.options=$.extend({},Navigation.Defaults,this._core.options);this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:['<span aria-label="'+'Previous'+'">‹</span>','<span aria-label="'+'Next'+'">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1};Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');
1959this._controls.$previous=$('<'+settings.navElement+'>').addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){this.prev(settings.navSpeed)},this));this._controls.$next=$('<'+settings.navElement+'>').addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){this.next(settings.navSpeed)},this));if(!settings.dotsData){this._templates=[$('<button role="button">').addClass(settings.dotClass).append($('<span>')).prop('outerHTML')]} 1960this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');this._controls.$absolute.on('click','button',$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault();this.to(index,settings.dotsSpeed)},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this)}};Navigation.prototype.destroy=function(){var handler,control,property,override,settings;settings=this._core.settings;for(handler in this._handlers){this.$element.off(handler,this._handlers[handler])} 1961for(control in this._controls){if(control==='$relative'&&settings.navContainer){this._controls[control].html('')}else{this._controls[control].remove()}} 1962for(override in this.overides){this._core[override]=this._overrides[override]} 1963for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if(settings.slideBy!=='page'){settings.slideBy=Math.min(settings.slideBy,settings.items)} 1964if(settings.dots||settings.slideBy=='page'){this._pages=[];for(i=lower,j=0,k=0;i<upper;i++){if(j>=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum){break} 1965j=0,++k} 1966j+=this._core.mergers(this._core.relative(i))}}};Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass('disabled',!settings.nav||disabled);if(settings.nav){this._controls.$previous.toggleClass('disabled',!loop&&index<=this._core.minimum(!0));this._controls.$next.toggleClass('disabled',!loop&&index>=this._core.maximum(!0))} 1967this._controls.$absolute.toggleClass('disabled',!settings.dots||disabled);if(settings.dots){difference=this._pages.length-this._controls.$absolute.children().length;if(settings.dotsData&&difference!==0){this._controls.$absolute.html(this._templates.join(''))}else if(difference>0){this._controls.$absolute.append(new Array(difference+1).join(this._templates[0]))}else if(difference<0){this._controls.$absolute.children().slice(difference).remove()} 1968this._controls.$absolute.find('.active').removeClass('active');this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass('active')}};Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}};Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current},this)).pop()};Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;if(settings.slideBy=='page'){position=$.inArray(this.current(),this._pages);length=this._pages.length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start}else{position=this._core.relative(this._core.current());length=this._core.items().length;successor?position+=settings.slideBy:position-=settings.slideBy} 1969return position};Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)};Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)};Navigation.prototype.to=function(position,speed,standard){var length;if(!standard&&this._pages.length){length=this._pages.length;
1969$.proxy(this._overrides.to,this._core)(this._pages[((position%length)+length)%length].start,speed)}else{$.proxy(this._overrides.to,this._core)(position,speed)}};$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation})(window.Zepto||window.jQuery,window,document);$(document).ready(function(){if(typeof kwanko_rayondortracking==='undefined'){return} 1970handlePageTracking();function handlePageTracking(){const{zone}=kwanko_rayondortracking;switch(zone){case 'homepage':KWKUniJS.ptag({zone:'homepage'});break;case 'product':const{productId,categoryId}=kwanko_rayondortracking;KWKUniJS.ptag({zone:'product',productId:productId,categoryId:categoryId});break;case 'listing':const{products,categoryId:listingCategoryId}=kwanko_rayondortracking;KWKUniJS.ptag({zone:'listing',categoryId:listingCategoryId,products:products});break;case 'basket':updateBasketTracking(kwanko_rayondortracking);break;case 'transaction':handleTransactionTracking(kwanko_rayondortracking);break}} 1971prestashop.on('updateCart',function(event){console.log("event",event);if(event.reason){setTimeout(()=>{$.ajax({url:kwanko_rayondortracking.ajax_tracking_url,type:"POST",data:{action:'getDataLayers',cart_id:JSON.stringify(prestashop.cart?.id||0)},dataType:'json'}).done(result=>{console.log("result",result);if(result?.cart_data){updateBasketTracking(result.cart_data)}}).fail((jqXHR,textStatus,errorThrown)=>{console.error('AJAX error:',textStatus,errorThrown)})},500)}});function updateBasketTracking(cartData){KWKUniJS.ptag({zone:'basket',products:cartData.products.map(p=>({id:p.id,price:parseFloat(p.price).toFixed(2),quantity:parseInt(p.quantity)})),currency:cartData.currency})} 1972function handleTransactionTracking(data){const{products:transactionProducts,transactionId,currency:transactionCurrency,isNewCustomer,paymentMethod,voucherCode,totalWithoutShipping}=data;KWKUniJS.ptag({zone:'transaction',products:transactionProducts,transactionId:transactionId,currency:transactionCurrency});const mclic=isNewCustomer?'G47E4B1017':'G47E4B10213';KWKUniJS.conversion({'mclic':mclic,'argmon':totalWithoutShipping,'argann':transactionId,'argmodp':paymentMethod,'nacur':transactionCurrency,'argbr':voucherCode||''})}});function checkCGVStateCustom(cgvCheckbox){if($(cgvCheckbox)[0].checked==!0){$('.warning-validation').hide();$('.js-terms').css('color','#000000');$('.js-terms').css('font-weight','normal')}else{$('.js-terms').css('color','#e50009');$('.js-terms').css('font-weight','bold');$('#conditions_to_approve[terms-and-conditions]').hover();$('.warning-validation').show()}} 1973$(document).on('submit','#js-delivery',function(){$(document).find('.cart-grid-right').hide()}) 1974$(document).ready(function(){const $phoneInput=$('.js-address-form input[name="phone"]');$phoneInput.on('keydown',function(event){if($.inArray(event.keyCode,[46,8,9,27,13,37,38,39,40])!==-1||(event.keyCode==65&&(event.ctrlKey===!0||event.metaKey===!0))||(event.keyCode==67&&(event.ctrlKey===!0||event.metaKey===!0))||(event.keyCode==88&&(event.ctrlKey===!0||event.metaKey===!0))){return} 1975if((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105)){return} 1976event.preventDefault()});$phoneInput.on('input change',function(){const phoneValue=$phoneInput.val();if(phoneValue.length>10){$phoneInput.val(phoneValue.slice(0,10))} 1977if(/^[0-9]{10}$/.test(phoneValue)){$phoneInput[0].setCustomValidity("")}else{$phoneInput[0].setCustomValidity("Le numéro de téléphone doit contenir exactement 10 chiffres.")}});$(document).on('click','.btn[data-action="show-password"]',function(e){console.log("test");e.preventDefault();const $passwordField=$('.js-visible-password');const isPasswordVisible=$passwordField.attr('type')==='text';$passwordField.attr('type',isPasswordVisible?'password':'text');const $icon=$(this).find('i');$icon.toggleClass('fa-eye fa-eye-slash')});$(document).on('click','.pagination .obflink',function(e){e.preventDefault();var t=$(this);var link=atob(t.data('o'));link=decodeURIComponent(link).replace(/\s+/g,'').toLowerCase();$(location).attr('href',link)});$(document).on('click','.lien-cache',function(e){e.preventDefault();var link=$(this).data('product');$(location).attr('href',link)});$('#identity input[name="newsletter"]').change(function(){cb=$(this);
1977$('#identity input[name="action"]').val(cb[0].checked?"true":"false")}) 1978var cgvCheckbox=$("input[id^='conditions_to_approve'");if(cgvCheckbox.length>0){checkCGVStateCustom(cgvCheckbox)} 1979cgvCheckbox.change(function(e){checkCGVStateCustom($(this))});$('.fa.fa-chevron-left.return').click(function(){$('.advanced_content .collapse[aria-expanded="true"]').removeClass('in');$('.fa.fa-chevron-left.return').addClass('hidden')});$('.advanced-search-name').click(function(){$('.fa.fa-chevron-left.return').removeClass('hidden')});$('.show_products_name').click(function(){if(typeof(prestashop)=='object'&&prestashop.responsive.mobile==!0){$(this).parents('.PM_ASBlockOutput').toggleClass('PM_ASMobileVisible','Remove')}});$('.show_products_content').click(function(){if(typeof(prestashop)=='object'&&prestashop.responsive.mobile==!0){$(this).parents('.PM_ASBlockOutput').toggleClass('PM_ASMobileVisible','Remove')}});$('.aom-vertical-menu-item.plex').mouseover(function(){$('#center-column').css('background','#d5d3d3');$('#center-column').css('opacity','70%');$('#center-column').css('-webkit-filter','blur(5px)');$('#center-column').css('-moz-filter','blur(5px)');$('#center-column').css('-o-filter','blur(5px)');$('#center-column').css('-ms-filter','blur(5px)');$('#center-column').css('filter','blur(5px)')});$('.aom-vertical-menu-item.plex').mouseout(function(){$('#center-column').css('background','transparent');$('#center-column').css('opacity','1');$('#center-column').css('-webkit-filter','none');$('#center-column').css('-moz-filter','none');$('#center-column').css('-o-filter','none');$('#center-column').css('-ms-filter','none');$('#center-column').css('filter','none')});$('.owl-carousel').owlCarousel({items:2,loop:!0,margin:10,nav:!0,dots:!1,autoplay:!0,responsive:{0:{items:2},600:{items:3},1000:{items:4},1200:{items:5}}});if($('.pop').length>
19790){$(document).find('.pop').popover({html:!0,content:function(){var elementId=$(this).attr("data-popover-content");return $(elementId).html()}});$(document).find('.pop').popover({trigger:"manual",html:!0,animation:!1}).on("mouseenter",function(){var _this=this;$(this).popover("show");$(document).find(".popover").on("mouseleave",function(){$(_this).popover('hide')})}).on("mouseleave",function(){var _this=this;setTimeout(function(){if(!$(document).find(".popover:hover").length){$(_this).popover("hide")}},300)})} 1980if(window.innerWidth<=767){if($('body').is('#product')){var scrollTop=$(window).scrollTop(),elementOffset=$(document).find('.product-additional-info').offset().top,heightTarget=$(document).find('.product-fixed-content').height() 1981$(document).find('.product-right .product-prices').show() 1982$(document).find('.product-right .product-add-to-cart-button').show()}} 1983$(window).scroll(function(){checkScroll() 1984if($('body').is('#product')){if(window.innerWidth<=767){var scrollTop=$(window).scrollTop(),heightWindow=$(window).height(),elementOffset=$(document).find('.product-additional-info').offset().top,heightTarget=$(document).find('.product-right .product-prices').height()+$(document).find('.product-right .product-add-to-cart-button').height() 1985$(document).find('.product-right .product-prices').show() 1986$(document).find('.product-right .product-add-to-cart-button').show()}}});checkScroll();function checkScroll(){var cibles;var widthBlock=$('#js-product-list-header').innerWidth() 1987if(window.innerWidth>768){cibles=['#main-category-actions']}else{cibles=['#main-category-actions']} 1988if($(window).scrollTop()>=130){cibles.forEach(function(element){$(element).removeClass('static_block') 1989$(element).addClass('fixed_block');$(element).css('width',widthBlock+'px')})}else{cibles.forEach(function(element){$(element).addClass('static_block') 1990$(element).removeClass('fixed_block');$(element).css('width','100%')})}} 1991window.onscroll=function(){ScrollFunction()};function ScrollFunction(){$('.js-cookieCloseButton').trigger('click')} 1992var acc=$(document).find(".accordionFooter") 1993acc.on('click',function(){$(document).find(".panelFooter").css('display','none') 1994if($(this).hasClass('active')){$(this).removeClass('active') 1995$(this).next().css('display','none') 1996$(this).find('i').css('transform','rotate(00deg)')}else{$(this).addClass('active') 1997$(this).next().css('display','block') 1998$(this).find('i').css('transform','rotate(90deg)')}}) 1999$(document).on('click','.category-order-mobile',function(){var card_block=$(this).find('.card-block') 2000$(document).find('.PM_ASBlockOutput.PM_ASMobileMode').removeClass('PM_ASMobileVisible') 2001card_block.toggleClass('active')}) 2002$(document).on('click','.category-order-mobile .dropdown-menu a',function(){var content=$(this).text() 2003$(document).find('.category-order-mobile .sort-select .custom-select').html(content.trim()+' <i class="material-icons chevron_right_icone">chevron_right</i>')})});$(document).ready(function(){$(document).ajaxStop(function(){refreshCart()});function refreshCart(){$(".cart-overview-loading").css('display','none')}});$(document).ready(function(){});(function($){'use strict';var PAGES={index:1,product:1};if(!document.body||!PAGES[document.body.id]){return} 2004var PRICE_SIZES=[15,14.5,14,13.5,13,12.5,12,11.5,11];var ROWS=[['.product_reviews','--gsi-h-pictos'],['.product-name','--gsi-h-title'],['.price-and-status','--gsi-h-price'],['.informations-section','--gsi-h-info']];function priceLinesFit(wrapper){var lines=wrapper.querySelectorAll('.product-miniature .first-prices, .product-miniature .second-prices');for(var i=0;i<lines.length;i++){var box=lines[i].closest('.price-and-status')||lines[i].parentNode;if(box.clientWidth>0&&lines[i].scrollWidth>box.clientWidth){return!1}} 2005return!0} 2006function fitBlock(wrapper){if(!wrapper.querySelector('.product-miniature')){return} 2007var chosen=PRICE_SIZES[PRICE_SIZES.length-1];for(var i=0;i<PRICE_SIZES.length;i++){wrapper.style.setProperty('--gsi-price-fs',PRICE_SIZES[i]+'px');if(priceLinesFit(wrapper)){chosen=PRICE_SIZES[i];break}} 2008wrapper.style.setProperty('--gsi-price-fs',chosen+'px');
2008ROWS.forEach(function(row){wrapper.style.removeProperty(row[1])});wrapper.style.removeProperty('--gsi-slider-top');ROWS.forEach(function(row){var els=wrapper.querySelectorAll('.product-miniature '+row[0]);var max=0;for(var k=0;k<els.length;k++){var h=els[k].getBoundingClientRect().height;if(h>max){max=h}} 2009if(max>0){wrapper.style.setProperty(row[1],Math.ceil(max)+'px')}});var img=wrapper.querySelector('.slick-active .product-miniature img')||wrapper.querySelector('.product-miniature img');if(img){var ri=img.getBoundingClientRect(),rw=wrapper.getBoundingClientRect();if(ri.height>0){wrapper.style.setProperty('--gsi-slider-top',Math.round(ri.top-rw.top+ri.height/2)+'px')}}} 2010function fitAll(){var wrappers=document.querySelectorAll('#index .product-list .product-list-wrapper, #product .slick-similar, #product .slick-complete-purchase');for(var i=0;i<wrappers.length;i++){fitBlock(wrappers[i])}} 2011var pending=null;function schedule(){if(pending){clearTimeout(pending)} 2012pending=setTimeout(function(){pending=null;window.requestAnimationFrame(fitAll)},120)} 2013window.gsiFitHomeCards=fitAll;fitAll();if(document.fonts&&document.fonts.ready){document.fonts.ready.then(schedule)} 2014window.addEventListener('load',function(){schedule();setTimeout(schedule,1000)});window.addEventListener('resize',schedule);window.addEventListener('orientationchange',schedule);if($){$(document).on('init setPosition breakpoint','.js-home-block-slider, .slick-similar, .slick-complete-purchase',schedule);$(document).on('shown.bs.tab',schedule)}})(window.jQuery);(function(){'use strict';var SMOOTH='scrollBehavior' in document.documentElement.style;var EPS=2;function pageWidth(slider){var cards=slider.querySelectorAll('.product-miniature');if(!cards.length){return slider.clientWidth} 2015var w=cards.length>1?(cards[1].offsetLeft-cards[0].offsetLeft):0;if(!w){w=cards[0].getBoundingClientRect().width} 2016if(!w){return slider.clientWidth} 2017return Math.max(1,Math.round(slider.clientWidth/w))*w} 2018function setup(wrap){var slider=wrap.querySelector('.js-home-block-mobile-slider');var prev=wrap.querySelector('.gsi-mslider-prev');var next=wrap.querySelector('.gsi-mslider-next');if(!slider||!prev||!next){return} 2019function refresh(){var max=slider.scrollWidth-slider.clientWidth;wrap.classList.toggle('gsi-mslider--nonav',max<=EPS);prev.classList.toggle('slick-disabled',slider.scrollLeft<=EPS);next.classList.toggle('slick-disabled',slider.scrollLeft>=max-EPS);var img=slider.querySelector('.product-miniature img');if(img&&img.getBoundingClientRect().height){var ri=img.getBoundingClientRect();var rw=wrap.getBoundingClientRect();wrap.style.setProperty('--gsi-mslider-top',Math.round(ri.top-rw.top+ri.height/2)+'px')}} 2020function go(dir){var amount=dir*pageWidth(slider);if(SMOOTH){slider.scrollBy({left:amount,behavior:'smooth'})}else{slider.scrollLeft+=amount} 2021setTimeout(refresh,450)} 2022prev.addEventListener('click',function(e){e.preventDefault();go(-1)});next.addEventListener('click',function(e){e.preventDefault();go(1)});var ticking=!1;slider.addEventListener('scroll',function(){if(ticking){return} 2023ticking=!0;window.requestAnimationFrame(function(){ticking=!1;refresh()})},{passive:!0});window.addEventListener('resize',refresh);window.addEventListener('orientationchange',refresh);function refreshLater(){refresh();setTimeout(refresh,600);setTimeout(refresh,1500)}
2024if(document.readyState==='complete'){refreshLater()}else{window.addEventListener('load',refreshLater)} 2025wrap.classList.add('gsi-mslider--ready');refresh()} 2026function init(){var wraps=document.querySelectorAll('.js-gsi-mslider');for(var i=0;i<wraps.length;i++){setup(wraps[i])}} 2027if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',init)}else{init()}})()
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.