1(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function n(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n=e,r=[{key:"setBasePath",value:function(t){e.BASE_PATH=t,e.DATA_PATH=e.BASE_PATH+e.DATA_PATH}}],null&&t(n.prototype,null),r&&t(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}();function o(e){return o="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},o(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function a(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}n(i,"BASE_PATH",""),n(i,"DATA_PATH","/data/"),n(i,"SECTION_HOME","home"),n(i,"SECTION_ABOUT","about"),n(i,"SECTION_MODELS","models"),n(i,"SECTION_SERVICE","service"),n(i,"SECTION_DEALER","dealer"),n(i,"SECTION_TESTDRIVE","testdrive"),n(i,"HOME_SLIDER_STATUS_HOME","home"),n(i,"HOME_SLIDER_STATUS_MODELS","models"),n(i,"HOME_SLIDER_STATUS_HIDDEN","hidden");var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"_listeners",null)},(t=[{key:"addEventListener",value:function(e,t){var n=this._listeners=this._listeners||[];return n[e]||(n[e]=[]),n[e].push(t),t}},{key:"removeEventListener",value:function(e,t){var n=this._listeners;if(n){var r=n[e];if(r)if(t){for(var i=0,o=r.length;i<o;i++)if(r[i]==t){1==o?delete n[e]:r.splice(i,1);break}}else delete n[e]}}},{key:"dispatchEvent",value:function(e){var t=this._listeners;if(t){var n=t[e.type];if(n)for(var r=0,i=(n=n.slice()).length;r<i;r++)n[r]&&n[r].call(this,e)}}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();a(s,"EVENT_LOADED","loaded"),a(s,"EVENT_LOAD_ERROR","loadError"),a(s,"EVENT_LOADING","loading"),a(s,"EVENT_OPEN","open"),a(s,"EVENT_OPENED","opened"),a(s,"EVENT_CLOSE","close"),a(s,"EVENT_CLOSED","closed"),a(s,"EVENT_CHANGING","changing"),a(s,"EVENT_CHANGED","changed"),a(s,"EVENT_COMPLETE","complete"),a(s,"EVENT_SELECTED","selected"),a(s,"EVENT_ANIMATION_COMPLETE","animationComplete"),a(s,"EVENT_OVER","over"),a(s,"EVENT_OUT","out"),a(s,"EVENT_CLICK","click"),a(s,"EVENT_EMPTY","empty"),a(s,"EVENT_START","start"),a(s,"EVENT_NOTIFICATION","notification"),a(s,"EVENT_CONTINUE","continue"),a(s,"EVENT_BACK","back");var c=/iPhone/i,f=/iPod/i,p=/iPad/i,b=/\biOS-universal(?:.+)Mac\b/i,d=/\bAndroid(?:.+)Mobile\b/i,v=/Android/i,h=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,y=/Silk/i,m=/Windows Phone/i,E=/\bWindows(?:.+)ARM\b/i,T=/BlackBerry/i,g=/BB10/i,S=/Opera Mini/i,C=/\b(CriOS|Chrome)(?:.+)Mobile/i,P=/Mobile(?:.+)Firefox\b/i,w=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function O(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,r=n.split("[FBAN");void 0!==r[1]&&(n=r[0]),void 0!==(r=n.split("Twitter"))[1]&&(n=r[0]);var i=function(e){return function(t){return t.test(e)}}(n),o={apple:{phone:i(c)&&!i(m),ipod:i(f),tablet:!i(c)&&(i(p)||w(t))&&!i(m),universal:i(b),device:(i(c)||i(f)||i(p)||i(b)||w(t))&&!i(m)},amazon:{phone:i(h),tablet:!i(h)&&i(y),device:i(h)||i(y)},android:{phone:!i(m)&&i(h)||!i(m)&&i(d),tablet:!i(m)&&!i(h)&&!i(d)&&(i(y)||i(v)),device:!i(m)&&(i(h)||i(y)||i(d)||i(v))||i(/\bokhttp\b/i)}
1,windows:{phone:i(m),tablet:i(E),device:i(m)||i(E)},other:{blackberry:i(T),blackberry10:i(g),opera:i(S),firefox:i(P),chrome:i(C),device:i(T)||i(g)||i(S)||i(P)||i(C)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}function k(e){return k="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},k(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function A(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}var _=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"callAPIMethod",value:function(e,t){if(!e)return Promise.reject("Invalid method name");var n=i.BASE_PATH+"/api/"+e+"/";t||(t={});var r=new FormData;for(var o in t)r.append(o,t[o]);return new Promise((function(e,t){fetch(n,{method:"POST",cache:"no-cache",body:r}).then((function(e){if(e&&200===e.status)return e.json();t("Invalid status code")})).then((function(n){n&&n.success?e(n):n&&n.errMsg?t(n.errMsg):t("Unknown error")})).catch((function(e){t("Unknown error")}))}))}},{key:"getSlug",value:function(e){var t=e;for(t.indexOf(i.BASE_PATH)>=0&&(t=t.substr(i.BASE_PATH.length));t.length&&"/"==t[0];)t=t.substr(1);return t}},{key:"mapNumber",value:function(e,t,n,r,i){return r+(e-t)/(n-t)*(i-r)}},{key:"live",value:function(e,t,n){document.addEventListener(e,(function(e){var r=document.querySelectorAll(t);if(r){for(var i=e.target,o=-1;i&&-1===(o=Array.prototype.indexOf.call(r,i));)i=i.parentElement;o>-1&&n.call(i,e)}}))}},{key:"splitToElems",value:function(e,t,n,r){for(var i="",o=e.split(t),l=0;l<o.length;l++)i+=n,i+=o[l],i+=r;return i}},{key:"debounce",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){var i=this,o=arguments,l=r&&!n;clearTimeout(n),n=setTimeout((function(){n=null,r||e.apply(i,o)}),t),l&&e.apply(i,o)}}},{key:"getFileExtension",value:function(e){return e.indexOf("?")>=0&&(e=e.substr(0,e.indexOf("?"))),e.substr(e.lastIndexOf(".")+1).toLowerCase()}},{key:"isMobileResolution",value:function(){return window.innerWidth<768}},{key:"isTabletResolution",value:function(){return window.innerWidth<1024}},{key:"isDeviceResolution",value:function(){return this.isMobileResolution()||this.isTabletResolution()}},{key:"isMobile",value:function(){return O(navigator.userAgent).phone}},{key:"isTablet",value:function(){return O(navigator.userAgent).tablet}},{key:"isDevice",value:function(){return this.isMobile()||this.isTablet()}},{key:"logDevice",value:function(){navigator.userAgent}},{key:"compareObjects",value:function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0,o=n;i<o.length;i++){var l=o[i];if(e[l]!==t[l])return!1}return!0}},{key:"isValidEmail",value:function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}}],null&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="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},N(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function x(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var M,D,B,V=function(){return x((function e(){j(this,e)}),null,[{key:"mustLoadFiles",value:function(e){for(var t=[],n=0;n<e.length;n++)this.preloadedFiles.indexOf(e[n])>=0||t.push(e[n]);return t}},{key:"preloadFiles",value:function(e,t,n,r,i){e=this.mustLoadFiles(e);var o=this,l=new R;l.stopOnError=i,l.onFileSuccessCB=function(e){o.filePreloaded(e)},l.onFileErrorCB=function(e){},l.load(e,t,n,r)}},{key:"filePreloaded",value:function(e){this.preloadedFiles.push(e)}}])}();M=V,B=[],(D=I(D="preloadedFiles"))in M?Object.defineProperty(M,D,{value:B,enumerable:!0,configurable:!0,writable:!0}):M[D]=B;var R=function(){return x((function e(){j(this,e),this.filesToLoad=null,this.progressCallback=null,this.completeCallback=null,this.errorCallback=null,this.onFileSuccessCB=null,this.onFileErrorCB=null,this.index=0,this.totalFiles=0,this.currentFile="",this.stopOnError=!1}),[{key:"load",value:function(e,t,n,r){this.filesToLoad=e,this.progressCallback=t,this.completeCallback=n,this.errorCallback=r,this.totalFiles=this.filesToLoad.length,this.preloadNextFile()}},{key:"preloadNextFile",value:function(){var e=this;if(this.index<this.totalFiles){this.currentFile=this.filesToLoad[this.index],this.onCurrentFileProgress(0);var t=_.getFileExtension(this.currentFile);if("jpg"==t||"png"==t||"svg"==t||"webp"==t||"gif"==t){var n=new Image;n.onload=function(){e.onCurrentFileComplete()},n.onerror=function(){e.onCurrentFileError("Image error")},n.src=this.currentFile}else if("js"==t){var r=document.createElement("script");r.type="text/javascript",r.onload=function(){e.onCurrentFileComplete()},r.onerror=function(){e.onCurrentFileError("Script error")},r.src=this.currentFile,document.body.appendChild(r)}else{var i=new XMLHttpRequest;i.onloadend=function(){200==this.status?e.onCurrentFileComplete():e.onCurrentFileError()},i.open("GET",this.currentFile+"",!0),i.send()}}else this.completeCallback&&this.completeCallback()}},{key:"onCurrentFileProgress",value:function(e){var t=1/this.totalFiles,n=t*this.index+t*e;this.progressCallback&&this.progressCallback(n,this.index,this.totalFiles)}},{key:"onCurrentFileComplete",value:function(e){var t=this;_.getFileExtension(this.currentFile),this.onCurrentFileProgress(1),this.index++,this.timer=setTimeout((function(){t.onCurrentFileIncluded()}),20)}},{key:"onCurrentFileIncluded",value:function(){clearTimeout(this.timer),window.onJSScriptLoaded=null,this.onFileSuccessCB?this.onFileSuccessCB(this.currentFile):V.filePreloaded(this.currentFile),this.preloadNextFile()}},{key:"onCurrentFileError",value:function(e){this.onFileErrorCB&&this.onFileErrorCB(this.currentFile),this.stopOnError?this.errorCallback&&this.errorCallback("Error loading file "+this.currentFile):(this.onCurrentFileProgress(1),this.index++,this.preloadNextFile())}}])}();function H(e){return H="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},H(e)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q(r.key),r)}}function U(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){var t=function(e){if("object"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:t+""}var W=function(){return function(e,t){return t&&G(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,"element",void 0),U(this,"span1",void 0),U(this,"span2",void 0),U(this,"TESTING",!1),window.debug&&(this.TESTING=!0),document.addEventListener("DOMContentLoaded",(function(){t.initLoad()}))}),[{key:"initLoad",value:function(){var e=this;this.element=document.querySelector(".loader"),this.span1=this.element.querySelector(".logo-loader--1"),this.span2=this.element.querySelector(".logo-loader--2");var t=[BasePath+"/public/img/ui/entrada_140x140px_97fts_3-3seg.png",BasePath+"/public/img/ui/loop_140x140px_39fts_3-1seg.png"],n=this.TESTING?100:1e3,r=this.TESTING?100:3300;V.preloadFiles(t,(function(){}),(function(){e.span1.classList.add("logo-loader--in"),setTimeout((function(){e.span2.classList.add("logo-loader--loop"),setTimeout((function(){e.preloadFiles()}),n)}),r)}),(function(){}))}},{key:"preloadFiles",value:function(){var e=[];e.push(BasePath+"/public/js/libs.min.js"),e.push(BasePath+"/public/js/main.min.js"),V.preloadFiles(e,(function(){}),(function(){}),(function(){console.log("LOAD ERROR")}))}}])}();new W})(); 2//# sourceMappingURL=preloader.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.