shweet 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +74 -4
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -75,6 +75,59 @@ declare class log {
|
|
|
75
75
|
static set w(a: any);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
declare global {
|
|
79
|
+
interface Date {
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* * Format a date using tokens.
|
|
83
|
+
*
|
|
84
|
+
* ### Available tokens:
|
|
85
|
+
* - `YYYY, YY` —— Year
|
|
86
|
+
* - `MMMM, MMM, MM, M` —— Month
|
|
87
|
+
* - `dddd, ddd` —— Weekday
|
|
88
|
+
* - `DD, D` —— Day of Month
|
|
89
|
+
* - `HH, H, hh, h` —— Hour
|
|
90
|
+
* - `mm, m` —— Minute
|
|
91
|
+
* - `ss, s` —— Second
|
|
92
|
+
* - `SSS` —— Millisecond
|
|
93
|
+
* - `A, a` —— AM/PM
|
|
94
|
+
* - `Q` —— Quarter
|
|
95
|
+
* - `DoY` —— Day of Year
|
|
96
|
+
* @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
|
|
97
|
+
* @param locale - Optional locale or array of locales (default: system locale)
|
|
98
|
+
*/
|
|
99
|
+
format(pattern?: string, locale?: string | string[]): string;
|
|
100
|
+
}
|
|
101
|
+
interface DateConstructor {
|
|
102
|
+
/**
|
|
103
|
+
* Register or override a custom format token.
|
|
104
|
+
* @param token The token string to replace (e.g. "DoY")
|
|
105
|
+
* @param fn A function that returns a string when formatting
|
|
106
|
+
*/
|
|
107
|
+
registerFormat(token: string, fn: (d: Date, locale?: string | string[]) => string): void;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* * Format a date using tokens.
|
|
111
|
+
*
|
|
112
|
+
* ### Available tokens:
|
|
113
|
+
* - `YYYY, YY` —— Year
|
|
114
|
+
* - `MMMM, MMM, MM, M` —— Month
|
|
115
|
+
* - `dddd, ddd` —— Weekday
|
|
116
|
+
* - `DD, D` —— Day of Month
|
|
117
|
+
* - `HH, H, hh, h` —— Hour
|
|
118
|
+
* - `mm, m` —— Minute
|
|
119
|
+
* - `ss, s` —— Second
|
|
120
|
+
* - `SSS` —— Millisecond
|
|
121
|
+
* - `A, a` —— AM/PM
|
|
122
|
+
* - `Q` —— Quarter
|
|
123
|
+
* - `DoY` —— Day of Year
|
|
124
|
+
* @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
|
|
125
|
+
* @param locale - Optional locale or array of locales (default: system locale)
|
|
126
|
+
*/
|
|
127
|
+
format(pattern?: string, locale?: string | string[]): string;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
78
131
|
declare class __ {
|
|
79
132
|
static rand(min?: number, max?: number): number;
|
|
80
133
|
static fill(count: number, fill?: any): any[];
|
|
@@ -87,7 +140,7 @@ declare class __ {
|
|
|
87
140
|
static randArray<T>(arr?: T[], length?: number, unique?: boolean): T[];
|
|
88
141
|
static randomAZ: () => string;
|
|
89
142
|
static makeID: (length: number) => string;
|
|
90
|
-
static class(a: obj<any>, ...classes: string[]): void;
|
|
143
|
+
static class(a: obj<any>, ...classes: (string | undefined | boolean)[]): void;
|
|
91
144
|
static get O(): {
|
|
92
145
|
vals: {
|
|
93
146
|
<T>(o: {
|
|
@@ -121,6 +174,22 @@ declare class __ {
|
|
|
121
174
|
static get screen(): "xs" | "sm" | "smd" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
122
175
|
bytes(bytes: number): string;
|
|
123
176
|
static format(val: any): Formatteer;
|
|
177
|
+
static compareObjects: <T extends object>(oldObj: T, newObj: T | any) => {
|
|
178
|
+
added: Record<string, any>;
|
|
179
|
+
removed: Record<string, any>;
|
|
180
|
+
modified: Record<string, {
|
|
181
|
+
old: any;
|
|
182
|
+
new: any;
|
|
183
|
+
}>;
|
|
184
|
+
};
|
|
185
|
+
static isObjectUdpated: (changes: {
|
|
186
|
+
added: Record<string, any>;
|
|
187
|
+
removed: Record<string, any>;
|
|
188
|
+
modified: Record<string, {
|
|
189
|
+
old: any;
|
|
190
|
+
new: any;
|
|
191
|
+
}>;
|
|
192
|
+
}) => boolean;
|
|
124
193
|
}
|
|
125
194
|
declare class returner {
|
|
126
195
|
static arr<T = string>(val?: any): T[];
|
|
@@ -146,6 +215,7 @@ declare class _Var {
|
|
|
146
215
|
new(val: CSSValue, fallback?: CSSValue): _Var;
|
|
147
216
|
}
|
|
148
217
|
declare const Var: (vr: obj<CSSValue | media>, fallback?: CSSValue) => _Var;
|
|
218
|
+
declare const Vars: <T extends Record<string, CSSValue | media>>(vr: T) => { [K in keyof T]: _Var; };
|
|
149
219
|
|
|
150
220
|
type CSSValue = V | _Var | undefined | CSSValue[];
|
|
151
221
|
type VarType = _Var;
|
|
@@ -711,7 +781,7 @@ declare const Value: (val: CSSValue | undefNull, cfg?: propCfg) => string;
|
|
|
711
781
|
|
|
712
782
|
interface saveCSS {
|
|
713
783
|
dir?: string | string[];
|
|
714
|
-
mapDir?: string;
|
|
784
|
+
mapDir?: string | string[];
|
|
715
785
|
mapName?: string;
|
|
716
786
|
minify?: boolean;
|
|
717
787
|
shaker?: string[];
|
|
@@ -749,11 +819,11 @@ declare class Shweet {
|
|
|
749
819
|
};
|
|
750
820
|
font: FontFace["css"];
|
|
751
821
|
shweet: this;
|
|
752
|
-
save: (
|
|
822
|
+
save: (x?: saveCSS) => this;
|
|
753
823
|
constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, unit, }: shweetCFG);
|
|
754
824
|
get imported(): string[];
|
|
755
825
|
}
|
|
756
826
|
declare function fileName(path: string): string;
|
|
757
827
|
|
|
758
|
-
export { Medyas, Shweet, Value, Var, __, f, fileName, log, med, media, ps, supports, v };
|
|
828
|
+
export { Medyas, Shweet, Value, Var, Vars, __, f, fileName, log, med, media, ps, supports, v };
|
|
759
829
|
export type { CSS, CSSValue, CSSinR, KFCSS, VarType, atCSS, fontFace };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var An=Object.defineProperty;var Pn=(n,C)=>{for(var f in C)An(n,f,{get:C[f],enumerable:!0,configurable:!0,set:($)=>C[f]=()=>$})};var Sn={};Pn(Sn,{isWindow:()=>ln,isUndefined:()=>Tn,isStr:()=>M,isPromise:()=>zn,isPlainObject:()=>_n,isObject:()=>un,isObj:()=>y,isNumber:()=>_,isNum:()=>$n,isNull:()=>v,isNotWindow:()=>En,isNotNull:()=>dn,isModule:()=>yn,isInt:()=>Zn,isFN:()=>k,isDefined:()=>b,isClassOrId:()=>fn,isBool:()=>Ln,isAsync:()=>on,isArraybuff:()=>cn,isArr:()=>L});var k=(n)=>typeof n==="function",on=(n)=>n.constructor.name==="AsyncFunction",zn=(n)=>!!n&&typeof n.then==="function",_=(n)=>{return!isNaN(parseFloat(n))&&isFinite(n)},un=(n)=>{return n&&typeof n==="object"&&!Array.isArray(n)},_n=(n)=>{return typeof n==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype&&!Array.isArray(n)},yn=(n)=>{return n&&typeof n==="object"&&n[Symbol.toStringTag]==="Module"},cn=(n)=>{return n instanceof Uint8Array||n instanceof ArrayBuffer||typeof n==="string"},fn=(n)=>{return n.startsWith(".")||n.startsWith("#")},Ln=(n)=>typeof n==="boolean",M=(n)=>typeof n==="string",L=(n)=>Array.isArray(n),y=(n)=>typeof n==="object",$n=(n)=>typeof n==="number",v=(n)=>n===null,dn=(n)=>n===null,Tn=(n)=>typeof n==="undefined",b=(n)=>typeof n!=="undefined",Zn=(n)=>{return Number.isInteger(Number(n))},ln=typeof window!=="undefined",En=typeof window==="undefined";var Qn=(n)=>{return L(n)?n:[n]};class c{static set i(n){console.info(...Qn(n))}static set e(n){console.error(...Qn(n))}static set w(n){console.warn(...Qn(n))}}var rn=(n)=>Array.from({length:n},(C,f)=>f),Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Dn="abcdefghijklmnopqrstuvwxyz";var p=(n)=>JSON.stringify(n),Jn=(n)=>{return JSON.parse(n)},On=(n)=>{return n.replace(/-([a-z])/g,(C,f)=>f.toUpperCase())},K=(n)=>{if(n.startsWith("webkit"))n="-"+n;return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},x=(n)=>{let C=Bn+Dn,f=rn(10).join("");return Array.from({length:n},($,T)=>C+(T?f:"")).reduce(($,T)=>{return $+=T.charAt(Math.floor(Math.random()*T.length))},"")},mn=(n=6,C)=>{if(!C)return Math.floor(Math.random()*n);return Math.round(Math.random()*(C-n)+n)},Hn=()=>{let n=[...Bn,...Dn],C=mn(0,n.length);return n[C]};class B extends Map{obj(n){n&&q(n).forEach(([C,f])=>this.set(C,f))}map(n){n.forEach((C,f)=>{if(C instanceof B)this.set(f,C);else if(L(C)){if(this.lacks(f))this.set(f,[]);this.get(f).push(...C)}else if(y(C))this.ass(f,C);else this.set(f,C)})}ass(n,C){if(!this.has(n))this.set(n,{});X(this.get(n),C)}lacks(n){return!this.has(n)}init(n,C){return this.has(n)?this.get(n):this.set(n,C).get(n)}}var{values:V,keys:w,entries:q}=Object;var X=Object.assign,Fn=(n,C)=>Object.hasOwn(n,C),Nn=(n)=>{return Object.keys(n).length};class tn{static rand(n=6,C){if(C)return Math.floor(Math.random()*(C-n+1)+n);return Math.floor(Math.random()*n)+1-1}static fill(n,C=null){return Array(n).fill(C)}static new({dom:n,id:C,inner:f}){let $=document.createElement(n);if(C)$.id=C;if(f)$.innerHTML=f;return $}static randFrom(n){if(Array.isArray(n)){let C=n.length,f=this.rand(0,C-1);return n[f]}else if(typeof n=="object"){let C=w(n),f=C.length,$=this.rand(0,f-1);return C[$]}}static randArray(n=[],C=1,f=!1){let $=[],T=f?new Set:null;while((f?T.size:$.length)<C){let S=n[tn.rand(0,n.length-1)];f?T.add(S):$.push(S)}return f?[...T]:$}static randomAZ=Hn;static makeID=x;static class(n,...C){let f=C.filter(Boolean);if(n?.class)f.push(...L(n.class)?n.class:[n.class]);if(f.length)n.class=C}static get O(){return{vals:V,keys:w,items:q,has:Fn,ass:X,len:(n={})=>w(n).length}}static get is(){return Sn}static get return(){return Xn}static isHREF(n,C){return n===C?!0:n.startsWith(C)&&C!=="/"?!0:!1}static sleep=(n=1000)=>new Promise((C)=>setTimeout(C,n));static get screen(){let{innerWidth:n}=window,C={xs:n<=480,sm:n>=480,smd:n>=624,md:n>=768,lg:n>=1024,xl:n>=1280,xxl:n>=1536},f=q(C).reverse();for(let $=0;$<f.length;$++){let[T,S]=f[$];if(S)return T}return}bytes(n){if(n===0)return"0 Bytes";let C=1024,f=["Bytes","KB","MB","GB"],$=Math.floor(Math.log(n)/Math.log(C));return parseFloat((n/Math.pow(C,$)).toFixed(2))+" "+f[$]}static format(n){return new Yn(n)}}class Xn{static arr(n){return n?L(n)?n:[n]:[]}static num(n,C=0){let f=parseFloat(n);return isNaN(f)?C:f}static str(n){return String(n)}static arr2obj(n,C=!1){return n.reduce((f,$,T)=>{if(C)f[$]=T;else f[T]=$;return f},{})}}class Yn{val;constructor(n){this.val=n}get px(){return`${this.val}px`}get rem(){return`${this.val}rem`}get pr(){return`${this.val}%`}}var bn={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class N{static default="xs";static prop=q(bn).reduce((n,[C,f],$)=>{return n[C]=`(${$==0?"max-width":"min-width"}: ${f})`,n},{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)"};constructor(n,C={}){let f=N.default,$={};if(n!==void 0)i($,f,n,f);q(C).forEach(([T,S])=>{i($,T,S,f)}),X(this,$)}static get breakpoints(){return Jn(p(bn))}}var i=(n,C,f,$)=>{if(f!==void 0)if(f instanceof N)q(f).forEach(([T,S])=>{if($!==C)if(C!==T)if($===T)i(n,C,S,$);else i(n,`${C}-${T}`,S,$);else i(n,T,S,$);else i(n,T,S,$)});else n[C]=f};function g(n,C){if(C)return new N(n,C);return new N(void 0,n)}function pn(n){if(this._prefix)return g({[this._prefix]:n});else return g({xs:n})}function Y(n){return new this.constructor({prefix:n,values:this._values,data:this.data})}class a{_prefix;data;_values;constructor({prefix:n,data:C,values:f}={data:{},values:{}}){this._prefix=n,this._values=f,q(f).forEach(([$,T])=>{if(!this._values[$])this._values[$]=g({});X(this._values[$],T)}),this.data=C}get XS(){return Y.call(this,"xs")}get SM(){return Y.call(this,"sm")}get SMD(){return Y.call(this,"smd")}get MD(){return Y.call(this,"md")}get LG(){return Y.call(this,"lg")}get XL(){return Y.call(this,"xl")}get XXL(){return Y.call(this,"xxl")}get NO_HOVER(){return Y.call(this,"no_hover")}get MOBILE(){return Y.call(this,"no_hover")}get PRINT(){return Y.call(this,"print")}get SCREEN(){return Y.call(this,"screen")}get DARK(){return Y.call(this,"dark")}set _value(n){q(n).forEach(([C,f])=>{if(!this._values[C])this._values[C]=g({});X(this._values[C],pn.call(this,f))})}get _value(){return this._values}}class j{k="";fallback;var="";value;constructor(n={},C){if(Nn(n)){let[f,$]=q(n)[0];this.k=f,this.var="--"+K(f),this.value=$ instanceof N?$:g($,{}),this.fallback=C}else this.value=g({})}__(n){if(n)this.fallback=n;let C=this.fallback;if(C)return`var(${this.var}, ${Q(C)})`;else return`var(${this.var})`}new(n,C){return new j({[this.k]:n instanceof N?n:Q(n)},C)}}var an=(n,C)=>{return new j(n,C)};var Q=(n,C={unit:"rem"})=>{let{rem:f,second:$,quote:T,degree:S,percent:J,delimeter:U,unit:W,delimeter_arr:R}=C;if(Tn(n)||v(n)||!T&&n==="")return"";let t=L(n)?n:[n];if(!t.length)return"";return t.filter((G)=>b(G)).map((G)=>{if(L(G))return U=R||", ",Q(G,{...C,delimeter:" "});if(G instanceof j)return G.__();if(T)G=String(G);if($n(G))if(f)return`${G}${W?W:"rem"}`;else if(S)return`${G}deg`;else if(J)return`${G}%`;else if($)return`${G}s`;else return String(G);if(M(G))if(G.includes("("))return G;else if(T)return`'${G}'`;else return G;return""}).filter((G)=>b(G)&&G!=="").join(U||" ")};var gn=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),sn=new Set([...gn,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),en=new Set(["content"]),nC=new Set(["transitionProperty"]),P=(n,C,f="rem")=>{let $=Q(C,{rem:!sn.has(n),second:gn.has(n),quote:en.has(n),delimeter:nC.has(n)?", ":" ",unit:f});return`${K(n)}: ${$};`};class s{value;__;constructor(n){if(this.value=new B,M(n))this.value.set(n,[]);else q(n).forEach(([C,f])=>{this.value.set(`${C}:${f}`,[])});this.__=(...C)=>{return this.value.forEach((f)=>{f.push(...C)}),this}}}function CC(n){return new s(n).__}var o=(n)=>{if(k(n))return o(n());if(n instanceof N)return n;if(n instanceof j)return g(n.__(),{});return g(n,{})};function fC(n){let C={};return n.split(";").map((f)=>f.trim()).filter((f)=>f!=="").forEach((f)=>{let[$,T]=f.split(":").map((J)=>J.trim()),S=On($);if(!isNaN(Number(T))&&isFinite(Number(T)))C[S]=Number(T);else C[S]=T}),C}var $C=(n)=>{n.value.forEach((C,f)=>{n.value.set(f,C.map(($)=>{let T={};return q($).forEach(([S,J])=>{if(b(J))T[S]=o(J)}),T}))})},qn=(n,C=[])=>{let f=[];if(L(n))return qn(n[0],f);if(n instanceof j)return qn(V(n.value),f);return f.push(String(n)),f};class Gn{base;constructor(n){this.base=n}props(n,C,f){let $=["animation","animationName"].includes(C);return q(f).forEach(([T,S])=>{if($)f[T]=this.addPrefixToAnimation(n,S);else f[T]=S}),f}addPrefixToAnimation(n,C){if(C instanceof j)this.saveAnim(n,C);else if(L(C))return C[0]=this.addPrefixToAnimation(n,C[0]),C;else if(M(C)&&!C.includes("("))return C.split(", ").map((T)=>{let S=T.split(" "),J=S[0],U=S.slice(1).join(" "),W=`${this.base.PREFIX}${J}`;return this.base.ANIM.init(W,new Set).add(n),`${this.base.PREFIX}${J} ${U}`.trim()}).join(", ");return C}saveAnim(n,C){qn(C).forEach((f)=>{this.base.ANIM.init(`${this.base.PREFIX}${f}`,new Set).add(n)})}process(n,C,f,$,T){if(f instanceof j)this.saveAnim(n,f),$.ass(C,this.props(n,f.var,o(f)));else if(C.startsWith(":")||C.startsWith(",")||C.startsWith("[")){if(C.startsWith("::before")||C.startsWith("::after")){if(L(f)){if(!f.some((J)=>("content"in J)))f.push({content:""})}}this.set(n+C,f,T)}else if(C.startsWith(" ")){let J=C.match(/^.*?\w/gm)?.[0].slice(0,-1),U=C.replaceAll(/, /gm,`, ${n}${J}`);this.set(n+U,f,T)}else if(fn(C))this.set(n+C,f,T);else $.set(C,this.props(n,C,o(f)))}set(n,C,f){if(!y(C)&&!M(C))return;let $=new B;if(C instanceof j)this.saveAnim(n,C),$.ass(C.var,this.props(n,C.var,o(C.value)));else if(C instanceof a)q(C._value).forEach(([S,J])=>{if(b(J))$.set(S,this.props(n,S,o(J)))});else if(C instanceof s)$C(C),$.init("supports",[]).push(C);else if(L(C))C.forEach((S)=>{this.set(n,S,f)});else if(M(C)){let S=fC(C);this.set(n,S,f)}else q(C).forEach(([S,J])=>{return this.process(n,S,J,$,f)});let T=f.init(n,new B);$.forEach((S,J)=>{if(J==="supports")f.init(n,new B).init(J,[])?.push(...S);else T.set(J,S)})}}class d{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new B;CID=new B;DATA=new B;ANIM=new B;IMPORTED=[];constructor(n="",C="",f,$){this.PRE=n;this.EXPORT=f;this.UNIT=$;this.PREFIX=C?C+"_":C,this.PS=new Gn(this)}get(n,C,f){let $=n.PRE+C;if(n.DATA.has($))return $;else if(C in n)return n[C];else return n.PRE+C}set(n,C,f){return!1}get css(){return new Proxy(this,this)}load(n){return this.IMPORTED.push(n),this}__(n){Object.entries(n).forEach(([C,f])=>{this.set(this,C,f)})}}class A extends d{set(n,C,f){let $=n.PRE+C;return n.PS.set($,f,n.DATA),!0}}class l extends d{webkit;constructor(n="",C=!0,f){super("",n,!1,f);this.webkit=C}set(n,C,f){let $=n.PREFIX+C,T=L(f)?f:[f],S=new B;if(T.forEach((J)=>{q(J).forEach(([U,W])=>{let R=_(U)?`${U}%`:U;n.PS.set(R,W,S)})}),n.ANIM.init($,new Set),n.DATA.set(`@keyframes ${$}`,S),this.webkit)n.DATA.set(`@-webkit-keyframes ${$}`,S);return!0}}class r extends d{constructor(n=""){super("@",n)}set(n,C,f){return n.ARR.init(n.PRE+C,new Set).add(f),n}}class m extends d{constructor(n=""){super("@font-face",n);this.ARR.set(this.PRE,new Set)}set(n,C,f){let $=q({fontFamily:C,...f}).map(([T,S])=>{return P(T,S,this.UNIT)});return n.ARR.get(n.PRE)?.add($.join(`
|
|
3
|
-
`)),!0}}var
|
|
4
|
-
`));else{let
|
|
5
|
-
${
|
|
2
|
+
var cn=Object.defineProperty;var kn=(n,C)=>{for(var $ in C)cn(n,$,{get:C[$],enumerable:!0,configurable:!0,set:(f)=>C[$]=()=>f})};var Sn={};kn(Sn,{isWindow:()=>sn,isUndefined:()=>Tn,isStr:()=>j,isPromise:()=>rn,isPlainObject:()=>vn,isObject:()=>ln,isObj:()=>w,isNumber:()=>v,isNum:()=>qn,isNull:()=>_,isNotWindow:()=>Gn,isNotNull:()=>pn,isModule:()=>dn,isInt:()=>Yn,isFN:()=>e,isDefined:()=>M,isClassOrId:()=>Jn,isBool:()=>Xn,isAsync:()=>mn,isArraybuff:()=>xn,isArr:()=>Z});var e=(n)=>typeof n==="function",mn=(n)=>n.constructor.name==="AsyncFunction",rn=(n)=>!!n&&typeof n.then==="function",v=(n)=>{return!isNaN(parseFloat(n))&&isFinite(n)},ln=(n)=>{return n&&typeof n==="object"&&!Array.isArray(n)},vn=(n)=>{return typeof n==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype&&!Array.isArray(n)},dn=(n)=>{return n&&typeof n==="object"&&n[Symbol.toStringTag]==="Module"},xn=(n)=>{return n instanceof Uint8Array||n instanceof ArrayBuffer||typeof n==="string"},Jn=(n)=>{return n.startsWith(".")||n.startsWith("#")},Xn=(n)=>typeof n==="boolean",j=(n)=>typeof n==="string",Z=(n)=>Array.isArray(n),w=(n)=>typeof n==="object",qn=(n)=>typeof n==="number",_=(n)=>n===null,pn=(n)=>n===null,Tn=(n)=>typeof n>"u",M=(n)=>typeof n<"u",Yn=(n)=>{return Number.isInteger(Number(n))},sn=typeof window<"u",Gn=typeof window>"u";var Un=(n)=>{return Z(n)?n:[n]};class d{static set i(n){console.info(...Un(n))}static set e(n){console.error(...Un(n))}static set w(n){console.warn(...Un(n))}}var an=(n)=>Array.from({length:n},(C,$)=>$),Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZ",bn="abcdefghijklmnopqrstuvwxyz";var y=(n)=>JSON.stringify(n),Wn=(n)=>{return JSON.parse(n)},In=(n)=>{return n.replace(/-([a-z])/g,(C,$)=>$.toUpperCase())},A=(n)=>{if(n.startsWith("webkit"))n="-"+n;return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},nn=(n)=>{let C=Fn+bn,$=an(10).join("");return Array.from({length:n},(f,E)=>C+(E?$:"")).reduce((f,E)=>{return f+=E.charAt(Math.floor(Math.random()*E.length))},"")},en=(n=6,C)=>{if(!C)return Math.floor(Math.random()*n);return Math.round(Math.random()*(C-n)+n)},Kn=()=>{let n=[...Fn,...bn],C=en(0,n.length);return n[C]};class B extends Map{obj(n){n&&U(n).forEach(([C,$])=>this.set(C,$))}map(n){n.forEach((C,$)=>{if(C instanceof B)this.set($,C);else if(Z(C)){if(this.lacks($))this.set($,[]);this.get($).push(...C)}else if(w(C))this.ass($,C);else this.set($,C)})}ass(n,C){if(!this.has(n))this.set(n,{});b(this.get(n),C)}lacks(n){return!this.has(n)}init(n,C){return this.has(n)?this.get(n):this.set(n,C).get(n)}}var{values:P,keys:D,entries:U}=Object;var b=Object.assign,Mn=(n,C)=>Object.hasOwn(n,C),u=(n)=>{return Object.keys(n).length};var Rn=(n,C)=>{let $={added:{},removed:{},modified:{}},f=D(n),E=D(C);for(let Q of E){let T=n[Q],G=C[Q];if(!(Q in n))$.added[Q]=G;else if(Z(T)&&Z(G)){if(y(T)!==y(G))$.modified[Q]={old:T,new:G}}else if(w(T)&&w(G)&&!_(T)&&!_(G)){let R=Rn(T,G);if(u(R.added)||u(R.removed)||u(R.modified))$.modified[Q]={old:T,new:G}}else if(T!==G)$.modified[Q]={old:T,new:G}}for(let Q of f)if(!(Q in C))$.removed[Q]=n[Q];return $};var Dn=(n)=>{return P(n).some((C)=>{return u(C)})};var h=(n,C=2)=>String(n).padStart(C,"0"),gn=new Map;function o(n,C){let $=JSON.stringify({locale:C,...n}),f=gn.get($);if(!f)f=new Intl.DateTimeFormat(C,n),gn.set($,f);return f}var Zn={YYYY:(n)=>String(n.getFullYear()),YY:(n)=>h(n.getFullYear()%100),MMMM:(n,C)=>o({month:"long"},C).format(n),MMM:(n,C)=>o({month:"short"},C).format(n),MM:(n)=>h(n.getMonth()+1),M:(n)=>String(n.getMonth()+1),dddd:(n,C)=>o({weekday:"long"},C).format(n),ddd:(n,C)=>o({weekday:"short"},C).format(n),DD:(n)=>h(n.getDate()),D:(n)=>String(n.getDate()),HH:(n)=>h(n.getHours()),H:(n)=>String(n.getHours()),hh:(n)=>{let C=n.getHours()%12||12;return h(C)},h:(n)=>String(n.getHours()%12||12),A:(n,C)=>{return(o({hour:"numeric",hour12:!0},C).formatToParts(n).find((E)=>E.type==="dayPeriod")?.value??(n.getHours()<12?"AM":"PM")).toUpperCase()},a:(n,C)=>{return(o({hour:"numeric",hour12:!0},C).formatToParts(n).find((E)=>E.type==="dayPeriod")?.value??(n.getHours()<12?"AM":"PM")).toLowerCase()},mm:(n)=>h(n.getMinutes()),m:(n)=>String(n.getMinutes()),ss:(n)=>h(n.getSeconds()),s:(n)=>String(n.getSeconds()),SSS:(n)=>h(n.getMilliseconds(),3),Q:(n)=>String(Math.floor(n.getMonth()/3)+1),DoY:(n)=>{let C=new Date(n.getFullYear(),0,1),$=Math.floor((+n-+C)/86400000)+1;return String($)}};function fC(){if(globalThis.__dateTokenRegex)return globalThis.__dateTokenRegex;let n=new RegExp(Object.keys(Zn).sort((C,$)=>$.length-C.length).map((C)=>C.replace(/([.*+?^${}()|[\]\\])/g,"\\$1")).join("|"),"g");return globalThis.__dateTokenRegex=n,n}function EC(n,C="YYYY-MM-DD HH:mm:ss",$){let f=typeof n==="number"?new Date(n):typeof n==="string"?new Date(n):n,E=fC(),Q=new Map;return C.replace(E,(T)=>{if(Q.has(T))return Q.get(T);let G=Zn[T],R=G?G(f,$):T;return Q.set(T,R),R})}Date.prototype.format=function(n,C){return EC(this,n,C)};Date.registerFormat=function(n,C){Zn[n]=C,globalThis.__dateTokenRegex=null};Date.format=function(n,C){return new Date().format(n,C)};class On{static rand(n=6,C){if(C)return Math.floor(Math.random()*(C-n+1)+n);return Math.floor(Math.random()*n)+1-1}static fill(n,C=null){return Array(n).fill(C)}static new({dom:n,id:C,inner:$}){let f=document.createElement(n);if(C)f.id=C;if($)f.innerHTML=$;return f}static randFrom(n){if(Array.isArray(n)){let C=n.length,$=this.rand(0,C-1);return n[$]}else if(typeof n=="object"){let C=D(n),$=C.length,f=this.rand(0,$-1);return C[f]}}static randArray(n=[],C=1,$=!1){let f=[],E=$?new Set:null;while(($?E.size:f.length)<C){let Q=n[On.rand(0,n.length-1)];$?E.add(Q):f.push(Q)}return $?[...E]:f}static randomAZ=Kn;static makeID=nn;static class(n,...C){let $=C.filter(Boolean);if(n?.class)$.push(...Z(n.class)?n.class:[n.class]);if($.length)n.class=$}static get O(){return{vals:P,keys:D,items:U,has:Mn,ass:b,len:(n={})=>D(n).length}}static get is(){return Sn}static get return(){return Vn}static isHREF(n,C){return n===C?!0:n.startsWith(C)&&C!=="/"?!0:!1}static sleep=(n=1000)=>new Promise((C)=>setTimeout(C,n));static get screen(){let{innerWidth:n}=window,C={xs:n<=480,sm:n>=480,smd:n>=624,md:n>=768,lg:n>=1024,xl:n>=1280,xxl:n>=1536},$=U(C).reverse();for(let f=0;f<$.length;f++){let[E,Q]=$[f];if(Q)return E}return}bytes(n){if(n===0)return"0 Bytes";let C=1024,$=["Bytes","KB","MB","GB"],f=Math.floor(Math.log(n)/Math.log(C));return parseFloat((n/Math.pow(C,f)).toFixed(2))+" "+$[f]}static format(n){return new jn(n)}static compareObjects=Rn;static isObjectUdpated=Dn}class Vn{static arr(n){return n?Z(n)?n:[n]:[]}static num(n,C=0){let $=parseFloat(n);return isNaN($)?C:$}static str(n){return String(n)}static arr2obj(n,C=!1){return n.reduce(($,f,E)=>{if(C)$[f]=E;else $[E]=f;return $},{})}}class jn{val;constructor(n){this.val=n}get px(){return`${this.val}px`}get rem(){return`${this.val}rem`}get pr(){return`${this.val}%`}}var An={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class F{static default="xs";static prop=U(An).reduce((n,[C,$],f)=>{return n[C]=`(${f==0?"max-width":"min-width"}: ${$})`,n},{});static extra={no_hover:"(pointer: coarse)",mobile:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)"};constructor(n,C={}){let $=F.default,f={};if(n!==void 0)t(f,$,n,$);U(C).forEach(([E,Q])=>{t(f,E,Q,$)}),b(this,f)}static get breakpoints(){return Wn(y(An))}}var t=(n,C,$,f)=>{if($!==void 0)if($ instanceof F)U($).forEach(([E,Q])=>{if(f!==C)if(C!==E)if(f===E)t(n,C,Q,f);else t(n,`${C}-${E}`,Q,f);else t(n,E,Q,f);else t(n,E,Q,f)});else n[C]=$};function g(n,C){if(C)return new F(n,C);return new F(void 0,n)}function QC(n){if(this._prefix)return g({[this._prefix]:n});else return g({xs:n})}function I(n){return new this.constructor({prefix:n,values:this._values,data:this.data})}class Cn{_prefix;data;_values;constructor({prefix:n,data:C,values:$}={data:{},values:{}}){this._prefix=n,this._values=$,U($).forEach(([f,E])=>{if(!this._values[f])this._values[f]=g({});b(this._values[f],E)}),this.data=C}get XS(){return I.call(this,"xs")}get SM(){return I.call(this,"sm")}get SMD(){return I.call(this,"smd")}get MD(){return I.call(this,"md")}get LG(){return I.call(this,"lg")}get XL(){return I.call(this,"xl")}get XXL(){return I.call(this,"xxl")}get NO_HOVER(){return I.call(this,"no_hover")}get MOBILE(){return I.call(this,"no_hover")}get PRINT(){return I.call(this,"print")}get SCREEN(){return I.call(this,"screen")}get DARK(){return I.call(this,"dark")}set _value(n){U(n).forEach(([C,$])=>{if(!this._values[C])this._values[C]=g({});b(this._values[C],QC.call(this,$))})}get _value(){return this._values}}class K{k="";fallback;var="";value;constructor(n={},C){if(u(n)){let[$,f]=U(n)[0];this.k=$,this.var="--"+A($),this.value=f instanceof F?f:g(f,{}),this.fallback=C}else this.value=g({})}__(n){if(n)this.fallback=n;let C=this.fallback;if(C)return`var(${this.var}, ${q(C)})`;else return`var(${this.var})`}new(n,C){return new K({[this.k]:n instanceof F?n:q(n)},C)}}var JC=(n,C)=>{return new K(n,C)},qC=(n)=>{let C={};for(let $ in n)C[$]=new K({[$]:n[$]});return C};var q=(n,C={unit:"rem"})=>{let{rem:$,second:f,quote:E,degree:Q,percent:T,delimeter:G,unit:R,delimeter_arr:O}=C;if(Tn(n)||_(n)||!E&&n==="")return"";let S=Z(n)?n:[n];if(!S.length)return"";return S.filter((W)=>M(W)).map((W)=>{if(Z(W))return G=O||", ",q(W,{...C,delimeter:" "});if(W instanceof K)return W.__();if(E)W=String(W);if(qn(W))if($)return`${W}${R?R:"rem"}`;else if(Q)return`${W}deg`;else if(T)return`${W}%`;else if(f)return`${W}s`;else return String(W);if(j(W))if(W.includes("("))return W;else if(E)return`'${W}'`;else return W;return""}).filter((W)=>M(W)&&W!=="").join(G||" ")};var Pn=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),TC=new Set([...Pn,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),GC=new Set(["content"]),SC=new Set(["transitionProperty"]),c=(n,C,$="rem")=>{let f=q(C,{rem:!TC.has(n),second:Pn.has(n),quote:GC.has(n),delimeter:SC.has(n)?", ":" ",unit:$});return`${A(n)}: ${f};`};class $n{value;__;constructor(n){if(this.value=new B,j(n))this.value.set(n,[]);else U(n).forEach(([C,$])=>{this.value.set(`${C}:${$}`,[])});this.__=(...C)=>{return this.value.forEach(($)=>{$.push(...C)}),this}}}function UC(n){return new $n(n).__}var k=(n)=>{if(e(n))return k(n());if(n instanceof F)return n;if(n instanceof K)return g(n.__(),{});return g(n,{})};function WC(n){let C={};return n.split(";").map(($)=>$.trim()).filter(($)=>$!=="").forEach(($)=>{let[f,E]=$.split(":").map((T)=>T.trim()),Q=In(f);if(!isNaN(Number(E))&&isFinite(Number(E)))C[Q]=Number(E);else C[Q]=E}),C}var RC=(n)=>{n.value.forEach((C,$)=>{n.value.set($,C.map((f)=>{let E={};return U(f).forEach(([Q,T])=>{if(M(T))E[Q]=k(T)}),E}))})},Ln=(n,C=[])=>{let $=[];if(Z(n))return Ln(n[0],$);if(n instanceof K)return Ln(P(n.value),$);return $.push(String(n)),$};class Bn{base;constructor(n){this.base=n}props(n,C,$){let f=["animation","animationName"].includes(C);return U($).forEach(([E,Q])=>{if(f)$[E]=this.addPrefixToAnimation(n,Q);else $[E]=Q}),$}addPrefixToAnimation(n,C){if(C instanceof K)this.saveAnim(n,C);else if(Z(C))return C[0]=this.addPrefixToAnimation(n,C[0]),C;else if(j(C)&&!C.includes("("))return C.split(", ").map((E)=>{let Q=E.split(" "),T=Q[0],G=Q.slice(1).join(" "),R=`${this.base.PREFIX}${T}`;return this.base.ANIM.init(R,new Set).add(n),`${this.base.PREFIX}${T} ${G}`.trim()}).join(", ");return C}saveAnim(n,C){Ln(C).forEach(($)=>{this.base.ANIM.init(`${this.base.PREFIX}${$}`,new Set).add(n)})}process(n,C,$,f,E){if($ instanceof K)this.saveAnim(n,$),f.ass(C,this.props(n,$.var,k($)));else if(C.startsWith(":")||C.startsWith(",")||C.startsWith("[")){if(C.startsWith("::before")||C.startsWith("::after")){if(Z($)){if(!$.some((T)=>("content"in T)))$.push({content:""})}}this.set(n+C,$,E)}else if(C.startsWith(" ")){let T=C.match(/^.*?\w/gm)?.[0].slice(0,-1),G=C.replaceAll(/, /gm,`, ${n}${T}`);this.set(n+G,$,E)}else if(Jn(C))this.set(n+C,$,E);else f.set(C,this.props(n,C,k($)))}set(n,C,$){if(!w(C)&&!j(C))return;let f=new B;if(C instanceof K)this.saveAnim(n,C),f.ass(C.var,this.props(n,C.var,k(C.value)));else if(C instanceof Cn)U(C._value).forEach(([Q,T])=>{if(M(T))f.set(Q,this.props(n,Q,k(T)))});else if(C instanceof $n)RC(C),f.init("supports",[]).push(C);else if(Z(C))C.forEach((Q)=>{this.set(n,Q,$)});else if(j(C)){let Q=WC(C);this.set(n,Q,$)}else U(C).forEach(([Q,T])=>{return this.process(n,Q,T,f,$)});let E=$.init(n,new B);f.forEach((Q,T)=>{if(T==="supports")$.init(n,new B).init(T,[])?.push(...Q);else E.set(T,Q)})}}class x{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new B;CID=new B;DATA=new B;ANIM=new B;IMPORTED=[];constructor(n="",C="",$,f){this.PRE=n;this.EXPORT=$;this.UNIT=f;this.PREFIX=C?C+"_":C,this.PS=new Bn(this)}get(n,C,$){let f=n.PRE+C;if(n.DATA.has(f))return f;else if(C in n)return n[C];else return n.PRE+C}set(n,C,$){return!1}get css(){return new Proxy(this,this)}load(n){return this.IMPORTED.push(n),this}__(n){Object.entries(n).forEach(([C,$])=>{this.set(this,C,$)})}}class z extends x{set(n,C,$){let f=n.PRE+C;return n.PS.set(f,$,n.DATA),!0}}class p extends x{webkit;constructor(n="",C=!0,$){super("",n,!1,$);this.webkit=C}set(n,C,$){let f=n.PREFIX+C,E=Z($)?$:[$],Q=new B;if(E.forEach((T)=>{U(T).forEach(([G,R])=>{let O=v(G)?`${G}%`:G;n.PS.set(O,R,Q)})}),n.ANIM.init(f,new Set),n.DATA.set(`@keyframes ${f}`,Q),this.webkit)n.DATA.set(`@-webkit-keyframes ${f}`,Q);return!0}}class s extends x{constructor(n=""){super("@",n)}set(n,C,$){return n.ARR.init(n.PRE+C,new Set).add($),n}}class a extends x{constructor(n=""){super("@font-face",n);this.ARR.set(this.PRE,new Set)}set(n,C,$){let f=U({fontFamily:C,...$}).map(([E,Q])=>{return c(E,Q,this.UNIT)});return n.ARR.get(n.PRE)?.add(f.join(`
|
|
3
|
+
`)),!0}}var hn=Array.from;class Hn{shweet;shaker;include;CID=new B;css="";constructor(n,C=[],$=[]){this.shweet=n;this.shaker=C;this.include=$}load(n){let C=F.default,$=F.prop;b($,F.extra);let f=new B,E={},Q={},T={},G=new Set,R={},O={};D($).forEach((S)=>{R[S]={}});for(let S of P(this.shweet))if(S instanceof z)this.ClassID(S,E,Q,n),S.ANIM.forEach((W,L)=>{W.forEach((H)=>{f.init(L,new Set).add(H)})});else if(S instanceof p)this.KF(S,T,f);else if(S instanceof s)this.AT(S,G);else if(S instanceof a)this.FONT(S,G);return U(E).forEach(([S,W])=>{if(!R[S])R[S]={};U(W).forEach(([L,H])=>{let N=H.join(", ");if(!R[S][N])R[S][N]=[];R[S][N].push(L)})}),U(Q).forEach(([S,W])=>{U(W).forEach(([L,H])=>{if(!O[L])O[L]={};U(H).forEach(([N,X])=>{let Y=`@supports(${S})`;if(!O[L][Y])O[L][Y]={};let V=X.join(", ");if(!O[L][Y][V])O[L][Y][V]=new Set;O[L][Y][V].add(N)})})}),U(R).forEach(([S,W])=>{let L=[],H=[];if(U(W).forEach(([N,X])=>{if(X.some((V)=>{return V.startsWith("animation")||V.startsWith("transition")}))H.push(m(N,X));else L.push(m(N,X))}),H.length)L.unshift(...H);if(T[S])U(T[S]).forEach(([N,X])=>{L.push(m(N,X))});if(O[S])U(O[S]).forEach(([N,X])=>{let Y=U(X).map(([V,Qn])=>{return m(V,[...Qn])});L.push(m(N,Y))});if(L.length)if(G.add(`/* -------------- ${S+(S===C?" ( default )":"")} */`),S===C)G.add(L.join(`
|
|
4
|
+
`));else{let N=S.split("-").map((X)=>$[X]).join(" and ");G.add(`@media ${N} {
|
|
5
|
+
${L.join(`
|
|
6
6
|
`)}
|
|
7
|
-
}`)}}),this.css=[...
|
|
8
|
-
`),this}ClassID(n,C
|
|
9
|
-
${
|
|
10
|
-
}`)}),n.IMPORTED.forEach((
|
|
7
|
+
}`)}}),this.css=[...G].join(`
|
|
8
|
+
`),this}ClassID(n,C,$,f){let E=(Q,T,G,R,O)=>{U(T).forEach(([S,W])=>{this.push(O,G,S,R,c(Q,W,n.UNIT))})};n.DATA.forEach((Q,T)=>{let G=OC(T,n.PREFIX),R=this.getCID(T,n.PREFIX,f);Q.forEach((O,S)=>{if(S==="supports"){if(Z(O))O.forEach((W)=>{W.value.forEach((L,H)=>{if(!(H in $))$[H]={};L.forEach((N)=>{U(N).forEach(([X,Y])=>{E(X,Y,G,R,$[H])})})})})}else E(S,O,G,R,C)})}),n.IMPORTED.forEach((Q)=>{this.ClassID(Q,C,$,Q.EXPORT)})}KF(n,C,$){let f=(E,Q,T)=>{wn(C,E,Q),C[E][Q].push(T)};n.DATA.forEach((E,Q)=>{E.forEach((T,G)=>{let R={};T.forEach((O,S)=>{if(S==="supports")d.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else U(O).forEach(([W,L])=>{if(this.shaker.length){let H=Q.split(" ")[1];if($.has(H)){if([...$.get(H)].some((Y)=>{return this.getCID(Y,"",!1,!1)})){if(!(W in R))R[W]=[];R[W].push(c(S,L,n.UNIT))}}}else{if(!(W in R))R[W]=[];R[W].push(c(S,L,n.UNIT))}})}),U(R).forEach(([O,S])=>{f(O,Q,m(G,S))})})}),n.IMPORTED.forEach((E)=>{this.KF(E,C,$)})}AT(n,C){for(let[$,f]of n.ARR)f.forEach((E)=>{let Q=E.includes("(")?E:`"${E}"`;C.add(`${$} ${Q.trim()};`)});n.IMPORTED.forEach(($)=>{this.AT($,C)})}FONT(n,C){(n.ARR.get("@font-face")??new Set).forEach((E)=>{C.add(`@font-face {
|
|
9
|
+
${E}
|
|
10
|
+
}`)}),n.IMPORTED.forEach((E)=>{this.FONT(E,C)})}getCID(n,C,$,f=!0){let E=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,Q=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,T=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,G=[...new Set(Nn(n,E)),...new Set(Nn(n,Q))];if(f&&M($)&&$)G.forEach((R)=>{this.CID.init(R.replaceAll("-","_"),new Set).add(C+R)});return G.push(...new Set(Nn(n,T))),G.some((R)=>this.shaker.includes(R)||this.include.includes(R))}push(n,C,$,f,E){if(!(this.shaker.length&&C.startsWith(".")||this.shaker.length&&C.startsWith("#"))||f)wn(n,$,E),ZC(n,$,E,C)}}var m=(n,C)=>{return`${n} {
|
|
11
11
|
${C.join(`
|
|
12
12
|
`)}
|
|
13
|
-
}`},Un=(n,C)=>{return jn(n.matchAll(C),(f)=>f[1])},In=(n,C,f)=>{try{if(!n[C])n[C]={},n[C][f]=[];if(!n[C][f])n[C][f]=[]}catch($){c.e=[`property "${C}" not found!`,{error:"@ensurePropsInitialized"}]}},TC=(n,C,f,$)=>{if(!n[C])n[C]={[f]:$.split(",").map((T)=>T.trim())};else n[C][f].push(...$.split(",").map((T)=>T.trim()))},EC=(n,C)=>{if(C)return n.replaceAll(/\.|\#/g,(f)=>f+C);return n};import{mkdirSync as SC,writeFileSync as QC,existsSync as Mn}from"fs";var e=(n,C="")=>{if(Mn(n))return!0;return QC(n,C,{flag:"wx"}),!0},nn=(n)=>{if(Mn(n))return!0;return SC(n,{recursive:!0}),!0};import{writeFileSync as Vn}from"fs";function E(n){return function(...C){return{[n]:C}}}class wn{static attr(n){let[C,f]=q(n)[0];return E(`[${C}="${f}"]`)}static after(n=""){return E("::after"+n)}static before(n=""){return E("::before"+n)}static backdrop(n=""){return E("::backdrop"+n)}static cue(n=""){return E("::cue"+n)}static cueRegion(n=""){return E("::cue-region"+n)}static firstLetter(n=""){return E("::first-letter"+n)}static firstLine(n=""){return E("::first-line"+n)}static marker(n=""){return E("::marker"+n)}static part(n=""){return E("::part"+n)}static placeholder(n=""){return E("::placeholder"+n)}static selection(n=""){return E("::selection"+n)}static slotted(n=""){return E("::slotted"+n)}static spellingError(n=""){return E("::spelling-error"+n)}static targetText(n=""){return E("::target-text"+n)}static viewTransition(n=""){return E("::view-transition"+n)}static viewTransitionGroup(n=""){return E("::view-transition-group"+n)}static viewTransitionImagePair(n=""){return E("::view-transition-image-pair"+n)}static viewTransitionNew(n=""){return E("::view-transition-new"+n)}static viewTransitionOld(n=""){return E("::view-transition-old"+n)}static scrollbar(n=""){return E("::-webkit-scrollbar"+n)}static scrollbarThumb(n=""){return E("::-webkit-scrollbar-thumb"+n)}static scrollbarTrack(n=""){return E("::-webkit-scrollbar-track"+n)}static scrollbarCorner(n=""){return E("::-webkit-scrollbar-corner"+n)}static active(n=""){return E(":active"+n)}static anyLink(n=""){return E(":any-link"+n)}static autofill(n=""){return E(":autofill"+n)}static blank(n=""){return E(":blank"+n)}static checked(n=""){return E(":checked"+n)}static current(n=""){return E(":current"+n)}static default(n=""){return E(":default"+n)}static defined(n=""){return E(":defined"+n)}static disabled(n=""){return E(":disabled"+n)}static empty(n=""){return E(":empty"+n)}static enabled(n=""){return E(":enabled"+n)}static first(n=""){return E(":first"+n)}static firstChild(n=""){return E(":first-child"+n)}static firstOfType(n=""){return E(":first-of-type"+n)}static fullscreen(n=""){return E(":fullscreen"+n)}static future(n=""){return E(":future"+n)}static focus(n=""){return E(":focus"+n)}static focusVisible(n=""){return E(":focus-visible"+n)}static focusWithin(n=""){return E(":focus-within"+n)}static host(n=""){return E(":host"+n)}static hover(n=""){return E(":hover"+n)}static indeterminate(n=""){return E(":indeterminate"+n)}static inRange(n=""){return E(":in-range"+n)}static invalid(n=""){return E(":invalid"+n)}static lastChild(n=""){return E(":last-child"+n)}static lastOfType(n=""){return E(":last-of-type"+n)}static left(n=""){return E(":left"+n)}static link(n=""){return E(":link"+n)}static localLink(n=""){return E(":local-link"+n)}static modal(n=""){return E(":modal"+n)}static onlyChild(n=""){return E(":only-child"+n)}static onlyOfType(n=""){return E(":only-of-type"+n)}static optional(n=""){return E(":optional"+n)}static outOfRange(n=""){return E(":out-of-range"+n)}static past(n=""){return E(":past"+n)}static pictureInPicture(n=""){return E(":picture-in-picture"+n)}static placeholderShown(n=""){return E(":placeholder-shown"+n)}static paused(n=""){return E(":paused"+n)}static playing(n=""){return E(":playing"+n)}static readOnly(n=""){return E(":read-only"+n)}static readWrite(n=""){return E(":read-write"+n)}static required(n=""){return E(":required"+n)}static right(n=""){return E(":right"+n)}static root(n=""){return E(":root"+n)}static scope(n=""){return E(":scope"+n)}static target(n=""){return E(":target"+n)}static targetWithin(n=""){return E(":target-within"+n)}static userInvalid(n=""){return E(":user-invalid"+n)}static valid(n=""){return E(":valid"+n)}static visited(n=""){return E(":visited"+n)}static dir(n){return E(`:dir(${n})`)}static has(n){return E(`:has(${n})`)}static host_(n){return E(`:host(${n})`)}static hostContext(n){return E(`:host-context(${n})`)}static is(n){return E(`:is(${n})`)}static lang(n){return E(`:lang(${n})`)}static not(n){return E(`:not(${n})`)}static nthChild(n){return E(`:nth-child(${n})`)}static nthCol(n){return E(`:nth-col(${n})`)}static nthLastChild(n){return E(`:nth-last-child(${n})`)}static nthLastCol(n){return E(`:nth-last-col(${n})`)}static nthLastOfType(n){return E(`:nth-last-of-type(${n})`)}static nthOfType(n){return E(`:nth-of-type(${n})`)}static state(n){return E(`:state(${n})`)}static where(n){return E(`:where(${n})`)}static and(n){return E(", "+n)}static child(n){return E(" > "+n)}static desc(n){return E(" "+n)}static next(n){return E(" + "+n)}static general(n){return E(" ~ "+n)}static withClass(n){if(!n.startsWith("."))throw Error("should start with . or # - class / id");return E(n)}}class Kn{static minmax(n,C){return`minmax(${Q([n,C],{rem:!0,delimeter:", "})})`}static fitContent(n){return`fit-content(${Q([n],{rem:!0})})`}static repeat(n,...C){return`repeat(${Q([n,Q([C],{rem:!0})],{delimeter:", "})})`}}class hn extends Kn{static attr(n,C,f){return`attr(${Q([n,C,f])})`}static blur(n){return`blur(${Q([n],{rem:!0})})`}static brightness(n){return`brightness(${Q([n])})`}static calc(...n){return`calc(${Q(n,{rem:!0})})`}static circle(n,C){return`circle(${Q([n,C],{rem:!0})})`}static clamp(n,C,f){return`clamp(${Q([n,C,f],{rem:!0,delimeter:", "})})`}static colorMix(n,C,f){return`color-mix(${Q([n,Q(L(C)?C:[C]),Q(L(f)?f:[f])],{delimeter:", "})})`}static conicGradient(...n){return`conic-gradient(${Q(n,{delimeter:", "})})`}static contrast(n){return`contrast(${Q([n])})`}static cubicBezier(n,C,f,$){return`cubic-bezier(${Q([n,C,f,$],{delimeter:", "})})`}static dropShadow(...n){return`drop-shadow(${Q(n,{rem:!0})})`}static grayscale(n){return`grayscale(${Q([n])})`}static hsl(n,C,f){return`hsl(${Q([n,C,f])})`}static hsla(n,C,f,$){return`hsl(${Q([n,C,f,$?["/",$]:$])})`}static hueRotate(n){return`hue-rotate(${Q([n],{degree:!0})})`}static inset(...n){return`inset(${Q(n,{rem:!0})})`}static invert(n){return`invert(${Q([n])})`}static linearGradient(...n){return`linear-gradient(${Q(n,{delimeter:", "})})`}static matrix(n,C,f,$,T,S){return`matrix(${Q([n,C,f,$,T,S],{delimeter:", "})})`}static matrix3d(n,C,f,$){return`matrix3d(${Q([n,C,f,$],{delimeter:", "})})`}static max(...n){return`max(${Q(n,{rem:!0,delimeter:", "})})`}static min(...n){return`min(${Q(n,{rem:!0,delimeter:", "})})`}static opacity(n){return`opacity(${Q([n])})`}static path(n){return`path(${Q([n],{quote:!0})})`}static clipPath(n,C){return`path(${Q([n,Q([C],{quote:!0})],{delimeter:", "})})`}static perspective(n){return`perspective(${Q([n])})`}static polygon(...n){return`polygon(${Q(n,{percent:!0,delimeter:", "})})`}static ray(...n){return`ray(${Q(n,{degree:!0})})`}static radialGradient(...n){return`radial-gradient(${Q(n,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...n){return`repeating-conic-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...n){return`repeating-linear-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...n){return`repeating-radial-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static rgb(n,C,f){return`rgb(${Q([n,C,f])})`}static rgba(n,C,f,$){return`rgba(${Q([n,C,f,$?["/",$]:void 0],{delimeter_arr:" "})})`}static rotate(n){return`rotate(${Q([n],{degree:!0})})`}static rotate3d(n,C,f,$){return`rotate3d(${Q([Q([n,C,f],{delimeter:", "}),$],{degree:!0,delimeter:", "})})`}static rotateX(n){return`rotateX(${Q([n],{degree:!0})})`}static rotateY(n){return`rotateY(${Q([n],{degree:!0})})`}static rotateZ(n){return`rotateZ(${Q([n],{degree:!0})})`}static saturate(...n){return`saturate(${Q(n)})`}static scale(n,C){return`scale(${Q([n,C],{delimeter:", "})})`}static scale3d(n,C,f){return`scale3d(${Q([n,C,f],{delimeter:", "})})`}static scaleX(n){return`scaleX(${Q([n])})`}static scaleY(n){return`scaleY(${Q([n])})`}static scaleZ(n){return`scaleZ(${Q([n])})`}static sepia(n){return`sepia(${Q([n])})`}static skew(...n){return`skew(${Q(n,{degree:!0,delimeter:", "})})`}static skewX(n){return`skewX(${Q([n],{degree:!0})})`}static skewY(n){return`skewY(${Q([n],{degree:!0})})`}static steps(n,C){return`steps(${Q([n,C],{delimeter:", "})})`}static translate(...n){return`translate(${Q(n,{rem:!0,delimeter:", "})})`}static translate3d(...n){return`translate3d(${Q(n,{rem:!0,delimeter:", "})})`}static translateX(n){return`translateX(${Q([n],{rem:!0})})`}static translateY(n){return`translateY(${Q([n],{rem:!0})})`}static translateZ(...n){return`translateZ(${Q(n,{rem:!0,delimeter:", "})})`}static url(n){return`url(${Q([n],{quote:!0})})`}static var(n,C=""){n="--"+K(n);let f=C?", "+Q([C],{rem:!0,delimeter:", "}):"";return`var(${Q([n],{rem:!0})}${f})`}}var JC={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class tC{path;name;prefix;exportMap;_imported=new Set;save;constructor({__filename:n,name:C,prefix:f,shweets:$=[],exportMap:T,webkitKeyframes:S,unit:J="rem"}){this.path=n,this.name=C||WC(n),this.prefix=f??"",this.exportMap=T;let U=L($)?$:[$];UC.call(this,this.prefix,U,S,T,J);let W=this;Object.assign(this,{get shweet(){return W}}),this.save=({dir:R,mapDir:t,mapName:G="index",minify:Z=!0,shaker:O=[],include:D=[]})=>{let H=b(T)?T:!!t,F=new Wn(this,O,D).load(H),I=L(R)?R:[R],Cn=Z?qC(F.css):F.css;if(I.forEach((h)=>{if(!h)return;let u=h.endsWith("/")?"":"/",Rn=h+u+this.name+".css";nn(h+u),e(Rn),Vn(Rn,Cn||"/* --------------*/")}),t){let h=t.endsWith("/")?"":"/",u=t+h+G+".js";nn(t+h),e(u),GC(u,F.CID)}return this}}get imported(){return[...this._imported]}}var qC=(n)=>{return n.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").replace(/\s*([>~+])\s*/g,"$1").trim()},GC=(n,C)=>{let f={};C.forEach((T)=>{q(T).forEach(([S,J])=>{if(!f[S])f[S]=[J];else f[S].push(J)})});let $=[...C.entries()].map(([T,S])=>{return`${T}="${[...S].join(" ")}"`}).sort((T,S)=>T.localeCompare(S,void 0,{numeric:!0}));Vn(n,$.length?`export const ${$.join()};`:"export {}");return};function UC(n,C,f=!1,$,T){let S={d:new A("",n,$,T),i:new A("#",n,$,T),c:new A(".",n,$,T),kf:new l(n,f,T),at:new r,font:new m};C.forEach((J)=>{this._imported.add(J.path),J._imported.forEach((U)=>{this._imported.add(U)}),w(S).forEach((U)=>{S[U].load(J[U])})}),w(S).forEach((J)=>{S[J]=S[J].css}),X(this,S)}function WC(n){return n.split("/").slice(-1)[0].split(".")[0]}export{JC as v,CC as supports,wn as ps,N as media,g as med,c as log,WC as fileName,hn as f,tn as __,an as Var,Q as Value,tC as Shweet,a as Medyas};
|
|
13
|
+
}`},Nn=(n,C)=>{return hn(n.matchAll(C),($)=>$[1])},wn=(n,C,$)=>{try{if(!n[C])n[C]={},n[C][$]=[];if(!n[C][$])n[C][$]=[]}catch(f){d.e=[`property "${C}" not found!`,{error:"@ensurePropsInitialized"}]}},ZC=(n,C,$,f)=>{if(!n[C])n[C]={[$]:f.split(",").map((E)=>E.trim())};else n[C][$].push(...f.split(",").map((E)=>E.trim()))},OC=(n,C)=>{if(C)return n.replaceAll(/\.|\#/g,($)=>$+C);return n};import{mkdirSync as LC,writeFileSync as BC,existsSync as zn}from"fs";var fn=(n,C="")=>{if(zn(n))return!0;return BC(n,C,{flag:"wx"}),!0},En=(n)=>{if(zn(n))return!0;return LC(n,{recursive:!0}),!0};import{writeFileSync as on}from"fs";function J(n){return function(...C){return{[n]:C}}}class _n{static attr(n){let[C,$]=U(n)[0];return J(`[${C}="${$}"]`)}static after(n=""){return J("::after"+n)}static before(n=""){return J("::before"+n)}static backdrop(n=""){return J("::backdrop"+n)}static cue(n=""){return J("::cue"+n)}static cueRegion(n=""){return J("::cue-region"+n)}static firstLetter(n=""){return J("::first-letter"+n)}static firstLine(n=""){return J("::first-line"+n)}static marker(n=""){return J("::marker"+n)}static part(n=""){return J("::part"+n)}static placeholder(n=""){return J("::placeholder"+n)}static selection(n=""){return J("::selection"+n)}static slotted(n=""){return J("::slotted"+n)}static spellingError(n=""){return J("::spelling-error"+n)}static targetText(n=""){return J("::target-text"+n)}static viewTransition(n=""){return J("::view-transition"+n)}static viewTransitionGroup(n=""){return J("::view-transition-group"+n)}static viewTransitionImagePair(n=""){return J("::view-transition-image-pair"+n)}static viewTransitionNew(n=""){return J("::view-transition-new"+n)}static viewTransitionOld(n=""){return J("::view-transition-old"+n)}static scrollbar(n=""){return J("::-webkit-scrollbar"+n)}static scrollbarThumb(n=""){return J("::-webkit-scrollbar-thumb"+n)}static scrollbarTrack(n=""){return J("::-webkit-scrollbar-track"+n)}static scrollbarCorner(n=""){return J("::-webkit-scrollbar-corner"+n)}static active(n=""){return J(":active"+n)}static anyLink(n=""){return J(":any-link"+n)}static autofill(n=""){return J(":autofill"+n)}static blank(n=""){return J(":blank"+n)}static checked(n=""){return J(":checked"+n)}static current(n=""){return J(":current"+n)}static default(n=""){return J(":default"+n)}static defined(n=""){return J(":defined"+n)}static disabled(n=""){return J(":disabled"+n)}static empty(n=""){return J(":empty"+n)}static enabled(n=""){return J(":enabled"+n)}static first(n=""){return J(":first"+n)}static firstChild(n=""){return J(":first-child"+n)}static firstOfType(n=""){return J(":first-of-type"+n)}static fullscreen(n=""){return J(":fullscreen"+n)}static future(n=""){return J(":future"+n)}static focus(n=""){return J(":focus"+n)}static focusVisible(n=""){return J(":focus-visible"+n)}static focusWithin(n=""){return J(":focus-within"+n)}static host(n=""){return J(":host"+n)}static hover(n=""){return J(":hover"+n)}static indeterminate(n=""){return J(":indeterminate"+n)}static inRange(n=""){return J(":in-range"+n)}static invalid(n=""){return J(":invalid"+n)}static lastChild(n=""){return J(":last-child"+n)}static lastOfType(n=""){return J(":last-of-type"+n)}static left(n=""){return J(":left"+n)}static link(n=""){return J(":link"+n)}static localLink(n=""){return J(":local-link"+n)}static modal(n=""){return J(":modal"+n)}static onlyChild(n=""){return J(":only-child"+n)}static onlyOfType(n=""){return J(":only-of-type"+n)}static optional(n=""){return J(":optional"+n)}static outOfRange(n=""){return J(":out-of-range"+n)}static past(n=""){return J(":past"+n)}static pictureInPicture(n=""){return J(":picture-in-picture"+n)}static placeholderShown(n=""){return J(":placeholder-shown"+n)}static paused(n=""){return J(":paused"+n)}static playing(n=""){return J(":playing"+n)}static readOnly(n=""){return J(":read-only"+n)}static readWrite(n=""){return J(":read-write"+n)}static required(n=""){return J(":required"+n)}static right(n=""){return J(":right"+n)}static root(n=""){return J(":root"+n)}static scope(n=""){return J(":scope"+n)}static target(n=""){return J(":target"+n)}static targetWithin(n=""){return J(":target-within"+n)}static userInvalid(n=""){return J(":user-invalid"+n)}static valid(n=""){return J(":valid"+n)}static visited(n=""){return J(":visited"+n)}static dir(n){return J(`:dir(${n})`)}static has(n){return J(`:has(${n})`)}static host_(n){return J(`:host(${n})`)}static hostContext(n){return J(`:host-context(${n})`)}static is(n){return J(`:is(${n})`)}static lang(n){return J(`:lang(${n})`)}static not(n){return J(`:not(${n})`)}static nthChild(n){return J(`:nth-child(${n})`)}static nthCol(n){return J(`:nth-col(${n})`)}static nthLastChild(n){return J(`:nth-last-child(${n})`)}static nthLastCol(n){return J(`:nth-last-col(${n})`)}static nthLastOfType(n){return J(`:nth-last-of-type(${n})`)}static nthOfType(n){return J(`:nth-of-type(${n})`)}static state(n){return J(`:state(${n})`)}static where(n){return J(`:where(${n})`)}static and(n){return J(", "+n)}static child(n){return J(" > "+n)}static desc(n){return J(" "+n)}static next(n){return J(" + "+n)}static general(n){return J(" ~ "+n)}static withClass(n){if(!n.startsWith("."))throw Error("should start with . or # - class / id");return J(n)}}class yn{static minmax(n,C){return`minmax(${q([n,C],{rem:!0,delimeter:", "})})`}static fitContent(n){return`fit-content(${q([n],{rem:!0})})`}static repeat(n,...C){return`repeat(${q([n,q([C],{rem:!0})],{delimeter:", "})})`}}class un extends yn{static attr(n,C,$){return`attr(${q([n,C,$])})`}static blur(n){return`blur(${q([n],{rem:!0})})`}static brightness(n){return`brightness(${q([n])})`}static calc(...n){return`calc(${q(n,{rem:!0})})`}static circle(n,C){return`circle(${q([n,C],{rem:!0})})`}static clamp(n,C,$){return`clamp(${q([n,C,$],{rem:!0,delimeter:", "})})`}static colorMix(n,C,$){return`color-mix(${q([n,q(Z(C)?C:[C]),q(Z($)?$:[$])],{delimeter:", "})})`}static conicGradient(...n){return`conic-gradient(${q(n,{delimeter:", "})})`}static contrast(n){return`contrast(${q([n])})`}static cubicBezier(n,C,$,f){return`cubic-bezier(${q([n,C,$,f],{delimeter:", "})})`}static dropShadow(...n){return`drop-shadow(${q(n,{rem:!0})})`}static grayscale(n){return`grayscale(${q([n])})`}static hsl(n,C,$){return`hsl(${q([n,C,$])})`}static hsla(n,C,$,f){return`hsl(${q([n,C,$,f?["/",f]:f])})`}static hueRotate(n){return`hue-rotate(${q([n],{degree:!0})})`}static inset(...n){return`inset(${q(n,{rem:!0})})`}static invert(n){return`invert(${q([n])})`}static linearGradient(...n){return`linear-gradient(${q(n,{delimeter:", "})})`}static matrix(n,C,$,f,E,Q){return`matrix(${q([n,C,$,f,E,Q],{delimeter:", "})})`}static matrix3d(n,C,$,f){return`matrix3d(${q([n,C,$,f],{delimeter:", "})})`}static max(...n){return`max(${q(n,{rem:!0,delimeter:", "})})`}static min(...n){return`min(${q(n,{rem:!0,delimeter:", "})})`}static opacity(n){return`opacity(${q([n])})`}static path(n){return`path(${q([n],{quote:!0})})`}static clipPath(n,C){return`path(${q([n,q([C],{quote:!0})],{delimeter:", "})})`}static perspective(n){return`perspective(${q([n])})`}static polygon(...n){return`polygon(${q(n,{percent:!0,delimeter:", "})})`}static ray(...n){return`ray(${q(n,{degree:!0})})`}static radialGradient(...n){return`radial-gradient(${q(n,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...n){return`repeating-conic-gradient(${q(n,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...n){return`repeating-linear-gradient(${q(n,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...n){return`repeating-radial-gradient(${q(n,{degree:!0,delimeter:", "})})`}static rgb(n,C,$){return`rgb(${q([n,C,$])})`}static rgba(n,C,$,f){return`rgba(${q([n,C,$,f?["/",f]:void 0],{delimeter_arr:" "})})`}static rotate(n){return`rotate(${q([n],{degree:!0})})`}static rotate3d(n,C,$,f){return`rotate3d(${q([q([n,C,$],{delimeter:", "}),f],{degree:!0,delimeter:", "})})`}static rotateX(n){return`rotateX(${q([n],{degree:!0})})`}static rotateY(n){return`rotateY(${q([n],{degree:!0})})`}static rotateZ(n){return`rotateZ(${q([n],{degree:!0})})`}static saturate(...n){return`saturate(${q(n)})`}static scale(n,C){return`scale(${q([n,C],{delimeter:", "})})`}static scale3d(n,C,$){return`scale3d(${q([n,C,$],{delimeter:", "})})`}static scaleX(n){return`scaleX(${q([n])})`}static scaleY(n){return`scaleY(${q([n])})`}static scaleZ(n){return`scaleZ(${q([n])})`}static sepia(n){return`sepia(${q([n])})`}static skew(...n){return`skew(${q(n,{degree:!0,delimeter:", "})})`}static skewX(n){return`skewX(${q([n],{degree:!0})})`}static skewY(n){return`skewY(${q([n],{degree:!0})})`}static steps(n,C){return`steps(${q([n,C],{delimeter:", "})})`}static translate(...n){return`translate(${q(n,{rem:!0,delimeter:", "})})`}static translate3d(...n){return`translate3d(${q(n,{rem:!0,delimeter:", "})})`}static translateX(n){return`translateX(${q([n],{rem:!0})})`}static translateY(n){return`translateY(${q([n],{rem:!0})})`}static translateZ(...n){return`translateZ(${q(n,{rem:!0,delimeter:", "})})`}static url(n){return`url(${q([n],{quote:!0})})`}static var(n,C=""){n="--"+A(n);let $=C?", "+q([C],{rem:!0,delimeter:", "}):"";return`var(${q([n],{rem:!0})}${$})`}}var NC={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class HC{path;name;prefix;exportMap;_imported=new Set;save;constructor({__filename:n,name:C,prefix:$,shweets:f=[],exportMap:E,webkitKeyframes:Q,unit:T="rem"}){this.path=n,this.name=C||bC(n),this.prefix=$??"",this.exportMap=E;let G=Z(f)?f:[f];FC.call(this,this.prefix,G,Q,E,T);let R=this;Object.assign(this,{get shweet(){return R}}),this.save=({dir:O,mapDir:S=[],mapName:W="index",minify:L=!0,shaker:H=[],include:N=[]}={})=>{let X=M(E)?E:!!S,Y=new Hn(this,H,N).load(X),V=Z(O)?O:[O],Qn=L?XC(Y.css):Y.css;V.forEach((i)=>{if(!i)return;let r=i.endsWith("/")?"":"/",l=i+r+this.name+".css";En(i+r),fn(l),on(l,Qn||"/* --------------*/")});let tn=Z(S)?S:[S];for(let i of tn){let r=i.endsWith("/")?"":"/",l=S+r+W+".js";En(S+r),fn(l),YC(l,Y.CID)}return this}}get imported(){return[...this._imported]}}var XC=(n)=>{return n.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").replace(/\s*([>~+])\s*/g,"$1").trim()},YC=(n,C)=>{let $={};C.forEach((E)=>{U(E).forEach(([Q,T])=>{if(!$[Q])$[Q]=[T];else $[Q].push(T)})});let f=[...C.entries()].map(([E,Q])=>{return`${E}="${[...Q].join(" ")}"`}).sort((E,Q)=>E.localeCompare(Q,void 0,{numeric:!0}));on(n,f.length?`export const ${f.join()};`:"export {}");return};function FC(n,C,$=!1,f,E){let Q={d:new z("",n,f,E),i:new z("#",n,f,E),c:new z(".",n,f,E),kf:new p(n,$,E),at:new s,font:new a};C.forEach((T)=>{this._imported.add(T.path),T._imported.forEach((G)=>{this._imported.add(G)}),D(Q).forEach((G)=>{Q[G].load(T[G])})}),D(Q).forEach((T)=>{Q[T]=Q[T].css}),b(this,Q)}function bC(n){return n.split("/").slice(-1)[0].split(".")[0]}export{NC as v,UC as supports,_n as ps,F as media,g as med,d as log,bC as fileName,un as f,On as __,qC as Vars,JC as Var,q as Value,HC as Shweet,Cn as Medyas};
|