

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

/*!
 * 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?0:0,p=k?"video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg],[data-gsll-css-class]":"img[data-gsll-src],video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg],[data-gsll-css-class]",d={selector:"img[data-gsll-src],video[data-gsll-src],iframe[data-gsll-src],[data-gsll-bg],[data-gsll-css-class]",
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")),a.getAttribute("data-gsll-css-class")&&(a.classList.add(a.getAttribute("data-gsll-css-class")),a.removeAttribute("data-gsll-css-class")),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()+1,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"><span class="gscr_lSPrev">'+c.prevHtml+'</span><span class="gscr_lSNext">'+c.nextHtml+"</span></div>");var t=C.next();c.autoWidth?R.calWidth(!1)<T&&t.hide():y<=c.item&&t.hide(),t.find("span").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){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;setTimeout(()=>{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()}), 0}},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.13.2 - 2022-12-21
* http://jqueryui.com
* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";x.ui=x.ui||{};x.ui.version="1.13.2";var n,i=0,l=Array.prototype.hasOwnProperty,a=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");n(t)}),x.widget=function(t,i,e){var s,n,o,l={},a=t.split(".")[0],r=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},s=x[a][t],n=x[a][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},x.extend(n,s,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}l[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},l,{constructor:n,namespace:a,widgetName:t,widgetFullName:r}),s?(x.each(s._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),x.widget.bridge(t,n),n},x.widget.extend=function(t){for(var e,i,s=a.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],l.call(s[n],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(o,e){var l=e.prototype.widgetFullName||o;x.fn[o]=function(i){var t="string"==typeof i,s=a.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,l);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+o+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=x.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=x.data(this,l);t?(t.option(i||{}),t._init&&t._init()):x.data(this,l,new e(i,this))})),n}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=x(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var o=[],l=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=l.classesElementLookup[t[s]]||x(),i=n.add?(function(){var i=[];n.element.each(function(t,e){x.map(l.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),l._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(n.element.get())))):x(i.not(n.element).get()),l.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=x.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;x.each(s.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(s.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return i.element.toggleClass(this._classes(i),s),this},_on:function(n,o,t){var l,a=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=l=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,l=this.widget()),x.each(t,function(t,e){function i(){if(n||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?a[e]:e).apply(a,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+a.eventNamespace,s=s[2];s?l.on(t,s,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,l){x.Widget.prototype["_"+o]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||l:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&x.effects&&x.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}});var s,C,E,o,r,u,h,c,k;x.widget;function T(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function A(t,e){return parseInt(x.css(t,e),10)||0}function W(t){return null!=t&&t===t.window}C=Math.max,E=Math.abs,o=/left|center|right/,r=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,k=x.fn.position,x.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=W(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(c){if(!c||!c.of)return k.apply(this,arguments);var d,f,m,p,v,t,g="string"==typeof(c=x.extend({},c)).of?x(document).find(c.of):x(c.of),_=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(_),b=(c.collision||"flip").split(" "),w={},e=9===(t=(e=g)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:W(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return g[0].preventDefault&&(c.at="left top"),f=e.width,m=e.height,v=x.extend({},p=e.offset),x.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],c[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?v.left+=f:"center"===c.at[0]&&(v.left+=f/2),"bottom"===c.at[1]?v.top+=m:"center"===c.at[1]&&(v.top+=m/2),d=T(w.at,f,m),v.left+=d[0],v.top+=d[1],this.each(function(){var i,t,l=x(this),a=l.outerWidth(),r=l.outerHeight(),e=A(this,"marginLeft"),s=A(this,"marginTop"),n=a+e+A(this,"marginRight")+y.width,o=r+s+A(this,"marginBottom")+y.height,u=x.extend({},v),h=T(w.my,l.outerWidth(),l.outerHeight());"right"===c.my[0]?u.left-=a:"center"===c.my[0]&&(u.left-=a/2),"bottom"===c.my[1]?u.top-=r:"center"===c.my[1]&&(u.top-=r/2),u.left+=h[0],u.top+=h[1],i={marginLeft:e,marginTop:s},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](u,{targetWidth:f,targetHeight:m,elemWidth:a,elemHeight:r,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+h[0],d[1]+h[1]],my:c.my,at:c.at,within:_,elem:l})}),c.using&&(t=function(t){var e=p.left-u.left,i=e+f-a,s=p.top-u.top,n=s+m-r,o={target:{element:g,left:p.left,top:p.top,width:f,height:m},element:{element:l,left:u.left,top:u.top,width:a,height:r},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};f<a&&E(e+i)<f&&(o.horizontal="center"),m<r&&E(s+n)<m&&(o.vertical="middle"),C(E(e),E(i))>C(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0<l&&a<=0?(i=t.left+l+e.collisionWidth-n-s,t.left+=l-i):t.left=!(0<a&&l<=0)&&a<l?s+n-e.collisionWidth:s:0<l?t.left+=l:0<a?t.left-=a:t.left=C(t.left-o,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,a=o+e.collisionHeight-n-s;e.collisionHeight>n?0<l&&a<=0?(i=t.top+l+e.collisionHeight-n-s,t.top+=l-i):t.top=!(0<a&&l<=0)&&a<l?s+n-e.collisionHeight:s:0<l?t.top+=l:0<a?t.top-=a:t.top=C(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,l=t.left-e.collisionPosition.marginLeft,a=l-o,r=l+e.collisionWidth-n-o,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,l=-2*e.offset[0];a<0?((s=t.left+u+i+l+e.collisionWidth-n-s)<0||s<E(a))&&(t.left+=u+i+l):0<r&&(0<(o=t.left-e.collisionPosition.marginLeft+u+i+l-o)||E(o)<r)&&(t.left+=u+i+l)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,o=i.isWindow?i.scrollTop:i.offset.top,l=t.top-e.collisionPosition.marginTop,a=l-o,r=l+e.collisionHeight-n-o,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,l=-2*e.offset[1];a<0?((s=t.top+u+i+l+e.collisionHeight-n-s)<0||s<E(a))&&(t.top+=u+i+l):0<r&&(0<(o=t.top-e.collisionPosition.marginTop+u+i+l-o)||E(o)<r)&&(t.top+=u+i+l)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var t;x.ui.position,x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.extend({uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},x.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",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.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.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":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-corner-all").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-corner-all"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-corner-all"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-corner-all"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-corner-all"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_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(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},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._menuItems(this.active.children(".ui-menu")).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},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===x.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===x.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=x(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(x(this).children(".ui-corner-all").text()))})}});x.widget("ui.autocomplete",{version:"1.13.2",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,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("<div>").text(i))},100))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("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=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.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()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},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):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(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._off(this.document,"mousedown"),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(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;x.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<a>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},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())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" 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,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("<div>").text(e))},100))}});x.ui.autocomplete});


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.addEventListener("pageshow",b=>{b.persisted&&hitGtmPageView(document.location.pathname)});var selectModelForReview=viaPage=0,isReviewWidget=0,searchParams=new URLSearchParams(window.location.search),searchHashParams=new URLSearchParams(location.hash.substring(1)),checkMobiDevice=768>screen.width?!0:!1;
(function(b){b.fn.lazyload=function(){0<b(this).length&&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(()=>{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")})}function getMobileOperatingSystem(){return/iPad|iPhone|iPod/.test(navigator.userAgent||navigator.vendor||window.opera)&&!window.MSStream?($(".m-navBg").addClass("m-ios"),"iOS"):"unknown"}
("model"==SOURCE||"model-picture"==SOURCE)&&0<$("#share-fb-tw").length&&window.addEventListener("load",function(){$.ajax({url:SITEPATH+"/tpl/share_tpl.php",success:function(b){$("#share-fb-tw").html(b)}})});window.addEventListener("load",function(){0<$("#rate_review_widget").length&&$.ajax({url:SITEPATH+"/tpl/rate_review_widget_tpl.html",success:function(b){$("#rate_review_widget").html(b)}})});
function slideShareScreen(b,c,d){yieldMainUiZW(()=>{var e=location.protocol+"//"+location.host+location.pathname;e+=location.search;var g=document.title;"undefined"!=typeof c&&null!=c&&""!=c&&(c.includes(location.protocol+"//"+location.host)||(c=location.protocol+"//"+location.host+c),e=c,g=d);e=e.includes("?")?e+"&":e+"?";var f="";let h=g.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-");g=encodeURIComponent(g);1==b?f="https://www.facebook.com/sharer/sharer.php?u="+(e+"utm_source=Facebook&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+
h+"&title="+g):2==b?f="https://twitter.com/intent/tweet?url="+(e+"&utm_source=Twitter&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+h+"&text="+g):3==b?(e=e+"&utm_source=Whatsapp&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+h+"&text="+g,f=767>=$(window).innerWidth()?"whatsapp://send?text="+e:"https://web.whatsapp.com:/send?text="+e):4==b&&(f="https://www.linkedin.com/shareArticle?mini=true&url="+(e+"&utm_source=Linkedin&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+
h+"&text="+g));""!=f&&window.open(f,"shareWindow","status = 1, height = 300, width = 600, resizable = 0")})}
function share(b,c){var d="";1==b?d="https://www.facebook.com/sharer/sharer.php?u="+c:2==b?d="https://twitter.com/intent/tweet?url="+c:3==b?d=767>=$(window).innerWidth()?"whatsapp://send?text="+c:"https://web.whatsapp.com:/send?text="+c:4==b&&(d="https://www.linkedin.com/shareArticle?mini=true&url="+c);""!=d&&window.open(d,"shareWindow","status = 1, height = 300, width = 600, resizable = 0")}
function nativeShareScreen(){if(navigator.share){let b=document.title.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-");navigator.share({title:document.title,url:location.protocol+"//"+location.host+location.pathname+"?utm_source=Mobile&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+b}).catch(console.error)}}
$.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,g){if("undefined"==typeof b||"eventCategory"==b||""==b)b=eventCategory;"undefined"==typeof d&&(d="click");"undefined"==typeof e&&(e=0);"undefined"!=typeof g&&(g=0);yieldMainUiZW(()=>{dataLayer.push({event:"buttonclick",componentname:b,labelname:c})})}
function hitGtmPageView(b){"undefined"==typeof b&&(b=document.location.pathname);yieldMainUiZW(()=>{dataLayer.push({event:"popup",virtual_action:b})})}
$("body").on("mousedown","[data-track-label]",function(){setTimeout(()=>{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 g=$(this).data("track-uamain");"undefined"==typeof g&&(g=1);setGtmTracking(b,c,d,e,g)},0)});
function reviewCol(){0==$("body").hasClass("r-expend")&&($(document).on("click",".s-smily",function(){1==$(".r-hide").hasClass("a")&&($(".r-hide").slideDown().removeClass("a"),$(".srt-r").addClass("hidden"),$("body").addClass("r-expend"),0==$(".gm_w_buy").length&&($("#submit_rev").addClass("active"),$("#submit_rev_deactive").css("display","none")))}),$(document).on("click",".r-heading.o",function(){$(".r-hide").hasClass("a")?$(".r-hide").slideDown(800).removeClass("a"):$(".r-hide").slideUp(800).addClass("a");
$(".srt-r").removeClass("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){return/^\w+([\.-]?\w+)*@\w+([\.-]?(\w)+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/.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,g,f){g=".zigwheels.com";e="/";if(Get_Cookie(b)!=c){f=new Date;f.setTime(f.getTime());d=-1==d?0:d?864E5*d:2592E6;if("userstepstatus"==b||"exitpopupstatus"==b)d=0;f=new Date(f.getTime()+d);document.cookie=b+"="+escape(c)+(0<d?";expires="+f.toGMTString():"")+";path="+e+";domain="+g+";sameSite=Lax;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=Lax;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://www.rupyy.com/new-car-loan"+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?SITEPATH+"/offers-events/"+d+"/"+b+"/"+c:""!=b?SITEPATH+"/offers-events/"+d+"/"+b:SITEPATH+"/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 g=new RegExp("^"+$.ui.autocomplete.escapeRegex(d.term),"i");e($.grep(cityJSON,function(f){return g.test(f.value)}))},select:function(d,e){"undefined"!=typeof e.item.type&&"alternateCity"==e.item.type&&(d=cityJSON.filter(function(h){return h.id==e.item.id&&"alternateCity"!=h.type}),0<d.length&&(e.item=d[0]));d=e.item.name;var g=e.item.id,f=e.item.value;jQuery("#"+b).attr("city_id",g);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(f);setTimeout(()=>{jQuery("#"+b).val(f)},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(f){return f.value.toLowerCase()==c.toLowerCase()});if(""==d)return"Invalid";"undefined"!=typeof d[0].type&&"alternateCity"==d[0].type&&(d=cityJSON.filter(function(f){return f.id==d[0].id&&"alternateCity"!=f.type}));var e=d[0].id;c=d[0].value;var g=d[0].name;jQuery("#"+b).attr("city_id",e);jQuery("#"+b).val(c);jQuery("#"+b).attr("city_url_name",g);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(f){return f.value.toLowerCase()==c.toLowerCase()}),e=d[0].id;c=d[0].value;var g=d[0].name;jQuery("#"+b).val(c);jQuery("#"+b).attr("value",e);jQuery("#"+b).attr("city_id",e);jQuery("#"+b).attr("city_url_name",g);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(f){return f.id==c}),e=d[0].value,g=d[0].name;jQuery("#"+b).val(e);jQuery("#"+b).attr("value",c);jQuery("#"+b).attr("city_id",c);jQuery("#"+b).attr("city_url_name",g);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(g,f){var h=""!=jQuery("#"+c).attr("city_id")?{cityId:jQuery("#"+c).attr("city_id")}:{cityPincodes:0};$.extend(g,h);var m=g.term;m+=g.cityId;m+=e;g.makeId=e;m in pincodeCache?(pincodeJSON=pincodeCache[m],f($.map(pincodeCache[m],function(n){return{id:n.id,pincode:n.pincode,value:n.value,cityId:n.cityId,cityName:n.cityName,locality:n.locality}}))):(null,h="pincode",isNaN(m)&&
(h="locality"),setGtmTracking(EVENTCATAGORY,b+"-"+h+"-search"),$.getJSON(TODBFILEPATH+"/get_pincode_json.php",g,function(n,v,w){pincodeJSON=pincodeCache[m]=n;f($.map(n,function(x){return{id:x.id,pincode:x.pincode,value:x.value,cityId:x.cityId,cityName:x.cityName,locality:x.locality}}))}))},select:function(g,f){g=f.item.id;var h=f.item.value,m=f.item.cityId;jQuery("#"+b).attr("city_id",m);jQuery("#"+b).attr("pincode_name",h);jQuery("#"+b).attr("pincode_id",g);jQuery("#"+b).val(f.item.pincode);void 0!=
c&&""!=c&&setAutoCitiesValueById(c,m);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();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 e=pincodeJSON.filter(function(h){return h.pincode.toLowerCase()==d.toLowerCase()});if(""==e)return"Invalid";var g=e[0].value;d=e[0].pincode;var f=e[0].cityId;jQuery("#"+b).attr("city_id",f);jQuery("#"+b).attr("pincode_name",g);jQuery("#"+b).val(e[0].pincode);void 0!=c&&""!=c&&setAutoCitiesValueById(c,
f);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 g=$("#source").val();b=$.ajax({type:"POST",url:SITEPATH+"/tpl/inappropriate_ans_tpl.php",data:{nodeid:b,reason:c,reportflag:d,source:g,ugc_section_type:e}});b.done(function(f,h,m){if("1"==d&&(h=f.split(","),f=h[1],h=h[0],0<h)){localStorage.setItem("reasonNodeid",f);m=[h];var n=localStorage.getItem("insertData");(n=JSON.parse(n))?(n.push(h),localStorage.setItem("insertData",JSON.stringify(n))):localStorage.setItem("insertData",
JSON.stringify(m))}0<f&&("user-reviews"==g?$("#overflow_hidden_"+f).html($("#ansRemovalMsg").html()):("article"==g?$("#overflow_hidden_"+f).parent().html($("#ansRemovalMsg").html()):($("#overflow_hidden_"+f).parent().html($("#ansRemovalMsg").html()),$(".ans_cls_"+f).parent().parent(".view-more-question").hasClass("hidden")&&$(".ans_cls_"+f).parent().parent(".view-more-question").removeClass("hidden")),$(".ans_cls_"+f).hasClass("hidden")&&$(".ans_cls_"+f).removeClass("hidden")),setTimeout(()=>{var v=
"user-reviews"==g?$("#overflow_hidden_"+f).offset().top:$(".ans_cls_"+f).offset().top-100;$(window).scrollTop(v);$("html, body").animate({scrollTop:v-100},"200")},1E3))});b.fail(function(){})}
$(function(){function b(l=null){var k=localStorage.getItem("recentData");if(null!=k){k=JSON.parse(k);if(null!=l){var p=!1;$.each(k,function(t,y){if(y.url.split(/[?#]/)[0]==l.url.split(/[?#]/)[0])return p=!0,0<t&&(y=k[t],k.splice(t,1),k.unshift(y),localStorage.setItem("recentData",JSON.stringify(k))),!1});p||(3<k.length&&(k.length=3),l.isRecent=1,k.unshift(l),localStorage.setItem("recentData",JSON.stringify(k)))}return k}if(null!=l){var r=[];l.isRecent=1;r.unshift(l);localStorage.setItem("recentData",
JSON.stringify(r));return r}return[]}function c(l){var k=b(null);if(0<k.length){var p=!1;$.each(k,function(r,t){if(t.url==l)return p=!0,!1});if(p)return!0}return!1}function d(l){var k=b(null);if(0<k.length){var p=[],r=[],t=[],y=[],z=$("link[rel='canonical']").attr("href");$.each(l,function(C,A){"undefined"!=typeof A.sponsored&&1==A.sponsored?(p.push(A),y.push(SITEPATH+A.url.split(/[?#]/)[0])):c(A.url)||t.push(A)});$.each(k,function(C,A){y.includes(A.url.split(/[?#]/)[0])||A.url==z||r.push(A)});3<
r.length&&(r.length=3);l=p.concat(r,t)}return l}function e(){1==v&&(w=new webkitSpeechRecognition,w.continuous=!1,w.interimResults=!1,w.lang="en-US",w.start(),w.onresult=function(l){var k=l.resultIndex,p=l.results[k][0].transcript;1==k&&p==l.results[0][0].transcript||""==p||($("#voice_rs").html(p),setGtmTracking("voice-search",p,EVENTCATAGORY,0,0),setTimeout(()=>{h();g();$("#headerSearch").val(p).autocomplete("search",p)},1E3));w.stop()},w.onerror=function(l){w.stop();m()},w.onend=function(){w.stop();
""==$("#voice_rs").html()&&m()})}function g(){$("#autosuggestMicIcon").hide()}function f(){1==v&&767>screen.width&&1==$("header > .container").hasClass("active")&&$("#autosuggestMicIcon").show()}function h(){$(".h-mic-s").addClass("hidden").removeClass("o");$("body").removeClass("modal-open");null!=w&&w.stop()}function m(){$("#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 n(){$("#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(l){l.stopPropagation()});"comparison-result"!=SOURCE&&768>$(window).width()&&$(window).scroll(function(){5<$(this).scrollTop()?$("#Header").addClass("header-sticky"):$("#Header").removeClass("header-sticky")});$("#headerNewNav > ul > li").on({mouseenter:function(){1<=$(this).children("ul").length&&$(".zw-menuOverLay").fadeIn(200)},mouseleave:function(){$(".zw-menuOverLay").fadeOut(200)}});
idleZWCb(function(){var l=Get_Cookie("recentViewToRecentSearch");null!=l&&(l=l.replace(/##/g," "),l=JSON.parse(l),b(l[0]),del_cookie("recentViewToRecentSearch"))});$(".h-mic-cls").on("click",function(){h()});var v=0;"webkitSpeechRecognition"in window&&(v=1);$(document).on("click","#autosuggestMicIcon",function(){n();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(){n();e()});var w=null,x="sAutoSearch";yieldMainUiZW(()=>{$("#headerSearch").autocomplete({minLength:0,delay:150,source:function(l,k){var p=l.term;p=$.trim(p);""!=p&&x!=p?(0==$("#suggest_crossicon_headerSearch").length&&$("#headerSearch").after('<span class="zw-search-sprite zw-crosssicon autosuggest_crossicon" id="suggest_crossicon_headerSearch" ></span>'),g()):($(".autosuggest_crossicon").remove(),f());""==p&&(p=
x);p in mmv_suggester_cache?k($.map(mmv_suggester_cache[p],function(r){return{id:r.id,label:r.label,value:r.value,url:r.url,makeName:r.makeName,modelName:r.modelName,extraDisplay:r.extraDisplay,modelSynonyms:r.modelSynonyms,sponsored:r.sponsored,isRecent:r.isRecent}})):(null,$.getJSON(SITEPATH+"/mmv_suggester.php?bodyType="+("undefined"!=typeof dataLayer[0].vehicle_segment?dataLayer[0].vehicle_segment:"")+"&vehicleType="+("undefined"!=typeof vehicleType?vehicleType:""),l,function(r,t,y){$.each(r,
function(z,C){C.isRecent=0});x==p&&(r=d(r));mmv_suggester_cache[p]=r;k($.map(r,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(l,k){that=$(this);""!=that.val()?(l="suggest_crossicon_"+that.attr("id"),0==$("#"+l).length&&that.after('<span class="zw-search-sprite zw-crosssicon autosuggest_crossicon" id="'+l+'" ></span>'),
g()):($(".autosuggest_crossicon").remove(),f())},select:function(l,k){"undefined"!=typeof k.item.sponsored&&0==k.item.sponsored&&b(k.item);l=k.item.url;k=$.trim(k.item.value);var p=($("#homeSearch").val()||$("#headerSearch").val()).replace(/[\/\\^$*+?()|[\]{}]/g,"\\$&");setGtmTracking("search",k+"#"+p,EVENTCATAGORY,0,0);window.location.href=l}}).each(function(){$(this).data("uiAutocomplete")._renderItem=function(l,k){var p=this.term.replace(/[\/\\^$*+?()|[\]{}]/g,"\\$&"),r=$.trim(p).replace("  ",
" ").split(" ").join("|");r=""!=r?k.label.replace(new RegExp("("+r+")","gi"),'<span style="font-weight:300">$1</span>'):k.label;var t=k.label;t=t.toLowerCase().replace(/ car$/i,"").replace(/ cars$/i,"").replace(/ bike$/i,"").replace(/ bikes$/i,"");p=$.trim(p).replace("  "," ").toLowerCase();var y=p.replace(/ car$/i,"").replace(/ cars$/i,"").replace(/ bike$/i,"").replace(/ bikes$/i,"");y=$.trim(y);void 0==suggester_c_url[p]&&t==y&&(suggester_c_url[p]=k.url);"undefined"!=typeof k.extraDisplay&&(t=k.extraDisplay.toLowerCase(),
t=$.trim(t),void 0==suggester_c_url[p]&&t==y&&(suggester_c_url[p]=k.url));"undefined"!=typeof k.makeName&&"undefined"!=typeof k.modelName&&(t=k.makeName.toLowerCase()+" "+k.modelName.toLowerCase(),t=$.trim(t),void 0==suggester_c_url[p]&&t==y&&(suggester_c_url[p]=k.url));"undefined"!=typeof k.modelSynonyms&&(t=k.modelSynonyms.toLowerCase(),t=$.trim(t),void 0==suggester_c_url[p]&&t==y&&(suggester_c_url[p]=k.url));"undefined"!=typeof k.modelSynonyms&&"undefined"!=typeof k.makeName&&(t=k.makeName.toLowerCase()+
" "+k.modelSynonyms.toLowerCase(),t=$.trim(t),void 0==suggester_c_url[p]&&t==y&&(suggester_c_url[p]=k.url));return"undefined"!=typeof k.sponsored&&1==k.sponsored?$("<li>").append($("<a>").html("<b>"+r+'<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(l):"undefined"!=typeof k.isRecent&&1==k.isRecent?$("<li class='re-s'>").append($("<a>").html("<b>"+r+"<b>")).appendTo(l):$("<li>").append($("<a>").html("<b>"+
r+"<b>")).appendTo(l)}}).each(function(){$(this).data("uiAutocomplete")._renderMenu=function(l,k){var p=this;$.each(k,function(r,t){p._renderItemData(l,t)});""!=$("#headerSearch").val()&&x!=$("#headerSearch").val()||$(l).prepend('<span class="autocomplete_category">Related & Popular Searches</span>')}}).on("focus",function(){""!=$(this).val()?$(this).autocomplete("search"):("undefined"!=typeof pageSuggestModelId&&0<pageSuggestModelId?x="undefined"!=typeof pageSource&&"/variant.php"==pageSource?"smWVId_"+
pageSuggestModelId:"smId_"+pageSuggestModelId:"undefined"!=typeof pageSuggestMakeId&&0<pageSuggestMakeId?x="smkId_"+pageSuggestMakeId:"undefined"!=typeof pageSuggestModelFamily&&0<pageSuggestModelFamily?x="smdFamily_"+pageSuggestModelFamily:"undefined"!=typeof pageSuggestCompareResult&&""!=pageSuggestCompareResult?x="sComareResult_"+pageSuggestCompareResult:"undefined"!=typeof pageSuggestContentSrch&&""!=pageSuggestContentSrch&&(x=pageSuggestContentSrch),$(this).autocomplete("search",x));"home"==
SOURCE?$("#searchbarfixedcontent").css({bottom:"2%"}):$("#searchbarfixedcontent").css({bottom:"1%"})});$("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 l=$("#headerSearch").height();l=$("#headerSearch").offset().top+l;$(".commonsearch_ul.active").css({top:l});setTimeout(()=>{if(0==$("#searchbarfixedcontent").length){$(".commonsearch_ul.active").after("<div id='searchbarfixedcontent'></div>");"home"==SOURCE?$("#searchbarfixedcontent").css({"z-index":"99999",position:"fixed",bottom:"2%","max-width":$(window).width(),
"background-color":"white"}):($("#sea1hbarfixedcontent").css({"z-index":"99999",position:"fixed",bottom:"-2%","max-width":$(window).width(),"background-color":"white"}),$("#searchbarfixedcontent").css({"z-index":"99999",position:"fixed",bottom:"1%","max-width":$(window).width(),"background-color":"white"}));let k="scooters"==dLayer1.vehicle_type_new?"scooter":"",p=dLayer1.oem_name,r=0<$("#hiddeninputforsearchbar").length?$("#hiddeninputforsearchbar").data("onlyelectric"):0,t=ga_vehicleType;if("recentViewModelBike"==
ga_vehicleType||"recentViewModelCar"==k)t="4Wheeler";let y=k;if("recentViewModelBike"==k||"recentViewModelCar"==k||""==k)y="4Wheeler";"best"==SOURCE&&"scooter"==k&&(y="2Wheeler");$.get(SITEPATH+"/tpl/popular_car_bike_slider_tpl.php",{source:SOURCE,eventCategory:EVENT_CATEGORY,vehicleType:t,bodyType:y,makeDisplayName:p,onlyelectric:r,ga_vehicleType:t},function(z){$("#searchbarfixedcontent").html(z);zwSliderSmall();zwSliderMini();if("new-car-home"==SOURCE||"new-bike-home"==SOURCE||"new-scooter-home"==
SOURCE)$("#searchbarfixedcontent").find(".zwSliderSmall").find(".sl-card").css("min-width","100px"),$("#searchbarfixedcontent").find(".zwSliderSmall").find(".sl-card").find(".sl-img").css("min-height","60px");"home-ev"==SOURCE&&($("#searchbarfixedcontent").find(".zwn-by_brand").find(".uc-heading").css({color:"inherit","font-family":"Poppins","font-weight":"500","text-align":"left"}),$("#searchbarfixedcontent").find("a").find("div").css({color:"black"}),$("#searchbarfixedcontent").find(".zwSliderSmall").find(".block").css({color:"black"}),
$("#searchbarfixedcontent").find(".zwn-by_brand").find(".v-lnk").css({"text-align":"center"}));"community"==SOURCE&&$("#searchbarfixedcontent").find(".zwn-by_brand").find(".v-lnk").css({"text-align":"center"});setTimeout(()=>{var C=$(window).height()-$("#searchbarfixedcontent").height()-100;$(".commonsearch_ul.active").css({height:C,overflow:"scroll","box-shadow":"0 7px 12px 1px #fff","max-height":"1200px",border:"none"});$("#searchbarfixedcontent").show()},800)},0)}});yieldMainUiZW(()=>{var k=$(window).height()-
$("#searchbarfixedcontent").height()-100;$(".commonsearch_ul.active").css({height:k,overflow:"scroll","box-shadow":"0 7px 12px 1px #fff","max-height":"1200px",border:"none"});$("#searchbarfixedcontent").show();f()})}),$(".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();$("#searchbarfixedcontent").hide();1<=$(".r-srch").length&&$(".r-srch").show();f()});else $("header .h-srch, .zw-home-input-search").on("click",function(){$(".commonsearch_ul").addClass("active")})});setTimeout(()=>{$(".ask_tb").gsp_popup({inline:!0,width:"90%",transition:"fade"})},1E3);$(".ask_tb").on("click",function(){$("body").addClass("m-hide");setTimeout(()=>{$("#gspp_Close,#gspp_Overlay").on("click",function(){$("body").removeClass("m-hide")})},1E3)});setTimeout(()=>
{767>screen.width&&bikeCarw()},2E3);var q=navigator.userAgent,u=/iPad|iPhone|iPod/.test(q);q=/OS 11_0|OS 11_1|OS 11_2/.test(q);u&&q&&$("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(()=>{var l=
$(".uc-overcontent").outerHeight();$(".uc-overcontent").css("height",l)},2E3),$(".readMore").on("click",function(){setTimeout(()=>{$(".overview-content").css("height",contentHeight)},2E3)}));if("/web_form.php"!=pageSource&&1==isUserLoggedIn){checkForumLoginHeaderValue();1==searchHashParams.get("is_amp_garage")&&setTimeout(()=>{forum_add_garage_widget()},3E3);1==searchParams.get("open_rating_form")&&(modelId_tmp=0<$("#modelId").length?$("#modelId").val():0<$("#modelIdReview").length?$("#modelIdReview").val():
pageSuggestModelId,show_forum_add_review_popup("","rate_only",modelId_tmp));if(1==searchParams.get("open_review_form")||1==searchHashParams.get("open_review_form"))modelId_tmp=0<$("#modelId").length?$("#modelId").val():0<$("#modelIdReview").length?$("#modelIdReview").val():pageSuggestModelId,show_forum_add_review_popup("","rate",modelId_tmp);if(searchParams.get("questionId")){u=searchParams.get("postText");q=searchParams.get("questionId");var B="answer";localStorage.setItem("postText",u);localStorage.setItem("postQuestionId",
q);localStorage.setItem("postType",B)}}else{u=Get_Cookie("SHORTLIST");var D=0;null!=u&&(slArray=u.split(","),jQuery.each(slArray,function(l,k){$(".dv_shortlist_"+k).addClass("a");$(".shortlist_"+k).addClass("selected");$(".dv_shortlist_"+k).prop("title","shortlisted");D=l+1}));window.slLength=D;0<D&&($(".dv_shortlist_count").show(),$(".shortlist_count").html(D).show());1!=searchHashParams.get("is_amp_login")&&1!=searchHashParams.get("is_amp_garage")&&1!=searchParams.get("open_review_form")&&1!=searchHashParams.get("open_review_form")&&
1!=searchParams.get("open_rating_form")||0!=isUserLoggedIn||(searchParams.get("questionId")&&0==isUserLoggedIn&&(u=searchParams.get("postText"),q=searchParams.get("questionId"),B="answer",localStorage.setItem("postText",u),localStorage.setItem("postQuestionId",q),localStorage.setItem("postType",B)),call_login_popup(EVENTCATAGORY,SOURCE,""))}yieldMainUiZW(()=>{loadAddGarageWidget();loadReviewImageSlider()});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(){hitGtmPageView("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"))});idleZWCb(function(){setTimeout(()=>{$(".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")}})},
10)});if(992>$(window).innerWidth()){function l(){$(".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(k){var p=$(this).attr("accordion");$(k.target).is(".active")?l():(l(),$(this).addClass("active"),$(".accordion "+p).slideDown(300).addClass("open"));
k.preventDefault()});$("#menuIcon").on("click",function(){$(".menuOverlay").toggleClass("open")});$("#menuIcon").on("click",function(){$(this).toggleClass("open");if($(this).hasClass("open")&&$(document).height()>$(window).height()){var k=$("html").scrollTop()?$("html").scrollTop():$("body").scrollTop();$("html").addClass("noscroll").css("top",-k)}else k=parseInt($("html").css("top")),$("html").removeClass("noscroll"),$("html,body").scrollTop(-k);$("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 l=$(this).find("a").attr("href").split("/");"used-car"==l[l.length-1]&&del_cookie("selected_city")});idleZWCb(function(){setTimeout(()=>{var l=getUrlParameter("lop");""!=Get_Cookie("selected_city")&&null!=Get_Cookie("selected_city")||""==l?updateGeoCityOnpage():getUserLocation(l)},10)});$(".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 E=0;idleZWCb(function(){$(window).on("scroll",function(){var l=Get_Cookie("financeLead");if(void 0!=l&&null!=l)var k=l.split("@")[0];else l=Get_Cookie("modelCookieData"),""!=l&&null!=l&&void 0!=l&&(k=JSON.parse(l)[0].id_model);l=$(window).scrollTop();5500<=l&&0<$(".zw-connecto-ctr").length&&
Get_Cookie("removeBanner")!=k&&$(".zw-connecto-ctr").addClass("active");var p;if(p=0<$(".connecto-hideshow").length){p=$(".connecto-hideshow");var r=$(window),t=r.scrollTop();r=t+r.height();var y=p.offset().top;p=y+p.height()<=r&&y>=t}p?$(".zw-connecto-ctr").removeClass("active"):Get_Cookie("removeBanner")!=k&&550<=l&&($(".zw-connecto-ctr").addClass("active"),0==E&&(E=1,setGtmTracking(EVENTCATAGORY,"finance-connecto-banner-show")))})});idleZWCb(function(){mobile_login_div();setTimeout(()=>{getCentralUsersData(1)},
1E3)});$("#myModal3").on("hide.bs.modal",function(){"undefined"!==typeof Storage&&localStorage.removeItem("login_purpose")});768>$(window).innerWidth()&&"undefined"!=typeof ZW_LOGO_WAP_TITLE&&""!=ZW_LOGO_WAP_TITLE&&0<$(".zw-logo-a").length&&"home-ev"!=SOURCE&&($(".zw-logo-a").prop("title",ZW_LOGO_WAP_TITLE),$(".w-site-logo").prop("alt",ZW_LOGO_WAP_TITLE));$(window).scroll(function(){adGaTrigger()});adGaTrigger()});
function adGaTrigger(){idleZWCb(function(){0<$(".comparo-ad").length&&$(".comparo-ad").each(function(){1==$(this).isInViewport()&&($(this).removeClass("comparo-ad"),setGtmTracking(eventCategory,$(this).data("track-label"),"view",1,1))})})}
function loadAddGarageWidget(){if(0<$("#addGarageCon").length&&"IntersectionObserver"in window){var b=new IntersectionObserver(function(c){0>=c[0].intersectionRatio||(b.unobserve(document.querySelector("#addGarageCon")),$.get(SITEPATH+"/tpl/forum_add_garage_widget_tpl.html",{loadWidgetUsingAjax:1,source:SOURCE,eventCategory:EVENT_CATEGORY},function(d){$("#addGarageCon").html(d);$("#addGarageCon").find("img[data-gsll-src]").gsp_lazyload($("#addGarageCon"))}))},{rootMargin:"1200px"});b.observe(document.querySelector("#addGarageCon"))}}
function getCentralUsersData(b){b=1==b?Get_Cookie("central_user_data"):0;"www.cardekho.com"!=location.host&&"www.bikedekho.com"!=location.host&&"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="",g="",f=2;f<arguments.length;f++)d=f+1,c+=arguments[f],d<arguments.length&&(c+="|");f=arguments[0];d=arguments[1];"header_new_car_on_road_price"==f||"header_new_bike_on_road_price"==f?(e="Top Navigation Button",g=b+" \u2013 On Road Price"):"get_all_model_of_brand"==f?(e="Brand Category Landing Page",g=b+" \u2013 Get on Road Price"):"model_detail"==f?(e="Product Summary Page",g=b+" \u2013 Get on Road Price"):"variant_details"==f?(e="Product Summary Page",
g=b+" \u2013 Get on Road Price"):"variant_detail_page"==f?(e="Product Variant Summary Page",g=b+" \u2013 Get on Road Price"):"search_result_page"==f?(e="Search Result Page",g=b+" \u2013 Get on Road Price"):"comparison-page"==f?(e="Comparison Page",g=b+" \u2013 Get on Road Price"):"price-quote"==f?(e="Price Quote Landing Page",g=b+" \u2013 Show on Road Price"):"mobile-popup"==f?(e="Verification Process Pop-Up",g=b+" \u2013  Verification Pop-Up"):"mobile-popup-err"==f?(e="Verification Process Pop-Up",
g=b+" \u2013  'No Miss Call Yet' Error Massage"):"mobile-popup-change-no"==f?(e="Verification Process Pop-Up",g=b+" \u2013 Change Mobile No. - Submit"):"price-quote-get-best-deal"==f?(e="Leads Confirmation Page",g=b+" - Get Best Deals"):"price-quote-save-pdf"==f?(e="Leads Confirmation Page",g=b+" - Save as PDF"):"price-quote-see-dealer"==f?(e="Leads Confirmation Page",g=b+" - See Dealers'"):"model_detail_summary"==f?(e="Product Summary Page",g=b+" - Free Price Quote'"):"price-quote-popup"==f?(e="on-road-price-form-pop-up",
g=b+" - Get on Road Price"):"insurance-New"==f?(e=b+" - New Insurance Leads",g=b+" - Submit Button"):"insurance-Renew"==f?(e=b+" - Renewal Insurance Leads",g=b+" - Submit Button"):"Maintenance-Calculator"==f?(e="New Car Maintenance Page",g="Check Maintenance Cost"):"Maintenance-Calculator-Make-Page"==f?(e="Brand Category Landing Page",g="Maintenance Cost"):"Maintenance-Calculator-Model-Page"==f?(e="Product Summary Page",g="Maintenance Cost"):"Maintenance-Calculator-Variant-Page"==f?(e="Product Variant Summary Page",
g="Maintenance Cost"):"maintenance-calculator-drop-down"==f?(e="Navigation Drop Down",g="Maintenance Calculator Button"):"maintenance-calculator-new-car-banner"==f?(e="New Car Page - Banner",g="Maintenance Calculator Banner"):"maintenance-calculator-home-page"==f?(e="Home Page \u2013 Main Banner Navigation",g="Maintenance Calculator Button"):"continue-in-app"==f?(e="Banner Clicks",g="Continue in App"):"continue-in-browser"==f?(e="Banner Clicks",g="Continue in Browser"):"make-page-dialer-ad"==f&&(e=
"Make Page-Dialer Ad",g="Dialer Ad");""!=c&&"pageview"==d?g=c:""!=c&&(g+=":"+c);""!=d&&""!=e&&"undefined"!=typeof ga&&("pageview"==d?setGtmTracking(d,g):setGtmTracking(d,g,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(g,f){$.each(f instanceof Array?f:[f],function(h,m){e.push('<input type="hidden" name="',g,'" value="',m,'"/>')})});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").hasClass("nw-mdl-lft")||$(".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(){yieldMainUiZW(()=>{$(".custom-select").each(function(){$(this).wrap("<span class='select-wrapper'></span>");$(this).after('<span class="SelectArrow"></span>')})})}function customSelectMake(){yieldMainUiZW(()=>{$(".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())})}
$(document).on("click",".shr-icn",function(b){if(767<$(window).innerWidth())$(this).find(".social-share2").hasClass("hidden")?$(this).find(".social-share2").removeClass("hidden"):$(this).find(".social-share2").addClass("hidden");else if(navigator.share){b=$(this).data("shretxt");""==b&&(b=document.title);let c=b.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-");navigator.share({title:b,url:location.protocol+"//"+location.host+location.pathname+"?utm_source=Mobile&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+
c}).catch(console.error)}else dShare(this,b)});function dShare(b,c){$(b).find(".social-share2").hasClass("hidden")?$(b).find(".social-share2").removeClass("hidden"):$(b).find(".social-share2").addClass("hidden");c.stopPropagation()}
function socialShare(){function b(){$("html").on("click",function(){$(".,.scl-shr 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()})}if(767<$(window).innerWidth())b();else if(1<=$(".ne-sw").length)$(document).on("click",".ne-sw",function(){if(navigator.share){let c=document.title.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-");navigator.share({title:document.title,
url:location.protocol+"//"+location.host+location.pathname+"?utm_source=Mobile&utm_medium=Social&utm_campaign=Post_11&utm_term=06062023_ZW&utm_content="+c}).catch(console.error)}else 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,g){setGtmTracking(b,d+"-"+gapage_name,c);window.location.href=g}
$(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("#geo_city_select_box").val("");""!=c?(destinationPage=c,destinationUrl=b):destinationUrl=destinationPage="";yieldMainUiZW(()=>{jQuery(".geoCityImage").each(function(){a=jQuery(this).attr("cityImageSrc");jQuery(this).attr("src",a)});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")):"www.cardekho.com"!=location.host&&"www.bikedekho.com"!=
location.host&&$.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(g){return g.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||"dealer_detail_page"==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,g){""==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:g},function(f){jQuery("#"+e).html(f)}):"/compare_cars_result.php"==pageSource?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,isLaunched:"1",parentId:d,isVarLaunched:g},function(f){jQuery("#"+e).html(f)}):"new-scooter-home"==EVENTCATAGORY?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,isLaunched:"1",parentId:d,
isVarLaunched:g,bodyType:"Scooters"},function(f){jQuery("#"+e).html(f)}):"home-ev"==SOURCE?jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,parentId:d,fuel_type:"electric",reviewModel:1},function(f){jQuery("#"+e).html(f)}):jQuery.post(TODBFILEPATH+"/fetch_mmv_options_2db.php",{fetch:b,isNew:c,parentId:d,isVarLaunched:g},function(f){jQuery("#"+e).html(f)})}
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 g=c[e].split("=");if("all"==b){var f={};f[g[0]]=g[1];d.push(f)}else if(g[0]==b)return g[1]}if("all"==b)return JSON.stringify(d)}
function checkreferrerIsSocialSite(b){for(var c="facebook youtube twitter linkedin plus.google pinterest instagram blogger reddit disqus slideshare stackoverflow google.gl naver bitly pocket tripadvisor digg glassdoor quora".split(" "),d=0;d<c.length;d++)if(b.includes(c[d]))return c[d];return!1}
function checkreferrerIsSEOOrganicSite(b){for(var c="google yahoo bing ask msn ampproject images.google globo babylon yandex aol avg search-results baidu haosou.com go.mail.ru daum startsiden sogou seznam incredimail virgilio comcast onet so.com lycos rakuten rambler goo.ne centrum.cz kvasir eniro biglobe search.smt.docomo auone conduit tut.by".split(" "),d=0;d<c.length;d++){var e=c[d].toLowerCase(),g=b.match(new RegExp("(^|\\W)"+e+"($|\\W)")),f=b.includes("?is_amp=1");if(g||f){if(f||"ampproject"==
e)e="google";return e}}return!1}
function trackUTMParameters(){try{var b=document.referrer,c=window.location.host,d=c.replace(/^https?:\/\//,""),e=Get_Cookie("lastUTMParamter"),g=new URLSearchParams(window.location.search),f=g.get("utm_source"),h=g.get("utm_medium"),m=g.get("utm_campaign")?g.get("utm_campaign"):null,n=g.get("gclid")?g.get("gclid").trim():null;n&&10<n.length||b&&(b.includes("aclk")||b.includes("googleads.g.doubleclick.net"))?(f=f?f:"google",h=h?h:"cpc"):b&&checkreferrerIsSocialSite(b)?(f=f?f:checkreferrerIsSocialSite(b),
h=h?h:"social"):b&&checkreferrerIsSEOOrganicSite(b)?(f=f?f:checkreferrerIsSEOOrganicSite(b),h=h?h:"organic"):b&&-1==b.indexOf(d)?(f=f?f:b.replace(/^https?:\/\//,""),h=h?h:"referral"):b&&-1!=b.indexOf(d)?(f=f?f:"direct",h=h?h:"none"):b?(f=c?d:"direct",h=c?"referral":"none"):(f=f?f:"direct",h=h?h:"none");Set_Cookie("utm_source",f+"/"+h,-1);if("direct"!=f){var v=getUrlParameter("all");""!=v&&Set_Cookie("utm_params",v,-1)}null!=m&&Set_Cookie("utm_campaign",m,-1);b=f+"#"+h+"#"+m;null==Get_Cookie("firstUTMParamter")&&
Set_Cookie("firstUTMParamter",b,-1);c=!1;"undefined"==typeof e||null===e?c=!0:"direct"!=f&&e!=b&&(c=!0);c&&Set_Cookie("lastUTMParamter",b,-1)}catch(w){console.error(w.message)}}$.ajaxPrefilter(function(b,c,d){b.async=!0;"undefined"!=typeof _connecto&&"function"==typeof _connecto.getIdentity&&Set_Cookie("connecto_identity",_connecto.getAnonymousId())});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,g,f,h){callGTMLayerEventInner(b,c,d,"",e,g,f,h)}function callGTMLayerEventInner(b,c,d,e,g,f,h,m){var n={};n.gtmEvent=b;n.gtmdcbOffer=g;n.gtmLocation=d;n.gtmfieldname=e;n.gtmModelName=c;n.gtmMakeName=f;n.gtmCity=h;n.gtmLeadId=m;GTMLayerTracker(n)}
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 getReviewTextarea(b){var c=$(b).data("modelid"),d=$(b).data("iselectric"),e=$(b).data("cob"),g=$(b).data("srctemp");b=$(b).data("displayname");$.ajax({type:"GET",url:SITEPATH+"/tpl/review_input_tpl.php",data:"&event_category="+EVENTCATAGORY+"&is_electric="+d+"&model_id="+c+"&cob="+e+"&src_temp="+g+"&source="+SOURCE+"&display_name="+b,success:function(f){0<$("#write_review_modal").legth&&$("#write_review_modal").html("");$("#model-review-input").html(f)}})}
function show_forum_add_review_popup(b,c,d,e="no",g="yes"){if("undefined"===typeof Storage||null==localStorage.getItem("community_post_thread")||""==localStorage.getItem("community_post_thread")){"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="";var f="";"variant"==
SOURCE&&"undefined"!=typeof p_mm_data&&(f=p_mm_data.variant_id);var h="/tpl/write_review_ajax_tpl.php";"rate_only"==c&&(h="/tpl/rate_model_ajax_tpl.php");$.ajax({type:"POST",url:SITEPATH+h,data:"&forumAskOwnerEventCategory="+EVENTCATAGORY+"&mdid="+b+"&mode="+c+"&modelId="+d+"&addGarage="+e+"&displayOwnLabel="+g+"&isReviewWidget="+isReviewWidget+"&variant_id="+f,success:function(m){"NO_DATA"==$.trim(m)?setTimeout(()=>{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),hitGtmPageView("forum-review-popup-open")),"function"==typeof findMaxMinMileage&&setTimeout(()=>{findMaxMinMileage(d)},2E3),0<$("#model-review-input").legth&&$("#model-review-input").html(""),$("#write_review_modal").html(m),$("#write_review_modal").modal("show"),0<$("#gm_review_detail").length&&$("#gm_review_detail").focus(),localStorage.setItem("forum_garage_no","0"),$("#forum_add_garage_widget").removeClass("hidden"),
setTimeout(()=>{$("body").addClass("modal-open")},800),n_chk(),customSelect(),del_cookie("login_via_garage"))}})}}function isModalVisible(){if($("body").hasClass("modal-open"))return!1}
function show_forum_add_garage_popup(b){isModalVisible();"function"==typeof reDeclarePopUpVariable&&reDeclarePopUpVariable();"undefined"==typeof b?(callGaTracking(EVENTCATAGORY,"open","add_vehicle_popup_open",0),hitGtmPageView("add_vehicle_popup_open"),b=0):(callGaTracking(EVENTCATAGORY,"open","thankyou_popup_open",0),hitGtmPageView("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&&1!=isUserLoggedIn||$.ajax({type:"POST",url:TODBFILEPATH+"/forum_add_garage_popup_2db.php",data:"&loginUserId="+window.loginUserId+"&forumAskOwnerEventCategory="+
EVENTCATAGORY+"&thanksSts="+b+c,success:function(d){if("NO_DATA"!=$.trim(d)&&30<d.length){if("undefined"!=typeof b&&1!=b)try{var e=JSON.parse(b);"object"==typeof e&&1==e.pre_thank_you&&("review"==e.mode||"rate_only"==e.mode)&&0<$(".thank-scr-x").length&&($(".no-thank-scr-x").addClass("hidden"),$(".thank-scr-x").removeClass("hidden"),$(".thank-scr-x").data("trackLabel","add-photo-video-popup-skip"),$(".thank-scr-x").addClass("pre-thanks-skip"))}catch(g){}$("#garagepopup").remove();$("#confirm_thankyou").html(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(()=>{$("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"));
if(0<$("#mm_model_id").length&&"function"==typeof findMaxMinMileage){let g=$("#mm_model_id").val();$.isNumeric(g)&&0<g&&setTimeout(()=>{findMaxMinMileage(g)},500)}}});$("#re-w").modal("hide")}$(document).on("click",".pre-thanks-skip",function(b){b.preventDefault();hidePreThankYouScreen()});
function hidePreThankYouScreen(){0<$(".no-thank-scr-x").length&&$(".no-thank-scr-x").removeClass("hidden");0<$(".thank-scr-x").length&&$(".thank-scr-x").removeClass("pre-thanks-skip").addClass("hidden");0<$("#photovideopopup").length&&$("#photovideopopup").remove();0<$("#garagepopup").length&&$("#garagepopup").removeClass("hidden")}var userIdNew="";
function checkForumLoginHeaderValue(){var b=1;767<screen.width&&(b=0);$.ajax({type:"GET",data:{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 m=$(this).attr("data-hSprite");$(this).addClass(m+" ")})}}));$("#new_login_div").hide();if("undefined"!==typeof Storage)var d=
localStorage.getItem("inappropriateAnsId"),e=localStorage.getItem("reasonValue");setTimeout(()=>{if("undefined"==typeof d||""==d||null==d)$("#forum_login_div_sm").show(),"forum-profile-page"!=SOURCE&&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 g=$("#loginEmailId").val(),f=$("#loginUserImage").val(),h=$("#loginUserImageDefault").val();
$("#forum_login_wrap_lg").removeClass("h-sib");767>screen.width&&($("#forum_login_cover_image_sm").attr("onerror","this.onerror=null;this.src='"+h+"';"),$("#forum_login_cover_image_sm").attr("src",f),$("#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(g);""==$("#idUpdateUserName").val()&&($("#idUpdateUserName").val(c),$("#idUpdateEmail").val(g));"yes"==$("#loginHasGarage").val()&&
$("#forum_add_garage_widget").hide();f=Get_Cookie("forumLoggedInUser");$.ajax({type:"GET",url:SITEPATH+"/tpl/get_helpful_nodeid_for_loggedinuser_tpl.php",data:{loginUserId:window.loginUserId},success:function(m){localStorage.setItem("loggedInUserHelpfulNodeId",m);setTimeout(()=>{"function"==typeof helpfulActive&&helpfulActive()},1E3)}});null==f?(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(m){m=localStorage.getItem("helpfulNodeId");if("undefined"!=typeof m&&""!=m&&null!=m){m=m.split(",");for(var n=0;n<m.length;n++){var v=m[n].split("#");if("like"==v[2]&&($("#span_like_"+v[0]).addClass("liked"),$("#anchor_"+v[0]).addClass("a"),$("#anchor_"+v[0]).data("helpful","unlike"),"/index.php"==pageSource||"/make.php"==
pageSource)){var w=$("#anchor_"+v[0]+" .nodeLikeCount").text();w=$.trim(w);w=parseInt(w)+1;$("#anchor_"+v[0]+" .nodeLikeCount").text("("+w+")")}}setTimeout(()=>{localStorage.removeItem("helpfulNodeId")},2E3)}}}))):shortlist(0);""!=sessionStorage.votedModel&&"comparison-result"==gapage_name?(Set_Cookie("forumLoggedInUser","1"),sessionStorage.pageRefreshedAfterLogin="yes"):null==f&&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"),f=Get_Cookie("ask_ques_owner"),""!=f&&void 0!=f&&null!=f||"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()):(f=parseInt(f)+1,Set_Cookie("forumLoggedInUser",f));localStorage.setItem("forum_header_userId",window.loginUserId);localStorage.setItem("forum_header_userName",
c);localStorage.setItem("forum_header_email",g);setTimeout(()=>{"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"),g=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(){("model"==SOURCE||"upcoming-model"==SOURCE)&&1024<=$(window).innerWidth()&&0<$(".stickyRhs").length&&setTimeout(()=>{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(),g=$(".bodyLeft:last").height(),f=$(".bodyRight:last").height();$('<div id="lastRhs"></div>').insertBefore(b);if(g>f)$(window).on("scroll",function(){var h=$("#lastRhs").offset().top-
150-c,m=$("footer").offset().top-d-65-c,n=$(window).scrollTop();h<n?0<c?b.css({position:"fixed",top:"200px",width:e}):b.css({position:"fixed",top:"65px",width:e}):b.css("position","static");m<n&&b.css({top:m-n})})},5E3)}function goToUrl(b,c){if(void 0===c||""==c)c="_self";"_blank"==c?window.open(b,c):window.location.href=b}
function goToAppUrl(b,c){if(void 0===c||""==c)c="_blank";window.open(browserDetect.isIos?"https://itunes.apple.com/us/app/zigwheels-new-cars-used-cars/id704453976?ls=1&mt=8?utm_source="+b:"https://play.google.com/store/apps/details?id=com.til.zigwheels&referrer=utm_source="+b,c)}function scrollToPosition(b){b=$(b).offset().top-150;$("body, html").animate({scrollTop:b})}
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,g){"1"==g.item.is_child?(jQuery("#"+b).attr("city_id",g.item.parent_city_id),jQuery("#"+b).attr("city_url_name",g.item.parent_city_name),jQuery("#"+b).attr("sub_city_id",g.item.id),jQuery("#"+b).attr("id_cd",g.item.idCd),jQuery("#"+b).attr("value",g.item.value),jQuery("#"+b).attr("name_cd",
g.item.nameCd),jQuery("#"+b).val(g.item.label)):(jQuery("#"+b).attr("city_id",g.item.id),jQuery("#"+b).attr("city_url_name",g.item.name),jQuery("#"+b).val(g.item.label),jQuery("#"+b).attr("sub_city_id",""),jQuery("#"+b).attr("id_cd",g.item.idCd),jQuery("#"+b).attr("value",g.item.value),jQuery("#"+b).attr("name_cd",g.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,g){var f=this,h="";$.each(g,function(m,n){n.group_parent!=h&&(e.append("<li class='ui-autocomplete-category groupHead'>"+n.group_parent+"</li>"),h=n.group_parent);m=f._renderItemData(e,n);n.group_parent?m.attr("aria-label",n.group_parent+" : "+n.value):m.addClass("secondp")});$(".subcity_subClass").appendTo("#subcityDiv")};$(this).data("uiAutocomplete")._renderItem=function(e,g){g=g.value;return $("<li>").append($("<a>").html(g)).appendTo(e)}}).autocomplete("widget").addClass(b+"_subClass")})}
function askQuestionLink(b,c,d,e,g,f=""){"undefined"==typeof g&&(g=1);"/qna/ques"==e&&(e="/qna");1==g&&0<$("#n-askInput").length&&768>$(window).innerWidth()?$("#n-askInput").focus():window.location.href="/newcars/"==b?SITEPATH+"/"+c+"-cars/"+d+e+f:"/newbikes/"==b?SITEPATH+"/"+c+"-bikes/"+d+e+f:SITEPATH+b+c+"/"+d+e+f;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;20<$(window).scrollTop()&&($("header").css({"min-height":"55px"}),$("#headerNewNavWrap").hide());$(window).on("scroll",function(){var f=$(window).scrollTop();768<$(window).innerWidth()&&(20<f&&$("header").css({"min-height":"55px"}),30<f?$("#headerNewNavWrap").hide():0==$("#headerNewNavWrap:visible").length&&($("header").css({"min-height":""}),
$("#headerNewNavWrap").show()));if(f>=d)if(f>=c)if(e>f){var h=$("header").outerHeight();b.addClass("mmv-f").css("transform","translateY("+h+"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!=f||$("#menuIcon").hasClass("open")||$("header").removeAttr("style").removeClass("h-fix");
e=f});0<$("#mmv_more_link").length&&0<$("#mmv_more_link_li").length&&$("#mmv_more_link").appendTo("#mmv_more_link_li");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 g=0;$(window).width();$(".mmv-nv").parent("div").addClass("mmv-scrl");$(".mmv-nv > li").each(function(){g+=$(this).width()+10});$(".mmv-nv").css("width",g);setTimeout(()=>{1<=$(".mmv-nv a.active").length&&($(".mmv-nv a.active").parent("li").offset(),$(".mmv-nv a.active").parent("li").outerWidth())},1E3)}}else 768<$(window).innerWidth()&&
(d=$(window).height()/2-100,$("header").outerHeight(),$("header").css({position:"sticky",top:"0",left:"0"}),$(window).scroll(function(){$(window).scrollTop()>=d+200&&($("header").css({"min-height":"55px"}),$("#headerNewNavWrap").hide());200>=$(window).scrollTop()&&($("header").css({"min-height":""}),$("#headerNewNavWrap").show())}))}function lgntp_h(){var b=$(window).height(),c=$(".lgn-btm").outerHeight();b-=c;$(".fo-nw-login").height(b)}
function mNav(){if(991>screen.width){lgntp_h();$(window).on("resize",function(){lgntp_h()});function b(){0<$("#connecto_sldr").length&&setTimeout(()=>{$("#connecto_sldr").gsp_carousel({item:1,pager:!1,slideMargin:10,enableDrag:!0,slideMove:1,controls:!1,showUpcoming:!0,upcomingPercent:10})},1E3)}$("#h-m-icn").on("click",function(){yieldMainUiZW(()=>{b()});yieldMainUiZW(()=>{$(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(){yieldMainUiZW(()=>{$(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(){yieldMainUiZW(()=>{$(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(){yieldMainUiZW(()=>
{$(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(){yieldMainUiZW(()=>{$(".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(()=>{$("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(()=>{$("#d-shrtl").appendTo("#m-shrtl")},1E3)}
function call_login_popup(b,c,d,e=!1){b="&eventCategory="+b+"&source="+c+"&request_uri="+window.location+"&login_case="+e;"www.cardekho.com"!=location.host&&"www.bikedekho.com"!=location.host&&0==window.isUserLoggedIn&&$.ajax({url:SITEPATH+"/tpl/forum_login_header_ajax_tpl.php",type:"POST",data:b,success:function(g){if("one-tap-alternate"==e&&0<$("#ot-alt").length)$("#ot-alt").html(g),0<$("#oneTapAlternateLoginPopup").length&&($("#oneTapAlternateLoginPopup").modal({backdrop:!1,show:!0}),localStorage.setItem("login_purpose",
"one-tap-alternate"),$(".modal-backdrop").removeClass("in"),$("body").removeClass("modal-open"));else{991>screen.width?($("#new_login_div").html(g),$("#forum_login_div_sm").hide()):$("#myModal3-modal-content").html(g);g=new URLSearchParams(window.location.search);var f=new URLSearchParams(location.hash.substring(1));1==f.get("is_amp_garage")&&setTimeout(()=>{forum_add_garage_widget()},2E3);1==f.get("is_amp_login")&&modifyLoginScreen("default");1==g.get("open_rating_form")&&(modelId_tmp=0<$("#modelId").length?
$("#modelId").val():0<$("#modelIdReview").length?$("#modelIdReview").val():pageSuggestModelId,show_forum_add_review_popup("","rate_only",modelId_tmp));if(1==g.get("open_review_form")||1==f.get("open_review_form"))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=""){"function"==typeof reDeclarePopUpVariableWithArray&&reDeclarePopUpVariableWithArray();1==b&&(isReviewWidget=1,setGtmTracking(EVENTCATAGORY,"review-widget-button-click","click"));"undefined"!==typeof Storage&&null!=localStorage.getItem("reviewCtaClickAfterLead")&&setTimeout(()=>{del_cookie("write_review_cta_after_lead");localStorage.removeItem("reviewCtaClickAfterLead")},1E3);selectModelForReview=1;forum_add_garage_widget()}
function forum_add_garage_widget(b){yieldMainUiZW(()=>{isUserInfoScrVisible();"function"==typeof reDeclarePopUpVariable&&reDeclarePopUpVariable();"undefined"!==typeof b&&(selectModelForReview=0)});var c="&loginUserId="+Get_Cookie("loginUserId")+"&forumAskOwnerEventCategory="+EVENTCATAGORY+"&openMode="+selectModelForReview;"undefined"!=typeof viaPage&&(c+="&viaPage="+viaPage);$.ajax({type:"GET",url:TODBFILEPATH+"/forum_profile_garage_popup_2db.php",data:c,success:function(d){"NO_DATA"!=$.trim(d)&&
30<d.length&&yieldMainUiZW(()=>{$("#garagepopup").remove();$("#confirm_thankyou").html("");$("#confirm_thankyou").html(d);open_Addvhcl();$(".zw-thnku-ctr").css("display","none");$("#confirm_thankyou").css("display","block");$("#forum_submit_popup").modal("show");setTimeout(()=>{$("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),hitGtmPageView("add_vehicle_popup_open"))});yieldMainUiZW(()=>{"function"==typeof listUserState&&listUserState();"undefined"!==typeof b&&($(b).is('[data-vehicle="car"]')?(add_car_bike=1,isCar=!0,$("#carOrBikeInput").val("4Wheeler"),$("#modelHeading").html("Which car do you own?"),$("#modelSearch").attr("placeholder",
"Type your car's name e.g Creta, Thar")):(add_car_bike=1,isCar=!1,$("#carOrBikeInput").val("2Wheeler"),$("#modelHeading").html("Which bike/scooter do you own?"),$("#modelSearch").attr("placeholder","Type your bike's name e.g Shine, Hunter")));setTimeout(()=>{},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");yieldMainUiZW(()=>{var g={"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 "+g);$(".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?($(".login-desc.default").removeClass("hidden"),$(".hd-ctr").hide(),0<$("#gmavg_rating").length?($("#rating_txt").closest("div").show(),$("#rating_txt").html($("#loginPopupRatingTxt").html()+
$("#gmavg_rating").html()+"/5")):($("#review_txt").closest("div").show(),$("#review_txt").html($("#gm_review_detail").val()))):$("#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.removeItem("add_garage_without_login"),1==sessionStorage.getItem("add_garagae_modify_popup")?(sessionStorage.removeItem("add_garagae_modify_popup"),show_forum_add_garage_popup(data)):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},function(e){if(0<e.length){var g=Get_Cookie("SHORTLIST"),f=0;null!=g&&(slArray=g.split(","),jQuery.each(slArray,function(h,m){$("#shortlist__"+m).addClass("a");$(".dv_shortlist_"+m).addClass("a");$(".shortlist_"+m).addClass("selected");$(".dv_shortlist_"+m).prop("title",
"shortlisted");f=h+1}));767>=$(window).innerWidth()?(0<f&&$(".dv_shortlist_count").show(),$(".shortlist_count").html(f),$("#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<f?($("#wishlist-"+b).hide(),$(".shortlist_count").html(f)):$("#shortlistDivDesktop").html(e);$(".h-del").on("click",
function(h){h.stopPropagation()});1==f&&0<b&&0==window.isUserLoggedIn&&1==window.showLoginForShortlist&&window.slLength<f&&(window.showLoginForShortlist=0,checkForumLoginHeaderValue(),setGtmTracking(EVENTCATAGORY,"forum-track-login-popup-add-wishlist"),modifyLoginScreen("shortlist"),window.loginShownForShortlist=1);1==window.isUserLoggedIn&&0<b&&f>window.slLength&&setGtmTracking(EVENTCATAGORY,"shortlist-with-login");0<b&&(window.slLength=f);-1==b&&null!=g&&(slArray=g.split(","),0<slArray.length&&
(b=slArray[0]));1==window.isUserLoggedIn&&null!=g&&0<b&&0<d&&"short_list"==sessionStorage.getItem("garage_button_submit")&&postSubmitMessage({model_id:b})}})}function notificationlist(b,c){jQuery.post(SITEPATH+"/tpl/notification_tpl.php?type="+b+"&total="+c,{eventCategory},function(d){0<d.length&&$("#notificationDesktop").html(d)})}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(g){$("#forum_submit_popup").modal("show");$("#confirm_thankyou").html(g);$("#confirm_thankyou").css("display","block");sessionStorage.removeItem("garage_button_submit")}})}function showLessContent(b,c,d,e){if(0<$("#"+b).length&&0<$("#"+c).length){var g=$("#"+b).height();768>$(window).innerWidth()&&(e=d);g>e?($("#"+b).css("height",e),$("#"+c).removeClass("hidden")):$("#"+b).css("height","auto")}}
function showFullContent(b,c){$("#"+b).css("height","auto").css("max-height","");$("#"+c).addClass("hidden");yieldMainUiZW(()=>{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(),g=Get_Cookie("ask_ques_owner");""!=g&&void 0!=g&&null!=g&&(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"),callGaTracking("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"),callGaTracking("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"),callGaTracking("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 f=d;$.post(TODBFILEPATH+"/forum_get_model_wise_owner_list_2db.php",{tagged_model_id:f,pageUserId,loginUserId:c},function(m){var n="{tagged_user_list}"+m+"{/tagged_user_list}";$("#tagged_user_list").val(n);$("#forum_similar_model_id").val(f);$("#tag_owner_list").val(n);$("textarea#text_reply").val(n+e);$("#tagged_user_list").val(n);m={loginUserId:c,
taggedUserList:m,text:e,modelId:f,parentId:$("#parentid").val(),funcName:"submit_ask_question",nodeId:"",replyNodeId:""};insert_srnode_log(m);$("#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 h=
"{tagged_user_list}"+h+"{/tagged_user_list}";$("textarea#text_reply").val(h+e);$("#tagged_user_list").val(h);$("#forum_similar_model_id").val(f);$("#tag_owner_list").val(h);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(""==g||void 0==g||null==g)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(()=>{$(".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(()=>{$("."+d+"-model-ask").val(e)},1E3)}setTimeout(()=>{$("#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(()=>{$("#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(()=>{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("")});0<$(".more-card").length&&$(".more-card").each(function(){$ht=$(this).prev().outerHeight();$(this).outerHeight($ht)})}
function readMoreText(){yieldMainUiZW(()=>{$(".read-more").not(".rm").each(function(){var b=$(this).attr("data-height");0<b&&($(this).children(":first-child").outerHeight()>b?($(this).css("height",b).css("max-height",""),$(this).append('<span class="fnt-14 rmec jr-m c-p" style=" position: absolute; right: 0px; bottom: 0; padding-left: 5px; background-color: #fff;">...<span style="text-decoration:underline; color:rgba(36, 39, 44, 0.70)">Read More</span></span>'),$(this).addClass("rm")):$(this).css("height",
"").css("max-height",""))})})}
$(document).on("click",".read-more .rmec",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).parents(".read-more").hasClass("a")?(b=$(this).parents(".read-more").attr("data-height"),$(this).parents(".read-more").removeAttr("style"),$(this).parents(".read-more").css({height:b,overflow:"hidden"}),
$(this).parents(".read-more").removeClass("a"),$(this).parents(".read-more").children("span:last-child.rmec").addClass("jr-m c-p").removeClass("jr-l").html('<span style="color:#000;">...Read More</span>')):0==$(this).parents(".read-more").children("span:last-child.rmec").is(":visible")?($(this).parents(".read-more").attr("data-height"),$(this).parents(".read-more").css("min-height",""),$(this).parents(".read-more").children("span:last-child.rmec").show()):(b=$(this).parents(".read-more").children(":first-child").outerHeight(),
$(this).parents(".read-more").outerHeight(),$(this).parents(".read-more").css("min-height",b+6),$(this).parents(".read-more").children("span:last-child.rmec").addClass("jr-l c-p").removeClass("jr-m").html('<span style="color:#000;"></span>'),$(this).parents(".read-more").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(){setTimeout(()=>{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").gsp_carousel({item:1,controls:!0,enableDrag:!0,
slideMove:1,slideMargin:0,loop:!1,pager:!1,lazyLoad:!0,onBeforeNextSlide:function(c,d){hitGtmPageView("gallery_slide");setGtmTracking("eventCategory","gallery_scroll_next","click",0,0)},onBeforePrevSlide:function(c,d){b();hitGtmPageView("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 showVarMmv(){if("undefined"!=typeof navVariantList){var b="";0==$("#varData").find("#varSrRes").length&&(b='\n\t\t\t<ul id="varSrRes">',navVariantList.forEach(function(c){b+=`
			<li data-vid="${c.vid}" data-price="${c.price}" ${c.styleTag} data-tag-url="${c.href}" data-vnme="${c.vnme}" class="clr-bl" data-track-label="variant-change">
				${c.vnme}
				<span class="pull-right">${c.price}</span>
				<div class="clr"></div>
				<span class="fnt-12 pt-5 clr-try clr">
				${c.vspec}
				</span>

			</li>
			`}),b+="</ul>");$(document).on("click",".v-nme",function(){$("#varData").html(b)});if(767>$(window).innerWidth())$(document).on("click","li.var-lst,#choose-variant-cta",function(){setTimeout(()=>{$("#crosssell_mmv_cd .clf").css("z-index","0");""!=b&&$("#varData").html(b);$("#variantList").modal()},10)});else $("li.var-lst").hover(function(){$("#crosssell_mmv_cd .clf").css("z-index","0");if(1==$(this).hasClass("a"))return!1;""!=b&&$("#varData").html(b);$("#varData").appendTo(".var-lstCon li");var c=
$(".var-lstCon li #varData li").length;5<=c?$(".var-lstCon li #varData").height("240"):$(".var-lstCon li #varData").height(48*c);$(this).addClass("a")})}}
$(function(){767>screen.width&&$("#search-cont").removeClass("visible-lg").addClass("hidden");zwMenu();addvertise();HeaderSticky();yieldMainUiZW(()=>{mobileSearch()});yieldMainUiZW(()=>{mNav()});trackUTMParameters();0<$(".nm-topSlider").length&&topSlider();reviewCol();yieldMainUiZW(()=>{hmcom()});researchMore();saveGargeViaRcNumber();n_userLogin();rhsStk();n_chk();m_shrtlist();shortListScroll();headerTab();yieldMainUiZW(()=>{showVarMmv()});767>=$(window).innerWidth()?(mobileNav(),newSearchDevice(),
bcWth(),getMobileOperatingSystem()):desktopNav();$.ajaxSetup({cache:!0});idleZWCb(()=>{var q=$(".pageZWJS").map(function(){var u=$(this);if(u.attr("data-txt"))return u.attr("data-txt");if(u.text())return u.text()}).get().join();""!=q&&getScript(JSFILEPATH+"/js_bundler_new.html?type=javascript&files="+q+"&version="+JS_VERSION)});idleZWCb(()=>{$(".pageZWForumJS").each(function(){$(this).text()&&$.getScript($(this).text())})});var b=0;$(".rw-tabW .srt-ul > li").each(function(){b+=$(this).outerWidth()+
15});$(".rw-tabW .srt-ul").css("width",b);var c=0;$("#review_tags > li").each(function(){c+=$(this).outerWidth()+15});$("#review_tags").css("width",c);sliderReadMore();readMoreText();customSelect();customSelectMake();1==isUserLoggedIn&&notificationlist(0,0);$("#notificationDesktop").on("click",function(){var q=$(this).find(".notification_count").text();notificationlist(1,q)});$("#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 d=
Get_Cookie("user_review");"open_written_review"!=window.location.search.substring(1).split("&")[0].split("=")[0]||""!=d&&void 0!=d&&null!=d||setTimeout(()=>{$(".wr_review").trigger("click")},1E3);0<$(".c-s").length&&$(".c-s").wrap("<span class='s-wr'></span>");d=Get_Cookie("user_review");""!=d&&void 0!=d&&null!=d&&submitWrittenReview();d=Get_Cookie("loginUserId");var e=localStorage.getItem("insertData"),g=localStorage.getItem("reasonNodeid");e=JSON.parse(e);null!=d&&null!=e&&$.ajax({type:"POST",url:SITEPATH+
"/tpl/inappropriate_ans_tpl.php",data:{reportIds:e,loginUserId:d,reportflag:2,reasonNodeid:g}}).done(function(q){"1"==q&&(localStorage.removeItem("reasonFlag"),localStorage.removeItem("insertData"),localStorage.removeItem("reasonNodeid"))});$("meta[property='og:title']").attr("content");"undefined"!=typeof pageSource&&"/web_form.php"!=pageSource&&idleZWCb(function(){setTimeout(()=>{getScript(JSFILEPATH+"/js_bundler_new.html?type=javascript&files=rvmp_helpful_review,rvmp_ad_commonscript&version="+
JS_VERSION,"","defer")},navigator.connection&&10>navigator.connection.rtt?2900:500)});"undefined"!=typeof SOURCE&&"media-campaigns"!=SOURCE&&"www.bikedekho.com"!=location.host&&idleZWCb(function(){setTimeout(()=>{var q=window,u=document,B="www.cardekho.com"==location.host?"GTM-P3WXB2":"GTM-MCTS4Z";q.dataLayer=q.dataLayer||[];q.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});q=u.getElementsByTagName("script")[0];u=u.createElement("script");u.defer=!0;u.src="//www.googletagmanager.com/gtm.js?id="+
B;q.parentNode.insertBefore(u,q)},navigator.connection&&10>navigator.connection.rtt?2900:800)});$("#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 q=Get_Cookie("selected_city"),u=Get_Cookie("geo_city");if(null!==q&&null!==
u&&(q=decodeURI(q),u=decodeURI(u),q==u))return q=q.replace(/\s/g,"-").replace(/_/g,"-").toLowerCase(),q=$(this).attr("href").replace(/on-road-Price-([^/-]+)$/i,"on-road-price-"+q),$(this).attr("href",q),!0});$(".n-rd").each(function(){$(this).wrap('<span class="rd-c chk-rd-s"></span>');setTimeout(()=>{1==$(this).is(":checked")&&($(this).parent(".rd-c").addClass("a"),$(this).parents("label").addClass("cr-w"))},1E3)});yieldMainUiZW(()=>{0<$("#forum_ask_question_widget").length&&askQuestionWidget()});
d=Get_Cookie("ask_ques_owner");localStorage.getItem("tag_owner_list");""!=d&&void 0!=d&&null!=d&&setTimeout(()=>{submit_ask_question()},500);if(1<=$("[data-sprite]").length)$(window).on("scroll",function(){$("[data-sprite]").each(function(){var q=$(window).scrollTop(),u=q+$(window).height(),B=$(this).offset().top;!0===(B+$(this).height()-200<=u&&B>=q)&&(q=$(this).attr("data-sprite"),$(this).removeAttr("data-sprite"),$(this).addClass(q+" "))})});if(void 0!=document.getElementById("tvc_close")&&0==
$(".mob-stick-btm").length){d=document.getElementById("tvc_close");e=document.getElementById("tvc_ok");g=document.getElementById("tvc_nothanks");var f=document.getElementById("tvc_cookie"),h=Get_Cookie("tvcCookieConsent"),m=document.getElementById("privacyPolicy");setTimeout(()=>{f.classList.add("a")},3E3);f.style.display="1"==h?"none":"block";window.dataLayer=window.dataLayer||[];d.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",
eventLabel:"Consent Close",consent:"False"})});g.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",eventLabel:"No Thanks",consent:"False"})});e.addEventListener("click",function(){Set_Cookie("tvcCookieConsent",1,800);f.style.display="none";dataLayer.push({event:"tvcCookieConsent",eventLabel:"maincta_click",consent:"True"})});m.addEventListener("click",function(){dataLayer.push({event:"tvcCookieConsent",eventLabel:"Privacy Policy",
consent:"False"})})}if(767<screen.width&&0<$("#footer-partners").length&&"IntersectionObserver"in window){var n=new IntersectionObserver(function(q){0>=q[0].intersectionRatio||(n.unobserve(document.querySelector("#footer-partners")),yieldMainUiZW(()=>{$("#footer-partners .rvmp_icon").addClass("gsc_co_open");$("#footer-partners .row").css("display","block")}))},{rootMargin:"800px"});n.observe(document.querySelector("#footer-partners"))}-1!=location.href.indexOf("#city_select")&&($('span[href="#city_select"].offerCity').click(),
d=window.location.href.replace(/#.*$/,""),window.history.replaceState("",document.title,d));var v=new URLSearchParams(window.location.search);d=new URLSearchParams(location.hash.substring(1));2==d.get("is_amp_garage")&&(localStorage.setItem("forum_garage_no",1),setTimeout(()=>{0<$("#addGarageCon").length&&$.post(SITEPATH+"/tpl/forum_add_garage_widget_tpl.html",{source:SOURCE,eventCategory:EVENT_CATEGORY},function(q){$("#addGarageCon").html(q)})},2E3),setTimeout(()=>{if(0<$("#carGarage").length){var q=
$("#addGarageCon").offset().top-100;window.scrollTo(0,q);$("#carGarage").trigger("click")}},5E3));3==d.get("is_amp_garage")&&(localStorage.setItem("forum_garage_no",1),setTimeout(()=>{0<$("#addGarageCon").length&&$.post(SITEPATH+"/tpl/forum_add_garage_widget_tpl.html",{source:SOURCE,eventCategory:EVENT_CATEGORY},function(q){$("#addGarageCon").html(q)})},2E3),setTimeout(()=>{if(0<$("#bikeGarage").length){var q=$("#addGarageCon").offset().top-100;window.scrollTo(0,q);$("#bikeGarage").trigger("click")}},
5E3));if(v.get("relatedQna")){var w=v.get("relatedQna");localStorage.setItem("related_qna_amp",1);setTimeout(()=>{$("#related_"+w).trigger("click")},2E3);e=$("#related_"+w).offset().top;$(window).scrollTop(e-124)}if(d.get("tagCats")){var x=d.get("tagCats");setTimeout(()=>{if("a"==x){$("."+x).trigger("click");var q=$(".-"+x).offset().top-100}else v.get("mCl")&&$(".srt-mr").trigger("click"),$(".cat-"+x).trigger("click"),q=$(".cat-"+x).offset().top-100;window.scrollTo(0,q)},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")));idleZWCb(function(){"undefined"!==typeof modelInfo&&modelInfo&&addLog();null!=logData&&idleZWCb(function(){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;isElectricInRecents=0;for(var d=1;d<=b&&4>preferedModelIds.length;d++)c=Object.keys(logData)[b-d],logData[c].vehicle_type==latestVehicleType&&(preferedModelIds.push(logData[c].model_id),
1==logData[c].is_electric&&(isElectricInRecents=1))}
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(()=>{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(()=>{zwSliderCmp()},100)})}
function showRecommendedModels(b){"undefined"!==typeof preferedModelIds&&preferedModelIds&&0<preferedModelIds.length&&$.get(SITEPATH+"/tpl/best_slider_tpl.html",{modelId:preferedModelIds,recommendedSearches,source:"personalization",vehicleType:latestVehicleType},function(c){$(c).insertAfter($("#"+b));setTimeout(()=>{null==recommendedSearches?zwSlider():zwSliderSmall();fliterC()},100)})}
function getMyRearch(){"undefined"!==typeof preferedModelIds&&preferedModelIds&&0<preferedModelIds.length&&$.get(SITEPATH+"/tpl/best_slider_tpl.html",{modelId:preferedModelIds,recommendedSearches,source:"research",vehicleType:latestVehicleType},function(b){$("#research_modal").html(b);$("#research_modal").modal("show")})}
function showRecommendedQna(){$.get(SITEPATH+"/tpl/qna_widget_tpl.php",{modelId:preferedModelIds,source:"personalization",vehicleType:latestVehicleType,sortBy:"latest"},function(b){$("#qnaWidget").html(b);setTimeout(()=>{redrawQnaWidget()},100)})}function showRecommendedUserReviews(){$.get(SITEPATH+"/tpl/user_review_slider_tpl.php",{modelId:preferedModelIds,source:"personalization"},function(b){b&&($("#userReview").replaceWith(b),setTimeout(()=>{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}
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")}
function setRecommendedModelsObserver(b,c){if(null!=document.querySelector("#"+c)&&"IntersectionObserver"in window){var d=new IntersectionObserver(function(e){0>=e[0].intersectionRatio||(d.unobserve(document.querySelector("#"+c)),showRecommendedModels(b))},{rootMargin:"800px"});d.observe(document.querySelector("#"+c))}else setTimeout(()=>{showRecommendedModels(b)},1E4)}
function autoOpenReviewPopup(){if("undefined"!==typeof Storage&&null==sessionStorage.getItem("reviewFormClosed")){var b=0;if(0<$("#forum_add_garage_widget").length&&("new-car-home"==SOURCE||"new-bike-home"==SOURCE)){var c=$('<span id="auto_review_popup_lnk"  href="#forum_add_garage_widget" data-track-label="forum_add_garage_widget_timetrigger" style="display:none;"></span>');b=1}else c=$('<span id="auto_review_popup_lnk" data-track-label="forum_add_garage_widget_timetrigger" style="display:none;"></span>');
$("body").append(c);0!=b&&d(b,!1);function d(e,g){e=1==e?!0:!1;$("#auto_review_popup_lnk").gsp_popup({inline:e,fixed:!0,html:g,transition:"elastic",scrolling:!1,opacity:"1",width:"94%",maxWidth:"630px",closeButton:!0,overlayClose:!1,className:"auto_review_popup_c",onComplete:function(){$(".auto_review_popup_c a,.auto_review_popup_c .btn-rnd, .auto_review_popup_c .btn-red").on("click",function(){$("#gsp_popup #gspp_Close").trigger("click")})},onClosed:function(){$("body").removeClass("modal-open")}}).click()}
sessionStorage.setItem("campaignReviewBanner",1)}}
function isNotAnyPopUpOpen(){return 0==$("#central-lf .NewCarLeadPopup").is(":visible")&&0==$("#central-lf .loginRegPage").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")&&0==$("#central-lf .myusedcarBooking").is(":visible")&&0==$("#credential_picker_iframe").is(":visible")&&0==$("#credential_picker_container").is(":visible")&&0==$("iframe#botify-iframe:visible").length?!0:!1}
$(function(){yieldMainUiZW(()=>{const d=$("#bottomStikyMenu"),e=$("#bottomCategoryLink"),g=$("#bottomQnALink"),f=$("#btmMenuQnAPopup"),h=$("#btmMenuCategoryPopup");$("#closePopup");const m=$("body");$(".category-card");0<$(".mob-stick-btm").length&&d.hide();const n=SOURCE;"home"===n?(d.hide(),$(window).one("scroll",function(){20<Math.abs(100-$(this).scrollTop())&&d.show()})):d.show();$(d).find("li a").each(function(){const v=$(this);v.attr("data-page")===n&&("home-ev"==n&&v.addClass("ev-active"),
v.addClass("active"),$(h).addClass("hide"),$(f).addClass("hide"),$(m).removeClass("overflowHidden"),$(e).find("a").hasClass("active")&&$(e).find("a").removeClass("active"),$(g).find("a").hasClass("active")&&$(g).find("a").removeClass("active"))});$(e).click(function(){$(f).addClass("hide");$(h).removeClass("hide");$(m).addClass("overflowHidden");$(d).find("li a").each(function(){$(this).removeClass("active")});$(this).find("a").addClass("active")});$(g).click(function(){$(h).addClass("hide");$(f).removeClass("hide");
$(m).addClass("overflowHidden");$(d).find("li a").each(function(){$(this).removeClass("active")});$(this).find("a").addClass("active")})});$("[data-gsco-header]").on("click",function(){$(this).next("[data-gsco-content]").is(":visible")?($(this).next("[data-gsco-content]").slideUp(),$(this).removeClass("gsc_co_open")):($(this).next("[data-gsco-content]").slideDown(),$(this).addClass("gsc_co_open"));return!1});$("[data-gsco-header]").first().addClass("gsc_co_open").next("div").show();if(0<$("#delaer_wt_cta").length&&
1023>=$(window).innerWidth()){var b=checkwhatsnotd=0;$(window).on("scroll",function(){void 0!==window.__floaterAd&&window.__floaterAd&&(checkwhatsnotd=1,""!=getCookie("stickyCookieVar")&&(checkwhatsnotd=0));0==checkwhatsnotd&&0==b&&0==$("#delaer_wt_cta_top").isInViewport()?(b=1,document.getElementById("delaer_wt_cta").style.display="block",setGtmTracking(EVENTCATAGORY,"bottomsection_WhatsappIcon-impression","click")):1==b&&(1==$("#delaer_wt_cta_top").isInViewport()?document.getElementById("delaer_wt_cta").style.display=
"none":document.getElementById("delaer_wt_cta").style.display="block")})}767>=screen.width&&("home"==SOURCE||"new-car-home"==SOURCE||"new-bike-home"==SOURCE||"new-scooter-home"==SOURCE||"make"==SOURCE||"user-reviews-home"==SOURCE||"qna-home"==SOURCE||"qna-detail"==SOURCE||"latest"==SOURCE||"upcoming"==SOURCE||"best"==SOURCE||"news"==SOURCE)&&setTimeout(()=>{isNotAnyPopUpOpen()&&(autoOpenReviewPopup(),sessionStorage.setItem("reviewFormClosed",1))},4E4);var c=searchParams.get("utm_campaign");"user-reviews-home"==
SOURCE&&"review-and-win"==c&&setTimeout(()=>{isNotAnyPopUpOpen()&&(rate_the_vehicle(0),sessionStorage.setItem("reviewFormClosed",1))},1E3);$("body").on("click","[data-tag-url]",function(){var d=$(this).attr("data-tag-url");"undefined"!=typeof d&&""!=d&&(window.location.href=d)})});function callClickTracking(b){"undefined"!=typeof b&&""!=b&&(b="<img src='"+b+"' class='hidden' id='sponsoredTempImg'>",$("body").append(b),$("#sponsoredTempImg").detach())}
function saveGargeViaRcNumber(){var b=sessionStorage.getItem("RCNumber"),c=Get_Cookie("loginUserId");""!=b&&null!=b&&0<c&&$.ajax({type:"POST",dataType:"json",url:TODBFILEPATH+"/save_user_garage_via_rc_number_2db.php",data:"&RCNumber="+b+"&loginUserId="+c,success:function(d){sessionStorage.removeItem("RCNumber");$.ajax({type:"POST",url:TODBFILEPATH+"/forum_add_garage_popup_2db.php",data:"&loginUserId="+c+"&forumAskOwnerEventCategory="+EVENTCATAGORY+"&thanksSts=1&submittedBy=garageViaRcNumber&model_id="+
d.modelId,success:function(e){"NO_DATA"!=$.trim(e)&&30<e.length&&($("#garagepopup").remove(),$("#confirm_thankyou").html(e),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(()=>{$("body").addClass("modal-open")},800),"function"==typeof listUserState&&listUserState())}})}})}
"www.cardekho.com"!=location.host&&"www.bikedekho.com"!=location.host&&(1==searchParams.get("rate_vehicle_form")&&(rate_the_vehicle(0),sessionStorage.setItem("campaignReviewBanner",1)),navigator.getInstalledRelatedApps&&navigator.getInstalledRelatedApps().then(b=>{0<b.length?Set_Cookie("zwapp_install",1):Set_Cookie("zwapp_install",0)}),$(document).on("click","#zwapp_topbanner_close",function(){$("#top-download-app-banner").removeClass("visible-xs").hide("fast");Set_Cookie("zwapp_hide",1)}));
$(document).on("click",".add-mobile-cta",function(){767>$(window).width()&&($("body").hasClass("modal-open")&&$("body").removeClass("modal-open"),$(".h-u-s").hasClass("o")&&$(".h-u-s").removeClass("o"));setTimeout(()=>{myAccountClass.myAccountLogin()},1E3)});
$(function(){"undefined"!==typeof preferedModelIds&&preferedModelIds&&0<preferedModelIds.length?$(window).scroll(function(){$(".vertical_strip").css({background:"black"});$(".vertical_strip .arrRght").css({top:"26px"});300<$(this).scrollTop()&&$(this).scrollTop()?($(".vertical_strip").addClass("active"),clearTimeout($.data(this,"scrollTimer")),$.data(this,"scrollTimer",setTimeout(()=>{$(".vertical_strip").css({background:"black"});$(".vertical_strip .arrRght").css({top:"-100%"})},300))):$(".vertical_strip").removeClass("active")}):
$(".verttical_strip").hide();saveBookmarkAfterLogin();"function"==typeof loadbotsChat&&setTimeout(()=>{loadbotsChat()},100);$(document).on("click",".reviewImage",function(){$("#reviewImgModal").html($(this).parent().find(".modalContent").html()).modal("show")});let b=0,c=0;$(document).on("touchstart",".review-img-sli",d=>{b=d.changedTouches[0].screenX;c=d.changedTouches[0].screenY});$(document).on("touchend",".review-img-sli",d=>{const e=d.changedTouches[0].screenX-b,g=d.changedTouches[0].screenY-
c,f=Math.abs(e/g),h=Math.abs(g/e);50>Math.abs(f>h?e:g)||f>h&&(0<=e?$(".prev-"+d.target.className).trigger("click"):$(".next-"+d.target.className).trigger("click"))})});function saveBookmarkAfterLogin(){var b=localStorage.getItem("savebookmarkafterlogin");"undefined"!=typeof b&&""!=b&&null!=b&&(b=JSON.parse(b),saveBookmark(b.content_id,b.type,b.action))}
function bookmarkContent(b,c,d=1){0==window.isUserLoggedIn?(localStorage.setItem("savebookmarkafterlogin",JSON.stringify({content_id:b,action:c,type:d})),console.log("login screenshow to bookmark"),modifyLoginScreen("default")):("add"==c?$("#add_bookmark_"+b).hide():"remove"==c&&$("#remove_bookmark_"+b).hide(),saveBookmark(b,d,c))}
function saveBookmark(b,c,d){let e=Get_Cookie("loginUserId");data={source:SOURCE,user_id:e,content_id:b,type:c,action:d};$.ajax({type:"POST",url:TODBFILEPATH+"/save_user_bookmark_2db.php",data,success:function(g){200==JSON.parse(g).status&&("add"==d?($("#remove_bookmark_"+b).show(),$("#add_bookmark_"+b).hide()):"remove"==d&&($("#add_bookmark_"+b).show(),$("#remove_bookmark_"+b).hide()),g=localStorage.getItem("savebookmarkafterlogin"),"undefined"!=typeof g&&""!=g&&null!=g&&localStorage.removeItem("savebookmarkafterlogin"))}})}
function reviewImgSlider(b){let c=document.getElementsByClassName("rvmySlides"),d=b;b>c.length&&(d=1);1>b&&(d=c.length);$("#reviewImgModal .modal-content").html($(".rvmySlides_"+d).html())}
function loadReviewImageSlider(){if(0<$("#reviewImageSliderCon").length&&"IntersectionObserver"in window){var b=new IntersectionObserver(function(d){if(!(0>=d[0].intersectionRatio)){b.unobserve(document.querySelector("#reviewImageSliderCon"));d=$("#reviewImageSliderCon").data("modelid");var e=$("#reviewImageSliderCon").data("modelidstring"),g=$("#reviewImageSliderCon").data("sliderusage"),f=$("#reviewImageSliderWidgetCon").data("modelfulldisplayname"),h=$("#reviewImageSliderWidgetCon").data("makenamewithelectric"),
m=$("#reviewImageSliderWidgetCon").data("uccarorbikeorscooter");$.get(SITEPATH+"/tpl/user_review_image_slider_ajax_tpl.html",{modelId:d,modelidstring:e,sliderusage:g,modelfulldisplayname:f,makenamewithelectric:h,uccarorbikeorscooter:m,source:SOURCE},function(n){$("#reviewImageSliderCon").html(n);zwSliderMini();767>screen.width&&1==$("#reviewImageSliderCon").find("li").length&&$("#reviewImageSliderCon").find("li").addClass("ml-15")})}},{rootMargin:"1200px"});b.observe(document.querySelector("#reviewImageSliderCon"))}if(0<
$("#reviewImageSliderWidgetCon").length&&"IntersectionObserver"in window){var c=new IntersectionObserver(function(d){if(!(0>=d[0].intersectionRatio)){c.unobserve(document.querySelector("#reviewImageSliderWidgetCon"));d=$("#reviewImageSliderWidgetCon").data("modelid");var e=$("#reviewImageSliderWidgetCon").data("modelidstring"),g=$("#reviewImageSliderWidgetCon").data("sliderusage"),f=$("#reviewImageSliderWidgetCon").data("modelfulldisplayname"),h=$("#reviewImageSliderWidgetCon").data("makenamewithelectric"),
m=$("#reviewImageSliderWidgetCon").data("uccarorbikeorscooter");$.get(SITEPATH+"/tpl/user_review_image_slider_ajax_tpl.html",{modelId:d,modelidstring:e,sliderusage:g,modelfulldisplayname:f,makenamewithelectric:h,uccarorbikeorscooter:m,source:SOURCE},function(n){$("#reviewImageSliderWidgetCon").html(n);zwSliderSmall();767>screen.width&&1==$("#reviewImageSliderWidgetCon").find("li").length&&$("#reviewImageSliderWidgetCon").find("li").addClass("ml-15")})}},{rootMargin:"1200px"});c.observe(document.querySelector("#reviewImageSliderWidgetCon"))}}
function addByRCNumber(b,c,d){$(b).hasClass("lock")||1!=isValidateRcNumber(c,d)||($(b).addClass("lock"),$("#"+d).hide(),viaPage=1,forum_add_garage_widget(),setTimeout(()=>{isGaragePopupLoaded(1)&&(getByRCNumberSearch(b,c,"rc_number_err",viaPage),$(b).removeClass("lock"),$(c).val(""),viaPage=0)},200))}function isGaragePopupLoaded(b){b+=1;var c=$("#RCNumber").length;console.log("Looking..."+b+"& searchReady="+c);if(0<c)return 1;window.setTimeout(isGaragePopupLoaded.bind(null,b),1)};

var sliderItems=videoSliderItems=3;
function dymTab(){var c=1,a=1;$("ul[data-tClass]").each(function(){$(this).addClass("tajax_"+c++)});$("div[data-tWrap]").each(function(){$(this).addClass("cajax_"+a++)});$("ul[data-tClass]").each(function(){var b=$(this).attr("class").split("_");$(".tajax_"+b[1]).gsp_tab({content_wrap:".cajax_"+b[1],layout:"auto",responsive:!1,breakpoint:767});767>$(window).innerWidth()?(1==$(".cajax_"+b[1]+" > div").hasClass("md-dtab")?setTimeout(()=>{$(".cajax_"+b[1]+" > div").removeClass("md-dtab");$(".cajax_"+
b[1]+" > div").hide();$(".cajax_"+b[1]+" > div:first").show()},1E3):setTimeout(()=>{$(".cajax_"+b[1]+" > div").hide();$(".cajax_"+b[1]+" > div:first").show()},1E3),$(".tajax_"+b[1]).parent("div.gsc_ta_scroll").width($(window).width())):1==$(".cajax_"+b[1]+" > div").hasClass("dd-dtab")?setTimeout(()=>{$(".cajax_"+b[1]+" > div").removeClass("md-dtab");$(".cajax_"+b[1]+" > div").hide();$(".cajax_"+b[1]+" > div:first").show()},1E3):setTimeout(()=>{$(".cajax_"+b[1]+" > div").hide();$(".cajax_"+b[1]+" > div:first").show()},
1E3);1==$(".tajax_"+b[1]+" > li").hasClass(".gsc-ta-active")&&console.log($(".tajax_"+b[1]+" > li.gsc-ta-active").index())})}
function offWid(){0<$(".of-w,.finOpt").length&&$(".of-w,.finOpt").gsp_carousel({item:2,showUpcoming:!0,upcomingPercent:20,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:20}}],onSliderLoad:function(){var c=-1;$(".of-w li > div").each(function(){var a=$(this).outerHeight();c=a>c?a:c});$(".of-w li > div").height(c+5)},onBeforeNextSlide:function(c,a){setGtmTracking("eventCategory",
"offerwidget-next","click",0,0)},onBeforePrevSlide:function(c,a){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?5:4;$(".zwSlider, #similarSlider, .similarCarBikeSlider_class").gsp_carousel({item:c,showUpcoming:!1,pager:!1,slideMargin:10,enableDrag:!0,controls:!0,slideMove:1,responsive:[{breakpoint:1001,settings:{item:c,slideMove:1}},{breakpoint:768,settings:{item:2,slideMove:1,controls:!1,slideMargin:12,showUpcoming:!0,upcomingPercent:40}},{breakpoint:481,settings:{item:1,slideMove:1,controls:!1,slideMargin:12,showUpcoming:!0,upcomingPercent:60}}],onSliderLoad:function(){setTimeout(()=>
{$(window).trigger("resize")},500);$(".gscr_lSPrev").hide();0<$("#main-sliders").length?setTimeout(()=>{$("#main-sliders").height("unset")},800):0<$("#news-sliders").length?setTimeout(()=>{$("#news-sliders").height("unset");var a=-1;$("#latestNews").find("ul > li").each(function(){var b=$(this).height();a=b>a?b:a});$("#latestNews").find("ul > li").height(a);$("#featuredNews").find("ul > li").height(a);$("#latestReviews").find("ul > li").height(a)},800):1<=$("#amazon-winners-best-reviews").length&&
setTimeout(()=>{$("#amazon-winners-best-reviews ul").css("overflow","");var a=-1;$("#amazon-winners-best-reviews .zwSlider > li").each(function(){var b=$(this).height();a=b>a?b:a});$("#amazon-winners-best-reviews .zwSlider > li").height(a)},400);if(0<$("#similarSlider .last-li-card").length){let a=$("#similarSlider .last-li-card").prev().outerHeight();$("#similarSlider .last-li-card").css("min-height",a);$("#similarSlider .last-li-card .compareList").css("padding-top","28%")}}});$(".xs-1-lg-2").gsp_carousel({item:2,
showUpcoming:!1,pager:!1,slideMargin:18,enableDrag:!0,controls:!0,slideMove:1,responsive:[{breakpoint:1001,settings:{item:2,showUpcoming:!0,upcomingPercent:25}},{breakpoint:768,settings:{item:2,showUpcoming:!0,upcomingPercent:25,controls:!1,slideMargin:10}},{breakpoint:481,settings:{item:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:25}}],onSliderLoad:function(){setTimeout(()=>{$(window).trigger("resize")},500);$(".gscr_lSPrev").hide();1<=$("#dealerShowrooms").length&&setTimeout(()=>
{$("#dealerShowrooms ul").css("overflow","");var a=-1;$("#dealerShowrooms .xs-1-lg-2 > li").each(function(){var b=$(this).height();a=b>a?b:a});$("#dealerShowrooms .xs-1-lg-2 > li").height(a)},400)}})}
function zwSliderSmall(){var c=0==$("#rhsDiv").length?6:4;$(".zwSliderSmall").gsp_carousel({item:c,showUpcoming:!1,pager:!1,slideMargin:18,enableDrag:!0,controls:!0,slideMove:1,onSliderLoad:function(){$(".gscr_lSPrev").hide();setTimeout(()=>{$(window).trigger("resize")},500)},responsive:[{breakpoint:768,settings:{item:4,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:30}},{breakpoint:481,settings:{item:2,slideMove:1,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:30}}]})}
function zwSliderMini(){$(".zwSliderMini").gsp_carousel({item:6,showUpcoming:!0,upcomingPercent:50,pager:!1,slideMargin:10,enableDrag:!0,controls:!0,slideMove:3,onSliderLoad:function(){$(".gscr_lSPrev").hide();setTimeout(()=>{$(window).trigger("resize")},500)},responsive:[{breakpoint:768,settings:{item:6,slideMove:6,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:50}},{breakpoint:481,settings:{item:2,slideMove:2,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:70}}]});$(".reviewSliderNew").gsp_carousel({item:10,
showUpcoming:!0,upcomingPercent:70,pager:!1,slideMargin:10,enableDrag:!0,controls:!0,slideMove:3,onSliderLoad:function(){$(".gscr_lSPrev").hide();setTimeout(()=>{$(window).trigger("resize")},500)},responsive:[{breakpoint:768,settings:{item:6,slideMove:6,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:50}},{breakpoint:481,settings:{item:4,slideMove:2,controls:!1,slideMargin:10,showUpcoming:!0,upcomingPercent:70}}]})}
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 galCarouselColor(c){c.gsp_carousel({item:1,loop:!1,controls:!0,thumbItem:9,pager:!0,gallery:!0,lazyLoad:!0,galleryMargin:5,slideMargin:0,showCounter:!0,adaptiveHeight:!1,counterText:"( {current} of {total} )",responsive:[{breakpoint:767,settings:{thumbItem:4}}],onAfterSlide:function(a,b){hitGtmPageView("gallery_slide");setColorData(a)},onBeforeNextSlide:function(a,b){setGtmTracking("eventCategory","gallery_next","click",0,0)},onBeforePrevSlide:function(a,b){setGtmTracking("eventCategory",
"gallery_prev","click",0,0)}})}
$(function(){"make"!=SOURCE&&"model"!=SOURCE&&"on-road-price"!=SOURCE&&"article"!=SOURCE&&(dymTab(),zwSlider());idleZWCb(()=>{if("make"==SOURCE||"model"==SOURCE||"on-road-price"==SOURCE||"article"==SOURCE)dymTab(),zwSlider();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");idleZWCb(()=>
{zwSliderSmall()});idleZWCb(()=>{zwSliderMini()});idleZWCb(()=>{zwSliderCmp()});offWid()});setTimeout(()=>{$(".more-card").each(function(){$ht=$(this).prev().outerHeight();$(this).outerHeight($ht)})},1E3);$(document).on("click",".tabbing-list",function(){setTimeout(()=>{$(".more-card").each(function(){$ht=$(this).prev().outerHeight();$(this).outerHeight($ht)})},1E3)});idleZWCb(()=>{if(0<$("#videoSlider,.videoSlider").length){var c=0==$("#rhsDiv").length?3:2;$("#videoSlider,.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,.videoSlider li").length&&767<$(window).innerWidth()&&$("#videoSlider li,.videoSlider li").width(382);$(".cont-sl li").each(function(){var a=1==$(".techVideo").length?$(this).index()-1:$(this).index();$(this).find(".v-over").attr("data-index",
a)});$(document).on("click",".v-over",function(){var a=$(this).attr("data-index");$(".mvid")[a].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");0<$(".v-overH").length&&(a=$(".v-overH").attr("data-index"),$(".mvid")[a].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:15,enableDrag:!0,controls:!0,slideMove:1,onSliderLoad:function(){setTimeout(()=>{$(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"))});idleZWCb(()=>{if("undefined"!=typeof SOURCE&&("home"==SOURCE||"comparison-result"==
SOURCE)&&0<$(".sp-cmp-slider").length){var c=$(".sp-cmp-slider");$.each(c,function(a,b){var d=b.dataset.spvehicletype,f=a="",g="";"comparison-result"==SOURCE&&(a=$("#modelid1").val(),f=$("#modelid2").val(),g=$("#modelid3").val());$.get(SITEPATH+"/tpl/sponsored_slider_tpl.php",{source:SOURCE,eventCategory:EVENT_CATEGORY,vehicle_type:d,model_id1:a,model_id2:f,model_id3:g,campaign_type:3,campaign_widget:"popular_comparison"},function(h){if(""!=h){$(b).prepend(h);var l=$(".sp-cmp-slider.sp-"+d+" li");
0<(".pop-cls-"+d).length&&$(".pop-cls-"+d).each(function(){var k=$(this).data("featuredmid"),m=$(this).data("featuredmidsec");0<$(".sp-cmp-slider.sp-"+d+" li").length&&$.each(l,function(e,n){e=n.dataset.scmodelids;"undefined"==typeof e||"undefined"==typeof k||e!=k&&e!=m||($(this).remove(),console.log("slider_li_removed",e))})});setTimeout(()=>{$(".comCarousel.sp-cmp-slider.sp-"+d).data("gsp_carousel").destroy()},300);setTimeout(()=>{zwSliderCmp()},800)}})})}});idleZWCb(()=>{if(0<$("#widget_reels").length){var c=
0==$("#rhsDiv").length?7:5;$("#widget_reels").gsp_carousel({item:c,gallery:!1,showUpcoming:!1,slideMove:3,speed:200,auto:!1,autoWidth:!1,enableDrag:!0,controls:!0,slideMargin:10,pager:!1,responsive:[{breakpoint:767,settings:{item:1,slideMove:1,upcomingPercent:95,showUpcoming:!0,slideMargin:10,controls:!1}}]});$("#widget_reels").css("height","auto")}0<$("#gal-carousel-color").length&&galCarouselColor($("#gal-carousel-color"))})});

function decodeHtmlCharCodes(a){return a.replace(/(&#(\d+);)/g,function(b,c,d){return String.fromCharCode(d)})}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=1==cta_source.startsWith("APP_")?cta_source.replace("APP_","_APP_"):cta_md+cta_source_f;
$(function(){function a(e){var h=e+"?_v="+b;idleZWCb(()=>{loadCSS(h,"all")})}var b=(new Date).toLocaleDateString().replace(/\//g,"")+(new Date).getHours()+"_"+JS_VERSION+"_"+CSS_VERSION;if("md_b"!=page_centralDCB_flag){if("zigwheels.com"==HOST_IP_ADDRESS||"www.zigwheels.com"==HOST_IP_ADDRESS)var c="https://static.cardekho.com";else{b=Math.random();c="staging.zigwheels.com"==HOST_IP_ADDRESS?"https://stgstc.cardekho.com":"qc2.zigwheels.com"==HOST_IP_ADDRESS||"qc8.zigwheels.com"==HOST_IP_ADDRESS?"https://testingpwa8.cardekho.com":
"https://stgstc.cardekho.com";var d=(new URLSearchParams(window.location.search)).get("centraljs");null!=d&&(c="https://"+d+".cardekho.com")}var g=c+"/pwa/js/central-lf/bundle.js",f=c+"/pwa/css/central-lf.min.css"}else"zigwheels.com"==HOST_IP_ADDRESS||"www.zigwheels.com"==HOST_IP_ADDRESS?c="https://bd.gaadicdn.com":(b=Math.random(),c="https://staticalpha.bikedekho.com","staging.zigwheels.com"==HOST_IP_ADDRESS&&(c="https://staticalpha.bikedekho.com"),d=(new URLSearchParams(window.location.search)).get("centraljs"),
null!=d&&(c="https://"+d+".bikedekho.com")),g=c+"/pwa/js/central-lf/bundle.js",f=c+"/pwa/css/central-lf.min.css";idleZWCb(function(){setTimeout(()=>{setTimeout(()=>{a(f)},5);getScript(g+"?_v="+b,function(){"function"==typeof callWebFormCentralLead&&setTimeout(()=>{callWebFormCentralLead()},50);0==UCR_IS_MOBILE_APP&&setTimeout(()=>{autoPopupCentralDCBForm()},50);setTimeout(()=>{getLoginUserData()},300);setTimeout(()=>{getScript(JSFILEPATH+"/js_bundler_new.html?type=javascript&files=rvmp_myaccount,rvmp_one_tap_login&version="+
JS_VERSION,"","defer")},50)})},navigator.connection&&10>navigator.connection.rtt?3500:400);setTimeout(()=>{var e=new URLSearchParams(window.location.search);if(null!=e.get("L4Sp6vyZ3X10s")&&("Media"==e.get("L4Sp6vyZ3X10s")||"MediaAddonLead"==e.get("L4Sp6vyZ3X10s"))){var h=e.get("utm_source")+"#"+e.get("utm_medium")+"#"+e.get("utm_campaign");e={m_name:e.get("m_name"),L4Sp6vyZ3X10s:e.get("L4Sp6vyZ3X10s"),user_source:e.get("utm_source"),firstUTMParamter:h,lastUTMParamter:h};sessionStorage.setItem("UtmAdCookie",
JSON.stringify(e))}},1)})});
$("body").on("click","[data-cta-type]",function(){var a=$(this),b=a.attr("data-cta-type");a.attr("data-cta-makeid");a.attr("data-cta-makeslugcd");var c=a.attr("data-cta-makeidcd"),d=a.attr("data-cta-makename"),g=a.attr("data-cta-makenamecd");a.attr("data-cta-modelid");var f=a.attr("data-cta-modelslugcd"),e=a.attr("data-cta-modelidcd"),h=a.attr("data-cta-modelname"),x=a.attr("data-cta-bodytype"),k=a.attr("data-cta-price");a.attr("data-cta-variantid");a.attr("data-cta-variantslugcd");var w=a.attr("data-cta-variantidcd"),
t=a.attr("data-cta-variantname"),p=a.attr("data-cta-vtype"),m=a.attr("data-cta-location"),l=a.attr("data-cta-title"),u=a.attr("data-cta-img"),A=a.attr("data-cta-tpname"),z=a.attr("data-cta-dealeridcd"),C=a.attr("data-cta-dealerpincode"),q=a.attr("data-cta-dealercity");a.attr("data-cta-firstmodelid");a.attr("data-cta-dealerleadwithmodel");var n=a.attr("data-cta-model-type");"undefined"!=typeof n&&"page"==n&&"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,g="undefined"==typeof g?p_mm_data.make_name_cd:g,f="undefined"==typeof f?p_mm_data.model_slug_cd:f,e="undefined"==typeof e?p_mm_data.model_id_cd:e,h="undefined"==typeof h?p_mm_data.model_name:h,p="undefined"==typeof p?p_mm_data.vType:p,l="undefined"==typeof l?p_mm_data.title:l,u="undefined"==typeof u?p_mm_data.img:u,k=p_mm_data.model_price,x=p_mm_data.model_bodyType);A="undefined"==typeof A?p_mm_data.tp_name:A;n=y="";var y=Get_Cookie("selected_city");""!=("undefined"!=
y&&null!=y?y:"")&&(n=Get_Cookie("cityCDId"),n="undefined"!=n?n:"");y=Get_Cookie("lead_name");var D=Get_Cookie("lead_mobile");y="undefined"!=y&&null!=y?y:"";D="undefined"!=D&&null!=D?b64DecodeUnicode(D):"";""!=y&&(y=y.replace("+"," "));f="undefined"!=typeof f?f:"";e="undefined"!=typeof e?e:"";h="undefined"!=typeof h?h:"";g="undefined"!=typeof g?g:"";x="undefined"!=typeof x?x:"";k="undefined"!=typeof k?k:"";w="undefined"!=typeof w?w:"";t="undefined"!=typeof t?t:"";z="undefined"!=typeof z?z:"";C="undefined"!=
typeof C?C:"";q="undefined"!=typeof q?q:"";l="undefined"!=typeof l?l:"";u="undefined"!=typeof u?u:"";h=decodeHtmlCharCodes(h);cta_dealercity_slug="";""!=z&&(n=Get_Cookie("cityCDId"),cta_dealercity_slug=q.replace(/\s/g,"-").replace(/_/g,"-").toLowerCase());var E=g+" "+h;""==e&&(E="");var F="";""!=t&&(F=d+" "+h+" "+t);if("undefined"==typeof m||""==m)m="main";m=cta_source+"_"+m;"undefined"!=typeof A&&null!=A&&(m=A+"_"+m);"finance"==b?m+="_getfinance_NCF":"dcb"==b?m=""!=z?m+"_getcallback_DCB":m+"_getoffers_DCB":
"awl"==b?m+="_getalert_AWL":"brochure"==b&&(m+="_getbrochure_BROCHURE");sessionStorage.exitpopupstatus="yes";var v={carVariantCentralId:w,carVariantId:F,leadLocation:m,pageType:cta_source,modelId:e,priceRange:k,bodyType:x,modelName:E,modelSlug:f,brandName:g,cityId:n,userName:y,mobileNo:D,brandId:c,dealerData:z,dealerCity:q,dealerPincode:C};yieldMainUiZW(()=>{if("4Wheeler"==p)if("finance"==b){var r="Get exclusive loan offers on "+d+" "+h+" in your city",B="https://www.rupyy.com/new-car-loan";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="+d+"&model="+h+"&car_variant="+t;centralCarFinance(v,r,B)}else"awl"==b?(r="Get updates and price details of "+d+" "+h+" on launch in Your City",centralCarAWL(v,r)):"brochure"==b?(r="Download brochure for "+d+" "+h,v.brochureUrl=a.attr("data-cta-brochurefile"),v.brochureId=a.attr("data-cta-brochureid"),centralCarBrochure(v,r)):(r="Get exclusive offers on "+
d+" "+h+" in your city",B=a.attr("data-cta-dealerservice"),"undefined"!=typeof B&&"1"==B&&(r="Check Car Servicing Offers",v.apiOptions={isServiceCenterLead:!0},v.dcbFormHeading="Check Car Servicing Offers"),""==r&&"undefined"!=typeof l&&(r=l),centralCarDCB(v,r));else"finance"==b?(r="Get EMI Offers On  "+d+" "+h,centralBikeFinance(v,r)):"awl"==b?(r="Get updates and price details of "+d+" "+h+" on launch",centralBikeAWL(v,r)):"testride"==b?(r="Book Test Ride",v.TDInventoryDetailId=a.attr("data-cta-testrideid"),
v.bookingRefCode=a.attr("data-cta-testrideid"),v.loginCTAText="Book Test Ride",centralBikeTestDrive(v,r)):"brochure"==b?(r="Get to know the specs in your city",v.brochureUrl=a.attr("data-cta-brochurefile"),v.brochureId=a.attr("data-cta-brochureid"),centralBikeBrochure(v,r)):(""!=l&&(r=l),"obb"==b&&(r="Get Exclusive Cashback on "+d+" "+h,v.dataDto="obb"),""==r&&"undefined"!=typeof l&&(r=l),centralBikeDCB(v,r,u))})});
function centralCarBrochure(a,b){a.isOCBDesign=!0;a.leadFormHeadings={citySelectionScreen:{h1:b,h2:"Get detailed information on specs and features",cta:"Continue to Download Brouchure",belowTextBox:"We need your city to provide prices in your city."}};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;a.dealers=!0;a.ctaText="Download Brochure";a.cls="CityPopupBMargin UCwidthLarge alertbtnlarge broucherLead widthLarge";$.centralLF.init(a,"brochure",{beforeSubmit:function(c){Set_Cookie("tvcCookieConsent",1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})},onClose:function(){window.history.back(1)}})}
function centralCarFinance(a,b,c){a.isOCBFlow=!0;a.isOCBDesign=!0;a.leadFormHeadings={citySelectionScreen:{h1:b,h2:"Hurry! Limited-time offers expiring soon",cta:"Continue to View Offers",belowTextBox:"We need your city to provide offers from dealers near you."}};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",subTitle:"We only ask these once and your details are safe with us."};"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){setConfigData();Set_Cookie("tvcCookieConsent",1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})},onClose:function(){window.history.back(1)}})}
function centralCarAWL(a,b){a.leadFormHeadings={citySelectionScreen:{h1:b,h2:"You'll receive a notification once this car is launched",cta:"Get Launch Alert",belowTextBox:"We need your city to provide prices in your city."}};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.email={emailIdFieldRequired:"1",emailIdField:"1"};$.centralLF.init(a,"awl",{trackEvent:function(){setConfigData();ctaSetCity()},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)+"]"))},onClose:function(){window.history.back(1)}})}
function centralBikeFinance(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,"emi",{trackEvent:function(){setConfigData();
ctaSetCity()},beforeSubmit:function(c){Set_Cookie("tvcCookieConsent",1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})},onClose:function(){window.history.back(1)}})}
function centralBikeBrochure(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",{trackEvent:function(){setConfigData();
ctaSetCity()},beforeSubmit:function(c){Set_Cookie("tvcCookieConsent",1,800);dataLayer.push({event:"tvcCookieConsent",eventLabel:"leadform_submit",consent:"True"})},onClose:function(){window.history.back(1)}})}
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(){setConfigData();ctaSetCity()},
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)+"]"))},onClose:function(){window.history.back(1)}})}
function centralBikeTestDrive(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);a.dcbCallback=callBackCentralDCB;$.centralLF.initTestRide(a,"testride",
{trackEvent:function(){setConfigData();ctaSetCity()},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)+"]"))},onClose:function(){window.history.back(1)}})}
function centralCarDCB(a,b){768>=screen.width&&(a.verificationBytruecaller=!0);a.isOCBFlow=!0;a.isOCBDesign=!0;if("undefined"!=typeof a.dealerData&&""!=a.dealerData){b="Select model to get exclusive offers";var c={modelSelectionScreen:{h1:b,h2:"Hurry! Limited-Time Offers Expiring Soon",cta:"Continue to View Offers",belowTextBox:"We need model details to provide offers from dealers near you."}}}else c={citySelectionScreen:{h1:b,h2:"Hurry! Limited-Time Offers Expiring Soon",cta:"Continue to View Offers",
belowTextBox:"We need your city to provide offers from dealers near you."}};a.leadFormHeadings=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 b&&""!=b&&(a.title=b);$.centralLF.init(a,
"ocb",{afterSubmit:function(d){afterCentralleadSubmit(d,"4Wheeler")},trackEvent:function(){ctaSetCity();setConfigData()},onClose:function(){window.history.back(1)}})}
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);a.dcbCallback=callBackCentralDCB;$.centralLF.init(a,"dcb",{afterSubmit:function(d){afterCentralleadSubmit(d,"2Wheeler")},trackEvent:function(){ctaSetCity();setConfigData()},onClose:function(){window.history.back(1)}})}
function centralCarDCBInPage(a,b){"function"==typeof window.__RenderCentralPWAComponent&&__RenderCentralPWAComponent({component:"CentralLF",containerId:"zwleadform",isPopup:!1});768>=screen.width&&(a.verificationBytruecaller=!0);a.isPopup=!1;a.isOCBFlow=!0;a.isOCBDesign=!0;if("undefined"!=typeof a.dealerData&&""!=a.dealerData){b="Select model to get exclusive offers";var c={modelSelectionScreen:{h1:b,h2:"Hurry! Limited-Time Offers Expiring Soon",cta:"Continue to View Offers",belowTextBox:"We need model details to provide offers from dealers near you."}}}else c=
{citySelectionScreen:{h1:b,h2:"Hurry! Limited-Time Offers Expiring Soon",cta:"Continue to View Offers",belowTextBox:"We need your city to provide offers from dealers near you."}};a.leadFormHeadings=c;var d={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&&(d.title=b);setTimeout(()=>{$.centralLFWidget.init(d,"ocb",{afterSubmit:function(g){afterCentralleadSubmit(g,"4Wheeler")},trackEvent:function(){ctaSetCity();setConfigData()},onClose:function(){window.history.back(1)}})},10)}
function centralBikeDCBInPage(a,b,c){"function"==typeof window.__RenderCentralPWAComponent&&__RenderCentralPWAComponent({component:"CentralLF",containerId:"zwleadform",isPopup:!1});a.isPopup=!1;768>=screen.width&&(a.verificationBytruecaller=!0);a.webOtpLoad=!0;"undefined"!=typeof a.brandId&&""!=a.brandId&&"35"==a.brandId&&(a.webOtpLoad=!1);var d={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&&(d.title=b);"undefined"!=typeof c&&""!=c&&(d.delightImage=c);d.dcbCallback=callBackCentralDCB;setTimeout(()=>{$.centralLFWidget.init(d,"dcb",{afterSubmit:function(g){afterCentralleadSubmit(g,"2Wheeler")},trackEvent:function(){ctaSetCity();setConfigData()},onClose:function(){window.history.back(1)}})},10)}
function setConfigData(){window.myAccConfig={IntentConfig:{},myAccountSecret:"633556b9db81a70649233141"}}
function ctaSetCity(){function a(c){var d=cityJSON.filter(function(e){return e.idCd==c});if(""!=d){var g=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",g);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]&&(g=f.toLowerCase().replace(" ","-"),LeadInterface.setCity(f),LeadInterface.setCitySlug(g),
LeadInterface.setPincode(""))}}var b="";"undefined"!=typeof b&&""!=b&&("md_b"==page_centralDCB_flag&&475==b&&(b=49),0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(c){cityJSON=c;a(b)}):a(b))}function zwSuccessSubmit(a){afterCentralleadSubmit(a,"2Wheeler")}
function afterCentralleadSubmit(a,b){function c(){var d=cta_modelIdCD="",g=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,"md_b"==page_centralDCB_flag&&475==d&&(d=49));"undefined"!=typeof a.verified&&1==a.verified&&(g=1);if("undefined"!==typeof Storage){var e="";"undefined"!=typeof a.mobile&&""!=a.mobile&&(e=a.mobile);localStorage.setItem("lead_user_info",JSON.stringify({is_lead_submit:1,mobile:e,is_mobile_verified:g}));
0==isUserLoggedIn&&localStorage.setItem("lead_submit_wo_login",1);Set_Cookie("write_review_cta_after_lead",1,90)}f="undefined"!=f?f:"";cta_mobile="undefined"!=cta_mobile?cta_mobile:"";e=cityJSON.filter(function(k){return k.idCd==d});if(""!=e&&""!=cta_modelIdCD){var h=e[0].id;d=e[0].idCd;var x=e[0].value;e=e[0].nameCd;Set_Cookie("geo_city",x);Set_Cookie("city_id",h);Set_Cookie("selected_city",x);Set_Cookie("pincode","");Set_Cookie("selected_subcity","");Set_Cookie("cityCD",e);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,lead_data:a},function(k){if(0<Object.keys(k).length){var w=k.makeId,t=k.modelId;k=k.vehicleType;Set_Cookie("DCBLead",t+"@"+h+"@"+x+"@"+w,"session");Set_Cookie("orp_lead",w+"-"+t+"-"+h+"-"+k,0);1==g&&(Set_Cookie("UserCity",
x),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 openCentralOBB_WebForm(){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(a){cityJSON=a;openCentralLead_WebForm("obb")}):openCentralLead_WebForm("obb")}
function openCentralBrochure_WebForm(){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(a){cityJSON=a;openCentralLead_WebForm("brochure")}):openCentralLead_WebForm("brochure")}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 centralBikeTestDrive_WebForm(){0==cityJSON.length?jQuery.getJSON(JSFILEPATH+"/city_json.js?version="+JS_VERSION,function(a){cityJSON=a;openCentralLead_WebForm("testride")}):openCentralLead_WebForm("testride")}
function openCentralLead_WebForm(a,b,c,d){var g=f="",f=Get_Cookie("selected_city");""!=("undefined"!=f&&null!=f?f:"")&&(g=Get_Cookie("cityCDId"),g="undefined"!=g?g:"");a="undefined"!=typeof a?a:"dcb";var e=Get_Cookie("lead_name"),h=Get_Cookie("lead_mobile");e="undefined"!=e&&null!=e?e:"";h="undefined"!=h&&null!=h?b64DecodeUnicode(h):"";var x=$("#cta_makeid").val();$("#cta_makeslugcd").val();$("#cta_makeidcd").val();f=$("#cta_makename").val();var k=$("#cta_makenamecd").val();$("#cta_modelid").val();
var w=$("#cta_modelslugcd").val(),t=$("#cta_modelidcd").val(),p=$("#cta_modelname").val(),m=$("#cta_vtype").val(),l=$("#cta_model_bodyType").val(),u=$("#cta_model_price").val(),A=$("#cta_variantidcd").val(),z=$("#cta_tpname").val();p=decodeHtmlCharCodes(p);var C=k+" "+p,q="View Personalized Offers on "+f+" "+p;""==t&&(C=q="");q="";var n=$("#cta_variantname").val();""!=n&&(q=f+" "+p+" "+n);b="undefined"!=typeof b?b:"";c="undefined"!=typeof c?c:"";d="undefined"!=typeof d?d:"";cta_dealercity_slug="";
""!=b&&(g="",n=cityJSON.filter(function(y){return y.value==d}),""!=n&&(g=n[0].idCd,d=n[0].nameCd,cta_dealercity_slug=d.replace(/\s/g,"-").replace(/_/g,"-").toLowerCase()));1==cta_source.startsWith("APP_")&&cta_source.replace("APP_","_APP_");n=cta_source+"_main";"undefined"!=typeof z&&null!=z&&(n=z+"_"+n);"finance"==a?n+="_getfinance_NCF":"dcb"==a?n=""!=b?n+"_getcallback_DCB":n+"_getoffers_DCB":"awl"==a?n+="_getalert_AWL":"brochure"==a&&(n+="_getbrochure_BROCHURE");b={carVariantCentralId:A,carVariantId:q,
leadLocation:n,pageType:cta_source,modelId:t,priceRange:u,bodyType:l,modelName:C,modelSlug:w,brandName:k,cityId:g,userName:e,mobileNo:h,brandId:x,dealerData:b,dealerCity:d,dealerPincode:c};"4Wheeler"==m?"finance"==a?(a="https://www.rupyy.com/new-car-loan",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="+p+"&car_variant=",centralCarFinance(b,"Get exclusive loan offers on "+
f+" "+p+" in your city",a)):"brochure"==a?(q="Download brochure for "+f+" "+p,b.brochureUrl=$("#cta_brochurefile").val(),b.brochureId=$("#cta_brochureid").val(),centralCarBrochure(b,q)):"awl"==a?centralCarAWL(b,"Get updates and price details of "+f+" "+p+" on launch in Your City"):(q="Get exclusive offers on "+f+" "+p+" in your city",1==$("#cta_isPage").val()?centralCarDCBInPage(b,q):centralCarDCB(b,q)):"finance"==a?centralBikeFinance(b,"Get EMI Offers On  "+f+" "+p):"awl"==a?centralBikeAWL(b,"Get updates and price details of "+
f+" "+p+" on launch"):"brochure"==a?(q="Get to know the specs in your city",b.brochureUrl=$("#cta_brochurefile").val(),b.brochureId=$("#cta_brochureid").val(),centralBikeBrochure(b,q)):"testride"==a?(q="Book Test Ride",b.TDInventoryDetailId=$("#cta_testrideid").val(),b.bookingRefCode=$("#cta_testrideid").val(),b.loginCTAText="Book Test Ride",centralBikeTestDrive(b,q)):(q="View Personalized Offers on "+f+" "+p,"obb"==a&&(q="Get Exclusive Cashback on "+f+" "+p,b.dataDto="obb"),1==$("#cta_isPage").val()?
centralBikeDCBInPage(b,q):centralBikeDCB(b,q))}
function callTimeExitCentralDCB(a){var b=parseInt(sessionStorage.lastViewedMakeId),c=parseInt(sessionStorage.lastViewedModelId),d=sessionStorage.lastViewedVType,g=parseInt(sessionStorage.lastViewedIsDCB);if(0<b&&0<c&&0<g||3==b){b="";c=Get_Cookie("selected_city");""!=("undefined"!=c&&null!=c?c:"")&&(b=Get_Cookie("cityCDId"),b="undefined"!=b?b:"");var f=Get_Cookie("lead_name"),e=Get_Cookie("lead_mobile");f="undefined"!=f&&null!=f?f:"";e="undefined"!=e&&null!=e?b64DecodeUnicode(e):"";var h=sessionStorage.lastViewedMakeIdCD;
c=sessionStorage.lastViewedMakeName;var x=sessionStorage.lastViewedMakeNameCD,k=sessionStorage.lastViewedModelSlugCD,w=sessionStorage.lastViewedModelIdCD;g=sessionStorage.lastViewedModelName;var t=sessionStorage.lastViewedModelBodyType,p=sessionStorage.lastViewedModelPrice;g=decodeHtmlCharCodes(g);var m=x+" "+g;""==w&&(m="");var l="View Personalized Offers on "+c+" "+g;a=cta_source+"_"+a;var u=p_mm_data.tp_name;"undefined"!=typeof u&&null!=u&&(a=u+"_"+a);a={leadLocation:a+"_getoffers_DCB",pageType:cta_source,
modelId:w,priceRange:p,bodyType:t,modelName:m,modelSlug:k,brandName:x,brandId:h,cityId:b,userName:f,mobileNo:e};"4Wheeler"==d?centralCarDCB(a,"Get exclusive offers on "+c+" "+g+" in your city"):centralBikeDCB(a,l)}}
function callBackCentralDCB(a,b){if("undefined"!=typeof a&&0<Object.keys(a).length){var c=cta_makenamecd=a.brandName,d=a.modelName,g=a.modelId,f=a.priceRnge,e=a.bodyType,h=a.modelSlug,x=a.cityId;a=a.leadTypeCode;var k=Get_Cookie("lead_name"),w=Get_Cookie("lead_mobile");k="undefined"!=k&&null!=k?k:"";w="undefined"!=w&&null!=w?b64DecodeUnicode(w):"";""!=k&&(k=k.replace("+"," "));d=decodeHtmlCharCodes(d);var t=cta_source_f+"_crosssell",p=p_mm_data.tp_name;"undefined"!=typeof p&&null!=p&&(t=p+"_"+t);
"finance"==b?t+="_getfinance_NCF":"dcb"==b?t+="_getoffers_DCB":"awl"==b&&(t+="_getalert_AWL");var m={leadLocation:t,pageType:cta_source,modelId:g,priceRange:f,bodyType:e,modelName:d,modelSlug:h,brandName:cta_makenamecd,cityId:x,userName:k,mobileNo:w,leadTypeCode:a};yieldMainUiZW(()=>{if("md_b"!=page_centralDCB_flag)if("finance"==b){var l="Get exclusive loan offers on "+c+" "+d+" in your city",u="https://www.rupyy.com/new-car-loan";u=768>screen.width?u+"?source=wap":u+"?source=web";u+="&zigwheels_"+
cta_source+"&mid=zigwheels_CarLoanLink&utm_medium=zigwheels_CarLoanLink&utm_source=zigwheels&make="+c+"&model="+d+"&car_variant="+cta_variantname;centralCarFinance(m,l,u)}else"awl"==b?(l="Get updates and price details of "+c+" "+d+" on launch in Your City",centralCarAWL(m,l)):(l="Get exclusive offers on "+c+" "+d+" in your city",centralCarDCB(m,l));else"awl"==b?(l="Get updates and price details of "+d+" on launch",centralBikeAWL(m,l)):(l="Get exclusive offers on "+c+" "+d+" in your city","obb"==b&&
(l="Get Exclusive Cashback on "+c+" "+d,m.dataDto="obb"),centralBikeDCB(m,l))})}}
function autoPopupCentralDCBForm(){var a=parseInt(sessionStorage.lastViewedMakeId),b=parseInt(sessionStorage.lastViewedModelId),c=sessionStorage.lastViewedVType;parseInt(sessionStorage.lastViewedIsDCB);var d=new URLSearchParams(window.location.search),g="";"2Wheeler"==c?g="md_b":"4Wheeler"==c&&(g="md_c");1==d.get("dcbform")&&"/model.php"==pageSource&&0<jQuery("[data-cta-type]").length?setTimeout(()=>{jQuery("[data-cta-type]")[0].click()},50):1==d.get("dcbform")&&g==page_centralDCB_flag&&0<a&&0<b&&
setTimeout(()=>{isNotAnyPopUpOpen()&&(setGtmTracking(eventCategory,"smart-trigger-form-open","click",0,0),callTimeExitCentralDCB("smart-trigger-form-open"))},100)}function getLoginUserData(a){var b={myAccountSecret:ZW_AUTH_SECRET};"undefined"!=typeof $.centralLogin&&"function"===typeof $.centralLogin.getUser&&$.centralLogin.getUser(a,b)};