PageSourceSearch

https://kolau.com/assets/homepage-05b07acae66005ce3039cc3a6f8b28dfe30b9d279705c3abd4f61104c5af6a88.js

js kolau.com collected 2026-09-29 17:20:21 UTC 7,750 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(){return A||f.matches||document.hidden||S||!(!y||!y.open)}function t(){function t(){null!==u&&(window.cancelAnimationFrame(u),u=null),c&&c.disconnect()}function n(){o.forEach((function(e){e.surface.classList.remove("is-entering"),e.surface.style.removeProperty(e.property),e.travel=void 0}))}function i(){function e(e,o){var a=r*Math.min(t,e.height);if(o&&(a=Math.max(t*(n?.38:.5),Math.min(r*e.height,t*(n?.56:.68)))),!(t>0&&e.height>0&&a>0&&Number.isFinite(e.height)&&Number.isFinite(e.top)))return 0;var s=Math.min(1,Math.max(0,(i-e.top)/a));return 1-s*s*(3-2*s)}if(u=null,d){var t=m.clientHeight,n=h.matches,i=t*(n?.94:.92),r=n?.78:.8,c=!n&&s&&a.length?e(s.getBoundingClientRect(),!0):null;o.map((function(t){return t.origin&&null!==c?c:e(t.card.getBoundingClientRect(),t.origin)})).forEach((function(e,t){var n=o[t];n.travel!==e&&(n.surface.classList.toggle("is-entering",e>0),e>0?n.surface.style.setProperty(n.property,String(e)):n.surface.style.removeProperty(n.property)),n.travel=e}))}}function r(){d&&null===u&&(u=window.requestAnimationFrame(i))}var o=Array.from(document.querySelectorAll(".hp-design-card")).map((function(e){return{card:e,surface:e.querySelector(".hp-design-motion"),property:"--hp-design-travel"}})).filter((function(e){return e.surface})),a=Array.from(document.querySelectorAll(".hp-origin")).map((function(e){return{card:e,surface:e.querySelector(".hp-origin-motion"),property:"--hp-origin-travel",origin:!0}})).filter((function(e){return e.surface})),s=document.querySelector(".hp-origins-grid");if(!(o=o.concat(a)).length||!("IntersectionObserver"in window)||!window.requestAnimationFrame)return function(){};var c,d=!1,u=null;return window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),l(h,r),window.ResizeObserver&&(c=new window.ResizeObserver(r)),document.fonts&&(document.fonts.ready.then(r),document.fonts.addEventListener("loadingdone",r)),function(){var a=k&&!e();a!==d?(d=a)?(c&&(o.forEach((function(e){c.observe(e.card)})),s&&c.observe(s),c.observe(m)),i()):(t(),n()):r()}}function n(t){t.timer=null,!e()&&t.scene.classList.contains("is-in-view")&&(t.words[t.index].classList.remove("is-current"),t.words[t.index].classList.add("is-past"),t.index+=1,t.words[t.index].classList.add("is-current"),r(t),t.remaining=2400,i(t))}function i(t){null!==t.timer||t.index>=t.words.length-1||!e()&&t.scene.classList.contains("is-in-view")&&(t.started=Date.now(),t.timer=window.setTimeout((function(){n(t)}),t.remaining))}function r(e){e.element.hasAttribute("data-hero-words")&&e.scene.classList.toggle("is-word-complete",e.index===e.words.length-1)}function o(){F.forEach((function(t){e()||!t.scene.classList.contains("is-in-view")?null!==t.timer&&(window.clearTimeout(t.timer),t.timer=null,t.remaining=Math.max(0,t.remaining-(Date.now()-t.started))):i(t),f.matches&&(t.words.forEach((function(e,n){e.classList.toggle("is-current",n===t.words.length-1),e.classList.toggle("is-past",n<t.words.length-1)})),t.index=t.words.length-1),r(t)}))}function a(){return!(!g||!g.saveData&&!/(^|-)2g$/.test(g.effectiveType||""))}function s(){return v&&k&&x&&!e()&&!a()&&!C}
1function c(){if(v)if(s()){if((!L||L.complete&&L.naturalWidth)&&(v.hasAttribute("src")||(v.muted=!0,v.src=h.matches?v.dataset.mobileSrc:v.dataset.desktopSrc),!R&&v.paused)){R=!0;var e,t=M;try{e=v.play()}catch(e){return R=!1,void(C=!0)}Promise.resolve(e).then((function(){t===M&&(R=!1,s()||v.pause())})).catch((function(e){t===M&&(R=!1,e&&"AbortError"===e.name||(C=!0,v.classList.remove("is-playing")))}))}}else v.pause()}function d(){if(s()&&!I){I=!0;var e=function(){I=!1,c()};"requestIdleCallback"in window?window.requestIdleCallback(e,{timeout:800}):window.setTimeout(e,120)}}function u(){var t=m.classList.contains("hp-motion-paused"),n=e();if(m.classList.toggle("hp-motion-paused",n),t!==n&&document.dispatchEvent(new Event("homepage:motion-change")),O(),b.forEach((function(t){f.matches?t.classList.add("is-heading-complete"):!e()&&t.classList.contains("is-in-view")&&t.classList.add("is-heading-started")})),q.forEach((function(e){f.matches?e.classList.add("is-film-complete"):!n&&e.classList.contains("is-in-view")&&e.classList.add("is-film-started")})),p){p.hidden=f.matches||!("IntersectionObserver"in window),p.setAttribute("aria-pressed",String(A));var i=A?p.dataset.resumeLabel:p.dataset.pauseLabel;p.querySelector("[data-motion-label]").textContent=i,p.setAttribute("title",i)}o(),s()?d():v&&v.pause()}function l(e,t){e.addEventListener?e.addEventListener("change",t):e.addListener&&e.addListener(t)}var m=document.documentElement;if(m.classList.contains("kolau-homepage")&&!m.dataset.homepageReady){m.dataset.homepageReady="true";var f=window.matchMedia("(prefers-reduced-motion: reduce)"),h=window.matchMedia("(max-width: 700px)"),g=navigator.connection,p=document.querySelector(".hp-motion"),v=document.querySelector(".hp-background-video"),w=document.querySelector(".hp-hero-media"),L=document.querySelector(".hp-poster"),y=document.querySelector("#hp-regional-video-dialog"),E=Array.from(document.querySelectorAll("[data-motion-scene]")),b=E.filter((function(e){return e.hasAttribute("data-heading-scene")})),q=E.filter((function(e){return e.hasAttribute("data-film-scene")})),A=!1,S=!1,k="loading"!==document.readyState,x=!1,C=!1,R=!1,M=0,I=!1,F=Array.from(document.querySelectorAll("[data-word-rotator]")).map((function(e){return{element:e,scene:e.closest("[data-motion-scene]"),words:Array.from(e.children),index:0,timer:null,remaining:2200,started:0}})),O=t();if("IntersectionObserver"in window){m.classList.add("hp-motion-ready");var P=new IntersectionObserver((function(e){e.forEach((function(e){e.target===w?x=e.isIntersecting:e.target.classList.toggle("is-in-view",e.isIntersecting&&(!e.target.hasAttribute("data-heading-scene")||e.intersectionRatio>=.6||e.boundingClientRect&&e.boundingClientRect.height>m.clientHeight))})),u()}),{threshold:[.08,.6]});E.forEach((function(e){P.observe(e)})),w&&P.observe(w)}b.forEach((function(e){e.addEventListener("animationend",(function(t){"hp-heading-reflection"===t.animationName&&e.classList.add("is-heading-complete")}))})),q.forEach((function(e){e.addEventListener("animationend",(function(t){"hp-film-line"===t.animationName&&e.classList.add("is-film-complete")}))})),p&&p.addEventListener("click",(function(){A=!A,u()})),L&&L.addEventListener("load",d),v&&(v.addEventListener("playing",(function(){if(s()){var e=M,t=function(){e===M&&s()&&v.classList.add("is-playing")};v.requestVideoFrameCallback?v.requestVideoFrameCallback(t):t()}else v.pause()})),v.addEventListener("error",(function(){C=!0,v.classList.remove("is-playing")}))),l(f,u),l(h,(function(){v&&(M+=1,R=!1,v.pause(),v.removeAttribute("src"),v.load(),v.classList.remove("is-playing"),C=!1,u())})),g&&g.addEventListener&&g.addEventListener("change",u),document.addEventListener("visibilitychange",u),document.addEventListener("homepage:media-change",u),window.addEventListener("pagehide",(function(){S=!0,u()})),window.addEventListener("pageshow",(function(){S=!1,u()})),document.addEventListener("DOMContentLoaded",(function(){k=!0,u()}),{once:!0});var D=document.querySelector(".hp-menu");D&&(D.addEventListener("click",(function(e){e.target.closest("a")&&(D.open=!1)})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&D.open&&(D.open=!1,D.querySelector("summary").focus())}
1))),"serviceWorker"in navigator&&(navigator.serviceWorker.getRegistrations().then((function(e){e.forEach((function(e){e.scope===window.location.origin+"/"&&e.unregister()}))})).catch((function(){})),"caches"in window&&window.caches.keys().then((function(e){return Promise.all(e.map((function(e){return window.caches.delete(e)})))})).catch((function(){}))),u()}}();

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.