Module 146806

1,800 characters · in b5b019786966ddbd.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{GL:()=>C,Hz:()=>y,M8:()=>w,T:()=>s,Xu:()=>h,_R:()=>i,k6:()=>M,py:()=>g,qR:()=>p,xf:()=>x,xm:()=>o});let r=[{offset:0,span:.66,ease:1.6},{offset:.08,span:.78,ease:1.6},{offset:.08,span:.9,ease:7.5},{offset:.08,span:.92,ease:9}],a=[.5,.5,.45,.9];function l(e,t,n){let r=1-e;return 3*r*r*e*t+3*r*e*e*n+e*e*e}function o(e){if(e<=0)return 0;if(e>=1)return 1;let[t,n,r,o]=a,u=0,i=1;for(let n=0;n<20;n++){let n=(u+i)/2;l(n,t,r)<e?u=n:i=n}return l((u+i)/2,n,o)}function u(e,t){if(t<=0)return 0;let n=0,r=1;for(let a=0;a<24;a++){let a=(n+r)/2;m(e,o(a))<t?n=a:r=a}return(n+r)/2}function i(e){return u(1,e)}function s(e){return u(2,e)}let c="123456",f="789ABC";function d(e,t){let n=e.charCodeAt(0);return n>=65&&n<=90?String.fromCharCode(65+(n-65+t)%26):n>=97&&n<=122?String.fromCharCode(97+(n-97+t)%26):n>=48&&n<=57?String.fromCharCode(48+(n-48+t)%10):e}function m(e,t){let{offset:n,span:a,ease:l}=r[e],o=(t-n)/a;return o<=0?0:o>=1?1:o**l}function h(e,t,n){let a=0;for(let l=0;l<r.length;l++)m(l,t)*n>e+.5&&(a=l+1);return a}function p(e){return e>=3}function y(e,t,n,r){switch(r){case 0:return e[n]??"";case 1:case 2:return d(e[n]??"",6);case 3:return d(t[n]??"",6);default:return t[n]??""}}function g(e,t){return{start:Math.max(0,Math.floor(m(r.length-1,e)*t)),end:Math.min(t,Math.ceil(m(0,e)*t))}}function w(e){let t=m(1,e),n=t-m(2,e);if(n<=0)return 0;let r=Math.min(1,n/(t<1?.15:.5));return r*r*(3-2*r)}function C(e,t,n){let r=m(1,t)*n,a=m(2,t)*n,l=e+.5;return l>=r||l<a?-1:Math.max(0,Math.min(Math.floor(Math.min(l-a,r-l)/4*c.length),c.length))}function x(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return 0===e||0===t?Math.max(1,n):Math.max(1,Math.ceil((e+r)/t))}function M(e,t){let n=Array(e);for(let r=0;r<e;r++)n[r]=f.charAt(t()*f.length|0);return n}}