

/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.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(p(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 g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),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("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.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)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,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]||se.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]&&se.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&&X.test(n)&&(t=h(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=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),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!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.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:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(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 Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.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 S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(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[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}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 ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={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 ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.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 He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(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&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(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&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.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 Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.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):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.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=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.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=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.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=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,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":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===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]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=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];o=c.shift();while(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}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.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)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});

/*!
 * gsp_lazyload (Modified by Piyush Jain) //added intersectobserver and browser img lazyload -Pravin
 * @version   1.0.3
 */
(function(b,m,h,r){function n(){b.gsp_detect?b.gsp_detect.isWebpSupport(function(f){b(d.selector+",["+d.scrollContAttr+"]").gsp_lazyload()}):b(d.selector+",["+d.scrollContAttr+"]").gsp_lazyload()}var k="loading"in HTMLImageElement.prototype?1:0,p=k?"video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg]":"img[data-gsll-src],video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg]",d={selector:"img[data-gsll-src],video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg]",lazyloadEvent:"gse_lazyload",onLazyLoad:"gse_onlazyload",scrollContAttr:"data-gsll-scrollcontainer"};
h=b.extend;b.gsp_lazyload=h(d,{srcAttr:"data-gsll-src",webpAttr:"data-gsd-webp",effect:"fadeIn"},b.gsp_lazyload);b.fn.gsp_lazyload=function(){var f=new IntersectionObserver(function(l,g){l.forEach(function(a){a.isIntersecting&&(a=a.target,a.getAttribute("data-gsll-src")&&(768<screen.width&&a.getAttribute("data-gsll-web-src")?(a.src=a.getAttribute("data-gsll-web-src"),a.removeAttribute("data-gsll-web-src")):a.src=a.getAttribute("data-gsll-src"),a.removeAttribute("data-gsll-src")),(a.getAttribute("data-gsll-bg") && (a.style.backgroundImage='url('+a.getAttribute("data-gsll-bg")+')',a.removeAttribute("data-gsll-bg"))),f.unobserve(a),b(a).trigger(d.onLazyLoad))})});
this.each(function(l,g){if(g===m)b(d.selector).gsp_lazyload();else{e=b(g);e.find(d.selector).gsp_lazyload();if(k){var a=e.filter("img[data-gsll-src]");"undefined"!==typeof a&&a.length&&a.each(function(q,c){c.getAttribute("data-gsll-src")&&(768<screen.width&&c.getAttribute("data-gsll-web-src")?(c.src=c.getAttribute("data-gsll-web-src"),c.loading="lazy",c.removeAttribute("data-gsll-web-src")):c.src=c.getAttribute("data-gsll-src"),c.loading="lazy",c.removeAttribute("data-gsll-src"))})}var e=e.filter(p);
"undefined"!==typeof e&&e.length&&e.each(function(q,c){f.observe(c)})}})};b(function(){n()})})(jQuery,window,document),
/*!
 * Carousel (Modified by Vineet Kumar)
 * @copyright (c) 2016 Vineet Kumar
 * @license   Licensed under MIT license
 */
function(e,t){"use strict";var n=0,r={item:3,loop:!1,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",useCSS:!0,mode:"slide",cssEasing:"ease",speed:400,auto:!1,pauseOnHover:!0,pause:2e3,controls:!0,keyPress:!0,prevHtml:"",nextHtml:"",adaptiveHeight:!1,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:20,responsive:[],lazyLoad:!0,preLazyLoad:!1,showUpcoming:!1,upcomingPercent:50,waterwheel:!1,pagerClass:"gscr_html_pager",showCounter:!1,counterText:"Showing {current}/{total}",onBeforeStart:function(e){},onSliderLoad:function(e){},onBeforeSlide:function(e,t,n){},onAfterSlide:function(e,t,n){},onBeforeNextSlide:function(e,t,n){},onBeforePrevSlide:function(e,t,n){}};e.fn.gsp_carousel=function(t){var i=this.length;if(0===i||this.children().length<=1)return this;if(i>1)return this.each(function(){e(this).gsp_carousel(t)}),this;if(!this.is(".gscr_carousel")){var o,s,a,l=e(document),u={},c=e.extend(!0,{},r,t),d={},f=this,p=e(window);u.$el=this;var h=f.children(),g=p.width(),v=null,m=null,y=0,x=0,b=0,w=!1,T=0,C="",S=0,k=0,E=0,_="width",N="margin-right",A=0,D=0,j=0,q=0,M=0,L=!1,H=!1,W=0,P=null,O=!1,I="ontouchstart"in document.documentElement,F={},R={};return R.chbreakpoint=function(){if(g=p.width(),c.responsive.length){var t;c.autoWidth===!1&&(t=c.item);var n=c.responsive;if(g<n[0].breakpoint)for(var r=0;r<n.length;r++)g<n[r].breakpoint&&(v=n[r].breakpoint,m=n[r]);if("undefined"!=typeof m&&null!==m)for(var i in m.settings)m.settings.hasOwnProperty(i)&&("undefined"!=typeof d[i]&&null!==d[i]||(d[i]=c[i]),c[i]=m.settings[i]);if(!e.isEmptyObject(d)&&g>n[0].breakpoint)for(var o in d)d.hasOwnProperty(o)&&(c[o]=d[o]);c.autoWidth===!1&&A>0&&j>0&&t!==c.item&&(S=Math.round(A/((j+c.slideMargin)*c.slideMove)))}"fade"===c.mode&&(c.autoWidth=!1,c.slideEndAnimation=!1),(c.autoWidth||"fade"===c.mode)&&(c.slideMove=1,c.item=1),c.loop&&(c.slideMove=1,c.freeMove=!1)},R.calSW=function(){if(c.autoWidth===!1){var e=c.item,t=c.slideMargin,n=c.upcomingPercent;j=T-(e*t-t),j=c.showUpcoming?j/(e+n/100):j/e,M=j*n/100/2}},R.calWidth=function(e){var t=e===!0?C.find(".gscr_lslide").length:h.length;if(c.autoWidth===!1)b=t*(j+c.slideMargin);else{b=0;for(var n=0;t>n;n++)b+=parseInt(h.eq(n).width(),10)+c.slideMargin}return b},u={doCss:function(){var e=function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,n=0;n<e.length;n++)if(e[n]in t.style)return!0};return c.useCSS&&e()},controls:function(){if(c.controls){f.parent(".gscr_slideWrapper").after('<div class="gscr_lSAction"><a class="gscr_lSPrev">'+c.prevHtml+'</a><a class="gscr_lSNext">'+c.nextHtml+"</a></div>");var t=C.next();c.autoWidth?R.calWidth(!1)<T&&t.hide():y<=c.item&&t.hide(),t.find("a").on("click",function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,e(this).is(".gscr_lSPrev")?f.goToPrevSlide():f.goToNextSlide(),!1}),setTimeout(function(){f.hideShowActions()},50)}},createCounter:function(){c.showCounter&&(a=e('<div class="gscr_counter"></div>').insertAfter(s))},initialStyle:function(){var t=this;c.onBeforeStart.call(this,f),R.chbreakpoint(),f.addClass("gscr_carousel").wrap('<div class="gscr_slideOuter '+c.addClass+'"><div class="gscr_outerwrapper"><div class="gscr_slideWrapper"></div></div></div>'),C=f.parent(".gscr_slideWrapper"),s=C.parent(".gscr_outerwrapper"),o=s.parent().parent(),T=o.outerWidth(),h.addClass("gscr_lslide"),c.loop===!0&&"slide"===c.mode&&(c.showUpcoming&&!c.autoWidth&&(L=!0),R.clone=function(){var t,n=e.fn.gsp_lazyload;if(R.calWidth(!0)>T){for(var r=0,i=0,o=f.find(".gscr_lslide"),s=f.find(".gscr_clone.gscr_left"),a=f.find(".gscr_clone.gscr_right"),l=0;l<h.length&&(r+=parseInt(o.eq(l).width())+c.slideMargin,i++,!(r>=T+c.slideMargin));l++);var u=c.autoWidth===!0?i:c.item;if(u<s.length)for(var d=0;d<s.length-u;d++)h.eq(d).remove();if(u<a.length)for(var p=h.length-1;p>h.length-1-a.length;p--)S--,h.eq(p).remove();for(var g=a.length;u>g;g++)t=o.eq(g).clone().removeClass("gscr_lslide").addClass("gscr_clone gscr_right").appendTo(f),n&&c.lazyLoad&&t.find("img").gsp_lazyload(),S++;for(var v=o.length-s.length;v>o.length-u;v--)t=o.eq(v-1).clone().removeClass("gscr_lslide").addClass("gscr_clone gscr_left").prependTo(f),n&&c.lazyLoad&&t.find("img").gsp_lazyload();h=f.children()}}),R.sSW=function(){y=h.length,c.autoWidth===!1&&h.css(_,j+"px"),h.css(N,c.slideMargin+"px"),b=R.calWidth(!1),f.css(_,Math.ceil(b)+"px"),w===!1&&(S=f.find(".gscr_clone.gscr_left").length)},R.calL=function(){h=f.children(),y=h.length},this.doCss()&&C.addClass("gscr_usingCss"),R.calL(),"slide"===c.mode?(R.calSW(),R.sSW(),c.loop===!0&&(A=t.slideValue()),this.setHeight(f,!1)):(this.setHeight(f,!0),f.addClass("gscr_lSFade"),this.doCss()||(h.fadeOut(0),h.eq(S).fadeIn(0))),c.loop===!0&&"slide"===c.mode?h.eq(S).addClass("gscr_active"):h.first().addClass("gscr_active")},assignNumbers:function(){C.find(".gscr_lslide").not(".gscr_lslide*[data-gscr-nocount]").each(function(t){var n=e(this);"undefined"==typeof n.attr("data-gscr-nocount")&&e(this).attr("data-gscr-index",t)})},pager:function(){var t=this;if(R.createPager=function(){q=(T-(c.thumbItem*c.thumbMargin-c.thumbMargin))/c.thumbItem;for(var n=C.find(".gscr_lslide"),r=c.slideMove,i=Math.ceil((n.length-c.item)/c.slideMove)+1,o="",s=0,a=0;i>a;a++){c.autoWidth?s+=(parseInt(n.eq(a).width(),10)+c.slideMargin)*r:s=a*((j+c.slideMargin)*r);var l=n.eq(a*r),u='<li class="gscr_dot"><a href="#">'+(a+1)+"</a></li>";if(c.htmlPager===!0){var d=l.data("gscr-html");d="undefined"!=typeof d?'<li class="gscr_dot '+c.pagerClass+'">'+d+"</li>":u,o+=d}else if(c.gallery===!0){var p=n.eq(a*r),h=p.attr("data-gscr-thumb"),g="";g=""==e.trim(h)?p.attr("data-gscr-html"):'<img data-gsll-src="'+h+'" />',q=(T-(c.thumbItem*c.thumbMargin-c.thumbMargin))/c.thumbItem,o+='<li class="gscr_dot" style="width:100%;'+_+":"+q+"px;"+N+":"+c.thumbMargin+'px"><a href="#">'+g+"</a></li>"}else o+='<li class="gscr_dot"><a href="#">'+(a+1)+"</a></li>"}var v=C.parents(".gscr_slideOuter ").find(".gscr_lSPager");v.html(o),c.gallery===!0&&(D=a*(c.thumbMargin+q)+.5,v.css({property:D+"px","transition-duration":c.speed+"ms"}),v.css(_,D+"px"));var m=v.find(".gscr_dot");m.first().addClass("gscr_active"),m.on("click",function(){return S=m.index(this),c.loop&&"fade"!=c.mode&&(S+=c.item),f.mode(!1),c.gallery===!0&&t.slideThumb(),!1})},c.pager){var n="gscr_lSpg",r="margin-top";c.gallery&&(n="gscr_lSGallery"),s.after('<div class="gscr_pagerwrapper"><div class="gscr_pagercontent"><ul class="gscr_lSPager '+n+'"></ul></div></div>'),C.parents(".gscr_slideOuter ").find(".gscr_lSPager").css(r,c.galleryMargin+"px"),R.createPager()}setTimeout(function(){f.getTotalSlideCount(),c.loop&&"slide"==c.mode?R.init():u.updateCounter()},0),$("img[data-gsll-src]").gsp_lazyload()},setHeight:function(e,t){var n=null,r=this;n=c.loop?e.children(".gscr_lslide").first():e.children().first();var i=function(){var r=n.outerHeight(),i=0,o=r;t&&(r=0,i=100*o/T);var s={height:r+"px"};"fade"==c.mode&&(s["padding-bottom"]=i+"%"),e.css(s)};n.find("img").length&&c.lazyLoad?n.find("img").on("load",function(){i()}):i(),n.find("img").length?n.find("img")[0].complete?(i(),P||r.auto()):n.find("img").on("load",function(){setTimeout(function(){i(),P||r.auto()},100)}):P||r.auto()},active:function(e,t){var n=0;if(this.doCss()&&"fade"===c.mode&&C.addClass("gscr_on"),S*c.slideMove+c.item<=y){e.removeClass("gscr_active"),this.doCss()||"fade"!==c.mode||t!==!1||e.fadeOut(c.speed);var r,i;if(t===!0&&(r=e.length,i=r-1),n=t===!0?S-f.find(".gscr_clone.gscr_left").length:S*c.slideMove,t===!0&&(r=e.length,i=r-1,n+1===r?n=i:n+1>r&&(n=0)),this.doCss()||"fade"!==c.mode||t!==!1||e.eq(n).fadeIn(c.speed),!t&&!c.loop){var o=f.getTotalSlideCount()-(n+c.item);0>o&&(n-=Math.abs(o))}e.eq(n).addClass("gscr_active")}else{e.removeClass("gscr_active");var s=e.length-1;t||(s-=c.item-1),e.eq(s).addClass("gscr_active"),this.doCss()||"fade"!==c.mode||t!==!1||(e.fadeOut(c.speed),e.eq(n).fadeIn(c.speed))}},move:function(e,t){if($(window).innerWidth() < 767){if(t == 0){var t = 0;}else{var t = t + 30;}}this.doCss()?e.css({transform:"translate3d("+-t+"px, 0px, 0px)","-webkit-transform":"translate3d("+-t+"px, 0px, 0px)"}):e.css("position","relative").animate({left:-t+"px"},c.speed);},fade:function(){this.active(h,!1);var e=C.parents(".gscr_slideOuter ").find(".gscr_lSPager .gscr_dot");this.active(e,!0)},slide:function(){c.loop||f.hideShowActions(),c.adaptiveHeight===!0&&f.css("height",h.eq(S).outerHeight(!0)),H||(H=!0);var e=this;R.calSlide=function(){b>T&&(A=e.slideValue(),e.active(h,!1),A>b-T-c.slideMargin?A=b-T-c.slideMargin:0>A&&(A=0),e.move(f,A))},R.calSlide();var t=C.parents(".gscr_slideOuter").find(".gscr_lSPager .gscr_dot");this.active(t,!0),e.updateCounter()},updateCounter:function(){if(c.showCounter){var e=f.getActiveSlide(),t={current:function(){return e.activeIndex+1}(),total:function(){return x}()};e.noCount?a.hide():a.show(),a.html(c.counterText.replace(/\{(.+?)\}/g,function(e,n){return t[n]||0==t[n]?t[n].toString():""}))}},resetSlide:function(e,t){if("slide"==c.mode){var n=u.slideValue();C.css({"transition-duration":"0ms","-webkit-transition-duration":"0ms"}),"next"==e?S++:S--,f.css({transform:"translate3d(-"+n+"px, 0px, 0px)"})}setTimeout(function(){C.css({"transition-duration":c.speed+"ms","-webkit-transition-duration":c.speed+"ms"}),t()},80)},slideValue:function(){var e=0;if(c.autoWidth===!1)e=S*((j+c.slideMargin)*c.slideMove),c.showUpcoming&&(e-=M);else{e=0;for(var t=0;S>t;t++)e+=parseInt(h.eq(t).width(),10)+c.slideMargin}return e},slideThumb:function(){var e;switch(c.currentPagerPosition){case"left":e=0;break;case"middle":e=T/2-q/2;break;case"right":e=T-q;break;default:return}var t=S-f.find(".gscr_clone.gscr_left").length,n=C.parents(".gscr_slideOuter").find(".gscr_lSPager");t>=n.children().length?t=0:0>t&&(t=n.children().length);var r=t*(q+c.thumbMargin)-e;r+T>D&&(r=D-T-c.thumbMargin),0>r&&(r=0),this.move(n,r)},auto:function(){c.auto&&(clearInterval(P),P=setInterval(function(){f.goToNextSlide()},c.pause))},pauseOnHover:function(){var t=this;c.auto&&c.pauseOnHover&&(C.on("mouseenter",function(){e(this).addClass("gscr_ls-hover"),f.pause(),c.auto=!0}),C.on("mouseleave",function(){e(this).removeClass("ls-hover"),C.find(".gscr_carousel").hasClass("gscr_lsGrabbing")||t.auto()}))},touchMove:function(e,t){if(C.css("transition-duration","0ms"),"slide"===c.mode){var n=e-t,r=A-n;if(Math.abs(n)>=c.swipeThreshold){if(r>=b-T-c.slideMargin){if(c.freeMove===!1&&c.loop===!1)r=b-T-c.slideMargin;else if(c.loop===!1){var i=b-T-c.slideMargin;r=i+(r-i)/5}}else 0>r&&(c.loop||(r=c.freeMove?r/5:0));var o=W=u.getSwipeVal(r);this.doCss()&&this.move(f,o)}}},getSwipeVal:function(e){if(c.loop){var t,n,r,i,o,s=c.slideMargin,a=c.autoWidth;if(a){var l=F;o=l.totalW-l.rightW,i=l.leftW}else t=c.item,n=h.length,r=j,i=t*(r+s),o=(n-t)*(s+r);if(!L&&e>=o||L&&(t>1&&e>=o-M-j-s||1==t&&e>=o-j-s))return i+e-o;if(0>=e&&!L||L&&(t>1&&M+j+s>=e||1==t&&j-2*M>=e))return a?l.resetW+e:o+e-t*(s+r)}return e},updateSlideCalc:function(){var e=h,t=f.find(".gscr_left"),n=t.length,r=e.slice(0,e.length-2*n);F={leftW:u._getEleWidth(t),rightW:u._getEleWidth(f.find(".gscr_right")),resetW:u._getEleWidth(r),totalW:u._getEleWidth(e),totalCl:n}},getCurrentScn:function(){if(c.loop&&"slide"==c.mode){var e=c.item,t=h.length-2*e;k=S-e,k>=t?k=0:0>k&&(k=t-Math.abs(k))}else k=S},_getEleWidth:function(t){var n=0;return t.each(function(){n+=parseInt(e(this).width(),10)+c.slideMargin}),n},touchEnd:function(e){if(C.css("transition-duration",c.speed+"ms"),"slide"===c.mode){var t=!0,n=!1,r=c.loop;A=W,A>b-T-c.slideMargin?(A=r?u.getSwipeVal(A):b-T-c.slideMargin,c.autoWidth===!1&&(n=!0)):0>=A&&(A=r?u.getSwipeVal(A):0);var i=function(e){var t=r?e?1:0:e&&!n?1:0;if(c.autoWidth)for(var i=0,o=0;o<h.length&&(i+=parseInt(h.eq(o).width(),10)+c.slideMargin,S=o+t,!(i>=A));o++);else{var s=A/((j+c.slideMargin)*c.slideMove);S=parseInt(s,10)+t,A>=b-T-c.slideMargin&&s%1!==0&&S++}};e>=c.swipeThreshold?(i(!1),t=!1):e<=-c.swipeThreshold&&(i(!0),t=!1),f.mode(t),c.gallery&&this.slideThumb()}else Math.abs(e)>c.swipeThreshold&&(e>=c.swipeThreshold?f.goToPrevSlide():f.goToNextSlide())},enableDrag:function(){var t=this;if(!I){var n=0,r=0,i=!1;C.find(".gscr_carousel").addClass("gscr_lsGrab"),C.on("mousedown",function(t){if(T>b&&0!==b)return!1;var r=e(t.target);r.is(".gscr_lSPrev")||r.is(".gscr_lSNext")||(n=t.pageX,i=!0,t.preventDefault?t.preventDefault():t.returnValue=!1,C.scrollLeft+=1,C.scrollLeft-=1,C.find(".gscr_carousel").removeClass("gscr_lsGrab").addClass("gscr_lsGrabbing"),clearInterval(P))}),p.on("mousemove",function(e){i&&(C.find(".gscr_carousel").addClass("gscr_lsDragging"),r=e.pageX,t.touchMove(r,n))}),p.on("mouseup",function(e){if(i){setTimeout(function(){C.find(".gscr_carousel").removeClass("gscr_lsGrabbing gscr_lsDragging").addClass("gscr_lsGrab")},100),i=!1,r=e.pageX;var o=r-n;Math.abs(o)>=c.swipeThreshold&&p.on("click.ls",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopImmediatePropagation(),e.stopPropagation(),p.off("click.ls")}),t.touchEnd(o)}})}},enableTouch:function(){var e=this;if(I){var t={},n={};C.on("touchstart",function(e){n=e.originalEvent.targetTouches[0],t.pageX=e.originalEvent.targetTouches[0].pageX,t.pageY=e.originalEvent.targetTouches[0].pageY,clearInterval(P)}),C.on("touchmove",function(r){if(T>b&&0!==b)return!1;var i=r.originalEvent;n=i.targetTouches[0];var o=Math.abs(n.pageX-t.pageX),s=Math.abs(n.pageY-t.pageY);3*o>s&&r.preventDefault(),e.touchMove(n.pageX,t.pageX)}),C.on("touchend",function(){e.touchEnd(n.pageX-t.pageX)})}},build:function(){var e=this;e.initialStyle(),c.enableTouch===!0&&e.enableTouch(),c.enableDrag===!0&&e.enableDrag(),e.auto(),p.on("blur",function(){clearInterval(P)}),e.pager(),e.pauseOnHover(),e.controls(),e.createCounter(),u.assignNumbers()}},u.build(),R.init=function(){R.chbreakpoint(),T=o.outerWidth(),c.loop===!0&&"slide"===c.mode&&R.clone(),f.lazyLoad(),R.calL(),"slide"===c.mode?(f.removeClass("gscr_lSSlide"),R.calSW(),R.sSW(),u.setHeight(f,!1)):u.setHeight(f,!0),setTimeout(function(){"slide"===c.mode&&f.addClass("gscr_lSSlide")},1e3),c.pager&&R.createPager(),c.gallery===!0&&u.slideThumb(),"slide"===c.mode&&u.slide();var e=C.next();c.autoWidth===!1?h.length<=c.item?e.hide():e.show():R.calWidth(!1)<T&&0!==b?e.hide():e.show()},f.goToPrevSlide=function(){c.auto&&(clearInterval(P),u.auto());var e=L?1:0;if(S>e)c.onBeforePrevSlide.call(this,f,k,f.getActiveItems()),S--,f.mode(!1),c.gallery===!0&&u.slideThumb();else if(c.loop===!0){if(c.onBeforePrevSlide.call(this,f,k,f.getActiveItems()),"fade"===c.mode){var t=y-1;S=parseInt(t/c.slideMove)}else S=h.length-2*F.totalCl;L&&S++,u.resetSlide("prev",function(){f.mode(!1),c.gallery===!0&&u.slideThumb()})}else c.slideEndAnimation===!0&&(f.addClass("leftEnd"),setTimeout(function(){f.removeClass("leftEnd")},400))},f.goToNextSlide=function(){c.auto&&(clearInterval(P),u.auto());var e=!0;if("slide"===c.mode){var t=u.slideValue(),n=c.slideMargin;L&&(t+=j+n),e=b-T-n>t,S==h.length-F.totalCl&&c.autoWidth&&(e=!1)}S*c.slideMove+c.item<y&&e?(c.onBeforeNextSlide.call(this,f,k,f.getActiveItems()),S++,f.mode(!1),c.gallery===!0&&u.slideThumb()):c.loop===!0?(c.onBeforeNextSlide.call(this,f,k,f.getActiveItems()),S=F.totalCl,L&&S--,u.resetSlide("next",function(){f.mode(!1),c.gallery===!0&&u.slideThumb()})):c.slideEndAnimation===!0&&(f.addClass("gscr_rightEnd"),setTimeout(function(){f.removeClass("gscr_rightEnd")},400))},f.hideShowActions=function(){if(!c.loop){var e=C.next().find(".gscr_lSPrev"),t=C.next().find(".gscr_lSNext");S*c.slideMove>=h.length-c.item?t.hide():t.show(),0>=S?e.hide():e.show()}},f.lazyLoad=function(){if(c.lazyLoad&&e.fn.gsp_lazyload&&(l.trigger("gse_lazyload"),H)){var t=f.getActiveItems(!0).active_items;t.first().add(t.last()).find("img[data-gsll-src]").trigger("gse_lazyload"),$("img[data-gsll-src]").gsp_lazyload()}},f.getActiveItems=function(e){var t=c.item,n=S,r=S+t,i=c.slideMove;"undefined"!=typeof e&&e===!0&&(c.preLazyLoad&&c.loop&&(n-=i,r+=i),L&&(n--,r++));var o={active_items:h.slice(n,r)};return t%2!==0&&(o.center_item=h.eq(S+Math.floor(t/2))),o},f.addSlide=function(t,n){e(t).insertAfter(h.eq(n-1)),f.refresh(),f.jumpToSlide(n)},f.removeSlide=function(e){h.eq(e-1).remove(),f.refresh()},f.mode=function(e){f.hideShowActions(),c.adaptiveHeight===!0&&f.css("height",h.eq(S).outerHeight(!0)),w===!1&&u.doCss()&&(f.addClass("gscr_slide"),""!==c.speed&&C.css("transition-duration",c.speed+"ms"),""!==c.cssEasing&&C.css("transition-timing-function",c.cssEasing)),e||(u.getCurrentScn(),c.onBeforeSlide.call(this,f,k,f.getActiveItems())),"slide"===c.mode?u.slide():u.fade(),C.hasClass("gscr_ls-hover")||u.auto(),setTimeout(function(){e||(f.lazyLoad(),c.onAfterSlide.call(this,f,k,f.getActiveItems()))},c.speed),w=!0},f.play=function(){f.goToNextSlide(),c.auto=!0,u.auto()},f.pause=function(){c.auto=!1,clearInterval(P)},f.refresh=function(){R.init()},f.getTotalSlideCount=function(){return x=C.find(".gscr_lslide").length-C.find(".gscr_lslide*[data-gscr-nocount]").length},f.getActiveSlide=function(){var t=h.filter(function(){return e(this).is(".gscr_active")}),n=t.data("gscr-index"),r=!1;return"undefined"==typeof n?(r=!0,n=0==E?-1:E):E=n,{activeIndex:n,activeSlide:t,noCount:r}},f.goToSlide=function(e){e>x&&(e=x),c.loop&&(e+=c.item),f.jumpToSlide(e-1)},f.jumpToSlide=function(e){S=e,f.mode(!1),c.gallery===!0&&u.slideThumb()},f.getCurrentSlideCount=function(){var e=h.length;return c.loop&&"slide"==c.mode&&(e-=2*c.item),e},f.destroy=function(){if(f.gsp_carousel){f.goToPrevSlide=f.goToNextSlide=f.mode=f.play=f.pause=f.refresh=f.getCurrentSlideCount=f.getTotalSlideCount=f.jumpToSlide=function(){},f.gsp_carousel=null,R={init:function(){}};var e=f.parents(".gscr_slideOuter"),t=f.clone().insertBefore(e),n=t.find(".gscr_clone").remove().end().find(">");t.removeClass("gscr_carousel gscr_slide gscr_lsGrab").removeAttr("style"),n.removeClass("gscr_lslide gscr_active").removeAttr("data-gscr-index"),c.autoWidth||n.css("width","auto"),e.remove(),h=P=null,w=!1,S=0}},setTimeout(function(){u.getCurrentScn(),u.updateSlideCalc(),O=!0,c.onSliderLoad.call(this,f,k)},10),p.on(function(e){n=setTimeout(function(){e.preventDefault?e.preventDefault():e.returnValue=!1,R.init()},200)}),f.data("gsp_carousel",this),this}}}(jQuery),function(e,t){"use strict";var n=e(t),r={layout:"auto",responsive:!1,defaultOpen:1,breakpoint:767},i="",o={_init:function(t,s){s=e.extend(r,s),t.each(function(){var t=e(this),r=e(),a=e(),l=e(),u=0,c=t.data("gstab-wrap")||s.tabName||"",d=e('*[data-gstab-container-wrap="'+c+'"]'),f=d.find("> *[data-gstab-container]"),p=e(),h="data-gstab",g="auto"==s.layout?s.responsive:!1;if(s.responsive?t.hide():t.wrap('<div class="gsc-ta-overHide"><div class="gsc_ta_scroll"></div></div>'),t.find("*["+h+"]").each(function(t){var o=e(this),c=f.eq(t);r.push(this),a.push(this),g||(u+=o.outerWidth(!0)+1),t==s.defaultOpen-1&&o.addClass("gsc-ta-active"),("accordion"==s.layout||s.responsive)&&(p=o.clone().insertBefore(c,null).wrap('<ul data-gsta-responsivetab style="display:none;"></ul>')[0],p.className+=" gsc-ta-clone",a.push(p),l.push(p)),o.add(p).on("click", function(){var o=e(this);o.is(".gsc-ta-active")||(a.removeClass("gsc-ta-active"),o.trigger("gse_tab_click",[o,c]).add(l.eq(t)).addClass("gsc-ta-active"),o.is(".gsc-ta-clone")&&r.eq(l.index(o)).addClass("gsc-ta-active"),f.hide(),c.fadeIn(150),"accordion"==i&&e("html, body").animate({scrollTop:o.offset().top-5}),n.trigger("gse_lazyload"))})}),g||t.width(u),f.eq(s.defaultOpen-1).show(),o.responsiveTabs(s,t,d),s.responsive){var v=0;n.resize(function(){clearTimeout(v),v=setTimeout(function(){o.responsiveTabs(s,t,d)},50)})}})},responsiveTabs:function(e,t,n){var r=t,s=n.find("*[data-gsta-responsivetab]");o.setLayout(e),"accordion"==i?(r.hide(),s.show()):(r.show(),s.hide())},setLayout:function(e){i=e.layout,"auto"==i&&e.responsive&&(i=e.responsive&&n.innerWidth()<e.breakpoint?"accordion":"auto")}};e.fn.gsp_tab=function(t){var n=e(this),r="gsp_tab_"+e.now(),i=e(t.content_wrap);i.length&&(n.attr("data-gstab-wrap",r),i.attr("data-gstab-container-wrap",r),o._init(n,t))},e(function(){o._init(e("*[data-gstab-wrap]"))})}(jQuery,window),
/*! 
 * TypeAhead (Modified by Piyush Jain)
 * @copyright (c) 2013 Immense Networks
 * @copyright (c) 2016 Piyush Jain
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/immense/immybox/master/LICENSE
 * @version   0.1.0
 */
!function(t){"use strict";var e=function(t,e){return function(){return t.apply(e,arguments)}},i=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};!function(t,s){var o,r,h,l="gsp_typeahead",n="gs_ta";r={choices:[],maxResults:50,showArrow:!1,minLength:0,highlight:!1,matchAny:!0,removeSingleHeader:!1,allowDirty:!1,attr:{nameAttr:"text",valueAttr:"value",disableAttr:"disable",headerAttr:"header",nosearchAttr:"nosearch"},ajax:{jsonp:!1,url:"",lazyload:!0,cache:!1,delay:200,qString:"q"},defaultSelectedValue:void 0,pageSize:10,resultPosition:{forcePosition:void 0,scrollTop:-1},onOpen:function(){},onSelect:function(t){},onUpdate:function(t){},onSuccess:function(t){return t},filterFn:function(t){var e=this,i=!1;return function(s){if(void 0!==s[e.attr.nameAttr]&&void 0!==s[e.attr.valueAttr]){if(t){var o=s[e.attr.nosearchAttr];if(s[e.attr.headerAttr]&&(i=o),i)return e.removeSingleHeader=!0,!1;if(o)return!1}var r=s[e.attr.nameAttr].toLowerCase();return e.matchAny?r.indexOf(t.toLowerCase())>=0||s[e.attr.headerAttr]:r.startsWith(t.toLowerCase())}throw Error(e.attr.nameAttr+" or "+e.attr.valueAttr+" is undefined")}},formatChoice:function(t){var e,i=this;return function(s){return t&&i.highlight&&!s[i.attr.headerAttr]?(e=new RegExp(t.replace(/[#-.]|[[-^]|[?|{}]/g,"\\$&"),"gi"),s[i.attr.nameAttr].replace(e,'<span class="highlight">$&</span>')):s[i.attr.nameAttr]}}};var a=function(){var t=0;return function(e,i){clearTimeout(t),t=setTimeout(e,i)}}();Function.prototype.method=function(t,e){this.prototype[t]||(this.prototype[t]=e)},h=[],o=function(){function i(i,s){this._reposition=e(this._reposition,this),this._revert=e(this._revert,this),this._openResults=e(this._openResults,this),this._doSelection=e(this._doSelection,this),this._prepareForQuery=e(this._prepareForQuery,this),this._keyController=e(this._keyController,this),this._onClickElement=e(this._onClickElement,this);var o,h=this;this.element=t(i),this.element.addClass(n),this.element.attr("autocomplete","off"),this._element=i,this.options=t.extend(!0,{},r,s),this._attr=this.options.attr,this._selectedChoice=null,this._qCache=!1,0==this.options.minLength?this.options.choices.length?(this.choices=this.options.choices,this._selectDefaultValue(),this.options.ajax.lazyload=!1):this._isAjax()&&!this.options.ajax.lazyload&&(this._prepareForQuery(!0),this.options.choices=[]):this._isAjax()?this.options.choices=[]:(this.choices=this.options.choices,this._selectDefaultValue()),this._val=this.element.val().trim(),this.options.showArrow&&this.element.addClass(n+"_witharrow"),this.element.on("click",this._onClickElement),this.queryResultArea=t("<div class='"+n+"_results'></div>"),"function"==typeof(o=this.queryResultArea).scrollLock&&o.scrollLock(),this.queryResultAreaVisible=!1,this.oldQuery=this._val,this.queryResultArea.on("click","li."+n+"_choice",function(){var e;h.options.onSelect(t(this)),e=t(this).data("value"),h.selectChoiceByValue(e),h._hideResults(),h._val=h.element.val().trim(),h.element.focus()}),this.queryResultArea.on("mouseenter","li."+n+"_choice",function(){h.queryResultArea.find("li."+n+"_choice.active").removeClass("active"),t(this).addClass("active")}),this.element.on("keyup change search",this._keyController),this.element.on("keydown",this._doSelection)}return i.prototype._onClickElement=function(e){e.stopPropagation(),this.element.select(),this.oldQuery=this.element.val().trim(),this._revertOtherInstances();var i=this.options.resultPosition.scrollTop;this._isSearch()&&this._openResults(),i>-1&&t("html, body").animate({scrollTop:this.element.offset().top-i},600)},i.prototype._keyController=function(){var t=this;this._val!==this.element.val().trim()&&(this.options.ajax.delay>0?a(function(){t._prepareForQuery(this)},this.options.ajax.delay):t._prepareForQuery(this))},i.prototype._isSearch=function(){return this.element.val().trim().length>=this.options.minLength},i.prototype._selectDefaultValue=function(){var t=this;this.choices=this.options.choices,this.defaultSelectedChoice=null!==this.options.defaultSelectedValue?this.choices.filter(function(e){return e[t._attr.nameAttr]===t.options.defaultSelectedValue})[0]||null:this.options.defaultSelectedValue,this.defaultSelectedChoice&&(this.element.val(this.defaultSelectedChoice.text),this._selectedChoice=this.defaultSelectedChoice)},i.prototype._isAjax=function(){return"undefined"!==this.options.ajax.url&&""!==this.options.ajax.url.trim()},i.prototype._isQcache=function(){var t=new RegExp("^"+this._qCache,"i");return t.test(this.element.val().trim())&&this._qCache!==!1},i.prototype._isCache=function(){return this.options.ajax.cache},i.prototype._doQuery=function(){var t=this.element.val().trim();this._val=t,this.oldQuery=t,""===t&&this.options.minLength>0?(this._hideResults(),this.selectChoiceByValue(null)):this.insertFilteredChoiceElements(t)},i.prototype._doSelection=function(t){if(27===t.which&&(this.display(),this._hideResults()),this.queryResultAreaVisible)switch(t.which){case 9:this._selectHighlightedChoice();break;case 13:t.preventDefault(),this._selectHighlightedChoice();break;case 38:t.preventDefault(),this._highlightPreviousChoice(),this.scroll();break;case 40:t.preventDefault(),this._highlightNextChoice(),this.scroll()}else switch(t.which){case 40:t.preventDefault(),this._insertElements();break;case 9:this._revert()}},i.prototype._insertElements=function(){this.insertFilteredChoiceElements(this.oldQuery)},i.prototype._openResults=function(){var t=this;t._isAjax()&&t.options.ajax.lazyload&&!t.choices?(t.options.ajax.lazyload=!1,t._fetchRemoteData().done(function(e){e&&(t.choices=t.options.onSuccess(e)||e,t.choices&&(t._qCache=t._isCache()?t.element.val():t._qCache,t._insertElements()))})):t._insertElements()},i.prototype._revert=function(){""===this.element.val()&&this.selectChoiceByValue(null),this.queryResultAreaVisible&&(this.options.allowDirty||this.display(),this._hideResults())},i.prototype._reposition=function(){this.queryResultAreaVisible&&this.positionResultsArea()},i.prototype.insertFilteredChoiceElements=function(e){var i,s,o,r,h,l,a=this;i=e?this.choices.filter(this.options.filterFn(this.oldQuery)):this.choices,i||(i=[]),l=i.slice(0,this.options.maxResults),s=this.options.formatChoice(e);var c,u=0,p=0,d=[],f=void 0,_=!1;h=l.map(function(){return function(i){var o,r;return i[a._attr.headerAttr]?(r=n+"_header",c==r?(d.push(p-1),f==p-1&&(f=p)):(u++,f=void 0===f?p:f)):r=i[a._attr.disableAttr]?n+"_disable":n+"_choice",o=t("<li class='"+r+"'></li>"),o.attr("data-value",i[a._attr.valueAttr]),o.attr("data-name",i[a._attr.nameAttr]),o.html(s(i,e)),a.defaultSelectedChoice==i&&(o.addClass("active"),_=!0),c=r,p++,o}}(this));var y=l.length-1;if(y>0&&l[y][a._attr.headerAttr]&&(d.push(y),u--),u==p)h={};else{this.options.removeSingleHeader&&1==u&&d.push(f);for(var v in d)delete h[d[v]]}t.isEmptyObject(h)?(o=t("<p class='"+n+"_noresults'>no matches</p>"),this.queryResultArea.empty().append(o)):(r=t("<ul></ul>").append(h),this.queryResultArea.empty().append(r),this.options.onOpen(),!_&&this._highlightNextChoice()),this._showResults()},i.prototype.scroll=function(){var t,e,i,s,o,r,h;r=this.queryResultArea.height(),h=this.queryResultArea.scrollTop(),o=h+r,t=this.getHighlightedChoice(),null!==t&&(i=t.outerHeight(),s=t.position().top+h,e=s+i,h>s&&this.queryResultArea.scrollTop(s),e>o&&this.queryResultArea.scrollTop(e-r))},i.prototype.positionResultsArea=function(){var e,i,o,r,h,l,a,c,u,p,d=["top","bottom"];i=this.element.offset(),e=this.element.outerHeight(),o=this.element.outerWidth(),l=t(s).height()+t(s).scrollTop(),p=this.queryResultArea.find("li."+n+"_choice:eq(0)").outerHeight(),this.queryResultArea.outerWidth(o),this.queryResultArea.css({left:i.left,"max-height":this.options.pageSize*p||19}),h=this.queryResultArea.outerHeight(),r=i.top+e+h,c=i.top-h,u=i.top+e,a=-1!==d.indexOf(this.options.resultPosition.forcePosition)?"top"==this.options.resultPosition.forcePosition?c:u:l-(i.top+e)>i.top-t(s).scrollTop()||l>r?u:c,this.queryResultArea.css({top:a})},i.prototype.getHighlightedChoice=function(){var t;return t=this.queryResultArea.find("li."+n+"_choice.active"),1===t.length?t:null},i.prototype._highlightNextChoice=function(){var e,i,s;i=this.getHighlightedChoice(),null!==i?(s=i.nextAll("li."+n+"_choice:first"),1===s.length&&(i.removeClass("active"),s.addClass("active"))):(e=this.queryResultArea.find("li."+n+"_choice"),e.length&&t(e[0]).addClass("active"))},i.prototype._highlightPreviousChoice=function(){var e,i,s;i=this.getHighlightedChoice(),null!==i?(s=i.prevAll("li."+n+"_choice:first"),1===s.length&&(i.removeClass("active"),s.addClass("active"))):(e=this.queryResultArea.find("li."+n+"_choice"),e.length&&t(e[e.length-1]).addClass("active"))},i.prototype._selectHighlightedChoice=function(){var t,e;t=this.getHighlightedChoice(),null!==t?(e=t.data("value"),this.selectChoiceByValue(e),this._val=this.element.val().trim(),this._hideResults(),this.options.onSelect(t)):this._revert()},i.prototype.display=function(){this._selectedChoice?this.element.val(this._selectedChoice[this._attr.nameAttr]):this.element.val(""),this._val=this.element.val().trim()},i.prototype.selectChoiceByValue=function(t){var e,i,s,o=this;i=this.getValue(),t&&this.choices?(e=this.choices.filter(function(e){return e[o._attr.valueAttr]==t}),null!==e[0]?this._selectedChoice=e[0]:this._selectedChoice=null):this._selectedChoice=null,s=this.getValue(),s!==i&&(this.element.trigger("update",[s]),e?this.options.onUpdate(e[0]):this.options.onUpdate([s])),this.display()},i.prototype._revertOtherInstances=function(){var t,e,i;for(t=0,e=h.length;e>t;t++)i=h[t],i!==this&&i._revert()},i.prototype._showResults=function(){t("body ").append(this.queryResultArea),this.queryResultAreaVisible=!0,this.scroll(),this.positionResultsArea()},i.prototype._hideResults=function(){this.queryResultArea.detach(),this.queryResultAreaVisible=!1},i.prototype.getChoices=function(){return this.choices},i.prototype.setChoices=function(t){return this.choices=t,null!==this._selectedChoice&&this.selectChoiceByValue(this._selectedChoice[this._attr.valueAttr]),this.oldQuery="",t},i.prototype.getValue=function(){return this._selectedChoice?this._selectedChoice[this._attr.valueAttr]:null},i.prototype.getAttr=function(t){return this._selectedChoice?this._selectedChoice[t]:null},i.prototype.setValue=function(t){var e;return e=this.getValue(),e!==t?(this.selectChoiceByValue(t),this.oldQuery="",this.getValue()):e},i.prototype.destroy=function(){this.element.off("keyup change search",this._keyController),this.element.off("keydown",this._doSelection),this.options.minLength<1&&this.element.off("click",this._onClickElement),this.element.val(""),this.element.removeClass(n),this.queryResultArea.remove(),t.removeData(this.element[0],"plugin_"+n),h=h.filter(function(t){return function(e){return e!==t}}(this))},i.prototype._fetchRemoteData=function(){var e={};return e[this.options.ajax.qString||"q"]=this.element.val(),t.ajax({url:this.options.ajax.url,crossDomain:this.options.crossDomain,dataType:this.options.ajax.jsonp?"jsonp":"json",data:e})},i.prototype._prepareForQuery=function(){var t=this;this._isSearch()?t._isAjax()&&!t._isQcache()?t._fetchRemoteData().done(function(e){e&&(t.choices=t.options.onSuccess(e)||e,t.choices&&(t._qCache=t._isCache()?t.element.val():t._qCache,t._doQuery()))}):t._doQuery():(this._val=t.element.val().trim(),this._hideResults())},i.prototype.publicMethods=["getValue","getAttr","setValue","getChoices","setChoices","destroy"],i}(),t("html").on("click",function(e){if(!t(e.target).is("li."+n+"_disable")&&!t(e.target).is("li."+n+"_header")){var i,s,o;for(i=0,s=h.length;s>i;i++)o=h[i],o._revert()}}),t(s).on("resize scroll",function(){var t,e,i;for(t=0,e=h.length;e>t;t++)i=h[t],i.queryResultAreaVisible&&i._reposition()}),t.fn[l]=function(e){var s,r;return s=Array.prototype.slice.call(arguments,1),r=[],this.each(function(){var a,c,u;if(t.data(this,"plugin_"+n)){if(null!==e&&"string"==typeof e){if(u=t.data(this,"plugin_"+n),a=e,!(i.call(u.publicMethods,a)>=0))throw new Error(l+" has no method '"+a+"'");r.push(u[a].apply(u,s))}}else c=new o(this,e),h.push(c),r.push(t.data(this,"plugin_"+n,c))}),r}}(jQuery,window)}(jQuery),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),
/*! 
 * Popup (Modified by Fulchand Verma & Vineet Kumar)
 * @copyright (c) 2016 Jack Moore
 * @copyright (c) 2016 Fulchand Verma
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/jackmoore/colorbox/master/LICENSE.md
 * @version   1.6.4
 */
function(e,t,i){"use strict";function n(i,n,o){var s=t.createElement(i);return n&&(s.id=Q+n),o&&(s.style.cssText=o),e(s)}function o(){return i.innerHeight?i.innerHeight:e(i).height()}function s(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var n;return void 0===this.cache[t]&&(n=e(this.el).attr("data-cbox-"+t),void 0!==n?this.cache[t]=n:void 0!==i[t]?this.cache[t]=i[t]:void 0!==U[t]&&(this.cache[t]=U[t])),this.cache[t]},this.get=function(t){var i=this.value(t);return (typeof i === "function")?i.call(this.el,this):i}}function r(e){var t=M.length,i=(N+e)%t;return 0>i?t+i:i}function a(e,t){return Math.round((/%/.test(e)?("x"===t?W.width():o())/100:1)*parseInt(e,10))}function l(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function d(e,t){return e.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function c(e){"contains"in _[0]&&!_[0].contains(e.target)&&e.target!==w[0]&&(e.stopPropagation(),_.focus())}function h(e){h.str!==e&&(_.add(w).removeClass(h.str).addClass(e),h.str=e)}function g(t){N=0,t&&t!==!1&&"nofollow"!==t?(M=e("."+J).filter(function(){var i=e.data(this,Y),n=new s(this,i);return n.get("rel")===t}),N=M.index(L.el),-1===N&&(M=M.add(L.el),N=M.length-1)):M=e(L.el)}function u(i){e(t).trigger(i),te.triggerHandler(i)}function f(i){var o;if(!F){if(o=e(i).data(Y),L=new s(i,o),g(L.get("rel")),!V){V=R=!0,h(L.get("className")),_.css({visibility:"hidden",display:"block",opacity:""}),k=n(ie,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(k),$=x.height()+T.height()+b.outerHeight(!0)-b.height(),q=C.width()+S.width()+b.outerWidth(!0)-b.width(),B=k.outerHeight(!0),e.trim(L.get("title")).length>0&&(B+=40,se=!0),D=k.outerWidth(!0);var r=a(L.get("initialWidth"),"x"),l=a(L.get("initialHeight"),"y"),d=L.get("maxWidth"),u=L.get("maxHeight");L.w=Math.max((d!==!1?Math.min(r,a(d,"x")):r)-D-q,0),L.h=Math.max((u!==!1?Math.min(l,a(u,"y")):l)-B-$,0),k.css({width:"",height:L.h}),K.position(),L.get("onOpen"),_.focus(),L.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",c,!0),te.one(Z,function(){t.removeEventListener("focus",c,!0)})),L.get("returnFocus")&&te.one(Z,function(){e(L.el).focus()})}var f=parseFloat(L.get("opacity"));w.css({opacity:f===f?f:"",cursor:L.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),L.get("closeButton")?z.html(L.get("close")).appendTo(b):z.appendTo("<div/>"),v()}}function p(){_||(G=!1,W=e(i),_=n(ie).attr({id:Y,"class":e.support.opacity===!1?Q+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=n(ie,"Overlay").hide(),E=e([n(ie,"LoadingOverlay")[0],n(ie,"LoadingGraphic")[0]]),y=n(ie,"Wrapper"),b=n(ie,"Content").append(H=n(ie,"Title"),O=n(ie,"Current"),E),z=e('<button type="button"/>').attr({id:Q+"Close"}),y.append(n(ie).append(n(ie,"TopLeft"),x=n(ie,"TopCenter"),n(ie,"TopRight")),n(ie,!1,"clear:left").append(C=n(ie,"MiddleLeft"),b,S=n(ie,"MiddleRight")),n(ie,!1,"clear:left").append(n(ie,"BottomLeft"),T=n(ie,"BottomCenter"),n(ie,"BottomRight"))).find("div div").css({"float":"left"}),I=n(ie,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;")),t.body&&!_.parent().length&&e(t.body).append(w,_.append(y,I))}function m(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||(e.preventDefault(),f(this))}return _?(G||(G=!0,z.on("click", function(){K.close()}),w.on("click", function(){L.get("overlayClose")&&K.close()}),e(t).bind("keydown."+Q,function(e){var t=e.keyCode;V&&L.get("escKey")&&27===t&&(e.preventDefault(),K.close()),V&&L.get("arrowKey")&&M[1]&&!e.altKey&&(37===t?(e.preventDefault(),P.click()):39===t&&(e.preventDefault(),A.click()))}),(typeof (e.fn.on) === "function")?e(t).on("click."+Q,"."+J,i):e("."+J).live("click."+Q,i)),!0):!1}function v(){e(i).resize(function(){var e=L.cache;K.resize({height:e.height,maxHeight:e.maxHeight,maxWidth:e.maxWidth,width:e.width})});var t,o,s,r=K.prep,c=++ne;if(R=!0,j=!1,u(ee),L.get("onLoad"),L.h=L.get("height")?a(L.get("height"),"y")-B-$:L.get("innerHeight")&&a(L.get("innerHeight"),"y"),L.w=L.get("width")?a(L.get("width"),"x")-D-q:L.get("innerWidth")&&a(L.get("innerWidth"),"x"),L.mw=L.w,L.mh=L.h,L.get("maxWidth")&&(L.mw=a(L.get("maxWidth"),"x")-D-q,L.mw=L.w&&L.w<L.mw?L.w:L.mw),L.get("maxHeight")&&(L.mh=a(L.get("maxHeight"),"y")-B-$,L.mh=L.h&&L.h<L.mh?L.h:L.mh),t=L.get("href"),X=setTimeout(function(){E.show()},100),L.get("inline")){var h=e(t).eq(0);s=e("<div>").hide().insertBefore(h),te.one(ee,function(){s.replaceWith(h)}),r(h)}else if(L.get("iframe"))r(" ");else if(L.get("html")){var g="";(L.get("okbutton")||L.get("cancelbutton"))&&(g+='<div class="'+Q+'buttons">',L.get("okbutton")&&(g+='<button class="'+Q+'okbutton" onclick="$.gsp_popup.close(); $.gsp_popup.confirmCallback(\'ok\');">'+L.get("okbutton")+"</button>"),L.get("cancelbutton")&&(g+='<button class="'+Q+'cancelbutton" onclick="$.gsp_popup.close(); $.gsp_popup.confirmCallback(\'cancel\')">'+L.get("cancelbutton")+"</button>"),g+="</div>"),r(L.get("html")+g)}else l(L,t)?(t=d(L,t),j=L.get("createImg"),e(j).addClass(Q+"Photo").bind("error."+Q,function(){r(n(ie,"Error").html(L.get("imgError")))}).one("load",function(){c===ne&&setTimeout(function(){var t;L.get("retinaImage")&&i.devicePixelRatio>1&&(j.height=j.height/i.devicePixelRatio,j.width=j.width/i.devicePixelRatio),L.get("scalePhotos")&&(o=function(){j.height-=j.height*t,j.width-=j.width*t},L.mw&&j.width>L.mw&&(t=(j.width-L.mw)/j.width,o()),L.mh&&j.height>L.mh&&(t=(j.height-L.mh)/j.height,o())),L.h&&(j.style.marginTop=Math.max(L.mh-j.height,0)/2+"px"),M[1]&&(L.get("loop")||M[N+1])&&(j.style.cursor="pointer",e(j).bind("click."+Q,function(){K.next()})),j.style.width=j.width+"px",j.style.height=j.height+"px",r(j)},1)}),j.src=t):t&&I.on("load",t,L.get("data"),function(t,i){c===ne&&r("error"===i?n(ie,"Error").html(L.get("xhrError")):e(this).contents())})}var w,_,y,b,x,C,S,T,M,W,k,I,E,H,O,A,P,z,L,$,q,B,D,N,j,V,R,F,X,K,G,U={html:!1,photo:!1,iframe:!1,inline:!1,alert:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,resize:!0,loop:!0,photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title},createImg:function(){var t=new Image,i=e(this).data("cbox-img-attrs");return"object"==typeof i&&e.each(i,function(e,i){t[e]=i}),t},createIframe:function(){var i=t.createElement("iframe"),n=e(this).data("cbox-iframe-attrs");return"object"==typeof n&&e.each(n,function(e,t){i[e]=t}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="gsp_popup",Q="gspp_",J=Q+"Element",Z="gse_closed",ee="gse_purge",te=e("<a/>"),ie="div",ne=0,oe={},se=!1;e[Y]||(e(p),K=e.fn[Y]=e[Y]=function(t,i){var n,o=this;return t=t||{},(typeof o === "function")&&(o=e("<a/>"),t.open=!0),o[0]?(p(),m()&&(i&&(t.onComplete=i),o.each(function(){var i=e.data(this,Y)||{};e.data(this,Y,e.extend(i,t))}).addClass(J),n=new s(o[0],t),n.get("open")&&f(o[0])),o):o},K.position=function(t,i){function n(){x[0].style.width=T[0].style.width=b[0].style.width=parseInt(_[0].style.width,10)-q+"px",b[0].style.height=C[0].style.height=S[0].style.height=parseInt(_[0].style.height,10)-$+"px"}var s,r,l,d=0,c=0,h=_.offset();if(W.unbind("resize."+Q),_.css({top:-9e4,left:-9e4}),r=W.scrollTop(),l=W.scrollLeft(),L.get("fixed")?(h.top-=r,h.left-=l,_.css({position:"fixed"})):(d=r,c=l,_.css({position:"absolute"})),c+=L.get("right")!==!1?Math.max(W.width()-L.w-D-q-a(L.get("right"),"x"),0):L.get("left")!==!1?a(L.get("left"),"x"):Math.round(Math.max(W.width()-L.w-D-q,0)/2),d+=L.get("bottom")!==!1?Math.max(o()-L.h-B-$-a(L.get("bottom"),"y"),0):L.get("top")!==!1?a(L.get("top"),"y"):Math.round(Math.max(o()-L.h-B-$,0)/2),_.css({top:h.top,left:h.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",s={width:L.w+D+q,height:L.h+B+$,top:d,left:c},t){var g=0;e.each(s,function(e){return s[e]!==oe[e]?void(g=t):void 0}),t=g}oe=s,t||_.css(s),_.dequeue().animate(s,{duration:t||0,complete:function(){n(),R=!1,y[0].style.width=L.w+D+q+"px",y[0].style.height=L.h+B+$+"px",L.get("reposition")&&setTimeout(function(){W.bind("resize."+Q,K.position)},1),(typeof i === "function")&&i()},step:n})},K.resize=function(e){var t;if(V){if(e=e||{},e.width&&(L.w=a(e.width,"x")-D-q),e.innerWidth&&(L.w=a(e.innerWidth,"x")),e.maxWidth){var i=a(e.maxWidth,"x");L.w>=i&&(L.w=i)}k.css({width:L.w}),e.height&&(L.h=a(e.height,"y")-B-$),e.innerHeight&&(L.h=a(e.innerHeight,"y")),e.innerHeight||e.height||(t=k.scrollTop(),k.css({height:"auto"}),L.h=k.height()),k.css({height:L.h}),t&&k.scrollTop(t),K.position("none"===L.get("transition")?0:L.get("speed"))}},K.prep=function(i){function o(){return L.w=L.w||k.width(),L.w=L.mw&&L.mw<L.w?L.mw:L.w,L.w}function a(){return L.h=L.h||k.height(),L.h=L.mh&&L.mh<L.h?L.mh:L.h,L.h}if(V){var c,g="none"===L.get("transition")?0:L.get("speed");k.remove(),k=n(ie,"LoadedContent").append(i),se&&k.addClass(Q+"titled"),k.hide().appendTo(I.show()).css({width:o(),overflow:L.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),I.hide(),e(j).css({"float":"none"}),h(L.get("className")),c=function(){function i(){e.support.opacity===!1&&_[0].style.removeAttribute("filter")}var n,o,a=M.length;V&&(o=function(){clearTimeout(X),E.hide(),L.get("onComplete")},H.html(L.get("title")).show(),k.show(),a>1&&("string"==typeof L.get("current")&&O.html(L.get("current").replace("{current}",N+1).replace("{total}",a)).show(),L.get("preloading")&&e.each([r(-1),r(1)],function(){var i,n=M[this],o=new s(n,e.data(n,Y)),r=o.get("href");r&&l(o,r)&&(r=d(o,r),i=t.createElement("img"),i.src=r)})),L.get("iframe")?(n=L.get("createIframe"),L.get("scrolling")||(n.scrolling="no"),e(n).attr({src:L.get("href"),"class":Q+"Iframe"}).one("load",o).appendTo(k),te.one(ee,function(){n.src="//about:blank"}),L.get("fastIframe")&&e(n).trigger("load")):o(),"fade"===L.get("transition")?_.fadeTo(g,1,i):i())},"fade"===L.get("transition")?_.fadeTo(g,0,function(){K.position(0,c)}):K.position(g,c)}},K.confirmCallback=function(e){"ok"==e?L.get("onConfirmOk"):L.get("onConfirmCancel")},K.close=function(){V&&!F&&(F=!0,V=!1,L.get("onCleanup"),W.unbind("."+Q),w.fadeTo(L.get("fadeOut")||0,0),_.stop().fadeTo(L.get("fadeOut")||0,0,function(){_.hide(),w.hide(),u(ee),k.remove(),setTimeout(function(){F=!1,u(Z),L.get("onClosed")},1)}))},K.remove=function(){_&&(_.stop(),e[Y].close(),_.stop(!1,!0).remove(),w.remove(),F=!1,_=null,e("."+J).removeData(Y).removeClass(J),e(t).unbind("click."+Q).unbind("keydown."+Q))},K.element=function(){return e(L.el)},K.settings=U)}(jQuery,document,window);

!function(i){"use strict";var e="navigator"in window&&"userAgent"in navigator&&navigator.userAgent.toLowerCase()||"",n="navigator"in window&&"vendor"in navigator&&navigator.vendor.toLowerCase()||"",t="navigator"in window&&"appVersion"in navigator&&navigator.appVersion.toLowerCase()||"",o={_hasWebPSupport:void 0,browser:function(){var i=/(opr|ubrowser|ucbrowser|ucweb|edge|iemobile)[ \/]([\w.]+)/.exec(e)||/(chrome|firefox)[ \/]([\w.]+)/.exec(e)||/(^Opera\/)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||/(safari)[ \/]([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];switch(i[1]){case"ucweb":i[1]="ucbrowser";break;case"opr":i[1]="opera"}return"ActiveXObject"in window&&(i[1]="msie"),{browser:i[1]||"",version:i[2]||"0"}},isChrome:function(){return/chrome|chromium/i.test(e)&&/google inc/.test(n)&&!o.isOpera()},isFirefox:function(){return/firefox/i.test(e)},isEdge:function(){return/edge/i.test(e)},isIE:function(i){return i?i>=11?"ActiveXObject"in window:new RegExp("msie "+i).test(e):/msie/i.test(e)||"ActiveXObject"in window},isOpera:function(){return/^opera\//.test(e)||/\x20opr\//.test(e)},isSafari:function(){return/safari/i.test(e)&&/apple computer/i.test(n)},isUCBrowser:function(){return/uc.*browser|ucweb/i.test(e)},isIos:function(){return o.isIphone()||o.isIpad()||o.isIpod()},isIphone:function(){return/iphone/i.test(e)&&!o.isWindows()},isIpad:function(){return/ipad/i.test(e)&&!o.isWindows()},isIpod:function(){return/ipod/i.test(e)&&!o.isWindows()},isAndroid:function(){return/android/i.test(e)&&!o.isWindows()},isAndroidPhone:function(){return o.isAndroid()&&/mobile/i.test(e)},isAndroidTablet:function(){return/android/i.test(e)&&!/mobile/i.test(e)},isBlackberry:function(){return/blackberry/i.test(e)||/BB10/i.test(e)},isDesktop:function(){return!o.isMobile()&&!o.isTablet()},isLinux:function(){return/linux/i.test(t)},isMac:function(){return/mac/i.test(t)},isWindows:function(){return/win/i.test(t)},isWindowsPhone:function(){return o.isWindows()&&/phone/i.test(e)},isWindowsTablet:function(){return o.isWindows()&&!o.isWindowsPhone()&&/touch/i.test(e)},isMobile:function(){return o.isIphone()||o.isIpod()||o.isAndroidPhone()||o.isBlackberry()||o.isWindowsPhone()},isTablet:function(){return o.isIpad()||o.isAndroidTablet()||o.isWindowsTablet()},isOnline:function(){return navigator.onLine},isTouchDevice:function(){return"ontouchstart"in window||"DocumentTouch"in window&&document instanceof DocumentTouch},isWebpSupport:function(i){var e=this;if(void 0!==e._hasWebPSupport)"function"==typeof i&&i(e._hasWebPSupport);else{var n=new Image;n.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",n.onload=n.onerror=function(){e._hasWebPSupport=n.height>0,n=null,"function"==typeof i&&i(e._hasWebPSupport)}}},isGeoLocation:function(){return"object"==typeof navigator.geolocation},_init:function(){i("img[data-gsd-webp]").length>0&&this.isWebpSupport()}};i.gsp_detect=o,i(function(){i.gsp_detect._init()})}(jQuery);
/*!
 * Custom ScrollBar
 * @copyright (c) 2016 Divya Solanki
 * @license   Licensed under MIT license
 */
!function(s){"use strict";var t="*[data-gsc-scroll]",a={aConts:[],mouseY:0,N:0,asd:0,sc:0,sp:0,to:0,ini:!1,scrollbar:function(t){var o=t;if(!a.init())return!1;var n=s("<div/>",{}).css({overflow:"hidden"}).addClass("gsc_scroll");o.hasClass("gsc_thin_scroll")&&(n=s("<div/>",{}).css({overflow:"hidden"}).addClass("gsc_thin_scroll")),o.css({position:"absolute",top:0,left:0,width:"100%",height:"95%"}),o.hasClass("gsc_thin_scroll")&&o.css({height:"100%"}),o.wrap(n),a.aConts[a.N++]=o,o.data("sg",!1),o.data("st",this.create_div("gs_sb_st",o)),o.data("sb",this.create_div("gs_sb_sb",o)),o.hasClass("gsc_scroll")&&(o.data("su",this.create_div("gs_sb_up",o)),o.data("sd",this.create_div("gs_sb_down",o))),o.data("sb").on("mousedown",function(t){var o=s(this).data("cont");return o.data("sg")||(a.asd=o,o.data("yZ",t.screenY),o.data("sZ",o.scrollTop()),o.data("sg",!0),s(this).attr("class","gs_sb_sb gs_sb_sb_down")),!1}),o.data("st").on("mousedown",function(t){var o=s(this).data("cont");a.asd=o,a.mouseY=t.clientY+s("body").scrollTop()+s("html").scrollTop();for(var n=o[0],r=0;null!=n;n=n.offsetParent)r+=n.offsetTop;var e=o.data("ratio"),i=(a.mouseY-r-e*o[0].offsetHeight/2-o.data("sw"))/e;o.scrollTop(i),o.data("sb").trigger("mousedown")}),o.hasClass("gsc_scroll")&&(o.data("su").on("mousedown dblclick",function(t){return a.mousedown(s(this),-1),!1}),o.data("sd").on("mousedown dblclick",function(t){return a.mousedown(s(this),1),!1}),o.data("su").on("mouseout mouseup",function(s){a.clear()}),o.data("sd").on("mouseout mouseup",function(s){a.clear()})),o.data("sb").on("mouseover",function(t){var a=s(this).data("cont").data("sg");return a||s(this).attr("class","gs_sb_sb gs_sb_sb_over"),!1}),o.data("sb").on("mouseout",function(t){var a=s(this).data("cont").data("sg");return a||s(this).attr("class","gs_sb_sb"),!1}),o.on("scroll.enscroll",function(){a.gssb_onscroll(s(this))}),o.data("sw",16),a.gssb_onscroll(o),a.refresh()},gssb_onscroll:function(s){var t=s,a=(t[0].offsetHeight-2*t.data("sw"))/t[0].scrollHeight;t.data("ratio",a),t.data("sb").css({top:Math.floor(t.data("sw")+t.scrollTop()*a)}),t.hasClass("gsc_thin_scroll")&&t.data("sb").css({top:Math.floor(t.scrollTop()*a)})},init:function(){return a.ini||(s(window.document).on("mouseup",a.onmouseup),s(window.document).on("mousemove",a.onmousemove),s(window).on("refresh",a.refresh),a.ini=!1),!0},create_div:function(t,a){var o=s("<div/>",{"class":t}).data("cont",a);return a.parent().append(o),o},clear:function(){return clearTimeout(a.to),a.sc=0,!1},refresh:function(){for(var s=0,t=a.N;t>s;s++){var o=a.aConts[s];a.gssb_onscroll(o);o.data("sw");o.data("sb").css({height:Math.ceil(Math.max(.5*o.data("sw"),o.data("ratio")*o[0].offsetHeight)+1)}),o.hasClass("gsc_thin_scroll")&&o.data("sb").css({height:Math.ceil(Math.max(.5*o.data("sw"),o.data("ratio")*o[0].offsetHeight)+1+30)})}},arrow_scroll:function(){0!=a.sc&&(a.asd[0].scrollTop+=6*a.sc/a.asd.data("ratio"),a.to=setTimeout(a.arrow_scroll,a.sp),a.sp=32)},mousedown:function(s,t){0==a.sc&&(s.data("cont").data("sb").attr("class","gs_sb_sb gs_sb_sb_down"),a.asd=s.data("cont"),a.sc=t,a.sp=400,a.arrow_scroll())},onmousemove:function(s){a.mouseY=s.screenY,"number"!=typeof a.asd&&a.asd.data("sg")&&(a.asd[0].scrollTop=a.asd.data("sZ")+(a.mouseY-a.asd.data("yZ"))/a.asd.data("ratio"))},onmouseup:function(s){if("number"!=typeof a.asd){s.target?s.target:s.srcElement;a.asd&&a.asd.data("sb").attr("class","gs_sb_sb"),document.onselectstart="",a.clear(),a.asd.data("sg",!1)}},scrollTable:function(t){var a=s(t),o=a.find("tbody tr:first").children();a.find("tbody tr").removeAttr("style"),a.find("tbody tr td, tbody th td").width("auto");var n=o.map(function(){return s(this).width()}).get();a.find("thead tr,tbody tr").children().each(function(t,a){s(a).width(n[t%n.length])}),a.find("tbody tr").width("auto")}},o=function(s){var t=!1;for(var o in a.aConts)s.is(a.aConts[o])&&(t=!0);return t},n=function(t){var o="tbody"+t;void 0!==t.selector&&(o="tbody"+t.selector),s(o).each(function(){this.scrollHeight>s(this).innerHeight()&&a.scrollTable(s(this).parents("table")[0]),s(this).on("gse_scroll_update",function(){a.scrollTable(s(this).parents("table")[0])})})},r=function(t){var r=s.gsp_detect.isFirefox(),e=s.gsp_detect.isEdge(),i=s.gsp_detect.isIE();return n(t),r||e||i?void s(t).each(function(){s(this).on("gse_scroll_update",function(){var t=o(s(this));t?a.refresh():this.scrollHeight>s(this).innerHeight()&&a.scrollbar(s(this))}),this.scrollHeight>s(this).innerHeight()&&a.scrollbar(s(this))}):!1};s.fn.gsc_scroll=function(){r(this)},s(function(){r(t)})}(jQuery);

/*! jQuery UI - v1.10.4 - 2018-12-20
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.position.js, jquery.ui.autocomplete.js, jquery.ui.menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

(function(t,e){function i(e,i){var n,o,a,r=e.nodeName.toLowerCase();return"area"===r?(n=e.parentNode,o=n.name,e.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap=#"+o+"]")[0],!!a&&s(a)):!1):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r?e.href||i:i)&&s(e)}function s(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var n=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",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}}),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),s&&s.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,n,o=t(this[0]);o.length&&o[0]!==document;){if(s=o.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(e,!n)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function n(e,i,s,n){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),n&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===s?["Left","Right"]:["Top","Bottom"],a=s.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?r["inner"+s].call(this):this.each(function(){t(this).css(a,n(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?r["outer"+s].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i){var s,n=t.plugins[e];if(n&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(s=0;n.length>s;s++)t.options[n[s][0]]&&n[s][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)}})})(jQuery);(function(t,e){var i=0,s=Array.prototype.slice,n=t.cleanData;t.cleanData=function(e){for(var i,s=0;null!=(i=e[s]);s++)try{t(i).triggerHandler("remove")}catch(o){}n(e)},t.widget=function(i,s,n){var o,a,r,h,l={},c=i.split(".")[0];i=i.split(".")[1],o=c+"-"+i,n||(n=s,s=t.Widget),t.expr.pseudos[o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},a=t[c][i],r=t[c][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new r(t,i)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),h=new s,h.options=t.widget.extend({},h.options),t.each(n,function(i,n){return ( typeof n === 'function' )?(l[i]=function(){var t=function(){return s.prototype[i].apply(this,arguments)},e=function(t){return s.prototype[i].apply(this,t)};return function(){var i,s=this._super,o=this._superApply;return this._super=t,this._superApply=e,i=n.apply(this,arguments),this._super=s,this._superApply=o,i}}(),e):(l[i]=n,e)}),r.prototype=t.widget.extend(h,{widgetEventPrefix:a?h.widgetEventPrefix||i:i},l,{constructor:r,namespace:c,widgetName:i,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete a._childConstructors):s._childConstructors.push(r),t.widget.bridge(i,r)},t.widget.extend=function(i){for(var n,o,a=s.call(arguments,1),r=0,h=a.length;h>r;r++)for(n in a[r])o=a[r][n],a[r].hasOwnProperty(n)&&o!==e&&(i[n]=t.isPlainObject(o)?t.isPlainObject(i[n])?t.widget.extend({},i[n],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,n){var o=n.prototype.widgetFullName||i;t.fn[i]=function(a){var r="string"==typeof a,h=s.call(arguments,1),l=this;return a=!r&&h.length?t.widget.extend.apply(null,[a].concat(h)):a,r?this.each(function(){var s,n=t.data(this,o);return n?(typeof (n[a]) === 'function')&&"_"!==a.charAt(0)?(s=n[a].apply(n,h),s!==n&&s!==e?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):e):t.error("no such method '"+a+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+a+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(a||{})._init():t.data(this,o,new n(a,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.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:t.noop,widget:function(){return this.element},option:function(i,s){var n,o,a,r=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(r={},n=i.split("."),i=n.shift(),n.length){for(o=r[i]=t.widget.extend({},this.options[i]),a=0;n.length-1>a;a++)o[n[a]]=o[n[a]]||{},o=o[n[a]];if(i=n.pop(),1===arguments.length)return o[i]===e?null:o[i];o[i]=s}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];r[i]=s}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),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(i,s,n){var o,a=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=o=t(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,o=this.widget()),t.each(n,function(n,r){function h(){return i||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):e}"string"!=typeof r&&(h.guid=r.guid=r.guid||h.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?o.on(c,u,h):s.bind(c,h)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!((typeof a === 'function')&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}})})(jQuery);(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,a=Math.max,r=Math.abs,l=Math.round,h=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(o!==e)return o;var i,s,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=n.children()[0];return t("body").append(n),i=a.offsetWidth,n.css("overflow","scroll"),s=a.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),o=i-s},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var o,p,g,m,v,_,b=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),k=(e.collision||"flip").split(" "),x={};return _=n(b),b[0].preventDefault&&(e.at="left top"),p=_.width,g=_.height,m=_.offset,v=t.extend({},m),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=h.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=h.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=g:"center"===e.at[1]&&(v.top+=g/2),o=i(x.at,p,g),v.left+=o[0],v.top+=o[1],this.each(function(){var n,h,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),_=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,C=d+_+s(this,"marginBottom")+w.height,I=t.extend({},v),M=i(x.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?I.left-=u:"center"===e.my[0]&&(I.left-=u/2),"bottom"===e.my[1]?I.top-=d:"center"===e.my[1]&&(I.top-=d/2),I.left+=M[0],I.top+=M[1],t.support.offsetFractions||(I.left=l(I.left),I.top=l(I.top)),n={marginLeft:f,marginTop:_},t.each(["left","top"],function(i,s){t.ui.position[k[i]]&&t.ui.position[k[i]][s](I,{targetWidth:p,targetHeight:g,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:C,offset:[o[0]+M[0],o[1]+M[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(h=function(t){var i=m.left-I.left,s=i+p-u,n=m.top-I.top,o=n+g-d,l={target:{element:b,left:m.left,top:m.top,width:p,height:g},element:{element:c,left:I.left,top:I.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>o?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(l.horizontal="center"),d>g&&g>r(n+o)&&(l.vertical="middle"),l.important=a(r(i),r(s))>a(r(n),r(o))?"horizontal":"vertical",e.using.call(this,t,l)}),c.offset(t.extend(I,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-o-n;e.collisionWidth>o?l>0&&0>=h?(i=t.left+l+e.collisionWidth-o-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+o-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=a(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-o-n;e.collisionHeight>o?l>0&&0>=h?(i=t.top+l+e.collisionHeight-o-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+o-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=a(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,a=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-a-o,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,a=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-a-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-a-o,t.top+p+f+g>c&&(0>s||r(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,t.top+p+f+g>u&&(i>0||u>r(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,o,a=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(a?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in s)e.style[o]=s[o];e.appendChild(r),i=a||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()})(jQuery);(function(t){t.widget("ui.autocomplete",{version:"1.10.4",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},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o?!0:a?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,undefined;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),undefined;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),undefined):(this._searchTimeout(t),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(t),this._change(t),undefined)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),undefined;var s=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:s})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<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(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):undefined},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[t](e),undefined):(this.search(null,e),undefined)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})})(jQuery);(function(t){t.widget("ui.menu",{version:"1.10.4",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,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),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 e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,o,a,r,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,n=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===n?a=!0:o=n+o,r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())}),s=a&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(o=String.fromCharCode(e.keyCode),r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,s=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),s.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 e=t(this),s=e.prev("a"),n=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",s.attr("id"))}),e=s.add(this.element),e.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()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.height(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},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(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(e),undefined)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(e),undefined)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})})(jQuery);

/*!
 * Generated using the Bootstrap Customizer (https://getbootstrap.com/docs/3.4/customize/)
 */

/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */

if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide;n||o.data("bs.carousel",n=new i(this,s)),"number"==typeof e?n.to(e):r?n[r]():s.interval&&n.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),o="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(o&&!this.options.wrap)return e;var n="prev"==t?-1:1,s=(i+n)%this.$items.length;return this.$items.eq(s)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,o){var n=this.$element.find(".item.active"),s=o||this.getItemForDirection(e,n),r=this.interval,a="next"==e?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var h=s[0],d=t.Event("slide.bs.carousel",{relatedTarget:h,direction:a});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var p=t(this.$indicators.children()[this.getItemIndex(s)]);p&&p.addClass("active")}var c=t.Event("slid.bs.carousel",{relatedTarget:h,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),"object"==typeof s&&s.length&&s[0].offsetWidth,n.addClass(a),s.addClass(a),n.one("bsTransitionEnd",function(){s.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(c)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(n.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(c)),r&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this};var n=function(i){var o=t(this),n=o.attr("href");n&&(n=n.replace(/.*(?=#[^\s]+$)/,""));var s=o.attr("data-target")||n,r=t(document).find(s);if(r.hasClass("carousel")){var a=t.extend({},r.data(),o.data()),l=o.attr("data-slide-to");l&&(a.interval=!1),e.call(r,a),l&&r.data("bs.carousel").to(l),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var n=t(this),s=n.data("bs.modal"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);s||n.data("bs.modal",s=new i(this,r)),"string"==typeof e?s[e](o):r.show&&s.show(o)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var o=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),n&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});n?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(i.TRANSITION_DURATION):o.$element.trigger("focus").trigger(s)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each(function(e,o){var n=o.style.paddingRight,s=t(o).css("padding-right");t(o).data("padding-right",n).css("padding-right",parseFloat(s)+i+"px")}))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,i){var o=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=o?o:""})},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),n=o.attr("href"),s=o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(document).find(s),a=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},r.data(),o.data());o.is("a")&&i.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(r,a,this)})}(jQuery),+function(t){"use strict";function e(e,i){var o=e.nodeName.toLowerCase();if(-1!==t.inArray(o,i))return-1!==t.inArray(o,s)?Boolean(e.nodeValue.match(l)||e.nodeValue.match(h)):!0;for(var n=t(i).filter(function(t,e){return e instanceof RegExp}),r=0,a=n.length;a>r;r++)if(o.match(n[r]))return!0;return!1}function i(i,o,n){if(0===i.length)return i;if(n&&"function"==typeof n)return n(i);if(!document.implementation||!document.implementation.createHTMLDocument)return i;var s=document.implementation.createHTMLDocument("sanitization");s.body.innerHTML=i;for(var r=t.map(o,function(t,e){return e}),a=t(s.body).find("*"),l=0,h=a.length;h>l;l++){var d=a[l],p=d.nodeName.toLowerCase();if(-1!==t.inArray(p,r))for(var c=t.map(d.attributes,function(t){return t}),u=[].concat(o["*"]||[],o[p]||[]),f=0,m=c.length;m>f;f++)e(c[f],u)||d.removeAttribute(c[f].nodeName);else d.parentNode.removeChild(d)}return s.body.innerHTML}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new d(this,n)),"string"==typeof e&&o[e]())})}var n=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^aria-[\w-]*$/i,a={"*":["class","dir","id","lang","role",r],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,h=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,d=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};d.VERSION="3.4.1",d.TRANSITION_DURATION=150,d.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},d.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find((typeof (this.options.viewport) === "function")?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(e){var o=this.$element.data();for(var s in o)o.hasOwnProperty(s)&&-1!==t.inArray(s,n)&&delete o[s];return e=t.extend({},this.getDefaults(),o,e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=i(e.template,e.whiteList,e.sanitizeFn)),e},d.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},d.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},d.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),p=n[0].offsetWidth,c=n[0].offsetHeight;if(l){var u=r,f=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+c>f.bottom?"top":"top"==r&&h.top-c<f.top?"bottom":"right"==r&&h.right+p>f.width?"left":"left"==r&&h.left-p<f.left?"right":r,n.removeClass(u).addClass(r)}var m=this.getCalculatedOffset(r,h,p,c);this.applyPlacement(m,r);var g=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",g).emulateTransitionEnd(d.TRANSITION_DURATION):g()}},d.prototype.applyPlacement=function(e,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=s&&(e.top=e.top+s-h);var d=this.getViewportAdjustedDelta(i,e,l,h);d.left?e.left+=d.left:e.top+=d.top;var p=/top|bottom/.test(i),c=p?2*d.left-n+l:2*d.top-s+h,u=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][u],p)},d.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},d.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=i(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},d.prototype.hide=function(e){function i(){"in"!=o.hoverState&&n.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),e&&e()}var o=this,n=t(this.$tip),s=t.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(d.TRANSITION_DURATION):i(),this.hoverState=null,this)},d.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=window.SVGElement&&i instanceof window.SVGElement,r=o?{top:0,left:0}:s?null:e.offset(),a={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,a,l,r)},d.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},d.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+o;a<r.top?n.top=r.top-a:l>r.top+r.height&&(n.top=r.top+r.height-l)}else{var h=e.left-s,d=e.left+s+i;h<r.left?n.left=r.left-h:d>r.right&&(n.left=r.left+r.width-d)}return n},d.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},d.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},d.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},d.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},d.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var p=t.fn.tooltip;t.fn.tooltip=o,t.fn.tooltip.Constructor=d,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=p,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||o.data("bs.popover",n=new i(this,s)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery);

$(window).on("unload",function(){$(window).scrollTop(0)});window.onunload=function(){window.scrollTo(0,0)};"scrollRestoration"in history&&(history.scrollRestoration="manual");var selectModelForReview=0,isReviewWidget=0;
(function(b){b.fn.lazyload=function(){0<b(this).length&&("loading"in HTMLImageElement.prototype?b(this).each(function(c,d){d.getAttribute("data-original")&&(768>screen.width&&d.getAttribute("data-small")?(d.src=d.getAttribute("data-small"),d.loading="lazy",d.removeAttribute("data-small")):d.src=d.getAttribute("data-original"),d.loading="lazy",d.removeAttribute("data-original"))}):(b(this).each(function(c,d){b(d).attr("data-gsll-src",b(d).attr("data-original")).removeAttr("data-original")}),b(this).gsp_lazyload()))};
b.fn.formlogin=function(){b(this).on("change focus",function(){b(this).parents(".form-group").find("label").css("bottom","32px")});b(this).on("blur",function(){if(""!==b(this).val())return!1;b(this).parents(".form-group").find("label").removeAttr("style")});b(this).each(function(){""!==b(this).val()&&b(this).parents(".form-group").find("label").css({bottom:"32px"})})}})(jQuery);
function newLogin(){setTimeout(function(){1==$(".ot_uw_1").is(":visible")&&$("body").addClass("modal-open")},200);$(document).on("click",".ot_cls",function(){$(".ot_bx,.ot_uw_1").hide();$("body").removeClass("modal-open")})}"article"!=SOURCE&&"model"!=SOURCE&&"model-picture"!=SOURCE||window.addEventListener("load",function(){$.ajax({type:"POST",url:SITEPATH+"/tpl/share_tpl.php",success:function(b){$("#share-fb-tw").html(b);socialShare()}})});
window.addEventListener("load",function(){$.ajax({type:"POST",url:SITEPATH+"/tpl/rate_review_widget_tpl.php",success:function(b){0<$("#rate_review_widget").length&&$("#rate_review_widget").html(b)}})});
function slideShareScreen(b,c,d){var e=escape(window.location.href),f=document.title;"undefined"!=typeof c&&null!=c&&(e=c,f=d);c="";1==b?c="https://www.facebook.com/sharer/sharer.php?u="+e+"&title="+f:2==b&&(c="https://twitter.com/intent/tweet?url="+e+"&text="+f);""!=c&&window.open(c,"shareWindow","status = 1, height = 300, width = 600, resizable = 0")}
$.fn.isInViewport=function(){if(0==$(this).length)return!1;var b=$(this).offset().top,c=b+$(this).outerHeight(),d=$(window).scrollTop(),e=d+$(window).height();return c>d&&b<e};var toOpenReviewPopUp=!0;
function setGtmTracking(b,c,d,e,f){if("undefined"==typeof b||"eventCategory"==b||""==b)b=eventCategory;f="click";"undefined"!=typeof d&&(f=d);"undefined"!=typeof e&&parseInt(e);dataLayer.push({event:"buttonclick",componentname:b,labelname:c});"undefined"!=typeof ga&&ga("consolidated.send","event",b,f,c);"undefined"!=typeof ga&&ga("send","event",b,f,c)}
function hitGtmPageView(b){b=void 0===b?1:b;"undefined"!=typeof ga&&(ga("consolidated.set","page",document.location.pathname),ga("consolidated.send","pageview"));1==b&&"undefined"!=typeof ga&&(ga("set","page",document.location.pathname),ga("send","pageview"))}
$("body").on("mousedown","[data-track-label]",function(){var b=$(this).data("track-component"),c=$(this).data("track-label"),d=$(this).data("track-action");if("undefined"==typeof d||""==d)d="click";var e=$(this).data("track-moe");"undefined"==typeof e&&(e=1);var f=$(this).data("track-uamain");"undefined"==typeof f&&(f=1);setGtmTracking(b,c,d,e,f)});
function reviewCol(){0==$("body").hasClass("r-expend")&&($(document).on("click",".s-smily",function(){1==$(".r-hide").hasClass("a")&&($(".r-heading").addClass("o"),$(".r-hide").slideDown().removeClass("a"),$(".srt-r").addClass("hidden"),$("body").addClass("r-expend"),$(".r-heading").removeClass("hidden"),0==$(".gm_w_buy").length&&($("#submit_rev").addClass("active"),$("#submit_rev_deactive").css("display","none")))}),$(document).on("click",".r-heading.o",function(){$(".r-heading").removeClass("o");
$(".r-hide").slideUp(800).addClass("a");$(".srt-r").removeClass("hidden");$(".r-heading").addClass("hidden");0==$(".gm_w_buy").length&&($("#submit_rev").addClass("active"),$("#submit_rev_deactive").css("display","none"))}))}function newSearchDevice(){var b=$("#headerSearch");$(".search_icon").on("click",function(){b.is(":focus")||b.focus()})}
function zwMenu(){if(767>=$(window).innerWidth()){var b=$(window).height()-$(".zw-hm-navBottomBand").outerHeight();$(".zw-hm-nav").css("height",b)}$(".zw-home-download-box").on("click",function(){$(".zw-home-nav").css("transform","none");$("body").addClass("zw-cmn-overflowHidden")});$(".navClose").on("click",function(){$(".zw-home-nav").css("transform","translateY(-100%)");$("body").removeClass("zw-cmn-overflowHidden")});var c=$(".zw-home-nav");$(".zw-home-download-box").on("click",function(){c.show();
return!1});$(document).on("click",function(){c.css("transform","translateY(-100%)");$("body").removeClass("zw-cmn-overflowHidden")});c.on("click",function(d){d.stopPropagation()})}jQuery(function(){jQuery(".error").hide()});function isValidEmail(b){emailRe=/^\w+([\.-]?\w+)*@\w+([\.-]?(\w)+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/;return emailRe.test(b)?!0:!1}
function Get_Cookie(b){b=unescape((document.cookie.match("(^|; )"+b+"=([^;]*)")||0)[2]);return""==b||"undefined"==b?null:b}function Set_Cookie(b,c,d,e,f,g){f=".zigwheels.com";e="/";if(Get_Cookie(b)!=c){g=new Date;g.setTime(g.getTime());d=d?864E5*d:2592E6;if("userstepstatus"==b||"exitpopupstatus"==b)d=0;g=new Date(g.getTime()+d);document.cookie=b+"="+escape(c)+(0<d?";expires="+g.toGMTString():"")+";path="+e+";domain="+f+";sameSite=None;secure=true;"}}
function del_cookie(b,c,d){"undefined"==typeof c&&(c="/");Get_Cookie(b)&&(document.cookie=b+"="+(c?";path="+c:"")+";domain=.zigwheels.com;expires=Thu, 01-Jan-1970 00:00:01 GMT;sameSite=None;secure=true;")}function isalphabetic(b){for(var c=!0,d=0;d<b.length;d++)if(0==d&&0<"_-".indexOf(b.charAt(d))){c=!1;break}else if(d==b.length-1&&0<"_-".indexOf(b.charAt(d))){c=!1;break}else if(0>" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-".indexOf(b.charAt(d))){c=!1;break}return c}
function hmcom(){if(0<$(".com_wgt").length){if("/index.php"==pageSource)var b=4,c=50;else b=3,c=30;$(".com_wgt").gsp_carousel({item:b,showUpcoming:!0,pager:!1,slideMargin:10,upcomingPercent:c,enableDrag:!0,controls:!0,slideMove:1,responsive:[{breakpoint:768,settings:{item:1,slideMove:1,controls:!1,showUpcoming:!0,upcomingPercent:20}}]})}}function resetForm(b){$("#"+b).each(function(){this.reset()})}$.ajaxSetup({cache:!0});function trakingurl(b){}
function bankbazar_linktracking(b,c){setGtmTracking("BankBazaar Banner",c,b)}function sendFinancedecryptCookie(b,c){$.ajax({url:SITEPATH+"/decryptCookie.php",data:{param:b},async:!1,success:function(d){window.location="https://loan.cardekho.com/new-car"+d+"&source=web"}})}function sendFinance(b,c){"paisa_bazaar"==c?sendFinancedecryptCookie(b,c):sendFinancedecryptCookie("sub_source="+b)}
function availoffer(b,c,d){b=b.replace(/ /gi,"-");c=c.replace(/ /gi,"-");d=d.replace(/ /gi,"-");window.location.href=""!=b&&""!=c?CMSROOTPATH+"/offers-events/"+d+"/"+b+"/"+c:""!=b?CMSROOTPATH+"/offers-events/"+d+"/"+b:CMSROOTPATH+"/offers-events/"+d}function resetUpcomingFields(){Set_Cookie("upcoming_sort_by","",upcomingExpiry,"/");Set_Cookie("upcoming_make","",upcomingExpiry,"/");return!0}
function downloadJSAtOnload(b){var c=document.createElement("script");c.type="text/javascript";c.async=!0;c.src=b;document.body.appendChild(c)}function deferLoad(b){window.addEventListener?window.addEventListener("load",function(){downloadJSAtOnload(b)},!1):window.attachEvent?window.attachEvent("onload",function(){downloadJSAtOnload(b)}):window.onload=function(){downloadJSAtOnload(b)}}var cityJSON=[],subcityJSON=[],wordJSON=[],pincodeJSON=[],pincodeCache={};
function filterCitySuggestions(b,c){jQuery("#"+b).autocomplete({minLength:2,source:function(d,e){var f=new RegExp("^"+$.ui.autocomplete.escapeRegex(d.term),"i");e($.grep(cityJSON,function(g){return f.test(g.value)}))},select:function(d,e){"undefined"!=typeof e.item.type&&"alternateCity"==e.item.type&&(d=cityJSON.filter(function(n){return n.id==e.item.id&&"alternateCity"!=n.type}),0<d.length&&(e.item=d[0]));d=e.item.name;var f=e.item.id,g=e.item.value;jQuery("#"+b).attr("city_id",f);jQuery("#"+b).attr("city_url_name",
d);jQuery("#"+b).attr("id_cd",e.item.idCd);jQuery("#"+b).attr("name_cd",e.item.nameCd);jQuery("#"+b).val(g);setTimeout(function(){jQuery("#"+b).val(g)},100);void 0!=c&&""!=c&&c()}}).autocomplete("widget").addClass("au_city");$("#"+b).on("blur",function(){""==$("#"+b).val()&&($("#"+b).attr("city_id",""),$("#"+b).attr("city_url_name",""))})}
function addAlternateCityInJson(){0<cityJSON.length&&0==cityJSON.filter(function(b){return"gurugram"==b.value.toLowerCase()}).length&&(cityJSON.push({id:"3414",value:"Cochin",name:"kochi",type:"alternateCity"}),cityJSON.push({id:"732",value:"Trivandrum",name:"thiruvananthapuram",type:"alternateCity"}),cityJSON.push({id:"224",value:"Benares",name:"varanasi",type:"alternateCity"}),cityJSON.push({id:"137",value:"Mandgaon",name:"margao",type:"alternateCity"}),cityJSON.push({id:"539",value:"Tuticorin",
name:"thoothukudi",type:"alternateCity"}),cityJSON.push({id:"3383",value:"Calicut",name:"kozikode",type:"alternateCity"}),cityJSON.push({id:"282",value:"Vizag",name:"visakhapatnam",type:"alternateCity"}),cityJSON.push({id:"543",value:"Cannanore (Kannur)",name:"kannur",type:"alternateCity"}),cityJSON.push({id:"230",value:"New Delhi",name:"delhi",type:"alternateCity"}),cityJSON.push({id:"2819",value:"Udagamandalam",name:"ooty",type:"alternateCity"}),cityJSON.push({id:"2493",value:"Jyotiba Phule Nagar",
name:"amroha",type:"alternateCity"}),cityJSON.push({id:"21",value:"Bengaluru",name:"bangalore",type:"alternateCity"}),cityJSON.push({id:"232",value:"Gurugram",name:"gurgaon",type:"alternateCity"}))}
function getCitySuggestions(b,c){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(d){cityJSON=d;1==addDelhiNCR&&cityJSON.push({id:"56",value:"Delhi and NCR",name:"Delhi-and-NCR"});addAlternateCityInJson();filterCitySuggestions(b,c)}):(addAlternateCityInJson(),filterCitySuggestions(b,c))}
function getUsedCarCItySuggestions(b,c){0==usedCarCityJson.length?jQuery.getJSON(JSFILEPATH+"/used_city_json.js?version="+JS_VERSION+((new Date).toISOString().split("T")[0]+"-"+(new Date).getHours()).replace(/-/g,""),function(d){usedCarCityJson=d;filterCitySuggestions(b,c)}):filterCitySuggestions(b,c)}
function validateAutoSuggestCity(b){var c=jQuery("#"+b).val();if(void 0==c||"null"==c||""==c)return"Blank";var d=cityJSON.filter(function(g){return g.value.toLowerCase()==c.toLowerCase()});if(""==d)return"Invalid";"undefined"!=typeof d[0].type&&"alternateCity"==d[0].type&&(d=cityJSON.filter(function(g){return g.id==d[0].id&&"alternateCity"!=g.type}));var e=d[0].id;c=d[0].value;var f=d[0].name;jQuery("#"+b).attr("city_id",e);jQuery("#"+b).val(c);jQuery("#"+b).attr("city_url_name",f);jQuery("#"+b).attr("id_cd",
d[0].idCd);jQuery("#"+b).attr("name_cd",d[0].nameCd);return"Valid"}function setAutoCitiesValueByName(b,c){var d=cityJSON.filter(function(g){return g.value.toLowerCase()==c.toLowerCase()}),e=d[0].id;c=d[0].value;var f=d[0].name;jQuery("#"+b).val(c);jQuery("#"+b).attr("value",e);jQuery("#"+b).attr("city_id",e);jQuery("#"+b).attr("city_url_name",f);jQuery("#"+b).attr("id_cd",d[0].idCd);jQuery("#"+b).attr("name_cd",d[0].nameCd)}
function setAutoCitiesValueById(b,c){var d=cityJSON.filter(function(g){return g.id==c}),e=d[0].value,f=d[0].name;jQuery("#"+b).val(e);jQuery("#"+b).attr("value",c);jQuery("#"+b).attr("city_id",c);jQuery("#"+b).attr("city_url_name",f);jQuery("#"+b).attr("id_cd",d[0].idCd);jQuery("#"+b).attr("name_cd",d[0].nameCd)}
function filterPincodeSuggestions(b,c,d){var e=jQuery("#OfferMakeId").val();jQuery("#"+b).autocomplete({minLength:3,source:function(f,g){if("53"!=e)var n=""!=jQuery("#"+c).attr("city_id")?{cityId:jQuery("#"+c).attr("city_id")}:{cityPincodes:0};n&&$.extend(f,n);var l=f.term;"53"!=e&&(l+=f.cityId);l+=e;f.makeId=e;l in pincodeCache?(pincodeJSON=pincodeCache[l],g($.map(pincodeCache[l],function(m){return{id:m.id,pincode:m.pincode,value:m.value,cityId:m.cityId,cityName:m.cityName,locality:m.locality}}))):
(null,n="pincode",isNaN(l)&&(n="locality"),setGtmTracking(EVENTCATAGORY,b+"-"+n+"-search"),$.getJSON(TODBFILEPATH+"/get_pincode_json.php",f,function(m,x,v){pincodeJSON=pincodeCache[l]=m;g($.map(m,function(p){return{id:p.id,pincode:p.pincode,value:p.value,cityId:p.cityId,cityName:p.cityName,locality:p.locality}}))}))},select:function(f,g){f=g.item.id;var n=g.item.value,l=g.item.cityId,m=g.item.locality;jQuery("#"+b).attr("city_id",l);jQuery("#"+b).attr("pincode_name",n);jQuery("#"+b).attr("pincode_id",
f);"53"!=e?jQuery("#"+b).val(g.item.pincode):jQuery("#"+b).val(m);void 0!=c&&""!=c&&setAutoCitiesValueById(c,l);void 0!=d&&""!=d&&d();return!1}}).on("focus",function(){""!=jQuery("#"+c).val()&&(""==jQuery("#"+b).val()&&jQuery("#"+c).val(),$(this).autocomplete("search",""));$(".offer_pincode_pinClass").appendTo("#OfferPincodeDiv")}).autocomplete("widget").addClass(b+"_pinClass")}
function validateAutoSuggestPincode(b,c){var d=jQuery("#"+b).val(),e=jQuery("#GORP_MakeId").val();""!=d&&void 0!=d&&null!=d&&(splitPincode=d.split(" "),d=splitPincode[0]);if(void 0==d||"null"==d||""==d)return"Blank";var f=pincodeJSON.filter(function(l){return l.pincode.toLowerCase()==d.toLowerCase()});if(""==f)return"Invalid";var g=f[0].value;d=f[0].pincode;var n=f[0].cityId;jQuery("#"+b).attr("city_id",n);jQuery("#"+b).attr("pincode_name",g);"53"==e?jQuery("#"+b).val(g):jQuery("#"+b).val(f[0].pincode);
void 0!=c&&""!=c&&setAutoCitiesValueById(c,n);return"Valid"}function getByHeaderSearch(b){var c=b.replace(/[\/\\^$*+?()|[\]{}]/g,"\\$&");b=$.trim(c).replace("  "," ");0<b.length&&(b=encodeURI(b.replace(/\s/ig,"+")),setGtmTracking("search",b,EVENTCATAGORY,0,0),c=$.trim(c).replace("  "," ").toLowerCase(),window.location.href=void 0!=suggester_c_url[c]?suggester_c_url[c]:SITEPATH+"/search/?q="+b);return!1}
var mmv_suggester_cache={},suggester_c_url={},loginUserId=Get_Cookie("loginUserId"),isUserLoggedIn=0;void 0!=loginUserId&&null!=loginUserId&&""!=loginUserId&&(isUserLoggedIn=1);var slLength=0,add_car_bike=0;$(document).on("shown.bs.modal","#report_model",function(){setGtmTracking(EVENTCATAGORY,"report-popup-open");1==$(this).find(".rd-c").hasClass("a")&&$(this).find(".rd-c").removeClass("a");0==$(this).find(".rd-c").length&&radioButtonCallback()});
$(document).on("click",".doot-ctr",function(b){b.stopPropagation();setGtmTracking(EVENTCATAGORY,"report-ans-dot-click");b=$(this).data("nodeid");$("#inappropriate_ans").val(b);$(this).parent().hasClass("a")?$(".doot-ctr").parent().removeClass("a"):($(".doot-ctr").parent().removeClass("a"),$(this).parent().addClass("a"))});
$(document).on("click","#report_submit_close_login",function(){if("undefined"!==typeof Storage)var b=localStorage.getItem("inappropriateAnsId"),c=localStorage.getItem("reasonValue");"undefined"!=typeof b&&""!=b&&null!=b&&(reportAnswer(b,c,1),setGtmTracking(EVENTCATAGORY,"report-ans-success-before-login"),localStorage.removeItem("inappropriateAnsId"),localStorage.removeItem("reasonValue"))});
$(document).on("click","#report_submit",function(){setGtmTracking(EVENTCATAGORY,"report-popup-submit");if(0<$("input[name=irrelevent_answer]:checked").length){$(".error-report").html("");var b=Get_Cookie("loginUserId"),c=$("#inappropriate_ans").val(),d=$("#ugc_section_type").val(),e=$("input[name='irrelevent_answer']:checked").val();$("input[name=irrelevent_answer]").attr("checked",!1).parent().removeClass("a");"undefined"==typeof b||null==b||""==b?($("#report_model").modal("hide"),setGtmTracking(EVENTCATAGORY,
"login-popup-report-ans"),b=localStorage.getItem("reasonFlag"),"undefined"!==typeof b&&"1"==b?reportAnswer(c,e,"1",d):(localStorage.setItem("inappropriateAnsId",c),localStorage.setItem("reasonValue",e),modifyLoginScreen("default")),localStorage.setItem("reasonFlag","1")):($("#report_model").modal("hide"),reportAnswer(c,e,"",d),setGtmTracking(EVENTCATAGORY,"report-ans-success-loggedin"));$("input[name=irrelevent_answer]").attr("checked",!1).parent().removeClass("a")}else setGtmTracking(EVENTCATAGORY,
"report-popup-submit-error"),$(".error-report").html("Please select one reason to report this answer")});
function reportAnswer(b,c,d,e){"undefined"==typeof d&&(d="");"undefined"==typeof e&&(e="");var f=$("#source").val();b=$.ajax({type:"POST",url:SITEPATH+"/tpl/inappropriate_ans_tpl.php",data:{nodeid:b,reason:c,reportflag:d,source:f,ugc_section_type:e}});b.done(function(g,n,l){if("1"==d&&(n=g.split(","),g=n[1],n=n[0],0<n)){localStorage.setItem("reasonNodeid",g);l=[n];var m=localStorage.getItem("insertData");(m=JSON.parse(m))?(m.push(n),localStorage.setItem("insertData",JSON.stringify(m))):localStorage.setItem("insertData",
JSON.stringify(l))}0<g&&("user-reviews"==f?$("#overflow_hidden_"+g).html($("#ansRemovalMsg").html()):("article"==f?$("#overflow_hidden_"+g).parent().html($("#ansRemovalMsg").html()):($("#overflow_hidden_"+g).parent().html($("#ansRemovalMsg").html()),$(".ans_cls_"+g).parent().parent(".view-more-question").hasClass("hidden")&&$(".ans_cls_"+g).parent().parent(".view-more-question").removeClass("hidden")),$(".ans_cls_"+g).hasClass("hidden")&&$(".ans_cls_"+g).removeClass("hidden")),setTimeout(function(){var x=
"user-reviews"==f?$("#overflow_hidden_"+g).offset().top:$(".ans_cls_"+g).offset().top-100;$(window).scrollTop(x);$("html, body").animate({scrollTop:x-100},"200")},1E3))});b.fail(function(){})}$(document).on("click",function(b){$(".doot-ctr").parent().removeClass("a")});
$(function(){function b(h){h=void 0===h?null:h;var k=localStorage.getItem("recentData");if(null!=k){k=JSON.parse(k);if(null!=h){var r=!1;$.each(k,function(q,w){if(w.url.split(/[?#]/)[0]==h.url.split(/[?#]/)[0])return r=!0,0<q&&(w=k[q],k.splice(q,1),k.unshift(w),localStorage.setItem("recentData",JSON.stringify(k))),!1});r||(3<k.length&&(k.length=3),h.isRecent=1,k.unshift(h),localStorage.setItem("recentData",JSON.stringify(k)))}return k}if(null!=h){var u=[];h.isRecent=1;u.unshift(h);localStorage.setItem("recentData",
JSON.stringify(u));return u}return[]}function c(h){var k=b(null);if(0<k.length){var r=!1;$.each(k,function(u,q){if(q.url==h)return r=!0,!1});if(r)return!0}return!1}function d(h){var k=b(null);if(0<k.length){var r=[],u=[],q=[],w=[],D=$("link[rel='canonical']").attr("href");$.each(h,function(z,A){"undefined"!=typeof A.sponsored&&1==A.sponsored?(r.push(A),w.push(SITEPATH+A.url.split(/[?#]/)[0])):c(A.url)||q.push(A)});$.each(k,function(z,A){w.includes(A.url.split(/[?#]/)[0])||A.url==D||u.push(A)});3<
u.length&&(u.length=3);h=r.concat(u,q)}return h}function e(){1==x&&(v=new webkitSpeechRecognition,v.continuous=!1,v.interimResults=!1,v.lang="en-US",v.start(),v.onresult=function(h){var k=h.resultIndex,r=h.results[k][0].transcript;1==k&&r==h.results[0][0].transcript||""==r||($("#voice_rs").html(r),setGtmTracking("voice-search",r,EVENTCATAGORY,0,0),setTimeout(function(){n();f();$("#headerSearch").val(r).autocomplete("search",r)},1E3));v.stop()},v.onerror=function(h){v.stop();l()},v.onend=function(){v.stop();
""==$("#voice_rs").html()&&l()})}function f(){$("#autosuggestMicIcon").hide()}function g(){1==x&&767>screen.width&&1==$("header > .container").hasClass("active")&&$("#autosuggestMicIcon").show()}function n(){$(".h-mic-s").addClass("hidden").removeClass("o");$("body").removeClass("modal-open");null!=v&&v.stop()}function l(){$("#voice_rs").html("");$("#h-mic-try, #h-mic-try-txt").show();$("#h-mic-loader, #h-mic-loader-txt").hide();$(".h-mic-w").css("padding-top",$(window).height()/2-40);$(".h-mic-s").removeClass("hidden").addClass("o");
$("body").addClass("modal-open")}function m(){$("#h-mic-try, #h-mic-try-txt").hide();$("#h-mic-loader").attr("src",$("#h-mic-loader").data("src"));$("#h-mic-loader, #h-mic-loader-txt").show();$("#voice_rs").html("")}767<screen.width&&$("#headerSearch").attr("placeholder",$("#headerSearch").data("placeholder"));$(".navLink").on("click",function(){$(".hd-loginDown").is(":visible")&&($(".hd-loginDown").slideUp(300),$(".userName").removeClass("open"))});$("#headerSearch").on("click",function(){$(".headerSearch").css("box-shadow",
"0 3px 3px rgba(0,0,0,0.16 )")});$(document).on("click",function(){$(".headerSearch").removeAttr("style")});$("#headerSearch").on("click",function(h){h.stopPropagation()});$("#headerNewNav > ul > li").on({mouseenter:function(){1<=$(this).children("ul").length&&$(".zw-menuOverLay").fadeIn(200)},mouseleave:function(){$(".zw-menuOverLay").fadeOut(200)}});(function(){var h=Get_Cookie("recentViewToRecentSearch");null!=h&&(h=h.replace(/##/g," "),h=JSON.parse(h),b(h[0]),del_cookie("recentViewToRecentSearch"))})();
$(".h-mic-cls").on("click",function(){n()});var x=0;"webkitSpeechRecognition"in window&&(x=1);$(document).on("click","#autosuggestMicIcon",function(){m();0==$("header > .container").hasClass("active")&&$("header .h-srch").click();$(".h-mic-w").css("padding-top",$(window).height()/2-40);$(".h-mic-s").removeClass("hidden").addClass("o");$("body").addClass("modal-open");e()});$(document).on("click","#h-mic-try",function(){m();e()});var v=null,p="sAutoSearch";$("#headerSearch").autocomplete({minLength:0,
delay:150,source:function(h,k){that=this;if(""!=that.bindings.val()){var r="suggest_crossicon_"+that.bindings.attr("id");0==$("#"+r).length&&that.bindings.after('<span class="zw-search-sprite zw-crosssicon autosuggest_crossicon" id="'+r+'" ></span>');f()}else $(".autosuggest_crossicon").remove(),g();var u=h.term;u=$.trim(u);""==u&&(u=p);u in mmv_suggester_cache?k($.map(mmv_suggester_cache[u],function(q){return{id:q.id,label:q.label,value:q.value,url:q.url,makeName:q.makeName,modelName:q.modelName,
extraDisplay:q.extraDisplay,modelSynonyms:q.modelSynonyms,sponsored:q.sponsored,isRecent:q.isRecent}})):(null,$.getJSON(SITEPATH+"/mmv_suggester.php?bodyType="+("undefined"!=typeof dataLayer[0].vehicle_segment?dataLayer[0].vehicle_segment:"")+"&vehicleType="+("undefined"!=typeof vehicleType?vehicleType:""),h,function(q,w,D){$.each(q,function(z,A){A.isRecent=0});p==u&&(q=d(q));mmv_suggester_cache[u]=q;k($.map(q,function(z){return{id:z.id,label:z.label,value:z.value,url:z.url,makeName:z.makeName,modelName:z.modelName,
extraDisplay:z.extraDisplay,modelSynonyms:z.modelSynonyms,sponsored:z.sponsored,isRecent:z.isRecent}}))}))},close:function(h,k){that=$(this);""!=that.val()?(h="suggest_crossicon_"+that.attr("id"),0==$("#"+h).length&&that.after('<span class="zw-search-sprite zw-crosssicon autosuggest_crossicon" id="'+h+'" ></span>'),f()):($(".autosuggest_crossicon").remove(),g())},select:function(h,k){"undefined"!=typeof k.item.sponsored&&0==k.item.sponsored&&b(k.item);h=k.item.url;k=$.trim(k.item.value);var r=($("#homeSearch").val()||
$("#headerSearch").val()).replace(/[\/\\^$*+?()|[\]{}]/g,"\\$&");setGtmTracking("search",k+"#"+r,EVENTCATAGORY,0,0);window.location.href=h}}).each(function(){$(this).data("uiAutocomplete")._renderItem=function(h,k){var r=this.term.replace(/[\/\\^$*+?()|[\]{}]/g,"\\$&"),u=$.trim(r).replace("  "," ").split(" ").join("|");u=k.label.replace(new RegExp("("+u+")","gi"),'<span style="font-weight:300">$1</span>');var q=k.label;q=q.toLowerCase().replace(/ car$/i,"").replace(/ cars$/i,"").replace(/ bike$/i,
"").replace(/ bikes$/i,"");r=$.trim(r).replace("  "," ").toLowerCase();var w=r.replace(/ car$/i,"").replace(/ cars$/i,"").replace(/ bike$/i,"").replace(/ bikes$/i,"");w=$.trim(w);void 0==suggester_c_url[r]&&q==w&&(suggester_c_url[r]=k.url);"undefined"!=typeof k.extraDisplay&&(q=k.extraDisplay.toLowerCase(),q=$.trim(q),void 0==suggester_c_url[r]&&q==w&&(suggester_c_url[r]=k.url));"undefined"!=typeof k.makeName&&"undefined"!=typeof k.modelName&&(q=k.makeName.toLowerCase()+" "+k.modelName.toLowerCase(),
q=$.trim(q),void 0==suggester_c_url[r]&&q==w&&(suggester_c_url[r]=k.url));"undefined"!=typeof k.modelSynonyms&&(q=k.modelSynonyms.toLowerCase(),q=$.trim(q),void 0==suggester_c_url[r]&&q==w&&(suggester_c_url[r]=k.url));"undefined"!=typeof k.modelSynonyms&&"undefined"!=typeof k.makeName&&(q=k.makeName.toLowerCase()+" "+k.modelSynonyms.toLowerCase(),q=$.trim(q),void 0==suggester_c_url[r]&&q==w&&(suggester_c_url[r]=k.url));return"undefined"!=typeof k.sponsored&&1==k.sponsored?$("<li>").append($("<a>").html("<b>"+
u+'<b> <span style="border-radius:40px;padding:1px 11px;margin-left:10px;font-size:13px;display:inline-block;background:#eae7e7;font-weight:normal;">Featured</span>')).appendTo(h):"undefined"!=typeof k.isRecent&&1==k.isRecent?$("<li class='re-s'>").append($("<a>").html("<b>"+u+"<b>")).appendTo(h):$("<li>").append($("<a>").html("<b>"+u+"<b>")).appendTo(h)}}).each(function(){$(this).data("uiAutocomplete")._renderMenu=function(h,k){var r=this;$.each(k,function(u,q){r._renderItemData(h,q)})}}).on("focus",
function(){""!=$(this).val()?$(this).autocomplete("search"):("undefined"!=typeof pageSuggestModelId&&0<pageSuggestModelId?p="undefined"!=typeof pageSource&&"/variant.php"==pageSource?"smWVId_"+pageSuggestModelId:"smId_"+pageSuggestModelId:"undefined"!=typeof pageSuggestMakeId&&0<pageSuggestMakeId?p="smkId_"+pageSuggestMakeId:"undefined"!=typeof pageSuggestModelFamily&&0<pageSuggestModelFamily?p="smdFamily_"+pageSuggestModelFamily:"undefined"!=typeof pageSuggestCompareResult&&""!=pageSuggestCompareResult?
p="sComareResult_"+pageSuggestCompareResult:"undefined"!=typeof pageSuggestContentSrch&&""!=pageSuggestContentSrch&&(p=pageSuggestContentSrch),$(this).autocomplete("search",p))});$("body").on("click",".autosuggest_crossicon",function(){$("#homeSearch, #headerSearch").val("").autocomplete("close").focus();$(".autosuggest_crossicon").remove()});$("#homeSearch").autocomplete("widget").addClass("homeSearch_mmv_suggest commonsearch_ul");$("#headerSearch").autocomplete("widget").addClass("headerSearch_mmv_suggest commonsearch_ul");
if(767>screen.width)$("header .h-srch,#quickLinksMore").on("click",function(){$("header > .container").addClass("active");$(".r-srch").hide();$(".commonsearch_ul").addClass("active");$("body").css({overflow:"hidden"});var h=$(window).height()-50;$(".commonsearch_ul.active").css({height:h,"max-height":"1200px",border:"none"});h=$("#headerSearch").height();h=$("#headerSearch").offset().top+h;$(".commonsearch_ul.active").css({top:h});$(window).resize(function(){var k=$(window).height()-50;$(".commonsearch_ul.active").css({height:k})});
g()}),$(".h-srh-icn-b").on("click",function(){$(this).parents("header > .container").removeClass("active");$(".commonsearch_ul").removeClass("active");$("body").css({overflow:"auto"});$(".homeSearch_mmv_suggest").css({height:"auto","max-height":"300px"});$("#homeSearch, #headerSearch").val("").autocomplete("close");$(".autosuggest_crossicon").remove();1<=$(".r-srch").length&&$(".r-srch").show();g()});else $("header .h-srch, .zw-home-input-search").on("click",function(){$(".commonsearch_ul").addClass("active")});
setTimeout(function(){$(".ask_tb").gsp_popup({inline:!0,width:"90%",transition:"fade"})},1E3);$(".ask_tb").on("click",function(){$("body").addClass("m-hide");setTimeout(function(){$("#gspp_Close,#gspp_Overlay").on("click",function(){$("body").removeClass("m-hide")})},1E3)});setTimeout(function(){767>screen.width&&bikeCarw()},2E3);var t=navigator.userAgent,y=/iPad|iPhone|iPod/.test(t);t=/OS 11_0|OS 11_1|OS 11_2/.test(t);y&&t&&$("body").addClass("iosBugFixCaret");if(768<$(window).innerWidth())$(".fo-nw-loginWrap span.close, #myModal3").on("click",
function(){$("#headerNewNav .accordion-section-content").each(function(){$(this).removeAttr("style")})});0<=navigator.userAgent.indexOf(" UCBrowser/")&&$("html").addClass("uc");0<=navigator.userAgent.indexOf(" UCBrowser/")&&(setTimeout(function(){var h=$(".uc-overcontent").outerHeight();$(".uc-overcontent").css("height",h)},2E3),$(".readMore").on("click",function(){setTimeout(function(){$(".overview-content").css("height",contentHeight)},2E3)}));t=new URLSearchParams(window.location.search);if("/web_form.php"!=
pageSource&&1==isUserLoggedIn){if(checkForumLoginHeaderValue(),1==t.get("is_amp_garage")&&setTimeout(function(){forum_add_garage_widget()},3E3),1==t.get("is_amp_rate")&&(modelId_tmp=0<$("#modelId").length?$("#modelId").val():0<$("#modelIdReview").length?$("#modelIdReview").val():pageSuggestModelId,show_forum_add_review_popup("","rate",modelId_tmp)),t.get("questionId")){y=t.get("postText");t=t.get("questionId");var C="answer";localStorage.setItem("postText",y);localStorage.setItem("postQuestionId",
t);localStorage.setItem("postType",C)}}else{y=Get_Cookie("SHORTLIST");var B=0;null!=y&&(slArray=y.split(","),jQuery.each(slArray,function(h,k){$(".dv_shortlist_"+k).addClass("a");$(".shortlist_"+k).addClass("selected");$(".dv_shortlist_"+k).prop("title","shortlisted");B=h+1}));window.slLength=B;0<B&&($(".dv_shortlist_count").show(),$(".shortlist_count").html(B).show());1!=t.get("is_amp_login")&&1!=t.get("is_amp_garage")&&1!=t.get("is_amp_rate")||0!=isUserLoggedIn||(t.get("questionId")&&0==isUserLoggedIn&&
(y=t.get("postText"),t=t.get("questionId"),C="answer",localStorage.setItem("postText",y),localStorage.setItem("postQuestionId",t),localStorage.setItem("postType",C)),call_login_popup(EVENTCATAGORY,SOURCE,""))}loadAddGarageWidget();if("show_update_username"==Get_Cookie("show_update_username")&&1>Get_Cookie("model_ques_owner1"))del_cookie("show_update_username"),$(".fo-nw-step1").hide(),$(".fo-nw-step2").hide(),$(".fo-nw-step3").hide(),$(".fo-nw-step4").show(),$("#idUpdateUserName").focus();else $("#myModal3").on("shown.bs.modal",
function(){$(".fo-nw-step1").show();$(".fo-nw-step2").hide();$(".fo-nw-step3").hide();$(".fo-nw-step4").hide()});$('.fo-nw-loginWrap input[type="text"], .fo-nw-loginWrap input[type="password"]').formlogin();$("#myModal3").on("shown.bs.modal",function(){dataLayer.push({event:"popup",virtual_action:"login_popup_open"})});if(992>$(window).innerWidth())$(".hd-title").on("click",function(){$(".hd-loginDown").slideToggle(300);$(".userName").toggleClass("open");$(".accordion-section-content").is(":visible")&&
($(".accordion-section-content").removeClass("open").slideUp(300),$(".accordion-section-title").removeClass("active"))});$(".popup-lnk").gsp_popup({inline:!0,fixed:!0,transition:"elastic",scrolling:!1,opacity:"1",width:"94%",maxWidth:"630px",closeButton:!0,overlayClose:!1,onComplete:function(){$("body").addClass("modal-open")},onClosed:function(){$("body").removeClass("modal-open")}});if(992>$(window).innerWidth()){var E=function(){$(".accordion .accordion-section-title").removeClass("active");$(".accordion .accordion-section-content").slideUp(300).removeClass("open")};
$(".nw-subMenu").on("click",function(){$(this).children("ul").is(":visible")?$(this).children("ul").slideUp():$(this).children("ul").slideDown()});$(".accordion-section-title").on("click",function(h){var k=$(this).attr("accordion");$(h.target).is(".active")?E():(E(),$(this).addClass("active"),$(".accordion "+k).slideDown(300).addClass("open"));h.preventDefault()});$("#menuIcon").on("click",function(){$(".menuOverlay").toggleClass("open")});$("#menuIcon").on("click",function(){$(this).toggleClass("open");
if($(this).hasClass("open")&&$(document).height()>$(window).height()){var h=$("html").scrollTop()?$("html").scrollTop():$("body").scrollTop();$("html").addClass("noscroll").css("top",-h)}else h=parseInt($("html").css("top")),$("html").removeClass("noscroll"),$("html,body").scrollTop(-h);$("body").toggleClass("overflow")});$(".bgblack").on("click",function(){$("body").toggleClass("overflow");$("#menuIcon").click()});$("#menuIcon").on("click",function(){"MENU"==$(".MenuShow").text()?$(".MenuShow").text("Close"):
$(".MenuShow").text("MENU")});$("#menuIcon").on("click",function(){$(".bgblack").toggleClass("showhide")});$(".bgblack").on("click",function(){$(".menuOverlay ").removeClass("open");$(".bgblack ").removeClass("showhide");$(".MenuShow").text("MENU");$("#menuIcon ").removeClass("open")})}$("#topNav li").on("click",function(){"/used-car"==$(this).find("a").attr("href")&&del_cookie("selected_city")});$(".breadcrumb li").on("click",function(){var h=$(this).find("a").attr("href").split("/");"used-car"==
h[h.length-1]&&del_cookie("selected_city")});y=getUrlParameter("lop");""!=Get_Cookie("selected_city")&&null!=Get_Cookie("selected_city")||""==y?updateGeoCityOnpage():getUserLocation(y);$(".zwd-navigation-ul > li").on({mouseenter:function(){$(".zwd-navigation-overlay").addClass("active")},mouseleave:function(){$(".zwd-navigation-overlay").removeClass("active")}});$("#myModal3").on("shown.bs.modal",function(){setGtmTracking(EVENTCATAGORY,reviewPrefix+"Popup_Login","open")});$(".zw-connecto-ctr").is(":visible")&&
$(".mob-stick-btm").hide();0<$(".zw-connecto-ctr").length&&zwCloseconnectof();var F=0;$(window).on("scroll",function(){var h=Get_Cookie("financeLead");if(void 0!=h&&null!=h)var k=h.split("@")[0];else h=Get_Cookie("modelCookieData"),""!=h&&null!=h&&void 0!=h&&(k=JSON.parse(h)[0].id_model);h=$(window).scrollTop();5500<=h&&0<$(".zw-connecto-ctr").length&&Get_Cookie("removeBanner")!=k&&$(".zw-connecto-ctr").addClass("active");var r;if(r=0<$(".connecto-hideshow").length){r=$(".connecto-hideshow");var u=
$(window),q=u.scrollTop();u=q+u.height();var w=r.offset().top;r=w+r.height()<=u&&w>=q}r?$(".zw-connecto-ctr").removeClass("active"):Get_Cookie("removeBanner")!=k&&550<=h&&($(".zw-connecto-ctr").addClass("active"),0==F&&(F=1,setGtmTracking(EVENTCATAGORY,"finance-connecto-banner-show")))});mobile_login_div();setTimeout(function(){getCentralUsersData(1)},1E3);$("#myModal3").on("hide.bs.modal",function(){"undefined"!==typeof Storage&&localStorage.removeItem("login_purpose")})});
function loadAddGarageWidget(){if("1"!=localStorage.getItem("forum_garage_no")&&0<$("#addGarageCon").length&&"IntersectionObserver"in window){var b=new IntersectionObserver(function(c){0>=c[0].intersectionRatio||(b.unobserve(document.querySelector("#addGarageCon")),$.post(SITEPATH+"/tpl/forum_add_garage_widget_tpl.php",{source:SOURCE,eventCategory:EVENT_CATEGORY},function(d){$("#addGarageCon").html(d)}))},{rootMargin:"700px"});b.observe(document.querySelector("#addGarageCon"))}}
function getCentralUsersData(b){b=1==b?Get_Cookie("central_user_data"):0;"undefined"!==typeof Storage&&1!=b&&$.getJSON(SITEPATH+"/tpl/central_user_data_tpl.php",function(c,d,e){localStorage.setItem("central_user_data",JSON.stringify(c))})}
function mobile_login_div(){var b=Get_Cookie("loginUserId");""!=b&&0<parseInt(b)?(0<$("#new_login_div").length&&$("#new_login_div").hide(),0<$("#forum_login_div_sm").length&&$("#forum_login_div_sm").show()):(0<$("#new_login_div").length&&$("#new_login_div").show(),$("#forum_login_div_sm"))}
function goToSectionTab(b,c,d){var e=$(document.createElement("form"));$(e).attr("action","/"+b);$(e).attr("method","POST");b=$("<input>").attr("type","hidden").attr("name","sectiontype").val(c);$(e).append($(b));b=$("<input>").attr("type","hidden").attr("name","sid").val(d);$(e).append($(b));e.appendTo(document.body);$(e).submit()}
jQuery("ul.nav li.dropdown").on({mouseenter:function(){jQuery(this).find(".dropdown-menu").stop(!0,!0).delay(200).fadeIn()},mouseleave:function(){jQuery(this).find(".dropdown-menu").stop(!0,!0).delay(200).fadeOut()}});function manageListing(){var b=Get_Cookie("user_type");null!=b?(url="Dealer"==b?SITEPATH+"/dealer-account":SITEPATH+"/user-account",window.location.href=url):autoClickZWLogin()}
function callga(){for(var b=vehicleType,c="",d,e="",f="",g=2;g<arguments.length;g++)d=g+1,c+=arguments[g],d<arguments.length&&(c+="|");g=arguments[0];d=arguments[1];"header_new_car_on_road_price"==g||"header_new_bike_on_road_price"==g?(e="Top Navigation Button",f=b+" \u2013 On Road Price"):"get_all_model_of_brand"==g?(e="Brand Category Landing Page",f=b+" \u2013 Get on Road Price"):"model_detail"==g?(e="Product Summary Page",f=b+" \u2013 Get on Road Price"):"variant_details"==g?(e="Product Summary Page",
f=b+" \u2013 Get on Road Price"):"variant_detail_page"==g?(e="Product Variant Summary Page",f=b+" \u2013 Get on Road Price"):"search_result_page"==g?(e="Search Result Page",f=b+" \u2013 Get on Road Price"):"comparison-page"==g?(e="Comparison Page",f=b+" \u2013 Get on Road Price"):"price-quote"==g?(e="Price Quote Landing Page",f=b+" \u2013 Show on Road Price"):"mobile-popup"==g?(e="Verification Process Pop-Up",f=b+" \u2013  Verification Pop-Up"):"mobile-popup-err"==g?(e="Verification Process Pop-Up",
f=b+" \u2013  'No Miss Call Yet' Error Massage"):"mobile-popup-change-no"==g?(e="Verification Process Pop-Up",f=b+" \u2013 Change Mobile No. - Submit"):"price-quote-get-best-deal"==g?(e="Leads Confirmation Page",f=b+" - Get Best Deals"):"price-quote-save-pdf"==g?(e="Leads Confirmation Page",f=b+" - Save as PDF"):"price-quote-see-dealer"==g?(e="Leads Confirmation Page",f=b+" - See Dealers'"):"model_detail_summary"==g?(e="Product Summary Page",f=b+" - Free Price Quote'"):"price-quote-popup"==g?(e="on-road-price-form-pop-up",
f=b+" - Get on Road Price"):"insurance-New"==g?(e=b+" - New Insurance Leads",f=b+" - Submit Button"):"insurance-Renew"==g?(e=b+" - Renewal Insurance Leads",f=b+" - Submit Button"):"Maintenance-Calculator"==g?(e="New Car Maintenance Page",f="Check Maintenance Cost"):"Maintenance-Calculator-Make-Page"==g?(e="Brand Category Landing Page",f="Maintenance Cost"):"Maintenance-Calculator-Model-Page"==g?(e="Product Summary Page",f="Maintenance Cost"):"Maintenance-Calculator-Variant-Page"==g?(e="Product Variant Summary Page",
f="Maintenance Cost"):"maintenance-calculator-drop-down"==g?(e="Navigation Drop Down",f="Maintenance Calculator Button"):"maintenance-calculator-new-car-banner"==g?(e="New Car Page - Banner",f="Maintenance Calculator Banner"):"maintenance-calculator-home-page"==g?(e="Home Page \u2013 Main Banner Navigation",f="Maintenance Calculator Button"):"continue-in-app"==g?(e="Banner Clicks",f="Continue in App"):"continue-in-browser"==g?(e="Banner Clicks",f="Continue in Browser"):"make-page-dialer-ad"==g&&(e=
"Make Page-Dialer Ad",f="Dialer Ad");""!=c&&"pageview"==d?f=c:""!=c&&(f+=":"+c);""!=d&&""!=e&&"undefined"!=typeof ga&&("pageview"==d?setGtmTracking(d,f):setGtmTracking(d,f,e))}function getBankBazzarUrl(b){post_to_bankbazar_url(SITEPATH+"/finance",{utmId:b},"post")}
function post_to_bankbazar_url(b,c,d){b=SITEPATH+"/finance";var e=['<form id="bankbazar_rform" method="POST" action="',b,'">'];$.each(c,function(f,g){$.each(g instanceof Array?g:[g],function(n,l){e.push('<input type="hidden" name="',f,'" value="',l,'"/>')})});e.push("</form>");jQuery(e.join("")).attr("target","_blank").appendTo("body")[0].submit();return!1}
function clickToCall(){clickWindow=window.open("http://callmenow.in/callmenow/CMNMain.aspx?cid=YFaOXDbqpeU=&CCID=2/Sm7g8DAxk=","parentWindow","width=1050,height=548,left="+(screen.width/2-525)+",top="+(screen.height/2-274))}
function mobileSearch(){var b=$(".headerBody").height();$(".deviceSearch").css("top",b);$(".zw-nav-DeviceSearch").on("click",function(){$(".deviceSearch").is(":visible")?$(".deviceSearch").slideUp():($(".onClickNav").removeClass("onClickNavRight"),$(".freezBody").removeClass("freezBodyAdd"),$("body").removeClass("zw-cmn-overflowHidden"),$(".deviceSearch").slideDown())});var c=$(".deviceSearch");$(".zw-nav-DeviceSearch").on("click",function(){c.show();return!1});$(".deviceSearch input").on("focus",
function(){c.show();return!1});$(document).on("click",function(){c.slideUp()});c.on("click",function(d){d.stopPropagation()})}
function desktopNav(){$(".darkHeader").on("click",function(){headerHeightD=$(".headerBody").height();$(".onClickNav").css("top",headerHeightD);$(".onClickNav").toggleClass("onClickNavRight");$(".freezBody").toggleClass("freezBodyAdd");$("body").toggleClass("zw-cmn-overflowHidden")});var b=$(".onClickNav");$(".darkHeader").on("click",function(){b.show();return!1});$(document).on("click",function(){b.removeClass("onClickNavRight");$(".freezBody").removeClass("freezBodyAdd");$("body").removeClass("zw-cmn-overflowHidden")});
b.on("click",function(c){c.stopPropagation()})}
function mobileNav(){headerHeightD=$(".headerBody").height();$(".onClickNav").css("top",headerHeightD);$(".navbar-toggle").on("click",function(){$(".onClickNav").css("top",headerHeightD);$(".onClickNav").toggleClass("onClickNavRight");$(".deviceSearch").slideUp();$(".freezBody").toggleClass("freezBodyAdd");$("body").toggleClass("zw-cmn-overflowHidden")});var b=$(".onClickNav");$(".navbar-toggle").on("click",function(){b.show();return!1});$(document).on("click",function(){b.removeClass("onClickNavRight");
$(".freezBody").removeClass("freezBodyAdd");$("body").removeClass("zw-cmn-overflowHidden")});b.on("click",function(c){c.stopPropagation()})}
function HeaderSticky(){if(1024<=screen.width)$(window).on("scroll",function(){var b=$(window).scrollTop();if(400<b){$(".headerBody").addClass("headerBodyFixed");$(".desktopNav").hide();var c=$(".headerBodyFixed").height();$(".desktopNav").css("top",c)}200>b&&($(".headerBody").removeClass("headerBodyFixed"),$(".desktopNav").removeAttr("style").show(),$(".freezBody").removeClass("freezBodyAdd"),$(".onClickNav").removeClass("onClickNavRight"),$("body").removeClass("zw-cmn-overflowHidden"))});if(1024>=
screen.width)$(window).on("scroll",function(){var b=$(window).scrollTop();100<b&&$(".headerBody").addClass("headerBodyFixed");100>b&&$(".headerBody").removeClass("headerBodyFixed")})}
function addvertise(){var b=$(".zw-B-bodyWrap").width();$(".bodyRight").width();$(".bodyLeft");b-=360;var c=$(window).height();$(".bodyLeft").css("width",b);1023>=screen.width&&($(".onClickNav").css({"max-height":c,"overflow-y":"auto"}),b=$(".headerBody").height(),$(".zw-mp-strip").css("margin-top",b),$(".headerBody").on("click",function(){$(".onClickNav").removeClass("onClickNavRight");$(".freezBody").removeClass("freezBodyAdd")}))}function redirection(b){window.location.href=b}
function customSelect(){$(".custom-select").each(function(){$(this).wrap("<span class='select-wrapper'></span>");$(this).after('<span class="SelectArrow"></span>')})}function customSelectMake(){$(".custom-selectMakeSelect").each(function(){$(this).wrap("<span class='select-wrapper'></span>");$(this).after('<span class="SelectArrow"></span>')})}
function mobileHeader(){$(window).on("scroll",function(){$("#hidden_field").val();$(window).scrollTop();$("#hidden_field").val();var b=$(window).scrollTop();$("#hidden_field").val(b)})}
function shareDropDown(){$(".zw-m-social-trans-bg").on("click",function(){$(".shareSocial").slideUp(200);$(this).hide()});$(".shareIcon").on("click",function(){$(".shareSocial").is(":visible")?($(".shareSocial").slideUp(200),$(".zw-m-social-trans-bg").hide()):($(".shareSocial").slideDown(200),$(".zw-m-social-trans-bg").show())})}
function socialShare(){function b(){$("html").on("click",function(){$(".ne-sw ul").hide().removeClass("v")});$(document).on("click",".ne-sw",function(c){$(this).find("ul").hasClass("v")?$(this).find("ul").hide().removeClass("v"):$(this).find("ul").addClass("v").show();c.stopPropagation()})}767<$(window).innerWidth()?b():1<=$(".ne-sw").length&&document.querySelector(".ne-sw").addEventListener("click",function(c){navigator.share?navigator.share({title:"ZigWheels",url:window.location.href}).catch(console.error):
b()})}$(window).on("resize",function(){addvertise();zwMenu()});function callGaTracking(b,c,d,e){setGtmTracking(b,d+"-"+gapage_name,c)}function callGaTrackingOnSubmit(b,c,d,e,f){setGtmTracking(b,d+"-"+gapage_name,c);window.location.href=f}$(function(){$("#geo_city_select_box").on("keypress",function(b){if(13==b.which)return"on-road-price"==$("#onroadprice_source").val()?setGeoCity("","orp"):$("#geo_city_select_box").blur(),!1})});var destinationPage="",destinationUrl="";
function initiateGetCitySuggestions(b,c){jQuery(".geoCityImage").each(function(){a=jQuery(this).attr("cityImageSrc");jQuery(this).attr("src",a)});jQuery("#geo_city_select_box").val("");""!=c?(destinationPage=c,destinationUrl=b):destinationUrl=destinationPage="";getCitySuggestions("geo_city_select_box",setGeoCity)}
function validateCitySelectNameTop(b,c){b=validateAutoSuggestCity(b);return"Blank"==b?($("#"+c).html('<div class="alert alert-danger mt-5 mb-5">Please Type and Select City</div>').show(),!1):"Invalid"==b?($("#"+c).html('<div class="alert alert-danger mt-5 mb-5">Please enter a valid city</div>').show(),!1):!0}
function updateGeoCityOnpage(b){""!=Get_Cookie("selected_city")&&null!=Get_Cookie("selected_city")?10<Get_Cookie("selected_city").length?$(".geoCity").text(Get_Cookie("selected_city").substring(0,10)+".."):$(".geoCity").text(Get_Cookie("selected_city")):""!=Get_Cookie("geo_city")&&null!=Get_Cookie("geo_city")?10<Get_Cookie("geo_city").length?$(".geoCity").text(Get_Cookie("geo_city").substring(0,10)+".."):$(".geoCity").text(Get_Cookie("geo_city")):$.get(SITEPATH+"/get_geo_city.php",{},function(c){""!=
c&&(10<c.length?$(".geoCity").text(c.substring(0,10)+".."):$(".geoCity").text(c))})}
function setGeoCity(b,c){if(void 0==b||""==b){if(!1===validateCitySelectNameTop("geo_city_select_box","suggestresult"))return $("#geo_city_select_box").addClass("msg-error"),!1;$("#suggestresult").html("");b=$("#geo_city_select_box").val()}var d=cityJSON.filter(function(f){return f.value.toLowerCase()==b.toLowerCase()});if(""!=d){var e=d[0].id;b=d[0].value;Set_Cookie("city_id",e);Set_Cookie("cityCD",d[0].nameCd);Set_Cookie("cityCDId",d[0].idCd)}Set_Cookie("geo_city",b);Set_Cookie("selected_city",
b);Set_Cookie("changed_city",b);Set_Cookie("pincode","");if(void 0!=destinationPage&&void 0!=destinationUrl&&("offers-events"==destinationPage||"bikes/offers-events"==destinationPage))return c=$("#offerCityOld").val(),d=b.replace(/ /g,"-"),-1==destinationUrl.search(c)?window.location.href=destinationUrl+"/"+d:window.location.href=destinationUrl.replace(c,d),!1;void 0!=c&&"home"==c?($.gsp_popup.close(),updateGeoCityOnpage(b)):void 0!=c&&""!=c&&"on-road-price"==source||"on-road-price"==$("#onroadprice_source").val()?
(c=window.location.href.split("on-road-price-"),b=decodeURI(b.toLowerCase()),location.href=c[0]+"on-road-price-"+b.replace(/ /g,"-")):void 0==destinationPage||void 0==destinationUrl||"on-road-price"!=destinationPage&&"dealers"!=destinationPage?void 0!=destinationPage&&void 0!=destinationUrl&&"used"==destinationUrl?(b=decodeURI(b.toLowerCase()),location.href=destinationPage+b.replace(/ /g,"-")):location.reload():(b=decodeURI(b.toLowerCase()),location.href=destinationUrl+b.replace(/ /g,"-"))}
function lazy_image_rhs_tab(b){$("#"+b+" .lazy_image_rhs").each(function(){var c=$(this).attr("data-original");$(this).attr("src",c)})}function SubmitEmiForm(){document.getElementById("emiMenuSubmit").submit()}
function fetchMmvOptions(b,c,d,e,f){""==d?"models"==b?(fetch_updated="model",fetch_variant="variant",jQuery("#modelChange").html("<option value=''>Select "+fetch_updated.charAt(0).toUpperCase()+fetch_updated.slice(1).toLowerCase()+"</option>"),jQuery("#variantChange").html("<option value=''>Select "+fetch_variant.charAt(0).toUpperCase()+fetch_variant.slice(1).toLowerCase()+"</option>")):"variant"==b&&jQuery("#"+e).html("<option value=''>Select "+b.charAt(0).toUpperCase()+b.slice(1).toLowerCase()+
"</option>"):"on-road-price"==source?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,isLaunched:"1",parentId:d,isVarLaunched:f},function(g){jQuery("#"+e).html(g)}):"/compare_cars_result.php"==pageSource?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,isLaunched:"1",parentId:d,isVarLaunched:f},function(g){jQuery("#"+e).html(g)}):"new-scooter-home"==EVENTCATAGORY?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,isLaunched:"1",parentId:d,
isVarLaunched:f,bodyType:"Scooters"},function(g){jQuery("#"+e).html(g)}):jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,parentId:d,isVarLaunched:f},function(g){jQuery("#"+e).html(g)})}function getBannerCode(b){$.ajax({url:SITEPATH+"/tpl/widget_top_banner_tpl.php",type:"GET",data:"banner="+b,success:function(c){$("#widget_adcode_container").html(c)}})}
function getUrlParameter(b){var c=window.location.search.substring(1);if(""==c)return"";c=c.split("&");for(var d=[],e=0;e<c.length;e++){var f=c[e].split("=");if("all"==b){var g={};g[f[0]]=f[1];d.push(g)}else if(f[0]==b)return f[1]}if("all"==b)return JSON.stringify(d)}var utm_source_medium="";null==Get_Cookie("utm_source")&&-1<window.location.search.indexOf("gclid")&&(utm_source_medium="google/cpc",Set_Cookie("utm_source",utm_source_medium,0));
""!=getUrlParameter("utm_source")&&void 0!=getUrlParameter("utm_source")&&("google"==getUrlParameter("utm_source")?void 0!=getUrlParameter("utm_medium")&&""!=getUrlParameter("utm_medium")?Set_Cookie("utm_source",getUrlParameter("utm_source")+"/"+getUrlParameter("utm_medium"),0):Set_Cookie("utm_source","Direct/Google-Organic",0):void 0!=getUrlParameter("utm_medium")&&""!=getUrlParameter("utm_medium")?Set_Cookie("utm_source",getUrlParameter("utm_source")+"/"+getUrlParameter("utm_medium"),0):Set_Cookie("utm_source",
getUrlParameter("utm_source"),0));var ref=document.referrer;
""==ref||""!=getUrlParameter("utm_source")&&void 0!=getUrlParameter("utm_source")||(-1<ref.indexOf("/aclk")||-1<ref.indexOf("googleads.g.doubleclick.net")?utm_source_medium="google/cpc":-1<ref.indexOf("facebook")?utm_source_medium="facebook/social":-1<ref.indexOf("youtube")?utm_source_medium="youtube/social":-1<ref.indexOf("t.co")?utm_source_medium="twitter/social":-1<ref.indexOf("blogger")?utm_source_medium="blogger/social":-1<ref.indexOf("linkedin")?utm_source_medium="linkedin/social":-1<ref.indexOf("plus.google")?
utm_source_medium="googlePlus/social":-1<ref.indexOf("reddit")?utm_source_medium="reddit/social":-1<ref.indexOf("disqus")?utm_source_medium="disqus/social":-1<ref.indexOf("pinterest")?utm_source_medium="pinterest/social":-1<ref.indexOf("slideshare")?utm_source_medium="slideshare/social":-1<ref.indexOf("stackoverflow")?utm_source_medium="stackoverflow/social":-1<ref.indexOf("instagram")?utm_source_medium="instagram/social":-1<ref.indexOf("google.gl")?utm_source_medium="google.gl/social":-1<ref.indexOf("naver")?
utm_source_medium="naver/social":-1<ref.indexOf("bitly")?utm_source_medium="bitly/social":-1<ref.indexOf("pocket")?utm_source_medium="pocket/social":-1<ref.indexOf("tripadvisor")?utm_source_medium="tripadvisor/social":-1<ref.indexOf("digg")?utm_source_medium="digg/social":-1<ref.indexOf("glassdoor")?utm_source_medium="glassdoor/social":-1<ref.indexOf("quora")?utm_source_medium="quora/social":-1<ref.indexOf("images.google")?utm_source_medium="images.google/organic":-1<ref.indexOf("google")&&-1==ref.indexOf("utm_medium=cpc")?
utm_source_medium="google/organic":-1<ref.indexOf("yahoo")?utm_source_medium="yahoo/organic":-1<ref.indexOf("bing")?utm_source_medium="bing/organic":-1<ref.indexOf("ask")?utm_source_medium="ask/organic":-1<ref.indexOf("globo")?utm_source_medium="globo/organic":-1<ref.indexOf("babylon")?utm_source_medium="babylon/organic":-1<ref.indexOf("yandex")?utm_source_medium="yandex/organic":-1<ref.indexOf("msn")?utm_source_medium="msn/organic":-1<ref.indexOf("aol")?utm_source_medium="aol/organic":-1<ref.indexOf("avg")?
utm_source_medium="avg/organic":-1<ref.indexOf("search-results")?utm_source_medium="search-results/organic":-1<ref.indexOf("baidu")?utm_source_medium="baidu/organic":-1<ref.indexOf("haosou.com")?utm_source_medium="haosou.com/organic":-1<ref.indexOf("go.mail.ru")?utm_source_medium="go.mail.ru/organic":-1<ref.indexOf("daum")?utm_source_medium="daum/organic":-1<ref.indexOf("startsiden")?utm_source_medium="startsiden/organic":-1<ref.indexOf("naver")?utm_source_medium="naver/organic":-1<ref.indexOf("sogou")?
utm_source_medium="sogou/organic":-1<ref.indexOf("seznam")?utm_source_medium="seznam/organic":-1<ref.indexOf("incredimail")?utm_source_medium="incredimail/organic":-1<ref.indexOf("virgilio")?utm_source_medium="virgilio/organic":-1<ref.indexOf("comcast")?utm_source_medium="comcast/organic":-1<ref.indexOf("onet")?utm_source_medium="onet/organic":-1<ref.indexOf("so.com")?utm_source_medium="so.com/organic":-1<ref.indexOf("lycos")?utm_source_medium="lycos/organic":-1<ref.indexOf("rakuten")?utm_source_medium=
"rakuten/organic":-1<ref.indexOf("rambler")?utm_source_medium="rambler/organic":-1<ref.indexOf("goo.ne")?utm_source_medium="goo.ne/organic":-1<ref.indexOf("centrum.cz")?utm_source_medium="centrum.cz/organic":-1<ref.indexOf("kvasir")?utm_source_medium="kvasir/organic":-1<ref.indexOf("eniro")?utm_source_medium="eniro/organic":-1<ref.indexOf("biglobe")?utm_source_medium="biglobe/organic":-1<ref.indexOf("search.smt.docomo")?utm_source_medium="search.smt.docomo/organic":-1<ref.indexOf("auone")?utm_source_medium=
"auone/organic":-1<ref.indexOf("conduit")?utm_source_medium="conduit/organic":-1<ref.indexOf("tut.by")&&(utm_source_medium="tut.by/organic"),""!=utm_source_medium&&Set_Cookie("utm_source",utm_source_medium,0));null==Get_Cookie("utm_source")&&Set_Cookie("utm_source","Direct",0);if("Direct"!=Get_Cookie("utm_source")){var utm_params=getUrlParameter("all");Set_Cookie("utm_params",utm_params,0)}
""!=getUrlParameter("utm_campaign")&&void 0!=getUrlParameter("utm_campaign")&&Set_Cookie("utm_campaign",getUrlParameter("utm_campaign"),0);trackUTMParameters();$.ajaxPrefilter(function(b,c,d){b.async=!0;"undefined"!=typeof _connecto&&"function"==typeof _connecto.getIdentity&&Set_Cookie("connecto_identity",_connecto.getAnonymousId())});
function trackUTMParameters(){var b="",c="",d=document.referrer;-1<window.location.search.indexOf("gclid")&&(c="cpc",b="google");""!=getUrlParameter("utm_source")&&void 0!=getUrlParameter("utm_source")&&(b=getUrlParameter("utm_source"));""!=getUrlParameter("utm_medium")&&void 0!=getUrlParameter("utm_medium")&&(c=getUrlParameter("utm_medium"));if(-1<d.indexOf("/aclk")||-1<d.indexOf("googleads.g.doubleclick.net"))c="cpc",b="google";-1==d.indexOf("zigwheels.com")&&(-1<d.indexOf("facebook")?(c="social",
b="facebook"):-1<d.indexOf("youtube")?(c="social",b="youtube"):-1<d.indexOf("t.co")?(c="social",b="twitter"):-1<d.indexOf("blogger")?(c="social",b="blogger"):-1<d.indexOf("linkedin")?(c="social",b="linkedin"):-1<d.indexOf("plus.google")?(c="social",b="googlePlus"):-1<d.indexOf("reddit")?(c="social",b="reddit"):-1<d.indexOf("disqus")?(c="social",b="disqus"):-1<d.indexOf("pinterest")?(c="social",b="pinterest"):-1<d.indexOf("slideshare")?(c="social",b="slideshare"):-1<d.indexOf("stackoverflow")?(c="social",
b="stackoverflow"):-1<d.indexOf("instagram")?(c="social",b="instagram"):-1<d.indexOf("google.gl")?(c="social",b="google.gl"):-1<d.indexOf("naver")?(c="social",b="naver"):-1<d.indexOf("bitly")?(c="social",b="bitly"):-1<d.indexOf("pocket")?(c="social",b="pocket"):-1<d.indexOf("tripadvisor")?(c="social",b="tripadvisor"):-1<d.indexOf("digg")?(c="social",b="digg"):-1<d.indexOf("glassdoor")?(c="social",b="glassdoor"):-1<d.indexOf("quora")?(c="social",b="quora"):-1<d.indexOf("images.google")?(c="organic",
b="images.google"):-1<d.indexOf("google")?(c="organic",b="google"):-1<d.indexOf("yahoo")?(c="organic",b="yahoo"):-1<d.indexOf("bing")?(c="organic",b="bing"):-1<d.indexOf("ask")?(c="organic",b="ask"):-1<d.indexOf("globo")?(c="organic",b="globo"):-1<d.indexOf("babylon")?(c="organic",b="babylon"):-1<d.indexOf("yandex")?(c="organic",b="yandex"):-1<d.indexOf("msn")?(c="organic",b="msn"):-1<d.indexOf("aol")?(c="organic",b="aol"):-1<d.indexOf("avg")?(c="organic",b="avg"):-1<d.indexOf("search-results")?(c=
"organic",b="search-results"):-1<d.indexOf("baidu")?(c="organic",b="baidu"):-1<d.indexOf("haosou.com")?(c="organic",b="haosou.com"):-1<d.indexOf("go.mail.ru")?(c="organic",b="go.mail.ru"):-1<d.indexOf("daum")?(c="organic",b="daum"):-1<d.indexOf("startsiden")?(c="organic",b="startsiden"):-1<d.indexOf("naver")?(c="organic",b="naver"):-1<d.indexOf("sogou")?(c="organic",b="sogou"):-1<d.indexOf("seznam")?(c="organic",b="seznam"):-1<d.indexOf("incredimail")?(c="organic",b="incredimail"):-1<d.indexOf("virgilio")?
(c="organic",b="virgilio"):-1<d.indexOf("comcast")?(c="organic",b="comcast"):-1<d.indexOf("onet")?(c="organic",b="onet"):-1<d.indexOf("so.com")?(c="organic",b="so.com"):-1<d.indexOf("lycos")?(c="organic",b="lycos"):-1<d.indexOf("rakuten")?(c="organic",b="rakuten"):-1<d.indexOf("rambler")?(c="organic",b="rambler"):-1<d.indexOf("goo.ne")?(c="organic",b="goo.ne"):-1<d.indexOf("centrum.cz")?(c="organic",b="centrum.cz"):-1<d.indexOf("kvasir")?(c="organic",b="kvasir"):-1<d.indexOf("eniro")?(c="organic",
b="eniro"):-1<d.indexOf("biglobe")?(c="organic",b="biglobe"):-1<d.indexOf("search.smt.docomo")?(c="organic",b="search.smt.docomo"):-1<d.indexOf("auone")?(c="organic",b="auone"):-1<d.indexOf("conduit")?(c="organic",b="conduit"):-1<d.indexOf("tut.by")&&(c="organic",b="tut.by"));var e=getUrlParameter("utm_campaign");if(""==b||null==b)b="Direct";if(""==c||void 0==c)c="null";if(""==e||void 0==e)e="null";"null"==b&&""!=d&&(b=d,c="referral");"null"==b&&(b="Direct",c="none");c=b+"#"+c+"#"+e;d=new Date((new Date).getTime()+
2592E6);null==Get_Cookie("firstUTMParamter")&&(document.cookie="firstUTMParamter="+c+(";expires="+d.toGMTString())+";path=/;domain=.zigwheels.com;sameSite=None;secure=true;");e=Get_Cookie("lastUTMParamter");null!=e&&e.split("#");if("Direct"!=b||""==e||null==e)document.cookie="lastUTMParamter="+c+(";expires="+d.toGMTString())+";path=/;domain=.zigwheels.com;sameSite=None;secure=true;"}
function b64EncodeUnicode(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(c,d){return String.fromCharCode("0x"+d)}))}function b64DecodeUnicode(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join(""))}
function openFeedbackForm(){$.get(SITEPATH+"/tpl/feedback_form_popup_tpl.php",function(b){$("#feedback").html(b);getCitySuggestions("feedback_city");$("#feedback_form").show();$("#feedback_footer").show();$("#feedback_comment").val("");$("#feedback_thankYou").hide()})}var GTMLayer_MakeModelName,GTMLayer_Source,GTMLayer_MakeName,GTMLayer_City;function callGTMLayerEventField(b,c){callGTMLayerEventInner(b,GTMLayer_MakeModelName,GTMLayer_Source,c,"","","","")}
function callGTMLayerEvent(b,c,d,e,f,g,n){callGTMLayerEventInner(b,c,d,"",e,f,g,n)}function callGTMLayerEventInner(b,c,d,e,f,g,n,l){var m={};m.gtmEvent=b;m.gtmdcbOffer=f;m.gtmLocation=d;m.gtmfieldname=e;m.gtmModelName=c;m.gtmMakeName=g;m.gtmCity=n;m.gtmLeadId=l;GTMLayerTracker(m)}
function GTMLayerTracker(b){switch(b.gtmEvent){case "Click":gtmEventClickValue="leadbuttonclick";break;case "Open":gtmEventClickValue="leadformopen";break;case "Submit":gtmEventClickValue="leadformsubmit";break;case "AlreadyVerified":gtmEventClickValue="leadformalreadyverified";break;case "Verified":gtmEventClickValue="leadformverified";break;case "Error":gtmEventClickValue="leadformerrors";break;case "Filled":gtmEventClickValue="leadformfilled";break;case "OtpOpen":gtmEventClickValue="otpformopen";
break;case "NotOpen":gtmEventClickValue="formnotshown";break;case "NotOpenLead":gtmEventClickValue="leadsubmitformnotshown";break;case "IdentifyCall":gtmEventClickValue="identifycall"}var c="";if("undefined"!=typeof b.gtmdcbOffer||""!=b.gtmdcbOffer)c=b.gtmdcbOffer;var d="undefined"!=typeof vehicleType&&"2Wheeler"==vehicleType?"Bike":"Car";void 0!=b.gtmfieldname&&""!=b.gtmfieldname?dataLayer.push({event:gtmEventClickValue,leadlocation:b.gtmLocation,model_name:b.gtmModelName,vehicle_type:d,fieldname:b.gtmfieldname}):
"leadformsubmit"!=gtmEventClickValue&&dataLayer.push({event:gtmEventClickValue,leadlocation:b.gtmLocation,model_name:b.gtmModelName,vehicle_type:d,dcb_offer:c});if("leadformsubmit"==gtmEventClickValue){var e="newcarleadformsubmit";"2Wheeler"==vehicleType&&(e="bikeleadformsubmit");dataLayer.push({event:e,leadlocation:b.gtmLocation,oem_name:b.gtmMakeName,dcb_offer:c,variant_name:"",vehicle_segment:dataLayer[0].vehicle_segment,vehicle_type:d,leadid:b.gtmLeadId,lead_city:b.gtmCity,model_name:b.gtmModelName})}}
var timer;function startOtpCounter(b,c){var d=30;$("#"+b).text(d);$("#"+c).hide();$("#otp_code1").val("");$("#otp_code1").focus();""!=timer&&clearInterval(timer);timer=setInterval(function(){d--;0<=d&&(10>d?$("#"+b).text("0"+d):$("#"+b).text(d))},1E3);$("#"+b).show();$("."+b).show()}
function change_popup_heading(b){"car"==b?$(".modal-title-add-your-vehical").html("Add Your Car Details"):"bike"==b?$(".modal-title-add-your-vehical").html("Add Your Bike Details"):"collection"==b&&$(".modal-title-add-your-vehical").html("Edit Your Collection")}function fetchMmvOptionsCar(b,c){jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:"models",isNew:0,isLaunched:"1",parentId:b},function(d){jQuery("#modelChangeCar-"+c).html(d)})}
function fetchMmvOptionsBike(b,c){jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:"models",isNew:0,isLaunched:"1",parentId:b},function(d){jQuery("#modelChangeBike-"+c).html(d)})}
function open_Addvhcl(){if(isPopupVisible())return!1;var b=1;-1!=window.location.href.indexOf("bikes")&&(b=2);$("#tab123").gsp_tab({content_wrap:"#tab-container123",defaultOpen:b,responsive:!0,layout:"auto",breakpoint:767});$("input:checkbox").on("click",function(){1==$(this).is(":checked")?$(this).parent("span").addClass("selected"):0==$(this).is(":checked")&&$(this).parent("span").removeClass("selected")});$("input:radio").on("click",function(){1==$(this).is(":checked")?$(this).parent("span").addClass("selected"):
0==$(this).is(":checked")&&$(this).parent("span").removeClass("selected")});$("[id='add-more-veh1']").on("click",function(){var c=$('select[id ^= "makeChangeCar"]').length,d="modelChangeCar-"+c,e="yearChangeCar-"+c;$("#cstmscrl").append('<div class="clearfix"></div><div class="Add-carform removable" id="removable-car'+c+'"> <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-6 mb-5 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="makeChangeCar[]" onchange="fetchMmvOptionsCar(this.value,'+
c+')" id="makeChangeCar-'+c+'" class="custom-select"> </select> <span class="SelectArrow"></span> </span> </div> <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-6 mb-5 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="modelChangeCar[]" id="'+d+'" class="custom-select"><option selected="selected" value="">Select Model</option></select> <span class="SelectArrow"></span> </span> </div><input type="hidden" value="" name="yearChangeCar[]" id="'+e+'"><input name="currentCar[]" id="currentCar-'+
c+'" type="hidden" value="0" >\x3c!-- <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-4 mb-5 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="yearChangeCar[]" id="'+e+'" class="yearCarChange custom-select"></select> <span class="SelectArrow"></span> </span> </div> <div class="col-xs-6 zw-gpu-pl-0 col-sm-3 mb-15 mt-3 chkbx p-0 pt-0 pl-10 smalldivpadding mob-pl-0 b" style="padding-left:0"> <span class="custom-checkbox selected"> <input name="currentCar[]" id="currentCar-'+c+'" type="checkbox" value="'+
c+'" checked="checked"> </span><label for="currentCar-'+c+'" class="cursorPointer b">Current Car</label> </div>--\x3e <div class="col-xs-6 zw-gpu-pl-0 col-sm-1 mb-15 p-0 pt-0 text-center pull-right smalldivpadding"><a href="javascript:void(0);" onclick="removeRow('+c+');" class="remove a-link">Remove</a></div><div class="clearfix"></div> </div>');d=$("#makeChangeCar > option").clone();$("#makeChangeCar-"+c).append(d);c=$("#yearChangeCar > option").clone();$(".yearCarChange:last").append(c);$(".smalldivpadding input:checkbox").on("click",
function(){!0===$(this).is(":checked")?$(this).parent(".custom-checkbox").addClass("selected"):!1===$(this).is(":checked")&&$(this).parent(".custom-checkbox").removeClass("selected")})});$("[id='add-more-veh2']").on("click",function(){var c=$('select[id ^= "makeChangeBike"]').length,d="modelChangeBike-"+c,e="yearChangeBike-"+c;$("#cstmscrl2").append('<div class="clearfix"></div><div class="Add-carform removable" id="removable-bike'+c+'"> <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-6 mb-15 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="makeChangeBike[]" onchange="fetchMmvOptionsBike(this.value,'+
c+')" id="makeChangeBike-'+c+'" class="custom-select"> </select> <span class="SelectArrow"></span> </span> </div> <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-6 mb-15 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="modelChangeBike[]" id="'+d+'" class="custom-select"><option selected="selected" value="">Select Model</option></select> <span class="SelectArrow"></span> </span> </div><input name="currentBike[]" id="currentBike-'+c+'" type="hidden" value="0"><input type="hidden" value="" name="yearChangeBike[]" id="'+
e+'" /> \x3c!--  <div class="col-xs-6 zw-gpu-pl-0 col-sm-6 col-md-4 mb-15 select-dl pr-10 pl-0"> <span class="select-wrapper"> <select name="yearChangeBike[]" id="'+e+'" class="yearBikeChange custom-select"></select> <span class="SelectArrow"></span> </span> </div> <div class="col-xs-6 zw-gpu-pl-0 col-sm-3 mb-15 chkbx p-0 pt-0 pl-10 smalldivpadding mob-pl-0 b" style="padding-left:0"> <span class="custom-checkbox"> <input name="currentBike[]" id="currentBike-'+c+'" type="checkbox" value="'+c+'"> </span><label for="currentBike-'+
c+'" class="cursorPointer b">Current Bike</label> </div> --\x3e <div class="col-xs-6 zw-gpu-pl-0 col-sm-1 mb-15 p-0 pt-0 text-center pull-right smalldivpadding"><a href="javascript:void(0);" onclick="removeRowBike('+c+');" class="remove a-link">Remove</a></div><div class="clearfix"></div> </div>');d=$("#makeChangeBike > option").clone();$("#makeChangeBike-"+c).append(d);c=$("#yearChangeBike > option").clone();$(".yearBikeChange:last").append(c);$(".smalldivpadding input:checkbox").on("click",function(){!0===
$(this).is(":checked")?$(this).parent(".custom-checkbox").addClass("selected"):!1===$(this).is(":checked")&&$(this).parent(".custom-checkbox").removeClass("selected")})});$("#modelChangeBike-0").on("change",function(){""!=$("#modelChangeBike-0").val()?($("#model_forum_submit_vehicle").removeClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","none"),$("#add-more-veh2").css("display","block")):($("#model_forum_submit_vehicle").addClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display",
"block"),$("#add-more-veh2").css("display","none"))});$("#modelChangeCar-0").on("change",function(){""!=$("#modelChangeCar-0").val()?($("#model_forum_submit_vehicle").removeClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","none"),$("#add-more-veh1").css("display","block")):($("#model_forum_submit_vehicle").addClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","block"),$("#add-more-veh1").css("display","none"))})}
function removeRow(b){$("#removable-car"+b).remove()}function removeRowBike(b){$("#removable-bike"+b).remove()}
function submit_ad_y_v_p(){var b=Get_Cookie("loginUserId");$.ajax({type:"POST",url:TODBFILEPATH+"/forum_save_user_garage_2db.php",data:"&garageArr="+JSON.stringify(garageTempArr)+"&loginUserId="+b,success:function(c){"no-row"==$.trim(c)?(alert("Please select One car or bike."),setGtmTracking(EVENTCATAGORY,"forum-track-garage-selection-empty")):(setGtmTracking(EVENTCATAGORY,"forum-track-garage-added-success"),show_forum_add_review_popup(1))},error:function(c,d){setGtmTracking(EVENTCATAGORY,"forum-track-garage-added-failed")}});
0<$("#addGarageCon").length&&$("#addGarageCon").hide()}
function show_forum_add_review_popup(b,c,d,e,f){e=void 0===e?"no":e;f=void 0===f?"yes":f;"undefined"!==typeof Storage&&1==sessionStorage.getItem("add_garagae_modify_popup")&&sessionStorage.removeItem("add_garagae_modify_popup");$("#forum_submit_popup").modal("hide");if("undefined"==typeof b||""==b)b=0;if("undefined"==typeof c||""==c)c="";if("undefined"==typeof d||""==d)d="";$.ajax({type:"POST",url:SITEPATH+"/tpl/write_review_ajax_tpl.php",data:"&forumAskOwnerEventCategory="+EVENTCATAGORY+"&mdid="+
b+"&mode="+c+"&modelId="+d+"&addGarage="+e+"&displayOwnLabel="+f+"&isReviewWidget="+isReviewWidget,success:function(g){"NO_DATA"==$.trim(g)?setTimeout(function(){show_forum_add_garage_popup()},2E3):(1==isReviewWidget?(setGtmTracking(EVENTCATAGORY,"review-widget-model-popup-open","click"),isReviewWidget=0):(callGaTracking(EVENTCATAGORY,"open","forum-review-popup-open",0),dataLayer.push({event:"popup",virtual_action:"forum-review-popup-open"})),"function"==typeof findMaxMinMileage&&setTimeout(function(){findMaxMinMileage(d)},
2E3),$("#write_review_modal").html(g),$("#write_review_modal").modal("show"),localStorage.setItem("forum_garage_no","0"),$("#forum_add_garage_widget").removeClass("hidden"),setTimeout(function(){$("body").addClass("modal-open")},800),n_chk(),customSelect(),del_cookie("login_via_garage"))}})}
function show_forum_add_garage_popup(b){if(isPopupVisible())return!1;reDeclarePopUpVariable();"undefined"==typeof b?(callGaTracking(EVENTCATAGORY,"open","add_vehicle_popup_open",0),dataLayer.push({event:"popup",virtual_action:"add_vehicle_popup_open"}),b=0):(callGaTracking(EVENTCATAGORY,"open","thankyou_popup_open",0),dataLayer.push({event:"popup",virtual_action:"review_thankyou_popup_open"}));var c="";"undefined"!==typeof Storage&&(submitted_by=sessionStorage.getItem("garage_button_submit"),model_year=
sessionStorage.getItem("add_garage_model_year"),model_id=sessionStorage.getItem("add_garage_model_id"),"review"==submitted_by&&null!=sessionStorage.getItem("review_model_id")&&(model_id=sessionStorage.getItem("review_model_id")),c+="&submittedBy="+submitted_by+"&garage_model_year="+model_year+"&model_id="+model_id,"function"===typeof tyScreenTracking&&tyScreenTracking(submitted_by));1==window.isUserLoggedIn&&$.ajax({type:"POST",url:TODBFILEPATH+"/forum_add_garage_popup_2db.php",data:"&loginUserId="+
window.loginUserId+"&forumAskOwnerEventCategory="+EVENTCATAGORY+"&thanksSts="+b+c,success:function(d){"NO_DATA"!=$.trim(d)&&30<d.length&&($("#garagepopup").remove(),$("#confirm_thankyou").append(d),open_Addvhcl(),$(".zw-thnku-ctr").css("display","none"),$("#confirm_thankyou").css("display","block"),localStorage.setItem("forum_garage_no","0"),$("#forum_add_garage_widget").removeClass("hidden"),$("#forum_submit_popup").modal("show"),setTimeout(function(){$("body").addClass("modal-open")},800),"function"==
typeof listUserState&&listUserState());"undefined"!==typeof Storage&&(sessionStorage.removeItem("garage_button_submit"),sessionStorage.removeItem("add_garage_model_year"),sessionStorage.removeItem("review_model_id"))}});$("#re-w").modal("hide")}var userIdNew="";
function checkForumLoginHeaderValue(){var b=1;767<screen.width&&(b=0);$.ajax({type:"GET",data:{eventCategory:eventCategory,isMobile:b},url:SITEPATH+"/tpl/get_login_menu_tpl.php",success:function(c){c=jQuery.trim(c);if(""!=c){1==b?$("#forum_login_wrap_sm").html(c):($("#forum_login_wrap_lg").html(c),$("#forum_login_wrap_lg").on({mouseenter:function(){$("[data-hSprite]").each(function(){var l=$(this).attr("data-hSprite");$(this).addClass(l+" ")})}}));$("#new_login_div").hide();if("undefined"!==typeof Storage)var d=
localStorage.getItem("inappropriateAnsId"),e=localStorage.getItem("reasonValue");setTimeout(function(){if("undefined"==typeof d||""==d||null==d)$("#forum_login_div_sm").show(),add_garage_after_login()},500);if(""!=$("#loginUserId").val()){userIdNew=$("#loginUserId").val();window.loginUserId=$("#loginUserId").val();window.isUserLoggedIn=1;Set_Cookie("loginUserId",window.loginUserId);c=$("#loginUserName").val();var f=$("#loginEmailId").val(),g=$("#loginUserImage").val(),n=$("#loginUserImageDefault").val();
$("#forum_login_wrap_lg").removeClass("h-sib");767>screen.width&&($("#forum_login_cover_image_sm").attr("onerror","this.onerror=null;this.src='"+n+"';"),$("#forum_login_cover_image_sm").attr("src",g),$("#forum_login_cover_image_sm").parent("div").addClass("a"),$(".h-u-img").remove(),$("#forum_login_cover_image_sm").css("display","block"));$("#forum_thankyou_email_id").text(f);""==$("#idUpdateUserName").val()&&($("#idUpdateUserName").val(c),$("#idUpdateEmail").val(f));"yes"==$("#loginHasGarage").val()&&
$("#forum_add_garage_widget").hide();g=Get_Cookie("forumLoggedInUser");$.ajax({type:"GET",url:SITEPATH+"/tpl/get_helpful_nodeid_for_loggedinuser_tpl.php",data:{loginUserId:window.loginUserId},success:function(l){localStorage.setItem("loggedInUserHelpfulNodeId",l);setTimeout(function(){helpfulActive()},1E3)}});null==g?(del_cookie("central_user_data"),getCentralUsersData(0),shortlist(-1),nodeData=localStorage.getItem("helpfulNodeId"),"undefined"!=typeof nodeData&&""!=nodeData&&null!=nodeData&&(datastring=
"&data="+JSON.stringify(nodeData)+"&userId="+window.loginUserId,$.ajax({type:"POST",url:SITEPATH+"/tpl/helpful_update_tpl.php",data:datastring,success:function(l){l=localStorage.getItem("helpfulNodeId");if("undefined"!=typeof l&&""!=l&&null!=l){l=l.split(",");for(var m=0;m<l.length;m++){var x=l[m].split("#");if("like"==x[2]&&($("#span_like_"+x[0]).addClass("liked"),$("#anchor_"+x[0]).addClass("a"),$("#anchor_"+x[0]).data("helpful","unlike"),"/index.php"==pageSource||"/make.php"==pageSource)){var v=
$("#anchor_"+x[0]+" .nodeLikeCount").text();v=$.trim(v);v=parseInt(v)+1;$("#anchor_"+x[0]+" .nodeLikeCount").text("("+v+")")}}setTimeout(function(){localStorage.removeItem("helpfulNodeId")},2E3)}}}))):shortlist(0);""!=sessionStorage.votedModel&&"comparison-result"==gapage_name?(Set_Cookie("forumLoggedInUser","1"),sessionStorage.pageRefreshedAfterLogin="yes"):null==g&&null===Get_Cookie("model_ques_owner1")&&null===Get_Cookie("model_review_owner")&&null===Get_Cookie("model_ans_owner")&&null===Get_Cookie("add_garage_without_login")?
(Set_Cookie("forumLoggedInUser","1"),g=Get_Cookie("ask_ques_owner"),""!=g&&void 0!=g&&null!=g||"undefined"!=typeof d&&""!=d&&null!=d||1!=parseInt(Get_Cookie("garage_without_login_open_review_popup"))&&"undefined"!==typeof Storage&&"ask_mobile_screen"!=localStorage.getItem("user_info_instance")&&show_forum_add_review_popup()):(g=parseInt(g)+1,Set_Cookie("forumLoggedInUser",g));localStorage.setItem("forum_header_userId",window.loginUserId);localStorage.setItem("forum_header_userName",c);localStorage.setItem("forum_header_email",
f);setTimeout(function(){"undefined"!=typeof d&&""!=d&&null!=d&&(reportAnswer(d,e),setGtmTracking(EVENTCATAGORY,"report-ans-success-after-login"),localStorage.removeItem("inappropriateAnsId"),localStorage.removeItem("reasonValue"),Get_Cookie("loginUserId")&&localStorage.removeItem("reasonFlag"))},1E3)}else $("#forum_non_login_lg").css("display","block"),$("#forum_login_image_div_lg").css("display","none"),$("#forum_login_userName_wrap_lg").css("display","none"),$("#forum_login_submenu_lg").css("display",
"none"),f=c="",Set_Cookie("forumLoggedInUser",""),del_cookie("forumLoggedInUser"),localStorage.setItem("forum_header_userId",""),localStorage.setItem("forum_header_userName",""),localStorage.setItem("forum_header_email","")}}})}
function forum_recently_asked_question(){$("#forum_submit_popup").modal("hide");var b=Get_Cookie("loginUserId");$.ajax({type:"POST",url:TODBFILEPATH+"/forum_recently_asked_question_2db.php",data:"&user_id="+b,success:function(c){$("#confirm_box_text").html("");$("#confirm_yes_no").hide();$("#confirm_thankyou").css("display","none");$("#recently_asked_question").html(c);$("#recently_asked_question").css("display","block");$("#forum_submit_popup").modal("show")}})}
function getUserLocation(b){$.get(TODBFILEPATH+"/get_user_location_2db.php",{location_id:b},function(c){updateGeoCityOnpage()})}
function rhsStk(){1024<=$(window).innerWidth()&&0<$(".stickyRhs").length&&setTimeout(function(){var b=$(".stickyRhs:last"),c=0;0<$(".rvmp-compare-popup").length&&"comparison-result"==SOURCE&&(c=0);$(".stickyRhs:last").offset();var d=$(".stickyRhs:last").height(),e=$(".bodyRight").width(),f=$(".bodyLeft:last").height(),g=$(".bodyRight:last").height();$('<div id="lastRhs"></div>').insertBefore(b);if(f>g)$(window).on("scroll",function(){var n=$("#lastRhs").offset().top-150-c,l=$("footer").offset().top-
d-65-c,m=$(window).scrollTop();n<m?0<c?b.css({position:"fixed",top:"200px",width:e}):b.css({position:"fixed",top:"65px",width:e}):b.css("position","static");l<m&&b.css({top:l-m})})},5E3)}function goToUrl(b,c){if(void 0===c||""==c)c="_self";window.open(b,c)}function zwCloseconnectof(b){$(".zwconnectoClose").on("click",function(){$(this).parents(".zw-connecto-ctr").removeClass("active");void 0!=b&&changeBannerStatus(b)})}
function changeBannerStatus(b){Set_Cookie("removeBanner",b);$(".zw-connecto-ctr").removeClass("active")}function getabusivewords(){jQuery.getJSON(JSFILEPATH+"/words_json.js",function(b){wordJSON=b})}function validateabusivewords(b){var c=jQuery("#"+b).val();return void 0==c||"null"==c||""==c?"Blank":""==wordJSON.filter(function(d){return d.value.toLowerCase()==c.toLowerCase()})?"Valid":"Invalid"}
function getSubCityOptions(b,c){jQuery.getJSON(JSFILEPATH+"/subcity_json.js?version="+JS_VERSION,function(d){subcityJSON=d;jQuery("#"+b).autocomplete({minLength:2,source:subcityJSON,maxResults:10,select:function(e,f){"1"==f.item.is_child?(jQuery("#"+b).attr("city_id",f.item.parent_city_id),jQuery("#"+b).attr("city_url_name",f.item.parent_city_name),jQuery("#"+b).attr("sub_city_id",f.item.id),jQuery("#"+b).attr("id_cd",f.item.idCd),jQuery("#"+b).attr("value",f.item.value),jQuery("#"+b).attr("name_cd",
f.item.nameCd),jQuery("#"+b).val(f.item.label)):(jQuery("#"+b).attr("city_id",f.item.id),jQuery("#"+b).attr("city_url_name",f.item.name),jQuery("#"+b).val(f.item.label),jQuery("#"+b).attr("sub_city_id",""),jQuery("#"+b).attr("id_cd",f.item.idCd),jQuery("#"+b).attr("value",f.item.value),jQuery("#"+b).attr("name_cd",f.item.nameCd));void 0!=c&&""!=c&&c();$("#"+b).on("blur",function(){""==$("#"+b).val()&&($("#"+b).attr("city_id",""),$("#"+b).attr("city_url_name",""))})}}).each(function(){$(this).data("uiAutocomplete")._renderMenu=
function(e,f){var g=this,n="";$.each(f,function(l,m){m.group_parent!=n&&(e.append("<li class='ui-autocomplete-category groupHead'>"+m.group_parent+"</li>"),n=m.group_parent);l=g._renderItemData(e,m);m.group_parent?l.attr("aria-label",m.group_parent+" : "+m.value):l.addClass("secondp")});$(".subcity_subClass").appendTo("#subcityDiv")};$(this).data("uiAutocomplete")._renderItem=function(e,f){f=f.value;return $("<li>").append($("<a>").html(f)).appendTo(e)}}).autocomplete("widget").addClass(b+"_subClass")})}
function askQuestionLink(b,c,d,e,f,g){g=void 0===g?"":g;"undefined"==typeof f&&(f=1);1==f&&0<$("#n-askInput").length&&768>$(window).innerWidth()?$("#n-askInput").focus():window.location.href=SITEPATH+b+c+"/"+d+e+g;return!1}function getAutoexpoGallery(b){Set_Cookie("galleryType",b);return!0}
function headerTab(){if(1==$(".mmv-w").length){var b=$(".mmv-w"),c=$(".mmv-w").offset().top-$(".mmv-w").outerHeight(),d=$(window).height()/2;$("#headerSearch");var e=0;$(window).on("scroll",function(){var n=$(window).scrollTop();if(n>=d)if(n>=c)if(e>n){var l=$("header").outerHeight();b.addClass("mmv-f").css("transform","translateY("+l+"px)");"/compare_cars_result.php"!==pageSource&&$("header").addClass("h-fix")}else $("header").removeClass("h-fix"),b.addClass("mmv-f").removeAttr("style");else b.removeClass("mmv-f").removeAttr("style"),
$("header").removeClass("h-fix");else b.removeClass("mmv-f").removeAttr("style");0!=n||$("#menuIcon").hasClass("open")||$("header").removeAttr("style").removeClass("h-fix");e=n});if(1023>=$(window).innerWidth()){$(".mmv-nv .mr-dot").on("click",function(){$(this).addClass("a");$(".mmv-w").css({zIndex:"99999",transform:"unset"});$(".mmvShadow").addClass("a");$("body").addClass("modal-open");$(".mmv-nv>li.mr-dot ul").addClass("visible-xs")});$(document).on("click",".mmvCls,.mmvShadow",function(){$(".mmv-w").removeAttr("style").css({transform:"translateY(0)"});
$(".mmvShadow").removeClass("a");$("body").removeClass("modal-open");$(".mmv-nv>li.mr-dot ul").removeClass("visible-xs");$(".mmv-nv .mr-dot").removeClass("a")});var f=0,g=$(window).width();$(".mmv-nv").parent("div").addClass("mmv-scrl");$(".mmv-nv > li").each(function(){f+=$(this).width()+25});$(".mmv-nv").css("width",f);setTimeout(function(){if(1<=$(".mmv-nv a.active").length){var n=$(".mmv-nv a.active").parent("li").offset().left,l=$(".mmv-nv a.active").parent("li").outerWidth()/2;g/4*3<n+l&&$(".mmv-scrl").animate({scrollLeft:n-
l-g/3},800)}},1E3)}}else d=$(window).height()/2-100,$("header").outerHeight(),$("header").css({position:"sticky",top:"0",left:"0"}),$(window).scroll(function(){$(window).scrollTop()>=d+200&&$("#headerNewNavWrap").css({height:"0"}).hide();200>=$(window).scrollTop()&&$("#headerNewNavWrap").css({height:"auto"}).show()});if(1<=$(".h-d-nav > li").length)$(".h-d-nav > li").on({mouseenter:function(){$(".h-bg-drk").addClass("a")},mouseleave:function(){$(".h-bg-drk").removeClass("a")}})}
function lgntp_h(){var b=$(window).height(),c=$(".lgn-btm").outerHeight();b-=c;$(".fo-nw-login").height(b)}
function mNav(){if(991>screen.width){var b=function(){setTimeout(function(){$("#connecto_sldr").gsp_carousel({item:1,pager:!1,slideMargin:10,enableDrag:!0,slideMove:1,controls:!1,showUpcoming:!0,upcomingPercent:10})},2E3)};lgntp_h();$(window).on("resize",function(){lgntp_h()});$("#h-m-icn").on("click",function(){b();$(this).hasClass("o")?($(this).removeClass("o"),$(".h-n-bg").removeClass("a"),$(".z-m-lft").removeClass("o"),$(this).find("i").text("Menu"),$("body").removeClass("of-hid")):($(".h-n-bg").addClass("a"),
$(".z-m-lft").addClass("o"),$(this).find("i").text("Close"),$("body").addClass("of-hid"),$(".z-m-navW").find("[data-clksprite]").each(function(){var c=$(this).attr("data-clksprite");$(this).addClass(c+" ")}))});$(".h-n-bg").on("click",function(){$(this).removeClass("a");$("#h-m-icn").removeClass("o");$("#h-m-icn").find("i").text("Menu");$(".z-m-lft").removeClass("o");$("body").removeClass("of-hid")});$(".z-m-nav > li > span").on("click",function(){$(this).next("ul").is(":visible")?($(this).parent("li").removeClass("a"),
$(this).next("ul").slideUp()):($(".z-m-nav > li > ul").slideUp(),$(".z-m-nav > li").removeClass("a"),$(this).parent("li").addClass("a"),$(this).next("ul").slideDown());$(".z-m-s-nav > span").next("ul").is(":visible")&&($(".z-m-s-nav").removeClass("a"),$(".z-m-s-nav > span").next("ul").slideUp());$(".h-m-si-w").hasClass("o")&&$(".h-m-si-w").removeClass("o")});$(".z-m-s-nav > span").on("click",function(){$(this).next("ul").is(":visible")?($(this).parent("li").removeClass("a"),$(this).next("ul").slideUp()):
($(this).parent("li").addClass("a"),$(this).next("ul").slideDown())});$(document).on("click",".f-clk-e",function(){$(".z-m-nav > li > a").next("ul").is(":visible")&&($(".z-m-nav > li").removeClass("a"),$(".z-m-nav > li > a").next("ul").slideUp())})}}
function n_loginCon(){991>screen.width?(1<=$("#des_lIcon").length&&$("#des_lIcon").remove(),$(".u-icn-w").trigger("click"),$("#new_login_div h4").show(),"Login or Signup to Shortlist"==$(".heading").html()&&$("#new_login_div h4").is(":visible")):$("#myModal3").modal("show");$("#re-w").modal("hide")}function shortListScroll(){$(".hrt-icn-w").on("click",function(){if(1!=$("#shortList_v").val()){$("#shortList_v").val("1");var b=$(window).scrollTop();$(window).scrollTop(b-1)}})}
function n_userLogin(){991>screen.width&&($(".u-icn-w").on("click",function(){$(".h-u-s").find("[data-clksprite]").each(function(){var b=$(this).attr("data-clksprite");$(this).addClass(b+" ")});$(".h-u-s").addClass("o");setTimeout(function(){$("body").addClass("modal-open")},1E3);$(".h-u-img").hide()}),$(".h-cls").on("click",function(){$(".h-u-s").removeClass("o");$("body").removeClass("modal-open")}),$(".h-sl-w").on("click",function(){$(".short-dd").addClass("o");$("body").addClass("modal-open");
var b=$(window).height()-114;$(".h-sl-lst").css({"max-height":b,"overflow-y":"auto"})}),$(".sl-cls").on("click",function(){$(".short-dd").removeClass("o");$("body").removeClass("modal-open");$(".h-sl-lst").removeAttr("style")}))}function short_l(){if(1<=$(".hrt-icn-w").length)$(".hrt-icn-w").on("click",function(){$(this).addClass("a")})}function remove_short_list(){if(1<=$(".hrt-icn-w").length)$(".hrt-icn-w").on("click",function(){$(this).removeClass("a")})}
function n_chk(){$(".n-chk").each(function(){$(this).wrap('<span class="chk-c chk-rd-s"></span>');!0===$(this).is(":checked")&&($(this).parent(".chk-c").addClass("a"),$(this).parents("label").addClass("cr-w"))});$(".n-chk").on("click",function(){1==$(this).is(":checked")?($(this).parent(".chk-c").addClass("a"),$(this).parents("label").addClass("cr-w")):0==$(this).is(":checked")&&($(this).parent(".chk-c").removeClass("a"),$(this).parents("label").removeClass("cr-w"))})}
function radioButtonCallback(){0==$(".n-rd").parent("span").hasClass("chk-rd-s")&&$(".n-rd").each(function(){$(this).wrap('<span class="rd-c chk-rd-s"></span>');1==$(this).is(":checked")&&($(this).parent(".rd-c").addClass("a"),$(this).parents("label").addClass("cr-w"))})}
$(document).on("click",".n-rd",function(){1==$(this).is(":checked")?($(this).parents(".multiCheck")?$(this).parents(".multiCheck").find(".n-rd").each(function(){$(this).parent(".rd-c").removeClass("a");$(this).parents("label").removeClass("cr-w")}):$(".n-rd").each(function(){$(this).parent(".rd-c").removeClass("a");$(this).parents("label").removeClass("cr-w")}),$(this).parent(".rd-c").addClass("a"),$(this).parents("label").addClass("cr-w")):0==$(this).is(":checked")&&($(this).parent(".rd-c").removeClass("a"),
$(this).parents("label").removeClass("cr-w"));1==$(".n-rd").parents("label").hasClass("cr-w")&&$(".n-rd").parents("label").removeClass("cr-w")});function m_shrtlist(){767>screen.width&&setTimeout(function(){$("#d-shrtl").appendTo("#m-shrtl")},1E3)}
function call_login_popup(b,c,d,e){e=void 0===e?!1:e;b="&eventCategory="+b+"&source="+c+"&request_uri="+window.location+"&login_case="+e;0==window.isUserLoggedIn&&$.ajax({url:SITEPATH+"/tpl/forum_login_header_ajax_tpl.php",type:"POST",data:b,success:function(f){"one-tap-alternate"==e&&0<$("#ot-alt").length?($("#ot-alt").html(f),0<$("#oneTapAlternateLoginPopup").length&&($("#oneTapAlternateLoginPopup").modal({backdrop:!1,show:!0}),localStorage.setItem("login_purpose","one-tap-alternate"),$(".modal-backdrop").removeClass("in"),
$("body").removeClass("modal-open"))):(991>screen.width?($("#new_login_div").html(f),$("#forum_login_div_sm").hide()):$("#myModal3-modal-content").html(f),f=new URLSearchParams(window.location.search),1==f.get("is_amp_garage")&&setTimeout(function(){forum_add_garage_widget()},2E3),1==f.get("is_amp_login")&&modifyLoginScreen("default"),1==f.get("is_amp_rate")&&(modelId_tmp=0<$("#modelId").length?$("#modelId").val():0<$("#modelIdReview").length?$("#modelIdReview").val():pageSuggestModelId,show_forum_add_review_popup("",
"rate",modelId_tmp)))}})}function rate_the_vehicle(b){b=void 0===b?"":b;reDeclarePopUpVariableWithArray();1==b&&(isReviewWidget=1,setGtmTracking(EVENTCATAGORY,"review-widget-button-click","click"));selectModelForReview=1;forum_add_garage_widget()}
function forum_add_garage_widget(b){isUserInfoScrVisible();"function"==typeof reDeclarePopUpVariable&&reDeclarePopUpVariable();$.ajax({type:"GET",url:TODBFILEPATH+"/forum_profile_garage_popup_2db.php",data:"&forumAskOwnerEventCategory="+EVENTCATAGORY,success:function(c){"NO_DATA"!=$.trim(c)&&30<c.length&&($("#garagepopup").remove(),$("#confirm_thankyou").append(c),open_Addvhcl(),$(".zw-thnku-ctr").css("display","none"),$("#confirm_thankyou").css("display","block"),$("#forum_submit_popup").modal("show"),
setTimeout(function(){$("body").addClass("modal-open");$("#modelChangeBike-0").on("change",function(){""!=$("#modelChangeBike-0").val()?($("#model_forum_submit_vehicle").removeClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","none"),$("#add-more-veh2").css("display","block")):($("#model_forum_submit_vehicle").addClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","block"),$("#add-more-veh2").css("display","none"))});$("#modelChangeCar-0").on("change",function(){""!=
$("#modelChangeCar-0").val()?($("#model_forum_submit_vehicle").removeClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","none"),$("#add-more-veh1").css("display","block")):($("#model_forum_submit_vehicle").addClass("deacctive"),$("#model_forum_submit_vehicle_wrap").css("display","block"),$("#add-more-veh1").css("display","none"))})},800),1!=selectModelForReview&&(callGaTracking(EVENTCATAGORY,"open","add_vehicle_popup_open",0),dataLayer.push({event:"popup",virtual_action:"add_vehicle_popup_open"})));
"function"==typeof listUserState&&listUserState();"undefined"!==typeof b&&($(b).is('[data-vehicle="car"]')?(add_car_bike=1,isCar=!0,$("#modelHeading").html("Which car do you own?"),$("#modelSearch").attr("placeholder","Type your car name e.g Swift, creta")):(add_car_bike=1,isCar=!1,$("#modelHeading").html("Which bike/scooter do you own?"),$("#modelSearch").attr("placeholder","Type your bike/scooter name e.g Activa, pulsar 150")));setTimeout(function(){},3E3)}})}
function add_garage_without_login(){""==$("#modelChangeBike-0").val()&&""==$("#modelChangeCar-0").val()?alert("Please select One car or bike."):(Set_Cookie("add_garage_without_login","1","","/"),"undefined"!==typeof Storage&&(localStorage.setItem("add_garage_without_login",JSON.stringify(garageTempArr)),$(".heading").html("Login to personalise your experience"),$("#forum_submit_popup").modal("hide"),forum_garage_no(),setGtmTracking(EVENTCATAGORY,"forum-track-login-popup-add-garage"),modifyLoginScreen("garage")))}
function modifyLoginScreen(b){var c="&eventCategory="+eventCategory+"&source="+source+"&request_uri="+window.location;0==window.isUserLoggedIn&&$.ajax({url:SITEPATH+"/tpl/forum_login_header_ajax_tpl.php",type:"POST",data:c,success:function(d){if(991>screen.width){$("#new_login_div").html(d);lgntp_h();d=Get_Cookie("loginUserId");var e=0;void 0!=d&&null!=d&&""!=d&&(e=1);1==e?$("#forum_login_div_sm").show():$("#forum_login_div_sm").hide()}else $("#myModal3-modal-content").html(d);991>screen.width?(1<=
$("#des_lIcon").length&&$("#des_lIcon").remove(),$(".h-u-s").addClass("o"),$("#new_login_div h4").show()):$("#myModal3").modal("show");d={"default":"zs",question:"qn",answer:"ar",garage:"bs",rating:"rg",shortlist:"fs",comment:"rg",followpost:"qn"}[b];$(".hd-ctr").removeClass().addClass("hd-ctr mb-15 "+d);$(".login-title").each(function(){$(this).addClass("hidden")});"garage"==b&&("undefined"!=typeof garageTempArrObj.MAKE_NAME&&null!=garageTempArrObj.MAKE_NAME&&""!=garageTempArrObj.MAKE_NAME&&$(".login-title."+
b).html("Login to Join the <br>"+garageTempArrObj.MAKE_NAME+" "+garageTempArrObj.MODEL_NAME+" community"),Set_Cookie("login_via_garage",1));$(".login-title."+b).removeClass("hidden");$(".login-desc").each(function(){$(this).addClass("hidden")});$(".login-desc."+b).removeClass("hidden");"rating"==b?$("#rating_txt").html($("#loginPopupRatingTxt").html()+$("#gmavg_rating").html()+"/5"):$("#question_txt").html($("#loginPopupQuestionTxt").html());"shortlist"==b&&Set_Cookie("SAVE_SHORTLIST_ON_LOGIN","1");
"default"==b&&(b="header");Set_Cookie("tmp_regis_page",SOURCE,"","/");Set_Cookie("tmp_regis_activity",b,"","/");"undefined"===typeof Storage||"undefined"===typeof b||null!==localStorage.getItem("lead_user_info")||"header"!=b&&"rating"!=b&&"garage"!=b||localStorage.setItem("login_purpose",b)}})}
function add_garage_after_login(){var b=Get_Cookie("loginUserId");1==window.isUserLoggedIn&&0<Get_Cookie("add_garage_without_login")&&($.ajax({type:"POST",url:TODBFILEPATH+"/forum_save_user_garage_2db.php",data:"&garageArr="+localStorage.getItem("add_garage_without_login")+"&loginUserId="+b,success:function(c){setGtmTracking(EVENTCATAGORY,"forum-track-garage-added-success");"undefined"!==typeof Storage&&sessionStorage.setItem("garage_button_done","done");"no-row"==$.trim(c)&&alert("Please select One car or bike.")}}),
forum_garage_no(),del_cookie("add_garage_without_login"),localStorage.setItem("add_garage_without_login",""),localStorage.removeItem("add_garage_without_login"),1==sessionStorage.getItem("add_garagae_modify_popup")?(sessionStorage.removeItem("add_garagae_modify_popup"),show_forum_add_garage_popup(1)):show_forum_add_review_popup(null,"rate",parseInt(Get_Cookie("add_garage_model"))))}
function forum_garage_no(){$("#ask_user_mobile").is(":visible")&&(setGtmTracking("one-tap-flow-"+EVENTCATAGORY,"click-on-no","garage-screen"),$(".usr-mob-popup").trigger("click"));localStorage.setItem("forum_garage_no","1");$("#forum_add_garage_widget").addClass("hidden")}$(".dv_shortlist_count").on("click",function(){shortlist(0)});var showLoginForShortlist=1,loginShownForShortlist=0;
function shortlist(b,c){"delete"!=c&&(c="");if(1==$("#wishlist_"+b).hasClass("a")){var d=0;$("#wishlist_"+b).removeClass("a")}else d=1,$("#wishlist_"+b).addClass("a");jQuery.post(SITEPATH+"/tpl/shortlist_tpl.php",{mId:b,action:c,eventCategory:eventCategory},function(e){if(0<e.length){var f=Get_Cookie("SHORTLIST"),g=0;null!=f&&(slArray=f.split(","),jQuery.each(slArray,function(n,l){$(".dv_shortlist_"+l).addClass("a");$(".shortlist_"+l).addClass("selected");$(".dv_shortlist_"+l).prop("title","shortlisted");
g=n+1}));767>=$(window).innerWidth()?(0<g&&$(".dv_shortlist_count").show(),$(".shortlist_count").html(g),$("#shortlistDivMobile").html(e),$(".sl-cls").on("click",function(){$(".short-dd").removeClass("o");$("body").removeClass("modal-open");$(".h-sl-lst").removeAttr("style")}),e=$(window).height()-114,$(".h-sl-lst").css({"max-height":e,"overflow-y":"auto"})):"delete"==c&&0<g?($("#wishlist-"+b).hide(),$(".shortlist_count").html(g)):$("#shortlistDivDesktop").html(e);$(".h-del").on("click",function(n){n.stopPropagation()});
1==g&&0<b&&0==window.isUserLoggedIn&&1==window.showLoginForShortlist&&window.slLength<g&&(window.showLoginForShortlist=0,checkForumLoginHeaderValue(),setGtmTracking(EVENTCATAGORY,"forum-track-login-popup-add-wishlist"),modifyLoginScreen("shortlist"),window.loginShownForShortlist=1);1==window.isUserLoggedIn&&0<b&&g>window.slLength&&setGtmTracking(EVENTCATAGORY,"shortlist-with-login");0<b&&(window.slLength=g);-1==b&&null!=f&&(slArray=f.split(","),0<slArray.length&&(b=slArray[0]));1==window.isUserLoggedIn&&
null!=f&&0<b&&0<d&&"short_list"==sessionStorage.getItem("garage_button_submit")&&postSubmitMessage({model_id:b})}})}var shortlistCount=0;function addWishlist(b,c){"undefined"!==typeof Storage&&sessionStorage.setItem("garage_button_submit","short_list");shortlist(b)}
function postSubmitMessage(b){var c="",d="";"undefined"!==typeof Storage&&null!=sessionStorage.getItem("garage_button_submit")&&(d=sessionStorage.getItem("garage_button_submit"));var e="";"object"===typeof b&&null!==b&&"model_id"in b&&(e=b.model_id);c+="&submittedBy="+d+"&model_id="+e;"function"===typeof tyScreenTracking&&tyScreenTracking(d);""!=d&&$.ajax({type:"POST",url:TODBFILEPATH+"/forum_add_garage_popup_2db.php",data:"&loginUserId="+window.loginUserId+"&forumAskOwnerEventCategory="+EVENT_CATEGORY+
c,success:function(f){$("#forum_submit_popup").modal("show");$("#confirm_thankyou").html(f);$("#confirm_thankyou").css("display","block");sessionStorage.removeItem("garage_button_submit")}})}function showLessContent(b,c,d,e){if(0<$("#"+b).length&&0<$("#"+c).length){var f=$("#"+b).height();768>$(window).innerWidth()&&(e=d);f>e?($("#"+b).css("height",e),$("#"+c).removeClass("hidden")):$("#"+b).css("height","auto")}}
function showFullContent(b,c){$("#"+b).css("height","auto");$("#"+c).addClass("hidden");1<=$(".inside_story").length&&($(".inside_story").removeAttr("style"),$(".outside_story").hide());1<=$(".story_appd").length&&($(".story_appd").show(),$("body").addClass("modal-open"),setGtmTracking("app-install-banner","article-page-banner-impressions","article-page-banner"))}
function openAskAQuestion(){$("#carBike-addVehicleWrap").removeClass("hidden");$("#carBike-thanksWrap").addClass("hidden");var b=$("input[name=modelChangeGarage-ask]:checked").next("span").text();b=$.trim(b);$("input[name=modelChangeGarage-ask]:checked").val()?($("#select_mm_by_popup").addClass("hidden"),$("#select_mm_by_page").html('You are asking a question to <span class="b">'+pageUserName+'</span> about <span class="b">'+b+"</span>"),$("#select_mm_by_page").removeClass("hidden")):($("#select_mm_by_popup").removeClass("hidden"),
$("#select_mm_by_page").addClass("hidden"),$("#select_mm_by_page").html(""));W=screen.width;767<W&&$("#carBike").modal("show");bikeCarw()}
function submit_ask_question(b){var c=Get_Cookie("loginUserId");void 0!=c&&null!=c&&""!=c&&(pageUserId=b=c);c=Get_Cookie("loginUserId");$("#parentid").val("23437");$("#tagged_user_list").val(b);if(""!=$("#modelChangeCar-ask").val())var d=$("#modelChangeCar-ask").val();else""!=$("#modelChangeBike-ask").val()&&(d=$("#modelChangeBike-ask").val());var e=$("textarea#question-ask").val(),f=Get_Cookie("ask_ques_owner");""!=f&&void 0!=f&&null!=f&&(e=localStorage.getItem("ques_owner"),d=localStorage.getItem("tag_model_id"),
localStorage.getItem("ques_nodeid"),Set_Cookie("ask_ques_owner",""),localStorage.setItem("ques_owner",""),localStorage.setItem("ques_nodeid",""),localStorage.setItem("tag_model_id",""));if(""==e||$.isNumeric(e)||5>e.length)$("#inline_error_ask").text("Your Question should contain at least 5 characters"),$("#inline_error_ask").removeClass("hidden"),ga("send","event","forum-profile-page","click","forum-profile-page-question_submit_error");else if(""!=$("#modelChangeCar-ask").val()&&""!=$("#modelChangeBike-ask").val()&&
void 0!=$("#modelChangeCar-ask").val()&&void 0!=$("#modelChangeBike-ask").val())$("#inline_error_ask").text("You can tag only one vehicle to the question at a time, so please unselect another one."),$("#inline_error_ask").removeClass("hidden"),ga("send","event","forum-profile-page","click","forum-profile-page-question_submit_error");else if(""==d||void 0==d)$("#inline_error_ask").text("Please tag a vehicle to submit your question."),$("#inline_error_ask").removeClass("hidden"),ga("send","event","forum-profile-page",
"click","forum-profile-page-question_submit_error");else if($("#inline_error_ask").addClass("hidden"),$("#inline_error_ask").text(""),b==c&&null!=c&&void 0!=b){var g=d;$.post(TODBFILEPATH+"/forum_get_model_wise_owner_list_2db.php",{tagged_model_id:g,pageUserId:pageUserId,loginUserId:c},function(l){var m="{tagged_user_list}"+l+"{/tagged_user_list}";$("#tagged_user_list").val(m);$("#forum_similar_model_id").val(g);$("#tag_owner_list").val(m);$("textarea#text_reply").val(m+e);$("#tagged_user_list").val(m);
l={loginUserId:c,taggedUserList:l,text:e,modelId:g,parentId:$("#parentid").val(),funcName:"submit_ask_question",nodeId:"",replyNodeId:""};insert_srnode_log(l);$("#carBike-addVehicleWrap").addClass("hidden");$("#carBike-thanksWrap").removeClass("hidden");$("#carBike").parents("#gspp_LoadedContent").css("height","auto").parents("#gspp_Content").css("height","auto");W=screen.width;767<W&&$("#carBike").modal("show")})}else if(0<c&&""!=c&&$.isNumeric(c)&&0<c.length&&0<$.trim(c).length&&0<parseInt(c)&&
"NaN"!=parseInt(c)){var n="{tagged_user_list}"+n+"{/tagged_user_list}";$("textarea#text_reply").val(n+e);$("#tagged_user_list").val(n);$("#forum_similar_model_id").val(g);$("#tag_owner_list").val(n);b={loginUserId:c,taggedUserList:b,text:e,modelId:$("#forum_similar_model_id").val(),parentId:$("#parentid").val(),funcName:"submit_ask_question",nodeId:"",replyNodeId:""};insert_srnode_log(b);$("#carBike-addVehicleWrap").addClass("hidden");$("#carBike-thanksWrap").removeClass("hidden");$("#carBike").parents("#gspp_LoadedContent").css("height",
"auto").parents("#gspp_Content").css("height","auto")}else if(""==f||void 0==f||null==f)Set_Cookie("model_ques_owner","1","","/"),Set_Cookie("ask_ques_owner","yes"),"undefined"!==typeof Storage&&(localStorage.setItem("ques_owner",e),localStorage.setItem("ques_nodeid","23437"),$("#tag_owner_list").val(b),localStorage.setItem("tag_owner_list",b),localStorage.setItem("tag_model_id",d),$(".heading").html("Login to ask a question"),W=screen.width,767<W?$("#carBike").modal("hide"):1<=$("#gsp_popup #gspp_Close").length&&
$("#gsp_popup #gspp_Close").trigger("click"),setTimeout(function(){$(".question").removeClass("hidden");$(".default").addClass("hidden")},200),modifyLoginScreen("question"))}
function bikeCarw(){$("#carBikeTab li:first-child").trigger("click");var b=1,c=window.location.href;c.split("/");var d="car";if(-1!=c.indexOf("bike-comparison")||-1!=c.indexOf("newbikes"))$("#carBikeTab li:nth-child(2)").trigger("click"),b=2,d="bike";if("/qna_detail.php"==pageSource){c=$("#makeId").val();var e=$("#modelId").val();$("#"+d+"-make-id").val(c).change();setTimeout(function(){$("."+d+"-model-ask").val(e)},1E3)}setTimeout(function(){$("#carBikeTab").gsp_tab({content_wrap:"#carBike-container",
defaultOpen:b,responsive:!1,layout:"auto"},2E3)})}$(document).on("click","#carBikeTab li",function(){"/qna_detail.php"==pageSource&&("Cars"==$(this).text()?($("#bike-make-id option:selected").prop("selected",!1),$(".bike-model-ask option:selected").prop("selected",!1)):($("#car-make-id option:selected").prop("selected",!1),$(".car-model-ask option:selected").prop("selected",!1)))});
function askQuestionWidget(){var b=window.location.href;if(-1!=b.indexOf("newcars")||-1!=b.indexOf("newbikes"))newMakeNameTemp=b.split("/")[4].split("?");$.ajax({type:"GET",data:"&forumAskQuestionEventCategory="+EVENTCATAGORY+"&vehicleType="+vehicleType+"&makeName="+page_make_name+"&source="+pageSource,url:SITEPATH+"/tpl/forum_ask_question_widget_tpl.php",success:function(c){$("#forum_ask_question_widget").append(c).show()}})}
function showHideCarBike(){$("body").addClass("m-hide");setTimeout(function(){$("#gspp_Close,#gspp_Overlay").on("click",function(){$("body").removeClass("m-hide")});$("#carBike textarea").focus()},1E3);$("#carBike-addVehicleWrap").removeClass("hidden");$("#carBike-thanksWrap").addClass("hidden");return!1}$("#review").keyup(function(){$("#char_count").text($(this).val().length)});
function unableSubmitButton(){var b=$("#review").val().trim().split(" ");$("#char_count").text($.trim(b).length);100<=$.trim(b).length?($("#submit_review").addClass("active"),$("#submit_review").show(),$("#review_disabled").hide(),$("#char_count").hide(),$("#char_count_dv").hide()):($("#submit_review").hide(),$("#review_disabled").show(),$("#char_count").show(),$("#char_count_dv").show(),$("#submit_review").removeClass("active"));b=$("#review").val().trim().split(" ");$("#inline_error_wr_rvw").hide();
for(var c=0;c<b.length;c++)30<=b[c].length&&($("#inline_error_wr_rvw").text("Please rectify the charater").show(),$("#submit_review").hide(),$("#review_disabled").show())}
function submitWrittenReview(){$("#submit_review").addClass("active");var b=Get_Cookie("loginUserId"),c=Get_Cookie("user_review"),d=$("#review").val();$("#wr_rw_modelId").val();if(""==$.trim(d)&&(""==$.trim(c)||void 0==c||null==c))return $("#submit_review").removeClass("active"),!1;if(30>$.trim(d).length)return!1;void 0!=b&&null!=b&&""!=b?(""==d&&($("#review").val(c),Set_Cookie("user_review","")),$.ajax({type:"POST",url:TODBFILEPATH+"/submit_user_written_review_2db.php",data:$("#gm_written_review_frm").serialize(),
success:function(){$("#addGarageCon").hide();$("#write_review_modal").modal("hide");setTimeout(function(){show_forum_add_garage_popup("1")},2E3)}})):(Set_Cookie("user_review",d),modifyLoginScreen("default"))}
function footerAd(){var b=["priceoffer.jpg","latestnews.jpg","datasave.jpg"];$('<img class="pull-left" width="300" height="250" alt="Download the ZigWheels APP" src="" data-gsll-src="https://images.zigcdn.com/images/revamp/footer_native/'+b[Math.floor(Math.random()*b.length)]+'" />').appendTo("#footerAdd")}
function sliderReadMore(){0<$("#qna").length&&readMoreText();$(".revw-sl .cnt-w").each(function(){133<$(this).find("p").height()?$(this).addClass("rm-txt"):$(this).find("p").css({cursor:"grab"})});1==$(".revw-sl li").length&&$(".revw-sl li").css("margin-left","15px");$(document).on("click",".rm-clk",function(){var b=$(this).height()+5;$(this).find("p").height()>b&&(b=$(this).find("p").text(),$(this).parents("li").find("div.rm-c").show(),$(this).parents("li").find("div.rm-c").find("p").text(b))});
$(document).on("click",".rm-c .h-cnt",function(){$(this).parent(".rm-c").hide();$(this).parent(".rm-c").find("p").text("")})}
function readMoreText(){$(".read-more").not(".rm").each(function(){var b=$(this).attr("data-height");0<b&&($(this).children(":first-child").outerHeight()>b?($(this).css("height",b),$(this).append('<span class="fnt-14 b rmec jr-m c-p" style=" position: absolute; right: 0; bottom: 0; padding: 0 15px 0 5px; background-color: #fff;"><span style="color:#91969c;">..</span><span style="color:#28333f;text-decoration: underline;">Read More</span></span>'),$(this).addClass("rm")):$(this).css("height",""))})}
$(document).on("click",".read-more",function(b){if("undefined"!==typeof $(this).data("quesid")&&"undefined"!==typeof $(this).data("quesmodelid")){b=$(this).data("quesid");var c=$(this).data("quesmodelid");jQuery.post(TODBFILEPATH+"/update_viewcount_2db.php",{id:b,modelid:c,type:"question"})}1==$(this).hasClass("a")?(b=$(this).attr("data-height"),$(this).removeAttr("style"),$(this).css({height:b,overflow:"hidden"}),$(this).removeClass("a"),$(this).children("span:last-child.rmec").addClass("jr-m c-p").removeClass("jr-l").html('<span style="color:#91969c;">..</span><span style="color:#28333f;text-decoration: underline;">Read More</span>')):
0==$(this).children("span:last-child.rmec").is(":visible")?($(this).attr("data-height"),$(this).css("min-height",""),$(this).children("span:last-child.rmec").show()):(b=$(this).children(":first-child").outerHeight(),$(this).outerHeight(),$(this).css("min-height",b),$(this).children("span:last-child.rmec").addClass("jr-l c-p").removeClass("jr-m").html('<span style="color:#91969c;">..</span><span style="color:#28333f;text-decoration: underline;">Read Less</span>'),$(this).addClass("a"))});
var gaFilled="",gasend_array=[];function searchVar(){var b;var c=document.getElementById("varSr").value.toUpperCase();var d=document.getElementById("varSrRes").getElementsByTagName("li");for(b=0;b<d.length;b++){a=d[b].getElementsByTagName("span")[0];var e=a.textContent||a.innerText;-1<e.toUpperCase().indexOf(c)?d[b].style.display="":d[b].style.display="none"}}
function bcWth(){var b=0;$(".breadcrumb").parent("div").addClass("mmv-scrl");$(".breadcrumb > li").each(function(){b+=$(this).width()+4});$(".breadcrumb").css("width",b)}
function topSlider(){function b(){0<$(".gscr_active .tps-vww").length?($(".gscr_active .tvid").get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),$(".tps-vw").removeClass("tps-vww")):0<$(".gscr_active .tps-vw").length&&($(".gscr_active .tps-vw").addClass("tps-vww"),$(".gscr_active .tvid").get(0).contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"))}0<$(".nm-topSlider").length&&$(".nm-topSlider").gsp_carousel({item:1,controls:!0,enableDrag:!0,
slideMove:1,loop:!1,pager:!0,lazyLoad:!0,onBeforeNextSlide:function(c,d){dataLayer.push({event:"slider",virtual_action:"gallery_slide"});setGtmTracking("eventCategory","gallery_scroll_next","click",0,0)},onBeforePrevSlide:function(c,d){b();dataLayer.push({event:"slider",virtual_action:"gallery_slide"});setGtmTracking("eventCategory","gallery_scroll_prv","click",0,0)},onBeforeSlide:function(c,d){b();0<$(".gscr_active .tps-vww").length&&($(".gscr_active .tvid").get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',
"*"),$(".tps-vw").removeClass("tps-vww"))},onAfterSlide:function(c,d){b();0<$(".gscr_active .tps-vww").length&&$(".tps-vw").removeClass("tps-vww")}});$(document).on("click",".gscr_active .tps-vw",function(){b()})}function researchMore(){$(document).on("click","#quickLinksMore",function(){$("header > .container").addClass("active");$("header .h-srch").focus();$(".commonsearch_ul").addClass("active");767>$(window).innerWidth()&&$(".r-srch").hide()})}
$(function(){topSlider();reviewCol();hmcom();researchMore();zwMenu();addvertise();HeaderSticky();mobileSearch();mNav();n_userLogin();rhsStk();n_chk();m_shrtlist();shortListScroll();headerTab();767>=$(window).innerWidth()?(mobileNav(),newSearchDevice(),bcWth()):desktopNav();var b=0;$(".rw-tabW .srt-ul > li").each(function(){b+=$(this).outerWidth()+15});$(".rw-tabW .srt-ul").css("width",b);sliderReadMore();readMoreText();customSelect();customSelectMake();$("#zw-mp-reviewTab .latest_popular_tab").on("click",
function(){$("#zw-mp-reviewTab .latest_popular_tab").removeClass("active");$(this).addClass("active")});$("#zw-mp-reviewTab .tab-concept").on("click",function(){$(".upcoming-news").addClass("displayNone");$(".concept-news").removeClass("displayNone");$("#zw-mp-reviewTab .tab-upcoming").removeClass("active");$(this).addClass("active")});$("#zw-mp-reviewTab .tab-upcoming").on("click",function(){$(".concept-news").addClass("displayNone");$(".upcoming-news").removeClass("displayNone");$("#zw-mp-reviewTab .tab-concept").removeClass("active");
$(this).addClass("active")});var c=Get_Cookie("user_review");"open_written_review"!=window.location.search.substring(1).split("&")[0].split("=")[0]||""!=c&&void 0!=c&&null!=c||setTimeout(function(){$(".wr_review").trigger("click")},1E3);0<$(".c-s").length&&$(".c-s").wrap("<span class='s-wr'></span>");c=Get_Cookie("user_review");""!=c&&void 0!=c&&null!=c&&submitWrittenReview();c=Get_Cookie("loginUserId");var d=localStorage.getItem("insertData"),e=localStorage.getItem("reasonNodeid");d=JSON.parse(d);
null!=c&&null!=d&&$.ajax({type:"POST",url:SITEPATH+"/tpl/inappropriate_ans_tpl.php",data:{reportIds:d,loginUserId:c,reportflag:2,reasonNodeid:e}}).done(function(p){"1"==p&&(localStorage.removeItem("reasonFlag"),localStorage.removeItem("insertData"),localStorage.removeItem("reasonNodeid"))});$("meta[property='og:title']").attr("content");$.ajaxSetup({cache:!0});c=$(".pageZWJS").map(function(){if($(this).text())return $(this).text()}).get().join();""!=c&&getScript(JSFILEPATH+"/js_bundler_new.html?type=javascript&files="+
c+"&version="+JS_VERSION);$(".pageZWForumJS").each(function(){$(this).text()&&$.getScript($(this).text())});"/web_form.php"!=pageSource&&idleCb(function(){getScript(JSFILEPATH+"/js_bundler_new.html?type=javascript&files=rvmp_one_tap_login,rvmp_ad_commonscript&version="+JS_VERSION)});idleCb(function(){var p=window;p.dataLayer=p.dataLayer||[];p.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});p=document.getElementsByTagName("script")[0];var t=document.createElement("script");t.defer=
!0;t.src="//www.googletagmanager.com/gtm.js?id=GTM-MCTS4Z";p.parentNode.insertBefore(t,p)});$(".lazy_image").show().lazyload();$(".lazy_image_rhs").show().lazyload();$("#extension-close-btn").on("click",function(){$("#extension-bar").addClass("closeExtImp");$("#extension-bar").fadeOut();sessionStorage.closeExtImp="1"});"undefined"!=typeof _connecto&&_connecto.push(["onload",function(){Set_Cookie("connecto_identity",_connecto.getAnonymousId())}]);$("#price_mmv_nav_link").on("click",function(){var p=
Get_Cookie("selected_city"),t=Get_Cookie("geo_city");if(null!==p&&null!==t&&(p=decodeURI(p),t=decodeURI(t),p==t))return p=p.replace(/\s/g,"-").replace(/_/g,"-").toLowerCase(),p=$(this).attr("href").replace(/on-road-Price-([^/-]+)$/i,"on-road-price-"+p),$(this).attr("href",p),!0});$(".n-rd").each(function(){$(this).wrap('<span class="rd-c chk-rd-s"></span>');setTimeout(function(){1==$(this).is(":checked")&&($(this).parent(".rd-c").addClass("a"),$(this).parents("label").addClass("cr-w"))},1E3)});0<
$("#forum_ask_question_widget").length&&askQuestionWidget();c=Get_Cookie("ask_ques_owner");localStorage.getItem("tag_owner_list");""!=c&&void 0!=c&&null!=c&&setTimeout(function(){submit_ask_question()},500);if(1<=$("[data-sprite]").length)$(window).on("scroll",function(){$("[data-sprite]").each(function(){var p=$(window).scrollTop(),t=p+$(window).height(),y=$(this).offset().top;!0===(y+$(this).height()-200<=t&&y>=p)&&(p=$(this).attr("data-sprite"),$(this).removeAttr("data-sprite"),$(this).addClass(p+
" "))})});footerAd();if(void 0!=document.getElementById("tvc_close")&&0==$(".mob-stick-btm").length){c=document.getElementById("tvc_close");d=document.getElementById("tvc_ok");e=document.getElementById("tvc_nothanks");var f=document.getElementById("tvc_cookie"),g=Get_Cookie("tvcCookieConsent"),n=document.getElementById("privacyPolicy");setTimeout(function(){f.classList.add("a")},3E3);f.style.display="1"==g?"none":"block";window.dataLayer=window.dataLayer||[];c.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",
1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",eventLabel:"Consent Close",consent:"False"})});e.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",eventLabel:"No Thanks",consent:"False"})});d.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",eventLabel:"maincta_click",consent:"True"})});n.addEventListener("click",
function(){dataLayer.push({event:"tvcCookieConsent",eventLabel:"Privacy Policy",consent:"False"})})}if(767<$(window).innerWidth()&&0<$("#asyncFooterHtml").length)if("IntersectionObserver"in window){var l=new IntersectionObserver(function(p){0>=p[0].intersectionRatio||(l.unobserve(document.querySelector("#asyncFooterHtml")),$.get(SITEPATH+"/tpl/zw_footer_async_tpl.php",{},function(t){$("#asyncFooterHtml").html(t)}))});l.observe(document.querySelector("#asyncFooterHtml"))}else setTimeout(function(){$.get(SITEPATH+
"/tpl/zw_footer_async_tpl.php",{},function(p){$("#asyncFooterHtml").html(p)})},1E4);-1!=location.href.indexOf("#city_select")&&($('span[href="#city_select"].offerCity').click(),c=window.location.href.replace(/#.*$/,""),window.history.replaceState("",document.title,c));var m=new URLSearchParams(window.location.search);2==m.get("is_amp_garage")&&(localStorage.setItem("forum_garage_no",1),setTimeout(function(){0<$("#addGarageCon").length&&$.post(SITEPATH+"/tpl/forum_add_garage_widget_tpl.php",{source:SOURCE,
eventCategory:EVENT_CATEGORY},function(p){$("#addGarageCon").html(p)})},2E3),setTimeout(function(){if(0<$("#carGarage").length){var p=$("#addGarageCon").offset().top-100;window.scrollTo(0,p);$("#carGarage").trigger("click")}},5E3));3==m.get("is_amp_garage")&&(localStorage.setItem("forum_garage_no",1),setTimeout(function(){0<$("#addGarageCon").length&&$.post(SITEPATH+"/tpl/forum_add_garage_widget_tpl.php",{source:SOURCE,eventCategory:EVENT_CATEGORY},function(p){$("#addGarageCon").html(p)})},2E3),setTimeout(function(){if(0<
$("#bikeGarage").length){var p=$("#addGarageCon").offset().top-100;window.scrollTo(0,p);$("#bikeGarage").trigger("click")}},5E3));if(m.get("relatedQna")){var x=m.get("relatedQna");localStorage.setItem("related_qna_amp",1);setTimeout(function(){$("#related_"+x).trigger("click")},2E3);c=$("#related_"+x).offset().top;$(window).scrollTop(c-124)}if(m.get("tagCats")){var v=m.get("tagCats");setTimeout(function(){if("a"==v){$("."+v).trigger("click");var p=$(".-"+v).offset().top-100}else m.get("mCl")&&$(".srt-mr").trigger("click"),
$(".cat-"+v).trigger("click"),p=$(".cat-"+v).offset().top-100;window.scrollTo(0,p)},2E3)}});if("localStorage"in window&&null!==window.localStorage){var latestVehicleType,latestCarOrBike,latestBodyType,latestIsElectric,latestModelId,preferedModelIds=[],recommendedSearches,logData=null;null!=window.localStorage.getItem("log")&&(logData=JSON.parse(window.localStorage.getItem("log")));"undefined"!==typeof modelInfo&&modelInfo&&addLog();null!=logData&&setPreferences()}
function addLog(){if(null==logData)window.localStorage.setItem("log",JSON.stringify(modelInfo));else{var b=Object.keys(logData).length;5<=b&&(b=Object.keys(logData)[0],delete logData[b]);b=Object.keys(modelInfo)[0];var c=modelInfo[b].model_id;for(lt in logData)if(logData[lt].model_id==c){delete logData[lt];break}logData[b]=modelInfo[b];window.localStorage.setItem("log",JSON.stringify(logData))}c="";if(null!=logData){b=Object.keys(logData).length;for(var d=1;d<=b;d++){var e=Object.keys(logData)[b-
d];0<parseInt(logData[e].model_id)&&(c+=logData[e].model_id+"#")}}""!=c&&Set_Cookie("recentlyVisited",c)}
function setPreferences(){var b=Object.keys(logData).length,c=Object.keys(logData)[b-1];c=logData[c];latestVehicleType=c.vehicle_type;latestCarOrBike="2Wheeler"==latestVehicleType?"bike":"car";recommendedSearches=c.recommended_searches;latestBodyType=c.body_type.split(",",1)[0];latestIsElectric=c.is_electric;latestModelId=c.model_id;for(var d=1;d<=b&&2>preferedModelIds.length;d++)c=Object.keys(logData)[b-d],logData[c].vehicle_type==latestVehicleType&&preferedModelIds.push(logData[c].model_id);if($("#quickLinksDiv").hasClass("hidden")){b=
Object.keys(logData).length;var e=0;if(0<b)for(d=1;3>=d&&d<=b;d++)c=Object.keys(logData)[b-d],""!=logData[c].model_name&&($("#quickLinksDiv ul").append($('<li data-track-component="global-search-box" data-track-label="quick-search" >').append($("<a>").attr("href",logData[c].model_path).append(logData[c].model_name.substring(0,11)))),e=1);$("#quickLinksDiv > div").append('<div class="pull-left qck-srchRyt"><ul><li id="quickLinksMore" class="c-p more" data-track-component="global-search-box" data-track-label="quick-search-more"></li></ul></div>');
$("#quickLinksMore").append('<span class="visible-xs"><input type="text" placeholder="Search" /><span class="h-s-v1 visible-xs h-srh-i abs i-b c-p"></span></span><span class="visible-lg">more</span>');1==e&&(767>screen.width&&$("header").addClass("qlc"),$("#quickLinksDiv").removeClass("hidden"))}}
function showRecommendedNews(b){"undefined"!==typeof latestModelId&&latestModelId&&0==$("#recommendedNews[data-mid="+latestModelId+"]").length?$.get(SITEPATH+"/html/models/"+latestModelId+"/recommended_news_slider.html",{},function(c){$(".recommendedNews").append(c);setTimeout(function(){zwSlider()},100);$("#news-tabs li").removeClass("gsc-ta-active");$("#news-tabs li:first").css("display","block");$("#news-tabs li:first").addClass("gsc-ta-active");$("#recommendedNews").css("display","block");$(".recommendedNews").css("display",
"block")}):($("#news-tabs li:eq(1)").addClass("gsc-ta-active"),$("#news-sliders div:eq(1)").css("display","block"))}function showRecommendedComparisons(b){"undefined"!==typeof b&&b&&$.get(SITEPATH+"/html/models/"+b+"/comparisons_slider.html",{},function(c){$("#"+latestCarOrBike+"-comparison-sliders > [data-comparison-slider="+b+"]").html(c);setTimeout(function(){zwSliderCmp()},100)})}
function showRecommendedModels(b){"undefined"!==typeof preferedModelIds&&preferedModelIds&&0<preferedModelIds.length&&0==latestIsElectric&&$.get(SITEPATH+"/tpl/best_slider_tpl.php",{modelId:preferedModelIds,recommendedSearches:recommendedSearches,source:"personalization",vehicleType:latestVehicleType},function(c){$(c).insertAfter($("#"+b));setTimeout(function(){zwSliderMedium();fliterC()},100)})}
function showRecommendedQna(){$.get(SITEPATH+"/tpl/qna_widget_tpl.php",{modelId:preferedModelIds,source:"personalization",vehicleType:latestVehicleType,sortBy:"latest"},function(b){$("#qnaWidget").html(b);setTimeout(function(){redrawQnaWidget()},100)})}function showRecommendedUserReviews(){$.get(SITEPATH+"/tpl/user_review_slider_tpl.php",{modelId:preferedModelIds,source:"personalization"},function(b){b&&($("#userReview").replaceWith(b),setTimeout(function(){zwSlider()},100))})}
function makeListFilter(b){$(b).hasClass("clearAll")?($(b).closest("ul").find("a").removeClass("active"),$(b).addClass("active"),$("#carModels li").removeClass("hidden").show(),$("#addGarageCon").removeClass("hidden")):($("#addGarageCon").addClass("hidden"),$(b).closest("ul").find("a").removeClass("active"),$(b).addClass("active"),b=$(b).data("filter"),$(".hiddenModels").removeClass("hidden"),$(".moreModels").hide(),$("#carModels li").not("."+b).hide(),$("."+b).show(),$(".filter-tab").show())}
function isUserInfoScrVisible(){if($("#ask_user_mobile").is(":visible")){if("undefined"===typeof cat_lbl||""==cat_lbl)cat_lbl="one-tap-flow";1!=selectModelForReview&&setGtmTracking(cat_lbl,"click-on-yes","garage-screen");$(".usr-mob-popup").trigger("click")}}function isPopupVisible(){return 0<$(".ot_bx").length||"undefined"!==typeof Storage&&(null!=localStorage.getItem("login_purpose")||null!=localStorage.getItem("lead_user_info")||null!=localStorage.getItem("user_info_instance"))?!0:!1}
if(0<$("#mNav a[data-track-label=comparisons-tab]").length&&"model-comparison"!=SOURCE)if(767<$(window).innerWidth())$("#mNav a[data-track-label=comparisons-tab]").on({mouseenter:function(b){b.preventDefault();loadComparisons()}});else $("#mNav a[data-track-label=comparisons-tab],.compare-strip[data-track-label=comparisons-tab]").on("click",function(b){b.preventDefault();loadComparisons()}),$(document).on("click",".comClose,.comShadow",function(){$(".comShadow").hide();$(".comparisonsHover").hide();
$("body").removeClass("modal-open")});
function loadComparisons(){0==$(".comparisonsHover").length?($("<style>").load(CSSFILEPATH+"/rvmp_comparison_slider.css?version="+CSS_VERSION).appendTo("head"),$.get(SITEPATH+"/html/models/"+MODEL_ID+"/comparisons_slider.html",function(b){767<$(window).innerWidth()?($(b).insertAfter("#mNav a[data-track-label=comparisons-tab]"),$("#mNav a[data-track-label=comparisons-tab]").next("div#comparisons").addClass("comparisonsHover"),$(".comparisonsHover").wrap('<ul class="mmvSlide"><li></li></ul>'),b=-$("#mNav a[data-track-label=comparisons-tab]").offset().left,
$(".comparisonsHover").css("transform","translateX("+b+"px)")):($(b).insertAfter("footer"),$("body").append('<div class="comShadow"></div>'),$("footer").next("div#comparisons").addClass("comparisonsHover"),$("body").addClass("modal-open"),$("#comparisons.comparisonsHover #zw-cmnSilder").before('<div class="comClose clr">&times;</div>'));$("#comparisons.comparisonsHover").width(screen.width);setTimeout(function(){zwSliderCmp()},100)})):($(".comparisonsHover").show(),767>$(window).innerWidth()&&$(".comShadow").show())}
function setReviewImpression(){null==localStorage.getItem("review_widget_impression")&&setGtmTracking(EVENTCATAGORY,"review-widget-impression","onmouseover");localStorage.setItem("review_widget_impression",1)}function unsetReviewImpression(){localStorage.removeItem("review_widget_impression")};

var sliderItems=videoSliderItems=3;
function dymTab(){var c=1,b=1;$("ul[data-tClass]").each(function(){$(this).addClass("tajax_"+c++)});$("div[data-tWrap]").each(function(){$(this).addClass("cajax_"+b++)});$("ul[data-tClass]").each(function(){var a=$(this).attr("class").split("_");$(".tajax_"+a[1]).gsp_tab({content_wrap:".cajax_"+a[1],layout:"auto",responsive:!1,breakpoint:767});767>$(window).innerWidth()?(1==$(".cajax_"+a[1]+" > div").hasClass("md-dtab")?setTimeout(function(){$(".cajax_"+a[1]+" > div").removeClass("md-dtab");$(".cajax_"+
a[1]+" > div").hide();$(".cajax_"+a[1]+" > div:first").show()},1E3):setTimeout(function(){$(".cajax_"+a[1]+" > div").hide();$(".cajax_"+a[1]+" > div:first").show()},1E3),$(".tajax_"+a[1]).parent("div.gsc_ta_scroll").width($(window).width())):1==$(".cajax_"+a[1]+" > div").hasClass("dd-dtab")?setTimeout(function(){$(".cajax_"+a[1]+" > div").removeClass("md-dtab");$(".cajax_"+a[1]+" > div").hide();$(".cajax_"+a[1]+" > div:first").show()},1E3):setTimeout(function(){$(".cajax_"+a[1]+" > div").hide();$(".cajax_"+
a[1]+" > div:first").show()},1E3);1==$(".tajax_"+a[1]+" > li").hasClass(".gsc-ta-active")&&console.log($(".tajax_"+a[1]+" > li.gsc-ta-active").index())})}
function offWid(){0<$(".of-w,.finOpt").length&&$(".of-w,.finOpt").gsp_carousel({item:2,showUpcoming:!0,upcomingPercent:45,pager:!1,slideMargin:10,enableDrag:!0,controls:!0,slideMove:1,adaptiveHeight:!0,responsive:[{breakpoint:768,settings:{item:1,slideMove:1,controls:!1,showUpcoming:!0,upcomingPercent:15}}],onSliderLoad:function(){var c=-1;$(".of-w li > div").each(function(){var b=$(this).outerHeight();c=b>c?b:c});$(".of-w li > div").height(c+5)},onBeforeNextSlide:function(c,b){setGtmTracking("eventCategory",
"offerwidget-next","click",0,0)},onBeforePrevSlide:function(c,b){setGtmTracking("eventCategory","offerwidget-prev","click",0,0)}});1==$(".of-w li").length&&($(".of-w li").width("347"),$(".of-w li").addClass("of-s"))}
function zwSlider(){var c=0==$("#rhsDiv").length?4:3;$(".zwSlider, #similarSlider, .similarCarBikeSlider_class").gsp_carousel({item:c,showUpcoming:!1,pager:!1,slideMargin:18,enableDrag:!0,controls:!0,slideMove:1,onSliderLoad:function(){setTimeout(function(){$(window).trigger("resize")},500)},responsive:[{breakpoint:1001,settings:{item:3,slideMove:1}},{breakpoint:768,settings:{item:2,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:40}},{breakpoint:481,settings:{item:1,slideMove:1,
controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:40}}],onSliderLoad:function(){$(".gscr_lSPrev").hide()}})}
function zwSliderSmall(){$(".zwSliderSmall").gsp_carousel({item:6,showUpcoming:!1,pager:!1,slideMargin:18,enableDrag:!0,controls:!0,slideMove:1,onSliderLoad:function(){setTimeout(function(){$(window).trigger("resize")},500)},responsive:[{breakpoint:768,settings:{item:3,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:60}},{breakpoint:481,settings:{item:2,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:60}}],onSliderLoad:function(){$(".gscr_lSPrev").hide()}})}
function zwSliderMedium(){$(".zwSliderMedium").gsp_carousel({item:4,pager:!1,slideMargin:10,enableDrag:!0,slideMove:1,showUpcoming:!0,upcomingPercent:35,onSliderLoad:function(){setTimeout(function(){$(window).trigger("resize")},500)},responsive:[{breakpoint:1280,settings:{item:6,slideMove:1,enableDrag:!0,upcomingPercent:50,slideMargin:10}},{breakpoint:1E3,settings:{item:5,slideMove:1,enableDrag:!0,upcomingPercent:50,slideMargin:10}},{breakpoint:767,settings:{item:4,showUpcoming:!0,upcomingPercent:50,
controls:!1,enableDrag:!0,slideMove:1,slideMargin:10}},{breakpoint:600,settings:{item:2,showUpcoming:!0,upcomingPercent:50,controls:!1,enableDrag:!0,slideMove:1,slideMargin:10}}]});$("#recentlyViewedSlider").css("height","auto")}
function zwSliderCmp(){0<$(".comCarousel").length&&$(".comCarousel").gsp_carousel({item:3,autoWidth:!0,showUpcoming:!1,upcomingPercent:20,controls:!0,enableDrag:!0,slideMove:1,adaptiveHeight:!0,onSliderLoad:function(){$(".gscr_lSPrev").hide()},pager:!1,slideMargin:18,responsive:[{breakpoint:1E3,settings:{item:2,slideMove:1,controls:!0,enableDrag:!0,slideMargin:25}},{breakpoint:767,settings:{item:1,showUpcoming:!0,slideMove:1,slideMargin:10,controls:!1,upcomingPercent:20}}]})}
$(function(){768>=screen.width&&$("#similarSlider").each(function(){1==$(this).find("li").length&&$(this).find("li").css({width:"calc(100% - 30px)","margin-left":"15px"})});$("#similarSlider, .similarCarBikeSlider_class").css("height","auto");$(".sl-con").css("margin-right","13px");dymTab();zwSlider();zwSliderSmall();zwSliderMedium();zwSliderCmp();offWid();1<=$("#dealerShowrooms").length&&setTimeout(function(){$("#dealerShowrooms ul").css("overflow","");var b=-1;$("#dealerShowrooms .zwSlider > li").each(function(){var a=
$(this).height();b=a>b?a:b});$("#dealerShowrooms .zwSlider > li").height(b)},400);if(0<$("#videoSlider").length){var c=0==$("#rhsDiv").length?3:2;$("#videoSlider").gsp_carousel({item:c,showUpcoming:!0,upcomingPercent:20,pager:!1,slideMargin:18,enableDrag:!0,controls:!0,slideMove:1,responsive:[{breakpoint:768,settings:{item:1,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:20}}],onSliderLoad:function(){}});(function(){1==$("#videoSlider li").length&&767<$(window).innerWidth()&&
$("#videoSlider li").width(382);$(".cont-sl li").each(function(){var b=1==$(".techVideo").length?$(this).index()-1:$(this).index();$(this).find(".v-over").attr("data-index",b)});$(document).on("click",".v-over",function(){var b=$(this).attr("data-index");$(".mvid")[b].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");0<$(".v-overH").length&&(b=$(".v-overH").attr("data-index"),$(".mvid")[b].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',
"*"),$(".v-overH").removeClass("v-overH"));$(this).addClass("v-overH")})})()}0<$("#usefulSlider").length&&($("#usefulSlider").gsp_carousel({item:4,showUpcoming:!1,pager:!1,slideMargin:5,enableDrag:!0,controls:!0,slideMove:1,onSliderLoad:function(){setTimeout(function(){$(window).trigger("resize")},500)},responsive:[{breakpoint:1001,settings:{item:4,slideMove:1}},{breakpoint:768,settings:{item:3,slideMove:1,controls:!1,showUpcoming:!0,upcomingPercent:35}},{breakpoint:481,settings:{item:2,slideMove:1,
controls:!1,showUpcoming:!0,upcomingPercent:50}}]}),$("#usefulSlider").css("height","auto"))});

$(function(){var a=(new Date).toLocaleDateString().replace(/\//g,"")+(new Date).getHours()+"_"+JS_VERSION+"_"+CSS_VERSION;if("md_b"!=page_centralDCB_flag){if("zigwheels.com"==window.location.host||"www.zigwheels.com"==window.location.host)var b="https://static.cardekho.com";else{b="https://testingpwa8.cardekho.com";var c=(new URLSearchParams(window.location.search)).get("centraljs");null!=c&&(b="https://"+c+".cardekho.com")}c=b+"/pwa/js/central-lf/bundle.js";b+="/pwa/css/central-lf.min.css"}else b=
"zigwheels.com"==window.location.host||"www.zigwheels.com"==window.location.host?"https://bd.gaadicdn.com":"https://testing5.bikedekho.com",c=b+"/pwa/js/central-lf/bundle.js",b+="/pwa/css/central-lf.min.css";(function(d){var e=d+"?_v="+a;d=document.createElement("link");d.href=e;d.rel="preload";d.as="style";document.head.appendChild(d);raf?raf(function(){window.setTimeout(function(){loadCSS(e,"all")},0)}):window.addEventListener?window.addEventListener("load",function(){loadCSS(e,"all")}):window.onload=
function(){loadCSS(e,"all")}})(b);getScript(c+"?_v="+a,function(){loadCrossSellWidget();autoPopupCentralDCBForm();"function"==typeof callWebFormCentralLead&&setTimeout(function(){callWebFormCentralLead()},200)});b=new URLSearchParams(window.location.search);null==b.get("L4Sp6vyZ3X10s")||"Media"!=b.get("L4Sp6vyZ3X10s")&&"MediaAddonLead"!=b.get("L4Sp6vyZ3X10s")||(c=b.get("utm_source")+"#"+b.get("utm_medium")+"#"+b.get("utm_campaign"),b={m_name:b.get("m_name"),L4Sp6vyZ3X10s:b.get("L4Sp6vyZ3X10s"),user_source:b.get("utm_source"),
firstUTMParamter:c,lastUTMParamter:c},sessionStorage.setItem("UtmAdCookie",JSON.stringify(b)))});var cta_md="_WEB_";768>screen.width&&(cta_md="_WAP_");var cta_source=EVENTCATAGORY.replace(/^(car-|bike-)/gi,function(a){return""});1==cta_source.startsWith("model-")&&(cta_source=cta_source.replace("model-",""));var cta_source_f=cta_source,cta_source_f_l=cta_source_f=1==cta_source.startsWith("APP_")?cta_source.replace("APP_","_APP_"):cta_md+cta_source_f;
$("body").on("click","[data-cta-type]",function(){var a=$(this),b=a.data("cta-type");a.data("cta-makeid");a.data("cta-makeslugcd");var c=a.data("cta-makeidcd"),d=a.data("cta-makename"),e=a.data("cta-makenamecd");a.data("cta-modelid");var f=a.data("cta-modelslugcd"),g=a.data("cta-modelidcd"),h=a.data("cta-modelname"),q=a.data("cta-bodytype"),k=a.data("cta-price");a.data("cta-variantid");a.data("cta-variantslugcd");var l=a.data("cta-variantidcd"),m=a.data("cta-variantname"),r=a.data("cta-vtype"),n=
a.data("cta-location"),u=a.data("cta-title"),w=a.data("cta-img"),x=a.data("cta-dealeridcd"),y=a.data("cta-dealerpincode"),p=a.data("cta-dealercity");a.data("cta-firstmodelid");a.data("cta-dealerleadwithmodel");var t=a.data("cta-model-type");"undefined"!=typeof t&&"page"==t&&"undefined"!=typeof p_mm_data&&(c="undefined"==typeof c?p_mm_data.make_id_cd:c,d="undefined"==typeof d?p_mm_data.make_name:d,e="undefined"==typeof e?p_mm_data.make_name_cd:e,f="undefined"==typeof f?p_mm_data.model_slug_cd:f,g=
"undefined"==typeof g?p_mm_data.model_id_cd:g,h="undefined"==typeof h?p_mm_data.model_name:h,r="undefined"==typeof r?p_mm_data.vType:r,u="undefined"==typeof u?p_mm_data.title:u,w="undefined"==typeof w?p_mm_data.img:w,k=p_mm_data.model_price,q=p_mm_data.model_bodyType);t="";var v=Get_Cookie("selected_city");""!=("undefined"!=v&&null!=v?v:"")&&(t=Get_Cookie("cityCDId"),t="undefined"!=t?t:"");var z=Get_Cookie("lead_name"),A=Get_Cookie("lead_mobile");z="undefined"!=z&&null!=z?z:"";A="undefined"!=A&&null!=
A?b64DecodeUnicode(A):"";""!=z&&(z=z.replace("+"," "));f="undefined"!=typeof f?f:"";g="undefined"!=typeof g?g:"";h="undefined"!=typeof h?h:"";e="undefined"!=typeof e?e:"";q="undefined"!=typeof q?q:"";k="undefined"!=typeof k?k:"";l="undefined"!=typeof l?l:"";m="undefined"!=typeof m?m:"";x="undefined"!=typeof x?x:"";y="undefined"!=typeof y?y:"";p="undefined"!=typeof p?p:"";u="undefined"!=typeof u?u:"";w="undefined"!=typeof w?w:"";cta_dealercity_slug="";""!=x&&(t=Get_Cookie("cityCDId"),cta_dealercity_slug=
p.replace(/\s/g,"-").replace(/_/g,"-").toLowerCase());var B=d+" "+h;v="View Personalized Offers on "+d+" "+h;""==g&&(v=B="");var C="";""!=m&&(C=d+" "+h+" "+m);if("undefined"==typeof n||""==n)n="main";cta_source_f_l="main"!=n?cta_source_f+"_"+n:cta_source_f;n=cta_source+"_"+n;"finance"==b?(cta_source_f_l+="_getfinance_NCF",n+="_getfinance_NCF"):"dcb"==b?""!=x?(cta_source_f_l+="_getcallback_DCB",n+="_getcallback_DCB"):(cta_source_f_l+="_getoffers_DCB",n+="_getoffers_DCB"):"awl"==b?(cta_source_f_l+=
"_getalert_AWL",n+="_getalert_AWL"):"brochure"==b&&(cta_source_f_l+="_getbrochure_BROCHURE",n+="_getbrochure_BROCHURE");sessionStorage.exitpopupstatus="yes";c={carVariantCentralId:l,carVariantId:C,leadLocation:n,pageType:cta_source,modelId:g,priceRange:k,bodyType:q,modelName:B,modelSlug:f,brandName:e,cityId:t,userName:z,mobileNo:A,brandId:c,dealerData:x,dealerCity:p,dealerPincode:y};"4Wheeler"==r?"finance"==b?(a="https://loan.cardekho.com/new-car",a=768>screen.width?a+"?source=wap":a+"?source=web",
a+="&zigwheels_"+cta_source+"&mid=zigwheels_CarLoanLink&utm_medium=zigwheels_CarLoanLink&utm_source=zigwheels&make="+d+"&model="+h+"&car_variant="+m,centralCarFinance(c,"Want offers on car too? Choose among Authorized "+d+" dealer(s) below to receive callback",a)):"awl"==b?centralCarAWL(c,"Get updates and price details of "+d+" "+h+" on launch"):"brochure"==b?(v="Get to know the specs in your city",c.brochureUrl=a.data("cta-brochurefile"),c.brochureId=a.data("cta-brochureid"),centralCarBrochure(c,
v)):centralCarDCB(c,v):"awl"==b?centralBikeAWL(c,"Get updates and price details of "+d+" "+h+" on launch"):(""!=u&&(v=u),centralBikeDCB(c,v,w))});
function centralCarBrochure(a,b){a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/car_lead_banner.jpg"};"undefined"!=typeof b&&""!=b&&(a.title=b);a.showThankYouScreen=!0;$.centralLF.init(a,"brochure",{beforeSubmit:function(c){Set_Cookie("tvcCookieConsent",
1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})}})}
function centralCarFinance(a,b,c){a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/car_lead_banner.jpg"};"undefined"!=typeof c&&""!=c&&(a.leadData.modelLoanUrl=c);"undefined"!=typeof b&&""!=b&&(a.dealerTitle=b);a.showThankYouScreen=
!0;$.centralLF.init(a,"finance",{beforeSubmit:function(d){Set_Cookie("tvcCookieConsent",1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})}})}
function centralCarAWL(a,b){a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/car_lead_banner.jpg"};"undefined"!=typeof b&&""!=b&&(a.title=b);$.centralLF.init(a,"awl",{trackEvent:function(c){ctaSetCity(c.lead_city_id)},afterSubmit:function(c){cta_name=
c.name;cta_mobile=c.mobile;cta_name="undefined"!=cta_name?cta_name:"";cta_mobile="undefined"!=cta_mobile?cta_mobile:"";Set_Cookie("lead_name",cta_name);Set_Cookie("lead_mobile",b64EncodeUnicode(cta_mobile));"undefined"!=typeof LeadInterface&&"android"==SOURCE.split("_")[1]&&(LeadInterface.setUsername(cta_name),LeadInterface.setMobile(cta_mobile),LeadInterface.upcomingFilled());browserDetect.isIos&&"ios"==SOURCE.split("_")[1]&&(window.location="js-frame:updatedLeadData:0:"+encodeURIComponent("["+JSON.stringify(c)+
"]"))}})}
function centralBikeAWL(a,b){a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/bike_lead_banner.jpg"};"undefined"!=typeof b&&""!=b&&(a.title=b);$.centralLF.init(a,"awl",{trackEvent:function(c){ctaSetCity(c.lead_city_id)},afterSubmit:function(c){cta_name=
c.name;cta_mobile=c.mobile;cta_name="undefined"!=cta_name?cta_name:"";cta_mobile="undefined"!=cta_mobile?cta_mobile:"";Set_Cookie("lead_name",cta_name);Set_Cookie("lead_mobile",b64EncodeUnicode(cta_mobile));"undefined"!=typeof LeadInterface&&"android"==SOURCE.split("_")[1]&&(LeadInterface.setUsername(cta_name),LeadInterface.setMobile(cta_mobile),LeadInterface.upcomingFilled());browserDetect.isIos&&"ios"==SOURCE.split("_")[1]&&(window.location="js-frame:updatedLeadData:0:"+encodeURIComponent("["+JSON.stringify(c)+
"]"))}})}
function centralCarDCB(a,b){768>=screen.width&&(a.verificationBytruecaller=!0);a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/car_lead_banner.jpg"};"undefined"!=typeof b&&""!=b&&(a.title=b);$.centralLF.init(a,"dcb",{afterSubmit:function(c){afterCentralleadSubmit(c,
"4Wheeler")},trackEvent:function(c){ctaSetCity(c.lead_city_id)},onClose:function(){}})}
function centralBikeDCB(a,b,c){768>=screen.width&&(a.verificationBytruecaller=!0);a.webOtpLoad=!0;"undefined"!=typeof a.brandId&&""!=a.brandId&&"35"==a.brandId&&(a.webOtpLoad=!1);a={leadData:a,termAndCondition:'By proceeding ahead you expressly agree to the Zigwheels <a href="https://www.zigwheels.com/privacypolicy" target="_blank" title="terms of use and privacy policy" alt="terms of use and privacy policy">terms of cookie use and privacy policy</a>',delightImage:"https://images.zigcdn.com/images/revamp/bike_lead_banner.jpg"};
"undefined"!=typeof b&&""!=b&&(a.title=b);"undefined"!=typeof c&&""!=c&&(a.delightImage=c);$.centralLF.init(a,"dcb",{afterSubmit:function(d){afterCentralleadSubmit(d,"2Wheeler")},trackEvent:function(d){ctaSetCity(d.lead_city_id)},onClose:function(){}})}
function ctaSetCity(a){function b(c){var d=cityJSON.filter(function(g){return g.idCd==c});if(""!=d){var e=d[0].id;c=d[0].idCd;var f=d[0].value;d=d[0].nameCd;Set_Cookie("geo_city",f);Set_Cookie("city_id",e);Set_Cookie("changed_city",f);Set_Cookie("selected_city",f);Set_Cookie("pincode","");Set_Cookie("selected_subcity","");Set_Cookie("cityCD",d);Set_Cookie("cityCDId",c);"undefined"!=typeof LeadInterface&&"android"==SOURCE.split("_")[1]&&(e=f.toLowerCase().replace(" ","-"),LeadInterface.setCity(f),
LeadInterface.setCitySlug(e),LeadInterface.setPincode(""))}}"undefined"!=typeof a&&(0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(c){cityJSON=c;b(a)}):b(a))}function zwSuccessSubmit(a){afterCentralleadSubmit(a,"2Wheeler")}
function afterCentralleadSubmit(a,b){function c(){var d=cta_modelIdCD="",e=0,f=cta_mobile=cta_MakeName=cta_ModelName="";f=a.name;cta_mobile=a.mobile;cta_modelIdCD=a.modelId;"undefined"!=typeof a.cityId&&(d=a.cityId);"undefined"!=typeof a.verified&&1==a.verified&&(e=1);if("undefined"!==typeof Storage){var g="";"undefined"!=typeof a.mobile&&""!=a.mobile&&(g=a.mobile);localStorage.setItem("lead_user_info",JSON.stringify({is_lead_submit:1,mobile:g,is_mobile_verified:e}));0==isUserLoggedIn&&localStorage.setItem("lead_submit_wo_login",
1)}f="undefined"!=f?f:"";cta_mobile="undefined"!=cta_mobile?cta_mobile:"";g=cityJSON.filter(function(k){return k.idCd==d});if(""!=g&&""!=cta_modelIdCD){var h=g[0].id;d=g[0].idCd;var q=g[0].value;g=g[0].nameCd;Set_Cookie("geo_city",q);Set_Cookie("city_id",h);Set_Cookie("selected_city",q);Set_Cookie("pincode","");Set_Cookie("selected_subcity","");Set_Cookie("cityCD",g);Set_Cookie("cityCDId",d);Set_Cookie("lead_name",f);Set_Cookie("lead_mobile",b64EncodeUnicode(cta_mobile));if("2Wheeler"==b&&"finance"==
a.leadType)return!0;Set_Cookie("userstepstatus","yes");$.getJSON(SITEPATH+"/2db/get_model_data_central.php",{modelIdCD:cta_modelIdCD,vehicleType:b,source:cta_source_f_l,lead_data:a},function(k){if(0<Object.keys(k).length){var l=k.makeId,m=k.modelId;k=k.vehicleType;Set_Cookie("DCBLead",m+"@"+h+"@"+q+"@"+l,"session");Set_Cookie("orp_lead",l+"-"+m+"-"+h+"-"+k,0);1==e&&(Set_Cookie("UserCity",q),Set_Cookie("UserCityId",d),Set_Cookie("UserSubcity",""),Set_Cookie("UserSubcityId",""))}})}}Set_Cookie("tvcCookieConsent",
1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"});0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(d){cityJSON=d;c()}):c()}function openCentralDCB_WebForm(a,b,c){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(d){cityJSON=d;openCentralLead_WebForm("dcb",a,b,c)}):openCentralLead_WebForm("dcb",a,b,c)}
function openCentralFinance_WebForm(){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(a){cityJSON=a;openCentralLead_WebForm("finance")}):openCentralLead_WebForm("finance")}function openCentralAlertMe_WebForm(){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(a){cityJSON=a;openCentralLead_WebForm("awl")}):openCentralLead_WebForm("awl")}
function openCentralLead_WebForm(a,b,c,d){var e=f="",f=Get_Cookie("selected_city");""!=("undefined"!=f&&null!=f?f:"")&&(e=Get_Cookie("cityCDId"),e="undefined"!=e?e:"");a="undefined"!=typeof a?a:"dcb";var g=Get_Cookie("lead_name"),h=Get_Cookie("lead_mobile");g="undefined"!=g&&null!=g?g:"";h="undefined"!=h&&null!=h?b64DecodeUnicode(h):"";var q=$("#cta_makeid").val();$("#cta_makeslugcd").val();$("#cta_makeidcd").val();f=$("#cta_makename").val();var k=$("#cta_makenamecd").val();$("#cta_modelid").val();
var l=$("#cta_modelslugcd").val(),m=$("#cta_modelidcd").val(),r=$("#cta_modelname").val(),n=$("#cta_vtype").val(),u=$("#cta_model_bodyType").val(),w=$("#cta_model_price").val(),x=f+" "+r,y="View Personalized Offers on "+f+" "+r;""==m&&(y=x="");b="undefined"!=typeof b?b:"";c="undefined"!=typeof c?c:"";d="undefined"!=typeof d?d:"";cta_dealercity_slug="";if(""!=b){e="";var p=cityJSON.filter(function(t){return t.value==d});""!=p&&(e=p[0].idCd,d=p[0].nameCd,cta_dealercity_slug=d.replace(/\s/g,"-").replace(/_/g,
"-").toLowerCase())}p=cta_source;cta_source_f_l=p=1==cta_source.startsWith("APP_")?cta_source.replace("APP_","_APP_"):cta_md+p;p=cta_source+"_main";"finance"==a?(cta_source_f_l+="_getfinance_NCF",p+="_getfinance_NCF"):"dcb"==a?""!=b?(cta_source_f_l+="_getcallback_DCB",p+="_getcallback_DCB"):(cta_source_f_l+="_getoffers_DCB",p+="_getoffers_DCB"):"awl"==a&&(cta_source_f_l+="_getalert_AWL",p+="_getalert_AWL");b={leadLocation:p,pageType:cta_source,modelId:m,priceRange:w,bodyType:u,modelName:x,modelSlug:l,
brandName:k,cityId:e,userName:g,mobileNo:h,brandId:q,dealerData:b,dealerCity:d,dealerPincode:c};"4Wheeler"==n?"finance"==a?(a="https://loan.cardekho.com/new-car",a=768>screen.width?a+"?source=wap":a+"?source=web",a+="&zigwheels_"+cta_source+"&mid=zigwheels_CarLoanLink&utm_medium=zigwheels_CarLoanLink&utm_source=zigwheels&make="+f+"&model="+r+"&car_variant=",centralCarFinance(b,"Want offers on car too? Choose among Authorized "+f+" dealer(s) below to receive callback",a)):"awl"==a?centralCarAWL(b,
"Get updates and price details of "+f+" "+r+" on launch"):centralCarDCB(b,y):"awl"==a?centralBikeAWL(b,"Get updates and price details of "+f+" "+r+" on launch"):centralBikeDCB(b,y)}
function callTimeExitCentralDCB(a){var b=parseInt(sessionStorage.lastViewedMakeId),c=parseInt(sessionStorage.lastViewedModelId),d=sessionStorage.lastViewedVType,e=parseInt(sessionStorage.lastViewedIsDCB);if(0<b&&0<c&&0<e||3==b){b="";c=Get_Cookie("selected_city");""!=("undefined"!=c&&null!=c?c:"")&&(b=Get_Cookie("cityCDId"),b="undefined"!=b?b:"");c=Get_Cookie("lead_name");e=Get_Cookie("lead_mobile");c="undefined"!=c&&null!=c?c:"";e="undefined"!=e&&null!=e?b64DecodeUnicode(e):"";var f=sessionStorage.lastViewedMakeIdCD,
g=sessionStorage.lastViewedMakeName,h=sessionStorage.lastViewedMakeNameCD,q=sessionStorage.lastViewedModelSlugCD,k=sessionStorage.lastViewedModelIdCD,l=sessionStorage.lastViewedModelName,m=sessionStorage.lastViewedModelBodyType,r=sessionStorage.lastViewedModelPrice,n=g+" "+l;""==k&&(n="");g="View Personalized Offers on "+g+" "+l;a={leadLocation:cta_source+"_"+a+"_getoffers_DCB",pageType:cta_source,modelId:k,priceRange:r,bodyType:m,modelName:n,modelSlug:q,brandName:h,brandId:f,cityId:b,userName:c,
mobileNo:e};"4Wheeler"==d?centralCarDCB(a,g):centralBikeDCB(a,g)}}
function callBackCentralDCB(a,b){if("undefined"!=typeof a&&0<Object.keys(a).length){var c=cta_makenamecd=a.brandName,d=a.modelName,e=a.modelId,f=a.priceRnge,g=a.bodyType,h=a.modelSlug,q=a.cityId,k=a.dcbFormHeading,l=Get_Cookie("lead_name"),m=Get_Cookie("lead_mobile");l="undefined"!=l&&null!=l?l:"";m="undefined"!=m&&null!=m?b64DecodeUnicode(m):"";""!=l&&(l=l.replace("+"," "));a="View Personalized Offers on "+d;""!=k&&(a=k);cta_location_f=cta_source+"_crosssell";"finance"==b?cta_location_f+="_getfinance_NCF":
"dcb"==b?cta_location_f+="_getoffers_DCB":"awl"==b&&(cta_location_f+="_getalert_AWL");e={leadLocation:cta_location_f,pageType:cta_source,modelId:e,priceRange:f,bodyType:g,modelName:d,modelSlug:h,brandName:cta_makenamecd,cityId:q,userName:l,mobileNo:m};"md_b"!=page_centralDCB_flag?"finance"==b?(b="https://loan.cardekho.com/new-car",b=768>screen.width?b+"?source=wap":b+"?source=web",b+="&zigwheels_"+cta_source+"&mid=zigwheels_CarLoanLink&utm_medium=zigwheels_CarLoanLink&utm_source=zigwheels&make="+
c+"&model="+d+"&car_variant="+cta_variantname,centralCarFinance(e,"Want offers on car too? Choose among Authorized "+c+" dealer(s) below to receive callback",b)):"awl"==b?centralCarAWL(e,"Get updates and price details of "+d+" on launch"):centralCarDCB(e,a):"awl"==b?centralBikeAWL(e,"Get updates and price details of "+d+" on launch"):centralBikeDCB(e,a)}}
function loadCrossSellWidget(){if(0<$("#crosssell_mmv_cd").length&&"function"==typeof window.__RenderCentralPWAComponent){var a=$("#crosssell_mmv_cd"),b="md_b"!=page_centralDCB_flag?"4Wheeler":"2Wheeler",c={rootMargin:"1000px",containerId:"crosssell_mmv_cd",component:"2Wheeler"==b?"ReactComponent":"CrossSellCarousal",componentProp:{leadLocation:"",pageType:EVENTCATAGORY.replace(/car-|bike-/gi,function(d){return""}),dcbCallback:callBackCentralDCB},apiOptions:{modelId:a.data("crosssell_cd_model"),cityId:a.data("crosssell_cd_city")}};
"2Wheeler"==b&&(c.componentName="CrossSellCarousal",c.componentProp.defaultVisibleCrossSell=!0,c.componentProp.containerCls="CrossCarousel",c.componentProp.modelId=a.data("crosssell_cd_model"),c.componentProp.cityId=a.data("crosssell_cd_city"));__RenderCentralPWAComponent(c)}}
function openGaadiLead(){var a={containerId:"gaadilead_container",component:"ReactComponent",componentProp:{lazy:!1,page_location:"middle-top",logoUrl:IMAGEPATH+"/revamp/zw_l.png",baseUrl:"https://www.zigwheels.com/",domain:"zigwheels",userSource:768>=screen.width?"website_zigwheels_wap":"website_zigwheels_web",page_name:EVENTCATAGORY.replace(/car-|bike-/gi,function(b){return""})},componentName:"GaadiLeadformPopup"};__RenderCentralPWAComponent(a)}
function autoPopupCentralDCBForm(){var a=parseInt(sessionStorage.lastViewedMakeId),b=parseInt(sessionStorage.lastViewedModelId),c=sessionStorage.lastViewedVType,d=parseInt(sessionStorage.lastViewedIsDCB),e=new URLSearchParams(window.location.search),f="";"2Wheeler"==c?f="md_b":"4Wheeler"==c&&(f="md_c");1==e.get("dcbform")&&f==page_centralDCB_flag&&0<a&&0<b&&setTimeout(function(){0==$("#central-lf .NewCarLeadPopup").is(":visible")&&0==$(".modal:not(#oneTapAlternateLoginPopup), #gsp_popup").is(":visible")&&
0==$(".headerSearch_mmv_suggest.ui-autocomplete.ui-widget:visible").length&&0==$(".leadFrms").is(":visible")&&0==$("#question_from_owner").is(":focus")&&0==$("#n-askInput").is(":focus")&&0==$("#dclFrmContainer").is(":visible")&&0==$(".h-u-s").hasClass("o")&&0==$("#ot_s_md").is(":visible")&&0==$("#credential_picker_iframe").is(":visible")&&0==$("#credential_picker_container").is(":visible")&&(setGtmTracking(eventCategory,"smart-trigger-form-open","click",0,0),callTimeExitCentralDCB("smart-trigger-form-open"))},
2E3);1!=e.get("dcbform")&&f==page_centralDCB_flag&&(0<a&&0<b&&0<d&&setTimeout(function(){"yes"!=Get_Cookie("userstepstatus")&&"yes"!=sessionStorage.exitpopupstatus&&0==$("#central-lf .NewCarLeadPopup").is(":visible")&&0==$(".modal:not(#oneTapAlternateLoginPopup), #gsp_popup").is(":visible")&&0==$(".headerSearch_mmv_suggest.ui-autocomplete.ui-widget:visible").length&&0==$(".leadFrms").is(":visible")&&0==$("#question_from_owner").is(":focus")&&0==$("#n-askInput").is(":focus")&&0==$("#dclFrmContainer").is(":visible")&&
0==$(".h-u-s").hasClass("o")&&0==$(".h-mic-s").is(":visible")&&0==$("#ot_s_md").is(":visible")&&0==$("#gaadi-leadform").is(":visible")&&0==$("#lc-connect").is(":hidden")&&(setGtmTracking(eventCategory,"time-targeted-popup","click",0,0),callTimeExitCentralDCB("time-targeted-popup"),sessionStorage.exitpopupstatus="yes")},4E4),setTimeout(function(){if(767<screen.width&&0<a&&0<b&&0<d&&"yes"!=Get_Cookie("userstepstatus")&&"yes"!=sessionStorage.exitpopupstatus){var g=0;$(document).mousemove(function(h){0==
g&&5>=h.clientY&&"yes"!=Get_Cookie("userstepstatus")&&"yes"!=sessionStorage.exitpopupstatus&&0==$("#central-lf .NewCarLeadPopup").is(":visible")&&0==$(".modal:not(#oneTapAlternateLoginPopup), #gsp_popup").is(":visible")&&0==$(".headerSearch_mmv_suggest.ui-autocomplete.ui-widget:visible").length&&0==$(".leadFrms").is(":visible")&&0==$("#question_from_owner").is(":focus")&&0==$("#n-askInput").is(":focus")&&0==$("#dclFrmContainer").is(":visible")&&0==$(".h-u-s").hasClass("o")&&0==$(".h-mic-s").is(":visible")&&
0==$("#ot_s_md").is(":visible")&&0==$("#gaadi-leadform").is(":visible")&&(setGtmTracking(eventCategory,"exit-popup","click",0,0),callTimeExitCentralDCB("exit-popup"),sessionStorage.exitpopupstatus="yes",g++)})}},500))};