effcss 2.1.2 → 2.2.0

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
- * EffCSS v2.1.2
2
+ * EffCSS v2.2.0
3
3
  * {@link https://gitverse.ru/msabitov/effcss}
4
4
  * Copyright (c) Marat Sabitov
5
5
  * @license Apache 2.0
6
6
  */
7
- const t=Object.entries,e=(e,s,i)=>t(e).reduce(s,i),s=t=>"object"==typeof t,i=t=>`{${t}}`,r=Object.assign.bind(Object),n=(t,e)=>`${t}:${e};`,o=(t,e)=>["@property",t,i(n("syntax",e.syn||'"*"')+n("inherits",e.inh||!1)+(e.ini?n("initial-value",e.ini):""))].join(" "),l=t=>`var(${t})`,a=({l:t,c:e,h:s,a:i=1})=>`oklch(${t} ${e} ${s} / ${i})`,c=["l","c","h","a"];class h{constructor(h){this._outerKeys={},this._outerSets={},this._parseSelector=t=>{let e,s,i,r,n;return[e,n]=t.split(":"),e.startsWith("__")?[s,i,r]=e.slice(2).split("_"):[s,i,r]=e.split("_"),{e:s,m:i,mv:r,s:n}},this._prepareVarName=(...t)=>this._resolver.varName(...t),this._prepareKeyframesName=(...t)=>this._resolver.kfName(...t),this.compile=(h,f)=>{const{_:p,kf:m,k:b={},v:u={},c:d}=f,g=this._resolver.selector.bind(this),_=this._parseSelector;let y=r({},d),v=r({},b),$=r({_:{}},u),x="";if(p)for(let t in p){const e=p[t];if("c"===e.typ){const s={};c.forEach((i=>{const r=t+i,n=this._prepareVarName(h,r);s[i]=n,v["_"+r]=s[i],x+=o(n,e)})),$._[t]=a({l:l(s.l),c:l(s.c),h:l(s.h),a:l(s.a)}),e.all&&(y["_"+t+"l"]=`&lig=>${this._prepareVarName(h,t+"l")}:{1}`,y["_"+t+"c"]=`&chr=>${this._prepareVarName(h,t+"c")}:{1}`,y["_"+t+"h"]=`&hue=>${this._prepareVarName(h,t+"h")}:{1}`,y["_"+t+"a"]=`&alp=>${this._prepareVarName(h,t+"a")}:{1}`)}else{const s=this._prepareVarName(h,t);v["_"+t]=s,$._[t]=l(s),x+=o(s,e)}}const w=t=>v[t]||this._outerKeys[t],j=t=>{var e;return $[t]||this._outerSets[t]||(null===(e=this._outerSets)||void 0===e?void 0:e.root[t])},k=t=>t.replaceAll(/\{(.+?)\}/g,((t,e)=>{const[s,i]=e.split(".");if(i){const t=j(s);return""+((null==t?void 0:t[i])||(null==t?void 0:t.def)||"")}return""+(w(s)||"")})),S=e=>{const s=e.split("?");let i;for(let e in s){const r=s[e],[n,o]=r.split("=>"),l=n.match(/(\w+)(\[[\w,]+\])?/);if(!l)continue;const[a,c,h]=l,f=j(c);if(!f)continue;i=f;let p=t(i);const m=null==h?void 0:h.slice(1,-1).split(",");if(m){const t=new Set(m);p=p.filter((([e,s])=>t.has(e)))}if(o){let[t,e]=o.split("|");void 0===e&&(e=t,t=""),p=p.map((([s,i])=>[t.replace("{0}",s)||s,k(e.replaceAll("{1}",""+i))]))}(m||o)&&(i=Object.fromEntries(p));break}return i};function A(t,r,o){var l,a,c,f;let p=""+t;if((null===(l=null==t?void 0:t.startsWith)||void 0===l?void 0:l.call(t,"$"))&&(p=""+w(t.slice(1)),!p))return"";if(Array.isArray(r))return A(p,Object.assign({},...r.map((t=>"string"==typeof t?S(t):t))),o);if(null==r)return"";if(s(r)){const t=!o||(null===(a=o.startsWith)||void 0===a?void 0:a.call(o,"@"))||p.startsWith("&")||p.startsWith("@")?"":"&";if(p.startsWith("_")){const{e:n,m:o,mv:l}=_(p);return o&&"string"!=typeof l?e(r,((r,[l,a])=>{let c;return c=s(a)?e(a,((t,e)=>t+A(...e,p)),""):a+";",r+t+g({b:h,e:n,m:o,mv:l})+i(c)}),""):t+g({b:h,e:n,m:o,mv:l})+i(e(r,((t,e)=>t+A(...e,p)),""))}return t+p+i(e(r,((t,e)=>t+A(...e,p)),""))}{let t=""+r;return(null===(c=null==t?void 0:t.startsWith)||void 0===c?void 0:c.call(t,"&"))?A(p,S(t.slice(1)),o):(null===(f=null==t?void 0:t.includes)||void 0===f?void 0:f.call(t,"{"))?A(p,k(t),o):n(p.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),t)}}let O="";if(m)for(let t in m){const s=m[t],r=this._prepareKeyframesName(h,t);v["kf_"+t]=r,O+=`@keyframes ${r} `+i(e(s,((t,[s,r])=>t+s+(String(+s)===s?"%":"")+i(e(r,((t,e)=>t+A(...e)),""))),""))}return x+O+e(y,((t,e)=>t+A(...e)),"")};const{sets:f,keys:p,resolver:m}=h;this._resolver=m,p&&(this._outerKeys=p),f&&(this._outerSets=f)}}class f{constructor(){this._stylesheets={},this._rules={},this._styleSheetsArray=[],this._listeners=[],this.get=t=>this._stylesheets[t],this.has=t=>!!t&&!!this.get(t),this.getAll=()=>this._stylesheets,this.add=(t,e)=>{if(!this._stylesheets[t])return this._stylesheets[t]=e,this._styleSheetsArray.push(e),this.notify(),!0},this.status=t=>{const e=t&&this._stylesheets[t];return!!e&&-1!==this._styleSheetsArray.findIndex((t=>t===e))},this.on=t=>{const e=(Array.isArray(t)?t:[t]).reduce(((t,e)=>{const s=e&&this._stylesheets[e];return!(!s||this.status(e))&&(this._styleSheetsArray.push(s),t)}),!0);return this.notify(),e},this.off=t=>{const e=(Array.isArray(t)?t:[t]).reduce(((t,e)=>{const s=e&&this._stylesheets[e];if(s&&this.status(e)){const e=this._styleSheetsArray.findIndex((t=>t===s));return this._styleSheetsArray.splice(e,1),t}return!1}),!0);return this.notify(),e},this.remove=t=>{const e=this.get(t);if(!e)return;const s=this._styleSheetsArray.findIndex((t=>t===e));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[t],delete this._rules[t]),this.notify(),!0},this.pack=(t,e)=>{const s=new CSSStyleSheet;if(s.replaceSync(e),s.cssRules.length)return this.add(t,s);console.log(`StyleSheet '${t}' is empty`)},this.replace=(t,e)=>{const s=this._stylesheets[t];if(s)return s.replaceSync(e),this.notify(),!0},this.apply=t=>{t.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=t=>{this._listeners.findIndex((e=>e.deref()===t))>=0||(this._listeners.push(new WeakRef(t)),this.apply(t))},this.unregisterNode=t=>{const e=this._listeners.findIndex((e=>e.deref()===t));e>=0&&this._listeners.splice(e,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((t,e)=>{const s=e.deref();return s&&(this.apply(s),t.push(e)),t}),[])}}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this.notify(),!0}}const p=(...t)=>t.join(","),m="rem",b="-",u=" ",d="-x",g="-y",_="down",y="horizontal",v="vertical",$="text",x=$+b,w="font",j=w+b,k="column",S=k+b,A="max-",O="min-",z="content",N=z+"s",C="-items",E="self",K="inline",W="block",V="size",P="-radius",I="direction",q="outline",M="style",R=b+M,T="end",B=b+T,J="start",L=b+J,G="center",H="word",Z="line",D="break",F=D+b,Q="wrap",U="no"+Q,X="rule",Y="object",tt="top",et=b+tt,st="left",it=b+st,rt="bottom",nt=b+rt,ot="right",lt=b+ot,at="width",ct=b+at,ht="color",ft=b+ht,pt="overflow",mt="align",bt="type",ut="transform",dt="all",gt="height",_t="normal",yt="opacity",vt="visibility",$t="scale",xt="box",wt=b+xt,jt="border",kt="position",St="none",At="auto",Ot="fill",zt="stroke",Nt="reverse",Ct="space",Et="fixed",Kt="origin",Wt="alpha",Vt="luminance",Pt="clip",It="zoom",qt="scroll",Mt="padding",Rt="margin",Tt="both",Bt="mode",Jt="repeat",Lt="light",Gt="linear",Ht="hidden",Zt="shadow",Dt="behavior",Ft="orientation",Qt="name",Ut="after",Xt="before",Yt="image",te="list"+R,ee=te+b+bt,se=te+b+kt,ie=te+b+Yt,re=ht+"-scheme",ne=jt+nt,oe=jt+it,le=jt+lt,ae=jt+et,ce=jt+b+W,he=jt+b+K,fe=ce+L,pe=ce+B,me=he+L,be=he+B,ue=jt+ct,de=ne+ct,ge=oe+ct,_e=le+ct,ye=ae+ct,ve=ce+ct,$e=he+ct,xe=fe+ct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n=" proximity",jn="x"+wn,kn="y"+wn,Sn=W+wn,An=K+wn,On=Tt+wn,zn=x+"decoration",Nn=zn+b+ht,Cn=zn+b+"thickness",En=zn+b+M,Kn=zn+b+Z,Wn="white-"+Ct,Vn=x+ut,Pn=x+mt,In=v+b+mt,qn=x+pt,Mn=x+Ft,Rn=x+"rendering",Tn=x+Zt,Bn=x+"emphasis",Jn=Bn+ft,Ln=Bn+b+kt,Gn=Bn+R,Hn=x+Q,Zn=Hn+b+Bt,Dn=Hn+R,Fn=H+b+D,Qn=j+V,Un=j+"weight",Xn=j+"family",Yn=j+M,to=j+"synthesis",eo=j+"variant",so=eo+b+Yi+"s",io=eo+"-caps",ro=eo+"-numeric",no=eo+b+kt,oo=eo+"-east-asian",lo=eo+"-ligatures",ao=eo+"-settings",co="writing-"+Bt,ho=Z+b+gt,fo=Z+b+D,po=Z+"-through",mo="over"+Z,bo="under"+Z,uo="pre",go=uo+b+Z,_o=uo+b+Q,yo=F+Ct+"s",vo=F+dt,$o=F+H,xo=F+Ut,wo=F+Xt,jo=y+"-tb",ko=v+"-lr",So=v+"-rl",Ao="keep-"+dt,Oo="pointer",zo="pan",No=zo+d,Co=zo+it,Eo=zo+lt,Ko=zo+g,Wo=zo+b+_,Vo="pinch-"+It,Po=v+b+$,Io="grab",qo=Io+"bing",Mo="resize",Ro="col-"+Mo,To="row-"+Mo,Bo="n-"+Mo,Jo="e-"+Mo,Lo="s-"+Mo,Go="w-"+Mo,Ho="ne-"+Mo,Zo="ew-"+Mo,Do="nw-"+Mo,Fo="se-"+Mo,Qo="sw-"+Mo,Uo="ns-"+Mo,Xo="nesw-"+Mo,Yo="nwse-"+Mo,tl=It+b+"in",el=It+b+"out",sl=Oo+"-events",il=qt+b+kt,rl="caret"+ft,nl="accent"+ft,ol="filter",ll="backdrop-"+ol,al="background",cl=al+b,hl=cl+Yt,fl=cl+ht,pl=cl+Pt,ml=cl+Kt,bl=cl+kt,ul=bl+d,dl=bl+g,gl=cl+Jt,_l=cl+V,yl=cl+"blend-"+Bt,vl=cl+"attachment",$l="gradient",xl=Gt+b+$l,wl="radial-"+$l,jl="conic-"+$l,kl=z+b+vt,Sl=zt+ct,Al=zt+b+yt,Ol=Ot+b+X,zl=Ot+b+yt,Nl=ht+"-dodge",Cl=ht+"-burn",El="hard-"+Lt,Kl="soft-"+Lt,Wl=ht+"-mix",Vl="revert",Pl=Vl+"-layer",Il="container",ql=Il+b+bt,Ml=Il+b+Qt,Rl=":first-",Tl=":last-",Bl=":only-",Jl="child",Ll="of-type",Gl=":nth-child",Hl="prefers-",Zl=Hl+re,Dl="@media",Fl=ht+"-gamut",Ql=Hl+"contrast",Ul="scripting",Xl="::"+Ut,Yl="::"+Xt,ta="sideways",ea=ta+lt,sa={0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},ia=[...Array(12).keys()].reduce(((t,e)=>(t[e]=e,t)),{}),ra={u:{ini:"initial",inh:"inherit",u:"unset",r:Vl,rl:Pl},rep:{rx:vs,ry:$s,r:Jt,s:Ct,ro:"round",nr:xs},cnt:{n:_t,s:V,is:Mr},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},cu:{c:"currentColor",t:"transparent"},ff:{def:"Roboto, sans-serif",h:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},fst:{i:"italic",n:_t,o:"oblique"},lsp:{no:0,s:.05,m:.1,l:.2},ws:{n:_t,nw:U,p:uo,pl:go,pw:_o,bs:yo},wb:{n:_t,ba:vo,ka:Ao,bw:$o},wm:{htb:jo,vlr:ko,vrl:So},hyp:{no:St,m:"manual",a:At},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:po,o:mo,u:bo},tor:{m:"mixed",u:"upright",sr:ea,s:ta,ugo:"use-glyph-"+Ft},ta:{l:st,c:G,j:Ws,r:ot,s:J,e:T},fr:sa,coef:ia,rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},usz:{a:"auto",no:0,min:zr,max:Nr,fit:Or},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},csz:{cv:"cover",cn:"contain",a:At,f:Ot,sd:fs},box:{c:us,p:ms,b:bs,f:ds,s:gs,v:_s,nc:ys,t:$},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},z:{s:.8,m:1,l:1.2},pers:{s:10,m:15,l:20},ali:{s:J,e:T,c:G,st:"stretch",sb:vi,sa:$i,se:xi,b:"baseline",fs:yi,fe:_i,no:St},dis:{g:Cs,ig:wi,f:Vs,if:qs,b:W,i:K},ca:ia,co:ia,ra:ia,ro:ia,fd:{r:Es,rr:ui,c:k,cr:di},fb:sa,fo:ia,fg:ia,fs:ia,fw:{w:Q,nw:U,wr:gi},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lb:{a:At,any:"anywhere",n:_t,l:"loose",s:"strict"},ls:{no:St,dt:"dotted",i:gr,h:Ht,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},ov:{h:Ht,s:qt,a:At,c:Pt,e:"ellipsis"},v:{h:Ht,v:"visible",c:"collapse",a:At},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},zi:{min:-1,1:1,2:2,3:3,4:4,5:5,max:10},ttf:{l:Gt,e:sr,ei:ir,eo:nr,eio:rr,ss:lr,se:ar},tp:{col:p(ht,fl,Ve,Nn),icon:p(Ot,zt),flt:p(ol,ll),ind:p(Mt,Rt),sz:p(at,Er,Kr,gt,Wr,Vr),esz:p(qr,Pr,Ir,Tr,Mr,Rr),o:yt,b:jt,f:Vs,g:Cs,pos:p(kt,st,tt,rt,ot),tf:p(ut,cr,$t,hr,"skew",fr)},tb:{ad:"allow-discrete",n:_t},aic:{inf:"infinite",1:1,2:2,3:3,4:4,5:5},wc:{a:At,sp:il,c:N,tf:ut,o:yt,i:gr,tfi:p(ut,gr)},afm:{no:St,f:"forwards",b:"backwards",both:Tt},adir:{r:Nt,a:Yi,ar:tr},aps:{r:"running",p:"paused"},pe:{a:At,no:St,all:dt,f:Ot,s:zt},cur:{h:"help",a:At,p:Oo,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:$,vt:Po,cp:"copy",m:"move",g:Io,gng:qo,cr:Ro,rr:To,nr:Bo,er:Jo,sr:Lo,wr:Go,ner:Ho,ewr:Zo,nwr:Do,ser:Fo,swr:Qo,nsr:Uo,neswr:Xo,nwser:Yo,zi:tl,zo:el},res:{n:St,v:v,h:y,b:Tt},toa:{a:At,no:St,px:No,pl:Co,pr:Eo,py:Ko,pu:"pan-up",pd:Wo,pz:Vo,m:"manipulation"},us:{n:St,t:$,all:dt,a:At},sb:{a:At,s:"smooth"},sss:{n:_t,a:"always"},sst:{n:St,x:"x",y:"y",b:W,i:K,both:Tt,xm:_n,ym:yn,bm:vn,im:$n,bothm:xn,xp:jn,yp:kn,bp:Sn,ip:An,bothp:On},pos:{r:"relative",a:"absolute",f:Et,s:"static"},posv:{b:rt,t:tt,c:G,l:st,r:ot,lt:mr,rt:br,lb:ur,rb:dr},cf:{a:At,b:"balance"},cs:{no:St,all:dt},mc:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mt:{a:Wt,l:Vt},mm:{a:Wt,l:Vt,m:"match-source"},bgbm:{n:_t,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Lt+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:ht,lum:"luminosity",cd:Nl,cb:Cl,hl:El,sl:Kl},bga:{s:qt,f:Et,l:"local"}},na={a:Pi,an:qi,adur:Bi,adel:Ji,aps:Li,afm:Gi,adir:Ri,aic:Ti,atf:Mi,tn:Hi,tdur:Ui,tdel:Xi,tb:Di,tp:Fi,ttf:Qi,ba:xo,bb:wo,bor:jt,bw:ue,br:Se,bs:He,bls:Ze,brs:De,bts:Fe,bbs:Qe,bbls:Ue,bis:Xe,bbss:Ye,bbes:ts,biss:es,bies:ss,brw:_e,blw:ge,btw:ye,bbw:de,btlr:ze,btrr:Ne,bbrr:Oe,bblr:Ae,biw:$e,bblw:ve,bbew:we,bbsw:xe,bisw:je,biew:ke,besr:We,beer:Ke,bssr:Ee,bser:Ce,bc:Ve,blc:Pe,brc:Ie,btc:qe,bbc:Me,bblc:Re,bic:Te,bbsc:Be,bbec:Je,bisc:Le,biec:Ge,bg:al,bgi:hl,bgc:fl,c:ht,cmix:Wl,csh:re,acc:nl,ctc:rl,st:zt,stw:Sl,sto:Al,fi:Ot,fir:Ol,fio:zl,flt:ol,bf:ll,dis:"display",g:Cs,jc:Ls,ji:Gs,ai:Hs,pi:Is,ac:Zs,gt:Fs,gtr:Qs,gtc:Us,gp:Ks,rg:Xs,cg:Ys,as:Ds,js:ti,gr:ei,gre:si,grs:ii,gc:ri,gce:ni,gcs:oi,fx:Vs,fxd:Bs,fxw:Js,fxs:Ts,fxg:Rs,fxb:Ms,ord:"order",dir:I,m:Rt,ml:As,mr:zs,mt:Os,mb:Ns,p:Mt,pl:ws,pr:ks,pt:js,pb:Ss,out:q,oc:is,ow:rs,os:ns,oo:os,l:st,r:ot,t:tt,b:rt,ins:gr,ib:xr,ibe:wr,ibs:jr,ii:kr,iie:Sr,iis:Ar,wc:"will-change",app:"appearance",pe:sl,cur:"cursor",toa:"touch-action",us:"user-select",res:Mo,lis:te,lisp:se,lisi:ie,list:ee,sb:Br,ssa:mn,sss:bn,sst:un,sm:Jr,sml:Hr,smr:Zr,smt:Lr,smb:Gr,sp:tn,spl:rn,spr:nn,spt:en,spb:sn,smbl:Dr,smbe:Fr,smbs:Qr,smi:Ur,smie:Xr,smis:Yr,spbl:on,spbe:ln,spbs:an,spi:cn,spie:hn,spis:fn,osb:dn,ar:"aspect-ratio",w:at,maxw:Er,minw:Kr,h:gt,minh:Vr,maxh:Wr,bl:Pr,maxb:Ir,minb:qr,i:Mr,mini:Tr,maxi:Rr,per:fr,pero:pr,rot:hr,sc:$t,tf:ut,tfb:yr,tfo:vr,tfs:$r,tr:cr,z:It,lts:"letter-spacing",lh:ho,lb:fo,f:w,fst:Yn,ff:Xn,fwg:Un,fsz:Qn,fsn:to,fv:eo,fva:so,fvc:io,fvea:oo,fvl:lo,fvn:ro,fvs:ao,fvp:no,tt:Vn,td:zn,tdt:Cn,tds:En,tdl:Kn,ta:Pn,to:qn,trg:Rn,ts:Tn,te:Bn,tep:Ln,tec:Jn,tes:Gn,tw:Hn,twm:Zn,tws:Dn,va:In,ws:Wn,tor:Mn,wb:Fn,wm:co,hyp:"hyphens",bsz:Cr,bsh:ps,pos:kt,cf:ai,crs:fi,crc:hi,crw:pi,cs:mi,cw:bi,cc:li,bgcl:pl,bgp:bl,bgpx:ul,bgpy:dl,bgbm:yl,bgo:ml,bgr:gl,bga:vl,bgsz:_l,mcl:ki,mcm:Si,mm:Ai,mo:Oi,mp:zi,mre:Ni,msz:Ci,mtp:Ei,obf:cs,obp:hs,con:z,ov:pt,ovx:ls,ovy:as,v:vt,cv:kl,o:yt,zi:"z-index",lgr:xl,rgr:wl,cgr:jl,inf:"infinite",cnt:ql,cnn:Ml,$:":root",$u:"*",$h:":hover",$f:":focus",$fv:":focus-visible",$a:":active",$v:":visited",$val:":valid",$inv:":invalid",$e:":empty",$d:":disabled",$r:":required",$o:":optional",$m:":modal",$l:":link",$fc:Rl+Jl,$lc:Tl+Jl,$oc:Bl+Jl,$1:Gl+"(odd)",$2:Gl+"(even)",$ft:Rl+Ll,$lt:Tl+Ll,$ot:Bl+Ll,$bef:Yl,$aft:Xl,$bd:"::backdrop",$ba:`&${Yl},&${Xl}`,$pl:":placeholder",$light:Dl+`(${Zl}: light)`,$dark:Dl+`(${Zl}: dark)`,$red_m:Dl+"(prefers-reduced-motion: reduce)",$ori_l:Dl+`(${Ft}: landscape)`,$ori_p:Dl+`(${Ft}: portrait)`,$gam_srgb:Dl+`(${Fl}: srgb)`,$gam_p3:Dl+`(${Fl}: p3)`,$gam_rec:Dl+`(${Fl}: rec2020)`,$con_no:Dl+`(${Ql}: no-preference)`,$con_m:Dl+`(${Ql}: more)`,$con_l:Dl+`(${Ql}: less)`,$con_c:Dl+`(${Ql}: custom)`,$scr_no:Dl+`(${Ul}: none)`,$scr_ini:Dl+`(${Ul}: initial-only)`,$scr_en:Dl+`(${Ul}: enabled)`},oa={xs:30+m,sm:40+m,md:48+m,lg:64+m,xl:80+m},la={xs:10+m,sm:20+m,md:30+m,lg:40+m,xl:48+m},aa={$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}",$$u:{$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}"}},ca={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}}},ha="{1}rem",fa="{1}deg",pa="span {1}",ma={fb:"calc(100% * {1})",ra:pa,ca:pa,sz:ha,sp:ha,rad:ha,th:ha,bp:ha,cbp:ha,fsz:ha,lsp:ha,tr:ha,pers:ha,sk:fa,rot:fa,time:"{1}ms"},ba="style-provider",ua=t=>"object"==typeof t;class da{constructor(t){this._counter=0,this._keys=new Set,this._configs=new Map,this.use=(t,e)=>{const s=this._configs.get(t);if(s)return s;const i=e||this._prefix+this._counter.toString(36);return this._keys.add(i),this._configs.set(t,i),this._counter++,i},this.mutate=(t,e)=>Object.assign(this.getConfigs()[t],e),this.getKey=t=>this._configs.get(t),this.getKeys=()=>[...this._keys],this.getConfigs=()=>Object.fromEntries(this._configs.entries().map((([t,e])=>[e,t]))),this._prefix=(null==t?void 0:t.prefix)||"eff",t.initContent&&Object.entries(t.initContent).forEach((([t,e])=>this.use(e,t))),t.hydrate&&(this._counter=0)}}const ga=globalThis.document,_a=t=>"application/json"===(null==t?void 0:t.getAttribute("type"));!function(t={}){const{name:e=ba,styles:s={},settings:i={}}=t,r=globalThis.customElements;!(null==r?void 0:r.get(e))&&r.define(e,class extends HTMLElement{get prefix(){return this.getAttribute("prefix")||"eff"}get mode(){return this.getAttribute("mode")||"a"}get isolated(){return null!==this.getAttribute("isolated")}get hydrate(){return null!==this.getAttribute("hydrate")}get eventName(){return this.getAttribute("eventname")||"effcsschanges"}get _settingsSelector(){return"#"+(this.getAttribute("settingsid")||"effcss")}get _initSelector(){return"."+(this.getAttribute("initcls")||"effcss_init")}get settingsContent(){const t=null==ga?void 0:ga.querySelector(this._settingsSelector);let e;return e=_a(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):t?null==t?void 0:t.effcss:i,e||{}}get initContent(){const t=ga.querySelectorAll(this._initSelector);let e=s||{};return t.forEach((t=>{let s;s=_a(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):null==t?void 0:t.effcss,e=Object.assign(Object.assign({},e),s||{})})),e}get configs(){return this._collector.getConfigs()}constructor(){super(),this._setState=()=>{const{units:t,keys:s,sets:i,mediaBP:r=oa,containerBP:n=la,rootStyle:o=aa,themes:l=ca}=this.settingsContent,a=Object.assign(Object.assign({},ma),t||{}),c=Object.assign(Object.assign({},na),s||{}),h=Object.assign({},ra);i&&Object.entries(i).forEach((([t,e])=>h[t]=Object.assign({},e)));const f=Object.entries(l);if(a)for(const t in a)h[t]=h[t]&&Object.fromEntries(Object.entries(h[t]).map((([e,s])=>[e,a[t].replace("{1}",""+s)])));r&&Object.entries(r).forEach((([t,e])=>{c[`min_${t}_`]=`@media (min-width:${e})`,c[`max_${t}_`]=`@media (max-width:${e})`})),n&&Object.entries(n).forEach((([t,e])=>{c[`cmin_${t}_`]=`@container (min-width:${e})`,c[`cmax_${t}_`]=`@container (max-width:${e})`}));const p={},m={};l&&h&&f.forEach((([t,e])=>{const s={};Object.entries(e).forEach((([t,e])=>{Object.entries(e).forEach((([e,i])=>{var r;const n=this._resolver.varName(this.prefix,t,e);a[t]?s[n]=a[t].replace("{1}",""+i):s[n]=i,p[n]||(p[n]=(null===(r=h[t])||void 0===r?void 0:r[e])||"unset",h[t]||(h[t]={}),h[t][e]=`var(${n})`)}))})),m[t]=s})),this._dict={sets:h,keys:c},this._mainConfig={c:Object.assign(Object.assign({[e]:{display:"contents"},_theme:m,$$:Object.assign(p,o)},(null==m?void 0:m.dark)?{$$dark:{$$:m.dark}}:{}),(null==m?void 0:m.light)?{$$light:{$$:m.light}}:{})}},this.use=(t,e)=>{let s=this._collector.use(t,e);return this._manager&&!this._manager.has(e)&&this._manager.pack(s,this.css(t,s)),this.resolve(s)},this.alter=(t,e)=>{let s;if(s="string"==typeof t?t:this._collector.getKey(t),s){const t=this._collector.mutate(s,e);this._manager.replace(s,this.css(t,s))}return this.resolve(s)},this.usePublic=t=>Object.fromEntries(Object.entries(t).map((([t,e])=>[t,this.use(e,t)]))),this.usePrivate=t=>t.map((t=>this.use(t))),this.css=(t,e)=>{var s;return null===(s=this._processor)||void 0===s?void 0:s.compile(e,t)},this.status=t=>{let e;return e="string"==typeof t?t:this._collector.getKey(t),!!e&&this._manager.status(e)},this.on=t=>{const e=(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t?t:this._collector.getKey(t)));return this._manager.on(e)},this.off=t=>{const e=(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t?t:this._collector.getKey(t)));return this._manager.off(e)},this.get=(t=this._mainConfig)=>{let e;return e="object"==typeof t?this._collector.getKey(t):t,this._manager.get(e)},this.getMany=(t=this._collector.getKeys())=>t.map((t=>this.get(t))),this.resolve=t=>this._resolver.attr(t||this._collector.getKey(this._mainConfig)),this.subscribe=t=>this._manager.registerNode(t),this.unsubscribe=t=>this._manager.unregisterNode(t)}connectedCallback(){this._resolver=(t=>{const{mode:e}=t,s=t=>Object.entries(t).reduce(((t,[e,s])=>(void 0!==s&&t.push(e+(s?"-"+s:"")),t)),[]).join(" "),i=(t,e)=>Object.defineProperties({[t]:e},{k:{value:t},v:{value:e}}),r=(...t)=>"--"+t.join("-"),n=(...t)=>t.join("-");return"c"===e?{selector:({b:t,e:e,m:s,mv:i})=>`.${t}${(e?"__"+e:"")+(s?"_"+s:"")+(s&&i?"_"+i:"")}`,attr:t=>e=>r=>{let n=r||"";ua(n)&&(n=s(n));const o=t+(e?"__"+e:"");return n=o+(n?" "+(null==n?void 0:n.split(" ").map((t=>o+"_"+t.split("-").join("_"))).join(" ")):""),i("class",n)},varName:r,kfName:n}:{selector:({b:t,e:e,m:s,mv:i})=>`[data-${t}${e?"-"+e:""}${s?'~="'+(s||"")+(i?"-"+i:"")+'"':""}]`,attr:t=>e=>r=>{const n=`data-${t}${e?"-"+e:""}`;let o=r||"";return ua(o)&&(o=s(o)),i(n,o)},varName:r,kfName:n}})({mode:this.mode}),this._setState();const t=this.initContent,e=this.prefix;var s;this._collector=(s={hydrate:this.hydrate,prefix:e,initContent:t},new da(s)),this._processor=function(t){return new h(t)}({sets:this._dict.sets,keys:this._dict.keys,resolver:this._resolver}),this._manager=new f;const i=t=>this.dispatchEvent(new CustomEvent(this.eventName,{detail:{styles:t},bubbles:!0}));this._notifier={set adoptedStyleSheets(t){i(t)}},this.subscribe(this._notifier),this.use(this._mainConfig),this.usePublic(t),ga&&!this.isolated&&this._manager.registerNode(ga)}})}();
7
+ const t=Object.entries,e=(e,s,i)=>t(e).reduce(s,i),s=t=>"object"==typeof t,i=t=>`{${t}}`,r=Object.assign.bind(Object),n=(t,e)=>`${t}:${e};`,o=(t,e)=>["@property",t,i(n("syntax",e.syn||'"*"')+n("inherits",e.inh||!1)+(e.ini?n("initial-value",e.ini):""))].join(" "),l=t=>`var(${t})`,a=({l:t,c:e,h:s,a:i=1})=>`oklch(${t} ${e} ${s} / ${i})`,c=["l","c","h","a"];class h{constructor(h){this._outerKeys={},this._outerSets={},this._parseSelector=t=>{let e,s,i,r,n;return[e,n]=t.split(":"),e.startsWith("__")?[s,i,r]=e.slice(2).split("_"):[s,i,r]=e.split("_"),{e:s,m:i,mv:r,s:n}},this._prepareVarName=(...t)=>this._resolver.varName(...t),this._prepareKeyframesName=(...t)=>this._resolver.kfName(...t),this.compile=(h,p)=>{const{_:f,kf:m,k:b={},v:u={},c:d}=p,g=this._resolver.selector.bind(this),_=this._parseSelector;let y=r({},d),v=r({},b),$=r({_:{}},u),x="";if(f)for(let t in f){const e=f[t];if("c"===e.typ){const s={};c.forEach((i=>{const r=t+i,n=this._prepareVarName(h,r);s[i]=n,v["_"+r]=s[i],x+=o(n,e)})),$._[t]=a({l:l(s.l),c:l(s.c),h:l(s.h),a:l(s.a)}),e.all&&(y["_"+t+"l"]=`&lig=>${this._prepareVarName(h,t+"l")}:{1}`,y["_"+t+"c"]=`&chr=>${this._prepareVarName(h,t+"c")}:{1}`,y["_"+t+"h"]=`&hue=>${this._prepareVarName(h,t+"h")}:{1}`,y["_"+t+"a"]=`&alp=>${this._prepareVarName(h,t+"a")}:{1}`)}else{const s=this._prepareVarName(h,t);v["_"+t]=s,$._[t]=l(s),x+=o(s,e)}}const w=t=>v[t]||this._outerKeys[t],j=t=>{var e;return $[t]||this._outerSets[t]||(null===(e=this._outerSets)||void 0===e?void 0:e.root[t])},k=t=>t.replaceAll(/\{(.+?)\}/g,((t,e)=>{const[s,i]=e.split(".");if(i){const t=j(s);return""+((null==t?void 0:t[i])||(null==t?void 0:t.def)||"")}return""+(w(s)||"")})),S=e=>{const s=e.split("?");let i;for(let e in s){const r=s[e],[n,o]=r.split("=>"),l=n.match(/(\w+)(\[[\w,]+\])?/);if(!l)continue;const[a,c,h]=l,p=j(c);if(!p)continue;i=p;let f=t(i);const m=null==h?void 0:h.slice(1,-1).split(",");if(m){const t=new Set(m);f=f.filter((([e,s])=>t.has(e)))}if(o){let[t,e]=o.split("|");void 0===e&&(e=t,t=""),f=f.map((([s,i])=>[t.replace("{0}",s)||s,k(e.replaceAll("{1}",""+i))]))}(m||o)&&(i=Object.fromEntries(f));break}return i};function O(t,r,o){var l,a,c,p;let f=""+t;if((null===(l=null==t?void 0:t.startsWith)||void 0===l?void 0:l.call(t,"$"))&&(f=""+w(t.slice(1)),!f))return"";if(Array.isArray(r))return O(f,Object.assign({},...r.map((t=>"string"==typeof t?S(t):t))),o);if(null==r)return"";if(s(r)){const t=!o||(null===(a=o.startsWith)||void 0===a?void 0:a.call(o,"@"))||f.startsWith("&")||f.startsWith("@")?"":"&";if(f.startsWith("_")){const{e:n,m:o,mv:l}=_(f);return o&&"string"!=typeof l?e(r,((r,[l,a])=>{let c;return c=s(a)?e(a,((t,e)=>t+O(...e,f)),""):a+";",r+t+g({b:h,e:n,m:o,mv:l})+i(c)}),""):t+g({b:h,e:n,m:o,mv:l})+i(e(r,((t,e)=>t+O(...e,f)),""))}return t+f+i(e(r,((t,e)=>t+O(...e,f)),""))}{let t=""+r;return(null===(c=null==t?void 0:t.startsWith)||void 0===c?void 0:c.call(t,"&"))?O(f,S(t.slice(1)),o):(null===(p=null==t?void 0:t.includes)||void 0===p?void 0:p.call(t,"{"))?O(f,k(t),o):n(f.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),t)}}let A="";if(m)for(let t in m){const s=m[t],r=this._prepareKeyframesName(h,t);v["kf_"+t]=r,A+=`@keyframes ${r} `+i(e(s,((t,[s,r])=>t+s+(String(+s)===s?"%":"")+i(e(r,((t,e)=>t+O(...e)),""))),""))}return x+A+e(y,((t,e)=>t+O(...e)),"")};const{sets:p,keys:f,resolver:m}=h;this._resolver=m,f&&(this._outerKeys=f),p&&(this._outerSets=p)}}const p=t=>Array.isArray(t)?t:[t];class f{constructor(){this._stylesheets={},this._rules={},this._styleSheetsArray=[],this._listeners=[],this.getIndex=t=>this._styleSheetsArray.findIndex((e=>e===t)),this.get=t=>this._stylesheets[t],this.has=t=>!!t&&!!this.get(t),this.getAll=()=>this._stylesheets,this.add=(t,e)=>{if(!this._stylesheets[t])return this._stylesheets[t]=e,this._styleSheetsArray.push(e),this.notify(),!0},this.status=t=>{const e=this.get(t);return!!e&&-1!==this.getIndex(e)},this.on=t=>{const e=p(t).reduce(((t,e)=>{const s=this.get(e);return!(!s||this.status(e))&&(this._styleSheetsArray.push(s),t)}),!0);return this.notify(),e},this.off=t=>{const e=p(t).reduce(((t,e)=>{const s=this.get(e);if(s&&this.status(e)){const e=this.getIndex(s);return this._styleSheetsArray.splice(e,1),t}return!1}),!0);return this.notify(),e},this.remove=t=>{const e=this.get(t);if(!e)return;const s=this.getIndex(e);return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[t],delete this._rules[t]),this.notify(),!0},this.pack=(t,e)=>{const s=new CSSStyleSheet;if(s.replaceSync(e),s.cssRules.length)return this.add(t,s);console.log(`StyleSheet '${t}' is empty`)},this.replace=(t,e)=>{const s=this._stylesheets[t];if(s)return s.replaceSync(e),this.notify(),!0},this.apply=t=>{t.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=t=>{this._listeners.findIndex((e=>e.deref()===t))>=0||(this._listeners.push(new WeakRef(t)),this.apply(t))},this.unregisterNode=t=>{const e=this._listeners.findIndex((e=>e.deref()===t));e>=0&&this._listeners.splice(e,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((t,e)=>{const s=e.deref();return s&&(this.apply(s),t.push(e)),t}),[])}}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this.notify(),!0}}const m=(...t)=>t.join(","),b="rem",u="-",d=" ",g="-x",_="-y",y="down",v="horizontal",$="vertical",x="text",w=x+u,j="font",k=j+u,S="column",O=S+u,A="max-",z="min-",N="content",C=N+"s",E="-items",K="self",T="inline",W="block",I="size",P="-radius",V="direction",q="outline",M="style",R=u+M,B="end",F=u+B,J="start",L=u+J,G="center",H="word",Z="line",D="break",Q=D+u,U="wrap",X="no"+U,Y="rule",tt="object",et="top",st=u+et,it="left",rt=u+it,nt="bottom",ot=u+nt,lt="right",at=u+lt,ct="width",ht=u+ct,pt="color",ft=u+pt,mt="overflow",bt="align",ut="type",dt="transform",gt="all",_t="height",yt="normal",vt="opacity",$t="visibility",xt="scale",wt="box",jt=u+wt,kt="border",St="position",Ot="none",At="auto",zt="fill",Nt="stroke",Ct="reverse",Et="space",Kt="fixed",Tt="origin",Wt="alpha",It="luminance",Pt="clip",Vt="zoom",qt="scroll",Mt="padding",Rt="margin",Bt="both",Ft="mode",Jt="repeat",Lt="light",Gt="linear",Ht="hidden",Zt="shadow",Dt="behavior",Qt="orientation",Ut="name",Xt="after",Yt="before",te="image",ee="list"+R,se=ee+u+ut,ie=ee+u+St,re=ee+u+te,ne=pt+"-scheme",oe=kt+ot,le=kt+rt,ae=kt+at,ce=kt+st,he=kt+u+W,pe=kt+u+T,fe=he+L,me=he+F,be=pe+L,ue=pe+F,de=kt+ht,ge=oe+ht,_e=le+ht,ye=ae+ht,ve=ce+ht,$e=he+ht,xe=pe+ht,we=fe+ht,je=me+ht,ke=be+ht,Se=ue+ht,Oe=kt+P,Ae=oe+rt+P,ze=oe+at+P,Ne=ce+rt+P,Ce=ce+at+P,Ee=kt+L+F+P,Ke=kt+L+L+P,Te=kt+F+F+P,We=kt+F+L+P,Ie=kt+ft,Pe=le+ft,Ve=ae+ft,qe=ce+ft,Me=oe+ft,Re=he+ft,Be=pe+ft,Fe=fe+ft,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ln=Fn+u+St,Gn=Fn+R,Hn=w+U,Zn=Hn+u+Ft,Dn=Hn+R,Qn=H+u+D,Un=k+I,Xn=k+"weight",Yn=k+"family",to=k+M,eo=k+"synthesis",so=k+"variant",io=so+u+tr+"s",ro=so+"-caps",no=so+"-numeric",oo=so+u+St,lo=so+"-east-asian",ao=so+"-ligatures",co=so+"-settings",ho="writing-"+Ft,po=Z+u+_t,fo=Z+u+D,mo=Z+"-through",bo="over"+Z,uo="under"+Z,go="pre",_o=go+u+Z,yo=go+u+U,vo=Q+Et+"s",$o=Q+gt,xo=Q+H,wo=Q+Xt,jo=Q+Yt,ko=v+"-tb",So=$+"-lr",Oo=$+"-rl",Ao="keep-"+gt,zo="pointer",No="pan",Co=No+g,Eo=No+rt,Ko=No+at,To=No+_,Wo=No+u+y,Io="pinch-"+Vt,Po=$+u+x,Vo="grab",qo=Vo+"bing",Mo="resize",Ro="col-"+Mo,Bo="row-"+Mo,Fo="n-"+Mo,Jo="e-"+Mo,Lo="s-"+Mo,Go="w-"+Mo,Ho="ne-"+Mo,Zo="ew-"+Mo,Do="nw-"+Mo,Qo="se-"+Mo,Uo="sw-"+Mo,Xo="ns-"+Mo,Yo="nesw-"+Mo,tl="nwse-"+Mo,el=Vt+u+"in",sl=Vt+u+"out",il=zo+"-events",rl=qt+u+St,nl="caret"+ft,ol="accent"+ft,ll="filter",al="backdrop-"+ll,cl="background",hl=cl+u,pl=hl+te,fl=hl+pt,ml=hl+Pt,bl=hl+Tt,ul=hl+St,dl=ul+g,gl=ul+_,_l=hl+Jt,yl=hl+I,vl=hl+"blend-"+Ft,$l=hl+"attachment",xl="gradient",wl=Gt+u+xl,jl="radial-"+xl,kl="conic-"+xl,Sl=N+u+$t,Ol=Nt+ht,Al=Nt+u+vt,zl=zt+u+Y,Nl=zt+u+vt,Cl=pt+"-dodge",El=pt+"-burn",Kl="hard-"+Lt,Tl="soft-"+Lt,Wl=pt+"-mix",Il="revert",Pl=Il+"-layer",Vl="container",ql=Vl+u+ut,Ml=Vl+u+Ut,Rl=":first-",Bl=":last-",Fl=":only-",Jl="child",Ll="of-type",Gl=":nth-child",Hl="prefers-",Zl=Hl+ne,Dl="@media",Ql=pt+"-gamut",Ul=Hl+"contrast",Xl="scripting",Yl="::"+Xt,ta="::"+Yt,ea="sideways",sa=ea+at,ia={0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},ra=[...Array(12).keys()].reduce(((t,e)=>(t[e]=e,t)),{}),na={u:{ini:"initial",inh:"inherit",u:"unset",r:Il,rl:Pl},rep:{rx:$s,ry:xs,r:Jt,s:Et,ro:"round",nr:ws},cnt:{n:yt,s:I,is:Mr},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},cu:{c:"currentColor",t:"transparent"},ff:{def:"Roboto, sans-serif",h:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},fst:{i:"italic",n:yt,o:"oblique"},lsp:{no:0,s:.05,m:.1,l:.2},ws:{n:yt,nw:X,p:go,pl:_o,pw:yo,bs:vo},wb:{n:yt,ba:$o,ka:Ao,bw:xo},wm:{htb:ko,vlr:So,vrl:Oo},hyp:{no:Ot,m:"manual",a:At},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:mo,o:bo,u:uo},tor:{m:"mixed",u:"upright",sr:sa,s:ea,ugo:"use-glyph-"+Qt},ta:{l:it,c:G,j:Ws,r:lt,s:J,e:B},fr:ia,coef:ra,rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},usz:{a:"auto",no:0,min:Nr,max:Cr,fit:zr},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},csz:{cv:"cover",cn:"contain",a:At,f:zt,sd:fs},box:{c:ds,p:bs,b:us,f:gs,s:_s,v:ys,nc:vs,t:x},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},z:{s:.8,m:1,l:1.2},pers:{s:10,m:15,l:20},ali:{s:J,e:B,c:G,st:"stretch",sb:$i,sa:xi,se:wi,b:"baseline",fs:vi,fe:yi,no:Ot},dis:{g:Es,ig:ji,f:Is,if:qs,b:W,i:T},ca:ra,co:ra,ra:ra,ro:ra,fd:{r:Ks,rr:di,c:S,cr:gi},fb:ia,fo:ra,fg:ra,fs:ra,fw:{w:U,nw:X,wr:_i},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lb:{a:At,any:"anywhere",n:yt,l:"loose",s:"strict"},ls:{no:Ot,dt:"dotted",i:_r,h:Ht,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},ov:{h:Ht,s:qt,a:At,c:Pt,e:"ellipsis"},v:{h:Ht,v:"visible",c:"collapse",a:At},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},zi:{min:-1,1:1,2:2,3:3,4:4,5:5,max:10},ttf:{l:Gt,e:ir,ei:rr,eo:or,eio:nr,ss:ar,se:cr},tp:{col:m(pt,fl,Ie,Cn),icon:m(zt,Nt),flt:m(ll,al),ind:m(Mt,Rt),sz:m(ct,Kr,Tr,_t,Wr,Ir),esz:m(qr,Pr,Vr,Br,Mr,Rr),o:vt,b:kt,f:Is,g:Es,pos:m(St,it,et,nt,lt),tf:m(dt,hr,xt,pr,"skew",fr)},tb:{ad:"allow-discrete",n:yt},aic:{inf:"infinite",1:1,2:2,3:3,4:4,5:5},wc:{a:At,sp:rl,c:C,tf:dt,o:vt,i:_r,tfi:m(dt,_r)},afm:{no:Ot,f:"forwards",b:"backwards",both:Bt},adir:{r:Ct,a:tr,ar:er},aps:{r:"running",p:"paused"},pe:{a:At,no:Ot,all:gt,f:zt,s:Nt},cur:{h:"help",a:At,p:zo,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:x,vt:Po,cp:"copy",m:"move",g:Vo,gng:qo,cr:Ro,rr:Bo,nr:Fo,er:Jo,sr:Lo,wr:Go,ner:Ho,ewr:Zo,nwr:Do,ser:Qo,swr:Uo,nsr:Xo,neswr:Yo,nwser:tl,zi:el,zo:sl},res:{n:Ot,v:$,h:v,b:Bt},toa:{a:At,no:Ot,px:Co,pl:Eo,pr:Ko,py:To,pu:"pan-up",pd:Wo,pz:Io,m:"manipulation"},us:{n:Ot,t:x,all:gt,a:At},sb:{a:At,s:"smooth"},sss:{n:yt,a:"always"},sst:{n:Ot,x:"x",y:"y",b:W,i:T,both:Bt,xm:yn,ym:vn,bm:$n,im:xn,bothm:wn,xp:kn,yp:Sn,bp:On,ip:An,bothp:zn},pos:{r:"relative",a:"absolute",f:Kt,s:"static"},posv:{b:nt,t:et,c:G,l:it,r:lt,lt:br,rt:ur,lb:dr,rb:gr},cf:{a:At,b:"balance"},cs:{no:Ot,all:gt},mc:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mt:{a:Wt,l:It},mm:{a:Wt,l:It,m:"match-source"},bgbm:{n:yt,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Lt+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:pt,lum:"luminosity",cd:Cl,cb:El,hl:Kl,sl:Tl},bga:{s:qt,f:Kt,l:"local"}},oa={a:Pi,an:qi,adur:Fi,adel:Ji,aps:Li,afm:Gi,adir:Ri,aic:Bi,atf:Mi,tn:Hi,tdur:Xi,tdel:Yi,tb:Di,tp:Qi,ttf:Ui,ba:wo,bb:jo,bor:kt,bw:de,br:Oe,bs:He,bls:Ze,brs:De,bts:Qe,bbs:Ue,bbls:Xe,bis:Ye,bbss:ts,bbes:es,biss:ss,bies:is,brw:ye,blw:_e,btw:ve,bbw:ge,btlr:Ne,btrr:Ce,bbrr:ze,bblr:Ae,biw:xe,bblw:$e,bbew:je,bbsw:we,bisw:ke,biew:Se,besr:We,beer:Te,bssr:Ke,bser:Ee,bc:Ie,blc:Pe,brc:Ve,btc:qe,bbc:Me,bblc:Re,bic:Be,bbsc:Fe,bbec:Je,bisc:Le,biec:Ge,bg:cl,bgi:pl,bgc:fl,c:pt,cmix:Wl,csh:ne,acc:ol,ctc:nl,st:Nt,stw:Ol,sto:Al,fi:zt,fir:zl,fio:Nl,flt:ll,bf:al,dis:"display",g:Es,jc:Ls,ji:Gs,ai:Hs,pi:Vs,ac:Zs,gt:Qs,gtr:Us,gtc:Xs,gp:Ts,rg:Ys,cg:ti,as:Ds,js:ei,gr:si,gre:ii,grs:ri,gc:ni,gce:oi,gcs:li,fx:Is,fxd:Fs,fxw:Js,fxs:Bs,fxg:Rs,fxb:Ms,ord:"order",dir:V,m:Rt,ml:As,mr:Ns,mt:zs,mb:Cs,p:Mt,pl:js,pr:Ss,pt:ks,pb:Os,out:q,oc:rs,ow:ns,os:os,oo:ls,l:it,r:lt,t:et,b:nt,ins:_r,ib:wr,ibe:jr,ibs:kr,ii:Sr,iie:Or,iis:Ar,wc:"will-change",app:"appearance",pe:il,cur:"cursor",toa:"touch-action",us:"user-select",res:Mo,lis:ee,lisp:ie,lisi:re,list:se,sb:Fr,ssa:bn,sss:un,sst:dn,sm:Jr,sml:Hr,smr:Zr,smt:Lr,smb:Gr,sp:en,spl:nn,spr:on,spt:sn,spb:rn,smbl:Dr,smbe:Qr,smbs:Ur,smi:Xr,smie:Yr,smis:tn,spbl:ln,spbe:an,spbs:cn,spi:hn,spie:pn,spis:fn,osb:gn,ar:"aspect-ratio",w:ct,maxw:Kr,minw:Tr,h:_t,minh:Ir,maxh:Wr,bl:Pr,maxb:Vr,minb:qr,i:Mr,mini:Br,maxi:Rr,per:fr,pero:mr,rot:pr,sc:xt,tf:dt,tfb:vr,tfo:$r,tfs:xr,tr:hr,z:Vt,lts:"letter-spacing",lh:po,lb:fo,f:j,fst:to,ff:Yn,fwg:Xn,fsz:Un,fsn:eo,fv:so,fva:io,fvc:ro,fvea:lo,fvl:ao,fvn:no,fvs:co,fvp:oo,tt:In,td:Nn,tdt:En,tds:Kn,tdl:Tn,ta:Pn,to:qn,trg:Rn,ts:Bn,te:Fn,tep:Ln,tec:Jn,tes:Gn,tw:Hn,twm:Zn,tws:Dn,va:Vn,ws:Wn,tor:Mn,wb:Qn,wm:ho,hyp:"hyphens",bsz:Er,bsh:ms,pos:St,cf:ci,crs:fi,crc:pi,crw:mi,cs:bi,cw:ui,cc:ai,bgcl:ml,bgp:ul,bgpx:dl,bgpy:gl,bgbm:vl,bgo:bl,bgr:_l,bga:$l,bgsz:yl,mcl:Si,mcm:Oi,mm:Ai,mo:zi,mp:Ni,mre:Ci,msz:Ei,mtp:Ki,obf:hs,obp:ps,con:N,ov:mt,ovx:as,ovy:cs,v:$t,cv:Sl,o:vt,zi:"z-index",lgr:wl,rgr:jl,cgr:kl,inf:"infinite",cnt:ql,cnn:Ml,$:":root",$u:"*",$h:":hover",$f:":focus",$fv:":focus-visible",$a:":active",$v:":visited",$val:":valid",$inv:":invalid",$e:":empty",$d:":disabled",$r:":required",$o:":optional",$m:":modal",$l:":link",$fc:Rl+Jl,$lc:Bl+Jl,$oc:Fl+Jl,$1:Gl+"(odd)",$2:Gl+"(even)",$ft:Rl+Ll,$lt:Bl+Ll,$ot:Fl+Ll,$bef:ta,$aft:Yl,$bd:"::backdrop",$ba:`&${ta},&${Yl}`,$pl:":placeholder",$light:Dl+`(${Zl}: light)`,$dark:Dl+`(${Zl}: dark)`,$red_m:Dl+"(prefers-reduced-motion: reduce)",$ori_l:Dl+`(${Qt}: landscape)`,$ori_p:Dl+`(${Qt}: portrait)`,$gam_srgb:Dl+`(${Ql}: srgb)`,$gam_p3:Dl+`(${Ql}: p3)`,$gam_rec:Dl+`(${Ql}: rec2020)`,$con_no:Dl+`(${Ul}: no-preference)`,$con_m:Dl+`(${Ul}: more)`,$con_l:Dl+`(${Ul}: less)`,$con_c:Dl+`(${Ul}: custom)`,$scr_no:Dl+`(${Xl}: none)`,$scr_ini:Dl+`(${Xl}: initial-only)`,$scr_en:Dl+`(${Xl}: enabled)`,$ss:"@starting-style",$ns:"@namespace"},la={xs:30+b,sm:40+b,md:48+b,lg:64+b,xl:80+b},aa={xs:10+b,sm:20+b,md:30+b,lg:40+b,xl:48+b},ca={$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}",$$u:{$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}"}},ha={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}}},pa="{1}rem",fa="{1}deg",ma="span {1}",ba={fb:"calc(100% * {1})",ra:ma,ca:ma,sz:pa,sp:pa,rad:pa,th:pa,bp:pa,cbp:pa,fsz:pa,lsp:pa,tr:pa,pers:pa,sk:fa,rot:fa,time:"{1}ms"},ua="style-provider",da=t=>"object"==typeof t;class ga{constructor(t){this._counter=0,this._keys=new Set,this._configs=new Map,this.use=(t,e)=>{const s=this._configs.get(t);if(s)return s;const i=e||this._prefix+this._counter.toString(36);return this._keys.add(i),this._configs.set(t,i),this._counter++,i},this.mutate=(t,e)=>Object.assign(this.getConfigs()[t],e),this.getKey=t=>this._configs.get(t),this.getKeys=()=>[...this._keys],this.getConfigs=()=>Object.fromEntries(this._configs.entries().map((([t,e])=>[e,t]))),this._prefix=(null==t?void 0:t.prefix)||"eff",t.initContent&&Object.entries(t.initContent).forEach((([t,e])=>this.use(e,t))),t.hydrate&&(this._counter=0)}}const _a=globalThis.document,ya=t=>"application/json"===(null==t?void 0:t.getAttribute("type")),va=t=>Array.isArray(t)?t:[t];!function(t={}){const{name:e=ua,styles:s={},settings:i={}}=t,r=globalThis.customElements;!(null==r?void 0:r.get(e))&&(r.define(e,class extends HTMLElement{constructor(){super(...arguments),this._setState=()=>{const{units:t,keys:s,sets:i,mediaBP:r=la,containerBP:n=aa,rootStyle:o=ca,themes:l=ha}=this.settingsContent,a=Object.assign(Object.assign({},ba),t||{}),c=Object.assign(Object.assign({},oa),s||{}),h=Object.assign({},na);i&&Object.entries(i).forEach((([t,e])=>h[t]=Object.assign({},e)));const p=Object.entries(l);if(a)for(const t in a)h[t]=h[t]&&Object.fromEntries(Object.entries(h[t]).map((([e,s])=>[e,a[t].replace("{1}",""+s)])));r&&Object.entries(r).forEach((([t,e])=>{c[`min_${t}_`]=`@media (min-width:${e})`,c[`max_${t}_`]=`@media (max-width:${e})`})),n&&Object.entries(n).forEach((([t,e])=>{c[`cmin_${t}_`]=`@container (min-width:${e})`,c[`cmax_${t}_`]=`@container (max-width:${e})`}));const f={},m={};l&&h&&p.forEach((([t,e])=>{const s={};Object.entries(e).forEach((([t,e])=>{Object.entries(e).forEach((([e,i])=>{var r;const n=this._resolver.varName(this.prefix,t,e);a[t]?s[n]=a[t].replace("{1}",""+i):s[n]=i,f[n]||(f[n]=(null===(r=h[t])||void 0===r?void 0:r[e])||"unset",h[t]||(h[t]={}),h[t][e]=`var(${n})`)}))})),m[t]=s})),this._dict={sets:h,keys:c},this._mainConfig={c:Object.assign(Object.assign({[e]:{display:"contents"},_theme:m,$$:Object.assign(f,o)},(null==m?void 0:m.dark)?{$$dark:{$$:m.dark}}:{}),(null==m?void 0:m.light)?{$$light:{$$:m.light}}:{})}},this._resolveTargetKey=t=>"string"==typeof t?t:this._collector.getKey(t),this.use=(t,e)=>{let s=this._collector.use(t,e);return this._manager&&!this._manager.has(e)&&this._manager.pack(s,this.css(t,s)),this.resolve(s)},this.alter=(t,e)=>{const s=this._resolveTargetKey(t);if(s){const t=this._collector.mutate(s,e);this._manager.replace(s,this.css(t,s))}return this.resolve(s)},this.usePublic=t=>Object.fromEntries(Object.entries(t).map((([t,e])=>[t,this.use(e,t)]))),this.usePrivate=t=>t.map((t=>this.use(t))),this.css=(t,e)=>{var s;return null===(s=this._processor)||void 0===s?void 0:s.compile(e,t)},this.status=t=>{const e=this._resolveTargetKey(t);return!!e&&this._manager.status(e)},this.on=t=>this._manager.on(va(t).map(this._resolveTargetKey)),this.off=t=>this._manager.off(va(t).map(this._resolveTargetKey)),this.get=(t=this._mainConfig)=>this._manager.get(this._resolveTargetKey(t)),this.getMany=(t=this._collector.getKeys())=>t.map((t=>this.get(t))),this.resolve=t=>this._resolver.attr(t||this._collector.getKey(this._mainConfig)),this.subscribe=t=>this._manager.registerNode(t),this.unsubscribe=t=>this._manager.unregisterNode(t)}get prefix(){return this.getAttribute("prefix")||"eff"}get mode(){return this.getAttribute("mode")||"a"}get isolated(){return null!==this.getAttribute("isolated")}get hydrate(){return null!==this.getAttribute("hydrate")}get eventName(){return this.getAttribute("eventname")||"effcsschanges"}get _settingsSelector(){return"#"+(this.getAttribute("settingsid")||"effcss")}get _initSelector(){return"."+(this.getAttribute("initcls")||"effcss_init")}get settingsContent(){const t=null==_a?void 0:_a.querySelector(this._settingsSelector);let e;return e=ya(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):t?null==t?void 0:t.effcss:i,e||{}}get initContent(){const t=_a.querySelectorAll(this._initSelector);let e=s||{};return t.forEach((t=>{let s;s=ya(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):null==t?void 0:t.effcss,e=Object.assign(Object.assign({},e),s||{})})),e}get configs(){return this._collector.getConfigs()}connectedCallback(){this._resolver=(t=>{const{mode:e}=t,s=t=>Object.entries(t).reduce(((t,[e,s])=>(void 0!==s&&t.push(e+(s?"-"+s:"")),t)),[]).join(" "),i=(t,e)=>Object.defineProperties({[t]:e},{k:{value:t},v:{value:e}}),r=(...t)=>"--"+t.join("-"),n=(...t)=>t.join("-");return"c"===e?{selector:({b:t,e:e,m:s,mv:i})=>`.${t}${(e?"__"+e:"")+(s?"_"+s:"")+(s&&i?"_"+i:"")}`,attr:t=>e=>r=>{let n=r||"";da(n)&&(n=s(n));const o=t+(e?"__"+e:"");return n=o+(n?" "+(null==n?void 0:n.split(" ").map((t=>o+"_"+t.split("-").join("_"))).join(" ")):""),i("class",n)},varName:r,kfName:n}:{selector:({b:t,e:e,m:s,mv:i})=>`[data-${t}${e?"-"+e:""}${s?'~="'+(s||"")+(i?"-"+i:"")+'"':""}]`,attr:t=>e=>r=>{const n=`data-${t}${e?"-"+e:""}`;let o=r||"";return da(o)&&(o=s(o)),i(n,o)},varName:r,kfName:n}})({mode:this.mode}),this._setState();const t=this.initContent,e=this.prefix;var s;this._collector=(s={hydrate:this.hydrate,prefix:e,initContent:t},new ga(s)),this._processor=function(t){return new h(t)}({sets:this._dict.sets,keys:this._dict.keys,resolver:this._resolver}),this._manager=new f;const i=t=>this.dispatchEvent(new CustomEvent(this.eventName,{detail:{styles:t},bubbles:!0}));this._notifier={set adoptedStyleSheets(t){i(t)}},this.subscribe(this._notifier),this.use(this._mainConfig),this.usePublic(t),_a&&!this.isolated&&this._manager.registerNode(_a)}}),window.__EFFCSS_PARAMS__={name:e,styles:s,settings:i})}();
package/dist/constants.js CHANGED
@@ -1 +1 @@
1
- const s=(...s)=>s.join(","),e="rem",t="-",r=" ",i="-x",a="-y",l="down",o="horizontal",n="vertical",c="text",b=c+t,p="font",m=p+t,f="column",d=f+t,g="max-",x="min-",h="content",u=h+"s",w="-items",$="self",v="inline",y="block",z="size",k="-radius",_="direction",j="outline",q="style",A=t+q,C="end",G=t+C,R="start",B=t+R,D="center",E="word",F="line",H="break",I=H+t,J="wrap",K="no"+J,L="rule",M="object",N="top",O=t+N,P="left",Q=t+P,S="bottom",T=t+S,U="right",V=t+U,W="width",X=t+W,Y="color",Z=t+Y,ss="overflow",es="align",ts="type",rs="transform",is="all",as="height",ls="normal",os="opacity",ns="visibility",cs="scale",bs="box",ps=t+bs,ms="border",fs="position",ds="none",gs="auto",xs="fill",hs="stroke",us="reverse",ws="space",$s="fixed",vs="origin",ys="alpha",zs="luminance",ks="clip",_s="zoom",js="scroll",qs="padding",As="margin",Cs="both",Gs="mode",Rs="repeat",Bs="light",Ds="linear",Es="hidden",Fs="shadow",Hs="behavior",Is="orientation",Js="name",Ks="after",Ls="before",Ms="image",Ns="list"+A,Os=Ns+t+ts,Ps=Ns+t+fs,Qs=Ns+t+Ms,Ss=Y+"-scheme",Ts=ms+T,Us=ms+Q,Vs=ms+V,Ws=ms+O,Xs=ms+t+y,Ys=ms+t+v,Zs=Xs+B,se=Xs+G,ee=Ys+B,te=Ys+G,re=ms+X,ie=Ts+X,ae=Us+X,le=Vs+X,oe=Ws+X,ne=Xs+X,ce=Ys+X,be=Zs+X,pe=se+X,me=ee+X,fe=te+X,de=ms+k,ge=Ts+Q+k,xe=Ts+V+k,he=Ws+Q+k,ue=Ws+V+k,we=ms+B+G+k,$e=ms+B+B+k,ve=ms+G+G+k,ye=ms+G+B+k,ze=ms+Z,ke=Us+Z,_e=Vs+Z,je=Ws+Z,qe=Ts+Z,Ae=Xs+Z,Ce=Ys+Z,Ge=Zs+Z,Re=se+Z,Be=ee+Z,De=te+Z,Ee=ms+A,Fe=Us+A,He=Vs+A,Ie=Ws+A,Je=Ts+A,Ke=Xs+A,Le=Ys+A,Me=Zs+A,Ne=se+A,Oe=ee+A,Pe=te+A,Qe=j+Z,Se=j+X,Te=j+A,Ue=j+t+"offset",Ve=ss+i,We=ss+a,Xe=M+t+"fit",Ye=M+t+fs,Ze=cs+t+l,st=bs+t+Fs,et=qs+ps,tt=ms+ps,rt=h+ps,it=xs+ps,at=hs+ps,lt="view"+ps,ot="no-"+ks,nt=Rs+i,ct=Rs+a,bt="no-"+Rs,pt=qs+Q,mt=qs+O,ft=qs+V,dt=qs+T,gt=As+Q,xt=As+O,ht=As+V,ut=As+T,wt="grid",$t="row",vt="gap",yt="justify",zt="flex",kt=zt+t,_t="place"+w,jt=v+t+zt,qt=kt+"basis",At=kt+"grow",Ct=kt+"shrink",Gt=kt+_,Rt=kt+J,Bt=yt+t+h,Dt=yt+w,Et=es+w,Ft=es+t+h,Ht=es+t+$,It=wt+t+"template",Jt=It+t+$t+"s",Kt=It+t+f+"s",Lt=$t+t+vt,Mt=d+vt,Nt=yt+t+$,Ot=wt+t+$t,Pt=Ot+G,Qt=Ot+B,St=wt+t+f,Tt=St+G,Ut=St+B,Vt=d+"count",Wt=d+xs,Xt=d+L,Yt=Xt+Z,Zt=Xt+A,sr=Xt+X,er=d+"span",tr=f+X,rr=$t+t+us,ir=d+us,ar=J+t+us,lr=zt+G,or=zt+B,nr=ws+"-between",cr=ws+"-around",br=ws+"-evenly",pr=v+t+wt,mr="mask-",fr=mr+ks,dr=mr+"composite",gr=mr+Gs,xr=mr+vs,hr=mr+fs,ur=mr+Rs,wr=mr+z,$r=mr+ts,vr="timing-function",yr="delay",zr="duration",kr="animation",_r=kr+t,jr=_r+Js,qr=_r+vr,Ar=_r+_,Cr=_r+"iteration-count",Gr=_r+zr,Rr=_r+yr,Br=_r+"play-state",Dr=_r+xs+t+Gs,Er="transition",Fr=Er+t,Hr=Fr+Hs,Ir=Fr+"property",Jr=Fr+vr,Kr=Fr+zr,Lr=Fr+yr,Mr="alternate",Nr=Mr+t+us,Or="-out",Pr="ease",Qr=Pr+"-in",Sr=Qr+Or,Tr=Pr+Or,Ur="step",Vr=Ur+B,Wr=Ur+G,Xr="translate",Yr="rotate",Zr="perspective",si=Zr+t+vs,ei=P+r+N,ti=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over"+F,el="under"+F,tl="pre",rl=tl+t+F,il=tl+t+J,al=I+ws+"s",ll=I+is,ol=I+E,nl=I+Ks,cl=I+Ls,bl=o+"-tb",pl=n+"-lr",ml=n+"-rl",fl="keep-"+is,dl="pointer",gl="pan",xl=gl+i,hl=gl+Q,ul=gl+V,wl=gl+a,$l=gl+t+l,vl="pinch-"+_s,yl=n+t+c,zl="grab",kl=zl+"bing",_l="resize",jl="col-"+_l,ql="row-"+_l,Al="n-"+_l,Cl="e-"+_l,Gl="s-"+_l,Rl="w-"+_l,Bl="ne-"+_l,Dl="ew-"+_l,El="nw-"+_l,Fl="se-"+_l,Hl="sw-"+_l,Il="ns-"+_l,Jl="nesw-"+_l,Kl="nwse-"+_l,Ll=_s+t+"in",Ml=_s+t+"out",Nl=dl+"-events",Ol=js+t+fs,Pl="caret"+Z,Ql="accent"+Z,Sl="filter",Tl="backdrop-"+Sl,Ul="background",Vl=Ul+t,Wl=Vl+Ms,Xl=Vl+Y,Yl=Vl+ks,Zl=Vl+vs,so=Vl+fs,eo=so+i,to=so+a,ro=Vl+Rs,io=Vl+z,ao=Vl+"blend-"+Gs,lo=Vl+"attachment",oo="gradient",no=Ds+t+oo,co="radial-"+oo,bo="conic-"+oo,po=h+t+ns,mo=hs+X,fo=hs+t+os,go=xs+t+L,xo=xs+t+os,ho=Y+"-dodge",uo=Y+"-burn",wo="hard-"+Bs,$o="soft-"+Bs,vo=Y+"-mix",yo="revert",zo=yo+"-layer",ko="container",_o=ko+t+ts,jo=ko+t+Js,qo=":first-",Ao=":last-",Co=":only-",Go="child",Ro="of-type",Bo=":nth-child",Do="prefers-",Eo=Do+Ss,Fo="@media",Ho=Y+"-gamut",Io=Do+"contrast",Jo="scripting",Ko="::"+Ks,Lo="::"+Ls,Mo="sideways",No=Mo+V,Oo={0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},Po=[...Array(12).keys()].reduce(((s,e)=>(s[e]=e,s)),{}),Qo={u:{ini:"initial",inh:"inherit",u:"unset",r:yo,rl:zo},rep:{rx:nt,ry:ct,r:Rs,s:ws,ro:"round",nr:bt},cnt:{n:ls,s:z,is:qi},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},cu:{c:"currentColor",t:"transparent"},ff:{def:"Roboto, sans-serif",h:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},fst:{i:"italic",n:ls,o:"oblique"},lsp:{no:0,s:.05,m:.1,l:.2},ws:{n:ls,nw:K,p:tl,pl:rl,pw:il,bs:al},wb:{n:ls,ba:ll,ka:fl,bw:ol},wm:{htb:bl,vlr:pl,vrl:ml},hyp:{no:ds,m:"manual",a:gs},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:Za,o:sl,u:el},tor:{m:"mixed",u:"upright",sr:No,s:Mo,ugo:"use-glyph-"+Is},ta:{l:P,c:D,j:yt,r:U,s:R,e:C},fr:Oo,coef:Po,rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},usz:{a:"auto",no:0,min:hi,max:ui,fit:xi},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},csz:{cv:"cover",cn:"contain",a:gs,f:xs,sd:Ze},box:{c:rt,p:et,b:tt,f:it,s:at,v:lt,nc:ot,t:c},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},z:{s:.8,m:1,l:1.2},pers:{s:10,m:15,l:20},ali:{s:R,e:C,c:D,st:"stretch",sb:nr,sa:cr,se:br,b:"baseline",fs:or,fe:lr,no:ds},dis:{g:wt,ig:pr,f:zt,if:jt,b:y,i:v},ca:Po,co:Po,ra:Po,ro:Po,fd:{r:$t,rr:rr,c:f,cr:ir},fb:Oo,fo:Po,fg:Po,fs:Po,fw:{w:J,nw:K,wr:ar},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lb:{a:gs,any:"anywhere",n:ls,l:"loose",s:"strict"},ls:{no:ds,dt:"dotted",i:ai,h:Es,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},ov:{h:Es,s:js,a:gs,c:ks,e:"ellipsis"},v:{h:Es,v:"visible",c:"collapse",a:gs},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},zi:{min:-1,1:1,2:2,3:3,4:4,5:5,max:10},ttf:{l:Ds,e:Pr,ei:Qr,eo:Tr,eio:Sr,ss:Vr,se:Wr},tp:{col:s(Y,Xl,ze,ha),icon:s(xs,hs),flt:s(Sl,Tl),ind:s(qs,As),sz:s(W,$i,vi,as,yi,zi),esz:s(ji,ki,_i,Ci,qi,Ai),o:os,b:ms,f:zt,g:wt,pos:s(fs,P,N,S,U),tf:s(rs,Xr,cs,Yr,"skew",Zr)},tb:{ad:"allow-discrete",n:ls},aic:{inf:"infinite",1:1,2:2,3:3,4:4,5:5},wc:{a:gs,sp:Ol,c:u,tf:rs,o:os,i:ai,tfi:s(rs,ai)},afm:{no:ds,f:"forwards",b:"backwards",both:Cs},adir:{r:us,a:Mr,ar:Nr},aps:{r:"running",p:"paused"},pe:{a:gs,no:ds,all:is,f:xs,s:hs},cur:{h:"help",a:gs,p:dl,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:c,vt:yl,cp:"copy",m:"move",g:zl,gng:kl,cr:jl,rr:ql,nr:Al,er:Cl,sr:Gl,wr:Rl,ner:Bl,ewr:Dl,nwr:El,ser:Fl,swr:Hl,nsr:Il,neswr:Jl,nwser:Kl,zi:Ll,zo:Ml},res:{n:ds,v:n,h:o,b:Cs},toa:{a:gs,no:ds,px:xl,pl:hl,pr:ul,py:wl,pu:"pan-up",pd:$l,pz:vl,m:"manipulation"},us:{n:ds,t:c,all:is,a:gs},sb:{a:gs,s:"smooth"},sss:{n:ls,a:"always"},sst:{n:ds,x:"x",y:"y",b:y,i:v,both:Cs,xm:aa,ym:la,bm:oa,im:na,bothm:ca,xp:pa,yp:ma,bp:fa,ip:da,bothp:ga},pos:{r:"relative",a:"absolute",f:$s,s:"static"},posv:{b:S,t:N,c:D,l:P,r:U,lt:ei,rt:ti,lb:ri,rb:ii},cf:{a:gs,b:"balance"},cs:{no:ds,all:is},mc:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mt:{a:ys,l:zs},mm:{a:ys,l:zs,m:"match-source"},bgbm:{n:ls,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Bs+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:Y,lum:"luminosity",cd:ho,cb:uo,hl:wo,sl:$o},bga:{s:js,f:$s,l:"local"}},So={a:kr,an:jr,adur:Gr,adel:Rr,aps:Br,afm:Dr,adir:Ar,aic:Cr,atf:qr,tn:Er,tdur:Kr,tdel:Lr,tb:Hr,tp:Ir,ttf:Jr,ba:nl,bb:cl,bor:ms,bw:re,br:de,bs:Ee,bls:Fe,brs:He,bts:Ie,bbs:Je,bbls:Ke,bis:Le,bbss:Me,bbes:Ne,biss:Oe,bies:Pe,brw:le,blw:ae,btw:oe,bbw:ie,btlr:he,btrr:ue,bbrr:xe,bblr:ge,biw:ce,bblw:ne,bbew:pe,bbsw:be,bisw:me,biew:fe,besr:ye,beer:ve,bssr:$e,bser:we,bc:ze,blc:ke,brc:_e,btc:je,bbc:qe,bblc:Ae,bic:Ce,bbsc:Ge,bbec:Re,bisc:Be,biec:De,bg:Ul,bgi:Wl,bgc:Xl,c:Y,cmix:vo,csh:Ss,acc:Ql,ctc:Pl,st:hs,stw:mo,sto:fo,fi:xs,fir:go,fio:xo,flt:Sl,bf:Tl,dis:"display",g:wt,jc:Bt,ji:Dt,ai:Et,pi:_t,ac:Ft,gt:It,gtr:Jt,gtc:Kt,gp:vt,rg:Lt,cg:Mt,as:Ht,js:Nt,gr:Ot,gre:Pt,grs:Qt,gc:St,gce:Tt,gcs:Ut,fx:zt,fxd:Gt,fxw:Rt,fxs:Ct,fxg:At,fxb:qt,ord:"order",dir:_,m:As,ml:gt,mr:ht,mt:xt,mb:ut,p:qs,pl:pt,pr:ft,pt:mt,pb:dt,out:j,oc:Qe,ow:Se,os:Te,oo:Ue,l:P,r:U,t:N,b:S,ins:ai,ib:bi,ibe:pi,ibs:mi,ii:fi,iie:di,iis:gi,wc:"will-change",app:"appearance",pe:Nl,cur:"cursor",toa:"touch-action",us:"user-select",res:_l,lis:Ns,lisp:Ps,lisi:Qs,list:Os,sb:Gi,ssa:sa,sss:ea,sst:ta,sm:Ri,sml:Ei,smr:Fi,smt:Bi,smb:Di,sp:Ni,spl:Qi,spr:Si,spt:Oi,spb:Pi,smbl:Hi,smbe:Ii,smbs:Ji,smi:Ki,smie:Li,smis:Mi,spbl:Ti,spbe:Ui,spbs:Vi,spi:Wi,spie:Xi,spis:Yi,osb:ra,ar:"aspect-ratio",w:W,maxw:$i,minw:vi,h:as,minh:zi,maxh:yi,bl:ki,maxb:_i,minb:ji,i:qi,mini:Ci,maxi:Ai,per:Zr,pero:si,rot:Yr,sc:cs,tf:rs,tfb:oi,tfo:ni,tfs:ci,tr:Xr,z:_s,lts:"letter-spacing",lh:Xa,lb:Ya,f:p,fst:La,ff:Ka,fwg:Ja,fsz:Ia,fsn:Ma,fv:Na,fva:Oa,fvc:Pa,fvea:Ta,fvl:Ua,fvn:Qa,fvs:Va,fvp:Sa,tt:ya,td:xa,tdt:ua,tds:wa,tdl:$a,ta:za,to:_a,trg:qa,ts:Aa,te:Ca,tep:Ra,tec:Ga,tes:Ba,tw:Da,twm:Ea,tws:Fa,va:ka,ws:va,tor:ja,wb:Ha,wm:Wa,hyp:"hyphens",bsz:wi,bsh:st,pos:fs,cf:Wt,crs:Zt,crc:Yt,crw:sr,cs:er,cw:tr,cc:Vt,bgcl:Yl,bgp:so,bgpx:eo,bgpy:to,bgbm:ao,bgo:Zl,bgr:ro,bga:lo,bgsz:io,mcl:fr,mcm:dr,mm:gr,mo:xr,mp:hr,mre:ur,msz:wr,mtp:$r,obf:Xe,obp:Ye,con:h,ov:ss,ovx:Ve,ovy:We,v:ns,cv:po,o:os,zi:"z-index",lgr:no,rgr:co,cgr:bo,inf:"infinite",cnt:_o,cnn:jo,$:":root",$u:"*",$h:":hover",$f:":focus",$fv:":focus-visible",$a:":active",$v:":visited",$val:":valid",$inv:":invalid",$e:":empty",$d:":disabled",$r:":required",$o:":optional",$m:":modal",$l:":link",$fc:qo+Go,$lc:Ao+Go,$oc:Co+Go,$1:Bo+"(odd)",$2:Bo+"(even)",$ft:qo+Ro,$lt:Ao+Ro,$ot:Co+Ro,$bef:Lo,$aft:Ko,$bd:"::backdrop",$ba:`&${Lo},&${Ko}`,$pl:":placeholder",$light:Fo+`(${Eo}: light)`,$dark:Fo+`(${Eo}: dark)`,$red_m:Fo+"(prefers-reduced-motion: reduce)",$ori_l:Fo+`(${Is}: landscape)`,$ori_p:Fo+`(${Is}: portrait)`,$gam_srgb:Fo+`(${Ho}: srgb)`,$gam_p3:Fo+`(${Ho}: p3)`,$gam_rec:Fo+`(${Ho}: rec2020)`,$con_no:Fo+`(${Io}: no-preference)`,$con_m:Fo+`(${Io}: more)`,$con_l:Fo+`(${Io}: less)`,$con_c:Fo+`(${Io}: custom)`,$scr_no:Fo+`(${Jo}: none)`,$scr_ini:Fo+`(${Jo}: initial-only)`,$scr_en:Fo+`(${Jo}: enabled)`},To={xs:30+e,sm:40+e,md:48+e,lg:64+e,xl:80+e},Uo={xs:10+e,sm:20+e,md:30+e,lg:40+e,xl:48+e},Vo={$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}",$$u:{$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}"}},Wo={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}}},Xo="{1}rem",Yo="{1}deg",Zo="span {1}",sn={fb:"calc(100% * {1})",ra:Zo,ca:Zo,sz:Xo,sp:Xo,rad:Xo,th:Xo,bp:Xo,cbp:Xo,fsz:Xo,lsp:Xo,tr:Xo,pers:Xo,sk:Yo,rot:Yo,time:"{1}ms"},en="eff",tn="effcss",rn="effcss_init",an="style-provider",ln="effcsschanges";export{ln as EVENT_NAME,en as PREFIX,an as PROVIDER_TAG_NAME,tn as SETTINGS_SCRIPT_ID,rn as STYLES_SCRIPT_CLS,Uo as containerBP,So as keys,To as mediaBP,Vo as rootStyle,Qo as sets,Wo as themes,sn as units};
1
+ const s=(...s)=>s.join(","),e="rem",t="-",r=" ",i="-x",a="-y",l="down",n="horizontal",o="vertical",c="text",b=c+t,p="font",m=p+t,f="column",d=f+t,g="max-",x="min-",h="content",u=h+"s",w="-items",$="self",v="inline",y="block",z="size",k="-radius",_="direction",j="outline",q="style",A=t+q,C="end",G=t+C,R="start",B=t+R,D="center",E="word",F="line",H="break",I=H+t,J="wrap",K="no"+J,L="rule",M="object",N="top",O=t+N,P="left",Q=t+P,S="bottom",T=t+S,U="right",V=t+U,W="width",X=t+W,Y="color",Z=t+Y,ss="overflow",es="align",ts="type",rs="transform",is="all",as="height",ls="normal",ns="opacity",os="visibility",cs="scale",bs="box",ps=t+bs,ms="border",fs="position",ds="none",gs="auto",xs="fill",hs="stroke",us="reverse",ws="space",$s="fixed",vs="origin",ys="alpha",zs="luminance",ks="clip",_s="zoom",js="scroll",qs="padding",As="margin",Cs="both",Gs="mode",Rs="repeat",Bs="light",Ds="linear",Es="hidden",Fs="shadow",Hs="behavior",Is="orientation",Js="name",Ks="after",Ls="before",Ms="image",Ns="list"+A,Os=Ns+t+ts,Ps=Ns+t+fs,Qs=Ns+t+Ms,Ss=Y+"-scheme",Ts=ms+T,Us=ms+Q,Vs=ms+V,Ws=ms+O,Xs=ms+t+y,Ys=ms+t+v,Zs=Xs+B,se=Xs+G,ee=Ys+B,te=Ys+G,re=ms+X,ie=Ts+X,ae=Us+X,le=Vs+X,ne=Ws+X,oe=Xs+X,ce=Ys+X,be=Zs+X,pe=se+X,me=ee+X,fe=te+X,de=ms+k,ge=Ts+Q+k,xe=Ts+V+k,he=Ws+Q+k,ue=Ws+V+k,we=ms+B+G+k,$e=ms+B+B+k,ve=ms+G+G+k,ye=ms+G+B+k,ze=ms+Z,ke=Us+Z,_e=Vs+Z,je=Ws+Z,qe=Ts+Z,Ae=Xs+Z,Ce=Ys+Z,Ge=Zs+Z,Re=se+Z,Be=ee+Z,De=te+Z,Ee=ms+A,Fe=Us+A,He=Vs+A,Ie=Ws+A,Je=Ts+A,Ke=Xs+A,Le=Ys+A,Me=Zs+A,Ne=se+A,Oe=ee+A,Pe=te+A,Qe=j+Z,Se=j+X,Te=j+A,Ue=j+t+"offset",Ve=ss+i,We=ss+a,Xe=M+t+"fit",Ye=M+t+fs,Ze=cs+t+l,st=bs+t+Fs,et=qs+ps,tt=ms+ps,rt=h+ps,it=xs+ps,at=hs+ps,lt="view"+ps,nt="no-"+ks,ot=Rs+i,ct=Rs+a,bt="no-"+Rs,pt=qs+Q,mt=qs+O,ft=qs+V,dt=qs+T,gt=As+Q,xt=As+O,ht=As+V,ut=As+T,wt="grid",$t="row",vt="gap",yt="justify",zt="flex",kt=zt+t,_t="place"+w,jt=v+t+zt,qt=kt+"basis",At=kt+"grow",Ct=kt+"shrink",Gt=kt+_,Rt=kt+J,Bt=yt+t+h,Dt=yt+w,Et=es+w,Ft=es+t+h,Ht=es+t+$,It=wt+t+"template",Jt=It+t+$t+"s",Kt=It+t+f+"s",Lt=$t+t+vt,Mt=d+vt,Nt=yt+t+$,Ot=wt+t+$t,Pt=Ot+G,Qt=Ot+B,St=wt+t+f,Tt=St+G,Ut=St+B,Vt=d+"count",Wt=d+xs,Xt=d+L,Yt=Xt+Z,Zt=Xt+A,sr=Xt+X,er=d+"span",tr=f+X,rr=$t+t+us,ir=d+us,ar=J+t+us,lr=zt+G,nr=zt+B,or=ws+"-between",cr=ws+"-around",br=ws+"-evenly",pr=v+t+wt,mr="mask-",fr=mr+ks,dr=mr+"composite",gr=mr+Gs,xr=mr+vs,hr=mr+fs,ur=mr+Rs,wr=mr+z,$r=mr+ts,vr="timing-function",yr="delay",zr="duration",kr="animation",_r=kr+t,jr=_r+Js,qr=_r+vr,Ar=_r+_,Cr=_r+"iteration-count",Gr=_r+zr,Rr=_r+yr,Br=_r+"play-state",Dr=_r+xs+t+Gs,Er="transition",Fr=Er+t,Hr=Fr+Hs,Ir=Fr+"property",Jr=Fr+vr,Kr=Fr+zr,Lr=Fr+yr,Mr="alternate",Nr=Mr+t+us,Or="-out",Pr="ease",Qr=Pr+"-in",Sr=Qr+Or,Tr=Pr+Or,Ur="step",Vr=Ur+B,Wr=Ur+G,Xr="translate",Yr="rotate",Zr="perspective",si=Zr+t+vs,ei=P+r+N,ti=U+r+N,ri=P+r+S,ii=U+r+S,ai="inset",li=ai+t,ni=rs+ps,oi=rs+t+vs,ci=rs+A,bi=li+y,pi=bi+G,mi=bi+B,fi=li+v,di=fi+G,gi=fi+B,xi="fit-"+h,hi=x+h,ui=g+h,wi=bs+"-sizing",$i=g+W,vi=x+W,yi=g+as,zi=x+as,ki=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="pinch-"+_s,yl=o+t+c,zl="grab",kl=zl+"bing",_l="resize",jl="col-"+_l,ql="row-"+_l,Al="n-"+_l,Cl="e-"+_l,Gl="s-"+_l,Rl="w-"+_l,Bl="ne-"+_l,Dl="ew-"+_l,El="nw-"+_l,Fl="se-"+_l,Hl="sw-"+_l,Il="ns-"+_l,Jl="nesw-"+_l,Kl="nwse-"+_l,Ll=_s+t+"in",Ml=_s+t+"out",Nl=dl+"-events",Ol=js+t+fs,Pl="caret"+Z,Ql="accent"+Z,Sl="filter",Tl="backdrop-"+Sl,Ul="background",Vl=Ul+t,Wl=Vl+Ms,Xl=Vl+Y,Yl=Vl+ks,Zl=Vl+vs,sn=Vl+fs,en=sn+i,tn=sn+a,rn=Vl+Rs,an=Vl+z,ln=Vl+"blend-"+Gs,nn=Vl+"attachment",on="gradient",cn=Ds+t+on,bn="radial-"+on,pn="conic-"+on,mn=h+t+os,fn=hs+X,dn=hs+t+ns,gn=xs+t+L,xn=xs+t+ns,hn=Y+"-dodge",un=Y+"-burn",wn="hard-"+Bs,$n="soft-"+Bs,vn=Y+"-mix",yn="revert",zn=yn+"-layer",kn="container",_n=kn+t+ts,jn=kn+t+Js,qn=":first-",An=":last-",Cn=":only-",Gn="child",Rn="of-type",Bn=":nth-child",Dn="prefers-",En=Dn+Ss,Fn="@media",Hn=Y+"-gamut",In=Dn+"contrast",Jn="scripting",Kn="::"+Ks,Ln="::"+Ls,Mn="sideways",Nn=Mn+V,On={0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},Pn=[...Array(12).keys()].reduce(((s,e)=>(s[e]=e,s)),{}),Qn={u:{ini:"initial",inh:"inherit",u:"unset",r:yn,rl:zn},rep:{rx:ot,ry:ct,r:Rs,s:ws,ro:"round",nr:bt},cnt:{n:ls,s:z,is:qi},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},cu:{c:"currentColor",t:"transparent"},ff:{def:"Roboto, sans-serif",h:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},fst:{i:"italic",n:ls,o:"oblique"},lsp:{no:0,s:.05,m:.1,l:.2},ws:{n:ls,nw:K,p:tl,pl:rl,pw:il,bs:al},wb:{n:ls,ba:ll,ka:fl,bw:nl},wm:{htb:bl,vlr:pl,vrl:ml},hyp:{no:ds,m:"manual",a:gs},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:Za,o:sl,u:el},tor:{m:"mixed",u:"upright",sr:Nn,s:Mn,ugo:"use-glyph-"+Is},ta:{l:P,c:D,j:yt,r:U,s:R,e:C},fr:On,coef:Pn,rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},usz:{a:"auto",no:0,min:hi,max:ui,fit:xi},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},csz:{cv:"cover",cn:"contain",a:gs,f:xs,sd:Ze},box:{c:rt,p:et,b:tt,f:it,s:at,v:lt,nc:nt,t:c},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},z:{s:.8,m:1,l:1.2},pers:{s:10,m:15,l:20},ali:{s:R,e:C,c:D,st:"stretch",sb:or,sa:cr,se:br,b:"baseline",fs:nr,fe:lr,no:ds},dis:{g:wt,ig:pr,f:zt,if:jt,b:y,i:v},ca:Pn,co:Pn,ra:Pn,ro:Pn,fd:{r:$t,rr:rr,c:f,cr:ir},fb:On,fo:Pn,fg:Pn,fs:Pn,fw:{w:J,nw:K,wr:ar},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lb:{a:gs,any:"anywhere",n:ls,l:"loose",s:"strict"},ls:{no:ds,dt:"dotted",i:ai,h:Es,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},ov:{h:Es,s:js,a:gs,c:ks,e:"ellipsis"},v:{h:Es,v:"visible",c:"collapse",a:gs},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},zi:{min:-1,1:1,2:2,3:3,4:4,5:5,max:10},ttf:{l:Ds,e:Pr,ei:Qr,eo:Tr,eio:Sr,ss:Vr,se:Wr},tp:{col:s(Y,Xl,ze,ha),icon:s(xs,hs),flt:s(Sl,Tl),ind:s(qs,As),sz:s(W,$i,vi,as,yi,zi),esz:s(ji,ki,_i,Ci,qi,Ai),o:ns,b:ms,f:zt,g:wt,pos:s(fs,P,N,S,U),tf:s(rs,Xr,cs,Yr,"skew",Zr)},tb:{ad:"allow-discrete",n:ls},aic:{inf:"infinite",1:1,2:2,3:3,4:4,5:5},wc:{a:gs,sp:Ol,c:u,tf:rs,o:ns,i:ai,tfi:s(rs,ai)},afm:{no:ds,f:"forwards",b:"backwards",both:Cs},adir:{r:us,a:Mr,ar:Nr},aps:{r:"running",p:"paused"},pe:{a:gs,no:ds,all:is,f:xs,s:hs},cur:{h:"help",a:gs,p:dl,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:c,vt:yl,cp:"copy",m:"move",g:zl,gng:kl,cr:jl,rr:ql,nr:Al,er:Cl,sr:Gl,wr:Rl,ner:Bl,ewr:Dl,nwr:El,ser:Fl,swr:Hl,nsr:Il,neswr:Jl,nwser:Kl,zi:Ll,zo:Ml},res:{n:ds,v:o,h:n,b:Cs},toa:{a:gs,no:ds,px:xl,pl:hl,pr:ul,py:wl,pu:"pan-up",pd:$l,pz:vl,m:"manipulation"},us:{n:ds,t:c,all:is,a:gs},sb:{a:gs,s:"smooth"},sss:{n:ls,a:"always"},sst:{n:ds,x:"x",y:"y",b:y,i:v,both:Cs,xm:aa,ym:la,bm:na,im:oa,bothm:ca,xp:pa,yp:ma,bp:fa,ip:da,bothp:ga},pos:{r:"relative",a:"absolute",f:$s,s:"static"},posv:{b:S,t:N,c:D,l:P,r:U,lt:ei,rt:ti,lb:ri,rb:ii},cf:{a:gs,b:"balance"},cs:{no:ds,all:is},mc:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mt:{a:ys,l:zs},mm:{a:ys,l:zs,m:"match-source"},bgbm:{n:ls,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Bs+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:Y,lum:"luminosity",cd:hn,cb:un,hl:wn,sl:$n},bga:{s:js,f:$s,l:"local"}},Sn={a:kr,an:jr,adur:Gr,adel:Rr,aps:Br,afm:Dr,adir:Ar,aic:Cr,atf:qr,tn:Er,tdur:Kr,tdel:Lr,tb:Hr,tp:Ir,ttf:Jr,ba:ol,bb:cl,bor:ms,bw:re,br:de,bs:Ee,bls:Fe,brs:He,bts:Ie,bbs:Je,bbls:Ke,bis:Le,bbss:Me,bbes:Ne,biss:Oe,bies:Pe,brw:le,blw:ae,btw:ne,bbw:ie,btlr:he,btrr:ue,bbrr:xe,bblr:ge,biw:ce,bblw:oe,bbew:pe,bbsw:be,bisw:me,biew:fe,besr:ye,beer:ve,bssr:$e,bser:we,bc:ze,blc:ke,brc:_e,btc:je,bbc:qe,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sa,tt:ya,td:xa,tdt:ua,tds:wa,tdl:$a,ta:za,to:_a,trg:qa,ts:Aa,te:Ca,tep:Ra,tec:Ga,tes:Ba,tw:Da,twm:Ea,tws:Fa,va:ka,ws:va,tor:ja,wb:Ha,wm:Wa,hyp:"hyphens",bsz:wi,bsh:st,pos:fs,cf:Wt,crs:Zt,crc:Yt,crw:sr,cs:er,cw:tr,cc:Vt,bgcl:Yl,bgp:sn,bgpx:en,bgpy:tn,bgbm:ln,bgo:Zl,bgr:rn,bga:nn,bgsz:an,mcl:fr,mcm:dr,mm:gr,mo:xr,mp:hr,mre:ur,msz:wr,mtp:$r,obf:Xe,obp:Ye,con:h,ov:ss,ovx:Ve,ovy:We,v:os,cv:mn,o:ns,zi:"z-index",lgr:cn,rgr:bn,cgr:pn,inf:"infinite",cnt:_n,cnn:jn,$:":root",$u:"*",$h:":hover",$f:":focus",$fv:":focus-visible",$a:":active",$v:":visited",$val:":valid",$inv:":invalid",$e:":empty",$d:":disabled",$r:":required",$o:":optional",$m:":modal",$l:":link",$fc:qn+Gn,$lc:An+Gn,$oc:Cn+Gn,$1:Bn+"(odd)",$2:Bn+"(even)",$ft:qn+Rn,$lt:An+Rn,$ot:Cn+Rn,$bef:Ln,$aft:Kn,$bd:"::backdrop",$ba:`&${Ln},&${Kn}`,$pl:":placeholder",$light:Fn+`(${En}: light)`,$dark:Fn+`(${En}: dark)`,$red_m:Fn+"(prefers-reduced-motion: reduce)",$ori_l:Fn+`(${Is}: landscape)`,$ori_p:Fn+`(${Is}: portrait)`,$gam_srgb:Fn+`(${Hn}: srgb)`,$gam_p3:Fn+`(${Hn}: p3)`,$gam_rec:Fn+`(${Hn}: rec2020)`,$con_no:Fn+`(${In}: no-preference)`,$con_m:Fn+`(${In}: more)`,$con_l:Fn+`(${In}: less)`,$con_c:Fn+`(${In}: custom)`,$scr_no:Fn+`(${Jn}: none)`,$scr_ini:Fn+`(${Jn}: initial-only)`,$scr_en:Fn+`(${Jn}: enabled)`,$ss:"@starting-style",$ns:"@namespace"},Tn={xs:30+e,sm:40+e,md:48+e,lg:64+e,xl:80+e},Un={xs:10+e,sm:20+e,md:30+e,lg:40+e,xl:48+e},Vn={$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}",$$u:{$c:"{u.inh}",$fsz:"16px",$ff:"{ff.def}"}},Wn={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}}},Xn="{1}rem",Yn="{1}deg",Zn="span {1}",so={fb:"calc(100% * {1})",ra:Zn,ca:Zn,sz:Xn,sp:Xn,rad:Xn,th:Xn,bp:Xn,cbp:Xn,fsz:Xn,lsp:Xn,tr:Xn,pers:Xn,sk:Yn,rot:Yn,time:"{1}ms"},eo="eff",to="effcss",ro="effcss_init",io="style-provider",ao="effcsschanges";export{ao as EVENT_NAME,eo as PREFIX,io as PROVIDER_TAG_NAME,to as SETTINGS_SCRIPT_ID,ro as STYLES_SCRIPT_CLS,Un as containerBP,Sn as keys,Tn as mediaBP,Vn as rootStyle,Qn as sets,Wn as themes,so as units};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{PREFIX as t,EVENT_NAME as e,SETTINGS_SCRIPT_ID as s,STYLES_SCRIPT_CLS as i,units as r,keys as n,sets as l,PROVIDER_TAG_NAME as o,mediaBP as h,containerBP as a,rootStyle as c,themes as u}from"./constants.js";import{createResolver as _,createCollector as d}from"./utils/common.js";const y=Object.entries,p=(t,e,s)=>y(t).reduce(e,s),f=t=>"object"==typeof t,g=t=>`{${t}}`,m=Object.assign.bind(Object),v=(t,e)=>`${t}:${e};`,b=(t,e)=>["@property",t,g(v("syntax",e.syn||'"*"')+v("inherits",e.inh||!1)+(e.ini?v("initial-value",e.ini):""))].join(" "),S=t=>`var(${t})`,A=({l:t,c:e,h:s,a:i=1})=>`oklch(${t} ${e} ${s} / ${i})`,$=["l","c","h","a"];class j{constructor(t){this._outerKeys={},this._outerSets={},this._parseSelector=t=>{let e,s,i,r,n;return[e,n]=t.split(":"),e.startsWith("__")?[s,i,r]=e.slice(2).split("_"):[s,i,r]=e.split("_"),{e:s,m:i,mv:r,s:n}},this._prepareVarName=(...t)=>this._resolver.varName(...t),this._prepareKeyframesName=(...t)=>this._resolver.kfName(...t),this.compile=(t,e)=>{const{_:s,kf:i,k:r={},v:n={},c:l}=e,o=this._resolver.selector.bind(this),h=this._parseSelector;let a=m({},l),c=m({},r),u=m({_:{}},n),_="";if(s)for(let e in s){const i=s[e];if("c"===i.typ){const s={};$.forEach((r=>{const n=e+r,l=this._prepareVarName(t,n);s[r]=l,c["_"+n]=s[r],_+=b(l,i)})),u._[e]=A({l:S(s.l),c:S(s.c),h:S(s.h),a:S(s.a)}),i.all&&(a["_"+e+"l"]=`&lig=>${this._prepareVarName(t,e+"l")}:{1}`,a["_"+e+"c"]=`&chr=>${this._prepareVarName(t,e+"c")}:{1}`,a["_"+e+"h"]=`&hue=>${this._prepareVarName(t,e+"h")}:{1}`,a["_"+e+"a"]=`&alp=>${this._prepareVarName(t,e+"a")}:{1}`)}else{const s=this._prepareVarName(t,e);c["_"+e]=s,u._[e]=S(s),_+=b(s,i)}}const d=t=>c[t]||this._outerKeys[t],j=t=>{var e;return u[t]||this._outerSets[t]||(null===(e=this._outerSets)||void 0===e?void 0:e.root[t])},O=t=>t.replaceAll(/\{(.+?)\}/g,((t,e)=>{const[s,i]=e.split(".");if(i){const t=j(s);return""+((null==t?void 0:t[i])||(null==t?void 0:t.def)||"")}return""+(d(s)||"")})),x=t=>{const e=t.split("?");let s;for(let t in e){const i=e[t],[r,n]=i.split("=>"),l=r.match(/(\w+)(\[[\w,]+\])?/);if(!l)continue;const[o,h,a]=l,c=j(h);if(!c)continue;s=c;let u=y(s);const _=null==a?void 0:a.slice(1,-1).split(",");if(_){const t=new Set(_);u=u.filter((([e,s])=>t.has(e)))}if(n){let[t,e]=n.split("|");void 0===e&&(e=t,t=""),u=u.map((([s,i])=>[t.replace("{0}",s)||s,O(e.replaceAll("{1}",""+i))]))}(_||n)&&(s=Object.fromEntries(u));break}return s};function N(e,s,i){var r,n,l,a;let c=""+e;if((null===(r=null==e?void 0:e.startsWith)||void 0===r?void 0:r.call(e,"$"))&&(c=""+d(e.slice(1)),!c))return"";if(Array.isArray(s))return N(c,Object.assign({},...s.map((t=>"string"==typeof t?x(t):t))),i);if(null==s)return"";if(f(s)){const e=!i||(null===(n=i.startsWith)||void 0===n?void 0:n.call(i,"@"))||c.startsWith("&")||c.startsWith("@")?"":"&";if(c.startsWith("_")){const{e:i,m:r,mv:n}=h(c);return r&&"string"!=typeof n?p(s,((s,[n,l])=>{let h;return h=f(l)?p(l,((t,e)=>t+N(...e,c)),""):l+";",s+e+o({b:t,e:i,m:r,mv:n})+g(h)}),""):e+o({b:t,e:i,m:r,mv:n})+g(p(s,((t,e)=>t+N(...e,c)),""))}return e+c+g(p(s,((t,e)=>t+N(...e,c)),""))}{let t=""+s;return(null===(l=null==t?void 0:t.startsWith)||void 0===l?void 0:l.call(t,"&"))?N(c,x(t.slice(1)),i):(null===(a=null==t?void 0:t.includes)||void 0===a?void 0:a.call(t,"{"))?N(c,O(t),i):v(c.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),t)}}let k="";if(i)for(let e in i){const s=i[e],r=this._prepareKeyframesName(t,e);c["kf_"+e]=r,k+=`@keyframes ${r} `+g(p(s,((t,[e,s])=>t+e+(String(+e)===e?"%":"")+g(p(s,((t,e)=>t+N(...e)),""))),""))}return _+k+p(a,((t,e)=>t+N(...e)),"")};const{sets:e,keys:s,resolver:i}=t;this._resolver=i,s&&(this._outerKeys=s),e&&(this._outerSets=e)}}class O{constructor(){this._stylesheets={},this._rules={},this._styleSheetsArray=[],this._listeners=[],this.get=t=>this._stylesheets[t],this.has=t=>!!t&&!!this.get(t),this.getAll=()=>this._stylesheets,this.add=(t,e)=>{if(!this._stylesheets[t])return this._stylesheets[t]=e,this._styleSheetsArray.push(e),this.notify(),!0},this.status=t=>{const e=t&&this._stylesheets[t];return!!e&&-1!==this._styleSheetsArray.findIndex((t=>t===e))},this.on=t=>{const e=(Array.isArray(t)?t:[t]).reduce(((t,e)=>{const s=e&&this._stylesheets[e];return!(!s||this.status(e))&&(this._styleSheetsArray.push(s),t)}),!0);return this.notify(),e},this.off=t=>{const e=(Array.isArray(t)?t:[t]).reduce(((t,e)=>{const s=e&&this._stylesheets[e];if(s&&this.status(e)){const e=this._styleSheetsArray.findIndex((t=>t===s));return this._styleSheetsArray.splice(e,1),t}return!1}),!0);return this.notify(),e},this.remove=t=>{const e=this.get(t);if(!e)return;const s=this._styleSheetsArray.findIndex((t=>t===e));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[t],delete this._rules[t]),this.notify(),!0},this.pack=(t,e)=>{const s=new CSSStyleSheet;if(s.replaceSync(e),s.cssRules.length)return this.add(t,s);console.log(`StyleSheet '${t}' is empty`)},this.replace=(t,e)=>{const s=this._stylesheets[t];if(s)return s.replaceSync(e),this.notify(),!0},this.apply=t=>{t.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=t=>{this._listeners.findIndex((e=>e.deref()===t))>=0||(this._listeners.push(new WeakRef(t)),this.apply(t))},this.unregisterNode=t=>{const e=this._listeners.findIndex((e=>e.deref()===t));e>=0&&this._listeners.splice(e,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((t,e)=>{const s=e.deref();return s&&(this.apply(s),t.push(e)),t}),[])}}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this.notify(),!0}}const x=globalThis.document,N=t=>"application/json"===(null==t?void 0:t.getAttribute("type"));function k(y={}){const{name:p=o,styles:f={},settings:g={}}=y,m=globalThis.customElements;return!(null==m?void 0:m.get(p))&&(m.define(p,class extends HTMLElement{get prefix(){return this.getAttribute("prefix")||t}get mode(){return this.getAttribute("mode")||"a"}get isolated(){return null!==this.getAttribute("isolated")}get hydrate(){return null!==this.getAttribute("hydrate")}get eventName(){return this.getAttribute("eventname")||e}get _settingsSelector(){return"#"+(this.getAttribute("settingsid")||s)}get _initSelector(){return"."+(this.getAttribute("initcls")||i)}get settingsContent(){const t=null==x?void 0:x.querySelector(this._settingsSelector);let e;return e=N(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):t?null==t?void 0:t.effcss:g,e||{}}get initContent(){const t=x.querySelectorAll(this._initSelector);let e=f||{};return t.forEach((t=>{let s;s=N(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):null==t?void 0:t.effcss,e=Object.assign(Object.assign({},e),s||{})})),e}get configs(){return this._collector.getConfigs()}constructor(){super(),this._setState=()=>{const{units:t,keys:e,sets:s,mediaBP:i=h,containerBP:o=a,rootStyle:_=c,themes:d=u}=this.settingsContent,y=Object.assign(Object.assign({},r),t||{}),f=Object.assign(Object.assign({},n),e||{}),g=Object.assign({},l);s&&Object.entries(s).forEach((([t,e])=>g[t]=Object.assign({},e)));const m=Object.entries(d);if(y)for(const t in y)g[t]=g[t]&&Object.fromEntries(Object.entries(g[t]).map((([e,s])=>[e,y[t].replace("{1}",""+s)])));i&&Object.entries(i).forEach((([t,e])=>{f[`min_${t}_`]=`@media (min-width:${e})`,f[`max_${t}_`]=`@media (max-width:${e})`})),o&&Object.entries(o).forEach((([t,e])=>{f[`cmin_${t}_`]=`@container (min-width:${e})`,f[`cmax_${t}_`]=`@container (max-width:${e})`}));const v={},b={};d&&g&&m.forEach((([t,e])=>{const s={};Object.entries(e).forEach((([t,e])=>{Object.entries(e).forEach((([e,i])=>{var r;const n=this._resolver.varName(this.prefix,t,e);y[t]?s[n]=y[t].replace("{1}",""+i):s[n]=i,v[n]||(v[n]=(null===(r=g[t])||void 0===r?void 0:r[e])||"unset",g[t]||(g[t]={}),g[t][e]=`var(${n})`)}))})),b[t]=s})),this._dict={sets:g,keys:f},this._mainConfig={c:Object.assign(Object.assign({[p]:{display:"contents"},_theme:b,$$:Object.assign(v,_)},(null==b?void 0:b.dark)?{$$dark:{$$:b.dark}}:{}),(null==b?void 0:b.light)?{$$light:{$$:b.light}}:{})}},this.use=(t,e)=>{let s=this._collector.use(t,e);return this._manager&&!this._manager.has(e)&&this._manager.pack(s,this.css(t,s)),this.resolve(s)},this.alter=(t,e)=>{let s;if(s="string"==typeof t?t:this._collector.getKey(t),s){const t=this._collector.mutate(s,e);this._manager.replace(s,this.css(t,s))}return this.resolve(s)},this.usePublic=t=>Object.fromEntries(Object.entries(t).map((([t,e])=>[t,this.use(e,t)]))),this.usePrivate=t=>t.map((t=>this.use(t))),this.css=(t,e)=>{var s;return null===(s=this._processor)||void 0===s?void 0:s.compile(e,t)},this.status=t=>{let e;return e="string"==typeof t?t:this._collector.getKey(t),!!e&&this._manager.status(e)},this.on=t=>{const e=(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t?t:this._collector.getKey(t)));return this._manager.on(e)},this.off=t=>{const e=(Array.isArray(t)?t:[t]).map((t=>"string"==typeof t?t:this._collector.getKey(t)));return this._manager.off(e)},this.get=(t=this._mainConfig)=>{let e;return e="object"==typeof t?this._collector.getKey(t):t,this._manager.get(e)},this.getMany=(t=this._collector.getKeys())=>t.map((t=>this.get(t))),this.resolve=t=>this._resolver.attr(t||this._collector.getKey(this._mainConfig)),this.subscribe=t=>this._manager.registerNode(t),this.unsubscribe=t=>this._manager.unregisterNode(t)}connectedCallback(){this._resolver=_({mode:this.mode}),this._setState();const t=this.initContent,e=this.prefix;var s;this._collector=d({hydrate:this.hydrate,prefix:e,initContent:t}),this._processor=(s={sets:this._dict.sets,keys:this._dict.keys,resolver:this._resolver},new j(s)),this._manager=new O;const i=t=>this.dispatchEvent(new CustomEvent(this.eventName,{detail:{styles:t},bubbles:!0}));this._notifier={set adoptedStyleSheets(t){i(t)}},this.subscribe(this._notifier),this.use(this._mainConfig),this.usePublic(t),x&&!this.isolated&&this._manager.registerNode(x)}}),!0)}export{k as defineProvider};
1
+ import{units as t,keys as e,sets as s,PREFIX as i,EVENT_NAME as r,SETTINGS_SCRIPT_ID as n,STYLES_SCRIPT_CLS as l,PROVIDER_TAG_NAME as o,mediaBP as h,containerBP as a,rootStyle as c,themes as u}from"./constants.js";import{createResolver as _,createCollector as d}from"./utils/common.js";const g=Object.entries,p=(t,e,s)=>g(t).reduce(e,s),m=t=>"object"==typeof t,f=t=>`{${t}}`,y=Object.assign.bind(Object),v=(t,e)=>`${t}:${e};`,b=(t,e)=>["@property",t,f(v("syntax",e.syn||'"*"')+v("inherits",e.inh||!1)+(e.ini?v("initial-value",e.ini):""))].join(" "),S=t=>`var(${t})`,$=({l:t,c:e,h:s,a:i=1})=>`oklch(${t} ${e} ${s} / ${i})`,j=["l","c","h","a"];class A{constructor(t){this._outerKeys={},this._outerSets={},this._parseSelector=t=>{let e,s,i,r,n;return[e,n]=t.split(":"),e.startsWith("__")?[s,i,r]=e.slice(2).split("_"):[s,i,r]=e.split("_"),{e:s,m:i,mv:r,s:n}},this._prepareVarName=(...t)=>this._resolver.varName(...t),this._prepareKeyframesName=(...t)=>this._resolver.kfName(...t),this.compile=(t,e)=>{const{_:s,kf:i,k:r={},v:n={},c:l}=e,o=this._resolver.selector.bind(this),h=this._parseSelector;let a=y({},l),c=y({},r),u=y({_:{}},n),_="";if(s)for(let e in s){const i=s[e];if("c"===i.typ){const s={};j.forEach((r=>{const n=e+r,l=this._prepareVarName(t,n);s[r]=l,c["_"+n]=s[r],_+=b(l,i)})),u._[e]=$({l:S(s.l),c:S(s.c),h:S(s.h),a:S(s.a)}),i.all&&(a["_"+e+"l"]=`&lig=>${this._prepareVarName(t,e+"l")}:{1}`,a["_"+e+"c"]=`&chr=>${this._prepareVarName(t,e+"c")}:{1}`,a["_"+e+"h"]=`&hue=>${this._prepareVarName(t,e+"h")}:{1}`,a["_"+e+"a"]=`&alp=>${this._prepareVarName(t,e+"a")}:{1}`)}else{const s=this._prepareVarName(t,e);c["_"+e]=s,u._[e]=S(s),_+=b(s,i)}}const d=t=>c[t]||this._outerKeys[t],A=t=>{var e;return u[t]||this._outerSets[t]||(null===(e=this._outerSets)||void 0===e?void 0:e.root[t])},O=t=>t.replaceAll(/\{(.+?)\}/g,((t,e)=>{const[s,i]=e.split(".");if(i){const t=A(s);return""+((null==t?void 0:t[i])||(null==t?void 0:t.def)||"")}return""+(d(s)||"")})),x=t=>{const e=t.split("?");let s;for(let t in e){const i=e[t],[r,n]=i.split("=>"),l=r.match(/(\w+)(\[[\w,]+\])?/);if(!l)continue;const[o,h,a]=l,c=A(h);if(!c)continue;s=c;let u=g(s);const _=null==a?void 0:a.slice(1,-1).split(",");if(_){const t=new Set(_);u=u.filter((([e,s])=>t.has(e)))}if(n){let[t,e]=n.split("|");void 0===e&&(e=t,t=""),u=u.map((([s,i])=>[t.replace("{0}",s)||s,O(e.replaceAll("{1}",""+i))]))}(_||n)&&(s=Object.fromEntries(u));break}return s};function N(e,s,i){var r,n,l,a;let c=""+e;if((null===(r=null==e?void 0:e.startsWith)||void 0===r?void 0:r.call(e,"$"))&&(c=""+d(e.slice(1)),!c))return"";if(Array.isArray(s))return N(c,Object.assign({},...s.map((t=>"string"==typeof t?x(t):t))),i);if(null==s)return"";if(m(s)){const e=!i||(null===(n=i.startsWith)||void 0===n?void 0:n.call(i,"@"))||c.startsWith("&")||c.startsWith("@")?"":"&";if(c.startsWith("_")){const{e:i,m:r,mv:n}=h(c);return r&&"string"!=typeof n?p(s,((s,[n,l])=>{let h;return h=m(l)?p(l,((t,e)=>t+N(...e,c)),""):l+";",s+e+o({b:t,e:i,m:r,mv:n})+f(h)}),""):e+o({b:t,e:i,m:r,mv:n})+f(p(s,((t,e)=>t+N(...e,c)),""))}return e+c+f(p(s,((t,e)=>t+N(...e,c)),""))}{let t=""+s;return(null===(l=null==t?void 0:t.startsWith)||void 0===l?void 0:l.call(t,"&"))?N(c,x(t.slice(1)),i):(null===(a=null==t?void 0:t.includes)||void 0===a?void 0:a.call(t,"{"))?N(c,O(t),i):v(c.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),t)}}let k="";if(i)for(let e in i){const s=i[e],r=this._prepareKeyframesName(t,e);c["kf_"+e]=r,k+=`@keyframes ${r} `+f(p(s,((t,[e,s])=>t+e+(String(+e)===e?"%":"")+f(p(s,((t,e)=>t+N(...e)),""))),""))}return _+k+p(a,((t,e)=>t+N(...e)),"")};const{sets:e,keys:s,resolver:i}=t;this._resolver=i,s&&(this._outerKeys=s),e&&(this._outerSets=e)}}const O=t=>Array.isArray(t)?t:[t];class x{constructor(){this._stylesheets={},this._rules={},this._styleSheetsArray=[],this._listeners=[],this.getIndex=t=>this._styleSheetsArray.findIndex((e=>e===t)),this.get=t=>this._stylesheets[t],this.has=t=>!!t&&!!this.get(t),this.getAll=()=>this._stylesheets,this.add=(t,e)=>{if(!this._stylesheets[t])return this._stylesheets[t]=e,this._styleSheetsArray.push(e),this.notify(),!0},this.status=t=>{const e=this.get(t);return!!e&&-1!==this.getIndex(e)},this.on=t=>{const e=O(t).reduce(((t,e)=>{const s=this.get(e);return!(!s||this.status(e))&&(this._styleSheetsArray.push(s),t)}),!0);return this.notify(),e},this.off=t=>{const e=O(t).reduce(((t,e)=>{const s=this.get(e);if(s&&this.status(e)){const e=this.getIndex(s);return this._styleSheetsArray.splice(e,1),t}return!1}),!0);return this.notify(),e},this.remove=t=>{const e=this.get(t);if(!e)return;const s=this.getIndex(e);return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[t],delete this._rules[t]),this.notify(),!0},this.pack=(t,e)=>{const s=new CSSStyleSheet;if(s.replaceSync(e),s.cssRules.length)return this.add(t,s);console.log(`StyleSheet '${t}' is empty`)},this.replace=(t,e)=>{const s=this._stylesheets[t];if(s)return s.replaceSync(e),this.notify(),!0},this.apply=t=>{t.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=t=>{this._listeners.findIndex((e=>e.deref()===t))>=0||(this._listeners.push(new WeakRef(t)),this.apply(t))},this.unregisterNode=t=>{const e=this._listeners.findIndex((e=>e.deref()===t));e>=0&&this._listeners.splice(e,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((t,e)=>{const s=e.deref();return s&&(this.apply(s),t.push(e)),t}),[])}}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this.notify(),!0}}const N=globalThis.document,k=t=>"application/json"===(null==t?void 0:t.getAttribute("type")),C=t=>Array.isArray(t)?t:[t];function E(g={}){const{name:p=o,styles:m={},settings:f={}}=g,y=globalThis.customElements;return!(null==y?void 0:y.get(p))&&(y.define(p,class extends HTMLElement{constructor(){super(...arguments),this._setState=()=>{const{units:i,keys:r,sets:n,mediaBP:l=h,containerBP:o=a,rootStyle:_=c,themes:d=u}=this.settingsContent,g=Object.assign(Object.assign({},t),i||{}),m=Object.assign(Object.assign({},e),r||{}),f=Object.assign({},s);n&&Object.entries(n).forEach((([t,e])=>f[t]=Object.assign({},e)));const y=Object.entries(d);if(g)for(const t in g)f[t]=f[t]&&Object.fromEntries(Object.entries(f[t]).map((([e,s])=>[e,g[t].replace("{1}",""+s)])));l&&Object.entries(l).forEach((([t,e])=>{m[`min_${t}_`]=`@media (min-width:${e})`,m[`max_${t}_`]=`@media (max-width:${e})`})),o&&Object.entries(o).forEach((([t,e])=>{m[`cmin_${t}_`]=`@container (min-width:${e})`,m[`cmax_${t}_`]=`@container (max-width:${e})`}));const v={},b={};d&&f&&y.forEach((([t,e])=>{const s={};Object.entries(e).forEach((([t,e])=>{Object.entries(e).forEach((([e,i])=>{var r;const n=this._resolver.varName(this.prefix,t,e);g[t]?s[n]=g[t].replace("{1}",""+i):s[n]=i,v[n]||(v[n]=(null===(r=f[t])||void 0===r?void 0:r[e])||"unset",f[t]||(f[t]={}),f[t][e]=`var(${n})`)}))})),b[t]=s})),this._dict={sets:f,keys:m},this._mainConfig={c:Object.assign(Object.assign({[p]:{display:"contents"},_theme:b,$$:Object.assign(v,_)},(null==b?void 0:b.dark)?{$$dark:{$$:b.dark}}:{}),(null==b?void 0:b.light)?{$$light:{$$:b.light}}:{})}},this._resolveTargetKey=t=>"string"==typeof t?t:this._collector.getKey(t),this.use=(t,e)=>{let s=this._collector.use(t,e);return this._manager&&!this._manager.has(e)&&this._manager.pack(s,this.css(t,s)),this.resolve(s)},this.alter=(t,e)=>{const s=this._resolveTargetKey(t);if(s){const t=this._collector.mutate(s,e);this._manager.replace(s,this.css(t,s))}return this.resolve(s)},this.usePublic=t=>Object.fromEntries(Object.entries(t).map((([t,e])=>[t,this.use(e,t)]))),this.usePrivate=t=>t.map((t=>this.use(t))),this.css=(t,e)=>{var s;return null===(s=this._processor)||void 0===s?void 0:s.compile(e,t)},this.status=t=>{const e=this._resolveTargetKey(t);return!!e&&this._manager.status(e)},this.on=t=>this._manager.on(C(t).map(this._resolveTargetKey)),this.off=t=>this._manager.off(C(t).map(this._resolveTargetKey)),this.get=(t=this._mainConfig)=>this._manager.get(this._resolveTargetKey(t)),this.getMany=(t=this._collector.getKeys())=>t.map((t=>this.get(t))),this.resolve=t=>this._resolver.attr(t||this._collector.getKey(this._mainConfig)),this.subscribe=t=>this._manager.registerNode(t),this.unsubscribe=t=>this._manager.unregisterNode(t)}get prefix(){return this.getAttribute("prefix")||i}get mode(){return this.getAttribute("mode")||"a"}get isolated(){return null!==this.getAttribute("isolated")}get hydrate(){return null!==this.getAttribute("hydrate")}get eventName(){return this.getAttribute("eventname")||r}get _settingsSelector(){return"#"+(this.getAttribute("settingsid")||n)}get _initSelector(){return"."+(this.getAttribute("initcls")||l)}get settingsContent(){const t=null==N?void 0:N.querySelector(this._settingsSelector);let e;return e=k(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):t?null==t?void 0:t.effcss:f,e||{}}get initContent(){const t=N.querySelectorAll(this._initSelector);let e=m||{};return t.forEach((t=>{let s;s=k(t)?(null==t?void 0:t.textContent)&&JSON.parse(null==t?void 0:t.textContent):null==t?void 0:t.effcss,e=Object.assign(Object.assign({},e),s||{})})),e}get configs(){return this._collector.getConfigs()}connectedCallback(){this._resolver=_({mode:this.mode}),this._setState();const t=this.initContent,e=this.prefix;var s;this._collector=d({hydrate:this.hydrate,prefix:e,initContent:t}),this._processor=(s={sets:this._dict.sets,keys:this._dict.keys,resolver:this._resolver},new A(s)),this._manager=new x;const i=t=>this.dispatchEvent(new CustomEvent(this.eventName,{detail:{styles:t},bubbles:!0}));this._notifier={set adoptedStyleSheets(t){i(t)}},this.subscribe(this._notifier),this.use(this._mainConfig),this.usePublic(t),N&&!this.isolated&&this._manager.registerNode(N)}}),window.__EFFCSS_PARAMS__={name:p,styles:m,settings:f},!0)}export{E as defineProvider};
@@ -1,21 +1,5 @@
1
- import { TProviderSettings, TProviderInitContent } from './types';
1
+ import { IDefineProviderProps } from './types';
2
2
  /**
3
3
  * Define style provider custom element
4
4
  */
5
- export declare function defineProvider(props?: {
6
- /**
7
- * Element name
8
- * @defaultValue style-provider
9
- */
10
- name?: string;
11
- /**
12
- * Initial styles
13
- */
14
- styles?: TProviderInitContent;
15
- /**
16
- * Provider config
17
- * @description
18
- * Will be used for initial stylesheets generation
19
- */
20
- settings?: TProviderSettings;
21
- }): boolean;
5
+ export declare function defineProvider(props?: IDefineProviderProps): boolean;
@@ -89,6 +89,11 @@ export interface IStyleManager {
89
89
  * @returns CSS stylesheet if found with this key, otherwise `undefined`
90
90
  */
91
91
  get(key?: string): CSSStyleSheet | undefined;
92
+ /**
93
+ * Get index of stylesheet
94
+ * @param styleSheet - CSS stylesheet
95
+ */
96
+ getIndex(styleSheet: CSSStyleSheet): number;
92
97
  /**
93
98
  * Get all stylesheets
94
99
  * @returns CSS stylesheet dicitonary
@@ -529,3 +534,28 @@ export interface IStyleProviderParams {
529
534
  export type TStyleConsumer = {
530
535
  adoptedStyleSheets: CSSStyleSheet[];
531
536
  };
537
+ /**
538
+ * Props to define style provider
539
+ */
540
+ export interface IDefineProviderProps {
541
+ /**
542
+ * Element name
543
+ * @defaultValue style-provider
544
+ */
545
+ name?: string;
546
+ /**
547
+ * Initial styles
548
+ */
549
+ styles?: TProviderInitContent;
550
+ /**
551
+ * Provider config
552
+ * @description
553
+ * Will be used for initial stylesheets generation
554
+ */
555
+ settings?: TProviderSettings;
556
+ }
557
+ declare global {
558
+ interface Window {
559
+ __EFFCSS_PARAMS__: IDefineProviderProps;
560
+ }
561
+ }
@@ -1 +1 @@
1
- import{PROVIDER_TAG_NAME as e}from"../constants.js";const s=(s=globalThis.document,i=e)=>{var r;return null===(r=null==s?void 0:s.getElementsByTagName(i))||void 0===r?void 0:r[0]},i=(e,i,r=s())=>r.use(e,i),r=(e,i=s())=>null==i?void 0:i.usePublic(e),u=(e,i=s())=>null==i?void 0:i.usePrivate(e),o=(e,i=s())=>i.resolve(e),t=(e,i=s())=>null==i?void 0:i.get(e),l=(e,i=s())=>null==i?void 0:i.getMany(e),n=(e,i=s())=>{var r;return[...(null===(r=t(e,i))||void 0===r?void 0:r.cssRules)||[]].map((e=>e.cssText)).join("")},v=(e,i=s())=>[...l(e,i)||[]].reduce(((e,s)=>e+[...(null==s?void 0:s.cssRules)||[]].map((e=>e.cssText)).join("")),""),d=(e,i=s())=>{var r;return function e(s){return s?s.length+[...s].reduce(((s,i)=>s+e(null==i?void 0:i.cssRules)),0):0}(null===(r=t(e,i))||void 0===r?void 0:r.cssRules)},c=(e,i=s())=>e.reduce(((e,s)=>e+d(s,i)),0);class a{constructor(e){this.use=(...e)=>this._provider.use(...e),this.usePublic=e=>this._provider.usePublic(e),this.usePrivate=e=>this._provider.usePrivate(e),this.resolve=e=>this._provider.resolve(e);const{root:i,tag:r}=e||{};this._provider=s(i,r)}}function h(e){return new a(e)}export{h as createDispatcher,l as getManyStyleSheets,s as getProvider,t as getStyleSheet,c as measureMany,d as measureOne,o as resolveStyleSheet,v as stringifyMany,n as stringifyOne,u as usePrivateStyleSheets,r as usePublicStyleSheets,i as useStyleSheet};
1
+ import{PROVIDER_TAG_NAME as e}from"../constants.js";const s=(s,i)=>{var o,u;return void 0===s&&(s=window.document),void 0===i&&(i=(null===(o=window.__EFFCSS_PARAMS__)||void 0===o?void 0:o.name)||e),null===(u=null==s?void 0:s.getElementsByTagName(i))||void 0===u?void 0:u[0]},i=(e,i,o=s())=>o.use(e,i),o=(e,i=s())=>null==i?void 0:i.usePublic(e),u=(e,i=s())=>null==i?void 0:i.usePrivate(e),r=(e,i=s())=>i.resolve(e),t=(e,i=s())=>null==i?void 0:i.get(e),l=(e,i=s())=>null==i?void 0:i.getMany(e),n=(e,i=s())=>{var o;return[...(null===(o=t(e,i))||void 0===o?void 0:o.cssRules)||[]].map((e=>e.cssText)).join("")},v=(e,i=s())=>[...l(e,i)||[]].reduce(((e,s)=>e+[...(null==s?void 0:s.cssRules)||[]].map((e=>e.cssText)).join("")),""),d=(e,i=s())=>{var o;return function e(s){return s?s.length+[...s].reduce(((s,i)=>s+e(null==i?void 0:i.cssRules)),0):0}(null===(o=t(e,i))||void 0===o?void 0:o.cssRules)},c=(e,i=s())=>e.reduce(((e,s)=>e+d(s,i)),0);class a{constructor(e){this.use=(...e)=>this._provider.use(...e),this.usePublic=e=>this._provider.usePublic(e),this.usePrivate=e=>this._provider.usePrivate(e),this.resolve=e=>this._provider.resolve(e);const{root:i,tag:o}=e||{};this._provider=s(i,o)}}function h(e){return new a(e)}export{h as createDispatcher,l as getManyStyleSheets,s as getProvider,t as getStyleSheet,c as measureMany,d as measureOne,r as resolveStyleSheet,v as stringifyMany,n as stringifyOne,u as usePrivateStyleSheets,o as usePublicStyleSheets,i as useStyleSheet};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effcss",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "Self-confident CSS-in-JS",
5
5
  "type": "module",
6
6
  "scripts": {