1function Animation(s){var i=this;this.index=s.index,this.scope=s.scope,this.range=s.hasOwnProperty("range")?s.range:"bt",this.screen=s.hasOwnProperty("screen")?s.screen:{},this.theme=s.hasOwnProperty("theme")?s.theme:"light",this.elements,this.videos=s.hasOwnProperty("videos")?s.videos:[],this.encrypt=[],this.replay=s.hasOwnProperty("replay")?s.replay:{trigger:null,type:null,timeout:null},this.steps=[],this.transitionTimeout,this.isValid=!0,this.isOnView=!1,this.autoscroll=s.hasOwnProperty("autoscroll")?s.autoscroll:"top",this.siblings={before:!1,after:!1},this.boundary={},this.pct=0,this.init=function(){this.scope?(this.elements=this.build(),this.videos=this.buildVideos(),this.replay.btn=this.scope.querySelector(".anim-replay"),this.steps=this.scope.querySelectorAll(".anim-step"),this.encrypt=getEncrypts(this.scope),this.setBoundaries(),this.setReplay(),this.setSteps(),this.isInMediaQuery()&&this.animate()):this.isValid=!1},this.buildVideos=function(){var t=this.videos,e=this.scope.querySelectorAll("video.play-onview"),i=[];if(e){for(var s=0;s<e.length;s++){var n=!1;if(this.videos)for(var o=0;o<this.videos.length;o++)if(this.videos[o].node===e[s]){n=this.videos[o].playOnView=!0;break}n||t.push({node:e[s],playOnView:!0})}if(t.length)for(s=0;s<t.length;s++)t[s].parentNode=this.scope,i.push(new AnimationVideo(t[s]))}return i},this.setBoundaries=function(){this.boundary.top=this.scope.offsetTop,this.boundary.bottom=this.scope.offsetTop+this.scope.offsetHeight},this.hasReplay=function(){return this.replay.btn&&this.replay.trigger&&this.replay.type},this.setReplay=function(){this.hasReplay()&&this.replay.btn.addEventListener("click",function(){i.playAgain()},!1)},this.playAgain=function(){this.unstep(),removeClass(this.scope,"play"),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){addClass(i.scope,"play"),i.playVideosOnView()})}),removeClass(this.replay.btn,"active")},this.onAnimationFinished=function(){if(addClass(i.replay.btn,"active"),i.boundary.bottom!=i.scope.offsetTop+i.scope.offsetHeight){var t=animations.length,e=0;for(e=0;e<t;e++)animations[e].setBoundaries()}},this.listenPlayBtn=function(){"animation"===this.replay.type?this.replay.trigger.addEventListener("animationend",this.onAnimationFinished,!1):"transition"===this.replay.type?this.replay.trigger.addEventListener("transitionend",this.onAnimationFinished,!1):"video"===this.replay.type&&this.replay.trigger.addEventListener("ended",this.onAnimationFinished,!1)},this.stopListenPlayBtn=function(){this.hasReplay()&&(removeClass(this.replay.btn,"active"),"animation"===this.replay.type?this.replay.trigger.removeEventListener("animationend",this.onAnimationFinished,!1):"transition"===this.replay.type?this.replay.trigger.removeEventListener("transitionend",this.onAnimationFinished,!1):"video"===this.replay.type&&this.replay.trigger.removeEventListener("ended",this.onAnimationFinished,!1))},this.play=function(){this.hasReplay()&&(this.transitionTimeout&&clearTimeout(this.transitionTimeout),addClass(this.scope,"play"),this.listenPlayBtn())},this.unplay=function(){this.hasReplay()&&(removeClass(this.scope,"play"),this.stopListenPlayBtn())},this.playVideo=function(e){var t=e.play();void 0!==t&&t.then(function(){}).catch(function(t){e.fallback&&addClass(i.scope,e.fallback)})},this.playVideosOnView=function(){if(this.videos)for(var t=0;t<this.videos.length;t++)!0===this.videos[t].playOnView&&this.playVideo(this.videos[t])},this.pauseVideosOnView=function(){if(this.videos)for(var t=0;t<this.videos.length;t++)!0===this.videos[t].playOnView&&this.videos[t].pause()},this.setSteps=function(){if(this.steps)for(var t=0;t<this.steps.length;t++)this.steps[t].addEventListener("click",function(){addClass(i.scope,"step-"+this.getAttribute("data-step"))},!1)},this.unstep=function(){this.steps&&(this.scope.className=this.scope.className.replace(/step-\w*/g,""))},this.isAtBreakpoint=function(t){return"top"===t&&this.boundary.top>=splScroll.y||"bot"===t&&this.boundary.bottom<=splScroll.y+splWinSize.y},this.onview=function(t){switch(t=void 0!==t?t:this.range){case"bt":return this.boundary.top<=splScroll.y+splWinSize.y&&this.boundary.bottom>splScroll.y;case"bb":return this.boundary.top<=splScroll.y+splWinSize.y&&this.boundary.bottom>splScroll.y+splWinSize.y;case"tt":return this.boundary.top<=splScroll.y&&this.boundary.bottom>splScroll.y;case"tb":return this.boundary.top<=splScroll.y&&this.boundary.bottom>splScroll.y+splWinSize.y;case"mm":return this.boundary.top<=splScroll.y+splWinSize.y/2&&this.boundary.bottom>splScroll.y+splWinSize.y/2;case"tm":return this.boundary.top<=splScroll.y&&this.boundary.bottom>splScroll.y+splWinSize.y/2;case"mt":return this.boundary.top<=splScroll.y+splWinSize.y/2&&this.boundary.bottom>splScroll.y}},this.getPct=function(t){switch(t=void 0!==t?t:this.range){case"bt":return(s
1plScroll.y-this.scope.offsetTop+splWinSize.y)/(this.scope.offsetHeight+splWinSize.y)*100;case"bb":return(splScroll.y-this.scope.offsetTop+splWinSize.y)/this.scope.offsetHeight*100;case"tt":return(splScroll.y-this.scope.offsetTop)/this.scope.offsetHeight*100;case"tb":return(splScroll.y-this.scope.offsetTop)/(this.scope.offsetHeight-splWinSize.y)*100;case"tm":return(splScroll.y-this.scope.offsetTop)/(this.scope.offsetHeight-splWinSize.y/2)*100;case"mm":return(splScroll.y-this.scope.offsetTop+splWinSize.y/2)/this.scope.offsetHeight*100}},this.animate=function(){if(this.elements){this.pct=this.getPct().toFixed(3);for(var t=0;t<this.elements.length;t++)this.elements[t].animate(this.pct)}},this.isInMediaQuery=function(){return!(this.screen.hasOwnProperty("min")&&splWinSize.x<this.screen.min)&&!(this.screen.hasOwnProperty("max")&&splWinSize.x>this.screen.max)},this.update=function(){if(this.isInMediaQuery())if(this.onview()){if(!this.isOnView){this.isOnView=!0,addClass(this.scope,"onview"),addClass(i.scope,"played-once"),this.play(),this.playVideosOnView();for(var t=0;t<this.encrypt.length;t++)this.encrypt[t].decrypt()}this.animate(),techNavigation&&"object"==typeof techNavigation&&techNavigation.update(this)}else if(this.isOnView){this.isOnView=!1,this.animate(),removeClass(this.scope,"onview"),this.transitionTimeout=setTimeout(function(){i.unplay(),i.unstep()},500),this.pauseVideosOnView();for(t=0;t<this.encrypt.length;t++)hasClass(this.encrypt[t].node,"noreset")||this.encrypt[t].reset()}},this.build=function(){if(s.elements){for(var t=[],e=0;e<s.elements.length;e++){var i=new AnimationElement(this.scope,s.elements[e]);i.node&&t.push(i)}return t}},this.scrollTo=function(t){window.scrollTo(0,this.scope.offsetTop+this.scope.offsetHeight*(t/100))},this.init()}function AnimationElement(i,s){this.node=[],this.timeline,this.pct=0,this.lastActiveItem,this.init=function(){if(s.node.constructor==Array)for(var t=0;t<s.node.length;t++){var e=i.querySelector(s.node[t]);e?this.node.push(e):this.logError(s.node[t],i.className)}else this.node=[i.querySelector(s.node)],this.node||this.logError(s.node,i.className);this.timeline=this.build()},this.logError=function(t,e){console.log(t+" was not found in "+e)},this.animate=function(t){this.pct=t,this.lastActiveItem=null;for(var e=0;e<this.node.length;e++){for(var i="",s=0;s<this.timeline.length;s++)this.timeline[s].inTimeline(this.pct)?this.timeline[s].props?i+=this.timeline[s].getComputedStyles(this.pct):this.timeline[s].class&&-1===getSanitizedClass(this.node[e]).indexOf(this.timeline[s].class)&&addClass(this.node[e],this.timeline[s].class):(this.timeline[s].props&&this.timeline[s].hasPassed(this.pct)&&(this.lastActiveItem=this.timeline[s]),!this.timeline[s].class||this.timeline[s].hasPassed(this.pct)&&100==this.timeline[s].end||-1!=getSanitizedClass(this.node[e]).indexOf(this.timeline[s].class)&&removeClass(this.node[e],this.timeline[s].class));if(!i)if(this.lastActiveItem)i+=this.lastActiveItem.getComputedStyles(this.lastActiveItem.end);else for(var s=0;s<this.timeline.length;s++)if(this.timeline[s].props){i+=this.timeline[s].getComputedStyles(this.timeline[s].start);break}i&&this.node[e].setAttribute("style",i)}},this.build=function(){if(s.timeline){for(var t=[],e=0;e<s.timeline.length;e++){var i=new AnimationTimelineItem(s.timeline[e]);(i.props||i.class)&&t.push(i)}return t}},this.init()}function AnimationTimelineItem(t){var o=this;this.type=t.type?t.type:"css",this.start=t.start,this.end=t.end,this.props=t.hasOwnProperty("props")?t.props:null,this.class=t.hasOwnProperty("class")?t.class:null,this.pct=0,this.init=function(){},this.getComputedStyles=function(t){this.pct=t;for(var e="",i=0;i<this.props.length;i++){if(this.props[i].value){this.props[i].from=this.props[i].from.constructor==Array?this.props[i].from:[this.props[i].from],this.props[i].to=this.props[i].to.constructor==Array?this.props[i].to:[this.props[i].to];var s=-1,n=this.props[i].value.replace(/{\d+}/g,function(t,e){return s++,o.getPctValue(o.props[i].from[s],o.props[i].to[s],o.pct)})}else{void 0===this.props[i].unit&&(this.props[i].unit="");
1n=this.getPctValue(o.props[i].from,o.props[i].to,this.pct)+this.props[i].unit}e+=this.props[i].name+":"+n+";"}return e},this.inTimeline=function(t){return this.start<=t&&this.end>=t},this.hasPassed=function(t){return this.end<t},this.getPctValue=function(t,e,i){var s=(t-e)/(this.start-this.end);return(s*i+(e-s*this.end)).toFixed(2)},this.init()}function AnimationVideo(t){var e=this;this.node=t.node,this.parentNode=t.parentNode,this.playOnView=!!t.hasOwnProperty("playOnView")&&t.playOnView,this.steps=t.hasOwnProperty("steps")?t.steps:[],this.fallback=!!t.hasOwnProperty("fallback")&&t.fallback,this.init=function(){this.steps.length&&this.node.addEventListener("timeupdate",function(){e.update()})},this.update=function(){for(var t=0;t<this.steps.length;t++)this.steps[t].start<=this.node.currentTime&&this.steps[t].end>this.node.currentTime?addClass(this.parentNode,this.steps[t].class):removeClass(this.parentNode,this.steps[t].class)},this.play=function(){return this.node.play()},this.pause=function(){this.node.pause()},this.init()}var animationTimeout,techNavigation,autoscrolls,windowResizeTimeout,animations=[],animations_data={front:[{scope:document.querySelector(".front-section-intro"),range:"mm",screen:{min:1024},replay:{trigger:document.querySelector(".front-intro-video"),type:"video"},videos:[{node:document.querySelector(".front-intro-video"),steps:[{start:2,end:5.9,class:"mile-1"},{start:6.5,end:11.1,class:"mile-2"},{start:12,end:17,class:"mile-3"}]}]},{scope:document.querySelector(".front-section-range"),range:"mm",replay:{trigger:document.querySelector(".front-range-label-short"),type:"transition"}},{scope:document.querySelector(".front-section-security"),range:"mm",replay:{trigger:document.querySelector("#sec-label-5-1"),type:"transition"},videos:[{node:document.querySelector(".front-security-video"),fallback:"step-1",steps:[{start:1.8,end:9999,class:"step-1"}]}]}],tech:[{scope:document.querySelector(".tech-section-cvflow"),range:"tb",screen:{min:1024},autoscroll:"bottom",elements:[{node:".tech-cvflow-intro",timeline:[{start:8,end:100,class:"dissmissed"}]},{node:".tech-cvflow-intro",timeline:[{start:2,end:7,props:[{name:"background",value:"hsla(0, 100%, 100%, {1})",from:1,to:0}]}]},{node:".tech-cvflow-intro-title",timeline:[{start:4,end:9,props:[{name:"opacity",from:1,to:0},{name:"transform",value:"translateY({1}px)",from:0,to:20}]}]},{node:".tech-cvflow-intro-text",timeline:[{start:3,end:8,props:[{name:"opacity",from:1,to:0},{name:"transform",value:"translateY({1}px)",from:0,to:20}]}]},{node:".tech-cvflow-intro-scrollhint-wrap",timeline:[{start:2,end:7,props:[{name:"opacity",from:1,to:0},{name:"transform",value:"translateY({1}px)",from:0,to:20}]}]},{node:"#nodes",timeline:[{start:5,end:100,class:"play"}]},{node:"#node-lines-group",timeline:[{start:5,end:100,class:"play"}]},{node:"#node-path-1",timeline:[{start:5,end:15,props:[{name:"stroke-dashoffset",from:47,to:-250}]}]},{node:"#node-path-2",timeline:[{start:9,end:19,props:[{name:"stroke-dashoffset",from:47,to:-250}]},{start:23,end:33,props:[{name:"stroke-dashoffset",from:-250,to:-570}]}]},{node:"#node-path-3",timeline:[{start:11,end:21,props:[{name:"stroke-dashoffset",from:47,to:-250}]},{start:31,end:41,props:[{name:"stroke-dashoffset",from:-250,to:-570}]}]},{node:".tech-cvflow-content-1",timeline:[{start:5,end:17,class:"active"}]},{node:"#network",timeline:[{start:23,end:100,class:"hide"}]},{node:".tech-cvflow-content-2",timeline:[{start:23,end:30,class:"active"}]},{node:"#triple-stream-1",timeline:[{start:30.4,end:60,props:[{name:"stroke-dashoffset",from:-484,to:0}]}]},{node:"#triple-stream-2",timeline:[{start:30.4,end:60,props:[{name:"stroke-dashoffset",from:-484,to:0}]}]},{node:"#triple-stream-3",timeline:[{start:30,end:60,props:[{name:"stroke-dashoffset",from:484,to:0}]}]},{node:".tech-cvflow-svg-wrap svg",timeline:[{start:30.4,end:60,props:[{name:"transform",value:"translateY({1}%)",from:0,to:-39}]},{start:76,end:90,props:[{name:"transform",value:"translateY({1}%)",from:-39,to:-70}]}]},{node:"#cpu",timeline:[{start:56,end:59,props:[{name:"opacity",from:0,to:1},{name:"transform",value:"scale({1})",from:.9,to:1}]}]},{node:["#cpu-mask-6","#cpu-mask-9","#cpu-mask-10","#cpu-mask-12","#cpu-mask-15","#cpu-mask-16"],timeline:[{start:60,end:70,props:[{name:"stroke-dashoffset",from:0,to:116}]}]},{node:["#cpu-mask-1","#cpu-mask-4","#cpu-mask-8","#cpu-mask-13"],timeline:[{start:61,end:70,props:[{name:"stroke-dashoffset",from:0,to:116}]}]},{node:["#cpu-mask-2","#cpu-mask-11","#cpu-mask-18","#cpu-mask-19","#cpu-mask-20"],timeline:[{start:62,end:70,props:[{name:"stroke-dashoffset",from:0,to:116}]}]},{node:["#cpu-mask-3","#cpu-mask-5","#cpu-mask-7","#cpu-mask-14","#cpu-mask-17"],timeline:[{start:63,end:70,props:[{name:"stroke-dashoffset",from:0,to:116}]}]},{node:".tech-cvflow-content-3",timeline:[{start:64,end:76,class:"active"}]},{node:["#stream-path","#stream-path-num"],timeline:[{start:76,end:90,props:[{name:"stroke-dashoffset",from:421,to:0}]}]},{node:"#cam",timeline:[{start:84,end:88,props:[{name:"opacity",from:0,to:1}]}]},{node:"#cam-pattern",timeline:[{start:89,end:96,props:[{name:"clip-path",value:"circle({1}% at 50% 0%)",from:0,to:100}]}]},{node:".tech-cvflow-content-4",timeline:[{start:90,end:100,class:"active"}]}]},{scope:document.querySelector(".tech-section-stereo"),range:"mm",replay:{trigger:document.querySelector("#stereo-distance-num"),type:"transition"}},{scope:document.querySelector(".tech-section-power"),range:"mm",replay:{trigger:document.querySelector("#power-product-real-4"),type:"animation"}},{scope:document.querySelector(".tech-section-compression"),range:"mm",replay:{trigger:document.querySelector("#cpr-cloud-1"),type:"transition"}},{scope:document.querySelector(".tech-section-quality"),range:"mm",replay:{trigger:document.querySelector("#quality-label-3-line"),type:"transition"}},{scope:document.querySelector(".tech-section-safety"),range:"mm"},{scope:document.querySelector(".tech-section-vision"),range:"mm",screen:{min:1024}},{scope:document.querySelector(".tech-section-auto"),range:"mm",screen:{min:1024}},{scope:document.querySelector(".tech-section-sdk"),range:"mm",replay:{trigger:document.querySelector(".tech-sdk-img"),type:"transition"}}]};function initAnimations(){if(animations_data){if(document.querySelector(".main-front"))var t=animations_data.front;else if(document.querySelector(".main-tech"))t=animations_data.tech;if(t){for(var e=0;e<t.length;e++){t[e].index=e;var i=new Animation(t[e]);i.isValid&&animations.push(i)}for(e=0;e<animations.length;e++)0<e&&animations[e-1].autoscroll&&(animations[e].siblings.before=animations[e-1].index),e<animations.length-1&&animations[e+1].autoscroll&&(animations[e].siblings.after=animations[e+1].index);animations.length&&0===splScroll.y&&updateAnimations()}}}function updateAnimations(t){t=void 0!==t&&t;for(var e=0;e<animations.length;e++)t&&animations[e].setBoundaries(),animations[e].update()}function getAnimationById(t){if(animations)for(var e=0;e<animations.length;e++)if(animations[e].scope.id===t)return animations[e]}function getAnimationByIndex(t){if(animations)for(var e=0;e<animations.length;e++)if(animations[e].index===t)return animations[e]}function techNavigationObj(){this.node=document.querySelector(".tech-nav"),this.items=[],this.theme="",this.changeTimeout,this.init=function(){if(this.node){var t=this.node.querySelectorAll(".tech-nav-item");if(t)for(var e=0;e<t.length;e++)this.items.push(new techNavigationItems(t[e]))}},this.resetItems=function(){for(var t=0;t<this.items.length;t++)removeClass(this.items[t].node,"active")},this.changeTheme=function(t){this.theme!==t&&("light"===t?removeClass(this.node,"dark"):removeClass(this.node,"light")),addClass(this.node,t)},this.update=function(t){this.changeTheme(t.theme),this.items[t.index].activate()},this.init()}function techNavigationItems(t){var e=this;this.node=t,this.index,this.link,this.init=function(){this.index=parseInt(this.node.getAttribute("data-index")),this.link=t.querySelector(".tech-nav-link"),this.target=getAnimationById(this.link.href.split("#")[1]),this.target&&autoscrolls&&this.link.addEventListener("click",function(t){autoscrolls.currentOnView=e.target,autoscrolls.scrollToTarget(e.target,{align:{top:0,left:0,topOffset:0,leftOffset:0}}),t.preventDefault()},!1)},this.activate=function(){hasClass(this.node,"active")||(clearTimeout(techNavigation.changeTimeout),techNavigation.resetItems(),addClass(this.node,"active"),addClass(techNavigation.node,"changed"),techNavigation.changeTimeout=setTimeout(function(){removeClass(techNavigation.node,"changed")},2e3))},this.init()}function Autoscrolls(t){var n=this;this.nodes=t,this.preventScroll=!1,this.isDown,this.isScrolling=!1,this.scrollTime=800,this.delay=500,this.currentOnView,this.keys={32:1,33:1,34:1,35:1,38:1,40:1}
1,this.init=function(){},this.getScrollTarget=function(){if(!this.currentOnView)for(var t=0;t<animations.length;t++)if(animations[t].onview("bt")){this.currentOnView=animations[t];break}if(this.currentOnView){if(this.isDown&&this.currentOnView.isAtBreakpoint("bot")&&!1!==this.currentOnView.siblings.after)return getAnimationByIndex(this.currentOnView.siblings.after);if(!this.isDown&&this.currentOnView.isAtBreakpoint("top")&&!1!==this.currentOnView.siblings.before)return getAnimationByIndex(this.currentOnView.siblings.before)}return!1},this.scrollToTarget=function(t,e){this.isScrolling=!0,this.currentOnView=t;var i={time:this.scrollTime,align:{top:0,left:0,topOffset:"bottom"===t.autoscroll?-1*(t.scope.offsetHeight-splWinSize.y):0,leftOffset:0}};if(void 0!==e)for(var s in e)i[s]=e[s];window.scrollIntoView(t.scope,i,function(t){if("complete"===t)setTimeout(function(){n.isScrolling=!1},n.delay)})},this.isScrollDown=function(t){switch(t.type){case"wheel":case"DOMMouseScroll":case"mousewheel":return 0<t.deltaY;case"keydown":switch(t.keyCode){case 34:case 35:case 40:return!0;case 33:case 38:return!1;case 32:return!t.shiftKey}}},this.maybeAutoscroll=function(t){t=t||window.event,splScroll.y!==document.body.offsetHeight-splWinSize.y?("keydown"!=t.type&&void 0!==t.deltaY||"keydown"===t.type&&n.keys[t.keyCode])&&(n.isDown=n.isScrollDown(t),n.isScrolling||(target=n.getScrollTarget())&&n.scrollToTarget(target),n.isScrolling&&(t.preventDefault(),t.returnValue=!1)):this.currentOnView=!1},this.preventDefaultForScrollKeys=function(t){if(n.keys[t.keyCode])return n.preventDefault(t),!1},this.addListeners=function(){window.addEventListener("DOMMouseScroll",this.maybeAutoscroll,{passive:!1}),window.addEventListener("wheel",this.maybeAutoscroll,{passive:!1}),window.addEventListener("mousewheel",this.maybeAutoscroll,{passive:!1}),window.addEventListener("keydown",this.maybeAutoscroll,{passive:!1})},this.removeListeners=function(){window.removeEventListener("DOMMouseScroll",this.maybeAutoscroll),window.removeEventListener("wheel",this.maybeAutoscroll),window.removeEventListener("mousewheel",this.maybeAutoscroll),window.removeEventListener("keydown",this.maybeAutoscroll)},this.init()}function maybeRemoveAutoscroll(){autoscrolls&&(autoscrolls.removeListeners(),isDeviceMobile()||autoscrolls.addListeners())}function initAutoscroll(){animations.length&&(autoscrolls=new Autoscrolls(document.querySelectorAll(".autoscrolls")),isDeviceMobile()||autoscrolls.addListeners())}function maybeRemoveVideoControls(t){if(t=void 0!==t?t:document.querySelectorAll("video.no-controls"))if(isDeviceMobile())for(e=0;e<t.length;e++)t[e].setAttribute("controls","true"),t[e].setAttribute("poster",t[e].getAttribute("data-poster"));else for(var e=0;e<t.length;e++)t[e].removeAttribute("controls"),t[e].removeAttribute("poster")}function initVideoControls(){maybeRemoveVideoControls(document.querySelectorAll("video.no-controls"))}function TechSectionSafety(){this.node=document.querySelector(".tech-section-safety"),this.layers=[],this.running=!1,this.init=function(){if(this.node){for(var t=this.node.querySelectorAll(".tech-safety-layer"),e=0;e<t.length;e++){var i=JSON.parse(t[e].getAttribute("data-args"));this.layers.push({node:t[e],img:i.img}),t[e].removeAttribute("data-args")}window.addEventListener("breakpointchange",this.toggleSection.bind(this),!1),this.toggleSection()}},this.toggleSection=function(){Screen.size.above("m")?this.running||(this.running=!0,this.addImages(),window.addEventListener("mousemove",this._parallax,!1)):this.running&&(this.running=!1,this.removeImages(),window.removeEventListener("mousemove",this._parallax,!1))},this.addImages=function(){for(var t=0;t<this.layers.length;t++)this.layers[t].node.style.backgroundImage="url("+this.layers[t].img+")"},this.removeImages=function(){for(var t=0;t<this.layers.length;t++)this.layers[t].node.removeAttribute("style")},this.parallax=function(t){var e=2*(t.clientX/window.innerWidth*100-50),i=2*(t.clientY/window.innerHeight*100-50);this.layers[0].node.style.transform="scale(1.1) translate("+.01*e*-1+"%, "+.01*i*-1+"%)",this.layers[1].node.style.transform="scale(1.1) translate("+.02*e*-1+"%, "+.02*i*-1+"%)"},this._parallax=function(t){this.parallax(t)}.bind(this),this.init()}function initTech(){if(document.querySelector(".tech-nav")&&(techNavigation=new techNavigationObj,animations&&splScroll.y),document.querySelector("video.no-controls")&&initVideoControls(),document.querySelector(".tech-section-cvflow .tech-cvflow-play-btn")&&document.querySelector(".tech-section-cvflow .tech-cvflow-svg-close")){var t,e,i,s=document.querySelector(".tech-section-cvflow");document.querySelector(".tech-cvflow-play-btn").addEventListener("click",function(){addClass(s,"init-play"),t=setTimeout(function(){addClass(s,"play")},300),e=setTimeout(function(){removeClass(s,"init-play")},19e3),i=setTimeout(function(){removeClass(s,"play")},19300)},!1),document.querySelector(".tech-cvflow-svg-close").addEventListener("click",function(){clearTimeout(t),clearTimeout(e),clearTimeout(i),removeClass(s,"init-play"),i=setTimeout(function(){removeClass(s,"play")},300)},!1)}if(document.querySelector(".tech-cvflow-intro-scrollhint")&&document.querySelector(".tech-cvflow-intro-scrollhint").addEventListener("click",function(){var t=getAnimationById("cvflow");t&&t.scrollTo(8)},!1),document.querySelector(".tech-section-safety .tech-safety-layer")&&new TechSectionSafety,document.querySelector(".tech-section-vision .tech-vision-group .tech-vision-video")){var n=document.querySelectorAll(".tech-vision-group"),o=document.querySelectorAll(".tech-vision-video");if(n.length===o.length)for(var r=0;r<n.length;r++)n[r].addEventListener("mouseenter",function(){isDeviceMobile()||this.querySelector(".tech-vision-video").play()},!1),n[r].addEventListener("mouseleave",function(){isDeviceMobile()||this.querySelector(".tech-vision-video").pause()},!1)}}initAnimations(),initAutoscroll(),initTech(),animations.length&&window.addEventListener("scroll",function(){updateAnimations()},!1),window.addEventListener("resize",function(){windowResizeTimeout&&clearTimeout(windowResizeTimeout),windowResizeTimeout=setTimeout(function(){animations&&updateAnimations(!0),maybeRemoveVideoControls(),maybeRemoveAutoscroll()},70)},!1);
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.