"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function tdp_ready(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function tdp_addClass(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function tdp_removeClass(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function tdp_toggleClass(e,t){var r,n;e.classList?e.classList.toggle(t):(0<=(n=(r=e.className.split(" ")).indexOf(t))?r.splice(n,1):r.push(t),e.className=r.join(" "))}function tdp_hasClass(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}function tdp_isHidden(e){return null===e.offsetParent}Array.from||(Array.from=function(){function l(e){return"function"==typeof e||"[object Function]"===t.call(e)}function u(e){return e=function(e){e=Number(e);return isNaN(e)?0:0!==e&&isFinite(e)?(0 ',f,g,"["+a+","+i+"]"),a=f,i=g,s=l=""):c=D)}c||(a=(A=t(e,a))[0],l=A[1],i=(A=t(e,i))[0].replace(/^([+-\/*])=/,function(e,t){return u=t,""}),s=A[1],a=parseFloat(a)||0,i=parseFloat(i)||0,"%"===s&&(/^(fontSize|lineHeight)$/.test(e)?(i/=100,s="em"):/^scale/.test(e)?(i/=100,s=""):/(Red|Green|Blue)$/i.test(e)&&(i=i/100*255,s="")));var E,A,N,F;if(/[\/*]/.test(u))s=l;else if(l!==s&&0!==a)if(0===i)s=l;else{j=j||(t={myParent:H.parentNode||_.body,position:B.getPropertyValue(H,"position"),fontSize:B.getPropertyValue(H,"fontSize")},A=t.position===z.lastPosition&&t.myParent===z.lastParent,N=t.fontSize===z.lastFontSize,z.lastParent=t.myParent,z.lastPosition=t.position,z.lastFontSize=t.fontSize,F={},N&&A?(F.emToPx=z.lastEmToPx,F.percentToPxWidth=z.lastPercentToPxWidth,F.percentToPxHeight=z.lastPercentToPxHeight):(E=L&&L.isSVG?_.createElementNS("http://www.w3.org/2000/svg","rect"):_.createElement("div"),W.init(E),t.myParent.appendChild(E),$.each(["overflow","overflowX","overflowY"],function(e,t){W.CSS.setPropertyValue(E,t,"hidden")}),W.CSS.setPropertyValue(E,"position",t.position),W.CSS.setPropertyValue(E,"fontSize",t.fontSize),W.CSS.setPropertyValue(E,"boxSizing","content-box"),$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){W.CSS.setPropertyValue(E,t,"100%")}),W.CSS.setPropertyValue(E,"paddingLeft","100em"),F.percentToPxWidth=z.lastPercentToPxWidth=(parseFloat(B.getPropertyValue(E,"width",null,!0))||1)/100,F.percentToPxHeight=z.lastPercentToPxHeight=(parseFloat(B.getPropertyValue(E,"height",null,!0))||1)/100,F.emToPx=z.lastEmToPx=(parseFloat(B.getPropertyValue(E,"paddingLeft"))||1)/100,t.myParent.removeChild(E)),null===z.remToPx&&(z.remToPx=parseFloat(B.getPropertyValue(_.body,"fontSize"))||16),null===z.vwToPx&&(z.vwToPx=parseFloat(I.innerWidth)/100,z.vhToPx=parseFloat(I.innerHeight)/100),F.remToPx=z.remToPx,F.vwToPx=z.vwToPx,F.vhToPx=z.vhToPx,1<=W.debug&&console.log("Unit ratios: "+JSON.stringify(F),H),F);var q=/margin|padding|left|right|width|text|word|letter/i.test(e)||/X$/.test(e)||"x"===e?"x":"y";switch(l){case"%":a*="x"==q?j.percentToPxWidth:j.percentToPxHeight;break;case"px":break;default:a*=j[l+"ToPx"]}switch(s){case"%":a*=1/("x"==q?j.percentToPxWidth:j.percentToPxHeight);break;case"px":break;default:a*=1/j[s+"ToPx"]}}switch(u){case"+":i=a+i;break;case"-":i=a-i;break;case"*":i*=a;break;case"/":i=a/i}R[e]={rootPropertyValue:n,startValue:a,currentValue:a,endValue:i,unitType:s,easing:o},c&&(R[e].pattern=c),W.debug&&console.log("tweensContainer ("+e+"): "+JSON.stringify(R[e]),H)}else W.debug&&console.log("Skipping ["+r+"] due to a lack of browser support.")};for(c in V)if(V.hasOwnProperty(c)){var p=B.Names.camelCase(c),f=(f=V[c],n=r=h=g=void 0,U.isFunction(f)&&(f=f.call(H,S,T)),U.isArray(f)?(h=f[0],n=!U.isArray(f[1])&&/^[\d-]/.test(f[1])||U.isFunction(f[1])||B.RegEx.isHex.test(f[1])?f[1]:U.isString(f[1])&&!B.RegEx.isHex.test(f[1])&&W.Easings[f[1]]||U.isArray(f[1])?(r=g?f[1]:G(f[1],M.duration),f[2]):f[1]||f[2]):h=f,g||(r=r||M.easing),[(h=U.isFunction(h)?h.call(H,S,T):h)||0,r,n=U.isFunction(n)?n.call(H,S,T):n]);if(F(B.Lists.colors)){var g=f[0],m=f[1],h=f[2];if(B.RegEx.isHex.test(g)){for(var y=["Red","Green","Blue"],v=B.Values.hexToRgb(g),b=h?B.Values.hexToRgb(h):D,w=0;ww&&++m li")),c=Array.from(document.querySelectorAll("div.dropDown, div.vehicleDropDown")),d=document.getElementById("navOverlay"),p=window.jQuery?$.Velocity:Velocity;enquire.register("screen and (max-width: 1279px)",{setup:function(){e.forEach(function(e,t){e.addEventListener("click",n)})},match:function(){s.forEach(function(e,t){e.addEventListener("click",r)})},deferSetup:!0}).register("screen and (min-width: 1280px)",{match:function(){tdp_removeClass(o,"navOpen"),u.forEach(function(e,t){tdp_removeClass(e,"openMenu")}),c.forEach(function(e,t){e.setAttribute("style","")}),a.setAttribute("style",""),s.forEach(function(e,t){e.removeEventListener("click",r)}),window.coreNavHoverintent=hoverintent(l,function(){p.animate(d,"finish"),p.animate(d,"fadeIn",{delay:150,duration:200})},function(){p.animate(d,"finish"),p.animate(d,"fadeOut",{delay:50,duration:200})}).options(i),u.forEach(function(e,t){hoverintent(e,function(){tdp_addClass(this,"hovering")},function(){tdp_removeClass(this,"hovering")}).options(i)});var e=Array.from(document.querySelectorAll("ol.ddVehiclesList > li")),t=Array.from(document.querySelectorAll(".ddVehicle"));e.forEach(function(e,t){hoverintent(e,function(){var t=this;tdp_addClass(this,"hoveringCat"),Array.prototype.filter.call(this.parentNode.children,function(e){e!==t&&tdp_removeClass(e,"hoveringCat")})},function(){}).options(i)}),t.forEach(function(e,t){e.addEventListener("mouseenter",function(e){tdp_addClass(e.target.parentNode,"currentHoverCat"),tdp_addClass(e.target,"hoveringVehicle")}),e.addEventListener("mouseleave",function(e){tdp_removeClass(e.target.parentNode,"currentHoverCat"),tdp_removeClass(e.target,"hoveringVehicle")})})},unmatch:function(){window.coreNavHoverintent.remove()},deferSetup:!0})});var htmlTag=document.getElementsByTagName("html")[0],VelocityHandle=(window.addEventListener("touchstart",function(){htmlTag.classList.add("has-touch")}),window.jQuery?$.Velocity:Velocity),navItems=(navOverlay.addEventListener("touchend",function(){"none"!==navOverlay.style.display&&VelocityHandle.animate(navOverlay,"fadeOut",{delay:50,duration:200})}),document.querySelectorAll("#nav > li > a"));Array.prototype.forEach.call(navItems,function(t,e){t.addEventListener("click",function(e){if(!t.nextElementSibling)return!1;"DIV"===t.nextElementSibling.nodeName&&tdp_hasClass(htmlTag,"has-touch")&&e.preventDefault()})});