"use client" "use strict";var w=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var J=(o,t)=>{for(var r in t)w(o,r,{get:t[r],enumerable:!0})},K=(o,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of I(t))!F.call(o,i)&&i!==r&&w(o,i,{get:()=>t[i],enumerable:!(n=L(t,i))||n.enumerable});return o};var N=o=>K(w({},"__esModule",{value:!0}),o);var tt={};J(tt,{Alea:()=>E,Arc4:()=>M,Tychei:()=>P,Xor128:()=>c,Xor4096:()=>R,Xorshift7:()=>q,Xorwow:()=>a,defaultColorOptions:()=>g,generateColor:()=>B,generateColorRGB:()=>W,generateGradient:()=>d,generateSecondaryColor:()=>H,generateSecondaryColorRGB:()=>G});module.exports=N(tt);function O(o,t,r){let n=r&&r.state;n&&(typeof n=="object"&&t.copy(n,t),o.state=()=>t.copy(t,{}))}function u(o,t){let r=()=>(o.next()>>>0)/4294967296;return r.double=()=>{let n,i,s;do n=o.next()>>>11,i=(o.next()>>>0)/4294967296,s=(n+i)/(1<<21);while(s===0);return s},r.int32=()=>o.next()|0,r.quick=r,O(r,o,t),r}function j(o,t){let r=new m(o),n=()=>r.next();return n.double=()=>n()+(n()*2097152|0)*11102230246251565e-32,n.int32=()=>r.next()*4294967296|0,n.quick=n,O(n,r,t),n}var m=class{constructor(t){t==null&&(t=+new Date);let r=4022871197;this.c=1,this.s0=n(" "),this.s1=n(" "),this.s2=n(" "),this.s0-=n(t),this.s0<0&&(this.s0+=1),this.s1-=n(t),this.s1<0&&(this.s1+=1),this.s2-=n(t),this.s2<0&&(this.s2+=1);function n(i){i=String(i);for(let s=0;s>>0,e-=r,e*=r,r=e>>>0,e-=r,r+=e*4294967296}return(r>>>0)*23283064365386963e-26}}next(){let{c:t,s0:r,s1:n,s2:i}=this,s=2091639*r+t*23283064365386963e-26;return this.s0=n,this.s1=i,this.s2=s-(this.c=s|0)}copy(t,r){return r.c=t.c,r.s0=t.s0,r.s1=t.s1,r.s2=t.s2,r}};function k(o,t){let r=new y(o);return u(r,t)}var y=class{constructor(t){t==null&&(t=+new Date);let r="";this.x=0,this.y=0,this.z=0,this.w=0,t===(t|0)?this.x=t:r+=t;for(let n=0;n>>19^s^s>>>8)}copy(t,r){return r.x=t.x,r.y=t.y,r.z=t.z,r.w=t.w,r}};function z(o,t){let r=new b(o);return u(r,t)}var b=class{constructor(t){t==null&&(t=+new Date);let r="";this.x=0,this.y=0,this.z=0,this.w=0,this.v=0,t===(t|0)?this.x=t:r+=t;for(let n=0;n>>4),this.next()}next(){let{x:t,y:r,z:n,w:i,v:s,d:e}=this,h=t^t>>>2;return this.x=r,this.y=n,this.z=i,this.w=s,(this.d=e+362437|0)+(this.v=s^s<<4^(h^h<<1))|0}copy(t,r){return r.x=t.x,r.y=t.y,r.z=t.z,r.w=t.w,r.v=t.v,r.d=t.d,r}};function S(o,t){let r=new _(o);return u(r,t)}var _=class{constructor(t){t==null&&(t=+new Date);var r,n,i=[];if(t===(t|0))n=i[0]=t;else for(t=""+t,r=0;r0;--r)this.next()}next(){let t,r,{x:n,i}=this;return t=n[i],t^=t>>>7,r=t^t<<24,t=n[i+1&7],r^=t^t>>>10,t=n[i+3&7],r^=t^t>>>3,t=n[i+4&7],r^=t^t<<7,t=n[i+7&7],t=t^t<<13,r^=t^t<<9,n[i]=r,this.i=i+1&7,r}copy(t,r){return r.x=[...t.x],r.i=t.i,r}};function T(o,t){let r=new A(o);return u(r,t)}var A=class{constructor(t){t==null&&(t=+new Date);let r,n,i,s,e,h=[],l=128;for(t===(t|0)?(n=t,t=null):(t=t+"\0",n=0,l=Math.max(l,t.length)),i=0,s=-32;s>>15,n^=n<<4,n^=n>>>13,s>=0&&(e=e+1640531527|0,r=h[s&127]^=n+e,i=r==0?i+1:0);for(i>=128&&(h[(t&&t.length||0)&127]=-1),i=127,s=4*128;s>0;--s)n=h[i+34&127],r=h[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,h[i]=n^r;this.w=e,this.X=h,this.i=i}next(){let t,r,{w:n,X:i,i:s}=this;return this.w=n=n+1640531527|0,r=i[s+34&127],t=i[s=s+1&127],r^=r<<13,t^=t<<17,r^=r>>>15,t^=t>>>12,r=i[s]=r^t,this.i=s,r+(n^n>>>16)|0}copy(t,r){return r.i=t.i,r.w=t.w,r.X=[...t.X],r}};function D(o,t){let r=new C(o);return u(r,t)}var C=class{constructor(t){t==null&&(t=+new Date);let r="";this.a=0,this.b=0,this.c=-1640531527,this.d=1367130551,t===Math.floor(t)?(this.a=t/4294967296|0,this.b=t|0):r+=t;for(let n=0;n>>7^n,n=n-i|0,i=i<<24^i>>>8^t,t=t-r|0,this.b=r=r<<20^r>>>12^n,this.c=n=n-i|0,this.d=i<<16^n>>>16^t,this.a=t-r|0}copy(t,r){return r.a=t.a,r.b=t.b,r.c=t.c,r.d=t.d,r}};function U(o,t){let r=new $(o),n=()=>r.next();return n.double=n,n.int32=()=>r.g(4)|0,n.quick=()=>r.g(4)/4294967296,O(n,r,t),n}var Q=281474976710656,V=4503599627370496,Y=9007199254740992,$=class{constructor(t){t==null&&(t=+new Date);let r=this.mixkey(t,[]),n,i,s,e=[],h=r.length;for(this.i=this.j=n=i=0,this.S=e,h||(r=[h++]);n<=255;)e[n]=n++;for(n=0;n<=255;n++)e[n]=e[i=255&i+r[n%h]+(s=e[n])],e[i]=s;this.g(256)}next(){let t=this.g(6),r=Q,n=0;for(;t=Y;)t/=2,r/=2,n>>>=1;return(t+n)/r}g(t){let r,n=0,{i,j:s,S:e}=this;for(;t--;)r=e[i=255&i+1],n=n*256+e[255&(e[i]=e[s=255&s+r])+(e[s]=r)];return this.i=i,this.j=s,n}copy(t,r){return r.i=t.i,r.j=t.j,r.S=[...t.S],r}mixkey(t,r){t=t+"";let n=0,i=0;for(;ij(o)(),M=o=>U(o)(),P=o=>D(o)(),c=o=>k(o)(),R=o=>T(o)(),q=o=>S(o)(),a=o=>z(o)();function X(o,t,r){let n,i,s;if(t==0)n=i=s=r;else{let e=r<.5?r*(1+t):r+t-r*t,h=2*r-e;n=v(h,e,o+1/3),i=v(h,e,o),s=v(h,e,o-1/3)}return[n*255,i*255,s*255]}function v(o,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?o+(t-o)*6*r:r<1/2?t:r<2/3?o+(t-o)*(2/3-r)*6:o}var g={saturation:75,lightness:50,alpha:100},Z=1.618033988749895;function B(o,t={}){let{saturation:r,lightness:n,alpha:i}=x(t),s=t.algorithm||c,e=f(o,s);return`hsl( ${Math.floor(e*360)} , ${r}%, ${n}%, ${i}% )`}function W(o,t={}){let{saturation:r,lightness:n,alpha:i}=x(t),s=t.algorithm||c,e=f(o,s),[h,l,p]=X(e,r/100,n/100);return`rgba(${h}, ${l}, ${p}, ${i/100})`}function H(o,t={}){let{saturation:r,lightness:n,alpha:i}=x(t),s=t.algorithm||a,e=f(o,s);return`hsl( ${Math.floor(e*360)} , ${r}%, ${n}%, ${i}% )`}function G(o,t={}){let{saturation:r,lightness:n,alpha:i}=x(t),s=t.algorithm||c,e=f(o,s),[h,l,p]=X(e,r/100,n/100);return`rgba(${h}, ${l}, ${p}, ${i/100})`}function d(o,t=45,r={},n={}){return`linear-gradient( ${t}deg, ${B(o,r)}, ${H(o,n)} )`}function x(o={}){let{s:t,l:r,a:n,saturation:i=t!=null?t:g.saturation,lightness:s=r!=null?r:g.lightness,alpha:e=n!=null?n:g.alpha}=o;return{saturation:i,lightness:s,alpha:e}}function f(o,t){return(t(o)+1/Z)%1}0&&(module.exports={Alea,Arc4,Tychei,Xor128,Xor4096,Xorshift7,Xorwow,defaultColorOptions,generateColor,generateColorRGB,generateGradient,generateSecondaryColor,generateSecondaryColorRGB}); //# sourceMappingURL=index.cjs.map