@e-llm-studio/repo-data-cart 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/dist/app/api/repo.api.service.d.ts +4 -0
- package/dist/app/components/badges/Badge.d.ts +46 -0
- package/dist/app/components/buttons/PrimaryButtonNative.d.ts +22 -0
- package/dist/app/components/cards/ActionCard.d.ts +26 -0
- package/dist/app/components/cards/CustomRadioCard.d.ts +9 -0
- package/dist/app/components/cards/GithubRepoRadioCard.d.ts +51 -0
- package/dist/app/components/cards/RepoCard.d.ts +32 -0
- package/dist/app/components/checkboxes/Checkbox.d.ts +29 -0
- package/dist/app/components/chips/CustomChip.d.ts +7 -0
- package/dist/app/components/containers/HighlightedIndex.d.ts +5 -0
- package/dist/app/components/containers/StandardContainer.d.ts +23 -0
- package/dist/app/components/form-components/SearchInput.d.ts +13 -0
- package/dist/app/components/icon-components/circularRingIcon.d.ts +10 -0
- package/dist/app/components/loaders/Spinner.d.ts +31 -0
- package/dist/app/components/seperators/Divider.d.ts +28 -0
- package/dist/app/components/skeletons/RepoSkeleton.d.ts +3 -0
- package/dist/app/components/ui/CodebaseCart.d.ts +50 -0
- package/dist/app/components/ui/EmptyCart.d.ts +18 -0
- package/dist/app/components/ui/MultiRepoAction.d.ts +22 -0
- package/dist/app/components/ui/NoCodebaseFound.d.ts +12 -0
- package/dist/app/components/ui/RepoLoading.d.ts +1 -0
- package/dist/app/components/ui/RepoSelectorHeader.d.ts +32 -0
- package/dist/app/pages/RepoSelectorDetailPage.d.ts +22 -0
- package/dist/app/services/converter.service.d.ts +4 -0
- package/dist/app/store/repo-data.store.d.ts +28 -0
- package/dist/app/types/types.d.ts +86 -0
- package/dist/app/utils/helper.d.ts +8 -0
- package/dist/index.d.ts +5 -0
- package/dist/repo-data-cart.js +7822 -0
- package/dist/repo-data-cart.umd.cjs +114 -0
- package/dist/vite.svg +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
(function(pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],f):(pe=typeof globalThis<"u"?globalThis:pe||self,f(pe["repo-data-cart"]={},pe.jsxRuntime,pe.r$1))})(this,function(pe,f,ne){"use strict";function Nr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ft=Nr(ne);/**
|
|
2
|
+
* @license lucide-react v1.38.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Lt=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v1.38.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const kr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
12
|
+
* @license lucide-react v1.38.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Er=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
17
|
+
* @license lucide-react v1.38.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Mt=e=>{const t=Er(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
22
|
+
* @license lucide-react v1.38.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
27
|
+
* @license lucide-react v1.38.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const vr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Or=ne.createContext({}),_r=()=>ne.useContext(Or),Ar=ne.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:a="",children:o,iconNode:s,...i},l)=>{const{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:m=!1,color:S="currentColor",className:h=""}=_r()??{},N=r??m?Number(n??u)*24/Number(t??c):n??u;return ne.createElement("svg",{ref:l,...lt,width:t??c??lt.width,height:t??c??lt.height,stroke:e??S,strokeWidth:N,className:Lt("lucide",h,a),...!o&&!vr(i)&&{"aria-hidden":"true"},...i},[...s.map(([_,F])=>ne.createElement(_,F)),...Array.isArray(o)?o:[o]])});/**
|
|
32
|
+
* @license lucide-react v1.38.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const be=(e,t)=>{const n=ne.forwardRef(({className:r,...a},o)=>ne.createElement(Ar,{ref:o,iconNode:t,className:Lt(`lucide-${kr(Mt(e))}`,`lucide-${e}`,r),...a}));return n.displayName=Mt(e),n};/**
|
|
37
|
+
* @license lucide-react v1.38.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const Dr=be("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
42
|
+
* @license lucide-react v1.38.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Rr=be("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
47
|
+
* @license lucide-react v1.38.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Tr=be("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
52
|
+
* @license lucide-react v1.38.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Fr=be("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
57
|
+
* @license lucide-react v1.38.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const jt=be("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
62
|
+
* @license lucide-react v1.38.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const Bt=be("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
67
|
+
* @license lucide-react v1.38.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Lr=be("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/**
|
|
72
|
+
* @license lucide-react v1.38.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Mr=be("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);/**
|
|
77
|
+
* @license lucide-react v1.38.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const $t=be("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
82
|
+
* @license lucide-react v1.38.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const dt=be("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
87
|
+
* @license lucide-react v1.38.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const jr=be("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function It(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=It(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Br(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=It(e))&&(r&&(r+=" "),r+=t);return r}var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(zt,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",i="minute",l="hour",c="day",u="week",m="month",S="quarter",h="year",N="date",_="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var x=["th","st","nd","rd"],w=k%100;return"["+k+(x[(w-20)%10]||x[w]||x[0])+"]"}},A=function(k,x,w){var O=String(k);return!O||O.length>=x?k:""+Array(x+1-O.length).join(w)+k},D={s:A,z:function(k){var x=-k.utcOffset(),w=Math.abs(x),O=Math.floor(w/60),E=w%60;return(x<=0?"+":"-")+A(O,2,"0")+":"+A(E,2,"0")},m:function k(x,w){if(x.date()<w.date())return-k(w,x);var O=12*(w.year()-x.year())+(w.month()-x.month()),E=x.clone().add(O,m),L=w-E<0,y=x.clone().add(O+(L?-1:1),m);return+(-(O+(w-E)/(L?E-y:y-E))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:m,y:h,w:u,d:c,D:N,h:l,m:i,s,ms:o,Q:S}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},I="en",q={};q[I]=g;var B="$isDayjsObject",b=function(k){return k instanceof V||!(!k||!k[B])},z=function k(x,w,O){var E;if(!x)return I;if(typeof x=="string"){var L=x.toLowerCase();q[L]&&(E=L),w&&(q[L]=w,E=L);var y=x.split("-");if(!E&&y.length>1)return k(y[0])}else{var U=x.name;q[U]=x,E=U}return!O&&E&&(I=E),E||!O&&I},$=function(k,x){if(b(k))return k.clone();var w=typeof x=="object"?x:{};return w.date=k,w.args=arguments,new V(w)},M=D;M.l=z,M.i=b,M.w=function(k,x){return $(k,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var V=function(){function k(w){this.$L=z(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[B]=!0}var x=k.prototype;return x.parse=function(w){this.$d=function(O){var E=O.date,L=O.utc;if(E===null)return new Date(NaN);if(M.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var y=E.match(F);if(y){var U=y[2]-1||0,j=(y[7]||"0").substring(0,3);return L?new Date(Date.UTC(y[1],U,y[3]||1,y[4]||0,y[5]||0,y[6]||0,j)):new Date(y[1],U,y[3]||1,y[4]||0,y[5]||0,y[6]||0,j)}}return new Date(E)}(w),this.init()},x.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},x.$utils=function(){return M},x.isValid=function(){return this.$d.toString()!==_},x.isSame=function(w,O){var E=$(w);return this.startOf(O)<=E&&E<=this.endOf(O)},x.isAfter=function(w,O){return $(w)<this.startOf(O)},x.isBefore=function(w,O){return this.endOf(O)<$(w)},x.$g=function(w,O,E){return M.u(w)?this[O]:this.set(E,w)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(w,O){var E=this,L=!!M.u(O)||O,y=M.p(w),U=function(Y,ee){var ce=M.w(E.$u?Date.UTC(E.$y,ee,Y):new Date(E.$y,ee,Y),E);return L?ce:ce.endOf(c)},j=function(Y,ee){return M.w(E.toDate()[Y].apply(E.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ee)),E)},K=this.$W,X=this.$M,G=this.$D,Z="set"+(this.$u?"UTC":"");switch(y){case h:return L?U(1,0):U(31,11);case m:return L?U(1,X):U(0,X+1);case u:var H=this.$locale().weekStart||0,Q=(K<H?K+7:K)-H;return U(L?G-Q:G+(6-Q),X);case c:case N:return j(Z+"Hours",0);case l:return j(Z+"Minutes",1);case i:return j(Z+"Seconds",2);case s:return j(Z+"Milliseconds",3);default:return this.clone()}},x.endOf=function(w){return this.startOf(w,!1)},x.$set=function(w,O){var E,L=M.p(w),y="set"+(this.$u?"UTC":""),U=(E={},E[c]=y+"Date",E[N]=y+"Date",E[m]=y+"Month",E[h]=y+"FullYear",E[l]=y+"Hours",E[i]=y+"Minutes",E[s]=y+"Seconds",E[o]=y+"Milliseconds",E)[L],j=L===c?this.$D+(O-this.$W):O;if(L===m||L===h){var K=this.clone().set(N,1);K.$d[U](j),K.init(),this.$d=K.set(N,Math.min(this.$D,K.daysInMonth())).$d}else U&&this.$d[U](j);return this.init(),this},x.set=function(w,O){return this.clone().$set(w,O)},x.get=function(w){return this[M.p(w)]()},x.add=function(w,O){var E,L=this;w=Number(w);var y=M.p(O),U=function(X){var G=$(L);return M.w(G.date(G.date()+Math.round(X*w)),L)};if(y===m)return this.set(m,this.$M+w);if(y===h)return this.set(h,this.$y+w);if(y===c)return U(1);if(y===u)return U(7);var j=(E={},E[i]=r,E[l]=a,E[s]=n,E)[y]||1,K=this.$d.getTime()+w*j;return M.w(K,this)},x.subtract=function(w,O){return this.add(-1*w,O)},x.format=function(w){var O=this,E=this.$locale();if(!this.isValid())return E.invalidDate||_;var L=w||"YYYY-MM-DDTHH:mm:ssZ",y=M.z(this),U=this.$H,j=this.$m,K=this.$M,X=E.weekdays,G=E.months,Z=E.meridiem,H=function(ee,ce,te,ae){return ee&&(ee[ce]||ee(O,L))||te[ce].slice(0,ae)},Q=function(ee){return M.s(U%12||12,ee,"0")},Y=Z||function(ee,ce,te){var ae=ee<12?"AM":"PM";return te?ae.toLowerCase():ae};return L.replace(p,function(ee,ce){return ce||function(te){switch(te){case"YY":return String(O.$y).slice(-2);case"YYYY":return M.s(O.$y,4,"0");case"M":return K+1;case"MM":return M.s(K+1,2,"0");case"MMM":return H(E.monthsShort,K,G,3);case"MMMM":return H(G,K);case"D":return O.$D;case"DD":return M.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return H(E.weekdaysMin,O.$W,X,2);case"ddd":return H(E.weekdaysShort,O.$W,X,3);case"dddd":return X[O.$W];case"H":return String(U);case"HH":return M.s(U,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return Y(U,j,!0);case"A":return Y(U,j,!1);case"m":return String(j);case"mm":return M.s(j,2,"0");case"s":return String(O.$s);case"ss":return M.s(O.$s,2,"0");case"SSS":return M.s(O.$ms,3,"0");case"Z":return y}return null}(ee)||y.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(w,O,E){var L,y=this,U=M.p(O),j=$(w),K=(j.utcOffset()-this.utcOffset())*r,X=this-j,G=function(){return M.m(y,j)};switch(U){case h:L=G()/12;break;case m:L=G();break;case S:L=G()/3;break;case u:L=(X-K)/6048e5;break;case c:L=(X-K)/864e5;break;case l:L=X/a;break;case i:L=X/r;break;case s:L=X/n;break;default:L=X}return E?L:M.a(L)},x.daysInMonth=function(){return this.endOf(m).$D},x.$locale=function(){return q[this.$L]},x.locale=function(w,O){if(!w)return this.$L;var E=this.clone(),L=z(w,O,!0);return L&&(E.$L=L),E},x.clone=function(){return M.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},k}(),P=V.prototype;return $.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",l],["$W",c],["$M",m],["$y",h],["$D",N]].forEach(function(k){P[k[1]]=function(x){return this.$g(x,k[0],k[1])}}),$.extend=function(k,x){return k.$i||(k(x,V,$),k.$i=!0),$},$.locale=z,$.isDayjs=b,$.unix=function(k){return $(1e3*k)},$.en=q[I],$.Ls=q,$.p={},$})})(Ht);var $r=Ht.exports;const Ye=Ut($r);var Wt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(zt,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(s){var i=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return l.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return l.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),m==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return m}});return o.bind(this)(u)}}})})(Wt);var Ir=Wt.exports;const zr=Ut(Ir),Ur=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Hr=(e,t)=>({classGroupId:e,validator:t}),qt=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ke="-",Vt=[],Wr="arbitrary..",qr=e=>{const t=Gr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Vr(s);const i=s.split(Ke),l=i[0]===""&&i.length>1?1:0;return Gt(i,l,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const l=r[s],c=n[s];return l?c?Ur(c,l):l:c||Vt}return n[s]||Vt}}},Gt=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],o=n.nextPart.get(a);if(o){const c=Gt(e,t+1,o);if(c)return c}const s=n.validators;if(s===null)return;const i=t===0?e.join(Ke):e.slice(t).join(Ke),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(i))return u.classGroupId}},Vr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Wr+r:void 0})(),Gr=e=>{const{theme:t,classGroups:n}=e;return Jr(n,t)},Jr=(e,t)=>{const n=qt();for(const r in e){const a=e[r];ut(a,n,r,t)}return n},ut=(e,t,n,r)=>{const a=e.length;for(let o=0;o<a;o++){const s=e[o];Yr(s,t,n,r)}},Yr=(e,t,n,r)=>{if(typeof e=="string"){Kr(e,t,n);return}if(typeof e=="function"){Xr(e,t,n,r);return}Zr(e,t,n,r)},Kr=(e,t,n)=>{const r=e===""?t:Jt(t,e);r.classGroupId=n},Xr=(e,t,n,r)=>{if(Qr(e)){ut(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Hr(n,e))},Zr=(e,t,n,r)=>{const a=Object.entries(e),o=a.length;for(let s=0;s<o;s++){const[i,l]=a[s];ut(l,Jt(t,i),n,r)}},Jt=(e,t)=>{let n=e;const r=t.split(Ke),a=r.length;for(let o=0;o<a;o++){const s=r[o];let i=n.nextPart.get(s);i||(i=qt(),n.nextPart.set(s,i)),n=i}return n},Qr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return a(o,s),s},set(o,s){o in n?n[o]=s:a(o,s)}}},ft="!",Yt=":",ea=[],Kt=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),ta=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let s=0,i=0,l=0,c;const u=a.length;for(let _=0;_<u;_++){const F=a[_];if(s===0&&i===0){if(F===Yt){o.push(a.slice(l,_)),l=_+1;continue}if(F==="/"){c=_;continue}}F==="["?s++:F==="]"?s--:F==="("?i++:F===")"&&i--}const m=o.length===0?a:a.slice(l);let S=m,h=!1;m.endsWith(ft)?(S=m.slice(0,-1),h=!0):m.startsWith(ft)&&(S=m.slice(1),h=!0);const N=c&&c>l?c-l:void 0;return Kt(o,h,S,N)};if(t){const a=t+Yt,o=r;r=s=>s.startsWith(a)?o(s.slice(a.length)):Kt(ea,!1,s,void 0,!0)}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},na=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let o=0;o<n.length;o++){const s=n[o],i=s[0]==="[",l=t.has(s);i||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(s)):a.push(s)}return a.length>0&&(a.sort(),r.push(...a)),r}},ra=e=>({cache:Pr(e.cacheSize),parseClassName:ta(e),sortModifiers:na(e),postfixLookupClassGroupIds:aa(e),...qr(e)}),aa=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},ia=/\s+/,oa=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(ia);let c="";for(let u=l.length-1;u>=0;u-=1){const m=l[u],{isExternal:S,modifiers:h,hasImportantModifier:N,baseClassName:_,maybePostfixModifierPosition:F}=n(m);if(S){c=m+(c.length>0?" "+c:c);continue}let p=!!F,g;if(p){const B=_.substring(0,F);g=r(B);const b=g&&s[g]?r(_):void 0;b&&b!==g&&(g=b,p=!1)}else g=r(_);if(!g){if(!p){c=m+(c.length>0?" "+c:c);continue}if(g=r(_),!g){c=m+(c.length>0?" "+c:c);continue}p=!1}const A=h.length===0?"":h.length===1?h[0]:o(h).join(":"),D=N?A+ft:A,I=D+g;if(i.indexOf(I)>-1)continue;i.push(I);const q=a(g,p);for(let B=0;B<q.length;++B){const b=q[B];i.push(D+b)}c=m+(c.length>0?" "+c:c)}return c},sa=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=Xt(n))&&(a&&(a+=" "),a+=r);return a},Xt=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xt(e[r]))&&(n&&(n+=" "),n+=t);return n},ca=(e,...t)=>{let n,r,a,o;const s=l=>{const c=t.reduce((u,m)=>m(u),e());return n=ra(c),r=n.cache.get,a=n.cache.set,o=i,i(l)},i=l=>{const c=r(l);if(c)return c;const u=oa(l,n);return a(l,u),u};return o=s,(...l)=>o(sa(...l))},la=[],ie=e=>{const t=n=>n[e]||la;return t.isThemeGetter=!0,t},Zt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,da=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fa=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ha=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ma=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=e=>da.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),ht=e=>e.endsWith("%")&&J(e.slice(0,-1)),we=e=>ua.test(e),Pt=()=>!0,ba=e=>fa.test(e)&&!ha.test(e),mt=()=>!1,ga=e=>ma.test(e),ya=e=>pa.test(e),wa=e=>!R(e)&&!T(e),xa=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sa=e=>Ce(e,on,mt),R=e=>Zt.test(e),ke=e=>Ce(e,sn,ba),en=e=>Ce(e,Aa,J),Ca=e=>Ce(e,ln,Pt),Na=e=>Ce(e,cn,mt),tn=e=>Ce(e,rn,mt),ka=e=>Ce(e,an,ya),Xe=e=>Ce(e,dn,ga),T=e=>Qt.test(e),je=e=>Ee(e,sn),Ea=e=>Ee(e,cn),nn=e=>Ee(e,rn),va=e=>Ee(e,on),Oa=e=>Ee(e,an),Ze=e=>Ee(e,dn,!0),_a=e=>Ee(e,ln,!0),Ce=(e,t,n)=>{const r=Zt.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ee=(e,t,n=!1)=>{const r=Qt.exec(e);return r?r[1]?t(r[1]):n:!1},rn=e=>e==="position"||e==="percentage",an=e=>e==="image"||e==="url",on=e=>e==="length"||e==="size"||e==="bg-size",sn=e=>e==="length",Aa=e=>e==="number",cn=e=>e==="family-name",ln=e=>e==="number"||e==="weight",dn=e=>e==="shadow",Da=ca(()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),a=ie("tracking"),o=ie("leading"),s=ie("breakpoint"),i=ie("container"),l=ie("spacing"),c=ie("radius"),u=ie("shadow"),m=ie("inset-shadow"),S=ie("text-shadow"),h=ie("drop-shadow"),N=ie("blur"),_=ie("perspective"),F=ie("aspect"),p=ie("ease"),g=ie("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...D(),T,R],q=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],b=()=>[T,R,l],z=()=>[Se,"full","auto",...b()],$=()=>[ye,"none","subgrid",T,R],M=()=>["auto",{span:["full",ye,T,R]},ye,T,R],V=()=>[ye,"auto",T,R],P=()=>["auto","min","max","fr",T,R],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],x=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...b()],O=()=>[Se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],E=()=>[Se,"screen","full","dvw","lvw","svw","min","max","fit",...b()],L=()=>[Se,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],y=()=>[e,T,R],U=()=>[...D(),nn,tn,{position:[T,R]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",va,Sa,{size:[T,R]}],X=()=>[ht,je,ke],G=()=>["","none","full",c,T,R],Z=()=>["",J,je,ke],H=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[J,ht,nn,tn],ee=()=>["","none",N,T,R],ce=()=>["none",J,T,R],te=()=>["none",J,T,R],ae=()=>[J,T,R],le=()=>[Se,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[we],breakpoint:[we],color:[Pt],container:[we],"drop-shadow":[we],ease:["in","out","in-out"],font:[wa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[we],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[we],shadow:[we],spacing:["px",J],text:[we],"text-shadow":[we],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Se,R,T,F]}],container:["container"],"container-type":[{"@container":["","normal","size",T,R]}],"container-named":[xa],columns:[{columns:[J,R,T,i]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",T,R]}],basis:[{basis:[Se,"full","auto",i,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Se,"auto","initial","none",R]}],grow:[{grow:["",J,T,R]}],shrink:[{shrink:["",J,T,R]}],order:[{order:[ye,"first","last","none",T,R]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...x(),"normal"]}],"justify-self":[{"justify-self":["auto",...x()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...x(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...x(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...x(),"baseline"]}],"place-self":[{"place-self":["auto",...x()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mbs:[{mbs:w()}],mbe:[{mbe:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...E()]}],"min-inline-size":[{"min-inline":["auto",...E()]}],"max-inline-size":[{"max-inline":["none",...E()]}],"block-size":[{block:["auto",...L()]}],"min-block-size":[{"min-block":["auto",...L()]}],"max-block-size":[{"max-block":["none",...L()]}],w:[{w:[i,"screen",...O()]}],"min-w":[{"min-w":[i,"screen","none",...O()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,je,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_a,Ca]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ht,R]}],"font-family":[{font:[Ea,Na,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,T,R]}],"line-clamp":[{"line-clamp":[J,"none",T,en]}],leading:[{leading:[o,...b()]}],"list-image":[{"list-image":["none",T,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",T,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",T,ke]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[J,"auto",T,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"tab-size":[{tab:[ye,T,R]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",T,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",T,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,T,R],radial:["",T,R],conic:[ye,T,R]},Oa,ka]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-bs":[{"border-bs":y()}],"border-color-be":[{"border-be":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,T,R]}],"outline-w":[{outline:["",J,je,ke]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",u,Ze,Xe]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",m,Ze,Xe]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[J,ke]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",S,Ze,Xe]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[J,T,R]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[T,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",T,R]}],filter:[{filter:["","none",T,R]}],blur:[{blur:ee()}],brightness:[{brightness:[J,T,R]}],contrast:[{contrast:[J,T,R]}],"drop-shadow":[{"drop-shadow":["","none",h,Ze,Xe]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",J,T,R]}],"hue-rotate":[{"hue-rotate":[J,T,R]}],invert:[{invert:["",J,T,R]}],saturate:[{saturate:[J,T,R]}],sepia:[{sepia:["",J,T,R]}],"backdrop-filter":[{"backdrop-filter":["","none",T,R]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[J,T,R]}],"backdrop-contrast":[{"backdrop-contrast":[J,T,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,T,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,T,R]}],"backdrop-invert":[{"backdrop-invert":["",J,T,R]}],"backdrop-opacity":[{"backdrop-opacity":[J,T,R]}],"backdrop-saturate":[{"backdrop-saturate":[J,T,R]}],"backdrop-sepia":[{"backdrop-sepia":["",J,T,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",T,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",T,R]}],ease:[{ease:["linear","initial",p,T,R]}],delay:[{delay:[J,T,R]}],animate:[{animate:["none",g,T,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,T,R]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[T,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],zoom:[{zoom:[ye,T,R]}],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",T,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":y()}],"scrollbar-track-color":[{"scrollbar-track":y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",T,R]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[J,je,ke,en]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});Ye.extend(zr);function un(e){return e.substring(e.lastIndexOf("/")+1)}function fn(e){const t=i=>i.replace(/\*{1,3}([^*]+)\*{1,3}/g,"$1").trim(),n=e.replace(/\\n/g,`
|
|
92
|
+
`).split(`
|
|
93
|
+
`).map(i=>i.trim()).filter(Boolean),r=i=>/^\*{2,3}[^*]+\*{2,3}$/.test(i),a=[];let o=null;for(const i of n)if(r(i))o={heading:t(i),paragraphs:[]},a.push(o);else if(o&&!i.startsWith("-")&&!/^\d+\./.test(i)){const l=t(i);l&&o.paragraphs.push(l)}const s=a.find(i=>i.heading.toLowerCase()==="overview");return s?{source:"overview",text:s.paragraphs.join(" ")}:a.length>=2&&a[1].paragraphs.length>0?{source:"second-section-fallback",text:a[1].paragraphs[0]}:a.length>=1&&a[0].paragraphs.length>0?{source:"first-section-fallback",text:a[0].paragraphs[0]}:{source:"none",text:""}}const Ra=e=>Ye(e).format("Do MMMM, YYYY");function C(...e){return Da(Br(e))}var Ta={name:"github",svg:{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none"},nodes:[["path",{d:"M7.352 14.883C7.352 14.949 7.278 15.002 7.184 15.002C7.078 15.012 7.003 14.959 7.003 14.883C7.003 14.817 7.077 14.764 7.171 14.764C7.268 14.754 7.352 14.807 7.352 14.883ZM6.348 14.734C6.325 14.8 6.39 14.876 6.487 14.896C6.571 14.929 6.668 14.896 6.687 14.83C6.706 14.764 6.645 14.688 6.548 14.658C6.464 14.635 6.371 14.668 6.348 14.734ZM7.774 14.678C7.68 14.701 7.616 14.764 7.626 14.84C7.636 14.906 7.72 14.949 7.816 14.926C7.91 14.903 7.974 14.84 7.964 14.774C7.954 14.711 7.867 14.668 7.774 14.678ZM9.897 2C5.423 2 2 5.484 2 10.073C2 13.742 4.252 16.882 7.468 17.987C7.881 18.063 8.026 17.802 8.026 17.587C8.026 17.382 8.016 16.25 8.016 15.556C8.016 15.556 5.758 16.052 5.284 14.57C5.284 14.57 4.916 13.607 4.387 13.359C4.387 13.359 3.648 12.84 4.439 12.849C4.439 12.849 5.242 12.915 5.684 13.703C6.39 14.98 7.574 14.613 8.036 14.394C8.11 13.865 8.32 13.497 8.552 13.279C6.749 13.074 4.929 12.806 4.929 9.623C4.929 8.713 5.174 8.257 5.69 7.674C5.606 7.459 5.332 6.572 5.774 5.428C6.448 5.213 8 6.321 8 6.321C8.645 6.136 9.339 6.04 10.026 6.04C10.713 6.04 11.407 6.136 12.052 6.321C12.052 6.321 13.604 5.209 14.278 5.428C14.72 6.576 14.446 7.459 14.362 7.674C14.878 8.26 15.194 8.716 15.194 9.623C15.194 12.816 13.294 13.07 11.491 13.279C11.788 13.54 12.039 14.037 12.039 14.814C12.039 15.929 12.029 17.309 12.029 17.58C12.029 17.795 12.177 18.056 12.587 17.98C15.813 16.882 18 13.742 18 10.073C18 5.484 14.371 2 9.897 2ZM5.135 13.411C5.093 13.444 5.103 13.52 5.158 13.583C5.21 13.636 5.284 13.659 5.326 13.616C5.368 13.583 5.358 13.507 5.303 13.444C5.251 13.391 5.177 13.368 5.135 13.411ZM4.787 13.143C4.764 13.186 4.797 13.239 4.861 13.272C4.913 13.305 4.977 13.295 5 13.249C5.023 13.206 4.99 13.153 4.926 13.12C4.861 13.1 4.81 13.11 4.787 13.143ZM5.832 14.321C5.78 14.364 5.8 14.463 5.874 14.526C5.948 14.602 6.042 14.612 6.084 14.559C6.126 14.516 6.107 14.417 6.042 14.354C5.971 14.278 5.874 14.268 5.832 14.321ZM5.465 13.834C5.413 13.867 5.413 13.953 5.465 14.029C5.517 14.105 5.604 14.138 5.646 14.105C5.698 14.062 5.698 13.976 5.646 13.9C5.601 13.824 5.517 13.791 5.465 13.834Z",fill:"currentColor",key:"6atr68"}]]};function hn(...e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r)continue;let a=typeof r;if(a==="string"||a==="number")t.push(r);else if(a==="object"){let o=Array.isArray(r)?[hn(...r)]:Object.entries(r).map(([s,i])=>i?s:void 0);t=o.length?t.concat(o.filter(s=>!!s)):t}}return t.join(" ").trim()}var Fa=([e,t])=>{let{key:n,...r}=t;return Ft.createElement(e,{key:n,...r})},La=e=>{let t=({size:n,color:r,style:a,className:o,spin:s,...i})=>{let l=n??20,c={...n&&{"--px-icon-size":`${n}px`},...r&&{color:r},...typeof a=="object"?a:{}},u=hn("p-icon",`p-icon-${e.name}`,s&&"p-icon-spin",o);return Ft.createElement("svg",{...e.svg,width:l,height:l,"aria-hidden":"true",...i,style:c,className:u},e.nodes.map(Fa))};return t.displayName=e.name.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(""),t},Ma=La(Ta);function mn({children:e,orientation:t="horizontal",textAlign:n="center",inset:r=!1,className:a,slotProps:o,...s}){var u,m,S,h,N,_;const i=e!=null&&e!=="";if(t==="vertical")return f.jsx("div",{...s,...o==null?void 0:o.root,role:"separator","aria-orientation":"vertical",className:C("inline-block self-stretch w-px bg-gray-200",r&&"my-2",a,(u=o==null?void 0:o.root)==null?void 0:u.className)});if(!i)return f.jsx("div",{...s,...o==null?void 0:o.root,role:"separator","aria-orientation":"horizontal",className:C("w-full h-px bg-gray-200",r&&"mx-4",a,(m=o==null?void 0:o.root)==null?void 0:m.className)});const l=n==="right"?"grow":n==="left"?"grow-0 w-6":"grow",c=n==="left"?"grow":n==="right"?"grow-0 w-6":"grow";return f.jsxs("div",{...s,...o==null?void 0:o.root,role:"separator","aria-orientation":"horizontal",className:C("flex items-center",r&&"mx-4",a,(S=o==null?void 0:o.root)==null?void 0:S.className),children:[f.jsx("span",{...o==null?void 0:o.line,className:C("h-px bg-gray-200",l,(h=o==null?void 0:o.line)==null?void 0:h.className)}),f.jsx("span",{...o==null?void 0:o.text,className:C("px-3 text-sm text-gray-500 whitespace-nowrap",(N=o==null?void 0:o.text)==null?void 0:N.className),children:e}),f.jsx("span",{...o==null?void 0:o.line,className:C("h-px bg-gray-200",c,(_=o==null?void 0:o.line)==null?void 0:_.className)})]})}function pn({icon:e,title:t,description:n,arrowIcon:r,slotProps:a,className:o,type:s="button",...i}){var l,c,u,m,S,h;return f.jsxs("button",{...i,...a==null?void 0:a.root,type:s,className:C("flex w-full items-center gap-3 rounded-xl border border-gray-200 bg-white p-3 text-left shadow-sm transition-colors hover:bg-gray-50",o,(l=a==null?void 0:a.root)==null?void 0:l.className),children:[f.jsx("span",{...a==null?void 0:a.icon,className:C("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-gray-200",(c=a==null?void 0:a.icon)==null?void 0:c.className),children:e}),f.jsxs("span",{...a==null?void 0:a.content,className:C("min-w-0 flex-1",(u=a==null?void 0:a.content)==null?void 0:u.className),children:[f.jsx("span",{...a==null?void 0:a.title,className:C("block truncate text-sm font-semibold text-slate-900",(m=a==null?void 0:a.title)==null?void 0:m.className),children:t}),f.jsx("span",{...a==null?void 0:a.description,className:C("block truncate text-sm text-slate-500",(S=a==null?void 0:a.description)==null?void 0:S.className),children:n})]}),r&&f.jsx("div",{...a==null?void 0:a.arrow,className:C("shrink-0",(h=a==null?void 0:a.arrow)==null?void 0:h.className),children:r})]})}function ja({icon:e,title:t,status:n,description:r,checked:a=!1,onCheckedChange:o,onOpen:s,onRemove:i,className:l,slotProps:c,...u}){var m,S,h,N,_,F,p,g,A,D,I;return f.jsxs("div",{...u,...c==null?void 0:c.root,className:C("w-full rounded-xl border border-gray-200 bg-white p-4 shadow-sm",l,(m=c==null?void 0:c.root)==null?void 0:m.className),children:[f.jsxs("div",{...c==null?void 0:c.header,className:C("flex items-start justify-between gap-2",(S=c==null?void 0:c.header)==null?void 0:S.className),children:[f.jsxs("div",{...c==null?void 0:c.main,className:C("flex min-w-0 items-center gap-2",(h=c==null?void 0:c.main)==null?void 0:h.className),children:[f.jsx("button",{...c==null?void 0:c.checkbox,type:"button",role:"checkbox","aria-checked":a,onClick:()=>o==null?void 0:o(!a),className:C("flex h-4 w-4 shrink-0 items-center justify-center rounded-md border transition-colors",a?"border-indigo-600 bg-indigo-600":"border-gray-300 bg-white",(N=c==null?void 0:c.checkbox)==null?void 0:N.className),children:a&&f.jsx(Rr,{className:"h-3 w-3 text-white",strokeWidth:3})}),f.jsx("span",{...c==null?void 0:c.icon,className:C("shrink-0",(_=c==null?void 0:c.icon)==null?void 0:_.className),children:e}),f.jsx("span",{...c==null?void 0:c.title,className:C("truncate text-sm font-medium text-slate-900",(F=c==null?void 0:c.title)==null?void 0:F.className),children:t}),n&&f.jsxs("span",{...c==null?void 0:c.status,className:C("flex shrink-0 items-center gap-1 text-sm font-medium text-green-600",(p=c==null?void 0:c.status)==null?void 0:p.className),children:[n.icon,n.text]})]}),f.jsxs("div",{...c==null?void 0:c.actions,className:C("flex shrink-0 items-center gap-3",(g=c==null?void 0:c.actions)==null?void 0:g.className),children:[f.jsx("button",{...c==null?void 0:c.openAction,type:"button",onClick:s,"aria-label":"Open",className:C("text-slate-400 transition-colors hover:text-slate-600",(A=c==null?void 0:c.openAction)==null?void 0:A.className),children:f.jsx(Bt,{className:"h-4 w-4",strokeWidth:2})}),f.jsx("button",{...c==null?void 0:c.removeAction,type:"button",onClick:i,"aria-label":"Remove",className:C("text-slate-400 transition-colors hover:text-slate-600",(D=c==null?void 0:c.removeAction)==null?void 0:D.className),children:f.jsx(jr,{className:"h-4 w-4",strokeWidth:2})})]})]}),f.jsx("p",{...c==null?void 0:c.description,className:C("mt-1 truncate text-sm text-slate-500",(I=c==null?void 0:c.description)==null?void 0:I.className),children:r})]})}function Ba({title:e,actions:t,children:n,className:r,slotProps:a,...o}){var s,i,l,c,u;return f.jsxs("div",{...o,...a==null?void 0:a.root,className:C("w-full rounded-2xl border border-gray-200 bg-white p-5 shadow-sm",r,(s=a==null?void 0:a.root)==null?void 0:s.className),children:[f.jsxs("div",{...a==null?void 0:a.header,className:C("flex items-center justify-between",(i=a==null?void 0:a.header)==null?void 0:i.className),children:[f.jsx("h2",{...a==null?void 0:a.title,className:C("text-xl font-bold text-indigo-500",(l=a==null?void 0:a.title)==null?void 0:l.className),children:e}),t&&f.jsx("div",{...a==null?void 0:a.actions,className:C("flex shrink-0 items-center gap-2",(c=a==null?void 0:a.actions)==null?void 0:c.className),children:t})]}),f.jsx("div",{...a==null?void 0:a.content,className:C("mt-4 flex flex-col gap-4",(u=a==null?void 0:a.content)==null?void 0:u.className),children:n})]})}const $a=({icon:e,title:t,description:n,className:r,slotProps:a,...o})=>{var s,i,l,c,u;return f.jsxs("div",{...o,...a==null?void 0:a.root,className:C("flex flex-col items-center px-3 pb-4",r,(s=a==null?void 0:a.root)==null?void 0:s.className),children:[f.jsx("div",{...a==null?void 0:a.iconContainer,className:C("mb-6 flex h-12 w-12 items-center justify-center rounded-full bg-[#FAF5FF]",(i=a==null?void 0:a.iconContainer)==null?void 0:i.className),children:f.jsx(e,{...a==null?void 0:a.icon,className:C("h-5 w-5 text-[#7C4DFF]",(l=a==null?void 0:a.icon)==null?void 0:l.className),strokeWidth:1.8})}),f.jsx("h2",{...a==null?void 0:a.title,className:C("text-center text-[18px] font-semibold leading-8 text-[#172033]",(c=a==null?void 0:a.title)==null?void 0:c.className),children:t}),f.jsx("p",{...a==null?void 0:a.description,className:C("mt-[6px] max-w-[300px] text-center text-[15px] leading-5 text-[#64748B]",(u=a==null?void 0:a.description)==null?void 0:u.className),children:n})]})};function bn({onCodebaseAdd:e,reposInCart:t=[],onOpenCodebaseFromCart:n,onRemoveCodebaseFromCart:r,onSelectionChange:a,onSearchAll:o,isSearchAllEnabled:s,slot:i,customComponents:l}){var h,N,_,F,p,g,A,D,I,q,B,b,z,$,M;const c=ne.useMemo(()=>t.filter(V=>V.checked),[t]),u=()=>{var V,P,k,x,w,O,E,L,y,U,j,K,X,G,Z,H,Q,Y,ee;return l!=null&&l.emptyCartComponent?l.emptyCartComponent:f.jsxs(f.Fragment,{children:[f.jsx($a,{icon:jt,title:"No codebase selected yet",description:"Add a codebase to get started, or search across all codebases to find relevant code.",...(V=i==null?void 0:i.emptyCartContainer)==null?void 0:V.emptyCartIcon}),f.jsx("div",{...(k=(P=i==null?void 0:i.emptyCartContainer)==null?void 0:P.actionCardContainer)==null?void 0:k.root,className:C("w-full",(O=(w=(x=i==null?void 0:i.emptyCartContainer)==null?void 0:x.actionCardContainer)==null?void 0:w.root)==null?void 0:O.className),children:f.jsx(pn,{icon:f.jsx($t,{className:"h-5 w-5 text-[#5925DC]",strokeWidth:2}),title:"Select a codebase",description:"",onClick:e,arrowIcon:f.jsx(Fr,{className:"h-5 w-5 text-[#5928ED]",strokeWidth:2}),...(L=(E=i==null?void 0:i.emptyCartContainer)==null?void 0:E.actionCardContainer)==null?void 0:L.actionCard,slotProps:{...(j=(U=(y=i==null?void 0:i.emptyCartContainer)==null?void 0:y.actionCardContainer)==null?void 0:U.actionCard)==null?void 0:j.slotProps,icon:{className:C("h-9 w-9 rounded-[10px] border-[#B8A8FF] bg-[#F8F5FF]",(H=(Z=(G=(X=(K=i==null?void 0:i.emptyCartContainer)==null?void 0:K.actionCardContainer)==null?void 0:X.actionCard)==null?void 0:G.slotProps)==null?void 0:Z.icon)==null?void 0:H.className)}},className:C("h-15 rounded-[14px] border border-[#633BFF] bg-[#FCFAFF] hover:bg-[#F7F3FF]",(ee=(Y=(Q=i==null?void 0:i.emptyCartContainer)==null?void 0:Q.actionCardContainer)==null?void 0:Y.actionCard)==null?void 0:ee.className)})})]})},m=(V,P)=>{var k,x,w;return l!=null&&l.renderRepoCard?l.renderRepoCard(V,P):f.jsx(ja,{icon:f.jsx(Ma,{className:"h-4 w-4 shrink-0 text-slate-700",strokeWidth:2}),title:V.name,description:V.executive_summary?fn(V.executive_summary).text:"There was a problem in fetching codebase description. please navigate to appmod to check its status",checked:V.checked,onCheckedChange:()=>a==null?void 0:a(V),onOpen:()=>n==null?void 0:n(V),onRemove:()=>r==null?void 0:r(V),...(w=(x=(k=i==null?void 0:i.allRepoContainer)==null?void 0:k.singleRepoContainer)==null?void 0:x.getRepoCardProps)==null?void 0:w.call(x,V)},V.task_id)},S=()=>{var V;return l!=null&&l.searchAllActionCardComponent?l.searchAllActionCardComponent:f.jsx(pn,{icon:f.jsx(dt,{className:"h-5 w-5 text-slate-500",strokeWidth:2}),title:"Search across all codebases",description:"Searching all codebases may take longer.",onClick:o,arrowIcon:f.jsx(Dr,{className:C("h-5 w-5 text-[#64748B]",s&&"text-[#5928ED]"),strokeWidth:2}),...i==null?void 0:i.searchAllActionCard,className:C(s&&"border-[#5928ED] bg-[#FCFAFF]",(V=i==null?void 0:i.searchAllActionCard)==null?void 0:V.className)})};return f.jsx("div",{...i==null?void 0:i.root,className:C("w-[500px] h-fit",(h=i==null?void 0:i.root)==null?void 0:h.className),children:f.jsx(Ba,{title:`Codebase Cart (${c.length})`,actions:f.jsx("button",{type:"button",className:"flex h-8 w-8 items-center justify-center rounded-full text-indigo-600 transition-colors hover:bg-indigo-50",onClick:e,...(N=i==null?void 0:i.standardContainer)==null?void 0:N.actionButton,children:((_=i==null?void 0:i.standardContainer)==null?void 0:_.icon)??f.jsx($t,{className:"h-5 w-5",strokeWidth:2})}),...(F=i==null?void 0:i.standardContainer)==null?void 0:F.root,children:f.jsxs("div",{...(p=i==null?void 0:i.emptyCartContainer)==null?void 0:p.root,className:C("p-5 bg-[#F8FAFC] rounded-md",(A=(g=i==null?void 0:i.emptyCartContainer)==null?void 0:g.root)==null?void 0:A.className),children:[t.length<=0&&u(),f.jsx("div",{...(D=i==null?void 0:i.allRepoContainer)==null?void 0:D.root,className:C("max-h-[350px] overflow-auto",(q=(I=i==null?void 0:i.allRepoContainer)==null?void 0:I.root)==null?void 0:q.className),children:t.map((V,P)=>{var k,x,w;return f.jsx("div",{className:C("mb-1",(w=(x=(k=i==null?void 0:i.allRepoContainer)==null?void 0:k.singleRepoContainer)==null?void 0:x.root)==null?void 0:w.className),children:m(V,P)},P)})}),f.jsx(mn,{...(B=i==null?void 0:i.divider)==null?void 0:B.root,children:f.jsx("span",{...(b=i==null?void 0:i.divider)==null?void 0:b.textElement,className:C("text-[#64748B] text-xs",($=(z=i==null?void 0:i.divider)==null?void 0:z.textElement)==null?void 0:$.className),children:((M=i==null?void 0:i.divider)==null?void 0:M.text)??"OR"})}),S()]})})})}const gn=ne.createContext(void 0),Ia=({children:e,repoData:t,setRepoData:n,isSearchingAcrossAllRepo:r,setIsSearchingAcrossAllRepo:a,isRepositorySelectorPageOpen:o,setIsRepositorySelectorPageOpen:s,refreshRepoData:i,showToast:l})=>{const[c,u]=ne.useState([]),[m,S]=ne.useState(!1);function h(N,_){u(F=>{const p=[...F],g=F.findIndex(A=>A.id===N);return g===-1?F:(p[g]=_(F[g]),p)})}return f.jsx(gn.Provider,{value:{repoData:t,setRepoData:n,reposAddedToCart:c,setRepoAddedToCart:u,isSearchingAcrossAllRepo:r,setIsSearchingAcrossAllRepo:a,isRepositorySelectorPageOpen:o,setIsRepositorySelectorPageOpen:s,refreshRepoData:i,isRepoDataLoaded:m,setIsRepoDataLoaded:S,showToast:l,updateCartRepoById:h},children:e})};function yn(){const e=ne.useContext(gn);if(!e)throw new Error("useRepoData must be used within a RepoDataProvider");return console.log("useRepoData context",e),e}function wn(...e){return e.filter(Boolean).join(" ")}const xn={default:"bg-gray-600 text-white",primary:"bg-[#5925DC] text-white",secondary:"bg-purple-600 text-white",error:"bg-red-600 text-white",warning:"bg-amber-500 text-black",info:"bg-sky-500 text-white",success:"bg-green-600 text-white"},Sn={"top-right":"top-0 right-0 -translate-y-1/2 translate-x-1/2","top-left":"top-0 left-0 -translate-y-1/2 -translate-x-1/2","bottom-right":"bottom-0 right-0 translate-y-1/2 translate-x-1/2","bottom-left":"bottom-0 left-0 translate-y-1/2 -translate-x-1/2"};function za({children:e,badgeContent:t,color:n="default",variant:r="standard",anchorOrigin:a={vertical:"top",horizontal:"right"},overlap:o="rectangular",max:s=99,showZero:i=!1,invisible:l=!1,className:c,slotProps:u}){var p,g;const m=`${a.vertical}-${a.horizontal}`,S=typeof t=="number"&&t>s?`${s}+`:t,N=l||t===0&&!i||t===void 0||t===null,_=r==="dot",F=String(S??"").length===1;return f.jsxs("span",{...u==null?void 0:u.root,className:wn("relative inline-flex",c,(p=u==null?void 0:u.root)==null?void 0:p.className),children:[e,!N&&f.jsx("span",{...u==null?void 0:u.badge,className:wn("absolute flex items-center justify-center font-medium leading-none","pointer-events-none select-none transition-transform duration-150",_?"h-[10px] w-[10px] rounded-full p-0":F?"h-5 w-5 rounded-full p-0 text-xs":"h-5 min-w-5 rounded-full px-1 text-xs",xn[n]??xn.default,Sn[m]??Sn["top-right"],(g=u==null?void 0:u.badge)==null?void 0:g.className),children:_?null:S})]})}function Ua({slots:e}){var p,g,A,D,I,q,B,b,z,$,M,V,P;const[t,n]=ne.useState(!1),{reposAddedToCart:r,repoData:a,isSearchingAcrossAllRepo:o,setIsRepositorySelectorPageOpen:s,setRepoAddedToCart:i,setIsSearchingAcrossAllRepo:l,updateCartRepoById:c}=yn(),u=ne.useMemo(()=>r.filter(k=>k.selected),[r]),m=ne.useMemo(()=>r.map(k=>({...a.find(w=>w.task_id===k.id),checked:k.selected})),[r]);function S(k){n(x=>!x)}function h(){console.log("handleCodebaseAdd"),s(!0)}function N(k){i(x=>x.filter(w=>w.id!==k.task_id))}function _(k){}function F(k){c(k.task_id,x=>({...x,selected:!x.selected}))}return f.jsxs("div",{...e==null?void 0:e.root,className:C("relative",(p=e==null?void 0:e.root)==null?void 0:p.className),children:[t&&f.jsx("div",{...(g=e==null?void 0:e.cartContainer)==null?void 0:g.root,className:C("absolute bottom-[45px]",(D=(A=e==null?void 0:e.cartContainer)==null?void 0:A.root)==null?void 0:D.className),children:f.jsx(bn,{onCodebaseAdd:h,onRemoveCodebaseFromCart:N,onOpenCodebaseFromCart:_,onSelectionChange:F,onSearchAll:()=>l(k=>!k),isSearchAllEnabled:o,...(I=e==null?void 0:e.cartContainer)==null?void 0:I.cart,reposInCart:m})}),f.jsx(za,{badgeContent:o?"All":u.length,color:"primary",...(q=e==null?void 0:e.badge)==null?void 0:q.root,children:f.jsx("button",{onClick:S,...(b=(B=e==null?void 0:e.badge)==null?void 0:B.badgeButton)==null?void 0:b.root,className:C("flex h-9 w-12 items-center justify-center border border-b-0 border-[#E5E7EB] bg-white transition hover:bg-gray-50 focus:outline-none active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-60 rounded-t-[10px]",(M=($=(z=e==null?void 0:e.badge)==null?void 0:z.badgeButton)==null?void 0:$.root)==null?void 0:M.className),children:((P=(V=e==null?void 0:e.badge)==null?void 0:V.badgeButton)==null?void 0:P.icon)||f.jsx(jt,{size:18,color:"#5928ED"})})})]})}class Ha{static convertRepoApiDataToStateData(t){return t.map((r,a)=>{var o,s,i;return{repo_name:un(((o=r==null?void 0:r.repo_data[0])==null?void 0:o.git_url)??""),github_url:((s=r==null?void 0:r.repo_data[0])==null?void 0:s.git_url)??"",branch_name:((i=r==null?void 0:r.repo_data[0])==null?void 0:i.branch)??"",languages_used:r.language,task_id:r.task_id,user_id:r.user_id,assistant_id:r.assistant_name,organization_name:r.organization_name??"",name:r.name,description:r.description,last_analyzed_date:r.version_history.length>0?r.version_history[0].created_at:r.created_at,status:r.status,executive_summary:r.executive_summary,shared:r.shared}})}}function Wa(...e){return e.filter(Boolean).join(" ")}const Cn={default:"text-gray-600",primary:"text-blue-600",secondary:"text-purple-600",error:"text-red-600",warning:"text-amber-500",info:"text-sky-500",success:"text-green-600",white:"text-white"},qa={small:20,medium:36,large:52};function Va({color:e="primary",size:t="medium",thickness:n=4,value:r,label:a="Loading",className:o,...s}){const i=typeof t=="number"?t:qa[t],l=typeof r=="number",c=22,u=2*Math.PI*c,m=l?u-Math.min(Math.max(r,0),100)/100*u:u*.25;return f.jsx("svg",{role:"progressbar","aria-label":a,"aria-valuenow":l?r:void 0,"aria-valuemin":l?0:void 0,"aria-valuemax":l?100:void 0,viewBox:"0 0 50 50",className:Wa(Cn[e]??Cn.primary,!l&&"animate-spin",o),style:{width:i,height:i,...s.style},...s,children:f.jsx("circle",{cx:"25",cy:"25",r:c,fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:m,opacity:l?1:.9})})}function pt({children:e,disabled:t=!1,loading:n=!1,iconProps:r,slotProps:a}){var s,i,l,c,u;const o=t||n;return f.jsx("button",{disabled:o,...a==null?void 0:a.root,className:C("px-[10.5px] py-[7px] text-[#64748B] bg-white border border-[#E2E8F0] text-sm rounded-radius-md",(s=a==null?void 0:a.root)==null?void 0:s.className,o&&C("cursor-not-allowed bg-gray-100 text-gray-400 border-gray-200",(i=a==null?void 0:a.root)==null?void 0:i.disabledClassName)),children:f.jsxs("div",{...a==null?void 0:a.content,className:C("flex gap-2 justify-center items-center",(r==null?void 0:r.iconPos)==="right"&&"flex-row-reverse",(l=a==null?void 0:a.content)==null?void 0:l.className),children:[(n||(r==null?void 0:r.icon))&&f.jsxs("span",{...a==null?void 0:a.icon,className:C("flex items-center justify-center",(c=a==null?void 0:a.icon)==null?void 0:c.className),children:[n?(r==null?void 0:r.loadingIcon)??f.jsx(Va,{className:"h-3 w-3"}):r==null?void 0:r.icon," "]}),f.jsx("span",{...a==null?void 0:a.label,className:C((u=a==null?void 0:a.label)==null?void 0:u.className),children:e})]})})}function Ga({showProceedButton:e,showSearchBar:t=!0,showFilter:n=!0,proceedButtonText:r="Proceed",fallbackButtonText:a="Exit Repo Selection",onProceed:o,onExitRepoSelection:s,slots:i}){var l,c,u,m,S,h,N,_,F,p,g,A,D,I,q,B,b,z,$,M,V,P,k,x,w,O,E,L,y,U,j,K,X,G,Z,H,Q,Y,ee,ce,te,ae,le,Ge,Me,me,W,oe,ge;return f.jsxs("div",{...i==null?void 0:i.root,className:C("flex w-full items-center justify-between gap-6",(l=i==null?void 0:i.root)==null?void 0:l.className),children:[f.jsx("h1",{...i==null?void 0:i.headingText,className:C("whitespace-nowrap text-[19px] font-medium text-[#101828]",(c=i==null?void 0:i.headingText)==null?void 0:c.className),children:"Your Codebases"}),f.jsxs("div",{...(u=i==null?void 0:i.actionsContainerSlots)==null?void 0:u.root,className:C("flex flex-1 items-center justify-end gap-5",(S=(m=i==null?void 0:i.actionsContainerSlots)==null?void 0:m.root)==null?void 0:S.className),children:[t&&f.jsxs("div",{...(N=(h=i==null?void 0:i.actionsContainerSlots)==null?void 0:h.searchInputContainerSlots)==null?void 0:N.root,className:C("flex h-[45px] w-full max-w-[305px] items-center rounded-xl border border-[#D0D5DD] bg-white px-5",(p=(F=(_=i==null?void 0:i.actionsContainerSlots)==null?void 0:_.searchInputContainerSlots)==null?void 0:F.root)==null?void 0:p.className),children:[(A=(g=i==null?void 0:i.actionsContainerSlots)==null?void 0:g.searchInputContainerSlots)!=null&&A.searchIcon?(I=(D=i==null?void 0:i.actionsContainerSlots)==null?void 0:D.searchInputContainerSlots)==null?void 0:I.searchIcon:f.jsx(dt,{className:"mr-4 h-6 w-6 text-[#667085]"}),f.jsx("input",{type:"text",placeholder:"Search for a codebase",...(B=(q=i==null?void 0:i.actionsContainerSlots)==null?void 0:q.searchInputContainerSlots)==null?void 0:B.input,className:C("w-full bg-transparent text-[16px] text-[#344054] outline-none placeholder:text-[#667085]",($=(z=(b=i==null?void 0:i.actionsContainerSlots)==null?void 0:b.searchInputContainerSlots)==null?void 0:z.input)==null?void 0:$.className)})]}),n&&f.jsxs("button",{type:"button",...(V=(M=i==null?void 0:i.actionsContainerSlots)==null?void 0:M.filterButtonSlots)==null?void 0:V.root,className:C("flex h-[45px] min-w-[150px] items-center justify-between rounded-xl border border-[#D0D5DD] bg-white px-2 text-[16px] text-[#344054]",(x=(k=(P=i==null?void 0:i.actionsContainerSlots)==null?void 0:P.filterButtonSlots)==null?void 0:k.root)==null?void 0:x.className),children:[f.jsxs("div",{className:"flex items-center gap-3",children:[(O=(w=i==null?void 0:i.actionsContainerSlots)==null?void 0:w.filterButtonSlots)!=null&&O.filterIcon?(L=(E=i==null?void 0:i.actionsContainerSlots)==null?void 0:E.filterButtonSlots)==null?void 0:L.filterIcon:f.jsx(Lr,{className:"h-5 w-5 text-[#667085]"}),f.jsx("span",{...(U=(y=i==null?void 0:i.actionsContainerSlots)==null?void 0:y.filterButtonSlots)==null?void 0:U.text,className:C("text-[16px]",(X=(K=(j=i==null?void 0:i.actionsContainerSlots)==null?void 0:j.filterButtonSlots)==null?void 0:K.text)==null?void 0:X.className),children:"Show all"})]}),(Z=(G=i==null?void 0:i.actionsContainerSlots)==null?void 0:G.filterButtonSlots)!=null&&Z.chevronIcon?(Q=(H=i==null?void 0:i.actionsContainerSlots)==null?void 0:H.filterButtonSlots)==null?void 0:Q.chevronIcon:f.jsx(Tr,{className:"h-6 w-6 text-[#667085]"})]}),e?f.jsx(pt,{slotProps:{...(Y=i==null?void 0:i.actionsContainerSlots)==null?void 0:Y.proceedButtonSlots,root:{onClick:o,...(ce=(ee=i==null?void 0:i.actionsContainerSlots)==null?void 0:ee.proceedButtonSlots)==null?void 0:ce.root,className:C("h-[45px] min-w-[150px] rounded-md bg-[#5928ED] text-white",(le=(ae=(te=i==null?void 0:i.actionsContainerSlots)==null?void 0:te.proceedButtonSlots)==null?void 0:ae.root)==null?void 0:le.className)}},children:r}):f.jsx(pt,{slotProps:{...(Ge=i==null?void 0:i.actionsContainerSlots)==null?void 0:Ge.exitButtonSlots,root:{onClick:s,...(me=(Me=i==null?void 0:i.actionsContainerSlots)==null?void 0:Me.exitButtonSlots)==null?void 0:me.root,className:C("h-[45px] min-w-[150px] rounded-md bg-[#5928ED] text-white",(ge=(oe=(W=i==null?void 0:i.actionsContainerSlots)==null?void 0:W.exitButtonSlots)==null?void 0:oe.root)==null?void 0:ge.className)}},children:a})]})]})}function Nn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ja}=Object.prototype,{getPrototypeOf:Ne}=Object,{iterator:Be,toStringTag:kn}=Symbol,$e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),En=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),vn=(e,t,n)=>e===Object.prototype||!n&&t===null,Ya=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(En(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},Ie=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const a=Ne(n);if(vn(n,a,n===e))return!1;if($e(n,t))return!0;n=a}return!1},Ka=(e,t)=>e!=null&&Ie(e,t)?e[t]:void 0,Xa=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Ne(e);if(t===null&&Ya(e))return e;const n=Object.create(null),r=Object.create(null),a=[];let o=e;for(;o!=null&&a.indexOf(o)===-1;){a.push(o);const s=o===e?t:Ne(o);if(vn(o,s,o===e))break;const i=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&i.push(...Object.getOwnPropertySymbols(o));for(const l of i)En(l)||$e(r,l)||(n[l]=e[l],r[l]=!0);o=s}return n},bt=(e=>t=>{const n=Ja.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),he=e=>(e=e.toLowerCase(),t=>bt(t)===e),Qe=e=>t=>typeof t===e,{isArray:ve}=Array,Oe=Qe("undefined");function Te(e){return e!==null&&!Oe(e)&&e.constructor!==null&&!Oe(e.constructor)&&fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const On=he("ArrayBuffer");function Za(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&On(e.buffer),t}const Qa=Qe("string"),fe=Qe("function"),_n=Qe("number"),Fe=e=>e!==null&&typeof e=="object",Pa=e=>e===!0||e===!1,Pe=e=>{if(!Fe(e))return!1;const t=Ne(e);return(t===null||t===Object.prototype||Ne(t)===null)&&!Ie(e,kn)&&!Ie(e,Be)},ei=e=>{if(!Fe(e)||Te(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ti=he("Date"),ni=he("File"),ri=e=>!!(e&&typeof e.uri<"u"),ai=e=>e&&typeof e.getParts<"u",ii=he("Blob"),oi=he("FileList"),si=he("Set"),ci=e=>Fe(e)&&fe(e.pipe);function li(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const An=li(),Dn=typeof An.FormData<"u"?An.FormData:void 0,di=e=>{if(!e)return!1;if(Dn&&e instanceof Dn)return!0;const t=Ne(e);if(!t||t===Object.prototype||!fe(e.append))return!1;const n=bt(e);return n==="formdata"||n==="object"&&fe(e.toString)&&e.toString()==="[object FormData]"},ui=he("URLSearchParams"),[fi,hi,mi,pi]=["ReadableStream","Request","Response","Headers"].map(he),bi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ze(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ve(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Te(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function Rn(e,t){if(Te(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const _e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tn=e=>!Oe(e)&&e!==_e;function gt(...e){const{caseless:t,skipUndefined:n}=Tn(this)&&this||{},r={},a=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const i=t&&typeof s=="string"&&Rn(r,s)||s,l=$e(r,i)?r[i]:void 0;Pe(l)&&Pe(o)?r[i]=gt(l,o):Pe(o)?r[i]=gt({},o):ve(o)?r[i]=o.slice():(!n||!Oe(o))&&(r[i]=o)};for(let o=0,s=e.length;o<s;o++){const i=e[o];if(!i||Te(i)||(ze(i,a),typeof i!="object"||ve(i)))continue;const l=Object.getOwnPropertySymbols(i);for(let c=0;c<l.length;c++){const u=l[c];_i.call(i,u)&&a(i[u],u)}}return r}const gi=(e,t,n,{allOwnKeys:r}={})=>(ze(t,(a,o)=>{n&&fe(a)?Object.defineProperty(e,o,{__proto__:null,value:Nn(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),yi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wi=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},xi=(e,t,n,r)=>{let a,o,s;const i={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!i[s]&&(t[s]=e[s],i[s]=!0);e=n!==!1&&Ne(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Si=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ci=e=>{if(!e)return null;if(ve(e))return e;let t=e.length;if(!_n(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ni=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ne(Uint8Array)),ki=(e,t)=>{const r=(e&&e[Be]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},Ei=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vi=he("HTMLFormElement"),Oi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:_i}=Object.prototype,Ai=he("RegExp"),Fn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ze(n,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(r[o]=s||a)}),Object.defineProperties(e,r)},Di=e=>{Fn(e,(t,n)=>{if(fe(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(fe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ri=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return ve(e)?r(e):r(String(e).split(t)),n},Ti=()=>{},Fi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Li(e){return!!(e&&fe(e.append)&&e[kn]==="FormData"&&e[Be])}const Mi=e=>{const t=new WeakSet,n=r=>{if(Fe(r)){if(t.has(r))return;if(Te(r))return r;if(!("toJSON"in r)){t.add(r);let a;if(si(r)){a=[];for(const o of r){const s=n(o);!Oe(s)&&a.push(s)}}else a=ve(r)?[]:{},ze(r,(o,s)=>{const i=n(o);!Oe(i)&&(a[s]=i)});return t.delete(r),a}}return r};return n(e)},ji=he("AsyncFunction"),Bi=e=>e&&(Fe(e)||fe(e))&&fe(e.then)&&fe(e.catch),Ln=((e,t)=>e?setImmediate:t?((n,r)=>(_e.addEventListener("message",({source:a,data:o})=>{a===_e&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),_e.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fe(_e.postMessage)),$i=typeof queueMicrotask<"u"?queueMicrotask.bind(_e):typeof process<"u"&&process.nextTick||Ln,Mn=e=>e!=null&&fe(e[Be]),d={isArray:ve,isArrayBuffer:On,isBuffer:Te,isFormData:di,isArrayBufferView:Za,isString:Qa,isNumber:_n,isBoolean:Pa,isObject:Fe,isPlainObject:Pe,isEmptyObject:ei,isReadableStream:fi,isRequest:hi,isResponse:mi,isHeaders:pi,isUndefined:Oe,isDate:ti,isFile:ni,isReactNativeBlob:ri,isReactNative:ai,isBlob:ii,isRegExp:Ai,isFunction:fe,isStream:ci,isURLSearchParams:ui,isTypedArray:Ni,isFileList:oi,forEach:ze,merge:gt,extend:gi,trim:bi,stripBOM:yi,inherits:wi,toFlatObject:xi,kindOf:bt,kindOfTest:he,endsWith:Si,toArray:Ci,forEachEntry:ki,matchAll:Ei,isHTMLForm:vi,hasOwnProperty:$e,hasOwnProp:$e,hasOwnInPrototypeChain:Ie,getSafeProp:Ka,toSafeFlatObject:Xa,reduceDescriptors:Fn,freezeMethods:Di,toObjectSet:Ri,toCamelCase:Oi,noop:Ti,toFiniteNumber:Fi,findKey:Rn,global:_e,isContextDefined:Tn,isSpecCompliantForm:Li,toJSONObject:Mi,isAsyncFn:ji,isThenable:Bi,setImmediate:Ln,asap:$i,isIterable:Mn,isSafeIterable:e=>e!=null&&Ie(e,Be)&&Mn(e)},Ii=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zi=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
94
|
+
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim();const i=d.hasOwnProp(t,n);!n||i&&d.hasOwnProp(Ii,n)||(n==="set-cookie"?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t};function Ui(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Hi=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Wi=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yt(e,t){return d.isArray(e)?e.map(n=>yt(n,t)):Ui(String(e).replace(t,""))}const qi=e=>yt(e,Hi),Vi=e=>yt(e,Wi);function jn(e){const t=Object.create(null);return d.forEach(e.toJSON(),(n,r)=>{t[r]=Vi(n)}),t}const Bn=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:d.isArray(e)?e.map(et):qi(String(e))}function Gi(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ji=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function wt(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Yi(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const a=e.charCodeAt(r);if(a===34||a===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Ki(e){const t=Object.create(null),n=String(e);let r=0,a=!1,o=!1;function s(i){const l=wt(n.slice(r,i)),c=l.indexOf("=");if(c<1)return;const u=wt(l.slice(0,c));if(!Ji.test(u))return;const m=u.toLowerCase();if(m==="__proto__"||m==="constructor"||m==="prototype")return;const S=wt(l.slice(c+1));t[m]=Yi(S)}for(let i=0;i<n.length;i++){const l=n.charCodeAt(i);a?o?o=!1:l===92?o=!0:l===34&&(a=!1):l===34?a=!0:(l===44||l===59)&&(s(i),r=i+1)}return s(n.length),t}const Xi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xt(e,t,n,r,a){if(d.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!d.isString(t)){if(d.isString(r))return t.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(t)}}function Zi(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qi(e,t){const n=d.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,o,s){return this[r].call(this,t,a,o,s)},configurable:!0})})}let de=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(i,l,c){const u=Ue(l);if(!u)return;const m=d.findKey(a,u);(!m||a[m]===void 0||c===!0||c===void 0&&a[m]!==!1)&&(a[m||l]=et(i))}const s=(i,l)=>d.forEach(i,(c,u)=>o(c,u,l));if(d.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(d.isString(t)&&(t=t.trim())&&!Xi(t))s(zi(t),n);else if(d.isObject(t)&&d.isSafeIterable(t)){let i=Object.create(null),l,c;for(const u of t){if(!d.isArray(u))throw new TypeError("Object iterator must return a key-value pair");c=u[0],d.hasOwnProp(i,c)?(l=i[c],i[c]=d.isArray(l)?[...l,u[1]]:[l,u[1]]):i[c]=u[1]}s(i,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ue(t),t){const r=d.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Gi(a);if(d.isFunction(n))return n.call(this,a,r);if(d.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ue(t),t){const r=d.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(s){if(s=Ue(s),s){const i=d.findKey(r,s);i&&(!n||xt(r,r[i],i,n))&&(delete r[i],a=!0)}}return d.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||xt(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return d.forEach(this,(a,o)=>{const s=d.findKey(r,o);if(s){n[s]=et(a),delete n[o];return}const i=t?Zi(o):String(o).trim();i!==o&&delete n[o],n[i]=et(a),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return d.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
95
|
+
`)}getSetCookie(){const t=this.get("set-cookie");return d.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Ki(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[Bn]=this[Bn]={accessors:{}}).accessors,a=this.prototype;function o(s){const i=Ue(s);r[i]||(Qi(a,s),r[i]=!0)}return d.isArray(t)?t.forEach(o):o(t),this}};de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(de.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),d.freezeMethods(de);const tt="[REDACTED ****]";function Pi(e){if(d.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(d.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function eo(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],a=o=>{if(o===null||typeof o!="object"||d.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof de&&(o=o.toJSON()),r.push(o);let s;if(d.isArray(o))s=[],o.forEach((i,l)=>{const c=a(i);d.isUndefined(c)||(s[l]=c)});else{if(!d.isPlainObject(o)&&Pi(o))return r.pop(),o;s=Object.create(null);for(const[i,l]of Object.entries(o)){const c=n.has(i.toLowerCase())?tt:a(l);d.isUndefined(c)||(s[i]=c)}}return r.pop(),s};return a(e)}function $n(e){try{return String(e)}catch{return""}}function to(e){return e.errors.map(n=>{try{return n&&n.message?$n(n.message):$n(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let v=class Sr extends Error{static from(t,n,r,a,o,s){let i=t.message;!i&&d.isArray(t.errors)&&t.errors.length&&(i=to(t));const l=new Sr(i,n||t.code,r,a,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),s&&Object.assign(l,s),l}constructor(t,n,r,a,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&d.hasOwnProp(t,"redact")?t.redact:void 0,r=d.isArray(n)&&n.length>0?eo(t,n):d.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};v.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",v.ERR_BAD_OPTION="ERR_BAD_OPTION",v.ECONNABORTED="ECONNABORTED",v.ETIMEDOUT="ETIMEDOUT",v.ECONNREFUSED="ECONNREFUSED",v.ERR_NETWORK="ERR_NETWORK",v.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",v.ERR_DEPRECATED="ERR_DEPRECATED",v.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",v.ERR_BAD_REQUEST="ERR_BAD_REQUEST",v.ERR_CANCELED="ERR_CANCELED",v.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",v.ERR_INVALID_URL="ERR_INVALID_URL",v.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const no=null,In=100;function St(e){return d.isPlainObject(e)||d.isArray(e)}function zn(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function Ct(e,t,n){return e?e.concat(t).map(function(a,o){return a=zn(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function ro(e){return d.isArray(e)&&!e.some(St)}const ao=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function nt(e,t,n){if(!d.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(g,A)=>{const D=d.getSafeProp(n,g);return d.isUndefined(D)?A:D},a=r("metaTokens",!0),o=r("visitor")||_,s=r("dots",!1),i=r("indexes",!1),l=r("Blob")||typeof Blob<"u"&&Blob,c=r("maxDepth",In),u=l&&d.isSpecCompliantForm(t),m=[];if(!d.isFunction(o))throw new TypeError("visitor must be a function");function S(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(d.isBoolean(g))return g.toString();if(!u&&d.isBlob(g))throw new v("Blob is not supported. Use a Buffer instead.");if(d.isArrayBuffer(g)||d.isTypedArray(g)){if(u&&typeof l=="function")return new l([g]);throw new v("Blob is not supported. Use a Buffer instead.",v.ERR_NOT_SUPPORT)}return g}function h(g){if(g>c)throw new v("Object is too deeply nested ("+g+" levels). Max depth: "+c,v.ERR_FORM_DATA_DEPTH_EXCEEDED)}function N(g,A){if(c===1/0)return JSON.stringify(g);const D=[];return JSON.stringify(g,function(q,B){if(!d.isObject(B))return B;for(;D.length&&D[D.length-1]!==this;)D.pop();return D.push(B),h(A+D.length-1),B})}function _(g,A,D){let I=g;if(d.isReactNative(t)&&d.isReactNativeBlob(g))return t.append(Ct(D,A,s),S(g)),!1;if(g&&!D&&typeof g=="object"){if(d.endsWith(A,"{}"))A=a?A:A.slice(0,-2),g=N(g,1);else if(d.isArray(g)&&ro(g)||(d.isFileList(g)||d.endsWith(A,"[]"))&&(I=d.toArray(g)))return A=zn(A),I.forEach(function(B,b){!(d.isUndefined(B)||B===null)&&t.append(i===!0?Ct([A],b,s):i===null?A:A+"[]",S(B))}),!1}return St(g)?!0:(t.append(Ct(D,A,s),S(g)),!1)}const F=Object.assign(ao,{defaultVisitor:_,convertValue:S,isVisitable:St});function p(g,A,D=0){if(!d.isUndefined(g)){if(h(D),m.indexOf(g)!==-1)throw new Error("Circular reference detected in "+A.join("."));m.push(g),d.forEach(g,function(q,B){(!(d.isUndefined(q)||q===null)&&o.call(t,q,d.isString(B)?B.trim():B,A,F))===!0&&p(q,A?A.concat(B):[B],D+1)}),m.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Un(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Nt(e,t){this._pairs=[],e&&nt(e,this,t)}const Hn=Nt.prototype;Hn.append=function(t,n){this._pairs.push([t,n])},Hn.toString=function(t){const n=t?r=>t.call(this,r,Un):Un;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function io(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wn(e,t,n){if(!t)return e;e=e||"";const r=d.isFunction(n)?{serialize:n}:n,a=d.getSafeProp(r,"encode")||io,o=d.getSafeProp(r,"serialize");let s;if(o?s=o(t,r):s=d.isURLSearchParams(t)?t.toString():new Nt(t,r).toString(a),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}const He=Symbol("internals");function qn(e){return e?e.length:0}function Vn(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function We(e,t){const n=e.handlers,r=qn(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,s){n[o.index]!==o.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class Gn{constructor(){this.handlers=[],this[He]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const a={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},o=this[He];this.handlers==null&&(this.handlers=[]),We(this,o);const s=o.nextId++;return this.handlers.push(a),o.handlerEntries.set(s,{handler:a,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,s}eject(t){const n=this[He];We(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(Vn(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],We(this,this[He]))}forEach(t){const n=this[He];We(this,n),n.iterationDepth++;try{d.forEach(this.handlers,function(a){a!==null&&t(a)})}finally{--n.iterationDepth||(We(this,n),Vn(this.handlers),n.handlersLength=qn(this.handlers))}}}const kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},oo={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Nt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",vt=typeof navigator=="object"&&navigator||void 0,so=Et&&(!vt||["ReactNative","NativeScript","NS"].indexOf(vt.product)<0),co=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lo=Et&&window.location.href||"http://localhost",se={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:so,hasStandardBrowserWebWorkerEnv:co,navigator:vt,origin:lo},Symbol.toStringTag,{value:"Module"})),...oo};function uo(e,t){return nt(e,new se.classes.URLSearchParams,{visitor:function(n,r,a,o){return se.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const Jn=In;function Yn(e){if(e>Jn)throw new v("FormData field is too deeply nested ("+e+" levels). Max depth: "+Jn,v.ERR_FORM_DATA_DEPTH_EXCEEDED)}function fo(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Yn(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function ho(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function Kn(e){function t(n,r,a,o){Yn(o);let s=n[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=n.length;return s=!s&&d.isArray(a)?a.length:s,l?(d.hasOwnProp(a,s)?a[s]=d.isArray(a[s])?a[s].concat(r):[a[s],r]:a[s]=r,!i):((!d.hasOwnProp(a,s)||!d.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],o)&&d.isArray(a[s])&&(a[s]=ho(a[s])),!i)}if(d.isFormData(e)&&d.isFunction(e.entries)){const n={};return d.forEachEntry(e,(r,a)=>{t(fo(r),a,n,0)}),n}return null}const Xn=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Le=(e,t)=>e!=null&&d.hasOwnProp(e,t)?e[t]:void 0;function mo(e,t,n){if(d.isString(e))try{return(t||JSON.parse)(e),d.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qe={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=d.isObject(t);if(o&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return a?JSON.stringify(Kn(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){const l=Le(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return uo(t,l).toString();if((i=d.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=Le(this,"env"),u=c&&c.FormData;return nt(i?{"files[]":t}:t,u&&new u,l)}}return o||a?(n.setContentType("application/json",!1),mo(t)):t}],transformResponse:[function(t){const n=Le(this,"transitional")||qe.transitional,r=n&&n.forcedJSONParsing,a=Le(this,"responseType"),o=a==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(r&&!a||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Le(this,"parseReviver"))}catch(l){if(i)throw l.name==="SyntaxError"?v.from(l,v.ERR_BAD_RESPONSE,this,null,Le(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(Xn,e=>{qe.headers[e]={}});function Ot(e,t){const n=this||qe,r=t||n,a=de.from(r.headers);let o=r.data;return d.forEach(e,function(i){o=i.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Zn(e){return!!(e&&e.__CANCEL__)}let Ve=class extends v{constructor(t,n,r){super(t??"canceled",v.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Qn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new v("Request failed with status code "+n.status,n.status>=400&&n.status<500?v.ERR_BAD_REQUEST:v.ERR_BAD_RESPONSE,n.config,n.request,n))}const po=/[\t\n\r]/g;function Pn(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(po,"")}function _t(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function bo(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];s||(s=c),n[a]=l,r[a]=c;let m=o,S=0;for(;m!==a;)S+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-s<t)return;const h=u&&c-u;return h?Math.round(S*1e3/h):void 0}}function go(e,t){let n=0,r=1e3/t,a,o;const s=(u,m=Date.now())=>{n=m,a=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const m=Date.now(),S=m-n;S>=r?s(u,m):(a=u,o||(o=setTimeout(()=>{o=null,s(a)},r-S)))},()=>a&&s(a),(...u)=>s(u)]}const rt=(e,t,n=3)=>{let r=0;const a=bo(50,250);return go(o=>{if(!o||!d.isNumber(o.loaded))return;const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=Math.max(0,i!=null?Math.min(s,i):s),c=Math.max(0,l-r),u=a(c);r=Math.max(r,l);const m={loaded:l,total:i,progress:i?l/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i?(i-l)/u:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(m)},n)},er=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tr=(e,t=d.asap)=>(...n)=>t(()=>e(...n)),yo=se.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,se.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(se.origin),se.navigator&&/(msie|trident)/i.test(se.navigator.userAgent)):()=>!0,wo=se.hasStandardBrowserEnv?{write(e,t,n,r,a,o,s){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];d.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),d.isString(r)&&i.push(`path=${r}`),d.isString(a)&&i.push(`domain=${a}`),o===!0&&i.push("secure"),d.isString(s)&&i.push(`SameSite=${s}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)try{return decodeURIComponent(r.slice(a+1))}catch{return r.slice(a+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function xo(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function So(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const Co=/^https?:(?!\/\/)/i;function No(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${tt}`)}function ko(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${tt}@`),n=t.indexOf("#"),a=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${tt}`);return n===-1?a:`${a}#${No(t.slice(n+1))}`}function nr(e,t){if(typeof e=="string"){const n=Pn(e);if(Co.test(n))throw new v(`Invalid URL ${JSON.stringify(ko(n))}: missing "//" after protocol`,v.ERR_INVALID_URL,t)}}function rr(e,t,n,r){nr(t,r);let a=!xo(t);return e&&(a||n===!1)?(nr(e,r),So(e,t)):t}const ar=e=>e instanceof de?{...e}:e,Eo=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Ae(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,m,S,h){return d.isPlainObject(u)&&d.isPlainObject(m)?d.merge.call({caseless:h},u,m):d.isPlainObject(m)?d.merge({},m):d.isArray(m)?m.slice():m}function a(u,m,S,h){if(d.isUndefined(m)){if(!d.isUndefined(u))return r(void 0,u,S,h)}else return r(u,m,S,h)}function o(u,m){if(!d.isUndefined(m))return r(void 0,m)}function s(u,m){if(d.isUndefined(m)){if(!d.isUndefined(u))return r(void 0,u)}else return r(void 0,m)}function i(u){const m=d.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!d.isUndefined(m))if(d.isPlainObject(m)){if(d.hasOwnProp(m,u))return m[u]}else return;const S=d.hasOwnProp(e,"transitional")?e.transitional:void 0;if(d.isPlainObject(S)&&d.hasOwnProp(S,u))return S[u]}function l(u,m,S){if(d.hasOwnProp(t,S))return r(u,m);if(d.hasOwnProp(e,S))return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(u,m,S)=>a(ar(u),ar(m),S,!0)};return d.forEach(Eo({...e,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const S=d.hasOwnProp(c,m)?c[m]:a,h=d.hasOwnProp(e,m)?e[m]:void 0,N=d.hasOwnProp(t,m)?t[m]:void 0,_=S(h,N,m);d.isUndefined(_)&&S!==l||(n[m]=_)}),d.hasOwnProp(t,"validateStatus")&&d.isUndefined(t.validateStatus)&&i("validateStatusUndefinedResolves")===!1&&(d.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const vo=["content-type","content-length"];function Oo(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,a])=>{vo.includes(r.toLowerCase())&&e.set(r,a)})}const _o=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function ir(e){const t=Ae({},e),n=S=>d.hasOwnProp(t,S)?t[S]:void 0,r=n("data");let a=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let i=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),m=n("url");if(t.headers=i=de.from(i),t.url=Wn(rr(c,m,u,t),n("params"),n("paramsSerializer")),l){const S=d.getSafeProp(l,"username")||"",h=d.getSafeProp(l,"password")||"";try{i.set("Authorization","Basic "+btoa(S+":"+(h?_o(h):"")))}catch(N){throw v.from(N,v.ERR_BAD_OPTION_VALUE,e)}}if(d.isFormData(r)){const S=d.getSafeProp(r,"getHeaders");se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv||d.isReactNative(r)?i.setContentType(void 0):d.isFunction(S)&&Oo(i,S.call(r),n("formDataHeaderPolicy"))}if(se.hasStandardBrowserEnv&&(d.isFunction(a)&&(a=a(t)),a===!0||a==null&&yo(t.url))){const h=o&&s&&wo.read(s);h&&i.set(o,h)}return t}const Ao=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=ir(e);let o=a.data;const s=de.from(a.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=a,u,m,S,h,N,_;function F(){h&&h(),N&&N(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function g(D){if(!p)return;if(p.status===0&&(_t(Pn(a.url))||_t(se.origin))!=="file"&&!(p.responseURL&&p.responseURL.startsWith("file:"))){r(new v("Request aborted",v.ECONNABORTED,e,p)),F(),p=null;return}try{D?_&&_(D):N&&N()}catch(b){setTimeout(()=>{throw b})}if(!p)return;const I=de.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),B={data:!i||i==="text"||i==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:I,config:e,request:p};Qn(function(z){n(z),F()},function(z){r(z),F()},B),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(g)},p.onabort=function(){p&&(r(new v("Request aborted",v.ECONNABORTED,e,p)),F(),p=null)},p.onerror=function(I){const q=I&&I.message?I.message:"Network Error",B=new v(q,v.ERR_NETWORK,e,p);B.event=I||null,r(B),F(),p=null},p.ontimeout=function(){let I=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const q=a.transitional||kt;a.timeoutErrorMessage&&(I=a.timeoutErrorMessage),r(new v(I,q.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,p)),F(),p=null},o===void 0&&s.setContentType(null),"setRequestHeader"in p&&d.forEach(jn(s),function(I,q){p.setRequestHeader(q,I)}),d.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),i&&i!=="json"&&(p.responseType=a.responseType),c&&([S,N,_]=rt(c,!0),p.addEventListener("progress",S)),l&&p.upload&&([m,h]=rt(l),p.upload.addEventListener("progress",m),p.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=D=>{p&&(r(!D||D.type?new Ve(null,e,p):D),p.abort(),F(),p=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const A=_t(a.url);if(A&&!se.protocols.includes(A)){r(new v("Unsupported protocol "+A+":",v.ERR_BAD_REQUEST,e)),F();return}p.send(o||null)})},Do=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof v?c:new Ve(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new v(`timeout of ${t}ms exceeded`,v.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>{if(!r){if(l.aborted){a.call(l);return}l.addEventListener("abort",a,{once:!0})}});const{signal:i}=n;return i.unsubscribe=()=>d.asap(s),i},Ro=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},To=async function*(e,t){for await(const n of Fo(e))yield*Ro(n,t)},Fo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},or=(e,t,n,r)=>{const a=To(e,t);let o=0,s,i=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){i(),l.close();return}let m=u.byteLength;if(n){let S=o+=m;n(S)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),a.return()}},{highWaterMark:2})},sr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,cr=(e,t,n)=>t+2<n&&sr(e.charCodeAt(t+1))&&sr(e.charCodeAt(t+2)),lr=e=>e<=57?e-48:(e&223)-55,Lo=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Mo=e=>e===9||e===10||e===12||e===13||e===32,jo=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Bo=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},$o=e=>{const t=e.length;let n=0,r=0,a=!1;for(let o=0;o<t;o++){let s=e.charCodeAt(o);if(s===37&&cr(e,o,t)&&(s=lr(e.charCodeAt(o+1))*16+lr(e.charCodeAt(o+2)),o+=2),!Mo(s)){if(s===61){r++;continue}if(!Lo(s)||r>0){a=!0;continue}n++}}return a||r>2||r>0&&(n+r)%4!==0||n%4===1?Bo(e):jo(n)},Io=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),a=e.slice(n+1);if(/;base64/i.test(r))return t(a);let s=0;for(let i=0,l=a.length;i<l;i++){const c=a.charCodeAt(i);if(c===37&&cr(a,i,l))s+=1,i+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&i+1<l){const u=a.charCodeAt(i+1);u>=56320&&u<=57343?(s+=4,i++):s+=3}else s+=3}return s};function zo(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Io(t===-1?e:e.slice(0,t),$o)}const At="1.20.0",dr=64*1024,Uo={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:at}=d,Ho=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),ur=e=>{if(!d.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},fr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wo=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},qo=e=>{const t=d.global!==void 0&&d.global!==null?d.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=d.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:o,Response:s}=e,i=a?at(a):typeof fetch=="function",l=at(o),c=at(s);if(!i)return!1;const u=i&&at(n),m=i&&(typeof r=="function"?(p=>g=>p.encode(g))(new r):async p=>new Uint8Array(await new o(p).arrayBuffer())),S=l&&u&&fr(()=>{let p=!1;const g=new o(se.origin,{body:new n,method:"POST",get duplex(){return p=!0,"half"}}),A=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),p&&!A}),h=c&&u&&fr(()=>d.isReadableStream(new s("").body)),N={stream:h&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!N[p]&&(N[p]=(g,A)=>{let D=g&&g[p];if(D)return D.call(g);throw new v(`Response type '${p}' is not supported`,v.ERR_NOT_SUPPORT,A)})});const _=async p=>{if(p==null)return 0;if(d.isBlob(p))return p.size;if(d.isSpecCompliantForm(p))return(await new o(se.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(d.isArrayBufferView(p)||d.isArrayBuffer(p))return p.byteLength;if(d.isURLSearchParams(p)&&(p=p+""),d.isString(p))return(await m(p)).byteLength},F=async(p,g)=>{const A=d.toFiniteNumber(p.getContentLength());return A??_(g)};return async p=>{let{url:g,method:A,data:D,signal:I,cancelToken:q,timeout:B,onDownloadProgress:b,onUploadProgress:z,responseType:$,headers:M,withCredentials:V="same-origin",fetchOptions:P,maxContentLength:k,maxBodyLength:x,maxRedirects:w}=ir(p);const O=d.isNumber(k)&&k>-1,E=d.isNumber(x)&&x>-1,L=H=>d.hasOwnProp(p,H)?p[H]:void 0;let y=a||fetch;$=$?($+"").toLowerCase():"text";let U=Do([I,q&&q.toAbortSignal()],B),j=null;const K=U&&U.unsubscribe&&(()=>{U.unsubscribe()});let X,G=null;const Z=()=>new v("Request body larger than maxBodyLength limit",v.ERR_BAD_REQUEST,p,j);try{let H;const Q=L("auth");if(Q){const W=d.getSafeProp(Q,"username")||"",oe=d.getSafeProp(Q,"password")||"";H={username:W,password:oe}}if(Wo(g)){const W=new URL(g,se.origin);if(!H&&(W.username||W.password)){const oe=ur(W.username),ge=ur(W.password);H={username:oe,password:ge}}(W.username||W.password)&&(W.username="",W.password="",g=W.href)}if(H&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(Ho((H.username||"")+":"+(H.password||""))))),O&&typeof g=="string"&&g.startsWith("data:")&&zo(g)>k)throw new v("maxContentLength size of "+k+" exceeded",v.ERR_BAD_RESPONSE,p,j);if(E&&A!=="get"&&A!=="head"){const W=await _(D);if(typeof W=="number"&&isFinite(W)&&(X=W,W>x))throw Z()}const Y=E&&(d.isReadableStream(D)||d.isStream(D)),ee=(W,oe,ge)=>or(W,dr,Re=>{if(E&&Re>x)throw G=Z();oe&&oe(Re)},ge);if(S&&A!=="get"&&A!=="head"&&(z||Y)){if(X=X??await F(M,D),X!==0||Y){let W=new o(g,{method:"POST",body:D,duplex:"half"}),oe;if(d.isFormData(D)&&(oe=W.headers.get("content-type"))&&M.setContentType(oe),W.body){const[ge,Re]=z&&er(X,rt(tr(z)))||[];D=ee(W.body,ge,Re)}}}else if(Y&&!l&&u&&A!=="get"&&A!=="head")D=ee(D);else if(Y&&l&&!S&&A!=="get"&&A!=="head")throw new v("Stream request bodies are not supported by the current fetch implementation",v.ERR_NOT_SUPPORT,p,j);d.isString(V)||(V=V?"include":"omit");const ce=l&&"credentials"in o.prototype;if(d.isFormData(D)){const W=M.getContentType();W&&/^multipart\/form-data/i.test(W)&&!/boundary=/i.test(W)&&M.delete("content-type")}M.set("User-Agent","axios/"+At,!1);const te=P==null?P:Object.assign(Object.create(null),P);te&&(delete te.body,delete te.headers,delete te.method,delete te.signal,delete te.duplex,delete te.credentials);const ae=Object.assign(Object.create(null),te,{signal:U,method:A.toUpperCase(),headers:jn(M.normalize()),body:D,duplex:"half",credentials:ce?V:void 0});l&&(d.forEach(Uo,(W,oe)=>{ae[oe]===void 0&&(ae[oe]=W)}),ae.signal===void 0&&(ae.signal=null),ae.body===void 0&&(ae.body=null)),w===0&&(ae.redirect="manual",te&&(te.redirect="manual")),j=l&&new o(g,ae);let le=await(l?y(j,te):y(g,ae));const Ge=de.from(le.headers);if(O){const W=d.toFiniteNumber(Ge.getContentLength());if(W!=null&&W>k)throw new v("maxContentLength size of "+k+" exceeded",v.ERR_BAD_RESPONSE,p,j)}const Me=h&&($==="stream"||$==="response");if(h&&le.body&&(b||O||Me&&K)){const W={};["status","statusText","headers"].forEach(Je=>{W[Je]=le[Je]});const oe=d.toFiniteNumber(Ge.getContentLength()),[ge,Re]=b&&er(oe,rt(tr(b),!0))||[];let xr=0;const us=Je=>{if(O&&(xr=Je,xr>k))throw new v("maxContentLength size of "+k+" exceeded",v.ERR_BAD_RESPONSE,p,j);ge&&ge(Je)};le=new s(or(le.body,dr,us,()=>{Re&&Re(),K&&K()}),W)}$=$||"text";let me=await N[d.findKey(N,$)||"text"](le,p);if(O&&!h&&!Me){let W;if(me!=null&&(typeof me.byteLength=="number"?W=me.byteLength:typeof me.size=="number"?W=me.size:typeof me=="string"&&(W=typeof r=="function"?new r().encode(me).byteLength:me.length)),typeof W=="number"&&W>k)throw new v("maxContentLength size of "+k+" exceeded",v.ERR_BAD_RESPONSE,p,j)}return!Me&&K&&K(),await new Promise((W,oe)=>{Qn(W,oe,{data:me,headers:de.from(le.headers),status:le.status,statusText:le.statusText,config:p,request:j})})}catch(H){if(K&&K(),U&&U.aborted&&U.reason instanceof v){const Q=U.reason;throw Q.config=p,j&&(Q.request=j),H!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:H,writable:!0,enumerable:!1,configurable:!0}),Q}if(G)throw j&&!G.request&&(G.request=j),G;if(H instanceof v)throw j&&!H.request&&(H.request=j),H;if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){const Q=new v("Network Error",v.ERR_NETWORK,p,j,H&&H.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:H.cause||H,writable:!0,enumerable:!1,configurable:!0}),Q}throw v.from(H,H&&H.code,p,j,H&&H.response)}}},Vo=new Map,hr=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let s=o.length,i=s,l,c,u=Vo;for(;i--;)l=o[i],c=u.get(l),c===void 0&&u.set(l,c=i?new Map:qo(t)),u=c;return c};hr();const Dt={http:no,xhr:Ao,fetch:{get:hr}};d.forEach(Dt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const mr=e=>`- ${e}`,Go=e=>d.isFunction(e)||e===null||e===!1;function Jo(e,t){e=d.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let s=0;s<n;s++){r=e[s];let i;if(a=r,!Go(r)&&(a=Dt[(i=String(r)).toLowerCase()],a===void 0))throw new v(`Unknown adapter '${i}'`);if(a&&(d.isFunction(a)||(a=a.get(t))))break;o[i||"#"+s]=a}if(!a){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?s.length>1?`since :
|
|
96
|
+
`+s.map(mr).join(`
|
|
97
|
+
`):" "+mr(s[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+i,v.ERR_NOT_SUPPORT)}return a}const pr={getAdapter:Jo,adapters:Dt};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ve(null,e)}function Tt(e){const t=d.toSafeFlatObject(e);return Rt(t),t.headers=de.from(d.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pr.getAdapter(t.adapter||qe.adapter,t)(t).then(function(a){Rt(t),t.response=a;try{a.data=Ot.call(t,t.transformResponse,a)}finally{delete t.response}return a.headers=de.from(a.headers),a},function(a){if(!Zn(a)&&(Rt(t),a&&a.response)){t.response=a.response;try{a.response.data=Ot.call(t,t.transformResponse,a.response)}finally{delete t.response}a.response.headers=de.from(a.response.headers)}return Promise.reject(a)})}const it={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{it[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const br={};it.transitional=function(t,n,r){function a(o,s){return"[Axios v"+At+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,i)=>{if(t===!1)throw new v(a(s," has been removed"+(n?" in "+n:"")),v.ERR_DEPRECATED);return n&&!br[s]&&(br[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,i):!0}},it.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yo(e,t,n){if(typeof e!="object"||e===null)throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const i=e[o],l=i===void 0||s(i,o,e);if(l!==!0)throw new v("option "+o+" must be "+l,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+o,v.ERR_BAD_OPTION)}}const ot={assertOptions:Yo,validators:it},ue=ot.validators;let De=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Gn,response:new Gn}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error)try{let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack;let s="";if(typeof o=="string"){const i=o.indexOf(`
|
|
98
|
+
`);s=i===-1?"":o.slice(i+1)}if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
99
|
+
`),l=i===-1?-1:s.indexOf(`
|
|
100
|
+
`,i+1),c=l===-1?"":s.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
101
|
+
`+s)}}catch{}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ae(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&ot.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean),legacyInterceptorReqResOrdering:ue.transitional(ue.boolean),advertiseZstdAcceptEncoding:ue.transitional(ue.boolean),validateStatusUndefinedResolves:ue.transitional(ue.boolean)},!1),a!=null&&(d.isFunction(a)?n.paramsSerializer={serialize:a}:ot.assertOptions(a,{encode:ue.function,serialize:ue.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ot.assertOptions(n,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),n.method=(d.getSafeProp(n,"method")||d.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=o&&d.merge(o.common,o[n.method]);o&&d.forEach(Xn.concat("common"),N=>{delete o[N]}),n.headers=de.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;l=l&&_.synchronous;const F=n.transitional||kt;F&&F.legacyInterceptorReqResOrdering?i.unshift(_.fulfilled,_.rejected):i.push(_.fulfilled,_.rejected)});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,m=0,S;if(!l){const N=[Tt.bind(this),void 0];for(N.unshift(...i),N.push(...c),S=N.length,u=Promise.resolve(n);m<S;)u=u.then(N[m++],N[m++]);return u}S=i.length;let h=n;for(;m<S;){const N=i[m++],_=i[m++];try{h=N?N(h):h}catch(F){if(!_){u=Promise.reject(F);break}try{const p=_.call(this,F);d.isThenable(p)&&(u=Promise.resolve(p).then(()=>Tt.call(this,h)))}catch(p){u=Promise.reject(p)}break}}if(!u)try{u=Tt.call(this,h)}catch(N){u=Promise.reject(N)}for(m=0,S=c.length;m<S;)u=u.then(c[m++],c[m++]);return u}getUri(t){t=Ae(this.defaults,t);const n=rr(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Wn(n,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){De.prototype[t]=function(n,r){return this.request(Ae(r||{},{method:t,url:n,data:r&&d.hasOwnProp(r,"data")?r.data:void 0}))}}),d.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,s,i){return this.request(Ae(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}De.prototype[t]=n(),t!=="query"&&(De.prototype[t+"Form"]=n(!0))});let Ko=class Cr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(i=>{r.subscribe(i),o=i}).then(a);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,i){r.reason||(r.reason=new Ve(o,s,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Cr(function(a){t=a}),cancel:t}}};function Xo(e){return function(n){return e.apply(null,n)}}function Zo(e){return d.isObject(e)&&e.isAxiosError===!0}const st={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(st).forEach(([e,t])=>{st[t]===void 0&&(st[t]=e)});function gr(e){const t=new De(e),n=Nn(De.prototype.request,t);return d.extend(n,De.prototype,t,{allOwnKeys:!0}),d.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return gr(Ae(e,a))},n}const re=gr(qe);re.Axios=De,re.CanceledError=Ve,re.CancelToken=Ko,re.isCancel=Zn,re.VERSION=At,re.toFormData=nt,re.AxiosError=v,re.Cancel=re.CanceledError,re.all=function(t){return Promise.all(t)},re.spread=Xo,re.isAxiosError=Zo,re.mergeConfig=Ae,re.AxiosHeaders=de,re.formToJSON=e=>Kn(d.isHTMLForm(e)?new FormData(e):e),re.getAdapter=pr.getAdapter,re.HttpStatusCode=st,re.default=re;const{Axios:Ds,AxiosError:Rs,CanceledError:Ts,isCancel:Fs,CancelToken:Ls,VERSION:Ms,all:js,Cancel:Bs,isAxiosError:$s,spread:Is,toFormData:zs,AxiosHeaders:Us,HttpStatusCode:Hs,formToJSON:Ws,getAdapter:qs,mergeConfig:Vs,create:Gs}=re;class Qo{static async getRepos(t){return(await re.get(t,{withCredentials:!0})).data.data}}const yr={default:"bg-gray-700 border-gray-700",primary:"bg-[#5925DC] border-[#5925DC]",secondary:"bg-purple-600 border-purple-600",error:"bg-red-600 border-red-600",warning:"bg-amber-500 border-amber-500",info:"bg-sky-500 border-sky-500",success:"bg-green-600 border-green-600"},Po={default:"focus-visible:ring-gray-400",primary:"focus-visible:ring-blue-400",secondary:"focus-visible:ring-purple-400",error:"focus-visible:ring-red-400",warning:"focus-visible:ring-amber-400",info:"focus-visible:ring-sky-400",success:"focus-visible:ring-green-400"},es={small:"h-4 w-4",medium:"h-5 w-5"},ts={small:"h-3 w-3",medium:"h-[14px] w-[14px]"};function ns({color:e="primary",size:t="medium",indeterminate:n=!1,label:r,disabled:a=!1,checked:o,id:s,slotProps:i}){var S,h,N,_,F,p,g;const l=ne.useRef(null),c=ne.useId(),u=s??c;ne.useEffect(()=>{l.current&&(l.current.indeterminate=n)},[n]);const m=!!o||n;return f.jsxs("label",{...i==null?void 0:i.root,htmlFor:u,className:C("inline-flex items-center gap-2 select-none",a?"opacity-50 cursor-not-allowed":"cursor-pointer",(S=i==null?void 0:i.root)==null?void 0:S.className),children:[f.jsxs("span",{...i==null?void 0:i.control,className:C("relative inline-flex items-center justify-center",(h=i==null?void 0:i.control)==null?void 0:h.className),children:[f.jsx("input",{...i==null?void 0:i.input,ref:l,id:u,type:"checkbox",checked:o,disabled:a,className:C("peer absolute h-full w-full opacity-0 cursor-inherit bg-[#5925DC]",(N=i==null?void 0:i.input)==null?void 0:N.className)}),f.jsx("span",{...i==null?void 0:i.box,"aria-hidden":"true",className:C("flex items-center justify-center rounded border-2 transition-colors duration-100","peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",es[t],Po[e],m?yr[e]??yr.primary:"bg-white border-gray-400",(_=i==null?void 0:i.box)==null?void 0:_.className),children:n?f.jsx("span",{...i==null?void 0:i.indeterminate,className:C("bg-white rounded-sm h-[2px] w-2/3",(F=i==null?void 0:i.indeterminate)==null?void 0:F.className)}):o?f.jsx("svg",{...i==null?void 0:i.icon,viewBox:"0 0 16 16",fill:"none",className:C("text-white",ts[t],(p=i==null?void 0:i.icon)==null?void 0:p.className),children:f.jsx("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):null})]}),r!==void 0&&f.jsx("span",{...i==null?void 0:i.label,className:C("text-sm text-gray-800",(g=i==null?void 0:i.label)==null?void 0:g.className),children:r})]})}const rs=({children:e,selected:t=!1,disabled:n=!1,onSelect:r})=>f.jsxs("div",{onClick:r,className:C("w-full rounded-lg border text-left transition-all relative","flex items-start gap-4",n?"cursor-not-allowed border-[#E2E8F0] bg-[#F8FAFC]":"cursor-pointer hover:border-[#A78BFA]",t?"border-[#5928ED] bg-[#F5F3FF]":"border-[#E2E8F0] bg-white"),children:[f.jsx("div",{className:"flex-1 py-4 pl-4 pr-8 min-w-0",children:e}),f.jsx(ns,{checked:t,disabled:n,slotProps:{root:{className:"pt-3 pr-3"}}})]}),wr=({children:e,className:t="",...n})=>f.jsx("p",{...n,className:C("py-[3.5px] px-[7px] border border-[#E2E8F0] bg-[#F8FAFC] text-[12.5px] text-[#475569] font-medium rounded-sm flex items-center gap-1",t),children:e}),as=({index:e,className:t})=>f.jsx("div",{className:C("flex items-center px-[7px] py-[3.5px] bg-[#F1F5F9] text-[#475569] rounded-md text-xs font-bold",t),children:e}),is=({title:e,repoUrl:t,description:n,branch:r,itemNumber:a,lastAnalyzedDate:o,status:s,selected:i=!1,disabled:l=!1,onSelect:c,showNavigateToAppModeOption:u=!1,disableShowNavigation:m=!1,onDescriptionClick:S,slot:h,customComponents:N})=>{var F,p,g,A,D,I,q,B,b,z,$,M,V,P,k,x,w,O,E,L,y,U;const _=ne.useMemo(()=>un(t),[t]);return f.jsx(rs,{selected:i,onSelect:c,disabled:l,children:f.jsxs("div",{...h==null?void 0:h.root,className:C("w-full flex flex-col gap-3",(F=h==null?void 0:h.root)==null?void 0:F.className),children:[f.jsxs("div",{...h==null?void 0:h.headerContainer,className:C("flex flex-row items-center gap-3",(p=h==null?void 0:h.headerContainer)==null?void 0:p.className),children:[f.jsx("div",{className:"shrink-0",children:f.jsx(as,{index:a,className:"rounded-lg"})}),f.jsxs("p",{...h==null?void 0:h.titleText,className:C("flex-1 text-[18px] font-regular leading-snug text-[#334155] truncate overflow-hidden whitespace-nowrap pr-2",(g=h==null?void 0:h.titleText)==null?void 0:g.className),children:[e,l&&f.jsxs("span",{className:"ml-2 text-sm italic text-[#94A3B8]",children:["(",s,")"]})]})]}),N!=null&&N.chipsComponent?N.chipsComponent:f.jsxs("div",{...h==null?void 0:h.chipsContainer,className:C("flex flex-row items-center gap-2 min-w-0",(A=h==null?void 0:h.chipsContainer)==null?void 0:A.className),children:[f.jsxs(wr,{...(D=h==null?void 0:h.githubChip)==null?void 0:D.root,children:[((I=h==null?void 0:h.githubChip)==null?void 0:I.icon)??f.jsx("i",{className:"pi pi-github text-[#334155] text-[14px]"}),f.jsx("span",{...(q=h==null?void 0:h.githubChip)==null?void 0:q.textContainer,className:C((b=(B=h==null?void 0:h.githubChip)==null?void 0:B.textContainer)==null?void 0:b.className),children:_})]}),f.jsxs("div",{className:"relative inline-flex group",children:[f.jsxs(wr,{...(z=h==null?void 0:h.branchChip)==null?void 0:z.root,className:C("max-w-40 min-w-0 cursor-pointer",(M=($=h==null?void 0:h.branchChip)==null?void 0:$.root)==null?void 0:M.className),children:[((V=h==null?void 0:h.branchChip)==null?void 0:V.icon)??f.jsx(Mr,{className:"w-4 h-4 text-[#334155] shrink-0"}),f.jsx("span",{...(P=h==null?void 0:h.branchChip)==null?void 0:P.textContainer,className:C("truncate overflow-hidden whitespace-nowrap block",(x=(k=h==null?void 0:h.branchChip)==null?void 0:k.textContainer)==null?void 0:x.className),children:r})]}),f.jsxs("div",{className:"pointer-events-none absolute left-1/2 bottom-full -translate-x-1/2 mb-2 whitespace-nowrap rounded-radius-md bg-[#334155] px-[10px] py-[6px] text-xs font-medium text-white opacity-0 transition-opacity duration-150 group-hover:opacity-100 z-50",children:[r,f.jsx("div",{className:`
|
|
102
|
+
absolute
|
|
103
|
+
left-1/2
|
|
104
|
+
top-full
|
|
105
|
+
-translate-x-1/2
|
|
106
|
+
border-4
|
|
107
|
+
border-transparent
|
|
108
|
+
border-t-[#334155]
|
|
109
|
+
`})]})]})]}),N!=null&&N.descriptionComponent?N.descriptionComponent:f.jsx("span",{...h==null?void 0:h.descriptionText,className:C("text-[15px] font-normal leading-relaxed text-[#64748B] line-clamp-3 min-h-18",(w=h==null?void 0:h.descriptionText)==null?void 0:w.className),children:n}),N!=null&&N.lastAnalyzedComponent?N.lastAnalyzedComponent:f.jsxs("div",{...h==null?void 0:h.lastAnalyzedContainer,className:C("flex items-center justify-between",(O=h==null?void 0:h.lastAnalyzedContainer)==null?void 0:O.className),children:[f.jsxs("span",{className:"text-[15px] font-normal text-[#334155]",children:["Last analyzed on:"," ",f.jsx("span",{className:"text-[#334155] font-normal",children:o})]}),u&&(N!=null&&N.viewButtonComponent?N.viewButtonComponent:f.jsx(pt,{slotProps:{root:{className:C("w-fit h-fit border-none transition-colors duration-200 flex items-center justify-center gap-1.5 px-3 py-[6px] rounded-radius-md text-[#5925DC] bg-transparent font-medium hover:bg-[#F8FAFC] disabled:pointer-events-none mr-[-16px]",(L=(E=h==null?void 0:h.viewButton)==null?void 0:E.root)==null?void 0:L.className),disabledClassName:"opacity-50 text-[#5925DC] bg-transparent",onClick:j=>{j.stopPropagation(),S==null||S()}}},disabled:m,iconProps:{icon:((y=h==null?void 0:h.viewButton)==null?void 0:y.icon)??f.jsx(Bt,{className:"w-4 h-4 text-inherit"}),iconPos:"right"},children:((U=h==null?void 0:h.viewButton)==null?void 0:U.label)??"View"}))]})]})})},os=`
|
|
110
|
+
@keyframes skeleton-shimmer {
|
|
111
|
+
0% { background-position: -200px 0; }
|
|
112
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
113
|
+
}
|
|
114
|
+
`,xe={backgroundColor:"#E2E8F0",backgroundImage:"linear-gradient(90deg, #E2E8F0 0px, #EDF1F5 40px, #E2E8F0 80px)",backgroundSize:"200px 100%",backgroundRepeat:"no-repeat",animation:"skeleton-shimmer 1.4s ease-in-out infinite",borderRadius:"6px"},ct=()=>f.jsxs(f.Fragment,{children:[f.jsx("style",{children:os}),f.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"12px",padding:"16px",border:"1px solid #E5E7EB",borderRadius:"10px",backgroundColor:"#FFFFFF"},children:[f.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"12px"},children:[f.jsx("div",{style:{...xe,width:"28px",height:"28px",flexShrink:0,borderRadius:"8px"}}),f.jsx("div",{style:{...xe,height:"18px",width:"60%"}})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},children:[f.jsx("div",{style:{...xe,height:"26px",width:"110px",borderRadius:"999px"}}),f.jsx("div",{style:{...xe,height:"26px",width:"90px",borderRadius:"999px"}})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",minHeight:"4.5rem",justifyContent:"center"},children:[f.jsx("div",{style:{...xe,height:"14px",width:"100%"}}),f.jsx("div",{style:{...xe,height:"14px",width:"95%"}}),f.jsx("div",{style:{...xe,height:"14px",width:"70%"}})]}),f.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[f.jsx("div",{style:{...xe,height:"14px",width:"160px"}}),f.jsx("div",{style:{...xe,height:"24px",width:"60px",borderRadius:"6px"}})]})]})]});function ss(){return f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx("div",{className:"flex-1",children:f.jsx(ct,{})}),f.jsx("div",{className:"flex-1",children:f.jsx(ct,{})})]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("div",{className:"flex-1",children:f.jsx(ct,{})}),f.jsx("div",{className:"flex-1",children:f.jsx(ct,{})})]})]})}function cs({icon:e,size:t=30,slotStyles:n}){return f.jsx("div",{className:C("rounded-full p-1 flex justify-center items-center bg-gray-100",n==null?void 0:n.outerCircle),children:f.jsx("div",{className:C("rounded-full flex justify-center items-center bg-gray-200",n==null?void 0:n.innerCircle),style:{width:t,height:t},children:e})})}function ls({slot:e}){var t,n,r,a,o,s,i,l,c;return f.jsxs("div",{...e==null?void 0:e.root,className:C("flex flex-col items-center justify-center w-full h-full gap-3 select-none animate-fade-in overflow-hidden",(t=e==null?void 0:e.root)==null?void 0:t.className),children:[f.jsx(cs,{size:40,icon:f.jsx("div",{className:C("flex items-center justify-center w-full h-full"),children:f.jsx(dt,{className:"w-5 h-5 text-[#475569]"})}),...e==null?void 0:e.iconContainerProps,slotStyles:{...(n=e==null?void 0:e.iconContainerProps)==null?void 0:n.slotStyles,outerCircle:C("bg-[#F1F5F9] p-2",(a=(r=e==null?void 0:e.iconContainerProps)==null?void 0:r.slotStyles)==null?void 0:a.outerCircle),innerCircle:C("bg-[#E2E8F0]",(s=(o=e==null?void 0:e.iconContainerProps)==null?void 0:o.slotStyles)==null?void 0:s.innerCircle)}}),f.jsxs("div",{...e==null?void 0:e.textContainer,className:C("flex flex-col gap-2 mt-2",(i=e==null?void 0:e.textContainer)==null?void 0:i.className),children:[f.jsx("h3",{...e==null?void 0:e.headingText,style:{color:"#334155",textAlign:"center",fontFamily:"Inter, sans-serif",fontSize:"20px",fontStyle:"normal",fontWeight:500,lineHeight:"24px",...(l=e==null?void 0:e.headingText)==null?void 0:l.style},children:"No codebases found"}),f.jsx("p",{...e==null?void 0:e.descriptionText,style:{color:"#64748B",textAlign:"center",fontFamily:"Inter, sans-serif",fontSize:"16px",fontStyle:"normal",fontWeight:300,lineHeight:"20px",...(c=e==null?void 0:e.descriptionText)==null?void 0:c.style},children:"We couldn’t find any repositories matching your search. Try another keyword."})]})]})}function ds({fetchRepoUrl:e,fetchRepos:t,slots:n,customComponents:r}){var B;const{refreshRepoData:a,reposAddedToCart:o,setRepoData:s,showToast:i,isRepoDataLoaded:l,setIsRepoDataLoaded:c,setIsRepositorySelectorPageOpen:u,setRepoAddedToCart:m,repoData:S}=yn();console.log("isRepoDataLoaded",l);const[h,N]=ne.useState([]);ne.useEffect(()=>{N(o.filter(b=>b.selected).map(b=>b.id))},[o]);async function _(){try{let b=[];if(t)b=t();else{const $=await Qo.getRepos(e);b=Ha.convertRepoApiDataToStateData($),console.log("api called ",$)}const z=b.sort(($,M)=>Ye($.last_analyzed_date).isBefore(Ye(M.last_analyzed_date))?1:-1);s(z),c(!0)}catch(b){console.log(b),i==null||i("error","Failed to fetch repos","something went wrong while fetching the repos")}}function F(){u(!1)}function p(){m(h.map(b=>({id:b,selected:!0}))),u(!1)}const g=b=>{h.includes(b.task_id)?N(z=>z.filter($=>$!==b.task_id)):N(z=>[...z,b.task_id])};function A(b){}ne.useEffect(()=>{(!l||a)&&_()},[l,a]);const D=()=>(r==null?void 0:r.repoLoadingComponent)??f.jsx(ss,{}),I=(b,z)=>r!=null&&r.renderRepoComponent?r==null?void 0:r.renderRepoComponent(b):f.jsx(is,{title:b.name,repoUrl:b.github_url,itemNumber:z+1,description:b.executive_summary?fn(b.executive_summary).text:"There was a problem in fetching codebase description. please navigate to appmod to check its status",branch:b.branch_name,organization:b.organization_name,lastAnalyzedDate:Ra(b.last_analyzed_date),selected:h.includes(b.task_id),onSelect:()=>g(b),onDescriptionClick:()=>void 0,showNavigateToAppModeOption:!b.description,disableShowNavigation:b.status!=="Completed",disabled:b.status!=="Completed",status:b.status},b.task_id),q=()=>(r==null?void 0:r.noCodebaseFoundComponent)??f.jsx(ls,{...n==null?void 0:n.noCodebaseFoundProps});return f.jsxs("div",{className:"w-full bg-white p-6",style:{minHeight:"calc(100vh - 80px)"},children:[f.jsx(Ga,{showProceedButton:h.length>0,proceedButtonText:`Proceed with ${h.length} ${h.length>1?"repos":"repo"}`,fallbackButtonText:"Exit Repo Selection",onProceed:p,onExitRepoSelection:F,...n==null?void 0:n.repoSelectionHeaderProps}),f.jsx(mn,{...n==null?void 0:n.dividerProps,className:C("mt-2 mb-3",(B=n==null?void 0:n.dividerProps)==null?void 0:B.className)}),l?S.length>0?f.jsx("div",{...n==null?void 0:n.repoDataContainer,className:C("overflow-y-auto grid grid-cols-2 gap-5 items-start auto-rows-max",n==null?void 0:n.repoDataContainer.className),children:S.map((b,z)=>I(b,z))}):q():D()]})}pe.CodebaseCart=bn,pe.MultiRepoAction=Ua,pe.RepoDataProvider=Ia,pe.RepoSelectorDetailPage=ds,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@e-llm-studio/repo-data-cart",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "./dist/repo-data-cart.umd.cjs",
|
|
5
|
+
"module": "./dist/repo-data-cart.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "tsc -b && vite build",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"format": "prettier --write .",
|
|
17
|
+
"format:check": "prettier --check .",
|
|
18
|
+
"prepare": "husky"
|
|
19
|
+
},
|
|
20
|
+
"lint-staged": {
|
|
21
|
+
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
|
22
|
+
"npx eslint --fix",
|
|
23
|
+
"npx prettier --write"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"react": "18.3.1",
|
|
28
|
+
"react-dom": "18.3.1"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.13.0",
|
|
32
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
33
|
+
"@types/react": "^18.3.12",
|
|
34
|
+
"@types/react-dom": "^18.3.1",
|
|
35
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
36
|
+
"eslint": "^9.13.0",
|
|
37
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
38
|
+
"eslint-plugin-react-refresh": "^0.4.14",
|
|
39
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
40
|
+
"globals": "^15.11.0",
|
|
41
|
+
"husky": "^9.1.7",
|
|
42
|
+
"lint-staged": "^17.4.1",
|
|
43
|
+
"lucide-react": "^1.38.0",
|
|
44
|
+
"prettier": "^3.9.6",
|
|
45
|
+
"tailwindcss": "^4.3.3",
|
|
46
|
+
"typescript": "~5.6.2",
|
|
47
|
+
"typescript-eslint": "^8.11.0",
|
|
48
|
+
"vite": "^5.4.10",
|
|
49
|
+
"vite-plugin-dts": "^5.1.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@primeicons/react": "^8.0.0",
|
|
53
|
+
"axios": "^1.20.0",
|
|
54
|
+
"clsx": "^2.1.1",
|
|
55
|
+
"dayjs": "^1.11.23",
|
|
56
|
+
"tailwind-merge": "^3.6.0"
|
|
57
|
+
}
|
|
58
|
+
}
|