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-/,x=/-([\da-z])/gi,b=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(x,b)}
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,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,k=oe(),S=oe(),j=oe(),_=function(e,t){return e===t&&(d=!0),0},E=1<<31,N={}.hasOwnProperty,A=[],D=A.pop,L=A.push,q=A.push,P=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R="\\["+M+"*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+M+"*\\]",W=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",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(W),V=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){f()};try{q.apply(A=P.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){q={apply:A.length?function(e,t){L.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,l,c,d,h,g,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,v)){if(11!==C&&(h=K.exec(e)))if(o=h[1]){if(9===C){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(T&&(l=T.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(h[2])return q.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!j[e+" "]&&(!m||!m.test(e))){if(1!==C)T=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),s=(g=a(e)).length,d=V.test(c)?"#"+c:"[id='"+c+"']";s--;)g[s]=d+" "+ve(g[s]);y=g.join(","),T=Z.test(e)&&pe(t.parentNode)||t}if(y)try{return q.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===b&&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[b]=!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=b,!p.getElementsByName||!p.getElementsByName(b).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='"+b+"'></a><select id='"+b+"-\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~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").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("!=",W)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(h.compareDocumentPosition),x=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&&x(w,e)?-1:t===p||t.ownerDocument===w&&x(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),x(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,x=!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(x=(p=(l=(c=(d=(f=m)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(x=p=0)||h.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[T,p,x];break}}else if(y&&(x=p=(l=(c=(d=(f=t)[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(f=++p&&f&&f[v]||(x=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++x||(y&&((c=(d=f[b]||(f[b]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,x]),f!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[b]?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[b]?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[b]||(t[b]={}))[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 xe(e,t,n,r,i,o){return r&&!r[b]&&(r=xe(r)),i&&!i[b]&&(i=xe(i,o)),ae(function(o,a,s,u){var l,c,d,f=[],p=[],h=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?v:ye(v,f,e,s,u),g=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,g,s,u),r)for(l=ye(g,p),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(g[p[c]]=!(m[p[c]]=d));if(o){if(i||e){if(i){for(l=[],c=g.length;c--;)(d=g[c])&&l.push(m[c]=d);i(null,g=[],l,u)}for(c=g.length;c--;)(d=g[c])&&(l=i?O(o,d):f[c])>-1&&(o[l]=!(a[l]=d))}}else g=ye(g===a?g.splice(h,g.length):g),i?i(null,a,g,u):q.apply(a,g)})}function be(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))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return xe(u>1&&ge(f),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<i&&be(e.slice(u,i)),i<o&&be(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=be(t[n]))[b]?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",x=o&&[],b=[],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&&x.push(d))}if(g+=y,n&&y!==g){for(h=0;m=t[h++];)m(x,b,a,s);if(o){if(g>0)for(;y--;)x[y]||b[y]||(b[y]=D.call(u));b=ye(b)}q.apply(u,b),c&&!o&&b.length>0&&g+t.length>1&&ie.uniqueSort(u)}return c&&(T=k,l=w),x};return n?ae(o):o}(o,i))).selector=e}return s},u=ie.select=function(e,t,i,o){var u,l,c,d,f,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=G.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[d=c.type]);)if((f=r.find[d])&&(o=f(c.matches[0].replace(te,ne),Z.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(u,1),!(e=o.length&&ve(l)))return q.apply(i,o),i;break}}return(p||s(e,h))(o,t,!v,i,!t||Z.test(e)&&pe(t.parentNode)||t),i},n.sortStable=b.split("").sort(_).join("")===b,n.detectDuplicates=!!d,f(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(H,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(i);m.find=T,m.expr=T.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=T.uniqueSort,m.text=T.getText,m.isXMLDoc=T.isXML,m.contains=T.contains;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=m.expr.match.needsContext,j=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_=/^.[^:#\[\.,]*$/;function E(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});
39if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(_.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return d.call(t,e)>-1!==n})}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(i[t],this))return!0}));for(t=0;t<n;t++)m.find(e,i[t],r);return(r=this.pushStack(n>1?m.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&S.test(e)?m(e):e||[],!1).length}});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="
39<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),j.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=s.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,N=m(s);var D=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=S.test(e)||"string"!=typeof e?m(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?m.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(m(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(L[e]||m.uniqueSort(i),D.test(e)&&i.reverse()),this.pushStack(i)}});var P,O=/\S+/g;function H(){s.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),m.ready()}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(O)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){m.each(n,function(n,r){m.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==m.type(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},i={};return r.pipe=r.then,m.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=u.call(arguments),a=o.length,s=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?u.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&m.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,t)).done(c(i,r,o)).fail(l.reject):--s;return s||l.resolveWith(r,o),l.promise()}}),m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(P.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))}}),m.ready.promise=function(e){return P||(P=m.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?i.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H))),P.promise(e)},m.ready.promise();var M=function e(t,n,r,i,o,a,s){var u=0,l=t.length,c=null==r;if("object"===m.type(r))for(u in o=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==i&&(o=!0,m.isFunction(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(m(e),n)})),n))for(;u<l;u++)n(t[u],r,s?i:i.call(t[u],u,n(t[u],r)));
39return o?t:c?n.call(t):l?n(t[0],r):a},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function R(){this.expando=m.expando+R.uid++}R.uid=1,R.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 W=new R,I=new R,$=/^(?:\{[\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)||W.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 W.access(e,t,n)},_removeData:function(e,t){W.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&&!W.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]));W.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=W.get(e,t),n&&(!r||m.isArray(n)?r=W.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 W.get(e,n)||W.access(e,n,{empty:m.Callbacks("once memory").add(function(){W.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=W.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++)W.set(e[n],"globalEval",!t||W.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=W.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=W.hasData(e)&&W.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)&&W.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,a,s=u.call(arguments),l=(W.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 xe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(W.hasData(e)&&(o=W.access(e),a=W.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 be(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||"")&&!W.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++)be(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++)xe(o[r],a[r]);else xe(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[W.expando]){if(t.events)for(r in t.events)i[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[W.expando]=void 0}n[I.expando]&&(n[I.expando]=void 0)}}}),m.fn.extend({domManip:we,detach:function(e){return Te(this,e,!0)},remove:function(e){return Te(this,e)},text:function(e){return M(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||me(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Z[(J.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(ee(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],i=m(e),o=i.length-1,a=0;a<=o;
vendor: 4,918 bytes, line 39
39a++)n=a===o?this:this.clone(!0),m(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var Ce,ke={HTML:"block",BODY:"block"};function Se(e,t){var n=m(t.createElement(e)).appendTo(t.body),r=m.css(n[0],"display");return n.detach(),r}function je(e){var t=s,n=ke[e];return n||("none"!==(n=Se(e,t))&&n||((t=(Ce=(Ce||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Se(e,t),Ce.detach()),ke[e]=n),n}var _e=/^margin/,Ee=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ne=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ae=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},De=s.documentElement;function Le(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Ne(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!v.pixelMarginRight()&&Ee.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,n,r,o=s.createElement("div"),a=s.createElement("div");function u(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",De.appendChild(o);var s=i.getComputedStyle(a);e="1%"!==s.top,r="2px"===s.marginLeft,t="4px"===s.width,a.style.marginRight="50%",n="4px"===s.marginRight,De.removeChild(o)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),m.extend(v,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),n},reliableMarginLeft:function(){return null==t&&u(),r},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",De.appendChild(o),e=!parseFloat(i.getComputedStyle(t).marginRight),De.removeChild(o),a.removeChild(t),e}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,Oe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Me=["Webkit","O","Moz","ms"],Fe=s.createElement("div").style;function Re(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 We(e,t,n){var r=U.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ie(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=m.css(e,n+V[o],!0,i)),r?("content"===n&&(a-=m.css(e,"padding"+V[o],!0,i)),"margin"!==n&&(a-=m.css(e,"border"+V[o]+"Width",!0,i))):(a+=m.css(e,"padding"+V[o],!0,i),"padding"!==n&&(a+=m.css(e,"border"+V[o]+"Width",!0,i)));return a}function $e(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ne(e),a="border-box"===m.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Le(e,t,o))<0||null==i)&&(i=e.style[t]),Ee.test(i))return i;r=a&&(v.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ie(e,t,n||(a?"border":"content"),r,o)+"px"}function Be(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=W.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&G(r)&&(o[a]=W.access(r,"olddisplay",je(r.nodeName)))):(i=G(r),"none"===n&&i||W.set(r,"olddisplay",i?n:m.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function ze(e,t,n,r,i){return new ze.prototype.init(e,t,n,r,i)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=m.camelCase(t),l=e.style;if(t=m.cssProps[u]||(m.cssProps[u]=Re(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]=Re(s)||s),(a=m.cssHooks[t]||m.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Le(e,t,r)),"normal"===i&&t in He&&(i=He[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return Pe.test(m.css(e,"display"))&&0===e.offsetWidth?Ae(e,Oe,function(){return $e(e,t,r)}):$e(e,t,r)},set:function(e,n,r){var i,o=r&&Ne(e),a=r&&Ie(e,t,r,"border-box"===m.css(e,"boxSizing",!1,o),o);return a&&(i=U.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),We(0,n,a)}}}),m.cssHooks.marginLeft=qe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Le(e,"marginLeft"))||e.getBoundingClientRect().left-Ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=qe(v.reliableMarginRight,function(e,t){if(t)return Ae(e,{display:"inline-block"},Le,[e,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+V[r]+t]=o[r]||o[r-2]||o[0];return i}},_e.test(e)||(m.cssHooks[e+t].set=We)}),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=W.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"))?W.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=W.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 W.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||W.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=W.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=W.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))&&W.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":W.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=(W.get(u,"events")||{})[e.type]&&W.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=W.access(r,t);i||r.addEventListener(e,n,!0),W.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=W.access(r,t)-1;i?W.access(r,t,i):(r.removeEventListener(e,n,!0),W.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("*"),xt=s.createElement("a");function bt(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}xt.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:bt(mt),ajaxTransport:bt(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"),x=p.statusCode||{},b={},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,b[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)x[t]=[x[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=xt.protocol+"//"+xt.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(b,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,b,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&&(b=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)),b=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,b,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=b.state,c=b.data,u=!(f=b.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(x),x=void 0,d&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?c:f]),y.fireWith(h,[k,C]),d&&(v.trigger("ajaxComplete",[k,p]),--m.active||m.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,i){return m.isFunction(n)&&(i=i||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:i,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&(t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)},m.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ct=/%20/g,kt=/\[\]$/,St=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var o;if(m.isArray(t))m.each(t,function(t,o){n||kt.test(e)?i(e,o):Et(e+"["+("object"===r(o)&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==m.type(t))i(e,t);else for(o in t)Et(e+"["+o+"]",t[o],n,i)}m.param=function(e,t){var n,r=[],i=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){i(this.name,this.value)});else for(n in e)Et(n,e[n],t,i);return r.join("&").replace(Ct,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&_t.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Q.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Nt={0:200,1223:204},At=m.ajaxSettings.xhr();v.cors=!!At&&"withCredentials"in At,v.ajax=At=!!At,m.ajaxTransport(function(e){var t,n;if(v.cors||At&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Nt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=m("<script>
39").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var Dt=[],Lt=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||m.expando+"_"+lt++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(Lt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Lt,"$1"+r):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||m.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?m(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(r)),a&&m.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=j.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=re([e],t,i),i&&i.length&&m(i).remove(),m.merge([],r.childNodes))};var qt=m.fn.load;function Pt(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>-1&&(i=m.trim(e.slice(u)),e=e.slice(0,u)),m.isFunction(t)?(n=t,t=void 0):t&&"object"===r(t)&&(o="POST"),s.length>0&&m.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(i?m("<div>").append(m.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=m.css(e,"position"),c=m(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=m.css(e,"top"),u=m.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,m.contains(t,r)?(i=r.getBoundingClientRect(),n=Pt(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||De})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return M(this,function(e,r,i){var o=Pt(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=qe(v.pixelPosition,function(e,n){if(n)return n=Le(e,t),Ee.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return M(this,function(t,n,r){var i;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,void 0===(n=function(){return m}
39.apply(t,[]))||(e.exports=n);var Ot=i.jQuery,Ht=i.$;return m.noConflict=function(e){return i.$===m&&(i.$=Ht),e&&i.jQuery===m&&(i.jQuery=Ot),m},o||(i.jQuery=i.$=m),m})}).call(this,n(5)(e))},function(e,t){e.exports=prestashop},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.psShowHide= 40/** 41 * 2007-2018 PrestaShop 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 http://www.prestashop.com for more information. 58 * 59 * @author PrestaShop SA <[email protected]> 60 * @copyright 2007-2018 PrestaShop SA 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-2018 PrestaShop 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 http://www.prestashop.com for more information. 83 * 84 * @author PrestaShop SA <[email protected]> 85 * @copyright 2007-2018 PrestaShop SA 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-summary-items-subtotal").replaceWith(e.cart_summary_items_subtotal),(0,r.default)(".cart
88-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-2018 PrestaShop 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 http://www.prestashop.com for more information. 107 * 108 * @author PrestaShop SA <[email protected]> 109 * @copyright 2007-2018 PrestaShop SA 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)("#checkout-personal-information-step").nextAll();(0,r.default)(".js-current-step").prevAll().add(e).on("click",function(e){var t=(0,r.default)(e.target).closest(".checkout-step");t.hasClass("-unreachable")||((0,r.default)(".js-current-step, .-current").removeClass("js-current-step -current"),t.toggleClass("-current"),t.toggleClass("js-current-step")),i.default.emit("changedCheckoutStep",{event:e})}),(0,r.default)(".js-current-step:not(#checkout-personal-information-step)").nextAll().on("click",function(e){(0,r.default)(".js-current-step button.continue").click(),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-2018 PrestaShop 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 http://www.prestashop.com for more information. 131 * 132 * @author PrestaShop SA <[email protected]> 133 * @copyright 2007-2018 PrestaShop SA 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).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-2018 PrestaShop 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 http://www.prestashop.com for more information. 155 * 156 * @author PrestaShop SA <[email protected]> 157 * @copyright 2007-2018 PrestaShop SA 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-2018 PrestaShop 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 http://www.prestashop.com for more information. 180 * 181 * @author PrestaShop SA <[email protected]> 182 * @copyright 2007-2018 PrestaShop SA 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),window.scrollTo(0,0)}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-2018 PrestaShop 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 http://www.prestashop.com for more information. 204 * 205 * @author PrestaShop SA <[email protected]> 206 * @copyright 2007-2018 PrestaShop SA 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-2018 PrestaShop 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 http://www.prestashop.com for more information. 228 * 229 * @author PrestaShop SA <[email protected]> 230 * @copyright 2007-2018 PrestaShop SA 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:first"),f=a.find("form:first").serialize(),p=(0,o.psGetRequestParameter)("preview");p=null!==p?"&preview="+p:"",null!==n?e&&"keyup"===e.type&&l.val()===l.data("old-value")||(l.data("old-value",l.val()),u&&clearTimeout(u),u=setTimeout(function(){""!==f&&(s=r.default.ajax({url:n+(-1===n.indexOf("?")?"?":"&")+f+p,method:"POST",data:{ajax:1,action:"refresh",quantity_wanted:l.val()},dataType:"json",beforeSend:function(){null!==s&&s.abort()},error:function(e,t,n){"abort"!==t&&0===(0,r.default)("section#main > .ajax-error").length&&d((0,r.default)("#product-availability"),"An error occurred while processing your request")},success:function(e,n,o){var a=(0,r.default)("<div>").append(e.product_cover_thumbnails);(0,r.default)(".images-container").html()!==a.find(".images-container").html()&&(0,r.default)(".images-container").replaceWith(e.product_cover_thumbnails),(0,r.default)(".product-prices").replaceWith(e.product_prices),(0,r.default)(".product-customization").replaceWith(e.product_customization),(0,r.default)(".product-variants").replaceWith(e.product_variants),(0,r.default)(".product-discounts").replaceWith(e.product_discounts),(0,r.default)("#product-details").replaceWith(e.product_details),(typeof _MP!="undefined"?reloadMegaproduct():(0,r.default)(".product-additional-info").replaceWith(e.product_additional_info)),function(e){var t=null;(0,r.default)(e.product_add_to_cart).each(function(e,n){if((0,r.default)(n).hasClass("product-add-to-cart"))return t=(0,r.default)(n),!1}),null===t&&d((0,r.default)("#product-availability"),"An error occurred while processing your request");var n=(0,r.default)(".product-add-to-cart");c({$addToCartSnippet:t,$targetParent:n,targetSelector:".add"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:"#product-availability"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:".product-minimal-quantity"})}(e);var s=parseInt(e.product_minimal_quantity,10);isNaN(s)||"updatedProductQuantity"===t||(l.attr("min",s),l.val(s)),i.default.emit("updatedProduct",e)},complete:function(e,t){s=null,u=null}}))}.bind(s,u),1500)):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){e.product_url&&e.id_product_attribute&&window.history.replaceState({id_product_attribute:e.id_product_attribute},document.title,e.product_url)})})},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(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=37)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop}
233,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=(function(t){t&&t.__esModule}(s),function(){function t(){n(this,t)}return o(t,[{key:"init",value:function(){}}]),t}());e.default=r,t.exports=e.default},function(t,e,i){"use strict";var n=i(32);t.exports=function(t,e,i){return void 0===i?n(t,e,!1):n(t,i,!1!==e)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}i(27),i(30),i(26),i(34),i(35),i(25),i(7),i(17),i(23),i(24),i(6);var o=i(15),s=n(o),r=i(16),a=n(r),l=i(13),c=n(l),d=i(9),u=n(d),f=i(10),p=n(f),h=i(11),m=n(h),g=i(2),v=n(g),y=i(14),w=n(y),b=i(1),_=n(b),S=i(29),x=n(S);i(22),i(18),i(19),i(21),i(8);for(var T in x.default.prototype)_.default[T]=x.default.prototype[T];$(document).ready(function(){var t=$(".js-dropdown"),e=$(".js-block-toggle"),i=new m.default,n=new c.default(e),o=new p.default(t),r=new v.default,l=new w.default,d=new s.default,f=new a.default,h=new u.default;n.init(),h.init(),o.init(),i.init(),r.init(),l.init(),d.init(),f.init()}),window._BStooltip=jQuery.fn.tooltip},function(t,e){},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){r.default.each((0,r.default)(u),function(t,e){(0,r.default)(e).TouchSpin({verticalbuttons:!0,verticalupclass:"fa fa-angle-up touchspin-up",verticaldownclass:"fa fa-angle-down touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-decrease-product-quantity",min:parseInt((0,r.default)(e).attr("min"),10),max:1e6})}),m.switchErrorStat()}var s=i(0),r=n(s),a=i(1),l=n(a),c=i(3),d=n(c);l.default.cart=l.default.cart||{},l.default.cart.active_inputs=null;var u='input[name="product-quantity-spin"]',f=!1,p=!1,h="";(0,r.default)(document).ready(function(){function t(t){return"on.startupspin"===t||"on.startdownspin"===t}function e(t){return"on.startupspin"===t}function i(t){var e=t.parents(".bootstrap-touchspin").find(h);return e.is(":focus")?null:e}function n(t){var e=t.split("-"),i=void 0,n=void 0,o="";for(i=0;i<e.length;i++)n=e[i],0!==i&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),o+=n;return o}function s(o,s){if(!t(s))return{url:o.attr("href"),type:n(o.data("link-action"))};var r=i(o);if(r){return e(s)?{url:r.data("up-url"),type:"increaseProductQuantity"}:{url:r.data("down-url"),type:"decreaseProductQuantity"}}}function a(t,e,i,n){return y(),r.default.ajax({url:t,method:"POST",data:e,dataType:"json",beforeSend:function(t){g.push(t)}}).then(function(t){m.checkUpdateOpertation(t),i.val(t.quantity);var e;e=i&&i.dataset?i.dataset:t,l.default.emit("updateCart",{reason:e})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}function c(t){return{ajax:"1",qty:Math.abs(t),action:"update",op:f(t)}}function f(t){return t>0?"up":"down"}function p(t){var e=(0,r.default)(t.currentTarget),i=e.data("update-url"),n=e.attr("value"),o=e.val();if(o!=parseInt(o)||o<0||isNaN(o))return void e.val(n);var s=o-n;0!==s&&(e.attr("value",o),a(i,c(s),e))}var h=".js-cart-line-product-quantity",g=[];l.default.on("updateCart",function(){(0,r.default)(".quickview").modal("hide")}),l.default.on("updatedCart",function(){o()}),o();var v=(0,r.default)("body"),y=function(){for(var t;g.length>0;)t=g.pop(),t.abort()},w=function(t){return(0,r.default)(t.parents(".bootstrap-touchspin").find("input"))},b=function(t){t.preventDefault();var e=(0,r.default)(t.currentTarget),i=t.currentTarget.dataset,n=s(e,t.namespace),o={ajax:"1",action:"update"};void 0!==n&&(y(),r.default.ajax({url:n.url,method:"POST",data:o,dataType:"json",beforeSend:function(t){g.push(t)}}).then(function(t){m.checkUpdateOpertation(t),w(e).val(t.quantity),l.default.emit("updateCart",{reason:i})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:n.type})}))};v.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',b),v.on("touchspin.on.startdownspin",u,b),v.on("touchspin.on.startupspin",u,b),v.on("keyup",h,(0,d.default)(400,function(t){p(t)})),v.on("click",".js-discount .code",function(t){t.stopPropagation();var e=(0,r.default)(t.currentTarget);return(0,r.default)("[name=discount_name]").val(e.text()),!1})});var m={switchErrorStat:function(){var t=(0,r.default)(".checkout a");if(((0,r.default)("#notifications article.alert-danger").length||""!==h&&!f)&&t.addClass("disabled"),""!==h){var e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+h+"</li></ul></article>";(0,r.default)("#notifications").html(e),h="",p=!1}else!f&&p&&(f=!1,p=!1,(0,r.default)("#notifications").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){f=t.hasOwnProperty("hasError");var e=t.errors||"";h=e instanceof Array?e.join(" "):e,p=!0}}}
233,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){0!==(0,r.default)(".js-cancel-address").length&&(0,r.default)(".checkout-step:not(.js-current-step) .step-title").addClass("not-allowed"),(0,r.default)(".js-terms a").on("click",function(t){t.preventDefault();var e=(0,r.default)(t.target).attr("href");e&&(e+="?content_only=1",r.default.get(e,function(t){(0,r.default)("#modal").find(".modal-body").html((0,r.default)(t).find(".page-cms").contents())}).fail(function(t){l.default.emit("handleError",{eventType:"clickTerms",resp:t})})),(0,r.default)("#modal").modal("show")}),(0,r.default)(".js-gift-checkbox").on("click",function(t){(0,r.default)("#gift").collapse("toggle")})}var s=i(0),r=n(s),a=i(1),l=n(a);(0,r.default)(document).ready(function(){1===(0,r.default)("body#checkout").length&&o(),l.default.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&((0,r.default)(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown())})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=i(1),s=n(o),r=i(0),a=n(r);s.default.blockcart=s.default.blockcart||{},s.default.blockcart.showModal=function(t){function e(){return(0,a.default)("#blockcart-modal-wrap")}"modal"==iqitTheme.cart_confirmation?function(){var i=e();i.length&&(i.remove(),(0,a.default)(".modal-backdrop.show").first().remove()),(0,a.default)("body").append(t),i=function(){return(0,a.default)("#blockcart-modal")}(),i.modal("show"),i.on("hide.bs.modal",function(t){s.default.emit("updateProduct",{reason:t.currentTarget.dataset,event:t})}),i.on("shown.bs.modal",function(t){var e={dots:!0,accessibility:!1,speed:300,arrows:!1,autoplay:!0,autoplaySpeed:4500,slidesToShow:5,slidesToScroll:5,responsive:[{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:2}}]};i.find(".slick-crossselling-products").first().slick(e)})}():"notification"==iqitTheme.cart_confirmation?function(){var i=e();i.length&&i.remove(),(0,a.default)("body").append(t),i=function(){return(0,a.default)("#blockcart-notification")}(),i.addClass("ns-show"),s.default.emit("updateProduct",{}),setTimeout(function(){i.addClass("ns-hide")},3500)}():(s.default.responsive.mobile?((0,a.default)("#mobile-cart-toogle").dropdown("toggle"),"floating"==iqitTheme.cart_style&&(0,a.default)("body").animate({scrollTop:(0,a.default)("#mobile-cart-toogle").offset().top},300)):((0,a.default)("#cart-toogle").dropdown("toggle"),"floating"==iqitTheme.cart_style&&(0,a.default)("body").animate({scrollTop:(0,a.default)("#blockcart").offset().top},300)),s.default.emit("updateProduct",{}))}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(0),a=n(r),l=i(20),c=(n(l),function(){function t(){o(this,t)}return s(t,[{key:"init",value:function(){var t=(0,a.default)("#search_widget"),e=(0,a.default)("#search-widget-mobile"),i=t.find("input[type=text]"),n=e.find("input[type=text]"),o=t.attr("data-search-controller-url"),s=(0,a.default)("#header-search-btn"),r=(0,a.default)("#mobile-btn-search");this.autocomplete(t,i,o),this.autocomplete(e,n,o),s.on("shown.bs.dropdown",function(){setTimeout(function(){i.focus()},300)}),r.on("shown.bs.dropdown",function(){setTimeout(function(){(0,a.default)("#mobile-btn-search").find("input[type=text]").focus()},300)}),(0,a.default)("#fullscreen-search-backdrop").on("touchstart",function(t){t.stopPropagation(),(0,a.default)("#header-search-btn-drop").dropdown("toggle")})}},{key:"autocomplete",value:function(t,e,i){var n=void 0,o=e.data("all-text"),s=e.data("brands-text"),r=e.data("product-text"),l=e.data("blog-text");e.autoComplete({minChars:2,cache:!1,source:function(t,e){try{n.abort()}catch(t){}n=a.default.post(i,{s:t,resultsPerPage:10,ajax:!0},null,"json").then(function(t){if(Object.keys(t.brands).length){var i={type:"brands",results:t.brands};t.products.push(i)}if(Object.keys(t.blogposts).length){var n={type:"posts",results:t.blogposts};t.products.push(n)}var o={type:"all"};t.products.length>=10&&t.products.push(o),e(t.products)}).fail(e)},renderItem:function(t,e){if("all"==t.type)return'<div class="autocomplete-suggestion autocomplete-suggestion-show-all dropdown-item" data-type="all" data-val="'+e+'"><div class="row no-gutters align-items-center"><div class="col"><span class="name">'+o+' <i class="fa fa-angle-right" aria-hidden="true"></i></span></div></div></div>';if("brands"==t.type){var i="";
233return Object.keys(t.results).forEach(function(e){i+='<div class="autocomplete-suggestion dropdown-item" data-url="'+t.results[e].link+'"><div class="row no-gutters align-items-center"><div class="col col-auto col-img"><img class="img-fluid" src="'+t.results[e].image+'" /></div><div class="col pt-3 pb-3"><span class="name">'+t.results[e].name+'</span></div><div class="col col-auto col-shop pt-3 pb-3 ">'+s+"</div></div></div>"}),i}if("posts"==t.type){var n="";return Object.keys(t.results).forEach(function(e){var i="";void 0!==t.results[e].banner_thumb&&(i='<img class="img-fluid" src="'+t.results[e].banner_thumb+'" />'),n+='<div class="autocomplete-suggestion dropdown-item" data-url="'+t.results[e].url+'"><div class="row no-gutters align-items-center"><div class="col col-auto col-img"><div class="col col-auto col-img">'+i+'</div></div><div class="col pt-3 pb-3"><span class="name">'+t.results[e].title+'</span></div><div class="col col-auto col-shop pt-3 pb-3 ">'+l+"</div></div></div>"}),n}var a="";try{a='<div class="col col-auto col-img"><img class="img-fluid" src="'+t.cover.small.url+'" /></div>'}catch(t){a=""}return'<div class="autocomplete-suggestion dropdown-item" data-url="'+t.url+'"><div class="row no-gutters align-items-center">'+a+'<div class="col pt-3 pb-3"><span class="name">'+t.name+'</span><span class="product-price">'+t.price+'</span></div><div class="col col-auto col-shop pt-3 pb-3 ">'+r+"</div></div></div>"},onSelect:function(e,i,n){"all"==n.data("type")?t.find("form").submit():window.location.href=n.data("url")}})}}]),t}());e.default=c,t.exports=e.default},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(e){n(this,t),this.el=e}return o(t,[{key:"init",value:function(){this.el.find("select.link").each(function(t,e){(0,r.default)(e).on("change",function(t){window.location=(0,r.default)(this).val()})})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(){n(this,t)}return o(t,[{key:"init",value:function(){this.parentFocus(),this.togglePasswordVisibility()}},{key:"parentFocus",value:function(){(0,r.default)(".js-child-focus").focus(function(){(0,r.default)(this).closest(".js-parent-focus").addClass("focus")}),(0,r.default)(".js-child-focus").focusout(function(){(0,r.default)(this).closest(".js-parent-focus").removeClass("focus")})}},{key:"togglePasswordVisibility",value:function(){(0,r.default)('button[data-action="show-password"]').on("click",function(){var t=(0,r.default)(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),(0,r.default)(this).find("i").removeClass("fa-eye-slash").addClass("fa-eye")):(t.attr("type","password"),(0,r.default)(this).find("i").removeClass("fa-eye").addClass("fa-eye-slash"))})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),s=n(o),r=i(1),a=n(r),l=i(2),c=n(l);e.default=function(t){var e=!1,i=void 0,n=(0,s.default)("#infinity-url"),o=!1,r=function(){var r=(0,s.default)("#js-product-list").find(".products")[0],l={element:r,handler:function(r){"down"==r&&function(){var r=n.attr("href"),d=[r,r.indexOf("?")>=0?"&":"?","from-xhr"].join("");t.addClass("-infinity-loading"),i.destroy(),e=!1,s.default.get(d,null,null,"json").then(function(d){o=!1,history.pushState({},"",r);var u=(0,s.default)("#js-product-list");u.find(".products").first().append((0,s.default)(d.rendered_products).find(".products").first().html()),u.find(".pagination").first().replaceWith((0,s.default)(d.rendered_products).find(".pagination").first()),(0,s.default)("#js-product-list-bottom").replaceWith(d.rendered_products_bottom),(new c.default).init(),t.removeClass("-infinity-loading"),a.default.emit("afterUpdateProductList");var f=(0,s.default)(d.rendered_products).find("#infinity-url");f.length?(n=f,i=new Waypoint(l),e=!0):e&&i.destroy()})}()},offset:"bottom-in-view"};n.length&&(i=new Waypoint(l),e=!0)};r(),a.default.on("afterUpdateProductListFacets",function(){e&&i.destroy(),n=(0,s.default)("#infinity-url"),r()})},t.exports=e.default}
233,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(e){n(this,t),this.el=e}return o(t,[{key:"init",value:function(){this.el.find(".block-title").on("click",function(t,e){(0,r.default)(this).parent().toggleClass("_toggled")})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(){n(this,t)}return o(t,[{key:"init",value:function(){var t=void 0,e=void 0,i=void 0,n=(0,r.default)("#wrapper");n.on("show.bs.modal","#product-modal",function(e){var i=(0,r.default)("#product-images-large .slick-current img").first().data("image-large-src");if((0,r.default)(".js-modal-product-cover-easyzoom").first().attr("href",i),(0,r.default)(".js-modal-product-cover").first().attr("src",i),"inner"==iqitTheme.pp_zoom||"modalzoom"==iqitTheme.pp_zoom){var o=(0,r.default)(".easyzoom-modal").easyZoom();t=o.data("easyZoom")}else n.on("click",".js-modal-product-cover-easyzoom",function(t){t.preventDefault()})}),n.on("shown.bs.modal","#product-modal",function(t){i=(0,r.default)("#modal-product-thumbs"),e=i.slick({slidesToShow:10,slidesToScroll:10,dots:!1,arrows:!0,focusOnSelect:!0,responsive:[{breakpoint:575,settings:{slidesToShow:6,slidesToScroll:6}},{breakpoint:420,settings:{slidesToShow:5,slidesToScroll:5}}]})}),n.on("hidden.bs.modal","#product-modal",function(e){"inner"!=iqitTheme.pp_zoom&&"modalzoom"!=iqitTheme.pp_zoom||t.teardown(),i.slick("unslick")}),(0,r.default)("body").on("click",".js-modal-thumb",function(e){"inner"==iqitTheme.pp_zoom||"modalzoom"==iqitTheme.pp_zoom?t.swap((0,r.default)(e.target).data("image-large-src"),(0,r.default)(e.target).data("image-large-src")):(0,r.default)(".js-modal-product-cover").attr("src",(0,r.default)(e.target).data("image-large-src"))})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(0),a=n(r),l=i(3),c=n(l),d=function(){function t(){o(this,t)}return s(t,[{key:"init",value:function(){this.backToTop(),this.productCarousels(),this.otherCarousels(),iqitTheme.op_preloader&&this.pagePreloader()}},{key:"backToTop",value:function(){var t=(0,a.default)("#back-to-top");(0,a.default)(window).scroll((0,c.default)(300,function(){(0,a.default)(this).scrollTop()>300?t.addClass("-back-to-top-visible"):t.stop().removeClass("-back-to-top-visible")})),t.on("click",function(t){t.preventDefault(),(0,a.default)("body, html").animate({scrollTop:0},300)})}},{key:"productCarousels",value:function(){var t=(0,a.default)(".slick-default-carousel"),e={dots:!0,accessibility:!1,speed:300,autoplay:iqitTheme.pl_crsl_autoplay,autoplaySpeed:4500,slidesToShow:iqitTheme.pl_slider_ld,slidesToScroll:iqitTheme.pl_slider_ld,infinite:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:iqitTheme.pl_slider_d,slidesToScroll:iqitTheme.pl_slider_d}},{breakpoint:768,settings:{slidesToShow:iqitTheme.pl_slider_t,slidesToScroll:iqitTheme.pl_slider_t}},{breakpoint:576,settings:{slidesToShow:iqitTheme.pl_slider_p,slidesToScroll:iqitTheme.pl_slider_p}}]};t.each(function(){var t=(0,a.default)(this),i=a.default.extend({},e,t.data("slider_options"));t.slick(i)})}},{key:"otherCarousels",value:function(){(0,a.default)(".js-iqithtmlandbanners-block-banner-slider").slick({arrows:!1,autoplay:!0,autoplaySpeed:5e3,dots:!0})}},{key:"pagePreloader",value:function(){(0,a.default)(window).load(function(){(0,a.default)("#page-preloader").fadeOut("slow",function(){(0,a.default)(this).remove()}),(0,a.default)("#main-page-content").removeAttr("style")})}}]),t}();e.default=d,t.exports=e.default}
233,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(){n(this,t)}return o(t,[{key:"init",value:function(){if(6!=iqitTheme.h_layout&&7!=iqitTheme.h_layout&&("menu"!=iqitTheme.h_sticky&&"header"!=iqitTheme.h_sticky||this.stickyHeader(iqitTheme.h_sticky)),iqitTheme.f_fixed){!!window.MSInputMethodContext&&!!document.documentMode||(0,r.default)("#footer").footerReveal({shadow:!1,zIndex:-1})}"ontouchstart"in document.documentElement&&(0,r.default)("body").addClass("touch-device")}},{key:"stickyHeader",value:function(t){var e=void 0,i=void 0,n=void 0,o=void 0,s=void 0;if("menu"==t?(e=(0,r.default)("#iqitmegamenu-wrapper"),i=(0,r.default)("#sticky-cart-wrapper"),n=(0,r.default)("#ps-shoppingcart-wrapper"),o=(0,r.default)("#ps-shoppingcart"),s=function(t){"down"==t?i.append(o):n.append(o)}):(e=(0,r.default)("#desktop-header"),s=function(t){}),e.length){new Waypoint.Sticky({element:e[0],wrapper:'<div class="sticky-desktop-wrapper" />',stuckClass:"stuck stuck-"+t,handler:s,offset:0})}}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(){(0,r.default)("#order-return-form table thead input[type=checkbox]").on("click",function(){var t=(0,r.default)(this).prop("checked");(0,r.default)("#order-return-form table tbody input[type=checkbox]").each(function(e,i){(0,r.default)(i).prop("checked",t)})})}function o(){(0,r.default)("body#order-detail")&&n()}var s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s);(0,r.default)(document).ready(o)},function(t,e,i){"use strict";!function(t){var e=0,i=function(e,i){this.options=i,this.$elementFilestyle=[],this.$element=t(e)};i.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(".icon-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;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var e=this.pushNameFiles();e.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+e.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;
233this.$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 i=this,n="",o=i.$element.attr("id"),s="";""!==o&&o||(o="filestyle-"+e,i.$element.attr({id:o}),e++),s='<span class="group-span-filestyle '+(i.options.input?"input-group-btn":"")+'"><label for="'+o+'" class="btn '+i.options.buttonName+" "+("nr"==i.options.size?"":"btn-"+i.options.size)+'" '+(i.options.disabled?'disabled="true"':"")+">"+i.htmlIcon()+'<span class="buttonText">'+i.options.buttonText+"</span></label></span>",n=i.options.buttonBefore?s+i.htmlInput():i.htmlInput()+s,i.$elementFilestyle=t('<div class="bootstrap-filestyle input-group">'+n+"</div>"),i.$elementFilestyle.find(".group-span-filestyle").attr("tabindex","0").keypress(function(t){if(13===t.keyCode||32===t.charCode)return i.$elementFilestyle.find("label").click(),!1}),i.$element.css({position:"absolute",clip:"rect(0px 0px 0px 0px)"}).attr("tabindex","-1").after(i.$elementFilestyle),i.options.disabled&&i.$element.attr("disabled","true"),i.$element.change(function(){var t=i.pushNameFiles();0==i.options.input&&i.options.badge?0==i.$elementFilestyle.find(".badge").length?i.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"):0==t.length?i.$elementFilestyle.find(".badge").remove():i.$elementFilestyle.find(".badge").html(t.length):i.$elementFilestyle.find(".badge").remove()}
233),window.navigator.userAgent.search(/firefox/i)>-1&&i.$elementFilestyle.find("label").click(function(){return i.$element.click(),!1})}};var n=t.fn.filestyle;t.fn.filestyle=function(e,n){var o="",s=this.each(function(){if("file"===t(this).attr("type")){var s=t(this),r=s.data("filestyle"),a=t.extend({},t.fn.filestyle.defaults,e,"object"==typeof e&&e);r||(s.data("filestyle",r=new i(this,a)),r.constructor()),"string"==typeof e&&(o=r[e](n))}});return void 0!==typeof o?o:s},t.fn.filestyle.defaults={buttonText:"Choose file",iconName:"fa fa-folder-open",buttonName:"btn-default",size:"nr",input:!0,badge:!0,icon:!0,buttonBefore:!1,disabled:!1,placeholder:""},t.fn.filestyle.noConflict=function(){return t.fn.filestyle=n,this},t(function(){t(".filestyle").each(function(){var e=t(this),i={input:"false"!==e.attr("data-input"),icon:"false"!==e.attr("data-icon"),buttonBefore:"true"===e.attr("data-buttonBefore"),disabled:"true"===e.attr("data-disabled"),size:e.attr("data-size"),buttonText:e.attr("data-buttonText"),buttonName:e.attr("data-buttonName"),iconName:e.attr("data-iconName"),badge:"false"!==e.attr("data-badge"),placeholder:e.attr("data-placeholder")};e.filestyle(i)})})}(window.jQuery)},function(t,e,i){"use strict";!function(t){t.fn.footerReveal=function(e){var i=t(this),n=i.prev(),o=t(window),s=t.extend({shadow:!0,shadowOpacity:.8,zIndex:-100},e);return t.extend(!0,{},s,e),i.outerHeight()<=o.outerHeight()&&i.offset().top>=o.outerHeight()&&(i.css({"z-index":s.zIndex,position:"fixed",bottom:0}),s.shadow&&n.css({"-moz-box-shadow":"0 20px 30px -20px rgba(0,0,0,"+s.shadowOpacity+")","-webkit-box-shadow":"0 20px 30px -20px rgba(0,0,0,"+s.shadowOpacity+")","box-shadow":"0 20px 30px -20px rgba(0,0,0,"+s.shadowOpacity+")"}),o.on("load resize footerRevealResize",function(){i.css({width:n.outerWidth()}),n.css({"margin-bottom":i.outerHeight()})})),this}}(jQuery)},function(t,e,i){"use strict";!function(t){t.fn.autoComplete=function(e){var i=t.extend({},t.fn.autoComplete.defaults,e);return"string"==typeof e?(this.each(function(){var i=t(this);"destroy"==e&&(i.off("blur.autocomplete focus.autocomplete keydown.autocomplete keyup.autocomplete"),i.data("autocomplete")?i.attr("autocomplete",i.data("autocomplete")):i.removeAttr("autocomplete"),t(i.data("sc")).remove(),i.removeData("sc").removeData("autocomplete"))}),this):this.each(function(){function e(t){var e=n.val();if(n.cache[e]=t,t.length&&e.length>=i.minChars){for(var o="",s=0;s<t.length;s++)o+=i.renderItem(t[s],e);n.sc.html(o),n.updateSC(0)}else n.sc.hide()}var n=t(this);n.sc=t('<div class="autocomplete-suggestions '+i.menuClass+'"></div>'),n.data("sc",n.sc).data("autocomplete",n.attr("autocomplete")),n.attr("autocomplete","off"),n.cache={},n.last_val="",n.updateSC=function(t,e){n.sc.show()},n.sc.insertAfter(n.parent()),n.sc.on("mouseleave",".autocomplete-suggestion",function(){t(".autocomplete-suggestion.selected").removeClass("selected")}),n.sc.on("mouseenter",".autocomplete-suggestion",function(){t(".autocomplete-suggestion.selected").removeClass("selected"),t(this).addClass("selected")}),n.sc.on("mousedown click",".autocomplete-suggestion",function(e){var o=t(this),s=o.data("val");return(s||o.hasClass("autocomplete-suggestion"))&&(n.val(s),i.onSelect(e,s,o),n.sc.hide()),!1}),n.on("blur.autocomplete",function(){n.sc.hide()}),i.minChars||n.on("focus.autocomplete",function(){n.last_val="\n",n.trigger("keyup.autocomplete")}
233),n.on("keydown.autocomplete",function(e){if((40==e.which||38==e.which)&&n.sc.html()){var o,s=t(".autocomplete-suggestion.selected",n.sc);return s.length?(o=40==e.which?s.next(".autocomplete-suggestion"):s.prev(".autocomplete-suggestion"),o.length?(s.removeClass("selected"),n.val(o.addClass("selected").data("val"))):(s.removeClass("selected"),n.val(n.last_val),o=0)):(o=40==e.which?t(".autocomplete-suggestion",n.sc).first():t(".autocomplete-suggestion",n.sc).last(),n.val(o.addClass("selected").data("val"))),n.updateSC(0,o),!1}if(27==e.which)n.val(n.last_val).sc.hide();else if(13==e.which||9==e.which){var s=t(".autocomplete-suggestion.selected",n.sc);s.length&&n.sc.is(":visible")&&(i.onSelect(e,s.data("val"),s),setTimeout(function(){n.sc.hide()},20))}}),n.on("keyup.autocomplete",function(o){if(!~t.inArray(o.which,[13,27,35,36,37,38,39,40])){var s=n.val();if(s.length>=i.minChars){if(s!=n.last_val){if(n.last_val=s,clearTimeout(n.timer),i.cache){if(s in n.cache)return void e(n.cache[s]);for(var r=1;r<s.length-i.minChars;r++){var a=s.slice(0,s.length-r);if(a in n.cache&&!n.cache[a].length)return void e([])}}n.timer=setTimeout(function(){i.source(s,e)},i.delay)}}else n.last_val=s,n.sc.hide()}})})},t.fn.autoComplete.defaults={source:0,minChars:3,delay:150,cache:1,menuClass:"",renderItem:function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var i=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t+'">'+t.replace(i,"<b>$1</b>")+"</div>"},onSelect:function(t,e,i){}}}(jQuery)},function(t,e,i){"use strict";!function(t,e,i){function n(e,n){this.$element=t(e),this.options=t.extend({},r,n),this.options.scrollHeight!==i&&(this.options.height=this.$element.height()),this._defaults=r,this._name=o,this.init()}var o="stickyUpHeader",s=(e.document,t(e)),r={showClasses:"visible-stuck-up visible-stuck-up-scroll",temporaryHideClasses:"visible-stuck-up",hideClasses:"visible-stuck-up-scroll",throttleTimeout:500};n.prototype.init=function(){var t=0,e=this;s.on("scroll",e.throttle(this.options.throttleTimeout,function(){var i=s.scrollTop();i<=0?e.hide():i<t?i>400?e.show():e.hide():e.hideTemp(),t=i}))},n.prototype.throttle=function(t,e){var i,n;return function(){var o=this,s=arguments,r=+new Date;i&&r<i+t?(clearTimeout(n),n=setTimeout(function(){i=r,e.apply(o,s)},t)):(i=r,e.apply(o,s))}},n.prototype.hide=function(){return this.$element.removeClass(this.options.hideClasses)},n.prototype.hideTemp=function(){return this.$element.removeClass(this.options.temporaryHideClasses)},n.prototype.show=function(){return this.$element.addClass(this.options.showClasses)},t.fn[o]=function(e){return this.each(function(){t.data(this,o)||t.data(this,o,new n(this,e))})}}(jQuery,window)},function(t,e,i){"use strict";var n,o,s;!function(r){o=[i(0)],n=r,void 0!==(s="function"==typeof n?n.apply(e,o):n)&&(t.exports=s)}(function(t){var e=window.Slick||{};e=function(){function e(e,n){var o,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!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},s.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,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
233sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(e),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,o=t(e).data("slick")||{},s.options=t.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.instanceUid=i++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}var i=0;return e}(),e.prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===n?t(e).prependTo(o.$slideTrack):t(e).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(e,i){t(i).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,n=i.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.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.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 4,341 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))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,s,r,a=this;if(n=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>0){for(r=a.options.slidesPerRow*a.options.rows,o=Math.ceil(s.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){o=null;for(n in r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[n]&&(o=r.breakpoints[n]):s>r.breakpoints[n]&&(o=r.breakpoints[n]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=o),e||!1===a||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,o,s,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),s=r.slideCount%r.options.slidesToScroll!=0,n=s?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":o=0===n?r.options.slidesToScroll:r.o
233ptions.slidesToShow-n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,i);break;case"next":o=0===n?r.options.slidesToScroll:n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(e=this.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
233slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.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))},e.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}))},e.prototype.filterSlides=e.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())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(i){var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&n.is(":focus")&&(e.focussed=!0,e.autoPlay())},0)}).on("blur.slick","*",function(i){t(this),e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?o=-1.5:1===s.options.slidesToShow&&(o=-2)),r=i*s.options.slidesToShow*o),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*i*-1+r,!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n,o=this;return n=!0===o.options.centerMode?Math.floor(o.$list.width()/2):0,i=-1*o.swipeLeft+n,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(n,s){var r,a,l;if(r=t(s).outerWidth(),a=s.offsetLeft,!0!==o.options.centerMode&&(a+=r/2),l=a+r,i<l)return e=s,!1}),Math.abs(t(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
vendor: 2,973 bytes, line 233
233parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter(function(t){return t>=0&&t<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){var o=n.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==o){var s="slick-slide-control"+e.instanceUid+o;t("#"+s).length&&t(this).attr({"aria-describedby":s})}}),e.$dots.attr("role","tablist").find("li").each(function(o){var s=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+s,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,s=o+e.options.slidesToShow;o<s;o++)e.options.focusOnChange?e.$slides.eq(o).attr({tabindex:"0"}):e.$slides.eq(o).removeAttr("tabindex");e.activateADA()},e.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),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
233,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.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()},e.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"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0}
vendor: 5,122 bytes, line 233
233,100,function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,i])})},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i])},s.src=i})}var i,n,o,s,r=this;if(!0===r.options.centerMode?!0===r.options.infinite?(o=r.currentSlide+(r.options.slidesToShow/2+1),s=o+r.options.slidesToShow+2):(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),s=r.options.slidesToShow/2+1+2+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,s=Math.ceil(o+r.options.slidesToShow),!0===r.options.fade&&(o>0&&o--,s<=r.slideCount&&s++)),i=r.$slider.find(".slick-slide").slice(o,s),"anticipated"===r.options.lazyLoad)for(var a=o-1,l=s,c=r.$slider.find(".slick-slide"),d=0;d<r.options.slidesToScroll;d++)a<0&&(a=r.slideCount-1),i=i.add(c.eq(a)),i=i.add(c.eq(l)),a--,l++;e(i),r.slideCount<=r.options.slidesToShow?(n=r.$slider.find(".slick-slide"),e(n)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(n=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(n)):0===r.currentSlide&&(n=r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow),e(n))},e.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()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;if(!i.unslicked&&(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange))){t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,s,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){o&&(i.attr("srcset",o),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,s=o.options.responsive||null;if("array"===t.type(s)&&s.length){o.respondTo=o.options.respondTo||"window";for(e in s)if(n=o.breakpoints.length-1,s.hasOwnProperty(e)){for(i=s[e].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=s[e].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))}
233,e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=!0===e?0:n.slideCount-1):t=!0===e?--t:t,!(n.slideCount<1||t<0||t>n.slideCount-1)&&(n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.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=Math.ceil(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)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,o){e=i.slideWidth*n*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}
233):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,s,r=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)r.options[n]=o;else if("multiple"===s)t.each(n,function(t,e){r.options[t]=e});else if("responsive"===s)for(i in o)if("array"!==t.type(r.options.responsive))r.options.responsive=[o[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===o[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(o[i])}a&&(r.unload(),r.reinit())},e.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])},e.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},e.prototype.setSlideClasses=function(t){var e,i,n,o,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode){var r=s.options.slidesToShow%2==0?1:0;e=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(s.options.slidesToShow+s.slideCount+1).addClass("slick-center"):t===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=s.slideCount%s.options.slidesToShow,n=!0===s.options.infinite?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));return o||(o=0),i.slideCount<=i.options.slidesToShow?void i.slideHandler(o,!1,!0):void i.slideHandler(o)}
233,e.prototype.slideHandler=function(t,e,i){var n,o,s,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))return!1===e&&c.asNavFor(t),!1===c.options.infinite&&t<0&&(c.currentSlide=0,c.updateArrows()),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)?void(!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n))):!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),s=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=c.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),!0===c.options.fade?(!0!==i?(c.fadeSlideOut(s),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight()):void(!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)))},e.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")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===o.options.rtl?"left":"right":n<=360&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.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)}},e.prototype.swipeMove=function(t){var e,i,n,o,s,r,a=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(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,void(i.dragging=!0))},e.prototype.unfilterSlides=e.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())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
233,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.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.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):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")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;t<r;t++)if("object"==typeof o||void 0===o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,s),void 0!==i)return i;return n}})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){(0,r.default)("#search_filters").replaceWith(t.rendered_facets),(0,r.default)("#js-active-search-filters").replaceWith(t.rendered_active_filters),(0,r.default)("#js-product-list-top").replaceWith(t.rendered_products_top),(0,r.default)("#js-product-list").replaceWith(t.rendered_products),(0,r.default)("#js-product-list-bottom").replaceWith(t.rendered_products_bottom),t.rendered_products_header&&(0,r.default)("#js-product-list-header").replaceWith(t.rendered_products_header),(new d.default).init()}var s=i(0),r=n(s),a=i(1),l=n(a),c=i(2),d=n(c),u=i(33),f=n(u),p=i(12),h=n(p);(0,r.default)(document).ready(function(){var t=(0,r.default)("body"),e=(0,r.default)("#products");l.default.iqitLazyLoad=new f.default({elements_selector:".js-lazy-product-image",threshold:600,class_loading:"lazy-product-loading"}),iqitTheme.pl_infinity&&(0,h.default)(e),(0,r.default)(document).ready(function(){t.on("click",".js-quick-view-iqit",function(t){var e=(0,r.default)(t.target).closest(".js-product-miniature");l.default.emit("clickQuickView",{miniature:e,dataset:e.data()}),t.preventDefault()}),t.on("change",".input-qty",function(){var t=parseInt(this.min);t>parseInt(this.value)&&(this.value=t)})}),l.default.on("clickQuickView",function(e){var n={action:"quickview",id_product:e.dataset.idProduct,id_product_attribute:e.dataset.idProductAttribute},o=e.miniature.parent().prev().children(".js-product-miniature").first(),s=e.miniature.parent().next().children(".js-product-miniature").first();r.default.post(l.default.urls.pages.product,n,null,"json").then(function(e){var n=(0,r.default)(".modal.quickview").first();n.length?i(t,e,o,s,n):i(t,e,o,s,!1)}).fail(function(t){l.default.emit("handleError",{eventType:"clickQuickView",resp:t})})});var i=function(t,e,i,n,o){var s=function(t){var e=!1;if("inner"==iqitTheme.pp_zoom&&(e=!0),f=t.find("#product-images-large"),f.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,fade:e,lazyLoad:"ondemand"}),"inner"==iqitTheme.pp_zoom){t.find(".easyzoom-product").easyZoom()}else t.find(".js-easyzoom-trigger").on("click",function(t){t.preventDefault()});(0,r.default)(".modal-backdrop.show").first().addClass("backdrop-second"),l.default.emit("quickViewShown",{modal:t})};o?o.find("#quickview-modal-product-content").replaceWith((0,r.default)(e.quickview_html).find("#quickview-modal-product-content")):t.append(e.quickview_html);var a=(0,r.default)("#quickview-modal"),c=(0,r.default)("#js-quickview-prev-btn"),d=(0,r.default)("#js-quickview-next-btn");i.length||c.hide(),n.length||d.hide(),c.on("click",function(t){var e=i;l.default.emit("clickQuickView",{miniature:e,dataset:e.data()}),t.preventDefault()}),d.on("click",function(t){var e=n;l.default.emit("clickQuickView",{miniature:e,dataset:e.data()}),t.preventDefault()}),o?s(a):(a.modal("show"),a.on("shown.bs.modal",function(){s(a)}),a.on("hide.bs.modal",function(){a.remove(),(0,r.default)("#iqitsizecharts-modal").remove()}));var u=(0,r.default)("#iqitsizecharts-modal"),f=void 0;a.find("#quantity_wanted").TouchSpin({verticalbuttons:!0,verticalupclass:"fa fa-angle-up touchspin-up",verticaldownclass:"fa fa-angle-down touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),u.on("show.bs.modal",function(){u.detach(),u.appendTo("body"),(0,r.default)(this).addClass("fv-modal-stack"),a.addClass("quickview-second-modal")})};t.on("click","#search_filter_toggler",function(){(0,r.default)("#search_filters_wrapper").removeClass("hidden-sm-down"),(0,r.default)("#content-wrapper").addClass("hidden-sm-down"),(0,r.default)("#footer").addClass("hidden-sm-down"),(0,r.default)("#left-column, #right-column").addClass("-only-facet-search")}),t.on("click","#search_center_filter_toggler",function(){(0,r.default)("#facets_search_center").slideToggle("100")}),(0,r.default)("#search_filter_controls .ok, #search_filter_controls .js-search-filters-clear-all").on("click",function(){(0,r.default)("#search_filters_wrapper").addClass("hidden-sm-down"),(0,r.default)("#content-wrapper").removeClass("hidden-sm-down"),(0,r.default)("#footer").removeClass("hidden-sm-down"),(0,r.default)("#left-column, #right-column").removeClass("-only-facet-search"),l.default.iqitLazyLoad.update()});var n=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,r.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search U
233RL");return(0,r.default)(t.target).parent()[0].dataset.searchUrl};t.on("change","#search_filters input[data-search-url]",function(t){l.default.emit("updateFacets",n(t))}),t.on("click",".js-search-filters-clear-all",function(t){l.default.emit("updateFacets",n(t))}),t.on("click",".js-search-link",function(t){t.preventDefault(),l.default.emit("updateFacets",(0,r.default)(t.target).closest("a").get(0).href),"backToTop"==(0,r.default)(t.target).data("afterClick")&&l.default.emit("updateFacetsBackToTop",(0,r.default)(t.target).closest("a").get(0).href)}),t.on("change","#search_filters select",function(t){var e=(0,r.default)(t.target).closest("form");l.default.emit("updateFacets","?"+e.serialize())}),t.on("click",'[data-button-action="change-list-view"]',function(t){}),l.default.on("updateFacets",function(){e.addClass("-facets-loading")}),l.default.on("updateFacetsBackToTop",function(){window.scrollTo(0,0)}),l.default.on("updateProductList",function(t){o(t),l.default.emit("afterUpdateProductListFacets"),l.default.emit("afterUpdateProductList")}),l.default.on("afterUpdateProductList",function(t){"ontouchstart"in document.documentElement||((0,r.default)("body > .tooltip.bs-tooltip-top").remove(),(0,r.default)(function(){(0,r.default)('[data-toggle="tooltip"]').tooltip()})),l.default.iqitLazyLoad.update(),e.removeClass("-facets-loading")})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=i(0),s=n(o);i(28);var r=i(1),a=n(r);(0,s.default)(document).ready(function(){function t(){var t=!1;if("inner"==iqitTheme.pp_zoom&&(t=!0),(0,s.default)("#product-images-large").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,infinite:!0,fade:t,lazyLoad:"ondemand",asNavFor:"#product-images-thumbs"}),"inner"==iqitTheme.pp_zoom){(0,s.default)(".easyzoom-product").easyZoom()}else(0,s.default)(".js-easyzoom-trigger").on("click",function(t){t.preventDefault()})}function e(){var t=!1,e=5,i="ondemand",n=[];"left"!=iqitTheme.pp_thumbs&&"leftd"!=iqitTheme.pp_thumbs||(t=!0,e=4,i="progressive"),"leftd"==iqitTheme.pp_thumbs&&(n=[{breakpoint:769,settings:{slidesToShow:5,slidesToScroll:5,vertical:!1,verticalSwiping:!1}}]),(0,s.default)("#product-images-thumbs").slick({slidesToShow:e,slidesToScroll:e,infinite:!1,asNavFor:"#product-images-large",dots:!1,arrows:!0,vertical:t,verticalSwiping:t,focusOnSelect:!0,lazyLoad:i,responsive:n})}function i(){var t=(0,s.default)(".js-file-input");t.filestyle({buttonText:t.data("buttontext")}),t.on("change",function(t){var e=void 0,i=void 0;(e=(0,s.default)(t.currentTarget)[0])&&(i=e.files[0])&&(0,s.default)(e).prev().text(i.name)})}function n(){"ontouchstart"in document.documentElement||(0,s.default)(function(){(0,s.default)('[data-toggle="tooltip"]').tooltip()})}!function(){var t=(0,s.default)("#quantity_wanted");t.TouchSpin({verticalbuttons:!0,verticalupclass:"fa fa-angle-up touchspin-up",verticaldownclass:"fa fa-angle-down touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(t.attr("min"),10),max:1e6}),(0,s.default)("body").on("input touchspin.on.stopspin","#quantity_wanted",function(t){a.default.emit("updateProduct",{eventType:"updatedProductQuantity",event:t})})}(),i(),t(),e(),n(),function(){(0,s.default)("#product-accessories-sidebar").slick({slidesToShow:1,slidesToScroll:1,rows:5,dots:!0,arrows:!1,accessibility:!1,speed:300,autoplay:iqitTheme.pl_crsl_autoplay,autoplaySpeed:4500})}();var o=(0,s.default)("#main");"tabha"==iqitTheme.pp_tabs&&function(t,e){if((0,s.default)(window).width()<e){var i;!function(){var e=void 0,n=void 0,o=void 0;i="",e=(0,s.default)(t+" li").toArray(),o=(0,s.default)("#product-infos-tabs-content"),n=o.find(".tab-pane").toArray(),i='<div class="card">',jQuery.each(e,function(t,e){i+='<div class="nav-tabs" role="tab" >',i+=t>0?'<a class="nav-link collapsed" id="ma-nav-link-'+t+'" data-toggle="collapse" data-parent="#product-infos-accordion-mobile" href="#product-infos-accordion-mobile-'+t+'">':'<a class="nav-link" id="ma-nav-link-'+t+'" data-toggle="collapse" data-parent="#product-infos-accordion-mobile" href="#product-infos-accordion-mobile-'+t+'">',i+=e.innerText+'<i class="fa fa-angle-down float-right angle-down" aria-hidden="true"></i><i class="fa fa-angle-up float-right angle-up" aria-hidden="true"></i></a>',i+="</div>",i+=t>0?'<div id="product-infos-accordion-mobile-'+t+'" class="collapse tab-content" role="tabpanel">':'<div id="product-infos-accordion-mobile-'+t+'" class="collapse tab-content show" role="tabpanel">',i+='<div id="ma-'+n[t].id+'" class=""></div>',i+="</div>"}
233),i+="</div></div>",(0,s.default)("#product-infos-accordion-mobile").html(i),jQuery.each(e,function(t,e){(0,s.default)(n[t]).appendTo("#ma-"+n[t].id)}),a.default.iqitLazyLoad.update(),(0,s.default)(t).remove(),o.remove()}()}}("#product-infos-tabs",576),(0,s.default)("body").on("click",'[data-button-action="add-to-cart"]',function(t){t.preventDefault(),(0,s.default)(t.target).addClass("processing-add")}),a.default.on("updateCart",function(t){(0,s.default)(".add-to-cart.processing-add").removeClass("processing-add")}),a.default.on("updateProduct",function(t){void 0!==a.default.page.page_name&&"product"==a.default.page.page_name&&o.addClass("-combinations-loading")}),a.default.on("updatedProduct",function(r){if(i(),n(),t(),r&&r.product_minimal_quantity){var a=parseInt(r.product_minimal_quantity,10);(0,s.default)("#quantity_wanted").trigger("touchspin.updatesettings",{min:a})}e(),(0,s.default)((0,s.default)(".tabs .nav-link.active").attr("href")).addClass("active").removeClass("fade"),(0,s.default)(".js-product-images-modal").replaceWith(r.product_images_modal),o.removeClass("-combinations-loading")})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function s(){u.default.responsive.mobile?(0,c.default)("*[id^='_desktop_']").each(function(t,e){var i=(0,c.default)("#"+e.id.replace("_desktop_","_mobile_"));i&&o((0,c.default)(e),i)}):(0,c.default)("*[id^='_mobile_']").each(function(t,e){var i=(0,c.default)("#"+e.id.replace("_mobile_","_desktop_"));i&&o((0,c.default)(e),i)}),u.default.emit("responsive update",{mobile:u.default.responsive.mobile})}function r(){u.default.responsive.mobile&&(0,c.default)("*[id^='_desktop_blockcart']").each(function(t,e){var i=(0,c.default)("#"+e.id.replace("_desktop_blockcart","_mobile_blockcart"));i&&o((0,c.default)(e),i)})}function a(t){var e=(0,c.default)("#mobile-header-sticky");if("up"==t&&e.stickyUpHeader(),e.length){new Waypoint.Sticky({element:e[0],wrapper:'<div class="sticky-mobile-wrapper" />',stuckClass:"stuck stuck-"+t})}}var l=i(0),c=n(l),d=i(1),u=n(d);u.default.responsive=u.default.responsive||{},u.default.responsive.current_width=window.innerWidth,u.default.responsive.min_width=991,u.default.responsive.mobile=u.default.responsive.current_width<=u.default.responsive.min_width,(0,c.default)(window).on("resize",function(){var t=u.default.responsive.current_width,e=u.default.responsive.min_width,i=window.innerWidth,n=t>=e&&i<e||t<e&&i>=e;u.default.responsive.current_width=i,u.default.responsive.mobile=u.default.responsive.current_width<=u.default.responsive.min_width,n&&s()}),(0,c.default)(document).ready(function(){1==iqitTheme.rm_breakpoint&&(u.default.responsive.min_width=5e3,u.default.responsive.mobile=!0),u.default.responsive.mobile&&s(),u.default.on("responsive updateAjax",function(t){r()}),"up"!=iqitTheme.rm_sticky&&"down"!=iqitTheme.rm_sticky||a(iqitTheme.rm_sticky)})},function(t,e,i){"use strict";!function(t){function e(t,e){return t+".touchspin_"+e}function i(i,n){return t.map(i,function(t){return e(t,n)})}var n=0;t.fn.TouchSpin=function(e){if("destroy"===e)return void this.each(function(){var e=t(this),n=e.data();t(document).off(i(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],n.spinnerid).join(" "))});var o={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:"+"},s={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(){function r(){""!==C.initval&&""===L.val()&&L.val(C.initval)}function a(t){d(t),w();var e=A.input.val();""!==e&&(e=Number(A.input.val()),A.input.val(e.toFixed(C.decimals)))}function l(){C=t.extend({},o,P,c(),e)}function c(){var e={};return t.each(s,function(t,i){var n="bts-"+i;L.is("[data-"+n+"]")&&(e[t]=L.data(n))}),e}function d(e){C=t.extend({},C,e)}function u(){var t=L.val(),e=L.parent();""!==t&&(t=Number(t).toFixed(C.decimals)),L.data("initvalue",t).val(t),L.addClass("form-control"),e.hasClass("input-group")?f(e):p()}function f(e){e.addClass("bootstrap-touchspin");var i,n,o=L.prev(),s=L.next(),r='<span class="input-group-addon bootstrap-touchspin-prefix">'+C.prefix+"</span>",a='<span class="input-group-addon bootstrap-touchspin-postfix">'+C.postfix+"</span>";o.hasClass("input-group-btn")?(i='<button class="'+C.buttondown_class+' bootstrap-touchspin-down" type="button">'+C.buttondown_txt+"</button>",o.append(i)):(i='<span class="input-group-btn"><button class="'+C.buttondown_class+' bootstrap-touchspin-down" type="button">'+C.buttondown_txt+"</button></span>",t(i).insertBefore(L)),s.hasClass("input-group-btn")?(n='<button class="'+C.buttonup_class+' bootstrap-touchspin-up" type="button">'+C.buttonup_txt+"</button>",s.prepend(n)):(n='<span class="input-group-btn"><button class="'+C.buttonup_class+' bootstrap-touchspin-up" type="button">'+C.buttonup_txt+"</button></span>",t(n).insertAfter(L)),t(r).insertBefore(L),t(a).insertAfter(L),E=e}function p(){var e;e=C.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+C.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+C.postfix+'</span><span class="input-group-btn-vertical"><button class="'+C.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+C.verticalupclass+'"></i></button><button class="'+C.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+C.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+C.buttondown_class+' bootstrap-touchspin-down" type="button">'+C.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+C.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+C.postfix+'</span><span class="input-group-btn"><button class="'+C.buttonup_class+' bootstrap-touchspin-up" type="button">'+C.buttonup_txt+"</button></span></div>",E=t(e).insertBefore(L),t(".bootstrap-touchspin-prefix",E).after(L),L.hasClass("input-sm")?E.addClass("input-group-sm"):L.hasClass("input-lg")&&E.addClass("input-group-lg")}function h(){A={down:t(".bootstrap-touchspin-down",E),up:t(".bootstrap-touchspin-up",E),input
233:t("input",E),prefix:t(".bootstrap-touchspin-prefix",E).addClass(C.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",E).addClass(C.postfix_extraclass)}}function m(){""===C.prefix&&A.prefix.hide(),""===C.postfix&&A.postfix.hide()}function g(){L.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==B&&(_(),T()),t.preventDefault()):40===e&&("down"!==B&&(S(),x()),t.preventDefault())}),L.on("keyup",function(t){var e=t.keyCode||t.which;38===e?k():40===e&&k()}),L.on("blur",function(){w()}),A.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==B&&(S(),x()),t.preventDefault())}),A.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||k()}),A.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==B&&(_(),T()),t.preventDefault())}),A.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||k()}),A.down.on("mousedown.touchspin",function(t){A.down.off("touchstart.touchspin"),L.is(":disabled")||(S(),x(),t.preventDefault(),t.stopPropagation())}),A.down.on("touchstart.touchspin",function(t){A.down.off("mousedown.touchspin"),L.is(":disabled")||(S(),x(),t.preventDefault(),t.stopPropagation())}),A.up.on("mousedown.touchspin",function(t){A.up.off("touchstart.touchspin"),L.is(":disabled")||(_(),T(),t.preventDefault(),t.stopPropagation())}),A.up.on("touchstart.touchspin",function(t){A.up.off("mousedown.touchspin"),L.is(":disabled")||(_(),T(),t.preventDefault(),t.stopPropagation())}),A.up.on("mouseout touchleave touchend touchcancel",function(t){B&&(t.stopPropagation(),k())}),A.down.on("mouseout touchleave touchend touchcancel",function(t){B&&(t.stopPropagation(),k())}),A.down.on("mousemove touchmove",function(t){B&&(t.stopPropagation(),t.preventDefault())}),A.up.on("mousemove touchmove",function(t){B&&(t.stopPropagation(),t.preventDefault())}),t(document).on(i(["mouseup","touchend","touchcancel"],n).join(" "),function(t){B&&(t.preventDefault(),k())}),t(document).on(i(["mousemove","touchmove","scroll","scrollstart"],n).join(" "),function(t){B&&(t.preventDefault(),k())}),L.on("mousewheel DOMMouseScroll",function(t){if(C.mousewheel&&L.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?S():_()}})}function v(){L.on("touchspin.uponce",function(){k(),_()}),L.on("touchspin.downonce",function(){k(),S()}),L.on("touchspin.startupspin",function(){T()}),L.on("touchspin.startdownspin",function(){x()}),L.on("touchspin.stopspin",function(){k()}),L.on("touchspin.updatesettings",function(t,e){a(e)})}function y(t){switch(C.forcestepdivisibility){case"round":return(Math.round(t/C.step)*C.step).toFixed(C.decimals);case"floor":return(Math.floor(t/C.step)*C.step).toFixed(C.decimals);case"ceil":return(Math.ceil(t/C.step)*C.step).toFixed(C.decimals);default:return t}}function w(){var t,e,i;if(""===(t=L.val()))return void(""!==C.replacementval&&(L.val(C.replacementval),L.trigger("change")));C.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==C.replacementval?C.replacementval:0),i=e,e.toString()!==t&&(i=e),e<C.min&&(i=C.min),e>C.max&&(i=C.max),i=y(i),Number(t).toString()!==i.toString()&&(L.val(i),L.trigger("change")))}function b(){if(C.booster){var t=Math.pow(2,Math.floor(j/C.boostat))*C.step;return C.maxboostedstep&&t>C.maxboostedstep&&(t=C.maxboostedstep,O=Math.round(O/t)*t),Math.max(C.step,t)}return C.step}function _(){w(),O=parseFloat(A.input.val()),isNaN(O)&&(O=0);var t=O,e=b();O+=e,O>C.max&&(O=C.max,L.trigger("touchspin.on.max"),k()),A.input.val(Number(O).toFixed(C.decimals)),t!==O&&L.trigger("change")}function S(){w(),O=parseFloat(A.input.val()),isNaN(O)&&(O=0);var t=O,e=b();O-=e,O<C.min&&(O=C.min,L.trigger("touchspin.on.min"),k()),A.input.val(O.toFixed(C.decimals)),t!==O&&L.trigger("change")}function x(){k(),j=0,B="down",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startdownspin"),D=setTimeout(function(){I=setInterval(function(){j++,S()},C.stepinterval)},C.stepintervaldelay)}function T(){k(),j=0,B="up",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startupspin"),N=setTimeout(function(){$=setInterval(function(){j++,_()},C.stepinterval)},C.stepintervaldelay)}function k(){switch(clearTimeout(D),clearTimeout(N),clearInterval(I),clearInterval($),B){case"up":L.trigger("touchspin.on.stopupspin"),L.trigger("touchspin.on.stopspin");break;case"down":L.trigger("touchspin.on.stopdownspin"),L.trigger("touchspin.on.stopspin")}j=0,B=!1}var C,E,A,O,I,$,D,N,L=t(this),P=L.data(),j=0,B=!1;!function(){L.data("alreadyinitialized")||(L.data("alreadyinitialized",!0),n+=1,L.data("spinnerid",n),L.is("input")&&(l(),r(),w(),u(),h(),m(),g(),v(),A.input.css("display","block")))}()})}}(jQuery)}
233,function(t,e,i){"use strict";!function(t,n){n(e,i(31),i(0))}(0,function(t,e,i){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),n.forEach(function(e){var n,o,s;n=t,s=i[o=e],o in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s})}return t}function r(t){var e=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(e)},t),this}e=e&&e.hasOwnProperty("default")?e.default:e,i=i&&i.hasOwnProperty("default")?i.default:i;var a="transitionend",l={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");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}return e&&document.querySelector(e)?e:null},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i(t).css("transition-duration"),n=i(t).css("transition-delay"),o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i(t).trigger(a)},supportsTransitionEnd:function(){return Boolean(a)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var o=i[n],s=e[n],r=s&&l.isElement(s)?"element":(a=s,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(r))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+r+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?l.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};i.fn.emulateTransitionEnd=r,i.event.special[l.TRANSITION_END]={bindType:a,delegateType:a,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var c="alert",d="bs.alert",u="."+d,f=i.fn[c],p={CLOSE:"close"+u,CLOSED:"closed"+u,CLICK_DATA_API:"click"+u+".data-api"},h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.removeData(this._element,d),this._element=null},e._getRootElement=function(t){var e=l.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=i(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=i.Event(p.CLOSE);return i(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i(t).removeClass("show"),i(t).hasClass("fade")){var n=l.getTransitionDurationFromElement(t);i(t).one(l.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i(t).detach().trigger(p.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(d);o||(o=new t(this),n.data(d,o)),"close"===e&&o[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),t}();i(document).on(p.CLICK_DATA_API,'[data-dismiss="alert"]',h._handleDismiss(new h)),i.fn[c]=h._jQueryInterface,i.fn[c].Constructor=h,i.fn[c].noConflict=function(){return i.fn[c]=f,h._jQueryInterface};var m="button",g="bs.button",v="."+g,y=".data-api",w=i.fn[m],b="active",_='[data-toggle^="button"]',S=".btn",x={CLICK_DATA_API:"click"+v+y,FOCUS_BLUR_DATA_API:"focus"+v+y+" blur"+v+y},T=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(b))t=!1;else{var s=n.querySelector(".active");s&&i(s).removeClass(b)}if(t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(b),i(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),t&&i(this._element).toggleClass(b)},e.dispose=function(){i.removeData(this._element,g),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(g);n||(n=new t(this),i(this).data(g,n)),"toggle"===e&&n[e]()})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),t}();i(document).on(x.CLICK_DATA_API,_,function(t){t.preventDefault();var e=t.target;i(e).hasClass("btn")||(e=i(e).closest(S)),T._jQueryInterface.call(i(e),"toggle")}).on(x.FOCUS_BLUR_DATA_API,_,function(t){var e=i(t.target).closest(S)[0];i(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),i.fn[m]=T._jQueryInterface,i.fn[m].Constructor=T,i.fn[m].noConflict=function(){return i.fn[m]=w,T._jQueryInterface};var k="carousel",C="bs.carousel",E="."+C,A=".data-api",O=i.fn[k],I={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},$={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},D="next",N="prev",L={SLIDE:"slide"+E,SLID:"slid"+E,KEYDOWN:"keydown"+E,MOUSEENTER:"mouseenter"+E,MOUSELEAVE:"mouseleave"+E,TOUCHSTART:"touchstart"+E,TOUCHMOVE:"touchmove"+E,TOUCHEND:"touchend"+E,POINTERDOWN:"pointerdown"+E,POINTERUP:"pointerup"+E,DRAG_START:"dragstart"+E,LOAD_DATA_API:"load"+E+A,CLICK_DATA_API:"click"+E+A},P="active",j=".active.carousel-item",B=".carousel-indicators",H={TOUCH:"touch",PEN:"pen"},M=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(B),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(D)},e.nextWhenVisible=function(){!document.hidden&&i(this._element).is(":visible")&&"hidden"
233!==i(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(N)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(l.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(j);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i(this._element).one(L.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var o=n<t?D:N;this._slide(o,this._items[t])}},e.dispose=function(){i(this._element).off(E),i.removeData(this._element,C),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=s({},I,t),l.typeCheckConfig(k,t,$),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i(this._element).on(L.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&i(this._element).on(L.MOUSEENTER,function(e){return t.pause(e)}).on(L.MOUSELEAVE,function(e){return t.cycle(e)}),this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&H[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&H[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval))};i(this._element.querySelectorAll(".carousel-item img")).on(L.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(i(this._element).on(L.POINTERDOWN,function(t){return e(t)}),i(this._element).on(L.POINTERUP,function(t){return n(t)}),this._element.classList.add("pointer-event")):(i(this._element).on(L.TOUCHSTART,function(t){return e(t)}),i(this._element).on(L.TOUCHMOVE,function(e){var i;(i=e).originalEvent.touches&&1<i.originalEvent.touches.length?t.touchDeltaX=0:t.touchDeltaX=i.originalEvent.touches[0].clientX-t.touchStartX}),i(this._element).on(L.TOUCHEND,function(t){return n(t)}))}},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===D,n=t===N,o=this._getItemIndex(e),s=this._items.length-1;if((n&&0===o||i&&o===s)&&!this._config.wrap)return e;var r=(o+(t===N?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(j)),s=i.Event(L.SLIDE,{relatedTarget:t,direction:e,from:o,to:n});return i(this._element).trigger(s),s},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i(e).removeClass(P);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i(n).addClass(P)}},e._slide=function(t,e){var n,o,s,r=this,a=this._element.querySelector(j),c=this._getItemIndex(a),d=e||a&&this._getItemByDirection(t,a),u=this._getItemIndex(d),f=Boolean(this._interval);if(s=t===D?(n="carousel-item-left",o="carousel-item-next","left"):(n="carousel-item-right",o="carousel-item-prev","right"),d&&i(d).hasClass(P))this._isSliding=!1;else if(!this._triggerSlideEvent(d,s).isDefaultPrevented()&&a&&d){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(d);var p=i.Event(L.SLID,{relatedTarget:d,direction:s,from:c,to:u});if(i(this._element).hasClass("slide")){i(d).addClass(o),l.reflow(d),i(a).addClass(n),i(d).addClass(n);var h=parseInt(d.getAttribute("data-interval"),10);this._config.interval=h?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,h):this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(a);i(a).one(l.TRANSITION_END,function(){i(d).removeClass(n+" "+o).addClass(P),i(a).removeClass(P+" "+o+" "+n),r._isSliding=!1,setTimeout(function(){return i(r._element).trigger(p)},0)}).emulateTransitionEnd(m)}else i(a).removeClass(P),i(d).addClass(P),this._isSliding=!1,i(this._element).trigger(p);f&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(C),o=s({},I,i(this).data());"object"==typeof e&&(o=s({},o,e));var r="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i(this).data(C,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method n
233amed "'+r+'"');n[r]()}else o.interval&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=l.getSelectorFromElement(this);if(n){var o=i(n)[0];if(o&&i(o).hasClass("carousel")){var r=s({},i(o).data(),i(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(i(o),r),a&&i(o).data(C).to(a),e.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return I}}]),t}();i(document).on(L.CLICK_DATA_API,"[data-slide], [data-slide-to]",M._dataApiClickHandler),i(window).on(L.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i(t[e]);M._jQueryInterface.call(o,o.data())}}),i.fn[k]=M._jQueryInterface,i.fn[k].Constructor=M,i.fn[k].noConflict=function(){return i.fn[k]=O,M._jQueryInterface};var F="collapse",z="bs.collapse",W="."+z,q=i.fn[F],R={toggle:!0,parent:""},U={toggle:"boolean",parent:"(string|element)"},Q={SHOW:"show"+W,SHOWN:"shown"+W,HIDE:"hide"+W,HIDDEN:"hidden"+W,CLICK_DATA_API:"click"+W+".data-api"},K="show",Y="collapse",V="collapsing",X="collapsed",G='[data-toggle="collapse"]',Z=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(G)),n=0,o=i.length;n<o;n++){var s=i[n],r=l.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(e){return e===t});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()}var e=t.prototype;return e.toggle=function(){i(this._element).hasClass(K)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i(this._element).hasClass(K)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(Y)})).length&&(e=null),e&&(n=i(e).not(this._selector).data(z))&&n._isTransitioning))){var s=i.Event(Q.SHOW);if(i(this._element).trigger(s),!s.isDefaultPrevented()){e&&(t._jQueryInterface.call(i(e).not(this._selector),"hide"),n||i(e).data(z,null));var r=this._getDimension();i(this._element).removeClass(Y).addClass(V),this._element.style[r]=0,this._triggerArray.length&&i(this._triggerArray).removeClass(X).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),c=l.getTransitionDurationFromElement(this._element);i(this._element).one(l.TRANSITION_END,function(){i(o._element).removeClass(V).addClass(Y).addClass(K),o._element.style[r]="",o.setTransitioning(!1),i(o._element).trigger(Q.SHOWN)}).emulateTransitionEnd(c),this._element.style[r]=this._element[a]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i(this._element).hasClass(K)){var e=i.Event(Q.HIDE);if(i(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",l.reflow(this._element),i(this._element).addClass(V).removeClass(Y).removeClass(K);var o=this._triggerArray.length;if(0<o)for(var s=0;s<o;s++){var r=this._triggerArray[s],a=l.getSelectorFromElement(r);null!==a&&(i([].slice.call(document.querySelectorAll(a))).hasClass(K)||i(r).addClass(X).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var c=l.getTransitionDurationFromElement(this._element);i(this._element).one(l.TRANSITION_END,function(){t.setTransitioning(!1),i(t._element).removeClass(V).addClass(Y).trigger(Q.HIDDEN)}).emulateTransitionEnd(c)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.removeData(this._element,z),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=s({},R,t)).toggle=Boolean(t.toggle),l.typeCheckConfig(F,t,U),t},e._getDimension=function(){return i(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;l.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(e.querySelectorAll(
233o));return i(s).each(function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),e},e._addAriaAndCollapsedClass=function(t,e){var n=i(t).hasClass(K);e.length&&i(e).toggleClass(X,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=l.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(z),r=s({},R,n.data(),"object"==typeof e&&e?e:{});if(!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||(o=new t(this,r),n.data(z,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return R}}]),t}();i(document).on(Q.CLICK_DATA_API,G,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i(this),n=l.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i(o).each(function(){var t=i(this),n=t.data(z)?"toggle":e.data();Z._jQueryInterface.call(t,n)})}),i.fn[F]=Z._jQueryInterface,i.fn[F].Constructor=Z,i.fn[F].noConflict=function(){return i.fn[F]=q,Z._jQueryInterface};var J="dropdown",tt="bs.dropdown",et="."+tt,it=".data-api",nt=i.fn[J],ot=new RegExp("38|40|27"),st={HIDE:"hide"+et,HIDDEN:"hidden"+et,SHOW:"show"+et,SHOWN:"shown"+et,CLICK:"click"+et,CLICK_DATA_API:"click"+et+it,KEYDOWN_DATA_API:"keydown"+et+it,KEYUP_DATA_API:"keyup"+et+it},rt="disabled",at="show",lt="dropdown-menu-right",ct='[data-toggle="dropdown"]',dt=".dropdown-menu",ut={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},ft={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},pt=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=t.prototype;return n.toggle=function(){if(!this._element.disabled&&!i(this._element).hasClass(rt)){var n=t._getParentFromElement(this._element),o=i(this._menu).hasClass(at);if(t._clearMenus(),!o){var s={relatedTarget:this._element},r=i.Event(st.SHOW,s);if(i(n).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var a=this._element;"parent"===this._config.reference?a=n:l.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i(n).addClass("position-static"),this._popper=new e(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i(n).closest(".navbar-nav").length&&i(document.body).children().on("mouseover",null,i.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i(this._menu).toggleClass(at),i(n).toggleClass(at).trigger(i.Event(st.SHOWN,s))}}}},n.show=function(){if(!(this._element.disabled||i(this._element).hasClass(rt)||i(this._menu).hasClass(at))){var e={relatedTarget:this._element},n=i.Event(st.SHOW,e),o=t._getParentFromElement(this._element);i(o).trigger(n),n.isDefaultPrevented()||(i(this._menu).toggleClass(at),i(o).toggleClass(at).trigger(i.Event(st.SHOWN,e)))}},n.hide=function(){if(!this._element.disabled&&!i(this._element).hasClass(rt)&&i(this._menu).hasClass(at)){var e={relatedTarget:this._element},n=i.Event(st.HIDE,e),o=t._getParentFromElement(this._element);i(o).trigger(n),n.isDefaultPrevented()||(i(this._menu).toggleClass(at),i(o).toggleClass(at).trigger(i.Event(st.HIDDEN,e)))}},n.dispose=function(){i.removeData(this._element,tt),i(this._element).off(et),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var t=this;i(this._element).on(st.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},n._getConfig=function(t){return t=s({},this.constructor.Default,i(this._element).data(),t),l.typeCheckConfig(J,t,this.constructor.DefaultType),t},n._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(dt))}return this._menu},n._getPlacement=function(){var t=i(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?(e="top-start",i(this._menu).hasClass(lt)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i(this._menu).hasClass(lt)&&(e="bottom-end"),e},n._detectNavbar=function(){return 0<i(this._element).closest(".
233navbar").length},n._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var i={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(i.modifiers.applyStyle={enabled:!1}),i},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(tt);if(n||(n=new t(this,"object"==typeof e?e:null),i(this).data(tt,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(ct)),o=0,s=n.length;o<s;o++){var r=t._getParentFromElement(n[o]),a=i(n[o]).data(tt),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var c=a._menu;if(i(r).hasClass(at)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.contains(r,e.target))){var d=i.Event(st.HIDE,l);i(r).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i(document.body).children().off("mouseover",null,i.noop),n[o].setAttribute("aria-expanded","false"),i(c).removeClass(at),i(r).removeClass(at).trigger(i.Event(st.HIDDEN,l)))}}}},t._getParentFromElement=function(t){var e,i=l.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i(e.target).closest(dt).length)):ot.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!i(this).hasClass(rt))){var n=t._getParentFromElement(this),o=i(n).hasClass(at);if(o&&(!o||27!==e.which&&32!==e.which)){var s=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"));if(0!==s.length){var r=s.indexOf(e.target);38===e.which&&0<r&&r--,40===e.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}else{if(27===e.which){var a=n.querySelector(ct);i(a).trigger("focus")}i(this).trigger("click")}}},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return ut}},{key:"DefaultType",get:function(){return ft}}]),t}();i(document).on(st.KEYDOWN_DATA_API,ct,pt._dataApiKeydownHandler).on(st.KEYDOWN_DATA_API,dt,pt._dataApiKeydownHandler).on(st.CLICK_DATA_API+" "+st.KEYUP_DATA_API,pt._clearMenus).on(st.CLICK_DATA_API,ct,function(t){t.preventDefault(),t.stopPropagation(),pt._jQueryInterface.call(i(this),"toggle")}).on(st.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),i.fn[J]=pt._jQueryInterface,i.fn[J].Constructor=pt,i.fn[J].noConflict=function(){return i.fn[J]=nt,pt._jQueryInterface};var ht="modal",mt="bs.modal",gt="."+mt,vt=i.fn[ht],yt={backdrop:!0,keyboard:!0,focus:!0,show:!0},wt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},bt={HIDE:"hide"+gt,HIDDEN:"hidden"+gt,SHOW:"show"+gt,SHOWN:"shown"+gt,FOCUSIN:"focusin"+gt,RESIZE:"resize"+gt,CLICK_DISMISS:"click.dismiss"+gt,KEYDOWN_DISMISS:"keydown.dismiss"+gt,MOUSEUP_DISMISS:"mouseup.dismiss"+gt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+gt,CLICK_DATA_API:"click"+gt+".data-api"},_t="modal-open",St="fade",xt="show",Tt=".modal-dialog",kt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ct=".sticky-top",Et=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Tt),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){i(this._element).hasClass(St)&&(this._isTransitioning=!0);var n=i.Event(bt.SHOW,{relatedTarget:t});i(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i(this._element).on(bt.CLICK_DISMISS,'[data-dismiss="modal"]',function(t){return e.hide(t)}),i(this._dialog).on(bt.MOUSEDOWN_DISMISS,function(){i(e._element).one(bt.MOUSEUP_DISMISS,function(t){i(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.Event(bt.HIDE);if(i(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i(this._element).hasClass(St);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i(document).off(bt.FOCUSIN),i(this._element).removeClass(xt),i(this._element).off(bt.CLICK_DISMISS),i(this._dialog).off(bt.MOUSEDOWN_DISMISS),o){var s=l.getTransitionDurationFromElement(this._element);i(this._element).one(l.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return i(t).off(gt)}),i(document).off(bt.FOCUSIN),i.removeData(this._element,mt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=s({},yt,t),l.typeCheckConfig(ht,t,wt),t},e._showElement=function(t){var e=this,n=i(this._element).hasClass(St);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.scrollTop=0,n&&l.reflow(this._element),i(this._element).addClass(xt),this._config.focus&&this._enforceFocus();var o=i.Event(bt.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,i(e._element).trigger(o)};if(n){var r=l.getTransitionDurationFromElement(this._dialog);
233i(this._dialog).one(l.TRANSITION_END,s).emulateTransitionEnd(r)}else s()},e._enforceFocus=function(){var t=this;i(document).off(bt.FOCUSIN).on(bt.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===i(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?i(this._element).on(bt.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||i(this._element).off(bt.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?i(window).on(bt.RESIZE,function(e){return t.handleUpdate(e)}):i(window).off(bt.RESIZE)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){i(document.body).removeClass(_t),t._resetAdjustments(),t._resetScrollbar(),i(t._element).trigger(bt.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(i(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i(this._element).hasClass(St)?St:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i(this._backdrop).appendTo(document.body),i(this._element).on(bt.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&l.reflow(this._backdrop),i(this._backdrop).addClass(xt),!t)return;if(!n)return void t();var o=l.getTransitionDurationFromElement(this._backdrop);i(this._backdrop).one(l.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i(this._backdrop).removeClass(xt);var s=function(){e._removeBackdrop(),t&&t()};if(i(this._element).hasClass(St)){var r=l.getTransitionDurationFromElement(this._backdrop);i(this._backdrop).one(l.TRANSITION_END,s).emulateTransitionEnd(r)}else s()}else 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=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(kt)),n=[].slice.call(document.querySelectorAll(Ct));i(e).each(function(e,n){var o=n.style.paddingRight,s=i(n).css("padding-right");i(n).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")}),i(n).each(function(e,n){var o=n.style.marginRight,s=i(n).css("margin-right");i(n).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")});var o=document.body.style.paddingRight,s=i(document.body).css("padding-right");i(document.body).data("padding-right",o).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}i(document.body).addClass(_t)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(kt));i(t).each(function(t,e){var n=i(e).data("padding-right");i(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+Ct));i(e).each(function(t,e){var n=i(e).data("margin-right");void 0!==n&&i(e).css("margin-right",n).removeData("margin-right")});var n=i(document.body).data("padding-right");i(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},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},t._jQueryInterface=function(e,n){return this.each(function(){var o=i(this).data(mt),r=s({},yt,i(this).data(),"object"==typeof e&&e?e:{});if(o||(o=new t(this,r),i(this).data(mt,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method n
233amed "'+e+'"');o[e](n)}else r.show&&o.show(n)})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return yt}}]),t}();i(document).on(bt.CLICK_DATA_API,'[data-toggle="modal"]',function(t){var e,n=this,o=l.getSelectorFromElement(this);o&&(e=document.querySelector(o));var r=i(e).data(mt)?"toggle":s({},i(e).data(),i(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i(e).one(bt.SHOW,function(t){t.isDefaultPrevented()||a.one(bt.HIDDEN,function(){i(n).is(":visible")&&n.focus()})});Et._jQueryInterface.call(i(e),r,this)}),i.fn[ht]=Et._jQueryInterface,i.fn[ht].Constructor=Et,i.fn[ht].noConflict=function(){return i.fn[ht]=vt,Et._jQueryInterface};var At="tooltip",Ot="bs.tooltip",It="."+Ot,$t=i.fn[At],Dt="bs-tooltip",Nt=new RegExp("(^|\\s)"+Dt+"\\S+","g"),Lt={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)"},Pt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},jt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Bt="show",Ht={HIDE:"hide"+It,HIDDEN:"hidden"+It,SHOW:"show"+It,SHOWN:"shown"+It,INSERTED:"inserted"+It,CLICK:"click"+It,FOCUSIN:"focusin"+It,FOCUSOUT:"focusout"+It,MOUSEENTER:"mouseenter"+It,MOUSELEAVE:"mouseleave"+It},Mt="fade",Ft="show",zt="hover",Wt="focus",qt=function(){function t(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(i),this.tip=null,this._setListeners()}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i(this.getTipElement()).hasClass(Ft))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),i.removeData(this.element,this.constructor.DATA_KEY),i(this.element).off(this.constructor.EVENT_KEY),i(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&i(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},n.show=function(){var t=this;if("none"===i(this.element).css("display"))throw new Error("Please use show on visible elements");var n=i.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i(this.element).trigger(n);var o=l.findShadowRoot(this.element),s=i.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!s)return;var r=this.getTipElement(),a=l.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&i(r).addClass(Mt);var c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,d=this._getAttachment(c);this.addAttachmentClass(d);var u=this._getContainer();i(r).data(this.constructor.DATA_KEY,this),i.contains(this.element.ownerDocument.documentElement,this.tip)||i(r).appendTo(u),i(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new e(this.element,r,{placement:d,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
233,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),i(r).addClass(Ft),"ontouchstart"in document.documentElement&&i(document.body).children().on("mouseover",null,i.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(i(this.tip).hasClass(Mt)){var p=l.getTransitionDurationFromElement(this.tip);i(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(p)}else f()}},n.hide=function(t){var e=this,n=this.getTipElement(),o=i.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==Bt&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i(this.element).trigger(o),!o.isDefaultPrevented()){if(i(n).removeClass(Ft),"ontouchstart"in document.documentElement&&i(document.body).children().off("mouseover",null,i.noop),this._activeTrigger.click=!1,this._activeTrigger[Wt]=!1,this._activeTrigger[zt]=!1,i(this.tip).hasClass(Mt)){var r=l.getTransitionDurationFromElement(n);i(n).one(l.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){i(this.getTipElement()).addClass(Dt+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(i(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i(t).removeClass(Mt+" "+Ft)},n.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?i(e).parent().is(t)||t.empty().append(e):t.text(i(e).text()):t[n?"html":"text"](e)},n.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?i(this.config.container):i(document).find(this.config.container)},n._getAttachment=function(t){return Pt[t.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)i(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n=e===zt?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===zt?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(o,t.config.selector,function(e){return t._leave(e)})}}),i(this.element).closest(".modal").on("hide.bs.modal",function(){t.element&&t.hide()}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._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",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Wt:zt]=!0),i(e.getTipElement()).hasClass(Ft)||e._hoverState===Bt?e._hoverState=Bt:(clearTimeout(e._timeout),e._hoverState=Bt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Bt&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Wt:zt]=!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())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){return"number"==typeof(t=s({},this.constructor.Default,i(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()),l.typeCheckConfig(At,t,this.constructor.DefaultType),t},n._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},n._cleanTipClass=function(){var t=i(this.getTipElement()),e=t.attr("class").match(Nt);null!==e&&e.length&&t.removeClass(e.join(""))},n._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i(t).removeClass(Mt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(Ot),o="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,o),i(this).data(Ot,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method n
233amed "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return jt}},{key:"NAME",get:function(){return At}},{key:"DATA_KEY",get:function(){return Ot}},{key:"Event",get:function(){return Ht}},{key:"EVENT_KEY",get:function(){return It}},{key:"DefaultType",get:function(){return Lt}}]),t}();i.fn[At]=qt._jQueryInterface,i.fn[At].Constructor=qt,i.fn[At].noConflict=function(){return i.fn[At]=$t,qt._jQueryInterface};var Rt="popover",Ut="bs.popover",Qt="."+Ut,Kt=i.fn[Rt],Yt="bs-popover",Vt=new RegExp("(^|\\s)"+Yt+"\\S+","g"),Xt=s({},qt.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>'}),Gt=s({},qt.DefaultType,{content:"(string|element|function)"}),Zt={HIDE:"hide"+Qt,HIDDEN:"hidden"+Qt,SHOW:"show"+Qt,SHOWN:"shown"+Qt,INSERTED:"inserted"+Qt,CLICK:"click"+Qt,FOCUSIN:"focusin"+Qt,FOCUSOUT:"focusout"+Qt,MOUSEENTER:"mouseenter"+Qt,MOUSELEAVE:"mouseleave"+Qt},Jt=function(t){function e(){return t.apply(this,arguments)||this}var n,s;s=t,(n=e).prototype=Object.create(s.prototype),(n.prototype.constructor=n).__proto__=s;var r=e.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){i(this.getTipElement()).addClass(Yt+"-"+t)},r.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0],this.tip},r.setContent=function(){var t=i(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")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=i(this.getTipElement()),e=t.attr("class").match(Vt);null!==e&&0<e.length&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each(function(){var n=i(this).data(Ut),o="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,o),i(this).data(Ut,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return Xt}},{key:"NAME",get:function(){return Rt}},{key:"DATA_KEY",get:function(){return Ut}},{key:"Event",get:function(){return Zt}},{key:"EVENT_KEY",get:function(){return Qt}},{key:"DefaultType",get:function(){return Gt}}]),e}(qt);i.fn[Rt]=Jt._jQueryInterface,i.fn[Rt].Constructor=Jt,i.fn[Rt].noConflict=function(){return i.fn[Rt]=Kt,Jt._jQueryInterface};var te="scrollspy",ee="bs.scrollspy",ie="."+ee,ne=i.fn[te],oe={offset:10,method:"auto",target:""},se={offset:"number",method:"string",target:"(string|element)"},re={ACTIVATE:"activate"+ie,SCROLL:"scroll"+ie,LOAD_DATA_API:"load"+ie+".data-api"},ae="active",le=".nav, .list-group",ce=".nav-link",de=".list-group-item",ue=".dropdown-item",fe="position",pe=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ce+","+this._config.target+" "+de+","+this._config.target+" "+ue,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i(this._scrollElement).on(re.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":fe,n="auto"===this._config.method?e:this._config.method,o=n===fe?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,s=l.getSelectorFromElement(t);if(s&&(e=document.querySelector(s)),e){var r=e.getBoundingClientRect();if(r.width||r.height)return[i(e)[n]().top+o,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){i.removeData(this._element,ee),i(this._scrollElement).off(ie),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){if("string"!=typeof(t=s({},oe,"object"==typeof t&&t?t:{})).target){var e=i(t.target).attr("id");e||(e=l.getUID(te),i(t.target).attr("id",e)),t.target="#"+e}return l.typeCheckConfig(te,t,se),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){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}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(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=i([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(ae),n.addClass(ae)):(n.addClass(ae),n.parents(le).prev(ce+", "+de).addClass(ae),n.parents(le).prev(".nav-item").children(ce).addClass(ae)),i(this._scrollElement).trigger(re.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(ae)}
233).forEach(function(t){return t.classList.remove(ae)})},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(ee);if(n||(n=new t(this,"object"==typeof e&&e),i(this).data(ee,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return oe}}]),t}();i(window).on(re.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i(t[e]);pe._jQueryInterface.call(n,n.data())}}),i.fn[te]=pe._jQueryInterface,i.fn[te].Constructor=pe,i.fn[te].noConflict=function(){return i.fn[te]=ne,pe._jQueryInterface};var he="bs.tab",me="."+he,ge=i.fn.tab,ve={HIDE:"hide"+me,HIDDEN:"hidden"+me,SHOW:"show"+me,SHOWN:"shown"+me,CLICK_DATA_API:"click"+me+".data-api"},ye="active",we=".active",be="> li > .active",_e=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i(this._element).hasClass(ye)||i(this._element).hasClass("disabled"))){var e,n,o=i(this._element).closest(".nav, .list-group")[0],s=l.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?be:we;n=(n=i.makeArray(i(o).find(r)))[n.length-1]}var a=i.Event(ve.HIDE,{relatedTarget:this._element}),c=i.Event(ve.SHOW,{relatedTarget:n});if(n&&i(n).trigger(a),i(this._element).trigger(c),!c.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(e=document.querySelector(s)),this._activate(this._element,o);var d=function(){var e=i.Event(ve.HIDDEN,{relatedTarget:t._element}),o=i.Event(ve.SHOWN,{relatedTarget:n});i(n).trigger(e),i(t._element).trigger(o)};e?this._activate(e,e.parentNode,d):d()}}},e.dispose=function(){i.removeData(this._element,he),this._element=null},e._activate=function(t,e,n){var o=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i(e).children(we):i(e).find(be))[0],r=n&&s&&i(s).hasClass("fade"),a=function(){return o._transitionComplete(t,s,n)};if(s&&r){var c=l.getTransitionDurationFromElement(s);i(s).removeClass("show").one(l.TRANSITION_END,a).emulateTransitionEnd(c)}else a()},e._transitionComplete=function(t,e,n){if(e){i(e).removeClass(ye);var o=i(e.parentNode).find("> .dropdown-menu .active")[0];o&&i(o).removeClass(ye),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(i(t).addClass(ye),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),l.reflow(t),i(t).addClass("show"),t.parentNode&&i(t.parentNode).hasClass("dropdown-menu")){var s=i(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));i(r).addClass(ye)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(he);if(o||(o=new t(this),n.data(he,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),t}();i(document).on(ve.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),_e._jQueryInterface.call(i(this),"show")}),i.fn.tab=_e._jQueryInterface,i.fn.tab.Constructor=_e,i.fn.tab.noConflict=function(){return i.fn.tab=ge,_e._jQueryInterface};var Se="toast",xe="bs.toast",Te="."+xe,ke=i.fn[Se],Ce={CLICK_DISMISS:"click.dismiss"+Te,HIDE:"hide"+Te,HIDDEN:"hidden"+Te,SHOW:"show"+Te,SHOWN:"shown"+Te},Ee="show",Ae="showing",Oe={animation:"boolean",autohide:"boolean",delay:"number"},Ie={animation:!0,autohide:!0,delay:500},$e=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this;i(this._element).trigger(Ce.SHOW),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove(Ae),t._element.classList.add(Ee),i(t._element).trigger(Ce.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove("hide"),this._element.classList.add(Ae),this._config.animation){var n=l.getTransitionDurationFromElement(this._element);i(this._element).one(l.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e.hide=function(t){var e=this;this._element.classList.contains(Ee)&&(i(this._element).trigger(Ce.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Ee)&&this._element.classList.remove(Ee),i(this._element).off(Ce.CLICK_DISMISS),i.removeData(this._element,xe),this._element=null,this._config=null},e._getConfig=function(t){return t=s({},Ie,i(this._element).data(),"object"==typeof t&&t?t:{}),l.typeCheckConfig(Se,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i(this._element).on(Ce.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return t.hide(!0)})},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),i(t._element).trigger(Ce.HIDDEN)};if(this._element.classList.remove(Ee),this._config.animation){var n=l.getTransitionDurationFromElement(this._element);i(this._element).one(l.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(xe);if(o||(o=new t(this,"object"==typeof e&&e),n.data(xe,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method n
233amed "'+e+'"');o[e](this)}})},o(t,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"DefaultType",get:function(){return Oe}}]),t}();i.fn[Se]=$e._jQueryInterface,i.fn[Se].Constructor=$e,i.fn[Se].noConflict=function(){return i.fn[Se]=ke,$e._jQueryInterface},function(){if(void 0===i)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=l,t.Alert=h,t.Button=T,t.Carousel=M,t.Collapse=Z,t.Dropdown=pt,t.Modal=Et,t.Popover=Jt,t.Scrollspy=pe,t.Tab=_e,t.Toast=$e,t.Tooltip=qt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,i){"use strict";var n,o;!function(s,r){n=[i(0)],void 0!==(o=function(t){r(t)}.apply(e,n))&&(t.exports=o)}(0,function(t){function e(e,i){this.$target=t(e),this.opts=t.extend({},l,i,this.$target.data()),void 0===this.isOpen&&this._init()}var i,n,o,s,r,a,l={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,linkAttribute:"href",preventClicks:!0,beforeShow:t.noop,beforeHide:t.noop,onShow:t.noop,onHide:t.noop,onMove:t.noop};return e.prototype._init=function(){this.$link=this.$target.find("a"),this.$image=this.$target.find("img"),this.$flyout=t('<div class="easyzoom-flyout" />'),this.$notice=t('<div class="easyzoom-notice" />'),this.$target.on({"mousemove.easyzoom touchmove.easyzoom":t.proxy(this._onMove,this),"mouseleave.easyzoom touchend.easyzoom":t.proxy(this._onLeave,this),"mouseenter.easyzoom touchstart.easyzoom":t.proxy(this._onEnter,this)}),this.opts.preventClicks&&this.$target.on("click.easyzoom",function(t){t.preventDefault()})},e.prototype.show=function(t,e){var r=this;if(!1!==this.opts.beforeShow.call(this)){if(!this.isReady)return this._loadImage(this.$link.attr(this.opts.linkAttribute),function(){!r.isMouseOver&&e||r.show(t)});this.$target.append(this.$flyout);var a=this.$target.outerWidth(),l=this.$target.outerHeight(),c=this.$flyout.width(),d=this.$flyout.height(),u=this.$zoom.width(),f=this.$zoom.height();i=Math.ceil(u-c),n=Math.ceil(f-d),i<0&&(i=0),n<0&&(n=0),o=i/a,s=n/l,this.isOpen=!0,this.opts.onShow.call(this),t&&this._move(t)}},e.prototype._onEnter=function(t){var e=t.originalEvent.touches;this.isMouseOver=!0,e&&1!=e.length||(t.preventDefault(),this.show(t,!0))},e.prototype._onMove=function(t){this.isOpen&&(t.preventDefault(),this._move(t))},e.prototype._onLeave=function(){this.isMouseOver=!1,this.isOpen&&this.hide()},e.prototype._onLoad=function(t){t.currentTarget.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),t.data.call&&t.data())},e.prototype._onError=function(){var t=this;this.$notice.text(this.opts.errorNotice),this.$target.removeClass("is-loading").addClass("is-error"),this.detachNotice=setTimeout(function(){t.$notice.detach(),t.detachNotice=null},this.opts.errorDuration)},e.prototype._loadImage=function(e,i){var n=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice)),this.$zoom=t(n).on("error",t.proxy(this._onError,this)).on("load",i,t.proxy(this._onLoad,this)),n.style.position="absolute",n.src=e},e.prototype._move=function(t){if(0===t.type.indexOf("touch")){var e=t.touches||t.originalEvent.touches;r=e[0].pageX,a=e[0].pageY}else r=t.pageX||r,a=t.pageY||a;var l=this.$target.offset(),c=r-l.left,d=a-l.top,u=Math.ceil(c*o),f=Math.ceil(d*s);if(u<0||f<0||i<u||n<f)this.hide();else{var p=-1*f,h=-1*u;this.$zoom.css({top:p,left:h}),this.opts.onMove.call(this,p,h)}},e.prototype.hide=function(){this.isOpen&&!1!==this.opts.beforeHide.call(this)&&(this.$flyout.detach(),this.isOpen=!1,this.opts.onHide.call(this))},e.prototype.swap=function(e,i,n){this.hide(),this.isReady=!1,this.detachNotice&&clearTimeout(this.detachNotice),this.$notice.parent().length&&this.$notice.detach(),this.$target.removeClass("is-loading is-ready is-error"),this.$image.attr({src:e,srcset:t.isArray(n)?n.join():n}),this.$link.attr(this.opts.linkAttribute,i)},e.prototype.teardown=function(){this.hide(),this.$target.off(".easyzoom").removeClass("is-loading is-ready is-error"),this.detachNotice&&clearTimeout(this.detachNotice),delete this.$link,delete this.$zoom,delete this.$image,delete this.$notice,delete this.$flyout,delete this.isOpen,delete this.isReady},t.fn.easyZoom=function(i){return this.each(function(){var n=t.data(this,"easyZoom");n?void 0===n.isOpen&&n._init():t.data(this,"easyZoom",new e(this,i))})},e})}
vendor: 4,330 bytes, line 233
233,function(t,e,i){"use strict";function n(t){console&&console.warn}function o(){o.init.call(this)}function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function r(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function a(t,e,i,o){var a,l,c;if(s(i),l=t._events,void 0===l?(l=t._events=Object.create(null),t._eventsCount=0):(void 0!==l.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),l=t._events),c=l[e]),void 0===c)c=l[e]=i,++t._eventsCount;else if("function"==typeof c?c=l[e]=o?[i,c]:[c,i]:o?c.unshift(i):c.push(i),(a=r(t))>0&&c.length>a&&!c.warned){c.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=t,d.type=e,d.count=c.length,n(d)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},o=l.bind(n);return o.listener=i,n.wrapFn=o,o}function d(t,e,i){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?i?[o.listener||o]:[o]:i?h(o):f(o,o.length)}function u(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function f(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function p(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function h(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}var m,g="object"==typeof Reflect?Reflect:null,v=g&&"function"==typeof g.apply?g.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};m=g&&"function"==typeof g.ownKeys?g.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var y=Number.isNaN||function(t){return t!==t};t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var w=10;Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(t){if("number"!=typeof t||t<0||y(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");w=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||y(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return r(this)},o.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var r=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw r.context=s,r}var a=o[t];if(void 0===a)return!1;if("function"==typeof a)v(a,this,e);else for(var l=a.length,c=f(a,l),i=0;i<l;++i)v(c[i],this,e);return!0},o.prototype.addListener=function(t,e){return a(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return a(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,c(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,c(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,n,o,r,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(o=-1,r=i.length-1;r>=0;r--)if(i[r]===e||i[r].listener===e){a=i[r].listener,o=r;break}if(o<0)return this;0===o?i.shift():p(i,o),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit
233("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var o,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(o=s[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):u.call(t,e)},o.prototype.listenerCount=u,o.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]}},function(t,e,i){"use strict";var n,n;!function(e){t.exports=e()}(function(){return function t(e,i,o){function s(a,l){if(!i[a]){if(!e[a]){var c="function"==typeof n&&n;if(!l&&c)return n(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return s(i||t)},u,u.exports,t,e,i,o)}return i[a].exports}for(var r="function"==typeof n&&n,a=0;a<o.length;a++)s(o[a]);return s}({1:[function(t,e,i){e.exports=function(t){var e,i,n,o=-1;if(t.lines.length>1&&"flex-start"===t.style.alignContent)for(e=0;n=t.lines[++o];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;n=t.lines[++o];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;n=t.lines[++o];)n.crossStart=e,e+=n.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(i=t.flexStyle.crossSpace/(t.lines.length-1),e=0;n=t.lines[++o];)n.crossStart=e,e+=n.cross+i;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(i=2*t.flexStyle.crossSpace/(2*t.lines.length),e=i/2;n=t.lines[++o];)n.crossStart=e,e+=n.cross+i;else for(i=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;n=t.lines[++o];)n.crossStart=e,n.cross+=i,e+=n.cross}},{}],2:[function(t,e,i){e.exports=function(t){for(var e,i=-1;line=t.lines[++i];)for(e=-1;child=line.children[++e];){var n=child.style.alignSelf;"auto"===n&&(n=t.style.alignItems),"flex-start"===n?child.flexStyle.crossStart=line.crossStart:"flex-end"===n?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===n?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,i){e.exports=function(t,e){var i="row"===e||"row-reverse"===e,n=t.mainAxis;if(n){i&&"inline"===n||!i&&"block"===n||(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})}else 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));
vendor: 5,457 bytes, line 233
233t.mainAxis=i?"inline":"block",t.crossAxis=i?"block":"inline","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexGrow)},0);e>0&&(t.main=n(t.children,function(i,n){return"auto"===n.flexStyle.main?n.flexStyle.main=n.flexStyle.mainOffset+parseFloat(n.style.flexGrow)/e*t.mainSpace:n.flexStyle.main+=parseFloat(n.style.flexGrow)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e,i){var n=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=n(t.children,function(t,e){return t+parseFloat(e.style.flexShrink)},0);e>0&&(t.main=n(t.children,function(i,n){return n.flexStyle.main+=parseFloat(n.style.flexShrink)/e*t.mainSpace,n.flexStyle.mainOuter=n.flexStyle.main+n.flexStyle.mainBefore+n.flexStyle.mainAfter,i+n.flexStyle.mainOuter},0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e,i){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(t,e,i){function n(e){for(var i,n=-1;i=e.children[++n];)t("./flex-direction")(i,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),n=-1;for(var o;o=e.lines[++n];)o.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-o.main,t("./flex-grow")(o),t("./flex-shrink")(o),t("./margin-main")(o),t("./margin-cross")(o),t("./justify-content")(o,e.style.justifyContent,e);t("./align-items")(e)}e.exports=n},{"./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,i){e.exports=function(t,e,i){var n,o,s,r=i.flexStyle.mainInnerBefore,a=-1;if("flex-end"===e)for(n=t.mainSpace,n+=r;s=t.children[++a];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter;else if("center"===e)for(n=t.mainSpace/2,n+=r;s=t.children[++a];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter;else if("space-between"===e)for(o=t.mainSpace/(t.children.length-1),n=0,n+=r;s=t.children[++a];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter+o;else if("space-around"===e)for(o=2*t.mainSpace/(2*t.children.length),n=o/2,n+=r;s=t.children[++a];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter+o;else for(n=0,n+=r;s=t.children[++a];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter}},{}],9:[function(t,e,i){e.exports=function(t){for(var e,i=-1;e=t.children[++i];){var n=0;"auto"===e.flexStyle.crossBefore&&++n,"auto"===e.flexStyle.crossAfter&&++n;var o=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=o/n),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=o/n),"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,i){e.exports=function(t){for(var e,i=0,n=-1;e=t.children[++n];)"auto"===e.flexStyle.mainBefore&&++i,"auto"===e.flexStyle.mainAfter&&
233++i;if(i>0){for(n=-1;e=t.children[++n];)"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,i){var n=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort(function(t,e){return t.style.order-e.style.order||t.index-e.index}),n.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e,i){function n(t,e,i){for(var n=t.length,o=-1;++o<n;)o in t&&(i=e(i,t[o],o));return i}e.exports=n},{}],13:[function(t,e,i){function n(t){a(r(t))}var o=t("./read"),s=t("./write"),r=t("./readAll"),a=t("./writeAll");e.exports=n,e.exports.read=o,e.exports.write=s,e.exports.readAll=r,e.exports.writeAll=a},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e,i){function n(t,e){var i=String(t).match(s);if(!i)return t;var n=i[1],r=i[2];return"px"===r?1*n:"cm"===r?.3937*n*96:"in"===r?96*n:"mm"===r?.3937*n*96/10:"pc"===r?12*n*96/72:"pt"===r?96*n/72:"rem"===r?16*n:o(t,e)}function o(t,e){r.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+t+"!important",e.parentNode.insertBefore(r,e.nextSibling);var i=r.offsetWidth;return e.parentNode.removeChild(r),i}e.exports=n;var s=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,r=document.createElement("div")},{}],15:[function(t,e,i){function n(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,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=t.hasAttribute("data-style"),n=i?t.getAttribute("data-style"):t.getAttribute("style")||"";i||t.setAttribute("data-style",n),r(e,window.getComputedStyle&&getComputedStyle(t)||{}),o(e,t.currentStyle||{}),s(e,n);for(var a in e)e[a]=l(e[a],t);var c=t.getBoundingClientRect();e.offsetHeight=c.height||t.offsetHeight,e.offsetWidth=c.width||t.offsetWidth}return{element:t,style:e}}function o(t,e){for(var i in t){if(i in e)t[i]=e[i];else{var n=i.replace(/[A-Z]/g,"-$&").toLowerCase();n in e&&(t[i]=e[n])}}"-js-display"in e&&(t.display=e["-js-display"])}function s(t,e){for(var i;i=a.exec(e);){t[i[1].toLowerCase().replace(/-[a-z]/g,function(t){return t.slice(1).toUpperCase()})]=i[2]}}function r(t,e){for(var i in t){i in e&&!/^(alignSelf|height|width)$/.test(i)&&(t[i]=e[i])}}e.exports=n;var a=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,l=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e,i){function n(t){var e=[];return o(t,e),e}function o(t,e){for(var i,n=s(t),a=[],l=-1;i=t.childNodes[++l];){var c=3===i.nodeType&&!/^\s*$/.test(i.nodeValue);if(n&&c){var d=i;i=t.insertBefore(document.createElement("flex-item"),d),i.appendChild(d)}if(i instanceof Element){var u=o(i,e);if(n){var f=i.style;f.display="inline-block",f.position="absolute",u.style=r(i).style,a.push(u)}}}var p={element:t,children:a};return n&&(p.style=r(t).style,e.push(p)),p}function s(t){var e=t instanceof Element,i=e&&t.getAttribute("data-style"),n=e&&t.currentStyle&&t.currentStyle["-js-display"];return a.test(i)||l.test(n)}e.exports=n;var r=t("../read"),a=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,l=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e,i){function n(t){s(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=o(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=o(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 n,r=-1;n=t.children[++r];){var a=n.element.style,l="inline"===n.mainAxis?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="absolute","auto"!==n.flexStyle[l[0]]&&(a.width=o(n.flexStyle[l[0]]-n.flexStyle[l[0]+"InnerBefore"]-n.flexStyle[l[0]+"InnerAfter"]-n.flexStyle[l[0]+"BorderBefore"]-n.flexStyle[l[0]+"BorderAfter"])),"auto"!==n.flexStyle[l[1]]&&(a.height=o(n.flexStyle[l[1]]-n.flexStyle[l[1]+"InnerBefore"]-n.flexStyle[l[1]+"InnerAfter"]-n.flexStyle[l[1]+"BorderBefore"]-n.flexStyle[l[1]+"BorderAfter"])),a.top=o(n.flexStyle[l[1]+"Start"]),a.left=o(n.flexStyle[l[0]+"Start"]),a.marginTop=o(n.flexStyle[l[1]+"Before"]),a.marginRight=o(n.flexStyle[l[0]+"After"]),a.marginBottom=o(n.flexStyle[l[1]+"After"]),a.marginLeft=o(n.flexStyle[l[0]+"Before"])}}function o(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=n;var s=t("../flexbox")},{"../flexbox":7}
233],18:[function(t,e,i){function n(t){for(var e,i=-1;e=t[++i];)o(e)}e.exports=n;var o=t("../write")},{"../write":17}]},{},[13])(13)})},function(t,e,i){"use strict";(function(i){function n(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function o(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},pt))}}function s(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function r(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView,n=i.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){for(var e=!0;e;){var i=t;if(e=!1,!i)return document.body;switch(i.nodeName){case"HTML":case"BODY":return i.ownerDocument.body;case"#document":return i.body}var n=r(i),o=n.overflow,s=n.overflowX,l=n.overflowY;if(/(auto|scroll|overlay)/.test(o+l+s))return i;t=a(i),e=!0,n=o=s=l=void 0}}function c(t){return t&&t.referenceNode?t.referenceNode:t}function d(t){return 11===t?gt:10===t?vt:gt||vt}function u(t){for(var e=!0;e;){var i=t;if(e=!1,!i)return document.documentElement;for(var n=d(10)?document.body:null,o=i.offsetParent||null;o===n&&i.nextElementSibling;)o=(i=i.nextElementSibling).offsetParent;var s=o&&o.nodeName;if(!s||"BODY"===s||"HTML"===s)return i?i.ownerDocument.documentElement:document.documentElement;if(-1===["TH","TD","TABLE"].indexOf(o.nodeName)||"static"!==r(o,"position"))return o;t=o,e=!0,n=o=s=void 0}}function f(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||u(t.firstElementChild)===t)}function p(t){for(var e=!0;e;){var i=t;e=!1;{if(null===i.parentNode)return i;t=i.parentNode,e=!0}}}function h(t,e){for(var i=!0;i;){var n=t,o=e;if(i=!1,!(n&&n.nodeType&&o&&o.nodeType))return document.documentElement;var s=n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING,r=s?n:o,a=s?o:n,l=document.createRange();l.setStart(r,0),l.setEnd(a,0);var c=l.commonAncestorContainer;if(n!==c&&o!==c||r.contains(a))return f(c)?c:u(c);var d=p(n);d.host?(t=d.host,e=o,i=!0,s=r=a=l=c=d=void 0):(t=n,e=p(o).host,i=!0,s=r=a=l=c=d=void 0)}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||o)[i]}return t[i]}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=m(e,"top"),o=m(e,"left"),s=i?-1:1;return t.top+=n*s,t.bottom+=n*s,t.left+=o*s,t.right+=o*s,t}function v(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function y(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],d(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,i=t.documentElement,n=d(10)&&getComputedStyle(i);return{height:y("Height",e,i,n),width:y("Width",e,i,n)}}function b(t){return _t({},t,{right:t.left+t.width,bottom:t.top+t.height})}function _(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var i=m(t,"top"),n=m(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?w(t.ownerDocument):{},a=s.width||t.clientWidth||o.width,l=s.height||t.clientHeight||o.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var f=r(t);c-=v(f,"x"),u-=v(f,"y"),o.width-=c,o.height-=u}return b(o)}function S(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=d(10),o="HTML"===e.nodeName,s=_(t),a=_(e),c=l(t),u=r(e),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);i&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=b({top:s.top-a.top-f,left:s.left-a.left-p,width:s.width,height:s.height});if(h.marginTop=0,h.marginLeft=0,!n&&o){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-v,h.right-=p-v,h.marginTop=m,h.marginLeft=v}return(n&&!i?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(h=g(h,e)),h}function x(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=S(t,i),o=Math.max(i.clientWidth,window.innerWidth||0),s=Math.max(i.clientHeight,window.innerHeight||0),r=e?0:m(i),a=e?0:m(i,"left");
vendor: 4,958 bytes, line 233
233return b({top:r-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:o,height:s})}function T(t){for(var e=!0;e;){var i=t;e=!1;var n=i.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===r(i,"position"))return!0;var o=a(i);if(!o)return!1;t=o,e=!0,n=o=void 0}}function k(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===r(e,"transform");)e=e.parentElement;return e||document.documentElement}function C(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},r=o?k(t):h(t,c(e));if("viewport"===n)s=x(r,o);else{var d=void 0;"scrollParent"===n?(d=l(a(e)),"BODY"===d.nodeName&&(d=t.ownerDocument.documentElement)):d="window"===n?t.ownerDocument.documentElement:n;var u=S(d,r,o);if("HTML"!==d.nodeName||T(r))s=u;else{var f=w(t.ownerDocument),p=f.height,m=f.width;s.top+=u.top-u.marginTop,s.bottom=p+u.top,s.left+=u.left-u.marginLeft,s.right=m+u.left}}i=i||0;var g="number"==typeof i;return s.left+=g?i:i.left||0,s.top+=g?i:i.top||0,s.right-=g?i:i.right||0,s.bottom-=g?i:i.bottom||0,s}function E(t){return t.width*t.height}function A(t,e,i,n,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=C(i,n,s,o),a={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},l=Object.keys(a).map(function(t){return _t({key:t},a[t],{area:E(a[t])})}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),d=c.length>0?c[0].key:l[0].key,u=t.split("-")[1];return d+(u?"-"+u:"")}function O(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(i,n?k(e):h(e,c(i)),n)}function I(t){var e=t.ownerDocument.defaultView,i=e.getComputedStyle(t),n=parseFloat(i.marginTop||0)+parseFloat(i.marginBottom||0),o=parseFloat(i.marginLeft||0)+parseFloat(i.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function $(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 D(t,e,i){i=i.split("-")[0];var n=I(t),o={width:n.width,height:n.height},s=-1!==["right","left"].indexOf(i),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return o[r]=e[r]+e[l]/2-n[l]/2,o[a]=i===a?e[a]-n[c]:e[$(a)],o}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function L(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=N(t,function(t){return t[e]===i});return t.indexOf(n)}function P(t,e,i){return(void 0===i?t:t.slice(0,L(t,"name",i))).forEach(function(t){t.function;var i=t.function||t.fn;t.enabled&&s(i)&&(e.offsets.popper=b(e.offsets.popper),e.offsets.reference=b(e.offsets.reference),e=i(e,t))}),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=D(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=P(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function B(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function H(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var o=e[n],s=o?""+o+i:t;if(void 0!==document.body.style[s])return s}return null}function M(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[H("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t){var e=t.ownerDocument;return e?e.defaultView:window}function z(t,e,i,n){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(e,i,{passive:!0}),o||z(l(s.parentNode),e,i,n),n.push(s)}function W(t,e,i,n){i.updateBound=n,F(t).addEventListener("resize",i.updateBound,{passive:!0});var o=l(t);return z(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function q(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function R(t,e){return F(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEac
vendor: 8,808 bytes, line 233
233h(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function K(t,e){Object.keys(e).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&Q(e[i])&&(n="px"),t.style[i]=e[i]+n})}function Y(t,e){Object.keys(e).forEach(function(i){!1!==e[i]?t.setAttribute(i,e[i]):t.removeAttribute(i)})}function V(t){return K(t.instance.popper,t.styles),Y(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&K(t.arrowElement,t.arrowStyles),t}function X(t,e,i,n,o){var s=O(o,e,t,i.positionFixed),r=A(i.placement,s,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),K(e,{position:i.positionFixed?"fixed":"absolute"}),i}function G(t,e){var i=t.offsets,n=i.popper,o=i.reference,s=Math.round,r=Math.floor,a=function(t){return t},l=s(o.width),c=s(n.width),d=-1!==["left","right"].indexOf(t.placement),u=-1!==t.placement.indexOf("-"),f=l%2==c%2,p=l%2==1&&c%2==1,h=e?d||u||f?s:r:a,m=e?s:a;return{left:h(p&&!u&&e?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:h(n.right)}}function Z(t,e){var i=e.x,n=e.y,o=t.offsets.popper,s=N(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=u(t.instance.popper),l=_(a),c={position:o.position},d=G(t,window.devicePixelRatio<2||!St),f="bottom"===i?"top":"bottom",p="right"===n?"left":"right",h=H("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+d.bottom:-l.height+d.bottom:d.top,m="right"===p?"HTML"===a.nodeName?-a.clientWidth+d.right:-l.width+d.right:d.left,r&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[f]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===f?-1:1,y="right"===p?-1:1;c[f]=g*v,c[p]=m*y,c.willChange=f+", "+p}var w={"x-placement":t.placement};return t.attributes=_t({},w,t.attributes),t.styles=_t({},c,t.styles),t.arrowStyles=_t({},t.offsets.arrow,t.arrowStyles),t}function J(t,e,i){var n=N(t,function(t){return t.name===e}),o=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!o);return o}function tt(t,e){var i;if(!J(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return t;var o=t.placement.split("-")[0],s=t.offsets,a=s.popper,l=s.reference,c=-1!==["left","right"].indexOf(o),d=c?"height":"width",u=c?"Top":"Left",f=u.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=I(n)[d];l[h]-m<a[f]&&(t.offsets.popper[f]-=a[f]-(l[h]-m)),l[f]+m>a[h]&&(t.offsets.popper[f]+=l[f]+m-a[h]),t.offsets.popper=b(t.offsets.popper);var g=l[f]+l[d]/2-m/2,v=r(t.instance.popper),y=parseFloat(v["margin"+u]),w=parseFloat(v["border"+u+"Width"]),_=g-t.offsets.popper[f]-y-w;return _=Math.max(Math.min(a[d]-m,_),0),t.arrowElement=n,t.offsets.arrow=(i={},bt(i,f,Math.round(_)),bt(i,p,""),i),t}function et(t){return"end"===t?"start":"start"===t?"end":t}function it(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Tt.indexOf(t),n=Tt.slice(i+1).concat(Tt.slice(0,i));return e?n.reverse():n}function nt(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=C(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=$(n),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case kt.FLIP:r=[n,o];break;case kt.CLOCKWISE:r=it(n);break;case kt.COUNTERCLOCKWISE:r=it(n,!0);break;default:r=e.behavior}return r.forEach(function(a,l){if(n!==a||r.length===l+1)return t;n=t.placement.split("-")[0],o=$(n);var c=t.offsets.popper,d=t.offsets.reference,u=Math.floor,f="left"===n&&u(c.right)>u(d.left)||"right"===n&&u(c.left)<u(d.right)||"top"===n&&u(c.bottom)>u(d.top)||"bottom"===n&&u(c.top)<u(d.bottom),p=u(c.left)<u(i.left),h=u(c.right)>u(i.right),m=u(c.top)<u(i.top),g=u(c.bottom)>u(i.bottom),v="left"===n&&p||"right"===n&&h||"top"===n&&m||"bottom"===n&&g,y=-1!==["top","bottom"].indexOf(n),w=!!e.flipVariations&&(y&&"start"===s&&p||y&&"end"===s&&h||!y&&"start"===s&&m||!y&&"end"===s&&g),b=!!e.flipVariationsByContent&&(y&&"start"===s&&h||y&&"end"===s&&p||!y&&"start"===s&&g||!y&&"end"===s&&m),_=w||b;(f||v||_)&&(t.flipped=!0,(f||v)&&(n=r[l+1]),_&&(s=et(s)),t.placement=n+(s?"-"+s:""),t.offsets.popper=_t({},t.offsets.popper,D(t.instance.popper,t.offsets.reference,t.placement)),t=P(t.instance.modifiers,t,"flip"))}),t}function ot(t){var e=t.offsets,i=e.popper,n=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]<s(n[l])&&(t.offsets.popper[l]=s(n[l])-i[c]),i[l]>s(n[a])&&(t.offsets.popper[l]=s(n[a])),t}function st(t,e,i,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0===r.indexOf("%")){var a=void 0;switch(r){case"%p":a=i;break;case"%":case"%r":default:a=n}return b(a)[e]/100*s}if("vh"===r||"vw"===r){return("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s}return s}function rt(t,e,i,n){var o=[0,0],s=-1!==["right","left"].indexOf(n),r=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=r.indexOf(N(r,function(t){return-1!==t.search(/,|\s/)}));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return c=c.map(function(t,n){var o=(1===n?!s:s)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return st(t,o,e,i)})}),c.forEach(function(t,e){t.forEach(function(i,n){Q(i)&&(o[e]+=i*("-"===t[n-1]?-1:1))})}),o}function at(t,e){var i=e.offset,n=t.placement,o=t.offsets,s=o.popper,r=o.reference,a=n.split("-")[0],l=void 0;return l=Q(+i)?[+i,0]:rt(i,s,r,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),t.popper=s,t}function lt(t,e){var i=e.boundariesElement||u(t.instance.popper);t.instance.reference===i&&(i=u(i));var n=H("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=C(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);o.top=s,o.left=r,o[n]=a,e.boundaries=l;var c=e.priority,d=t.offsets.popper,f={primary:function(t){var i=d[t];return d[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(d[t],l[t])),bt({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=d[i];return d[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(d[i],l[t]-("right"===t?d.width:d.height))),bt({},i,n)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";d=_t({},d,f[e](t))}),t.offsets.popper=d,t}function ct(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",d={start:bt({},l,s[l]),end:bt({},l,s[l]+s[c]-r[c])};t.offsets.popper=_t({},r,d[n])}return t}function dt(t){if(!J(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=N(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}function ut(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,o=n.popper,s=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return o[r?"left":"top"]=s[i]-(a?o[r?"width":"height"]:0),t.placement=$(e),t.offsets.popper=b(o),t}Object.defineProperty(e,"__esModule",{value:!0});var ft="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,pt=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(ft&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),ht=ft&&window.Promise,mt=ht?n:o,gt=ft&&!(!window.MSInputMethodContext||!document.documentMode),vt=ft&&/MSIE 10/.test(navigator.userAgent),yt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},wt=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
233return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),bt=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},_t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},St=ft&&/Firefox/i.test(navigator.userAgent),xt=["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"],Tt=xt.slice(3),kt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Ct={shift:{order:100,enabled:!0,fn:ct},offset:{order:200,enabled:!0,fn:at,offset:0},preventOverflow:{order:300,enabled:!0,fn:lt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ot},arrow:{order:500,enabled:!0,fn:tt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:nt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ut},hide:{order:800,enabled:!0,fn:dt},computeStyle:{order:850,enabled:!0,fn:Z,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:V,onLoad:X,gpuAcceleration:void 0}},Et={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ct},At=function(){function t(e,i){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};yt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=mt(this.update.bind(this)),this.options=_t({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(_t({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=_t({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return _t({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&s(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return wt(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return M.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),t}();At.Utils=("undefined"!=typeof window?window:i).PopperUtils,At.placements=xt,At.Defaults=Et,e.default=At,t.exports=e.default}).call(e,i(36))},function(t,e,i){"use strict";t.exports=function(t,e,i,n){function o(){function o(){r=Number(new Date),i.apply(l,d)}function a(){s=void 0}var l=this,c=Number(new Date)-r,d=arguments;n&&!s&&o(),s&&clearTimeout(s),void 0===n&&c>t?o():!0!==e&&(s=setTimeout(n?a:o,void 0===n?t-c:t))}var s,r=0;return"boolean"!=typeof e&&(n=i,i=e,e=void 0),o}},function(t,e,i){var n,o,s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,a){"object"===r(e)&&void 0!==t?t.exports=a():(n=a,void 0!==(o="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=o))}(0,function(){"use strict";function t(t,e,i){var n=e._settings;!i&&m(t)||(O(n.callback_enter,t),j.indexOf(t.tagName)>-1&&(P(t,e),E(t,n.class_loading)),C(t,e),h(t),O(n.callback_set,t))}var e=function(t,e){return e?t.replace(/\.(jpe?g|png)/gi,".webp"):t},i="undefined"!=typeof window,n=i&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),o=i&&"IntersectionObserver"in window,r=i&&"classList"in document.createElement("p"),a=i&&"createImageBitmap"in window,l=i&&"fetch"in window,c=!1;!function(t){a&&l?fetch("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=").then(function(e){return e&&void 0!==e.blob?e.blob():t(!1)}).then(function(e){return t(!!window.createImageBitmap(e))}):t(!1)}(function(t){c=t});var d={elements_selector:"img",container:n||i?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,callback_load:null,callback_error:null,callback_set:null,callback_enter:null,callback_finish:null,to_webp:!1},u=function(t){return s({},d,t)},f=function(t,e){return t.getAttribute("data-"+e)}
233,p=function(t,e,i){var n="data-"+e;null!==i?t.setAttribute(n,i):t.removeAttribute(n)},h=function(t){return p(t,"was-processed","true")},m=function(t){return"true"===f(t,"was-processed")},g=function(t,e){return p(t,"ll-timeout",e)},v=function(t){return f(t,"ll-timeout")},y=function(t){return t.filter(function(t){return!m(t)})},w=function(t,e){return t.filter(function(t){return t!==e})},b=function(t,e){var i,n=new t(e);try{i=new CustomEvent("LazyLoad::Initialized",{detail:{instance:n}})}catch(t){(i=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:n})}window.dispatchEvent(i)},_=function(t){for(var e,i=[],n=0;e=t.children[n];n+=1)"SOURCE"===e.tagName&&i.push(e);return i},S=function(t,i,n,o){n&&t.setAttribute(i,e(n,o))},x=function(t,e,i){S(t,"sizes",f(t,e.data_sizes)),S(t,"srcset",f(t,e.data_srcset),i),S(t,"src",f(t,e.data_src),i)},T=function(t,i){var n=i.to_webp&&c,o=f(t,i.data_src),s=f(t,i.data_bg);if(o){var r=e(o,n);t.style.backgroundImage='url("'+r+'")'}if(s){var a=e(s,n);t.style.backgroundImage=a}},k={IMG:function(t,e){var i=e.to_webp&&c,n=t.parentNode;n&&"PICTURE"===n.tagName&&_(n).forEach(function(t){x(t,e,i)}),x(t,e,i)},IFRAME:function(t,e){S(t,"src",f(t,e.data_src))},VIDEO:function(t,e){_(t).forEach(function(t){S(t,"src",f(t,e.data_src))}),S(t,"src",f(t,e.data_src)),t.load()}},C=function(t,e){var i=e._settings,n=t.tagName,o=k[n];if(o)return o(t,i),e._updateLoadingCount(1),void(e._elements=w(e._elements,t));T(t,i)},E=function(t,e){r?t.classList.add(e):t.className+=(t.className?" ":"")+e},A=function(t,e){r?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},O=function(t,e){t&&t(e)},I=function(t,e,i){t.addEventListener(e,i)},$=function(t,e,i){t.removeEventListener(e,i)},D=function(t,e,i){I(t,"load",e),I(t,"loadeddata",e),I(t,"error",i)},N=function(t,e,i){$(t,"load",e),$(t,"loadeddata",e),$(t,"error",i)},L=function(t,e,i){var n=i._settings,o=e?n.class_loaded:n.class_error,s=e?n.callback_load:n.callback_error,r=t.target;A(r,n.class_loading),E(r,o),O(s,r),i._updateLoadingCount(-1)},P=function(t,e){var i=function i(o){L(o,!0,e),N(t,i,n)},n=function n(o){L(o,!1,e),N(t,i,n)};D(t,i,n)},j=["IMG","IFRAME","VIDEO"],B=function(e,i,n){t(e,n),i.unobserve(e)},H=function(t){var e=v(t);e&&(clearTimeout(e),g(t,null))},M=function(t,e,i){var n=i._settings.load_delay,o=v(t);o||(o=setTimeout(function(){B(t,e,i),H(t)},n),g(t,o))},F=function(t){return t.isIntersecting||t.intersectionRatio>0},z=function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}},W=function(t,e){this._settings=u(t),this._setObserver(),this._loadingCount=0,this.update(e)};return W.prototype={_manageIntersection:function(t){var e=this._observer,i=this._settings.load_delay,n=t.target;i?F(t)?M(n,e,this):H(n):F(t)&&B(n,e,this)},_onIntersection:function(t){t.forEach(this._manageIntersection.bind(this))},_setObserver:function(){o&&(this._observer=new IntersectionObserver(this._onIntersection.bind(this),z(this._settings)))},_updateLoadingCount:function(t){this._loadingCount+=t,0===this._elements.length&&0===this._loadingCount&&O(this._settings.callback_finish)},update:function(t){var e=this,i=this._settings,o=t||i.container.querySelectorAll(i.elements_selector);this._elements=y(Array.prototype.slice.call(o)),!n&&this._observer?this._elements.forEach(function(t){e._observer.observe(t)}):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(e,i){t(e,this,i)},loadAll:function(){var t=this;this._elements.forEach(function(e){t.load(e)})}},i&&function(t,e){if(e)if(e.length)for(var i,n=0;i=e[n];n+=1)b(t,i);else b(t,e)}(W,window.lazyLoadOptions),W})},function(t,e,i){"use strict";!function(){function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");
vendor: 5,298 bytes, line 233
233this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var o=0,s=e.length;s>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},o=window.Waypoint,s=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll,s=o?n.forward:n.backward;for(var r in this.waypoints[i]){var a=this.waypoints[i][r];if(null!==a.triggerPoint){var l=n.oldScroll<a.triggerPoint,c=n.newScroll>=a.triggerPoint,d=l&&c,u=!l&&!c;(d||u)&&(a.queueTrigger(s),t[a.group.id]=a.group)}}}for(var f in t)t[f].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;o>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var s in t){var r=t[s];for(var a in this.waypoints[s]){var l,c,d,u,f,p=this.waypoints[s][a],h=p.options.offset,m=p.triggerPoint,g=0,v=null==m;p.element!==p.element.window&&(g=p.adapter.offset()[r.offsetProp]),"function"==typeof h?h=h.apply(
233p):"string"==typeof h&&(h=parseFloat(h),p.options.offset.indexOf("%")>-1&&(h=Math.ceil(r.contextDimension*h/100))),l=r.contextScroll-r.contextOffset,p.triggerPoint=Math.floor(g+l-h),c=m<r.oldScroll,d=p.triggerPoint>=r.oldScroll,u=c&&d,f=!c&&!d,!v&&u?(p.queueTrigger(r.backward),n[p.group.id]=p.group):!v&&f?(p.queueTrigger(r.forward),n[p.group.id]=p.group):v&&r.oldScroll>=p.triggerPoint&&(p.queueTrigger(r.forward),n[p.group.id]=p.group)}}return o.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){s&&s(),e.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=e}(),function(){function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},o=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var s=0,r=n.length;r>s;s+=1){var a=n[s];(a.options.continuous||s===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},o.Group=i}(),function(){function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var o=t.extend({},n,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),i.push(new e(o))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e,i){"use strict";!function(){function t(n){this.options=e.extend({},i.defaults,t.defaults,n),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}var e=window.jQuery,i=window.Waypoint;t.prototype.createWaypoint=function(){var t=this.options.handler;this.waypoint=new i(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var i=this.options.direction.indexOf(e)>-1,n=i?this.$element.outerHeight(!0):"";this.$wrapper.height(n),this.$element.toggleClass(this.options.stuckClass,i),t&&t.call(this,e)},this)}))},t.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},t.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},t.defaults={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck",direction:"down right"},i.Sticky=t}()}
233,function(t,e,i){"use strict";var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,i){i(4),t.exports=i(5)}]);/** 234 * 2007-2020 PrestaShop. 235 * 236 * NOTICE OF LICENSE 237 * 238 * This source file is subject to the Academic Free License 3.0 (AFL-3.0) 239 * that is bundled with this package in the file LICENSE.txt. 240 * It is also available through the world-wide-web at this URL: 241 * https://opensource.org/licenses/AFL-3.0 242 * If you did not receive a copy of the license and are unable to 243 * obtain it through the world-wide-web, please send an email 244 * to [email protected] so we can send you a copy immediately. 245 * 246 * DISCLAIMER 247 * 248 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 249 * versions in the future. If you wish to customize PrestaShop for your 250 * needs please refer to http://www.prestashop.com for more information. 251 * 252 * @author PrestaShop SA <[email protected]> 253 * @copyright 2007-2020 PrestaShop SA 254 * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) 255 * International Registered Trademark & Property of PrestaShop SA 256 */ 257$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0} 258$('.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})});/** 259 * 2007-2015 PrestaShop 260 * 261 * NOTICE OF LICENSE 262 * 263 * This source file is subject to the Academic Free License (AFL 3.0) 264 * that is bundled with this package in the file LICENSE.txt. 265 * It is also available through the world-wide-web at this URL: 266 * http://opensource.org/licenses/afl-3.0.php 267 * If you did not receive a copy of the license and are unable to 268 * obtain it through the world-wide-web, please send an email 269 * to [email protected] so we can send you a copy immediately. 270 * 271 * DISCLAIMER 272 * 273 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 274 * versions in the future. If you wish to customize PrestaShop for your 275 * needs please refer to http://www.prestashop.com for more information. 276 * 277 * @author PrestaShop SA <[email protected]> 278 * @copyright 2007-2015 PrestaShop SA 279 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 280 * International Registered Trademark & Property of PrestaShop SA 281 */ 282function addNotification(){var ids=$('div.js-mailalert input[type=hidden]');$.ajax({type:'POST',url:$('div.js-mailalert').data('url'),data:'id_product='+ids[0].value+'&id_product_attribute='+ids[1].value+'&customer_email='+$('div.js-mailalert input[type=email]').val(),success:function(resp){resp=JSON.parse(resp);$('div.js-mailalert span').html(resp.message).show();if(!resp.error){$('div.js-mailalert a').hide();$('div.js-mailalert input[type=email]').hide()}}});return!1} 283$('document').ready(function(){$('.js-remove-email-alert').click(function(){var self=$(this);var ids=self.attr('rel').replace('js-id-emailalerts-','');ids=ids.split('-');var id_product_mail_alert=ids[0];var id_product_attribute_mail_alert=ids[1];var parent=self.closest('li');$.ajax({url:self.data('url'),type:"POST",data:{'id_product':id_product_mail_alert,'id_product_attribute':id_product_attribute_mail_alert},success:function(result){if(result=='0'){parent.fadeOut("normal",function(){parent.remove()})}}})})});/*! For license information please see front.2.0.5.js.LICENSE.txt */ 284(()=>{var t={1669:t=>{"use strict";t.exports=jQuery}},n={};var d=function d(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,d),r.exports}(1669),e=function(){var t=d(".js-product-miniature");Array.from(t).forEach((function(t){var n=d(t).find(".thumbnail-container"),e=d(t).find(".highlighted-informations");
284if(d(t).find(".ts-wdg-loc-pl-wrapper").length>0&&(i(t),!n.find(".thumbnail-top").length)){n.prepend(d('<div class="thumbnail-top"></div>'));var r=d(t).find(".thumbnail-top"),o=d(t).find(".product-thumbnail");r.append(o),r.append(e)}}))},i=function(t){setTimeout((function(){var n=d(t).find(".ts-wdg-loc-pl-wrapper"),e=d(t).find(".thumbnail-container");e.addClass("with-ts-widget"),(n.height()>65||0==n.height())&&e.addClass("with-ts-widget-expanded")}),500)};d((function(){var t=d(".ts-wdg-loc-pd-wrapper"),n=d(".ts-wdg-loc-pn-wrapper"),i=d("etrusted-product-review-list-widget-product-star-extension"),r=d(".ts-wdg-loc-hd-wrapper"),o=d(".header-top .container");d("#description").length&&(void 0!==window.controller?"product"===window.controller&&t.detach().appendTo(d("body").find("#description")):t.detach().appendTo(d("body").find("#description"))),void 0!==window.controller?"product"===window.controller&&(n.detach().insertAfter(d("body").find("h1")),i.detach().insertAfter(d("body").find("h1"))):(n.detach().insertAfter(d("body").find("h1")),i.detach().insertAfter(d("body").find("h1"))),"undefined"!=typeof prestashop&&prestashop.on("updateProductList",(function(){e()}));var a=function(){o.append(r)};r.length&&(r.addClass("row"),a()),d(window).on("resize",(function(){a()}))})),d(window).on("load",(function(){return e()}))})();/** 285 * Advanced Anti Spam Google reCAPTCHA PrestaShop Module. 286 * 287 * @author ReduxWeb <[email protected]> 288 * @copyright 2017-2020 289 * @license LICENSE.txt 290 */ 291var AdvancedEmailGuard=function(){"use strict";var n,c,o,i,s={},t="65 100 118 97 110 99 101 100 32 65 110 116 105 32 83 112 97 109 32 71 111 111 103 108 101 32 114 101 67 65 80 84 67 72 65 32 40 99 41 32 67 111 112 121 114 105 103 104 116 32 50 48 49 55 45 50 48 50 48 32 82 101 100 117 120 87 101 98 32 119 119 119 46 114 101 100 117 120 119 101 98 46 110 101 116",e="AdvancedEmailGuard",a=e+"Data",r=e+"InitRecaptcha",h="g-recaptcha-response",p="adveg-grecaptcha";s.booted=!1,s.debug=!1,s.recaptchaForms={},s.googleRecaptchaCallback=null,s.googleRecaptchaCallbackBefore=null;function u(){return t.split(" ").map(function(t){return String.fromCharCode(t)}).join("").replace("{{date}}",(new Date).getFullYear())}function m(t,e,r){function o(t){return(t=(t=(""+t).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?t.split("."):[-8]}function i(t){return t?isNaN(t)?s[t]||-7:parseInt(t,10):0}var a,n,c=0,s={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};for(t=o(t),e=o(e),n=Math.max(t.length,e.length),a=0;a<n;a++)if(t[a]!==e[a]){if(t[a]=i(t[a]),e[a]=i(e[a]),t[a]<e[a]){c=-1;break}if(t[a]>e[a]){c=1;break}}if(!r)return c;switch(r){case">":case"gt":return 0<c;case">=":case"ge":return 0<=c;case"<=":case"le":return c<=0;case"===":case"=":case"eq":return 0===c;case"<>":case"!==":case"ne":return 0!==c;case"":case"<":case"lt":return c<0;default:return}}var l={},d={},f=0;s.extends=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};function b(t){return null!==t&&"object"==typeof t}function g(t){return null!=t}s.queryToObj=function(t){var r={};return"string"!=typeof t||(0===(t=t.replace(/^\&+|\&+$/g,"")).lastIndexOf("?")&&(t=t.substr(1)),t.split("&").forEach(function(t){var e=t.split("=");r[e[0]]=decodeURIComponent(e[1])})),r};var y=function(){s.registerFormSelectors("contact_us",m(o.shopVersion,"1.7.6",">=")?"form:has(button[name=submitMessage], input[name=submitMessage])":"form:not(#id_new_comment_form):has(button[name=submitMessage], input[name=submitMessage])"),s.registerFormSelectors("register",m(o.shopVersion,"1.7",">=")?"body:not(#checkout) form:has(button[name=submitCreate], input[name=submitCreate])":S()?"#opc_account_form:visible:has(button[name=submitAccount], input[name=submitAccount])":"form:has(button[name=submitAccount], input[name=submitAccount])"),s.registerFormSelectors("login",m(o.shopVersion,"1.7",">=")?"form:has(button[name=submitLogin], input[name=submitLogin])":"form:has(button[name=SubmitLogin], input[name=SubmitLogin])"),s.registerFormSelectors("reset_password",m(o.shopVersion,"1.7",">=")?"form.forgotten-password":"#form_forgotpassword",m(o.shopVersion,"1.7",">=")?"button[type=submit]:visible, input[type=submit]:visible":"button[type=submit], input[type=submit]"),s.registerFormSelectors("quick_order",m(o.shopVersion,"1.7",">=")?"body#checkout form:has(button[name=submitCreate], input[name=submitCreate])":S()?"#opc_account_form:visible:has(button[name=submitGuestAccount], input[name=submitGuestAccount])":"#new_account_form"),s.registerFormSelectors("newsletter",m
291(o.shopVersion,"1.6","<")?"form:has(button[name=submitNewsletter], input[name=submitNewsletter]):visible":"form:has(button[name=submitNewsletter], input[name=submitNewsletter])",m(o.shopVersion,"1.7",">=")?"button[type=submit]:visible, input[type=submit]:visible":"button[type=submit], input[type=submit]"),s.registerFormSelectors("write_review",m(o.shopVersion,"1.7.6",">=")?"#post-product-comment-form":"#id_new_comment_form"),s.registerFormSelectors("notify_when_in_stock",n.isLegacyMAModuleEnabled?"form:has(#mailalert_link)":".js-mailalert"),s.registerFormSelectors("send_to_friend","#send_friend_form_content")};s.registerFormSelectors=function(t,e,r){l[t]={form:e,submit:r||"button[type=submit], input[type=submit]"}};var F=function(){window[r]=function(){"function"==typeof s.googleRecaptchaCallbackBefore&&s.googleRecaptchaCallbackBefore(),v(),"function"==typeof s.googleRecaptchaCallback&&s.googleRecaptchaCallback()}},R=function(){var t="?render=explicit&onload="+r;"shop"===c.recaptcha.language&&(t+="&hl="+o.languageCode),$("head").append('<script src="https://www.google.com/recaptcha/api.js'+t+'"><\/script>')},v=function(){for(var t in"v3"===c.recaptcha.type&&(f=grecaptcha.render(p,{sitekey:c.recaptcha.key,badge:c.recaptcha.position,theme:c.recaptcha.theme,size:"invisible"}),c.recaptcha.hidden&&$("#"+p).hide()),c.recaptcha.forms){switch(s.recaptchaForms[t]=[],t){case"register":m(o.shopVersion,"1.7","<")&&($(document).ajaxSuccess(function(t,e,r,o){var i=s.queryToObj(r.data);"authentication"===i.controller&&g(i.SubmitCreate)&&!o.hasError&&setTimeout(function(){s.initRecaptchaForm("register")},700)}),S()&&($(document).on("click","#opc_createAccount",function(){setTimeout(function(){s.initRecaptchaForm("register")},700)}),$(document).ajaxSend(function(t,e,r){var o=s.queryToObj(r.data);"true"===o.ajax&&g(o.submitAccount)&&"1"===o.is_new_customer&&(r.data+=s.getRecFormTokenAsPayload("register"))})));break;case"login":S()&&$(document).ajaxSend(function(t,e,r){var o=s.queryToObj(r.data);"true"===o.ajax&&g(o.SubmitLogin)&&(r.data+=s.getRecFormTokenAsPayload("login"))});break;case"quick_order":S()&&($(document).on("click","#opc_guestCheckout",function(){setTimeout(function(){s.initRecaptchaForm("quick_order")},700)}),$(document).ajaxSend(function(t,e,r){var o=s.queryToObj(r.data);"true"===o.ajax&&g(o.submitAccount)&&"0"===o.is_new_customer&&(r.data+=s.getRecFormTokenAsPayload("quick_order"))}));break;case"notify_when_in_stock":var a=n.isLegacyMAModuleEnabled?"mailalerts":"ps_emailalerts";$(document).ajaxSend(function(t,e,r){r.url.includes(a)&&r.url.includes("process=add")&&(r.data+=s.getRecFormTokenAsPayload("notify_when_in_stock"))}),n.isLegacyMAModuleEnabled||$(document).ajaxSuccess(function(t,e,r,o){var i=s.queryToObj(r.data);r.url.includes("controller=product")&&"refresh"===i.action&&s.initRecaptchaForm("notify_when_in_stock")}),k()&&$(document).ajaxSuccess(function(t,e,r,o){if(r.url.includes(a)&&/process=(add|check)/.test(r.url)){var i=!1;if(n.isLegacyMAModuleEnabled)i="1"===o;else try{i=!1===JSON.parse(o).error}catch(t){}i&&g(s.recaptchaForms.notify_when_in_stock)&&s.recaptchaForms.notify_when_in_stock.forEach(function(t){t.$submit.is(":visible")||t.hideWidget()})}});break;case"send_to_friend":$(document).ajaxSend(function(t,e,r){"sendToMyFriend"===s.queryToObj(r.data).action&&(r.data+=s.getRecFormTokenAsPayload("send_to_friend"))})}s.initRecaptchaForm(t)}};s.initRecaptchaForm=function(r){if(!g(l[r]))throw new Error('No selector defined for the "'+r+'" form type.');var o=l[r],i=c.recaptcha.forms[r];if(!g(i))throw new Error('No params defined for the "'+r+'" form type.');var a=r.replace(/^[a-z]|([-_][a-z])/gi,function(t){return t.toUpperCase().replace("-","").replace("_","")})+"Form";
291g(s[a])||(a="RecaptchaForm"),$(o.form).each(function(){var e=$(this),t=e.find(o.submit).first();s.recaptchaForms[r].some(function(t){return e.is(t.$form)})||s.recaptchaForms[r].push(new s[a](r,i,e,t))})},s.getRecFormWithToken=function(t){if(!g(s.recaptchaForms[t]))return null;for(var e=0;e<s.recaptchaForms[t].length;e++)if(""!==s.recaptchaForms[t][e].token)return s.recaptchaForms[t][e];return null},s.getRecFormTokenAsPayload=function(t){var e=s.getRecFormWithToken(t);if(null===e)return"";var r=e.token;return e.onRecaptchaTokenExpired(),"&"+h+"="+r},s.getRecV3ID=function(){return f};var k=function(){return"v2_cbx"===c.recaptcha.type||"inline"===c.recaptcha.position},S=function(){return n.isLegacyOPCEnabled&&"order-opc"===o.pageName};return s.RecaptchaForm=function(t,e,r,o){this.recID=0,this.name=t,this.params=e,this.$form=r,this.$submit=o,this.$inner=null,this.$outer=null,this.token="",this.origHandler=null,this.init()},s.RecaptchaForm.prototype.getFormElement=function(){return this.$form.get(0)},s.RecaptchaForm.prototype.getSubmitElement=function(){return this.$submit.get(0)},s.RecaptchaForm.prototype.init=function(){this.setSubmitHandler(),"v2_cbx"===c.recaptcha.type&&this.disableSubmitBtn(),"v3"!==c.recaptcha.type&&this.addRecaptchaWidget()},s.RecaptchaForm.prototype.disableSubmitBtn=function(){this.$submit.prop("disabled",!0).addClass("adveg-grecaptcha-btn-disabled")},s.RecaptchaForm.prototype.enableSubmitBtn=function(){this.$submit.prop("disabled",!1).removeClass("adveg-grecaptcha-btn-disabled")},s.RecaptchaForm.prototype.setSubmitHandler=function(){this.$form.submit(this.onFormSubmit.bind(this))},s.RecaptchaForm.prototype.onFormSubmit=function(t){"v2_cbx"!==c.recaptcha.type&&(""===this.token?("v3"===c.recaptcha.type?(this.disableSubmitBtn(),grecaptcha.execute(f,{action:this.name}).then(this.onRecaptchaToken.bind(this),this.onRecaptchaError.bind(this))):grecaptcha.execute(this.recID),t.preventDefault()):this.insertInputWithToken())},s.RecaptchaForm.prototype.setSubmitFormHandler=function(){var t=this.getFormElement();if(!g(d[this.name])){var e=$._data(t,"events");if(!Array.isArray(e.submit)||0===e.submit.length)return;d[this.name]=e.submit[0].handler}this.origHandler=d[this.name].bind(t),this.$form.off("submit"),this.$form.submit(this.onFormSubmitProxy.bind(this))},s.RecaptchaForm.prototype.setSubmitClickHandler=function(){if(!g(d[this.name])){var t=$._data(this.getSubmitElement(),"events");if(!Array.isArray(t.click)||0===t.click.length)return;d[this.name]=t.click[0].handler}this.origHandler=d[this.name],this.$submit.off("click"),this.$submit.click(this.onFormSubmitProxy.bind(this))},s.RecaptchaForm.prototype.setDocClickHandler=function(e){if(!g(d[this.name])){var t=$._data(document,"events").click.find(function(t){return t.selector===e});if(!t)return;d[this.name]=t.handler}this.origHandler=d[this.name],$(document).off("click",e),$(document).on("click",e,this.onFormSubmitProxy.bind(this))},s.RecaptchaForm.prototype.setGlobalFuncHandler=function(t){if(!g(d[this.name])){if(!g(window[t]))return;d[this.name]=window[t]}this.origHandler=d[this.name],window[t]=this.onFormSubmitProxy.bind(this)},s.RecaptchaForm.prototype.onFormSubmitProxy=function(t){if("v2_cbx"===c.recaptcha.type?(this.origHandler(t),this.disableSubmitBtn(),grecaptcha.reset(this.recID)):""===this.token?("v3"===c.recaptcha.type?(this.disableSubmitBtn(),grecaptcha.execute(f,{action:this.name}).then(this.onRecaptchaToken.bind(this),this.onRecaptchaError.bind(this))):grecaptcha.execute(this.recID),g(t)&&t.preventDefault()):(this.insertInputWithToken(),this.origHandler(t),"v3"===c.recaptcha.type?this.onRecaptchaTokenExpired():grecaptcha.reset(this.recID)),!g(t))return!1},s.RecaptchaForm.prototype.onRecaptchaToken=function(t){this.token=t,"v2_inv"!==c.recaptcha.type&&this.enableSubmitBtn(),"v2_cbx"!==c.recaptcha.type&&this.submitForm()},s.RecaptchaForm.prototype.onRecaptchaTokenExpired=function(){this.token="","v2_cbx"===c.recaptcha.type&&this.disableSubmitBtn()},s.RecaptchaForm.prototype.onRecaptchaError=function(){"v3"===c.recaptcha.type&&this.enableSubmitBtn(),alert("reCAPTCHA: "+i.genericError)},s.RecaptchaForm.prototype.insertInputWithToken=function(){var t;"v3"===c.recaptcha.type&&(0===(t=this.$form.find("textarea[name="+h+"]")).length&&(t=$('<textarea name="'+h+'" style="display: none;"></textarea>'),this.$form.append(t)),t.val(this.token))},s.RecaptchaForm.prototype.submitForm=function(){this.$submit.click()},s.RecaptchaForm.prototype.addRecaptchaWidget=function(){this.createRecaptchaContainer(),this.insertRecaptchaContainer(),this.renderRecaptchaWidget()},s.RecaptchaForm.prototype.createRecaptchaContainer=function(){var t;this.$inner=$('<div class="adveg-grecaptcha" />'),this.$outer=this.$inner,k()?(this.$inner.addClass("adveg-grecaptcha-inline"),t=this.$submit.parent().parent().hasClass("row"),"offset"===this.params.align?(this.$outer=this.$inner.wrap("<div />").parent(),this.$outer.addClass("col-md-"+(12-this.params.offset)+" col-md-offset-"+this.params.offset+" offset-md-"+this.params.offset),t||(this.$outer=this.$outer.wrap('<div class="row" />').parent())):(this.$inner.addClass("adveg-grecaptcha-"+this.params.align),t&&(this.$outer=this.$outer.wrap('<div class="col-xs-12" />').parent()))):this.$inner.addClass("adveg-grecaptcha-fixed")},s.RecaptchaForm.prototype.insertRecaptchaContainer=function(){this.$submit.parent().before(this.$outer),k()&&this.$outer.before('<div class="clearfix" />')},s.RecaptchaForm.prototype.renderRecaptchaWidget=function(){this.recID=grecaptcha.render(this.getWidgetContainer(),this.getRecaptchaParams()),c.recaptcha.hidden&&"v2_cbx"!==c.recaptcha.type&&this.hideWidget()},s.RecaptchaForm.prototype.getRecaptchaParams=function(){var t={sitekey:c.recaptcha.key,callback:this.onRecaptchaToken.bind(this),"expired-callback":this.onRecaptchaTokenExpired.bind(this),"error-callback":this.onRecaptchaError.bind(this),theme:c.recaptcha.theme};return"v2_cbx"===c.recaptcha.type?t.size=this.params.size:(t.size="invisible",t.isolated=!0,t.badge=c.recaptcha.position),t},s.RecaptchaForm.prototype.getWidgetContainer=function(){return this.$inner.get(0)},s.RecaptchaForm.prototype.hideWidget=function(){"v3"!==c.recaptcha.type&&this.$outer.hide()},s.RegisterForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.RegisterForm,s.RecaptchaForm),s.RegisterForm.prototype.setSubmitHandler=function(){S()?m(o.shopVersion,"1.6",">=")?this.setDocClickHandler("#submitAccount, #submitGuestAccount"):this.setSubmitClickHandler():s.RecaptchaForm.prototype.setSubmitHandler.call(this)},s.RegisterForm.prototype.insertRecaptchaContainer=function(){m(o.shopVersion,"1.5",">=")&&m(o.shopVersion,"1.6","<")&&!S()&&0!==this.$form.find("fieldset").length?this.$form.find("fieldset:last").append(this.$outer):s.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},s.LoginForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.LoginForm,s.RecaptchaForm),s.LoginForm.prototype.setSubmitHandler=function(){S()?m(o.shopVersion,"1.6",">=")?this.setDocClickHandler("#SubmitLogin"):this.setSubmitClickHandler():s.RecaptchaForm.prototype.setSubmitHandler.call(this)},s.QuickOrderForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.QuickOrderForm,s.RecaptchaForm),s.QuickOrderForm.prototype.setSubmitHandler=function(){S()?m(o.shopVersion,"1.6",">=")?this.setDocClickHandler("#submitAccount, #submitGuestAccount"):this.setSubmitClickHandler():s.RecaptchaForm.prototype.setSubmitHandler.call(this)},s.QuickOrderForm.prototype.insertRecaptchaContainer=function(){m(o.shopVersion,"1.6",">=")&&m(o.shopVersion,"1.7","<")&&!S()&&0!==this.$form.find(".box").length?this.$form.find(".box:last").append(this.$outer):m(o.shopVersion,"1.5",">=")&&m(o.shopVersion,"1.6","<")&&!S()&&0!==this.$form.find("fieldset:last").length?this.$form.find("fieldset:last").append(this.$outer):s.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},s.NewsletterForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.NewsletterForm,s.RecaptchaForm),s.NewsletterForm.prototype.insertRecaptchaContainer=function(){"flex"===this.$submit.closest("div").css("display")?this.$submit.closest("div").before(this.$outer):s.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},s.WriteReviewForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.WriteReviewForm,s.RecaptchaForm),s.WriteReviewForm.prototype.setSubmitHandler=function(){m(o.shopVersion,"1.6","<")||m(o.shopVersion,"1.7",">=")?m(o.shopVersion,"1.7.6",">=")?this.setSubmitFormHandler():this.setSubmitClickHandler():this.setDocClickHandler("#"+this.$submit.attr("id"))},s.WriteReviewForm.prototype.insertRecaptchaContainer=function(){m(o.shopVersion,"1.7.6",">=")?(this.$submit.parent().before(this.$outer),k()?this.$submit.closest(".post-comment-buttons").addClass("offset-md-6 offset-sm-6 col-md-offset-6 col-sm-offset-6"):function(){for(var t in s.recaptchaForms)if(0<s.recaptchaForms[t].length)return!0;return!1}()||this.$form.closest(".modal-dialog").attr("style","-webkit-transform: none!important; transform: none!important;")):s.RecaptchaForm.prototype.insertRecaptchaContainer.call(this)},s.NotifyWhenInStockForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.NotifyWhenInStockForm,s.RecaptchaForm),s.NotifyWhenInStockForm.prototype.setSubmitHandler=function(){this.setGlobalFuncHandler("addNotification")},s.NotifyWhenInStockForm.prototype.insertRecaptchaContainer=function(){this.$submit.before(this.$outer)},s.SendToFriendForm=function(t,e,r,o){s.RecaptchaForm.call(this,t,e,r,o)},s.extends(s.SendToFriendForm,s.RecaptchaForm),s.SendToFriendForm.prototype.setSubmitHandler=function(){this.setSubmitClickHandler()}
291,s.run=function(){return s.booted||(b(window[a])&&(r=window[a],n=r.meta,c=r.settings,o=r.context,i=r.trans,null!==n.validationError&&(t=0,(e=$('<div id="adveg-validation-failed" style="display: none;"><div><div>'+n.validationError+'</div><button type="button"><span>×</span></button></div></div>')).appendTo("body"),e.find("button:first").on("click",function(){clearTimeout(t),e.slideUp(200)}),setTimeout(function(){e.slideDown(200),t=setTimeout(function(){e.slideUp(200)},4500)},700)),b(c.recaptcha.forms)&&(y(),F(),R())),s.booted=!0),u;var t,e,r},s}();document.addEventListener("DOMContentLoaded",AdvancedEmailGuard.run),String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===e&&(e=0),-1!==this.indexOf(t,e)});/** 292* 2007-2017 PrestaShop 293* 294* NOTICE OF LICENSE 295* 296* This source file is subject to the Academic Free License (AFL 3.0) 297* that is bundled with this package in the file LICENSE.txt. 298* It is also available through the world-wide-web at this URL: 299* http://opensource.org/licenses/afl-3.0.php 300* If you did not receive a copy of the license and are unable to 301* obtain it through the world-wide-web, please send an email 302* to [email protected] so we can send you a copy immediately. 303* 304* DISCLAIMER 305* 306* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 307* versions in the future. If you wish to customize PrestaShop for your 308* needs please refer to http://www.prestashop.com for more information. 309* 310* @author PrestaShop SA <[email protected]> 311* @copyright 2007-2017 PrestaShop SA 312* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 313* International Registered Trademark & Property of PrestaShop SA 314* 315* Don't forget to prefix your containers with your own identifier 316* to avoid any conflicts with others containers. 317*/ 318$(document).ready(function(){var hide_others=!1;var payment_forms=$("form#payment-form");payment_forms.each(function(index){var aux=$(this).attr('action');if(is_seur_cod(aux)){hide_others=!0}});payment_forms.each(function(index){var aux=$(this).attr('action');if(hide_others&&is_cod(aux)){$('#payment-option-'+eval(index+1)+'-container').hide()}});var payment_modules=$(".payment_module");payment_modules.each(function(index){var aux=$(this).find('a').attr('href');if(is_seur_cod(aux)){hide_others=!0}});payment_modules.each(function(index){var aux=$(this).find('a').attr('href');if(hide_others&&is_cod(aux)){$(this).hide()}});function is_seur_cod(aux){return aux.search('seurcashondelivery')!=-1} 319function is_cod(aux){return(aux.search('cod')!==-1||aux.search('cashondelivery')!==-1||aux.search('reembolso')!==-1)&&(aux.search('seurcashondelivery')==-1)}});/** 320 * NOTICE OF LICENSE 321 * 322 * This file is licenced under the Software License Agreement. 323 * With the purchase or the installation of the software in your application 324 * you accept the licence agreement. 325 * 326 * You must not modify, adapt or create derivative works of this source code 327 * 328 * @author Doofinder 329 * @copyright Doofinder 330 * @license GPLv3 331 */ 332class 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"}} 333let 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} 334let 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});
334let 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} 335if(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} 336if(event&&event.eventType&&('updateProductInCart'===event.eventType||'updateShoppingCart'===event.eventType||'updateCart'===event.eventType||'updateProductInCart'===event.eventType||'updateProductQuantityInCart'===event.eventType||'addProductToCart'===event.eventType)){let message="Unknown error";if(0===event.resp.readyState){message="The connection was interrupted while adding to the cart"} 337console.error(message);cartOptions.statusPromise.reject(new DoofinderAddToCartError(message))}})} 338submit.click();form.remove()} 339let doofinderManageCart=(cartOptions)=>{dfAddToCart(cartOptions)};/** 340 * NOTICE OF LICENSE 341 * 342 * This file is licenced under the Software License Agreement. 343 * With the purchase or the installation of the software in your application 344 * you accept the licence agreement. 345 * 346 * You must not modify, adapt or create derivative works of this source code 347 * 348 * @author www.mergado.cz 349 * @copyright 2016 Mergado technologies, s. r. o. 350 * @license LICENSE.txt 351 */ 352$(document).ready(function(){if(typeof glami!=='undefined'){$('.ajax_add_to_cart_button').on('click',function(){var $_currency=$(this).closest('li').find('[itemprop="priceCurrency"]').attr('content');var $_id=$(this).attr('data-id-product');var $_name=$(this).closest('li').find('.product-name').text().replace(/\t/g,'').trim();if($(this).attr('data-id-product-attribute')){$_id=$_id+'-'+$(this).attr('data-id-product-attribute')} 353glami('track','AddToCart',{item_ids:[$_id],product_names:[$_name],currency:$_currency,consent:window.mmp.cookies.sections.advertisement.onloadStatus})});$('#add_to_cart button').on('click',function(){var $_currency=$(this).closest('form').find('[itemprop="priceCurrency"]').attr('content');var $_id=$(this).closest('form').find('#product_page_product_id').val();var $_name=$('h1[itemprop="name"]').text();var $_price=$(this).closest('form').find('#our_price_display').text().replace(',','.').replace($('#mergadoSetup').attr('data-currencySymbol'),'').trim();if($(this).closest('form').find('#idCombination').length>0){$_id=$_id+'-'+$(this).closest('form').find('#idCombination').val()} 354glami('track','AddToCart',{item_ids:[$_id],product_names:[$_name],value:$_price,currency:$_currency,consent:window.mmp.cookies.sections.advertisement.onloadStatus})});$(document).ready(function(){$('.add-to-cart').on('click',addEvents);if(typeof prestashop!=='undefined'){prestashop.on('updatedProduct',function(){$('.add-to-cart').off('click',addEvents);$('.add-to-cart').on('click',addEvents)})}});function addEvents(){if($('#product-details[data-product]').length>0){var productJSON=JSON.parse($('#product-details[data-product]').attr('data-product'));var $_id=productJSON.id;var $_name=productJSON.name;var $_price=productJSON.price_amount;if(productJSON.id_product_attribute!==""){$_id=$_id+'-'+productJSON.id_product_attribute}}else{var $_id=$(this).closest('form').find('#product_page_product_id').val();var $_name=$('h1[itemprop="name"]').text();var $_price=$('.product-price').find('[itemprop="price"]').attr('content');if($_name===''){$_name=$('.modal-body h1').text()} 355if($(this).closest('form').find('#idCombination').length>0){$_id=$_id+'-'+$(this).closest('form').find('#idCombination').val()}} 356var $_currency=$('.product-price').find('[itemprop="priceCurrency"]').attr('content');glami('track','AddToCart',{item_ids:[$_id],product_names:[$_name],value:$_price,currency:$_currency,consent:window.mmp.cookies.sections.advertisement.onloadStatus})}}});/** 357 * NOTICE OF LICENSE 358 * 359 * This file is licenced under the Software License Agreement.
360 * With the purchase or the installation of the software in your application 361 * you accept the licence agreement. 362 * 363 * You must not modify, adapt or create derivative works of this source code 364 * 365 * @author www.mergado.cz 366 * @copyright 2016 Mergado technologies, s. r. o. 367 * @license LICENSE.txt 368 */ 369document.addEventListener("DOMContentLoaded",function(event){if(typeof fbq!=='undefined'){$('.ajax_add_to_cart_button').on('click',function(){var $_currency=$(this).closest('li').find('[itemprop="priceCurrency"]').attr('content');var $_id=$(this).attr('data-id-product');var $_name=$(this).closest('li').find('.product-name').text().replace(/\t/g,'').trim();if($(this).attr('data-id-product-attribute')){$_id=$_id+'-'+$(this).attr('data-id-product-attribute')} 370fbq('track','AddToCart',{content_name:$_name,content_ids:[$_id],content_type:'product',contents:[{'id':$_id,'quantity':1}],currency:$_currency,})});$('#add_to_cart button').on('click',function(){var $_currency=$(this).closest('form').find('[itemprop="priceCurrency"]').attr('content');var $_id=$(this).closest('form').find('#product_page_product_id').val();var $_name=$('h1[itemprop="name"]').text();var $_price=$(this).closest('form').find('#our_price_display').text().replace(',','.').replace($('#mergadoSetup').attr('data-currencySymbol'),'').trim();var $_quantity=$(this).closest('form').find('#quantity_wanted').val();if($(this).closest('form').find('#idCombination').length>0){$_id=$_id+'-'+$(this).closest('form').find('#idCombination').val()} 371fbq('track','AddToCart',{content_name:$_name,content_ids:[$_id],content_type:'product',contents:[{'id':$_id,'quantity':$_quantity}],currency:$_currency,})});if($('body#checkout').length>0||$('body#order').length>0||$('body#order-opc').length>0){if($('[data-mscd]').length>0&&$('[data-mscd-cart-id]').length>0){var items=JSON.parse($('[data-mscd]').attr('data-mscd'));var content_ids=[];var contents=[];var value=0;var num_items=0;var curr='';if(typeof prestashop!=='undefined'){curr=prestashop.currency.iso_code}else{curr=currency.iso_code} 372items.forEach(function(element){content_ids.push(element.id);contents.push({'id':element.id,'quantity':element.quantity});num_items=num_items+parseInt(element.quantity);value=value+parseFloat(element.price*element.quantity)});value=value.toFixed(2);fbq('track','InitiateCheckout',{content_ids:content_ids,contents:contents,value:value,currency:curr,num_items:num_items,})}} 373$(document).ready(function(){$('.add-to-cart').on('click',addEvents);if(typeof prestashop!=='undefined'){prestashop.on('updatedProduct',function(event){$('.add-to-cart').off('click',{data:event},addEvents);$('.add-to-cart').on('click',{data:event},addEvents);sendCustomizationEvent(event)})}else{setMutationObserver()}});function addEvents(event){if($('#product-details[data-product]').length>0){var productJSON=JSON.parse($('#product-details[data-product]').attr('data-product'));var $_id=productJSON.id;var $_name=productJSON.name;var $_price=productJSON.price_amount;var $_category=productJSON.category_name;var $_quantity=$(this).closest('form').find('#quantity_wanted').val();if(productJSON.id_product_attribute!==""&&productJSON.id_product_attribute!=0){$_id=$_id+'-'+productJSON.id_product_attribute}}else{var $_id=$(this).closest('form').find('#product_page_product_id').val();var $_name=$('h1[itemprop="name"]').text();var $_price=$('.product-price').find('[itemprop="price"]').attr('content');var $_category='';if($_name===''){$_name=$('.modal-body h1').text()} 374var $_quantity=$(this).closest('form').find('#quantity_wanted').val();if(!$_quantity){$_quantity=1} 375if(event&&event.data.data.id_product_attribute){$_id=$_id+'-'+event.data.data.id_product_attribute}else if($(this).closest('form').find('#idCombination').length>0){$_id=$_id+'-'+$(this).closest('form').find('#idCombination').val()}} 376var $_currency=$('.product-price').find('[itemprop="priceCurrency"]').attr('content');fbq('track','AddToCart',{content_name:$_name,content_category:$_category,content_ids:[$_id],contents:[{'id':$_id,'quantity':$_quantity}],content_type:'product',value:$_price,currency:$_currency,})} 377function sendCustomizationEvent(event=null,element=null){if($('#product-details[data-product]').length>0){var productJSON=JSON.parse($('#product-details[data-product]').attr('data-product'));var $_id=productJSON.id;var $_name=productJSON.name;var $_price=productJSON.price_amount;
377var $_category=productJSON.category_name;var $_quantity=$(this).closest('form').find('#quantity_wanted').val();if(!$_quantity){if($('body#product #quantity_wanted').length>0){$_quantity=$('body#product #quantity_wanted').val()}else{$_quantity=1}} 378if(event!==null&&event.id_product_attribute!=0){$_id=$_id+'-'+event.id_product_attribute}else if(productJSON.id_product_attribute!==""&&productJSON.id_product_attribute!=0){$_id=$_id+'-'+productJSON.id_product_attribute}}else{if(element==null){element=$('.modal .add-to-cart')} 379var $_id=$(element).closest('form').find('#product_page_product_id').val();var $_name=$('h1[itemprop="name"]').text();var $_price=$('.product-price').find('[itemprop="price"]').attr('content');var $_quantity=$(element).closest('form').find('#quantity_wanted').val();if($_name===''){$_name=$('.modal-body h1').text()} 380if(!$_quantity){$_quantity=1} 381if(event!==null&&event.id_product_attribute!=0){$_id=$_id+'-'+event.id_product_attribute}else if($(element).closest('form').find('#idCombination').length>0){$_id=$_id+'-'+$(element).closest('form').find('#idCombination').val()}} 382var $_currency=$('.product-price').find('[itemprop="priceCurrency"]').attr('content');fbq('track','CustomizeProduct',{content_name:$_name,content_ids:[$_id],contents:[{'id':$_id,'quantity':$_quantity}],content_type:'product',value:$_price,currency:$_currency,})} 383function setMutationObserver(){MutationObserver=window.MutationObserver||window.WebKitMutationObserver;var trackChange=function(element){var observer=new MutationObserver(function(mutations,observer){if(mutations[0].attributeName=="value"){$(element).trigger("change")}});observer.observe(element,{attributes:!0})} 384if($('#idCombination').length>0){trackChange($("#idCombination")[0])} 385$('#idCombination').on('change',function(){sendCustomizationEvent(null,$(this))})}}});document.addEventListener('DOMContentLoaded',function(){function ndxT(key,fallback){return(typeof ndx_i18n!=='undefined'&&ndx_i18n&&typeof ndx_i18n[key]==='string')?ndx_i18n[key]:fallback} 386if(typeof ndx_panel_html==='string'&&ndx_panel_html.length>0){if(!document.getElementById('ndx-chat-panel-root')){document.body.insertAdjacentHTML('beforeend',ndx_panel_html)}} 387function generarUUID(){var bytes;if(window.crypto&&typeof window.crypto.getRandomValues==='function'){bytes=new Uint8Array(16);window.crypto.getRandomValues(bytes)}else{bytes=new Array(16);for(var i=0;i<16;i++)bytes[i]=Math.floor(Math.random()*256);} 388bytes[6]=(bytes[6]&0x0f)|0x40;bytes[8]=(bytes[8]&0x3f)|0x80;var hex=[];for(var j=0;j<16;j++){var h=bytes[j].toString(16);if(h.length===1)h='0'+h;hex.push(h)} 389return hex[0]+hex[1]+hex[2]+hex[3]+'-'+hex[4]+hex[5]+'-'+hex[6]+hex[7]+'-'+hex[8]+hex[9]+'-'+hex[10]+hex[11]+hex[12]+hex[13]+hex[14]+hex[15]} 390let visitorId=localStorage.getItem('ndx_visitor_id');if(!visitorId){visitorId='ndx_vid_'+generarUUID();localStorage.setItem('ndx_visitor_id',visitorId)} 391let sessionId=localStorage.getItem('ndx_session_id')||null;let chatHistory=JSON.parse(localStorage.getItem('ndx_chat_history'))||[];let sugState=localStorage.getItem('ndx_sug_state')||'default';let sugArray=JSON.parse(localStorage.getItem('ndx_sug_array'))||[];const chatInterface=document.querySelector('.ai-chat-interface');const messagesContainer=document.getElementById('ai-chat-messages');const inputField=document.getElementById('ai-user-input');const sendBtn=document.getElementById('ai-send-btn');const titleElement=document.getElementById('ai-typing-title');window.iniciarConversacionIA=function(){if(chatInterface&&!chatInterface.classList.contains('ai-chat-started')){chatInterface.classList.add('ai-chat-started')}};function startTitleEffect(el){if(!el)return;var effect=(el.getAttribute('data-effect')||'typewriter').toLowerCase();if(effect==='slider'){var slider=parseSliderTexts(el.getAttribute('data-slider'));if(slider.length>0){var interval=parseInt(el.getAttribute('data-slider-interval'),10);if(isNaN(interval)||interval<500)interval=3000;runSlider(el,slider,interval);return}} 392runTypewriter(el)} 393function parseSliderTexts(csv){if(!csv)return[];var parts=csv.split(',');var out=[];for(var i=0;i<parts.length;i++){var s=parts[i].trim();if(s.length>0)out.push(s)} 394return out} 395function runTypewriter(el){var textToType=el.getAttribute('data-text')||'';var typingSpeed=60;var charIndex=0;el.textContent='';(function step(){if(charIndex<textToType.length){el.textContent+=textToType.charAt(charIndex);charIndex++;setTimeout(step,typingSpeed)}})()} 396function runSlider(el,words,interval){el.classList.add('ndx-title-slider');var idx=0;el.textContent=words[idx];el.classList.add('ndx-title-in');function tick(){if(chatInterface&&chatInterface.classList.contains('ai-chat-started')){return} 397el.classList.remove('ndx-title-in');el.classList.add('ndx-title-out');setTimeout(function(){idx=(idx+1)%words.length;el.textContent=words[idx];el.classList.remove('ndx-title-out');el.classList.add('ndx-title-in');sliderTimerId=setTimeout(tick,interval)},220)} 398var sliderTimerId=setTimeout(tick,interval)} 399function procesarEnlacesEnChat(){const urlRE=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)|(https?:\/\/[^\s"']+)/g;const chatRoot=document.getElementById('ai-chat-messages');if(!chatRoot)return;const linkifyElement=(el)=>{const walker=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,{acceptNode(node){if(!node.nodeValue||node.nodeValue.indexOf('http')===-1)return NodeFilter.FILTER_REJECT;const p=node.parentElement;
399if(!p||p.closest('a,code,pre,script,style'))return NodeFilter.FILTER_REJECT;return NodeFilter.FILTER_ACCEPT}});const texts=[];while(walker.nextNode())texts.push(walker.currentNode);texts.forEach((textNode)=>{const text=textNode.nodeValue;let last=0;const frag=document.createDocumentFragment();let any=!1;text.replace(urlRE,(match,mdText,mdUrl,rawUrl,offset)=>{if(offset>last)frag.appendChild(document.createTextNode(text.slice(last,offset)));let finalUrl="";let linkText="";let trailing="";if(mdText&&mdUrl){finalUrl=mdUrl;linkText=mdText}else if(rawUrl){finalUrl=rawUrl;const m=finalUrl.match(/([).,!?;:'"\]]+)$/);if(m){trailing=m[1];finalUrl=finalUrl.slice(0,-trailing.length)} 400linkText=finalUrl} 401if(/^(https?:|mailto:)/i.test((finalUrl||'').trim())){const a=document.createElement('a');a.href=finalUrl;a.textContent=linkText;a.target='_blank';a.rel='noopener noreferrer nofollow';a.classList.add('ai-chat-enlace');frag.appendChild(a)}else{frag.appendChild(document.createTextNode(linkText))} 402if(trailing)frag.appendChild(document.createTextNode(trailing));any=!0;last=offset+match.length;return match});if(!any)return;if(last<text.length)frag.appendChild(document.createTextNode(text.slice(last)));textNode.parentNode.replaceChild(frag,textNode)});el.dataset.linkified='1'};chatRoot.querySelectorAll('.ai-message:not([data-linkified="1"])').forEach(linkifyElement)} 403function renderMessage(text,sender,save=!0,attachment=null){window.iniciarConversacionIA();const row=document.createElement('div');row.classList.add('ai-message-row',sender);const avatar=document.createElement('div');avatar.className='ai-message-avatar';if(sender==='bot'){const avatarImg=document.createElement('img');avatarImg.className='ai-message-avatar-svg';var modulePath=(typeof ndx_module_path!=='undefined'&&ndx_module_path)?ndx_module_path:'/modules/ndxchat/';avatarImg.src=modulePath+'views/img/bot-avatar.svg';avatarImg.alt='';avatar.appendChild(avatarImg)}else{const avatarIcon=document.createElement('i');avatarIcon.className='fa fa-user';avatar.appendChild(avatarIcon)} 404const messageDiv=document.createElement('div');messageDiv.classList.add('ai-message',sender);text.split('\n').forEach(function(line,i,arr){messageDiv.appendChild(document.createTextNode(line));if(i<arr.length-1)messageDiv.appendChild(document.createElement('br'))});if(attachment&&attachment.filename){const attDiv=document.createElement('div');attDiv.className='ai-message-attachment';const attIcon=document.createElement('i');attIcon.className='fa fa-paperclip';const attName=document.createElement('span');attName.className='ai-message-attachment-name';attName.textContent=attachment.filename;attDiv.appendChild(attIcon);attDiv.appendChild(attName);messageDiv.appendChild(attDiv)} 405row.appendChild(avatar);row.appendChild(messageDiv);messagesContainer.appendChild(row);procesarEnlacesEnChat();messagesContainer.scrollTop=messagesContainer.scrollHeight;if(save){const entry={text:text,sender:sender};if(attachment)entry.attachment=attachment;chatHistory.push(entry);localStorage.setItem('ndx_chat_history',JSON.stringify(chatHistory))}} 406const defaultDiv=document.getElementById('ai-default-suggestions');const dynamicDiv=document.getElementById('ai-dynamic-suggestions');const bulbBtn=document.getElementById('ai-toggle-bulb');function setSuggestionsVisible(visible){if(!defaultDiv)return;if(visible)defaultDiv.classList.remove('ndx-suggestions-collapsed');else defaultDiv.classList.add('ndx-suggestions-collapsed');if(bulbBtn){bulbBtn.classList.toggle('ndx-is-active',!!visible);bulbBtn.setAttribute('aria-expanded',visible?'true':'false')} 407try{localStorage.setItem('ndx_suggestions_collapsed',visible?'0':'1')}catch(e){}} 408if(bulbBtn&&defaultDiv){bulbBtn.setAttribute('aria-expanded','true');bulbBtn.addEventListener('click',function(){setSuggestionsVisible(defaultDiv.classList.contains('ndx-suggestions-collapsed'))})} 409function renderizarDinamicas(arrayDinamico=[]){if(!dynamicDiv)return;dynamicDiv.innerHTML='';if(arrayDinamico&&arrayDinamico.length>0){dynamicDiv.style.display='flex';arrayDinamico.forEach(sug=>{const bubble=document.createElement('div');bubble.className='ai-suggestion-bubble';const sugSpan=document.createElement('span');sugSpan.textContent=sug.text||'';bubble.appendChild(sugSpan);bubble.addEventListener('click',(e)=>{e.preventDefault();
409enviarMensajeAn8n(sug.text)});dynamicDiv.appendChild(bubble)});localStorage.setItem('ndx_sug_array',JSON.stringify(arrayDinamico))}else{dynamicDiv.style.display='none';localStorage.setItem('ndx_sug_array',JSON.stringify([]))}} 410function calcDeliveryDate(){var now=new Date();var h=now.getHours();var day=now.getDay();var days=['domingo','lunes','martes','miércoles','jueves','viernes','sábado'];var months=['ene','feb','mar','abr','may','jun','jul','ago','sep','oct','nov','dic'];var add=(day>=1&&day<=5&&h<14)?1:2;var target=new Date(now);var added=0;while(added<add){target.setDate(target.getDate()+1);var d=target.getDay();if(d!==0&&d!==6)added++} 411return days[target.getDay()]+' '+target.getDate()+' '+months[target.getMonth()]} 412function buildProductCard(prod,delivery){var card=document.createElement('a');card.href=prod.url||'#';card.target='_blank';card.rel='noopener noreferrer';card.className='ai-product-card';var imageUrl=(prod.image_url||'').replace(/^(https?:\/\/)+/,'https://').replace(/-[a-z]+_default(?=\.\w+$)/,'');if(imageUrl&&!imageUrl.startsWith('http')){imageUrl='https://'+imageUrl} 413if(imageUrl){var imgWrap=document.createElement('div');imgWrap.className='ai-product-card-img-wrap';var img=document.createElement('img');img.className='ai-product-card-img';img.src=imageUrl;img.alt=prod.name||'';img.loading='lazy';img.onerror=function(){imgWrap.style.display='none'};imgWrap.appendChild(img);card.appendChild(imgWrap)} 414var info=document.createElement('div');info.className='ai-product-card-info';var nameEl=document.createElement('span');nameEl.className='ai-product-card-name';nameEl.textContent=prod.name||'';info.appendChild(nameEl);if(prod.description){var descEl=document.createElement('p');descEl.className='ai-product-card-desc';descEl.textContent=prod.description;info.appendChild(descEl)} 415if(prod.price){var priceWrap=document.createElement('div');priceWrap.className='ai-product-card-price';var priceNum=document.createElement('span');priceNum.className='ai-product-card-price-num';priceNum.textContent=prod.price+'/m²';var priceVat=document.createElement('span');priceVat.className='ai-product-card-price-vat';priceVat.textContent=ndxT('vat_included',' IVA incluido');priceWrap.appendChild(priceNum);priceWrap.appendChild(priceVat);info.appendChild(priceWrap)} 416var shipWrap=document.createElement('div');shipWrap.className='ai-product-card-shipping';if(prod.available!==!1){var shipFree=document.createElement('span');shipFree.className='ai-product-card-ship-free';shipFree.textContent=ndxT('free_shipping','EnvÃÂo GRATIS');var shipSep=document.createElement('span');shipSep.className='ai-product-card-ship-sep';shipSep.textContent=' · ';var shipLabel=document.createElement('span');shipLabel.className='ai-product-card-ship-label';shipLabel.textContent=ndxT('estimated_delivery','Entrega est.: ');var shipDate=document.createElement('span');shipDate.className='ai-product-card-ship-date';shipDate.textContent=delivery;shipWrap.appendChild(shipFree);shipWrap.appendChild(shipSep);shipWrap.appendChild(shipLabel);shipWrap.appendChild(shipDate)}else{var unavail=document.createElement('span');unavail.className='ai-product-card-unavailable';unavail.textContent=ndxT('unavailable','No disponible');shipWrap.appendChild(unavail)} 417info.appendChild(shipWrap);card.appendChild(info);return card} 418function renderCardBubbles(arrayProductos,save){if(save===undefined)save=!0;window.iniciarConversacionIA();var productos=(arrayProductos||[]).slice(0,4);if(!productos.length)return;var delivery=calcDeliveryDate();productos.forEach(function(prod){var bubble=document.createElement('div');bubble.className='ai-card-bubble';bubble.appendChild(buildProductCard(prod,delivery));messagesContainer.appendChild(bubble)});messagesContainer.scrollTop=messagesContainer.scrollHeight;if(save){chatHistory.push({type:'cards',products:productos});localStorage.setItem('ndx_chat_history',JSON.stringify(chatHistory))}} 419function activarModoChat(){if(defaultDiv)defaultDiv.classList.add('ndx-suggestions-collapsed');if(bulbBtn)bulbBtn.setAttribute('aria-expanded','false');if(bulbBtn){var hasDefaults=defaultDiv&&defaultDiv.querySelectorAll('.ndx-suggestion-card').length>0;bulbBtn.style.display=hasDefaults?'flex':'none';bulbBtn.classList.remove('ndx-is-active')}} 420const clipBtn=document.getElementById('ai-clip-btn');const fileInput=document.getElementById('ai-file-input');const previewContainer=document.getElementById('ai-attachment-preview');const previewName=document.getElementById('ai-attachment-name');const removeAttachmentBtn=document.getElementById('ai-remove-attachment');let currentAttachment=null;if(clipBtn&&fileInput){clipBtn.addEventListener('click',()=>fileInput.click());fileInput.addEventListener('change',function(e){const file=e.target.files[0];if(!file)return;previewName.textContent=ndxT('uploading','Subiendo archivo...');previewContainer.style.setProperty('display','flex','important');currentAttachment=null;const formData=new FormData();
420formData.append('file_attachment',file);fetch(ps_ajax_url,{method:'POST',body:formData}).then(response=>response.json()).then(data=>{if(data.success){currentAttachment=data.attachment;previewName.textContent="📎 "+data.attachment.filename}else{alert("Error: "+data.error);previewContainer.style.setProperty('display','none','important')}}).catch(error=>{console.error("Error al subir archivo:",error);previewContainer.style.setProperty('display','none','important')});fileInput.value=''});removeAttachmentBtn.addEventListener('click',function(){currentAttachment=null;previewContainer.style.setProperty('display','none','important')})} 421function pickThinkingPhrases(msg,name){var m=(msg||'').toLowerCase();if(/(pedido|orden|referencia|env[ÃÂi]o|seguimiento|rastre|lleg|entrega|factura)/.test(m)){return[name+' '+ndxT('checking_order','está revisando tu pedido'),ndxT('checking_status','Consultando el estado en tiempo real'),ndxT('please_wait','Un momento, por favor')]} 422if(/(precio|cuesta|producto|modelo|comprar|cat[áa]logo|medida|talla|color|stock)/.test(m)){return[ndxT('searching_catalog','Buscando en el catálogo'),name+' '+ndxT('looking_options','está mirando opciones para ti'),ndxT('almost_ready','Casi listo')]} 423return[name+' '+ndxT('thinking','está pensando'),ndxT('please_wait','Un momento, por favor'),ndxT('preparing_answer','Preparando tu respuesta')]} 424function enviarMensajeAn8n(textoMensaje){const attachmentSnapshot=currentAttachment;renderMessage(textoMensaje,'user',!0,attachmentSnapshot);if(inputField){inputField.style.height='auto'} 425activarModoChat();renderizarDinamicas([]);const loadingId='loading-'+Date.now();var phraseTimer=null;const loadingRow=document.createElement('div');loadingRow.classList.add('ai-message-row','bot');loadingRow.id=loadingId;const loadingAvatar=document.createElement('div');loadingAvatar.className='ai-message-avatar';var modulePathLoading=(typeof ndx_module_path!=='undefined'&&ndx_module_path)?ndx_module_path:'/modules/ndxchat/';loadingAvatar.innerHTML='<img class="ai-message-avatar-svg" src="'+modulePathLoading+'views/img/bot-avatar.svg" alt="">';const loadingDiv=document.createElement('div');loadingDiv.classList.add('ai-message','bot','ndx-thinking-message');var thinkingText=document.createElement('span');thinkingText.className='ndx-thinking-text';var assistantName=(typeof ndx_assistant_name!=='undefined'&&ndx_assistant_name)?ndx_assistant_name:ndxT('assistant_fallback','Asistente');var thinkingPhrases=pickThinkingPhrases(textoMensaje,assistantName);var thinkingIdx=0;thinkingText.textContent=thinkingPhrases[0];var dots=document.createElement('span');dots.className='ndx-thinking-dots';dots.innerHTML='<span></span><span></span><span></span>';loadingDiv.appendChild(thinkingText);loadingDiv.appendChild(dots);phraseTimer=setInterval(function(){thinkingIdx=(thinkingIdx+1)%thinkingPhrases.length;thinkingText.textContent=thinkingPhrases[thinkingIdx]},2200);loadingRow.appendChild(loadingAvatar);loadingRow.appendChild(loadingDiv);messagesContainer.appendChild(loadingRow);messagesContainer.scrollTop=messagesContainer.scrollHeight;const payload={"store_id":typeof ps_store_id!=='undefined'?ps_store_id:0,"brand_key":typeof ps_brand_key!=='undefined'?ps_brand_key:'',"session_id":sessionId,"visitor_id":visitorId,"message":textoMensaje,"language":typeof ps_lang_iso!=='undefined'?ps_lang_iso:'es',"page_context":{"url":window.location.href,"type":typeof ps_page_type!=='undefined'?ps_page_type:"unknown","product_id":typeof ps_id_product!=='undefined'?ps_id_product:null,"category_id":typeof ps_id_category!=='undefined'?ps_id_category:null},"attachment":currentAttachment};currentAttachment=null;if(previewContainer)previewContainer.style.setProperty('display','none','important');if(sessionStorage.getItem('ndx_chat_disabled')==='1'){if(phraseTimer)clearInterval(phraseTimer);var disLoading=document.getElementById(loadingId);if(disLoading)disLoading.remove();renderMessage(ndxT('chat_unavailable','Chat no disponible.'),'bot',!1);return} 426var streamingOn=(typeof ndx_streaming_enabled!=='undefined'&&parseInt(ndx_streaming_enabled,10)===1);var supportsStreams=(typeof window.ReadableStream!=='undefined');if(streamingOn&&supportsStreams){sendChatMessageStream(payload,loadingId,phraseTimer,textoMensaje);return} 427fetch(ps_ajax_url,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(payload)}).then(function(response){return response.json().catch(function(){return{}}).then(function(data){return{ok:response.ok,status:response.status,headers:response.headers,data:data}})}).then(function(resp){if(phraseTimer)clearInterval(phraseTimer);var oldLoading=document.getElementById(loadingId);if(oldLoading)oldLoading.remove();if(resp.ok){var data=resp.data;if(data.session_id){sessionId=data.session_id;localStorage.setItem('ndx_session_id',sessionId)} 428var respuestaIA=data.response||data.message||ndxT('cannot_process','Recibàtu mensaje, pero no pude procesar la respuesta.');renderMessage(respuestaIA,'bot');
428if(data.products&&Array.isArray(data.products)&&data.products.length>0){renderCardBubbles(data.products);renderizarDinamicas([])}else if(data.suggestions&&Array.isArray(data.suggestions)&&data.suggestions.length>0){renderizarDinamicas(data.suggestions)}else{renderizarDinamicas([])} 429return} 430handleBackendError(resp,textoMensaje)}).catch(function(error){console.error("Error al conectar:",error);if(phraseTimer)clearInterval(phraseTimer);var errLoading=document.getElementById(loadingId);if(errLoading)errLoading.remove();renderRetryableError(ndxT('connection_error','No hemos podido conectar. Comprueba tu conexión e inténtalo de nuevo.'),textoMensaje)})} 431function handleBackendError(resp,originalMessage){var data=resp.data||{};var code=resp.status;var errorCode=(data.error_code||'').toString();var msg=(data.message||data.error||'').toString();if(code===403&&errorCode==='AGENT_DISABLED'){sessionStorage.setItem('ndx_chat_disabled','1');disableChatCompletely(msg||ndxT('chat_unavailable','Chat no disponible.'));return} 432if(code===429||errorCode==='RATE_LIMITED'){var secs=parseInt(data.retry_after_s,10);if(isNaN(secs)||secs<1){var hdr=resp.headers&&resp.headers.get?resp.headers.get('Retry-After'):null;if(hdr){var n=parseInt(hdr,10);if(!isNaN(n)&&n>=1)secs=n}} 433if(isNaN(secs)||secs<1)secs=10;var rlText=msg||('Has enviado muchos mensajes muy rápido. Espera '+secs+'s e inténtalo de nuevo.');renderMessage(rlText,'bot',!1);rateLimitInput(secs);return} 434if(code===400){renderMessage(msg||ndxT('invalid_message','Mensaje no válido. Por favor, reformúlalo.'),'bot',!1);return} 435if(code===503||errorCode==='INTERNAL_ERROR'||errorCode==='agent_failure'){renderRetryableError(msg||ndxT('assistant_unavailable','El asistente no está disponible ahora mismo. Inténtalo de nuevo en unos segundos.'),originalMessage);return} 436renderMessage(msg||'Lo siento, ha ocurrido un error inesperado (HTTP '+code+').','bot',!1)} 437function renderRetryableError(errorText,originalMessage){renderMessage(errorText,'bot',!1);var retryWrap=document.createElement('div');retryWrap.className='ndx-retry-wrap';var retryBtn=document.createElement('button');retryBtn.type='button';retryBtn.className='ndx-retry-btn';retryBtn.innerHTML='<i class="fa fa-refresh"></i> Reintentar';retryBtn.addEventListener('click',function(){retryWrap.remove();enviarMensajeAn8n(originalMessage)});retryWrap.appendChild(retryBtn);messagesContainer.appendChild(retryWrap);messagesContainer.scrollTop=messagesContainer.scrollHeight} 438function rateLimitInput(seconds){if(!inputField)return;var originalPlaceholder=inputField.getAttribute('placeholder')||'';var remaining=seconds;inputField.disabled=!0;if(sendBtn)sendBtn.disabled=!0;inputField.setAttribute('placeholder','Espera '+remaining+'s…');var tick=setInterval(function(){remaining--;if(remaining<=0){clearInterval(tick);inputField.disabled=!1;if(sendBtn)sendBtn.disabled=!1;inputField.setAttribute('placeholder',originalPlaceholder);return} 439inputField.setAttribute('placeholder','Espera '+remaining+'s…')},1000)} 440function disableChatCompletely(reason){var panelRoot=document.getElementById('ndx-chat-panel-root');if(panelRoot&&!panelRoot.classList.contains('ndx-mode-hidden')){var closeBtn=panelRoot.querySelector('.ndx-ctrl-close');if(closeBtn)closeBtn.click();else{panelRoot.classList.add('ndx-mode-hidden')}} 441var triggers=document.querySelectorAll('.ndx-chat-trigger-btn');for(var i=0;i<triggers.length;i++){triggers[i].style.display='none'} 442var fab=document.getElementById('ndx-mobile-fab');if(fab)fab.style.display='none';if(reason){try{console.warn('[NDX Chat]',reason)}catch(e){}}} 443function sendChatMessageStream(payload,loadingId,phraseTimer,originalMessage){var streamingPayload=Object.assign({action:'stream'},payload);var accumulatedText='';var finalServerMessage=null;var pendingProducts=null;var pendingSuggestions=null;var streamSessionId=null;var botRow=null;var botBubble=null;var hasReceivedAnything=!1;var errored=!1;function ensureBotBubble(){if(botBubble)return;if(phraseTimer)clearInterval(phraseTimer);var oldLoading=document.getElementById(loadingId);if(oldLoading)oldLoading.remove();botRow=document.createElement('div');botRow.classList.add('ai-message-row','bot');var avatar=document.createElement('div');avatar.className='ai-message-avatar';var modulePath=(typeof ndx_module_path!=='undefined'&&ndx_module_path)?ndx_module_path:'/modules/ndxchat/';avatar.innerHTML='<img class="ai-message-avatar-svg" src="'+modulePath+'views/img/bot-avatar.svg" alt="">';botBubble=document.createElement('div');botBubble.classList.add('ai-message','bot','ndx-streaming');var textSpan=document.createElement('span');textSpan.className='ai-streaming-text';botBubble.appendChild(textSpan);
443var cursor=document.createElement('span');cursor.className='ai-streaming-cursor';botBubble.appendChild(cursor);botRow.appendChild(avatar);botRow.appendChild(botBubble);messagesContainer.appendChild(botRow);messagesContainer.scrollTop=messagesContainer.scrollHeight} 444function appendDelta(text){if(!text)return;ensureBotBubble();hasReceivedAnything=!0;accumulatedText+=text;var span=botBubble.querySelector('.ai-streaming-text');span.innerHTML='';accumulatedText.split('\n').forEach(function(line,i,arr){span.appendChild(document.createTextNode(line));if(i<arr.length-1)span.appendChild(document.createElement('br'))});messagesContainer.scrollTop=messagesContainer.scrollHeight} 445function finalize(){if(errored)return;if(!botBubble){if(phraseTimer)clearInterval(phraseTimer);var oldLoading=document.getElementById(loadingId);if(oldLoading)oldLoading.remove();renderMessage('Recibàtu mensaje, pero no pude procesar la respuesta.','bot',!1);return} 446botBubble.classList.remove('ndx-streaming');var cursor=botBubble.querySelector('.ai-streaming-cursor');if(cursor)cursor.remove();var finalText=(typeof finalServerMessage==='string'&&finalServerMessage)?finalServerMessage:accumulatedText;if(finalText){if(finalText!==accumulatedText){var finalSpan=botBubble.querySelector('.ai-streaming-text');if(finalSpan){finalSpan.innerHTML='';finalText.split('\n').forEach(function(line,i,arr){finalSpan.appendChild(document.createTextNode(line));if(i<arr.length-1)finalSpan.appendChild(document.createElement('br'))})}} 447chatHistory.push({text:finalText,sender:'bot'});localStorage.setItem('ndx_chat_history',JSON.stringify(chatHistory))} 448procesarEnlacesEnChat();if(streamSessionId){sessionId=streamSessionId;localStorage.setItem('ndx_session_id',sessionId)} 449if(pendingProducts&&Array.isArray(pendingProducts)&&pendingProducts.length>0){renderCardBubbles(pendingProducts);renderizarDinamicas([])}else if(pendingSuggestions&&Array.isArray(pendingSuggestions)&&pendingSuggestions.length>0){renderizarDinamicas(pendingSuggestions)}else{renderizarDinamicas([])} 450messagesContainer.scrollTop=messagesContainer.scrollHeight} 451function handleStreamError(httpStatus,errorCode,message){errored=!0;if(phraseTimer)clearInterval(phraseTimer);var oldLoading=document.getElementById(loadingId);if(oldLoading)oldLoading.remove();if(botRow&&botRow.parentNode)botRow.parentNode.removeChild(botRow);var fakeResp={ok:!1,status:httpStatus||503,headers:null,data:{error_code:errorCode||'INTERNAL_ERROR',message:message||ndxT('stream_interrupted','Se ha interrumpido la respuesta. Inténtalo de nuevo.')}};handleBackendError(fakeResp,originalMessage)} 452fetch(ps_ajax_url,{method:'POST',headers:{'Content-Type':'application/json','Accept':'text/event-stream'},body:JSON.stringify(streamingPayload)}).then(function(response){if(!response.ok||!response.body){return response.text().then(function(text){var parsed={};try{parsed=JSON.parse(text)}catch(e){} 453handleStreamError(response.status,parsed.error_code,parsed.message)})} 454var reader=response.body.getReader();var decoder=new TextDecoder('utf-8');var buffer='';function pump(){return reader.read().then(function(result){if(result.done){if(buffer.trim())processSseChunk(buffer);finalize();return} 455buffer+=decoder.decode(result.value,{stream:!0});var events=buffer.split(/\n\n/);buffer=events.pop()||'';for(var i=0;i<events.length;i++){processSseChunk(events[i]);if(errored)return} 456return pump()})} 457function processSseChunk(rawEvent){if(!rawEvent)return;var lines=rawEvent.split('\n');var eventName='message';var dataParts=[];for(var i=0;i<lines.length;i++){var line=lines[i];if(line.indexOf('event:')===0){eventName=line.substring(6).trim()}else if(line.indexOf('data:')===0){dataParts.push(line.substring(5).replace(/^ /,''))}} 458if(dataParts.length===0)return;var dataStr=dataParts.join('\n');if(dataStr==='[DONE]'){return} 459var data;try{data=JSON.parse(dataStr)}catch(e){return} 460if(eventName==='error'||data.type==='error'){handleStreamError(data.http_status,data.error_code,data.message);return} 461var delta=data.delta||data.content||data.text||data.token||'';if(typeof delta==='string'&&delta.length>0){appendDelta(delta)} 462if(data.session_id){streamSessionId=data.session_id} 463if(data.products)pendingProducts=data.products;if(data.suggestions)pendingSuggestions=data.suggestions;if(eventName==='done'&&typeof data.message==='string'){finalServerMessage=data.message} 464if(data.type==='end'||data.type==='done'||data.done===!0){}} 465return pump()}).catch(function(e){console.error('Stream error:',e);
465handleStreamError(0,'NETWORK_ERROR','No hemos podido conectar. Comprueba tu conexión e inténtalo de nuevo.')})} 466var warmupCalled=!1;function triggerWarmup(){if(warmupCalled)return;if(sessionStorage.getItem('ndx_chat_disabled')==='1')return;warmupCalled=!0;try{var ajaxUrl=(typeof ps_ajax_url!=='undefined'&&ps_ajax_url)?ps_ajax_url:null;if(!ajaxUrl)return;fetch(ajaxUrl,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({action:'warmup'}),credentials:'same-origin',keepalive:!0}).catch(function(){})}catch(e){}} 467if(chatHistory.length>0){window.iniciarConversacionIA();if(titleElement)titleElement.textContent=titleElement.getAttribute('data-text');chatHistory.forEach(function(msg){if(msg.type==='cards'){renderCardBubbles(msg.products,!1)}else{renderMessage(msg.text,msg.sender,!1,msg.attachment||null)}});activarModoChat();renderizarDinamicas(sugArray)}else{if(titleElement){startTitleEffect(titleElement)} 468if(defaultDiv)defaultDiv.classList.remove('ndx-suggestions-collapsed');if(bulbBtn)bulbBtn.style.display='none'} 469function autoGrowInput(){if(!inputField)return;inputField.style.height='auto';inputField.style.height=Math.min(inputField.scrollHeight,96)+'px'} 470if(inputField){inputField.addEventListener('input',autoGrowInput);autoGrowInput()} 471if(sendBtn&&inputField){sendBtn.addEventListener('click',function(){const userText=inputField.value.trim();if(userText!==""){inputField.value='';enviarMensajeAn8n(userText)}});inputField.addEventListener('keydown',function(e){if(e.key==='Enter'&&!e.shiftKey){e.preventDefault();const userText=inputField.value.trim();if(userText!==""){inputField.value='';autoResizeTextarea();enviarMensajeAn8n(userText)}}});function autoResizeTextarea(){inputField.style.height='auto';const maxH=96;inputField.style.height=Math.min(inputField.scrollHeight,maxH)+'px'} 472inputField.addEventListener('input',autoResizeTextarea);autoResizeTextarea()} 473document.addEventListener('click',function(e){var card=e.target&&e.target.closest&&e.target.closest('.ndx-suggestion-card');if(!card)return;var href=card.getAttribute('href');if(href&&href!=='#'){return} 474e.preventDefault();var texto=(card.getAttribute('data-ndx-text')||'').trim();if(texto!=='')enviarMensajeAn8n(texto)});function ndxClearChat(){if(confirm('¿Estás seguro de que quieres borrar la conversación y empezar de cero?')){localStorage.removeItem('ndx_chat_history');localStorage.removeItem('ndx_session_id');localStorage.removeItem('ndx_sug_array');localStorage.removeItem('ndx_sug_state');localStorage.removeItem('ndx_product_cards');localStorage.removeItem('ndx_chat_rating');localStorage.removeItem('ndx_rating_banner_dismissed_at');window.location.reload()}} 475const clearChatBtn=document.getElementById('ai-clear-chat-btn');if(clearChatBtn){clearChatBtn.addEventListener('click',ndxClearChat)} 476document.addEventListener('click',function(e){var btn=e.target&&e.target.closest&&e.target.closest('.ndx-ctrl-clear');if(!btn)return;e.preventDefault();ndxClearChat()});var MOBILE_BREAKPOINT=768;var TABLET_TOUCH_BREAKPOINT=1180;var STATE_KEY_OPEN='ndx_chat_open';var STATE_KEY_MODE='ndx_chat_mode';var STATE_KEY_POS='ndx_chat_floating_pos';var STATE_KEY_SIZE='ndx_chat_floating_size';function isMobile(){var w=window.innerWidth;if(w<=MOBILE_BREAKPOINT)return!0;if(w<=TABLET_TOUCH_BREAKPOINT){if(window.matchMedia&&window.matchMedia('(hover: none) and (pointer: coarse)').matches){return!0}} 477return!1} 478var triggerBtns=document.querySelectorAll('.ndx-chat-trigger-btn');var panelRoot=document.getElementById('ndx-chat-panel-root');if(panelRoot){var panelEl=panelRoot.querySelector('.ndx-chat-panel');var headerEl=panelRoot.querySelector('.ndx-chat-panel-header');var btnDetach=panelRoot.querySelector('.ndx-ctrl-detach');var btnAttach=panelRoot.querySelector('.ndx-ctrl-attach');var btnHeaderClose=panelRoot.querySelector('.ndx-ctrl-close');var currentMode='hidden';function findThemeHeader(){var selectors=['#desktop-header','#header','header[role="banner"]','header.header','header','.site-header','.page-header','.header'];for(var i=0;i<selectors.length;i++){try{var el=document.querySelector(selectors[i]);if(el&&el.offsetHeight>0)return el}catch(e){}} 479return null} 480function getHeaderBottom(){var vh=window.innerHeight||document.documentElement.clientHeight||0;var menus=document.querySelectorAll('.iqit-megamenu-container, #iqitmegamenu-wrapper');var bottom=0;for(var i=0;i<menus.length;i++){var el=menus[i];if(!el||el.offsetHeight<=0)continue;var r=el.getBoundingClientRect();if(r.bottom>0&&r.top<vh&&r.bottom>bottom){bottom=r.bottom}} 481if(bottom>0)return bottom;var headerEl=findThemeHeader();if(!headerEl)return 0;return Math.max(0,headerEl.getBoundingClientRect().bottom)}
482function placePanelInDom(){if(panelRoot.parentNode!==document.body){document.body.appendChild(panelRoot)}} 483function clearFloatingInline(){if(!panelEl)return;panelEl.style.left='';panelEl.style.top='';panelEl.style.right='';panelEl.style.bottom='';panelEl.style.height='';panelEl.style.maxHeight='';panelEl.style.width='';panelEl.style.maxWidth=''} 484function setMode(newMode){var modes=['hidden','side','floating','mobile'];for(var i=0;i<modes.length;i++){panelRoot.classList.remove('ndx-mode-'+modes[i])} 485panelRoot.classList.add('ndx-mode-'+newMode);panelRoot.setAttribute('aria-hidden',newMode==='hidden'?'true':'false');for(var bi=0;bi<triggerBtns.length;bi++){if(newMode==='hidden'){triggerBtns[bi].classList.remove('ndx-is-open')}else{triggerBtns[bi].classList.add('ndx-is-open')}} 486var fab=document.getElementById('ndx-mobile-fab');if(fab){if(newMode==='hidden')fab.classList.remove('ndx-is-open');else fab.classList.add('ndx-is-open')} 487if(newMode==='hidden'){localStorage.removeItem(STATE_KEY_OPEN)}else{localStorage.setItem(STATE_KEY_OPEN,'1');localStorage.setItem(STATE_KEY_MODE,newMode)} 488if(newMode!=='floating'){clearFloatingInline()} 489placePanelInDom();currentMode=newMode;if(newMode!=='side')stopSideFollow();if(newMode==='floating'){applyFloatingPosition()}else if(newMode==='side'){startSideFollow()} 490updateBodyScrollLock()} 491var sideLastBottom=-1;function applySidePosition(){if(!panelEl)return;var top=getHeaderBottom();if(top===sideLastBottom)return;sideLastBottom=top;panelEl.style.top=top+'px';panelEl.style.height='calc(100vh - '+top+'px)'} 492var sideRafId=null;function startSideFollow(){stopSideFollow();var raf=window.requestAnimationFrame||function(cb){return setTimeout(cb,16)};(function loop(){if(currentMode!=='side'){sideRafId=null;return} 493applySidePosition();sideRafId=raf(loop)})()} 494function stopSideFollow(){if(sideRafId!==null){if(window.cancelAnimationFrame)window.cancelAnimationFrame(sideRafId);else clearTimeout(sideRafId);sideRafId=null} 495sideLastBottom=-1} 496function decideInitialMode(){return isMobile()?'mobile':'side'} 497function applyFloatingPosition(){var size=null;try{size=JSON.parse(localStorage.getItem(STATE_KEY_SIZE))}catch(e){size=null} 498if(size&&typeof size.w==='number'&&typeof size.h==='number'){var sw=Math.max(320,Math.min(size.w,window.innerWidth-16));var sh=Math.max(380,Math.min(size.h,window.innerHeight-16));panelEl.style.width=sw+'px';panelEl.style.height=sh+'px';panelEl.style.maxWidth='none';panelEl.style.maxHeight='none'} 499var pos;try{pos=JSON.parse(localStorage.getItem(STATE_KEY_POS))}catch(e){pos=null} 500if(!pos||typeof pos.x!=='number'||typeof pos.y!=='number'){pos={x:24,y:24}} 501var maxX=window.innerWidth-panelEl.offsetWidth-8;var maxY=window.innerHeight-panelEl.offsetHeight-8;if(panelEl.offsetWidth===0){maxX=window.innerWidth-380;maxY=window.innerHeight-540} 502maxX=Math.max(0,maxX);maxY=Math.max(0,maxY);pos.x=Math.max(0,Math.min(pos.x,maxX));pos.y=Math.max(0,Math.min(pos.y,maxY));panelEl.style.left=pos.x+'px';panelEl.style.top=pos.y+'px';panelEl.style.right='auto';panelEl.style.bottom='auto';panelEl.style.maxHeight=''} 503document.addEventListener('click',function(e){var btn=e.target&&e.target.closest('.ndx-chat-trigger-btn, .vtt-chat-trigger');if(!btn)return;e.preventDefault();if(currentMode==='hidden'){setMode(decideInitialMode());triggerWarmup();var input=document.getElementById('ai-user-input');if(input)setTimeout(function(){input.focus()},350)}else{setMode('hidden')}});if(btnHeaderClose)btnHeaderClose.addEventListener('click',function(){setMode('hidden')});if(btnDetach){btnDetach.addEventListener('click',function(){setMode('floating')})} 504if(btnAttach){btnAttach.addEventListener('click',function(){setMode(decideInitialMode())})} 505document.addEventListener('keydown',function(e){if(e.key==='Escape'&¤tMode!=='hidden'){setMode('hidden')}});var dragging=!1;var dragOffsetX=0;var dragOffsetY=0;var dragPointerId=null;function onPointerDown(e){if(currentMode!=='floating')return;if(e.target.closest('button'))return;if(e.button!==undefined&&e.button!==0)return;if(window.innerWidth<=768)return;dragging=!0;var rect=panelEl.getBoundingClientRect();dragOffsetX=e.clientX-rect.left;dragOffsetY=e.clientY-rect.top;dragPointerId=e.pointerId;panelRoot.classList.add('ndx-is-dragging');headerEl.classList.add('ndx-is-dragging');try{if(typeof headerEl.setPointerCapture==='function'){headerEl.setPointerCapture(e.pointerId)}}catch(err){} 506e.preventDefault()} 507function onPointerMove(e){if(!dragging)return;var x=e.clientX-dragOffsetX;var y=e.clientY-dragOffsetY;var maxX=window.innerWidth-panelEl.offsetWidth;var maxY=window.innerHeight-panelEl.offsetHeight;x=Math.max(0,Math.min(x,maxX));y=Math.max(0,Math.min(y,maxY));panelEl.style.left=x+'px';panelEl.style.top=y+'px'} 508function onPointerUp(e){if(!dragging)return;dragging=!1;panelRoot.classList.remove('ndx-is-dragging');headerEl.classList.remove('ndx-is-dragging');try{if(dragPointerId!==null&&typeof headerEl.releasePointerCapture==='function'){headerEl.releasePointerCapture(dragPointerId)}}catch(err){} 509dragPointerId=null;var x=parseInt(panelEl.style.left,10)||0;var y=parseInt(panelEl.style.top,10)||0;try{localStorage.setItem(STATE_KEY_POS,JSON.stringify({x:x,y:y}))}catch(err){}} 510if(headerEl&&window.PointerEvent){headerEl.addEventListener('pointerdown',onPointerDown);headerEl.addEventListener('pointermove',onPointerMove);headerEl.addEventListener('pointerup',onPointerUp);headerEl.addEventListener('pointercancel',onPointerUp)} 511var RZ_MIN_W=320,RZ_MIN_H=380,RZ_MARGIN=8;var resizing=!1,rzEl=null,rzPointerId=null,rzDirs='';var rzStartX=0,rzStartY=0,rzStartW=0,rzStartH=0,rzStartLeft=0,rzStartTop=0;function onResizeDown(e){if(currentMode!=='floating')return;if(window.innerWidth<=768)return;if(e.button!==undefined&&e.button!==0)return;rzEl=e.currentTarget;rzDirs=rzEl.getAttribute('data-rz')||'';var rect=panelEl.getBoundingClientRect();resizing=!0;rzPointerId=e.pointerId;rzStartX=e.clientX;rzStartY=e.clientY;rzStartW=rect.width;rzStartH=rect.height;rzStartLeft=rect.left;rzStartTop=rect.top;panelRoot.classList.add('ndx-is-dragging');try{if(rzEl.setPointerCapture)rzEl.setPointerCapture(e.pointerId)}catch(err){} 512e.preventDefault();e.stopPropagation()} 513function onResizeMove(e){if(!resizing)return;var dx=e.clientX-rzStartX;var dy=e.clientY-rzStartY;var w=rzStartW,h=rzStartH,left=rzStartLeft,top=rzStartTop;if(rzDirs.indexOf('e')!==-1){w=Math.max(RZ_MIN_W,Math.min(rzStartW+dx,window.innerWidth-rzStartLeft-RZ_MARGIN))} 514if(rzDirs.indexOf('w')!==-1){w=Math.max(RZ_MIN_W,Math.min(rzStartW-dx,rzStartLeft+rzStartW-RZ_MARGIN));left=rzStartLeft+(rzStartW-w);if(left<RZ_MARGIN){left=RZ_MARGIN;w=rzStartLeft+rzStartW-RZ_MARGIN}} 515if(rzDirs.indexOf('s')!==-1){h=Math.max(RZ_MIN_H,Math.min(rzStartH+dy,window.innerHeight-rzStartTop-RZ_MARGIN))} 516if(rzDirs.indexOf('n')!==-1){h=Math.max(RZ_MIN_H,Math.min(rzStartH-dy,rzStartTop+rzStartH-RZ_MARGIN));top=rzStartTop+(rzStartH-h);if(top<RZ_MARGIN){top=RZ_MARGIN;h=rzStartTop+rzStartH-RZ_MARGIN}} 517panelEl.style.maxWidth='none';panelEl.style.maxHeight='none';panelEl.style.width=w+'px';panelEl.style.height=h+'px';if(rzDirs.indexOf('w')!==-1)panelEl.style.left=left+'px';if(rzDirs.indexOf('n')!==-1)panelEl.style.top=top+'px'} 518function onResizeUp(){if(!resizing)return;resizing=!1;panelRoot.classList.remove('ndx-is-dragging');try{if(rzEl&&rzPointerId!==null&&rzEl.releasePointerCapture)rzEl.releasePointerCapture(rzPointerId)}catch(err){} 519rzPointerId=null;rzEl=null;try{localStorage.setItem(STATE_KEY_SIZE,JSON.stringify({w:parseInt(panelEl.style.width,10)||0,h:parseInt(panelEl.style.height,10)||0,}));
519localStorage.setItem(STATE_KEY_POS,JSON.stringify({x:parseInt(panelEl.style.left,10)||0,y:parseInt(panelEl.style.top,10)||0,}))}catch(err){}} 520if(panelEl&&window.PointerEvent){var rzHandles=['n','s','e','w','se','sw'];for(var ri=0;ri<rzHandles.length;ri++){var hd=document.createElement('div');hd.className='ndx-resize-handle ndx-resize-'+rzHandles[ri];hd.setAttribute('data-rz',rzHandles[ri]);hd.addEventListener('pointerdown',onResizeDown);hd.addEventListener('pointermove',onResizeMove);hd.addEventListener('pointerup',onResizeUp);hd.addEventListener('pointercancel',onResizeUp);panelEl.appendChild(hd)}} 521var lastWasMobile=isMobile();window.addEventListener('resize',function(){var nowMobile=isMobile();if(currentMode!=='hidden'&&lastWasMobile!==nowMobile){setMode(decideInitialMode())}else{if(currentMode==='floating')applyFloatingPosition();if(currentMode==='side')applySidePosition()} 522lastWasMobile=nowMobile});window.addEventListener('load',function(){if(currentMode==='side')applySidePosition()});function updateBodyScrollLock(){if(currentMode==='mobile'){document.body.style.overflow='hidden'}else{document.body.style.overflow=''}} 523var wasOpen=localStorage.getItem(STATE_KEY_OPEN)==='1';if(wasOpen){if(isMobile()){setMode('mobile')}else{var savedMode=localStorage.getItem(STATE_KEY_MODE);if(savedMode==='floating'){setMode('floating')}else{setMode('side')}}}}(function setupMobileFab(){if(document.getElementById('ndx-mobile-fab'))return;if(typeof ndx_mobile_button_html==='string'&&ndx_mobile_button_html.length>0){document.body.insertAdjacentHTML('beforeend',ndx_mobile_button_html)} 524var fab=document.getElementById('ndx-mobile-fab');if(!fab)return;var fabDesktopOn=(typeof ndx_fab_desktop_enabled==='undefined')?!1:parseInt(ndx_fab_desktop_enabled,10)===1;if(fabDesktopOn)fab.classList.add('ndx-fab-desktop-on');fab.addEventListener('click',function(e){if(e.target&&e.target.closest&&e.target.closest('.ndx-mobile-fab-tooltip-close')){return} 525var triggerBtn=document.querySelector('.ndx-chat-trigger-btn');if(triggerBtn){triggerBtn.click()}else{var root=document.getElementById('ndx-chat-panel-root');if(root&&root.classList.contains('ndx-mode-hidden')){var modeToSet='side';if(window.innerWidth<=768)modeToSet='mobile';else if(window.innerWidth<=1180&&window.matchMedia&&window.matchMedia('(hover: none) and (pointer: coarse)').matches){modeToSet='mobile'} 526root.classList.remove('ndx-mode-hidden');root.classList.add('ndx-mode-'+modeToSet)}}});var tooltipEnabled=(typeof ndx_mobile_tooltip_enabled!=='undefined')?!!ndx_mobile_tooltip_enabled:!0;if(!tooltipEnabled)return;var tooltipText=(typeof ndx_mobile_tooltip_text==='string'&&ndx_mobile_tooltip_text)?ndx_mobile_tooltip_text:'¿Tienes dudas?';var tooltipDelaySec=(typeof ndx_mobile_tooltip_delay==='number'&&ndx_mobile_tooltip_delay>=2)?ndx_mobile_tooltip_delay:8;var tooltipEl=document.getElementById('ndx-mobile-fab-tooltip');if(!tooltipEl)return;var tooltipTextEl=tooltipEl.querySelector('.ndx-mobile-fab-tooltip-text');if(tooltipTextEl)tooltipTextEl.textContent=tooltipText;var tooltipTimer=null;var dismissedThisSession=!1;function showTooltip(){if(dismissedThisSession)return;var root=document.getElementById('ndx-chat-panel-root');if(root&&!root.classList.contains('ndx-mode-hidden'))return;tooltipEl.classList.add('is-visible');tooltipEl.setAttribute('aria-hidden','false')} 527function hideTooltip(){tooltipEl.classList.remove('is-visible');tooltipEl.setAttribute('aria-hidden','true')} 528function scheduleShow(delayMs){clearTimeout(tooltipTimer);tooltipTimer=setTimeout(showTooltip,delayMs)} 529scheduleShow(tooltipDelaySec*1000);tooltipEl.addEventListener('click',function(e){var closeBtn=e.target&&e.target.closest&&e.target.closest('.ndx-mobile-fab-tooltip-close');if(closeBtn){e.stopPropagation();hideTooltip();scheduleShow(tooltipDelaySec*2*1000)}});fab.addEventListener('click',function(e){if(e.target&&e.target.closest&&e.target.closest('.ndx-mobile-fab-tooltip-close'))return;hideTooltip();dismissedThisSession=!0;clearTimeout(tooltipTimer)})})();(function setupWelcomeCard(){if(document.getElementById('ndx-welcome-card'))return;var enabled=(typeof ndx_welcome_enabled!=='undefined')&&parseInt(ndx_welcome_enabled,10)===1;var fabDesktop=(typeof ndx_fab_desktop_enabled!=='undefined')&&parseInt(ndx_fab_desktop_enabled,10)===1;
529if(!enabled||!fabDesktop)return;var html=(typeof ndx_welcome_html==='string')?ndx_welcome_html:'';if(!html)return;document.body.insertAdjacentHTML('beforeend',html);var card=document.getElementById('ndx-welcome-card');if(!card)return;var DISMISS_KEY='ndx_welcome_dismissed_until';var homeOnly=(typeof ndx_welcome_home_only!=='undefined')&&parseInt(ndx_welcome_home_only,10)===1;var isHome=(typeof ndx_is_home!=='undefined')&&parseInt(ndx_is_home,10)===1;var scrollHide=(typeof ndx_welcome_scroll_hide!=='undefined')?parseInt(ndx_welcome_scroll_hide,10):180;if(isNaN(scrollHide)||scrollHide<0)scrollHide=180;var reopenDelay=(typeof ndx_welcome_reopen_delay!=='undefined')?parseInt(ndx_welcome_reopen_delay,10):25;if(isNaN(reopenDelay)||reopenDelay<3)reopenDelay=25;var dismissDays=(typeof ndx_welcome_dismiss_days!=='undefined')?parseInt(ndx_welcome_dismiss_days,10):0;if(isNaN(dismissDays)||dismissDays<0)dismissDays=0;if(homeOnly&&!isHome)return;var reopenTimer=null;var visible=!1;var silenciada=!1;var pendingReopen=!1;function isDismissed(){try{var raw=localStorage.getItem(DISMISS_KEY);if(!raw)return!1;var until=parseInt(raw,10);if(isNaN(until))return!1;if(Date.now()<until)return!0;localStorage.removeItem(DISMISS_KEY);return!1}catch(e){return!1}} 530function setDismissed(){if(dismissDays===0)return;try{localStorage.setItem(DISMISS_KEY,String(Date.now()+dismissDays*86400000))}catch(e){}} 531function isDesktopViewport(){if(window.innerWidth<=768)return!1;if(window.matchMedia&&window.matchMedia('(hover: none) and (pointer: coarse)').matches)return!1;return!0} 532function chatIsOpen(){var root=document.getElementById('ndx-chat-panel-root');return!!(root&&!root.classList.contains('ndx-mode-hidden'))} 533function canShow(){return!visible&&!inTopZone()&&!silenciada&&!isDismissed()&&isDesktopViewport()&&!chatIsOpen()} 534function show(){if(!canShow())return;clearTimeout(reopenTimer);reopenTimer=null;pendingReopen=!1;visible=!0;card.classList.add('is-visible');card.setAttribute('aria-hidden','false')} 535function hide(){if(!visible)return;visible=!1;card.classList.remove('is-visible');card.setAttribute('aria-hidden','true')} 536function scheduleReopen(){if(isDismissed())return;clearTimeout(reopenTimer);pendingReopen=!0;if(document.hidden)return;reopenTimer=setTimeout(function(){reopenTimer=null;pendingReopen=!1;silenciada=!1;show()},reopenDelay*1000)} 537function currentScroll(){return window.pageYOffset||(document.documentElement&&document.documentElement.scrollTop)||document.body.scrollTop||0} 538function inTopZone(){if(scrollHide===0)return!1;return currentScroll()<=scrollHide} 539var zonaAltaPrevia=null;function evaluateScroll(){if(isDismissed())return;var arriba=inTopZone();if(arriba===zonaAltaPrevia)return;zonaAltaPrevia=arriba;if(arriba){hide();clearTimeout(reopenTimer);reopenTimer=null;pendingReopen=!1}else{scheduleReopen()}} 540setTimeout(function(){zonaAltaPrevia=inTopZone();if(!zonaAltaPrevia)scheduleReopen()},900);var scrollTicking=!1;window.addEventListener('scroll',function(){if(scrollTicking)return;scrollTicking=!0;var raf=window.requestAnimationFrame||function(cb){return setTimeout(cb,16)};raf(function(){scrollTicking=!1;evaluateScroll()})},{passive:!0});document.addEventListener('visibilitychange',function(){if(document.hidden||!pendingReopen)return;scheduleReopen()});window.addEventListener('resize',function(){if(!isDesktopViewport())hide()});var closeBtn=card.querySelector('.ndx-welcome-close');if(closeBtn){closeBtn.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();hide();if(dismissDays>0){setDismissed();clearTimeout(reopenTimer);reopenTimer=null;pendingReopen=!1}else{silenciada=!0;if(!inTopZone())scheduleReopen()}})} 541card.addEventListener('click',function(e){if(e.target&&e.target.closest&&e.target.closest('.ndx-welcome-close'))return;hide();clearTimeout(reopenTimer);reopenTimer=null;pendingReopen=!1;var triggerBtn=document.querySelector('.ndx-chat-trigger-btn');if(triggerBtn){triggerBtn.click();return} 542var fab=document.getElementById('ndx-mobile-fab');if(fab)fab.click()});var panelRootEl=document.getElementById('ndx-chat-panel-root');if(panelRootEl&&window.MutationObserver){new MutationObserver(function(){if(chatIsOpen()){hide();clearTimeout(reopenTimer);reopenTimer=null;pendingReopen=!1}else{if(!isDismissed()&&!inTopZone())scheduleReopen()}}).observe(panelRootEl,{attributes:!0,attributeFilter:['class']})} 543window.ndxWelcomeReset=function(){try{localStorage.removeItem(DISMISS_KEY);sessionStorage.removeItem(DISMISS_KEY);sessionStorage.removeItem('ndx_welcome_shown_count');sessionStorage.removeItem('ndx_welcome_dismissed')}catch(e){} 544silenciada=!1;show();return'Tarjeta de bienvenida reiniciada.'}})();(function setupRating(){var RATING_STORAGE_KEY='ndx_chat_rating';var BANNER_DISMISSED_KEY='ndx_rating_banner_dismissed_at';var THRESHOLD=3;function getRating(){try{var raw=localStorage.getItem(RATING_STORAGE_KEY);return raw?JSON.parse(raw):null}catch(e){return null}} 545function saveRating(score,comment){var payload={score:score,comment:comment||'',timestamp:new Date().toISOString(),session_id:localStorage.getItem('ndx_session_id')||null};try{localStorage.setItem(RATING_STORAGE_KEY,JSON.stringify(payload))}catch(e){} 546return payload} 547function sendRatingToBackend(score,comment){var sessionId=localStorage.getItem('ndx_session_id');var visitorId=localStorage.getItem('ndx_visitor_id');if(!sessionId){return Promise.resolve({ok:!1,message:ndxT('rating_start_chat','Empieza una conversación con el asistente antes de valorar.')})} 548if(!visitorId){return Promise.resolve({ok:!1,message:'No se ha podido identificar tu sesión. Recarga la página.'})}
549var ajaxUrl=(typeof ps_ajax_url!=='undefined'&&ps_ajax_url)?ps_ajax_url:null;if(!ajaxUrl){return Promise.resolve({ok:!1,message:'No se puede contactar con el servidor.'})} 550return fetch(ajaxUrl,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({action:'rating',session_id:sessionId,rating:score,visitor_id:visitorId,comment:comment||''}),credentials:'same-origin'}).then(function(res){return res.json().catch(function(){return{}}).then(function(data){if(res.ok&&(data.success===!0||data.success===undefined)){return{ok:!0,data:data}} 551var msg;if(res.status===403){msg='Esta valoración no se puede asociar a tu sesión.'}else if(res.status===404){msg='La conversación ya no existe en el servidor.'}else if(res.status===400){msg='Valoración no válida.'}else if(res.status>=500){msg='El servidor no respondió. Inténtalo de nuevo en unos segundos.'}else{msg=(data&&data.error)?data.error:ndxT('rating_failed','No se pudo enviar la valoración.')} 552return{ok:!1,message:msg}})}).catch(function(){return{ok:!1,message:ndxT('rating_connection_error','Error de conexión. Comprueba tu conexión a internet e inténtalo de nuevo.')}})} 553function getBotMessageCount(){try{var raw=localStorage.getItem('ndx_chat_history');if(!raw)return 0;var history=JSON.parse(raw);if(!Array.isArray(history))return 0;var count=0;for(var i=0;i<history.length;i++){var msg=history[i];if(msg&&(msg.sender==='bot'||msg.type==='cards'))count++} 554return count}catch(e){return 0}} 555function getDismissedAt(){var v=parseInt(localStorage.getItem(BANNER_DISMISSED_KEY)||'0',10);return isNaN(v)?0:v} 556function setDismissedAt(count){try{localStorage.setItem(BANNER_DISMISSED_KEY,String(count))}catch(e){}} 557function shouldShowBanner(){if(getRating())return!1;var botCount=getBotMessageCount();var dismissedAt=getDismissedAt();if(dismissedAt===0)return botCount>=THRESHOLD;return botCount>=dismissedAt+THRESHOLD} 558function buildBannerHtml(){return['<div class="ndx-rating-banner" role="button" tabindex="0">','<span class="ndx-rating-banner-icon"><i class="fa fa-star"></i></span>','<span class="ndx-rating-banner-text">','<strong>¿Te está siendo útil?</strong>','<small>Valora tu experiencia con '+((typeof ndx_assistant_name!=='undefined'&&ndx_assistant_name)?ndx_assistant_name:'el asistente')+'</small>','</span>','<i class="fa fa-chevron-right ndx-rating-banner-arrow"></i>','<button type="button" class="ndx-rating-banner-close" aria-label="Cerrar">','<i class="fa fa-times"></i>','</button>','</div>'].join('')} 559function showBannerIfNeeded(){var existing=document.querySelector('.ndx-rating-banner');var shouldShow=shouldShowBanner();if(shouldShow&&!existing){var body=document.querySelector('.ndx-chat-panel-body');if(!body)return;body.insertAdjacentHTML('afterbegin',buildBannerHtml())}else if(!shouldShow&&existing){existing.remove()}} 560function hideBannerWithDismiss(){var banner=document.querySelector('.ndx-rating-banner');if(!banner)return;setDismissedAt(getBotMessageCount());banner.classList.add('ndx-rating-banner-dismissing');setTimeout(function(){if(banner.parentNode)banner.parentNode.removeChild(banner)},200)} 561function escapeHtml(s){return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"')} 562function buildStarsHtml(selectedScore){var html='<div class="ndx-rating-stars" role="radiogroup" aria-label="Valoración">';for(var i=1;i<=5;i++){var isFilled=selectedScore&&i<=selectedScore;html+='<button type="button" class="ndx-rating-star'+(isFilled?' is-selected':'')+'" data-value="'+i+'" aria-label="'+i+(i===1?' estrella':' estrellas')+'">';html+='<i class="fa fa-star ndx-star-empty"></i>';html+='<i class="fa fa-star ndx-star-filled"></i>';html+='</button>'} 563html+='</div>';return html} 564function buildFormCardHtml(existingRating){var score=existingRating?existingRating.score:0;var comment=existingRating?(existingRating.comment||''):'';return['<div class="ndx-rating-card" data-state="form" data-current-score="'+score+'">','<div class="ndx-rating-card-inner">','<button type="button" class="ndx-rating-close" aria-label="Cerrar"><i class="fa fa-xmark"></i></button>','<h4 class="ndx-rating-title">¿Cómo ha sido tu experiencia?</h4>','<p class="ndx-rating-subtitle">Tu opinión nos ayuda a mejorar.</p>',buildStarsHtml(score),'<textarea class="ndx-rating-comment" placeholder="Cuéntanos más (opcional)…" rows="3">'+escapeHtml(comment)+'</textarea>','<div class="ndx-rating-actions">','<button type="button" class="ndx-rating-cancel">Cancelar</button>','<button type="button" class="ndx-rating-submit"'+(score===0?' disabled':'')+'>'+ndxT('send_rating','Enviar valoración')+'</button>','</div>','</div>','</div>'].join('')}
565function buildThanksCardHtml(rating){var starsHtml='<div class="ndx-rating-stars-static" aria-label="'+rating.score+' de 5 estrellas">';for(var i=1;i<=5;i++){starsHtml+=i<=rating.score?'<i class="fa fa-star"></i>':'<i class="fa fa-star"></i>'} 566starsHtml+='</div>';return['<div class="ndx-rating-card" data-state="thanks">','<div class="ndx-rating-card-inner">','<div class="ndx-rating-thanks-icon"><i class="fa fa-circle-check"></i></div>','<h4 class="ndx-rating-title">¡Gracias por tu valoración!</h4>',starsHtml,'<button type="button" class="ndx-rating-edit-btn">Editar valoración</button>','</div>','</div>'].join('')} 567function scrollToCard(card){if(!card||!card.scrollIntoView)return;setTimeout(function(){try{card.scrollIntoView({behavior:'smooth',block:'end'})}catch(e){card.scrollIntoView()}},50)} 568function insertCard(html){var existing=document.querySelector('.ndx-rating-card');if(existing){var temp=document.createElement('div');temp.innerHTML=html;var newCard=temp.firstChild;existing.parentNode.replaceChild(newCard,existing);return newCard} 569var container=document.getElementById('ai-chat-messages');if(!container)return null;container.insertAdjacentHTML('beforeend',html);return container.lastElementChild} 570function showRatingForm(){var existing=getRating();var card=insertCard(buildFormCardHtml(existing));scrollToCard(card)} 571function showThanks(rating){var card=insertCard(buildThanksCardHtml(rating));scrollToCard(card);var banner=document.querySelector('.ndx-rating-banner');if(banner)banner.remove()} 572function dismissCard(){var card=document.querySelector('.ndx-rating-card');if(!card)return;card.classList.add('ndx-rating-dismissing');setTimeout(function(){if(card.parentNode)card.parentNode.removeChild(card)},200)} 573showBannerIfNeeded();var messagesContainer=document.getElementById('ai-chat-messages');if(messagesContainer&&window.MutationObserver){var observer=new MutationObserver(function(){setTimeout(showBannerIfNeeded,100)});observer.observe(messagesContainer,{childList:!0,subtree:!1})} 574document.addEventListener('click',function(e){var bannerClose=e.target&&e.target.closest&&e.target.closest('.ndx-rating-banner-close');if(bannerClose){e.preventDefault();e.stopPropagation();hideBannerWithDismiss();return} 575var banner=e.target&&e.target.closest&&e.target.closest('.ndx-rating-banner');if(banner){e.preventDefault();showRatingForm();return} 576var rateTrigger=e.target&&e.target.closest&&e.target.closest('.ndx-ctrl-rate');if(rateTrigger){e.preventDefault();showRatingForm();return} 577var editBtn=e.target&&e.target.closest&&e.target.closest('.ndx-rating-edit-btn');if(editBtn){e.preventDefault();showRatingForm();return} 578var cancelBtn=e.target&&e.target.closest&&e.target.closest('.ndx-rating-cancel, .ndx-rating-close');if(cancelBtn){e.preventDefault();dismissCard();return} 579var star=e.target&&e.target.closest&&e.target.closest('.ndx-rating-star');if(star){e.preventDefault();var value=parseInt(star.getAttribute('data-value'),10);var card=star.closest('.ndx-rating-card');if(!card)return;card.setAttribute('data-current-score',value);var stars=card.querySelectorAll('.ndx-rating-star');for(var i=0;i<stars.length;i++){if(i<value)stars[i].classList.add('is-selected');else stars[i].classList.remove('is-selected')} 580var submitBtn=card.querySelector('.ndx-rating-submit');if(submitBtn)submitBtn.disabled=!1;return} 581var submit=e.target&&e.target.closest&&e.target.closest('.ndx-rating-submit');if(submit){e.preventDefault();var formCard=submit.closest('.ndx-rating-card');if(!formCard)return;var score=parseInt(formCard.getAttribute('data-current-score')||'0',10);if(!score)return;var commentEl=formCard.querySelector('.ndx-rating-comment');var comment=commentEl?commentEl.value.trim():'';var originalText=submit.textContent;submit.disabled=!0;submit.textContent='Enviando…';submit.classList.add('ndx-rating-submit-sending');var cancelBtn=formCard.querySelector('.ndx-rating-cancel');if(cancelBtn)cancelBtn.disabled=!0;var prevError=formCard.querySelector('.ndx-rating-error');if(prevError)prevError.remove();sendRatingToBackend(score,comment).then(function(result){if(result.ok){var saved=saveRating(score,comment);showThanks(saved)}else{submit.disabled=!1;submit.textContent=originalText;submit.classList.remove('ndx-rating-submit-sending');if(cancelBtn)cancelBtn.disabled=!1;var errEl=document.createElement('div');errEl.className='ndx-rating-error';errEl.textContent=result.message||'No se pudo enviar la valoración. Inténtalo de nuevo.';var actions=formCard.querySelector('.ndx-rating-actions');if(actions&&actions.parentNode){actions.parentNode.insertBefore(errEl,actions)}}})}});document.addEventListener('mouseover',function(e){var star=e.target&&e.target.closest&&e.target.closest('.ndx-rating-star');if(!star)return;var card=star.closest('.ndx-rating-card');
vendor: 5,668 bytes, lines 581-585
581if(!card)return;var value=parseInt(star.getAttribute('data-value'),10);var stars=card.querySelectorAll('.ndx-rating-star');for(var i=0;i<stars.length;i++){if(i<value)stars[i].classList.add('is-hovered');else stars[i].classList.remove('is-hovered')}});document.addEventListener('mouseout',function(e){var star=e.target&&e.target.closest&&e.target.closest('.ndx-rating-star');if(!star)return;var card=star.closest('.ndx-rating-card');if(!card)return;var stars=card.querySelectorAll('.ndx-rating-star');for(var i=0;i<stars.length;i++)stars[i].classList.remove('is-hovered');})})()});/*! jQuery UI - v1.10.3 - 2013-05-03 582* http://jqueryui.com 583* 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 584* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 585!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)&&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]>
vendor: 9,267 bytes, line 585
5850||(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 585
585containment:!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 585
585a.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 585
585: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 585
585return 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 585
585if(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 585
585ight()-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 585
58510)||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 585
5850])*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 585
585,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 585
585),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 585
585)&&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]}
585).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
585ay","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 585
585,_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 585
585))}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 585
585,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 585
585,_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 585
585"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 585
585: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 585
585)}(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;
585d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 586(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
vendor: 16,714 bytes, line 586
586skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());
586a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
586pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);/* 587* 2007-2015 PrestaShop 588* 589* NOTICE OF LICENSE 590* 591* This source file is subject to the Open Software License (OSL 3.0) 592* that is bundled with this package in the file LICENSE.txt. 593* It is also available through the world-wide-web at this URL: 594* http://opensource.org/licenses/osl-3.0.php 595* If you did not receive a copy of the license and are unable to 596* obtain it through the world-wide-web, please send an email 597* to [email protected] so we can send you a copy immediately. 598* 599* DISCLAIMER 600* 601* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 602* versions in the future. If you wish to customize PrestaShop for your 603* needs please refer to http://www.prestashop.com for more information. 604* 605* @author PrestaShop SA <[email protected]> 606* @copyright 2007-2015 PrestaShop SA 607* @version Release: 0.4.4 608* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 609* International Registered Trademark & Property of PrestaShop SA 610*/ 611var bodyid;var ps_version_seur;var displayCarriers=!1;var id_seur_pos;var id_address_delivery;var collectionPointInfo;var noSelectedPointInfo;var listPoints;var carrierTable;var carrierTableInput;var carrierTableInputContainer;var currentCarrierId;var map;var id_seur_RESTO_array;$(document).ready(function(){$('input[type="radio"][name="id_carrier"]').on('change',function(){initSeurCarriers()});$('.delivery-option input[type="radio"]').on('change',function(event){initSeurCarriers()});$('#cgv').on('change',function(){check_reembolsoSeur()});$('#recyclable').on('change',function(){check_reembolsoSeur()});$('#gift').on('change',function(){check_reembolsoSeur()});$('#id_address_delivery').on('change',function(){check_reembolsoSeur()})});function initSeurCarriers(){displayCarriers=!1;assignGlobalVariables();if(displayCarriers){initSeurMaps()}else{if(ps_version_seur!='ps7'){$('div.seurMapContainer').remove();$('#noSelectedPointInfo').remove();$('#collectionPointInfo').remove();$('#listPoints').remove()}else{$('div.seurMapContainer').fadeOut();$('#noSelectedPointInfo').fadeOut();$('#collectionPointInfo').fadeOut();$('#listPoints').fadeOut()}}} 612function assignGlobalVariables(){bodyid=$('body').attr('id');ps_version_seur=$('#ps_version').val();if(ps_version_seur==null){ps_version_seur='ps5'} 613id_seur_pos=$('#id_seur_pos').val();if($('#id_address_delivery').length){id_address_delivery=$('#id_address_delivery')} 614if($('#opc_id_address_delivery').length){id_address_delivery=$('#opc_id_address_delivery')} 615if(typeof AppOPC!==typeof undefined&&$('#delivery_id').length){id_address_delivery=$('#delivery_id')} 616collectionPointInfo=$('#collectionPointInfo');noSelectedPointInfo=$('#noSelectedPointInfo');listPoints=$('#listPoints');carrierTable=(ps_version_seur=='ps4'?$('#carrierTable'):$('#carrier_area'));carrierTableInput=(ps_version_seur=='ps4'?$('input[name="id_carrier"]'):$('.delivery_option_radio'));carrierTableInputContainer=(ps_version_seur=='ps4'?'#carrierTable':'#carrier_area .delivery_options');$('#pos_selected').val('false');
616if(ps_version_seur=='ps4'){if($('#carrierTable').length!=0&&seurCarrierDisplayed(id_seur_pos)){displayCarriers=!0}}else if(ps_version_seur=='ps5'){if($('.delivery_options').length!=0&&seurCarrierDisplayed(id_seur_pos)){displayCarriers=!0}}else{if($('.delivery-options').length!=0&&seurCarrierDisplayed(id_seur_pos)){displayCarriers=!0}} 617map=$('<div />').attr('id','seurMap').attr('init','false');if($('#id_seur_RESTO').length>0){id_seur_RESTO=$('#id_seur_RESTO');id_seur_RESTO_array=id_seur_RESTO.val().split(',')}} 618function check_reembolsoSeur(){currentCarrierId=$('input[type="radio"]:checked',$(carrierTableInputContainer)).val();if(typeof currentCarrierId!=='undefined') 619currentCarrierId=currentCarrierId.replace(',','');if(currentCarrierId==id_seur_pos){if(map.attr('init')=='false'){map.removeClass('showmap').attr('init','true').css('position','absolute')} 620if(!map.hasClass('showmap')){map.addClass('showmap').css('position','relative')} 621$('#reembolsoSEUR').hide()}else if(id_seur_RESTO_array.indexOf(""+currentCarrierId)>-1){$('#reembolsoSEUR').show();setTimeout(function(){$('#reembolsoSEUR').show()},500);setTimeout(function(){$('#reembolsoSEUR').show()},1000);setTimeout(function(){$('#reembolsoSEUR').show()},3000)}else{$('#reembolsoSEUR').hide()}} 622function getQuerystring(key,default_){if(default_==null){default_=""} 623key=key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp("[\\?&]"+key+"=([^&#]*)");var qs=regex.exec(window.location.href);if(qs==null){return default_}else{return qs[1]}} 624function seurCarrierDisplayed(id_seur_pos){var displayed=!1;if(ps_version_seur=='ps4'){$('#carrierTable input[type="radio"]').each(function(){if(Number($(this).val().replace(/[^0-9]+/g,''))==Number(id_seur_pos)){displayed=!0;return}})}else if(ps_version_seur=='ps5'){$('.delivery_options input[type="radio"]').each(function(){if(Number($(this).val().replace(/[^0-9]+/g,''))==Number(id_seur_pos)){displayed=!0;return}})}else{$('.delivery-options input[type="radio"]').each(function(){if(Number($(this).val().replace(/[^0-9]+/g,''))==Number(id_seur_pos)){displayed=!0;return}})} 625return displayed} 626function initSeurMaps(){if(displayCarriers){$('span',map).css({'line-height':'64px','font-size':'50px'});map=$('<div />').addClass('seurMapContainer').html(map);if(ps_version_seur=='ps4'){map.insertAfter($('#carrierTable'))}else if(ps_version_seur=='ps5'){var pNavTmp=$("#carrier_area div.delivery_options_address:first");map.insertAfter(pNavTmp)}else if(ps_version_seur=='ps7'){var pNavTmp=$(".delivery-options");map.insertAfter(pNavTmp)} 627if(ps_version_seur!='ps7'){noSelectedPointInfo.fadeOut();collectionPointInfo.fadeOut();noSelectedPointInfo.insertAfter(map);collectionPointInfo.insertAfter(map)}else{noSelectedPointInfo.insertAfter(map);noSelectedPointInfo.fadeOut();collectionPointInfo.insertAfter(map);collectionPointInfo.fadeOut()} 628gMapOptions={zoom:13,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,noClear:!0,disableDefaultUI:!0,panControl:!0,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,rotateControl:!0,keyboardShortcuts:!1,disableDoubleClickZoom:!1,draggable:!0,scrollwheel:!0,draggableCursor:'move',draggingCursor:'move',mapTypeControl:!0,navigationControl:!0,streetViewControl:!0,navigationControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.NavigationControlStyle.ANDROID},scaleControl:!1,scaleControlOptions:{position:google.maps.ControlPosition.BOTTOM_LEFT,style:google.maps.ScaleControlStyle.SMALL}};google.maps.Map.prototype.markers=new Array();google.maps.Marker.prototype.post_codeData=new Object();google.maps.Marker.prototype.popup=new Object();google.maps.Marker.prototype.savepost_codeData=function(data){this.post_codeData=data};google.maps.Marker.prototype.savePopup=function(popup){this.popup=popup};google.maps.Map.prototype.addMarker=function(marker){this.markers[this.markers.length]=marker};google.maps.Map.prototype.clearMarkers=function(){for(var i=0;i<this.markers.length;i++){this.markers[i].setMap(null)} 629this.markers=new Array()};currentMarker=null;gMaps=new google.maps.Map(document.getElementById('seurMap'),gMapOptions);userMarker=new google.maps.Marker({position:null,map:gMaps,title:'Direcci\u00f3n pr\u00f3xima a usted',icon:baseDir+'modules/seur/views/img/user.png',curs
629or:'default',draggable:!1});if((bodyid=='order-opc')&&ps_version_seur=='ps5'){carrier_value=$('input[type="radio"].delivery_option_radio').attr('name');str=carrier_value;cad_string=str.substring(str.indexOf('[')+1,str.indexOf(']'));$('.delivery_option_radio').each(function(){carrier_value=$(this).attr('value');$(this).on('change',null,function(){updateOneStepCloser()})});$('#id_address_delivery').attr('onchange','updateAddressesDisplay(); updateAddressSelectionOneStep();')} 630if(ps_version_seur=='ps7'){carrier_value=$('.delivery-options input[type="radio"]').attr('name');str=carrier_value;cad_string=str.substring(str.indexOf('[')+1,str.indexOf(']'));$('.delivery_option').each(function(){carrier_value=$(this).attr('value');$(this).on('change',null,function(){updateOneStepCloser()})});$('#id_address_delivery').attr('onchange','updateAddressesDisplay(); updateAddressSelectionOneStep();')} 631id_carrier="";var id_seur_pos=$('#id_seur_pos').val();first_time_id=id_seur_pos;if(map.attr('init')=='false'){map.attr('init','true').css('position','absolute')} 632if((ps_version_seur!='ps7'&&$('input[type="radio"]').is(':checked'))||(ps_version_seur=='ps7'&&$('.delivery-options input[type="radio"]').is(':checked'))){if(ps_version_seur!='ps7'){currentCarrierId=$('input[type="radio"]:checked',$(carrierTableInputContainer)).val()}else{currentCarrierId=$('.delivery-options input[type="radio"]:checked').val()} 633currentCarrierId=currentCarrierId.replace(",","");if(currentCarrierId==id_seur_pos){printMap();check_reembolsoSeur();listPoints.appendTo('.seurMapContainer');listPoints.fadeIn();$('#seurPudoContainer').appendTo('.seurMapContainer');(!map.hasClass("showmap")?map.addClass('showmap').css('position','relative'):"");if($('#pos_selected').val()=="false"){$('input[name="processCarrier"]').attr("disabled","disabled");$('button[name="processCarrier"]').attr("disabled","disabled");$('#opc_payment_methods').hide();noSelectedPointInfo.fadeIn()} 634if($('#pos_selected').val()=="true"){$('input[name="processCarrier"]').removeAttr("disabled");$('button[name="processCarrier"]').removeAttr("disabled");noSelectedPointInfo.fadeOut();$('#opc_payment_methods').show()}($('#reembolsoSEUR').is(":visible")?$('#reembolsoSEUR').fadeOut():"")}else{if(ps_version_seur!='ps7'){$('div.seurMapContainer').remove();$('#noSelectedPointInfo').remove();$('#collectionPointInfo').remove();$('input[name=processCarrier]').removeAttr('disabled');$('button[name=processCarrier]').removeAttr('disabled')}else{$('div.seurMapContainer').fadeOut();$('#noSelectedPointInfo').fadeOut();$('#collectionPointInfo').fadeOut();$('input[name=processCarrier]').removeAttr('disabled');$('button[name=processCarrier]').removeAttr('disabled')}}}}};function saveCollectorPoint(id_cart,post_codeData){var chosen_address_delivery=id_address_delivery.val();if(!(chosen_address_delivery in seur_token_)) 635var current_token=null;else var current_token=seur_token_[chosen_address_delivery];
635$.ajax({url:baseDir+'modules/seur/ajax/getPickupPointsAjax.php',type:'GET',data:{savepos:!0,id_cart:encodeURIComponent(id_cart),id_seur_pos:encodeURIComponent(post_codeData.codCentro),company:encodeURIComponent(post_codeData.company),address:encodeURIComponent(post_codeData.address),city:encodeURIComponent(post_codeData.city),post_code:encodeURIComponent(post_codeData.post_code),phone:encodeURIComponent(post_codeData.phone),timetable:encodeURIComponent(post_codeData.timetable),chosen_address_delivery:chosen_address_delivery,token:encodeURIComponent(current_token)},dataType:'json',async:!1,success:function(data){$('#pos_selected').val("true");$('#opc_payment_methods').show();$('input[name="processCarrier"]').removeAttr('disabled');$('button[name="processCarrier"]').removeAttr('disabled')},error:function(xhr,ajaxOptions,thrownError){$('#pos_selected').val('false')}})} 636function updateOneStepCloser(){var recyclablePackage=0;var cgvChecked=0;var gift=0;var giftMessage='';var delivery_option_radio=$('.delivery_option_radio');var delivery_option_params='&';$.each(delivery_option_radio,function(i){if($(this).prop('checked'))delivery_option_params+=$(delivery_option_radio[i]).attr('name')+'='+encodeURIComponent($(delivery_option_radio[i]).val())+'&'});if(delivery_option_params=='&')delivery_option_params='&delivery_option=&';if($('input#recyclable:checked').length)recyclablePackage=1;if($('input#gift:checked').length){gift=1;giftMessage=encodeURIComponent($('#gift_message').val())} 637if($('input#cgv:checked').length)cgvChecked=1;$('#opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow');$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:orderOpcUrl+'?rand='+new Date().getTime(),async:!0,cache:!1,dataType:"json",data:'ajax=true&method=updateCarrierAndGetPayments'+delivery_option_params+'checked='+encodeURIComponent(cgvChecked)+'&recyclable='+encodeURIComponent(recyclablePackage)+'&gift='+encodeURIComponent(gift)+'&gift_message='+encodeURIComponent(giftMessage)+'&token='+encodeURIComponent(static_token),success:function(jsonData){if(jsonData.hasError){var errors='';for(var error in jsonData.errors){if(error!=='indexOf')errors+=jsonData.errors[error]+"\n"} 638alert(errors)}else{updateCartSummary(jsonData.summary);updatePaymentMethods(jsonData);updateHookShoppingCart(jsonData.summary.HOOK_SHOPPING_CART);updateHookShoppingCartExtra(jsonData.summary.HOOK_SHOPPING_CART_EXTRA);$('#opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow')}},error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus!=='abort')alert("TECHNICAL ERROR: unable to save carrier \n\nDetails:\nError thrown: "+XMLHttpRequest+"\n"+'Text status: '+textStatus);$('#opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow')}})} 639function updateAddressSelectionOneStep(){var idAddress_delivery=($('#opc_id_address_delivery').length==1?$('#opc_i
639d_address_delivery').val():$('#id_address_delivery').val());var idAddress_invoice=($('#opc_id_address_invoice').length==1?$('#opc_id_address_invoice').val():($('#addressesAreEquals:checked').length==1?idAddress_delivery:($('#id_address_invoice').length==1?$('#id_address_invoice').val():idAddress_delivery)));$('#opc_account-overlay').fadeIn('slow');$('#opc_delivery_methods-overlay').fadeIn('slow');$('#opc_payment_methods-overlay').fadeIn('slow');$.ajax({type:'POST',headers:{"cache-control":"no-cache"},url:orderOpcUrl+'?rand='+new Date().getTime(),async:!0,cache:!1,dataType:"json",data:'ajax=true&method=updateAddressesSelected&id_address_delivery='+encodeURIComponent(idAddress_delivery)+'&id_address_invoice='+encodeURIComponent(idAddress_invoice)+'&token='+encodeURIComponent(static_token),success:function(jsonData){if(jsonData.hasError){var errors='';for(var error in jsonData.errors){if(error!=='indexOf')errors+=jsonData.errors[error]+"\n"} 640alert(errors)}else{$('#cart_summary .address_'+deliveryAddress).each(function(){$(this).removeClass('address_'+deliveryAddress).addClass('address_'+idAddress_delivery);$(this).attr('id',$(this).attr('id').replace(/_\d+$/,'_'+idAddress_delivery));if($(this).find('.cart_unit span').length>0&&$(this).find('.cart_unit span').attr('id').length>0){$(this).find('.cart_unit span').attr('id',$(this).find('.cart_unit span').attr('id').replace(/_\d+$/,'_'+idAddress_delivery))} 641if($(this).find('.cart_total span').length>0&&$(this).find('.cart_total span').attr('id').length>0){$(this).find('.cart_total span').attr('id',$(this).find('.cart_total span').attr('id').replace(/_\d+$/,'_'+idAddress_delivery))} 642if($(this).find('.cart_quantity_input').length>0&&$(this).find('.cart_quantity_input').attr('name').length>0){var name=$(this).find('.cart_quantity_input').attr('name')+'_hidden';$(this).find('.cart_quantity_input').attr('name',$(this).find('.cart_quantity_input').attr('name').replace(/_\d+$/,'_'+idAddress_delivery));if($(this).find('[name='+name+']').length>0)$(this).find('[name='+name+']').attr('name',name.replace(/_\d+_hidden$/,'_'+idAddress_delivery+'_hidden'))} 643if($(this).find('.cart_quantity_delete').length>0&&$(this).find('.cart_quantity_delete').attr('id').length>0){$(this).find('.cart_quantity_delete').attr('id',$(this).find('.cart_quantity_delete').attr('id').replace(/_\d+$/,'_'+idAddress_delivery)).attr('href',$(this).find('.cart_quantity_delete').attr('href').replace(/id_address_delivery=\d+&/,'id_address_delivery='+idAddress_delivery+'&'))} 644if($(this).find('.cart_quantity_down').length>0&&$(this).find('.cart_quantity_down').attr('id').length>0){$(this).find('.cart_quantity_down').attr('id',$(this).find('.cart_quantity_down').attr('id').replace(/_\d+$/,'_'+idAddress_delivery)).attr('href',$(this).find('.cart_quantity_down').attr('href').replace(/id_address_delivery=\d+&/,'id_address_delivery='+idAddress_delivery+'&'))} 645if($(this).find('.cart_quantity_up').length>0&&$(this).find('.cart_quantity_up').attr('id').length>0){$(this).find('.cart_quantity_up').attr('id',$(this).find('.cart_quantity_up').attr('id').replace(/_\d+$/,'_'+idAddress_delivery)).attr('href',$(this).find('.cart_quantity_up').attr('href').replace(/id_address_delivery=\d+&/,'id_address_delivery='+idAddress_delivery+'&'))}});deliveryAddress=idAddress_delivery;if(window.ajaxCart!==undefined){$('#cart_block_list dd, #cart_block_list dt').each(function(){if(typeof($(this).attr('id'))!='undefined')$(this).attr('id',$(this).attr('id').replace(/_\d+$/,'_'+idAddress_delivery))})} 646updateCarrierListOneStep(jsonData.carrier_data);updatePaymentMethods(jsonData);updateCartSummary(jsonData.summary);updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);if($('#gift-price').length==1)$('#gift-price').html(jsonData.gift_price);$('#opc_account-overlay, #opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow')}},error:function(XMLHttpRequest,textStatus,errorThrown){if(textStatus!=='abort')alert("TECHNICAL ERROR: unable to save adresses \n\nDetails:\nError thrown: "+XMLHttpRequest+"\n"+'Text status: '+textStatus);$('#opc_account-overlay, #opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow')}})} 647function updateUserMapPosition(){usrAddress=getUserAddress(id_address_delivery.val());geocoder=new google.maps.Geocoder();geocoder.geocode({'address':usrAddress},function(result,status){if(status==google.maps.GeocoderStatus.OK){gMaps.setCenter(result[0].geometry.location);userMarker.setPosition(result[0].geometry.location)}else alert('updateUserMapPosition id_address: '+id_address_delivery.val()+' Error address in update the map: '+status)})} 648function updateCarrierListOneStep(json){var html=json.carrier_block;$('#carrier_area').replaceWith(html);bindInputs();$('#HOOK_BEFORECARRIER').html(json.HOOK_BEFORECARRIER);if(bodyid=='order-opc'&&ps_version_seur=='ps5'&&$('.delivery_option_radio').length>0){carrier_value=$('.delivery_option_radio').attr('name');str=carrier_value;cad_string=str.substring(str.indexOf('[')+1,str.indexOf(']'));$('.delivery_option_radio').each(function(){carrier_value=$(this).attr('value');$(this).on('change',null,function(){updateOneStepCloser()})})} 649if(map.attr('init')=='false'){map.removeClass('showmap').attr('init','true').css('position','absolute')} 650if($('input[type="radio"]').is(':checked')){currentCarrierId=$('input[type="radio"]:checked',$(carrierTableInputContainer)).val();currentCarrierId=currentCarrierId.replace(",","");
650if(currentCarrierId==id_seur_pos){(!map.hasClass("showmap")?map.addClass('showmap').css('position','relative'):"");if($('#pos_selected').val()=="false"){$('input[name="processCarrier"]').attr("disabled","disabled");$('button[name="processCarrier"]').attr("disabled","disabled");$('#opc_payment_methods').hide();noSelectedPointInfo.fadeIn()} 651if($('#pos_selected').val()=="true"){$('input[name="processCarrier"]').removeAttr("disabled");$('button[name="processCarrier"]').removeAttr("disabled");noSelectedPointInfo.fadeOut();$('#opc_payment_methods').show()}($('#reembolsoSEUR').is(":visible")?$('#reembolsoSEUR').fadeOut():"")}else{map.removeClass('showmap').css('position','absolute');if(ps_version_seur!='ps7'){noSelectedPointInfo.remove();collectionPointInfo.remove()}else{noSelectedPointInfo.fadeOut();collectionPointInfo.fadeOut()} 652$('#opc_payment_methods').show()}}} 653function getUserAddress(idAddress){if(!(idAddress in seur_token_)) 654var current_token=null;else var current_token=seur_token_[idAddress];address="";$.ajax({url:baseDir+'modules/seur/ajax/getPickupPointsAjax.p
654hp',type:'GET',data:{usr_id_address:encodeURIComponent(idAddress),token:encodeURIComponent(current_token)},dataType:'html',async:!1,success:function(addr){address=addr},error:function(xhr,ajaxOptions,thrownError){}});return address} 655function newGMap(){usrAddress=getUserAddress(id_address_delivery.val());geocoder=new google.maps.Geocoder();geocoder.geocode({'address':usrAddress},function(result,status){if(status==google.maps.GeocoderStatus.OK){gMaps.setCenter(result[0].geometry.location);userMarker.setPosition(result[0].geometry.location);$('.seurMapContainer').css({'position':'relative','left':'inherit'})}else{map.removeClass('showmap').css('position','absolute');if(ps_version_seur!='ps7'){noSelectedPointInfo.fadeOut();collectionPointInfo.fadeOut();$('#opc_payment_methods').show();alert(no_pickup_points_error_text);$('div.seurMapContainer').fadeOut();$('#noSelectedPointInfo').fadeOut();$('#collectionPointInfo').fadeOut()}else{noSelectedPointInfo.remove();collectionPointInfo.remove();$('#opc_payment_methods').show();alert(no_pickup_points_error_text);$('div.seurMapContainer').remove();$('#noSelectedPointInfo').remove();$('#collectionPointInfo').remove()} 656$('input[name=processCarrier]').removeAttr('disabled');$('button[name=processCarrier]').removeAttr('disabled')}})} 657function getSeurCollectionPoints(){if(!(id_address_delivery.val()in seur_token_)) 658var current_token=null;else var current_token=seur_token_[id_address_delivery.val()];points=!1;
658$.ajax({url:baseDir+'modules/seur/ajax/getPickupPointsAjax.php',type:'GET',data:{id_address_delivery:encodeURIComponent(id_address_delivery.val()),token:encodeURIComponent(current_token)},dataType:'json',async:!1,success:function(data){points=data},error:function(xhr,ajaxOptions,thrownError){map.html(thrownError)}});return points} 659function printMap(){points=getSeurCollectionPoints();newMap=newGMap();if(newMap!=undefined){printCollectorPoints(points)}else{printPointsList(points)}} 660function printPointsList(collectorPoints){$('#seurPudoContainer').html('');$.each(collectorPoints,function(key,post_code){var html=$("<div><input type='radio' name='pickupPoint' id='pickupPoint' value='"+post_code.codCentro+"'> <span class='tittle'>"+post_code.company+"</span> - <span class='direccion'>"+post_code.address+"</span></div>").on('click',function(){currentPoint=PointClick(post_code)});$('#seurPudoContainer').append(html)});$('#seurMap').remove();$('.seurMapContainer').css({'position':'relative','left':'inherit','height':'auto'});$('#listPoints').css({'position':'relative','width':'100%','height':'auto'});$('#seurPudoContainer').css({'display':'block','padding':'0 0 15px 0'})} 661$('#pickupPoint').on('click',function(){currentPoint=PointClick(currentPoint,post_code)});function printCollectorPoints(collectorPoints){if(gMaps.markers.length>0){gMaps.clearMarkers()} 662var markers=[];$.each(collectorPoints,function(key,post_code){latlng=new google.maps.LatLng(parseFloat(post_code.position.lat),parseFloat(post_code.position.lng));marker=new google.maps.Marker({position:new google.maps.LatLng(post_code.position.lat,post_code.position.lng),map:gMaps,title:'Seleccionar '+post_code.company,icon:baseDir+'modules/seur/views/img/puntoRecogida.png',curs
662or:'default',draggable:!1});popup=new google.maps.InfoWindow({content:"<h4>"+post_code.company+"</h4><p>"+post_code.address+"</p>"});gMaps.addMarker(marker);marker.savepost_codeData(post_code);marker.savePopup(popup);markers[key]=marker;var html=$("<div><span class='tittle'>"+post_code.company+"</span><p>"+post_code.address+"</p></div>").on('click',function(){currentMarker=markerClick(currentMarker,markers[key])});$('#listPoints').append(html);google.maps.event.addListener(marker,'click',function(){currentMarker=markerClick(currentMarker,this)})})} 663function markerClick(currentMarker,marker){if(currentMarker!=null){currentMarker.setIcon(baseDir+'modules/seur/views/img/puntoRecogida.png');currentMarker.popup.close()} 664marker.setIcon(baseDir+'modules/seur/views/img/puntoRecogidaSel.png');marker.popup.open(gMaps,marker);$('#id_seur_pos',collectionPointInfo).val(marker.post_codeData.codCentro);$('#post_codeCompany',collectionPointInfo).html(marker.post_codeData.company);$('#post_codeAddress',collectionPointInfo).html(marker.post_codeData.address);$('#post_codeCity',collectionPointInfo).html(marker.post_codeData.city);$('#post_codePostalCode',collectionPointInfo).html(marker.post_codeData.post_code);$('#post_codeTimetable',collectionPointInfo).html(marker.post_codeData.timetable);$('#post_codePhone',collectionPointInfo).html(marker.post_codeData.phone);if(!collectionPointInfo.is(":visible")){collectionPointInfo.fadeIn();noSelectedPointInfo.fadeOut()} 665currentMarker=marker;saveCollectorPoint($('#id_cart_seur').val(),marker.post_codeData);return currentMarker} 666function PointClick(post_codeData){$("input[name=pickupPoint][value="+post_codeData.codCentro+"]").attr('checked','checked');$('#id_seur_pos',collectionPointInfo).val(post_codeData.codCentro);$('#post_codeCompany',collectionPointInfo).html(post_codeData.company);$('#post_codeAddress',collectionPointInfo).html(post_codeData.address);$('#post_codeCity',collectionPointInfo).html(post_codeData.city);$('#post_codePostalCode',collectionPointInfo).html(post_codeData.post_code);$('#post_codeTimetable',collectionPointInfo).html(post_codeData.timetable);$('#post_codePhone',collectionPointInfo).html((post_codeData.phone==''?'-':post_codeData.phone));if(!collectionPointInfo.is(":visible")){collectionPointInfo.fadeIn();noSelectedPointInfo.fadeOut()} 667saveCollectorPoint($('#id_cart_seur').val(),post_codeData);return!0};/** 668* 2007-2017 PrestaShop 669* 670* NOTICE OF LICENSE 671* 672* This source file is subject to the Academic Free License (AFL 3.0) 673* that is bundled with this package in the file LICENSE.txt. 674* It is also available through the world-wide-web at this URL: 675* http://opensource.org/licenses/afl-3.0.php 676* If you did not receive a copy of the license and are unable to 677* obtain it through the world-wide-web, please send an email 678* to [email protected] so we can send you a copy immediately. 679* 680* DISCLAIMER 681* 682* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 683* versions in the future. If you wish to customize PrestaShop for your 684* needs please refer to http://www.prestashop.com for more information. 685* 686* @author PrestaShop SA <[email protected]> 687* @copyright 2007-2017 PrestaShop SA 688* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 689* International Registered Trademark & Property of PrestaShop SA 690* 691* Don't forget to prefix your containers with your own identifier 692* to avoid any conflicts with others containers. 693*/ 694$(document).ready(function(){initSeurCarriers()});(function(window,document){'use strict';var config=window.ndxtsReviews||{};var reviewFeedUrl=config.feedUrl||'';var MIN_RATING=parseInt(config.minRating,10)||4;var MAX_REVIEWS=parseInt(config.maxReviews,10)||60;var ONLY_VERIFIED=!0;var MIN_TEXT_LENGTH=8;var allReviewsUrl='#';function domReady(callback){if(window.jQuery){window.jQuery(callback);return} 695if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',callback)}else{callback()}} 696domReady(function(){initBeljemiTrustedReviews()});function initBeljemiTrustedReviews(){var section=document.getElementById('beljemiTrustedReviews');var track=document.getElementById('beljemiTrustedReviewsList');
696if(!section||!track){return} 697if(!reviewFeedUrl){track.innerHTML='<p class="beljemi-trusted-reviews__empty">Configura la URL del feed en el módulo.</p>';return} 698setupAllReviewsLink();fetch(reviewFeedUrl,{cache:'no-store'}).then(function(response){if(!response.ok){throw new Error('Feed no disponible')} 699return response.json()}).then(function(data){var list=Array.isArray(data)?data:(data.reviews||data.items||data.data||[]);var reviews=list.map(normalizeReview).filter(isGoodReview).sort(function(a,b){return b.dateValue-a.dateValue});reviews=dedupe(reviews).slice(0,MAX_REVIEWS);renderReviews(track,reviews);initCarouselNav(section,track)}).catch(function(error){if(window.console&&console.warn){console.warn('[Trusted Shops] No se pudieron cargar las opiniones.',error)} 700track.innerHTML='<p class="beljemi-trusted-reviews__empty">No se pudieron cargar las opiniones en este momento.</p>'})} 701function setupAllReviewsLink(){var link=document.getElementById('beljemiTrustedReviewsLink');if(!link){return} 702if(allReviewsUrl&&allReviewsUrl!=='#'){link.href=allReviewsUrl}else{link.style.display='none'}} 703function normalizeReview(r){r=r||{};return{id:r.id||'',rating:Number(r.rating),title:String(r.title||'').trim(),text:String(r.comment||r.text||'').trim(),author:buildAuthor(r.consumer),verified:!!r.isVerified,dateLabel:formatDate(r.date),dateValue:r.date?new Date(r.date).getTime():0}} 704function isGoodReview(r){if(isNaN(r.rating)||r.rating<MIN_RATING){return!1} 705if(ONLY_VERIFIED&&!r.verified){return!1} 706if(r.text.length<MIN_TEXT_LENGTH){return!1} 707return!0} 708function buildAuthor(consumer){if(!consumer){return'Cliente verificado'} 709var name=(String(consumer.firstName||'').trim()+' '+String(consumer.lastName||'').trim()).trim();return name||'Cliente verificado'} 710function formatDate(value){if(!value){return''} 711var d=new Date(value);if(isNaN(d.getTime())){return''} 712try{return d.toLocaleDateString('es-ES',{month:'long',year:'numeric'})}catch(e){return String(d.getFullYear())}} 713function dedupe(reviews){var seen={};var out=[];reviews.forEach(function(r){var key=r.id||r.text;if(!seen[key]){seen[key]=!0;out.push(r)}});return out} 714function renderReviews(track,reviews){if(!reviews.length){track.innerHTML='<p class="beljemi-trusted-reviews__empty">Ahora mismo no hay opiniones destacadas para mostrar.</p>';return} 715track.innerHTML=reviews.map(function(review){var titleHtml=review.title?'<div class="beljemi-trusted-review__title">'+escapeHtml(truncate(review.title,70))+'</div>':'';var meta=review.author+(review.dateLabel?' \u00B7 '+review.dateLabel:'');return['<article class="beljemi-trusted-review">','<div class="beljemi-trusted-review__stars" aria-label="'+review.rating+' de 5 estrellas">',buildStars(review.rating),'</div>',titleHtml,'<div class="beljemi-trusted-review__text">
715',escapeHtml(truncate(review.text,220)),'</div>','<div class="beljemi-trusted-review__meta">',escapeHtml(meta),'</div>','</article>'].join('')}).join('')} 716function initCarouselNav(section,track){var prev=section.querySelector('.beljemi-trusted-reviews__nav--prev');var next=section.querySelector('.beljemi-trusted-reviews__nav--next');if(!prev||!next){return} 717function pageWidth(){return Math.max(track.clientWidth*0.9,200)} 718prev.addEventListener('click',function(){track.scrollBy({left:-pageWidth(),behavior:'smooth'})});next.addEventListener('click',function(){track.scrollBy({left:pageWidth(),behavior:'smooth'})});function updateButtons(){var maxScroll=track.scrollWidth-track.clientWidth-2;prev.disabled=track.scrollLeft<=2;next.disabled=track.scrollLeft>=maxScroll} 719track.addEventListener('scroll',updateButtons);window.addEventListener('resize',updateButtons);updateButtons()} 720function buildStars(rating){var rounded=Math.round(rating);var stars='';for(var i=1;i<=5;i++){stars+=i<=rounded?'\u2605':'\u2606'} 721return stars} 722function truncate(value,maxLength){var text=String(value||'').trim();if(text.length<=maxLength){return text} 723return text.substring(0,maxLength).trim()+'\u2026'} 724function escapeHtml(value){return String(value==null?'':value).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''')}})(window,document);(function($,window,document){'use strict';if(window.__NDX_PRODUCT_COLORS_LOADED__){return} 725window.__NDX_PRODUCT_COLORS_LOADED__=!0;var state={data:null,currentAttribute:0,listingColors:{},listingImages:{},listingRequestKey:'',productConfigRequest:null,productConfigAttempts:0,productSignature:'',applyToken:0,deepLinkToken:0,deepLinkApplied:!1,observers:[]};function readData(){var node=document.getElementById('ndx-product-colors-data');if(!node){return null} 726try{return JSON.parse(node.textContent||node.innerText||'{}')}catch(e){return null}} 727function isProductPage(){return typeof window.prestashop!=='undefined'&&window.prestashop.page&&window.prestashop.page.page_name==='product'} 728function detectCurrentProductId(){if(!isProductPage()){return 0} 729var direct=document.getElementById('product_page_product_id');if(direct&&parseInt(direct.value,10)>0){return parseInt(direct.value,10)} 730var selectors=['#add-to-cart-or-refresh input[name="id_product"]','.product-actions input[name="id_product"]'];for(var i=0;i<selectors.length;i++){var el=document.querySelector(selectors[i]);if(el&&parseInt(el.value,10)>0){return parseInt(el.value,10)}} 731return 0} 732function slickReady($slider){return $slider.length&&$slider.hasClass('slick-initialized')&&typeof $slider.slick==='function'} 733function imageIdFromUrl(url){var value=String(url||'').split('?')[0].split('#')[0];var strict=value.match(/\/(\d+)-[A-Za-z0-9_]+\/[^\/]+$/)||value.match(/\/(\d+)-[A-Za-z0-9_]+\.(?:jpe?g|png|webp|gif|avif)$/i);if(strict){return parseInt(strict[1],10)||0} 734var match=value.match(/\/(\d+)-/);if(match){return parseInt(match[1],10)||0} 735match=value.match(/\/(\d+)\.(?:jpe?g|png|webp)$/i);return match?(parseInt(match[1],10)||0):0} 736function slideImageId(slide){var url=$(slide).find('[data-image-large-src]').first().attr('data-image-large-src')||'';return imageIdFromUrl(url)} 737function syncSlickIndexes($slider){var slick=$slider.slick('getSlick');if(!slick||!slick.$slides){return} 738slick.$slides.each(function(i){this.setAttribute('data-slick-index',i)})} 739function resetSlick($slider){if(!slickReady($slider)){return!1} 740$slider.slick('slickUnfilter');syncSlickIndexes($slider);$slider.slick('slickGoTo',0,!0);$slider.slick('setPosition');return!0} 741function buildAllowedImageIds(color){var ids=[];if(color&&$.isArray(color.imageIds)){ids=ids.concat(color.imageIds)} 742if(state.data&&state.data.product&&$.isArray(state.data.product.commonImageIds)){ids=ids.concat(state.data.product.commonImageIds)} 743var map={};ids.forEach(function(id){id=parseInt(id,10)||0;if(id){map[id]=!0}});return map} 744function filterSlickByIds($slider,allowedIds,preferredImageId){if(!slickReady($slider)){return!1} 745$slider.slick('slickUnfilter');$slider.slick('slickFilter',function(){return!!allowedIds[slideImageId(this)]});var slick=$slider.slick('getSlick');if(!slick||!slick.slideCount){$slider.slick('slickUnfilter');syncSlickIndexes($slider);$slider.slick('setPosition');return!1} 746syncSlickIndexes($slider);var preferred=parseInt(preferredImageId,10)||0;var index=0;
746if(preferred&&slick.$slides){slick.$slides.each(function(i){if(slideImageId(this)===preferred){index=i;return!1}})} 747$slider.slick('slickGoTo',index,!0);$slider.slick('setPosition');return!0} 748function galleriesReady(){return slickReady($('#product-images-large'))&&slickReady($('#product-images-thumbs'))} 749function applyProductColor(attributeId,force){if(!state.data||!state.data.product||!state.data.product.colors){return!1} 750attributeId=parseInt(attributeId,10)||0;var color=state.data.product.colors[String(attributeId)];if(!attributeId||!color){return!1} 751if(!force&&state.currentAttribute===attributeId){return!0} 752if(!galleriesReady()){return!1} 753var $large=$('#product-images-large');var $thumbs=$('#product-images-thumbs');if(!$.isArray(color.imageIds)||!color.imageIds.length){resetSlick($thumbs);resetSlick($large);state.currentAttribute=attributeId;return!0} 754var allowed=buildAllowedImageIds(color);var preferred=parseInt(color.previewImageId,10)||parseInt(color.imageIds[0],10)||0;var thumbsOk=filterSlickByIds($thumbs,allowed,preferred);var largeOk=filterSlickByIds($large,allowed,preferred);if(thumbsOk&&largeOk){state.currentAttribute=attributeId;return!0} 755return!1} 756function applyProductColorWhenReady(attributeId,attempt,token){attempt=attempt||0;if(!attempt){state.applyToken+=1;token=state.applyToken}else if(token!==state.applyToken){return} 757if(applyProductColor(attributeId,!0)){return} 758if(attempt<120){window.setTimeout(function(){applyProductColorWhenReady(attributeId,attempt+1,token)},50)}} 759function filterModal(){if(!state.currentAttribute||!state.data||!state.data.product){return} 760var color=state.data.product.colors[String(state.currentAttribute)];var $modal=$('#modal-product-thumbs');if(!color||!slickReady($modal)){return} 761if(!$.isArray(color.imageIds)||!color.imageIds.length){resetSlick($modal);return} 762filterSlickByIds($modal,buildAllowedImageIds(color),parseInt(color.previewImageId,10)||parseInt(color.imageIds[0],10)||0)} 763function configuredGroupId(){return state.data&&state.data.product?(parseInt(state.data.product.groupId,10)||0):0} 764function getCurrentMegaSelection(){var groupId=configuredGroupId();if(!groupId){return 0} 765var selected=document.querySelector('.mp_color_pick.selectAttr[data-group="'+groupId+'"][data-attr]');return selected?(parseInt(selected.getAttribute('data-attr'),10)||0):0} 766function resolveMegaEntry(groupId,attributeId){groupId=parseInt(groupId,10)||0;attributeId=parseInt(attributeId,10)||0;if(!groupId||!attributeId){return null} 767var selector='a.mp_color_pick[id^="megafield_"][data-group="'+groupId+'"][data-attr="'+attributeId+'"]';var nodes=document.querySelectorAll(selector);if(nodes.length!==1){return null} 768var match=/^megafield_(\d+)_(\d+)$/.exec(nodes[0].id||'');if(!match){return null} 769return{element:nodes[0],addgroup:parseInt(match[1],10),attributeId:attributeId}} 770function megaEntrySelected(entry){if(!entry){return!1} 771if(typeof window.getMegaGroupById==='function'){try{var group=window.getMegaGroupById(entry.addgroup);if(group&&typeof group.selected!=='undefined'){return String(group.selected)===String(entry.attributeId)}}catch(e){}} 772return entry.element.classList.contains('selectAttr')} 773function selectMegaProductColor(groupId,attributeId){var configured=configuredGroupId();groupId=parseInt(groupId,10)||0;attributeId=parseInt(attributeId,10)||0;if(!configured||configured!==groupId||!attributeId){return!1} 774if(!state.data.product.colors[String(attributeId)]){return!1} 775var entry=resolveMegaEntry(groupId,attributeId);if(!entry||typeof window.updateMegaAttrSelect!=='function'){return!1} 776if(!megaEntrySelected(entry)){window.updateMegaAttrSelect(entry.addgroup,entry.attributeId)} 777state.currentAttribute=attributeId;applyProductColorWhenReady(attributeId,0);return!0} 778function getMpSelection(){var match=/(?:^|[?&])mp=([^&#]*)/.exec(window.location.search||'');if(!match){return null} 779var raw;try{raw=decodeURIComponent(match[1])}catch(e){raw=match[1]} 780var tokens=String(raw).split(',');for(var i=0;i<tokens.length;i++){var qualified=/^(\d+):(\d+)$/.exec(tokens[i].replace(/\s+/g,''));if(qualified){return{groupId:parseInt(qualified[1],10),attributeId:parseInt(qualified[2],10)}}} 781return null} 782function applyDeepLinkWhenReady(selection,attempt,token){attempt=attempt||0;if(!selection||state.deepLinkApplied){return} 783if(!attempt){state.deepLinkToken+=1;token=state.deepLinkToken}else if(token!==state.deepLinkToken){return} 784if(selectMegaProductColor(selection.groupId,selection.attributeId)){state.deepLinkApplied=!0;return} 785if(attempt<80){window.setTimeout(function(){applyDeepLinkWhenReady(selection,attempt+1,token)},100)}}
786function disconnectObservers(){state.observers.forEach(function(observer){observer.disconnect()});state.observers=[]} 787function observeMegaProduct(){disconnectObservers();var groupId=configuredGroupId();if(!groupId||typeof window.MutationObserver==='undefined'){return} 788$('.mp_color_pick[data-group="'+groupId+'"][data-attr]').each(function(){var element=this;var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.attributeName!=='class'||!element.classList.contains('selectAttr')){return} 789var attributeId=parseInt(element.getAttribute('data-attr'),10)||0;if(attributeId&&state.data.product.colors[String(attributeId)]){state.currentAttribute=attributeId;applyProductColorWhenReady(attributeId,0)}})});observer.observe(element,{attributes:!0,attributeFilter:['class']});state.observers.push(observer)})} 790function initializeProductIntegration(){if(!state.data||!state.data.product||!state.data.product.colors){return} 791observeMegaProduct();var deepLink=state.deepLinkApplied?null:getMpSelection();if(deepLink&&deepLink.groupId===configuredGroupId()&&state.data.product.colors[String(deepLink.attributeId)]){applyDeepLinkWhenReady(deepLink,0);return} 792var selected=getCurrentMegaSelection();if(selected&&state.data.product.colors[String(selected)]){state.currentAttribute=selected;applyProductColorWhenReady(selected,0)}} 793function loadProductConfigIfNeeded(){if(!isProductPage()||!state.data||!state.data.settings||state.productConfigRequest){return} 794var productId=detectCurrentProductId();if(!productId){state.productConfigAttempts+=1;if(state.productConfigAttempts<=100){window.setTimeout(loadProductConfigIfNeeded,50)} 795return} 796var url=state.data.settings.productConfigUrl;if(!url){return} 797state.productConfigRequest=$.ajax({url:url,method:'GET',dataType:'json',cache:!1,data:{ajax:1,id_product:productId,id_shop:parseInt(state.data.settings.shopId,10)||0}}).done(function(response){if(!response||!response.success){return} 798var product=response.product||null;var signature=product?JSON.stringify(product):'';if(signature&&signature===state.productSignature){return} 799state.data.product=product;state.productSignature=signature;if(state.data.product&&state.data.product.colors){initializeProductIntegration()}}).always(function(){state.productConfigRequest=null})} 800function getCardProductId($card){var id=parseInt($card.attr('data-id-product'),10)||0;if(!id){id=parseInt($card.attr('data-product-id'),10)||0} 801if(!id){var nested=$card.find('[data-id-product], [data-product-id]').first();if(nested.length){id=parseInt(nested.attr('data-id-product')||nested.attr('data-product-id'),10)||0}} 802return id} 803function getProductCards(){var $cards=$('.js-product-miniature, .product-miniature');if(!$cards.length){$cards=$('[data-id-product], [data-product-id]').filter(function(){return $(this).find('.product-title, .product-price-and-shipping, .thumbnail-container').length>0})} 804return $cards} 805function buildDeepLink(baseUrl,groupId,attributeId){groupId=parseInt(groupId,10)||0;attributeId=parseInt(attributeId,10)||0;if(!groupId||!attributeId){return baseUrl} 806try{var url=new URL(baseUrl,window.location.href);url.searchParams.set('mp',groupId+':'+attributeId);url.hash='';return url.toString()}catch(e){var separator=baseUrl.indexOf('?')===-1?'?':'&';return baseUrl.split('#')[0]+separator+'mp='+groupId+':'+attributeId}} 807function renderListingSwatches(){if(!state.data||!state.data.settings){return} 808var settings=state.data.settings;var colorsMap=state.listingColors||{};getProductCards().each(function(){var $card=$(this);if($card.find('.ndx-product-colors-card').length){return} 809var idProduct=getCardProductId($card);var colors=colorsMap[String(idProduct)]||colorsMap[idProduct];if(!colors||!colors.length){return} 810var $productLink=$card.find('.product-title a, a.product-thumbnail, .thumbnail-container a').first();var baseUrl=$productLink.attr('href')||'';if(!baseUrl){return} 811var $box=$('<div/>',{'class':'ndx-product-colors ndx-product-colors-card ndx-shape-'+(settings.shape||'square'),'data-ndx-product-colors':'1'});var max=Math.max(1,parseInt(settings.maxSwatches,10)||6);
811colors.slice(0,max).forEach(function(color){var groupId=parseInt(color.group_id,10)||0;var attributeId=parseInt(color.attribute_id,10)||0;if(!groupId||!attributeId){return} 812var $a=$('<a/>',{'class':'ndx-color-swatch',href:buildDeepLink(baseUrl,groupId,attributeId),title:color.name||'','aria-label':color.name||'','data-ndx-group':groupId,'data-ndx-attribute':attributeId,'data-ndx-preview':color.preview_url||''});var $span=$('<span/>');if(color.texture){$span.css('background-image','url("'+String(color.texture).replace(/"/g,'\\"')+'")')}else if(color.color){$span.css('background-color',color.color)}else{$span.addClass('ndx-color-fallback')} 813$a.append($span);$box.append($a)});if(settings.showMore&&colors.length>max){$box.append($('<span/>',{'class':'ndx-color-more',text:'+'+(colors.length-max)}))} 814var $target=$card.find('.product-title').first();if($target.length){$box.insertAfter($target)}else{$target=$card.find('.product-price-and-shipping').first();if($target.length){$box.insertBefore($target)}else{$card.append($box)}}})} 815function mergeInlineListingData(){var nodes=document.querySelectorAll('script[id="ndx-product-colors-data"]');for(var i=0;i<nodes.length;i++){try{var parsed=JSON.parse(nodes[i].textContent||nodes[i].innerText||'{}');if(parsed&&parsed.listing&&typeof parsed.listing==='object'){$.extend(state.listingColors,parsed.listing)} 816if(parsed&&parsed.listingImages&&typeof parsed.listingImages==='object'){$.extend(state.listingImages,parsed.listingImages)}}catch(e){}}} 817function collectVisibleProductIds(){var ids=[];getProductCards().each(function(){var id=getCardProductId($(this));if(id&&ids.indexOf(id)===-1){ids.push(id)}});return ids} 818function refreshListingColorsIfNeeded(){if(!state.data||!state.data.settings||!state.data.settings.listingUrl){return} 819var ids=collectVisibleProductIds();if(!ids.length){return} 820var missing=ids.filter(function(id){return typeof state.listingColors[String(id)]==='undefined'&&typeof state.listingColors[id]==='undefined'});if(!missing.length){renderListingSwatches();return} 821var key=missing.sort(function(a,b){return a-b}).join(',');if(state.listingRequestKey===key){return} 822state.listingRequestKey=key;$.ajax({url:state.data.settings.listingUrl,method:'GET',dataType:'json',cache:!1,data:{ajax:1,ids:key}}).done(function(response){if(response&&response.success&&response.colors){$.extend(state.listingColors,response.colors);if(response.images&&typeof response.images==='object'){$.extend(state.listingImages,response.images)} 823missing.forEach(function(id){if(typeof state.listingColors[String(id)]==='undefined'){state.listingColors[String(id)]=[]}});renderListingSwatches()}}).always(function(){state.listingRequestKey=''})} 824var HOVER_IMG_CLASS='ndx-pc-hover-img';var hoverMedia=window.matchMedia?window.matchMedia('(hover: hover) and (pointer: fine)'):null;function canHover(){return!!(hoverMedia&&hoverMedia.matches)} 825function cardImageHost($card){var $img=$card.find('.thumbnail-container img.product-thumbnail-first').first();if(!$img.length){$img=$card.find('.product-thumbnail img, .thumbnail-container img').first()} 826if(!$img.length){return null} 827var $host=$img.closest('a.product-thumbnail, .product-thumbnail, .thumbnail-container').first();return $host.length?$host:null} 828function ensureHoverLayer($host){var $layer=$host.children('img.'+HOVER_IMG_CLASS);if($layer.length){return $layer} 829var host=$host[0];var style=window.getComputedStyle?window.getComputedStyle(host):null;if(style&&style.position==='static'){$host.addClass('ndx-pc-hover-host-pos')} 830if(style&&style.display==='inline'){$host.addClass('ndx-pc-hover-host-block')} 831var img=document.createElement('img');img.className=HOVER_IMG_CLASS;img.setAttribute('alt','');img.setAttribute('aria-hidden','true');img.setAttribute('draggable','false');host.appendChild(img);return $(img)} 832function showCardImage($card,url){if(!url){return} 833var $host=cardImageHost($card);if(!$host){return} 834var $layer=ensureHoverLayer($host);var layer=$layer[0];$layer.data('ndx-wanted',url);if(layer.getAttribute('src')===url&&layer.complete&&layer.naturalWidth){$layer.addClass('is-visible');return} 835$layer.removeClass('is-visible');$layer.off('load.ndxHover error.ndxHover').on('load.ndxHover',function(){if($layer.data('ndx-wanted')===url){$layer.addClass('is-visible')}}
835).on('error.ndxHover',function(){$layer.removeClass('is-visible')});layer.setAttribute('src',url)} 836function hideCardImage($card){var $host=cardImageHost($card);if(!$host){return} 837var $layer=$host.children('img.'+HOVER_IMG_CLASS);$layer.data('ndx-wanted','');$layer.removeClass('is-visible')} 838function secondImageFor($card){var id=getCardProductId($card);if(!id){return''} 839return state.listingImages[String(id)]||state.listingImages[id]||''} 840function preloadCardImages($card){if($card.data('ndx-preloaded')){return} 841$card.data('ndx-preloaded',1);var urls=[];if(state.data.settings.secondImageHover){urls.push(secondImageFor($card))} 842if(state.data.settings.cardHover){$card.find('.ndx-color-swatch').each(function(){urls.push($(this).attr('data-ndx-preview')||'')})} 843urls.forEach(function(url){if(url){var img=new window.Image();img.src=url}})} 844function initCardHover(){if(!state.data||!state.data.settings){return} 845var settings=state.data.settings;if(!settings.cardHover&&!settings.secondImageHover){return} 846var card='.js-product-miniature, .product-miniature';$(document).off('.ndxColors');$(document).on('mouseenter.ndxColors',card,function(){if(canHover()){preloadCardImages($(this))}});if(settings.secondImageHover){$(document).on('mouseenter.ndxColors','.product-miniature .thumbnail-container',function(){if(!canHover()){return} 847var $card=$(this).closest(card);showCardImage($card,secondImageFor($card))}).on('mouseleave.ndxColors','.product-miniature .thumbnail-container',function(){hideCardImage($(this).closest(card))})} 848if(settings.cardHover){$(document).on('mouseenter.ndxColors','.product-miniature .ndx-color-swatch',function(){if(!canHover()){return} 849var preview=$(this).attr('data-ndx-preview')||'';if(preview){showCardImage($(this).closest(card),preview)}}).on('mouseleave.ndxColors','.product-miniature .ndx-color-swatch',function(){hideCardImage($(this).closest(card))})}} 850function bindEvents(){$(document).off('click.ndxProductColorsMega','.mp_color_pick[data-group][data-attr]').on('click.ndxProductColorsMega','.mp_color_pick[data-group][data-attr]',function(){if(!state.data||!state.data.product||!state.data.product.colors){return} 851var groupId=parseInt(this.getAttribute('data-group'),10)||0;var attributeId=parseInt(this.getAttribute('data-attr'),10)||0;if(groupId!==configuredGroupId()||!state.data.product.colors[String(attributeId)]){return} 852var element=this;window.requestAnimationFrame(function(){if(element.classList.contains('selectAttr')){state.currentAttribute=attributeId;applyProductColorWhenReady(attributeId,0)}else if(state.currentAttribute===attributeId){state.applyToken+=1;resetSlick($('#product-images-thumbs'));resetSlick($('#product-images-large'));state.currentAttribute=0}})});$(document).off('click.ndxProductColorsSteps','#mp-tab-next, #mp-tab-before, #mpStepNext, #mpStepPrevious').on('click.ndxProductColorsSteps','#mp-tab-next, #mp-tab-before, #mpStepNext, #mpStepPrevious',function(){window.setTimeout(function(){var selected=getCurrentMegaSelection();if(selected&&state.data&&state.data.product&&state.data.product.colors[String(selected)]){state.currentAttribute=selected} 853if(state.currentAttribute){applyProductColorWhenReady(state.currentAttribute,0)}},0)});$(document).off('shown.bs.modal.ndxProductColors','#product-modal').on('shown.bs.modal.ndxProductColors','#product-modal',function(){window.requestAnimationFrame(filterModal)});if(typeof window.prestashop!=='undefined'&&window.prestashop.on){window.prestashop.on('updatedProduct',function(){window.setTimeout(function(){observeMegaProduct();var selected=getCurrentMegaSelection();if(selected&&state.data&&state.data.product&&state.data.product.colors[String(selected)]){state.currentAttribute=selected} 854if(state.currentAttribute){applyProductColorWhenReady(state.currentAttribute,0)}},0)});window.prestashop.on('updatedProductList',function(){window.requestAnimationFrame(function(){mergeInlineListingData();renderListingSwatches();refreshListingColorsIfNeeded()})})}} 855function init(){state.data=readData();if(!state.data){return} 856state.listingColors=state.data.listing||{};state.listingImages=(state.data.listingImages&&!$.isArray(state.data.listingImages))?state.data.listingImages:{};bindEvents();initCardHover();renderListingSwatches();refreshListingColorsIfNeeded();if(isProductPage()&&state.data.product&&state.data.product.colors){state.productSignature=JSON.stringify(state.data.product);initializeProductIntegration()} 857loadProductConfigIfNeeded()} 858$(init)})(jQuery,window,document);jQuery.fn.tooltip=window._BStooltip;$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){};$(document).ready(function(){$(document).on('click','#js-cart-close',function(e){$('#blockcart, #mobile-cart-wrapper, #_mobile_blockcart-content, #_desktop_blockcart-content').removeClass('show');e.stopPropagation()});$(document).on('click','#blockcart-content',function(e){e.stopPropagation()});prestashop.on('updateCart',function(event){var refreshURL=$('#blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}} 859$.post(refreshURL,requestData).then(function(resp){if(event.reason&&event.reason.linkPlace=='cart-preview'){$('#blockcart').replaceWith($(resp.preview).addClass('show'))}else{$('#blockcart').replaceWith($(resp.preview))} 860$('#mobile-cart-products-count').text($(resp.preview).find('.cart
860-products-count-btn').first().text());prestashop.emit('responsive updateAjax',{mobile:prestashop.responsive.mobile});if(resp.modal){window.location.replace('/carrito?action=show')}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})});if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}})})});/*! 861 * jquery.instagramFeed 862 * 863 * @version 1.2.7 864 * 865 * @author Javier Sanahuja Liebana <[email protected]> 866 * @contributor csanahuja <[email protected]> 867 * 868 * https://github.com/jsanahuja/jquery.instagramFeed 869 * 870 */ 871(function($){var defaults={'host':"https://www.instagram.com/",'username_or_tag':'','tag':'','container':'','image_class':'','get_data':!1,'is_tag':!1,'callback':null,'items':8,'image_size':640};var image_sizes={"150":0,"240":1,"320":2,"480":3,"640":4};var escape_map={'&':'&','<':'<','>':'>','"':'"',"'":''','/':'/','`':'`','=':'='};function escape_string(str){return str.replace(/[&<>"'`=\/]/g,function(char){return escape_map[char]})} 872$.instagramFeed=function(opts){var options=$.fn.extend({},defaults,opts);if(options.username_or_tag==""){console.error("Instagram Feed: Error, no username or tag found.");return!1} 873if(typeof options.get_raw_json!=="undefined"){console.warn("Instagram Feed: get_raw_json is deprecated. See use get_data instead");options.get_data=options.get_raw_json} 874if(!options.get_data&&options.container==""){console.error("Instagram Feed: Error, no container found.");return!1} 875if(options.callback==null){console.error("Instagram Feed: Error, no callback defined to get the raw json");return!1} 876var is_tag=options.is_tag,url=is_tag?options.host+"explore/tags/"+options.username_or_tag+"/":options.host+options.username_or_tag+"/";$.get(url,function(data){try{data=data.split("window._sharedData = ")[1].split("<\/script>")[0]}catch(e){console.error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26");return} 877data=JSON.parse(data.substr(0,data.length-1));data=data.entry_data.ProfilePage||data.entry_data.TagPage;if(typeof data==="undefined"){console.error("Instagram Feed: It looks like YOUR network has been temporary banned because of too many requests. See https://github.com/jsanahuja/jquery.instagramFeed/issues/25");return} 878data=data[0].graphql.user||data[0].graphql.hashtag;var styles={'profile_container':"",'profile_image':"",'profile_name':"",'profile_biography':"",'gallery_image':""};var html="";var image_index=typeof image_sizes[options.image_size]!=="undefined"?image_sizes[options.image_size]:image_sizes[640];if(typeof data.is_private!=="undefined"&&data.is_private===!0){html+="<p class='instagram_private'><strong>This profile is private</strong></p>"}else{var imgs=(data.edge_owner_to_timeline_media||data.edge_hashtag_to_media).edges;max=(imgs.length>options.items)?options.items:imgs.length;for(var i=0;i<max;i++){var url="https://www.instagram.com/p/"+imgs[i].node.shortcode,image,type_resource,caption;switch(imgs[i].node.__typename){case "GraphSidecar":type_resource="sidecar" 879image=imgs[i].node.thumbnail_resources[image_index].src;break;case "GraphVideo":type_resource="video";image=imgs[i].node.thumbnail_resources[image_index].src;break;default:type_resource="image";image=imgs[i].node.thumbnail_resources[image_index].src} 880if(typeof imgs[i].node.edge_media_to_caption.edges[0]!=="undefined"&&typeof imgs[i].node.edge_media_to_caption.edges[0].node!=="undefined"&&typeof imgs[i].node.edge_media_to_caption.edges[0].node.text!=="undefined"&&imgs[i].node.edge_media_to_caption.edges[0].node.text!==null){caption=imgs[i].node.edge_media_to_caption.edges[0].node.text}else if(typeof imgs[i].node.accessibility_caption!=="undefined"&&imgs[i].node.accessibility_caption!==null){caption=imgs[i].node.accessibility_caption}else{caption=(is_tag?data.name:data.username)+" image "+i} 881html+="<div class='il-item "+options.image_class+"'><div class='il-item-inner'>";html+="<a href='"+url+"' class='instagram-"+type_resource+"' rel='noopener' target='_blank'>";html+="<img src='"+image+"' alt='"+escape_string(caption)+"' class='il-photo__img' />";html+="<span class='il-photo__meta'>"+"<span class='il-photo__metainner'>"+"<span class='il-photo__comments'><i class='fa fa-comments-o'></i> "+imgs[i].node.edge_media_to_comment.count+"</span> "+"<span class='il-photo__likes'><i class='fa fa-heart-o'></i> "+imgs[i].node.edge_media_preview_like.count+"</span>"+"</span>"+"</span>";html+="</a>";html+="</div></div>"}} 882$(options.container).html(html);options.callback(data)}).fail(function(e){console.error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: ",e.status)});return!0}})(jQuery);!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);var lottiePlayerLoaded=!1;function loadElementorLottiePlayer(){if(!lottiePlayerLoaded){$.getScript("https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js",function(data,textStatus,jqxhr){console.log('Lottie player loaded');$.getScript("https://unpkg.com/@lottiefiles/lottie-interactivity@latest/dist/lottie-interactivity.min.js",function(data,textStatus,jqxhr){var event=new CustomEvent("lottieLoaded");document.dispatchEvent(event)})})} 883lottiePlayerLoaded=!0};(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}
883var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){var ElementsHandler;ElementsHandler=function($){var registeredHandlers={},registeredGlobalHandlers=[];var runGlobalHandlers=function($scope){$.each(registeredGlobalHandlers,function(){this.call($scope,$)})};this.addHandler=function(widgetType,callback){registeredHandlers[widgetType]=callback};this.addGlobalHandler=function(callback){registeredGlobalHandlers.push(callback)};this.runReadyTrigger=function($scope){var elementType=$scope.data('element_type');if(!elementType){return} 884runGlobalHandlers($scope);if(!registeredHandlers[elementType]){return} 885registeredHandlers[elementType].call($scope,$)}};module.exports=ElementsHandler},{}],2:[function(require,module,exports){(function($){var ElementsHandler=require('elementor-frontend/elements-handler'),Utils=require('elementor-frontend/utils');var ElementorFrontend=function(){var self=this,scopeWindow=window;var elementsDefaultHandlers={accordion:require('elementor-frontend/handlers/accordion'),alert:require('elementor-frontend/handlers/alert'),counter:require('elementor-frontend/handlers/counter'),'image-carousel':require('elementor-frontend/handlers/image-carousel'),instagram:require('elementor-frontend/handlers/instagram'),testimonial:require('elementor-frontend/handlers/testimonial'),progress:require('elementor-frontend/handlers/progress'),section:require('elementor-frontend/handlers/section'),tabs:require('elementor-frontend/handlers/tabs'),lottie:require('elementor-frontend/handlers/lottie'),'prestashop-widget-Blog':require('elementor-frontend/handlers/prestashop-blog'),'prestashop-widget-ProductsList':require('elementor-frontend/handlers/prestashop-productlist'),'prestashop-widget-ProductsListTabs':require('elementor-frontend/handlers/prestashop-productlisttabs'),'prestashop-widget-Brands':require('elementor-frontend/handlers/prestashop-brands'),toggle:require('elementor-frontend/handlers/toggle'),video:require('elementor-frontend/handlers/video')};var addGlobalHandlers=function(){self.elementsHandler.addGlobalHandler(require('elementor-frontend/handlers/global'))};var addElementsHandlers=function(){$.each(elementsDefaultHandlers,function(elementName){self.elementsHandler.addHandler(elementName,this)})};var runElementsHandlers=function(){$('.elementor-element').each(function(){self.elementsHandler.runReadyTrigger($(this))})};this.config=elementorFrontendConfig;this.getScopeWindow=function(){return scopeWindow};this.setScopeWindow=function(window){scopeWindow=window};this.isEditMode=function(){return self.config.isEditMode};this.elementsHandler=new ElementsHandler($);this.utils=new Utils($);this.init=function(){addGlobalHandlers();addElementsHandlers();runElementsHandlers()};this.throttle=function(func,wait){var timeout,context,args,result,previous=0;var later=function(){previous=Date.now();timeout=null;result=func.apply(context,args);if(!timeout){context=args=null}};return function(){var now=Date.now(),remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){if(timeout){clearTimeout(timeout);timeout=null} 886previous=now;result=func.apply(context,args);if(!timeout){context=args=null}}else if(!timeout){timeout=setTimeout(later,remaining)} 887return result}}};window.elementorFrontend=new ElementorFrontend()})(jQuery);jQuery(function(){if(!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/instagram":8,"elementor-frontend/handlers/lottie":9,"elementor-frontend/handlers/prestashop-blog":10,"elementor-frontend/handlers/prestashop-brands":11,"elementor-frontend/handlers/prestashop-productlist":12,"elementor-frontend/handlers/prestashop-productlisttabs":13,"elementor-frontend/handlers/progress":14,"elementor-frontend/handlers/section":15,"elementor-frontend/handlers/tabs":16,"elementor-frontend/handlers/testimonial":17,"elementor-frontend/handlers/toggle":18,"elementor-frontend/handlers/video":19,"elementor-frontend/utils":20}],3:[function(require,module,exports){var activateSection=function(sectionIndex,$accordionTitles){var $activeTitle=$accordionTitles.filter('.active'),$requestedTitle=$accordionTitles.filter('[data-section="'+sectionIndex+'"]'),isRequestedActive=$requestedTitle.hasClass('active');$activeTitle.removeClass('active').next().slideUp();if(!isRequestedActive){$requestedTitle.addClass('active').next().slideDown()}};module.exports=function($){var $this=$(this),$accordionDiv=$this.find('.elementor-accordion'),defaultActiveSection=$accordionDiv.data('active-section'),activeFirst=$accordionDiv.data('active-first'),$accordionTitles=$this.find('.elementor-accordion-title');if(!defaultActiveSection){defaultActiveSection=1} 888if(activeFirst){activateSection(defaultActiveSection,$accordionTitles)} 889$accordionTitles.on('click',function(){activateSection(this.dataset.section,$accordionTitles)})}},{}],4:[function(require,module,exports){module.exports=function($){$(this).find('.elementor-alert-dismiss').on('click',function(){$(this).parent().fadeOut()})}},{}],5:[function(require,module,exports){module.exports=function($){var $number=$(this).find('.elementor-counter-number');
889$number.waypoint(function(){$number.numerator({duration:$number.data('duration')})},{offset:'90%'})}},{}],6:[function(require,module,exports){module.exports=function(){if(elementorFrontend.isEditMode()){return} 890var $element=this,animation=$element.data('animation');if(!animation){return} 891$element.addClass('elementor-invisible').removeClass(animation);$element.waypoint(function(){$element.removeClass('elementor-invisible').addClass(animation)},{offset:'90%'})}},{}],7:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-image-carousel');if(!$carousel.length){return} 892var respondTo='window';if(elementorFrontendConfig.isEditMode){respondTo='iframe-window'} 893var savedOptions=$carousel.data('slider_options'),defaultOptions={respondTo:respondTo,responsive:[{breakpoint:991,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:480,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,savedOptions);$carousel.slick(slickOptions);if(elementorFrontendConfig.isEditMode){$(window).on('changedDeviceMode',function(){$carousel.slick('getSlick').checkResponsive()})}}},{}],8:[function(require,module,exports){module.exports=function($){var $instagramWrapper=$(this).find('.elementor-instagram');var $carousel=$(this).find('.elementor-instagram-carousel');if(!$instagramWrapper.length){return} 894var options=$instagramWrapper.data('options');var is_tag=!1;var limit=12;var username_or_tag='';if(options.type=='user'){if(options.user==''){return} 895limit=options.limit_user;username_or_tag=options.user}else{if(options.tag==''){return} 896is_tag=!0;limit=options.limit_tag;username_or_tag=options.tag} 897$.instagramFeed({'username_or_tag':username_or_tag,'container':$instagramWrapper,'image_class':options.class,'styling':!0,'is_tag':is_tag,'items':limit,'image_size':options.image_size,'callback':function(data){if(!$carousel.length){return} 898var savedOptions=$carousel.data('slider_options'),defaultOptions={responsive:[{breakpoint:767,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:480,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions)}})}},{}],9:[function(require,module,exports){module.exports=function($){var $lottiePlayer=$(this).find('.lottie-animation');var offset=$lottiePlayer.data('offset')/100;var container=null;if($lottiePlayer.data('container')=='body'){container='body'} 899if(elementorFrontendConfig.isEditMode){if($lottiePlayer.data('play')=='scroll'){window.frames[0].frameElement.contentWindow.lottieInteractivyBackofficeRun(offset,$lottiePlayer[0],container)}}else{if($lottiePlayer.data('play')=='scroll'){document.addEventListener("lottieLoaded",function(e){LottieInteractivity.create({mode:'scroll',player:$lottiePlayer[0],container:container,actions:[{visibility:[offset,1],type:'seek',frames:[0,'100%']}]})})}}}},{}],10:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-blog-carousel');if(!$carousel.length){return} 900var savedOptions=$carousel.data('slider_options'),defaultOptions={responsive:[{breakpoint:767,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:480,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions)}},{}],11:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-brands-carousel');if(!$carousel.length){return} 901var respondTo='window';if(elementorFrontendConfig.isEditMode){respondTo='iframe-window'} 902var savedOptions=$carousel.data('slider_options'),defaultOptions={respondTo:respondTo,infinite:!1,autoplaySpeed:4500,rows:savedOptions.itemsPerColumn,responsive:[{breakpoint:992,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:576,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions);if(elementorFrontendConfig.isEditMode){$(window).on('changedDeviceMode',function(){$carousel.slick('getSlick').checkResponsive()})}}},{}],12:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-products-carousel');if(!$carousel.length){if(elementorFrontendConfig.isEditMode){$(this).find('img[data-src]').each(function(){$(this).attr('src',$(this).data('src'))})} 903return} 904var respondTo='window';if(elementorFrontendConfig.isEditMode){respondTo='iframe-window'} 905var savedOptions=$carousel.data('slider_options'),defaultOptions={respondTo:respondTo,infinite:!1,autoplaySpeed:4500,rows:savedOptions.itemsPerColumn,responsive:[{breakpoint:992,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:576,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions);if(elementorFrontendConfig.isEditMode){$(window).on('changedDeviceMode',function(){$carousel.slick('getSlick').checkResponsive()})}}},{}],13:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-products-carousel');if(!$carousel.length){if(elementorFrontendConfig.isEditMode){$(this).find('img[data-src]').each(function(){$(this).attr('src',$(this).data('src'))})} 906return} 907var respondTo='window';if(elementorFrontendConfig.isEditMode){respondTo='iframe-window'} 908var savedOptions=$carousel.data('slider_options'),defaultOptions={respondTo:respondTo,infinite:!1,autoplaySpeed:4500,rows:savedOptions.itemsPerColumn,responsive:[{breakpoint:992,settings:{slidesToShow:savedOptions.slidesToShowTablet,slidesToScroll:savedOptions.slidesToShowTablet}},{breakpoint:576,settings:{slidesToShow:savedOptions.slidesToShowMobile,slidesToScroll:savedOptions.slidesToShowMobile}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions);if(elementorFrontendConfig.isEditMode){$(window).on('changedDeviceMode',function(){$carousel.slick('getSlick').checkResponsive()})} 909$(document).on('shown.bs.tab',$(this).find('a[data-toggle="tab"]'),function(e){prestashop.iqitLazyLoad.update()})}},{}],14:[function(require,module,exports){module.exports=function($){var $progressbar=$(this).find('.elementor-progress-bar');$progressbar.waypoint(function(){$progressbar.css('width',$progressbar.data('max')+'%')},{offset:'90%'})}},{}
909],15:[function(require,module,exports){var BackgroundVideo=function($,$backgroundVideoContainer){var player,elements={},isYTVideo=!1;var calcVideosSize=function(){var containerWidth=$backgroundVideoContainer.outerWidth(),containerHeight=$backgroundVideoContainer.outerHeight(),aspectRatioSetting='16:9',aspectRatioArray=aspectRatioSetting.split(':'),aspectRatio=aspectRatioArray[0]/aspectRatioArray[1],ratioWidth=containerWidth/aspectRatio,ratioHeight=containerHeight*aspectRatio,isWidthFixed=containerWidth/containerHeight>aspectRatio;return{width:isWidthFixed?containerWidth:ratioHeight,height:isWidthFixed?ratioWidth:containerHeight}};var changeVideoSize=function(){var $video=isYTVideo?$(player.getIframe()):elements.$backgroundVideo,size=calcVideosSize();$video.width(size.width).height(size.height)};var prepareYTVideo=function(YT,videoID){player=new YT.Player(elements.$backgroundVideo[0],{videoId:videoID,events:{onReady:function(){player.mute();changeVideoSize();player.playVideo()},onStateChange:function(event){if(event.data===YT.PlayerState.ENDED){player.seekTo(0)}}},playerVars:{controls:0,mute:1,showinfo:0}});$(elementorFrontend.getScopeWindow()).on('resize',changeVideoSize)};var initElements=function(){elements.$backgroundVideo=$backgroundVideoContainer.children('.elementor-background-video')};var run=function(){var videoID=elements.$backgroundVideo.data('video-id');if(videoID){isYTVideo=!0;elementorFrontend.utils.onYoutubeApiReady(function(YT){setTimeout(function(){prepareYTVideo(YT,videoID)},1)})}else{elements.$backgroundVideo.one('canplay',changeVideoSize)}};var init=function(){initElements();run()};init()};module.exports=function($){var $backgroundVideoContainer=this.find('.elementor-background-video-container');if($backgroundVideoContainer){new BackgroundVideo($,$backgroundVideoContainer)}}},{}],16:[function(require,module,exports){module.exports=function($){var $this=$(this),defaultActiveTab=$this.find('.elementor-tabs').data('active-tab'),$tabsTitles=$this.find('.elementor-tab-title'),$tabs=$this.find('.elementor-tab-content'),$active,$content;if(!defaultActiveTab){defaultActiveTab=1} 910var activateTab=function(tabIndex){if($active){$active.removeClass('active');$content.removeClass('active')} 911$active=$tabsTitles.filter('[data-tab="'+tabIndex+'"]');$active.addClass('active');$content=$tabs.filter('[data-tab="'+tabIndex+'"]');$content.addClass('active')};activateTab(defaultActiveTab);$tabsTitles.on('click',function(){activateTab(this.dataset.tab)})}},{}],17:[function(require,module,exports){module.exports=function($){var $carousel=$(this).find('.elementor-testimonial-carousel');if(!$carousel.length){return} 912var savedOptions=$carousel.data('slider_options'),tabletSlides=1===savedOptions.slidesToShow?1:2,defaultOptions={responsive:[{breakpoint:767,settings:{slidesToShow:tabletSlides,slidesToScroll:tabletSlides}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]},slickOptions=$.extend({},defaultOptions,$carousel.data('slider_options'));$carousel.slick(slickOptions)}},{}],18:[function(require,module,exports){module.exports=function($){var $toggleTitles=$(this).find('.elementor-toggle-title');$toggleTitles.on('click',function(){var $active=$(this),$content=$active.next();if($active.hasClass('active')){$active.removeClass('active');$content.slideUp()}else{$active.addClass('active');$content.slideDown()}})}},{}],19:[function(require,module,exports){module.exports=function($){var $this=$(this),$imageOverlay=$this.find('.elementor-custom-embed-image-overlay'),$videoModalBtn=$this.find('.elementor-video-open-modal').first(),$videoModal=$this.find('.elementor-video-modal').first(),$video=$this.find('.elementor-video').first(),$videoFrame=$this.find('iframe');if($imageOverlay.length){$imageOverlay.on('click',function(){$imageOverlay.remove();if($video.length){$video[0].play();return} 913var newSourceUrl=$videoFrame[0].src;newSourceUrl=newSourceUrl.replace('autoplay=0','autoplay=1');$videoFrame[0].src=newSourceUrl})} 914if(!$videoModalBtn.length){return} 915$videoModalBtn.on('click',function(){if($video.length){$video[0].play();return} 916var newSourceUrl=$videoFrame[0].src;newSourceUrl=newSourceUrl.replace('autoplay=0','autoplay=1');$videoFrame[0].src=newSourceUrl});$videoModal.on('hide.bs.modal',function(){if($video.length){$video[0].pause();return} 917var newSourceUrl=$videoFrame[0].src;newSourceUrl=newSourceUrl.replace('autoplay=1','autoplay=0');$videoFrame[0].src=newSourceUrl})}},{}],20:[function(require,module,exports){var Utils;Utils=function($){var self=this;var isYTInserted=!1;this.onYoutubeApiReady=function(callback){if(!isYTInserted){insertYTApi()} 918if(window.YT&&YT.loaded){callback(YT)}else{setTimeout(function(){self.onYoutubeApiReady(callback)},350)}};var insertYTApi=function(){isYTInserted=!0;$('script:first').before($('<script>',{src:'https://www.youtube.com/iframe_api'}))}};module.exports=Utils},{}]},{},[2]);/** 919* 2014-2017 IQIT-COMMERCE.COM 920* 921* NOTICE OF LICENSE 922* 923* @author IQIT-COMMERCE.COM <[email protected]> 924* @copyright 2007-2017 IQIT-COMMERCE.COM 925* @license GNU General Public License version 2 926* 927* You can not resell or redistribute this software. 928* 929*/ 930!function(a){"use strict";function b(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function f(a,b){var f=c(a,b)?e:d;f(a,b)}var c,d,e;"classList"in document.documentElement?(c=function(a,b){return a.classList.contains(b)}
930,d=function(a,b){a.classList.add(b)},e=function(a,b){a.classList.remove(b)}):(c=function(a,c){return b(c).test(a.className)},d=function(a,b){c(a,b)||(a.className=a.className+" "+b)},e=function(a,c){a.className=a.className.replace(b(c)," ")});var g={hasClass:c,addClass:d,removeClass:e,toggleClass:f,has:c,add:d,remove:e,toggle:f};"function"==typeof define&&define.amd?define(g):a.classie=g}(window);(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(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return!1;this.each(function(){var t=!1;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=!0,i=e(n.target).parents();for(var s=0;s<i.length;s++)if(i[s]==t[0])r=!1;if(r)t=!1})});return this}})(jQuery,window,document);var cbpHorizontalMenu,cbpVerticalmenu;$(document).ready(function(){cbpHorizontalMenu=(function(){var menuId='#cbp-hrmenu',$listItems=$(menuId+'> ul > li'),$menuItems=$listItems.children('a, .cbp-main-link'),$innerTabs=$(menuId+' .cbp-hrsub-tabs-names li > a'),$body=$('body'),$header=$('#desktop-header-container'),current=-1;currentlevel=-1;$listItems.has('ul').find(' > a').doubleTapToGo();function init(){var isTouchDevice='ontouchstart' in document.documentElement;if(isTouchDevice){$menuItems.on('mouseover',open)}else{$menuItems.hoverIntent({over:open,out:dnthing,interval:30})} 931$listItems.on('mouseover',function(event){event.stopPropagation()});$innerTabs.hover(function(){$innerTabs.removeClass('active');$(this).tab('show')})} 932var setCurrent=function(strName){current=strName};function dnthing(event){} 933function open(event){$othemenuitem=$('#cbp-hrmenu1').find('.cbp-hropen');$othemenuitem.find('.cbp-hrsub').removeClass('cbp-show');$othemenuitem.removeClass('cbp-hropen');cbpVerticalmenu.setCurrent(-1);var $item=$(event.currentTarget).parent('li'),idx=$item.index();$submenu=$item.find('.cbp-hrsub');if(current==idx) 934return;$submenu.removeClass('cbp-notfit');$submenu.removeClass('cbp-show');if(current!==-1){$listItems.eq(current).removeClass('cbp-hropen')} 935if(current===idx){$item.removeClass('cbp-hropen');current=-1}else{$submenu.addClass('cbp-show');iqitmenuwidth=$header.width();iqititemposition=$item.offset().left-$header.offset().left;if((iqitmenuwidth-iqititemposition)<=$submenu.width()){$submenu.addClass('cbp-notfit')} 936$item.addClass('cbp-hropen');current=idx;$body.off('mouseover').on('mouseover',close)} 937return!1} 938function close(event){$listItems.eq(current).removeClass('cbp-hropen');current=-1} 939return{init:init,setCurrent:setCurrent}})();cbpHorizontalMenu.init()});$(document).ready(function(){$('.cbp-vertical-on-top').on('mouseover',function(){$(this).addClass('cbp-vert-expanded')});$('.cbp-vertical-on-top').on('mouseleave',function(){$(this).removeClass('cbp-vert-expanded')});cbpVerticalmenu=(function(test){var menuId='#cbp-hrmenu1-ul',$listItems=$(menuId+' > li'),$menuItems=$listItems.children('a'),$innerTabs=$(menuId+' .cbp-hrsub-tabs-names li > a'),$body=$('body'),current=-1,currentlevel=-1;$listItems.has('ul').find(' > a').doubleTapToGo();
939function init(){var isTouchDevice='ontouchstart' in document.documentElement;if(isTouchDevice){$menuItems.on('mouseover',open)}else{$menuItems.hoverIntent({over:open,out:dnthing,interval:30})} 940$listItems.on('mouseover',function(event){event.stopPropagation()});$innerTabs.hover(function(){$innerTabs.removeClass('active');$(this).tab('show')});$(window).resize(function(){$('cbp-hrmenu-tab').not('.cbp-hropen').find('.cbp-hrsub-wrapper').removeAttr('style')})} 941function dnthing(event){} 942var setCurrent=function(strName){current=strName};function open(event){$othemenuitem=$('#cbp-hrmenu').find('.cbp-hropen');$othemenuitem.find('.cbp-hrsub').removeClass('cbp-show');closeElement($othemenuitem);cbpHorizontalMenu.setCurrent(-1);var $item=$(event.currentTarget).parent('li'),idx=$item.index();if(current==idx) 943return;$submenu=$item.find('.cbp-hrsub');$submenu.removeClass('cbp-show');if(current!==-1){closeElement($listItems.eq(current))} 944if(current===idx){closeElement($item);current=-1}else{$submenu.parent().width($(iqitmegamenu.containerSelector).width()-$(menuId).width());callerHeight=$item.height();$submenu.parent().css({marginLeft:$item.innerWidth()+"px",marginRight:$item.innerWidth()+"px",marginTop:-callerHeight+"px"});$submenu.addClass('cbp-show');$item.addClass('cbp-hropen');current=idx;$body.off('mouseover').on('mouseover',close)} 945return!1} 946function close(event){closeElement($listItems.eq(current));current=-1} 947function closeElement($element){$element.removeClass('cbp-hropen')} 948return{init:init,setCurrent:setCurrent}})();cbpVerticalmenu.init()});$(document).ready(function(){var iqitMobileMenu=(function(){var $menu=$('#iqitmegamenu-mobile');var $expander=$menu.find('.mm-expand');$menu.on('click',function(e){e.stopPropagation()});$expander.on('click',function(){$(this).parent().toggleClass('show')})});iqitMobileMenu()});var timerRefresh=null;function auto_reload(){window.location.reload()};(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]) 949return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=!0;return module.exports} 950__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)})([(function(module,exports,__webpack_require__){'use strict';__webpack_require__(7);__webpack_require__(9)}),,,,,,,(function(module,exports,__webpack_require__){'use strict';function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj}} 951var _libThreesixtyThreesixtyMin=__webpack_require__(8);var _libThreesixtyThreesixtyMin2=_interopRequireDefault(_libThreesixtyThreesixtyMin);$(document).ready(function(){var videoIframes=undefined,$videoIframesWrapper=undefined,$videoModal=$('#iqit-iqitvideos-modal');$('#iqit-threesixty-modal').on('shown.bs.modal',function(){var speed=70;if(typeof iqitextendedproduct.speed!=='undefined'){speed=iqitextendedproduct.speed} 952var iqitThreeSixtySlider=(0,_libThreesixtyThreesixtyMin2['default'])(document.querySelector('#iqit-threesixty'),$('#iqit-threesixty').data('threesixty'),{interactive:!0,speed:speed,currentImage:0});iqitThreeSixtySlider.init()});$videoModal.on('shown.bs.modal',function(){$videoIframesWrapper=$('#iqitvideos-block');videoIframes=$videoIframesWrapper.html()});$videoModal.on('hidden.bs.modal',function(){$videoIframesWrapper.html(videoIframes)})})}),(function(module,exports){'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var threesixty=function threesixty(container,images,options){if(!container){throw new Error('A container argument is required')} 953if(!images){throw new Error('An images argument is required')} 954var defaults={interactive:!0,currentFrame:0,speed:70};var o=Object.assign({},defaults,options);var totalFrames=images.length;var mouseX=0;var oldMouseX=0;var dragOrigin=!1;var dragTolerance=10;var swipeTolerance=10;var loopTimeoutId=null;var looping=!1;var init=function init(){preloadimages(images,start)};var preloadimages=function preloadimages(sourceImages,cb){var total=sourceImages.length;var loaded=0;var onload=function onload(){if(++loaded>=total)cb(finalImages)};var finalImages=sourceImages.map(function(item){var image=new Image();image.src=item;image.onload=onload;image.onerror=onload;image.onabort=onload;image.draggable=!1;return image})};var start=function start(loadedImages){images=loadedImages;emptyDomNode(container);container.appendChild(images[o.currentFrame]);initListeners();play()};var initListeners=function initListeners(){container.addEventListener('mousedown',function(e){dragOrigin=e.pageX});document.addEventListener('mouseup',function(){dragOrigin=!1});document.addEventListener('mousemove',function(e){if(dragOrigin&&Math.abs(dragOrigin-e.pageX)>dragTolerance){stop();dragOrigin>e.pageX?previous():next();dragOrigin=e.pageX}});container.addEventListener('touchstart',function(e){dragOrigin=e.touches[0].clientX});container.addEventListener('touchend',function(){dragOrigin=!1});document.addEventListener('touchmove',function(e){if(dragOrigin&&Math.abs(dragOrigin-e.touches[0].clientX)>swipeTolerance){stop();dragOrigin>e.touches[0].clientX?previous():next();dragOrigin=e.touches[0].clientX}})};var replaceImage=function replaceImage(){container.replaceChild(images[o.currentFrame],container.childNodes[0])};var previous=function previous(){o.currentFrame--;if(o.currentFrame<0)o.currentFrame=totalFrames-1;replaceImage()};var next=function next(){o.currentFrame++;
954if(o.currentFrame===totalFrames)o.currentFrame=0;replaceImage()};var isInteractive=function isInteractive(){return o.interactive};var getCurrentFrame=function getCurrentFrame(){return o.currentFrame};var play=function play(){if(looping){return} 955loop(!1);looping=!0};var stop=function stop(){if(!looping){return} 956window.clearTimeout(loopTimeoutId);looping=!1};var loop=function loop(reversed){reversed?previous():next();loopTimeoutId=window.setTimeout(function(){loop(reversed)},o.speed)};return{init:init,previous:previous,next:next,isInteractive:isInteractive,getCurrentFrame:getCurrentFrame,play:play,stop:stop,loop:loop}};var emptyDomNode=function emptyDomNode(element){if(element.hasChildNodes()){while(element.firstChild){element.removeChild(element.firstChild)}}};exports['default']=threesixty;module.exports=exports['default']}),(function(module,exports){})]);function markAlreadyLikedPost(guest,id_simpleblog_post){if($.cookie('guest_'+guest+'_'+id_simpleblog_post)=="voted"){$('.simpleblog-like-button').addClass('voted')}};$(function(){if($('#module-ph_simpleblog-single').length>0){markAlreadyLikedPost($('#module-ph_simpleblog-single .simpleblog-like-button').data('guest'),$('.simpleblog-single .simpleblog-like-button').data('post'));$(document).on('click','.simpleblog__share .btn',function(){type=$(this).attr('data-type');if(type.length){switch(type){case 'twitter':window.open('https://twitter.com/intent/tweet?text='+ph_sharing_name+' '+encodeURIComponent(ph_sharing_url),'sharertwt','toolbar=0,status=0,width=640,height=445');break;case 'facebook':window.open('http://www.facebook.com/sharer.php?u='+ph_sharing_url,'sharer','toolbar=0,status=0,width=660,height=445');break;case 'google-plus':window.open('https://plus.google.com/share?url='+ph_sharing_url,'sharer','toolbar=0,status=0,width=660,height=445');break;case 'pinterest':window.open('http://www.pinterest.com/pin/create/button/?media='+ph_sharing_img+'&url='+ph_sharing_url,'sharerpinterest','toolbar=0,status=0,width=660,height=445');break}}});$(document).on('click','.simpleblog-like-button',function(e){e.preventDefault();var id_simpleblog_post=$(this).data('post');var id_guest=$(this).data('guest');var element=$(this);if($.cookie('guest_'+id_guest+'_'+id_simpleblog_post)=="voted"){$.cookie('guest_'+id_guest+'_'+id_simpleblog_post,'');var request=$.ajax({type:"POST",url:ph_simpleblog_ajax,data:{action:'removeRating',id_simpleblog_post:id_simpleblog_post,secure_key:ph_simpleblog_token,ajax:!0},success:function(result){var data=$.parseJSON(result);if(data.status=='success'){element.removeClass('voted').find('span.likes-count').text(data.message)}else{alert(data.message)}}})}else{$.cookie('guest_'+id_guest+'_'+id_simpleblog_post,'voted');var request=$.ajax({type:"POST",url:ph_simpleblog_ajax,data:{action:'addRating',id_simpleblog_post:id_simpleblog_post,secure_key:ph_simpleblog_token,ajax:!0},success:function(result){var data=$.parseJSON(result);if(data.status=='success'){element.addClass('voted').find('span.likes-count').text(data.message)}else{alert(data.message)}}})}})}});jQuery.Class=function(a){function w(b,c,d){var e,g,k,l=function(){if(k===a){var b;k={};for(b in c)h.call(c[b])===j&&(k[b]=v(c[b]))}return k};d===a&&(d=c);for(e in b)i.call(b,e)&&(g=b[e],d[e]=h.call(g)===j&&f.test(g)?u(e,g,c[e],l):g)}function v(a){return function(){return a.apply(this[d],arguments)}}function u(a,b,c,e){var f=g.test(b),k=f,l=h.call(c)===j?function(){return c.apply(this,arguments)}:function(){throw new p(a)};return function(){var a=this,c=a._parent,g,h,j;a._parent=l;if(k){if(f){f=!1,j=e();for(h in j)i.call(j,h)&&(l[h]=j[h])}l[d]=a}g=b.apply(a,arguments),a._parent=c;return g}}function t(){function d(e){var f=this;if(f instanceof d)b===!1&&(c!==f.init&&("init"in f&&h.call(f.init)===j?c=f.init:c=a),c!==a&&c.apply(f,e&&e.callee===d?e:arguments));else return new d(arguments)}var c;return d}function s(a){return!!a&&a.extend===q.extend}function r(a){return q.extend(a)}function q(){}function p(a){l.apply(this,arguments),this.message=c+"::Parent Class doesn't have the method: "+a}function o(a){l.apply(this,arguments),this.message=c+"::"+a}"use strict";var b=!1,c="Class",d=c+(new Date).getTime(),e=function(){this._parent()},f=/\b_parent\b/,g=f.test(e)?/\b_parent\b\./:f=/.*/,h=Object.prototype.toString,i=Object.prototype.hasOwnProperty,j=h.call(e),k=h.call({}),l=Error,m,n={};m=o.prototype=new l,n[m.name="InvalidClassDefinition"]=o,m=p.prototype=new l,n[m.name="InvalidParentMethodCall"]=p,q.extend=function(a){var c=t(),d,e=this,f,g=e.prototype,j;if(!a||h.call(a)!==k){j="Unable to "+(e===q?"extend":"create")+" class";throw new o(j)}for(d in e)i.call(e,d)&&(c[d]=e[d]);if(a.hasOwnProperty("prototype")){f=a.prototype;if(f&&h.call(f)===k)delete a.prototype,w(a,e,c),a=a.prototype=f;else{j="Invalid type on properties.prototype("+f+"), literal object expected";throw new o(j)}}b=!0,f=new e,b=!1,w(a,g,f),c.constructor=f.constructor=c,c.prototype=f,c.inherits=function(a){return a===e||e.inherits(a)};return c},q.inherits=function(){return!1},q.addMethods=function(a,b,c){if(a&&h.call(a)===k)b=a.prototype,c=this.prototype,b&&h.call(b)===k?(w(b,c),delete a.prototype,w(a,this),a.prototype=b):w(a,c);else throw new o("Unable to add methods to class")}
956,q.prototype.addMethods=function(a){if(a&&h.call(a)===k)w(a,this);else throw new o("Unable to add methods to instance")},r.is=s,r.makeClass=t,r.fnSearch=f,r.parentFnSearch=g,r.errors=n,r.version="1.1.0";return r}();if(typeof baseDir==="undefined"&&typeof prestashop!=="undefined") 957baseDir=prestashop.urls.base_url;var tooltipTimeout;var arrayMPHelp=new Array();var blockedMPTable=!1;var MegaProduct=jQuery.Class({init:function(){this.quantityInput=$('#quantity_wanted');this.backupInput=$("input[type='hidden'][name='submitCustomizedDatas']");this.quantityCont=$('#quantity_wanted_p');this.attributesCont=$('#attributes');this.customizationCont=$('.customization_block');this.addCartCont=$('.add_to_cart');this.heightInput=$('#id_height');this.widthInput=$('#id_width');this.longInput=$('#id_long');this.addCartBtn=$('.add .add-to-cart');this.addBtn=$('#btnAddProduct');this.saveCustoBtn=$('#customizedDatas .button');this.pageInfoCont=$('#buy_block > p');this.MPInitialized=!1;this.id_product=0;this.config_product=0;this.height_min=0;this.height_max=0;this.default_height_min=0;this.defaul_height_max=0;this.height_measure='m';this.height_sections=0;this.height_default=0;this.width_min=0;this.width_max=0;this.default_width_min=0;this.default_width_max=0;this.width_measure='m';this.width_sections=0;this.width_default=0;this.long_min=0;this.long_max=0;this.default_long_min=0;this.default_long_max=0;this.long_measure='m';this.long_sections=0;this.long_default=0;this.quantity_min=0;this.quantity_max=0;this.qty_min=0;this.qty_max=0;this.multiple_min=0;this.measureconvert=0;this.custom_id=0;this.productType='M2';this.measure='mm';this.productmeasure='m';this.before_price='';this.after_price='';this.stock='';this.modal_info=0;this.ajax_price=0;this.eval_math=0;this.range_limit=0;this.attrPrices=new Array();this.arrayRanges=new Array();this.arrayMeasureAttr=new Array();this.arrayLayers=new Array();this.arrayGroups=new Array();this.arrayLimits=new Array();this.arrayLamas=new Array();this.arrayChangeDefMeasures=new Array();this.arrayChangeLimits=new Array();this.weight=0;this.proportion=0;this.applyMinQty=1;this.launchId='';this.initEvents();this.globalMeasure='m';this.loadPage=0;this.urls=0;this.qtysufix='';this.qtydefault=1;this.qty_step=1;this.current_height_default=0;this.current_width_default=0;this.current_long_default=0},addLayer:function(id,attr,position){var valueToPush=new Array();valueToPush.id_layer=id;valueToPush.attributes=attr.split(",");valueToPush.position=position;this.arrayLayers.push(valueToPush)},addAttrMeasure:function(id,measure){var valueToPush=new Array();valueToPush.id=id;valueToPush.measure=measure;valueToPush.selected=!1;this.arrayMeasureAttr.push(valueToPush)},addAttrLimit:function(id,type,value,attrs){var valueToPush=new Array();valueToPush.id=id;valueToPush.type=type;valueToPush.value=value;valueToPush.attrs=value;this.arrayLimits.push(valueToPush)},addAttrChangeDefMeasure:function(id,type,formula,value,attrs){var valueToPush=new Array();valueToPush.id=id;valueToPush.type=type;valueToPush.formula=formula;valueToPush.value=value;valueToPush.attrs=attrs;this.arrayChangeDefMeasures.push(valueToPush)},addAttrChangeLimits:function(id,type,formula,value,attrs){var valueToPush=new Array();valueToPush.id=id;valueToPush.type=type;valueToPush.formula=formula;valueToPush.value=value;valueToPush.attrs=attrs;this.arrayChangeLimits.push(valueToPush)},addAttrPrice:function(id,price,pricebeforedisc,attributes){var valueToPush=new Array();valueToPush.id=id;valueToPush.price=price;valueToPush.pricebeforedisc=pricebeforedisc;valueToPush.attributes=attributes;this.attrPrices.push(valueToPush)},addRange:function(width,height,long,measure,price,id_attribute){var valueToPush=new Array();valueToPush.id_attribute=id_attribute;valueToPush.price=price;valueToPush.width=width;valueToPush.height=height;valueToPush['long']=long;valueToPush.measure=measure;this.arrayRanges.push(valueToPush)},addLama:function(id,measure){var valueToPush=new Array();valueToPush.id=id;valueToPush.measure=measure;this.arrayLamas.push(valueToPush)},setProductType:function(type){this.productType=type;this.MPInitialized=!0},setIdProduct:function(idProduct){this.id_product=idProduct},setConfigProduct:function(configProduct){this.config_product=configProduct},setHeightMin:function(value){this.height_min=value;this.default_height_min=value},setHeightMax:function(value){this.height_max=value;this.default_height_max=value},setHeightMeasure:function(value){this.height_measure=value},setHeightSections:function(value){this.height_sections=value},setHeightDefault:function(value){this.height_default=value},setWidthMin:function(value){this.width_min=value;this.default_width_min=value},setWidthMax:function(value){this.width_max=value;this.default_width_max=value},setWidthMeasure:function(value){this.width_measure=value},setWidthSections:function(value){this.width_sections=value},setWidthDefault:function(value){this.width_default=value},setLongMin:function(value){this.long_min=value;this.default_long_min=value},setLongMax:function(value){this.long_max=value;this.default_long_max=value},setLongMeasure:function(value){this.long_measure=value},setLongSections:function(value){this.long_sections=value},setLongDefault:function(value){this.long_default=value},setQuantityMin:function(value){this.quantity_min=value},setQuantityMax:function(value){this.quantity_max=value},setQtyMin:function(value){this.qty_min=value},setQtyMax:function(value){this.qty_max=value},setMultipleMin:function(value){this.multiple_min=value},setCustomId:function(value){this.custom_id=value},setMeasure:function(value){this.measure=value},setProductMeasure:function(value){this.productmeasure=value},setBeforePrice:function(value){this.before_price=value},setAfterPrice:function(value){this.after_price=value},setStock:function(value){this.stock=value},setModalInfo:function(value){this.modal_info=value},setAjaxPrice:function(value){this.ajax_price=value},setEvalMath:function(value){this.eval_math=value},setRangeLimit:function(value){this.range_limit=value},setWeight:function(value){this.weight=value},setProportion:function(value){this.proportion=value},setMeasureConvert:function(value){this.measureconvert=value},setGlobalMeasure:function(value){this.globalMeasure=value},setURLS:function(value){this.urls=value},setQtyDefault:function(value){this.qtydefault=value},setQtyStep:function(value){this.qty_step=value},setCurrentHeightDefault:function(value){this.current_height_default=value},setCurrentWidthDefault:function(value){this.current_width_default=value},setCurrentLongDefault:function(value){this.current_long_default=value},initEvents:function(){},hideContainers:function(){$('.add .add-to-cart').addClass('mpHide');$('#availability_label').hide();$('#pQuantityAvailable').hide();$('#availability_value').hide();$('#quantity_wanted_p').show();this.changePrice();if(!$('#megagroups').length){showStepResult()}else{$('.product-add-to-cart').hide();$('.product-quantity').hide()}},showAlert:function(htmlInfo){$('#mpErrorText').html(htmlInfo);this.showLimits()},showLimits:function(){if(this.loadPage==0) 958return;if(this.modal_info==1){if($('#megaproducterror').html()!=''){$('#megaproducterror').dialog({resizable:!1,modal:!0,width:'auto',open:function(event,ui){$('#megaproducterror').show()}})}}else{$('#megaproducterror').show()}},displayPrice:function(price,widthCurrency){var priceshow=parseFloat(price).toFixed(2);if(widthCurrency) 959priceshow=priceshow.replace(/\./g,",")+' '+prestashop.currency.sign;return priceshow},getAttrPrice:function(disc){var price=0;var arrayPrices=this.attrPrices;if(this.attrPrices.length>0){var ids=new Array();$('#attributes select, #attributes input[type=hidden], #attributes input[type=radio]:checked').each(function(){ids.push($(this).val())});$.each(ids,function(index,value){var id=parseInt(value);for(var i=0;i<arrayPrices.length;i++){if(arrayPrices[i].id==id){var applyPrice=!0;var attributes=arrayPrices[i].attributes;if(attributes!=''){arrayAttributesAttr=attributes.split(',');for(var j=0;j<arrayAttributesAttr.length;j++){if(!in_array(arrayAttributesAttr[j],ids)) 960applyPrice=!1}} 961if(applyPrice){if(disc) 962price+=arrayPrices[i].price;else price+=arrayPrices[i].pricebeforedisc}}}})} 963return price}
963,changePrice:function(){if(this.ajax_price!=1){var price=$('#mppricedisc').val();var newprice=parseFloat($('#mpprice').val());var attrPrice=this.getAttrPrice(!0);var pricebase=newprice+attrPrice;if(pricebase==0){$('.our_price_display').hide();return}else{$('.our_price_display').show()} 964if($('#pretaxe_price_display').length>0){var pricewt=pricebase/(1+(taxRate/100));$('#pretaxe_price_display').html(_MP.displayPrice(pricewt,!0))} 965var labelshowprice=this.displayPrice(pricebase,!0)+this.after_price;if(this.before_price!='') 966labelshowprice=this.before_price+' '+labelshowprice;$('#our_price_display').html(labelshowprice);if($('.mp_total_price').length) 967$('.mp_total_price').html($('#our_price_display').html());if($('#old_price_display').length>0){var pricedisc=this.priceAsFloat($('#old_price_display').html());var newpricedisc=parseFloat($('#mppricedisc').val());var pricebasedisc=newpricedisc+this.getAttrPrice(!1);var labelshowprice=this.displayPrice(pricebasedisc,!0)+this.after_price;$('#old_price_display').html(labelshowprice)}}},priceAsFloat:function(price){var arr=price.split(' ');if(arr.length>0) 968return parseFloat(arr[0].replace(/\./g,'').replace(/,/g,'.').replace(/[^\d\.]/g,''),10);return 0},extractPrice:function(price){var value=price.replace(prestashop.currency.sign,'')},getTotalMeasure:function(){if(this.eval_math==1){var total=getTotalMeasureByAjax();return total} 969var width=1;var height=1;var long=1;if($('#id_width').length>0){width=this.changeMeasure(this.width_measure,this.productmeasure,$('#id_width').val())} 970if($('#id_height').length>0){height=this.changeMeasure(this.height_measure,this.productmeasure,$('#id_height').val())} 971if($('#id_long').length>0){long=this.changeMeasure(this.long_measure,this.productmeasure,$('#id_long').val())} 972var total=width*height*long;return total},changeMeasure:function(megameasure,changemeasure,measure){var m=measure;if(changemeasure=='m'){if(megameasure=='dm'){m=measure/10}else if(megameasure=='cm'){m=measure/100}else if(megameasure=='mm'){m=measure/1000}}else if(changemeasure=='dm'){if(megameasure=='m'){m=measure*10}else if(megameasure=='cm'){m=measure/10}else if(megameasure=='mm'){m=measure/100}}else if(changemeasure=='cm'){if(megameasure=='m'){m=measure*100}else if(megameasure=='dm'){m=measure*10}else if(megameasure=='mm'){m=measure/10}}else if(changemeasure=='mm'){if(megameasure=='m'){m=measure*1000}else if(megameasure=='dm'){m=measure*100}else if(megameasure=='cm'){m=measure*10}} 973return m},checkRangeLimits:function(){if(this.arrayRanges.length){this.heightInput=$('#id_height');this.widthInput=$('#id_width');this.longInput=$('#id_long');var width=parseFloat(this.widthInput.val());var height=parseFloat(this.heightInput.val());var long=parseFloat(this.longInput.val());for(var i=0;i<this.arrayRanges.length;i++){if(parseFloat(this.arrayRanges[i].width)>=width&&parseFloat(this.arrayRanges[i].height)>=height){return!0}else if(parseFloat(this.arrayRanges[i]['long'])>=long){return!0}} 974return!1} 975return!0},checkRanges:function(){this.heightInput=$('#id_height');this.widthInput=$('#id_width');this.longInput=$('#id_long');this.heightInput.val(function(i,v){return v.replace(",",".")});this.widthInput.val(function(i,v){return v.replace(",",".")});this.longInput.val(function(i,v){return v.replace(",",".")});if(this.productType=='M2'||this.productType=='M3'){if((!$('#mp-step-height').length&&!$('#mp-height').hasClass('mpHide'))||($('#mp-step-height').length&&!$('#mp-step-height').hasClass('mpHide'))&&$(this.heightInput).parents('.hideMegaField').length==0){if(this.height_min!=-1) 976if(this.heightInput.val()==0||this.heightInput.val()==''){this.showAlert(errorInfo0);return!1} 977if(this.height_max!=0&&this.heightInput.val()>this.height_max){this.showLimits();return!1} 978if(this.height_min!=0&&this.heightInput.val()<this.height_min){this.showLimits();return!1} 979if(this.height_sections!=0){var heightvalue=parseFloat(this.heightInput.val())*100-parseFloat(this.height_min)*100;if((heightvalue%(parseFloat(this.height_sections)*100))!=0){this.showLimits();return!1}}} 980if((!$('#mp-step-width').length&&!$('#mp-width').hasClass('mpHide'))||($('#mp-step-width').length&&!$('#mp-step-width').hasClass('mpHide'))&&$(this.widthInput).parents('.hideMegaField').length==0){if(this.width_min!=-1) 981if(this.widthInput.val()==''||this.widthInput.val()==0){this.showAlert(errorInfo0);return!1} 982if(this.width_max!=0&&this.widthInput.val()>this.width_max){this.showLimits();return!1} 983if(this.width_min!=0&&this.widthInput.val()<this.width_min){this.showLimits();return!1} 984if(this.width_sections!=0){var widthvalue=parseFloat(this.widthInput.val())*100-parseFloat(this.width_min)*100;if((widthvalue%(parseFloat(this.width_sections)*100))!=0){this.showLimits();return!1}}} 985if(this.range_limit==1){if(!this.checkRangeLimits()){$('#btnRanges').click();return}}} 986if(this.productType=='M3'||this.productType=='D'){if((!$('#mp-step-long').length&&!$('#mp-long').hasClass('mpHide'))||($('#mp-step-long').length&&!$('#mp-step-long').hasClass('mpHide'))){if(this.long_min!=-1) 987if(this.longInput.val()==0||this.longInput.val()==''){this.showAlert(errorInfo0);return!1} 988if(this.long_max!=0&&this.longInput.val()>this.long_max){this.showLimits();return!1} 989if(this.long_min!=0&&this.longInput.val()<this.long_min){this.showLimits();return!1} 990if(this.long_sections!=0){var longvalue=parseFloat(this.longInput.val())*100-parseFloat(this.long_min)*100;if((longvalue%(parseFloat(this.long_sections)*100))!=0){this.showLimits();return!1}}}} 991if(this.getTotalMeasure()<this.quantity_min||(this.getTotalMeasure()>this.quantity_max&&this.quantity_max>0)){this.showLimits();return!1} 992if(!checkLimitMinQuantity(!0)) 993return!1;if(this.stock!=''){var qty=parseInt($('#quantity_wanted').val());var totalmeasure=this.getTotalMeasure();var total=qty*totalmeasure;if(total>parseFloat(this.stock)){this.showAlert(errorInfo1);return!1}} 994return!0}});function calculeprice(idProduct,idCombination,addedFromProductPage,callerElement,quantity,whishlist,width,height,long,print,mail=!1){if(typeof mpOnlaunch!='undefined') 995mpOnlaunch=1;if(typeof mpAddProduct!='undefined'&&mpAddProduct==2){quantity=1} 996var sendgroups=getSendGroups(quantity);if(!sendgroups) 997return;if(print) 998sendgroups+='&print=1';if($('#measure-use').length) 999sendgroups+='&measureconvert='+$('#measure-use').val();if(mail) 1000sendgroups+='&mail=1';$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!1,cache:!1,dataType:"html",data:'width='+getMeasure('width')+'&height='+getMeasure('height')+'&long='+getMeasure('long')+sendgroups+'&qty='+((quantity&&quantity!=null)?quantity:'1')+'&id_product='+idProduct+'&token='+static_token+((parseInt(idCombination)&&idCombination!=null)?'&ipa='+parseInt(idCombination):''),success:function(jsonData,textStatus,jqXHR){if(jsonData){if($('#calculePrice').length) 1001$('#calculePrice').remove();if(_MP.modal_info==1){$('#megaproduct').append(jsonData);if($('#mpinfo-image').length&&$('#bigpic').length){$('#mpinfo-image').attr('src',$('#bigpic').attr('src'))} 1002if($('#extraInfoProducts').length>0){$('#extraInfoProducts').append(getInfoExtraProduct())} 1003$('#our_price_display').html($('#mp-total').html());$('.our_price_display').show();if($('#mp-total-price').length){var price=parseFloat($('#mp-total-price').val());if($('#old_price_display').length>0&&$('#reduction_percent_display').lenght>0){var discount=$('#reduction_percent_display').html();discount=discount.replace("%","");discount=discount.replace("-","");discount=_MP.priceAsFloat(discount)/100;var pricedisc=price/(1-discount);$('#old_price_display').html(_MP.displayPrice(pricedisc,!0));if($('#price_reduction_display').length) 1004$('#price_reduction_display').html(_MP.displayPrice(price-pricedisc,!0))} 1005if($('#pretaxe_price_display').length>0){var pricewt=price/(1+(taxRate/100));$('#pretaxe_price_display').html(_MP.displayPrice(pricewt,!0))}} 1006$('#calculePrice').hide();if(!1&&!!$.prototype.fancybox) 1007$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:$('#calculePriceData')}],{padding:0});else $('#calculePriceData').dialog({autoOpen:!0,modal:!0,width:'auto'})}else{if(mail){var json=$.parseJSON(jsonData);$('#contentedorMensajeCorreo').show();$('#btnEnviarPresu').prop('disabled',!0);if(json.error==1){console.log("USUARIO NO REGISTRADO");
1007$('#mensajeCorreoEnviado').css({"background-color":"#fff3cd","color":"#856404","border-color":"#ffeeba"});$('#mensajeCorreoEnviado').append("Necesita registrarse para enviar el presupuesto por correo").fadeIn(1000)}else if(json.error==0){console.log("USUARIO REGISTRADO");$('#mensajeCorreoEnviado').append("El presupuesto ha sido enviado correctamente a su correo").fadeIn(1000)}}else{if($('#megagroups').length){$('#megagroups').append(jsonData).fadeIn(1000)}else{$('.product-additional-info').append(jsonData).fadeIn(2000)}}}}}})};function goToId(id){var idEle='#megagroup'+id;if($(idEle).length){if($(idEle).parents('.accordion-section:first').length){$(idEle).parents('.accordion-section:first').find('.accordion-section-title').click()} 1008goToByScroll('megagroup'+id)}} 1009function showDialogAlert(alert,id){if(!!$.prototype.fancybox) 1010$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<div style="margin:20px;" class="alert alert-info">'+alert+'<div style="margin-top:10px;display:block;"><button onclick="$.fancybox.close();" class="btn btn-primary">Aceptar</button><button onclick="goToId(\''+id+'\');$.fancybox.close();" style="float:right" class="btn btn-danger">Revisar</button></div></div>'}],{padding:0});else alert(alerta)} 1011function showErrorAlert(alerta){mpOnlaunch=0;if($('.mp-result-error').length) 1012$('.mp-result-error').html(alerta);else alert(alerta)} 1013function getSendGroups(quantity){var sendgroups='';var resultAttrs=listAttrIds();if(resultAttrs[0]==1){showErrorAlert(resultAttrs[1]);return!1}else{sendgroups+=resultAttrs[1]} 1014var resultProducts=listProductIds(quantity);if(resultProducts[0]==1){showErrorAlert(resultProducts[1]);return!1}else{sendgroups+=resultProducts[1];sendgroups+=resultProducts[2]} 1015var resultQuantities=listQuantityIds();if(resultQuantities[0]==1){showErrorAlert(resultQuantities[1]);return!1}else{sendgroups+=resultQuantities[1]} 1016var resultPersonalization=listPersonalization();if(resultPersonalization[0]==1){showErrorAlert(resultPersonalization[1]);return!1}else{sendgroups+=resultPersonalization[1]} 1017sendgroups+='&config_product='+_MP.config_product;return sendgroups} 1018function showTableQuantityPrice(sendgroups){if(blockedMPTable) 1019return;$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!0,cache:!1,dataType:"html",data:'type=showquantityprices'+sendgroups,success:function(jsonData,textStatus,jqXHR){if(jsonData){$('#mp-quantity-prices').html(jsonData);$('.mp-tableqty-price').click(function(){blockedMPTable=!0;var qty=$(this).data('qty');$('#quantity_wanted').val(qty);if($('#id_step_quantity').length) 1020$('#id_step_quantity').val(qty);var attr=$(this).data('attr');$('#mptableattr').val(attr);$(this).parents('table:first').find('.mp-tableqty-price').removeClass('mpTableRowSelect');$(this).addClass('mpTableRowSelect');showprice(getIdProduct(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null);setTimeout(function(){blockedMPTable=!1},1500)})}}})} 1021function showprice(idProduct,idCombination,addedFromProductPage,callerElement,quantity,whishlist){if($('.mp-result-error').length) 1022$('.mp-result-error').html('');if((_MP.productType=='M2'||_MP.productType=='M3')&&!_MP.arrayMeasureAttr.length&&_MP.height_min!=-1&&_MP.width_min!=-1){if($('#id_width').parents('.hideMegaField').length==0&&($('#id_width').val()==0||$('#id_width').val()=='')) 1023return;if($('#id_height').parents('.hideMegaField').length==0&&($('#id_height').val()==0||$('#id_height').val()=='')) 1024return} 1025if((_MP.productType=='M3'||_MP.productType=='D')&&!_MP.arrayMeasureAttr.length&&_MP.long_min!=-1){if($('#id_long').val()==0||$('#id_long').val()=='') 1026return} 1027if(typeof mpAddProduct!='undefined'&&mpAddProduct==2){quantity=1} 1028var sendgroups=getSendGroups(quantity);if(!sendgroups) 1029return;var measures=getSendMeasures() 1030measures+='&id_product='+idProduct;measures+='&token='+static_token;sendgroups+=measures+'&qty='+((quantity&&quantity!=null)?quantity:'1')+'&id_product='+getIdProduct()+'&token='+static_token+((parseInt(idCombination)&&idCombination!=null)?'&ipa='+parseInt(idCombination):'');$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!0,cache:!1,dataType:"json",data:'type=showprice'+sendgroups,success:function(jsonData,textStatus,jqXHR){if(jsonData){var price=jsonData.price;var unitprice=jsonData.unitprice;var stringtotal=price;if($('.product-info-row .product-price').length) 1031$('.product-info-row .product-price').html(stringtotal);else $('.current-price span:first').html(stringtotal);if($('.mp_total_price').length) 1032$('.mp_total_price').html(price);$('.product-prices .product-discount').remove();if(typeof jsonData.pricewtr!='undefined'&&jsonData.pricewtr!=stringtotal){$('.product-prices').prepend($('
1032<div class="product-discount"><span class="regular-price">'+jsonData.pricewtr+'</span></div>'))} 1033if(typeof jsonData.discount!='undefined'){$('#reduction_amount_display').html(jsonData.discount);$('#reduction_amount').show()}else{$('#reduction_amount').hide()} 1034if(typeof jsonData.total_weight!='undefined'&&$('span.mp_total_weight').length) 1035$('span.mp_total_weight').html(jsonData.total_weight);if(typeof jsonData.product_days!='undefined'&&$('#megaproductdays_value').length) 1036$('#megaproductdays_value').html(jsonData.product_days);if(typeof jsonData.evalfields!='undefined'){$.each(jsonData.evalfields,function(key,value){if($("#megafield_"+key).length>0){$("#megafield_"+key).val(value);$("#megafield_text_"+key).html(value)}})} 1037if($('#mp-quantity-prices').length){showTableQuantityPrice(sendgroups)} 1038if(typeof jsonData.reference!='undefined'&&jsonData.reference!=''){$('.product-reference span').html(jsonData.reference)}}}});return!0};function getTotalMeasureByAjax(){var width=$('#id_width').val();if(width==0) 1039width=1;var height=$('#id_height').val();if(height==0) 1040height=1;var long=$('#id_long').val();if(long==0) 1041long=1;var idProduct=getIdProduct();var total=0;$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!0,cache:!1,dataType:"json",data:'type=totalmeasure&width='+width+'&height='+height+'&long='+long+'&id_product='+idProduct,success:function(jsonData,textStatus,jqXHR){if(jsonData){total=parseFloat(jsonData)}}});return total};function goToByScroll(id){if($("#"+id).length) 1042$('html,body').animate({scrollTop:$("#"+id).offset().top},'slow')};function valueInArray(arrayValues,item){for(i=0;i<arrayValues.length;i++){if(arrayValues[i]==item) 1043return!0} 1044return!1};function listAttrIds(){var sendgroups='';var resultgroups=new Array();resultgroups[0]=0;var totalselect=0;var grouplamas=null;if(typeof megaGroups!='undefined'&&megaGroups.length>0){var ids=0;for(i=0;i<megaGroups.length;i++){var totalselect=0;if(typeof megaGroups[i]!='undefined'){var id_group=megaGroups[i].id_addgroup;var mpgroup=megaGroups[i];if(mpgroup.type=='0'&&mpgroup.show!='3'&&applyGroupValue(mpgroup.id_addgroup)&&mpgroup.action!=1){if(mpgroup.cssclass=='lamas'){grouplamas=mpgroup;continue} 1045if(mpgroup.multiselect!=0){mpgroup.selections=getMultiSelectGroup(id_group,!0);totalselect=mpgroup.selections.length;for(var j=0;j<mpgroup.selections.length;j++){if(sendgroups=='') 1046sendgroups+='&attrIds=';if(ids>0) 1047sendgroups+='-';sendgroups+=mpgroup.selections[j];ids++}}else if(mpgroup.selected!=0){if($('#megagroup'+megaGroups[i].id_addgroup).length&&applyGroupValue(mpgroup.id_addgroup)){if(typeof mpgroup.selected!='undefined'&&mpgroup.selected!=''){totalselect=1;if(mpgroup.dep=='1'){if(sendgroups=='') 1048sendgroups+='&attrIds=';if(ids>0) 1049sendgroups+='-';sendgroups+=mpgroup.selected;ids++}}}} 1050if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmin!=0&&totalselect<mpgroup.multiselectmin&&mpOnlaunch==1&&applyGroupValue(mpgroup.id_addgroup)){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmin;return resultgroups} 1051if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmax!=0&&totalselect>mpgroup.multiselectmax&&mpOnlaunch==1&&applyGroupValue(mpgroup.id_addgroup)){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmax;return resultgroups}}}}} 1052if($('#mptableattr').length&&$('#mptableattr').val()!=0){if(sendgroups==''){sendgroups+='&attrIds='+$('#mptableattr').val()}else{sendgroups+='-'+$('#mptableattr').val()}}else if($('#mptableattr').length&&$('#mptableattr').val()==0&&mpOnlaunch){resultgroups[0]=1;resultgroups[1]=mpTableSelection;return resultgroups} 1053if(grouplamas!=null&&typeof mpOnlaunch!='undefined'&&mpOnlaunch){var lamasUrl=listAttrLamas();if(!lamasUrl){resultgroups[0]=1;resultgroups[1]=errorLamas;goToByScroll('mp-ul-lamas');return resultgroups} 1054sendgroups+=lamasUrl} 1055resultgroups[1]=sendgroups;return resultgroups};function getAttrSelectedId(id_group){if($('.input-color[name="group['+id_group+']"]:checked').length){return $('.input-color[name="group['+id_group+']"]:checked').val()}else if($('#group_'+id_group).length>0){return $('#group_'+id_group).val()}else if($('#color_pick_hidden[name="group_'+id_group+'"]').length>0){return $('#color_pick_hidden[name="group_'+id_group+'"]').val()}else if($('.color_pick_hidden[name="group_'+id_group+'"]').length>0){return $('.color_pick_hidden[name="group_'+id_group+'"]').val()} 1056return 0};function getFisrtAttrSelectedId(id_group){var idAttr=0;if($('#megagroup'+id_group+' li:first').length>0){idAttr=$('#megagroup'+id_group+' li:first').attr('alt')}else if($('#megafield_'+id_group+' option:not([disabled])').length>0){idAttr=$('#megafield_'+id_group+' option:not([disabled])').first().attr('value')}else if($('#megafield_'+id_group).length>0){idAttr=$('#megafield_'+id_group).val()} 1057if(typeof idAttr=="undefined"&&$('#megafield_'+id_group).length>0){idAttr=$('#megafield_'+id_group).val()} 1058return idAttr} 1059function checkActionQuantities(){if(typeof megaGroups!='undefined'&&megaGroups.length>0){var totalqty=0;var changeQty=!1;for(k=0;k<megaGroups.length;k++){if(typeof megaGroups[k]!='undefined'&&$('#megagroup'+megaGroups[k].id_addgroup).length&&applyGroupValue(megaGroups[k].id_addgroup)){var mpgroup=megaGroups[k];var id_addgroup=megaGroups[k].id_addgroup;if((mpgroup.show=='3'||mpgroup.show=='6')&&(mpgroup.action=='2'||mpgroup.action=='4')){var qty=0;$('#megagroup'+id_addgroup+' .mega-qty-list').each(function(){if($(this).val()!='') 1060qty+=parseInt($(this).val())});$('#megagroup'+id_addgroup+' .mega-comb-qty-table').each(function(){if($(this).val()!='') 1061qty+=parseInt($(this).val())});totalqty+=qty;changeQty=!0}}}
1062if(changeQty){if(totalqty==0) 1063totalqty=1;addMPQuantity(totalqty)}}} 1064function listQuantityIds(){var sendgroups='';var resultgroups=new Array();var separateIds='';resultgroups[0]=0;resultgroups[1]='';if(typeof megaGroups!='undefined'&&megaGroups.length>0){var ids=0;var idsep=0;var separateIds='';var activeMulti=!1;var totalGroups=0;var maxlimit=0;var minlimit=0;for(i=0;i<megaGroups.length;i++){var id_group=megaGroups[i].id_addgroup;var mpgroup=megaGroups[i];if(mpgroup!=null){if(mpgroup.type=='0'&&mpgroup.show==3&&applyGroupValue(id_group)){var totalqty=0;$('#megagroup'+mpgroup.id_addgroup+' .mega-qty-list').each(function(){var id=$(this).attr('data-attr');var qty=$(this).val();var comb=$(this).data('comb');if(typeof comb=="undefined") 1065comb=0;if(qty!=0){totalqty+=parseInt(qty);if(mpgroup.limit==1){if($('#qty-label-'+id).length>0&&mpgroup.multiselectmin!=0&&qty<mpgroup.multiselectmin&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+$('#qty-label-'+id).html()+' '+mpgroup.multiselectmin} 1066if($('#qty-label-'+id).length>0&&mpgroup.multiselectmax!=0&&qty>mpgroup.multiselectmax&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#qty-label-'+id).html()+' '+mpgroup.multiselectmax}} 1067if(mpgroup.action==4){if(separateIds=='') 1068separateIds+='&separateIds=';if(idsep>0) 1069separateIds+='-';separateIds+=id+'|'+qty;idsep++}else{if(ids==0&&sendgroups=='') 1070sendgroups+='&quantityIds=';if(ids>0) 1071sendgroups+='-';sendgroups+=id+'|'+qty+'|'+comb;ids++} 1072if($(this).data('stock')!=undefined&&qty>$(this).data('stock')){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#qty-label-'+id).html()+' '+$(this).data('stock')}}});if(mpgroup.action==3&&mpOnlaunch==1){var qtycart=parseInt($('#quantity_wanted').val());if(totalqty!=qtycart){resultgroups[0]=1;resultgroups[1]=samequantitytext+' '+$('#megalabel_'+id_group+' .mega_title').html()}} 1073if(mpgroup.limit==0){if($('#megagroup'+mpgroup.id_addgroup+' .mega_title').length>0&&mpgroup.multiselectmin!=0&&totalqty<mpgroup.multiselectmin&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+$('#megagroup'+mpgroup.id_addgroup+' .mega_title').html()+' '+mpgroup.multiselectmin} 1074if($('#megagroup'+mpgroup.id_addgroup+' .mega_title').length>0&&mpgroup.multiselectmax!=0&&totalqty>mpgroup.multiselectmax&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#megagroup'+mpgroup.id_addgroup+' .mega_title').html()+' '+mpgroup.multiselectmax}} 1075if(mpgroup.limit==2){totalGroups+=totalqty;activeMulti=!0;maxlimit=mpgroup.multiselectmax;minlimit=mpgroup.multiselectmin}}}} 1076if(activeMulti){if(minlimit!=0&&totalGroups<minlimit&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+minlimit} 1077if(maxlimit!=0&&totalGroups>maxlimit&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+maxlimit}}} 1078if(resultgroups[1]=='') 1079resultgroups[1]=sendgroups+separateIds;return resultgroups};function listCombinationIds(){var sendgroups='';if(typeof megaGroups!='undefined'&&megaGroups.length>0){var ids=0;for(i=0;i<megaGroups.length;i++){var id_group=megaGroups[i].id_group;var mpgroup=megaGroups[i];if(mpgroup!=null){if(mpgroup.type=='0'&&mpgroup.show==3){$('#mp-attrqty-'+id_group+' input').each(function(){var id=$(this).attr('id').substring(7);var choice=new Array();if($(this).val()!=0){for(j=0;j<megaGroups.length;j++){var idGroup=megaGroups[j].id_group;if(idGroup!=id_group) 1080choice.push(getAttrSelectedId(idGroup));else choice.push(id)} 1081var idCombination=findMPCombination(choice,$(this).val());if(idCombination!=0){if(ids==0&&sendgroups=='') 1082sendgroups+='&combinationIds=';if(ids>0) 1083sendgroups+='-';sendgroups+=idCombination+'|'+$(this).val();ids++}}})}}}} 1084return sendgroups};function findMPCombination(choice,quantity){for(var combination=0;combination<combinations.length;++combination){var combinationMatchForm=!0;$.each(combinations[combination].idsAttributes,function(key,value){if(!in_array(value,choice)){combinationMatchForm=!1}});if(combinationMatchForm){var idCombinationQty=combinations[combination].quantity;if(idCombinationQty>quantity) 1085return combinations[combination].idCombination}} 1086return 0} 1087function getInfoExtraProduct(){var textInfo='';if(typeof megaGroups!='undefined'&&megaGroups.length>0){var ids=0;for(i=0;i<megaGroups.length;i++){var id_group=megaGroups[i].id_addgroup;var mpgroup=megaGroups[i];if(mpgroup!=null&&!$('#megagroup'+mpgroup.id_addgroup).hasClass('hideMegaField')){if(mpgroup.type=='1'&&$('#megalabel_'+id_group).length>0){if($('#megalabel_'+id_group).find('.megaattr_name').length&&$('#megalabel_'+id_group).find('.megaattr_name').html()!=''){var html=$('#megalabel_'+id_group).html();textInfo+=html+'<br/>'}}}}} 1088return textInfo} 1089function listPersonalization(){var sendgroups='';var resultgroups=new Array();resultgroups[0]=0;resultgroups[1]='';var customgroups=new Array();if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(i=0;i<megaGroups.length;i++){var id_group=megaGroups[i].id_addgroup;var mpgroup=megaGroups[i];if(mpgroup!=null){if(mpgroup.type=='3'&&applyGroupValue(id_group)){customgroups.push(mpgroup.id_addgroup);if(mpgroup.id_group=='3'){var customvalue=$('#megafield_'+mpgroup.id_addgroup).val();customvalue=customvalue.replace(',','.');customgroups.push(parseFloat(customvalue))}else{var data=$('#megafield_'+mpgroup.id_addgroup).val();customgroups.push(encodePersonalization(data))} 1090if(mpOnlaunch==1){var text=$('#megafield_'+megaGroups[i].id_addgroup).val();var grouptitle=$('#megalabel_'+id_group+' .mega_title').html();if(mpgroup.required==1&&$('#megafield_'+megaGroups[i].id_addgroup).val()==''){resultgroups[0]=1;resultgroups[1]=requiredfieldtext+' '+grouptitle;return resultgroups} 1091if(mpgroup.id_group==0||mpgroup.id_group==1){if(mpgroup.multiselectmin!=0&&text.length<mpgroup.multiselectmin){resultgroups[0]=1;resultgroups[1]=mintexttext+' '+grouptitle+' '+mpgroup.multiselectmin;return resultgroups} 1092if(mpgroup.multiselectmax!=0&&text.length>mpgroup.multiselectmax){resultgroups[0]=1;resultgroups[1]=maxtexttext+' '+grouptitle+' '+mpgroup.multiselectmax;return resultgroups}}}}}}} 1093if(customgroups.length){sendgroups='&personalization='+encodeURIComponent(JSON.stringify(customgroups))} 1094resultgroups[1]=sendgroups;return resultgroups} 1095function encodePersonalization(strVal){if(strVal.indexOf('&')>-1){var searchStr="&";var replaceStr="%26";var re=new RegExp(searchStr,"g");var result=strVal.replace(re,replaceStr)}else{var result=strVal} 1096var searchStr="\n";var replaceStr="\\n";var re=new RegExp(searchStr,"g");result=result.replace(re,replaceStr);var searchStr="\"";var replaceStr="";var re=new RegExp(searchStr,"g");result=result.replace(re,replaceStr);return result} 1097function listProductIds(quantity){var sendgroups='';var productattrs='';var resultgroups=new Array();resultgroups[0]=0;resultgroups[1]='';if(typeof megaGroups!='undefined'&&megaGroups.length>0){var activeMulti=!1;var totalGroups=0;var maxlimit=0;var minlimit=0;for(i=0;i<megaGroups.length;i++){var totalqty=0;var id_group=megaGroups[i].id_addgroup;var mpgroup=megaGroups[i];if(mpgroup!=null){if((mpgroup.type=='1'||mpgroup.type=='7')&&applyGroupValue(id_group)&&mpgroup.show!='100'){if(mpgroup.show!=3&&mpgroup.show!=6){var totalselect=0;
1097if(typeof mpgroup.selected!='undefined'&&mpgroup.selected!=0&&mpgroup.selected!=''&&mpgroup.multiselect==0){if(mpgroup.type=='1'){if(sendgroups!='') 1098sendgroups+='-';sendgroups+=mpgroup.selected+'|1';if(typeof mpgroup.id_addattr){sendgroups+='|'+mpgroup.id_addattr}}else if(mpgroup.type=='7'){if(productattrs!='') 1099productattrs+='-';productattrs+=mpgroup.selected+'|1'} 1100totalselect=1} 1101if(mpgroup.multiselect!=0){mpgroup.selections=getMultiSelectGroup(id_group,!0);totalselect=mpgroup.selections.length;for(var j=0;j<mpgroup.selections.length;j++){if(mpgroup.type=='1'){if(sendgroups!='') 1102sendgroups+='-';sendgroups+=mpgroup.selections[j]+'|1'}else if(mpgroup.type=='7'){if(productattrs!='') 1103productattrs+='-';productattrs+=mpgroup.selections[j]+'|1'}}} 1104if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmin!=0&&totalselect<mpgroup.multiselectmin&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmin;return resultgroups} 1105if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmax!=0&&totalselect>mpgroup.multiselectmax&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmax;return resultgroups}}else if(mpgroup.show==6){$('#megafield_'+mpgroup.id_addgroup+' .mpclistproduct').each(function(){var input=$(this).find('.mega-comb-qty-list');var id=$(this).data('product');var combination=parseInt($(this).attr('data-combination'));if(combination==0&&$(this).find('.mega-comb-select-list').length) 1106combination=parseInt($(this).find('.mega-comb-select-list').val());if($(input).length){if($(input).val()!=0&&$(input).val()!=''){var inputvalue=parseFloat($(input).val());if(mpgroup.type=='1'){if(sendgroups!='') 1107sendgroups+='-';sendgroups+=id+'|'+inputvalue;if($(this).data('addattr')){sendgroups+='|'+$(this).data('addattr')}else{sendgroups+='|0'} 1108if(combination!=0){sendgroups+='|'+combination}}else if(mpgroup.type=='7'){if(productattrs!='') 1109productattrs+='-';productattrs+=id+'|'+inputvalue;if(combination!=0){productattrs+='|0|'+combination}}}}else if($(this).find('.mega-comb-qty-table').length){$(this).find('.mega-comb-qty-table').each(function(){if($(this).val()!=0&&$(this).val()!=''){var inputvalue=parseFloat($(this).val());var combination=parseInt($(this).attr('data-combination'));if(mpgroup.type=='1'){if(sendgroups!='') 1110sendgroups+='-';sendgroups+=id+'|'+inputvalue;if($(this).data('product')){sendgroups+='|'+$(this).data('product')}else{sendgroups+='|0'} 1111if(combination!=0){sendgroups+='|'+combination}}else if(mpgroup.type=='7'){if(productattrs!='') 1112productattrs+='-';productattrs+=id+'|'+inputvalue;if(combination!=0){productattrs+='|0|'+combination}}}})}})}else{$('#megafield_'+mpgroup.id_addgroup+' input').each(function(){var id=$(this).attr('id').substring(12);var qty=$(this).val();if(qty!=0&&qty!=''&&!$(this).parents('.hideMegaField').length){totalqty+=parseInt(qty);var inputvalue=parseFloat($(this).val());if(mpgroup.type=='1'){if(sendgroups!='') 1113sendgroups+='-';sendgroups+=id+'|'+inputvalue;if($(this).data('addattr')){sendgroups+='|'+$(this).data('addattr')}}else if(mpgroup.type=='7'){if(productattrs!='') 1114productattrs+='-';productattrs+=id+'|'+inputvalue}}});if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmin!=0&&totalqty<mpgroup.multiselectmin&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmin;return resultgroups} 1115if($('#megalabel_'+id_group+' .mega_title').length>0&&mpgroup.multiselectmax!=0&&totalqty>mpgroup.multiselectmax&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+$('#megalabel_'+id_group+' .mega_title').html()+' '+mpgroup.multiselectmax;return resultgroups}} 1116if(mpgroup.limit==2){totalGroups+=totalqty;activeMulti=!0;maxlimit=mpgroup.multiselectmax;minlimit=mpgroup.multiselectmin}}}} 1117if(activeMulti){if(minlimit!=0&&totalGroups<minlimit&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=minselectiontext+' '+minlimit} 1118if(maxlimit!=0&&totalGroups>maxlimit&&mpOnlaunch==1){resultgroups[0]=1;resultgroups[1]=maxselectiontext+' '+maxlimit}}} 1119if(sendgroups!='')
1120sendgroups='&productIds='+sendgroups;if(productattrs!='') 1121productattrs='&productAttrIds='+productattrs;if(resultgroups[1]=='') 1122resultgroups[1]=sendgroups;resultgroups[2]=productattrs;return resultgroups};function showTooltipHelp(id_group,id){mpgroup=getMPGroupById(id_group);if(id==0) 1123id=mpgroup.selected;var description='';if(id!=''){if(typeof arrayMPHelp[id_group]=='undefined'){arrayMPHelp[id_group]=new Array()} 1124id=parseInt(id);if(typeof arrayMPHelp[id_group].options=='undefined'){arrayMPHelp[id_group].options=new Array()} 1125if(typeof arrayMPHelp[id_group].options[id]=='undefined'){$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!1,cache:!1,dataType:"html",data:'action=getHelpOption&id_addgroup='+id_group+'&id_option='+id,success:function(html,textStatus,jqXHR){arrayMPHelp[id_group].options[id]=html;if(html!=''){description=html}}})}else description=arrayMPHelp[id_group].options[id]} 1126return description};function showMegaHelp(id_group,type){if(type==0){$('#megadescriptionlong_'+id_group).animate(0,1000,function(){$(this).toggle()})}else{var contentHelp='';var title='';if($('#megalabel_'+id_group+' .mega_title').length) 1127title=$('#megalabel_'+id_group+' .mega_title').html();contentHelp=showTooltipHelp(id_group,0);if(contentHelp==''){if($('#megadescriptionlong_'+id_group).length) 1128contentHelp=$('#megadescriptionlong_'+id_group).html()} 1129$('#helpmegaproduct').html(contentHelp);$('#helpmegaproduct').attr('title',title);if(contentHelp!=''){$('#helpmegaproduct').dialog({resizable:!1,modal:!0,width:'auto'});$('#helpmegaproduct').dialog('option','title',title)}} 1130return!1};function showMegaAttrHelp(id_addattr,id_addgroup){var contentHelp='';var title='';if($('#megadescattr_'+id_addattr).length){contentHelp+=$('#megadescattr_'+id_addattr).html()+'<br/>';title=$('#megadescattr_'+id_addattr).attr('title')} 1131var id='#megaattrhelp_'+id_addattr;if(id_addgroup!=0){id='#megaattrhelp_'+id_addgroup} 1132if(contentHelp=='') 1133return!1;$('#helpmegaproduct').html(contentHelp);$('#helpmegaproduct').attr('title',title);if(contentHelp!=''){$('#helpmegaproduct').dialog({resizable:!1,modal:!0,width:'auto'});$('#helpmegaproduct').dialog('option','title',title)} 1134return!1};function zoomMegaImage(id_group){var id='#megaImageList_'+id_group+' .selectAttr';$('#megazoom_'+id_group).attr('href',$(id).attr('alt'));$('#megazoom_'+id_group).fancybox({'autoSize':!1,helpers:{overlay:{locked:!1}},'width':600,'height':'auto','hideOnContentClick':!0});$('#megazoom_'+id_group).trigger('click');return!1} 1135function zoomMegaAttrImage(id_group,id){id='#megafield_'+id_group+'_'+id;var idAttr=$(id).data('attr') 1136$('.megazoomopen'+id_group).fancybox({'autoSize':!1,'width':600,'height':'auto','hideOnContentClick':!0});$('#megazoom_'+id_group+'_'+idAttr).trigger('click');return!1} 1137function changeMPSelectCategory(id_group,id_category){var id=id_group+'-'+id_category;$('.megagroup'+id_group).addClass('hideMegaFieldCategory');$('#megagroup'+id).removeClass('hideMegaFieldCategory');updateMegaProduct(id_group,id_category)} 1138function filterMPProductByMeasures(){var id=$('#mpFilterCategoryGroup').val();var filterMeasures=['width','height','long'];if($('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').length){$('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').each(function(){$(this).show()});for(var key in filterMeasures){measure=filterMeasures[key];if($('#id_search_'+measure).length){var selected=$('#id_search_'+measure).val();if(selected!=''){var changeSelected=!1;$('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').each(function(){var value=$(this).data(measure);if(value!=selected){if($(this).hasClass('selectAttr')) 1139changeSelected=!0;$(this).hide()}});if(changeSelected){if($('#megafield_'+id+' option:visible:first').length){$('#megafield_'+id+' option:visible:first').click()}else if($('#megagroup'+id+' .megabuttons_list a:visible:first').length){$('#megagroup'+id+' .megabuttons_list a:visible:first').click()}}}}}}} 1140function loadMPFilterMeasures(id_group,id_category){var arrayMeasures=new Array();var id=id_group+'-'+id_category;var filterMeasures=['width','height','long'];if($('#mpFilterMeasures').length){$('#mpFilterCategoryGroup').val(id);$('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').each(function(){$(this).show()});if($('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').length){$('#megafield_'+id+' option, #megagroup'+id+' .megabuttons_list a').each(function(){for(var key in filterMeasures){measure=filterMeasures[key];var checkdata=$(this).data(measure);if(typeof arrayMeasures[measure]=='undefined') 1141arrayMeasures[measure]=new Array();if(!arrayMeasures[measure].includes(checkdata)){arrayMeasures[measure].push(checkdata)}}})} 1142for(var key in filterMeasures){measure=filterMeasures[key];if(typeof arrayMeasures[measure]!='undefined'&&arrayMeasures[measure].length>0&&$('#id_search_'+measure).length){arrayMeasures[measure].sort();$('#id_search_'+measure+' option').remove();$('#id_search_'+measure).append('<option value="">---</option>');for(var key in arrayMeasures[measure]){var meas=arrayMeasures[measure][key];$('#id_search_'+measure).append('<option value="'+meas+'">'+meas+'</option>')}}}}} 1143function updateMegaProduct(id_group,id_product){mpgroup=getMegaGroupById(id_group);if(mpgroup!=null){var megafield=getMegaField(mpgroup,id_group,id_product);if(mpgroup.selected==id_product){removeMegaSelect(mpgroup,id_product);showStepResult();return!0} 1144changeOptionSelected(megafield);var arrayAttr=new Array();if($.isArray(id_product)){arrayAttr=id_product}else{arrayAttr[0]=id_product} 1145changeTitleSelected(mpgroup,id_group,arrayAttr);changeImageSelected(mpgroup,id_group,id_product);mpgroup.selected=id_product} 1146showStepResult()} 1147function updateMegaProductSelect(id_group){mpgroup=getMegaGroupById(id_group);if(mpgroup!=null){var id_attribute=$('#megafield_'+id_group).val();var id_addattr=0;if(id_attribute.length>1){mpgroup.selections=id_attribute;$('#imageDivGroup_'+id_group).hide()} 1148if(mpgroup.show=='4'){id_attribute=$('#megagroups input:radio[name=megafield_'+id_group+']:checked').val()} 1149if(mpgroup.show=='0'){id_addattr=$('#megafield_'+id_group+' option[value='+id_attribute+']').data('addattr')} 1150var arrayAttr=new Array();if($.isArray(id_attribute)){arrayAttr=id_attribute}else{arrayAttr[0]=id_attribute} 1151changeTitleSelected(mpgroup,id_group,arrayAttr);changeImageSelected(mpgroup,id_group,id_attribute);mpgroup.selected=id_attribute;mpgroup.id_addattr=id_addattr} 1152showStepResult()} 1153function getMegaField(mpgroup,id_group,id_attribute){var megafield=null;if(mpgroup.show=='0'){megafield=$('#megafield_'+id_group+' option:selected')}else{megafield=$('#megagroups #megafield_'+id_group+'_'+id_attribute)} 1154if(mpgroup.multiselect=='1'&&$('[name=mpcheckbox_'+id_group+'_'+id_attribute+']').length){megafield=$('[name=mpcheckbox_'+id_group+'_'+id_attribute+']')} 1155return megafield} 1156function changeImageSelected(mpgroup,id_group,id_attribute){if(typeof changeAdvancedCh
1156ar!='undefined'&&typeof mpCharsColor!='undefined'){if(id_group==mpCharsColor) 1157mpCharsIdColor=id_attribute;if(id_group==mpCharsFonts) 1158mpCharsIdFont=id_attribute;changeAdvancedChar()} 1159if(id_attribute!=null&&id_attribute.constructor===Array){$('#imageDivGroup_'+id_group).hide();return} 1160$('#imageDivGroup_'+id_group).show();var megafield=getMegaField(mpgroup,id_group,id_attribute);if(mpgroup.show=='0'){if($('#megafield_'+id_group+' option:selected').length>0&&$('#imageGroup_'+id_group).length>0){$('#imageGroup_'+id_group).attr('src',$(megafield).attr('alt'));$('#imageGroupLink_'+id_group).attr('href',$(megafield).attr('alt'))}}else{if($('#imageGroup_'+id_group).length>0){$('#imageGroup_'+id_group).attr('src',$(megafield).attr('alt'));$('#imageGroupLink_'+id_group).attr('href',$(megafield).attr('alt'))}} 1161if(id_attribute==0){$('#imageDivGroup_'+id_group).hide()}} 1162function changeOptionSelected(megafield){$(megafield).parents('ul:first').find('a').each(function(){$(this).removeClass('selectAttr')});$(megafield).addClass('selectAttr')} 1163function changeQuantityListTitleSelected(id_group){var title='';$('#megagroup'+id_group+' .mega-qty-list').each(function(){var qty=parseInt($(this).val());if(qty>0){if(title!='') 1164title+=' ,';title+=qty+' x '+$(this).data('title')}});$('#megaName_'+id_group).html(title)} 1165function changeTitleSelected(mpgroup,id_group,attributes){var megatitle='';var megaweight=0;if(attributes==null) 1166return;for(var k=0;k<attributes.length;k++){if(megatitle!='') 1167megatitle+=' - ';if(mpgroup.show=='0'){megatitle+=$('#megagroups #megafield_'+id_group+' option[value="'+attributes[k]+'"]').html();megaweight+=parseFloat($('#megagroups #megafield_'+id_group+' option[value="'+attributes[k]+'"]').attr('data-weight'))}else if(mpgroup.show=='4'&&mpgroup.multiselect=='0'){megatitle+=$('#megagroups input:radio[name=megafield_'+id_group+']:checked').attr('title')}else if(mpgroup.show=='4'&&mpgroup.multiselect=='1'){megatitle+=$('[for=mpcheckbox_'+id_group+'_'+attributes[k]+']').text()}else{var megafield=getMegaField(mpgroup,id_group,attributes[k]);if($(megafield).length){if($(megafield).attr('title')!="undefined"&&$(megafield).attr('title')!='') 1168megatitle+=$(megafield).attr('title');else if($(megafield).attr('data-title')!="undefined"&&$(megafield).attr('data-title')!='') 1169megatitle+=$(megafield).attr('data-title');else if($(megafield).html()!='') 1170megatitle+=$(megafield).html()} 1171megaweight+=parseFloat($(megafield).attr('data-weight'));if($('#mpToggle'+id_group).length){var color=$(megafield).data('color');if(color!=''){$('#mpToggle'+id_group).css('background',color)}}}} 1172mpgroup.weight=megaweight;if(typeof megatitle!='undefined'&&megatitle!='undefined'){$('#megaName_'+id_group).html(megatitle);mpgroup.selectedname=megatitle}else{$('#megaName_'+id_group).html('');mpgroup.selectedname=''}};function getMegaGroupById(id_group){if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(i=0;i<megaGroups.length;i++){if(megaGroups[i].id_addgroup==id_group) 1173return megaGroups[i]}} 1174return null} 1175function updateMPProductSelect(id_group){mpgroup=getMegaGroupById(id_group);if(mpgroup!=null){var id_attribute=$('#megafield_'+id_group).val();if(mpgroup.show=='4'){id_attribute=$('#megagroups input:radio[name=megafield_'+id_group+']:checked').val()} 1176changeTitleSelected(mpgroup,id_group,id_attribute);changeImageSelected(mpgroup,id_group,id_attribute);mpgroup.selected=id_attribute;showStepResult()}} 1177function findMegaCombination(id_group){id_attribute=$('#megagroup_'+id_group).val();updateMegaAttrSelect(id_group,id_attribute)};function findMegaCombo(id_group){id_attribute=$('#megafield_'+id_group).val();$('#group_'+id_group).val(id_attribute);updateMegaAttrSelect(id_group,id_attribute)};function getMPGroupById(id_group){if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(i=0;i<megaGroups.length;i++){if(megaGroups[i].id_addgroup==id_group) 1178return megaGroups[i]}} 1179return null} 1180function removeMegaSelect(mpgroup,id_attribute){var id_addgroup=mpgroup.id_addgroup;$('#megafield_'+id_addgroup+'_'+id_attribute).removeClass('selectAttr');if($('#megafield_'+id_addgroup+'_'+id_attribute).is(':radio')){$('#megafield_'+id_addgroup+'_'+id_attribute).attr('checked',!1);$('#megafield_'+id_addgroup+'_'+id_attribute).parent().removeClass('checked')} 1181$('#megaName_'+id_addgroup).html('');mpgroup.selected='';mpgroup.weight=0} 1182function updateRadioImageSelect(el,id_group,id_attribute){$(el).parents('ul:first').find('.mp_color_pick').removeClass('selectAttr');updateMegaAttrSelect(id_group,id_attribute);$(el).parents('li:first').find('.mp_color_pick').addClass('selectAttr')} 1183function selectRadioButtonImage(el,id_group,id_attribute){$(el).parents('ul:first').find('.mp_color_pick').removeClass('selectAttr');if($('#megafield_'+id_group+'_'+id_attribute).length) 1184$('#megafield_'+id_group+'_'+id_attribute).attr('checked','checked').click();$(el).addClass('selectAttr')} 1185function selectMegaAttrCheckbox(id_group,id_attribute){if($('[name="mpcheckbox_'+id_group+'_'+id_attribute+'"]').length) 1186$('[name="mpcheckbox_'+id_group+'_'+id_attribute+'"]').click()} 1187function updateMegaAttrSelect(id_group,id_attribute){if(typeof _MP!='undefined') 1188_MP.launchId=id_group+'-'+id_attribute;mpgroup=getMegaGroupById(id_group);if(mpgroup==null) 1189return!0;
1189if(mpgroup.selected==id_attribute&&mpgroup.dep==1){if(mpgroup.multiselectmin>0) 1190return;removeMegaSelect(mpgroup,id_attribute);showStepResult();return!0} 1191var id_megagroup=$('#id_megagroup'+id_group).val();var megafield=getMegaField(mpgroup,id_group,id_attribute);if($(megafield).find('img').length>0){$('#megazoomimg_'+id_group).show()}else{$('#megazoomimg_'+id_group).hide()} 1192changeOptionSelected(megafield);var arrayAttr=new Array();arrayAttr[0]=id_attribute;changeTitleSelected(mpgroup,id_group,arrayAttr);changeImageSelected(mpgroup,id_group,id_attribute);if(mpgroup.dep=='0'){setAttrSelectedId(id_megagroup,id_attribute);if($('.product-variants'.length)){if($('.input-color[value="'+id_attribute+'"]').length) 1193$('.input-color[value="'+id_attribute+'"]').attr('checked','checked').change();if($('#group_'+id_megagroup).length>0){$('#group_'+id_megagroup).change()}else if($('#color_'+id_attribute).length>0){$('#color_'+id_attribute).click();setAttrSelectedId(id_megagroup,id_attribute)}}} 1194mpgroup.selected=id_attribute;checkChangeDefMeasures(!1);showStepResult()};function setAttrSelectedId(id_group,value){if($('#group_'+id_group).length>0){$('#group_'+id_group).val(value)}else if($('#color_pick_hidden[name="group_'+id_group+'"]').length>0){$('#color_pick_hidden[name="group_'+id_group+'"]').val(value)}else if($('.color_pick_hidden[name="group_'+id_group+'"]').length>0){$('.color_pick_hidden[name="group_'+id_group+'"]').val(value)} 1195return 0} 1196function stepCalculeMegaGroups(id_step){if($('#id_step_quantity').length>0) 1197$('#quantity_wanted').val($('#id_step_quantity').val());if($('#btnCalculePrice').length>0){$('#btnCalculePrice').click()} 1198if($('#btnAddProduct').length>0){$('#btnAddProduct').click()}};function stepNextMegaGroups(){var id=parseInt(mpIdStep)+1;mpIdStep=id;stepMegaGroups(id)};function stepPreviousMegaGroups(){var id=parseInt(mpIdStep)-1;mpIdStep=id;stepMegaGroups(id)};function stepMegaGroups(id_step){if(id_step>mpSteps){mpIdStep=1;id_step=1} 1199$('.mpstep').hide();$('.megacombo_step').hide();$('.step'+id_step).show();$('#mpStepPrevious').hide();if(id_step==1){$('#mpStepNext').show()}else{$('#mpStepNext').show();$('#mpStepPrevious').show()} 1200if(id_step==mpSteps){$('#mpStepNext').hide();$('#mp-step-result').show();showStepResult()}} 1201function addProductGroups(){var arrayGroups=new Array();if(typeof attributesCombinations!='undefined'&&attributesCombinations.length){for(var i=0;i<attributesCombinations.length;i++){if(typeof attributesCombinations[i].id_attribute_group!='undefined'){var id_group=attributesCombinations[i].id_attribute_group;if($.inArray(id_group,arrayGroups)<0) 1202arrayGroups.push(id_group)}}}else{if($('#attributes .attribute_label').length){$('#attributes .attribute_label').each(function(){if($(this).attr('id')){var id_group=$(this).attr('for').substring(6);groupsMA.push(id_group);optionswitch(id_group)}})}else{$('#attributes .color_pick_hidden').each(function(){var id_group=$(this).attr('name').substring(6);groupsMA.push(id_group);optionswitch(id_group)});$('#attributes select').each(function(){var id_group=$(this).attr('id').substring(6);groupsMA.push(id_group);optionswitch(id_group)})}} 1203if(typeof _MP!='undefined') 1204_MP.arrayGroups=arrayGroups;return arrayGroups} 1205function getSelectedIds(){var arrayIds=new Array();if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(k=0;k<megaGroups.length;k++){if(typeof megaGroups[k]!='undefined'&&!$('#megagroup'+megaGroups[k].id_addgroup).hasClass('hideMegafield')){if($.inArray(megaGroups[k].selected,arrayIds)<0) 1206arrayIds.push(parseInt(megaGroups[k].selected))}}}else if(typeof _MP!='undefined'){if(!_MP.arrayGroups.length) 1207addProductGroups();for(k=0;k<_MP.arrayGroups.length;k++){var id_group=_MP.arrayGroups[k];var attrId=parseInt(getAttrSelectedId(id_group));if($.inArray(attrId,arrayIds)<0) 1208arrayIds.push(parseInt(attrId))}} 1209return arrayIds} 1210function showMegaLayers(){if(typeof _MP!='undefined'&&typeof _MP.arrayLayers!='undefined'&&_MP.arrayLayers.length){if($('#bigpic').length||$('#view_full_size img').length||$('.js-qv-product-cover').length){sendgroups='&id_product='+getIdProduct();var resultAttrs=listAttrIds();var attr='';
1210if(resultAttrs[0]==0){sendgroups+=resultAttrs[1];attr=resultAttrs[1]} 1211if($('#product-details').length){var dataproduct=$('#product-details').data('product');var attributes=dataproduct.attributes;if(typeof attributes!='undefined'&&Object.keys(attributes).length){for(key in attributes){if(attr!='') 1212attr+='-';attr+=attributes[key].id_attribute}}} 1213var group_image=0;var ids='0';if(attr!='') 1214ids=attr.replace('&attrIds=','');var file=baseDir+'module/megaproduct/imagelayer/'+getIdProduct()+'/'+ids+'/'+group_image;if($('#view_full_size img').length) 1215$('#view_full_size img').attr('src',file);else if($('#bigpic').length) 1216$('#bigpic').attr('src',file);else if($('.js-qv-product-cover').length) 1217$('.js-qv-product-cover').attr('src',file);if($('#view_full_size .jqzoom').length) 1218$('#view_full_size .jqzoom').attr('href',file);if($('.mp-group-image').length){$('.mp-group-image').each(function(){image_group=$(this).data('group');file=baseDir+'module/megaproduct/imagelayer/'+getIdProduct()+'/'+attr.replace('&attrIds=','')+'/'+image_group;$(this).attr('src',file)})}} 1219return}} 1220function getMeasure(measure){var me=$('#id_'+measure).val();if(typeof me!='undefined'){me=me.replace(",",".")} 1221return me}
1222function showStepResult(){if(typeof _MP=='undefined') 1223return;$('#megaproducterror').hide();checkChangeLimits(!1);if(typeof resizeStageByMeasures=='function') 1224resizeStageByMeasures();disableMegaFields();checkActionQuantities();showMegaLayers();calculeMPBorders();applyLamasByMeasures();if($.uniform) 1225$.uniform.update();if($('#id_step_quantity').length>0) 1226$('#quantity_wanted').val($('#id_step_quantity').val());if(_MP.ajax_price==1){showprice(getIdProduct(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null)} 1227if(typeof megaGroups!='undefined'&&megaGroups.length>0&&$('#mp-step-result').length){$('#mp-step-result').html('');var images=$('<p>');var addmeasures=!0;if($('.mpgroupmeasures.hideMegaField').length) 1228addmeasures=!1;if(addmeasures){var measures='<div class="mp-result-data">';if($('#id_width').length){measures+='<span class="mp-result-width mp-result-measure"><span class="mp-result-measure-label">'+$('label[for="id_width"]').html()+'</span> '+$('#id_width').val()+'</span><br/>'} 1229if($('#id_height').length){measures+='<span class="mp-result-height mp-result-measure"><span class="mp-result-measure-label">'+$('label[for="id_height"]').html()+'</span> '+$('#id_height').val()+'</span><br/>'} 1230if($('#id_long').length){measures+='<span class="mp-result-long mp-result-measure"><span class="mp-result-measure-label">'+$('label[for="id_long"]').html()+'</span> '+$('#id_long').val()+'</span><br/>'} 1231measures+='</div>';images.append(measures)} 1232var weight=0;for(k=0;k<megaGroups.length;k++){if(typeof megaGroups[k]!='undefined'){var id_group=megaGroups[k].id_group;var id_addgroup=megaGroups[k].id_addgroup;var mpgroup=megaGroups[k];var labelvalue='';var labeltitle='';if(!isNaN(megaGroups[k].weight)&&applyGroupValue(id_addgroup)) 1233weight+=parseFloat(megaGroups[k].weight);if($('#megalabel_'+id_addgroup+' .mega_title').length&&applyGroupValue(id_addgroup)&&mpgroup.action!=1){var id_attr=0;if(typeof mpgroup.attrs!='undefined'&&typeof mpgroup.attrs[0]!='undefined'){id_attr=mpgroup.attrs[0]} 1234labeltitle='<span class="mp-label-result">'+$('#megalabel_'+id_addgroup+' .mega_title').html()+'</span>';if(mpgroup.type=='1'&&mpgroup.show=='6'){labelvalue='';$('#megafield_'+id_addgroup+' .mega-comb-qty-list').each(function(){var value=parseInt($(this).val());if(value!=0){var name=$(this).parents('.mpclistproduct:first').find('.megaproduct_name:first').html();labelvalue+='<br/><span class="mp-data-result">'+value+'x '+name+'</span><br/>'}})}else if(mpgroup.type!='3'&&mpgroup.show!='3'){if($('#megalabel_'+id_addgroup+' .megaattr_name').length&&$('#megalabel_'+id_addgroup+' .megaattr_name').html()!='') 1235labelvalue='<br/><span class="mp-data-result">'+$('#megalabel_'+id_addgroup+' .megaattr_name').html()+'</span><span id="mp-data-price'+id_attr+'" class="mp-data-price"></span><br/>'}else if(mpgroup.show!='3'){if($('#megafield_'+id_addgroup).length&&$('#megafield_'+id_addgroup).val()!='') 1236labelvalue='<br/><span class="mp-data-result">'+$('#megafield_'+id_addgroup).val()+'</span><br/>'} 1237if(mpgroup.show=='3'){$('#megagroup'+id_addgroup+' .mega-qty-list').each(function(){var qty=$(this).val();if(qty!=0){var attrId=$(this).data('attr');var labelQty=$('#qty-label-'+attrId).html();var labelPrice=$('#qty-price-'+attrId).html();if(typeof labelQty=='undefined') 1238labelQty=$(this).data('title');labelvalue+='<br/><span class="mp-data-result">'+qty+_MP.qtysufix+'x'+labelQty+' '+labelPrice+'</span><span id="mp-data-price'+attrId+'" class="mp-data-price"></span>'}});if(labelvalue!='') 1239labelvalue+='<br/>'} 1240if(labelvalue!=''){images.append(labeltitle);images.append(labelvalue)}} 1241if(mpgroup.type=='0'){if(mpgroup.show!='3'){var idattr=0;if(mpgroup.dep=='0'){idattr=$('#group_'+id_group).val()}else if(mpgroup.dep=='1'){idattr=$('#megagroup_'+id_group).val()} 1242$('#mp-step-result').append($('#mpattrlabel_'+id_group).clone());if(mpgroup.show=='1'){images.append($('#mpattr_'+idattr).clone())}}} 1243if(mpgroup.type=='1'||mpgroup.type=='7'){var idproduct=0;idproduct=$('#mp-cat-'+id_group).val();if(mpgroup.show=='3'){var cont=$('#mpcategorylabel_'+id_group).clone();$('#mp-qty-'+id_group+' input').each(function(){var id=$(this).attr('id').substring(10);if($(this).val()!=0){cont.append('<br/>');cont.append($('#productName_'+id).clone())}});$('#mp-step-result').append(cont)}else{$('#mp-step-result').append($('#mpcategorylabel_'+id_group).clone())} 1244if(mpgroup.show=='1'){images.append($('#mpproduct_'+idproduct).clone())}}}} 1245images.append('<br/>');if($('#id_step_quantity').length){measures='<br/><span class="mp-result-days">'+$('label[for="id_step_quantity"]').html()+' '+$('#id_step_quantity').val()+'</span>'} 1246images.append(measures);$('#mp-step-result').append(images);$('.mp-product-name').html($('h1').html());if(_MP.weight!=0){var totalmeasure=_MP.getTotalMeasure();weight+=totalmeasure*_MP.weight} 1247weight=parseFloat(weight);$('.mp-result-weigth').hide();if(!isNaN(weight)){weight=parseFloat(weight);$('.mp_total_weight').html(weight.toFixed(3));if(weight!=0) 1248$('.mp-result-weigth').show()}else{$('.mp_total_weight').html('0')}} 1249if(_MP.ajax_price==1){showprice(getIdProduct(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null)} 1250changeFilterMPUrlStatus();checkLimitMinQuantity(!1)} 1251function hideStepMegaGroups(){if(typeof megaGroups!='undefined'&&megaGroups.length>0){$('#megaproduct').hide();$('#quantity_wanted_p').addClass('mpHide');
1251if($('#btnRanges').length>0){$('#id_step_prices').show();$('#id_step_prices').click(function(){$('#btnRanges').click()})}}} 1252function showButtonMegaproductStep(type){var steps=$('.mp-tab-steps .progressbar li').length;if(type=='before'){if($('.mp-tab-steps .progressbar li.active').length==1){return} 1253$('.mp-tab-steps .progressbar li.active:last').prev().click();$('.mp-tab-steps .progressbar li.active').last().removeClass('active')}else if(type=='next'){if($('.mp-tab-steps .progressbar li.active').length==steps){return} 1254$('.mp-tab-steps .progressbar li.active:last').next().click()}} 1255function showButtonMegaproductTab(type){if(type=='before'){var before=$('#mp-ul-tabs .selected').prevAll().not('.hideMegaField').first();if($(before).length&&$(before).attr('id')!='mp-tab-before'){$('.showTab').hide();$('.mp-tab').removeClass('selected');var id=$(before).attr('data-tab');$(before).addClass('selected');$('.showTab'+id).show()}}else if(type=='next'){var next=$('#mp-ul-tabs .selected').nextAll().not('.hideMegaField').first();if($(next).length&&$(next).attr('id')!='mp-tab-next'){$('.showTab').hide();$('.mp-tab').removeClass('selected');var id=$(next).attr('data-tab');$(next).addClass('selected');$('.showTab'+id).show()}}} 1256function showMegaproductTab(id){$('.showTab').hide();$('.showTab'+id).show();$('.mp-tab').removeClass('selected');$('#mp-tab'+id).addClass('selected')} 1257function showMegaproductStep(id){$('.showTab').hide();$('.showTab'+id).show();$('#mp-step-tab'+id).addClass('active')} 1258function disableAttrMeasures(){if(typeof _MP!='undefined'&&typeof _MP.arrayMeasureAttr!='undefined'&&_MP.arrayMeasureAttr.length){var attrs=_MP.arrayMeasureAttr;for(var l=0;l<attrs.length;l++){attrs[l].selected=!1} 1259if(typeof megaGroups!='undefined'&&megaGroups.length){for(var j=0;j<megaGroups.length;j++){for(var k=0;k<attrs.length;k++){if(attrs[k].id==megaGroups[j].selected) 1260attrs[k].selected=!0}}}else{$('.product-variants select').each(function(){var value=$(this).val();for(var k=0;k<attrs.length;k++){if(attrs[k].id==value) 1261attrs[k].selected=!0}})} 1262for(var k=0;k<attrs.length;k++){if(attrs[k].selected==!0){if($('#id_'+attrs[k].measure+'_select').length){if($('#id_'+attrs[k].measure).hasClass('mpHide')){$('#id_'+attrs[k].measure).val($('#id_'+attrs[k].measure+'_select').val())}}else if($('#id_'+attrs[k].measure).val()=='') 1263$('#id_'+attrs[k].measure).val('1');if($('#id_step_'+attrs[k].measure).length&&$('#id_step_'+attrs[k].measure).val()=='') 1264$('#id_step_'+attrs[k].measure).val('1');$('#mp-'+attrs[k].measure).removeClass('mpHide');if($('#mp-step-'+attrs[k].measure).length) 1265$('#mp-step-'+attrs[k].measure).removeClass('mpHide');$('#mp-'+attrs[k].measure).change()}else{$('#mp-'+attrs[k].measure).addClass('mpHide');if($('#id_'+attrs[k].measure).val()!='') 1266$('#id_'+attrs[k].measure).val('');if($('#mp-step-'+attrs[k].measure).length) 1267$('#mp-step-'+attrs[k].measure).addClass('mpHide')}}}} 1268function replaceAllData(string,search,replace){return string.split(search).join(replace)} 1269function sendFormule(formule){var width=$('#id_width').val();var height=$('#id_height').val();var long=$('#id_long').val();var totalmeasure=_MP.getTotalMeasure();var quantity=$('#quantity_wanted').val();formule=replaceAllData(formule,'W',width);formule=replaceAllData(formule,'H',height);formule=replaceAllData(formule,'L',long);formule=replaceAllData(formule,'Q',quantity);var dataajax='action=getFormule&formule='+encodeURIComponent(formule);var result=!1;$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!1,cache:!1,dataType:"html",data:dataajax,success:function(jsonData){if(jsonData=='1'){result=!0}}});return result} 1270function disableMegaFields(){disableAttrMeasures();if(typeof megaGroups=='undefined') 1271return 1272$('.hideMegaField').each(function(){$(this).prop("disabled",!1)});$('.hideMegaField').removeClass('hideMegaField');var width=$('#id_width').val();var height=$('#id_height').val();var long=$('#id_long').val();var totalmeasure=_MP.getTotalMeasure();var quantity=$('#quantity_wanted').val();var arrayIdGroups=new Array();var arrayIdBoolGroups=new Array();if(rulesArray.length>0){for(var i=0;i<rulesArray.length;i++){var selected_fields=new Array();if(rulesArray[i].selected_fields!='') 1273selected_fields=rulesArray[i].selected_fields.split("|");var disabled_fields=rulesArray[i].disabled_fields.split("|");var applyRule=!0;var type=parseInt(rulesArray[i].rule);var logical=rulesArray[i].logical;var groupId=parseInt(rulesArray[i].groupId);var message=rulesArray[i].message;if(!0){var existAttr=!1;for(var m=0;m<selected_fields.length;m++){$arraySelect=selected_fields[m].split('-');if(type==0||type==3||type==1) 1274var selectedRule=!1;else var selectedRule=!0;if($arraySelect.length==2){for(var j=0;j<megaGroups.length;j++){if(megaGroups[j].multiselect==1){var selectAttr=getMultiSelectGroup(megaGroups[j].id_addgroup,!1);if($.inArray($arraySelect[1],selectAttr)>=0){existAttr=!0 1275if(type==0||type==3){if(type==3){launchId=megaGroups[j].id_addgroup+'-'+$arraySelect[1];if(_MP.launchId==launchId) 1276selectedRule=!0}else selectedRule=!0}else selectedRule=!1}}else if(((megaGroups[j].type==1||megaGroups[j].type==7)&&$arraySelect[0]=='p')||(megaGroups[j].type==0&&$arraySelect[0]=='a')){if(typeof megaGroups[j].selected!='undefined'&&megaGroups[j].selected==$arraySelect[1]){existAttr=!0;if(type==0||type==3||type==1){if(type==3){launchId=megaGroups[j].id_addgroup+'-'+$arraySelect[1];if(_MP.launchId==launchId) 1277selectedRule=!0}else selectedRule=!0}else selectedRule=!1}}}} 1278if(logical=='and'&&!selectedRule) 1279applyRule=!1} 1280if(!existAttr&&type!=2) 1281applyRule=!1;if(selected_fields.length==0) 1282applyRule=!0} 1283if(rulesArray[i].rule==1&&applyRule){option_measure=rulesArray[i].option_measure;applyRuleMeasure=!0;checkNextRule=!0;if(rulesArray[i].formule!=""&&checkNextRule){applyRuleMeasure=sendFormule(rulesArray[i].formule);
1283if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1284checkNextRule=!1} 1285if(rulesArray[i].width!=0&&checkNextRule){applyRuleMeasure=ruleMeasure(rulesArray[i].width,width,option_measure);if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1286checkNextRule=!1} 1287if(rulesArray[i].height!=0&&checkNextRule){applyRuleMeasure=ruleMeasure(rulesArray[i].height,height,option_measure);if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1288checkNextRule=!1} 1289if(rulesArray[i]['long']!=0&&checkNextRule){applyRuleMeasure=ruleMeasure(rulesArray[i]['long'],long,option_measure);if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1290checkNextRule=!1} 1291if(rulesArray[i].total!=0&&checkNextRule){applyRuleMeasure=ruleMeasure(rulesArray[i].total,totalmeasure,option_measure);if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1292checkNextRule=!1} 1293if(rulesArray[i].quantity!=0&&checkNextRule){applyRuleMeasure=ruleMeasure(rulesArray[i].quantity,quantity,option_measure);if((logical=='and'&&!applyRuleMeasure)||(logical=='or'&&applyRuleMeasure)) 1294checkNextRule=!1} 1295if(!applyRuleMeasure){applyRule=!1}} 1296if(groupId!=0){if(typeof arrayIdGroups[groupId]=='undefined'){arrayIdBoolGroups[groupId]=!0;arrayIdGroups[groupId]=new Array()} 1297if(applyRule&&arrayIdBoolGroups[groupId]){var ruleOptions={type:type,megaGroups:megaGroups,disabled_fields:disabled_fields};arrayIdGroups[groupId].push(ruleOptions)} 1298if(!applyRule){arrayIdBoolGroups[groupId]=!1}} 1299if(applyRule&&groupId==0){launchDisableFields(type,megaGroups,disabled_fields,message)}} 1300if(arrayIdBoolGroups.length){for(var m=0;m<arrayIdBoolGroups.length;m++){if(arrayIdBoolGroups[m]){var rulesGroupLaunch=arrayIdGroups[m];for(var ja=0;ja<rulesGroupLaunch.length;ja++){launchDisableFields(rulesGroupLaunch[ja].type,rulesGroupLaunch[ja].megaGroups,rulesGroupLaunch[ja].disabled_fields,message)}}}}}} 1301function launchDisableFields(type,megaGroups,disabled_fields,message){for(var j=0;j<disabled_fields.length;j++){$arrayDisabled=disabled_fields[j].split('-');if($arrayDisabled.length==2){if(type==3){idAttr=$arrayDisabled[1];for(var k=0;k<megaGroups.length;k++){if($('#megafield_'+megaGroups[k].id_addgroup+'_'+idAttr).length>0||$('#megafield_'+megaGroups[k].id_addgroup+' option[value="'+idAttr+'"]').length>0){var hasSelected=checkDisableSelected(megaGroups[k],idAttr);if(!hasSelected&&message!='') 1302showDialogAlert(message,megaGroups[k].id_addgroup);selectRuleOptions(megaGroups[k],idAttr);break}}}else{if($arrayDisabled[0]=='g'){if($('#mp-tab'+$arrayDisabled[1]).length) 1303$('#mp-tab'+$arrayDisabled[1]+', .mp-tab'+$arrayDisabled[1]).addClass('hideMegaField');else if($('#mp-accordion'+$arrayDisabled[1]).length) 1304$('#mp-accordion'+$arrayDisabled[1]+', .mp-tab'+$arrayDisabled[1]).addClass('hideMegaField');else $("#megagroup"+$arrayDisabled[1]).addClass('hideMegaField');if(typeof disableAdvancedColor!='undefined') 1305disableAdvancedColor($arrayDisabled[1])}else{for(var k=0;k<megaGroups.length;k++){if(((megaGroups[k].type==1||megaGroups[k].type==7)&&$arrayDisabled[0]=='p')||(megaGroups[k].type==0&&$arrayDisabled[0]=='a')){hideRuleField($arrayDisabled[0],$arrayDisabled[1],megaGroups[k].id_addgroup,message)}}}}}}} 1306function selectRuleOptions(megagroup,idattr){if(typeof megagroup=='undefined'||megagroup==null) 1307return;id_group=megagroup.id_group;id_addgroup=megagroup.id_addgroup;var megafield=getMegaField(megagroup,id_addgroup,idattr);megagroup.selected=idattr;changeOptionSelected(megafield);if(idattr!=0&&megagroup.show!='3'){if(megagroup.show=='4'){$(megafield).prop("checked",!0)} 1308if(megagroup.show=='0'){$(megafield).parent('select').val(idattr)} 1309var arrayAttr=new Array();arrayAttr.push(idattr);changeTitleSelected(megagroup,id_addgroup,arrayAttr);changeImageSelected(megagroup,id_addgroup,idattr);if(megagroup.dep=='0'){setAttrSelectedId(id_group,idattr);if(typeof productHasAttributes!='undefined'&&productHasAttributes){if($('#group_'+id_group).length>0){$('#group_'+id_group).change()}else if($('#color_'+idattr).length>0){$('#color_'+idattr).click();setAttrSelectedId(id_group,idattr)}}} 1310megagroup.selected=idattr}} 1311function ruleMeasure(rule,measure,option){rule=parseFloat(rule);measure=parseFloat(measure);if((rule>measure&&option==0)||(rule<measure&&option==1)||(rule==measure&&option==2)) 1312return!0;else return!1} 1313function checkDisableSelected(id_group,id){var hasSelect=!1;for(n=0;n<megaGroups.length;n++){if(megaGroups[n].id_addgroup==id_group){if(megaGroups[n].selected==id||in_array(id,megaGroups[n].selections)){if(megaGroups[n].selected==id){megaGroups[n].selected='';hasSelect=!0}else if(in_array(id,megaGroups[n].selections)){var index=megaGroups[n].selections.indexOf(id);if(index>-1){megaGroups[n].selections.splice(index,1);hasSelect=!0}} 1314removeMegaSelect(megaGroups[n],id)}}} 1315return hasSelect} 1316function hideRuleField(type,id,id_group,message){if(type=='a'||type=='p'){var hasSelected=checkDisableSelected(id_group,id);var changeSelected=!1;if($('#megafield_'+id_group+'_'+id).length>0){if($('#megafield_'+id_group+'_'+id).parents('li').length>0){$('#megafield_'+id_group+'_'+id).parents('li').first().addClass('hideMegaField');if(hasSelected){$('#megafield_'+id_group+'_'+id).parents('li').first().parent().find('li').each(function(){if(!changeSelected&&!$(this).hasClass('hideMegaField')){changeSelected=!0;id=$(this).attr('alt');if($('#megafield_'+id_group+'_'+id).is(':radio')){$('#megafield_'+id_group+'_'+id).prop('checked',!0);updateMegaAttrSelect(id_group,id)}else if($('#megafield_'+id_group+'_'+id).length) 1317$('#megafield_'+id_group+'_'+id).click();if(message!='') 1318showDialogAlert(message,id_group)}})}}else{$('#megafield_'+id_group+'_'+id).addClass('hideMegaField');if(hasSelected){$('#megafield_'+id_group+'_'+id).parent().find('li').each(function(){if(!changeSelected&&!$(this).hasClass('hideMegaField')){changeSelected=!0;if(message!='') 1319showDialogAlert(message,id_group);id=$(this).attr('alt');$('#megafield_'+id_group+'_'+id).click()}})}}}else if($('[name="mpcheckbox_'+id_group+'_'+id+'"]').parents('li').length>0){$('[name="mpcheckbox_'+id_group+'_'+id+'"]').parents('li').first().addClass('hideMegaField');if(hasSelected){$('[name="mpcheckbox_'+id_group+'_'+id+'"]').parents('li').first().parent().find('li').each(function(){if(!changeSelected&&!$(this).hasClass('hideMegaField')){changeSelected=!0;id=$(this).attr('alt');if($('[name="mpcheckbox_'+id_group+'_'+id+'"]').length) 1320$('[name="mpcheckbox_'+id_group+'_'+id+'"]').click()}})}}else if($('#megafield_'+id_group+' option[value="'+id+'"]').length>0){$('#megafield_'+id_group+' option[value="'+id+'"]').addClass('hideMegaField').prop("disabled",!0);if(hasSelected){$('#megafield_'+id_group+' option').each(function(){if(!changeSelected&&!$(this).hasClass('hideMegaField')){changeSelected=!0;if(message!='') 1321showDialogAlert(message,id_group);$('#megafield_'+id_group).val($(this).val());$('#megafield_'+id_group).change()}})}}}else if(type=='g'){$("#megagroup"+id_group).addClass('hideMegaField')}} 1322function hideMegaAttributeGroups(){if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(i=0;i<megaGroups.length;i++){if(typeof megaGroups[i]!='undefined'){megaGroups[i].weight=0;var id_megagroup=megaGroups[i].id_group;var id_group=megaGroups[i].id_addgroup;var megagroup=megaGroups[i];if(megagroup.hide==1){if(megagroup.dep=='0'){if($('#group_'+id_megagroup).length>0){$('#group_'+id_megagroup).parents('.product-variants-item').hide()}else if($('[name="group_'+id_megagroup+'"]').length>0){$('[name="group_'+id_megagroup+'"]').parents('.attribute_fieldset').hide()}else if($('label[for="group_'+id_megagroup+'"]').length){$('label[for="group_'+id_megagroup+'"]').parents('.attribute_fieldset').hide()}else if($('.color_pick_hidden[name="group_'+id_megagroup+'"]').length){$('.color_pick_hidden[name="group_'+id_megagroup+'"]').parents('.attribute_fieldset').hide()}else if($('#color_to_pick_list').length>0){$('#color_to_pick_list').parents('.attribute_fieldset').hide()}}else if(megagroup.dep=='1'){$('#mpgroup_'+id_megagroup).parent().hide()}} 1323if((megagroup.multiselect=='0'&&megagroup.multiselectmin!='0'&&megagroup.selectstart!='1')||megagroup.default_id!=''){var idattr=0;if(megagroup.default_id!=''){idattr=parseInt(megagroup.default_id
1323)}else if(megagroup.dep=='0'&&megagroup.type=='0'){idattr=getAttrSelectedId(id_megagroup)}else{idattr=getFisrtAttrSelectedId(id_group)} 1324var megafield=getMegaField(megagroup,id_group,idattr);if(idattr!='') 1325megagroup.selected=idattr;changeOptionSelected(megafield);if(idattr!=0&&megagroup.show!='3'){if(megagroup.show=='4'){$(megafield).prop("checked",!0);if($(megafield).parents('li:first').find('.mp_color_pick').length) 1326$(megafield).parents('li:first').find('.mp_color_pick').addClass('selectAttr')}else if(megagroup.multiselect=='1'&&megagroup.show=='1'){$(megafield).prop("checked",!0)}else if(megagroup.show=='0'){$(megafield).parent('select').val(idattr)} 1327var arrayAttr=new Array();arrayAttr.push(idattr);changeTitleSelected(megagroup,id_group,arrayAttr);changeImageSelected(megagroup,id_group,idattr)} 1328if(megagroup.show=='3') 1329changeQuantityListTitleSelected(id_group)}} 1330if(megagroup.dep=='0'&&megagroup.type=='0') 1331disableByCombinationStocks(megagroup)} 1332$('.mp-step-measures .mp-measure, #id_step_quantity').unbind('blur').blur(function(){measureProportional(this);showStepResult()});if(typeof megaGroups!='undefined'&&megaGroups.length>0){checkChangeDefMeasures(!0);showStepResult()}} 1333if(typeof mpAddProduct!='undefined'&&mpAddProduct==0){$('#mp-step-quantity').hide()} 1334showStepResult()};function disableByCombinationStocks(megagroup){if($('.attribute_fieldset').length!=1) 1335return;var id_group=megagroup.id_group;var id_addgroup=megagroup.id_addgroup;if(megagroup.show=='3'){$('#megafield_'+id_addgroup+' input').each(function(){var attr=$(this).data('attr');for(x=0;x<combinations.length;x++){var id_attribute_combination=combinations[x].idsAttributes[0];if(attr==id_attribute_combination&&(!allowBuyWhenOutOfStock&&combinations[x].quantity<1)){$(this).parent('li:first').remove()}else if(attr==id_attribute_combination){$(this).attr('data-stock',combinations[x].quantity)}}})}} 1336function getSendMeasures(){var arrayMeasures=new Array('width','height','long');var measures='';for(var i=0;i<arrayMeasures.length;i++){var m=arrayMeasures[i];if($('#id_'+m).length){if($('#id_'+m).parents('.mpgroupmeasures').length){if(!$('#id_'+m).parents('.hideMegaField').length){measures+='&'+m+'='+getMeasure(m)}}else{measures+='&'+m+'='+getMeasure(m)}}} 1337return measures} 1338function addMegaProduct(idProduct,idCombination,addedFromProductPage,callerElement,quantity,whishlist){if($('.mp-result-error').length) 1339$('.mp-result-error').html('');if(typeof mpOnlaunch!='undefined') 1340mpOnlaunch=1;if(addedFromProductPage){$('.add_to_cart button').prop('disabled','disabled').addClass('disabled');$('.filled').removeClass('filled')}else $(callerElement).prop('disabled','disabled');if(typeof mpAddProduct!='undefined'&&mpAddProduct==2){quantity=1} 1341if(typeof _MP!='undefined'&&_MP.stock!=''){_MP.setStock(parseFloat(_MP.stock)-_MP.getTotalMeasure());$('#stockvalue').html(_MP.stock.toFixed(2))} 1342var sendgroups=getSendGroups(quantity);if(!sendgroups) 1343return;if(typeof mpAddProduct!='undefined'&&mpAddProduct==0){sendgroups+='&addproduct=false'} 1344if($('#measure-use').length) 1345sendgroups+='&measureconvert='+$('#measure-use').val();if(typeof productDesigner!='undefined'){var view=JSON.stringify(productDesigner.getProduct(!1,!0));sendgroups+='&views='+view;if($('#md-loading').length) 1346$('#md-loading').show()} 1347var measures=getSendMeasures() 1348measures+='&id_product='+idProduct;measures+='&token='+static_token;var $productActions=$('.product-actions');var formSerialized=$productActions.find('form:first').serialize();$('#btnAddProduct').addClass('mpDisable');$.ajax({type:'POST',url:prestashop.urls.pages.cart,async:!0,cache:!1,dataType:"json",data:'ajax=1&action=update&add=1&addmegaproduct=1'+sendgroups+measures+'&qty='+((quantity&&quantity!=null)?quantity:'1')+'&'+formSerialized,success:function(jsonData,textStatus,jqXHR){$('#btnAddProduct').removeClass('mpDisable');if(typeof jsonData.hasError=='undefined'){if(typeof jsonData.quantity!='undefined'&&jsonData.quantity==null){showErrorAlert(errorInfo1) 1349return} 1350if(_MP.modal_info==1&&$(".ui-dialog-content").length) 1351$(".ui-dialog-content").dialog("close");if(typeof productDesigner!='undefined'){$('#md-loading').hide()} 1352prestashop.emit('updateCart',{reason:{idProduct:jsonData.id_product,idProductAttribute:jsonData.id_product_attribute,linkAction:'add-to-cart',cart:jsonData.cart},resp:jsonData});goToByScroll('shopping_cart')}else{alert(jsonData.errors)} 1353$('#btnAddCalculeService').removeProp('disabled').removeClass('disabled')},error:function(XMLHttpRequest,textStatus,errorThrown){$('#btnAddProduct').removeClass('mpDisable');alert("TECHNICAL ERROR: unable to add the product.\n\nDetails:\nError thrown: "+XMLHttpRequest+"\n"+'Text status: '+textStatus);if(addedFromProductPage) 1354$('body#product p#add_to_cart input').removeAttr('disabled').addClass('exclusive').removeClass('exclusive_disabled');else $(callerElement).removeAttr('disabled')}})};function clearFileUploads(){$('.hiddenFileUpload').each(function(){$(this).val('')});$('.mpUploadFile').each(function(){$(this).remove()})} 1355function createTableRanges(ranges,type){if(ranges.length){var widthRanges=new Array();var heightRanges=new Array();var longRanges=new Array();var measureRanges=new Array();$.each(ranges,function(index,value){if(value.width!=0&&jQuery.inArray(value.width,widthRanges)==-1) 1356widthRanges.push(value.width);if(value.height!=0&&jQuery.inArray(value.height,heightRanges)==-1) 1357heightRanges.push(value.height);if(value['long']!=0&&jQuery.inArray(value['long'],longRanges)==-1) 1358longRanges.push(value['long']);if(value.measure!=0&&jQuery.inArray(value.measure,widthRanges)==-1) 1359measureRanges.push(value.measure)});widthRanges=widthRanges.sort(function(a,b){return a-b});heightRanges=heightRanges.sort(function(a,b){return a-b});longRanges=longRanges.sort(function(a,b){return a-b});measureRanges=measureRanges.sort(function(a,b){return a-b});if(type=='M2'){var content='';var widthText=$('#mp-width .typemeasure').html();var heightText=$('#mp-height .typemeasure').html();if((!$('#mp-step-height').length&&!$('#mp-height').hasClass('mpHide'))||($('#mp-step-height').length&&!$('#mp-step-height').hasClass('mpHide'))) 1360heightText=$('#mp-step-height .typemeasure').html();if((!$('#mp-step-width').length&&!$('#mp-width').hasClass('mpHide'))||($('#mp-step-width').length&&!$('#mp-step-width').hasClass('mpHide'))) 1361widthText=$('#mp-step-width .typemeasure').html();content+='<thead><tr><th>
1361</th>';$.each(heightRanges,function(index,value){content+='<th>'+value+' '+heightText+'</th>'});$.each(widthRanges,function(index,value){content+='<tr><th>'+value+' '+widthText+'</th>';$.each(heightRanges,function(index2,value2){var addValue=!1;$.each(ranges,function(index3,value3){if(value3.width==value&&value3.height==value2){content+='<td>'+value3.price+'</td>';addValue=!0}});if(!addValue) 1362content+='<td></td>'});content+='</tr>'});return content}}} 1363function deleteMegaProductFromSummary(id){var customizationId=0;var productId=0;var productAttributeId=0;var id_address_delivery=0;var ids=0;var id_megacart=0;ids=id.split('_');productId=parseInt(ids[0]);if(typeof(ids[1])!='undefined') 1364productAttributeId=parseInt(ids[1]);if(typeof(ids[4])!='undefined') 1365id_megacart=parseInt(ids[4]);$.ajax({type:'GET',url:baseDir+'index.php',async:!0,cache:!1,dataType:'json',data:'controller=cart&ajax=true&delete&summary&id_product='+productId+'&ipa='+productAttributeId+'&id_megacart='+id_megacart+((customizationId!=0)?'&id_customization='+customizationId:'')+'&token='+static_token,success:function(jsonData){if(jsonData.hasError){var errors='';for(error in jsonData.errors) 1366if(error!='indexOf') 1367errors+=jsonData.errors[error]+"\n"}else{location.reload();return;if(parseInt(jsonData.summary.products.length)===0){if(typeof(orderProcess)==='undefined'||orderProcess!=='order-opc') 1368document.location.href=document.location.href;else{$('#center_column').children().each(function(){if($(this).attr('id')!=='emptyCartWarning'&&$(this).attr('class')!=='breadcrumb'&&$(this).attr('id')!=='cart_title'){$(this).fadeOut('slow',function(){$(this).remove()})}});$('#summary_products_label').remove();$('#emptyCartWarning').fadeIn('slow')}}else{$('#product_'+id).fadeOut('slow',function(){$(this).remove();cleanSelectAddressDelivery();if(!customizationId) 1369refreshOddRow()});$('#megaproduct_'+id).remove();$('#mp_cart_'+id_megacart).remove();var exist=!1;for(i=0;i<jsonData.summary.products.length;i++) 1370if(jsonData.summary.products[i].id_product===productId&&jsonData.summary.products[i].id_product_attribute===productAttributeId&&jsonData.summary.products[i].id_address_delivery===id_address_delivery) 1371exist=!0;if(!exist&&customizationId) 1372$('#product_'+productId+'_'+productAttributeId+'_0_'+id_address_delivery).fadeOut('slow',function(){$(this).remove();refreshOddRow()})} 1373updateCartSummary(jsonData.summary);updateCustomizedDatas(jsonData.customizedDatas);updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);if(typeof(getCarrierListAndUpdate)!=='undefined') 1374getCarrierListAndUpdate();if(jsonData.carriers!=null) 1375updateCarrierList(jsonData)}},error:function(XMLHttpRequest,textStatus,errorThrown){alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: "+XMLHttpRequest+"\n"+'Text status: '+textStatus)}})} 1376function getMultiSelectGroup(id_group,rule){var mpgroup=getMPGroupById(id_group);var selections=new Array();if(mpgroup.show=='0'){selections=$('#megafield_'+id_group).val()}else if(mpgroup.show=='2'||mpgroup.multisect==1){$('#megagroup'+id_group+' .selectAttr').each(function(item){selections.push($(this).data('attr'))})}else if(mpgroup.show=='1'||mpgroup.show=='4'){$('#megagroup'+id_group+' .mpcheckbox:checked').each(function(item){if(rule&&$(this).parents('li:first').length&&!$(this).parents('li:first').hasClass('hideMegaField')) 1377selections.push($(this).val());else if(!rule) 1378selections.push($(this).val())})}else{if(typeof mpgroup.selection!='undefined') 1379selections.push(mpgroup.selection)} 1380if(selections==null) 1381selections=new Array();return selections} 1382function addMultiselectValues(id_group,value){mpgroup=getMPGroupById(id_group);if(mpgroup!=null){if(typeof mpgroup.selections=='undefined'){mpgroup.selections=new Array()}} 1383if(!in_array(value,mpgroup.selections)){mpgroup.selections.push(value)}} 1384function deleteMultiselectValues(id_group,value){mpgroup=getMPGroupById(id_group);if(mpgroup!=null){if(typeof mpgroup.selections=='undefined'){return}} 1385if(in_array(value,mpgroup.selections)){var index=mpgroup.selections.indexOf(value);if(index>-1){mpgroup.selections.splice(index,1)}}} 1386$(window).load(function(){if(typeof _MP!='undefined'){if($('.fileupload').length) 1387loadSingleFileUpload();
1387if(_MP.qtydefault!=1){addMPQuantity(_MP.qtydefault)} 1388if(urlcodeparams!=''){resetGroupsByUrl(urlcodeparams);if($.uniform)$.uniform.update();changeFilterMPUrlStatus();showStepResult()} 1389assignMinQuantity();applyLimitMinQuantity();if(_MP.ajax_price==1) 1390showprice(getIdProduct(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null,$('#id_width').val(),$('#id_height').val(),$('#id_long').val());showMegaLayers();_MP.loadPage=1}});function roundToTwo(num){return+(Math.round(num+"e+2")+"e-2")} 1391function validamedidas(med){if(med==''){med=0} 1392med=parseFloat(med);return med} 1393function convertInchesToMeter(feet,inches,measure){inches=inches+(feet*12);totalmeters=inches/39.3700787;type=getTypeMetersByMeasure(measure);totalmeters=_MP.changeMeasure(_MP.productmeasure,type,totalmeters);return totalmeters} 1394function getTypeMetersByMeasure(measure){type=_MP.width_measure;if(measure=='height') 1395type=_MP.width_measure;else if(measure=='long') 1396type=_MP.long_measure;return type} 1397function convertMeterToInches(meters,measure){type=getTypeMetersByMeasure(measure);totalmeters=_MP.changeMeasure(type,'m',meters);totalinches=parseFloat(totalmeters*39.3701);return totalinches} 1398function addInputInchMeasures(measure){var id='#id_step_'+measure;if(!$(id).length) 1399id='#id_'+measure;if(!$(id).length) 1400return;$(id).hide();div=$('<div class="measure-inches" />');$inputft=$('<input type="number" id="id_'+measure+'_ft" value="0" class="mp_ft" />');$inputinc=$('<input type="number" max="11" id="id_'+measure+'_inc" value="0" class="mp_inch" />');div.append($inputft);div.append($('<span class="mp_ft_span">ft</span>'));div.append($inputinc);div.append($('<span class="mp_inch_span">inch</span>'));div.insertAfter($(id));$('#id_'+measure).change(function(){addInchesMeasures(measure,id)});$('#id_'+measure+'_inc').keyup(function(){changeInputFeetMeasure(measure,id)});$('#id_'+measure+'_inc').change(function(){changeInputFeetMeasure(measure,id)});$('#id_'+measure+'_ft').change(function(){changeInputFeetMeasure(measure,id)});$('#id_'+measure+'_ft').keyup(function(){changeInputFeetMeasure(measure,id)})} 1401function addInputMetersMeasures(measure){var id='#id_step_'+measure;if(!$(id).length) 1402id='#id_'+measure;if(!$(id).length) 1403return;$(id).hide();$inputmeters=$('<input type="text" id="id_'+measure+'_meters" value="0" class="mp_meters" />');$inputmeters.insertAfter($(id));$('#id_'+measure+'_meters').change(function(){changeInputMetersMeasure(measure,id)});$('#id_'+measure+'_meters').keyup(function(){changeInputMetersMeasure(measure,id)})} 1404function changeInputMetersMeasure(measure,id){var total=validamedidas($('#id_'+measure+'_meters').val());if(_MP.globalMeasure=='ft'){total=convertMeterToInches(total,measure)} 1405$(id).val(total).blur()} 1406function addInchesMeasures(measure,id){var meters=validamedidas($('#id_'+measure).val());meters=meters*100;var realFeet=((meters*0.393700)/12);var feet=Math.floor(realFeet);var inches=Math.round((realFeet-feet)*12);$('#id_'+measure+'_ft').val(feet);$('#id_'+measure+'_inc').val(inches)} 1407function changeInputFeetMeasure(measure,id){var inches=validamedidas($('#id_'+measure+'_inc').val());var feet=validamedidas($('#id_'+measure+'_ft').val());if(inches>11){var div=parseInt(inches/12);$('#id_'+measure+'_ft').val(feet+div);var rest=inches%12;$('#id_'+measure+'_inc').val(rest)} 1408if(_MP.globalMeasure=='m'){total=convertInchesToMeter(feet,inches,measure) 1409total=Number((total).toFixed(6))}else{total=(parseInt(feet)*12)+parseInt(inches)} 1410$(id).val(total).blur()} 1411function showInchMeasures(use){var arrayMeasures=new Array('width','height','long');if(use==1) 1412$('.measure-inches').hide();else $('.measure-inches').show();if(_MP.globalMeasure=='ft'&&use==2){$('.mp_meters').hide()}else{$('.mp_meters').show()} 1413for(var i=0;i<arrayMeasures.length;i++){measure=arrayMeasures[i];var id='#id_step_'+measure;if(!$(id).length) 1414id='#id_'+measure;if(_MP.globalMeasure=='m'){if(use==1){$(id).parent().find('.typemeasure').show();$(id).show()}else{$(id).parent().find('.typemeasure').hide();$(id).hide()}}else if(_MP.globalMeasure=='ft'){if(use==1){$(id).parent().find('.typemeasure').show()}else{$(id).parent().find('.typemeasure').hide()} 1415$(id).hide()}}} 1416function applyInputMeasures(){if(_MP.globalMeasure=='m'&&_MP.measureconvert=='1') 1417return;if(_MP.globalMeasure=='ft'&&_MP.measureconvert=='2') 1418return;var arrayMeasures=new Array('width','height','long');for(var i=0;i<arrayMeasures.length;i++){measure=arrayMeasures[i];if((_MP.globalMeasure=='m'&&_MP.measureconvert!='1')) 1419addInputInchMeasures(measure);if(_MP.globalMeasure=='ft'){addInputInchMeasures(measure);addInputMetersMeasures(measure);if($.uniform)
1420$.uniform.update()}} 1421if($('#measure-use').length){showInchMeasures($('#measure-use').val());$('#measure-use').change(function(){showInchMeasures($(this).val())});if($('#megagroups'.length)){$('#megagroups').prepend($('#select-measure-type'))}}} 1422var urlcodeparams=getParameterByName('mpurl');function reloadMegaproduct(){if(typeof _MP!="undefined"){if(typeof hideMPElements!='undefined'){$(hideMPElements).addClass('mpHide')} 1423if(typeof hideMegaAttributeGroups!='undefined'){loadMegaproduct();hideMegaAttributeGroups();$('#mp-ul-tabs').show();if($('#mp-ul-tabs li').length>2){$('#mp-ul-tabs').show();$('#mp-ul-tabs li.mp-tab:first').click()}else{$('#mp-ul-tabs').hide()}}}} 1424$(window).resize(function(){if($('#mp-ul-lamas').length){applyStartLamas()}});$(document).ready(function(){loadMegaproduct();loadMegaproductEvents();if($('#mp-ul-lamas').length){applyStartLamas()}});function loadMegaproductEvents(){if(typeof(_MP)!="undefined"){$('.mp-border-measure').blur(function(){changeMPBorders()});$('#color_to_pick_list a').unbind('click').bind('click',function(event){var objeto=this;$('.our_price_display').css('visibility','hidden');colorPickerClick($(objeto));showStepResult();setTimeout(function(){$('.our_price_display').css('visibility','visible')},500)});$('#btnAddProduct').unbind('click').click(function(e){if(_MP.checkRanges()){if($('#product_page_product_id').length){var id_product=$('#product_page_product_id').val()}else{var data=$('#product-details').data('product');var id_product=data.id_product} 1425addMegaProduct(id_product,getIdCombination(),!0,null,$('#quantity_wanted').val(),null,getMeasure('width'),getMeasure('height'),getMeasure('long'))}});$(document).on("click","#btnAddCalculePrice",function(e){e.preventDefault();if(_MP.checkRanges()) 1426addMegaProduct($('#product_page_product_id').val(),$('#idCombination').val(),!0,null,$('#quantity_wanted').val(),null,getMeasure('width'),getMeasure('height'),getMeasure('long'))});$('#quantity_wanted,.mp-measure, .mp-step-measures input[type=text], #id_step_quantity').unbind('keyup change').on('keyup change',function(e){updateSlider($(this).val());measureProportional(this);_MP.applyMinQty=0;showStepResult();_MP.applyMinQty=1;e.preventDefault()});if(typeof _MP!='undefined'&&_MP.multiple_min==1&&$('#id_step_quantity').length==0){$('#quantity_wanted').on('change',function(e){changeMultipleMinQuantity('qty','',0)})}else if(typeof _MP!='undefined'&&_MP.multiple_min==1){$('#id_step_quantity').on('change',function(e){changeMultipleMinQuantity('id_step_quantity','',0)})} 1427$('#btnCalculePrice').click(function(){$('#calculePrice').remove();$('#megaproducterror').hide();if(_MP.checkRanges()) 1428calculeprice($('#product_page_product_id').val(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null,getMeasure('width'),getMeasure('height'),getMeasure('long'),!1)});$('#btnPrint').click(function(){calculeprice($('#product_page_product_id').val(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null,getMeasure('width'),getMeasure('height'),getMeasure('long'),!0);var precio=$(".precio-abajo .product-price").text();$("#showMPInfo .mpInfoProduct").append('<br>Total: '+precio);$('#calculePriceData').print()});$('#btnEnviarPresu').click(function(){calculeprice($('#product_page_product_id').val(),getIdCombination(),!0,null,$('#quantity_wanted').val(),null,getMeasure('width'),getMeasure('height'),getMeasure('long'),!0,!0)});$("#quantity_wanted_p a.btn").bind('click',function(e){setTimeout(showStepResult,50)});$('#btnRanges').click(function(){$('#mpranges').dialog({resizable:!1,modal:!0,width:'auto'})});if($('.product-actions').length){$('.product-actions').addClass('mpBtnContainer')}}} 1429function loadMegaproduct(){if(typeof(_MP)!="undefined"){moveContainerGroups();applyInputMeasures();loadRangeInputs();if($('.mp-tab-steps').length){var count_li=$('.mp-tab-steps > .progressbar > li').length;$('.mp-tab-steps li').width((100/count_li)+'%')} 1430if($('#mp-ul-tabs li').length>2){$('#mp-ul-tabs').show();$('#mp-ul-tabs li.mp-tab:first').click()}else if($('.mp-tab-steps .progressbar li').length){$('.mp-tab-steps .progressbar li:first').click()}else{$('#mp-ul-tabs').hide()} 1431$('.mega-custom-input').each(function(){if($(this).attr('maxLength')!==undefined){$(this).keyup(function(){var limit=parseInt($(this).attr('maxLength'));var intro=$(this).val().length;var rest=limit-intro;if(rest!=0) 1432$(this).parent('.mp-personalization').find('.mega-limit').html(charactersleft+' '+rest);else $(this).parent('.mp-personalization').find('.mega-limit').html('')})}});set_tooltip();
1432$('.mp-measure').keypress(function(e){if(e.which!=8&&e.which!=0&&((e.which<48&&e.which!=46&&e.which!=44)||e.which>57)){return!1}});$('#attributes select').each(function(){$(this).attr('onchange','');$(this).unbind()});$('#attributes select').bind('change',function(event){$('#wrapResetImages').show('slow');showStepResult()});$('#color_to_pick_list a').each(function(){$(this).attr('onclick','')});$('#megaproduct .mp-measure').change(function(){$('#calculePrice').hide()});$('#mpranges').css('width','500px')} 1433if($('#attributes').length>0){$('#attributes').append($('#megaattributes').html());$('#megaattributes').html('')}else{$('#megaattributes').hide()} 1434$(".customization_block").appendTo("#mpgroupcustomize");$('.megacartitem .cart_quantity_input').unbind();if($('.megacartitem .cart_quantity_input').length) 1435$('.megacartitem .cart_quantity_input').typeWatch({highlight:!0,wait:600,captureLength:0,callback:function(val){updateMegaQty(val,!0,this.el)}});if($('#megaproduct').length&&!$('#megagroups').length){$('#quantity_wanted').unbind('blur').blur(function(){showStepResult()})} 1436$('.mp-personalization input,.mp-personalization textarea,.mp-personalization select').blur(function(){showStepResult()});$('.mp-personalization select').change(function(){showStepResult()});$(".mega-qty-list").bind('keyup mouseup',function(){changeQuantityListTitleSelected($(this).data('group'));showStepResult()});$('.mpbtncheckbox').click(function(){id_group=$(this).data('group');fieldvalue=$(this).data('attr');mpgroup=getMPGroupById(id_group);field='#megafield_'+id_group+'_'+fieldvalue;if(!$(this).hasClass("selectAttr")){$(this).addClass('selectAttr');addMultiselectValues(id_group,fieldvalue)}else{$(this).removeClass('selectAttr');deleteMultiselectValues(id_group,fieldvalue)} 1437var attributes=getMultiSelectGroup(id_group,!1);changeTitleSelected(mpgroup,id_group,attributes);showStepResult()});$('.mpcheckbox').change(function(){var fieldvalue=$(this).val();var id=$(this).attr('name');var field='#megafield_'+fieldvalue;var arraySelect=fieldvalue.split('_');var arrayIds=id.split('_');mpgroup=null;id_group=arrayIds[1];mpgroup=getMPGroupById(id_group);field='#megafield_'+id_group+'_'+fieldvalue;if($(this).is(":checked")){$(field).addClass('selectAttr');if(arraySelect.length==2) 1438addMultiselectValues(arraySelect[0],arraySelect[1])}else{$(field).removeClass('selectAttr');if(arraySelect.length==2) 1439deleteMultiselectValues(arraySelect[0],arraySelect[1])} 1440var attributes=getMultiSelectGroup(id_group,!1);changeTitleSelected(mpgroup,id_group,attributes);showStepResult()});$(".resultFloat").draggable({cursor:'move',});$('.mpToggle').click(function(){var id_group=$(this).data('group');$(".filterBox_"+id_group).toggle("slow");if($(this).hasClass("closed")){$(".filterBox_"+id_group).mouseleave(function(){var id=$(this).data('group');$("#mpToggle"+id).removeClass("open").addClass("closed");$(".filterBox_"+id).hide("slow");$(this).unbind('mouseleave')});$(".mpToggle").each(function(){var id=$(this).data('group');if(id!=id_group&&!$(this).hasClass("closed")){$(this).removeClass("open").addClass("closed");$(".filterBox_"+id).toggle("slow")}});$(this).removeClass("closed").addClass("open")}else{$(this).removeClass("open").addClass("closed")}});if($('#mp-accordion').length){addMPAccordion()} 1441addQtyCombinationEvents()} 1442function goToNextAccordion(id_addgroup){if($('#accordion-'+id_addgroup).length){var applyNext=!1;$(".accordion-section").each(function(index){if($(this).attr('id')=='mp-accordion'+id_addgroup){applyNext=!0} 1443if(applyNext){if($(this).next()){var nextAccordion=$(this).next();if(!$(nextAccordion).hasClass('hideMegaField')){if($(nextAccordion).find('.accordion-section-title').length) 1444$(nextAccordion).find('.accordion-section-title').click();applyNext=!1}}}})}} 1445function close_accordion_section(){$('.accordion .accordion-section-title').removeClass('active');$('.accordion .accordion-section-content').slideUp(300).removeClass('open')} 1446function addMPAccordion(){if($('.showAccordion').length==0) 1447return!1;$('.showAccordion').each(function(){var idAccordion=$(this).data('accordion');$(this).appendTo($('#mp-accordion-'+idAccordion))});$('.accordion-section:last .mp-accordion-buttons').hide();$('.accordion-section-title').unbind().click(function(e){var currentAttrValue=$(this).attr('href');if($(e.target).is('.active')){close_accordion_section()}else{close_accordion_section();$(this).addClass('active');$('.accordion '+currentAttrValue).slideDown(300).addClass('open')} 1448e.preventDefault()});$('.accordion-section-title:first').click()} 1449function deleteUploadFile(el){var name=$(el).data('name');var group=$(el).data('group');$.ajax({url:$(el).data('url'),type:'DELETE',dataType:'json',success:function(jsonData){$(el).parents('.mpUploadFile:first').remove();var fields=$('#megafield_'+group).val();var arrayFields=fields.split('|');fields='';for(var i=0;i<arrayFields.length;i++){if(arrayFields[i]!=name){if(fields!='') 1450fields+='|';fields+=arrayFields[i]}} 1451$('#megafield_'+group).val(fields)}})} 1452function loadSingleFileUpload(){var urlfileupload=baseDir+'modules/megaproduct/upload/';$('.fileupload').fileupload({url:urlfileupload,dataType:'json',add:function(e,data){var group=$(this).attr('data-group');var uploadErrors=[];if(mpUploadTypes!=''){var type=data.originalFiles[0].name.split('.').pop();var arrayTypes=mpUploadTypes.split('|');var existType=!1;for(var k=0;k<arrayTypes.length;k++){if(arrayTypes[k]==type) 1453existType=!0} 1454if(!existType) 1455uploadErrors.push(mpFileTypeError)} 1456if(typeof mpUploadLimit!='undefined'&&mpUploadLimit!=0&&typeof data.originalFiles[0].size!='undefined'&&data.originalFiles[0].size>mpUploadLimit){uploadErrors.push(mpFileSizeError)} 1457if(uploadErrors.length>0){$('#megafieldfiles_'+group+' .mpFileUploadError').html('');$('#megafieldfiles_'+group+' .mpFileUploadError').show();$('<p/>').text(uploadErrors).appendTo($('#megafieldfiles_'+group+' .mpFileUploadError'))}else{data.submit()}},done:function(e,data){var group=$(this).attr('data-group');$('#megafieldfiles_'+group+' .mpFileUploadError').hide();
1457$('#progress'+group+' .progress-bar').css('width','0%');$('#progress'+group+' .progress-bar').html('');$('#megafield_'+group).html('');$.each(data.result.files,function(index,file){var fileExtension=file.name.replace(/^.*\./,'');if(typeof file.error!='undefined'&&file.error!=''){$('#megafieldfiles_'+group+' .mpFileUploadError').html('');$('#megafieldfiles_'+group+' .mpFileUploadError').show();$('<p/>').text(file.error).appendTo($('#megafieldfiles_'+group+' .mpFileUploadError'))}else{var boxcontent=$('<div class="mpUploadFile box">');if(file.type.indexOf("image")>-1){var img=$('<img>');img.attr('src',baseDir+'modules/megaproduct/upload/files/thumbnail/'+file.name);img.appendTo($(boxcontent));$('<p/>').text(file.name).appendTo($(boxcontent))}else{var a=$('<a>');a.attr('href',baseDir+'modules/megaproduct/upload/files/'+file.name);a.attr('title',file.name);var img=$('<img width="64">');img.attr('src',baseDir+'modules/megaproduct/img/format/'+fileExtension+'.png');img.appendTo(a);a.appendTo($(boxcontent));$('<p/>').text(file.name).appendTo($(boxcontent))} 1458$('<button onclick="deleteUploadFile(this);return false;" class="btn btn-danger delete" data-group="'+group+'" data-name="'+file.name+'" data-type="'+file.deleteType+'" data-url="'+file.deleteUrl+'" title="'+mpFileUploadDelete+'"><i class="material-icons">delete</i></button>').appendTo($(boxcontent));$(boxcontent).appendTo('#megafieldfiles_'+group);var fields=$('#megafield_'+group).val();if(fields!='') 1459fields+='|'+file.name;else fields=file.name;$('#megafield_'+group).val(fields)} 1460showStepResult()})},progressall:function(e,data){var progress=parseInt(data.loaded/data.total*100,10)-10;if(progress<0) 1461progress=0;var group=$(this).attr('data-group');$('#progress'+group+' .progress-bar').css('width',progress+'%');$('#progress'+group+' .progress-bar').html(progress+'% '+mpLoading)}}).prop('disabled',!$.support.fileInput).parent().addClass($.support.fileInput?undefined:'disabled')} 1462function moveContainerGroups(){if($('.mpmovecontainer').length){$('.mpmovecontainer').each(function(){var id_group=$(this).data('container');$(this).appendTo($('#mpcontainer'+id_group))})} 1463if($('#show-result-container.resultFloat').length){$('#show-result-container.resultFloat').append($('#megaproducterror'))}else if($('#mpimages').length){$('#mpimages').append($('#megaproducterror'))} 1464if($('#mpQtySlider').length){$('#quantity_wanted_p').addClass('mpHide');$('#quantity_wanted_p').parent().append($('#mpQtySlider'))}} 1465var tooltipposition;function set_tooltip(){var wi=$(window).width();if(wi<=600){tooltipposition={my:"left+5 top",at:"center top"}}else{tooltipposition={my:"left+15 center",at:"right center"}} 1466$('.mp-tooltip').tooltip({items:"select, .megabuttons_list .megabutton,.megacolor_list .mp_color_pick, .mpradiotooltip, .mp-measure, .megaquantity_list span, .mega_title",position:{my:"center top",at:"center bottom"},content:function(){var id_group=$(this).parents('.mp-tooltip').attr('id').substring(9);if($(this).attr('title')!='undefined'&&$(this).attr('title')!=''){$(this).attr('data-title',$(this).attr('title'))} 1467var id=0;if($(this).hasClass('mega_title')){if($('#megadescriptionlong_'+id_group).length) 1468return $('#megadescriptionlong_'+id_group).html();else return''} 1469if($(this).is('select')) 1470id=$(this).val();if($(this).is('option')) 1471id=$(this).attr('value');if($(this).hasClass('mp_color_pick')) 1472id=$(this).data('attr');var attr=$(this).attr('data-attr');if(typeof attr!==typeof undefined&&attr!==!1) 1473id=$(this).attr('data-attr');if($(this).hasClass('megabutton')||$(this).hasClass('mp_color_pick')||$(this).hasClass('mpradiotooltip')) 1474id=$(this).attr('data-attr');if(id==0){if($('#megadescriptionlong_'+id_group).length) 1475return $('#megadescriptionlong_'+id_group).html()} 1476return showTooltipHelp(id_group,id)}})} 1477function measureProportional(el){if(_MP.proportion!=0&&$(el).hasClass('mp-measure')){var measureId=$(el).attr('id');var measure=$(el).val();$('.mp-measure').each(function(){if($(this).attr('id').length){var id=$(this).attr('id');if(id!=measureId){if(id.indexOf("width")>=0){if(_MP.current_height_default!=0&&_MP.current_width_default!=0) 1478var width=_MP.current_width_default*measure/_MP.current_height_default;else var width=_MP.width_default*measure/_MP.height_default;width=Math.round(width*100)/100;$('#id_width').val(width)} 1479if(id.indexOf("height")>=0){if(_MP.current_height_default!=0&&_MP.current_width_default!=0) 1480var height=_MP.current_height_default*measure/_MP.current_width_default;else var height=_MP.height_default*measure/_MP.width_default;height=Math.round(height*100)/100;$('#id_height').val(height)} 1481if(id.indexOf("long")>=0){var long=_MP.long_default*measure/_MP.width_default;long=Math.round(long*100)/100;$('#id_long').val(long)}}}})}} 1482function showImageTooltip(image,e){$("#megazoom").css("top",(e.pageY-400)+"px").css("left",(e.pageX-500)+"px").html("<img src="+image.attr("alt")+" />").fadeIn("slow");$('#megazoom').mouseout(function(){$(this).fadeOut("fast")})} 1483function hideImageTooltip(){clearTimeout(tooltipTimeout)} 1484function openEditor(){} 1485function clone(src){function mixin(dest,source,copyFunc){var name,s,i,empty={};for(name in source){s=source[name];if(!(name in dest)||(dest[name]!==s&&(!(name in empty)||empty[name]!==s))){dest[name]=copyFunc?copyFunc(s):s}} 1486return dest} 1487if(!src||typeof src!="object"||Object.prototype.toString.call(src)==="[object Function]"){return src} 1488if(src.nodeType&&"cloneNode" in src){return src.cloneNode(!0)} 1489if(src instanceof Date){return new Date(src.getTime())} 1490if(src instanceof RegExp){return new RegExp(src)} 1491var r,i,l;if(src instanceof Array){r=[];for(i=0,l=src.length;i<l;
1491++i){if(i in src){r.push(clone(src[i]))}}}else{r=src.constructor?new src.constructor():{}} 1492return mixin(r,src,clone)} 1493function changeSelectMeasure(type){if($('#id_'+type+'_select').length){var value=$('#id_'+type+'_select').val();if(value!=0){$('#id_'+type).addClass('mpHide');$('#id_'+type).val(value);$('#id_'+type).change()}else{$('#id_'+type).val('1');$('#id_'+type).removeClass('mpHide');$('#id_'+type).change()}}} 1494function checkLimitMinQuantity(alert){var qty=parseInt($('#quantity_wanted').val());var applyQty=!1;if(typeof _MP!='undefined'&&_MP.arrayLimits.length){var ids=getSelectedIds();var applyLimit=!1;for(var i=0;i<_MP.arrayLimits.length;i++){var limit=_MP.arrayLimits[i];if(in_array(limit.id,ids)){applyQty=!0;var limitvalue=limit.value;if(limit.type=='minqty'){$('#mpQtyMinValue').html(limitvalue);$('#mpquantitymin').val(limitvalue);if(qty<limitvalue) 1495applyLimit=!0} 1496if(limit.type=='maxqty'){$('#mpQtyMaxValue').html(limitvalue);if(qty>limitvalue) 1497applyLimit=!0}}} 1498if(applyLimit&&alert){_MP.showLimits();return!1}} 1499if(!applyQty){$('#mpquantitymin').val(_MP.qty_min);if((_MP.qty_min>0&&qty<_MP.qty_min)||(qty>_MP.qty_max&&_MP.qty_max>0)){$('#mpQtyMinValue').html(_MP.qty_min);$('#mpQtyMaxValue').html(_MP.qty_max);_MP.showLimits();return!1}} 1500if(!alert) 1501assignMinQuantity();return!0} 1502function checkChangeLimits(applydefault){var ids=getSelectedIds();if(typeof _MP!='undefined'&&_MP.arrayChangeLimits.length){var applyLimit=!1;for(var i=0;i<_MP.arrayChangeLimits.length;i++){var defaultMeasure=_MP.arrayChangeLimits[i];if(in_array(defaultMeasure.id,ids)&&!applyLimit){var defaultLimits=defaultMeasure.formula.split('|');if(defaultLimits.length==2){var defaultMeasureValue=defaultLimits[0].split(new RegExp('[Xx]'));_MP.width_min=parseFloat(defaultMeasureValue[0]);$('.td-min-width').html(defaultMeasureValue[0]);_MP.height_min=parseFloat(defaultMeasureValue[1]);$('.td-min-height').html(defaultMeasureValue[1]);_MP.long_min=parseFloat(defaultMeasureValue[2]);$('.td-min-long').html(defaultMeasureValue[2]);var defaultMeasureValue=defaultLimits[1].split(new RegExp('[Xx]'));_MP.width_max=parseFloat(defaultMeasureValue[0]);$('.td-max-width').html(defaultMeasureValue[0]);_MP.height_max=parseFloat(defaultMeasureValue[1]);$('.td-max-height').html(defaultMeasureValue[1]);_MP.long_max=parseFloat(defaultMeasureValue[2]);$('.td-max-long').html(defaultMeasureValue[2]);applyLimit=!0}}} 1503if(!applyLimit){_MP.width_min=_MP.default_width_min;_MP.height_min=_MP.default_height_min;_MP.long_min=_MP.default_long_min;_MP.width_max=_MP.default_width_max;_MP.height_max=_MP.default_height_max;_MP.long_max=_MP.default_long_max} 1504$('.td-min-width').html(_MP.width_min);$('.td-min-height').html(_MP.height_min);$('.td-min-long').html(_MP.long_min);$('.td-max-width').html(_MP.width_max);$('.td-max-height').html(_MP.height_max);$('.td-max-long').html(_MP.long_max)}} 1505function checkChangeDefMeasures(applydefault){var ids=getSelectedIds();if(typeof _MP!='undefined'&&_MP.arrayChangeDefMeasures.length){var width=_MP.width_default;var height=_MP.height_default;var depth=_MP.long_default;var applyAttrMeasure=!1;for(var i=0;i<_MP.arrayChangeDefMeasures.length;i++){var defaultMeasure=_MP.arrayChangeDefMeasures[i];if(in_array(defaultMeasure.id,ids)){var defaultMeasureValue=defaultMeasure.formula.split(new RegExp('[Xx]'));width=defaultMeasureValue[0];height=defaultMeasureValue[1];if(typeof defaultMeasureValue[2]!='undefined') 1506depth=defaultMeasureValue[2];applyAttrMeasure=!0}} 1507if(applydefault||applyAttrMeasure){if($('#id_width').length) 1508$('#id_width').val(width);if($('#id_height').length) 1509$('#id_height').val(height);if($('#id_long').length) 1510$('#id_long').val(depth);if($('#id_width_select').length) 1511$('#id_width_select').val(width);if($('#id_height_select').length) 1512$('#id_height_select').val(height);if($('#id_long_select').length) 1513$('#id_long_select').val(depth);_MP.setCurrentWidthDefault(width);_MP.setCurrentHeightDefault(height);_MP.setCurrentLongDefault(depth)}}} 1514function assignMinQuantity(){if(_MP.applyMinQty==0) 1515return;var minqty=parseInt($('#mpquantitymin').val());if(minqty==0&&typeof minimalQuantity!='undefined') 1516minqty=minimalQuantity;var nan=isNaN(minqty);if(nan!=!0){if(minqty>1){if($('#id_step_quantity').length){var valqty=$('#id_step_quantity').val();if(valqty<minqty) 1517$('#id_step_quantity').val(minqty)} 1518if($('#quantity_wanted').length){var valqty=$('#quantity_wanted').val();if(valqty<minqty){$('#quantity_wanted').val(minqty);_MP.applyMinQty=0;showStepResult();_MP.applyMinQty=1}}}}} 1519function changeMultipleMinQuantity(fieldName,applyValue,defaultValue){var minqty=p
1519arseInt($('#mpquantitymin').val());var qty=1;if(typeof _MP!='undefined'&&_MP.multiple_min==1){if(minqty!=0) 1520qty=parseInt($('#mpquantitymin').val())} 1521var currentVal=parseInt($('input[name='+fieldName+']').val());quantityAvailableT=100000000;if($('#product-details').length) 1522if(!isNaN(currentVal)&¤tVal<quantityAvailableT){newval=currentVal;if(applyValue=='up') 1523newval=currentVal+qty;else if(applyValue=='down') 1524newval=currentVal-qty;else{if(currentVal%qty!=0){newval=Math.ceil(currentVal/qty)*qty}} 1525$('input[name='+fieldName+']').val(newval).trigger('keyup')}else $('input[name='+fieldName+']').val(quantityAvailableT);if(fieldName=='id_step_quantity') 1526$('#quantity_wanted').val($('input[name='+fieldName+']').val());_MP.applyMinQty=0;showStepResult();_MP.applyMinQty=1} 1527function changeMeasureQuantity(fieldName,applyValue,defaultValue){var minqty=parseFloat($('#'+fieldName).attr('min'));var maxqty=parseFloat($('#'+fieldName).attr('max'));if(minqty==0) 1528return;qty=minqty;currentVal=parseFloat($('#'+fieldName).val());quantityAvailableT=10000000;if(!isNaN(maxqty)&&maxqty!=0) 1529quantityAvailableT=maxqty;if(!isNaN(currentVal)&¤tVal<quantityAvailableT){newval=currentVal;if(applyValue=='up') 1530newval=currentVal+qty;else if(applyValue=='down') 1531newval=currentVal-qty;else{if(currentVal%qty!=0){newval=Math.ceil(currentVal/qty)*qty}} 1532if(newval<minqty) 1533newval=minqty;$('#'+fieldName).val(newval).trigger('keyup')}else $('#'+fieldName).val(quantityAvailableT);_MP.applyMinQty=0;showStepResult();_MP.applyMinQty=1} 1534function applyLimitMinQuantity(){checkChangeDefMeasures(!0);checkLimitMinQuantity(!1);$(document).on('click','.mp_quantity_up',function(e){e.preventDefault();fieldName=$(this).data('field-qty');changeMultipleMinQuantity(fieldName,'up',0)});$(document).on('click','.mp_quantity_down',function(e){e.preventDefault();fieldName=$(this).data('field-qty');changeMultipleMinQuantity(fieldName,'down',0)});$(document).on('click','.mp_measure_up',function(e){e.preventDefault();fieldName=$(this).data('field-qty');changeMeasureQuantity(fieldName,'up',0)});$(document).on('click','.mp_measure_down',function(e){e.preventDefault();fieldName=$(this).data('field-qty');changeMeasureQuantity(fieldName,'down',0)})} 1535function getMPTitleById(mpgroup,id){var id_addgroup=mpgroup.id_addgroup;var title='';if(mpgroup.show=='0'){title=$('#megagroups #megafield_'+id_addgroup+' option[value="'+id+'"]').html()}else if(mpgroup.show=='4'&&mpgroup.multiselect=='0'){title=$('#megagroups input:radio[name=megafield_'+id_addgroup+']:checked').attr('title')}else if(mpgroup.show=='4'&&mpgroup.multiselect=='1'){title=$('[for=mpcheckbox_'+id_addgroup+'_'+id+']').text()}else{var megafield=getMegaField(mpgroup,id_addgroup,id);if($(megafield).attr('title')!="undefined"&&$(megafield).attr('title')!='') 1536title=$(megafield).attr('title');else if($(megafield).attr('data-title')!="undefined"&&$(megafield).attr('data-title')!='') 1537title=$(megafield).attr('data-title');else if($(megafield).html()!='') 1538title=$(megafield).html()} 1539if(typeof title=='undefined') 1540title='';return title} 1541function resetGroupsByUrl(urlcode){if(urlcode=='') 1542urlcode=getParameterByName('mpurl');if(urlcode!=''){var arrayGroups=urlcode.split('/');if(arrayGroups.length>1){for(var i=1;i<arrayGroups.length;i++){id_addgroup=0;var group=arrayGroups[i].split('-');if(group.length>0){id_addgroup=parseInt(group[0])} 1543if(group.length>2){for(var j=2;j<group.length;j=j+2){id=parseInt(group[j]);if(typeof id!='undefined'&&!isNaN(id)){var megagroup=getMPGroupById(id_addgroup);selectRuleOptions(megagroup,id)}}}}}} 1544resetUrlMeasures()} 1545function resetUrlMeasures(){var width=getParameterByName('width');if(typeof width!='undefined'&&width!=''){if($('#id_step_width').length) 1546$('#id_step_width').val(width);if($('#id_width_select').length) 1547$('#id_width_select').val(width);$('#id_width').val(width)} 1548var height=getParameterByName('height');if(typeof height!='undefined'&&height!=''){if($('#id_step_height').length) 1549$('#id_step_height').val(height);if($('#id_height_select').length) 1550$('#id_height_select').val(height);$('#id_height').val(height)} 1551var long=getParameterByName('long');if(typeof long!='undefined'&&long!=''){if($('#id_step_long').length) 1552$('#id_step_long').val(long);if($('#id_long_select').length) 1553$('#id_long_select').val(long);$('#id_long').val(long)} 1554var mpquantity=getParameterByName('mpquantity');if(typeof mpquantity!='undefined'&&mpquantity!=''){addMPQuantity(mpquantity)}} 1555function getParameterByName(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)"),results=regex.exec(location.search);return results===null?"":decodeURIComponent(results[1].replace(/\+/g," "))} 1556function updateQueryStringParam(key,value){baseUrl=[location.protocol,'//',location.host,location.pathname].join('');urlQueryString=document.location.search;var newParam=key+'='+value,params='?'+newParam;if(urlQueryString){keyRegex=new RegExp('([\?&])'+key+'[^&]*');if(urlQueryString.match(keyRegex)!==null){params=urlQueryString.replace(keyRegex,"$1"+newParam)}else{params=urlQueryString+'&'+newParam}} 1557window.history.replaceState({},"",baseUrl+params)} 1558function changeFilterMPUrlStatus(){if(typeof _MP!='undefined'&&_MP.urls==0) 1559return;var arrayUrl='';var arrayValues='';if(typeof megaGroups!='undefined'&&megaGroups.length>0){for(i=0;i<megaGroups.length;i++){if(typeof megaGroups[i]!='undefined'){var group=megaGroups[i];var id_addgroup=group.id_addgroup;arrayUrl+='/'+id_addgroup;var searchStr="-";var replaceStr="";var re=new RegExp(searchStr,"g");if($('#megagroup'+id_addgroup).find('.mega_title').length){var gt=$('#megagroup'+id_addgroup).find('.mega_title').html();gt=gt.replace(':','');gt=gt.replace(' ','_');arrayUrl+='-'+encodeURI(gt.toLowerCase())} 1560if(typeof group.selections!='undefined'&&group.selections.length){for(var j=0;j<mpgroup.selections.length;j++){var id=mpgroup.selections[j];
1560var selectTitle=getMPTitleById(group,id);selectTitle=selectTitle.toLowerCase();selectTitle=selectTitle.replace(' ','_');selectTitle=selectTitle.replace(re,replaceStr);arrayUrl+='-'+id+'-'+encodeURIComponent(selectTitle)}}else if(typeof group.selected!='undefined'&&group.selected>0){var id=group.selected;var selectTitle=getMPTitleById(group,id);if(typeof selectTitle=='undefined') 1561selectTitle='';if(selectTitle!=''){selectTitle=selectTitle.trim().toLowerCase();selectTitle=selectTitle.replace('\n','');selectTitle=selectTitle.replace(' ','_');selectTitle=selectTitle.replace(re,replaceStr)} 1562arrayUrl+='-'+group.selected+'-'+encodeURIComponent(selectTitle)}}}} 1563if(arrayUrl.length){updateQueryStringParam('mpurl',arrayUrl)} 1564if($('#id_width').length&&$('#id_width').val()!=''){updateQueryStringParam('width',$('#id_width').val())} 1565if($('#id_height').length&&$('#id_height').val()!=''){updateQueryStringParam('height',$('#id_height').val())} 1566if($('#id_long').length&&$('#id_long').val()!=''){updateQueryStringParam('long',$('#id_long').val())} 1567if($('#quantity_wanted').length&&$('#quantity_wanted').val()!=''){updateQueryStringParam('mpquantity',$('#quantity_wanted').val())}} 1568function loadRangeInputs(){if($('.mpslider').length){$('.mpslider').slider({value:$('#quantity_wanted').val(),min:_MP.qty_min,max:_MP.qty_max,step:_MP.qty_step,stop:function(event,ui){addMPQuantity(ui.value);showStepResult()}})}} 1569function addMPQuantity(qty){if($('#id_step_quantity').length) 1570$('#id_step_quantity').val(qty);if($('#id_step_quantity_range').length) 1571$('#id_step_quantity_range').html(qty);$('#quantity_wanted').val(qty);updateSlider(qty)} 1572function updateSlider(qty){if($('.mpslider').length) 1573$(".mpslider").slider('value',qty)} 1574function addQtyCombinationEvents(){$('.megacomplement_list .mega-comb-qty-list,.megacomplement_list .mega-comb-select-list, .megacomplement_list .mega-comb-qty-table').change(function(){var baseEle=$(this).parents('.mpclistproduct:first');getMPCombination(baseEle)})} 1575function selectMegaproductListColor(el){$(el).parent('ul').find('li').removeClass('selected');$(el).addClass('selected');var baseEle=$(el).parents('.mpclistproduct:first');getMPCombination(baseEle)} 1576function getMegaroductListPrice(el){var baseEle=$(el).parents('.mpclistproduct:first');getMPCombination(baseEle)} 1577function getMPCombination(baseEle){var attrs=new Array();var groups=$(baseEle).find('.mp-attributes').find('.mp-fieldset select, .mp-fieldset .selected');$.each(groups,function(i,option){if($(this).val()!='') 1578attrs.push(parseInt($(this).val()));else if($(this).hasClass('selected')){attrs.push(parseInt($(this).attr('data-attr')))}});var id_product=$(baseEle).data('product');var qtysend=0;if($(baseEle).find('.mega-comb-qty-list').length) 1579qtysend=$(baseEle).find('.mega-comb-qty-list').val();var dataajax='action=getCombination&qty='+qtysend+'&id_product='+id_product;if(attrs.length){dataajax+='&attrs='+attrs.toString()}else dataajax+='&attrs=';$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!0,cache:!1,dataType:"json",data:dataajax,success:function(jsonData){if(jsonData){if(jsonData.quantity){if($(baseEle).find('.mp-product-stock').length){$(baseEle).find('.mp-product-stock').html(jsonData.quantity)}} 1580if(jsonData.id_product_attribute&&qtysend>0){$(baseEle).attr('data-combination',jsonData.id_product_attribute)} 1581if(jsonData.pricetext){$(baseEle).find('.mega-product-price').html(jsonData.pricetext)}} 1582showStepResult()}});return!1} 1583function openUrlProduct(el){var url=$(el).prev().find('option:selected').data('url');if(typeof url!='undefined'&&url!='') 1584window.open(url,'_blank')} 1585function in_array(id,ids){if(typeof ids!='object') 1586return!1;var length=ids.length;for(var i=0;i<length;i++){if(ids[i]==id)return!0} 1587return!1} 1588$(document).ready(function(){if($('.js-cart-line-megaproduct-measure').length) 1589$('.js-cart-line-megaproduct-measure').blur(function(){var id_megacart=$(this).data('mega-id');var measure=$(this).data('measure');var value=$(this).val();changeCheckoutMeasure(this,id_megacart,measure,value)})});function applyGroupValue(id_addgroup){if($('#megagroup'+id_addgroup).hasClass('hideMegaField')) 1590return!1;if($('#megagroup'+id_addgroup).hasClass('hideMegaFieldCategory')) 1591return!1;return!0} 1592function changeCheckoutMeasure(el,id_megacart,measure,value){$('.mp-checkout-error').remove();$.ajax({type:'POST',url:baseDir+'index.php?fc=module&module=megaproduct&controller=ajaxmegaproduct',async:!1,cache:!1,dataType:"json",data:'action=changemeasures&id_megacart='+id_megacart+'&'+measure+'='+value,success:function(jsonData,textStatus,jqXHR){if(jsonData.success==1) 1593prestashop.emit('updateCart',{reason:{idProduct:jsonData.id_product,idProductAttribute:jsonData.id_product_attribute,},resp:jsonData});else if(typeof jsonData.error!='undefined'&&jsonData.error!='') 1594$('<div style="padding:2px;margin-left:-5px" class="alert alert-danger mp-checkout-error">
1594'+jsonData.error+'</div>').insertBefore($(el))}})};function getIdCombination(){if($('#idCombination').length) 1595return parseInt($('#idCombination').val());var data=$('#product-details').data('product');if(typeof data!="undefined") 1596return data.id_product_attribute;return 0} 1597function getIdProduct(){var id_product=0;if($('#product_page_product_id').length){id_product=$('#product_page_product_id').val()}else if($('[name="id_product"]').length){id_product=$('[name="id_product"]').val()}else if($('#product-details').length){var data=$('#product-details').data('product');id_product=data.id_product}else{id_product=$('#main').data('id_product')} 1598return id_product} 1599function goMPToSample(){var url=$('#btnMPSample').data('url');var id_product=0;id_product=getIdProduct();sendgroups='';$('.megacolor_list li').each(function(){var item=$(this).attr('alt');if(sendgroups==''){sendgroups='&attrIds='+item}else{sendgroups+='-'+item}});location.href=url+'?sampleproduct='+id_product+sendgroups} 1600function resetAttributesBySample(){urlreset=getParameterByName('sampleproduct');if(urlreset!=''){var sampleproduct=parseInt(urlreset);var attributes=getParameterByName('attrIds');if($('.customproduct').length){$('.customproduct').find('input').val(sampleproduct)} 1601if(attributes&&attributes!=''){var arrayAttributes=attributes.split('-');var idSelected=0;$('.megacolor_list li').each(function(){var id=$(this).attr('alt');if(!in_array(id,arrayAttributes)) 1602$(this).remove();else idSelected=id});if(idSelected!=0) 1603$('.mp_color_pick:first').click()}}} 1604function calculeMPBorders(){if(!$('#mp-panel-border').length) 1605return;var borderMeasures=['width','height','long'];for(var key in borderMeasures){measure=borderMeasures[key];if($('#mp_border_'+measure).length){if($('#id_'+measure+'_select').length&&$('#id_'+measure+'_select').val()!=0){$('#mp_border_'+measure).prop("disabled",!0)}else{$('#mp_border_'+measure).prop("disabled",!1)} 1606var border=parseFloat($('#mp_border_'+measure).data('border'));var totalmeasure=parseFloat(getMeasure(measure));if(!isNaN(totalmeasure)&&totalmeasure>=0){totalmeasure+=border;$('#mp_border_'+measure).val(totalmeasure)}}}} 1607function changeMPBorders(){if(!$('#mp-panel-border').length) 1608return;var borderMeasures=['width','height','long'];for(var key in borderMeasures){measure=borderMeasures[key];if($('#mp_border_'+measure).length){var border=parseFloat($('#mp_border_'+measure).data('border'));var totalmeasure=parseFloat($('#mp_border_'+measure).val());if(totalmeasure!=0){totalmeasure-=border;if(totalmeasure>=0) 1609$('#id_'+measure).val(totalmeasure);else $('#id_'+measure).val(0)}}}} 1610var oldLamas=0;var lamasWidthPx=30;var factorLamasPx=0.3;function applyLamasByMeasures(){var lamas=6;if(typeof _MP.arrayLamas!='undefined'&&_MP.arrayLamas.length){var ids=getSelectedIds();for(var i=0;i<_MP.arrayLamas.length;i++){if(in_array(_MP.arrayLamas[i].id,ids)){widthLamas=_MP.arrayLamas[i].measure;lamasWidthPx=widthLamas/factorLamasPx}}} 1611if(typeof widthLamas!='undefined'&&widthLamas!=0) 1612lamas=parseInt(getMeasure('width')/widthLamas);else return;if(oldLamas!=lamas) 1613oldLamas=lamas;else return;$('#mp-ul-lamas').html('');for(var i=0;i<lamas;i++){var j=i+1;$('#mp-ul-lamas').append('<li data-attr="0"><span class="lamas-number">'+j+'</span><span class="lamas-click">Click Aqui</span></li')} 1614var withDiv=lamas*(lamasWidthPx+5);$('#mp-ul-lamas').css('width',withDiv+'px');$('#mp-ul-lamas li').css('width',lamasWidthPx+'px');applyEventLamas()} 1615function applyStartLamas(){var witdLamas=$("#megagroups").width();witdLamas-=100;$('#mp-lamas-container').css('width',witdLamas);applyEventLamas()} 1616function applyEventLamas(){$('.lamas-click').click(function(){$(this).parent().click()});$('#mp-ul-lamas li').click(function(){var color=$(this).parents('.mpstep:first').find('.selectAttr').data('color');$(this).css('background',color);$(this).attr('data-color',color);if($(this).parents('.mpstep:first').find('.selectAttr img').length){var imgUrl=$(this).parents('.mpstep:first').find('.selectAttr img').attr('src');imgUrl=imgUrl.replace('-thumb','');imgUrl="url('"+imgUrl+"')";$(this).css('background-image',imgUrl);$(this).css('background-size','cover')} 1617var attr=$(this).parents('.mpstep:first').find('.selectAttr').data('attr');$(this).attr('data-attr',attr)});$('.mp-lamas-previous').click(function(){var leftPos=$('#mp-lamas-container').scrollLeft();$("#mp-lamas-container").animate({scrollLeft:leftPos-200},40)});$('.mp-lamas-next').click(function(){var leftPos=$('#mp-lamas-container').scrollLeft();$("#mp-lamas-container").animate({scrollLeft:leftPos+200},40)})} 1618function cleanLamas(){$('#mp-ul-lamas li').css('background','none');$('#mp-ul-lamas li').attr('data-attr',0)} 1619function listAttrLamas(){var datalamas='';var i=1;var hasError=!1;$('#mp-ul-lamas li').each(function(){if($(this).attr('data-attr')==0){hasError=!0}else{if(datalamas!='') 1620datalamas+='|';datalamas+=i+'-'+$(this).attr('data-attr')+'-'+$(this).attr('data-color')} 1621i++});if(hasError) 1622return!1;return'&extracontent='+$('#mp-ul-lamas').attr('data-group')+'|'+datalamas} 1623$(document).ready(function(){$('#botonSiguiente').addClass('only');$('#mpStepNext, #mpStepPrevious').click(function(){setTimeout(function(){if($('#mpStepPrevious').css('display')=='none'){console.log('add');$('#botonSiguiente').addClass('only')}else{console.log('remove');$('#botonSiguiente').removeClass('only')}},1)})});jQuery.fn.print=function(){if(this.size()>1){this.eq(0).print();return}else if(!this.size()){return} 1624var strFrameName=("printer-"+(new Date()).getTime());var jFrame=$("<iframe name='"+strFrameName+"'>");jFrame.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first"));var objFrame=window.frames[strFrameName];var objDoc=objFrame.document;var jStyleDiv=$("<div>").append($("style").clone());objDoc.open();objDoc.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");objDoc.write("<html>");objDoc.write("<body>");objDoc.write("<head>");objDoc.write("<title>");objDoc.write(document.title);objDoc.write("</title>");objDoc.write(jStyleDiv.html());objDoc.write("</head>");objDoc.write(this.html());objDoc.write("</body>");objDoc.write("</html>");objDoc.close();objFrame.focus();objFrame.print();setTimeout(function(){jFrame.remove()},(60*1000))};(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery','jquery.ui.widget'],factory)}else if(typeof exports==='object'){factory(require('jquery'),require('./vendor/jquery.ui.widget'))}else{factory(window.jQuery)}}(function($){'use strict';$.support.fileInput=!(new RegExp('(Android (1\\.[0156]|2\\.[01]))'+'|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)'+'|(w(eb)?OSBrowser)|(webOS)'+'|(Kindle/(1\\.0|2\\.[05]|3\\.0))').test(window.navigator.userAgent)||$('<input type="file">').prop('disabled'));$.support.xhrFileUpload=!!(window.ProgressEvent&&window.FileReader);$.support.xhrFormDataFileUpload=!!window.FormData;$.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);function getDragHandler(type){var isDragOver=type==='dragover';return function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var dataTransfer=e.dataTransfer;if(dataTransfer&&$.inArray('Files',dataTransfer.types)!==-1&&this._trigger(type,$.Event(type,{delegatedEvent:e}))!==!1){e.preventDefault();if(isDragOver){dataTransfer.dropEffect='copy'}}}} 1625$.widget('blueimp.fileupload',{options:{dropZone:$(document),pasteZone:undefined,fileInput:undefined,replaceFileInput:!0,paramName:undefined,singleFileUploads:!0,limitMultiFileUploads:undefined,limitMultiFileUploadSize:undefined,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:undefined,forceIframeTransport:!1,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:!0,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:'Uploaded bytes exceed file size'},i18n:function(message,context){message=this.messages[message]||message.toString();if(context){$.each(context,function(key,value){message=message.replace('{'+key+'}',value)})} 1626return message},formData:function(form){return form.serializeArray()},add:function(e,data){if(e.isDefaultPrevented()){return!1}
1627if(data.autoUpload||(data.autoUpload!==!1&&$(this).fileupload('option','autoUpload'))){data.process().done(function(){data.submit()})}},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:['fileInput','dropZone','pasteZone','multipart','forceIframeTransport'],_blobSlice:$.support.blobSlice&&function(){var slice=this.slice||this.webkitSlice||this.mozSlice;return slice.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=((Date.now)?Date.now():(new Date()).getTime());this.loaded=0;this.bitrate=0;this.getBitrate=function(now,loaded,interval){var timeDiff=now-this.timestamp;if(!this.bitrate||!interval||timeDiff>interval){this.bitrate=(loaded-this.loaded)*(1000/timeDiff)*8;this.loaded=loaded;this.timestamp=now} 1628return this.bitrate}},_isXHRUpload:function(options){return!options.forceIframeTransport&&((!options.multipart&&$.support.xhrFileUpload)||$.support.xhrFormDataFileUpload)},_getFormData:function(options){var formData;if($.type(options.formData)==='function'){return options.formData(options.form)} 1629if($.isArray(options.formData)){return options.formData} 1630if($.type(options.formData)==='object'){formData=[];$.each(options.formData,function(name,value){formData.push({name:name,value:value})});return formData} 1631return[]},_getTotal:function(files){var total=0;$.each(files,function(index,file){total+=file.size||1});return total},_initProgressObject:function(obj){var progress={loaded:0,total:0,bitrate:0};if(obj._progress){$.extend(obj._progress,progress)}else{obj._progress=progress}},_initResponseObject:function(obj){var prop;if(obj._response){for(prop in obj._response){if(obj._response.hasOwnProperty(prop)){delete obj._response[prop]}}}else{obj._response={}}},_onProgress:function(e,data){if(e.lengthComputable){var now=((Date.now)?Date.now():(new Date()).getTime()),loaded;if(data._time&&data.progressInterval&&(now-data._time<data.progressInterval)&&e.loaded!==e.total){return} 1632data._time=now;loaded=Math.floor(e.loaded/e.total*(data.chunkSize||data._progress.total))+(data.uploadedBytes||0);this._progress.loaded+=(loaded-data._progress.loaded);this._progress.bitrate=this._bitrateTimer.getBitrate(now,this._progress.loaded,data.bitrateInterval);data._progress.loaded=data.loaded=loaded;data._progress.bitrate=data.bitrate=data._bitrateTimer.getBitrate(now,loaded,data.bitrateInterval);this._trigger('progress',$.Event('progress',{delegatedEvent:e}),data);this._trigger('progressall',$.Event('progressall',{delegatedEvent:e}),this._progress)}},_initProgressListener:function(options){var that=this,xhr=options.xhr?options.xhr():$.ajaxSettings.xhr();if(xhr.upload){$(xhr.upload).bind('progress',function(e){var oe=e.originalEvent;e.lengthComputable=oe.lengthComputable;e.loaded=oe.loaded;e.total=oe.total;that._onProgress(e,options)});options.xhr=function(){return xhr}}},_isInstanceOf:function(type,obj){return Object.prototype.toString.call(obj)==='[object '+type+']'},_initXHRData:function(options){var that=this,formData,file=options.files[0],multipart=options.multipart||!$.supp
1632ort.xhrFileUpload,paramName=$.type(options.paramName)==='array'?options.paramName[0]:options.paramName;options.headers=$.extend({},options.headers);if(options.contentRange){options.headers['Content-Range']=options.contentRange} 1633if(!multipart||options.blob||!this._isInstanceOf('File',file)){options.headers['Content-Disposition']='attachment; filename="'+encodeURI(file.name)+'"'} 1634if(!multipart){options.contentType=file.type||'application/octet-stream';options.data=options.blob||file}else if($.support.xhrFormDataFileUpload){if(options.postMessage){formData=this._getFormData(options);if(options.blob){formData.push({name:paramName,value:options.blob})}else{$.each(options.files,function(index,file){formData.push({name:($.type(options.paramName)==='array'&&options.paramName[index])||paramName,value:file})})}}else{if(that._isInstanceOf('FormData',options.formData)){formData=options.formData}else{formData=new FormData();$.each(this._getFormData(options),function(index,field){formData.append(field.name,field.value)})} 1635if(options.blob){formData.append(paramName,options.blob,file.name)}else{$.each(options.files,function(index,file){if(that._isInstanceOf('File',file)||that._isInstanceOf('Blob',file)){formData.append(($.type(options.paramName)==='array'&&options.paramName[index])||paramName,file,file.uploadName||file.name)}})}} 1636options.data=formData} 1637options.blob=null},_initIframeSettings:function(options){var targetHost=$('<a></a>').prop('href',options.url).prop('host');options.dataType='iframe '+(options.dataType||'');options.formData=this._getFormData(options);if(options.redirect&&targetHost&&targetHost!==location.host){options.formData.push({name:options.redirectParamName||'redirect',value:options.redirect})}},_initDataSettings:function(options){if(this._isXHRUpload(options)){if(!this._chunkedUpload(options,!0)){if(!options.data){this._initXHRData(options)} 1638this._initProgressListener(options)} 1639if(options.postMessage){options.dataType='postmessage '+(options.dataType||'')}}else{this._initIframeSettings(options)}},_getParamName:function(options){var fileInput=$(options.fileInput),paramName=options.paramName;if(!paramName){paramName=[];fileInput.each(function(){var input=$(this),name=input.prop('name')||'files[]',i=(input.prop('files')||[1]).length;while(i){paramName.push(name);i-=1}});if(!paramName.length){paramName=[fileInput.prop('name')||'files[]']}}else if(!$.isArray(paramName)){paramName=[paramName]} 1640return paramName},_initFormSettings:function(options){if(!options.form||!options.form.length){options.form=$(options.fileInput.prop('form'));if(!options.form.length){options.form=$(this.options.fileInput.prop('form'))}} 1641options.paramName=this._getParamName(options);if(!options.url){options.url=options.form.prop('action')||location.href} 1642options.type=(options.type||($.type(options.form.prop('method'))==='string'&&options.form.prop('method'))||'').toUpperCase();if(options.type!=='POST'&&options.type!=='PUT'&&options.type!=='PATCH'){options.type='POST'} 1643if(!options.formAcceptCharset){options.formAcceptCharset=options.form.attr('accept-charset')}},_getAJAXSettings:function(data){var options=$.extend({},this.options,data);this._initFormSettings(options);this._initDataSettings(options);return options},_getDeferredState:function(deferred){if(deferred.state){return deferred.state()} 1644if(deferred.isResolved()){return'resolved'} 1645if(deferred.isRejected()){return'rejected'} 1646return'pending'},_enhancePromise:function(promise){promise.success=promise.done;promise.error=promise.fail;promise.complete=promise.always;return promise},_getXHRPromise:function(resolveOrReject,context,args){var dfd=$.Deferred(),promise=dfd.promise();context=context||this.options.context||promise;if(resolveOrReject===!0){dfd.resolveWith(context,args)}else if(resolveOrReject===!1){dfd.rejectWith(context,args)} 1647promise.abort=dfd.promise;return this._enhancePromise(promise)},_addConvenienceMethods:function(e,data){var that=this,getPromise=function(args){return $.Deferred().resolveWith(that,args).promise()};data.process=function(resolveFunc,rejectFunc){if(resolveFunc||rejectFunc){data._processQueue=this._processQueue=(this._processQueue||getPromise([this])).then(function(){if(data.errorThrown){return $.Deferred().rejectWith(that,[data]).promise()} 1648return getPromise(arguments)}).then(resolveFunc,rejectFunc)} 1649return this._processQueue||getPromise([this])};data.submit=function(){if(this.state()!=='pending'){data.jqXHR=this.jqXHR=(that._trigger('submit',$.Event('submit',{delegatedEvent:e}),this)!==!1)&&that._onSend(e,this)} 1650return this.jqXHR||that._getXHRPromise()};data.abort=function(){if(this.jqXHR){return this.jqXHR.abort()} 1651this.errorThrown='abort';that._trigger('fail',null,this);return that._getXHRPromise(!1)};data.state=function(){if(this.jqXHR){return that._getDeferredState(this.jqXHR)} 1652if(this._processQueue){return that._getDeferredState(this._processQueue)}};data.processing=function(){return!this.jqXHR&&this._processQueue&&that._getDeferredState(this._processQueue)==='pending'};data.progress=function(){return this._progress};data.response=function(){return this._response}},_getUploadedBytes:function(jqXHR){var range=jqXHR.getResponseHeader('Range'),parts=range&&range.split('-'),upperBytesPos=parts&&parts.length>1&&parseInt(parts[1],10);return upperBytesPos&&upperBytesPos+1},_chunkedUpload:function(options,testOnly){options.uploadedBytes=options.uploadedBytes||0;var that=this,file=options.files[0],fs=file.size,ub=options.uploadedBytes,mcs=options.maxChunkSize||fs,slice=this._blobSlice,dfd=$.Deferred(),promise=dfd.promise(),jqXHR,upload;if(!(this._isXHRUpload(options)&&slice&&(ub||mcs<fs))||options.data){return!1} 1653if(testOnly){return!0} 1654if(ub>=fs){file.error=options.i18n('uploadedBytes');return this._getXHRPromise(!1,options.context,[null,'error',file.error])} 1655upload=function(){var o=$.extend({},options),currentLoaded=o._progress.loaded;o.blob=slice.call(file,ub,ub+mcs,file.type);o.chunkSize=o.blob.size;o.contentRange='bytes '+ub+'-'+(ub+o.chunkSize-1)+'/'+fs;that._initXHRData(o);that._initProgressListener(o);
1655jqXHR=((that._trigger('chunksend',null,o)!==!1&&$.ajax(o))||that._getXHRPromise(!1,o.context)).done(function(result,textStatus,jqXHR){ub=that._getUploadedBytes(jqXHR)||(ub+o.chunkSize);if(currentLoaded+o.chunkSize-o._progress.loaded){that._onProgress($.Event('progress',{lengthComputable:!0,loaded:ub-o.uploadedBytes,total:ub-o.uploadedBytes}),o)} 1656options.uploadedBytes=o.uploadedBytes=ub;o.result=result;o.textStatus=textStatus;o.jqXHR=jqXHR;that._trigger('chunkdone',null,o);that._trigger('chunkalways',null,o);if(ub<fs){upload()}else{dfd.resolveWith(o.context,[result,textStatus,jqXHR])}}).fail(function(jqXHR,textStatus,errorThrown){o.jqXHR=jqXHR;o.textStatus=textStatus;o.errorThrown=errorThrown;that._trigger('chunkfail',null,o);that._trigger('chunkalways',null,o);dfd.rejectWith(o.context,[jqXHR,textStatus,errorThrown])})};this._enhancePromise(promise);promise.abort=function(){return jqXHR.abort()};upload();return promise},_beforeSend:function(e,data){if(this._active===0){this._trigger('start');this._bitrateTimer=new this._BitrateTimer();this._progress.loaded=this._progress.total=0;this._progress.bitrate=0} 1657this._initResponseObject(data);this._initProgressObject(data);data._progress.loaded=data.loaded=data.uploadedBytes||0;data._progress.total=data.total=this._getTotal(data.files)||1;data._progress.bitrate=data.bitrate=0;this._active+=1;this._progress.loaded+=data.loaded;this._progress.total+=data.total},_onDone:function(result,textStatus,jqXHR,options){var total=options._progress.total,response=options._response;if(options._progress.loaded<total){this._onProgress($.Event('progress',{lengthComputable:!0,loaded:total,total:total}),options)} 1658response.result=options.result=result;response.textStatus=options.textStatus=textStatus;response.jqXHR=options.jqXHR=jqXHR;this._trigger('done',null,options)},_onFail:function(jqXHR,textStatus,errorThrown,options){var response=options._response;if(options.recalculateProgress){this._progress.loaded-=options._progress.loaded;this._progress.total-=options._progress.total} 1659response.jqXHR=options.jqXHR=jqXHR;response.textStatus=options.textStatus=textStatus;response.errorThrown=options.errorThrown=errorThrown;this._trigger('fail',null,options)},_onAlways:function(jqXHRorResult,textStatus,jqXHRorError,options){this._trigger('always',null,options)},_onSend:function(e,data){if(!data.submit){this._addConvenienceMethods(e,data)} 1660var that=this,jqXHR,aborted,slot,pipe,options=that._getAJAXSettings(data),send=function(){that._sending+=1;options._bitrateTimer=new that._BitrateTimer();jqXHR=jqXHR||(((aborted||that._trigger('send',$.Event('send',{delegatedEvent:e}),options)===!1)&&that._getXHRPromise(!1,options.context,aborted))||that._chunkedUpload(options)||$.ajax(options)).done(function(result,textStatus,jqXHR){that._onDone(result,textStatus,jqXHR,options)}).fail(function(jqXHR,textStatus,errorThrown){that._onFail(jqXHR,textStatus,errorThrown,options)}).always(function(jqXHRorResult,textStatus,jqXHRorError){that._onAlways(jqXHRorResult,textStatus,jqXHRorError,options);that._sending-=1;that._active-=1;if(options.limitConcurrentUploads&&options.limitConcurrentUploads>that._sending){var nextSlot=that._slots.shift();while(nextSlot){if(that._getDeferredState(nextSlot)==='pending'){nextSlot.resolve();break} 1661nextSlot=that._slots.shift()}} 1662if(that._active===0){that._trigger('stop')}});return jqXHR};this._beforeSend(e,options);if(this.options.sequentialUploads||(this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending)){if(this.options.limitConcurrentUploads>1){slot=$.Deferred();this._slots.push(slot);pipe=slot.then(send)}else{this._sequence=this._sequence.then(send,send);pipe=this._sequence} 1663pipe.abort=function(){aborted=[undefined,'abort','abort'];if(!jqXHR){if(slot){slot.rejectWith(options.context,aborted)} 1664return send()} 1665return jqXHR.abort()};return this._enhancePromise(pipe)} 1666return send()},_onAdd:function(e,data){var that=this,result=!0,options=$.extend({},this.options,data),files=data.files,filesLength=files.length,limit=options.limitMultiFileUploads,limitSize=options.limitMultiFileUploadSize,overhead=options.limitMultiFileUploadSizeOverhead,batchSize=0,paramName=this._getParamName(options),paramNameSet,paramNameSlice,fileSet,i,j=0;if(!filesLength){return!1} 1667if(limitSize&&files[0].size===undefined){limitSize=undefined} 1668if(!(options.singleFileUploads||limit||limitSize)||!this._isXHRUpload(options)){fileSet=[files];
1668paramNameSet=[paramName]}else if(!(options.singleFileUploads||limitSize)&&limit){fileSet=[];paramNameSet=[];for(i=0;i<filesLength;i+=limit){fileSet.push(files.slice(i,i+limit));paramNameSlice=paramName.slice(i,i+limit);if(!paramNameSlice.length){paramNameSlice=paramName} 1669paramNameSet.push(paramNameSlice)}}else if(!options.singleFileUploads&&limitSize){fileSet=[];paramNameSet=[];for(i=0;i<filesLength;i=i+1){batchSize+=files[i].size+overhead;if(i+1===filesLength||((batchSize+files[i+1].size+overhead)>limitSize)||(limit&&i+1-j>=limit)){fileSet.push(files.slice(j,i+1));paramNameSlice=paramName.slice(j,i+1);if(!paramNameSlice.length){paramNameSlice=paramName} 1670paramNameSet.push(paramNameSlice);j=i+1;batchSize=0}}}else{paramNameSet=paramName} 1671data.originalFiles=files;$.each(fileSet||files,function(index,element){var newData=$.extend({},data);newData.files=fileSet?element:[element];newData.paramName=paramNameSet[index];that._initResponseObject(newData);that._initProgressObject(newData);that._addConvenienceMethods(e,newData);result=that._trigger('add',$.Event('add',{delegatedEvent:e}),newData);return result});return result},_replaceFileInput:function(data){var input=data.fileInput,inputClone=input.clone(!0),restoreFocus=input.is(document.activeElement);data.fileInputClone=inputClone;$('<form></form>').append(inputClone)[0].reset();input.after(inputClone).detach();if(restoreFocus){inputClone.focus()} 1672$.cleanData(input.unbind('remove'));this.options.fileInput=this.options.fileInput.map(function(i,el){if(el===input[0]){return inputClone[0]} 1673return el});if(input[0]===this.element[0]){this.element=inputClone}},_handleFileTreeEntry:function(entry,path){var that=this,dfd=$.Deferred(),errorHandler=function(e){if(e&&!e.entry){e.entry=entry} 1674dfd.resolve([e])},successHandler=function(entries){that._handleFileTreeEntries(entries,path+entry.name+'/').done(function(files){dfd.resolve(files)}).fail(errorHandler)},readEntries=function(){dirReader.readEntries(function(results){if(!results.length){successHandler(entries)}else{entries=entries.concat(results);readEntries()}},errorHandler)},dirReader,entries=[];path=path||'';if(entry.isFile){if(entry._file){entry._file.relativePath=path;dfd.resolve(entry._file)}else{entry.file(function(file){file.relativePath=path;dfd.resolve(file)},errorHandler)}}else if(entry.isDirectory){dirReader=entry.createReader();readEntries()}else{dfd.resolve([])} 1675return dfd.promise()},_handleFileTreeEntries:function(entries,path){var that=this;return $.when.apply($,$.map(entries,function(entry){return that._handleFileTreeEntry(entry,path)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(dataTransfer){dataTransfer=dataTransfer||{};var items=dataTransfer.items;if(items&&items.length&&(items[0].webkitGetAsEntry||items[0].getAsEntry)){return this._handleFileTreeEntries($.map(items,function(item){var entry;if(item.webkitGetAsEntry){entry=item.webkitGetAsEntry();if(entry){entry._file=item.getAsFile()} 1676return entry} 1677return item.getAsEntry()}))} 1678return $.Deferred().resolve($.makeArray(dataTransfer.files)).promise()},_getSingleFileInputFiles:function(fileInput){fileInput=$(fileInput);var entries=fileInput.prop('webkitEntries')||fileInput.prop('entries'),files,value;if(entries&&entries.length){return this._handleFileTreeEntries(entries)} 1679files=$.makeArray(fileInput.prop('files'));if(!files.length){value=fileInput.prop('value');if(!value){return $.Deferred().resolve([]).promise()} 1680files=[{name:value.replace(/^.*\\/,'')}]}else if(files[0].name===undefined&&files[0].fileName){$.each(files,function(index,file){file.name=file.fileName;file.size=file.fileSize})} 1681return $.Deferred().resolve(files).promise()},_getFileInputFiles:function(fileInput){if(!(fileInput instanceof $)||fileInput.length===1){return this._getSingleFileInputFiles(fileInput)} 1682return $.when.apply($,$.map(fileInput,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(e){var that=this,data={fileInput:$(e.target),form:$(e.target.form)};this._getFileInputFiles(data.fileInput).always(function(files){data.files=files;if(that.options.replaceFileInput){that._replaceFileInput(data)} 1683if(that._trigger('change',$.Event('change',{delegatedEvent:e}),data)!==!1){that._onAdd(e,data)}})},_onPaste:function(e){var items=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,data={files:[]};if(items&&items.length){$.each(items,function(index,item){var file=item.getAsFile&&item.getAsFile();if(file){data.files.push(file)}});if(this._trigger('paste',$.Event('paste',{delegatedEvent:e}),data)!==!1){this._onAdd(e,data)}}},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var that=this,dataTransfer=e.dataTransfer,data={};if(dataTransfer&&dataTransfer.files&&dataTransfer.files.length){e.preventDefault();this._getDroppedFiles(dataTransfer).always(function(files){data.files=files;if(that._trigger('drop',$.Event('drop',{delegatedEvent:e}),data)!==!1){that._onAdd(e,data)}})}},_onDragOver:getDragHandler('dragover'),_onDragEnter:getDragHandler('dragenter'),_onDragLeave:getDragHandler('dragleave'),_initEventHandlers:function(){if(this._isXHRUpload(this.options)){this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave});this._on(this.options.pasteZone,{paste:this._onPaste})}
1684if($.support.fileInput){this._on(this.options.fileInput,{change:this._onChange})}},_destroyEventHandlers:function(){this._off(this.options.dropZone,'dragenter dragleave dragover drop');this._off(this.options.pasteZone,'paste');this._off(this.options.fileInput,'change')},_setOption:function(key,value){var reinit=$.inArray(key,this._specialOptions)!==-1;if(reinit){this._destroyEventHandlers()} 1685this._super(key,value);if(reinit){this._initSpecialOptions();this._initEventHandlers()}},_initSpecialOptions:function(){var options=this.options;if(options.fileInput===undefined){options.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]')}else if(!(options.fileInput instanceof $)){options.fileInput=$(options.fileInput)} 1686if(!(options.dropZone instanceof $)){options.dropZone=$(options.dropZone)} 1687if(!(options.pasteZone instanceof $)){options.pasteZone=$(options.pasteZone)}},_getRegExp:function(str){var parts=str.split('/'),modifiers=parts.pop();parts.shift();return new RegExp(parts.join('/'),modifiers)},_isRegExpOption:function(key,value){return key!=='url'&&$.type(value)==='string'&&/^\/.*\/[igm]{0,3}$/.test(value)},_initDataAttributes:function(){var that=this,options=this.options,data=this.element.data();$.each(this.element[0].attributes,function(index,attr){var key=attr.name.toLowerCase(),value;if(/^data-/.test(key)){key=key.slice(5).replace(/-[a-z]/g,function(str){return str.charAt(1).toUpperCase()});value=data[key];if(that._isRegExpOption(key,value)){value=that._getRegExp(value)} 1688options[key]=value}})},_create:function(){this._initDataAttributes();this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(!0);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(data){var that=this;if(!data||this.options.disabled){return} 1689if(data.fileInput&&!data.files){this._getFileInputFiles(data.fileInput).always(function(files){data.files=files;that._onAdd(null,data)})}else{data.files=$.makeArray(data.files);this._onAdd(null,data)}},send:function(data){if(data&&!this.options.disabled){if(data.fileInput&&!data.files){var that=this,dfd=$.Deferred(),promise=dfd.promise(),jqXHR,aborted;promise.abort=function(){aborted=!0;if(jqXHR){return jqXHR.abort()} 1690dfd.reject(null,'abort','abort');return promise};this._getFileInputFiles(data.fileInput).always(function(files){if(aborted){return} 1691if(!files.length){dfd.reject();return} 1692data.files=files;jqXHR=that._onSend(null,data);jqXHR.then(function(result,textStatus,jqXHR){dfd.resolve(result,textStatus,jqXHR)},function(jqXHR,textStatus,errorThrown){dfd.reject(jqXHR,textStatus,errorThrown)})});return this._enhancePromise(promise)} 1693data.files=$.makeArray(data.files);if(data.files.length){return this._onSend(null,data)}} 1694return this._getXHRPromise(!1,data&&data.context)}})}));if(prestashop.page.page_name=="module-supercheckout-supercheckout"){$('#supercheckout_confirm_order').click(function(){console.log('click') 1695if(!$('#shipping-method ul li.highlight:first-child input').is(':checked')){console.log('noclick') 1696$('#shipping-method ul li.highlight:first-child').css('border','2px solid red').after('<span class="errorsmall">Campo requerido</span>')}});$('#shipping-method ul li.highlight:first-child .radio').click(function(){console.log('click remover');$('#shipping-method ul li.highlight:first-child').css('border','none');$('#shipping-method .errorsmall').delete()});$('#shipping_method_update_warning').hide();setTimeout(function(){$('#shipping-method ul li.highlight:first-child input').click();if($("html").is(':lang(pt)')){$('#mensaje-canarias-p').text("Se a encomenda for feita a partir das Ilhas Canárias, contacte-nos para finalizar os custos de envio e finalizar a sua encomenda.")}},1500)} 1697jQuery(document).ready(function($){if(prestashop.page.page_name=="category"){var arrayCatNoPresu=[14,121,112,113,114,36,35,38,37,29,33,28,31,42,137,40,41,115,110,16];var aplicarCambio=arrayCatNoPresu.some(cat=>$('body').hasClass('category-id-'+cat));if(aplicarCambio){$('.products-grid .product-price').each(function(){var content=$(this).attr('content');if(content){var formattedPrice=Math.floor(parseFloat(content));
1697var priceWithThousands=formattedPrice.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".");$(this).text(priceWithThousands+' €')}})}} 1698if($('body').hasClass('category-id-121')){setTimeout(function(){if($(location).attr('href')=="https://vestatex.es/liner-piscina/#ie-a972e3ac-ptab-1"||$(location).attr('href')=="https://vestatex.es/pt/liner-piscina/#ie-a972e3ac-ptab-1"){$('.catlinertab .nav-item:nth-child(1) a').click();console.log("click");return}else if($(location).attr('href')=="https://vestatex.es/liner-piscina/#ie-a972e3ac-ptab-2"||$(location).attr('href')=="https://vestatex.es/pt/liner-piscina/#ie-a972e3ac-ptab-2"){$('.catlinertab .nav-item:nth-child(2) a').click();console.log("click");return} 1699console.log("NOENTRO")},1500);$('#cbp-hrmenu-tab-51 .cbp-menu-element:nth-child(1) a').click(function(){$('.catlinertab .nav-item:nth-child(1) a').click()});$('#cbp-hrmenu-tab-51 .cbp-menu-element:nth-child(2) a').click(function(){$('.catlinertab .nav-item:nth-child(2) a').click()})} 1700$(".tiempoEstimadoInfo").click(function(){$(".tiempoEstimadoAclaracion").show(0).delay(3000).hide(0)});$(".menu-element-id-5, .menu-element-id-7").on("click",function(){$(".nav-item:nth-child(1)>a").removeClass("active");$(".nav-item:nth-child(2)>a").addClass("active");$(".nav-item:nth-child(3)>a").removeClass("active");$(".tab-pane:nth-child(1)").removeClass("active");$(".tab-pane:nth-child(2)").addClass("active");$(".tab-pane:nth-child(3)").removeClass("active")});$(".menu-element-id-6, .menu-element-id-8").on("click",function(){$(".nav-item:nth-child(1)>a").removeClass("active");$(".nav-item:nth-child(2)>a").removeClass("active");$(".nav-item:nth-child(3)>a").addClass("active");$(".tab-pane:nth-child(1)").removeClass("active");$(".tab-pane:nth-child(2)").removeClass("active");$(".tab-pane:nth-child(3)").addClass("active")});var UrlAccesoriosTabs=$(location).attr('href');if(UrlAccesoriosTabs=="https://vestatex.es/accesorios/#ie-63a9d771-ptab-2"){$(".nav-item:nth-child(1)>a").removeClass("active");$(".nav-item:nth-child(2)>a").addClass("active");$(".nav-item:nth-child(3)>a").removeClass("active");$(".tab-pane:nth-child(1)").removeClass("active");$(".tab-pane:nth-child(2)").addClass("active");$(".tab-pane:nth-child(3)").removeClass("active")}else if(UrlAccesoriosTabs=="https://vestatex.es/accesorios/#ie-63a9d771-ptab-3"){$(".nav-item:nth-child(1)>a").removeClass("active");$(".nav-item:nth-child(2)>a").removeClass("active");$(".nav-item:nth-child(3)>a").addClass("active");$(".tab-pane:nth-child(1)").removeClass("active");$(".tab-pane:nth-child(2)").removeClass("active");$(".tab-pane:nth-child(3)").addClass("active")} 1701$(".lonastermicasestandar").attr("id","estandar");$(".lonastermicasamedida").attr("id","amedida");$(".btn_scroll-lonas-termicas a").on("click",function(e){e.preventDefault();var headerlonas;if($(window).width()>991){headerlonas=$('#header').height()}else if($(window).width()<991){headerlonas="52"} 1702const href=$(this).attr("href");var offsetScroll=$(href).offset().top-headerlonas;$("html, body").animate({'scrollTop':offsetScroll},800)});function cambioTexto(){const $active=$('#phrase .txt__barraSup');const $texts=$('#phrase [id^="txt"]');const currentIndex=$texts.index($active);const nextIndex=(currentIndex+1)%$texts.length;const $next=$texts.eq(nextIndex);$active.hide().removeClass('txt__barraSup').css('opacity','0');$next.show().addClass('txt__barraSup').animate({opacity:'1'},1000)} 1703setInterval(function(){cambioTexto()},5000);$(".on-sale").text("OFERTA");if($(window).width()>991){$('#tel-home').html('<a href="mailto:[email protected]" title="Contactar vÃÂa Correo"><img src="/img/cms/rediseño_2023/imagenes_home/email-icon-3.png" alt="Email" width="22" height="18" /></a>   <a href="https://api.whatsapp.com/send/?phone=%2B34621201248&text&type=phone_number&app_absent=0" title="Contactar vÃÂa WhatsApp"><img src="/img/cms/rediseño_2023/imagenes_home/whatsapp-icon-3.png" alt="Contactar vÃÂa WhatsApp" width="20" height="19" /></a><a id="tel-home-pc" href="tel:+34621201248" rel="noreferrer" title="Contactar vÃÂa Teléfono">+34 621 201 248</a>');$('#tel-home-mvl').remove()}else if($(window).width()<991){$('#tel-home').html('<a style="top:3px;" href="mailto:[email protected]" title="Contactar vÃÂa Correo"><img src="/img/cms/rediseño_2023/imagenes_home/email-icon-3.png" alt="Email" width="22" height="18" /></a>   <a style="position:relative;top:3px;
1703" href="https://api.whatsapp.com/send/?phone=%2B34621201248&text&type=phone_number&app_absent=0" title="Contactar vÃÂa WhatsApp"><img src="/img/cms/rediseño_2023/imagenes_home/whatsapp-icon-3.png" alt="Contactar vÃÂa WhatsApp" width="20" height="19" /></a><a id="tel-home-mvl" style="position:relative;top:3px;" href="tel:+34621201248" rel="noreferrer" title="Contactar vÃÂa Teléfono"><img src="/img/cms/rediseño_2023/imagenes_home/phone-icon.png" alt="Contactar vÃÂa Teléfono"/></a>');$('#tel-home-pc').remove()} 1704$(".widget-visible").css("z-index","2 !important");$(".widget-visible").find("span").text("Chant");if(prestashop.page.page_name=="cms"){$('.page-title').css("display","none")} 1705if(prestashop.page.page_name=="product"){if(typeof $(".btn_modal_pc_ficha-tecnica a").data('toggle')=='undefined'){$('.btn_modal_pc_ficha-tecnica a').attr("data-toggle","modal");console.log('Toggle añadido')} 1706if(typeof $('.btn_modal_pc_ficha-tecnica a').data("target")=='undefined'){$('.btn_modal_pc_ficha-tecnica a').attr("data-target","#modalFichaTecnica");console.log('Target añadido')} 1707if(typeof $('.modal-content button').data("data-dismiss")=='undefined'){$('.modal-content button').attr("data-dismiss","modal");console.log('Dismiss añadido')} 1708if($('body').hasClass('product-id-37')||$('body').hasClass('product-id-38')||$('body').hasClass('product-id-39')||$('body').hasClass('product-id-29')||$('body').hasClass('product-id-31')||$('body').hasClass('product-id-296')||$('body').hasClass('product-id-23')||$('body').hasClass('product-id-24')||$('body').hasClass('product-id-25')||$('body').hasClass('product-id-26')){$('#mp-step-height #id_height').on('keyup',function(){$('#preciom2').hide()})} 1709var btnManual=$('.btn_modal_pc_ficha-tecnica');var btnManualSup=$('.btn_modal_pc_ficha-tecnica_sup');
1709if($(window).width()>991){if(btnManual.length>0){btnManualSup.show()}else{btnManualSup.hide();console.log('No tiene MANUAL')}}else if($(window).width()<991){btnManualSup.hide()};$("#btnEnviarPresu").css("display","none");if($('body').hasClass('product-id-458')||$('body').hasClass('product-id-461')||$('body').hasClass('product-id-93')||$('body').hasClass('product-id-462')||$('body').hasClass('product-id-460')||$('body').hasClass('product-id-336')||$('body').hasClass('product-id-463')||$('body').hasClass('product-id-464')||$('body').hasClass('product-id-524')||$('body').hasClass('product-id-523')||$('body').hasClass('product-id-465')||$('body').hasClass('product-id-525')||$('body').hasClass('product-id-466')||$('body').hasClass('product-id-467')||$('body').hasClass('product-id-545')||$('body').hasClass('product-id-527')||$('body').hasClass('product-id-544')||$('body').hasClass('product-id-543')||$('body').hasClass('product-id-394')||$('body').hasClass('product-id-520')||$('body').hasClass('product-id-476')||$('body').hasClass('product-id-475')||$('body').hasClass('product-id-478')||$('body').hasClass('product-id-521')||$('body').hasClass('product-id-518')||$('body').hasClass('product-id-519')||$('body').hasClass('product-id-477')||$('body').hasClass('product-id-473')||$('body').hasClass('product-id-474')||$('body').hasClass('product-id-531')||$('body').hasClass('product-id-124')||$('body').hasClass('product-id-532')||$('body').hasClass('product-id-469')||$('body').hasClass('product-id-472')||$('body').hasClass('product-id-470')||$('body').hasClass('product-id-529')||$('body').hasClass('product-id-471')||$('body').hasClass('product-id-105')||$('body').hasClass('product-id-370')||$('body').hasClass('product-id-153')||$('body').hasClass('product-id-155')||$('body').hasClass('product-id-536')||$('body').hasClass('product-id-534')||$('body').hasClass('product-id-542')||$('body').hasClass('product-id-136')||$('body').hasClass('product-id-132')||$('body').hasClass('product-id-274')||$('body').hasClass('product-id-280')||$('body').hasClass('product-id-282')||$('body').hasClass('product-id-283')||$('body').hasClass('product-id-284')||$('body').hasClass('product-id-415')||$('body').hasClass('product-id-426')){setTimeout(function(){$('scalapay-widget').hide();$('#aplazme-widg').hide()},2000)} 1710if($('body').hasClass('product-id-category-11')||$('body').hasClass('product-id-category-12')||$('body').hasClass('product-id-category-13')){if(!$('.hipotenusa-a').hasClass('hideMegaField')||!$('.hipotenusa-b').hasClass('hideMegaField')){var medidaA=$('#id_width');var medidaB=$('#id_height');var medidaC=$('.medidaC .mp-personalization input');var hipotenusaA=$('.hipotenusa-a .mp-personalization input');var hipotenusaB=$('.hipotenusa-b .mp-personalization input');$(hipotenusaA).prop('disabled',!0);$(hipotenusaB).prop('disabled',!0)} 1711$(medidaA).on('keyup',function(){medidaHipotenusa()});$(medidaC).on('keyup',function(){medidaHipotenusa()});$(medidaB).on('keyup',function(){medidaHipotenusa()});function medidaHipotenusa(){medidaA=parseFloat($('#id_width').val())||0;medidaB=parseFloat($('#id_height').val())||0;medidaC=parseFloat($('.medidaC .mp-personalization input').val())||0;$(hipotenusaA).prop('value',Math.hypot(medidaC,medidaB).toFixed(2));$(hipotenusaB).prop('value',Math.hypot(medidaA,medidaB).toFixed(2))}} 1712if($('body').hasClass('product-id-672')||$('body').hasClass('product-id-673')||$('body').hasClass('product-id-674')||$('body').hasClass('product-id-37')||$('body').hasClass('product-id-593')||$('body').hasClass('product-id-38')||$('body').hasClass('product-id-39')||$('body').hasClass('product-id-40')||$('body').hasClass('product-id-298')||$('body').hasClass('product-id-1175')||$('body').hasClass('product-id-677')||$('body').hasClass('product-id-678')||$('body').hasClass('product-id-569')){var allA=$('#id_width');var allB=$('#id_height');var allC=$('.medidaC .mp-personalization input');var allD=$('.medidaD .mp-personalization input');var extraPerim;var allTodos;if($('body').hasClass('product-id-672')){extraPerim=.3} 1713if($('body').hasClass('product-id-673')){extraPerim=.5} 1714if($('body').hasClass('product-id-674')||$('body').hasClass('product-id-37')||$('body').hasClass('product-id-593')||$('body').hasClass('product-id-38')||$('body').hasClass('product-id-39')||$('body').hasClass('product-id-40')||$('body').hasClass('product-id-298')||$('body').hasClass('product-id-1175')||$('body').hasClass('product-id-677')||$('body').hasClass('product-id-678')||$('body').hasClass('product-id-569')){extraPerim=0} 1715$(allA).on('keyup',function(){allinoneMedidas()});$(allB).on('keyup',function(){allinoneMedidas()});$(allC).on('keyup',function(){allinoneMedidas()});$(allD).on('keyup',function(){allinoneMedidas()});function allinoneMedidas(){allA=parseFloat($('#id_width').val())||0;allB=parseFloat($('#id_height').val())||0;allC=parseFloat($('.medidaC .mp-personalization input').val())||0;allD=parseFloat($('.medidaD .mp-personalization input').val())||0;if($('.medidaC').hasClass('hideMegaField')&&$('.medidaD').hasClass('hideMegaField')){if(allA!=""||allB!=""){$('#contenedorMedCobertor').show();$('#contenedorMedCobertor2').show();allA=(allA)+(extraPerim);allB=(allB)+(extraPerim);console.log('A: '+allA);console.log('B: '+allB);allTodos=(allA*allB).toFixed(2);console.log('TODOS: '+allTodos);$('#medCobertor').text(allTodos+'m2');$('#medCobertor2').text(allTodos+'m2')}else{$('#contenedorMedCobertor').hide();$('#contenedorMedCobertor2').hide()}}else{if(allA!=""||allB!=""||allC!=""||allD!=""){$('#contenedorMedCobertor').show();$('#contenedorMedCobertor2').show();allA=(allA)+(extraPerim);allB=(allB)+(extraPerim);allC=(allC)+(extraPerim);allD=(allD)+(extraPerim);console.log('A: '+allA);console.log('B: '+allB);console.log('C: '+allC);console.log('D: '+allD);if($('.formasPiscina li[alt="155"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="156"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="157"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="161"] .mp_color_pick').hasClass('selectAttr')){allTodos=((allA*allC)+((allB-allC)*allD)).toFixed(2)}else if($('.formasPiscina li[alt="158"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="159"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="160"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="162"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="163"] .mp_color_pick').hasClass('selectAttr')){allTodos=((allB*allC
1715)+((allA-allC)*allD)).toFixed(2)}else if($('.formasPiscina li[alt="153"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="165"] .mp_color_pick').hasClass('selectAttr')||$('.formasPiscina li[alt="154"] .mp_color_pick').hasClass('selectAttr')){allTodos=(allA*allB).toFixed(2)} 1716console.log('TODOS: '+allTodos);$('#medCobertor').text(allTodos+'m2');$('#medCobertor2').text(allTodos+'m2')}else{$('#contenedorMedCobertor').hide();$('#contenedorMedCobertor2').hide()}}}}} 1717if(prestashop.page.page_name=="cart"){var codePromo=$('#code-promo-txt').text();$('#modal-promo .close-promo>span').click(function(){$('#modal-promo').fadeOut(500)});$('#btn-popup-index>span').click(function(){$('#promo-code .form-control').val(codePromo);if($('body').hasClass('lang-es')){$('#promo-code').append('<div id="promo-code-text-alert"><span>*Haz clic en "añadir" para aplicar dto.</span></div>')}else{$('#promo-code').append('<div id="promo-code-text-alert"><span>*Clique em "adicionar" para aplicar o desconto.</span></div>')};setTimeout(function(){$('#modal-promo').fadeOut(500)},500)});$('#promo-code button').click(function(){$('#promo-code-text-alert').delete()})} 1718if($("html:lang(es)").length>0){$('#header-user-btn .dropdown-item:nth-child(2)').html('<i class="fa fa-tags fa-fw" aria-hidden="true"></i> Tus Cupones');if(prestashop.page.page_name=="cart"){$("#blockcart-content > div.cart-title > span").text("Mi carrito");$("#blockcart-content > div.cart-buttons.text-center > a.btn.btn-secondary.btn-block").text("Mi carrito");$("#cart-subtotal-shipping > span.label").text("EnvÃÂo*")}} 1719if($("html:lang(pt)").length>0){$('#header-user-btn .dropdown-item:nth-child(2)').html('<i class="fa fa-tags fa-fw" aria-hidden="true"></i> Os seus cupões');$("#cbp-hrmenu-tab-32").css("display","none");$("#cbp-hrmenu-tab-41 > div > div > div > div > div.col-3.cbp-menu-column.cbp-menu-element.menu-element-id-5").css("display","none");if(prestashop.page.page_name=="cart"){$("#main > p").text("Antes de comprar, verifique se todos os detalhes, quantidades e preços estão correctos:");$("#main > p").text("Deve verificar se todos os detalhes da encomenda estão correctos antes de verificar e fazer a sua encomenda. Por favor, verifique cuidadosamente:");$("#cart-subtotal-shipping > span.label").text("Transporte");$("#main > div > div.cart-grid-right.col-12.col-lg-4 > div.card.cart-summary > div.cart-detailed-totals > div.block-promo > div > div > h3").text("Adicione o seu código de desconto!");$("#main > div > div.cart-grid-right.col-12.col-lg-4 > div.card.cart-summary > div:nth-child(2) > table > tbody > tr:nth-child(1) > th:nth-child(2) > p").text("Cartão");$("#main > div > div.cart-grid-right.col-12.col-lg-4 > div.card.cart-summary > div:nth-child(2) > h3").text("Pode pagar com:");$("#main > div > div.cart-grid-right.col-12.col-lg-4 > div.card.cart-summary > div:nth-child(6) > table > tbody > tr > th:nth-child(2)").text("*Através da Espanha (excepto Ceuta, Melilla, Ilhas Canárias e Baleares.")}} 1720if($("#index").length>0){$("blockquote").first().remove()} 1721$("#main > div > div.cart-grid-body.col-12.col-lg-8 > section > h4 > span").text("Puedes completar tu compra")});function contactoMaximizar(){_lbContact.initCTM({'inv_maximize':0})} 1722document.addEventListener('DOMContentLoaded',function(){const ROOT_SEL='#checkoutShippingAddress';const FIELD_NAME='custom_fields[field_1]';const HIDDEN_ID='sc_custom_field_1_hidden';function getRoot(){return document.querySelector(ROOT_SEL)} 1723function getCheckoutForm(root){return root.closest('form')||document.querySelector('form')||root} 1724function isExistingAddressMode(root){const shippingNew=root.querySelector('#shipping-new');if(!shippingNew)return!1;return window.getComputedStyle(shippingNew).display==='none'} 1725function computeAutoSecondSurname(root){const lastNameInput=root.querySelector('input[name="shipping_address[lastname]"]');const last=(lastNameInput&&lastNameInput.value?lastNameInput.value:'').trim();if(!last)return'No informado';const parts=last.split(/\s+/);if(parts.length>=2)return parts.slice(1).join(' ');return last} 1726function ensureHiddenCustomField(){const root=getRoot();if(!root)return;const form=getCheckoutForm(root);const realInput=root.querySelector(`input[name="${FIELD_NAME}"]`);const hidden=form.querySelector(`#${HIDDEN_ID}`);if(isExistingAddressMode(root)){let h=hidden;if(!h){h=document.createElement('input');h.type='hidden';h.name=FIELD_NAME;h.id=HIDDEN_ID;form.appendChild(h)} 1727const typed=(realInput&&realInput.value?realInput.value:'').trim();const value=typed||computeAutoSecondSurname(root);h.value=value;if(realInput)realInput.value=value}else{if(hidden)hidden.remove()}} 1728function moveSegundoApellido(){const root=getRoot();if(!root)return!1;const customBlock=root.querySelector('.div_custom_fields .supercheckout-blocks.form-group');if(!customBlock)return!1;const addressInput=root.querySelector('input[name="shipping_address[address1]"]');if(!addressInput)return!1;const addressSort=addressInput.closest('.sort_data');if(!addressSort)return!1;const customInput=customBlock.querySelector(`input[name="${FIELD_NAME}"]`);const customLabel=customBlock.querySelector('label');if(customInput&&!customInput.id)customInput.id='shipping_custom_field_1';if(customLabel){customLabel.classList.add('control-label');if(customInput)customLabel.setAttribute('for',customInput.id)} 1729const addressGroup=addressInput.closest('.form-group');if(!addressGroup)return!1;let row=addressSort.querySelector(':scope > .row.sc-two-cols');let col1,col2;if(!row){row=document.createElement('div');row.className='row sc-two-cols';col1=document.createElement('div');col1.className='col-sm-6';col2=document.createElement('div');col2.className='col-sm-6';col1.appendChild(customBlock);col2.appendChild(addressGroup);row.appendChild(col1);row.appendChild(col2);addressSort.insertBefore(row,addressSort.firstChild)}else{col1=row.querySelector(':scope > .col-sm-6:nth-child(1)');col2=row.querySelector(':scope > .col-sm-6:nth-child(2)');if(!col1||!col2)return!1;if(!col1.contains(customBlock))col1.insertBefore(customBlock,col1.firstChild);if(!col2.contains(addressGroup))col2.appendChild(addressGroup)} 1730return!0} 1731function syncAll(){moveSegundoApellido();ensureHiddenCustomField()} 1732syncAll();setTimeout(syncAll,250);setTimeout(syncAll,1000);const rootEl=getRoot();if(rootEl){rootEl.addEventListener('change',syncAll);const observer=new MutationObserver(syncAll);observer.observe(rootEl,{childList:!0,subtree:!0,attributes:!0})}});document.addEventListener('DOMContentLoaded',function(){const ROOT_SEL='#checkoutBillingAddress';const FIELD_NAME='custom_fields[field_2]';const HIDDEN_ID='sc_custom_field_2_hidden';function getRoot(){return document.querySelector(ROOT_SEL)} 1733function getCheckoutForm(root){return root.closest('form')||document.querySelector('form')||root} 1734function isExistingAddressMode(root){const paymentNew=root.querySelector('#payment-new');if(!paymentNew)return!1;return window.getComputedStyle(paymentNew).display==='none'} 1735function computeAutoSecondSurname(root){const lastNameInput=root.querySelector('input[name="payment_address[lastname]"]');const last=(lastNameInput&&lastNameInput.value?lastNameInput.value:'').trim();if(!last)return'';const parts=last.split(/\s+/);if(parts.length>=2)return parts.slice(1).join(' ');return last} 1736function ensureHiddenCustomField(){const root=getRoot();if(!root)return;const form=getCheckoutForm(root);const realInput=root.querySelector(`input[name="${FIELD_NAME}"]`);const hidden=form.querySelector(`#${HIDDEN_ID}`);if(isExistingAddressMode(root)){let h=hidden;if(!h){h=document.createElement('input');h.type='hidden';h.name=FIELD_NAME;h.id=HIDDEN_ID;form.appendChild(h)} 1737const typed=(realInput&&realInput.value?realInput.value:'').trim();const value=typed||computeAutoSecondSurname(root);h.value=value;if(realInput)realInput.value=value}else{if(hidden)hidden.remove()}} 1738function moveSegundoApellido(){const root=getRoot();if(!root)return!1;const customBlock=root.querySelector('.div_custom_fields .supercheckout-blocks.form-group');if(!customBlock)return!1;const addressInput=root.querySelector('input[name="payment_address[address1]"]');if(!addressInput)return!1;const addressSort=addressInput.closest('.sort_data');if(!addressSort)return!1;const customInput=customBlock.querySelector(`input[name="${FIELD_NAME}"]`);const customLabel=customBlock.querySelector('label');if(customInput&&!customInput.id)customInput.id='payment_custom_field_2';if(customLabel){customLabel.classList.add('control-label');if(customInput)customLabel.setAttribute('for',customInput.id)} 1739const addressGroup=addressInput.closest('.form-group');if(!addressGroup)return!1;let row=addressSort.querySelector(':scope > .row.sc-two-cols');let col1,col2;if(!row){row=document.createElement('div');row.className='row sc-two-cols';col1=document.createElement('div');col1.className='col-sm-6';col2=document.createElement('div');col2.className='col-sm-6';col1.appendChild(customBlock);col2.appendChild(addressGroup);row.appendChild(col1);row.appendChild(col2);addressSort.insertBefore(row,addressSort.firstChild)}else{col1=row.querySelector(':scope > .col-sm-6:nth-child(1)');col2=row.querySelector(':scope > .col-sm-6:nth-child(2)');if(!col1||!col2)return!1;if(!col1.contains(customBlock))col1.insertBefore(customBlock,col1.firstChild);if(!col2.contains(addressGroup))col2.appendChild(addressGroup)} 1740return!0} 1741function syncAll(){moveSegundoApellido();ensureHiddenCustomField()} 1742syncAll();setTimeout(syncAll,250);setTimeout(syncAll,1000);const rootEl=getRoot();if(rootEl){rootEl.addEventListener('change',syncAll);const observer=new MutationObserver(syncAll);observer.observe(rootEl,{childList:!0,subtree:!0,attributes:!0})}});document.addEventListener('DOMContentLoaded',function(){const SHIPPING_FIELD_NAME='custom_fields[field_1]';const BILLING_FIELD_NAME='custom_fields[field_2]';const BILLING_HIDDEN_ID='sc_custom_field_2_hidden';function syncShippingToBilling(){const shippingInput=document.querySelector(`input[name="${SHIPPING_FIELD_NAME}"]`);const billingInput=document.querySelector(`input[name="${BILLING_FIELD_NAME}"]`);const billingHidden=document.querySelector(`#${BILLING_HIDDEN_ID}`);if(shippingInput){const val=shippingInput.value;if(billingInput&&billingInput.value!==val){billingInput.value=val} 1743if(billingHidden&&billingHidden.value!==val){billingHidden.value=val}}} 1744document.body.addEventListener('input',function(e){if(e.target&&e.target.name===SHIPPING_FIELD_NAME){syncShippingToBilling()}});document.body.addEventListener('change',function(e){if(e.target&&(e.target.type==='checkbox'||e.target.type==='radio')){setTimeout(syncShippingToBilling,200)}});setTimeout(syncShippingToBilling,500);setTimeout(syncShippingToBilling,2000)});document.addEventListener('DOMContentLoaded',function(){const paginasValidas=['module-supercheckout-supercheckout','authentication'];if(!paginasValidas.includes(document.body.id)){return} 1745document.addEventListener('focusout',function(e){console.log('entro');if(e.target&&e.target.tagName==='INPUT'&&e.target.type==='text'){const nombreCampo=e.target.name||'';const esCampoObjetivo=nombreCampo.includes('firstname')||nombreCampo.includes('lastname')||nombreCampo.includes('company')||nombreCampo.includes('address1')||nombreCampo.includes('address2')||nombreCampo.includes('city')||nombreCampo.includes('field_1')||nombreCampo.includes('field_2');if(esCampoObjetivo){e.target.value=e.target.value.trim().toUpperCase()}}})});document.addEventListener("DOMContentLoaded",function(){const style=document.createElement('style');style.innerHTML=` 1746 [paypal-button-container], 1747 [paypal-bnpl-button-container] { 1748 position: relative !important; 1749 display: block !important; 1750 width: 100% !important; 1751 height: 60px !important; /* <-- Ajusta esto si el botón azul de la nueva web es más alto/bajo */ 1752 max-height: 60px !important; 1753 overflow: hidden !important; 1754 margin-bottom: 10px !important; 1755 margin-top: 10px !important; 1756 } 1757 1758 [paypal-button-container] iframe.component-frame, 1759 [paypal-bnpl-button-container] iframe.component-frame { 1760 height: 46px !important; 1761 min-height: 46px !important; 1762 } 1763 1764 [paypal-button-container] [id^="zoid-paypal-buttons-uid_"], 1765 [paypal-bnpl-button-container] [id^="zoid-paypal-buttons-uid_"] { 1766 height: 46px !important; 1767 min-height: 46px !important; 1768 width: 100% !important; 1769 } 1770 1771 .custom-pp-overlay { 1772 position: absolute !important; 1773 top: 0 !important; 1774 left: 0 !important; 1775 width: 100% !important; 1776 height: 100% !important; 1777 background-color: #1282a2 !important; 1778 color: #F9F9F9 !important; 1779 display: flex !important; 1780 align-items: center !important; 1781 justify-content: center !important; 1782 font-size: 24px !important; 1783 font-weight: 700 !important; 1784 letter-spacing: 1px !important; 1785 text-transform: uppercase !important; 1786 /* font-family: inherit !important; */ 1787 line-height: 1.5 !important; 1788 padding: 10px 20px !important; 1789 border: 1px solid #6AC7E4 !important; 1790 border-radius: 4px !important; 1791 box-sizing: border-box !important; 1792 z-index: 9999 !important; 1793 pointer-events: none !important; 1794 cursor: pointer !important; 1795 border-bottom: 3px solid #6AC7E4 !important; 1796 } 1797 1798 [paypal-ec-wrong-button-message], 1799 [paypal-wrong-button-message] { 1800 display: none !important; 1801 } 1802 1803 #supercheckout_confirm_order.pp-hidden-by-overlay { 1804 display: none !important; 1805 } 1806 1807 [paypal-button-container].pp-duplicate-hidden, 1808 [paypal-bnpl-button-container].pp-duplicate-hidden { 1809 display: none !important; 1810 } 1811 `;document.head.appendChild(style);const NATIVE_BUTTON_SELECTOR='#supercheckout_confirm_order';const PLACE_ORDER_WRAPPER_SELECTOR='#buttonWithProgres';const PAYPAL_TARGETS=[{inputSelector:'input[data-module-name="paypal"]',containerSelector:'[payp
1811al-button-container]',overlayText:'Realizar pedido',hideNativeButton:!0},{inputSelector:'input[data-module-name="paypal_bnpl"]',containerSelector:'[paypal-bnpl-button-container]',overlayText:'Realizar pedido',hideNativeButton:!0}];function relocateContainer(container){const placeOrderWrapper=document.querySelector(PLACE_ORDER_WRAPPER_SELECTOR);if(!placeOrderWrapper)return;if(container.parentElement===placeOrderWrapper)return;container.setAttribute('data-pp-relocated','true');placeOrderWrapper.appendChild(container)} 1812function setNativeButtonHidden(hidden){const native=document.querySelector(NATIVE_BUTTON_SELECTOR);if(!native)return;if(hidden){native.classList.add('pp-hidden-by-overlay')}else{native.classList.remove('pp-hidden-by-overlay')}} 1813setInterval(()=>{let activeTarget=null;for(const target of PAYPAL_TARGETS){const input=document.querySelector(target.inputSelector);if(input&&input.checked){activeTarget=target;break}} 1814if(activeTarget&&activeTarget.hideNativeButton){setNativeButtonHidden(!0)}else{setNativeButtonHidden(!1)} 1815PAYPAL_TARGETS.forEach(target=>{const isActive=activeTarget===target;const allContainers=Array.from(document.querySelectorAll(target.containerSelector));if(!isActive){allContainers.forEach(container=>{const overlay=container.querySelector('.custom-pp-overlay');if(overlay)overlay.remove();container.classList.add('pp-duplicate-hidden')});return} 1816let liveContainer=null;for(let i=allContainers.length-1;i>=0;i--){if(allContainers[i].querySelector('iframe.component-frame.visible')){liveContainer=allContainers[i];break}} 1817if(!liveContainer){for(let i=allContainers.length-1;i>=0;i--){if(allContainers[i].querySelector('iframe')){liveContainer=allContainers[i];break}}} 1818if(!liveContainer)return;relocateContainer(liveContainer);let overlay=liveContainer.querySelector('.custom-pp-overlay');if(!overlay){overlay=document.createElement('div');overlay.className='custom-pp-overlay';overlay.textContent=target.overlayText;liveContainer.appendChild(overlay)} 1819liveContainer.classList.remove('pp-duplicate-hidden');allContainers.forEach(container=>{if(container!==liveContainer){container.classList.add('pp-duplicate-hidden');const dupOverlay=container.querySelector('.custom-pp-overlay');if(dupOverlay)dupOverlay.remove()}})})},50)});document.addEventListener('DOMContentLoaded',function(){if(!document.body||document.body.id!=='module-supercheckout-supercheckout'){return} 1820var ICONS={'paypal':'/themes/warehousechild/assets/img/paypal-custom.png','paypal_bnpl':'/themes/warehousechild/assets/img/paypal-custom.png'};const injectCustomIcons=()=>{var radios=document.querySelectorAll('input[name="payment_method"][data-module-name]');radios.forEach(function(radio){var moduleName=radio.getAttribute('data-module-name');var iconSrc=ICONS[moduleName];if(!iconSrc)return;var wrapper=radio.closest('.radio');if(!wrapper)return;var label=wrapper.querySelector('label[for="'+radio.id+'"]');if(!label)return;label.classList.add('kb-ps-checkout-label');var nativeMark=wrapper.querySelector('.ps_checkout-mark');if(nativeMark){nativeMark.style.display='none'} 1821if(!label.querySelector('.kb-pscheckout-icon')){var img=document.createElement('img');img.src=iconSrc;img.alt='';img.style.width='50px';img.style.marginRight='10px';img.className=moduleName==='paypal_bnpl'?'kb-pscheckout-icon kb-pscheckout-icon--paylater':'kb-pscheckout-icon';label.insertBefore(img,label.firstChild)}})};injectCustomIcons();const observer=new MutationObserver(()=>{injectCustomIcons()});const paymentMethodsContainer=document.getElementById('payment-method')||document.body;observer.observe(paymentMethodsContainer,{childList:!0,subtree:!0})});(function(){function getCurrentLanguage(){if(window.prestashop&&window.prestashop.language&&window.prestashop.language.iso_code){var isoCode=window.prestashop.language.iso_code.toLowerCase();if(isoCode.indexOf('pt')===0){return'pt'} 1822return'es'} 1823var htmlLang=document.documentElement.getAttribute('lang');if(htmlLang&&htmlLang.toLowerCase().indexOf('pt')===0){return'pt'} 1824var path=window.location.pathname.toLowerCase();if(/\/pt(\/|$)/.test(path)){return'pt'} 1825return'es'} 1826function getBlogUrlByLanguage(){var lang=getCurrentLanguage();if(lang==='pt'){return window.location.origin+'/pt/blog'} 1827return window.location.origin+'/blog'} 1828function addLinkToBlogTitle(){var block=document.querySelector('.block-iqitlinksmanager.block-iqitlinksmanager-4');if(!block){return} 1829var title=block.querySelector('h5.block-title');if(!title){return} 1830if(title.querySelector('a.vestatex-blog-title-link')){return} 1831var link=document.createElement('a');link.href=getBlogUrlByLanguage();link.className='vestatex-blog-title-link';link.style.color='inherit';link.style.textDecoration='none';link.addEventListener('click',function(event){event.stopPropagation()});while(title.firstChild){link.appendChild(title.firstChild)} 1832title.appendChild(link)} 1833if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',addLinkToBlogTitle)}else{addLinkToBlogTitle()}})();$(document).ready(function(){setTimeout(function(){let menuArray=[{"link":"https://vestatex.es/lonas-para-piscinas/","name":"lonaspiscinas","nameES":"LONAS PARA PISCINAS","namePT":"LONAS PARA PISCINAS"},{"link":"https://vestatex.es/liner-piscina/","name":"linerpiscina","nameES":"LINER PISCINA","namePT":"LINER PISCINA"},{"link":"https://vestatex.es/climatizacion-para-piscinas/","name":"climatizacion","nameES":"CLIMATIZACIÓN","namePT":"CLIMATIZAÇÃO"},{"link":"https://vestatex.es/robot-limpiafondos/","name":"robotlimpiafondos","nameES":"ROBOT LIMPIAFONDOS","namePT":"ROBOT LIMPA-FUNDOS"},{"link":"https://vestatex.es/accesorios/","name":"accesorios","nameES":"ACCESORIOS","namePT":"ACESSÓRIOS"},{"link":"https://vestatex.es/desinfeccion-piscinas/","name":"desinfeccion","nameES":"DESINFECCION","namePT":"DESINFECÇÃO"},{"link":"https://vestatex.es/ayuda","name":"ayuda","nameES":"PREGUNTAS FRECUENTES","namePT":"PERGUNTAS FREQUENTES"},{"link":"/es/contactenos","name":"contacto","nameES":"CONTACTO","namePT":"CONTACTO"},{"link":"https://vestatex.es/ofertas-vestatex","name":"ofertas","
1833nameES":"OFERTAS VESTATEX","namePT":"OFERTAS VESTATEX"}];let currentLang=$('html').attr('lang')||'es';let modifiedLinks=[];$('#iqitmegamenu-mobile li a').each(function(){let $link=$(this);let linkHref=$link.attr('href');if(!linkHref){return!0} 1834if(modifiedLinks.includes(linkHref)){return!0} 1835let matchedItem=menuArray.find(function(item){return item.link===linkHref});if(matchedItem){modifiedLinks.push(linkHref);$link.parent('li').addClass('li-mobile li-'+matchedItem.name);let newText=currentLang.indexOf('pt')===0?matchedItem.namePT:matchedItem.nameES;$link.html('<span>'+newText+'</span>')}});let linerLink='https://vestatex.es/liner-piscina/';let $linerLink=$('#iqitmegamenu-mobile > li > a[href="'+linerLink+'"]');let $linerLi=$linerLink.closest('li');if($linerLi.length){$linerLi.addClass('li-mobile li-linerpiscina');if(!$linerLi.children('ul').length){if(!$linerLi.children('.mm-expand').length){$linerLi.prepend('<span class="mm-expand">'+'<i class="fa fa-angle-down expand-icon" aria-hidden="true"></i>'+'<i class="fa fa-angle-up close-icon" aria-hidden="true"></i>'+'</span>')} 1836$linerLi.append('<ul>'+'<li><a href="https://vestatex.es/liner-piscina/#ie-a972e3ac-ptab-1">Liner piscinas redondas</a></li>'+'<li><a href="https://vestatex.es/liner-piscina/#ie-a972e3ac-ptab-2">Liner piscinas ovaladas</a></li>'+'</ul>')} 1837$linerLi.children('ul').hide();$linerLi.removeClass('open mm-open active liner-open');$linerLi.children('.mm-expand').off('click.linerMenu').on('click.linerMenu',function(e){e.preventDefault();e.stopPropagation();let $li=$(this).closest('li');let $submenu=$li.children('ul');if($li.hasClass('liner-open')){$li.removeClass('open mm-open active liner-open');$submenu.stop(!0,!0).slideUp(200)}else{$li.addClass('open mm-open active liner-open');$submenu.stop(!0,!0).slideDown(200)}})} 1838$(document).off('click.linerMenu').on('click.linerMenu','#iqitmegamenu-mobile .js-liner-expand',function(e){e.preventDefault();e.stopImmediatePropagation();let $li=$(this).closest('li');let $submenu=$li.find('> ul');$li.toggleClass('open mm-open active');$submenu.stop(!0,!0).slideToggle(200)})},500)});$(document).ready(function(){function updateMobileMenuTop(){var header=document.querySelector('#mobile-header-sticky');var menu=document.querySelector('#_mobile_iqitmegamenu-mobile');if(!header||!menu){return} 1839var headerRect=header.getBoundingClientRect();var parentRect=menu.offsetParent?menu.offsetParent.getBoundingClientRect():{top:0};var topValue=headerRect.bottom-parentRect.top;menu.style.setProperty('top',topValue+'px','important');menu.style.setProperty('max-height','calc(100vh - '+headerRect.bottom+'px)','important');menu.style.setProperty('overflow-y','auto','important')} 1840updateMobileMenuTop();$(window).on('resize orientationchange scroll',function(){updateMobileMenuTop()});$('.col-mobile-btn-menu .m-nav-btn').on('click',function(){setTimeout(updateMobileMenuTop,50);setTimeout(updateMobileMenuTop,250)});$('.col-mobile-btn-menu .mm-expand').on('click',function(){setTimeout(updateMobileMenuTop,50)});if('ResizeObserver' in window){var header=document.querySelector('#mobile-header-sticky');if(header){var observer=new ResizeObserver(function(){updateMobileMenuTop()});observer.observe(header)}}});document.addEventListener('DOMContentLoaded',function(){var sections=document.querySelectorAll('.ndx-popup-mobile-section');if(!sections.length){return} 1841function closeNativeAccordions(section){section.querySelectorAll('.elementor-accordion-title').forEach(function(title){title.classList.remove('active')});section.querySelectorAll('.elementor-accordion-content').forEach(function(content){content.style.display='none';content.style.height='0';content.style.maxHeight='0';content.style.opacity='0';content.style.visibility='hidden'})} 1842function createPopup(){var popup=document.querySelector('.ndx-mobile-popup-backdrop');if(popup){return popup} 1843popup=document.createElement('div');popup.className='ndx-mobile-popup-backdrop';popup.innerHTML=''+'<div class="ndx-mobile-popup" role="dialog" aria-modal="true">'+' <button type="button" class="ndx-mobile-popup-close" aria-label="Cerrar">×</button>'+' <div class="ndx-mobile-popup-title"></div>'+' <div class="ndx-mobile-popup-content"></div>'+'</div>';
1843document.body.appendChild(popup);popup.addEventListener('click',function(event){if(event.target.classList.contains('ndx-mobile-popup-backdrop')||event.target.classList.contains('ndx-mobile-popup-close')){closePopup()}});document.addEventListener('keydown',function(event){if(event.key==='Escape'){closePopup()}});return popup} 1844function openPopup(title,contentHtml){var popup=createPopup();popup.querySelector('.ndx-mobile-popup-title').textContent=title;popup.querySelector('.ndx-mobile-popup-content').innerHTML=contentHtml;popup.classList.add('is-active');document.body.classList.add('ndx-mobile-popup-open')} 1845function closePopup(){var popup=document.querySelector('.ndx-mobile-popup-backdrop');if(!popup){return} 1846popup.classList.remove('is-active');document.body.classList.remove('ndx-mobile-popup-open')} 1847function getContentFromTitle(titleElement){var item=titleElement.closest('.elementor-accordion-item');if(!item){return null} 1848return item.querySelector('.elementor-accordion-content')} 1849function cleanTitle(titleElement){var clonedTitle=titleElement.cloneNode(!0);var icon=clonedTitle.querySelector('.elementor-accordion-icon');if(icon){icon.remove()} 1850return clonedTitle.textContent.replace(/\+/g,'').replace(/−/g,'').trim()} 1851sections.forEach(function(section){closeNativeAccordions(section);section.addEventListener('click',function(event){var titleElement=event.target.closest('.elementor-accordion-title');if(!titleElement||!section.contains(titleElement)){return} 1852event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();var contentElement=getContentFromTitle(titleElement);if(!contentElement){return} 1853closeNativeAccordions(section);openPopup(cleanTitle(titleElement),contentElement.innerHTML)},!0)});window.addEventListener('resize',function(){sections.forEach(function(section){closeNativeAccordions(section)})})});document.addEventListener('DOMContentLoaded',function(){'use strict';var container=document.querySelector('.ndx-topbar-items');if(!container){return} 1854var items=container.querySelectorAll('.ndx-topbar-item');var current=0;var interval=null;if(!items.length){return} 1855function stopTopbarRotation(){if(interval){clearInterval(interval);interval=null}} 1856function showItem(index){items.forEach(function(item){item.classList.remove('is-active')});items[index].classList.add('is-active')} 1857function startTopbarRotation(){stopTopbarRotation();if(window.innerWidth>992){showItem(0);return} 1858showItem(current);interval=setInterval(function(){current++;if(current>=items.length){current=0} 1859showItem(current)},4500)} 1860startTopbarRotation();window.addEventListener('resize',function(){startTopbarRotation()})});(function($){'use strict';$(document).ready(function(){if(!$('#megagroups').length){return} 1861const CIRCULAR_ATTR_ID='164';function activateCircularMode(){$('#mp-step-height').hide();$('.mp-step-measures').addClass('circular-mode');$('#id_width').off('input.circularSync').on('input.circularSync',function(){$('#id_height').val($(this).val())}).trigger('input.circularSync')} 1862function deactivateCircularMode(){$('#mp-step-height').show();$('.mp-step-measures').removeClass('circular-mode');$('#id_width').off('input.circularSync')} 1863$(document).off('click.circularSync','#megaImageList_2447 a.mp_color_pick').on('click.circularSync','#megaImageList_2447 a.mp_color_pick',function(){const attrId=String($(this).data('attr'));if(attrId===CIRCULAR_ATTR_ID){activateCircularMode()}else{deactivateCircularMode()}});const $selectedShape=$('#megaImageList_2447 a.mp_color_pick.selectAttr');if($selectedShape.length&&String($selectedShape.data('attr'))===CIRCULAR_ATTR_ID){activateCircularMode()}else{deactivateCircularMode()}})})(jQuery);/******************************************** 1864 - THEMEPUNCH TOOLS Ver. 1.0 - 1865 Last Update of Tools 08.03.2018 1866*********************************************/ 1867 1868 1869/* 1870* @fileOverview TouchSwipe - jQuery Plugin 1871* @version 1.6.9 1872* 1873* @author Matt Bryson http://www.github.com/mattbryson 1874* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin 1875* @see http://labs.skinkers.com/touchSwipe/ 1876* @see http://plugins.jquery.com/project/touchSwipe 1877* 1878* Copyright (c) 2010 Matt Bryson 1879* Dual licensed under the MIT or GPL Version 2 licenses. 1880* 1881*/ 1882 1883 1884
vendor: 12,610 bytes, lines 1885-1917
1885(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",A="out",m="none",s="auto",l="swipe",t="pinch",B="tap",j="doubletap",b="longtap",z="hold",E="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,C="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:true};f.fn.swipetp=function(H){var G=f(this),F=G.data(C);if(F&&typeof H==="string"){if(F[H]){return F[H].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+H+" does not exist on jQuery.swipetp")}}else{if(!F&&(typeof H==="object"||!H)){return w.apply(this,arguments)}}return G};f.fn.swipetp.version=y;f.fn.swipetp.defaults=n;f.fn.swipetp.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipetp.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:A};f.fn.swipetp.pageScroll={NONE:m,HORIZONTAL:E,VERTICAL:u,AUTO:s};f.fn.swipetp.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(F){if(F&&(F.allowPageScroll===undefined&&(F.swipe!==undefined||F.swipeStatus!==undefined))){F.allowPageScroll=m}if(F.click!==undefined&&F.tap===undefined){F.tap=F.click}if(!F){F={}}F=f.extend({},f.fn.swipetp.defaults,F);return this.each(function(){var H=f(this);var G=H.data(C);if(!G){G=new D(this,F);H.data(C,G)}})}function D(a5,aw){var aA=(a||d||!aw.fallbackToMouseEvents),K=aA?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",az=aA?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",V=aA?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",T=aA?null:"mouseleave",aE=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ah=0,aQ=null,ac=0,a2=0,a0=0,H=1,ar=0,aK=0,N=null;var aS=f(a5);var aa="start";var X=0;var aR=null;var U=0,a3=0,a6=0,ae=0,O=0;var aX=null,ag=null;try{aS.bind(K,aO);aS.bind(aE,ba)}catch(al){f.error("events not supported "+K+","+aE+" on jQuery.swipetp")}this.enable=function(){aS.bind(K,aO);aS.bind(aE,ba);return aS};this.disable=function(){aL();return aS};this.destroy=function(){aL();aS.data(C,null);aS=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("Option "+bd+" does not exist on jQuery.swipetp.options")}return null};function aO(be){if(aC()){return}if(f(be.target).closest(aw.excludedElements,aS).length>0){return}var bf=be.originalEvent?be.originalEvent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){X=bg.length}else{be.preventDefault()}ah=0;aQ=null;aK=null;ac=0;a2=0;a0=0;H=1;ar=0;aR=ak();N=ab();S();if(!bg||(X===aw.fingers||aw.fingers===i)||aY()){aj(0,bc);U=au();if(X==2){aj(1,bg[1]);a2=a0=av(aR[0].start,aR[1].start)}if(aw.swipeStatus||aw.pinchStatus){bd=P(bf,aa)}}else{bd=false}if(bd===false){aa=q;P(bf,aa);return bd}else{if(aw.hold){ag=setTimeout(f.proxy(function(){aS.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(aS,bf,bf.target)}},this),aw.longTapThreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalEvent?bf.originalEvent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=aI(bd);a3=au();if(bj){X=bj.length}if(aw.hold){clearTimeout(ag)}aa=k;if(X==2){if(a2==0){aj(1,bj[1]);a2=a0=av(aR[0].start,aR[1].start)}else{aI(bj[1]);a0=av(aR[0].end,aR[1].end);aK=at(aR[0].end,aR[1].end)}H=a8(a2,a0);ar=Math.abs(a2-a0)}if((X===aw.fingers||aw.fingers===i)||!bj||aY()){aQ=aM(bg.start,bg.end);am(bf,aQ);ah=aT(bg.start,bg.end);ac=aN();aJ(aQ,ah);if(aw.swipeStatus||aw.pinchStatus){be=P(bi,aa)}if(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave){var bc=true;if(aw.triggerOnTouchLeave){var bh=aZ(this);bc=F(bg.end,bh)}if(!aw.triggerOnTouchEnd&&bc){aa=aD(k)}else{if(aw.triggerOnTouchLeave&&!bc){aa=aD(h)}}if(aa==q||aa==h){P(bi,aa)}}}else{aa=q;P(bi,aa)}if(be===false){aa=q;P(bi,aa)}}function M(bc){var bd=bc.originalEvent?bc.originalEvent:bc,be=bd.touches;if(be){if(be.length){G();return true}}if(an()){X=ae}a3=au();ac=aN();if(bb()||!ao()){aa=q;P(bd,aa)}else{if(aw.triggerOnTouchEnd||(aw.triggerOnTouchEnd==false&&aa===k)){bc.preventDefault();aa=h;P(bd,aa)}else{if(!aw.triggerOnTouchEnd&&a7()){aa=h;aG(bd,aa,B)}else{if(aa===k){aa=q;P(bd,aa)}}}}ap(false);return null}function ba(){X=0;a3=0;U=0;a2=0;a0=0;H=1;S();ap(false)}function L(bc){var bd=bc.originalEvent?bc.originalEvent:bc;if(aw.triggerOnTouchLeave){aa=aD(h);P(bd,aa)}}function aL(){aS.unbind(K,aO);aS.unbind(aE,ba);aS.unbind(az,a4);aS.unbind(V,M);if(T){aS.unbind(T,L)}ap(false)}function aD(bg){var bf=bg;var be=aB();var bd=ao();var bc=bb();if(!be||bc){bf=q}else{if(bd&&bg==k&&(!aw.triggerOnTouchEnd||aw.triggerOnTouchLeave)){bf=h}else{if(!bd&&bg==h&&aw.triggerOnTouchLeave){bf=q}}}return bf}function P(be,bc){var bd,bf=be.touches;if((J()||W())||(Q()||aY())){if(J()||W()){bd=aG(be,bc,l)}if((Q()||aY())&&bd!==false){bd=aG(be,bc,t)}}else{if(aH()&&bd!==false){bd=aG(be,bc,j)}else{if(aq()&&bd!==false){bd=aG(be,bc,b)}else{if(ai()&&bd!==false){bd=aG(be,bc,B)}}}}if(bc===q){ba(be)}if(bc===h){if(bf){if(!bf.length){ba(be)}}else{ba(be)}}return bd}function aG(bf,bc,be){var bd;if(be==l){aS.trigger("swipeStatus",[bc,aQ||null,ah||0,ac||0,X,aR]);if(aw.swipeStatus){bd=aw.swipeStatus.call(aS,bf,bc,aQ||null,ah||0,ac||0,X,aR);if(bd===false){return false}}if(bc==h&&aW()){aS.trigger("swipe",[aQ,ah,ac,X,aR]);if(aw.swipe){bd=aw.swipe.call(aS,bf,aQ,ah,ac,X,aR);if(bd===false){return false}}switch(aQ){case p:aS.trigger("swipeLeft",[aQ,ah,ac,X,aR]);if(aw.swipeLeft){bd=aw.swipeLeft.call(aS,bf,aQ,ah,ac,X,aR)}break;case o:aS.trigger("swipeRight",[aQ,ah,ac,X,aR]);if(aw.swipeRight){bd=aw.swipeRight.call(aS,bf,aQ,ah,ac,X,aR)}break;case e:aS.trigger("swipeUp",[aQ,ah,ac,X,aR]);if(aw.swipeUp){bd=aw.swipeUp.call(aS,bf,aQ,ah,ac,X,aR)}break;case x:aS.trigger("swipeDown",[aQ,ah,ac,X,aR]);if(aw.swipeDown){bd=aw.swipeDown.call(aS,bf,aQ,ah,ac,X,aR)}break}}}if(be==t){aS.trigger("pinchStatus",[bc,aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchStatus){bd=aw.pinchStatus.call(aS,bf,bc,aK||null,ar||0,ac||0,X,H,aR);if(bd===false){return false}}if(bc==h&&a9()){switch(aK){case c:aS.trigger("pinchIn",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchIn){bd=aw.pinchIn.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break;case A:aS.trigger("pinchOut",[aK||null,ar||0,ac||0,X,H,aR]);if(aw.pinchOut){bd=aw.pinchOut.call(aS,bf,aK||null,ar||0,ac||0,X,H,aR)}break}}}if(be==B){if(bc===q||bc===h){clearTimeout(aX);clearTimeout(ag);if(Z()&&!I()){O=au();aX=setTimeout(f.proxy(function(){O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}},this),aw.doubleTapThreshold)}else{O=null;aS.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(aS,bf,bf.target)}}}}else{if(be==j){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("doubletap",[bf.target]);if(aw.doubleTap){bd=aw.doubleTap.call(aS,bf,bf.target)}}}else{if(be==b){if(bc===q||bc===h){clearTimeout(aX);O=null;aS.trigger("longtap",[bf.target]);if(aw.longTap){bd=aw.longTap.call(aS,bf,bf.target)}}}}}return bd}function ao(){var bc=true;if(aw.threshold!==null){bc=ah>=aw.threshold}return bc}function bb(){var bc=false;if(aw.cancelThreshold!==null&&aQ!==null){bc=(aU(aQ)-ah)>=aw.cancelThreshold}return bc}function af(){if(aw.pinchThreshold!==null){return ar>=aw.pinchThreshold}return true}function aB(){var bc;if(aw.maxTimeThreshold){if(ac>=aw.maxTimeThreshold){bc=false}else{bc=true}}else{bc=true}return bc}function am(bc,bd){if(aw.preventDefaultEvents===false){return}if(aw.allowPageScroll===m){bc.preventDefault()}else{var be=aw.allowPageScroll===s;switch(bd){case p:if((aw.swipeLeft&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case o:if((aw.swipeRight&&be)||(!be&&aw.allowPageScroll!=E)){bc.preventDefault()}break;case e:if((aw.swipeUp&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break;case x:if((aw.swipeDown&&be)||(!be&&aw.allowPageScroll!=u)){bc.preventDefault()}break}}}function a9(){var bd=aP();var bc=Y();var be=af();return bd&&bc&&be}function aY(){return !!(aw.pinchStatus||aw.pinchIn||aw.pinchOut)}function Q(){return !!(a9()&&aY())}function aW(){var bf=aB();var bh=ao();var be=aP();var bc=Y();var bd=bb();var bg=!bd&&bc&&be&&bh&&bf;return bg}function W(){return !!(aw.swipe||aw.swipeStatus||aw.swipeLeft||aw.swipeRight||aw.swipeUp||aw.swipeDown)}function J(){return !!(aW()&&W())}function aP(){return((X===aw.fingers||aw.fingers===i)||!a)}function Y(){return aR[0].end.x!==0}function a7(){return !!(aw.tap)}function Z(){return !!(aw.doubleTap)}function aV(){return !!(aw.longTap)}function R(){if(O==null){return false}var bc=au();return(Z()&&((bc-O)<=aw.doubleTapThreshold))}function I(){return R()}function ay(){return((X===1||!a)&&(isNaN(ah)||ah<aw.threshold))}function a1(){return((ac>aw.longTapThreshold)&&(ah<r))}function ai(){return !!(ay()&&a7())}function aH(){return !!(R()&&Z())}function aq(){return !!(a1()&&aV())}function G(){a6=au();ae=event.touches.length+1}function S(){a6=0;ae=0}function an(){var bc=false;if(a6){var bd=au()-a6;if(bd<=aw.fingerReleaseThreshold){bc=true}}return bc}function aC(){return !!(aS.data(C+"_intouch")===true)}function ap(bc){if(bc===true){aS.bind(az,a4);aS.bind(V,M);if(T){aS.bind(T,L)}}else{aS.unbind(az,a4,false);aS.unbind(V,M,false);if(T){aS.unbind(T,L,false)}}aS.data(C+"_intouch",bc===true)}function aj(bd,bc){var be=bc.identifier!==undefined?bc.identifier:0;aR[bd].identifier=be;aR[bd].start.x=aR[bd].end.x=bc.pageX||bc.clientX;aR[bd].start.y=aR[bd].end.y=bc.pageY||bc.clientY;return aR[bd]}function aI(bc){var be=bc.identifier!==undefined?bc.identifier:0;var bd=ad(be);bd.end.x=bc.pageX||bc.clientX;bd.end.y=bc.pageY||bc.clientY;return bd}function ad(bd){for(var bc=0;bc<aR.length;bc++){if(aR[bc].identifier==bd){return aR[bc]}}}function ak(){var bc=[];for(var bd=0;bd<=5;bd++){bc.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return bc}function aJ(bc,bd){bd=Math.max(bd,aU(bc));N[bc].distance=bd}function aU(bc){if(N[bc]){return N[bc].distance}return undefined}function ab(){var bc={};bc[p]=ax(p);bc[o]=ax(o);bc[e]=ax(e);bc[x]=ax(x);return bc}function ax(bc){return{direction:bc,distance:0}}function aN(){return a3-U}function av(bf,be){var bd=Math.abs(bf.x-be.x);var bc=Math.abs(bf.y-be.y);return Math.round(Math.sqrt(bd*bd+bc*bc))}function a8(bc,bd){var be=(bd/bc)*1;return be.toFixed(2)}function at(){if(H<1){return A}else{return c}}function aT(bd,bc){return Math.round(Math.sqrt(Math.pow(bc.x-bd.x,2)+Math.pow(bc.y-bd.y,2)))}function aF(bf,bd){var bc=bf.x-bd.x;var bh=bd.y-bf.y;var be=Math.atan2(bh,bc);var bg=Math.round(be*180/Math.PI);if(bg<0){bg=360-Math.abs(bg)}return bg}function aM(bd,bc){var be=aF(bd,bc);if((be<=45)&&(be>=0)){return p}else{if((be<=360)&&(be>=315)){return p}else{if((be>=135)&&(be<=225)){return o}else{if((be>45)&&(be<135)){return x}else{return e}}}}}function au(){var bc=new Date();return bc.getTime()}function aZ(bc){bc=f(bc);var be=bc.offset();var bd={left:be.left,right:be.left+bc.outerWidth(),top:be.top,bottom:be.top+bc.outerHeight()};return bd}function F(bc,bd){return(bc.x>bd.left&&bc.x<bd.right&&bc.y>bd.top&&bc.y<bd.bottom)}}})); 1886 1887if(typeof(console) === 'undefined') { 1888 var console = {}; 1889 console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = console.groupCollapsed = function() {}; 1890} 1891 1892if (window.tplogs==true) 1893 try { 1894 console.groupCollapsed("ThemePunch GreenSocks Logs"); 1895 } catch(e) { } 1896 1897 1898var oldgs = window.GreenSockGlobals; 1899 oldgs_queue = window._gsQueue; 1900 1901var punchgs = window.GreenSockGlobals = {}; 1902 1903if (window.tplogs==true) 1904 try { 1905 console.info("Build GreenSock SandBox for ThemePunch Plugins"); 1906 console.info("GreenSock TweenLite Engine Initalised by ThemePunch Plugin"); 1907 } catch(e) {} 1908 1909 1910/* TWEEN LITE */ 1911/*! 1912 * VERSION: 1.19.1 1913 * DATE: 2017-01-17 1914 * UPDATES AND DOCS AT: http://greensock.com 1915 * 1916 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 1917 * This work is subject to the terms at http://greensock.com/standard-license or for
1918 * Club GreenSock members, the software agreement that was issued with your membership. 1919 *
vendor: 27,336 bytes, lines 1919-1922
1919 1920 * @author: Jack Doyle, [email protected] 1921 */ 1922!function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!e.TweenLite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},l=k("com.greensock"),m=1e-10,n=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},o=function(){},p=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),q={},r=function(d,f,g,h){this.sc=q[d]?q[d].sc:[],q[d]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(j){for(var l,m,n,o,p,s=f.length,t=s;--s>-1;)(l=q[f[s]]||new r(f[s],[])).gsClass?(i[s]=l.gsClass,t--):j&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,p="undefined"!=typeof module&&module.exports,!p&&"function"==typeof define&&define.amd)define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});else if(p)if(d===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},s=a._gsDefine=function(a,b,c,d){return new r(a,b,c,d)},t=l._class=function(a,b,c){return b=b||function(){},s(a,[],function(){return b},c),b};s.globals=e;var u=[0,0,1,1],v=t("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?u.concat(b):u},!0),w=v.map={},x=v.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,k=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(h=v.prototype,h._calcEnd=!1,h.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=f.length;--g>-1;)h=f[g]+",Power"+g,x(new v(null,null,1,g),h,"easeOut",!0),x(new v(null,null,2,g),h,"easeIn"+(0===g?",easeNone":"")),x(new v(null,null,3,g),h,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var y=t("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});h=y.prototype,h.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr<e&&(k=g+1);h.splice(k,0,{c:b,s:c,up:d,pr:e})},h.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestAnimationFrame,A=a.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},C=B();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"RequestAnimationFrame"],A=a[f[g]+"CancelAnimationFrame"]||a[f[g]+"CancelRequestAnimationFrame"];t("Ticker",function(a,b){var c,e,f,g,h,k=this,l=B(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=B()-C;i>p&&(l+=i-q),C+=i,k.time=(C-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchEvent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagSmoothing=function(a,b){p=a||1/m,q=Math.min(b,p,0)},k.sleep=function(){null!=f&&(n&&A?A(f):clearTimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-C+(C=B()):k.frame>10&&(C=B()-p+5),e=0===c?o:n&&z?z:function(a){return setTimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==d.visibilityState&&k.useRAF(!1)},1500)}),h=l.Ticker.prototype=new l.events.EventDispatcher,h.constructor=l.Ticker;var D=t("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,W){j||i.wake();var c=this.vars.useFrames?V:W;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=D.ticker=new l.Ticker,h=D.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var E=function(){j&&B()-C>2e3&&i.wake(),setTimeout(E,2e3)};E(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a<c+this.totalDuration()/this._timeScale},h._enabled=function(a,b){return j||i.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},h._kill=function(a,b){return this._enabled(!1,!1)},h.kill=function(a,b){return this._kill(a,b),this},h._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},h._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=p(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},h.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},h.totalTime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(J.length&&Y(),this.render(a,b,!1),J.length&&Y())}return this},h.progress=h.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},h.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},h.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||m,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var F=t("core.SimpleTimeline",function(a){D.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});h=F.prototype=new D,h.constructor=F,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},h.rawTime=function(){return j||i.wake(),this._totalTime};var G=t("TweenLite",function(b,c,d){if(D.call(this,c,d),this.render=G.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:G.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?U[G.defaultOverwrite]:"number"==typeof i?i>>0:U[i],(h||b instanceof Array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(n(f))):(this._siblings[e]=Z(f,this,!1),1===i&&this._siblings[e].length>1&&_(f,this,null,1,this._siblings[e])):(f=g[e--]=G.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=Z(b,this,!1),1===i&&this._siblings.length>1&&_(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-m,this.render(Math.min(0,-this._delay)))},!0),H=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},I=function(a,b){var c,d={};for(c in a)T[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!Q[c]||Q[c]&&Q[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};h=G.prototype=new D,h.constructor=G,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,G.version="1.19.1",G.defaultEase=h._ease=new v(null,null,1,1),G.defaultOverwrite="auto",G.ticker=i,G.autoSleep=120,G.lagSmoothing=function(a,b){i.lagSmoothing(a,b)},G.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(G.selector=c,c(b)):"undefined"==typeof d?b:d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b)};var J=[],K={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,M=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},N=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(L)||[],f=b.match(L)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=M,l},O=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=N(m,n?o.s+o.c:d,h||G.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},P=G._internals={isArray:p,isSelector:H,lazyTweens:J,blobDif:N},Q=G._plugins={},R=P.tweenLookup={},S=0,T=P.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},U={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},V=D._rootFramesTimeline=new F,W=D._rootTimeline=new F,X=30,Y=P.lazyRender=function(){var a,b=J.length;for(K={};--b>-1;)a=J[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);J.length=0};W._startTime=i.time,V._startTime=i.frame,W._active=V._active=!0,setTimeout(Y,1),D._updateRoot=G.render=function(){var a,b,c;if(J.length&&Y(),W.render((i.time-W._startTime)*W._timeScale,!1,!1),V.render((i.frame-V._startTime)*V._timeScale,!1,!1),J.length&&Y(),i.frame>=X){X=i.frame+(parseInt(G.autoSleep,10)||120);for(c in R){for(b=R[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete R[c]}if(c=W._first,(!c||c._paused)&&G.autoSleep&&!V._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addEventListener("tick",D._updateRoot);var Z=function(a,b,c){var d,e,f=a._gsTweenID;if(R[f||(a._gsTweenID=f="t"+S++)]||(R[f]={target:a,tweens:[]}),b&&(d=R[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return R[f].tweens},$=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=G.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},_=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||aa(b,0,o),0===aa(h,j,o)&&(l[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!$(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},aa=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalDuration()/a._timeScale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,this._startAt=G.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)T[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=G.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeParams):w[k]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},h._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;K[b._gsTweenID]&&Y(),this.vars.css||b.style&&b!==a&&b.nodeType&&Q.css&&this.vars.autoCSS!==!1&&I(this.vars,b);for(g in this.vars)if(l=this.vars[g],T[g])l&&(l instanceof Array||l.push&&p(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(Q[g]&&(j=new Q[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=O.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&_(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[b._gsTweenID]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"isPause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:m)),this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,n=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,J.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===m&&g!==m&&(this._rawPrevTime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:G.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((p(b)||H(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(G.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!$(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-m,this.render(Math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=Z(d[c],this,!0);else this._siblings=Z(this.target,this,!0)}return D.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?G._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},G.to=function(a,b,c){return new G(a,b,c)},G.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new G(a,b,c)},G.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new G(a,b,d)},G.delayedCall=function(a,b,c,d,e){return new G(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},G.set=function(a,b){return new G(a,0,b)},G.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:G.selector(a)||a;var c,d,e,f;if((p(a)||H(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(G.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=Z(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},G.killTweensOf=G.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=G.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ba=t("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ba.prototype},!0);if(h=ba.prototype,ba.version="1.19.0",ba.API=2,h._firstPT=null,h._addTween=O,h.setRatio=M,h._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},h._mod=h._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},G._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ba.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ba.API&&(Q[(new a[b])._propName]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=t("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ba.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ba(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ba.activate([g]),g},f=a._gsQueue){for(g=0;g<f.length;g++)f[g]();for(h in q)q[h].func||a.console.log("GSAP encountered missing dependency: "+h)}j=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");
1923/* TIME LINE LITE */ 1924/*! 1925 * VERSION: 1.17.0 1926 * DATE: 2015-05-27 1927 * UPDATES AND DOCS AT: http://greensock.com 1928 * 1929 * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. 1930 * This work is subject to the terms at http://greensock.com/standard-license or for
1931 * Club GreenSock members, the software agreement that was issued with your membership. 1932 * 1933 * @author: Jack Doyle, [email protected] 1934 */ 1935var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],h(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));h(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=s._internals={},o=n.isSelector,h=n.isArray,l=n.lazyTweens,_=n.lazyRender,u=[],f=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=a.pauseCallback=function(t,e,i,s){var n,a=t._timeline,o=a._totalTime,h=t._startTime,l=0>t._rawPrevTime||0===t._rawPrevTime&&a._reversed,_=l?0:r,f=l?r:0;if(e||!this._forcingPlayhead){for(a.pause(h),n=t._prev;n&&n._startTime===h;)n._rawPrevTime=f,n=n._prev;for(n=t._next;n&&n._startTime===h;)n._rawPrevTime=_,n=n._next;e&&e.apply(s||a.vars.callbackScope||a,i||u),(this._forcingPlayhead||!a._paused)&&a.seek(o)}},m=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},d=s.prototype=new e;return s.version="1.17.0",d.constructor=s,d.kill()._gc=d._forcingPlayhead=!1,d.to=function(t,e,s,r){var n=s.repeat&&f.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},d.from=function(t,e,s,r){return this.add((s.repeat&&f.TweenMax||i).from(t,e,s),r)},d.fromTo=function(t,e,s,r,n){var a=r.repeat&&f.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},d.staggerTo=function(t,e,r,n,a,h,l,_){var u,f=new s({onComplete:h,onCompleteParams:l,callbackScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=c(r.startAt)),f.to(t[u],e,c(r),u*n);return this.add(f,a)},d.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},d.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},d.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},d.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},d.add=function(r,n,a,o){var l,_,u,f,c,p;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&h(r)){for(a=a||"normal",o=o||0,l=n,_=r.length,u=0;_>u;u++)h(f=r[u])&&(f=new s({tweens:f})),this.add(f,l),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?l=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),l+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,p=c.rawTime()>r._startTime;c._timeline;)p&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},d.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&h(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},d._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},d.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))}
vendor: 16,269 bytes, lines 1935-1961
1935,d.insert=d.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},d.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},d.addPause=function(t,e,s,r){var n=i.delayedCall(0,p,["{self}",e,s,r],this);return n.data="isPause",this.add(n,t)},d.removeLabel=function(t){return delete this._labels[t],this},d.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&h(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},d.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},d.stop=function(){return this.paused(!0)},d.gotoAndPlay=function(t,e){return this.play(t,e)},d.gotoAndStop=function(t,e){return this.pause(t,e)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,h,u=this._dirty?this.totalDuration():this._totalDuration,f=this._time,c=this._startTime,p=this._timeScale,m=this._paused;if(t>=u)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",h=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(h=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=u+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(h=n=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(h=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&n)for(s=this._first;s&&0===s._startTime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(h=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==f&&this._first||i||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(e||this._callback("onStart")),this._time>=f)for(s=this._first;s&&(a=s._next,!this._paused||m);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||m);)(s._active||f>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(l.length&&_(),this._callback("onUpdate"))),o&&(this._gc||(c===this._startTime||p!==this._timeScale)&&(0===this._time||u>=this.totalDuration())&&(n&&(l.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},d._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},d.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},d.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},d._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},d.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},d.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},d.paused=function(e){if(!e)for(var i=this._first,s=this._time;i;)i._startTime===s&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},d.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},d.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite"); 1936/* EASING PLUGIN*/ 1937/*! 1938 * VERSION: 1.15.5 1939 * DATE: 2016-07-08 1940 * UPDATES AND DOCS AT: http://greensock.com 1941 * 1942 * @license Copyright (c) 2008-2016, GreenSock. All rights reserved. 1943 * This work is subject to the terms at http://greensock.com/standard-license or for 1944 * Club GreenSock members, the software agreement that was issued with your membership. 1945 * 1946 * @author: Jack Doyle, [email protected] 1947 **/ 1948var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=_gsScope.GreenSockGlobals||_gsScope,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";var a=function(){return _gsScope.GreenSockGlobals||_gsScope};"function"==typeof define&&define.amd?define(["TweenLite"],a):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=a())}(); 1949/* CSS PLUGIN */ 1950/*! 1951 * VERSION: 1.19.1 1952 * DATE: 2017-01-17 1953 * UPDATES AND DOCS AT: http://greensock.com 1954 * 1955 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 1956 * This work is subject to the terms at http://greensock.com/standard-license or for 1957 * Club GreenSock members, the software agreement that was issued with your membership. 1958 * 1959 * @author: Jack Doyle, [email protected] 1960 */ 1961var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.19.1",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return O.createElementNS?O.createElementNS(b||"http://www.w3.org/1999/xhtml",a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=O.defaultView?O.defaultView.getComputedStyle:function(){},_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}
vendor: 4,797 bytes, line 1961
1961return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ha(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(a[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h=
vendor: 25,788 bytes, line 1961
1961f.length?"":a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=na(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},pa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in la)pa+="|"+j+"\\b";pa=new RegExp(pa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+a[1];pa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=oa(a[0],b),a[1]=oa(a[1],b)),pa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var qa=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(pa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(pa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},ra=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ta=(S._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new sa(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" "),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(y?"hsla(":"hsl(",p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(y?"rgba(":"rgb(",p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ia(w[n],A),"",G&&"px"===p.substr(z+A.length,2),0===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},wa=9;for(j=ta.prototype,j.l=j.pr=0;--wa>0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new xa(f[d],b)},za=S._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";ya(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(W("Error: "+b+" js file not loaded."),f)}})}};j=xa.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!(Ha&&a.getCTM&&Na(a))||a.parentNode&&!a.ownerSVGElement)},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&Ca&&((h="none"===$(a).display)||!a.parentNode)&&(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),x=x*v+B*w,t=y*v+C*w,C=y*-w+C*v,D=z*-w+D*v,y=t),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),m.scaleX=(Math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+G*G)*p+.5|0)/p,m.scaleZ=(Math.sqrt(D*D+H*H)*p+.5|0)/p,m.rotationX||m.rotationY?m.skewX=0:(m.skewX=B||C?Math.atan2(B,C)*L+m.rotation:m.skewX||0,Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180))),m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,Math.abs(l)>90&&Math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",O.body.appendChild(Q),l=Ra(Q,null,!1),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent),yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),D.skewType=A.skewType||D.skewType||g.defaultSkewType,n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Z(y[j])),m=l=_(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._over
vendor: 7,995 bytes, lines 1961-1970
1961writeProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b)n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=Math.round(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Ra(this._target,e,!0),this._transformType=this._transform.svg&&Aa||!a&&3!==this._transformType?2:3};var Ya=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new ta(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ya,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&a[b.p]===Math.round&&(b.r=1),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var Za=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define(["TweenLite"],b):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=b())}("CSSPlugin"); 1962/* SPLIT TEXT UTIL */ 1963/*! 1964 * VERSION: 0.5.6 1965 * DATE: 2017-01-17 1966 * UPDATES AND DOCS AT: http://greensock.com 1967 * 1968 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 1969 * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use 1970 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
1971 * This work is subject to the software agreement that was issued with your membership. 1972 *
vendor: 8,547 bytes, lines 1972-1975
1972 1973 * @author: Jack Doyle, [email protected] 1974 */ 1975var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;!function(a){"use strict";var b=a.GreenSockGlobals||a,c=function(a){var c,d=a.split("."),e=b;for(c=0;c<d.length;c++)e[d[c]]=e=e[d[c]]||{};return e},d=c("com.greensock.utils"),e=function(a){var b=a.nodeType,c="";if(1===b||9===b||11===b){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===b||4===b)return a.nodeValue;return c},f=document,g=f.defaultView?f.defaultView.getComputedStyle:function(){},h=/([A-Z])/g,i=function(a,b,c,d){var e;return(c=c||g(a,null))?(a=c.getPropertyValue(b.replace(h,"-$1").toLowerCase()),e=a||c.length?a:c[b]):a.currentStyle&&(c=a.currentStyle,e=c[b]),d?e:parseInt(e,10)||0},j=function(a){return a.length&&a[0]&&(a[0].nodeType&&a[0].style&&!a.nodeType||a[0].length&&a[0][0])?!0:!1},k=function(a){var b,c,d,e=[],f=a.length;for(b=0;f>b;b++)if(c=a[b],j(c))for(d=c.length,d=0;d<c.length;d++)e.push(c[d]);else e.push(c);return e},l=/(?:\r|\n|\t\t)/g,m=/(?:\s\s+)/g,n=55296,o=56319,p=56320,q=127462,r=127487,s=127995,t=127999,u=function(a){return(a.charCodeAt(0)-n<<10)+(a.charCodeAt(1)-p)+65536},v=f.all&&!f.addEventListener,w=" style='position:relative;display:inline-block;"+(v?"*display:inline;*zoom:1;'":"'"),x=function(a,b){a=a||"";var c=-1!==a.indexOf("++"),d=1;return c&&(a=a.split("++").join("")),function(){return"<"+b+w+(a?" class='"+a+(c?d++:"")+"'>":">")}},y=d.SplitText=b.SplitText=function(a,b){if("string"==typeof a&&(a=y.selector(a)),!a)throw"cannot split a null element.";this.elements=j(a)?k(a):[a],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=b||{},this.split(b)},z=function(a,b,c){var d=a.nodeType;if(1===d||9===d||11===d)for(a=a.firstChild;a;a=a.nextSibling)z(a,b,c);else(3===d||4===d)&&(a.nodeValue=a.nodeValue.split(b).join(c))},A=function(a,b){for(var c=b.length;--c>-1;)a.push(b[c])},B=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},C=function(a,b,c){for(var d;a&&a!==b;){if(d=a._next||a.nextSibling)return d.textContent.charAt(0)===c;a=a.parentNode||a._parent}return!1},D=function(a){var b,c,d=B(a.childNodes),e=d.length;for(b=0;e>b;b++)c=d[b],c._isSplit?D(c):(b&&3===c.previousSibling.nodeType?c.previousSibling.nodeValue+=3===c.nodeType?c.nodeValue:c.firstChild.nodeValue:3!==c.nodeType&&a.insertBefore(c.firstChild,c),a.removeChild(c))},E=function(a,b,c,d,e,h,j){var k,l,m,n,o,p,q,r,s,t,u,v,w=g(a),x=i(a,"paddingLeft",w),y=-999,B=i(a,"borderBottomWidth",w)+i(a,"borderTopWidth",w),E=i(a,"borderLeftWidth",w)+i(a,"borderRightWidth",w),F=i(a,"paddingTop",w)+i(a,"paddingBottom",w),G=i(a,"paddingLeft",w)+i(a,"paddingRight",w),H=.2*i(a,"fontSize"),I=i(a,"textAlign",w,!0),J=[],K=[],L=[],M=b.wordDelimiter||" ",N=b.span?"span":"div",O=b.type||b.split||"chars,words,lines",P=e&&-1!==O.indexOf("lines")?[]:null,Q=-1!==O.indexOf("words"),R=-1!==O.indexOf("chars"),S="absolute"===b.position||b.absolute===!0,T=b.linesClass,U=-1!==(T||"").indexOf("++"),V=[];for(P&&1===a.children.length&&a.children[0]._isSplit&&(a=a.children[0]),U&&(T=T.split("++").join("")),l=a.getElementsByTagName("*"),m=l.length,o=[],k=0;m>k;k++)o[k]=l[k];if(P||S)for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,(p||S||R&&!Q)&&(v=n.offsetTop,P&&p&&Math.abs(v-y)>H&&"BR"!==n.nodeName&&(q=[],P.push(q),y=v),S&&(n._x=n.offsetLeft,n._y=v,n._w=n.offsetWidth,n._h=n.offsetHeight),P&&((n._isSplit&&p||!R&&p||Q&&p||!Q&&n.parentNode.parentNode===a&&!n.parentNode._isSplit)&&(q.push(n),n._x-=x,C(n,a,M)&&(n._wordEnd=!0)),"BR"===n.nodeName&&n.nextSibling&&"BR"===n.nextSibling.nodeName&&P.push([])));for(k=0;m>k;k++)n=o[k],p=n.parentNode===a,"BR"!==n.nodeName?(S&&(s=n.style,Q||p||(n._x+=n.parentNode._x,n._y+=n.parentNode._y),s.left=n._x+"px",s.top=n._y+"px",s.position="absolute",s.display="block",s.width=n._w+1+"px",s.height=n._h+"px"),!Q&&R?n._isSplit?(n._next=n.nextSibling,n.parentNode.appendChild(n)):n.parentNode._isSplit?(n._parent=n.parentNode,!n.previousSibling&&n.firstChild&&(n.firstChild._isFirst=!0),n.nextSibling&&" "===n.nextSibling.textContent&&!n.nextSibling.nextSibling&&V.push(n.nextSibling),n._next=n.nextSibling&&n.nextSibling._isFirst?null:n.nextSibling,n.parentNode.removeChild(n),o.splice(k--,1),m--):p||(v=!n.nextSibling&&C(n.parentNode,a,M),n.parentNode._parent&&n.parentNode._parent.appendChild(n),v&&n.parentNode.appendChild(f.createTextNode(" ")),b.span&&(n.style.display="inline"),J.push(n)):n.parentNode._isSplit&&!n._isSplit&&""!==n.innerHTML?K.push(n):R&&!n._isSplit&&(b.span&&(n.style.display="inline"),J.push(n))):P||S?(n.parentNode&&n.parentNode.removeChild(n),o.splice(k--,1),m--):Q||a.appendChild(n);for(k=V.length;--k>-1;)V[k].parentNode.removeChild(V[k]);if(P){for(S&&(t=f.createElement(N),a.appendChild(t),u=t.offsetWidth+"px",v=t.offsetParent===a?0:a.offsetLeft,a.removeChild(t)),s=a.style.cssText,a.style.cssText="display:none;";a.firstChild;)a.removeChild(a.firstChild);for(r=" "===M&&(!S||!Q&&!R),k=0;k<P.length;k++){for(q=P[k],t=f.createElement(N),t.style.cssText="display:block;text-align:"+I+";position:"+(S?"absolute;":"relative;"),T&&(t.className=T+(U?k+1:"")),L.push(t),m=q.length,l=0;m>l;l++)"BR"!==q[l].nodeName&&(n=q[l],t.appendChild(n),r&&n._wordEnd&&t.appendChild(f.createTextNode(" ")),S&&(0===l&&(t.style.top=n._y+"px",t.style.left=x+v+"px"),n.style.top="0px",v&&(n.style.left=n._x-v+"px")));0===m?t.innerHTML=" ":Q||R||(D(t),z(t,String.fromCharCode(160)," ")),S&&(t.style.width=u,t.style.height=n._h+"px"),a.appendChild(t)}a.style.cssText=s}S&&(j>a.clientHeight&&(a.style.height=j-F+"px",a.clientHeight<j&&(a.style.height=j+B+"px")),h>a.clientWidth&&(a.style.width=h-G+"px",a.clientWidth<h&&(a.style.width=h+E+"px"))),A(c,J),A(d,K),A(e,L)},F=function(a,b,c,d){var g,h,i,j,k,p,v,w,x,y=b.span?"span":"div",A=b.type||b.split||"chars,words,lines",B=(-1!==A.indexOf("words"),-1!==A.indexOf("chars")),C="absolute"===b.position||b.absolute===!0,D=b.wordDelimiter||" ",E=" "!==D?"":C?"­ ":" ",F=b.span?"</span>":"</div>",G=!0,H=f.createElement("div"),I=a.parentNode;for(I.insertBefore(H,a),H.textContent=a.nodeValue,I.removeChild(a),a=H,g=e(a),v=-1!==g.indexOf("<"),b.reduceWhiteSpace!==!1&&(g=g.replace(m," ").replace(l,"")),v&&(g=g.split("<").join("{{LT}}")),k=g.length,h=(" "===g.charAt(0)?E:"")+c(),i=0;k>i;i++)if(p=g.charAt(i),p===D&&g.charAt(i-1)!==D&&i){for(h+=G?F:"",G=!1;g.charAt(i+1)===D;)h+=E,i++;i===k-1?h+=E:")"!==g.charAt(i+1)&&(h+=E+c(),G=!0)}else"{"===p&&"{{LT}}"===g.substr(i,6)?(h+=B?d()+"{{LT}}</"+y+">":"{{LT}}",i+=5):p.charCodeAt(0)>=n&&p.charCodeAt(0)<=o||g.charCodeAt(i+1)>=65024&&g.charCodeAt(i+1)<=65039?(w=u(g.substr(i,2)),x=u(g.substr(i+2,2)),j=w>=q&&r>=w&&x>=q&&r>=x||x>=s&&t>=x?4:2,h+=B&&" "!==p?d()+g.substr(i,j)+"</"+y+">":g.substr(i,j),i+=j-1):h+=B&&" "!==p?d()+p+"</"+y+">":p;a.outerHTML=h+(G?F:""),v&&z(I,"{{LT}}","<")},G=function(a,b,c,d){var e,f,g=B(a.childNodes),h=g.length,j="absolute"===b.position||b.absolute===!0;if(3!==a.nodeType||h>1){for(b.absolute=!1,e=0;h>e;e++)f=g[e],(3!==f.nodeType||/\S+/.test(f.nodeValue))&&(j&&3!==f.nodeType&&"inline"===i(f,"display",null,!0)&&(f.style.display="inline-block",f.style.position="relative"),f._isSplit=!0,G(f,b,c,d));return b.absolute=j,void(a._isSplit=!0)}F(a,b,c,d)},H=y.prototype;H.split=function(a){this.isSplit&&this.revert(),this.vars=a=a||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var b,c,d,e=this.elements.length,f=a.span?"span":"div",g=("absolute"===a.position||a.absolute===!0,x(a.wordsClass,f)),h=x(a.charsClass,f);--e>-1;)d=this.elements[e],this._originals[e]=d.innerHTML,b=d.clientHeight,c=d.clientWidth,G(d,a,g,h),E(d,a,this.chars,this.words,this.lines,c,b);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},H.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var a=this._originals.length;--a>-1;)this.elements[a].innerHTML=this._originals[a];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},y.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(y.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)},y.version="0.5.6"}(_gsScope),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports&&(module.exports=b())}("SplitText");
1975try{window.GreenSockGlobals=null;window._gsQueue=null;window._gsDefine=null;delete(window.GreenSockGlobals);delete(window._gsQueue);delete(window._gsDefine)}catch(e){} 1976try{window.GreenSockGlobals=oldgs;window._gsQueue=oldgs_queue}catch(e){} 1977if(window.tplogs==!0) 1978try{console.groupEnd()}catch(e){}(function(e,t){e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return!0}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return!1}});o.src=s.src})})}})(jQuery);var SqueezeBox=new function(){this.onClose=null,this.initialize=function(){},this.assign=function(){},this.open=function(t){},this.close=function(){}};
vendor: 20,106 bytes, line 1978
1978!function(jQuery,undefined){"use strict";var version={core:"5.4.8","revolution.extensions.actions.min.js":"2.1.0","revolution.extensions.carousel.min.js":"1.2.1","revolution.extensions.kenburn.min.js":"1.3.1","revolution.extensions.layeranimation.min.js":"3.6.5","revolution.extensions.navigation.min.js":"1.3.5","revolution.extensions.parallax.min.js":"2.2.3","revolution.extensions.slideanims.min.js":"1.8","revolution.extensions.video.min.js":"2.2.2"};jQuery.fn.extend({revolution:function(i){var e={delay:9e3,responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,autoHeight:"off",sliderType:"standard",sliderLayout:"auto",fullScreenAutoWidth:"off",fullScreenAlignForce:"off",fullScreenOffsetContainer:"",fullScreenOffset:"0",hideCaptionAtLimit:0,hideAllCaptionAtLimit:0,hideSliderAtLimit:0,disableProgressBar:"off",stopAtSlide:-1,stopAfterLoops:-1,shadow:0,dottedOverlay:"none",startDelay:0,lazyType:"smart",spinner:"spinner0",shuffle:"off",viewPort:{enable:!1,outof:"wait",visible_area:"60%",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:"off",simplifyAll:"on",nextSlideOnWindowFocus:"off",disableFocusListener:!0,ignoreHeightChanges:"off",ignoreHeightChangesSize:0,allowHTML5AutoPlayOnAndroid:!0},parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",speed:400,bgparallax:"off",opacity:"on",disable_onmobile:"off",ddd_shadow:"on",ddd_bgfreeze:"off",ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,ddd_path:"mouse"},scrolleffect:{fade:"off",blur:"off",scale:"off",grayscale:"off",maxblur:10,on_layers:"off",on_slidebg:"off",on_static_layers:"off",on_parallax_layers:"off",on_parallax_static_layers:"off",direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_on_mobile:"on"},carousel:{easing:punchgs.Power3.easeInOut,speed:800,showLayersAllTime:"off",horizontal_align:"center",vertical_align:"center",infinity:"on",space:0,maxVisibleItems:3,stretch:"off",fadeout:"on",maxRotation:0,minScale:0,vary_fade:"off",vary_rotation:"on",vary_scale:"off",border_radius:"0px",padding_top:0,padding_bottom:0},navigation:{keyboardNavigation:"off",keyboard_direction:"horizontal",mouseScrollNavigation:"off",onHoverStop:"on",touch:{touchenabled:"off",touchOnDesktop:"off",swipe_treshold:75,swipe_min_touches:1,drag_block_vertical:!1,swipe_direction:"horizontal"},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,tmp:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{container:"slider",rtl:!1,style:"",enable:!1,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"left",v_align:"center",space:0,h_offset:20,v_offset:0,tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"left",v_align:"center",h_offset:20,v_offset:0},tabs:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"#f5f5f5",wrapper_opacity:1,tmp:'<span class="tp-tab-image"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!0,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"left",v_align:"center",h_offset:20,v_offset:0}},extensions:"extensions/",extensions_suffix:".min.js",debugMode:!1};return i=jQuery.extend(!0,{},e,i),this.each(function(){var e=jQuery(this);i.minHeight=i.minHeight!=undefined?parseInt(i.minHeight,0):i.minHeight,i.scrolleffect.on="on"===i.scrolleffect.fade||"on"===i.scrolleffect.scale||"on"===i.scrolleffect.blur||"on"===i.scrolleffect.grayscale,"hero"==i.sliderType&&e.find(">ul>li").each(function(e){0<e&&jQuery(this).remove()}),i.jsFileLocation=i.jsFileLocation||getScriptLocation("themepunch.revolution.min.js"),i.jsFileLocation=i.jsFileLocation+i.extensions,i.scriptsneeded=getNeededScripts(i,e),i.curWinRange=0,i.rtl=!0,i.navigation!=undefined&&i.navigation.touch!=undefined&&(i.navigation.touch.swipe_min_touches=5<i.navigation.touch.swipe_min_touches?1:i.navigation.touch.swipe_min_touches),jQuery(this).on("scriptsloaded",function(){if(i.modulesfailing)return e.html('<div style="margin:auto;line-height:40px;font-size:14px;color:#fff;padding:15px;background:#e74c3c;margin:20px 0px;">!! Error at loading Slider Revolution 5.0 Extrensions.'+i.errorm+"</div>").show(),!1;_R.migration!=undefined&&(i=_R.migration(e,i)),punchgs.force3D=!0,"on"!==i.simplifyAll&&punchgs.TweenLite.lagSmoothing(1e3,16),prepareOptions(e,i),initSlider(e,i)}),e[0].opt=i,waitForScripts(e,i)})},getRSVersion:function(e){if(!0===e)return jQuery("body").data("tp_rs_version");var i=jQuery("body").data("tp_rs_version"),t="";for(var a in t+="---------------------------------------------------------\n",t+=" Currently Loaded Slider Revolution & SR Modules :\n",t+="---------------------------------------------------------\n",i)t+=i[a].alias+": "+i[a].ver+"\n";return t+="---------------------------------------------------------\n"},revremoveslide:function(r){return this.each(function(){var e=jQuery(this),i=e[0].opt;if(!(r<0||r>i.slideamount)&&e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&i&&0<i.li.length&&(0<r||r<=i.li.length)){var t=jQuery(i.li[r]),a=t.data("index"),n=!1;i.slideamount=i.slideamount-1,i.realslideamount=i.realslideamount-1,removeNavWithLiref(".tp-bullet",a,i),removeNavWithLiref(".tp-tab",a,i),removeNavWithLiref(".tp-thumb",a,i),t.hasClass("active-revslide")&&(n=!0),t.remove(),i.li=removeArray(i.li,r),i.carousel&&i.carousel.slides&&(i.carousel.slides=removeArray(i.carousel.slides,r)),i.thumbs=removeArray(i.thumbs,r),_R.updateNavIndexes&&_R.updateNavIndexes(i),n&&e.revnext(),punchgs.TweenLite.set(i.li,{minWidth:"99%"}),punchgs.TweenLite.set(i.li,{minWidth:"100%"})}})},revaddcallback:function(e){return this.each(function(){this.opt&&(this.opt.callBackArray===undefined&&(this.opt.callBackArray=new Array),this.opt.callBackArray.push(e))})},revgetparallaxproc:function(){return jQuery(this)[0].opt.scrollproc},revdebugmode:function(){return this.each(function(){var e=jQuery(this);e[0].opt.debugMode=!0,containerResized(e,e[0].opt)})},revscroll:function(i){return this.each(function(){var e=jQuery(this);jQuery("body,html").animate({scrollTop:e.offset().top+e.height()-i+"px"},{duration:400})})},revredraw:function(e){return this.each(function(){var e=jQuery(this);containerResized(e,e[0].opt)})},revkill:function(e){var i=this,t=jQuery(this);if(punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements),t!=undefined&&0<t.length&&0<jQuery("body").find("#"+t.attr("id")).length){t.data("conthover",1),t.data("conthover-changed",1),t.trigger("revolution.slide.onpause");var a=t.parent().find(".tp-bannertimer"),n=t[0].opt;n.tonpause=!0,t.trigger("stoptimer");var r="resize.revslider-"+t.attr("id");jQuery(window).unbind(r),punchgs.TweenLite.killTweensOf(t.find("*"),!1),punchgs.TweenLite.killTweensOf(t,!1),t.unbind("hover, mouseover, mouseenter,mouseleave, resize");r="resize.revslider-"+t.attr("id");jQuery(window).off(r),t.find("*").each(function(){var e=jQuery(this);e.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),e.off("on, hover, mouseenter,mouseleave,mouseover, resize"),e.data("mySplitText",null),e.data("ctl",null),e.data("tween")!=undefined&&e.data("tween").kill(),e.data("kenburn")!=undefined&&e.data("kenburn").kill(),e.data("timeline_out")!=undefined&&e.data("timeline_out").kill(),e.data("timeline")!=undefined&&e.data("timeline").kill(),e.remove(),e.empty(),e=null}),punchgs.TweenLite.killTweensOf(t.find("*"),!1),punchgs.TweenLite.killTweensOf(t,!1),a.remove();try{t.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(e){}try{t.closest(".rev_slider_wrapper").remove()}catch(e){}try{t.remove()}catch(e){}return t.empty(),t.html(),n=t=null,delete i.c,delete i.opt,delete i.container,!0}return!1},revpause:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&(e.data("conthover",1),e.data("conthover-changed",1),e.trigger("revolution.slide.onpause"),e[0].opt.tonpause=!0,e.trigger("stoptimer"))})},revresume:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&(e.data("conthover",0),e.data("conthover-changed",1),e.trigger("revolution.slide.onresume"),e[0].opt.tonpause=!1,e.trigger("starttimer"))})},revstart:function(){var e=jQuery(this);if(e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&e[0].opt!==undefined)return e[0].opt.sliderisrunning?(console.log("Slider Is Running Already"),!1):((e[0].opt.c=e)[0].opt.ul=e.find(">ul"),runSlider(e,e[0].opt),!0)},revnext:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,1)})},revprev:function(){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,-1)})},revmaxslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revcurrentslide:function(){var e=jQuery(this);if(e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length)return parseInt(e[0].opt.act,0)+1},revlastslide:function(){return jQuery(this).find(".tp-revslider-mainul >li").length},revshowslide:function(i){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,"to"+(i-1))})},revcallslidewithid:function(i){return this.each(function(){var e=jQuery(this);e!=undefined&&0<e.length&&0<jQuery("body").find("#"+e.attr("id")).length&&_R.callingNewSlide(e,i)})}});var _R=jQuery.fn.revolution;jQuery.extend(!0,_R,{getversion:function(){return version},compare_version:function(e){var i=jQuery("body").data("tp_rs_version");return(i=i===undefined?new Object:i).Core===undefined&&(i.Core=new Object,i.Core.alias="Slider Revolution Core",i.Core.name="jquery.themepunch.revolution.min.js",i.Core.ver=_R.getversion().core),"stop"!=e.check&&(_R.getversion().core<e.min_core?(e.check===undefined&&(console.log("%cSlider Revolution Warning (Core:"+_R.getversion().core+")","color:#c0392b;font-weight:bold;"),console.log("%c Core is older than expected ("+e.min_core+") from "+e.alias,"color:#333"),console.log("%c Please update Slider Revolution to the latest version.","color:#333"),console.log("%c It might be required to purge and clear Server/Client side Caches.","color:#333")),e.check="stop"):_R.getversion()[e.name]!=undefined&&e.version<_R.getversion()[e.name]&&(e.check===undefined&&(console.log("%cSlider Revolution Warning (Core:"+_R.getversion().core+")","color:#c0392b;font-weight:bold;"),console.log("%c "+e.alias+" ("+e.version+") is older than requiered ("+_R.getversion()[e.name]+")","color:#333"),console.log("%c Please update Slider Revolution to the latest version.","color:#333"),console.log("%c It might be required to purge and clear Server/Client side Caches.","color:#333")),e.check="stop")),i[e.alias]===undefined&&(i[e.alias]=new Object,i[e.alias].alias=e.alias,i[e.alias].ver=e.version,i[e.alias].name=e.name),jQuery("body").data("tp_rs_version",i),e},currentSlideIndex:function(e){var i=e.c.find(".active-revslide").index();return i=-1==i?0:i},simp:function(e,i,t){var a=Math.abs(e)-Math.floor(Math.abs(e/i))*i;return t?a:e<0?-1*a:a},iOSVersion:function(){var e=!1;return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)?navigator.userAgent.match(/OS 4_\d like Mac OS X/i)&&(e=!0):e=!1,e},isIE:function(e,i){var t=jQuery('<div style="display:none;"/>').appendTo(jQuery("body"));t.html("\x3c!--[if "+(i||"")+" IE "+(e||"")+"]><a> </a><![endif]--\x3e");var a=t.find("a").length;return t.remove(),a},is_mobile:function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"],i=!1;for(var t in e)1<navigator.userAgent.split(e[t]).length&&(i=!0);return i},is_android:function(){var e=["android","Android"],i=!1;for(var t in e)1<navigator.userAgent.split(e[t]).length&&(i=!0);return i},callBackHandling:function(e,t,a){try{e.callBackArray&&jQuery.each(e.callBackArray,function(e,i){i&&i.inmodule&&i.inmodule===t&&i.atposition&&i.atposition===a&&i.callback&&i.callback.call()})}catch(e){console.log("Call Back Failed")}},get_browser:function(){var e,i=navigator.appName,t=navigator.userAgent,a=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=t.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[i,navigator.appVersion,"-?"])[0]},get_browser_version:function(){var e,i=navigator.appName,t=navigator.userAgent,a=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=t.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[i,navigator.appVersion,"-?"])[1]},isSafari11:function(){var e=jQuery.trim(_R.get_browser().toLowerCase());return-1===jQuery.trim(navigator.userAgent.toLowerCase()).search("edge")&&"msie"!==e&&e.match(/safari|chrome/)},getHorizontalOffset:function(e,i){var t=gWiderOut(e,".outer-left"),a=gWiderOut(e,".outer-right");switch(i){case"left":return t;case"right":return a;case"both":return t+a}},callingNewSlide:function(e,i){var t=0<e.find(".next-revslide").length?e.find(".next-revslide").index():0<e.find(".processing-revslide").length?e.find(".processing-revslide").index():e.find(".active-revslide").index(),a=0,n=e[0].opt;e.find(".next-revslide").removeClass("next-revslide"),e.find(".active-revslide").hasClass("tp-invisible-slide")&&(t=n.last_shown_slide),i&&jQuery.isNumeric(i)||i.match(/to/g)?(a=1===i||-1===i?(a=t+i)<0?n.slideamount-1:a>=n.slideamount?0:a:(i=jQuery.isNumeric(i)?i:parseInt(i.split("to")[1],0))<0?0:i>n.slideamount-1?n.slideamount-1:i,e.find(".tp-revslider-slidesli:eq("+a+")").addClass("next-revslide")):i&&e.find(".tp-revslider-slidesli").each(function(){var e=jQuery(this);e.data("index")===i&&e.addClass("next-revslide")}),a=e.find(".next-revslide").index(),e.trigger("revolution.nextslide.waiting"),t===a&&t===n.last_shown_slide||a!==t&&-1!=a?swapSlide(e):e.find(".next-revslide").removeClass("next-revslide")},slotSize:function(e,i){i.slotw=Math.ceil(i.width/i.slots),"fullscreen"==i.sliderLayout?i.sloth=Math.ceil(jQuery(window).height()/i.slots):i.sloth=Math.ceil(i.height/i.slots),"on"==i.autoHeight&&e!==undefined&&""!==e&&(i.sloth=Math.ceil(e.height()/i.slots))},setSize:function(e){var i=(e.top_outer||0)+(e.bottom_outer||0),t=parseInt(e.carousel.padding_top||0,0),a=parseInt(e.carousel.padding_bottom||0,0),n=e.gridheight[e.curWinRange],r=0,o=-1===e.nextSlide||e.nextSlide===undefined?0:e.nextSlide;if(e.paddings=e.paddings===undefined?{top:parseInt(e.c.parent().css("paddingTop"),0)||0,bottom:parseInt(e.c.parent().css("paddingBottom"),0)||0}:e.paddings,e.rowzones&&0<e.rowzones.length)for(var s=0;s<e.rowzones[o].length;s++)r+=e.rowzones[o][s][0].offsetHeight;if(n=(n=n<e.minHeight?e.minHeight:n)<r?r:n,"fullwidth"==e.sliderLayout&&"off"==e.autoHeight&&punchgs.TweenLite.set(e.c,{maxHeight:n+"px"}),e.c.css({marginTop:t,marginBottom:a}),e.width=e.ul.width(),e.height=e.ul.height(),setScale(e),e.height=Math.round(e.gridheight[e.curWinRange]*(e.width/e.gridwidth[e.curWinRange])),e.height>e.gridheight[e.curWinRange]&&"on"!=e.autoHeight&&(e.height=e.gridheight[e.curWinRange]),"fullscreen"==e.sliderLayout||e.infullscreenmode){e.height=e.bw*e.gridheight[e.curWinRange];e.c.parent().width();var l=jQuery(window).height();if(e.fullScreenOffsetContainer!=undefined){try{var d=e.fullScreenOffsetContainer.split(",");d&&jQuery.each(d,function(e,i){l=0<jQuery(i).length?l-jQuery(i).outerHeight(!0):l})}catch(e){}try{1<e.fullScreenOffset.split("%").length&&e.fullScreenOffset!=undefined&&0<e.fullScreenOffset.length?l-=jQuery(window).height()*parseInt(e.fullScreenOffset,0)/100:e.fullScreenOffset!=undefined&&0<e.fullScreenOffset.length&&(l-=parseInt(e.fullScreenOffset,0))}catch(e){}}l=l<e.minHeight?e.minHeight:l,l-=i,e.c.parent().height(l),e.c.closest(".rev_slider_wrapper").height(l),e.c.css({height:"100%"}),e.height=l,e.minHeight!=undefined&&e.height<e.minHeight&&(e.height=e.minHeight),e.height=parseInt(r,0)>parseInt(e.height,0)?r:e.height}else e.minHeight!=undefined&&e.height<e.minHeight&&(e.height=e.minHeight),e.height=parseInt(r,0)>parseInt(e.height,0)?r:e.height,e.c.height(e.height);var c={height:t+a+i+e.height+e.paddings.top+e.paddings.bottom};e.c.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css(c),e.c.closest(".rev_slider_wrapper").css(c),setScale(e)},enterInViewPort:function(t){t.waitForCountDown&&(countDown(t.c,t),t.waitForCountDown=!1),t.waitForFirstSlide&&(swapSlide(t.c),t.waitForFirstSlide=!1,setTimeout(function(){t.c.removeClass("tp-waitforfirststart")},500)),"playing"!=t.sliderlaststatus&&t.sliderlaststatus!=undefined||t.c.trigger("starttimer"),t.lastplayedvideos!=undefined&&0<t.lastplayedvideos.length&&jQuery.each(t.lastplayedvideos,function(e,i){_R.playVideo(i,t)})},leaveViewPort:function(t){t.sliderlaststatus=t.sliderstatus,t.c.trigger("stoptimer"),t.playingvideos!=undefined&&0<t.playingvideos.length&&(t.lastplayedvideos=jQuery.extend(!0,[],t.playingvideos),t.playingvideos&&jQuery.each(t.playingvideos,function(e,i){t.leaveViewPortBasedStop=!0,_R.stopVideo&&_R.stopVideo(i,t)}))},unToggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){i.removeClass("rs-toggle-content-active")})},toggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){i.addClass("rs-toggle-content-active")})},swaptoggleState:function(e){e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){jQuery(i).hasClass("rs-toggle-content-active")?jQuery(i).removeClass("rs-toggle-content-active"):jQuery(i).addClass("rs-toggle-content-active")})},lastToggleState:function(e){var t=0;return e!=undefined&&0<e.length&&jQuery.each(e,function(e,i){t=i.hasClass("rs-toggle-content-active")}),t}});var _ISM=_R.is_mobile(),_ANDROID=_R.is_android(),checkIDS=function(e,i){if(e.anyid=e.anyid===undefined?[]:e.anyid,-1!=jQuery.inArray(i.attr("id"),e.anyid)){var t=i.attr("id")+"_"+Math.round(9999*Math.random());i.attr("id",t)}e.anyid.push(i.attr("id"))},removeArray=function(e,t){var a=[];return jQuery.each(e,function(e,i){e!=t&&a.push(i)}),a},removeNavWithLiref=function(e,i,t){t.c.find(e).each(function(){var e=jQuery(this);e.data("liref")===i&&e.remove()})},lAjax=function(i,t){return!jQuery("body").data(i)&&(t.filesystem?(t.errorm===undefined&&(t.errorm="<br>Local Filesystem Detected !<br>Put this to your header:"),console.warn("Local Filesystem detected !"),t.errorm=t.errorm+'<br><script type="text/javascript" src="'+t.jsFileLocation+i+t.extensions_suffix+'"></script>',console.warn(t.jsFileLocation+i+t.extensions_suffix+" could not be loaded !"),console.warn("Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document."),console.log(" "),!(t.modulesfailing=!0)):(jQuery.ajax({url:t.jsFileLocation+i+t.extensions_suffix+"?version="+version.core,dataType:"script",cache:!0,error:function(e){console.warn("Slider Revolution 5.0 Error !"),console.error("Failure at Loading:"+i+t.extensions_suffix+" on Path:"+t.jsFileLocation),console.info(e)}}),void jQuery("body").data(i,!0)))},getNeededScripts=function(t,e){var i=new Object,a=t.navigation;
1978lAjax("revolution.extension.carousel",t)
vendor: 25,000 bytes, line 1978
1978;return i.kenburns=!1,i.parallax=!1,i.carousel=!1,i.navigation=!1,i.videos=!1,i.actions=!1,i.layeranim=!1,i.migration=!1,e.data("version")&&e.data("version").toString().match(/5./gi)?(e.find("img").each(function(){"on"==jQuery(this).data("kenburns")&&(i.kenburns=!0)}),("carousel"==t.sliderType||"on"==a.keyboardNavigation||"on"==a.mouseScrollNavigation||"on"==a.touch.touchenabled||a.arrows.enable||a.bullets.enable||a.thumbnails.enable||a.tabs.enable)&&(i.navigation=!0),e.find(".tp-caption, .tp-static-layer, .rs-background-video-layer").each(function(){var e=jQuery(this);(e.data("ytid")!=undefined||0<e.find("iframe").length&&0<e.find("iframe").attr("src").toLowerCase().indexOf("youtube"))&&(i.videos=!0),(e.data("vimeoid")!=undefined||0<e.find("iframe").length&&0<e.find("iframe").attr("src").toLowerCase().indexOf("vimeo"))&&(i.videos=!0),e.data("actions")!==undefined&&(i.actions=!0),i.layeranim=!0}),e.find("li").each(function(){jQuery(this).data("link")&&jQuery(this).data("link")!=undefined&&(i.layeranim=!0,i.actions=!0)}),!i.videos&&(0<e.find(".rs-background-video-layer").length||0<e.find(".tp-videolayer").length||0<e.find(".tp-audiolayer").length||0<e.find("iframe").length||0<e.find("video").length)&&(i.videos=!0),"carousel"==t.sliderType&&(i.carousel=!0),("off"!==t.parallax.type||t.viewPort.enable||"true"==t.viewPort.enable||"true"===t.scrolleffect.on||t.scrolleffect.on)&&(i.parallax=!0)):(i.kenburns=!0,i.parallax=!0,i.carousel=!1,i.navigation=!0,i.videos=!0,i.actions=!0,i.layeranim=!0,i.migration=!0),"hero"==t.sliderType&&(i.carousel=!1,i.navigation=!1),window.location.href.match(/file:/gi)&&(i.filesystem=!0,t.filesystem=!0),i.videos&&void 0===_R.isVideoPlaying&&lAjax("revolution.extension.video",t),i.carousel&&void 0===_R.prepareCarousel&&lAjax("revolution.extension.carousel",t),i.carousel||void 0!==_R.animateSlide||lAjax("revolution.extension.slideanims",t),i.actions&&void 0===_R.checkActions&&lAjax("revolution.extension.actions",t),i.layeranim&&void 0===_R.handleStaticLayers&&lAjax("revolution.extension.layeranimation",t),i.kenburns&&void 0===_R.stopKenBurn&&lAjax("revolution.extension.kenburn",t),i.navigation&&void 0===_R.createNavigation&&lAjax("revolution.extension.navigation",t),i.migration&&void 0===_R.migration&&lAjax("revolution.extension.migration",t),i.parallax&&void 0===_R.checkForParallax&&lAjax("revolution.extension.parallax",t),t.addons!=undefined&&0<t.addons.length&&jQuery.each(t.addons,function(e,i){"object"==typeof i&&i.fileprefix!=undefined&&lAjax(i.fileprefix,t)}),i},waitForScripts=function(e,i){var t=!0,a=i.scriptsneeded;i.addons!=undefined&&0<i.addons.length&&jQuery.each(i.addons,function(e,i){"object"==typeof i&&i.init!=undefined&&_R[i.init]===undefined&&(t=!1)}),a.filesystem||"undefined"!=typeof punchgs&&t&&(!a.kenburns||a.kenburns&&void 0!==_R.stopKenBurn)&&(!a.navigation||a.navigation&&void 0!==_R.createNavigation)&&(!a.carousel||a.carousel&&void 0!==_R.prepareCarousel)&&(!a.videos||a.videos&&void 0!==_R.resetVideo)&&(!a.actions||a.actions&&void 0!==_R.checkActions)&&(!a.layeranim||a.layeranim&&void 0!==_R.handleStaticLayers)&&(!a.migration||a.migration&&void 0!==_R.migration)&&(!a.parallax||a.parallax&&void 0!==_R.checkForParallax)&&(a.carousel||!a.carousel&&void 0!==_R.animateSlide)?e.trigger("scriptsloaded"):setTimeout(function(){waitForScripts(e,i)},50)},getScriptLocation=function(e){var i=new RegExp("themepunch.revolution.min.js","gi"),t="";return jQuery("script").each(function(){var e=jQuery(this).attr("src");e&&e.match(i)&&(t=e)}),t=(t=(t=t.replace("jquery.themepunch.revolution.min.js","")).replace("jquery.themepunch.revolution.js","")).split("?")[0]},setCurWinRange=function(e,i){var t=9999,a=0,n=0,r=0,o=jQuery(window).width(),s=i&&9999==e.responsiveLevels?e.visibilityLevels:e.responsiveLevels;s&&s.length&&jQuery.each(s,function(e,i){o<i&&(0==a||i<a)&&(r=e,a=t=i),i<o&&a<i&&(a=i,n=e)}),a<t&&(r=n),i?e.forcedWinRange=r:e.curWinRange=r},prepareOptions=function(e,i){i.carousel.maxVisibleItems=i.carousel.maxVisibleItems<1?999:i.carousel.maxVisibleItems,i.carousel.vertical_align="top"===i.carousel.vertical_align?"0%":"bottom"===i.carousel.vertical_align?"100%":"50%"},gWiderOut=function(e,i){var t=0;return e.find(i).each(function(){var e=jQuery(this);!e.hasClass("tp-forcenotvisible")&&t<e.outerWidth()&&(t=e.outerWidth())}),t},initSlider=function(container,opt){if(container==undefined)return!1;container.data("aimg")!=undefined&&("enabled"==container.data("aie8")&&_R.isIE(8)||"enabled"==container.data("amobile")&&_ISM)&&container.html('<img class="tp-slider-alternative-image" src="'+container.data("aimg")+'">'),container.find(">ul").addClass("tp-revslider-mainul"),opt.c=container,opt.ul=container.find(".tp-revslider-mainul"),opt.ul.find(">li").each(function(e){var i=jQuery(this);"on"==i.data("hideslideonmobile")&&_ISM&&i.remove(),(i.data("invisible")||!0===i.data("invisible"))&&(i.addClass("tp-invisible-slide"),i.appendTo(opt.ul))}),opt.addons!=undefined&&0<opt.addons.length&&jQuery.each(opt.addons,function(i,obj){"object"==typeof obj&&obj.init!=undefined&&_R[obj.init](eval(obj.params))}),opt.cid=container.attr("id"),opt.ul.css({visibility:"visible"}),opt.slideamount=opt.ul.find(">li").not(".tp-invisible-slide").length,opt.realslideamount=opt.ul.find(">li").length,opt.slayers=container.find(".tp-static-layers"),opt.slayers.data("index","staticlayers"),1!=opt.waitForInit&&(container[0].opt=opt,runSlider(container,opt))},onFullScreenChange=function(){jQuery("body").data("rs-fullScreenMode",!jQuery("body").data("rs-fullScreenMode")),jQuery("body").data("rs-fullScreenMode")&&setTimeout(function(){jQuery(window).trigger("resize")},200)},runSlider=function(t,x){if(x.sliderisrunning=!0,x.ul.find(">li").each(function(e){jQuery(this).data("originalindex",e)}),x.allli=x.ul.find(">li"),jQuery.each(x.allli,function(e,i){(i=jQuery(i)).data("origindex",i.index())}),x.li=x.ul.find(">li").not(".tp-invisible-slide"),"on"==x.shuffle){var e=new Object,i=x.ul.find(">li:first-child");e.fstransition=i.data("fstransition"),e.fsmasterspeed=i.data("fsmasterspeed"),e.fsslotamount=i.data("fsslotamount");for(var a=0;a<x.slideamount;a++){var n=Math.round(Math.random()*x.slideamount);x.ul.find(">li:eq("+n+")").prependTo(x.ul)}var r=x.ul.find(">li:first-child");r.data("fstransition",e.fstransition),r.data("fsmasterspeed",e.fsmasterspeed),r.data("fsslotamount",e.fsslotamount),x.allli=x.ul.find(">li"),x.li=x.ul.find(">li").not(".tp-invisible-slide")}if(x.inli=x.ul.find(">li.tp-invisible-slide"),x.thumbs=new Array,x.slots=4,x.act=-1,x.firststart=1,x.loadqueue=new Array,x.syncload=0,x.conw=t.width(),x.conh=t.height(),1<x.responsiveLevels.length?x.responsiveLevels[0]=9999:x.responsiveLevels=9999,jQuery.each(x.allli,function(e,i){var t=(i=jQuery(i)).find(".rev-slidebg")||i.find("img").first(),a=0;i.addClass("tp-revslider-slidesli"),i.data("index")===undefined&&i.data("index","rs-"+Math.round(999999*Math.random()));var n=new Object;n.params=new Array,n.id=i.data("index"),n.src=i.data("thumb")!==undefined?i.data("thumb"):t.data("lazyload")!==undefined?t.data("lazyload"):t.attr("src"),i.data("title")!==undefined&&n.params.push({from:RegExp("\\{\\{title\\}\\}","g"),to:i.data("title")}),i.data("description")!==undefined&&n.params.push({from:RegExp("\\{\\{description\\}\\}","g"),to:i.data("description")});for(a=1;a<=10;a++)i.data("param"+a)!==undefined&&n.params.push({from:RegExp("\\{\\{param"+a+"\\}\\}","g"),to:i.data("param"+a)});if(x.thumbs.push(n),i.data("link")!=undefined){var r=i.data("link"),o=i.data("target")||"_self",s="back"===i.data("slideindex")?0:60,l=i.data("linktoslide"),d=l;l!=undefined&&"next"!=l&&"prev"!=l&&x.allli.each(function(){var e=jQuery(this);e.data("origindex")+1==d&&(l=e.data("index"))}),"slide"!=r&&(l="no");var c='<div class="tp-caption slidelink" style="cursor:pointer;width:100%;height:100%;z-index:'+s+';" data-x="center" data-y="center" data-basealign="slide" ',u=' data-frames=\'[{"delay":0,"speed":100,"frame":"0","from":"opacity:0;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"opacity:0;","ease":"Power3.easeInOut"}]\'';c="no"==l?c+u+" >":c+"data-actions='"+("scroll_under"===l?'[{"event":"click","action":"scrollbelow","offset":"100px","delay":"0"}]':"prev"===l?'[{"event":"click","action":"jumptoslide","slide":"prev","delay":"0.2"}]':"next"===l?'[{"event":"click","action":"jumptoslide","slide":"next","delay":"0.2"}]':'[{"event":"click","action":"jumptoslide","slide":"'+l+'","delay":"0.2"}]')+"'"+u+" >",c+='<a style="width:100%;height:100%;display:block"',c="slide"!=r?c+' target="'+o+'" href="'+r+'"':c,c+='><span style="width:100%;height:100%;display:block"></span></a></div>',i.append(c)}}),x.rle=x.responsiveLevels.length||1,x.gridwidth=cArray(x.gridwidth,x.rle),x.gridheight=cArray(x.gridheight,x.rle),"on"==x.simplifyAll&&(_R.isIE(8)||_R.iOSVersion())&&(t.find(".tp-caption").each(function(){var e=jQuery(this);e.removeClass("customin customout").addClass("fadein fadeout"),e.data("splitin",""),e.data("speed",400)}),x.allli.each(function(){var e=jQuery(this);e.data("transition","fade"),e.data("masterspeed",500),e.data("slotamount",1),(e.find(".rev-slidebg")||e.find(">img").first()).data("kenburns","off")})),x.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),x.autoHeight="fullscreen"==x.sliderLayout?"on":x.autoHeight,"fullwidth"==x.sliderLayout&&"off"==x.autoHeight&&t.css({maxHeight:x.gridheight[x.curWinRange]+"px"}),"auto"!=x.sliderLayout&&0==t.closest(".forcefullwidth_wrapper_tp_banner").length&&("fullscreen"!==x.sliderLayout||"on"!=x.fullScreenAutoWidth)){var o=t.parent(),s=o.css("marginBottom"),l=o.css("marginTop"),d=t.attr("id")+"_forcefullwidth";s=s===undefined?0:s,l=l===undefined?0:l,o.wrap('<div class="forcefullwidth_wrapper_tp_banner" id="'+d+'" style="position:relative;width:100%;height:auto;margin-top:'+l+";margin-bottom:"+s+'"></div>'),t.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:'+t.height()+'px"></div>'),t.parent().css({marginTop:"0px",marginBottom:"0px"}),t.parent().css({position:"absolute"})}if(x.shadow!==undefined&&0<x.shadow&&(t.parent().addClass("tp-shadow"+x.shadow),t.parent().append('<div class="tp-shadowcover"></div>'),t.parent().find(".tp-shadowcover").css({backgroundColor:t.parent().css("backgroundColor"),backgroundImage:t.parent().css("backgroundImage")})),setCurWinRange(x),setCurWinRange(x,!0),!t.hasClass("revslider-initialised")){t.addClass("revslider-initialised"),t.addClass("tp-simpleresponsive"),t.attr("id")==undefined&&t.attr("id","revslider-"+Math.round(1e3*Math.random()+5)),checkIDS(x,t),x.firefox13=!1,x.ie=!jQuery.support.opacity,x.ie9=9==document.documentMode,x.origcd=x.delay;var c=jQuery.fn.jquery.split("."),u=parseFloat(c[0]),p=parseFloat(c[1]);parseFloat(c[2]||"0");1==u&&p<7&&t.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+c+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),1<u&&(x.ie=!1);var j=new Object;j.addedyt=0,j.addedvim=0,j.addedvid=0,x.scrolleffect.on&&(x.scrolleffect.layers=new Array),t.find(".tp-caption, .rs-background-video-layer").each(function(e){var n=jQuery(this),i=n.data(),t=i.autoplayonlyfirsttime,a=i.autoplay,r=(i.videomp4!==undefined||i.videowebm!==undefined||i.videoogv,n.hasClass("tp-audiolayer")),o=i.videoloop,s=!0,l=!1;i.startclasses=n.attr("class"),i.isparallaxlayer=0<=i.startclasses.indexOf("rs-parallax"),n.hasClass("tp-static-layer")&&_R.handleStaticLayers&&(_R.handleStaticLayers(n,x),x.scrolleffect.on&&("on"===x.scrolleffect.on_parallax_static_layers&&i.isparallaxlayer||"on"===x.scrolleffect.on_static_layers&&!i.isparallaxlayer)&&(l=!0),s=!1);var d=n.data("noposteronmobile")||n.data("noPosterOnMobile")||n.data("posteronmobile")||n.data("posterOnMobile")||n.data("posterOnMObile");n.data("noposteronmobile",d);var c=0;if(n.find("iframe").each(function(){punchgs.TweenLite.set(jQuery(this),{autoAlpha:0}),c++}),0<c&&n.data("iframes",!0),n.hasClass("tp-caption")){var u=n.hasClass("slidelink")?"width:100% !important;height:100% !important;":"",p=n.data(),f="",h=p.type,g="row"===h||"column"===h?"relative":"absolute",v="";"row"===h?(n.addClass("rev_row").removeClass("tp-resizeme"),v="rev_row_wrap"):"column"===h?(f=p.verticalalign===undefined?" vertical-align:bottom;":" vertical-align:"+p.verticalalign+";",v="rev_column",n.addClass("rev_column_inner").removeClass("tp-resizeme"),n.data("width","auto"),punchgs.TweenLite.set(n,{width:"auto"})):"group"===h&&n.removeClass("tp-resizeme");var m="",y="";"row"!==h&&"group"!==h&&"column"!==h?(m="display:"+n.css("display")+";",0<n.closest(".rev_column").length?(n.addClass("rev_layer_in_column"),s=!1):0<n.closest(".rev_group").length&&(n.addClass("rev_layer_in_group"),s=!1)):"column"===h&&(s=!1),p.wrapper_class!==undefined&&(v=v+" "+p.wrapper_class),p.wrapper_id!==undefined&&(y='id="'+p.wrapper_id+'"');var w="";n.hasClass("tp-no-events")&&(w=";pointer-events:none"),n.wrap("<div "+y+' class="tp-parallax-wrap '+v+'" style="'+f+" "+u+"position:"+g+";"+m+";visibility:hidden"+w+'"><div class="tp-loop-wrap" style="'+u+"position:"+g+";"+m+';"><div class="tp-mask-wrap" style="'+u+"position:"+g+";"+m+';" ></div></div></div>'),s&&x.scrolleffect.on&&("on"===x.scrolleffect.on_parallax_layers&&i.isparallaxlayer||"on"===x.scrolleffect.on_layers&&!i.isparallaxlayer)&&x.scrolleffect.layers.push(n.parent()),l&&x.scrolleffect.layers.push(n.parent()),"column"===h&&(n.append('<div class="rev_column_bg rev_column_bg_man_sized" style="visibility:hidden"></div>'),n.closest(".tp-parallax-wrap").append('<div class="rev_column_bg rev_column_bg_auto_sized"></div>'));var b=n.closest(".tp-loop-wrap");jQuery.each(["pendulum","rotate","slideloop","pulse","wave"],function(e,i){var t=n.find(".rs-"+i),a=t.data()||"";""!=a&&(b.data(a),b.addClass("rs-"+i),t.children(0).unwrap(),n.data("loopanimation","on"))}),n.attr("id")===undefined&&n.attr("id","layer-"+Math.round(999999999*Math.random())),checkIDS(x,n),punchgs.TweenLite.set(n,{visibility:"hidden"})}var _=n.data("actions");_!==undefined&&_R.checkActions(n,x,_),checkHoverDependencies(n,x),_R.checkVideoApis&&(j=_R.checkVideoApis(n,x,j)),r||1!=t&&"true"!=t&&"1sttime"!=a||"loopandnoslidestop"==o||n.closest("li.tp-revslider-slidesli").addClass("rs-pause-timer-once"),r||1!=a&&"true"!=a&&"on"!=a&&"no1sttime"!=a||"loopandnoslidestop"==o||n.closest("li.tp-revslider-slidesli").addClass("rs-pause-timer-always")}),t[0].addEventListener("mouseenter",function(){t.trigger("tp-mouseenter"),x.overcontainer=!0},{passive:!0}),t[0].addEventListener("mouseover",function(){t.trigger("tp-mouseover"),x.overcontainer=!0},{passive:!0}),t[0].addEventListener("mouseleave",function(){t.trigger("tp-mouseleft"),x.overcontainer=!1},{passive:!0}),t.find(".tp-caption video").each(function(e){var i=jQuery(this);i.removeClass("video-js vjs-default-skin"),i.attr("preload",""),i.css({display:"none"})}),"standard"!==x.sliderType&&(x.lazyType="all"),loadImages(t.find(".tp-static-layers"),x,0,!0),waitForCurrentImages(t.find(".tp-static-layers"),x,function(){t.find(".tp-static-layers img").each(function(){var e=jQuery(this),i=e.data("lazyload")!=undefined?e.data("lazyload"):e.attr("src"),t=getLoadObj(x,i);e.attr("src",t.src)})}),x.rowzones=[],x.allli.each(function(e){var i=jQuery(this);x.rowzones[e]=[],i.find(".rev_row_zone").each(function(){x.rowzones[e].push(jQuery(this))}),"all"!=x.lazyType&&("smart"!=x.lazyType||0!=e&&1!=e&&e!=x.slideamount&&e!=x.slideamount-1)||(loadImages(i,x,e),waitForCurrentImages(i,x,function(){}))});var f=getUrlVars("#")[0];if(f.length<9&&1<f.split("slide").length){var h=parseInt(f.split("slide")[1],0);h<1&&(h=1),h>x.slideamount&&(h=x.slideamount),x.startWithSlide=h-1}t.append('<div class="tp-loader '+x.spinner+'"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>'),x.loader=t.find(".tp-loader"),0===t.find(".tp-bannertimer").length&&t.append('<div class="tp-bannertimer" style="visibility:hidden"></div>'),t.find(".tp-bannertimer").css({width:"0%"}),x.ul.css({display:"block"}),prepareSlides(t,x),("off"!==x.parallax.type||x.scrolleffect.on)&&_R.checkForParallax&&_R.checkForParallax(t,x),_R.setSize(x),"hero"!==x.sliderType&&_R.createNavigation&&_R.createNavigation(t,x),_R.resizeThumbsTabs&&_R.resizeThumbsTabs&&_R.resizeThumbsTabs(x),contWidthManager(x);var g=x.viewPort;x.inviewport=!1,g!=undefined&&g.enable&&(jQuery.isNumeric(g.visible_area)||-1!==g.visible_area.indexOf("%")&&(g.visible_area=parseInt(g.visible_area)/100),_R.scrollTicker&&_R.scrollTicker(x,t)),"carousel"===x.sliderType&&_R.prepareCarousel&&(punchgs.TweenLite.set(x.ul,{opacity:0}),_R.prepareCarousel(x,new punchgs.TimelineLite,undefined,0),x.onlyPreparedSlide=!0),setTimeout(function(){if(!g.enable||g.enable&&x.inviewport||g.enable&&!x.inviewport&&"wait"==!g.outof)swapSlide(t);else if(x.c.addClass("tp-waitforfirststart"),x.waitForFirstSlide=!0,g.presize){var e=jQuery(x.li[0]);loadImages(e,x,0,!0),waitForCurrentImages(e.find(".tp-layers"),x,function(){_R.animateTheCaptions({slide:e,opt:x,preset:!0})})}_R.manageNavigation&&_R.manageNavigation(x),1<x.slideamount&&(!g.enable||g.enable&&x.inviewport?countDown(t,x):x.waitForCountDown=!0),setTimeout(function(){t.trigger("revolution.slide.onloaded")},100)},x.startDelay),x.startDelay=0,jQuery("body").data("rs-fullScreenMode",!1),window.addEventListener("fullscreenchange",onFullScreenChange,{passive:!0}),window.addEventListener("mozfullscreenchange",onFullScreenChange,{passive:!0}),window.addEventListener("webkitfullscreenchange",onFullScreenChange,{passive:!0});var v="resize.revslider-"+t.attr("id");jQuery(window).on(v,function(){if(t==undefined)return!1;0!=jQuery("body").find(t)&&contWidthManager(x);var e=!1;if("fullscreen"==x.sliderLayout){var i=jQuery(window).height();"mobile"==x.fallbacks.ignoreHeightChanges&&_ISM||"always"==x.fallbacks.ignoreHeightChanges?(x.fallbacks.ignoreHeightChangesSize=x.fallbacks.ignoreHeightChangesSize==undefined?0:x.fallbacks.ignoreHeightChangesSize,e=i!=x.lastwindowheight&&Math.abs(i-x.lastwindowheight)>x.fallbacks.ignoreHeightChangesSize):e=i!=x.lastwindowheight}(t.outerWidth(!0)!=x.width||t.is(":hidden")||e)&&(x.lastwindowheight=jQuery(window).height(),containerResized(t,x))}),hideSliderUnder(t,x),contWidthManager(x),x.fallbacks.disableFocusListener||"true"==x.fallbacks.disableFocusListener||!0===x.fallbacks.disableFocusListener||(t.addClass("rev_redraw_on_blurfocus"),tabBlurringCheck())}},cArray=function(e,i){if(!jQuery.isArray(e)){var t=e;(e=new Array).push(t)}if(e.length<i){t=e[e.length-1];for(var a=0;a<i-e.length+2;a++)e.push(t)}return e},checkHoverDependencies=function(e,n){var i=e.data();("sliderenter"===i.start||i.frames!==undefined&&i.frames[0]!=undefined&&"sliderenter"===i.frames[0].delay)&&(n.layersonhover===undefined&&(n.c.on("tp-mouseenter",function(){n.layersonhover&&jQuery.each(n.layersonhover,function(e,i){var t=i.data("closestli")||i.closest(".tp-revslider-slidesli"),a=i.data("staticli")||i.closest(".tp-static-layers");i.data("closestli")===undefined&&(i.data("closestli",t),i.data("staticli",a)),(0<t.length&&t.hasClass("active-revslide")||t.hasClass("processing-revslide")||0<a.length)&&(i.data("animdirection","in"),_R.playAnimationFrame&&_R.playAnimationFrame({caption:i,opt:n,frame:"frame_0",triggerdirection:"in",triggerframein:"frame_0",triggerframeout:"frame_999"}),i.data("triggerstate","on"))})}),n.c.on("tp-mouseleft",function(){n.layersonhover&&jQuery.each(n.layersonhover,function(e,i){i.data("animdirection","out"),i.data("triggered",!0),i.data("triggerstate","off"),_R.stopVideo&&_R.stopVideo(i,n),_R.playAnimationFrame&&_R.playAnimationFrame({caption:i,opt:n,frame:"frame_999",triggerdirection:"out",triggerframein:"frame_0",triggerframeout:"frame_999"})})}),n.layersonhover=new Array),n.layersonhover.push(e))},contWidthManager=function(e){var i=_R.getHorizontalOffset(e.c,"left");if("auto"==e.sliderLayout||"fullscreen"===e.sliderLayout&&"on"==e.fullScreenAutoWidth)"fullscreen"==e.sliderLayout&&"on"==e.fullScreenAutoWidth?punchgs.TweenLite.set(e.ul,{left:0,width:e.c.width()}):punchgs.TweenLite.set(e.ul,{left:i,width:e.c.width()-_R.getHorizontalOffset(e.c,"both")});else{var t=Math.ceil(e.c.closest(".forcefullwidth_wrapper_tp_banner").offset().left-i);punchgs.TweenLite.set(e.c.parent(),{left:0-t+"px",width:jQuery(window).width()-_R.getHorizontalOffset(e.c,"both")})}e.slayers&&"fullwidth"!=e.sliderLayout&&"fullscreen"!=e.sliderLayout&&punchgs.TweenLite.set(e.slayers,{left:i})},cv=function(e,i){return e===undefined?i:e},hideSliderUnder=function(e,i,t){var a=e.parent();jQuery(window).width()<i.hideSliderAtLimit?(e.trigger("stoptimer"),"none"!=a.css("display")&&a.data("olddisplay",a.css("display")),a.css({display:"none"})):e.is(":hidden")&&t&&(a.data("olddisplay")!=undefined&&"undefined"!=a.data("olddisplay")&&"none"!=a.data("olddisplay")?a.css({display:a.data("olddisplay")}):a.css({display:"block"}),e.trigger("restarttimer"),setTimeout(function(){containerResized(e,i)},150)),_R.hideUnHideNav&&_R.hideUnHideNav(i)},containerResized=function(e,i){if(e.trigger("revolution.slide.beforeredraw"),1==i.infullscreenmode&&(i.minHeight=jQuery(window).height()),setCurWinRange(i),setCurWinRange(i,!0),!_R.resizeThumbsTabs||!0===_R.resizeThumbsTabs(i)){if(hideSliderUnder(e,i,!0),contWidthManager(i),"carousel"==i.sliderType&&_R.prepareCarousel(i,!0),e===undefined)return!1;_R.setSize(i),i.conw=i.c.width(),i.conh=i.infullscreenmode?i.minHeight:i.c.height();var t=e.find(".active-revslide .slotholder"),a=e.find(".processing-revslide .slotholder");removeSlots(e,i,e,2),"standard"===i.sliderType&&(punchgs.TweenLite.set(a.find(".defaultimg"),{opacity:0}),t.find(".defaultimg").css({opacity:1})),"carousel"===i.sliderType&&i.lastconw!=i.conw&&(clearTimeout(i.pcartimer),i.pcartimer=setTimeout(function(){_R.prepareCarousel(i,!0),"carousel"==i.sliderType&&"on"===i.carousel.showLayersAllTime&&jQuery.each(i.li,function(e){_R.animateTheCaptions({slide:jQuery(i.li[e]),opt:i,recall:!0})})},100),i.lastconw=i.conw),_R.manageNavigation&&_R.manageNavigation(i),_R.animateTheCaptions&&0<e.find(".active-revslide").length&&_R.animateTheCaptions({slide:e.find(".active-revslide"),opt:i,recall:!0}),"on"==a.data("kenburns")&&_R.startKenBurn(a,i,a.data("kbtl")!==undefined?a.data("kbtl").progress():0),"on"==t.data("kenburns")&&_R.startKenBurn(t,i,t.data("kbtl")!==undefined?t.data("kbtl").progress():0),_R.animateTheCaptions&&0<e.find(".processing-revslide").length&&_R.animateTheCaptions({slide:e.find(".processing-revslide"),opt:i,recall:!0}),_R.manageNavigation&&_R.manageNavigation(i)}e.trigger("revolution.slide.afterdraw")},setScale=function(e){e.bw=e.width/e.gridwidth[e.curWinRange],e.bh=e.height/e.gridheight[e.curWinRange],e.bh>e.bw?e.bh=e.bw:e.bw=e.bh,(1<e.bh||1<e.bw)&&(e.bw=1,e.bh=1)},prepareSlides=function(e,u){if(e.find(".tp-caption").each(function(){var e=jQuery(this);e.data("transition")!==undefined&&e.addClass(e.data("transition"))}),u.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:e.parent().css("maxHeight")}),"on"==u.autoHeight&&(u.ul.css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"}),e.css({maxHeight:"none"}),e.parent().css({maxHeight:"none"})),u.allli.each(function(e){var i=jQuery(this),t=i.data("originalindex");(u.startWithSlide!=undefined&&t==u.startWithSlide||u.startWithSlide===undefined&&0==e)&&i.addClass("next-revslide"),i.css({width:"100%",height:"100%",overflow:"hidden"})}),"carousel"===u.sliderType){u.ul.css({overflow:"visible"}).wrap('<div class="tp-carousel-wrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden;"></div>');var i='<div style="clear:both;display:block;width:100%;height:1px;position:relative;margin-bottom:-1px"></div>';u.c.parent().prepend(i),u.c.parent().append(i),_R.prepareCarousel(u)}e.parent().css({overflow:"visible"}),u.allli.find(">img").each(function(e){var i=jQuery(this),t=i.closest("li"),a=t.find(".rs-background-video-layer");a.addClass("defaultvid").css({zIndex:30}),i.addClass("defaultimg"),"on"==u.fallbacks.panZoomDisableOnMobile&&_ISM&&(i.data("kenburns","off"),i.data("bgfit","cover"));var n=t.data("mediafilter");n="none"===n||n===undefined?"":n,i.wrap('<div class="slotholder" style="position:absolute; top:0px; left:0px; z-index:0;width:100%;height:100%;"></div>'),a.appendTo(t.find(".slotholder"));var r=i.data();i.closest(".slotholder").data(r),0<a.length&&r.bgparallax!=undefined&&(a.data("bgparallax",r.bgparallax),a.data("showcoveronpause","on")),"none"!=u.dottedOverlay&&u.dottedOverlay!=undefined&&i.closest(".slotholder").append('<div class="tp-dottedoverlay '+u.dottedOverlay+'"></div>');var o=i.attr("src");r.src=o,r.bgfit=r.bgfit||"cover",r.bgrepeat=r.bgrepeat||"no-repeat",r.bgposition=r.bgposition||"center center"
1978;i.closest(".slotholder");var s=i.data("bgcolor"),l="";l=s!==undefined&&0<=s.indexOf("gradient")?'"background:'+s+';width:100%;height:100%;"':'"background-color:'+s+";background-repeat:"+r.bgrepeat+";background-image:url("+o+");background-size:"+r.bgfit+";background-position:"+r.bgposition+';
vendor: 19,215 bytes, line 1978
1978width:100%;height:100%;"',i.data("mediafilter",n),n="on"===i.data("kenburns")?"":n;var d=jQuery('<div class="tp-bgimg defaultimg '+n+'" data-bgcolor="'+s+'" style='+l+"></div>");i.parent().append(d);var c=document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+i.get(0).outerHTML);i.replaceWith(c),d.data(r),d.attr("src",o),"standard"!==u.sliderType&&"undefined"!==u.sliderType||d.css({opacity:0})}),u.scrolleffect.on&&"on"===u.scrolleffect.on_slidebg&&(u.allslotholder=new Array,u.allli.find(".slotholder").each(function(){jQuery(this).wrap('<div style="display:block;position:absolute;top:0px;left:0px;width:100%;height:100%" class="slotholder_fadeoutwrap"></div>')}),u.allslotholder=u.c.find(".slotholder_fadeoutwrap"))},removeSlots=function(e,i,t,a){i.removePrepare=i.removePrepare+a,t.find(".slot, .slot-circle-wrapper").each(function(){jQuery(this).remove()}),i.transition=0,i.removePrepare=0},cutParams=function(e){var i=e;return e!=undefined&&0<e.length&&(i=e.split("?")[0]),i},relativeRedir=function(e){return location.pathname.replace(/(.*)\/[^/]*/,"$1/"+e)},abstorel=function(e,i){var t=e.split("/"),a=i.split("/");t.pop();for(var n=0;n<a.length;n++)"."!=a[n]&&(".."==a[n]?t.pop():t.push(a[n]));return t.join("/")},imgLoaded=function(l,e,d){e.syncload--,e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){var t=i.src.replace(/\.\.\/\.\.\//gi,""),a=self.location.href,n=document.location.origin,r=a.substring(0,a.length-1)+"/"+t,o=n+"/"+t,s=abstorel(self.location.href,i.src);a=a.substring(0,a.length-1)+t,(cutParams(n+=t)===cutParams(decodeURIComponent(l.src))||cutParams(a)===cutParams(decodeURIComponent(l.src))||cutParams(s)===cutParams(decodeURIComponent(l.src))||cutParams(o)===cutParams(decodeURIComponent(l.src))||cutParams(r)===cutParams(decodeURIComponent(l.src))||cutParams(i.src)===cutParams(decodeURIComponent(l.src))||cutParams(i.src).replace(/^.*\/\/[^\/]+/,"")===cutParams(decodeURIComponent(l.src)).replace(/^.*\/\/[^\/]+/,"")||"file://"===window.location.origin&&cutParams(l.src).match(new RegExp(t)))&&(i.progress=d,i.width=l.width,i.height=l.height)}),progressImageLoad(e)},progressImageLoad=function(a){3!=a.syncload&&a.loadqueue&&jQuery.each(a.loadqueue,function(e,i){if(i.progress.match(/prepared/g)&&a.syncload<=3){if(a.syncload++,"img"==i.type){var t=new Image;t.onload=function(){imgLoaded(this,a,"loaded"),i.error=!1},t.onerror=function(){imgLoaded(this,a,"failed"),i.error=!0},t.src=i.src}else jQuery.get(i.src,function(e){i.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),i.progress="loaded",a.syncload--,progressImageLoad(a)}).fail(function(){i.progress="failed",a.syncload--,progressImageLoad(a)});i.progress="inload"}})},addToLoadQueue=function(t,e,i,a,n){var r=!1;if(e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){i.src===t&&(r=!0)}),!r){var o=new Object;o.src=t,o.starttoload=jQuery.now(),o.type=a||"img",o.prio=i,o.progress="prepared",o.static=n,e.loadqueue.push(o)}},loadImages=function(e,a,n,r){e.find("img,.defaultimg, .tp-svg-layer").each(function(){var e=jQuery(this),i=e.data("lazyload")!==undefined&&"undefined"!==e.data("lazyload")?e.data("lazyload"):e.data("svg_src")!=undefined?e.data("svg_src"):e.attr("src"),t=e.data("svg_src")!=undefined?"svg":"img";e.data("start-to-load",jQuery.now()),addToLoadQueue(i,a,n,t,r)}),progressImageLoad(a)},getLoadObj=function(e,t){var a=new Object;return e.loadqueue&&jQuery.each(e.loadqueue,function(e,i){i.src==t&&(a=i)}),a},waitForCurrentImages=function(o,s,e){var l=!1;o.find("img,.defaultimg, .tp-svg-layer").each(function(){var e=jQuery(this),i=e.data("lazyload")!=undefined?e.data("lazyload"):e.data("svg_src")!=undefined?e.data("svg_src"):e.attr("src"),t=getLoadObj(s,i);if(e.data("loaded")===undefined&&t!==undefined&&t.progress&&t.progress.match(/loaded/g)){if(e.attr("src",t.src),"img"==t.type)if(e.hasClass("defaultimg"))_R.isIE(8)?defimg.attr("src",t.src):-1==t.src.indexOf("images/transparent.png")&&-1==t.src.indexOf("assets/transparent.png")||e.data("bgcolor")===undefined?e.css({backgroundImage:'url("'+t.src+'")'}):e.data("bgcolor")!==undefined&&e.css({background:e.data("bgcolor")}),o.data("owidth",t.width),o.data("oheight",t.height),o.find(".slotholder").data("owidth",t.width),o.find(".slotholder").data("oheight",t.height);else{var a=e.data("ww"),n=e.data("hh");e.data("owidth",t.width),e.data("oheight",t.height),a=a==undefined||"auto"==a||""==a?t.width:a,n=n==undefined||"auto"==n||""==n?t.height:n,!jQuery.isNumeric(a)&&0<a.indexOf("%")&&(n=a),e.data("ww",a),e.data("hh",n)}else"svg"==t.type&&"loaded"==t.progress&&(e.append('<div class="tp-svg-innercontainer"></div>'),e.find(".tp-svg-innercontainer").append(t.innerHTML));e.data("loaded",!0)}if(t&&t.progress&&t.progress.match(/inprogress|inload|prepared/g)&&(!t.error&&jQuery.now()-e.data("start-to-load")<5e3?l=!0:(t.progress="failed",t.reported_img||(t.reported_img=!0,console.warn(i+" Could not be loaded !")))),1==s.youtubeapineeded&&(!window.YT||YT.Player==undefined)&&(l=!0,5e3<jQuery.now()-s.youtubestarttime&&1!=s.youtubewarning)){s.youtubewarning=!0;var r="YouTube Api Could not be loaded !";"https:"===location.protocol&&(r+=" Please Check and Renew SSL Certificate !"),console.error(r),s.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c; font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+r+"</strong></div>")}if(1==s.vimeoapineeded&&!window.Vimeo&&(l=!0,5e3<jQuery.now()-s.vimeostarttime&&1!=s.vimeowarning)){s.vimeowarning=!0;r="Vimeo Api Could not be loaded !";"https:"===location.protocol&&(r+=" Please Check and Renew SSL Certificate !"),console.error(r),s.c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c; font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+r+"</strong></div>")}}),!_ISM&&s.audioqueue&&0<s.audioqueue.length&&jQuery.each(s.audioqueue,function(e,i){i.status&&"prepared"===i.status&&jQuery.now()-i.start<i.waittime&&(l=!0)}),jQuery.each(s.loadqueue,function(e,i){!0!==i.static||"loaded"==i.progress&&"failed"!==i.progress||("failed"==i.progress?i.reported||(i.reported=!0,console.warn("Static Image "+i.src+" Could not be loaded in time. Error Exists:"+i.error)):!i.error&&jQuery.now()-i.starttoload<5e3?l=!0:i.reported||(i.reported=!0,console.warn("Static Image "+i.src+" Could not be loaded within 5s! Error Exists:"+i.error)))}),l?punchgs.TweenLite.delayedCall(.18,waitForCurrentImages,[o,s,e]):punchgs.TweenLite.delayedCall(.18,e)},swapSlide=function(e){var i=e[0].opt;if(clearTimeout(i.waitWithSwapSlide),0<e.find(".processing-revslide").length)return i.waitWithSwapSlide=setTimeout(function(){swapSlide(e)},150),!1;var t=e.find(".active-revslide"),a=e.find(".next-revslide"),n=a.find(".defaultimg");if("carousel"!==i.sliderType||i.carousel.fadein||(punchgs.TweenLite.to(i.ul,1,{opacity:1}),i.carousel.fadein=!0),a.index()===t.index()&&!0!==i.onlyPreparedSlide)return a.removeClass("next-revslide"),!1;!0===i.onlyPreparedSlide&&(i.onlyPreparedSlide=!1,jQuery(i.li[0]).addClass("processing-revslide")),a.removeClass("next-revslide").addClass("processing-revslide"),-1===a.index()&&"carousel"===i.sliderType&&(a=jQuery(i.li[0])),a.data("slide_on_focus_amount",a.data("slide_on_focus_amount")+1||1),"on"==i.stopLoop&&a.index()==i.lastslidetoshow-1&&(e.find(".tp-bannertimer").css({visibility:"hidden"}),e.trigger("revolution.slide.onstop"),i.noloopanymore=1),a.index()===i.slideamount-1&&(i.looptogo=i.looptogo-1,i.looptogo<=0&&(i.stopLoop="on")),i.tonpause=!0,e.trigger("stoptimer"),i.cd=0,"off"===i.spinner&&(i.loader!==undefined?i.loader.css({display:"none"}):i.loadertimer=setTimeout(function(){i.loader!==undefined&&i.loader.css({display:"block"})},50)),loadImages(a,i,1),_R.preLoadAudio&&_R.preLoadAudio(a,i,1),waitForCurrentImages(a,i,function(){a.find(".rs-background-video-layer").each(function(){var e=jQuery(this);e.hasClass("HasListener")||(e.data("bgvideo",1),_R.manageVideoLayer&&_R.manageVideoLayer(e,i)),0==e.find(".rs-fullvideo-cover").length&&e.append('<div class="rs-fullvideo-cover"></div>')}),swapSlideProgress(n,e)})},swapSlideProgress=function(e,i){var t=i.find(".active-revslide"),a=i.find(".processing-revslide"),n=t.find(".slotholder"),r=a.find(".slotholder"),o=i[0].opt;o.tonpause=!1,o.cd=0,clearTimeout(o.loadertimer),o.loader!==undefined&&o.loader.css({display:"none"}),_R.setSize(o),_R.slotSize(e,o),_R.manageNavigation&&_R.manageNavigation(o);var s={};s.nextslide=a,s.currentslide=t,i.trigger("revolution.slide.onbeforeswap",s),o.transition=1,o.videoplaying=!1,a.data("delay")!=undefined?(o.cd=0,o.delay=a.data("delay")):o.delay=o.origcd,"true"==a.data("ssop")||!0===a.data("ssop")?o.ssop=!0:o.ssop=!1,i.trigger("nulltimer");var l=t.index(),d=a.index();o.sdir=d<l?1:0,"arrow"==o.sc_indicator&&(0==l&&d==o.slideamount-1&&(o.sdir=1),l==o.slideamount-1&&0==d&&(o.sdir=0)),o.lsdir=o.lsdir===undefined?o.sdir:o.lsdir,o.dirc=o.lsdir!=o.sdir,o.lsdir=o.sdir,t.index()!=a.index()&&1!=o.firststart&&_R.removeTheCaptions&&_R.removeTheCaptions(t,o),a.hasClass("rs-pause-timer-once")||a.hasClass("rs-pause-timer-always")?o.videoplaying=!0:i.trigger("restarttimer"),a.removeClass("rs-pause-timer-once");var c;if(o.currentSlide=t.index(),o.nextSlide=a.index(),"carousel"==o.sliderType)c=new punchgs.TimelineLite,_R.prepareCarousel(o,c),letItFree(i,r,n,a,t,c),o.transition=0,o.firststart=0;else{(c=new punchgs.TimelineLite({onComplete:function(){letItFree(i,r,n,a,t,c)}})).add(punchgs.TweenLite.set(r.find(".defaultimg"),{opacity:0})),c.pause(),_R.animateTheCaptions&&_R.animateTheCaptions({slide:a,opt:o,preset:!0}),1==o.firststart&&(punchgs.TweenLite.set(t,{autoAlpha:0}),o.firststart=0),punchgs.TweenLite.set(t,{zIndex:18}),punchgs.TweenLite.set(a,{autoAlpha:0,zIndex:20}),"prepared"==a.data("differentissplayed")&&(a.data("differentissplayed","done"),a.data("transition",a.data("savedtransition")),a.data("slotamount",a.data("savedslotamount")),a.data("masterspeed",a.data("savedmasterspeed"))),a.data("fstransition")!=undefined&&"done"!=a.data("differentissplayed")&&(a.data("savedtransition",a.data("transition")),a.data("savedslotamount",a.data("slotamount")),a.data("savedmasterspeed",a.data("masterspeed")),a.data("transition",a.data("fstransition")),a.data("slotamount",a.data("fsslotamount")),a.data("masterspeed",a.data("fsmasterspeed")),a.data("differentissplayed","prepared")),a.data("transition")==undefined&&a.data("transition","random"),0;var u=a.data("transition")!==undefined?a.data("transition").split(","):"fade",p=a.data("nexttransid")==undefined?-1:a.data("nexttransid");"on"==a.data("randomtransition")?p=Math.round(Math.random()*u.length):p+=1,p==u.length&&(p=0),a.data("nexttransid",p);var f=u[p];o.ie&&("boxfade"==f&&(f="boxslide"),"slotfade-vertical"==f&&(f="slotzoom-vertical"),"slotfade-horizontal"==f&&(f="slotzoom-horizontal")),_R.isIE(8)&&(f=11),c=_R.animateSlide(0,f,i,a,t,r,n,c),"on"==r.data("kenburns")&&(_R.startKenBurn(r,o),c.add(punchgs.TweenLite.set(r,{autoAlpha:0}))),c.pause()}_R.scrollHandling&&(_R.scrollHandling(o,!0,0),c.eventCallback("onUpdate",function(){_R.scrollHandling(o,!0,0)})),"off"!=o.parallax.type&&o.parallax.firstgo==undefined&&_R.scrollHandling&&(o.parallax.firstgo=!0,o.lastscrolltop=-999,_R.scrollHandling(o,!0,0),setTimeout(function(){o.lastscrolltop=-999,_R.scrollHandling(o,!0,0)},210),setTimeout(function(){o.lastscrolltop=-999,_R.scrollHandling(o,!0,0)},420)),_R.animateTheCaptions?"carousel"===o.sliderType&&"on"===o.carousel.showLayersAllTime?(jQuery.each(o.li,function(e){o.carousel.allLayersStarted?_R.animateTheCaptions({slide:jQuery(o.li[e]),opt:o,recall:!0}):o.li[e]===a?_R.animateTheCaptions({slide:jQuery(o.li[e]),maintimeline:c,opt:o,startslideanimat:0}):_R.animateTheCaptions({slide:jQuery(o.li[e]),opt:o,startslideanimat:0})}),o.carousel.allLayersStarted=!0):_R.animateTheCaptions({slide:a,opt:o,maintimeline:c,startslideanimat:0}):c!=undefined&&setTimeout(function(){c.resume()},30),punchgs.TweenLite.to(a,.001,{autoAlpha:1})},letItFree=function(e,i,t,a,n,r){var o=e[0].opt;"carousel"===o.sliderType||(o.removePrepare=0,punchgs.TweenLite.to(i.find(".defaultimg"),.001,{zIndex:20,autoAlpha:1,onComplete:function(){removeSlots(e,o,a,1)}}),a.index()!=n.index()&&punchgs.TweenLite.to(n,.2,{zIndex:18,autoAlpha:0,onComplete:function(){removeSlots(e,o,n,1)}})),e.find(".active-revslide").removeClass("active-revslide"),e.find(".processing-revslide").removeClass("processing-revslide").addClass("active-revslide"),o.act=a.index(),o.c.attr("data-slideactive",e.find(".active-revslide").data("index")),"scroll"!=o.parallax.type&&"scroll+mouse"!=o.parallax.type&&"mouse+scroll"!=o.parallax.type||(o.lastscrolltop=-999,_R.scrollHandling(o)),r.clear(),t.data("kbtl")!=undefined&&(t.data("kbtl").reverse(),t.data("kbtl").timeScale(25)),"on"==i.data("kenburns")&&(i.data("kbtl")!=undefined?(i.data("kbtl").timeScale(1),i.data("kbtl").play()):_R.startKenBurn(i,o)),a.find(".rs-background-video-layer").each(function(e){if(_ISM&&!o.fallbacks.allowHTML5AutoPlayOnAndroid)return!1;var i=jQuery(this);_R.resetVideo(i,o,!1,!0),punchgs.TweenLite.fromTo(i,1,{autoAlpha:0},{autoAlpha:1,ease:punchgs.Power3.easeInOut,delay:.2,onComplete:function(){_R.animcompleted&&_R.animcompleted(i,o)}})}),n.find(".rs-background-video-layer").each(function(e){if(_ISM)return!1;var i=jQuery(this);_R.stopVideo&&(_R.resetVideo(i,o),_R.stopVideo(i,o)),punchgs.TweenLite.to(i,1,{autoAlpha:0,ease:punchgs.Power3.easeInOut,delay:.2})});var s={};if(s.slideIndex=a.index()+1,s.slideLIIndex=a.index(),s.slide=a,s.currentslide=a,s.prevslide=n,o.last_shown_slide=n.index(),e.trigger("revolution.slide.onchange",s),e.trigger("revolution.slide.onafterswap",s),o.startWithSlide!==undefined&&"done"!==o.startWithSlide&&"carousel"===o.sliderType){for(var l=o.startWithSlide,d=0;d<=o.li.length-1;d++){jQuery(o.li[d]).data("originalindex")===o.startWithSlide&&(l=d)}0!==l&&_R.callingNewSlide(o.c,l),o.startWithSlide="done"}o.duringslidechange=!1;var c=n.data("slide_on_focus_amount"),u=n.data("hideafterloop");0!=u&&u<=c&&o.c.revremoveslide(n.index());var p=-1===o.nextSlide||o.nextSlide===undefined?0:o.nextSlide;o.rowzones!=undefined&&(p=p>o.rowzones.length?o.rowzones.length:p),o.rowzones!=undefined&&0<o.rowzones.length&&o.rowzones[p]!=undefined&&0<=p&&p<=o.rowzones.length&&0<o.rowzones[p].length&&_R.setSize(o)},removeAllListeners=function(e,i){e.children().each(function(){try{jQuery(this).die("click")}catch(e){}try{jQuery(this).die("mouseenter")}catch(e){}try{jQuery(this).die("mouseleave")}catch(e){}try{jQuery(this).unbind("hover")}catch(e){}});try{e.die("click","mouseenter","mouseleave")}catch(e){}clearInterval(i.cdint),e=null},countDown=function(e,i){i.cd=0,i.loop=0,i.stopAfterLoops!=undefined&&-1<i.stopAfterLoops?i.looptogo=i.stopAfterLoops:i.looptogo=9999999,i.stopAtSlide!=undefined&&-1<i.stopAtSlide?i.lastslidetoshow=i.stopAtSlide:i.lastslidetoshow=999,i.stopLoop="off",0==i.looptogo&&(i.stopLoop="on");var t=e.find(".tp-bannertimer");e.on("stoptimer",function(){var e=jQuery(this).find(".tp-bannertimer");e[0].tween.pause(),"on"==i.disableProgressBar&&e.css({visibility:"hidden"}),i.sliderstatus="paused",_R.unToggleState(i.slidertoggledby)}),e.on("starttimer",function(){i.forcepause_viatoggle||(1!=i.conthover&&1!=i.videoplaying&&i.width>i.hideSliderAtLimit&&1!=i.tonpause&&1!=i.overnav&&1!=i.ssop&&(1===i.noloopanymore||i.viewPort.enable&&!i.inviewport||(t.css({visibility:"visible"}),t[0].tween.resume(),i.sliderstatus="playing")),"on"==i.disableProgressBar&&t.css({visibility:"hidden"}),_R.toggleState(i.slidertoggledby))}),e.on("restarttimer",function(){if(!i.forcepause_viatoggle){var e=jQuery(this).find(".tp-bannertimer");if(i.mouseoncontainer&&"on"==i.navigation.onHoverStop&&!_ISM)return!1;1===i.noloopanymore||i.viewPort.enable&&!i.inviewport||1==i.ssop||(e.css({visibility:"visible"}),e[0].tween.kill(),e[0].tween=punchgs.TweenLite.fromTo(e,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),i.sliderstatus="playing"),"on"==i.disableProgressBar&&e.css({visibility:"hidden"}),_R.toggleState(i.slidertoggledby)}}),e.on("nulltimer",function(){t[0].tween.kill(),t[0].tween=punchgs.TweenLite.fromTo(t,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),t[0].tween.pause(0),"on"==i.disableProgressBar&&t.css({visibility:"hidden"}),i.sliderstatus="paused"});var a=function(){0==jQuery("body").find(e).length&&(removeAllListeners(e,i),clearInterval(i.cdint)),e.trigger("revolution.slide.slideatend"),1==e.data("conthover-changed")&&(i.conthover=e.data("conthover"),e.data("conthover-changed",0)),_R.callingNewSlide(e,1)};t[0].tween=punchgs.TweenLite.fromTo(t,i.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:a,delay:1}),1<i.slideamount&&(0!=i.stopAfterLoops||1!=i.stopAtSlide)?e.trigger("starttimer"):(i.noloopanymore=1,e.trigger("nulltimer")),e.on("tp-mouseenter",function(){i.mouseoncontainer=!0,"on"!=i.navigation.onHoverStop||_ISM||(e.trigger("stoptimer"),e.trigger("revolution.slide.onpause"))}),e.on("tp-mouseleft",function(){i.mouseoncontainer=!1,1!=e.data("conthover")&&"on"==i.navigation.onHoverStop&&(1==i.viewPort.enable&&i.inviewport||0==i.viewPort.enable)&&(e.trigger("revolution.slide.onresume"),e.trigger("starttimer"))})},vis=function(){var i,t,e={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(i in e)if(i in document){t=e[i];break}return function(e){return e&&document.addEventListener(t,e,{pasive:!0}),!document[i]}}(),restartOnFocus=function(){jQuery(".rev_redraw_on_blurfocus").each(function(){var e=jQuery(this)[0].opt;if(e==undefined||e.c==undefined||0===e.c.length)return!1;1!=e.windowfocused&&(e.windowfocused=!0,punchgs.TweenLite.delayedCall(.3,function(){"on"==e.fallbacks.nextSlideOnWindowFocus&&e.c.revnext(),e.c.revredraw(),"playing"==e.lastsliderstatus&&e.c.revresume()}))})},lastStatBlur=function(){jQuery(".rev_redraw_on_blurfocus").each(function(){var e=jQuery(this)[0].opt;e.windowfocused=!1,e.lastsliderstatus=e.sliderstatus,e.c.revpause();var i=e.c.find(".active-revslide .slotholder"),t=e.c.find(".processing-revslide .slotholder");"on"==t.data("kenburns")&&_R.stopKenBurn(t,e),"on"==i.data("kenburns")&&_R.stopKenBurn(i,e)})},tabBlurringCheck=function(){var e=document.documentMode===undefined,i=window.chrome;1!==jQuery("body").data("revslider_focus_blur_listener")&&(jQuery("body").data("revslider_focus_blur_listener",1),e&&!i?jQuery(window).on("focusin",function(){restartOnFocus()}).on("focusout",function(){lastStatBlur()}):window.addEventListener?(window.addEventListener("focus",function(e){restartOnFocus()},{capture:!1,passive:!0}),window.addEventListener("blur",function(e){lastStatBlur()},{capture:!1,passive:!0})):(window.attachEvent("focus",function(e){restartOnFocus()}),window.attachEvent("blur",function(e){lastStatBlur()})))},getUrlVars=function(e){for(var i,t=[],a=window.location.href.slice(window.location.href.indexOf(e)+1).split("_"),n=0;n<a.length;n++)a[n]=a[n].replace("%3D","="),i=a[n].split("="),t.push(i[0]),t[i[0]]=i[1];return t}}(jQuery)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.