git-truck 0.0.0-ec4682e → 0.0.0-ece341d
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/LICENSE +21 -21
- package/README.md +96 -96
- package/build/index.js +54 -54
- package/build/metafile.js.json +1 -1
- package/build/metafile.server.json +1 -1
- package/build/version.txt +1 -1
- package/cli.js +735 -801
- package/package.json +140 -134
- package/public/build/_assets/tailwind-HZOHM7R7.css +1 -0
- package/public/build/{manifest-4579AEF2.js → manifest-3CC98547.js} +1 -1
- package/public/build/{root-VV42MTLA.js → root-C7SUUCBF.js} +1 -1
- package/public/build/routes/$repo.$-7NVZ73B2.js +82 -0
- package/public/build/_assets/tailwind-WHINTWYM.css +0 -1
- package/public/build/routes/$repo.$-DW5C7EUX.js +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import{a as kl}from"/build/_shared/chunk-AL2GFMRM.js";import{a as rv,b as ov,c as nv,d as No,e as cc,f as uc,g as fc,h as dc,i as pc,j as hc,k as mc,l as Jr,m as gc,n as Xr,o as jo,p as Ro,q as $e,r as Ze,s as bc}from"/build/_shared/chunk-MFUESDJJ.js";import{$ as Sr,A as Gl,B as Hl,C as zl,D as ql,E as Vl,F as Ul,G as Wl,H as Jl,I as Xl,J as Ql,K as Yl,L as Kl,M as Zl,N as ec,O as tc,P as rc,Q as oc,R as nc,S as ic,U as wi,V as ac,W as sc,X as Ci,Y as ki,Z as lc,_ as ge,aa as mt,b as Ve,ba as Mr,c as Sl,ca as Ar,d as wr,da as Eo,e as Ml,f as Al,g as Tl,h as Ol,i as vi,j as _l,k as yi,l as Cr,m as Ll,n as Pl,o as xi,p as Po,q as El,r as Nl,s as jl,t as Rl,u as Fl,v as kr,w as Il,x as Dl,y as Bl,z as $l}from"/build/_shared/chunk-7ZRMUBOE.js";import{a as ie,b as M,c as z,d as vl,e as xr,f as yl,g as Tt,h as xl,j as Ot,k as wl,l as er,p as Cl,t as W}from"/build/_shared/chunk-QKOGMPSY.js";var Ec=ie((J2,Pc)=>{Pc.exports={}});var Fc=ie((fx,Rc)=>{Rc.exports={}});var Dc=ie((dx,Ic)=>{Ic.exports={}});var Bc=ie($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=void 0;var xv={sum:function(t){return t.reduce(function(r,o){return r+o})}},wv=xv;$o.default=wv});var Go=ie((mx,$c)=>{function Cv(e){return Object.prototype.toString.call(e).slice(8,-1)}$c.exports=Cv});var Li=ie((gx,Gc)=>{function kv(e){return!!e&&typeof e=="object"&&e.constructor===Object}Gc.exports=kv});var Ho=ie((bx,Hc)=>{function Sv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Hc.exports=Sv});var Uc=ie((vx,Vc)=>{var Mv=Ho(),zo,qc;function Av(){qc=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],zo=!0;for(var e in{toString:null})zo=!1}function Tv(e,t,r){var o,i=0;zo==null&&Av();for(o in e)if(zc(t,e,o,r)===!1)break;if(zo)for(var s=e.constructor,c=!!s&&e===s.prototype;(o=qc[i++])&&!((o!=="constructor"||!c&&Mv(e,o))&&e[o]!==Object.prototype[o]&&zc(t,e,o,r)===!1););}function zc(e,t,r,o){return e.call(o,t[r],r,t)}Vc.exports=Tv});var Yr=ie((yx,Wc)=>{var Ov=Ho(),_v=Uc();function Lv(e,t,r){_v(e,function(o,i){if(Ov(e,i))return t.call(r,e[i],i,e)})}Wc.exports=Lv});var Xc=ie((xx,Jc)=>{var Pv=Yr();function Ev(e,t){for(var r=0,o=arguments.length,i;++r<o;)i=arguments[r],i!=null&&Pv(i,Nv,e);return e}function Nv(e,t){this[t]=e}Jc.exports=Ev});var Yc=ie((wx,Qc)=>{var jv=Go(),Rv=Li(),Fv=Xc();function Iv(e){switch(jv(e)){case"Object":return Dv(e);case"Array":return Gv(e);case"RegExp":return Bv(e);case"Date":return $v(e);default:return e}}function Dv(e){return Rv(e)?Fv({},e):e}function Bv(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function $v(e){return new Date(+e)}function Gv(e){return e.slice()}Qc.exports=Iv});var Zc=ie((Cx,Kc)=>{var Hv=Yc(),zv=Yr(),qv=Go(),Vv=Li();function Pi(e,t){switch(qv(e)){case"Object":return Uv(e,t);case"Array":return Wv(e,t);default:return Hv(e)}}function Uv(e,t){if(Vv(e)){var r={};return zv(e,function(o,i){this[i]=Pi(o,t)},r),r}else return t?t(e):e}function Wv(e,t){for(var r=[],o=-1,i=e.length,s;++o<i;)r[o]=Pi(e[o],t);return r}Kc.exports=Pi});var qo=ie((kx,eu)=>{function Jv(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}eu.exports=Jv});var Ei=ie((Sx,tu)=>{var Xv=Go();function Qv(e,t){return Xv(e)===t}tu.exports=Qv});var Ni=ie((Mx,ru)=>{var Yv=Ei();function Kv(e){return Yv(e,"Object")}ru.exports=Kv});var Vo=ie((Ax,ou)=>{var Zv=Ei(),e0=Array.isArray||function(e){return Zv(e,"Array")};ou.exports=e0});var iu=ie((Tx,nu)=>{function t0(e){return e}nu.exports=t0});var su=ie((Ox,au)=>{function r0(e){return function(t){return t[e]}}au.exports=r0});var uu=ie((_x,cu)=>{var o0=Yr(),lu=Vo();function n0(e,t){for(var r=-1,o=e.length;++r<o;)if(ji(e[r],t))return!0;return!1}function i0(e,t){for(var r=-1,o=t.length;++r<o;)if(!n0(e,t[r]))return!1;return!0}function a0(e,t){var r=!0;return o0(t,function(o,i){if(!ji(e[i],o))return r=!1}),r}function ji(e,t){return e&&typeof e=="object"&&t&&typeof t=="object"?lu(e)&&lu(t)?i0(e,t):a0(e,t):e===t}cu.exports=ji});var Ri=ie((Lx,fu)=>{var s0=iu(),l0=su(),c0=uu();function u0(e,t){if(e==null)return s0;switch(typeof e){case"function":return typeof t<"u"?function(r,o,i){return e.call(t,r,o,i)}:e;case"object":return function(r){return c0(r,e)};case"string":case"number":return l0(e)}}fu.exports=u0});var pu=ie((Px,du)=>{var f0=Yr(),d0=Ri();function p0(e,t,r){t=d0(t,r);var o=!0;return f0(e,function(i,s){if(!t(i,s,e))return o=!1,!1}),o}du.exports=p0});var vu=ie((Ex,bu)=>{var gu=Ho(),hu=pu(),mu=Ni(),h0=qo();function m0(e){return function(t,r){return gu(this,r)&&e(t,this[r])}}function g0(e,t){return gu(this,t)}function b0(e,t,r){return r=r||h0,!mu(e)||!mu(t)?r(e,t):hu(e,m0(r),t)&&hu(t,g0,e)}bu.exports=b0});var xu=ie((Nx,yu)=>{var v0=Ri();function y0(e,t,r){t=v0(t,r);var o=!0;if(e==null)return o;for(var i=-1,s=e.length;++i<s;)if(!t(e[i],i,e)){o=!1;break}return o}yu.exports=y0});var ku=ie((jx,Cu)=>{var x0=qo(),wu=Vo(),w0=xu();function C0(e,t,r){return r=r||x0,!wu(e)||!wu(t)?r(e,t):e.length!==t.length?!1:w0(e,k0(r),t)}function k0(e){return function(t,r){return r in this&&e(t,this[r])}}Cu.exports=C0});var Ou=ie((Rx,Tu)=>{var S0=qo(),Su=Ni(),Mu=Vo(),M0=vu(),A0=ku();function Au(e,t,r){r=r||S0;var o=Su(e)&&Su(t),i=!o&&Mu(e)&&Mu(t);if(!o&&!i)return r(e,t);function s(u,d){return Au(u,d,r)}var c=o?M0:A0;return c(e,t,s)}Tu.exports=Au});var _u=ie((Fi,Ii)=>{(function(e,t){typeof Fi=="object"&&typeof Ii<"u"?Ii.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.chroma=t())})(Fi,function(){"use strict";for(var e=function(n,a,l){return a===void 0&&(a=0),l===void 0&&(l=1),n<a?a:n>l?l:n},t=e,r=function(n){n._clipped=!1,n._unclipped=n.slice(0);for(var a=0;a<=3;a++)a<3?((n[a]<0||n[a]>255)&&(n._clipped=!0),n[a]=t(n[a],0,255)):a===3&&(n[a]=t(n[a],0,1));return n},o={},i=0,s=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i<s.length;i+=1){var c=s[i];o["[object "+c+"]"]=c.toLowerCase()}var u=function(n){return o[Object.prototype.toString.call(n)]||"object"},d=u,h=function(n,a){return a===void 0&&(a=null),n.length>=3?Array.prototype.slice.call(n):d(n[0])=="object"&&a?a.split("").filter(function(l){return n[0][l]!==void 0}).map(function(l){return n[0][l]}):n[0]},y=u,b=function(n){if(n.length<2)return null;var a=n.length-1;return y(n[a])=="string"?n[a].toLowerCase():null},m=Math.PI,p={clip_rgb:r,limit:e,type:u,unpack:h,last:b,PI:m,TWOPI:m*2,PITHIRD:m/3,DEG2RAD:m/180,RAD2DEG:180/m},k={format:{},autodetect:[]},S=p.last,_=p.clip_rgb,L=p.type,E=k,F=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var f=this;if(L(a[0])==="object"&&a[0].constructor&&a[0].constructor===this.constructor)return a[0];var v=S(a),x=!1;if(!v){x=!0,E.sorted||(E.autodetect=E.autodetect.sort(function(O,I){return I.p-O.p}),E.sorted=!0);for(var g=0,w=E.autodetect;g<w.length;g+=1){var C=w[g];if(v=C.test.apply(C,a),v)break}}if(E.format[v]){var A=E.format[v].apply(null,x?a:a.slice(0,-1));f._rgb=_(A)}else throw new Error("unknown format: "+a);f._rgb.length===3&&f._rgb.push(1)};F.prototype.toString=function(){return L(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var P=F,H=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(H.Color,[null].concat(n)))};H.Color=P,H.version="2.4.2";var D=H,re=p.unpack,pe=Math.max,ae=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=re(n,"rgb"),f=l[0],v=l[1],x=l[2];f=f/255,v=v/255,x=x/255;var g=1-pe(f,pe(v,x)),w=g<1?1/(1-g):0,C=(1-f-g)*w,A=(1-v-g)*w,O=(1-x-g)*w;return[C,A,O,g]},Ce=ae,he=p.unpack,Re=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=he(n,"cmyk");var l=n[0],f=n[1],v=n[2],x=n[3],g=n.length>4?n[4]:1;return x===1?[0,0,0,g]:[l>=1?0:255*(1-l)*(1-x),f>=1?0:255*(1-f)*(1-x),v>=1?0:255*(1-v)*(1-x),g]},Ie=Re,J=D,me=P,Le=k,De=p.unpack,Ke=p.type,St=Ce;me.prototype.cmyk=function(){return St(this._rgb)},J.cmyk=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(me,[null].concat(n,["cmyk"])))},Le.format.cmyk=Ie,Le.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=De(n,"cmyk"),Ke(n)==="array"&&n.length===4)return"cmyk"}});var zr=p.unpack,Qt=p.last,qr=function(n){return Math.round(n*100)/100},qp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=zr(n,"hsla"),f=Qt(n)||"lsa";return l[0]=qr(l[0]||0),l[1]=qr(l[1]*100)+"%",l[2]=qr(l[2]*100)+"%",f==="hsla"||l.length>3&&l[3]<1?(l[3]=l.length>3?l[3]:1,f="hsla"):l.length=3,f+"("+l.join(",")+")"},Vp=qp,Up=p.unpack,Wp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Up(n,"rgba");var l=n[0],f=n[1],v=n[2];l/=255,f/=255,v/=255;var x=Math.min(l,f,v),g=Math.max(l,f,v),w=(g+x)/2,C,A;return g===x?(C=0,A=Number.NaN):C=w<.5?(g-x)/(g+x):(g-x)/(2-g-x),l==g?A=(f-v)/(g-x):f==g?A=2+(v-l)/(g-x):v==g&&(A=4+(l-f)/(g-x)),A*=60,A<0&&(A+=360),n.length>3&&n[3]!==void 0?[A,C,w,n[3]]:[A,C,w]},qa=Wp,Jp=p.unpack,Xp=p.last,Qp=Vp,Yp=qa,zn=Math.round,Kp=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=Jp(n,"rgba"),f=Xp(n)||"rgb";return f.substr(0,3)=="hsl"?Qp(Yp(l),f):(l[0]=zn(l[0]),l[1]=zn(l[1]),l[2]=zn(l[2]),(f==="rgba"||l.length>3&&l[3]<1)&&(l[3]=l.length>3?l[3]:1,f="rgba"),f+"("+l.slice(0,f==="rgb"?3:4).join(",")+")")},Zp=Kp,eh=p.unpack,qn=Math.round,th=function(){for(var n,a=[],l=arguments.length;l--;)a[l]=arguments[l];a=eh(a,"hsl");var f=a[0],v=a[1],x=a[2],g,w,C;if(v===0)g=w=C=x*255;else{var A=[0,0,0],O=[0,0,0],I=x<.5?x*(1+v):x+v-x*v,N=2*x-I,$=f/360;A[0]=$+1/3,A[1]=$,A[2]=$-1/3;for(var B=0;B<3;B++)A[B]<0&&(A[B]+=1),A[B]>1&&(A[B]-=1),6*A[B]<1?O[B]=N+(I-N)*6*A[B]:2*A[B]<1?O[B]=I:3*A[B]<2?O[B]=N+(I-N)*(2/3-A[B])*6:O[B]=N;n=[qn(O[0]*255),qn(O[1]*255),qn(O[2]*255)],g=n[0],w=n[1],C=n[2]}return a.length>3?[g,w,C,a[3]]:[g,w,C,1]},Va=th,Ua=Va,Wa=k,Ja=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Xa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Qa=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ya=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ka=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Za=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,es=Math.round,ts=function(n){n=n.toLowerCase().trim();var a;if(Wa.format.named)try{return Wa.format.named(n)}catch{}if(a=n.match(Ja)){for(var l=a.slice(1,4),f=0;f<3;f++)l[f]=+l[f];return l[3]=1,l}if(a=n.match(Xa)){for(var v=a.slice(1,5),x=0;x<4;x++)v[x]=+v[x];return v}if(a=n.match(Qa)){for(var g=a.slice(1,4),w=0;w<3;w++)g[w]=es(g[w]*2.55);return g[3]=1,g}if(a=n.match(Ya)){for(var C=a.slice(1,5),A=0;A<3;A++)C[A]=es(C[A]*2.55);return C[3]=+C[3],C}if(a=n.match(Ka)){var O=a.slice(1,4);O[1]*=.01,O[2]*=.01;var I=Ua(O);return I[3]=1,I}if(a=n.match(Za)){var N=a.slice(1,4);N[1]*=.01,N[2]*=.01;var $=Ua(N);return $[3]=+a[4],$}};ts.test=function(n){return Ja.test(n)||Xa.test(n)||Qa.test(n)||Ya.test(n)||Ka.test(n)||Za.test(n)};var rh=ts,oh=D,rs=P,os=k,nh=p.type,ih=Zp,ns=rh;rs.prototype.css=function(n){return ih(this._rgb,n)},oh.css=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(rs,[null].concat(n,["css"])))},os.format.css=ns,os.autodetect.push({p:5,test:function(n){for(var a=[],l=arguments.length-1;l-- >0;)a[l]=arguments[l+1];if(!a.length&&nh(n)==="string"&&ns.test(n))return"css"}});var is=P,ah=D,sh=k,lh=p.unpack;sh.format.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=lh(n,"rgba");return l[0]*=255,l[1]*=255,l[2]*=255,l},ah.gl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(is,[null].concat(n,["gl"])))},is.prototype.gl=function(){var n=this._rgb;return[n[0]/255,n[1]/255,n[2]/255,n[3]]};var ch=p.unpack,uh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=ch(n,"rgb"),f=l[0],v=l[1],x=l[2],g=Math.min(f,v,x),w=Math.max(f,v,x),C=w-g,A=C*100/255,O=g/(255-C)*100,I;return C===0?I=Number.NaN:(f===w&&(I=(v-x)/C),v===w&&(I=2+(x-f)/C),x===w&&(I=4+(f-v)/C),I*=60,I<0&&(I+=360)),[I,A,O]},fh=uh,dh=p.unpack,ph=Math.floor,hh=function(){for(var n,a,l,f,v,x,g=[],w=arguments.length;w--;)g[w]=arguments[w];g=dh(g,"hcg");var C=g[0],A=g[1],O=g[2],I,N,$;O=O*255;var B=A*255;if(A===0)I=N=$=O;else{C===360&&(C=0),C>360&&(C-=360),C<0&&(C+=360),C/=60;var X=ph(C),K=C-X,oe=O*(1-A),se=oe+B*(1-K),Pe=oe+B*K,Te=oe+B;switch(X){case 0:n=[Te,Pe,oe],I=n[0],N=n[1],$=n[2];break;case 1:a=[se,Te,oe],I=a[0],N=a[1],$=a[2];break;case 2:l=[oe,Te,Pe],I=l[0],N=l[1],$=l[2];break;case 3:f=[oe,se,Te],I=f[0],N=f[1],$=f[2];break;case 4:v=[Pe,oe,Te],I=v[0],N=v[1],$=v[2];break;case 5:x=[Te,oe,se],I=x[0],N=x[1],$=x[2];break}}return[I,N,$,g.length>3?g[3]:1]},mh=hh,gh=p.unpack,bh=p.type,vh=D,as=P,ss=k,yh=fh;as.prototype.hcg=function(){return yh(this._rgb)},vh.hcg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(as,[null].concat(n,["hcg"])))},ss.format.hcg=mh,ss.autodetect.push({p:1,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=gh(n,"hcg"),bh(n)==="array"&&n.length===3)return"hcg"}});var xh=p.unpack,wh=p.last,Co=Math.round,Ch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=xh(n,"rgba"),f=l[0],v=l[1],x=l[2],g=l[3],w=wh(n)||"auto";g===void 0&&(g=1),w==="auto"&&(w=g<1?"rgba":"rgb"),f=Co(f),v=Co(v),x=Co(x);var C=f<<16|v<<8|x,A="000000"+C.toString(16);A=A.substr(A.length-6);var O="0"+Co(g*255).toString(16);switch(O=O.substr(O.length-2),w.toLowerCase()){case"rgba":return"#"+A+O;case"argb":return"#"+O+A;default:return"#"+A}},ls=Ch,kh=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Sh=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Mh=function(n){if(n.match(kh)){(n.length===4||n.length===7)&&(n=n.substr(1)),n.length===3&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);var a=parseInt(n,16),l=a>>16,f=a>>8&255,v=a&255;return[l,f,v,1]}if(n.match(Sh)){(n.length===5||n.length===9)&&(n=n.substr(1)),n.length===4&&(n=n.split(""),n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]);var x=parseInt(n,16),g=x>>24&255,w=x>>16&255,C=x>>8&255,A=Math.round((x&255)/255*100)/100;return[g,w,C,A]}throw new Error("unknown hex color: "+n)},cs=Mh,Ah=D,us=P,Th=p.type,fs=k,Oh=ls;us.prototype.hex=function(n){return Oh(this._rgb,n)},Ah.hex=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(us,[null].concat(n,["hex"])))},fs.format.hex=cs,fs.autodetect.push({p:4,test:function(n){for(var a=[],l=arguments.length-1;l-- >0;)a[l]=arguments[l+1];if(!a.length&&Th(n)==="string"&&[3,4,5,6,7,8,9].indexOf(n.length)>=0)return"hex"}});var _h=p.unpack,ds=p.TWOPI,Lh=Math.min,Ph=Math.sqrt,Eh=Math.acos,Nh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=_h(n,"rgb"),f=l[0],v=l[1],x=l[2];f/=255,v/=255,x/=255;var g,w=Lh(f,v,x),C=(f+v+x)/3,A=C>0?1-w/C:0;return A===0?g=NaN:(g=(f-v+(f-x))/2,g/=Ph((f-v)*(f-v)+(f-x)*(v-x)),g=Eh(g),x>v&&(g=ds-g),g/=ds),[g*360,A,C]},jh=Nh,Rh=p.unpack,Vn=p.limit,ur=p.TWOPI,Un=p.PITHIRD,fr=Math.cos,Fh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Rh(n,"hsi");var l=n[0],f=n[1],v=n[2],x,g,w;return isNaN(l)&&(l=0),isNaN(f)&&(f=0),l>360&&(l-=360),l<0&&(l+=360),l/=360,l<1/3?(w=(1-f)/3,x=(1+f*fr(ur*l)/fr(Un-ur*l))/3,g=1-(w+x)):l<2/3?(l-=1/3,x=(1-f)/3,g=(1+f*fr(ur*l)/fr(Un-ur*l))/3,w=1-(x+g)):(l-=2/3,g=(1-f)/3,w=(1+f*fr(ur*l)/fr(Un-ur*l))/3,x=1-(g+w)),x=Vn(v*x*3),g=Vn(v*g*3),w=Vn(v*w*3),[x*255,g*255,w*255,n.length>3?n[3]:1]},Ih=Fh,Dh=p.unpack,Bh=p.type,$h=D,ps=P,hs=k,Gh=jh;ps.prototype.hsi=function(){return Gh(this._rgb)},$h.hsi=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ps,[null].concat(n,["hsi"])))},hs.format.hsi=Ih,hs.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Dh(n,"hsi"),Bh(n)==="array"&&n.length===3)return"hsi"}});var Hh=p.unpack,zh=p.type,qh=D,ms=P,gs=k,Vh=qa;ms.prototype.hsl=function(){return Vh(this._rgb)},qh.hsl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(ms,[null].concat(n,["hsl"])))},gs.format.hsl=Va,gs.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Hh(n,"hsl"),zh(n)==="array"&&n.length===3)return"hsl"}});var Uh=p.unpack,Wh=Math.min,Jh=Math.max,Xh=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Uh(n,"rgb");var l=n[0],f=n[1],v=n[2],x=Wh(l,f,v),g=Jh(l,f,v),w=g-x,C,A,O;return O=g/255,g===0?(C=Number.NaN,A=0):(A=w/g,l===g&&(C=(f-v)/w),f===g&&(C=2+(v-l)/w),v===g&&(C=4+(l-f)/w),C*=60,C<0&&(C+=360)),[C,A,O]},Qh=Xh,Yh=p.unpack,Kh=Math.floor,Zh=function(){for(var n,a,l,f,v,x,g=[],w=arguments.length;w--;)g[w]=arguments[w];g=Yh(g,"hsv");var C=g[0],A=g[1],O=g[2],I,N,$;if(O*=255,A===0)I=N=$=O;else{C===360&&(C=0),C>360&&(C-=360),C<0&&(C+=360),C/=60;var B=Kh(C),X=C-B,K=O*(1-A),oe=O*(1-A*X),se=O*(1-A*(1-X));switch(B){case 0:n=[O,se,K],I=n[0],N=n[1],$=n[2];break;case 1:a=[oe,O,K],I=a[0],N=a[1],$=a[2];break;case 2:l=[K,O,se],I=l[0],N=l[1],$=l[2];break;case 3:f=[K,oe,O],I=f[0],N=f[1],$=f[2];break;case 4:v=[se,K,O],I=v[0],N=v[1],$=v[2];break;case 5:x=[O,K,oe],I=x[0],N=x[1],$=x[2];break}}return[I,N,$,g.length>3?g[3]:1]},em=Zh,tm=p.unpack,rm=p.type,om=D,bs=P,vs=k,nm=Qh;bs.prototype.hsv=function(){return nm(this._rgb)},om.hsv=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(bs,[null].concat(n,["hsv"])))},vs.format.hsv=em,vs.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=tm(n,"hsv"),rm(n)==="array"&&n.length===3)return"hsv"}});var ko={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},dr=ko,im=p.unpack,ys=Math.pow,am=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=im(n,"rgb"),f=l[0],v=l[1],x=l[2],g=sm(f,v,x),w=g[0],C=g[1],A=g[2],O=116*C-16;return[O<0?0:O,500*(w-C),200*(C-A)]},Wn=function(n){return(n/=255)<=.04045?n/12.92:ys((n+.055)/1.055,2.4)},Jn=function(n){return n>dr.t3?ys(n,1/3):n/dr.t2+dr.t0},sm=function(n,a,l){n=Wn(n),a=Wn(a),l=Wn(l);var f=Jn((.4124564*n+.3575761*a+.1804375*l)/dr.Xn),v=Jn((.2126729*n+.7151522*a+.072175*l)/dr.Yn),x=Jn((.0193339*n+.119192*a+.9503041*l)/dr.Zn);return[f,v,x]},xs=am,pr=ko,lm=p.unpack,cm=Math.pow,um=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=lm(n,"lab");var l=n[0],f=n[1],v=n[2],x,g,w,C,A,O;return g=(l+16)/116,x=isNaN(f)?g:g+f/500,w=isNaN(v)?g:g-v/200,g=pr.Yn*Qn(g),x=pr.Xn*Qn(x),w=pr.Zn*Qn(w),C=Xn(3.2404542*x-1.5371385*g-.4985314*w),A=Xn(-.969266*x+1.8760108*g+.041556*w),O=Xn(.0556434*x-.2040259*g+1.0572252*w),[C,A,O,n.length>3?n[3]:1]},Xn=function(n){return 255*(n<=.00304?12.92*n:1.055*cm(n,1/2.4)-.055)},Qn=function(n){return n>pr.t1?n*n*n:pr.t2*(n-pr.t0)},ws=um,fm=p.unpack,dm=p.type,pm=D,Cs=P,ks=k,hm=xs;Cs.prototype.lab=function(){return hm(this._rgb)},pm.lab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Cs,[null].concat(n,["lab"])))},ks.format.lab=ws,ks.autodetect.push({p:2,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=fm(n,"lab"),dm(n)==="array"&&n.length===3)return"lab"}});var mm=p.unpack,gm=p.RAD2DEG,bm=Math.sqrt,vm=Math.atan2,ym=Math.round,xm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=mm(n,"lab"),f=l[0],v=l[1],x=l[2],g=bm(v*v+x*x),w=(vm(x,v)*gm+360)%360;return ym(g*1e4)===0&&(w=Number.NaN),[f,g,w]},Ss=xm,wm=p.unpack,Cm=xs,km=Ss,Sm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=wm(n,"rgb"),f=l[0],v=l[1],x=l[2],g=Cm(f,v,x),w=g[0],C=g[1],A=g[2];return km(w,C,A)},Mm=Sm,Am=p.unpack,Tm=p.DEG2RAD,Om=Math.sin,_m=Math.cos,Lm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=Am(n,"lch"),f=l[0],v=l[1],x=l[2];return isNaN(x)&&(x=0),x=x*Tm,[f,_m(x)*v,Om(x)*v]},Ms=Lm,Pm=p.unpack,Em=Ms,Nm=ws,jm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Pm(n,"lch");var l=n[0],f=n[1],v=n[2],x=Em(l,f,v),g=x[0],w=x[1],C=x[2],A=Nm(g,w,C),O=A[0],I=A[1],N=A[2];return[O,I,N,n.length>3?n[3]:1]},As=jm,Rm=p.unpack,Fm=As,Im=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=Rm(n,"hcl").reverse();return Fm.apply(void 0,l)},Dm=Im,Bm=p.unpack,$m=p.type,Ts=D,So=P,Yn=k,Os=Mm;So.prototype.lch=function(){return Os(this._rgb)},So.prototype.hcl=function(){return Os(this._rgb).reverse()},Ts.lch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(So,[null].concat(n,["lch"])))},Ts.hcl=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(So,[null].concat(n,["hcl"])))},Yn.format.lch=As,Yn.format.hcl=Dm,["lch","hcl"].forEach(function(n){return Yn.autodetect.push({p:2,test:function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];if(a=Bm(a,n),$m(a)==="array"&&a.length===3)return n}})});var Gm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_s=Gm,Hm=P,Ls=k,zm=p.type,Vr=_s,qm=cs,Vm=ls;Hm.prototype.name=function(){for(var n=Vm(this._rgb,"rgb"),a=0,l=Object.keys(Vr);a<l.length;a+=1){var f=l[a];if(Vr[f]===n)return f.toLowerCase()}return n},Ls.format.named=function(n){if(n=n.toLowerCase(),Vr[n])return qm(Vr[n]);throw new Error("unknown color name: "+n)},Ls.autodetect.push({p:5,test:function(n){for(var a=[],l=arguments.length-1;l-- >0;)a[l]=arguments[l+1];if(!a.length&&zm(n)==="string"&&Vr[n.toLowerCase()])return"named"}});var Um=p.unpack,Wm=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=Um(n,"rgb"),f=l[0],v=l[1],x=l[2];return(f<<16)+(v<<8)+x},Jm=Wm,Xm=p.type,Qm=function(n){if(Xm(n)=="number"&&n>=0&&n<=16777215){var a=n>>16,l=n>>8&255,f=n&255;return[a,l,f,1]}throw new Error("unknown num color: "+n)},Ym=Qm,Km=D,Ps=P,Es=k,Zm=p.type,eg=Jm;Ps.prototype.num=function(){return eg(this._rgb)},Km.num=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Ps,[null].concat(n,["num"])))},Es.format.num=Ym,Es.autodetect.push({p:5,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n.length===1&&Zm(n[0])==="number"&&n[0]>=0&&n[0]<=16777215)return"num"}});var tg=D,Kn=P,Ns=k,js=p.unpack,Rs=p.type,Fs=Math.round;Kn.prototype.rgb=function(n){return n===void 0&&(n=!0),n===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Fs)},Kn.prototype.rgba=function(n){return n===void 0&&(n=!0),this._rgb.slice(0,4).map(function(a,l){return l<3?n===!1?a:Fs(a):a})},tg.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Kn,[null].concat(n,["rgb"])))},Ns.format.rgb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=js(n,"rgba");return l[3]===void 0&&(l[3]=1),l},Ns.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=js(n,"rgba"),Rs(n)==="array"&&(n.length===3||n.length===4&&Rs(n[3])=="number"&&n[3]>=0&&n[3]<=1))return"rgb"}});var Mo=Math.log,rg=function(n){var a=n/100,l,f,v;return a<66?(l=255,f=a<6?0:-155.25485562709179-.44596950469579133*(f=a-2)+104.49216199393888*Mo(f),v=a<20?0:-254.76935184120902+.8274096064007395*(v=a-10)+115.67994401066147*Mo(v)):(l=351.97690566805693+.114206453784165*(l=a-55)-40.25366309332127*Mo(l),f=325.4494125711974+.07943456536662342*(f=a-50)-28.0852963507957*Mo(f),v=255),[l,f,v,1]},Is=rg,og=Is,ng=p.unpack,ig=Math.round,ag=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];for(var l=ng(n,"rgb"),f=l[0],v=l[2],x=1e3,g=4e4,w=.4,C;g-x>w;){C=(g+x)*.5;var A=og(C);A[2]/A[0]>=v/f?g=C:x=C}return ig(C)},sg=ag,Zn=D,Ao=P,ei=k,lg=sg;Ao.prototype.temp=Ao.prototype.kelvin=Ao.prototype.temperature=function(){return lg(this._rgb)},Zn.temp=Zn.kelvin=Zn.temperature=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Ao,[null].concat(n,["temp"])))},ei.format.temp=ei.format.kelvin=ei.format.temperature=Is;var cg=p.unpack,ti=Math.cbrt,ug=Math.pow,fg=Math.sign,dg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=cg(n,"rgb"),f=l[0],v=l[1],x=l[2],g=[ri(f/255),ri(v/255),ri(x/255)],w=g[0],C=g[1],A=g[2],O=ti(.4122214708*w+.5363325363*C+.0514459929*A),I=ti(.2119034982*w+.6806995451*C+.1073969566*A),N=ti(.0883024619*w+.2817188376*C+.6299787005*A);return[.2104542553*O+.793617785*I-.0040720468*N,1.9779984951*O-2.428592205*I+.4505937099*N,.0259040371*O+.7827717662*I-.808675766*N]},Ds=dg;function ri(n){var a=Math.abs(n);return a<.04045?n/12.92:(fg(n)||1)*ug((a+.055)/1.055,2.4)}var pg=p.unpack,To=Math.pow,hg=Math.sign,mg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=pg(n,"lab");var l=n[0],f=n[1],v=n[2],x=To(l+.3963377774*f+.2158037573*v,3),g=To(l-.1055613458*f-.0638541728*v,3),w=To(l-.0894841775*f-1.291485548*v,3);return[255*oi(4.0767416621*x-3.3077115913*g+.2309699292*w),255*oi(-1.2684380046*x+2.6097574011*g-.3413193965*w),255*oi(-.0041960863*x-.7034186147*g+1.707614701*w),n.length>3?n[3]:1]},Bs=mg;function oi(n){var a=Math.abs(n);return a>.0031308?(hg(n)||1)*(1.055*To(a,1/2.4)-.055):n*12.92}var gg=p.unpack,bg=p.type,vg=D,$s=P,Gs=k,yg=Ds;$s.prototype.oklab=function(){return yg(this._rgb)},vg.oklab=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply($s,[null].concat(n,["oklab"])))},Gs.format.oklab=Bs,Gs.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=gg(n,"oklab"),bg(n)==="array"&&n.length===3)return"oklab"}});var xg=p.unpack,wg=Ds,Cg=Ss,kg=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];var l=xg(n,"rgb"),f=l[0],v=l[1],x=l[2],g=wg(f,v,x),w=g[0],C=g[1],A=g[2];return Cg(w,C,A)},Sg=kg,Mg=p.unpack,Ag=Ms,Tg=Bs,Og=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];n=Mg(n,"lch");var l=n[0],f=n[1],v=n[2],x=Ag(l,f,v),g=x[0],w=x[1],C=x[2],A=Tg(g,w,C),O=A[0],I=A[1],N=A[2];return[O,I,N,n.length>3?n[3]:1]},_g=Og,Lg=p.unpack,Pg=p.type,Eg=D,Hs=P,zs=k,Ng=Sg;Hs.prototype.oklch=function(){return Ng(this._rgb)},Eg.oklch=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return new(Function.prototype.bind.apply(Hs,[null].concat(n,["oklch"])))},zs.format.oklch=_g,zs.autodetect.push({p:3,test:function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(n=Lg(n,"oklch"),Pg(n)==="array"&&n.length===3)return"oklch"}});var qs=P,jg=p.type;qs.prototype.alpha=function(n,a){return a===void 0&&(a=!1),n!==void 0&&jg(n)==="number"?a?(this._rgb[3]=n,this):new qs([this._rgb[0],this._rgb[1],this._rgb[2],n],"rgb"):this._rgb[3]};var Rg=P;Rg.prototype.clipped=function(){return this._rgb._clipped||!1};var Yt=P,Fg=ko;Yt.prototype.darken=function(n){n===void 0&&(n=1);var a=this,l=a.lab();return l[0]-=Fg.Kn*n,new Yt(l,"lab").alpha(a.alpha(),!0)},Yt.prototype.brighten=function(n){return n===void 0&&(n=1),this.darken(-n)},Yt.prototype.darker=Yt.prototype.darken,Yt.prototype.brighter=Yt.prototype.brighten;var Ig=P;Ig.prototype.get=function(n){var a=n.split("."),l=a[0],f=a[1],v=this[l]();if(f){var x=l.indexOf(f)-(l.substr(0,2)==="ok"?2:0);if(x>-1)return v[x];throw new Error("unknown channel "+f+" in mode "+l)}else return v};var hr=P,Dg=p.type,Bg=Math.pow,$g=1e-7,Gg=20;hr.prototype.luminance=function(n){if(n!==void 0&&Dg(n)==="number"){if(n===0)return new hr([0,0,0,this._rgb[3]],"rgb");if(n===1)return new hr([255,255,255,this._rgb[3]],"rgb");var a=this.luminance(),l="rgb",f=Gg,v=function(g,w){var C=g.interpolate(w,.5,l),A=C.luminance();return Math.abs(n-A)<$g||!f--?C:A>n?v(g,C):v(C,w)},x=(a>n?v(new hr([0,0,0]),this):v(this,new hr([255,255,255]))).rgb();return new hr(x.concat([this._rgb[3]]))}return Hg.apply(void 0,this._rgb.slice(0,3))};var Hg=function(n,a,l){return n=ni(n),a=ni(a),l=ni(l),.2126*n+.7152*a+.0722*l},ni=function(n){return n/=255,n<=.03928?n/12.92:Bg((n+.055)/1.055,2.4)},qe={},Vs=P,Us=p.type,Oo=qe,Ws=function(n,a,l){l===void 0&&(l=.5);for(var f=[],v=arguments.length-3;v-- >0;)f[v]=arguments[v+3];var x=f[0]||"lrgb";if(!Oo[x]&&!f.length&&(x=Object.keys(Oo)[0]),!Oo[x])throw new Error("interpolation mode "+x+" is not defined");return Us(n)!=="object"&&(n=new Vs(n)),Us(a)!=="object"&&(a=new Vs(a)),Oo[x](n,a,l).alpha(n.alpha()+l*(a.alpha()-n.alpha()))},Js=P,zg=Ws;Js.prototype.mix=Js.prototype.interpolate=function(n,a){a===void 0&&(a=.5);for(var l=[],f=arguments.length-2;f-- >0;)l[f]=arguments[f+2];return zg.apply(void 0,[this,n,a].concat(l))};var Xs=P;Xs.prototype.premultiply=function(n){n===void 0&&(n=!1);var a=this._rgb,l=a[3];return n?(this._rgb=[a[0]*l,a[1]*l,a[2]*l,l],this):new Xs([a[0]*l,a[1]*l,a[2]*l,l],"rgb")};var ii=P,qg=ko;ii.prototype.saturate=function(n){n===void 0&&(n=1);var a=this,l=a.lch();return l[1]+=qg.Kn*n,l[1]<0&&(l[1]=0),new ii(l,"lch").alpha(a.alpha(),!0)},ii.prototype.desaturate=function(n){return n===void 0&&(n=1),this.saturate(-n)};var Qs=P,Ys=p.type;Qs.prototype.set=function(n,a,l){l===void 0&&(l=!1);var f=n.split("."),v=f[0],x=f[1],g=this[v]();if(x){var w=v.indexOf(x)-(v.substr(0,2)==="ok"?2:0);if(w>-1){if(Ys(a)=="string")switch(a.charAt(0)){case"+":g[w]+=+a;break;case"-":g[w]+=+a;break;case"*":g[w]*=+a.substr(1);break;case"/":g[w]/=+a.substr(1);break;default:g[w]=+a}else if(Ys(a)==="number")g[w]=a;else throw new Error("unsupported value for Color.set");var C=new Qs(g,v);return l?(this._rgb=C._rgb,this):C}throw new Error("unknown channel "+x+" in mode "+v)}else return g};var Vg=P,Ug=function(n,a,l){var f=n._rgb,v=a._rgb;return new Vg(f[0]+l*(v[0]-f[0]),f[1]+l*(v[1]-f[1]),f[2]+l*(v[2]-f[2]),"rgb")};qe.rgb=Ug;var Wg=P,ai=Math.sqrt,mr=Math.pow,Jg=function(n,a,l){var f=n._rgb,v=f[0],x=f[1],g=f[2],w=a._rgb,C=w[0],A=w[1],O=w[2];return new Wg(ai(mr(v,2)*(1-l)+mr(C,2)*l),ai(mr(x,2)*(1-l)+mr(A,2)*l),ai(mr(g,2)*(1-l)+mr(O,2)*l),"rgb")};qe.lrgb=Jg;var Xg=P,Qg=function(n,a,l){var f=n.lab(),v=a.lab();return new Xg(f[0]+l*(v[0]-f[0]),f[1]+l*(v[1]-f[1]),f[2]+l*(v[2]-f[2]),"lab")};qe.lab=Qg;var Ks=P,gr=function(n,a,l,f){var v,x,g,w;f==="hsl"?(g=n.hsl(),w=a.hsl()):f==="hsv"?(g=n.hsv(),w=a.hsv()):f==="hcg"?(g=n.hcg(),w=a.hcg()):f==="hsi"?(g=n.hsi(),w=a.hsi()):f==="lch"||f==="hcl"?(f="hcl",g=n.hcl(),w=a.hcl()):f==="oklch"&&(g=n.oklch().reverse(),w=a.oklch().reverse());var C,A,O,I,N,$;(f.substr(0,1)==="h"||f==="oklch")&&(v=g,C=v[0],O=v[1],N=v[2],x=w,A=x[0],I=x[1],$=x[2]);var B,X,K,oe;return!isNaN(C)&&!isNaN(A)?(A>C&&A-C>180?oe=A-(C+360):A<C&&C-A>180?oe=A+360-C:oe=A-C,X=C+l*oe):isNaN(C)?isNaN(A)?X=Number.NaN:(X=A,(N==1||N==0)&&f!="hsv"&&(B=I)):(X=C,($==1||$==0)&&f!="hsv"&&(B=O)),B===void 0&&(B=O+l*(I-O)),K=N+l*($-N),f==="oklch"?new Ks([K,B,X],f):new Ks([X,B,K],f)},Yg=gr,Zs=function(n,a,l){return Yg(n,a,l,"lch")};qe.lch=Zs,qe.hcl=Zs;var Kg=P,Zg=function(n,a,l){var f=n.num(),v=a.num();return new Kg(f+l*(v-f),"num")};qe.num=Zg;var eb=gr,tb=function(n,a,l){return eb(n,a,l,"hcg")};qe.hcg=tb;var rb=gr,ob=function(n,a,l){return rb(n,a,l,"hsi")};qe.hsi=ob;var nb=gr,ib=function(n,a,l){return nb(n,a,l,"hsl")};qe.hsl=ib;var ab=gr,sb=function(n,a,l){return ab(n,a,l,"hsv")};qe.hsv=sb;var lb=P,cb=function(n,a,l){var f=n.oklab(),v=a.oklab();return new lb(f[0]+l*(v[0]-f[0]),f[1]+l*(v[1]-f[1]),f[2]+l*(v[2]-f[2]),"oklab")};qe.oklab=cb;var ub=gr,fb=function(n,a,l){return ub(n,a,l,"oklch")};qe.oklch=fb;var si=P,db=p.clip_rgb,li=Math.pow,ci=Math.sqrt,ui=Math.PI,el=Math.cos,tl=Math.sin,pb=Math.atan2,hb=function(n,a,l){a===void 0&&(a="lrgb"),l===void 0&&(l=null);var f=n.length;l||(l=Array.from(new Array(f)).map(function(){return 1}));var v=f/l.reduce(function(X,K){return X+K});if(l.forEach(function(X,K){l[K]*=v}),n=n.map(function(X){return new si(X)}),a==="lrgb")return mb(n,l);for(var x=n.shift(),g=x.get(a),w=[],C=0,A=0,O=0;O<g.length;O++)if(g[O]=(g[O]||0)*l[0],w.push(isNaN(g[O])?0:l[0]),a.charAt(O)==="h"&&!isNaN(g[O])){var I=g[O]/180*ui;C+=el(I)*l[0],A+=tl(I)*l[0]}var N=x.alpha()*l[0];n.forEach(function(X,K){var oe=X.get(a);N+=X.alpha()*l[K+1];for(var se=0;se<g.length;se++)if(!isNaN(oe[se]))if(w[se]+=l[K+1],a.charAt(se)==="h"){var Pe=oe[se]/180*ui;C+=el(Pe)*l[K+1],A+=tl(Pe)*l[K+1]}else g[se]+=oe[se]*l[K+1]});for(var $=0;$<g.length;$++)if(a.charAt($)==="h"){for(var B=pb(A/w[$],C/w[$])/ui*180;B<0;)B+=360;for(;B>=360;)B-=360;g[$]=B}else g[$]=g[$]/w[$];return N/=f,new si(g,a).alpha(N>.99999?1:N,!0)},mb=function(n,a){for(var l=n.length,f=[0,0,0,0],v=0;v<n.length;v++){var x=n[v],g=a[v]/l,w=x._rgb;f[0]+=li(w[0],2)*g,f[1]+=li(w[1],2)*g,f[2]+=li(w[2],2)*g,f[3]+=w[3]*g}return f[0]=ci(f[0]),f[1]=ci(f[1]),f[2]=ci(f[2]),f[3]>.9999999&&(f[3]=1),new si(db(f))},nt=D,br=p.type,gb=Math.pow,fi=function(n){var a="rgb",l=nt("#ccc"),f=0,v=[0,1],x=[],g=[0,0],w=!1,C=[],A=!1,O=0,I=1,N=!1,$={},B=!0,X=1,K=function(j){if(j=j||["#fff","#000"],j&&br(j)==="string"&&nt.brewer&&nt.brewer[j.toLowerCase()]&&(j=nt.brewer[j.toLowerCase()]),br(j)==="array"){j.length===1&&(j=[j[0],j[0]]),j=j.slice(0);for(var q=0;q<j.length;q++)j[q]=nt(j[q]);x.length=0;for(var Y=0;Y<j.length;Y++)x.push(Y/(j.length-1))}return Be(),C=j},oe=function(j){if(w!=null){for(var q=w.length-1,Y=0;Y<q&&j>=w[Y];)Y++;return Y-1}return 0},se=function(j){return j},Pe=function(j){return j},Te=function(j,q){var Y,Q;if(q==null&&(q=!1),isNaN(j)||j===null)return l;if(q)Q=j;else if(w&&w.length>2){var Ee=oe(j);Q=Ee/(w.length-2)}else I!==O?Q=(j-O)/(I-O):Q=1;Q=Pe(Q),q||(Q=se(Q)),X!==1&&(Q=gb(Q,X)),Q=g[0]+Q*(1-g[0]-g[1]),Q=Math.min(1,Math.max(0,Q));var de=Math.floor(Q*1e4);if(B&&$[de])Y=$[de];else{if(br(C)==="array")for(var ne=0;ne<x.length;ne++){var le=x[ne];if(Q<=le){Y=C[ne];break}if(Q>=le&&ne===x.length-1){Y=C[ne];break}if(Q>le&&Q<x[ne+1]){Q=(Q-le)/(x[ne+1]-le),Y=nt.interpolate(C[ne],C[ne+1],Q,a);break}}else br(C)==="function"&&(Y=C(Q));B&&($[de]=Y)}return Y},Be=function(){return $={}};K(n);var te=function(j){var q=nt(Te(j));return A&&q[A]?q[A]():q};return te.classes=function(j){if(j!=null){if(br(j)==="array")w=j,v=[j[0],j[j.length-1]];else{var q=nt.analyze(v);j===0?w=[q.min,q.max]:w=nt.limits(q,"e",j)}return te}return w},te.domain=function(j){if(!arguments.length)return v;O=j[0],I=j[j.length-1],x=[];var q=C.length;if(j.length===q&&O!==I)for(var Y=0,Q=Array.from(j);Y<Q.length;Y+=1){var Ee=Q[Y];x.push((Ee-O)/(I-O))}else{for(var de=0;de<q;de++)x.push(de/(q-1));if(j.length>2){var ne=j.map(function(ce,ue){return ue/(j.length-1)}),le=j.map(function(ce){return(ce-O)/(I-O)});le.every(function(ce,ue){return ne[ue]===ce})||(Pe=function(ce){if(ce<=0||ce>=1)return ce;for(var ue=0;ce>=le[ue+1];)ue++;var at=(ce-le[ue])/(le[ue+1]-le[ue]),Bt=ne[ue]+at*(ne[ue+1]-ne[ue]);return Bt})}}return v=[O,I],te},te.mode=function(j){return arguments.length?(a=j,Be(),te):a},te.range=function(j,q){return K(j),te},te.out=function(j){return A=j,te},te.spread=function(j){return arguments.length?(f=j,te):f},te.correctLightness=function(j){return j==null&&(j=!0),N=j,Be(),N?se=function(q){for(var Y=Te(0,!0).lab()[0],Q=Te(1,!0).lab()[0],Ee=Y>Q,de=Te(q,!0).lab()[0],ne=Y+(Q-Y)*q,le=de-ne,ce=0,ue=1,at=20;Math.abs(le)>.01&&at-- >0;)(function(){return Ee&&(le*=-1),le<0?(ce=q,q+=(ue-q)*.5):(ue=q,q+=(ce-q)*.5),de=Te(q,!0).lab()[0],le=de-ne})();return q}:se=function(q){return q},te},te.padding=function(j){return j!=null?(br(j)==="number"&&(j=[j,j]),g=j,te):g},te.colors=function(j,q){arguments.length<2&&(q="hex");var Y=[];if(arguments.length===0)Y=C.slice(0);else if(j===1)Y=[te(.5)];else if(j>1){var Q=v[0],Ee=v[1]-Q;Y=bb(0,j,!1).map(function(ue){return te(Q+ue/(j-1)*Ee)})}else{n=[];var de=[];if(w&&w.length>2)for(var ne=1,le=w.length,ce=1<=le;ce?ne<le:ne>le;ce?ne++:ne--)de.push((w[ne-1]+w[ne])*.5);else de=v;Y=de.map(function(ue){return te(ue)})}return nt[q]&&(Y=Y.map(function(ue){return ue[q]()})),Y},te.cache=function(j){return j!=null?(B=j,te):B},te.gamma=function(j){return j!=null?(X=j,te):X},te.nodata=function(j){return j!=null?(l=nt(j),te):l},te};function bb(n,a,l){for(var f=[],v=n<a,x=l?v?a+1:a-1:a,g=n;v?g<x:g>x;v?g++:g--)f.push(g);return f}var Ur=P,vb=fi,yb=function(n){for(var a=[1,1],l=1;l<n;l++){for(var f=[1],v=1;v<=a.length;v++)f[v]=(a[v]||0)+a[v-1];a=f}return a},xb=function(n){var a,l,f,v,x,g,w;if(n=n.map(function(N){return new Ur(N)}),n.length===2)a=n.map(function(N){return N.lab()}),x=a[0],g=a[1],v=function(N){var $=[0,1,2].map(function(B){return x[B]+N*(g[B]-x[B])});return new Ur($,"lab")};else if(n.length===3)l=n.map(function(N){return N.lab()}),x=l[0],g=l[1],w=l[2],v=function(N){var $=[0,1,2].map(function(B){return(1-N)*(1-N)*x[B]+2*(1-N)*N*g[B]+N*N*w[B]});return new Ur($,"lab")};else if(n.length===4){var C;f=n.map(function(N){return N.lab()}),x=f[0],g=f[1],w=f[2],C=f[3],v=function(N){var $=[0,1,2].map(function(B){return(1-N)*(1-N)*(1-N)*x[B]+3*(1-N)*(1-N)*N*g[B]+3*(1-N)*N*N*w[B]+N*N*N*C[B]});return new Ur($,"lab")}}else if(n.length>=5){var A,O,I;A=n.map(function(N){return N.lab()}),I=n.length-1,O=yb(I),v=function(N){var $=1-N,B=[0,1,2].map(function(X){return A.reduce(function(K,oe,se){return K+O[se]*Math.pow($,I-se)*Math.pow(N,se)*oe[X]},0)});return new Ur(B,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return v},wb=function(n){var a=xb(n);return a.scale=function(){return vb(a)},a},di=D,it=function(n,a,l){if(!it[l])throw new Error("unknown blend mode "+l);return it[l](n,a)},It=function(n){return function(a,l){var f=di(l).rgb(),v=di(a).rgb();return di.rgb(n(f,v))}},Dt=function(n){return function(a,l){var f=[];return f[0]=n(a[0],l[0]),f[1]=n(a[1],l[1]),f[2]=n(a[2],l[2]),f}},Cb=function(n){return n},kb=function(n,a){return n*a/255},Sb=function(n,a){return n>a?a:n},Mb=function(n,a){return n>a?n:a},Ab=function(n,a){return 255*(1-(1-n/255)*(1-a/255))},Tb=function(n,a){return a<128?2*n*a/255:255*(1-2*(1-n/255)*(1-a/255))},Ob=function(n,a){return 255*(1-(1-a/255)/(n/255))},_b=function(n,a){return n===255?255:(n=255*(a/255)/(1-n/255),n>255?255:n)};it.normal=It(Dt(Cb)),it.multiply=It(Dt(kb)),it.screen=It(Dt(Ab)),it.overlay=It(Dt(Tb)),it.darken=It(Dt(Sb)),it.lighten=It(Dt(Mb)),it.dodge=It(Dt(_b)),it.burn=It(Dt(Ob));for(var Lb=it,pi=p.type,Pb=p.clip_rgb,Eb=p.TWOPI,Nb=Math.pow,jb=Math.sin,Rb=Math.cos,rl=D,Fb=function(n,a,l,f,v){n===void 0&&(n=300),a===void 0&&(a=-1.5),l===void 0&&(l=1),f===void 0&&(f=1),v===void 0&&(v=[0,1]);var x=0,g;pi(v)==="array"?g=v[1]-v[0]:(g=0,v=[v,v]);var w=function(C){var A=Eb*((n+120)/360+a*C),O=Nb(v[0]+g*C,f),I=x!==0?l[0]+C*x:l,N=I*O*(1-O)/2,$=Rb(A),B=jb(A),X=O+N*(-.14861*$+1.78277*B),K=O+N*(-.29227*$-.90649*B),oe=O+N*(1.97294*$);return rl(Pb([X*255,K*255,oe*255,1]))};return w.start=function(C){return C==null?n:(n=C,w)},w.rotations=function(C){return C==null?a:(a=C,w)},w.gamma=function(C){return C==null?f:(f=C,w)},w.hue=function(C){return C==null?l:(l=C,pi(l)==="array"?(x=l[1]-l[0],x===0&&(l=l[1])):x=0,w)},w.lightness=function(C){return C==null?v:(pi(C)==="array"?(v=C,g=C[1]-C[0]):(v=[C,C],g=0),w)},w.scale=function(){return rl.scale(w)},w.hue(l),w},Ib=P,Db="0123456789abcdef",Bb=Math.floor,$b=Math.random,Gb=function(){for(var n="#",a=0;a<6;a++)n+=Db.charAt(Bb($b()*16));return new Ib(n,"hex")},hi=u,ol=Math.log,Hb=Math.pow,zb=Math.floor,qb=Math.abs,nl=function(n,a){a===void 0&&(a=null);var l={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return hi(n)==="object"&&(n=Object.values(n)),n.forEach(function(f){a&&hi(f)==="object"&&(f=f[a]),f!=null&&!isNaN(f)&&(l.values.push(f),l.sum+=f,f<l.min&&(l.min=f),f>l.max&&(l.max=f),l.count+=1)}),l.domain=[l.min,l.max],l.limits=function(f,v){return il(l,f,v)},l},il=function(n,a,l){a===void 0&&(a="equal"),l===void 0&&(l=7),hi(n)=="array"&&(n=nl(n));var f=n.min,v=n.max,x=n.values.sort(function(gi,bi){return gi-bi});if(l===1)return[f,v];var g=[];if(a.substr(0,1)==="c"&&(g.push(f),g.push(v)),a.substr(0,1)==="e"){g.push(f);for(var w=1;w<l;w++)g.push(f+w/l*(v-f));g.push(v)}else if(a.substr(0,1)==="l"){if(f<=0)throw new Error("Logarithmic scales are only possible for values > 0");var C=Math.LOG10E*ol(f),A=Math.LOG10E*ol(v);g.push(f);for(var O=1;O<l;O++)g.push(Hb(10,C+O/l*(A-C)));g.push(v)}else if(a.substr(0,1)==="q"){g.push(f);for(var I=1;I<l;I++){var N=(x.length-1)*I/l,$=zb(N);if($===N)g.push(x[$]);else{var B=N-$;g.push(x[$]*(1-B)+x[$+1]*B)}}g.push(v)}else if(a.substr(0,1)==="k"){var X,K=x.length,oe=new Array(K),se=new Array(l),Pe=!0,Te=0,Be=null;Be=[],Be.push(f);for(var te=1;te<l;te++)Be.push(f+te/l*(v-f));for(Be.push(v);Pe;){for(var j=0;j<l;j++)se[j]=0;for(var q=0;q<K;q++)for(var Y=x[q],Q=Number.MAX_VALUE,Ee=void 0,de=0;de<l;de++){var ne=qb(Be[de]-Y);ne<Q&&(Q=ne,Ee=de),se[Ee]++,oe[q]=Ee}for(var le=new Array(l),ce=0;ce<l;ce++)le[ce]=null;for(var ue=0;ue<K;ue++)X=oe[ue],le[X]===null?le[X]=x[ue]:le[X]+=x[ue];for(var at=0;at<l;at++)le[at]*=1/se[at];Pe=!1;for(var Bt=0;Bt<l;Bt++)if(le[Bt]!==Be[Bt]){Pe=!0;break}Be=le,Te++,Te>200&&(Pe=!1)}for(var $t={},vr=0;vr<l;vr++)$t[vr]=[];for(var yr=0;yr<K;yr++)X=oe[yr],$t[X].push(x[yr]);for(var At=[],Kt=0;Kt<l;Kt++)At.push($t[Kt][0]),At.push($t[Kt][$t[Kt].length-1]);At=At.sort(function(gi,bi){return gi-bi}),g.push(At[0]);for(var Wr=1;Wr<At.length;Wr+=2){var Zt=At[Wr];!isNaN(Zt)&&g.indexOf(Zt)===-1&&g.push(Zt)}}return g},al={analyze:nl,limits:il},sl=P,Vb=function(n,a){n=new sl(n),a=new sl(a);var l=n.luminance(),f=a.luminance();return l>f?(l+.05)/(f+.05):(f+.05)/(l+.05)},ll=P,Mt=Math.sqrt,xe=Math.pow,Ub=Math.min,Wb=Math.max,cl=Math.atan2,ul=Math.abs,_o=Math.cos,fl=Math.sin,Jb=Math.exp,dl=Math.PI,Xb=function(n,a,l,f,v){l===void 0&&(l=1),f===void 0&&(f=1),v===void 0&&(v=1);var x=function(Zt){return 360*Zt/(2*dl)},g=function(Zt){return 2*dl*Zt/360};n=new ll(n),a=new ll(a);var w=Array.from(n.lab()),C=w[0],A=w[1],O=w[2],I=Array.from(a.lab()),N=I[0],$=I[1],B=I[2],X=(C+N)/2,K=Mt(xe(A,2)+xe(O,2)),oe=Mt(xe($,2)+xe(B,2)),se=(K+oe)/2,Pe=.5*(1-Mt(xe(se,7)/(xe(se,7)+xe(25,7)))),Te=A*(1+Pe),Be=$*(1+Pe),te=Mt(xe(Te,2)+xe(O,2)),j=Mt(xe(Be,2)+xe(B,2)),q=(te+j)/2,Y=x(cl(O,Te)),Q=x(cl(B,Be)),Ee=Y>=0?Y:Y+360,de=Q>=0?Q:Q+360,ne=ul(Ee-de)>180?(Ee+de+360)/2:(Ee+de)/2,le=1-.17*_o(g(ne-30))+.24*_o(g(2*ne))+.32*_o(g(3*ne+6))-.2*_o(g(4*ne-63)),ce=de-Ee;ce=ul(ce)<=180?ce:de<=Ee?ce+360:ce-360,ce=2*Mt(te*j)*fl(g(ce)/2);var ue=N-C,at=j-te,Bt=1+.015*xe(X-50,2)/Mt(20+xe(X-50,2)),$t=1+.045*q,vr=1+.015*q*le,yr=30*Jb(-xe((ne-275)/25,2)),At=2*Mt(xe(q,7)/(xe(q,7)+xe(25,7))),Kt=-At*fl(2*g(yr)),Wr=Mt(xe(ue/(l*Bt),2)+xe(at/(f*$t),2)+xe(ce/(v*vr),2)+Kt*(at/(f*$t))*(ce/(v*vr)));return Wb(0,Ub(100,Wr))},pl=P,Qb=function(n,a,l){l===void 0&&(l="lab"),n=new pl(n),a=new pl(a);var f=n.get(l),v=a.get(l),x=0;for(var g in f){var w=(f[g]||0)-(v[g]||0);x+=w*w}return Math.sqrt(x)},Yb=P,Kb=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];try{return new(Function.prototype.bind.apply(Yb,[null].concat(n))),!0}catch{return!1}},hl=D,ml=fi,Zb={cool:function(){return ml([hl.hsl(180,1,.9),hl.hsl(250,.7,.4)])},hot:function(){return ml(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Lo={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},mi=0,gl=Object.keys(Lo);mi<gl.length;mi+=1){var bl=gl[mi];Lo[bl.toLowerCase()]=Lo[bl]}var ev=Lo,Ae=D;Ae.average=hb,Ae.bezier=wb,Ae.blend=Lb,Ae.cubehelix=Fb,Ae.mix=Ae.interpolate=Ws,Ae.random=Gb,Ae.scale=fi,Ae.analyze=al.analyze,Ae.contrast=Vb,Ae.deltaE=Xb,Ae.distance=Qb,Ae.limits=al.limits,Ae.valid=Kb,Ae.scales=Zb,Ae.colors=_s,Ae.brewer=ev;var tv=Ae;return tv})});var Nu=ie(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=void 0;var Di=Wo(Bc()),Bi=Wo(Zc()),T0=Wo(Ou()),Uo=Wo(_u());function Wo(e){return e&&e.__esModule?e:{default:e}}function O0(e){if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(e=_0(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(d){throw d},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,s=!1,c;return{s:function(){o=e[Symbol.iterator]()},n:function(){var d=o.next();return i=d.done,d},e:function(d){s=!0,c=d},f:function(){try{!i&&o.return!=null&&o.return()}finally{if(s)throw c}}}}function _0(e,t){if(e){if(typeof e=="string")return Lu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lu(e,t)}}function Lu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function L0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(r),!0).forEach(function(o){P0(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function P0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E0={count:5,hueMin:0,hueMax:360,chromaMin:0,chromaMax:100,lightMin:0,lightMax:100,quality:50,samples:800},Eu=function(t,r){for(var o=Number.MAX_SAFE_INTEGER,i=0,s=0;s<t.length;s+=1){var c=t[s],u=Math.sqrt(Math.pow(Math.abs(c[0]-r[0]),2)+Math.pow(Math.abs(c[1]-r[1]),2)+Math.pow(Math.abs(c[2]-r[2]),2));u<o&&(o=u,i=s)}return i},N0=function(t,r){var o=Uo.default.lab(t),i=o.hcl(),s=o.rgb(),c=Uo.default.rgb(s).lab(),u=2;return i[0]>=r.hueMin&&i[0]<=r.hueMax&&i[1]>=r.chromaMin&&i[1]<=r.chromaMax&&i[2]>=r.lightMin&&i[2]<=r.lightMax&&c[0]>=t[0]-u&&c[0]<=t[0]+u&&c[1]>=t[1]-u&&c[1]<=t[1]+u&&c[2]>=t[2]-u&&c[2]<=t[2]+u},j0=function(t){for(var r=t.slice(0),o=[r.shift()];r.length>0;){for(var i=o[o.length-1],s=0,c=Number.MIN_SAFE_INTEGER,u=0;u<r.length;u+=1){var d=Math.sqrt(Math.pow(Math.abs(i[0]-r[u][0]),2)+Math.pow(Math.abs(i[1]-r[u][1]),2)+Math.pow(Math.abs(i[2]-r[u][2]),2));d>c&&(c=d,s=u)}o.push(r.splice(s,1)[0])}return o},R0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=L0({},E0,{},t);if(r.count<=0)return[];r.samples<r.count*3&&(r.samples=Math.ceil(r.count*3));var o=[],i=[],s=new Set,c=Math.ceil(Math.cbrt(r.samples)),u=(r.hueMax-r.hueMin)/c,d=(r.chromaMax-r.chromaMin)/c,h=(r.lightMax-r.lightMin)/c;if(u<=0)throw new Error("hueMax must be greater than hueMin!");if(d<=0)throw new Error("chromaMax must be greater than chromaMin!");if(h<=0)throw new Error("lightMax must be greater than lightMin!");for(var y=r.hueMin+u/2;y<=r.hueMax;y+=u)for(var b=r.chromaMin+d/2;b<=r.chromaMax;b+=d)for(var m=r.lightMin+h/2;m<=r.lightMax;m+=h){var p=Uo.default.hcl(y,b,m).lab();N0(p,r)&&s.add(p.toString())}if(s=Array.from(s),s=s.map(function(Qt){return Qt.split(",").map(function(qr){return parseFloat(qr)})}),s.length<r.count)throw new Error("Not enough samples to generate palette, increase sample count.");for(var k=Math.floor(s.length/r.count),S=0;S<s.length&&(o.push(s[S]),i.push([]),!(o.length>=r.count));S+=k);for(var _=1;_<=r.quality;_+=1){for(var L=(0,Bi.default)(i),E=(0,Bi.default)(s),F=0;F<o.length;F+=1){var P=Eu(E,o[F]);L[F].push(E[P]),E.splice(P,1)}for(var H=0;H<E.length;H+=1){var D=s[H],re=Eu(o,D);L[re].push(s[H])}for(var pe=(0,Bi.default)(o),ae=0;ae<L.length;ae+=1){var Ce=L[ae],he=Ce.length,Re=[],Ie=[],J=[],me=O0(Ce),Le;try{for(me.s();!(Le=me.n()).done;){var De=Le.value;Re.push(De[0]),Ie.push(De[1]),J.push(De[2])}}catch(Qt){me.e(Qt)}finally{me.f()}var Ke=Di.default.sum(Re)/he,St=Di.default.sum(Ie)/he,zr=Di.default.sum(J)/he;o[ae]=[Ke,St,zr]}if((0,T0.default)(pe,o))break}return o=j0(o),o.map(function(Qt){return Uo.default.lab(Qt)})},F0=R0;Jo.default=F0});var Ru=ie((Dx,D0)=>{D0.exports={abap:["abap"],"ags script":["asc","ash"],ampl:["ampl"],antlr:["g4"],apl:["apl","dyalog"],asp:["asp","asax","ascx","ashx","asmx","aspx","axd"],ats:["dats","hats","sats"],actionscript:["as"],ada:["adb","ada","ads"],agda:["agda"],alloy:["als"],apacheconf:["apacheconf"],apex:["cls"],applescript:["applescript","scpt"],arc:["arc"],arduino:["ino"],asciidoc:["asciidoc","adoc","asc"],aspectj:["aj"],assembly:["asm","a51","nasm"],augeas:["aug"],autohotkey:["ahk","ahkl"],autoit:["au3"],awk:["awk","auk","gawk","mawk","nawk"],batchfile:["bat","cmd"],befunge:["befunge"],bison:["y"],bitbake:["bb"],blitzbasic:["bb","decls"],blitzmax:["bmx"],bluespec:["bsv"],boo:["boo"],brainfuck:["b","bf"],brightscript:["brs"],bro:["bro"],c:["c","cats","h","idc","w"],"c#":["cs","cshtml","csx"],"c++":["cpp","c++","cc","cp","cxx","h","h++","hh","hpp","hxx","inl","ipp","tcc","tpp"],"c-objdump":["c-objdump"],"c2hs haskell":["chs"],clips:["clp"],cmake:["cmake","cmake.in"],cobol:["cob","cbl","ccp","cobol","cpy"],css:["css"],"cap'n proto":["capnp"],cartocss:["mss"],ceylon:["ceylon"],chapel:["chpl"],chuck:["ck"],cirru:["cirru"],clarion:["clw"],clean:["icl","dcl"],clojure:["clj","boot","cl2","cljc","cljs","cljs.hl","cljscm","cljx","hic"],coffeescript:["coffee","_coffee","cjsx","cson","iced"],coldfusion:["cfm","cfml"],"coldfusion cfc":["cfc"],"common lisp":["lisp","asd","cl","lsp","ny","podsl"],"component pascal":["cp","cps"],cool:["cl"],coq:["coq","v"],"cpp-objdump":["cppobjdump","c++-objdump","c++objdump","cpp-objdump","cxx-objdump"],creole:["creole"],crystal:["cr"],cucumber:["feature"],cuda:["cu","cuh"],cycript:["cy"],cython:["pyx","pxd","pxi"],d:["d","di"],"d-objdump":["d-objdump"],"digital command language":["com"],dm:["dm"],dtrace:["d"],"darcs patch":["darcspatch","dpatch"],dart:["dart"],diff:["diff","patch"],dockerfile:["dockerfile"],dogescript:["djs"],dylan:["dylan","dyl","intr","lid"],e:["E"],ecl:["ecl","eclxml"],eagle:["sch","brd"],"ecere projects":["epj"],eiffel:["e"],elixir:["ex","exs"],elm:["elm"],"emacs lisp":["el","emacs","emacs.desktop"],emberscript:["em","emberscript"],erlang:["erl","es","escript","hrl"],"f#":["fs","fsi","fsx"],flux:["fx","flux"],fortran:["f90","f","f03","f08","f77","f95","for","fpp"],factor:["factor"],fancy:["fy","fancypack"],fantom:["fan"],filterscript:["fs"],formatted:["for"],forth:["fth","4th","f","for","forth","fr","frt","fs"],frege:["fr"],"g-code":["g","gco","gcode"],gams:["gms"],gap:["g","gap","gd","gi","tst"],gas:["s"],gdscript:["gd"],glsl:["glsl","fp","frag","frg","fs","fshader","geo","geom","glslv","gshader","shader","vert","vrx","vshader"],"game maker language":["gml"],genshi:["kid"],"gentoo ebuild":["ebuild"],"gentoo eclass":["eclass"],"gettext catalog":["po","pot"],glyph:["glf"],gnuplot:["gp","gnu","gnuplot","plot","plt"],go:["go"],golo:["golo"],gosu:["gs","gst","gsx","vark"],grace:["grace"],gradle:["gradle"],"grammatical framework":["gf"],"graph modeling language":["gml"],"graphviz (dot)":["dot","gv"],groff:["man","1","2","3","4","5","6","7"],groovy:["groovy","grt","gtpl","gvy"],"groovy server pages":["gsp"],html:["html","htm","html.hl","st","xht","xhtml"],"html+django":["mustache","jinja"],"html+erb":["erb","erb.deface"],"html+php":["phtml"],http:["http"],hack:["hh","php"],haml:["haml","haml.deface"],handlebars:["handlebars","hbs"],harbour:["hb"],haskell:["hs","hsc"],haxe:["hx","hxsl"],hy:["hy"],idl:["pro","dlm"],"igor pro":["ipf"],ini:["ini","cfg","prefs","pro","properties"],"irc log":["irclog","weechatlog"],idris:["idr","lidr"],"inform 7":["ni","i7x"],"inno setup":["iss"],io:["io"],ioke:["ik"],isabelle:["thy"],j:["ijs"],jflex:["flex","jflex"],json:["json","lock"],json5:["json5"],jsonld:["jsonld"],jsoniq:["jq"],jade:["jade"],jasmin:["j"],java:["java"],"java server pages":["jsp"],javascript:["js","_js","bones","es6","frag","gs","jake","jsb","jsfl","jsm","jss","jsx","njs","pac","sjs","ssjs","sublime-build","sublime-commands","sublime-completions","sublime-keymap","sublime-macro","sublime-menu","sublime-mousemap","sublime-project","sublime-settings","sublime-theme","sublime-workspace","sublime_metrics","sublime_session","xsjs","xsjslib"],julia:["jl"],krl:["krl"],kicad:["sch"],kit:["kit"],kotlin:["kt","ktm","kts"],lfe:["lfe"],llvm:["ll"],lolcode:["lol"],lsl:["lsl"],labview:["lvproj"],lasso:["lasso","las","lasso8","lasso9","ldml"],latte:["latte"],lean:["lean","hlean"],less:["less"],lilypond:["ly","ily"],limbo:["b","m"],"linker script":["ld","lds"],liquid:["liquid"],"literate agda":["lagda"],"literate coffeescript":["litcoffee"],"literate haskell":["lhs"],livescript:["ls","_ls"],logos:["xm","x","xi"],logtalk:["lgt","logtalk"],lookml:["lookml"],loomscript:["ls"],lua:["lua","fcgi","nse","pd_lua","rbxs","wlua"],m:["mumps","m"],mtml:["mtml"],muf:["muf","m"],makefile:["mak","d","mk"],mako:["mako","mao"],markdown:["md","markdown","mkd","mkdn","mkdown","ron"],mask:["mask"],mathematica:["mathematica","cdf","m","ma","nb","nbp","wl","wlt"],matlab:["matlab","m"],max:["maxpat","maxhelp","maxproj","mxt","pat"],mediawiki:["mediawiki"],mercury:["m","moo"],minid:["minid"],mirah:["druby","duby","mir","mirah"],modelica:["mo"],"module management system":["mms","mmk"],monkey:["monkey"],moocode:["moo"],moonscript:["moon"],myghty:["myt"],nl:["nl"],nsis:["nsi","nsh"],nemerle:["n"],netlinx:["axs","axi"],"netlinx+erb":["axs.erb","axi.erb"],netlogo:["nlogo"],newlisp:["nl","lisp","lsp"],nginx:["nginxconf"],nimrod:["nim","nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy","numpyw","numsc"],ocaml:["ml","eliom","eliomi","ml4","mli","mll","mly"],objdump:["objdump"],"objective-c":["m","h"],"objective-c++":["mm"],"objective-j":["j","sj"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["cl","opencl"],"openedge abl":["p","cls"],openscad:["scad"],org:["org"],ox:["ox","oxh","oxo"],oxygene:["oxygene"],oz:["oz"],pawn:["pwn"],php:["php","aw","ctp","fcgi","php3","php4","php5","phpt"],plsql:["pls","pkb","pks","plb","plsql","sql"],plpgsql:["sql"],pan:["pan"],papyrus:["psc"],parrot:["parrot"],"parrot assembly":["pasm"],"parrot internal representation":["pir"],pascal:["pas","dfm","dpr","lpr","pp"],perl:["pl","cgi","fcgi","perl","ph","plx","pm","pod","psgi","t"],perl6:["6pl","6pm","nqp","p6","p6l","p6m","pl","pl6","pm","pm6","t"],piglatin:["pig"],pike:["pike","pmod"],pod:["pod"],pogoscript:["pogo"],postscript:["ps","eps"],powershell:["ps1","psd1","psm1"],processing:["pde"],prolog:["pl","ecl","pro","prolog"],"propeller spin":["spin"],"protocol buffer":["proto"],"public key":["asc","pub"],puppet:["pp"],"pure data":["pd"],purebasic:["pb","pbi"],purescript:["purs"],python:["py","cgi","fcgi","gyp","lmi","pyde","pyp","pyt","pyw","tac","wsgi","xpy"],"python traceback":["pytb"],qml:["qml"],qmake:["pro","pri"],r:["r","rd","rsx"],raml:["raml"],rdoc:["rdoc"],realbasic:["rbbas","rbfrm","rbmnu","rbres","rbtbar","rbuistate"],rhtml:["rhtml"],rmarkdown:["rmd"],racket:["rkt","rktd","rktl","scrbl"],"ragel in ruby host":["rl"],"raw token data":["raw"],rebol:["reb","r","r2","r3","rebol"],red:["red","reds"],redcode:["cw"],renderscript:["rs","rsh"],robotframework:["robot"],rouge:["rg"],ruby:["rb","builder","fcgi","gemspec","god","irbrc","jbuilder","mspec","pluginspec","podspec","rabl","rake","rbuild","rbw","rbx","ru","ruby","thor","watchr"],rust:["rs"],sas:["sas"],scss:["scss"],sparql:["sparql","rq"],sqf:["sqf","hqf"],sql:["sql","cql","ddl","prc","tab","udf","viw"],sqlpl:["sql","db2"],ston:["ston"],svg:["svg"],sage:["sage","sagews"],saltstack:["sls"],sass:["sass"],scala:["scala","sbt","sc"],scaml:["scaml"],scheme:["scm","sld","sls","sps","ss"],scilab:["sci","sce","tst"],self:["self"],shell:["sh","bash","bats","cgi","command","fcgi","ksh","tmux","tool","zsh"],shellsession:["sh-session"],shen:["shen"],slash:["sl"],slim:["slim"],smalltalk:["st","cs"],smarty:["tpl"],sourcepawn:["sp","sma"],squirrel:["nut"],"standard ml":["ML","fun","sig","sml"],stata:["do","ado","doh","ihlp","mata","matah","sthlp"],stylus:["styl"],supercollider:["scd","sc"],swift:["swift"],systemverilog:["sv","svh","vh"],toml:["toml"],txl:["txl"],tcl:["tcl","adp","tm"],tcsh:["tcsh","csh"],tex:["tex","aux","bbx","bib","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],tea:["tea"],text:["txt","fr"],textile:["textile"],thrift:["thrift"],turing:["t","tu"],turtle:["ttl"],twig:["twig"],typescript:["ts"],"unified parallel c":["upc"],unrealscript:["uc"],vcl:["vcl"],vhdl:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],vala:["vala","vapi"],verilog:["v","veo"],viml:["vim"],"visual basic":["vb","bas","cls","frm","frx","vba","vbhtml","vbs"],volt:["volt"],"web ontology language":["owl"],webidl:["webidl"],xc:["xc"],xml:["xml","ant","axml","ccxml","clixml","cproject","csproj","ct","dita","ditamap","ditaval","dll.config","filters","fsproj","fxml","glade","grxml","ivy","jelly","kml","launch","mm","mxml","nproj","nuspec","odd","osm","plist","pluginspec","ps1xml","psc1","pt","rdf","rss","scxml","srdf","storyboard","stTheme","sublime-snippet","targets","tmCommand","tml","tmLanguage","tmPreferences","tmSnippet","tmTheme","ts","ui","urdf","vbproj","vcxproj","vxml","wsdl","wsf","wxi","wxl","wxs","x3d","xacro","xaml","xib","xlf","xliff","xmi","xml.dist","xsd","xul","zcml"],xproc:["xpl","xproc"],xquery:["xquery","xq","xql","xqm","xqy"],xs:["xs"],xslt:["xslt","xsl"],xojo:["xojo_code","xojo_menu","xojo_report","xojo_script","xojo_toolbar","xojo_window"],xtend:["xtend"],yaml:["yml","reek","rviz","yaml"],zephir:["zep"],zimpl:["zimpl","zmpl","zpl"],desktop:["desktop","desktop.in"],ec:["ec","eh"],edn:["edn"],fish:["fish"],mupad:["mu"],nesc:["nc"],ooc:["ooc"],restructuredtext:["rst","rest"],wisp:["wisp"],xbase:["prg"]}});var Fu=ie((Bx,B0)=>{B0.exports={"1":["groff"],"2":["groff"],"3":["groff"],"4":["groff"],"5":["groff"],"6":["groff"],"7":["groff"],abap:["abap"],asc:["ags script","asciidoc","public key"],ash:["ags script"],ampl:["ampl"],g4:["antlr"],apl:["apl"],dyalog:["apl"],asp:["asp"],asax:["asp"],ascx:["asp"],ashx:["asp"],asmx:["asp"],aspx:["asp"],axd:["asp"],dats:["ats"],hats:["ats"],sats:["ats"],as:["actionscript"],adb:["ada"],ada:["ada"],ads:["ada"],agda:["agda"],als:["alloy"],apacheconf:["apacheconf"],cls:["apex","openedge abl","tex","visual basic"],applescript:["applescript"],scpt:["applescript"],arc:["arc"],ino:["arduino"],asciidoc:["asciidoc"],adoc:["asciidoc"],aj:["aspectj"],asm:["assembly"],a51:["assembly"],nasm:["assembly"],aug:["augeas"],ahk:["autohotkey"],ahkl:["autohotkey"],au3:["autoit"],awk:["awk"],auk:["awk"],gawk:["awk"],mawk:["awk"],nawk:["awk"],bat:["batchfile"],cmd:["batchfile"],befunge:["befunge"],y:["bison"],bb:["bitbake","blitzbasic"],decls:["blitzbasic"],bmx:["blitzmax"],bsv:["bluespec"],boo:["boo"],b:["brainfuck","limbo"],bf:["brainfuck"],brs:["brightscript"],bro:["bro"],c:["c"],cats:["c"],h:["c","c++","objective-c"],idc:["c"],w:["c"],cs:["c#","smalltalk"],cshtml:["c#"],csx:["c#"],cpp:["c++"],"c++":["c++"],cc:["c++"],cp:["c++","component pascal"],cxx:["c++"],"h++":["c++"],hh:["c++","hack"],hpp:["c++"],hxx:["c++"],inl:["c++"],ipp:["c++"],tcc:["c++"],tpp:["c++"],"c-objdump":["c-objdump"],chs:["c2hs haskell"],clp:["clips"],cmake:["cmake"],"cmake.in":["cmake"],cob:["cobol"],cbl:["cobol"],ccp:["cobol"],cobol:["cobol"],cpy:["cobol"],css:["css"],capnp:["cap'n proto"],mss:["cartocss"],ceylon:["ceylon"],chpl:["chapel"],ck:["chuck"],cirru:["cirru"],clw:["clarion"],icl:["clean"],dcl:["clean"],clj:["clojure"],boot:["clojure"],cl2:["clojure"],cljc:["clojure"],cljs:["clojure"],"cljs.hl":["clojure"],cljscm:["clojure"],cljx:["clojure"],hic:["clojure"],coffee:["coffeescript"],_coffee:["coffeescript"],cjsx:["coffeescript"],cson:["coffeescript"],iced:["coffeescript"],cfm:["coldfusion"],cfml:["coldfusion"],cfc:["coldfusion cfc"],lisp:["common lisp","newlisp"],asd:["common lisp"],cl:["common lisp","cool","opencl"],lsp:["common lisp","newlisp"],ny:["common lisp"],podsl:["common lisp"],cps:["component pascal"],coq:["coq"],v:["coq","verilog"],cppobjdump:["cpp-objdump"],"c++-objdump":["cpp-objdump"],"c++objdump":["cpp-objdump"],"cpp-objdump":["cpp-objdump"],"cxx-objdump":["cpp-objdump"],creole:["creole"],cr:["crystal"],feature:["cucumber"],cu:["cuda"],cuh:["cuda"],cy:["cycript"],pyx:["cython"],pxd:["cython"],pxi:["cython"],d:["d","dtrace","makefile"],di:["d"],"d-objdump":["d-objdump"],com:["digital command language"],dm:["dm"],darcspatch:["darcs patch"],dpatch:["darcs patch"],dart:["dart"],diff:["diff"],patch:["diff"],dockerfile:["dockerfile"],djs:["dogescript"],dylan:["dylan"],dyl:["dylan"],intr:["dylan"],lid:["dylan"],E:["e"],ecl:["ecl","prolog"],eclxml:["ecl"],sch:["eagle","kicad"],brd:["eagle"],epj:["ecere projects"],e:["eiffel"],ex:["elixir"],exs:["elixir"],elm:["elm"],el:["emacs lisp"],emacs:["emacs lisp"],"emacs.desktop":["emacs lisp"],em:["emberscript"],emberscript:["emberscript"],erl:["erlang"],es:["erlang"],escript:["erlang"],hrl:["erlang"],fs:["f#","filterscript","forth","glsl"],fsi:["f#"],fsx:["f#"],fx:["flux"],flux:["flux"],f90:["fortran"],f:["fortran","forth"],f03:["fortran"],f08:["fortran"],f77:["fortran"],f95:["fortran"],for:["fortran","formatted","forth"],fpp:["fortran"],factor:["factor"],fy:["fancy"],fancypack:["fancy"],fan:["fantom"],fth:["forth"],"4th":["forth"],forth:["forth"],fr:["forth","frege","text"],frt:["forth"],g:["g-code","gap"],gco:["g-code"],gcode:["g-code"],gms:["gams"],gap:["gap"],gd:["gap","gdscript"],gi:["gap"],tst:["gap","scilab"],s:["gas"],glsl:["glsl"],fp:["glsl"],frag:["glsl","javascript"],frg:["glsl"],fshader:["glsl"],geo:["glsl"],geom:["glsl"],glslv:["glsl"],gshader:["glsl"],shader:["glsl"],vert:["glsl"],vrx:["glsl"],vshader:["glsl"],gml:["game maker language","graph modeling language"],kid:["genshi"],ebuild:["gentoo ebuild"],eclass:["gentoo eclass"],po:["gettext catalog"],pot:["gettext catalog"],glf:["glyph"],gp:["gnuplot"],gnu:["gnuplot"],gnuplot:["gnuplot"],plot:["gnuplot"],plt:["gnuplot"],go:["go"],golo:["golo"],gs:["gosu","javascript"],gst:["gosu"],gsx:["gosu"],vark:["gosu"],grace:["grace"],gradle:["gradle"],gf:["grammatical framework"],dot:["graphviz (dot)"],gv:["graphviz (dot)"],man:["groff"],groovy:["groovy"],grt:["groovy"],gtpl:["groovy"],gvy:["groovy"],gsp:["groovy server pages"],html:["html"],htm:["html"],"html.hl":["html"],st:["html","smalltalk"],xht:["html"],xhtml:["html"],mustache:["html+django"],jinja:["html+django"],erb:["html+erb"],"erb.deface":["html+erb"],phtml:["html+php"],http:["http"],php:["hack","php"],haml:["haml"],"haml.deface":["haml"],handlebars:["handlebars"],hbs:["handlebars"],hb:["harbour"],hs:["haskell"],hsc:["haskell"],hx:["haxe"],hxsl:["haxe"],hy:["hy"],pro:["idl","ini","prolog","qmake"],dlm:["idl"],ipf:["igor pro"],ini:["ini"],cfg:["ini"],prefs:["ini"],properties:["ini"],irclog:["irc log"],weechatlog:["irc log"],idr:["idris"],lidr:["idris"],ni:["inform 7"],i7x:["inform 7"],iss:["inno setup"],io:["io"],ik:["ioke"],thy:["isabelle"],ijs:["j"],flex:["jflex"],jflex:["jflex"],json:["json"],lock:["json"],json5:["json5"],jsonld:["jsonld"],jq:["jsoniq"],jade:["jade"],j:["jasmin","objective-j"],java:["java"],jsp:["java server pages"],js:["javascript"],_js:["javascript"],bones:["javascript"],es6:["javascript"],jake:["javascript"],jsb:["javascript"],jsfl:["javascript"],jsm:["javascript"],jss:["javascript"],jsx:["javascript"],njs:["javascript"],pac:["javascript"],sjs:["javascript"],ssjs:["javascript"],"sublime-build":["javascript"],"sublime-commands":["javascript"],"sublime-completions":["javascript"],"sublime-keymap":["javascript"],"sublime-macro":["javascript"],"sublime-menu":["javascript"],"sublime-mousemap":["javascript"],"sublime-project":["javascript"],"sublime-settings":["javascript"],"sublime-theme":["javascript"],"sublime-workspace":["javascript"],sublime_metrics:["javascript"],sublime_session:["javascript"],xsjs:["javascript"],xsjslib:["javascript"],jl:["julia"],krl:["krl"],kit:["kit"],kt:["kotlin"],ktm:["kotlin"],kts:["kotlin"],lfe:["lfe"],ll:["llvm"],lol:["lolcode"],lsl:["lsl"],lvproj:["labview"],lasso:["lasso"],las:["lasso"],lasso8:["lasso"],lasso9:["lasso"],ldml:["lasso"],latte:["latte"],lean:["lean"],hlean:["lean"],less:["less"],ly:["lilypond"],ily:["lilypond"],m:["limbo","m","muf","mathematica","matlab","mercury","objective-c"],ld:["linker script"],lds:["linker script"],liquid:["liquid"],lagda:["literate agda"],litcoffee:["literate coffeescript"],lhs:["literate haskell"],ls:["livescript","loomscript"],_ls:["livescript"],xm:["logos"],x:["logos"],xi:["logos"],lgt:["logtalk"],logtalk:["logtalk"],lookml:["lookml"],lua:["lua"],fcgi:["lua","php","perl","python","ruby","shell"],nse:["lua"],pd_lua:["lua"],rbxs:["lua"],wlua:["lua"],mumps:["m"],mtml:["mtml"],muf:["muf"],mak:["makefile"],mk:["makefile"],mako:["mako"],mao:["mako"],md:["markdown"],markdown:["markdown"],mkd:["markdown"],mkdn:["markdown"],mkdown:["markdown"],ron:["markdown"],mask:["mask"],mathematica:["mathematica"],cdf:["mathematica"],ma:["mathematica"],nb:["mathematica"],nbp:["mathematica"],wl:["mathematica"],wlt:["mathematica"],matlab:["matlab"],maxpat:["max"],maxhelp:["max"],maxproj:["max"],mxt:["max"],pat:["max"],mediawiki:["mediawiki"],moo:["mercury","moocode"],minid:["minid"],druby:["mirah"],duby:["mirah"],mir:["mirah"],mirah:["mirah"],mo:["modelica"],mms:["module management system"],mmk:["module management system"],monkey:["monkey"],moon:["moonscript"],myt:["myghty"],nl:["nl","newlisp"],nsi:["nsis"],nsh:["nsis"],n:["nemerle"],axs:["netlinx"],axi:["netlinx"],"axs.erb":["netlinx+erb"],"axi.erb":["netlinx+erb"],nlogo:["netlogo"],nginxconf:["nginx"],nim:["nimrod"],nimrod:["nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy"],numpyw:["numpy"],numsc:["numpy"],ml:["ocaml"],eliom:["ocaml"],eliomi:["ocaml"],ml4:["ocaml"],mli:["ocaml"],mll:["ocaml"],mly:["ocaml"],objdump:["objdump"],mm:["objective-c++","xml"],sj:["objective-j"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["opencl"],p:["openedge abl"],scad:["openscad"],org:["org"],ox:["ox"],oxh:["ox"],oxo:["ox"],oxygene:["oxygene"],oz:["oz"],pwn:["pawn"],aw:["php"],ctp:["php"],php3:["php"],php4:["php"],php5:["php"],phpt:["php"],pls:["plsql"],pkb:["plsql"],pks:["plsql"],plb:["plsql"],plsql:["plsql"],sql:["plsql","plpgsql","sql","sqlpl"],pan:["pan"],psc:["papyrus"],parrot:["parrot"],pasm:["parrot assembly"],pir:["parrot internal representation"],pas:["pascal"],dfm:["pascal"],dpr:["pascal"],lpr:["pascal"],pp:["pascal","puppet"],pl:["perl","perl6","prolog"],cgi:["perl","python","shell"],perl:["perl"],ph:["perl"],plx:["perl"],pm:["perl","perl6"],pod:["perl","pod"],psgi:["perl"],t:["perl","perl6","turing"],"6pl":["perl6"],"6pm":["perl6"],nqp:["perl6"],p6:["perl6"],p6l:["perl6"],p6m:["perl6"],pl6:["perl6"],pm6:["perl6"],pig:["piglatin"],pike:["pike"],pmod:["pike"],pogo:["pogoscript"],ps:["postscript"],eps:["postscript"],ps1:["powershell"],psd1:["powershell"],psm1:["powershell"],pde:["processing"],prolog:["prolog"],spin:["propeller spin"],proto:["protocol buffer"],pub:["public key"],pd:["pure data"],pb:["purebasic"],pbi:["purebasic"],purs:["purescript"],py:["python"],gyp:["python"],lmi:["python"],pyde:["python"],pyp:["python"],pyt:["python"],pyw:["python"],tac:["python"],wsgi:["python"],xpy:["python"],pytb:["python traceback"],qml:["qml"],pri:["qmake"],r:["r","rebol"],rd:["r"],rsx:["r"],raml:["raml"],rdoc:["rdoc"],rbbas:["realbasic"],rbfrm:["realbasic"],rbmnu:["realbasic"],rbres:["realbasic"],rbtbar:["realbasic"],rbuistate:["realbasic"],rhtml:["rhtml"],rmd:["rmarkdown"],rkt:["racket"],rktd:["racket"],rktl:["racket"],scrbl:["racket"],rl:["ragel in ruby host"],raw:["raw token data"],reb:["rebol"],r2:["rebol"],r3:["rebol"],rebol:["rebol"],red:["red"],reds:["red"],cw:["redcode"],rs:["renderscript","rust"],rsh:["renderscript"],robot:["robotframework"],rg:["rouge"],rb:["ruby"],builder:["ruby"],gemspec:["ruby"],god:["ruby"],irbrc:["ruby"],jbuilder:["ruby"],mspec:["ruby"],pluginspec:["ruby","xml"],podspec:["ruby"],rabl:["ruby"],rake:["ruby"],rbuild:["ruby"],rbw:["ruby"],rbx:["ruby"],ru:["ruby"],ruby:["ruby"],thor:["ruby"],watchr:["ruby"],sas:["sas"],scss:["scss"],sparql:["sparql"],rq:["sparql"],sqf:["sqf"],hqf:["sqf"],cql:["sql"],ddl:["sql"],prc:["sql"],tab:["sql"],udf:["sql"],viw:["sql"],db2:["sqlpl"],ston:["ston"],svg:["svg"],sage:["sage"],sagews:["sage"],sls:["saltstack","scheme"],sass:["sass"],scala:["scala"],sbt:["scala"],sc:["scala","supercollider"],scaml:["scaml"],scm:["scheme"],sld:["scheme"],sps:["scheme"],ss:["scheme"],sci:["scilab"],sce:["scilab"],self:["self"],sh:["shell"],bash:["shell"],bats:["shell"],command:["shell"],ksh:["shell"],tmux:["shell"],tool:["shell"],zsh:["shell"],"sh-session":["shellsession"],shen:["shen"],sl:["slash"],slim:["slim"],tpl:["smarty"],sp:["sourcepawn"],sma:["sourcepawn"],nut:["squirrel"],ML:["standard ml"],fun:["standard ml"],sig:["standard ml"],sml:["standard ml"],do:["stata"],ado:["stata"],doh:["stata"],ihlp:["stata"],mata:["stata"],matah:["stata"],sthlp:["stata"],styl:["stylus"],scd:["supercollider"],swift:["swift"],sv:["systemverilog"],svh:["systemverilog"],vh:["systemverilog"],toml:["toml"],txl:["txl"],tcl:["tcl"],adp:["tcl"],tm:["tcl"],tcsh:["tcsh"],csh:["tcsh"],tex:["tex"],aux:["tex"],bbx:["tex"],bib:["tex"],cbx:["tex"],dtx:["tex"],ins:["tex"],lbx:["tex"],ltx:["tex"],mkii:["tex"],mkiv:["tex"],mkvi:["tex"],sty:["tex"],toc:["tex"],tea:["tea"],txt:["text"],textile:["textile"],thrift:["thrift"],tu:["turing"],ttl:["turtle"],twig:["twig"],ts:["typescript","xml"],upc:["unified parallel c"],uc:["unrealscript"],vcl:["vcl"],vhdl:["vhdl"],vhd:["vhdl"],vhf:["vhdl"],vhi:["vhdl"],vho:["vhdl"],vhs:["vhdl"],vht:["vhdl"],vhw:["vhdl"],vala:["vala"],vapi:["vala"],veo:["verilog"],vim:["viml"],vb:["visual basic"],bas:["visual basic"],frm:["visual basic"],frx:["visual basic"],vba:["visual basic"],vbhtml:["visual basic"],vbs:["visual basic"],volt:["volt"],owl:["web ontology language"],webidl:["webidl"],xc:["xc"],xml:["xml"],ant:["xml"],axml:["xml"],ccxml:["xml"],clixml:["xml"],cproject:["xml"],csproj:["xml"],ct:["xml"],dita:["xml"],ditamap:["xml"],ditaval:["xml"],"dll.config":["xml"],filters:["xml"],fsproj:["xml"],fxml:["xml"],glade:["xml"],grxml:["xml"],ivy:["xml"],jelly:["xml"],kml:["xml"],launch:["xml"],mxml:["xml"],nproj:["xml"],nuspec:["xml"],odd:["xml"],osm:["xml"],plist:["xml"],ps1xml:["xml"],psc1:["xml"],pt:["xml"],rdf:["xml"],rss:["xml"],scxml:["xml"],srdf:["xml"],storyboard:["xml"],stTheme:["xml"],"sublime-snippet":["xml"],targets:["xml"],tmCommand:["xml"],tml:["xml"],tmLanguage:["xml"],tmPreferences:["xml"],tmSnippet:["xml"],tmTheme:["xml"],ui:["xml"],urdf:["xml"],vbproj:["xml"],vcxproj:["xml"],vxml:["xml"],wsdl:["xml"],wsf:["xml"],wxi:["xml"],wxl:["xml"],wxs:["xml"],x3d:["xml"],xacro:["xml"],xaml:["xml"],xib:["xml"],xlf:["xml"],xliff:["xml"],xmi:["xml"],"xml.dist":["xml"],xsd:["xml"],xul:["xml"],zcml:["xml"],xpl:["xproc"],xproc:["xproc"],xquery:["xquery"],xq:["xquery"],xql:["xquery"],xqm:["xquery"],xqy:["xquery"],xs:["xs"],xslt:["xslt"],xsl:["xslt"],xojo_code:["xojo"],xojo_menu:["xojo"],xojo_report:["xojo"],xojo_script:["xojo"],xojo_toolbar:["xojo"],xojo_window:["xojo"],xtend:["xtend"],yml:["yaml"],reek:["yaml"],rviz:["yaml"],yaml:["yaml"],zep:["zephir"],zimpl:["zimpl"],zmpl:["zimpl"],zpl:["zimpl"],desktop:["desktop"],"desktop.in":["desktop"],ec:["ec"],eh:["ec"],edn:["edn"],fish:["fish"],mu:["mupad"],nc:["nesc"],ooc:["ooc"],rst:["restructuredtext"],rest:["restructuredtext"],wisp:["wisp"],prg:["xbase"]}});var Bu=ie(($x,Du)=>{"use strict";function rr(){var e={};return e.extensions||(e.extensions=Ru()),e.languages||(e.languages=Fu()),e}rr.extensions=function(t){t=Iu(t);var r=rr().languages,o=rr().extensions;return o[t]||o[r[t]]||[t]};rr.languages=function(t){t=Iu(t);var r=rr().languages,o=rr().extensions;return r[t]||r[o[t]]||[t]};function Iu(e){return e.charAt(0)==="."&&(e=e.slice(1)),e.toLowerCase()}Du.exports=rr});var Aa=ie(yt=>{"use strict";var T1=yt&&yt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),O1=yt&&yt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_1=yt&&yt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&T1(t,e,r);return O1(t,e),t};Object.defineProperty(yt,"__esModule",{value:!0});yt.useWindowSize=void 0;var Td=_1(z());function Od(){return{height:window.innerHeight,width:window.innerWidth}}function L1(){var e=Td.useState(Od()),t=e[0],r=e[1];return Td.useLayoutEffect(function(){function o(){r(Od())}return window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),t}yt.useWindowSize=L1});var Ld=ie($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.useBreakpoints=$r.useBreakpoint=void 0;var _d=Aa();function P1(e){var t=(0,_d.useWindowSize)().width;return t<e}$r.useBreakpoint=P1;function E1(e){var t=(0,_d.useWindowSize)().width;return e.map(function(r){return t<r})}$r.useBreakpoints=E1});var Pd=ie(rt=>{"use strict";var Ta=rt&&rt.__assign||function(){return Ta=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ta.apply(this,arguments)},N1=rt&&rt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),j1=rt&&rt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),R1=rt&&rt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&N1(t,e,r);return j1(t,e),t};Object.defineProperty(rt,"__esModule",{value:!0});rt.useComponentSize=void 0;var Ln=R1(z());function F1(){var e=Ln.useState({height:0,width:0}),t=e[0],r=e[1],o=Ln.useRef(),i=Ln.useCallback(function(){if(o.current){var s=o.current.offsetHeight,c=o.current.offsetWidth;(s!==t.height||c!==t.width)&&r({height:s,width:c})}},[t.height,t.width]);return Ln.useLayoutEffect(function(){if(!(!o||!o.current)){var s=new ResizeObserver(i);return s.observe(o.current),function(){return s.disconnect()}}},[o,i]),Ta({ref:o},t)}rt.useComponentSize=F1});var Ed=ie(Rt=>{"use strict";var I1=Rt&&Rt.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),Oa=Rt&&Rt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&I1(t,e,r)};Object.defineProperty(Rt,"__esModule",{value:!0});Oa(Ld(),Rt);Oa(Pd(),Rt);Oa(Aa(),Rt)});var Ye=M(z());var Qr=function(){};function Fo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Io(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Do=typeof window<"u";var vc=M(z()),iv=function(e,t){return typeof t=="boolean"?t:!e},av=function(e){return(0,vc.useReducer)(iv,e)},yc=av;var tr=yc;var xc=M(z()),sv=function(e){(0,xc.useEffect)(e,[])},wc=sv;var Sc=M(z());var lv=Do?window:null,Cc=function(e){return!!e.addEventListener},kc=function(e){return!!e.on},cv=function(e,t,r,o){r===void 0&&(r=lv),(0,Sc.useEffect)(function(){if(t&&r)return Cc(r)?Fo(r,e,t,o):kc(r)&&r.on(e,t,o),function(){Cc(r)?Io(r,e,t,o):kc(r)&&r.off(e,t,o)}},[e,t,r,JSON.stringify(o)])},Mc=cv;var Ac=M(z());var uv=function(e){return typeof e=="function"?e:typeof e=="string"?function(t){return t.key===e}:e?function(){return!0}:function(){return!1}},fv=function(e,t,r,o){t===void 0&&(t=Qr),r===void 0&&(r={}),o===void 0&&(o=[e]);var i=r.event,s=i===void 0?"keydown":i,c=r.target,u=r.options,d=(0,Ac.useMemo)(function(){var h=uv(e),y=function(b){if(h(b))return t(b)};return y},o);Mc(s,d,c,u)},Si=fv;var _t=M(z());var dv=function(e,t,r){if(!Do)return[t,Qr,Qr];if(!e)throw new Error("useLocalStorage key may not be falsy");var o=r?r.raw?function(y){return y}:r.deserializer:JSON.parse,i=(0,_t.useRef)(function(y){try{var b=r?r.raw?String:r.serializer:JSON.stringify,m=localStorage.getItem(y);return m!==null?o(m):(t&&localStorage.setItem(y,b(t)),t)}catch{return t}}),s=(0,_t.useState)(function(){return i.current(e)}),c=s[0],u=s[1];(0,_t.useLayoutEffect)(function(){return u(i.current(e))},[e]);var d=(0,_t.useCallback)(function(y){try{var b=typeof y=="function"?y(c):y;if(typeof b>"u")return;var m=void 0;r?r.raw?typeof b=="string"?m=b:m=JSON.stringify(b):r.serializer?m=r.serializer(b):m=JSON.stringify(b):m=JSON.stringify(b),localStorage.setItem(e,m),u(o(m))}catch{}},[e,u]),h=(0,_t.useCallback)(function(){try{localStorage.removeItem(e),u(void 0)}catch{}},[e,u]);return[c,d,h]},Mi=dv;var Lc=M(z());var Tr=M(z());var Tc=M(z());var pv=function(e){var t=(0,Tc.useRef)(e);t.current=e,wc(function(){return function(){return t.current()}})},Oc=pv;var hv=function(e){var t=(0,Tr.useRef)(0),r=(0,Tr.useState)(e),o=r[0],i=r[1],s=(0,Tr.useCallback)(function(c){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(c)})},[]);return Oc(function(){cancelAnimationFrame(t.current)}),[o,s]},_c=hv;var mv=function(e){var t=_c({docX:0,docY:0,posX:0,posY:0,elX:0,elY:0,elH:0,elW:0}),r=t[0],o=t[1];return(0,Lc.useEffect)(function(){var i=function(s){if(e&&e.current){var c=e.current.getBoundingClientRect(),u=c.left,d=c.top,h=c.width,y=c.height,b=u+window.pageXOffset,m=d+window.pageYOffset,p=s.pageX-b,k=s.pageY-m;o({docX:s.pageX,docY:s.pageY,posX:b,posY:m,elX:p,elY:k,elH:y,elW:h})}};return Fo(document,"mousemove",i),function(){Io(document,"mousemove",i)}},[e]),r},Ai=mv;var g2=M(Ec());var vv=M(W());var Nc=new Map;var gv=e=>{let t=[],r=e.split(".");for(let o=0;o<r.length;o++)if(r[o].startsWith("[")){let i=r[o].substring(1),s=o+1;for(;!r[s].endsWith("]");)i+=`.${r[s]}`,s++;i+=`.${r[s].slice(0,-1)}`,t.push(i),o=s}else t.push(r[o]);return t};function Ti(e,t){let r=Array.from(Nc.values());for(let i of Object.keys(t)){let s=gv(i);o(e,s,t[i])}return e;function o(i,s,c,u=0){let d=s[u];if(u<s.length-1){o(i[d],s,c,u+1);return}let h=i[d];switch(c){case"date":i[d]=new Date(h);break;case"set":i[d]=new Set(h);break;case"map":i[d]=new Map(Object.entries(h));break;case"regexp":let y=/^\/(.*)\/([dgimsuy]*)$/.exec(h);if(y)i[d]=new RegExp(y[1],y[2]);else throw new Error(`Invalid regexp: ${h}`);break;case"bigint":i[d]=BigInt(h);break;case"undefined":i[d]=void 0;break;case"infinity":i[d]=Number.POSITIVE_INFINITY;break;case"-infinity":i[d]=Number.NEGATIVE_INFINITY;break;case"nan":i[d]=NaN;break;case"error":let b=new Error(h.message);b.name=h.name,b.stack=h.stack,i[d]=b;break;default:let m=Nc.get(c);m&&(i[d]=m.deserialize(h))}}}function Oi(){let e=Cl();return jc(e)}function jc(e){if(!e)return e;if(e.$$obj)return e.$$meta?Ti(e.$$obj,e.$$meta):e.$$obj;if(e.$$meta){let t=e.$$meta;return delete e.$$meta,Ti(e,t)}return e}var za=M(Fc()),b2=M(rv()),v2=M(ov()),y2=M(nv()),Gp=M(Dc());var ct=M(z());var nf=M(z());var Bo=M(z()),_i=(0,Bo.createContext)(void 0);function Ge(){let e=(0,Bo.useContext)(_i);if(!e)throw new Error("useMetrics must be used within a MetricsContext");return e}var rn=M(z());var Qu=M(Nu());var ju={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Circom:{color:"#707575",url:"https://github.com/trending?l=Circom"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cypher:{color:"#34c0eb",url:"https://github.com/trending?l=Cypher"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},Dotenv:{color:"#e5d559",url:"https://github.com/trending?l=Dotenv"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},Ecmarkup:{color:"#eb8131",url:"https://github.com/trending?l=Ecmarkup"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Elvish Transcript":{color:"#55BB55",url:"https://github.com/trending?l=Elvish-Transcript"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#141AC9",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},"Godot Resource":{color:"#355570",url:"https://github.com/trending?l=Godot-Resource"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:"#844FBA",url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},Imba:{color:"#16cec6",url:"https://github.com/trending?l=Imba"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},Ink:{color:null,url:"https://github.com/trending?l=Ink"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},JCL:{color:"#d90e09",url:"https://github.com/trending?l=JCL"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},Just:{color:"#384d54",url:"https://github.com/trending?l=Just"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},KerboScript:{color:"#41adf0",url:"https://github.com/trending?l=KerboScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Mermaid:{color:"#ff3670",url:"https://github.com/trending?l=Mermaid"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"OASv2-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-json"},"OASv2-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-yaml"},"OASv3-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-json"},"OASv3-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-yaml"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},"OpenAPI Specification v2":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v2"},"OpenAPI Specification v3":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v3"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},"Option List":{color:"#476732",url:"https://github.com/trending?l=Option-List"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},PDDL:{color:"#0d00ff",url:"https://github.com/trending?l=PDDL"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PlantUML:{color:"#fbbd16",url:"https://github.com/trending?l=PlantUML"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Polar:{color:"#ae81ff",url:"https://github.com/trending?l=Polar"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Pyret:{color:"#ee1e10",url:"https://github.com/trending?l=Pyret"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scenic:{color:"#fdc700",url:"https://github.com/trending?l=Scenic"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},"Simple File Verification":{color:"#C9BFED",url:"https://github.com/trending?l=Simple-File-Verification"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},Smithy:{color:"#c44536",url:"https://github.com/trending?l=Smithy"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Snakemake:{color:"#419179",url:"https://github.com/trending?l=Snakemake"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Sway:{color:"#dea584",url:"https://github.com/trending?l=Sway"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},"Visual Basic 6.0":{color:"#2c6353",url:"https://github.com/trending?l=Visual-Basic-6.0"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var $u=M(Bu()),Gu=new Map;for(let[e,{color:t}]of Object.entries(ju))Gu.set(e.toLowerCase(),{color:t!=null?t:null,lang:e});function Hu(e){let t=$u.default.languages(e.toLowerCase()),r=[];if(!t)return null;let o=null;for(let i of t){let s=Gu.get(i);if(s){o=s,r.push(o.lang);break}}return o?o.color:null}var Xo=class{constructor(t,r,o,i){this.scale=(i-o)/(r-t),this.offset=t*this.scale-o,this.target_max=i,this.target_min=o}translate(t){return t*this.scale-this.offset}inverseTranslate(t){return this.target_max-this.translate(t)+this.target_min}};var qu=M(z());var zu=M(Ve()),$i=M(W());function Gt({onClick:e=()=>{},open:t,className:r="",...o}){return(0,$i.jsx)("button",{className:`z-10 ${r}`,onClick:e,...o,children:(0,$i.jsx)(zu.Icon,{path:_l,size:1,className:`chevron transition-transform ${t?"rotate-180":""}`})})}var we=M(W()),Qo=3,st=class{constructor(t,r){this.color=t;this.weight=r}add(t){this.weight+=t}};function Vu({metricCache:e}){let[t,r]=(0,qu.useState)(!0),o=Array.from(e.legend).sort(([,i],[,s])=>i.weight<s.weight?1:i.weight>s.weight?-1:0);return o.length===0?null:o.length<=Qo+1?(0,we.jsx)(Gi,{show:!0,items:o}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(Gi,{show:!0,items:o.slice(0,Qo)}),(0,we.jsx)(Gi,{show:!t,items:o.slice(Qo)}),(0,we.jsx)($0,{show:t,items:o.slice(Qo),toggle:()=>r(!t)}),(0,we.jsx)(Gt,{className:"absolute bottom-2 right-2",open:!t,onClick:()=>r(!t)})]})}function Gi(e){return e.show?(0,we.jsx)(we.Fragment,{children:e.items.map(t=>{let[r,o]=t;return(0,we.jsx)("div",{children:(0,we.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[(0,we.jsx)(mt,{dotColor:o.color}),(0,we.jsx)("span",{className:"font-bold",children:r})]})},r)})}):null}function $0(e){return e.show?(0,we.jsx)("button",{className:"w-fit hover:opacity-70",onClick:e.toggle,children:(0,we.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[e.items.slice(0,14).map(([t,r],o)=>{let i=o===0?0:-16;return(0,we.jsx)(mt,{dotColor:r.color,style:{marginLeft:i}},`dot${t}`)}),(0,we.jsxs)("span",{className:"font-bold",children:[e.items.length," more"]})]})}):null}function Uu(e,t){var s;let r=e.name.substring(e.name.lastIndexOf(".")+1),o=Hu(r),i=t.legend;o?(i.has(r)?(s=i.get(r))==null||s.add(1):i.set(r,new st(o,1)),t.colormap.set(e.path,o)):(i.has("Other")||i.set("Other",new st("#808080",0)),t.colormap.set(e.path,"#808080"))}function Wu(e,t,r){var h,y;let o="#b91c1c",i="#fecaca",s="#14b8a6",c=(y=(h=e.unionedAuthors)==null?void 0:h[r])!=null?y:{},u=0;for(let[,b]of Object.entries(c))u+=b;let d=t.legend;if(u===0){d.set("No authors",new st(s,0)),t.colormap.set(e.path,s);return}if(!c)throw Error("No unioned authors found");switch(Object.keys(c).length){case 1:d.set("Single author",new st(o,2)),t.colormap.set(e.path,o);return;default:d.set("Multiple authors",new st(i,1)),t.colormap.set(e.path,i);return}}var Yo=class{constructor(t,r){this.min_lightness=50;this.max_lightness=95;this.translater=new Xo(t,r,this.min_lightness,this.max_lightness)}getColor(t){return jo(20,100,this.translater.inverseTranslate(t))}setColor(t,r){typeof t.noCommits!="undefined"&&r.colormap.set(t.path,this.getColor(t.noCommits))}};function Ju(e){return[{epoch:0,text:cc(e*1e3),color:"#cff2ff"},{epoch:86400,text:"+1d",color:"#c6dbef"},{epoch:604800,text:"+1w",color:"#9ecae1"},{epoch:2629743,text:"+1m",color:"#6baed6"},{epoch:31556926,text:"+1y",color:"#4292c6"},{epoch:31556926*2,text:"+2y",color:"#2171b5"},{epoch:31556926*4,text:"+4y",color:"#084594"}]}function Ko(e,t,r){let o=t-r,i=0;for(;i<e.length-1;){if(o<e[i+1].epoch)return i;i++}return i}function Xu(e,t,r,o){var h,y,b;let i=(h=t.unionedAuthors)==null?void 0:h[o],s;try{if(!i||(s=Object.entries(i).sort(([m,p],[k,S])=>{if(p===0||S===0||!m||!k)throw Error;return p<S?1:p>S?-1:0}),!s[0]))throw Error}catch{return}let[c]=s[0],u=r.legend,d=(y=e.get(c))!=null?y:"#808080";if(r.colormap.set(t.path,d),t.dominantAuthor&&(t.dominantAuthor[o]=s[0]),u.has(c)){(b=u.get(c))==null||b.add(1);return}u.set(c,new st(d,1))}var Zo=class{constructor(t){this.min_lightness=50;this.max_lighness=90;this.step=t<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(t))}getColor(t){let r=Math.floor(Math.log2(t)),o=this.min_lightness+r*this.step;return jo(0,75,o)}setColor(t,r){var o,i;r.colormap.set(t.path,this.getColor(Object.entries((i=(o=t.unionedAuthors)==null?void 0:o.HISTORICAL)!=null?i:[]).length))}};var Yu={HISTORICAL:"Complete history"},Or={FILE_TYPE:"File type",TRUCK_FACTOR:"Truck factor",TOP_CONTRIBUTOR:"Top contributor",MOST_COMMITS:"Commits",SINGLE_AUTHOR:"Single author",LAST_CHANGED:"Last changed"};function Ku(e){let t=G0(e.authors);return[{HISTORICAL:z0(e.commit.tree,H0(e,"HISTORICAL",t))},t]}function Zu(e,t){switch(e){case"FILE_TYPE":return"Where are different types of files located?";case"MOST_COMMITS":return"Which files have had the most commits, throughout the repository's history?";case"LAST_CHANGED":return"How long ago did the files change?";case"SINGLE_AUTHOR":return t==="HISTORICAL"?"Which files are authored by only one person, throughout the repository's history?":"Which files are authored by only one person, in the newest version?";case"TOP_CONTRIBUTOR":return t==="HISTORICAL"?"Which person has made the most line-changes to a file, throughout the repository's history?":"Which person has made the most line-changes to a file, in the newest version?";case"TRUCK_FACTOR":return"How many authors have contributed to a given file?";default:throw new Error("Uknown metric type: "+e)}}function ef(e){switch(e){case"FILE_TYPE":case"TOP_CONTRIBUTOR":case"SINGLE_AUTHOR":return"POINT";case"MOST_COMMITS":return"GRADIENT";case"LAST_CHANGED":case"TRUCK_FACTOR":return"SEGMENTS";default:throw new Error("Uknown metric type: "+e)}}function G0(e){let t={};for(let s of Object.keys(e))t[s]=0;let r=(0,Qu.default)({count:e.length}),o=0,i=new Map;for(let s of e){let c=r[o++].hex();i.set(s,c)}return i}function tf(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.children.forEach(o=>{if(o.type=="blob")o.noCommits>r&&(r=o.noCommits),o.noCommits<t&&(t=o.noCommits);else if(o.type=="tree"){let[i,s]=tf(o);s>r&&(r=s),i<t&&(t=i)}}),[t,r]}function H0(e,t,r){let o=e.commit,[i,s]=tf(o.tree),c=new Yo(i,s),u=new Zo(e.authorsUnion.length);return[["FILE_TYPE",(d,h)=>{h.legend||(h.legend=new Map),Uu(d,h)}],["SINGLE_AUTHOR",(d,h)=>{h.legend||(h.legend=new Map),Wu(d,h,t)}],["MOST_COMMITS",(d,h)=>{h.legend||(h.legend=[`${i}`,`${s}`,void 0,void 0,c.getColor(i),c.getColor(s)]),c.setColor(d,h)}],["LAST_CHANGED",(d,h)=>{var m,p;let y=e.commit.newestLatestChangeEpoch,b=Ju(y);h.legend||(h.legend=[Ko(b,y,e.commit.oldestLatestChangeEpoch)+1,k=>b[k].text,k=>b[k].color,k=>{var S,_;return(_=Ko(b,y,(S=k.lastChangeEpoch)!=null?S:0))!=null?_:-1}]),h.colormap.set(d.path,b[(p=Ko(b,y,(m=d.lastChangeEpoch)!=null?m:0))!=null?p:-1].color)}],["TOP_CONTRIBUTOR",(d,h)=>{d.dominantAuthor||(d.dominantAuthor={}),h.legend||(h.legend=new Map),Xu(r,d,h,t)}],["TRUCK_FACTOR",(d,h)=>{h.legend||(h.legend=[Math.floor(Math.log2(e.authorsUnion.length))+1,y=>`${Math.pow(2,y)}`,y=>`hsl(0,75%,${50+y*(40/(Math.floor(Math.log2(e.authorsUnion.length))+1))}%)`,y=>{var b,m;return Math.floor(Math.log2(Object.entries((m=(b=y.unionedAuthors)==null?void 0:b.HISTORICAL)!=null?m:[]).length))}]),u.setColor(d,h)}]]}function z0(e,t){let r=new Map;return rf(e,t,r),r}function rf(e,t,r){var o;for(let i of e.children)switch(i.type){case"tree":rf(i,t,r);break;case"blob":for(let[s,c]of t)r.has(s)||r.set(s,{legend:void 0,colormap:new Map}),c(i,(o=r.get(s))!=null?o:{legend:void 0,colormap:new Map});break}}var en={FILE_SIZE:"File size",TRUCK_FACTOR:"Truck factor",MOST_COMMITS:"Commits",LAST_CHANGED:"Last changed",EQUAL_SIZE:"Equal"};var tn={Full:"Full",One:"1",Two:"2",Three:"3",Four:"4",Five:"5"},of={Full:ac,One:Jl,Two:Xl,Three:Ql,Four:Yl,Five:Kl};var Hi={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},zi={NESTED:"Nested",FLAT:"Flat"},qi=(0,rn.createContext)(void 0);function Oe(){let e=(0,rn.useContext)(qi);if(!e)throw new Error("useOptions must be used within a SearchProvider");return e}var q0={hasLoadedSavedOptions:!1,metricType:Object.keys(Or)[0],chartType:Object.keys(Hi)[0],depthType:Object.keys(tn)[0],hierarchyType:Object.keys(zi)[0],sizeMetric:Object.keys(en)[0],authorshipType:Object.keys(Yu)[0],transitionsEnabled:!0,labelsVisible:!0};function Ue(e={}){return{...q0,...e,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setSizeMetricType:()=>{throw new Error("No sizeMetricTypeSetter provided")},setAuthorshipType:()=>{throw new Error("No AuthorshipTypeSetter provided")},setDepthType:()=>{throw new Error("No DepthTypeSetter provided")},setHierarchyType:()=>{throw new Error("No HiearchyTypeSetter provided")},setTransitionsEnabled:()=>{throw new Error("No transitionsEnabledSetter provided")},setLabelsVisible:()=>{throw new Error("No labelsVisibleSetter provided")}}}var gt=M(W());function on(e){let[,t]=Ge(),{metricType:r}=Oe();return e.show?(0,gt.jsx)(gt.Fragment,{children:e.items.map(o=>{var d;let[i,s]=o,c=Math.round(s*100),u=c===0?"<1":c;return(0,gt.jsxs)(nf.Fragment,{children:[(0,gt.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",title:i,children:[r=="TOP_CONTRIBUTOR"?(0,gt.jsx)(mt,{className:"ml-1",dotColor:(d=t.get(i))!=null?d:"white"}):null,(0,gt.jsx)("span",{className:"overflow-hidden overflow-ellipsis whitespace-pre font-bold opacity-80",children:i})]}),(0,gt.jsxs)("p",{className:"break-all text-right text-sm",children:[u,"%"]})]},i+s)})}):null}var nn=M(z()),Vi=(0,nn.createContext)(null);function lt(){let e=(0,nn.useContext)(Vi);if(!e)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return e}var an=M(z()),Ui=(0,an.createContext)(void 0);function _e(){let e=(0,an.useContext)(Ui);if(!e)throw new Error("useData must be used within a DataContext");return e}var sn=M(z()),Wi=(0,sn.createContext)(void 0);function bt(){let e=(0,sn.useContext)(Wi);if(!e)throw new Error("useOptions must be used within a PathProvider");return e}var lf={},af=new WeakMap,sf={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]},Ji=class{constructor(t,r){r=Object.assign({units:"metric",precision:1,locale:void 0},lf,r),af.set(this,r),Object.assign(sf,r.customUnits);let o=t<0?"-":"";t=Math.abs(t);let i=sf[r.units];if(i){let s=i.find(c=>t>=c.from&&t<c.to);if(s){let c=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),u=s.from===0?o+t:o+c.format(t/s.from);this.value=u,this.unit=s.unit,this.long=s.long}else this.value=o+t,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let t=af.get(this);return t.toStringFn?t.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function cf(e,t){return new Ji(e,t)}cf.defaultOptions=function(e){lf=e};var uf=cf;var nr=M(Ve());var _r=M(z());var ff="/build/_assets/commit_icon-JEPGHU5X.png";var Xi=M(z());var or=M(W());function U0({data:e,isOpen:t,btnOnClick:r,titleLabels:o}){return(0,or.jsxs)("li",{className:"border-0 ",children:[(0,or.jsx)("h2",{className:"w-full m-0",children:(0,or.jsx)("div",{className:ge("flex items-center b-0 w-full cursor-pointer "+"after:content-[''] after:shrink-0 after:w-[14px] after:h-[14px] after:ml-auto after:transition-[transform] after:duration-[200ms] after:ease-out after:bg-[length:14px_14px] after:bg-no-repeat after:bg-arrow",{"text-[16px] font-semibold":o,"text-[14px] font-normal":!o,"after:-rotate-180":t,"after:rotate-0":!t}),onClick:r,title:e.title,children:e.title})}),(0,or.jsx)("ul",{className:"block m-0 p-0 text-sm transition-[height] duration-[200ms] ease-out",style:{height:t?"auto":"0"},children:t&&(0,or.jsx)("div",{children:e.content})})]})}var df=U0;var Lt=M(W());function W0({items:e,itemsCutoff:t,multipleOpen:r,openByDefault:o,titleLabels:i,currentState:s,actionClickLabels:c}){let[u,d]=(0,Xi.useState)(new Array),[h,y]=(0,Xi.useState)(!1),b=p=>{d(r?k=>k.includes(p)?k.filter(S=>S!==p):[...k,p]:k=>k.includes(p)?[]:[p])},m=h?e:e.slice(0,t);return o&&!r&&d([0]),(0,Lt.jsxs)("ul",{className:"block m-0 pl-4 overflow-x-hidden",children:[m.map((p,k)=>(0,Lt.jsx)(Lt.Fragment,{children:(0,Lt.jsx)(df,{data:p,isOpen:s&&s[k]?s[k]:o&&r?!u.includes(k):u.includes(k),titleLabels:i,btnOnClick:()=>{b(k),c&&c(k)}},p.title+k+"--accordion")})),(0,Lt.jsx)(J0,{show:!h&&e.length>t,items:e.slice(t),toggle:()=>y(!h)})]})}function J0(e){return e.show?(0,Lt.jsxs)("span",{className:"whitespace-pre text-xs font-medium opacity-70 hover:cursor-pointer",onClick:e.toggle,children:["+",e.items.length," day(s) more"]}):null}var pf=W0;var be=M(W());function hf(e){let{analyzerData:t}=_e(),r=[];return e.clickedObject.type==="blob"?r=e.clickedObject.commits.map(o=>t.commits[o]):r=Array.from(K0(e.clickedObject)).map(o=>t.commits[o]).sort((o,i)=>i.time-o.time),(0,be.jsx)(Q0,{commits:r})}function X0(e){if(!e.items)return null;let t=e.sortBy!==void 0?e.sortBy:"date",r=Y0(e.items,t),o=new Array;for(let[i,s]of Object.entries(r))o.push({title:i,content:(0,be.jsx)(be.Fragment,{children:s.map(c=>(0,be.jsx)(be.Fragment,{children:(0,be.jsx)("li",{className:"cursor-auto",style:{listStyleImage:`url(${ff})`},onClick:()=>e.handleOnClick?e.handleOnClick(c):null,children:c.message},c.time+c.message+"--itemContentAccordion")}))})});return(0,be.jsx)(_r.Fragment,{children:(0,be.jsx)(pf,{titleLabels:!0,multipleOpen:!0,openByDefault:!0,items:o,itemsCutoff:e.commitCutoff})},o.length.toString()+t+e.commitCutoff.toString()+new Date().toDateString())}function Q0(e){var c;let t=(0,_r.useId)(),[r,o]=(0,_r.useState)(!0),i=(c=e.commits)!=null?c:[],s=3;return i.length==0?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("h3",{className:"font-bold",children:"Commit history"}),(0,be.jsx)("div",{children:(0,be.jsx)("p",{children:"No commits found"})})]}):(0,be.jsxs)(be.Fragment,{children:[(0,be.jsxs)("div",{className:"flex cursor-pointer justify-between hover:opacity-70",children:[(0,be.jsx)("label",{className:"label grow",children:(0,be.jsx)("h3",{className:"font-bold",children:"Commit history"})}),(0,be.jsx)(Gt,{id:t,open:!r,onClick:()=>o(!r)})]}),(0,be.jsx)("div",{children:(0,be.jsx)(X0,{commitCutoff:r?s:i.length,items:i})})]})}function Y0(e,t){let r={};switch(t){case"author":e.map(o=>{let i=o.author;return r[i]||(r[i]=[]),r[i].push(o),o});break;case"date":default:e.map(o=>{let i=No(o.time);return r[i]||(r[i]=[]),r[i].push(o),o})}return r}function K0(e){let t=new Set;r(e);function r(o){for(let i of o.children)if(i)if(i.type==="blob"){if(!i.commits)continue;for(let s of i.commits)t.add(s)}else i.type==="tree"&&r(i)}return t}var R=M(W());function Z0(e){let t=e.lastIndexOf("/"),r=e.lastIndexOf("\\");return t!==-1?e.slice(0,t):r!==-1?e.slice(0,r):e}function gf({className:e="",showUnionAuthorsModal:t}){var E;let{setClickedObject:r,clickedObject:o}=lt(),i=xr(),{metricType:s,authorshipType:c}=Oe(),{state:u}=Tt(),{setPath:d,path:h}=bt(),{analyzerData:y}=_e(),b=(0,ct.useRef)(!1);(0,ct.useEffect)(()=>{b.current&&(r(null),b.current=!1)},[o,r,u]),(0,ct.useEffect)(()=>{r(F=>ey(y.commit.tree,F))},[y,r]);let[m]=Ge(),{backgroundColor:p,color:k,lightBackground:S}=(0,ct.useMemo)(()=>{var D,re,pe;if(!o)return{backgroundColor:null,color:null,lightBackground:!0};let F=(re=(D=m[c])==null?void 0:D.get(s))==null?void 0:re.colormap,P=(pe=F==null?void 0:F.get(o.path))!=null?pe:"#808080",H=P?Xr(P):null;return{backgroundColor:P,color:H,lightBackground:H==="#000000"}},[o,m,s,c]);if(!o)return null;let _=o.type==="blob",L=dc(o.name.split("."));return(0,R.jsxs)("div",{className:ge(e,"card flex grow flex-col gap-2 transition-colors"),style:k?{backgroundColor:p,color:k}:{},children:[(0,R.jsxs)("div",{className:"flex grow flex-col gap-2",children:[(0,R.jsxs)("h2",{className:"card__title grid grid-cols-[auto,1fr,auto] gap-2",children:[(0,R.jsx)(nr.Icon,{path:o.type==="blob"?Nl:kr,size:"1.25em"}),(0,R.jsx)("span",{className:"truncate",title:o.name,children:o.name}),(0,R.jsx)(Sr,{absolute:!1,onClick:()=>r(null)})]}),(0,R.jsxs)("div",{className:"grid grid-cols-[auto,1fr] gap-x-3 gap-y-1",children:[_?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(iy,{size:o.sizeInBytes,isBinary:o.isBinary}),(0,R.jsx)(ry,{clickedBlob:o}),(0,R.jsx)(oy,{clickedBlob:o})]}):(0,R.jsx)(ty,{clickedTree:o}),(0,R.jsx)(ny,{path:o.path})]}),(0,R.jsx)("div",{className:"card bg-white/70 text-black",children:_?(0,R.jsx)(mf,{authors:(E=o.unionedAuthors)==null?void 0:E[c]}):(0,R.jsx)(mf,{authors:ly(o,c)})}),(0,R.jsxs)("button",{className:ge("btn",{"btn--outlined--light":!S,"btn--outlined":S}),onClick:t,children:[(0,R.jsx)(nr.Icon,{path:wr}),"Group authors"]}),(0,R.jsx)("div",{className:"card bg-white/70 text-black",children:(0,R.jsx)(hf,{state:u,clickedObject:o})})]}),(0,R.jsx)("div",{className:"flex gap-2",children:_?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(Ot,{className:"w-max",method:"post",action:i.pathname,children:[(0,R.jsx)("input",{type:"hidden",name:"ignore",value:o.path}),(0,R.jsxs)("button",{className:ge("btn",{"btn--outlined--light":!S,"btn--outlined":S}),type:"submit",disabled:u!=="idle",onClick:()=>{b.current=!0},title:"Hide this file",children:[(0,R.jsx)(nr.Icon,{path:Po}),"Hide"]})]}),o.name.includes(".")?(0,R.jsxs)(Ot,{className:"w-max",method:"post",action:i.pathname,children:[(0,R.jsx)("input",{type:"hidden",name:"ignore",value:`*.${L}`}),(0,R.jsxs)("button",{className:ge("btn",{"btn--outlined--light":!S,"btn--outlined":S}),type:"submit",disabled:u!=="idle",onClick:()=>{b.current=!0},children:[(0,R.jsx)(nr.Icon,{path:Po}),(0,R.jsxs)("span",{children:["Hide .",L," files"]})]})]}):null]}):(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)(Ot,{method:"post",action:i.pathname,children:[(0,R.jsx)("input",{type:"hidden",name:"ignore",value:o.path}),(0,R.jsxs)("button",{className:ge("btn",{"btn--outlined--light":!S,"btn--outlined":S}),type:"submit",disabled:u!=="idle",onClick:()=>{b.current=!0,d(Z0(h))},children:[(0,R.jsx)(nr.Icon,{path:Po}),"Hide this folder"]})]})})})]})}function ey(e,t){if(t===null)return null;let r=e,o=t.path.split("/");for(let i=0;i<o.length;i++)for(let s of r.children){if(s.hash===t.hash)return s;if(s.type==="tree"){let c=s.name.split("/");if(c[0]===o[i]){r=s,i+=c.length-1;break}}}return r}function ty(e){let t=e.clickedTree.children.filter(o=>o.type==="tree").length,r=e.clickedTree.children.length-t;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Files"}),(0,R.jsx)("p",{className:"break-all text-sm",children:r}),(0,R.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Folders"}),(0,R.jsx)("p",{className:"break-all text-sm",children:t})]})}function ry(e){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Commits"}),(0,R.jsx)("p",{className:"break-all text-sm",children:e.clickedBlob.commits.length>0?e.clickedBlob.commits.length:0})]})}function oy(e){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Last changed"}),(0,R.jsx)("p",{className:"break-all text-sm",children:No(e.clickedBlob.lastChangeEpoch)})]})}function ny(e){let{state:t}=Tt(),{clickedObject:r}=lt();return r?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Located at"}),(0,R.jsxs)("div",{className:"grid grid-cols-[1fr,auto] items-center justify-between gap-2 break-all text-sm",children:[(0,R.jsx)("p",{className:"truncate",title:e.path,children:e.path}),(0,R.jsxs)(Ot,{method:"post",action:location.pathname,title:r.name,children:[(0,R.jsx)("input",{type:"hidden",name:"open",value:r.path}),(0,R.jsx)("button",{className:"btn--icon",disabled:t!=="idle",children:(0,R.jsx)(nr.Icon,{path:Zl,size:"1.25em",className:"w-max",title:r.type==="blob"?"Open file in default app":"Browse folder in system explorer"})})]})]})]}):null}function iy(e){var r;let t=uf((r=e.size)!=null?r:0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"flex items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Size"}),(0,R.jsxs)("p",{className:"break-all text-sm",children:[t.value," ",t.unit," ",(0,R.jsx)("span",{className:"opacity-50",children:e.isBinary?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("br",{}),"(binary file)"]}):null})]})]})}var ln=2;function mf(e){let t=(0,ct.useId)(),[r,o]=(0,ct.useState)(!0),i=Object.entries(ay(e.authors)).sort((c,u)=>c[1]<u[1]?1:-1),s=i.length>ln+1;return(0,R.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,R.jsxs)("div",{className:`flex justify-between ${s?"cursor-pointer hover:opacity-70":""}`,children:[(0,R.jsx)("label",{className:"label grow",htmlFor:t,children:(0,R.jsx)("h3",{className:"font-bold",children:"Author distribution"})}),s?(0,R.jsx)(Gt,{id:t,open:!r,onClick:()=>o(!r)}):null]}),(0,R.jsx)("div",{className:"grid grid-cols-[1fr,auto] gap-1",children:s?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(on,{show:!0,items:i.slice(0,ln)}),(0,R.jsx)(on,{show:!r,items:i.slice(ln)}),r?(0,R.jsxs)("button",{className:"text-left text-xs opacity-70 hover:opacity-100",onClick:()=>o(!r),children:["+ ",i.slice(ln).length," more"]}):null]}):(0,R.jsx)(R.Fragment,{children:i.length>0&&!sy(e.authors)?(0,R.jsx)(on,{show:!0,items:i}):(0,R.jsx)("p",{children:"No authors found"})})})]})}function ay(e){if(!e)throw Error("unionedAuthors is undefined");let t=Object.values(e).reduce((o,i)=>o+i,0);return Object.entries(e).reduce((o,[i,s])=>{let c=s/t;return{...o,[i]:c}},{})}function sy(e){if(!e)return!0;let t=Object.entries(e);for(let[,r]of t)if(r>0)return!1;return!0}function ly(e,t){let r={};o(e);function o(i){var s,c;for(let u of i.children)if(u.type==="blob"){let d=(s=u.unionedAuthors)==null?void 0:s[t];if(!d)throw Error("No unioned authors");for(let[h,y]of Object.entries(d))r[h]=((c=r[h])!=null?c:0)+y}else u.type==="tree"&&o(u)}return r}var Jt=M(z());var En=M(Ve());var Fy=M(z(),1),$f=M(z(),1),Gf=M(z(),1),Cn=M(z(),1),Nr=M(z(),1),zf=M(z(),1),kn=M(z(),1),$y=M(z(),1),cy=Object.defineProperty,uy=(e,t)=>{for(var r in t)cy(e,r,{get:t[r],enumerable:!0})},ke={};uy(ke,{assign:()=>dy,colors:()=>qt,createStringInterpolator:()=>sa,skipAnimation:()=>Ef,to:()=>Pf,willAdvance:()=>la});var ta=to(),V=e=>eo(e,ta),ra=to();V.write=e=>eo(e,ra);var gn=to();V.onStart=e=>eo(e,gn);var oa=to();V.onFrame=e=>eo(e,oa);var na=to();V.onFinish=e=>eo(e,na);var Pr=[];V.setTimeout=(e,t)=>{let r=V.now()+t,o=()=>{let s=Pr.findIndex(c=>c.cancel==o);~s&&Pr.splice(s,1),zt-=~s?1:0},i={time:r,handler:e,cancel:o};return Pr.splice(Mf(r),0,i),zt+=1,Af(),i};var Mf=e=>~(~Pr.findIndex(t=>t.time>e)||~Pr.length);V.cancel=e=>{gn.delete(e),oa.delete(e),na.delete(e),ta.delete(e),ra.delete(e)};V.sync=e=>{Zi=!0,V.batchedUpdates(e),Zi=!1};V.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...i){t=i,V.onStart(r)}return o.handler=e,o.cancel=()=>{gn.delete(r),t=null},o};var ia=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>ia=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Of()};var Ht=-1,zt=0,Zi=!1;function eo(e,t){Zi?(t.delete(e),e(0)):(t.add(e),Af())}function Af(){Ht<0&&(Ht=0,V.frameLoop!=="demand"&&ia(Tf))}function fy(){Ht=-1}function Tf(){~Ht&&(ia(Tf),V.batchedUpdates(Of))}function Of(){let e=Ht;Ht=V.now();let t=Mf(Ht);if(t&&(_f(Pr.splice(0,t),r=>r.handler()),zt-=t),!zt){fy();return}gn.flush(),ta.flush(e?Math.min(64,Ht-e):16.667),oa.flush(),ra.flush(),na.flush()}function to(){let e=new Set,t=e;return{add(r){zt+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return zt-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,zt-=t.size,_f(t,o=>o(r)&&e.add(o)),zt+=e.size,t=e)}}}function _f(e,t){e.forEach(r=>{try{t(r)}catch(o){V.catch(o)}})}function bn(){}var Lf=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ft(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function Ne(e,t,r){if(T.arr(e)){for(let o=0;o<e.length;o++)t.call(r,e[o],`${o}`);return}for(let o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o)}var Se=e=>T.und(e)?[]:T.arr(e)?e:[e];function ir(e,t){if(e.size){let r=Array.from(e);e.clear(),U(r,t)}}var ar=(e,...t)=>ir(e,r=>r(...t)),aa=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sa,Pf,qt=null,Ef=!1,la=bn,dy=e=>{e.to&&(Pf=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(qt=e.colors),e.skipAnimation!=null&&(Ef=e.skipAnimation),e.createStringInterpolator&&(sa=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(la=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Kr=new Set,et=[],Qi=[],pn=0,Pt={get idle(){return!Kr.size&&!et.length},start(e){pn>e.priority?(Kr.add(e),V.onStart(py)):(Nf(e),V(ea))},advance:ea,sort(e){if(pn)V.onFrame(()=>Pt.sort(e));else{let t=et.indexOf(e);~t&&(et.splice(t,1),jf(e))}},clear(){et=[],Kr.clear()}};function py(){Kr.forEach(Nf),Kr.clear(),V(ea)}function Nf(e){et.includes(e)||jf(e)}function jf(e){et.splice(hy(et,t=>t.priority>e.priority),0,e)}function ea(e){let t=Qi;for(let r=0;r<et.length;r++){let o=et[r];pn=o.priority,o.idle||(la(o),o.advance(e),o.idle||t.push(o))}return pn=0,Qi=et,Qi.length=0,et=t,et.length>0}function hy(e,t){let r=e.findIndex(t);return r<0?e.length:r}var my=(e,t,r)=>Math.min(Math.max(r,e),t),Rf={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ut="[-+]?\\d*\\.?\\d+",hn=ut+"%";function vn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gy=new RegExp("rgb"+vn(ut,ut,ut)),by=new RegExp("rgba"+vn(ut,ut,ut,ut)),vy=new RegExp("hsl"+vn(ut,hn,hn)),yy=new RegExp("hsla"+vn(ut,hn,hn,ut)),xy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cy=/^#([0-9a-fA-F]{6})$/,ky=/^#([0-9a-fA-F]{8})$/;function Sy(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Cy.exec(e))?parseInt(t[1]+"ff",16)>>>0:qt&&qt[e]!==void 0?qt[e]:(t=gy.exec(e))?(Lr(t[1])<<24|Lr(t[2])<<16|Lr(t[3])<<8|255)>>>0:(t=by.exec(e))?(Lr(t[1])<<24|Lr(t[2])<<16|Lr(t[3])<<8|yf(t[4]))>>>0:(t=xy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ky.exec(e))?parseInt(t[1],16)>>>0:(t=wy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vy.exec(e))?(bf(vf(t[1]),cn(t[2]),cn(t[3]))|255)>>>0:(t=yy.exec(e))?(bf(vf(t[1]),cn(t[2]),cn(t[3]))|yf(t[4]))>>>0:null}function Yi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bf(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o,s=Yi(i,o,e+1/3),c=Yi(i,o,e),u=Yi(i,o,e-1/3);return Math.round(s*255)<<24|Math.round(c*255)<<16|Math.round(u*255)<<8}function Lr(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function vf(e){return(parseFloat(e)%360+360)%360/360}function yf(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function cn(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function xf(e){let t=Sy(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,o=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${r}, ${o}, ${i}, ${s})`}var Vt=(e,t,r)=>{if(T.fun(e))return e;if(T.arr(e))return Vt({range:e,output:t,extrapolate:r});if(T.str(e.output[0]))return sa(e);let o=e,i=o.output,s=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",u=o.extrapolateRight||o.extrapolate||"extend",d=o.easing||(h=>h);return h=>{let y=Ay(h,s);return My(h,s[y],s[y+1],i[y],i[y+1],d,c,u,o.map)}};function My(e,t,r,o,i,s,c,u,d){let h=d?d(e):e;if(h<t){if(c==="identity")return h;c==="clamp"&&(h=t)}if(h>r){if(u==="identity")return h;u==="clamp"&&(h=r)}return o===i?o:t===r?e<=t?o:i:(t===-1/0?h=-h:r===1/0?h=h-t:h=(h-t)/(r-t),h=s(h),o===-1/0?h=-h:i===1/0?h=h+o:h=h*(i-o)+o,h)}function Ay(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Ty=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);let o=r*e,i=t==="end"?Math.floor(o):Math.ceil(o);return my(0,1,i/e)},mn=1.70158,un=mn*1.525,wf=mn+1,Cf=2*Math.PI/3,kf=2*Math.PI/4.5,fn=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ca={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>wf*e*e*e-mn*e*e,easeOutBack:e=>1+wf*Math.pow(e-1,3)+mn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((un+1)*2*e-un)/2:(Math.pow(2*e-2,2)*((un+1)*(e*2-2)+un)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Cf),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Cf)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kf))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kf)/2+1,easeInBounce:e=>1-fn(1-e),easeOutBounce:fn,easeInOutBounce:e=>e<.5?(1-fn(1-2*e))/2:(1+fn(2*e-1))/2,steps:Ty},Zr=Symbol.for("FluidValue.get"),Er=Symbol.for("FluidValue.observers"),Fe=e=>Boolean(e&&e[Zr]),Me=e=>e&&e[Zr]?e[Zr]():e,ua=e=>e[Er]||null;function Oy(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Et(e,t){let r=e[Er];r&&r.forEach(o=>{Oy(o,t)})}var yn=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_y(this,e)}},_y=(e,t)=>Ff(e,Zr,t);function dt(e,t){if(e[Zr]){let r=e[Er];r||Ff(e,Er,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Nt(e,t){let r=e[Er];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[Er]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Ff=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),dn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ly=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Sf=new RegExp(`(${dn.source})(%|[a-z]+)`,"i"),Py=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,If=e=>{let[t,r]=Ey(e);if(!t||aa())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&xn.test(r))return If(r);if(r)return r}return e},Ey=e=>{let t=xn.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},Ki,Ny=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,wn=e=>{Ki||(Ki=qt?new RegExp(`(${Object.keys(qt).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(s=>Me(s).replace(xn,If).replace(Ly,xf).replace(Ki,xf)),r=t.map(s=>s.match(dn).map(Number)),i=r[0].map((s,c)=>r.map(u=>{if(!(c in u))throw Error('The arity of each "output" value must be equal');return u[c]})).map(s=>Vt({...e,output:s}));return s=>{let c=!Sf.test(t[0])&&t.find(d=>Sf.test(d))?.replace(dn,""),u=0;return t[0].replace(dn,()=>`${i[u++](s)}${c||""}`).replace(Py,Ny)}},fa="react-spring: ",Df=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${fa}once requires a function parameter`);return(...o)=>{r||(t(...o),r=!0)}},jy=Df(console.warn);function da(){jy(`${fa}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Ry=Df(console.warn);function Bf(){Ry(`${fa}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ut(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!aa()&&xn.test(e)||e in(qt||{}))}var tt=aa()?Cn.useEffect:Cn.useLayoutEffect,Iy=()=>{let e=(0,Gf.useRef)(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ro(){let e=(0,$f.useState)()[1],t=Iy();return()=>{t.current&&e(Math.random())}}function Hf(e,t){let[r]=(0,Nr.useState)(()=>({inputs:t,result:e()})),o=(0,Nr.useRef)(),i=o.current,s=i;return s?Boolean(t&&s.inputs&&Dy(t,s.inputs))||(s={inputs:t,result:e()}):s=r,(0,Nr.useEffect)(()=>{o.current=s,i==r&&(r.inputs=r.result=void 0)},[s]),s.result}function Dy(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var jr=e=>(0,zf.useEffect)(e,By),By=[];function Sn(e){let t=(0,kn.useRef)();return(0,kn.useEffect)(()=>{t.current=e}),t.current}var vt=M(z(),1);var Xf=M(z(),1),jt=M(z(),1);var oo=Symbol.for("Animated:node"),Gy=e=>!!e&&e[oo]===e,We=e=>e&&e[oo],no=(e,t)=>Lf(e,oo,t),Rr=e=>e&&e[oo]&&e[oo].getPayload(),Wf=class{constructor(){no(this,this)}getPayload(){return this.payload||[]}},Fr=class extends Wf{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Fr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ir=class extends Fr{constructor(e){super(0),this._string=null,this._toString=Vt({output:[e,e]})}static create(e){return new Ir(e)}getValue(){let e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Vt({output:[this.getValue(),e]})),this._value=0,super.reset()}},Mn={dependencies:null},io=class extends Wf{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return Ne(this.source,(r,o)=>{Gy(r)?t[o]=r.getValue(e):Fe(r)?t[o]=Me(r):e||(t[o]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return Ne(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Mn.dependencies&&Fe(e)&&Mn.dependencies.add(e);let t=Rr(e);t&&U(t,r=>this.add(r))}},Jf=class extends io{constructor(e){super(e)}static create(e){return new Jf(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((r,o)=>r.setValue(e[o])).some(Boolean):(super.setValue(e.map(Hy)),!0)}};function Hy(e){return(Ut(e)?Ir:Fr).create(e)}function ao(e){let t=We(e);return t?t.constructor:T.arr(e)?Jf:Ut(e)?Ir:Fr}var qf=(e,t)=>{let r=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,jt.forwardRef)((o,i)=>{let s=(0,jt.useRef)(null),c=r&&(0,jt.useCallback)(k=>{s.current=Vy(i,k)},[i]),[u,d]=qy(o,t),h=ro(),y=()=>{let k=s.current;if(r&&!k)return;(k?t.applyAnimatedValues(k,u.getValue(!0)):!1)===!1&&h()},b=new zy(y,d),m=(0,jt.useRef)();tt(()=>(m.current=b,U(d,k=>dt(k,b)),()=>{m.current&&(U(m.current.deps,k=>Nt(k,m.current)),V.cancel(m.current.update))})),(0,jt.useEffect)(y,[]),jr(()=>()=>{let k=m.current;U(k.deps,S=>Nt(S,k))});let p=t.getComponentProps(u.getValue());return Xf.createElement(e,{...p,ref:c})})},zy=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function qy(e,t){let r=new Set;return Mn.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new io(e),Mn.dependencies=null,[e,r]}function Vy(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Vf=Symbol.for("AnimatedComponent"),Qf=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new io(i),getComponentProps:o=i=>i}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},s=c=>{let u=Uf(c)||"Anonymous";return T.str(c)?c=s[c]||(s[c]=qf(c,i)):c=c[Vf]||(c[Vf]=qf(c,i)),c.displayName=`Animated(${u})`,c};return Ne(e,(c,u)=>{T.arr(e)&&(u=Uf(c)),s[u]=s(c)}),{animated:s}},Uf=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;var Tn=M(z(),1),xd=M(z(),1);var p1=M(z(),1);var Cd=M(z(),1),Sa=M(z(),1);var kd=M(z(),1);function sr(e,...t){return T.fun(e)?e(...t):e}var uo=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):Se(e).includes(t))),sd=(e,t)=>T.obj(e)?t&&e[t]:e,ld=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Uy=e=>e,wa=(e,t=Uy)=>{let r=Wy;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let o={};for(let i of r){let s=t(e[i],i);T.und(s)||(o[i]=s)}return o},Wy=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Jy={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Xy(e){let t={},r=0;if(Ne(e,(o,i)=>{Jy[i]||(t[i]=o,r++)}),r)return t}function cd(e){let t=Xy(e);if(t){let r={to:t};return Ne(e,(o,i)=>i in t||(r[i]=o)),r}return{...e}}function fo(e){return e=Me(e),T.arr(e)?e.map(fo):Ut(e)?ke.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Qy(e){for(let t in e)return!0;return!1}function ma(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function Yy(e,t){e.ref?.delete(e),t?.delete(e)}function Ky(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Zy={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},ga={...Zy.default,mass:1,damping:1,easing:ca.linear,clamp:!1},e1=class{constructor(){this.velocity=0,Object.assign(this,ga)}};function t1(e,t,r){r&&(r={...r},Yf(r,t),t={...r,...t}),Yf(e,t),Object.assign(e,t);for(let c in ga)e[c]==null&&(e[c]=ga[c]);let{frequency:o,damping:i}=e,{mass:s}=e;return T.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*s,e.friction=4*Math.PI*i*s/o),e}function Yf(e,t){if(!T.und(t.decay))e.duration=void 0;else{let r=!T.und(t.tension)||!T.und(t.friction);(r||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Kf=[],r1=class{constructor(){this.changed=!1,this.values=Kf,this.toValues=null,this.fromValues=Kf,this.config=new e1,this.immediate=!1}};function ud(e,{key:t,props:r,defaultProps:o,state:i,actions:s}){return new Promise((c,u)=>{let d,h,y=uo(r.cancel??o?.cancel,t);if(y)p();else{T.und(r.pause)||(i.paused=uo(r.pause,t));let k=o?.pause;k!==!0&&(k=i.paused||uo(k,t)),d=sr(r.delay||0,t),k?(i.resumeQueue.add(m),s.pause()):(s.resume(),m())}function b(){i.resumeQueue.add(m),i.timeouts.delete(h),h.cancel(),d=h.time-V.now()}function m(){d>0&&!ke.skipAnimation?(i.delayed=!0,h=V.setTimeout(p,d),i.pauseQueue.add(b),i.timeouts.add(h)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(b),i.timeouts.delete(h),e<=(i.cancelId||0)&&(y=!0);try{s.start({...r,callId:e,cancel:y},c)}catch(k){u(k)}}})}var Ca=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Dr(e.get()):t.every(r=>r.noop)?fd(e.get()):pt(e.get(),t.every(r=>r.finished)),fd=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),pt=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Dr=e=>({value:e,cancelled:!0,finished:!1});function dd(e,t,r,o){let{callId:i,parentId:s,onRest:c}=t,{asyncTo:u,promise:d}=r;return!s&&e===u&&!t.reset?d:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let h=wa(t,(_,L)=>L==="onRest"?void 0:_),y,b,m=new Promise((_,L)=>(y=_,b=L)),p=_=>{let L=i<=(r.cancelId||0)&&Dr(o)||i!==r.asyncId&&pt(o,!1);if(L)throw _.result=L,b(_),_},k=(_,L)=>{let E=new Zf,F=new ed;return(async()=>{if(ke.skipAnimation)throw po(r),F.result=pt(o,!1),b(F),F;p(E);let P=T.obj(_)?{..._}:{...L,to:_};P.parentId=i,Ne(h,(D,re)=>{T.und(P[re])&&(P[re]=D)});let H=await o.start(P);return p(E),r.paused&&await new Promise(D=>{r.resumeQueue.add(D)}),H})()},S;if(ke.skipAnimation)return po(r),pt(o,!1);try{let _;T.arr(e)?_=(async L=>{for(let E of L)await k(E)})(e):_=Promise.resolve(e(k,o.stop.bind(o))),await Promise.all([_.then(y),m]),S=pt(o.get(),!0,!1)}catch(_){if(_ instanceof Zf)S=_.result;else if(_ instanceof ed)S=_.result;else throw _}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?u:void 0,r.promise=s?d:void 0)}return T.fun(c)&&V.batchedUpdates(()=>{c(S,o,o.item)}),S})()}function po(e,t){ir(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zf=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ed=class extends Error{constructor(){super("SkipAnimationSignal")}},ba=e=>e instanceof ka,o1=1,ka=class extends yn{constructor(){super(...arguments),this.id=o1++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=We(this);return e&&e.getValue()}to(...e){return ke.to(this,e)}interpolate(...e){return da(),ke.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Et(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Pt.sort(this),Et(this,{type:"priority",parent:this,priority:e})}},lr=Symbol.for("SpringPhase"),pd=1,va=2,ya=4,pa=e=>(e[lr]&pd)>0,Wt=e=>(e[lr]&va)>0,so=e=>(e[lr]&ya)>0,td=(e,t)=>t?e[lr]|=va|pd:e[lr]&=~va,rd=(e,t)=>t?e[lr]|=ya:e[lr]&=~ya,n1=class extends ka{constructor(e,t){if(super(),this.animation=new r1,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(e)||!T.und(t)){let r=T.obj(e)?{...e}:{...t,from:e};T.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Wt(this)||this._state.asyncTo)||so(this)}get goal(){return Me(this.animation.to)}get velocity(){let e=We(this);return e instanceof Fr?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return pa(this)}get isAnimating(){return Wt(this)}get isPaused(){return so(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,o=this.animation,{toValues:i}=o,{config:s}=o,c=Rr(o.to);!c&&Fe(o.to)&&(i=Se(Me(o.to))),o.values.forEach((h,y)=>{if(h.done)return;let b=h.constructor==Ir?1:c?c[y].lastPosition:i[y],m=o.immediate,p=b;if(!m){if(p=h.lastPosition,s.tension<=0){h.done=!0;return}let k=h.elapsedTime+=e,S=o.fromValues[y],_=h.v0!=null?h.v0:h.v0=T.arr(s.velocity)?s.velocity[y]:s.velocity,L,E=s.precision||(S==b?.005:Math.min(1,Math.abs(b-S)*.001));if(T.und(s.duration))if(s.decay){let F=s.decay===!0?.998:s.decay,P=Math.exp(-(1-F)*k);p=S+_/(1-F)*(1-P),m=Math.abs(h.lastPosition-p)<=E,L=_*P}else{L=h.lastVelocity==null?_:h.lastVelocity;let F=s.restVelocity||E/10,P=s.clamp?0:s.bounce,H=!T.und(P),D=S==b?h.v0>0:S<b,re,pe=!1,ae=1,Ce=Math.ceil(e/ae);for(let he=0;he<Ce&&(re=Math.abs(L)>F,!(!re&&(m=Math.abs(b-p)<=E,m)));++he){H&&(pe=p==b||p>b==D,pe&&(L=-L*P,p=b));let Re=-s.tension*1e-6*(p-b),Ie=-s.friction*.001*L,J=(Re+Ie)/s.mass;L=L+J*ae,p=p+L*ae}}else{let F=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,h.durationProgress>0&&(h.elapsedTime=s.duration*h.durationProgress,k=h.elapsedTime+=e)),F=(s.progress||0)+k/this._memoizedDuration,F=F>1?1:F<0?0:F,h.durationProgress=F),p=S+s.easing(F)*(b-S),L=(p-h.lastPosition)/e,m=F==1}h.lastVelocity=L,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),m=!0)}c&&!c[y].done&&(m=!1),m?h.done=!0:t=!1,h.setValue(p,s.round)&&(r=!0)});let u=We(this),d=u.getValue();if(t){let h=Me(o.to);(d!==h||r)&&!s.decay?(u.setValue(h),this._onChange(h)):r&&s.decay&&this._onChange(d),this._stop()}else r&&this._onChange(d)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Wt(this)){let{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return T.und(e)?(r=this.queue||[],this.queue=[]):r=[T.obj(e)?e:{...t,to:e}],Promise.all(r.map(o=>this._update(o))).then(o=>Ca(this,o))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),po(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:r,from:o}=e;r=T.obj(r)?r[t]:r,(r==null||ma(r))&&(r=void 0),o=T.obj(o)?o[t]:o,o==null&&(o=void 0);let i={to:r,from:o};return pa(this)||(e.reverse&&([r,o]=[o,r]),o=Me(o),T.und(o)?We(this)||this._set(r):this._set(o)),i}_update({...e},t){let{key:r,defaultProps:o}=this;e.default&&Object.assign(o,wa(e,(c,u)=>/^on/.test(u)?sd(c,r):c)),nd(this,e,"onProps"),co(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let s=this._state;return ud(++this._lastCallId,{key:r,props:e,defaultProps:o,state:s,actions:{pause:()=>{so(this)||(rd(this,!0),ar(s.pauseQueue),co(this,"onPause",pt(this,lo(this,this.animation.to)),this))},resume:()=>{so(this)&&(rd(this,!1),Wt(this)&&this._resume(),ar(s.resumeQueue),co(this,"onResume",pt(this,lo(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(c=>{if(e.loop&&c.finished&&!(t&&c.noop)){let u=hd(e);if(u)return this._update(u,!0)}return c})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Dr(this));let o=!T.und(e.to),i=!T.und(e.from);if(o||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(Dr(this));let{key:s,defaultProps:c,animation:u}=this,{to:d,from:h}=u,{to:y=d,from:b=h}=e;i&&!o&&(!t.default||T.und(y))&&(y=b),t.reverse&&([y,b]=[b,y]);let m=!ft(b,h);m&&(u.from=b),b=Me(b);let p=!ft(y,d);p&&this._focus(y);let k=ma(t.to),{config:S}=u,{decay:_,velocity:L}=S;(o||i)&&(S.velocity=0),t.config&&!k&&t1(S,sr(t.config,s),t.config!==c.config?sr(c.config,s):void 0);let E=We(this);if(!E||T.und(y))return r(pt(this,!0));let F=T.und(t.reset)?i&&!t.default:!T.und(b)&&uo(t.reset,s),P=F?b:this.get(),H=fo(y),D=T.num(H)||T.arr(H)||Ut(H),re=!k&&(!D||uo(c.immediate||t.immediate,s));if(p){let he=ao(y);if(he!==E.constructor)if(re)E=this._set(H);else throw Error(`Cannot animate between ${E.constructor.name} and ${he.name}, as the "to" prop suggests`)}let pe=E.constructor,ae=Fe(y),Ce=!1;if(!ae){let he=F||!pa(this)&&m;(p||he)&&(Ce=ft(fo(P),H),ae=!Ce),(!ft(u.immediate,re)&&!re||!ft(S.decay,_)||!ft(S.velocity,L))&&(ae=!0)}if(Ce&&Wt(this)&&(u.changed&&!F?ae=!0:ae||this._stop(d)),!k&&((ae||Fe(d))&&(u.values=E.getPayload(),u.toValues=Fe(y)?null:pe==Ir?[1]:Se(H)),u.immediate!=re&&(u.immediate=re,!re&&!F&&this._set(d)),ae)){let{onRest:he}=u;U(a1,Ie=>nd(this,t,Ie));let Re=pt(this,lo(this,d));ar(this._pendingCalls,Re),this._pendingCalls.add(r),u.changed&&V.batchedUpdates(()=>{u.changed=!F,he?.(Re,this),F?sr(c.onRest,Re):u.onStart?.(Re,this)})}F&&this._set(P),k?r(dd(t.to,t,this._state,this)):ae?this._start():Wt(this)&&!p?this._pendingCalls.add(r):r(fd(P))}_focus(e){let t=this.animation;e!==t.to&&(ua(this)&&this._detach(),t.to=e,ua(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Fe(t)&&(dt(t,this),ba(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Fe(e)&&Nt(e,this)}_set(e,t=!0){let r=Me(e);if(!T.und(r)){let o=We(this);if(!o||!ft(r,o.getValue())){let i=ao(r);!o||o.constructor!=i?no(this,i.create(r)):o.setValue(r),o&&V.batchedUpdates(()=>{this._onChange(r,t)})}}return We(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,co(this,"onStart",pt(this,lo(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),sr(this.animation.onChange,e,this)),sr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;We(this).reset(Me(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Wt(this)||(td(this,!0),so(this)||this._resume())}_resume(){ke.skipAnimation?this.finish():Pt.start(this)}_stop(e,t){if(Wt(this)){td(this,!1);let r=this.animation;U(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Et(this,{type:"idle",parent:this});let o=t?Dr(this.get()):pt(this.get(),lo(this,e??r.to));ar(this._pendingCalls,o),r.changed&&(r.changed=!1,co(this,"onRest",o,this))}}};function lo(e,t){let r=fo(t),o=fo(e.get());return ft(o,r)}function hd(e,t=e.loop,r=e.to){let o=sr(t);if(o){let i=o!==!0&&cd(o),s=(i||e).reverse,c=!i||i.reset;return ho({...e,loop:t,default:!1,pause:void 0,to:!s||ma(r)?r:void 0,from:c?e.from:void 0,reset:c,...i})}}function ho(e){let{to:t,from:r}=e=cd(e),o=new Set;return T.obj(t)&&od(t,o),T.obj(r)&&od(r,o),e.keys=o.size?Array.from(o):null,e}function i1(e){let t=ho(e);return T.und(t.default)&&(t.default=wa(t)),t}function od(e,t){Ne(e,(r,o)=>r!=null&&t.add(o))}var a1=["onStart","onRest","onChange","onPause","onResume"];function nd(e,t,r){e.animation[r]=t[r]!==ld(t,r)?sd(t[r],e.key):void 0}function co(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var s1=["onStart","onChange","onRest"],l1=1,c1=class{constructor(e,t){this.id=l1++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];T.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(ho(e)),this}start(e){let{queue:t}=this;return e?t=Se(e).map(ho):this.queue=[],this._flush?this._flush(this,t):(yd(this,t),xa(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let r=this.springs;U(Se(t),o=>r[o].stop(!!e))}else po(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{let t=this.springs;U(Se(e),r=>t[r].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{let t=this.springs;U(Se(e),r=>t[r].resume())}return this}each(e){Ne(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,o=this._active.size>0,i=this._changed.size>0;(o&&!this._started||i&&!this._started)&&(this._started=!0,ir(e,([u,d])=>{d.value=this.get(),u(d,this,this._item)}));let s=!o&&this._started,c=i||s&&r.size?this.get():null;i&&t.size&&ir(t,([u,d])=>{d.value=c,u(d,this,this._item)}),s&&(this._started=!1,ir(r,([u,d])=>{d.value=c,u(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;V.onFrame(this._onFrame)}};function xa(e,t){return Promise.all(t.map(r=>md(e,r))).then(r=>Ca(e,r))}async function md(e,t,r){let{keys:o,to:i,from:s,loop:c,onRest:u,onResolve:d}=t,h=T.obj(t.default)&&t.default;c&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);let y=T.arr(i)||T.fun(i)?i:void 0;y?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):U(s1,S=>{let _=t[S];if(T.fun(_)){let L=e._events[S];t[S]=({finished:E,cancelled:F})=>{let P=L.get(_);P?(E||(P.finished=!1),F&&(P.cancelled=!0)):L.set(_,{value:null,finished:E||!1,cancelled:F||!1})},h&&(h[S]=t[S])}});let b=e._state;t.pause===!b.paused?(b.paused=t.pause,ar(t.pause?b.pauseQueue:b.resumeQueue)):b.paused&&(t.pause=!0);let m=(o||Object.keys(e.springs)).map(S=>e.springs[S].start(t)),p=t.cancel===!0||ld(t,"cancel")===!0;(y||p&&b.asyncId)&&m.push(ud(++e._lastAsyncId,{props:t,state:b,actions:{pause:bn,resume:bn,start(S,_){p?(po(b,e._lastAsyncId),_(Dr(e))):(S.onRest=u,_(dd(y,S,b,e)))}}})),b.paused&&await new Promise(S=>{b.resumeQueue.add(S)});let k=Ca(e,await Promise.all(m));if(c&&k.finished&&!(r&&k.noop)){let S=hd(t,c,i);if(S)return yd(e,[S]),md(e,S,!0)}return d&&V.batchedUpdates(()=>d(k,e,e.item)),k}function id(e,t){let r={...e.springs};return t&&U(Se(t),o=>{T.und(o.keys)&&(o=ho(o)),T.obj(o.to)||(o={...o,to:void 0}),vd(r,o,i=>bd(i))}),gd(e,r),r}function gd(e,t){Ne(t,(r,o)=>{e.springs[o]||(e.springs[o]=r,dt(r,e))})}function bd(e,t){let r=new n1;return r.key=e,t&&dt(r,t),r}function vd(e,t,r){t.keys&&U(t.keys,o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)})}function yd(e,t){U(t,r=>{vd(e.springs,r,o=>bd(o,e))})}var On=({children:e,...t})=>{let r=(0,xd.useContext)(An),o=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=Hf(()=>({pause:o,immediate:i}),[o,i]);let{Provider:s}=An;return Tn.createElement(s,{value:t},e)},An=u1(On,{});On.Provider=An.Provider;On.Consumer=An.Consumer;function u1(e,t){return Object.assign(e,Tn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var f1=()=>{let e=[],t=function(o){Bf();let i=[];return U(e,(s,c)=>{if(T.und(o))i.push(s.start());else{let u=r(o,s,c);u&&i.push(s.start(u))}}),i};t.current=e,t.add=function(o){e.includes(o)||e.push(o)},t.delete=function(o){let i=e.indexOf(o);~i&&e.splice(i,1)},t.pause=function(){return U(e,o=>o.pause(...arguments)),this},t.resume=function(){return U(e,o=>o.resume(...arguments)),this},t.set=function(o){U(e,(i,s)=>{let c=T.fun(o)?o(s,i):o;c&&i.set(c)})},t.start=function(o){let i=[];return U(e,(s,c)=>{if(T.und(o))i.push(s.start());else{let u=this._getProps(o,s,c);u&&i.push(s.start(u))}}),i},t.stop=function(){return U(e,o=>o.stop(...arguments)),this},t.update=function(o){return U(e,(i,s)=>i.update(this._getProps(o,i,s))),this};let r=function(o,i,s){return T.fun(o)?o(s,i):o};return t._getProps=r,t};function d1(e,t,r){let o=T.fun(t)&&t;o&&!r&&(r=[]);let i=(0,vt.useMemo)(()=>o||arguments.length==3?f1():void 0,[]),s=(0,vt.useRef)(0),c=ro(),u=(0,vt.useMemo)(()=>({ctrls:[],queue:[],flush(L,E){let F=id(L,E);return s.current>0&&!u.queue.length&&!Object.keys(F).some(H=>!L.springs[H])?xa(L,E):new Promise(H=>{gd(L,F),u.queue.push(()=>{H(xa(L,E))}),c()})}}),[]),d=(0,vt.useRef)([...u.ctrls]),h=[],y=Sn(e)||0;(0,vt.useMemo)(()=>{U(d.current.slice(e,y),L=>{Yy(L,i),L.stop(!0)}),d.current.length=e,b(y,e)},[e]),(0,vt.useMemo)(()=>{b(0,Math.min(y,e))},r);function b(L,E){for(let F=L;F<E;F++){let P=d.current[F]||(d.current[F]=new c1(null,u.flush)),H=o?o(F,P):t[F];H&&(h[F]=i1(H))}}let m=d.current.map((L,E)=>id(L,h[E])),p=(0,vt.useContext)(On),k=Sn(p),S=p!==k&&Qy(p);tt(()=>{s.current++,u.ctrls=d.current;let{queue:L}=u;L.length&&(u.queue=[],U(L,E=>E())),U(d.current,(E,F)=>{i?.add(E),S&&E.start({default:p});let P=h[F];P&&(Ky(E,P.ref),E.ref?E.queue.push(P):E.start(P))})}),jr(()=>()=>{U(u.ctrls,L=>L.stop(!0))});let _=m.map(L=>({...L}));return i?[_,i]:_}function wd(e,t){let r=T.fun(e),[[o],i]=d1(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[o,i]:o}var h1=class extends ka{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Vt(...t);let r=this._get(),o=ao(r);no(this,o.create(r))}advance(e){let t=this._get(),r=this.get();ft(t,r)||(We(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ad(this._active)&&ha(this)}_get(){let e=T.arr(this.source)?this.source.map(Me):Se(Me(this.source));return this.calc(...e)}_start(){this.idle&&!ad(this._active)&&(this.idle=!1,U(Rr(this),e=>{e.done=!1}),ke.skipAnimation?(V.batchedUpdates(()=>this.advance()),ha(this)):Pt.start(this))}_attach(){let e=1;U(Se(this.source),t=>{Fe(t)&&dt(t,this),ba(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(Se(this.source),e=>{Fe(e)&&Nt(e,this)}),this._active.clear(),ha(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Se(this.source).reduce((t,r)=>Math.max(t,(ba(r)?r.priority:0)+1),0))}};function m1(e){return e.idle!==!1}function ad(e){return!e.size||Array.from(e).every(m1)}function ha(e){e.idle||(e.idle=!0,U(Rr(e),t=>{t.done=!0}),Et(e,{type:"idle",parent:e}))}ke.assign({createStringInterpolator:wn,to:(e,t)=>new h1(e,t)});var X5=Pt.advance;var Md=M(kl(),1);var Ad=/^--/;function g1(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ad.test(e)&&!(mo.hasOwnProperty(e)&&mo[e])?t+"px":(""+t).trim()}var Sd={};function b1(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:o,children:i,scrollTop:s,scrollLeft:c,viewBox:u,...d}=t,h=Object.values(d),y=Object.keys(d).map(b=>r||e.hasAttribute(b)?b:Sd[b]||(Sd[b]=b.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));i!==void 0&&(e.textContent=i);for(let b in o)if(o.hasOwnProperty(b)){let m=g1(b,o[b]);Ad.test(b)?e.style.setProperty(b,m):e.style[b]=m}y.forEach((b,m)=>{e.setAttribute(b,h[m])}),s!==void 0&&(e.scrollTop=s),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var mo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v1=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),y1=["Webkit","Ms","Moz","O"];mo=Object.keys(mo).reduce((e,t)=>(y1.forEach(r=>e[v1(r,t)]=e[t]),e),mo);var x1=/^(matrix|translate|scale|rotate|skew)/,w1=/^(translate)/,C1=/^(rotate|skew)/,Ma=(e,t)=>T.num(e)&&e!==0?e+t:e,_n=(e,t)=>T.arr(e)?e.every(r=>_n(r,t)):T.num(e)?e===t:parseFloat(e)===t,k1=class extends io{constructor({x:e,y:t,z:r,...o}){let i=[],s=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),s.push(c=>[`translate3d(${c.map(u=>Ma(u,"px")).join(",")})`,_n(c,0)])),Ne(o,(c,u)=>{if(u==="transform")i.push([c||""]),s.push(d=>[d,d===""]);else if(x1.test(u)){if(delete o[u],T.und(c))return;let d=w1.test(u)?"px":C1.test(u)?"deg":"";i.push(Se(c)),s.push(u==="rotate3d"?([h,y,b,m])=>[`rotate3d(${h},${y},${b},${Ma(m,d)})`,_n(m,0)]:h=>[`${u}(${h.map(y=>Ma(y,d)).join(",")})`,_n(h,u.startsWith("scale")?1:0)])}}),i.length&&(o.transform=new S1(i,s)),super(o)}},S1=class extends yn{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(r,o)=>{let i=Me(r[0]),[s,c]=this.transforms[o](T.arr(i)?i:r.map(Me));e+=" "+s,t=t&&c}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,r=>Fe(r)&&dt(r,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,r=>Fe(r)&&Nt(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Et(this,e)}},M1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];ke.assign({batchedUpdates:Md.unstable_batchedUpdates,createStringInterpolator:wn,colors:Rf});var A1=Qf(M1,{applyAnimatedValues:b1,createAnimatedStyle:e=>new k1(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Br=A1.animated;var Nd=M(z()),go=M(z());var jd=M(Ed());function Rd(){let{ref:e,width:t,height:r}=(0,jd.useComponentSize)();return(0,go.useMemo)(()=>[e,{width:t,height:r}],[e,t,r])}function bo(e){let{transitionsEnabled:t}=Oe(),[r,o]=tr(!0);return(0,go.useEffect)(()=>{setTimeout(()=>o(!1),0)},[o]),wd({...typeof e=="object"?e:{},immediate:r||!t})}function Pn(){let[e,t]=(0,Nd.useState)(!1);return(0,go.useEffect)(()=>{t(!0)},[t]),e}var fe=M(W()),D1="Git Truck",B1="Analyzing | Git Truck",Fd=(0,Jt.memo)(function(){var p,k;let t=Pn(),{analyzerData:r,repo:o}=_e(),i=Tt(),s=xr(),c=yl(),[u,d]=(0,Jt.useState)(!1),[h,y]=(0,Jt.useState)(!1);(0,Jt.useEffect)(()=>{document.title=u?B1:D1},[u]);let b=S=>{d(!0),c(["",o.name,S].join("/"))};(0,Jt.useEffect)(()=>{i.state==="idle"&&d(!1)},[i.state]);let m=new Date(r.lastRunEpoch).toISOString();return(0,fe.jsx)("div",{className:"flex flex-col gap-2",children:(0,fe.jsxs)("div",{className:"card",children:[(0,fe.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,fe.jsxs)("div",{className:"relative flex items-center",children:[(0,fe.jsx)("button",{className:"btn--icon btn--primary",title:"See analysis details",onClick:()=>y(!0),children:(0,fe.jsx)(En.Icon,{path:Hl,size:"1.5em"})}),(0,fe.jsxs)("div",{className:ge("card absolute left-0 top-0 z-10 h-max w-max shadow transition-opacity",{"hidden opacity-0":!h}),children:[(0,fe.jsx)("h2",{className:"card__title",children:"Analysis details"}),(0,fe.jsx)(Sr,{onClick:()=>y(!1)}),(0,fe.jsxs)("div",{className:"grid auto-rows-fr grid-cols-2 gap-0",children:[(0,fe.jsx)("span",{children:"Analyzed"}),(0,fe.jsx)("time",{className:"text-right",dateTime:m,title:m,children:t?uc(r.lastRunEpoch):""}),(0,fe.jsx)("span",{children:"As of commit"}),(0,fe.jsx)("span",{className:"text-right",title:(p=r.commit.message)!=null?p:"No commit message",children:(0,fe.jsxs)(Mr,{inline:!0,children:["#",r.commit.hash.slice(0,7)]})}),(0,fe.jsx)("span",{children:"Files analyzed"}),(0,fe.jsx)("span",{className:"text-right",children:(k=r.commit.fileCount)!=null?k:0})]})]})]}),(0,fe.jsx)("h2",{className:"card__title grow justify-start gap-2",title:o.name,children:o.name})]}),(0,fe.jsxs)("div",{className:"flex w-full auto-cols-max place-items-stretch gap-2",children:[(0,fe.jsxs)(er,{className:"btn btn--primary grow",to:"..",title:"See all repositories",children:[(0,fe.jsx)(En.Icon,{path:Al,size:.75}),(0,fe.jsx)("p",{children:"See more repositories"})]}),(0,fe.jsxs)(Ot,{method:"post",action:s.pathname,onSubmit:()=>{d(!0)},children:[(0,fe.jsx)("input",{type:"hidden",name:"refresh",value:"true"}),(0,fe.jsxs)("button",{className:"btn",disabled:i.state!=="idle",children:[(0,fe.jsx)(En.Icon,{path:oc,size:"1.25em"}),u?"Analyzing...":"Refresh"]})]})]}),(0,fe.jsx)(bc,{disabled:u,onChange:S=>b(S.target.value),defaultValue:r.branch,headGroups:o.refs,analyzedHeads:o.analyzedHeads},o.currentHead)]})})});var Nn=M(Ve()),jn=M(z()),He=M(W());function $1(e){if(!e.includes("/"))return e;let t=e.split("/");return t[t.length-1]}var Id=(0,jn.memo)(function(){let t=xr(),[r,o]=tr(!1),i=Tt(),{analyzerData:s}=_e(),c=(0,jn.useId)();return(0,He.jsxs)("div",{className:"card flex flex-col gap-2",children:[(0,He.jsxs)("h2",{className:"card__title cursor-pointer justify-start gap-2 hover:opacity-70",onClick:()=>o(!r),role:"button",children:[(0,He.jsx)(Nn.Icon,{path:xi,size:"1.25em"}),"Hidden files (",s.hiddenFiles.length,")",(0,He.jsx)(Gt,{id:c,className:"absolute right-2 top-2",open:r})]}),r?(0,He.jsx)("div",{children:s.hiddenFiles.map(u=>(0,He.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-2",title:u,children:[(0,He.jsxs)(Ot,{className:"w-4",method:"post",action:t.pathname,children:[(0,He.jsx)("input",{type:"hidden",name:"unignore",value:u}),(0,He.jsxs)("button",{className:"btn--icon btn--hover-swap h-4",title:"Show file",disabled:i.state!=="idle",children:[(0,He.jsx)(Nn.Icon,{path:xi,className:"inline-block h-full"}),(0,He.jsx)(Nn.Icon,{path:Pl,className:"hover-swap inline-block h-full"})]})]}),(0,He.jsx)("span",{className:"text-sm opacity-70",children:$1(u)})]},u))}):null]})});var Gd=M(Ve());var ve=M(W());function Dd({hoveredObject:e,metricCache:t}){var y,b;let[r,o,i,s]=t.legend,c=100/r,u=!1,d=0,h=(b=(y=lt().clickedObject)!=null?y:e)!=null?b:null;return Ze(h)&&(u=!0,d=c/2+c*s(h)),(0,ve.jsx)(ve.Fragment,{children:(0,ve.jsxs)("div",{className:"relative",children:[(0,ve.jsx)("div",{className:"flex",children:[...Array(r)].map((m,p)=>r>=4?(0,ve.jsx)(G1,{width:c,color:i(p),text:o(p),top:p%2===0},`legend-${p}`):(0,ve.jsx)(H1,{width:c,color:i(p),text:o(p)},`legend-${p}`))}),(0,ve.jsx)(Eo,{offset:d,visible:u})]})})}function G1({width:e,color:t,text:r,top:o}){return o?(0,ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ve.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ve.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ve.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,ve.jsx)("div",{style:{backgroundColor:t,height:"20px"}}),(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:r})]})}function H1({width:e,color:t,text:r}){return(0,ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${e}%`},children:[(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,ve.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,ve.jsx)("div",{style:{backgroundColor:t,height:"20px"}})]})}var Bd=M(z());var xt=M(W());function $d({hoveredObject:e,metricCache:t}){var k,S;let[r,o,i,s,c,u]=t.legend,{clickedObject:d}=lt(),h=(S=(k=d==null?void 0:d.path)!=null?k:e==null?void 0:e.path)!=null?S:null,y=h?t.colormap.get(h):null,b=y?Ro(y):-1,m=(0,Bd.useMemo)(()=>{let _=Ro(c),E=Ro(u)-_;return E===0?1:(b-_)/E},[b,u,c]),p=h!==null;return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsxs)("div",{className:"flex justify-between",children:[(0,xt.jsx)("span",{className:"font-bold",title:i,children:r}),(0,xt.jsx)("span",{className:"font-bold",title:s,children:o})]}),(0,xt.jsx)("div",{className:"relative h-6 w-full rounded-full",style:{backgroundImage:`linear-gradient(to right, ${c}, ${u})`},children:(0,xt.jsx)(Eo,{offset:m*100,visible:p})})]})}var Hd=M(z()),ze=M(W());function zd({hoveredObject:e,showUnionAuthorsModal:t,className:r=""}){var h;let{metricType:o,authorshipType:i}=Oe(),[s]=Ge(),c=(0,Hd.useDeferredValue)(e),u=(h=s[i].get(o))!=null?h:void 0;if(u===void 0)return null;let d=(0,ze.jsx)(ze.Fragment,{});switch(ef(o)){case"POINT":d=(0,ze.jsx)(Vu,{metricCache:u,hoveredObject:c});break;case"GRADIENT":d=(0,ze.jsx)($d,{metricCache:u,hoveredObject:c});break;case"SEGMENTS":d=(0,ze.jsx)(Dd,{metricCache:u,hoveredObject:c});break}return(0,ze.jsxs)("div",{className:`card flex-shrink-0 overflow-hidden ${r}`,children:[(0,ze.jsx)("h2",{className:"card__title",children:"Legend"}),(0,ze.jsx)("h3",{className:"card__subtitle",children:Or[o]}),(0,ze.jsx)("p",{className:"card-p",children:Zu(o,i)}),o==="TOP_CONTRIBUTOR"||o==="SINGLE_AUTHOR"?(0,ze.jsxs)("button",{className:"btn",onClick:t,children:[(0,ze.jsx)(Gd.Icon,{path:wr}),"Group authors"]}):null,d]})}var qd=M(Ve());var vo=M(W());function Gr(e){let t=Object.entries(e.enum);return(0,vo.jsx)("div",{className:"flex flex-wrap gap-0",children:t.map(([r,o])=>(0,vo.jsxs)("button",{className:ge("btn flex h-auto w-max justify-between gap-2 rounded-lg px-1 py-1 text-xs/none",{"btn--primary":r===e.defaultValue,"btn--outlined border-transparent hover:text-blue-500":r!==e.defaultValue}),onClick:()=>e.onChange(r),children:[(0,vo.jsx)(qd.default,{path:e.iconMap[r],size:"1rem"}),o]},r))})}var wt=M(Ve()),Vd=M(z());var ee=M(W());var Ud=(0,Vd.memo)(function(){let{metricType:t,chartType:r,depthType:o,sizeMetric:i,hierarchyType:s,transitionsEnabled:c,setTransitionsEnabled:u,labelsVisible:d,setLabelsVisible:h,setMetricType:y,setChartType:b,setDepthType:m,setHierarchyType:p,setSizeMetricType:k}=Oe(),[S,_]=Mi("LINK_METRIC_AND_SIZE_METRIC",!1),L={FILE_TYPE:jl,LAST_CHANGED:ki,MOST_COMMITS:wi,SINGLE_AUTHOR:Sl,TOP_CONTRIBUTOR:tc,TRUCK_FACTOR:Ci},E={FILE_SIZE:nc,EQUAL_SIZE:ic,MOST_COMMITS:wi,TRUCK_FACTOR:Ci,LAST_CHANGED:ki},F={BUBBLE_CHART:Ol,TREE_MAP:vi},P={NESTED:Fl,FLAT:vi},H={FILE_TYPE:"FILE_SIZE",TRUCK_FACTOR:"TRUCK_FACTOR",TOP_CONTRIBUTOR:"TRUCK_FACTOR",MOST_COMMITS:"MOST_COMMITS",SINGLE_AUTHOR:"TRUCK_FACTOR",LAST_CHANGED:"LAST_CHANGED"};return(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsxs)("div",{className:"card",children:[(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:rc,size:"1.25em"}),"Layout"]}),(0,ee.jsx)(Gr,{enum:Hi,defaultValue:r,onChange:D=>b(D),iconMap:F})]}),(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:ec,size:"1.25em"}),"Color"]}),(0,ee.jsx)(Gr,{enum:Or,defaultValue:t,onChange:D=>{if(y(D),!S)return;let re=H[D];re&&k(re)},iconMap:L})]}),(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:Gl,size:"1.25em"}),"Size"]}),(0,ee.jsx)(Gr,{enum:en,defaultValue:i,onChange:D=>k(D),iconMap:E})]}),(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:El,size:"1.25em"}),"Hiearchy"]}),(0,ee.jsx)(Gr,{enum:zi,defaultValue:s,onChange:D=>p(D),iconMap:P})]}),s==="NESTED"?(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:lc,size:"1.25em"}),"Depth"]}),(0,ee.jsx)(Gr,{enum:tn,defaultValue:o,onChange:D=>m(D),iconMap:of})]}):null,(0,ee.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,ee.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,ee.jsx)(wt.Icon,{path:Ll,size:"1.25em"}),"Settings"]}),(0,ee.jsxs)(Ar,{className:"text-sm",checked:Boolean(S),onChange:D=>{_(D.target.checked),D.target.checked&&k(H[t])},title:"Enable to sync size metric with color metric",children:[(0,ee.jsx)(wt.Icon,{className:"ml-1.5",path:ql,size:"1.25em"}),(0,ee.jsx)("span",{children:"Link size and color option"})]}),(0,ee.jsxs)(Ar,{className:"text-sm",checked:c,onChange:D=>u(D.target.checked),title:"Disable to improve performance when zooming",children:[(0,ee.jsx)(wt.Icon,{className:"ml-1.5",path:sc,size:"1.25em"}),"Transitions"]}),(0,ee.jsxs)(Ar,{className:"text-sm",checked:d,onChange:D=>h(D.target.checked),title:"Disable to improve performance",children:[(0,ee.jsx)(wt.Icon,{className:"ml-1.5",path:zl,size:"1.25em"}),"Labels"]})]})]})})});var ht=M(z());var Rn=M(z()),_a=(0,Rn.createContext)(void 0);function yo(){let e=(0,Rn.useContext)(_a);if(!e)throw new Error("useSearch must be used within a SearchProvider");return e}var La="options";var cr=M(W());function Wd({children:e,data:t}){let[r,o]=(0,ht.useState)(null),[i,s]=(0,ht.useState)({}),[c,u]=(0,ht.useState)(t.repo.name),[d,h]=(0,ht.useState)(null),y=(0,ht.useMemo)(()=>Ku(t.analyzerData),[t]),b=(0,ht.useMemo)(()=>({...Ue(),...r,setMetricType:m=>o(p=>({...p!=null?p:Ue(),metricType:m})),setChartType:m=>o(p=>({...p!=null?p:Ue(),chartType:m})),setDepthType:m=>o(p=>({...p!=null?p:Ue(),depthType:m})),setHierarchyType:m=>o(p=>({...p!=null?p:Ue(),hierarchyType:m})),setAuthorshipType:m=>o(p=>({...p!=null?p:Ue(),authorshipType:m})),setSizeMetricType:m=>o(p=>({...p!=null?p:Ue(),sizeMetric:m})),setHoveredBlob:m=>o(p=>({...p!=null?p:Ue(),hoveredBlob:m})),setClickedObject:m=>o(p=>({...p!=null?p:Ue(),clickedObject:m})),setTransitionsEnabled:m=>o(p=>({...p!=null?p:Ue(),transitionsEnabled:m})),setLabelsVisible:m=>o(p=>({...p!=null?p:Ue(),labelsVisible:m}))}),[r]);return(0,ht.useEffect)(()=>{let m=!1;return r&&requestAnimationFrame(()=>{m||localStorage.setItem(La,JSON.stringify(r))}),()=>{m=!0}},[r]),(0,ht.useEffect)(()=>{let m=localStorage.getItem(La);m&&o({...Ue(JSON.parse(m)),hasLoadedSavedOptions:!0})},[]),(0,cr.jsx)(Ui.Provider,{value:t,children:(0,cr.jsx)(_i.Provider,{value:y,children:(0,cr.jsx)(qi.Provider,{value:b,children:(0,cr.jsx)(_a.Provider,{value:{searchResults:i,setSearchResults:s},children:(0,cr.jsx)(Wi.Provider,{value:{path:c,setPath:u},children:(0,cr.jsx)(Vi.Provider,{value:{clickedObject:d,setClickedObject:h},children:e})})})})})})}var Je=M(z());var Jd=M(z());var Pa=M(Ve());var je=M(W());function z1(e,t){let r={};function o(i){for(let s of i.children)s.name.toLowerCase().includes(t.toLowerCase())&&t?r[s.path]=s:s.isSearchResult=!1,s.type==="tree"&&o(s)}return o(e),r}var Xd=(0,Je.memo)(function(){let t=(0,Je.useRef)(null),[r,o]=(0,Je.useTransition)(),[i,s]=(0,Je.useState)(""),{searchResults:c,setSearchResults:u}=yo(),d=(0,Je.useMemo)(()=>Object.values(c),[c]),h=(0,Jd.useId)(),{analyzerData:y}=_e();return(0,Je.useEffect)(()=>{let b=m=>{var p;m.ctrlKey&&m.key==="f"&&(m.preventDefault(),(p=t.current)==null||p.focus())};return document.body.addEventListener("keydown",b),()=>{document.body.removeEventListener("keydown",b)}},[]),(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)("div",{className:"card sticky top-0 z-10 flex flex-col gap-2",children:[(0,je.jsxs)("h2",{className:"card__title justify-start gap-2",children:[(0,je.jsx)(Pa.Icon,{path:Vl,size:"1.25em"}),"Search"]}),(0,je.jsxs)("div",{className:"flex gap-2",children:[(0,je.jsx)("input",{className:"input",ref:t,id:h,type:"search",placeholder:"Search for a file or folder...",value:i,onChange:b=>{let m=b.target.value;s(m),o(()=>{m.trim()===""&&u({}),u(z1(y.commit.tree,m))})}}),(0,je.jsx)("button",{className:"btn btn--primary",onClick:()=>{t.current&&(s(""),o(()=>{u({})}))},disabled:i.trim()==="",children:"Clear"})]}),r||i.length>0?(0,je.jsx)("p",{className:"card-p",children:r?"Searching...":i.length>0?`${d.length} results`:null}):null]}),d.length>0?(0,je.jsx)(q1,{}):null]})}),q1=(0,Je.memo)(function(){let{setPath:t}=bt(),{setClickedObject:r}=lt(),{searchResults:o}=yo();function i(s){if(r(s),s.type==="tree")t(s.path);else{let c=mc(s.path);t(pc(s.path.split(c)).join(c))}}return(0,je.jsx)("div",{className:"card relative gap-0",children:Object.values(o).map(s=>(0,je.jsxs)("button",{className:"flex items-center justify-start gap-2 text-sm font-bold opacity-70 hover:opacity-100",title:s.path,value:s.path,onClick:()=>i(s),children:[(0,je.jsx)(Pa.Icon,{path:s.type==="tree"?kr:Rl,size:.75,className:"shrink-0"}),(0,je.jsx)("span",{className:"truncate",children:s.name})]},s.path))})});var Qd=M(z()),Na=M(z());var ja=M(Ve());var Z=M(W());function Yd({visible:e,onClose:t}){var Ie;let{repo:r,analyzerData:o,truckConfig:i}=_e(),s=wl(),{authors:c}=o,u=(Ie=i.unionedAuthors)!=null?Ie:[],[d,h]=(0,Na.useState)([]),[y,b]=(0,Na.useState)(""),m=Tt(),[,p]=Ge(),[,k]=(0,Qd.useTransition)(),S=u.reduce((J,me)=>[...J,...me],[]).sort(Ea);function _(J){let me=u.filter((De,Ke)=>Ke!==J),Le=new FormData;Le.append("unionedAuthors",JSON.stringify(me)),s(Le,{action:`/${Jr(r.name,r.currentHead)}`,method:"post"})}function L(){let J=new FormData;J.append("unionedAuthors",JSON.stringify([])),s(J,{action:`/${Jr(r.name,r.currentHead)}`,method:"post"})}function E(){if(d.length===0)return;let J=new FormData;J.append("unionedAuthors",JSON.stringify([...u,d])),s(J,{action:`/${Jr(r.name,r.currentHead)}`,method:"post"}),h([])}function F(J,me){let Le=u.map((Ke,St)=>St===me?[J,...Ke.filter(zr=>zr!==J)]:Ke),De=new FormData;De.append("unionedAuthors",JSON.stringify(Le)),s(De,{action:`/${Jr(r.name,r.currentHead)}`,method:"post"})}let P=m.state!=="idle",H=c.filter(J=>!S.includes(J)).slice(0).sort(Ea);function D(J){J.target===J.currentTarget&&t()}Si("Escape",t);let re=J=>{var me;return(me=p.get(J))!=null?me:"#333"};if(!e)return null;let pe=H.length===0?"All detected authors have been grouped":"Select the authors that you know are the same person",ae=u.length===0?"No authors have been grouped yet":"",Ce=H.filter(J=>J.toLowerCase().includes(y.toLowerCase())).map(J=>(0,Z.jsx)(Ar,{className:"hover:opacity-70",checked:d.includes(J),onChange:me=>{var De;let Le=(De=me.target)!=null&&De.checked?[...d,J]:d.filter(Ke=>Ke!==J);h(Le)},children:(0,Z.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,Z.jsx)(mt,{dotColor:re(J)}),J]})},J)),he=u.map((J,me)=>{let Le=J[0],De=m.state!=="idle",Ke=re(Le);return(0,Z.jsxs)("div",{className:"card m-0 flex flex-col p-2",children:[(0,Z.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,Z.jsx)(mt,{dotColor:Ke}),(0,Z.jsx)("b",{children:Le})]}),J.slice(1).sort(Ea).map(St=>(0,Z.jsx)(Re,{alias:St,onClick:()=>F(St,me),disabled:De},St)),(0,Z.jsx)("div",{className:"flex justify-end",children:(0,Z.jsx)("button",{className:"btn",onClick:()=>_(me),title:"Ungroup",disabled:De,children:"Ungroup"})})]},me)});return(0,Z.jsx)("div",{className:"fixed inset-0 z-10 grid bg-black/50 p-2",onClick:D,children:(0,Z.jsxs)("div",{className:"card relative mx-auto grid h-full max-h-full w-auto max-w-screen-lg grid-flow-col grid-cols-[1fr_1fr] grid-rows-[max-content_max-content_max-content_max-content_1fr_max-content] gap-4 overflow-hidden",children:[(0,Z.jsx)("h2",{className:"col-span-2 text-2xl",children:"Group authors"}),(0,Z.jsx)("h3",{className:"text-lg font-bold",children:"Ungrouped authors"}),H.length>0?(0,Z.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,Z.jsx)("input",{className:"input",type:"search",placeholder:"Filter...",onChange:J=>k(()=>b(J.target.value))}),(0,Z.jsx)("button",{disabled:P||d.length===0,onClick:()=>h([]),className:"btn flex-grow",children:"Clear"}),(0,Z.jsxs)("button",{className:"btn btn--primary",onClick:E,title:"Group the selected authors",disabled:P||d.length===0,children:[(0,Z.jsx)(ja.Icon,{path:wr,size:1}),"Group"]})]}):(0,Z.jsx)("div",{}),(0,Z.jsx)("p",{children:pe}),(0,Z.jsx)("div",{className:"min-h-0 overflow-y-auto rounded-md bg-slate-50 p-4 shadow-inner",children:Ce}),(0,Z.jsx)("div",{}),(0,Z.jsx)("h3",{className:"text-lg font-bold",children:"Grouped authors"}),(0,Z.jsx)("div",{className:"mr-6 flex justify-end gap-4",children:u.length>0?(0,Z.jsx)("button",{className:"btn btn--danger",disabled:P,onClick:()=>{confirm("Are you sure you want to ungroup all grouped authors?")&&L()},children:"Ungroup all"}):(0,Z.jsx)("div",{})}),(0,Z.jsx)("p",{children:ae}),(0,Z.jsx)("div",{className:"flex flex-col gap-4 overflow-y-auto rounded-md bg-slate-50 p-4 shadow-inner",children:u.length>0?he:null}),(0,Z.jsx)("div",{className:"mr-6 flex justify-end gap-4",children:(0,Z.jsx)("button",{className:"btn",onClick:t,children:"Done"})}),(0,Z.jsx)(Sr,{onClick:t})]})});function Re({alias:J,onClick:me,disabled:Le}){return(0,Z.jsxs)("button",{className:"btn--icon flex grid-flow-col gap-2 text-sm [&:hover>svg]:opacity-50 [&>svg]:opacity-0",disabled:Le,onClick:me,title:"Make display name for this grouping",children:[(0,Z.jsx)(ja.Icon,{path:Tl,size:.75}),(0,Z.jsx)("label",{className:"label",children:J})]},J)}}var Ea=(e,t)=>e.toLowerCase().localeCompare(t.toLowerCase());var Fn=M(Ve()),In=M(z());var Xe=M(W());function Kd(){let{repo:e}=_e(),{path:t,setPath:r}=bt(),o=(0,In.useMemo)(()=>{let i=t,s=[];for(let c=0;c<8&&i!=="";c++){let u=i.lastIndexOf("/");s.push([i.substring(u+1),i]),i=i.substring(0,u)}return i!==""&&(s=s.slice(0,s.length-1),s.push(["...",""]),s.push([e.name,e.name])),s.reverse()},[t,e.name]);return(0,Xe.jsx)("div",{className:"flex items-center gap-1",children:o.length>1?o.map(([i,s],c)=>s===""||c===o.length-1?s===""?(0,Xe.jsxs)(In.Fragment,{children:[(0,Xe.jsx)("span",{className:"font-bold",children:i}),(0,Xe.jsx)(Fn.default,{path:Cr,size:1})]},s):(0,Xe.jsx)("span",{className:"font-bold",children:i},s):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsxs)("button",{className:"card flex flex-row gap-2 px-2 py-1 font-bold hover:opacity-70",onClick:()=>r(s),children:[c===0?(0,Xe.jsx)(Fn.default,{path:$l,size:1}):null,i]},s),(0,Xe.jsx)(Fn.default,{path:Cr,size:1})]})):null})}var Dn=M(Ve()),Zd=M(z()),Ct=M(W()),ep=(0,Zd.memo)(function(){return(0,Ct.jsxs)("div",{className:"card",children:[(0,Ct.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ct.jsx)("h3",{className:"card__title",children:"Help improve Git Truck"}),(0,Ct.jsx)(Dn.default,{path:Il,size:1})]}),(0,Ct.jsxs)("a",{className:"btn",href:"https://docs.google.com/forms/d/e/1FAIpQLSclLnUCPb0wLZx5RulQLaI_N_4wjNkd6z7YLkA3BzNVFjfiEg/viewform?usp=sf_link",target:"_blank",rel:"noopener noreferrer",children:[(0,Ct.jsx)(Dn.default,{path:Wl}),"Answer questionnaire"]}),(0,Ct.jsxs)("a",{className:"btn",href:"https://github.com/git-truck/git-truck/issues/new?template=user-issue.md",target:"_blank",rel:"noopener noreferrer",children:[(0,Ct.jsx)(Dn.default,{path:Ml}),"Open an issue"]})]})});function V1(e){var t=0,r=e.children,o=r&&r.length;if(!o)t=1;else for(;--o>=0;)t+=r[o].value;e.value=t}function tp(){return this.eachAfter(V1)}function rp(e,t){let r=-1;for(let o of this)e.call(t,o,++r,this);return this}function op(e,t){for(var r=this,o=[r],i,s,c=-1;r=o.pop();)if(e.call(t,r,++c,this),i=r.children)for(s=i.length-1;s>=0;--s)o.push(i[s]);return this}function np(e,t){for(var r=this,o=[r],i=[],s,c,u,d=-1;r=o.pop();)if(i.push(r),s=r.children)for(c=0,u=s.length;c<u;++c)o.push(s[c]);for(;r=i.pop();)e.call(t,r,++d,this);return this}function ip(e,t){let r=-1;for(let o of this)if(e.call(t,o,++r,this))return o}function ap(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,i=o&&o.length;--i>=0;)r+=o[i].value;t.value=r})}function sp(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function lp(e){for(var t=this,r=U1(t,e),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;e!==r;)o.splice(i,0,e),e=e.parent;return o}function U1(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),i=null;for(e=r.pop(),t=o.pop();e===t;)i=e,e=r.pop(),t=o.pop();return i}function cp(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function up(){return Array.from(this)}function fp(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function dp(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*pp(){var e=this,t,r=[e],o,i,s;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,o=e.children)for(i=0,s=o.length;i<s;++i)r.push(o[i]);while(r.length)}function Hr(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=X1)):t===void 0&&(t=J1);for(var r=new xo(e),o,i=[r],s,c,u,d;o=i.pop();)if((c=t(o.data))&&(d=(c=Array.from(c)).length))for(o.children=c,u=d-1;u>=0;--u)i.push(s=c[u]=new xo(c[u])),s.parent=o,s.depth=o.depth+1;return r.eachBefore(Y1)}function W1(){return Hr(this).eachBefore(Q1)}function J1(e){return e.children}function X1(e){return Array.isArray(e)?e[1]:null}function Q1(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Y1(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function xo(e){this.data=e,this.depth=this.height=0,this.parent=null}xo.prototype=Hr.prototype={constructor:xo,count:tp,each:rp,eachAfter:np,eachBefore:op,find:ip,sum:ap,sort:sp,path:lp,ancestors:cp,descendants:up,leaves:fp,links:dp,copy:W1,[Symbol.iterator]:pp};function hp(e){return e==null?null:Ra(e)}function Ra(e){if(typeof e!="function")throw new Error;return e}function Ft(){return 0}function Xt(e){return function(){return e}}function mp(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function gp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bp(e,t){let r=e.length,o,i;for(;r;)i=t()*r--|0,o=e[r],e[r]=e[i],e[i]=o;return e}function vp(e,t){for(var r=0,o=(e=bp(Array.from(e),t)).length,i=[],s,c;r<o;)s=e[r],c&&yp(c,s)?++r:(c=Z1(i=K1(i,s)),r=0);return c}function K1(e,t){var r,o;if(Fa(t,e))return[t];for(r=0;r<e.length;++r)if(Bn(t,e[r])&&Fa(wo(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(o=r+1;o<e.length;++o)if(Bn(wo(e[r],e[o]),t)&&Bn(wo(e[r],t),e[o])&&Bn(wo(e[o],t),e[r])&&Fa(xp(e[r],e[o],t),e))return[e[r],e[o],t];throw new Error}function Bn(e,t){var r=e.r-t.r,o=t.x-e.x,i=t.y-e.y;return r<0||r*r<o*o+i*i}function yp(e,t){var r=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function Fa(e,t){for(var r=0;r<t.length;++r)if(!yp(e,t[r]))return!1;return!0}function Z1(e){switch(e.length){case 1:return e2(e[0]);case 2:return wo(e[0],e[1]);case 3:return xp(e[0],e[1],e[2])}}function e2(e){return{x:e.x,y:e.y,r:e.r}}function wo(e,t){var r=e.x,o=e.y,i=e.r,s=t.x,c=t.y,u=t.r,d=s-r,h=c-o,y=u-i,b=Math.sqrt(d*d+h*h);return{x:(r+s+d/b*y)/2,y:(o+c+h/b*y)/2,r:(b+i+u)/2}}function xp(e,t,r){var o=e.x,i=e.y,s=e.r,c=t.x,u=t.y,d=t.r,h=r.x,y=r.y,b=r.r,m=o-c,p=o-h,k=i-u,S=i-y,_=d-s,L=b-s,E=o*o+i*i-s*s,F=E-c*c-u*u+d*d,P=E-h*h-y*y+b*b,H=p*k-m*S,D=(k*P-S*F)/(H*2)-o,re=(S*_-k*L)/H,pe=(p*F-m*P)/(H*2)-i,ae=(m*L-p*_)/H,Ce=re*re+ae*ae-1,he=2*(s+D*re+pe*ae),Re=D*D+pe*pe-s*s,Ie=-(Math.abs(Ce)>1e-6?(he+Math.sqrt(he*he-4*Ce*Re))/(2*Ce):Re/he);return{x:o+D+re*Ie,y:i+pe+ae*Ie,r:Ie}}function wp(e,t,r){var o=e.x-t.x,i,s,c=e.y-t.y,u,d,h=o*o+c*c;h?(s=t.r+r.r,s*=s,d=e.r+r.r,d*=d,s>d?(i=(h+d-s)/(2*h),u=Math.sqrt(Math.max(0,d/h-i*i)),r.x=e.x-i*o-u*c,r.y=e.y-i*c+u*o):(i=(h+s-d)/(2*h),u=Math.sqrt(Math.max(0,s/h-i*i)),r.x=t.x+i*o-u*c,r.y=t.y+i*c+u*o)):(r.x=t.x+r.r,r.y=t.y)}function Cp(e,t){var r=e.r+t.r-1e-6,o=t.x-e.x,i=t.y-e.y;return r>0&&r*r>o*o+i*i}function kp(e){var t=e._,r=e.next._,o=t.r+r.r,i=(t.x*r.r+r.x*t.r)/o,s=(t.y*r.r+r.y*t.r)/o;return i*i+s*s}function $n(e){this._=e,this.next=null,this.previous=null}function Sp(e,t){if(!(s=(e=gp(e)).length))return 0;var r,o,i,s,c,u,d,h,y,b,m;if(r=e[0],r.x=0,r.y=0,!(s>1))return r.r;if(o=e[1],r.x=-o.r,o.x=r.r,o.y=0,!(s>2))return r.r+o.r;wp(o,r,i=e[2]),r=new $n(r),o=new $n(o),i=new $n(i),r.next=i.previous=o,o.next=r.previous=i,i.next=o.previous=r;e:for(d=3;d<s;++d){wp(r._,o._,i=e[d]),i=new $n(i),h=o.next,y=r.previous,b=o._.r,m=r._.r;do if(b<=m){if(Cp(h._,i._)){o=h,r.next=o,o.previous=r,--d;continue e}b+=h._.r,h=h.next}else{if(Cp(y._,i._)){r=y,r.next=o,o.previous=r,--d;continue e}m+=y._.r,y=y.previous}while(h!==y.next);for(i.previous=r,i.next=o,r.next=o.previous=o=i,c=kp(r);(i=i.next)!==o;)(u=kp(i))<c&&(r=i,c=u);o=r.next}for(r=[o._],i=o;(i=i.next)!==o;)r.push(i._);for(i=vp(r,t),d=0;d<s;++d)r=e[d],r.x-=i.x,r.y-=i.y;return i.r}function t2(e){return Math.sqrt(e.value)}function Da(){var e=null,t=1,r=1,o=Ft;function i(s){let c=mp();return s.x=t/2,s.y=r/2,e?s.eachBefore(Mp(e)).eachAfter(Ia(o,.5,c)).eachBefore(Ap(1)):s.eachBefore(Mp(t2)).eachAfter(Ia(Ft,1,c)).eachAfter(Ia(o,s.r/Math.min(t,r),c)).eachBefore(Ap(Math.min(t,r)/(2*s.r))),s}return i.radius=function(s){return arguments.length?(e=hp(s),i):e},i.size=function(s){return arguments.length?(t=+s[0],r=+s[1],i):[t,r]},i.padding=function(s){return arguments.length?(o=typeof s=="function"?s:Xt(+s),i):o},i}function Mp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Ia(e,t,r){return function(o){if(i=o.children){var i,s,c=i.length,u=e(o)*t||0,d;if(u)for(s=0;s<c;++s)i[s].r+=u;if(d=Sp(i,r),u)for(s=0;s<c;++s)i[s].r-=u;o.r=d+u}}}function Ap(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function Tp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Op(e,t,r,o,i){for(var s=e.children,c,u=-1,d=s.length,h=e.value&&(o-t)/e.value;++u<d;)c=s[u],c.y0=r,c.y1=i,c.x0=t,c.x1=t+=c.value*h}function _p(e,t,r,o,i){for(var s=e.children,c,u=-1,d=s.length,h=e.value&&(i-r)/e.value;++u<d;)c=s[u],c.x0=t,c.x1=o,c.y0=r,c.y1=r+=c.value*h}var r2=(1+Math.sqrt(5))/2;function o2(e,t,r,o,i,s){for(var c=[],u=t.children,d,h,y=0,b=0,m=u.length,p,k,S=t.value,_,L,E,F,P,H,D;y<m;){p=i-r,k=s-o;do _=u[b++].value;while(!_&&b<m);for(L=E=_,H=Math.max(k/p,p/k)/(S*e),D=_*_*H,P=Math.max(E/D,D/L);b<m;++b){if(_+=h=u[b].value,h<L&&(L=h),h>E&&(E=h),D=_*_*H,F=Math.max(E/D,D/L),F>P){_-=h;break}P=F}c.push(d={value:_,dice:p<k,children:u.slice(y,b)}),d.dice?Op(d,r,o,i,S?o+=k*_/S:s):_p(d,r,o,S?r+=p*_/S:i,s),S-=_,y=b}return c}var Lp=function e(t){function r(o,i,s,c,u){o2(t,o,i,s,c,u)}return r.ratio=function(o){return e((o=+o)>1?o:1)},r}(r2);function Ba(){var e=Lp,t=!1,r=1,o=1,i=[0],s=Ft,c=Ft,u=Ft,d=Ft,h=Ft;function y(m){return m.x0=m.y0=0,m.x1=r,m.y1=o,m.eachBefore(b),i=[0],t&&m.eachBefore(Tp),m}function b(m){var p=i[m.depth],k=m.x0+p,S=m.y0+p,_=m.x1-p,L=m.y1-p;_<k&&(k=_=(k+_)/2),L<S&&(S=L=(S+L)/2),m.x0=k,m.y0=S,m.x1=_,m.y1=L,m.children&&(p=i[m.depth+1]=s(m)/2,k+=h(m)-p,S+=c(m)-p,_-=u(m)-p,L-=d(m)-p,_<k&&(k=_=(k+_)/2),L<S&&(S=L=(S+L)/2),e(m,k,S,_,L))}return y.round=function(m){return arguments.length?(t=!!m,y):t},y.size=function(m){return arguments.length?(r=+m[0],o=+m[1],y):[r,o]},y.tile=function(m){return arguments.length?(e=Ra(m),y):e},y.padding=function(m){return arguments.length?y.paddingInner(m).paddingOuter(m):y.paddingInner()},y.paddingInner=function(m){return arguments.length?(s=typeof m=="function"?m:Xt(+m),y):s},y.paddingOuter=function(m){return arguments.length?y.paddingTop(m).paddingRight(m).paddingBottom(m).paddingLeft(m):y.paddingTop()},y.paddingTop=function(m){return arguments.length?(c=typeof m=="function"?m:Xt(+m),y):c},y.paddingRight=function(m){return arguments.length?(u=typeof m=="function"?m:Xt(+m),y):u},y.paddingBottom=function(m){return arguments.length?(d=typeof m=="function"?m:Xt(+m),y):d},y.paddingLeft=function(m){return arguments.length?(h=typeof m=="function"?m:Xt(+m),y):h},y}function $a(e,t,r,o,i){var s=e.children,c,u=s.length,d,h=new Array(u+1);for(h[0]=d=c=0;c<u;++c)h[c+1]=d+=s[c].value;y(0,u,e.value,t,r,o,i);function y(b,m,p,k,S,_,L){if(b>=m-1){var E=s[b];E.x0=k,E.y0=S,E.x1=_,E.y1=L;return}for(var F=h[b],P=p/2+F,H=b+1,D=m-1;H<D;){var re=H+D>>>1;h[re]<P?H=re+1:D=re}P-h[H-1]<h[H]-P&&b+1<H&&--H;var pe=h[H]-F,ae=p-pe;if(_-k>L-S){var Ce=p?(k*ae+_*pe)/p:_;y(b,H,pe,k,S,Ce,L),y(H,m,ae,Ce,S,_,L)}else{var he=p?(S*ae+L*pe)/p:L;y(b,H,pe,k,S,_,he),y(H,m,ae,k,he,_,L)}}}var kt=M(z());var Pp="red";var ye=M(W()),Ip=(0,kt.memo)(function({setHoveredObject:t}){let[r,o]=Rd(),{searchResults:i}=yo(),s=(0,kt.useDeferredValue)(o),{analyzerData:c}=_e(),{chartType:u,sizeMetric:d,depthType:h,hierarchyType:y}=Oe(),{path:b}=bt(),{clickedObject:m,setClickedObject:p}=lt(),{setPath:k}=bt(),S;switch(h){case"One":S=1;break;case"Two":S=2;break;case"Three":S=3;break;case"Four":S=4;break;case"Five":S=5;break;case"Full":default:S=void 0}let _=(0,kt.useMemo)(()=>{if(s.width===0||s.height===0)return[];let E=y==="NESTED"?c.commit:{...c.commit,tree:{...c.commit.tree,children:Bp(c.commit.tree)}};return p2(E,s,u,d,b).descendants()},[s,y,c.commit,u,d,b]);(0,kt.useEffect)(()=>{t(null)},[u,c.commit,s,t]);let L=(E,F)=>Ze(E.data)?{onClick:P=>(P.stopPropagation(),p(E.data)),onMouseOver:()=>t(E.data),onMouseOut:()=>t(null)}:{onClick:P=>{P.stopPropagation(),p(E.data),k(E.data.path)},onMouseOver:P=>{P.stopPropagation(),t(F?null:E.data)},onMouseOut:()=>t(null)};return(0,ye.jsx)("div",{className:"relative grid place-items-center overflow-hidden",ref:r,children:(0,ye.jsx)("svg",{className:ge("grid h-full w-full place-items-center",{"cursor-zoom-out":b.includes("/")}),xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${s.width} ${s.height}`,onClick:()=>{let E=b.split("/").slice(0,-1).join("/");k(E===""?"/":E)},children:_.map((E,F)=>S!==void 0&&E.depth>S?null:(0,ye.jsx)("g",{className:ge("hover:opacity-60",{"cursor-pointer":F===0,"cursor-zoom-in":F>0&&$e(E.data),"animate-blink":(m==null?void 0:m.path)===E.data.path}),...L(E,F===0),children:(0,ye.jsx)(c2,{isRoot:F===0,d:E,isSearchMatch:Boolean(i[E.data.path])})},`${u}${E.data.path}`))})})}),c2=(0,kt.memo)(function({d:t,isRoot:r,isSearchMatch:o}){let{chartType:i,labelsVisible:s}=Oe(),c=s,{path:u}=bt(),d=t.data.name;if(r){let y=u.split("/"),b=d.split("/"),m=0,p=0;for(;m<y.length&&p<b.length;)y[m]!==b[p]?m++:(m++,p++);d=b.slice(p-1).join("/")}switch(i){case"BUBBLE_CHART":let y=t;h(k=>y.r<50||y.r*Math.PI<k.length*10);break;case"TREE_MAP":let b=t,m=$e(t.data)?13:10,p=$e(t.data)?15:16;h(k=>b.x1-b.x0-m*2<d.length*10,k=>b.y1-b.y0-p<14);break;default:throw Error("Unknown chart type")}return(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(u2,{className:ge({"cursor-pointer":Ze(t.data)}),d:t,isSearchMatch:o}),c?i==="BUBBLE_CHART"?(0,ye.jsx)(f2,{d:t,displayText:d}):(0,ye.jsx)(d2,{className:"font-mono",d:t,displayText:d}):null]});function h(y,b){y(d)&&(d=d.replace(/\/.+\//gm,"/.../"),y(d)&&(c=!1)),b&&b(d)&&(d=d.replace(/\/.+\//gm,"/.../"),b(d)&&(c=!1))}});function u2({d:e,isSearchMatch:t,className:r=""}){var h,y;let[o]=Ge(),{chartType:i,metricType:s,authorshipType:c}=Oe(),u=(0,kt.useMemo)(()=>{if(i==="BUBBLE_CHART"){let b=e;return Dp(b.x,b.y+14-1,b.r-1)}else{let b=e;return h2(b.x0,b.y0,b.x1-b.x0,b.y1-b.y0,8)}},[i,e]),d=bo({d:u,stroke:t?Pp:"transparent",strokeWidth:"1px",fill:Ze(e.data)?(y=(h=o[c].get(s))==null?void 0:h.colormap.get(e.data.path))!=null?y:"grey":"transparent"});return(0,ye.jsx)(Br.path,{...d,className:ge(r,{"animate-stroke-pulse":t,"stroke-black/20":$e(e.data)})})}function f2({d:e,displayText:t,className:r=""}){var h,y;let[o]=Ge(),{authorshipType:i,metricType:s}=Oe(),c=$e(e.data)?0:10,u=bo({d:Dp(e.x,e.y+14-1,e.r-c)}),d=bo({fill:Ze(e.data)?Xr((y=(h=o[i].get(s))==null?void 0:h.colormap.get(e.data.path))!=null?y:"#333"):"#333"});return(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(Br.path,{...u,id:e.data.path,className:"pointer-events-none fill-none stroke-none"}),$e(e.data)?(0,ye.jsx)(Br.text,{className:"pointer-events-none stroke-white stroke-[7px] font-mono text-sm font-bold",strokeLinecap:"round",children:(0,ye.jsx)("textPath",{startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})}):null,(0,ye.jsx)(Br.text,{...d,className:"pointer-events-none",children:(0,ye.jsx)("textPath",{className:ge("font-mono",r,{"text-sm font-bold":$e(e.data),"text-xs":!$e(e.data)}),startOffset:"50%",dominantBaseline:"central",textAnchor:"middle",xlinkHref:`#${e.data.path}`,children:t})})]})}function d2({d:e,displayText:t,className:r=""}){var h,y;let[o]=Ge(),{authorshipType:i,metricType:s}=Oe(),c=$e(e.data)?13:10,u=$e(e.data)?15:16,d=bo({x:e.x0+c,y:e.y0+u,fill:Ze(e.data)?Xr((y=(h=o[i].get(s))==null?void 0:h.colormap.get(e.data.path))!=null?y:"#333"):"#333"});return(0,ye.jsx)(Br.text,{...d,className:ge("pointer-events-none",r,{"font-bold":$e(e.data)}),children:t})}function p2(e,t,r,o,i){let c=e.tree,u=i.substring(e.tree.name.length+1).split("/");for(let y=0;y<u.length;y++)for(let b of c.children)if(b.type==="tree"){let m=b.name.split("/");if(m[0]===u[y]){c=b,y+=m.length-1;break}}let h=Hr(c).sum(y=>{var m,p,k;let b=y;switch(o){case"FILE_SIZE":return(m=b.sizeInBytes)!=null?m:1;case"MOST_COMMITS":return b.noCommits;case"EQUAL_SIZE":return 1;case"LAST_CHANGED":return((p=b.lastChangeEpoch)!=null?p:e.oldestLatestChangeEpoch)-e.oldestLatestChangeEpoch;case"TRUCK_FACTOR":return Object.keys((k=b.authors)!=null?k:{}).length}}).sort((y,b)=>b.value!==void 0&&y.value!==void 0?b.value-y.value:0);switch(r){case"TREE_MAP":let b=Ba().tile($a).size([t.width,t.height]).paddingInner(2).paddingOuter(4).paddingTop(20)(h);return Ga(b,k=>{let S=k;return Ze(k.data)&&S.x0>=1&&S.y0>=1||$e(k.data)}),b;case"BUBBLE_CHART":let p=Da().size([t.width,t.height-14]).padding(10)(h);return Ga(p,k=>{let S=k;return Ze(k.data)&&S.r>=1||$e(k.data)}),p;default:throw Error("Invalid chart type")}}function Ga(e,t){var r,o,i,s;e.children=(r=e.children)==null?void 0:r.filter(c=>t(c));for(let c of(o=e.children)!=null?o:[])((s=(i=c.children)==null?void 0:i.length)!=null?s:0)>0&&Ga(c,t)}function Dp(e,t,r){return`M${e},${t}
|
|
3
|
-
m0,${r}
|
|
4
|
-
a${r},${r} 0 1,1 0,${-r*2}
|
|
5
|
-
a${r},${r} 0 1,1 0,${r*2}`}function h2(e,t,r,o,i){return i=Math.min(i,Math.floor(r/3),Math.floor(o/3)),`M${e+i},${t}
|
|
6
|
-
h${r-i*2}
|
|
7
|
-
a${i},${i} 0 0 1 ${i},${i}
|
|
8
|
-
v${o-i*2}
|
|
9
|
-
a${i},${i} 0 0 1 ${-i},${i}
|
|
10
|
-
h${-r+i*2}
|
|
11
|
-
a${i},${i} 0 0 1 ${-i},${-i}
|
|
12
|
-
v${-o+i*2}
|
|
13
|
-
a${i},${i} 0 0 1 ${i},${-i}
|
|
14
|
-
z`}function Bp(e){let t=[];for(let r of e.children)r.type==="blob"?t.push(r):t.push(...Bp(r));return t}var Hn=M(Ve());var ot=M(z());var Ha=M(Ve()),Qe=M(W()),$p=(0,ot.memo)(function({hoveredObject:t,x:r,y:o}){var k;let i=(0,ot.useRef)(null),{metricType:s,authorshipType:c}=Oe(),[u]=Ge(),d=(0,ot.useMemo)(()=>{var L,E,F;if(!t)return null;let S=(E=(L=u[c])==null?void 0:L.get(s))==null?void 0:E.colormap;return(F=S==null?void 0:S.get(t.path))!=null?F:"grey"},[t,u,s,c]),h=(0,ot.useMemo)(()=>r<window.innerWidth/2,[r]),y=(0,ot.useMemo)(()=>o<window.innerHeight/2,[o]),b=(0,ot.useMemo)(()=>h?`calc(1rem + ${r}px)`:`calc(-1rem + ${r}px - 100%)`,[h,r]),m=(0,ot.useMemo)(()=>y?`calc(1rem + ${o}px)`:`calc(-1rem + ${o}px - 100%)`,[y,o]),p=t!==null;return(0,Qe.jsxs)("div",{className:`card absolute left-0 top-0 flex w-max flex-row place-items-center rounded-full py-0 pl-1 pr-2 will-change-transform ${p?"visible":"hidden"}`,ref:i,style:{transform:p?`translate(${b}, ${m})`:"none"},children:[(t==null?void 0:t.type)==="blob"?d?(0,Qe.jsx)(mt,{dotColor:d}):null:(0,Qe.jsx)(Ha.default,{className:"ml-0.5",path:kr,size:.75}),(0,Qe.jsx)("span",{className:"card__subtitle items-center font-bold",children:t&&Ze(t)?t==null?void 0:t.name:hc((k=t==null?void 0:t.path.split("/"))!=null?k:[]).map((S,_,L)=>(0,Qe.jsxs)(ot.Fragment,{children:[S,L.length>1&&_<L.length-1?(0,Qe.jsx)(Ha.default,{path:Ul,size:1}):null]},`segment-${_}${S}`))}),(t==null?void 0:t.type)==="blob"?m2({metric:s,hoveredBlob:t,authorshipType:c}):null]})});function m2(e){var t,r,o,i,s,c,u,d,h,y,b;switch(e.metric){case"MOST_COMMITS":let m=(t=e.hoveredBlob)==null?void 0:t.noCommits;return m?`${m} commit${m>1?"s":null}`:null;case"LAST_CHANGED":let p=(r=e.hoveredBlob)==null?void 0:r.lastChangeEpoch;return p?(0,Qe.jsx)(Qe.Fragment,{children:fc(p)}):null;case"SINGLE_AUTHOR":let k=e.hoveredBlob?Object.entries((s=(i=(o=e.hoveredBlob)==null?void 0:o.unionedAuthors)==null?void 0:i[e.authorshipType])!=null?s:[]):[];switch(k.length){case 0:return null;case 1:return`${k[0][0]} is the only author`;default:return`${k.length} authors`}case"TOP_CONTRIBUTOR":let S=(d=(u=(c=e.hoveredBlob)==null?void 0:c.dominantAuthor)==null?void 0:u[e.authorshipType])!=null?d:void 0;return S?(0,Qe.jsx)(Qe.Fragment,{children:S[0]}):null;case"TRUCK_FACTOR":let _=Object.entries((b=(y=(h=e.hoveredBlob)==null?void 0:h.unionedAuthors)==null?void 0:y.HISTORICAL)!=null?b:[]).length;switch(_){case 0:return null;case 1:return"1 author";default:return`${_} authors`}default:return null}}var Hp=M(kl()),G=M(W());var x2=()=>{let e=xl();if((0,Ye.useEffect)(()=>{console.error(e)},[e]),vl(e))return(0,G.jsxs)("div",{className:"app-container",children:[(0,G.jsx)("div",{}),(0,G.jsxs)("div",{className:"card",children:[(0,G.jsx)("h1",{children:"An error occured!"}),(0,G.jsx)("p",{children:"See console for more infomation."}),(0,G.jsxs)("p",{children:["Message: ",e.data.message]}),(0,G.jsx)(Mr,{children:e.data.message}),(0,G.jsx)("div",{children:(0,G.jsx)(er,{to:".",children:"Retry"})}),(0,G.jsx)("div",{children:(0,G.jsx)(er,{to:"..",children:"Go back"})})]})]});let t="Unknown error";return typeof e=="string"?t=e:typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"&&(t=e.message),(0,G.jsxs)("div",{className:"app-container",children:[(0,G.jsx)("div",{}),(0,G.jsxs)("div",{className:"card",children:[(0,G.jsx)("h1",{children:"An error occured!"}),(0,G.jsx)("p",{children:"See console for more infomation."}),(0,G.jsx)(Mr,{children:t}),(0,G.jsx)("div",{children:(0,G.jsx)(er,{to:".",children:"Retry"})}),(0,G.jsx)("div",{children:(0,G.jsx)(er,{to:"..",children:"Go back"})})]})]})},w2=(0,Ye.memo)(function(){let{gitTruckInfo:t}=_e();return(0,G.jsxs)("div",{className:"card",children:[(0,G.jsxs)("p",{children:["Update available: ",t.latestVersion]}),(0,G.jsxs)("p",{className:"card-p",children:["Currently installed: ",t.version]}),(0,G.jsxs)("p",{className:"card-p",children:["To update, close application and run: ",(0,G.jsx)(Mr,{inline:!0,children:"npx git-truck@latest"})]})]})});function zp(){let e=Pn(),t=Oi(),{analyzerData:r,gitTruckInfo:o}=t,[i,s]=(0,Ye.useState)(!1),[c,u]=(0,Ye.useState)(!1),[d,h]=(0,Ye.useState)(!1),[y,b]=tr(!1),[m,p]=(0,Ye.useState)(null),k=()=>b(!0);if(!r)return null;function S(){return d?"fullscreen":i&&c?"both-collapse":i?"left-collapse":c?"right-collapse":""}return(0,G.jsxs)(Wd,{data:t,children:[(0,G.jsxs)("div",{className:`app-container ${S()}`,children:[(0,G.jsxs)("aside",{className:ge("flex flex-col gap-2 p-2 pl-0",{"overflow-y-auto":!d}),children:[d?null:(0,G.jsx)("div",{className:"absolute z-10",children:(0,G.jsx)("div",{onClick:()=>s(!i),className:ge("absolute top-half-screen flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border-2 border-solid border-sky-500 bg-white",{"left-arrow-space":!i}),children:(0,G.jsx)(Hn.Icon,{path:i?Cr:yi,size:1})})}),i?null:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Fd,{}),(0,G.jsx)(Ud,{}),r.hiddenFiles.length>0?(0,G.jsx)(Id,{}):null,(0,G.jsx)(Xd,{})]})]}),(0,G.jsxs)("main",{className:"grid h-full min-w-[100px] grid-rows-[auto,1fr] gap-2 overflow-y-hidden p-2",children:[(0,G.jsxs)("header",{className:"grid grid-flow-col items-center justify-between gap-2",children:[(0,G.jsx)(Kd,{}),(0,G.jsx)(C2,{setIsFullscreen:h,isFullscreen:d})]}),e?(0,G.jsx)(k2,{hoveredObject:m,setHoveredObject:p}):(0,G.jsx)("div",{})]}),(0,G.jsxs)("aside",{className:ge("flex flex-col gap-2 p-2 pl-0",{"overflow-y-auto":!d}),children:[d?null:(0,G.jsx)("div",{className:"absolute z-10",children:(0,G.jsx)("div",{onClick:()=>u(!c),className:"absolute right-0 top-half-screen flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border-2 border-solid border-sky-500 bg-white",children:(0,G.jsx)(Hn.Icon,{path:c?yi:Cr,size:1})})}),c?null:(0,G.jsxs)(G.Fragment,{children:[o.latestVersion&&gc(o.latestVersion,o.version)===1?(0,G.jsx)(w2,{}):null,(0,G.jsx)(gf,{className:ge({"absolute bottom-0 right-0 max-h-screen -translate-x-full overflow-y-auto shadow shadow-black/50":d}),showUnionAuthorsModal:k}),(0,G.jsx)(zd,{hoveredObject:m,showUnionAuthorsModal:k}),(0,G.jsx)(ep,{})]})]})]}),(0,G.jsx)(Yd,{visible:y,onClose:()=>{b(!1)}})]})}var C2=(0,Ye.memo)(function({setIsFullscreen:t,isFullscreen:r}){return(0,G.jsx)("button",{className:"card btn--icon p-1",onClick:()=>t(o=>!o),title:"Toggle full view",children:(0,G.jsx)(Hn.Icon,{path:r?Bl:Dl,size:1})})});function k2({hoveredObject:e,setHoveredObject:t}){let r=(0,Ye.useRef)(null),o=(0,Ye.useRef)(document.body),i=Ai(o);return(0,G.jsxs)("div",{className:"card grid overflow-y-hidden p-2",ref:r,children:[(0,G.jsx)(Ip,{setHoveredObject:t}),(0,Hp.createPortal)((0,G.jsx)($p,{hoveredObject:e,x:i.docX,y:i.docY,w:window.innerWidth}),document.body)]})}export{x2 as ErrorBoundary,zp as default};
|
|
15
|
-
/*! Bundled license information:
|
|
16
|
-
|
|
17
|
-
chroma-js/chroma.js:
|
|
18
|
-
(**
|
|
19
|
-
* chroma.js - JavaScript library for color conversions
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) 2011-2019, Gregor Aisch
|
|
22
|
-
* All rights reserved.
|
|
23
|
-
*
|
|
24
|
-
* Redistribution and use in source and binary forms, with or without
|
|
25
|
-
* modification, are permitted provided that the following conditions are met:
|
|
26
|
-
*
|
|
27
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
28
|
-
* list of conditions and the following disclaimer.
|
|
29
|
-
*
|
|
30
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
31
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
32
|
-
* and/or other materials provided with the distribution.
|
|
33
|
-
*
|
|
34
|
-
* 3. The name Gregor Aisch may not be used to endorse or promote products
|
|
35
|
-
* derived from this software without specific prior written permission.
|
|
36
|
-
*
|
|
37
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
38
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
39
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
40
|
-
* DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
41
|
-
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
42
|
-
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
43
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
44
|
-
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
45
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
46
|
-
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
47
|
-
*
|
|
48
|
-
* -------------------------------------------------------
|
|
49
|
-
*
|
|
50
|
-
* chroma.js includes colors from colorbrewer2.org, which are released under
|
|
51
|
-
* the following license:
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
|
|
54
|
-
* and The Pennsylvania State University.
|
|
55
|
-
*
|
|
56
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
57
|
-
* you may not use this file except in compliance with the License.
|
|
58
|
-
* You may obtain a copy of the License at
|
|
59
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
60
|
-
*
|
|
61
|
-
* Unless required by applicable law or agreed to in writing,
|
|
62
|
-
* software distributed under the License is distributed on an
|
|
63
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
64
|
-
* either express or implied. See the License for the specific
|
|
65
|
-
* language governing permissions and limitations under the License.
|
|
66
|
-
*
|
|
67
|
-
* ------------------------------------------------------
|
|
68
|
-
*
|
|
69
|
-
* Named colors are taken from X11 Color Names.
|
|
70
|
-
* http://www.w3.org/TR/css3-color/#svg-color
|
|
71
|
-
*
|
|
72
|
-
* @preserve
|
|
73
|
-
*)
|
|
74
|
-
|
|
75
|
-
lang-map/index.js:
|
|
76
|
-
(*!
|
|
77
|
-
* lang-map <https://github.com/jonschlinkert/lang-map>
|
|
78
|
-
*
|
|
79
|
-
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
80
|
-
* Licensed under the MIT license.
|
|
81
|
-
*)
|
|
82
|
-
*/
|