PageSourceSearch

https://www.rwagia.com/_next/static/chunks/8765-a52b9e67531f94d1.js

js rwagia.com collected 2026-10-05 07:50:58 UTC 9,151 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8765],{12346:(e,t,o)=>{"use strict";o.d(t,{default:()=>u});var r=o(95155),n=o(88661),i=o.n(n),a=o(12115),s=o(47605),l=o(55580),c=o(14647);function u(e){let{children:t}=e,o=(0,a.useRef)(null),n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=!1,t=0,r=[],n=()=>{if(e)return;let o=Date.now(),n=window.scrollY;if(t>0){let e=o-t,i=Math.abs(n-(r[r.length-1]||0))/e;r.push(i),r.length>5&&r.shift()}t=o,clearTimeout(window.scrollSnapTimeout),window.scrollSnapTimeout=setTimeout(()=>{r.reduce((e,t)=>e+t,0)/r.length>1&&!e&&i(),r=[]},80)},i=()=>{let t=document.querySelectorAll(".snap-section");if(0===t.length)return;let o=window.innerHeight,r=window.scrollY,n=document.body.scrollHeight-o;if(r>=n-100)return;let i=null,a=1/0;if(t.forEach(e=>{let t=e.getBoundingClientRect(),n=r+t.top,s=n+t.height/2;if(o/t.height*100<95)return;let l=n+t.height,c=r+o;if(n<c&&l>r&&(n<r+.1*o&&n>r-.1*o||l>c-.1*o&&l<c+.1*o)){let t=Math.abs(r+o/2-s);t<a&&(a=t,i=e)}}),i){e=!0;let t=i.getBoundingClientRect(),o=document.querySelector("nav")||document.querySelector("header"),a=o?o.getBoundingClientRect().height:80,l=Math.max(0,Math.min(r+t.top-a,n));s.os.to(window,{scrollTo:{y:l,autoKill:!1},duration:.8,ease:"power2.out",onComplete:()=>{e=!1}})}};window.addEventListener("scroll",n);let a=()=>{let e=window.scrollY,t=document.body.scrollHeight-window.innerHeight;o.current&&s.os.to(o.current,{scaleX:e/t,duration:.1,ease:"none"})};window.addEventListener("scroll",a),l.u.defaults({toggleActions:"play pause resume reverse",markers:!1});let c=()=>{l.u.refresh()};window.addEventListener("resize",c),s.os.utils.toArray(".animated-section").forEach(e=>{s.os.from(e,{opacity:0,y:50,duration:1,scrollTrigger:{trigger:e,start:"top 80%",end:"bottom 20%",toggleActions:"play none none reverse"}})}),s.os.utils.toArray(".parallax-element").forEach(e=>{s.os.to(e,{yPercent:-50,ease:"none",scrollTrigger:{trigger:e,start:"top bottom",end:"bottom top",scrub:1}})}),s.os.utils.toArray(".fade-in").forEach(e=>{s.os.from(e,{opacity:0,y:30,duration:.8,scrollTrigger:{trigger:e,start:"top 85%",once:!0}})}),s.os.utils.toArray(".scale-in").forEach(e=>{s.os.from(e,{scale:.8,opacity:0,duration:.6,scrollTrigger:{trigger:e,start:"top 85%",once:!0}})}),s.os.utils.toArray(".stagger-container").forEach(e=>{let t=e.querySelectorAll(".stagger-item");s.os.from(t,{opacity:0,y:30,duration:.6,stagger:.1,scrollTrigger:{trigger:e,start:"top 80%",once:!0}})});let u=document.createElement("div");u.className="custom-cursor",u.style.cssText="\n      position: fixed;\n      width: 20px;\n      height: 20px;\n      border: 2px solid #D4AF37;\n      border-radius: 50%;\n      pointer-events: none;\n      z-index: 9999;\n      transition: transform 0.1s;\n      mix-blend-mode: difference;\n    ",document.body.appendChild(u);let m=e=>{s.os.to(u,{x:e.clientX-10,y:e.clientY-10,duration:.1})},d=()=>{s.os.to(u,{scale:1.5,duration:.2})},f=()=>{s.os.to(u,{scale:1,duration:.2})};document.addEventListener("mousemove",m);let h=document.querySelectorAll("a, button");return h.forEach(e=>{e.addEventListener("mouseenter",d),e.addEventListener("mouseleave",f)}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("scroll",a),window.removeEventListener("resize",c),document.removeEventListener("mousemove",m),h.forEach(e=>{e.removeEventListener("mouseenter",d),e.removeEventListener("mouseleave",f)}),clearTimeout(window.scrollSnapTimeout),document.body.removeChild(u),l.u.getAll().forEach(e=>e.kill())}},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:o,className:"fixed top-0 left-0 h-1 bg-gradient-to-r from-[#D4AF37] to-[#F4E4C1] z-50 transform-origin-left",style:{transformOrigin:"left",transform:"scaleX(0)"}}),(0,r.jsxs)("div",{ref:n,className:"jsx-a067759f0f4e83b0 smooth-wrapper",children:[(0,r.jsx)(i(),{id:"a067759f0f4e83b0",children:".snap-section{min-height:80vh;scroll-margin-top:0;position:relative}.snap-section:first-child{min-height:100vh}html{scroll-behavior:auto!important}"}),t]})]})}s.os.registerPlugin(l.u,c.I)},50385:(e,t,o)=>{"use strict";o.d(t,{LanguageProvider:()=>s,o:()=>l});var r=o(95155),n=o(12115);let i="rwa-preferred-language",a=(0,n.createContext)(void 0),s=e=>{let{children:t}
1=e,[o,s]=(0,n.useState)("zh"),[l,c]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=(()=>{let e=localStorage.getItem(i);return e&&("zh"===e||"en"===e)?e:"en"===(navigator.language||"zh").toLowerCase().substring(0,2)?"en":"zh"})();s(e),c(!1),"undefined"!=typeof document&&(document.documentElement.lang="zh"===e?"zh-CN":"en")},[]),(0,r.jsx)(a.Provider,{value:{language:o,setLanguage:e=>{s(e),localStorage.setItem(i,e),"undefined"!=typeof document&&(document.documentElement.lang="zh"===e?"zh-CN":"en")},t:(e,t)=>"zh"===o?e:t,locale:e=>e?"zh"===o?e.zh||"":e.en||"":"",isLoading:l},children:t})},l=()=>{let e=(0,n.useContext)(a);if(void 0===e)throw Error("useLanguage must be used within a LanguageProvider");return e}},64363:(e,t,o)=>{"use strict";o.d(t,{B:()=>l});var r=o(12115),n=o(50385);let i={};async function a(e,t){let r={};for(let n of t){let t="".concat(e,"-").concat(n);if(i[t]){r[n]=i[t];continue}try{let a=await o(67311)("./".concat(e,"/").concat(n,".json"));i[t]=a.default,r[n]=a.default}catch(t){console.warn("Failed to load translations for ".concat(e,"/").concat(n,":"),t),r[n]={}}}return r}function s(e,t,o){let r=t.split("."),n=e;for(let e of r)if(!n||"object"!=typeof n||Array.isArray(n)||!(e in n))return void 0!==o?o:t;else n=n[e];return void 0!==n?n:void 0!==o?o:t}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{language:t}=(0,n.o)(),[o,i]=(0,r.useState)({}),[l,c]=(0,r.useState)(!0),u=e.namespaces||["common"],m=e.fallbackNamespaces||["common"];return(0,r.useEffect)(()=>{(async()=>{c(!0);try{let e=[...new Set([...u,...m])],o=await a(t,e);i(o)}catch(e){console.error("Failed to load translations:",e)}finally{c(!1)}})()},[t,u.join(","),m.join(",")]),{t:(e,t,r)=>{if(!e)return r||"";if(l)return void 0!==r?r:"";let[n,...i]=e.includes(":")?e.split(":"):["",e],a=n||u[0]||"common",c=i.join(":")||e,m=s(o[a],c,void 0);if(m===c&&"common"!==a&&(m=s(o.common,c,void 0!==r?r:c)),m===c&&(m=void 0!==r?r:c),Array.isArray(m))return m;if(t&&"string"==typeof m&&m!==c){var d;return"string"!=typeof(d=m)?"":d.replace(/\{\{(\w+)\}\}/g,(e,o)=>{var r;return(null==(r=t[o])?void 0:r.toString())||e})}return m},translations:o,language:t,isLoading:l,ready:!l,formatNumber:e=>new Intl.NumberFormat("zh"===t?"zh-CN":"en-US").format(e),formatCurrency:function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return new Intl.NumberFormat("zh"===t?"zh-CN":"en-US",{style:"currency",currency:o}).format(e)},formatDate:(e,o)=>(function(e,t,o){let r="string"==typeof e?new Date(e):e;return new Intl.DateTimeFormat("zh"===t?"zh-CN":"en-US",o||{year:"numeric",month:"long",day:"numeric"}).format(r)})(e,t,o),formatTime:(e,o)=>(function(e,t,o){let r="string"==typeof e?new Date(e):e;return new Intl.DateTimeFormat("zh"===t?"zh-CN":"en-US",o||{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(r)})(e,t,o),formatDateTime:(e,o)=>(function(e,t,o){let r="string"==typeof e?new Date(e):e;return new Intl.DateTimeFormat("zh"===t?"zh-CN":"en-US",o||{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(r)})(e,t,o),formatPercentage:(e,o)=>(function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return new Intl.NumberFormat("zh"===t?"zh-CN":"en-US",{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o}).format(e)})(e,t,o)}}},67311:(e,t,o)=>{var r={"./en/about.json":[9958,9958],"./en/assets.json":[54594,4594],"./en/common.json":[43486,3486],"./en/contact.json":[83123,3123],"./en/home.json":[10492,492],"./en/resources.json":[94,94],"./zh/about.json":[14679,4679],"./zh/assets.json":[98405,8405],"./zh/common.json":[56561,6561],"./zh/contact.json":[40742,742],"./zh/home.json":[64863,4863],"./zh/resources.json":[48395,8395]};function n(e){if(!o.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],n=t[0];return o.e(t[1]).then(()=>o.t(n,19))}n.keys=()=>Object.keys(r),n.id=67311,e.exports=n},90726:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var r=o(95155);o(12115);var n=o(47605),i=o(14647),a=o(64363);function s(){let{t:e}=(0,a.B)({namespaces:["common"]});return(0,r.jsxs)("div",{className:"absolute bottom-6 left-1/2 transform -translate-x-1/2 flex flex-col items-center z-20",children:[(0,r.jsx)("p",{className:"text-gray-300/80 text-sm mb-3 font-light",children:e("common:scroll.clickToNext")}),(0,r.jsx)("button",{onClick:()=>{n.os.to(window,{duration:1,scrollTo:window.innerHeight,ease:"power2.inOut"})},className:"w-6 h-10 border-2 border-white/40 rounded-full flex justify-center hover:border-[#D4AF37] transition-all duration-300 hover:scale-110 active:scale-95 cursor-pointer group","aria-label":e("common:scroll.scrollToNext"),children:(0,r.jsx)("div",{className:"w-1 h-3 bg-white/70 rounded-full mt-2 animate-bounce group-hover:bg-[#D4AF37] transition-colors duration-300"})})]})}n.os.registerPlugin(i.I)}}]);

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.