@workflow/web 4.0.1-beta.1 → 4.0.1-beta.2
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +26 -22
- package/.next/app-path-routes-manifest.json +2 -2
- package/.next/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/run/[runId]/page.js +2 -2
- package/.next/server/app/run/[runId]/page.js.nft.json +1 -1
- package/.next/server/app/run/[runId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/run/[runId]/streams/[streamId]/page.js +2 -2
- package/.next/server/app/run/[runId]/streams/[streamId]/page.js.nft.json +1 -1
- package/.next/server/app/run/[runId]/streams/[streamId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +2 -2
- package/.next/server/chunks/313.js +1 -0
- package/.next/server/chunks/484.js +1 -0
- package/.next/server/chunks/701.js +4 -4
- package/.next/server/chunks/969.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/219-4bfbcafcc410f8cc.js +1 -0
- package/.next/static/chunks/222-a421684695ba517f.js +1 -0
- package/.next/static/chunks/251-138a359fdc2149bb.js +1 -0
- package/.next/static/chunks/378-341b236f693d0c1c.js +1 -0
- package/.next/static/chunks/81-584e1cf8b55925fc.js +1 -0
- package/.next/static/chunks/app/layout-2e3067c8439ff45f.js +1 -0
- package/.next/static/chunks/app/page-775fa9219950d7ca.js +1 -0
- package/.next/static/chunks/app/run/[runId]/page-34173526c113151b.js +1 -0
- package/.next/static/chunks/app/run/[runId]/streams/[streamId]/page-38d05c721b1552e5.js +1 -0
- package/.next/static/chunks/{webpack-b430e07cf9392cd1.js → webpack-5c2af5e870f824a4.js} +1 -1
- package/.next/static/css/71ac981417779be5.css +3 -0
- package/.next/trace +18 -19
- package/README.md +1 -45
- package/package.json +3 -3
- package/.next/server/chunks/111.js +0 -1
- package/.next/server/chunks/960.js +0 -1
- package/.next/static/chunks/31-823a0c97323bdf6f.js +0 -1
- package/.next/static/chunks/412-a430cced2eddabdc.js +0 -1
- package/.next/static/chunks/687-ad38291defb5159c.js +0 -1
- package/.next/static/chunks/724-597f8080461271d4.js +0 -1
- package/.next/static/chunks/app/layout-e66fbbfe2cbdd460.js +0 -1
- package/.next/static/chunks/app/page-b3292ee31c7e0f1b.js +0 -1
- package/.next/static/chunks/app/run/[runId]/page-e2ae166a3649fc5b.js +0 -1
- package/.next/static/chunks/app/run/[runId]/streams/[streamId]/page-f3069f77f3c8adfc.js +0 -1
- package/.next/static/css/bb92b93f39c57915.css +0 -3
- /package/.next/static/{xWvHr_S68stQG6YzB4i4N → G3mUskY6nNyDu_k2YGsuX}/_buildManifest.js +0 -0
- /package/.next/static/{xWvHr_S68stQG6YzB4i4N → G3mUskY6nNyDu_k2YGsuX}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{316:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(8258).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},823:(e,t,n)=>{e.exports=n(1554)},1049:(e,t,n)=>{n.d(t,{o:()=>F});var r=n(8995),a=n(4471),i=n(6386),o=n(2399),u=n(8462),l=n(3312);function s(e,t){let n=(0,l.a)(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function d(e,t,n){let[r,a]=(0,i.x)(null==n?void 0:n.in,e,t),l=s(r),d=s(a);return Math.round((l-(0,o.G)(l)-(d-(0,o.G)(d)))/u.w4)}function c(e,t){var n,r,i,o,u,s,d,c;let f=(0,a.q)(),h=null!=(c=null!=(d=null!=(s=null!=(u=null==t?void 0:t.weekStartsOn)?u:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?s:f.weekStartsOn)?d:null==(o=f.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?c:0,m=(0,l.a)(e,null==t?void 0:t.in),g=m.getDay();return m.setDate(m.getDate()-(7*(g<h)+g-h)),m.setHours(0,0,0,0),m}function f(e,t){return c(e,{...t,weekStartsOn:1})}var h=n(8270);function m(e,t){let n=(0,l.a)(e,null==t?void 0:t.in),r=n.getFullYear(),a=(0,h.w)(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);let i=f(a),o=(0,h.w)(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let u=f(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function g(e,t){var n,r,i,o,u,s,d,f;let m=(0,l.a)(e,null==t?void 0:t.in),g=m.getFullYear(),w=(0,a.q)(),v=null!=(f=null!=(d=null!=(s=null!=(u=null==t?void 0:t.firstWeekContainsDate)?u:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?s:w.firstWeekContainsDate)?d:null==(o=w.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?f:1,y=(0,h.w)((null==t?void 0:t.in)||e,0);y.setFullYear(g+1,0,v),y.setHours(0,0,0,0);let b=c(y,t),p=(0,h.w)((null==t?void 0:t.in)||e,0);p.setFullYear(g,0,v),p.setHours(0,0,0,0);let M=c(p,t);return+m>=+b?g+1:+m>=+M?g:g-1}function w(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let v={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return w("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):w(n+1,2)},d:(e,t)=>w(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>w(e.getHours()%12||12,t.length),H:(e,t)=>w(e.getHours(),t.length),m:(e,t)=>w(e.getMinutes(),t.length),s:(e,t)=>w(e.getSeconds(),t.length),S(e,t){let n=t.length;return w(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},b={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return v.y(e,t)},Y:function(e,t,n,r){let a=g(e,r),i=a>0?a:1-a;return"YY"===t?w(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):w(i,t.length)},R:function(e,t){return w(m(e),t.length)},u:function(e,t){return w(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return w(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return w(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return w(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=function(e,t){let n=(0,l.a)(e,null==t?void 0:t.in);return Math.round((c(n,t)-function(e,t){var n,r,i,o,u,l,s,d;let f=(0,a.q)(),m=null!=(d=null!=(s=null!=(l=null!=(u=null==t?void 0:t.firstWeekContainsDate)?u:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?l:f.firstWeekContainsDate)?s:null==(o=f.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?d:1,w=g(e,t),v=(0,h.w)((null==t?void 0:t.in)||e,0);return v.setFullYear(w,0,m),v.setHours(0,0,0,0),c(v,t)}(n,t))/u.my)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):w(i,t.length)},I:function(e,t,n){let r=function(e,t){let n=(0,l.a)(e,void 0);return Math.round((f(n)-function(e,t){let n=m(e,void 0),r=(0,h.w)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),f(r)}(n))/u.my)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):w(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):v.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=(0,l.a)(e,void 0);return d(n,function(e,t){let n=(0,l.a)(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):w(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return w(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return w(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return w(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,a=e.getHours();switch(r=12===a?y.noon:0===a?y.midnight:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,a=e.getHours();switch(r=a>=17?y.evening:a>=12?y.afternoon:a>=4?y.morning:y.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return v.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):v.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):w(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):v.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):v.s(e,t)},S:function(e,t){return v.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return M(r);case"XXXX":case"XX":return k(r);default:return k(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return M(r);case"xxxx":case"xx":return k(r);default:return k(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+p(r,":");default:return"GMT"+k(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+p(r,":");default:return"GMT"+k(r,":")}},t:function(e,t,n){return w(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return w(+e,t.length)}};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+t+w(i,2)}function M(e,t){return e%60==0?(e>0?"-":"+")+w(Math.abs(e)/60,2):k(e,t)}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+w(Math.trunc(n/60),2)+t+w(n%60,2)}let S=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},x=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},O={p:x,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return S(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",S(a,t)).replace("{{time}}",x(i,t))}},P=/^D+$/,D=/^Y+$/,E=["D","DD","YY","YYYY"],T=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,W=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,L=/''/g,q=/[a-zA-Z]/;function F(e,t,n){var o,u,s,c,f,h,m,g,w,v;let y,[p,M]=(0,i.x)(null==n?void 0:n.in,e,t),k=(0,a.q)(),S=null!=(h=null!=(f=null==n?void 0:n.locale)?f:k.locale)?h:r.c,x=null!=(v=null!=(w=null!=(g=null!=(m=null==n?void 0:n.weekStartsOn)?m:null==n||null==(u=n.locale)||null==(o=u.options)?void 0:o.weekStartsOn)?g:k.weekStartsOn)?w:null==(c=k.locale)||null==(s=c.options)?void 0:s.weekStartsOn)?v:0,F=d(p,M);if(isNaN(F))throw RangeError("Invalid time value");y=F<-6?"other":F<-1?"lastWeek":F<0?"yesterday":F<1?"today":F<2?"tomorrow":F<7?"nextWeek":"other";let Y=S.formatRelative(y,p,M,{locale:S,weekStartsOn:x});return function(e,t,n){var i,o,u,s,d,c,f,h,m,g,w,v,y,p,M,k,S,x;let F=(0,a.q)(),Y=null!=(g=null!=(m=null==n?void 0:n.locale)?m:F.locale)?g:r.c,N=null!=(p=null!=(y=null!=(v=null!=(w=null==n?void 0:n.firstWeekContainsDate)?w:null==n||null==(o=n.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?v:F.firstWeekContainsDate)?y:null==(s=F.locale)||null==(u=s.options)?void 0:u.firstWeekContainsDate)?p:1,j=null!=(x=null!=(S=null!=(k=null!=(M=null==n?void 0:n.weekStartsOn)?M:null==n||null==(c=n.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?k:F.weekStartsOn)?S:null==(h=F.locale)||null==(f=h.options)?void 0:f.weekStartsOn)?x:0,R=(0,l.a)(e,null==n?void 0:n.in);if(!(R instanceof Date||"object"==typeof R&&"[object Date]"===Object.prototype.toString.call(R))&&"number"!=typeof R||isNaN(+(0,l.a)(R)))throw RangeError("Invalid time value");let _=t.match(W).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,O[t])(e,Y.formatLong):e}).join("").match(T).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(C);return t?t[1].replace(L,"'"):e}(e)};if(b[t])return{isToken:!0,value:e};if(t.match(q))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});Y.localize.preprocessor&&(_=Y.localize.preprocessor(R,_));let A={firstWeekContainsDate:N,weekStartsOn:j,locale:Y};return _.map(r=>{if(!r.isToken)return r.value;let a=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&D.test(a)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&P.test(a))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),E.includes(e))throw RangeError(r)}(a,t,String(e)),(0,b[a[0]])(R,a,Y.localize,A)}).join("")}(p,Y,{locale:S,weekStartsOn:x})}},1554:(e,t,n)=>{var r=n(4773),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,u=r.useLayoutEffect,l=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,d=r[1];return u(function(){a.value=n,a.getSnapshot=t,s(a)&&d({inst:a})},[e,n,t]),o(function(){return s(a)&&d({inst:a}),e(function(){s(a)&&d({inst:a})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},2399:(e,t,n)=>{n.d(t,{G:()=>a});var r=n(3312);function a(e){let t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}},3312:(e,t,n)=>{n.d(t,{a:()=>a});var r=n(8270);function a(e,t){return(0,r.w)(t||e,e)}},4471:(e,t,n)=>{n.d(t,{q:()=>a});let r={};function a(){return r}},5505:(e,t,n)=>{n.d(t,{B:()=>d});var r=n(8270),a=n(8995),i=n(4471),o=n(2399),u=n(6386),l=n(3312),s=n(8462);function d(e,t){return function(e,t,n){var r,d,c,f;let h,m=(0,i.q)(),g=null!=(d=null!=(r=null==n?void 0:n.locale)?r:m.locale)?d:a.c,w=function(e,t){let n=(0,l.a)(e)-(0,l.a)(t);return n<0?-1:n>0?1:n}(e,t);if(isNaN(w))throw RangeError("Invalid time value");let v=Object.assign({},n,{addSuffix:null==n?void 0:n.addSuffix,comparison:w}),[y,b]=(0,u.x)(null==n?void 0:n.in,...w>0?[t,e]:[e,t]),p=(f=null!=(c=null==n?void 0:n.roundingMethod)?c:"round",e=>{let t=(f?Math[f]:Math.trunc)(e);return 0===t?0:t}),M=b.getTime()-y.getTime(),k=M/s.Cg,S=(M-((0,o.G)(b)-(0,o.G)(y)))/s.Cg,x=null==n?void 0:n.unit;if("second"===(h=x||(k<1?"second":k<60?"minute":k<s.F6?"hour":S<s.Nw?"day":S<s.Ks?"month":"year"))){let e=p(M/1e3);return g.formatDistance("xSeconds",e,v)}if("minute"===h){let e=p(k);return g.formatDistance("xMinutes",e,v)}if("hour"===h){let e=p(k/60);return g.formatDistance("xHours",e,v)}if("day"===h){let e=p(S/s.F6);return g.formatDistance("xDays",e,v)}if("month"===h){let e=p(S/s.Nw);return 12===e&&"month"!==x?g.formatDistance("xYears",1,v):g.formatDistance("xMonths",e,v)}else{let e=p(S/s.Ks);return g.formatDistance("xYears",e,v)}}(e,(0,r.w)(e,Date.now()),t)}},6386:(e,t,n)=>{n.d(t,{x:()=>a});var r=n(8270);function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];let i=r.w.bind(null,e||n.find(e=>"object"==typeof e));return n.map(i)}},6489:(e,t,n)=>{let r;n.d(t,{Ay:()=>U});var a=n(4773),i=n(823),o=Object.prototype.hasOwnProperty;let u=new WeakMap,l=()=>{},s=l(),d=Object,c=e=>e===s,f=(e,t)=>({...e,...t}),h={},m={},g="undefined",w=typeof window!=g,v=typeof document!=g,y=w&&"Deno"in window,b=(e,t)=>{let n=u.get(e);return[()=>!c(t)&&e.get(t)||h,r=>{if(!c(t)){let a=e.get(t);t in m||(m[t]=a),n[5](t,f(a,r),a||h)}},n[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||h]},p=!0,[M,k]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],S={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),k("focus",e)}),initReconnect:e=>{let t=()=>{p=!0,e()},n=()=>{p=!1};return M("online",t),M("offline",n),()=>{k("online",t),k("offline",n)}}},x=!a.useId,O=!w||y,P=O?a.useEffect:a.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,E=!O&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),T=new WeakMap,W=(e,t)=>e==="[object ".concat(t,"]"),C=0,L=e=>{let t,n,r=typeof e,a=d.prototype.toString.call(e),i=W(a,"Date"),o=W(a,"RegExp"),u=W(a,"Object");if(d(e)!==e||i||o)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=T.get(e))return t;if(t=++C+"~",T.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=L(e[n])+",";T.set(e,t)}if(u){t="#";let r=d.keys(e).sort();for(;!c(n=r.pop());)c(e[n])||(t+=n+":"+L(e[n])+",");T.set(e,t)}}return t},q=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},F=0,Y=()=>++F;async function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,a,i,o]=t,l=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),d=l.populateCache,h=l.rollbackOnError,m=l.optimisticData,g=l.throwOnError;if("function"==typeof a){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&a(r.get(t)._k)&&e.push(t);return Promise.all(e.map(w))}return w(a);async function w(e){let n,[a]=q(e);if(!a)return;let[o,f]=b(r,a),[w,v,y,p]=u.get(r),M=()=>{let t=w[a];return("function"==typeof l.revalidate?l.revalidate(o().data,e):!1!==l.revalidate)&&(delete y[a],delete p[a],t&&t[0])?t[0](2).then(()=>o().data):o().data};if(t.length<3)return M();let k=i,S=!1,x=Y();v[a]=[x,0];let O=!c(m),P=o(),D=P.data,E=P._c,T=c(E)?D:E;if(O&&f({data:m="function"==typeof m?m(T,D):m,_c:T}),"function"==typeof k)try{k=k(T)}catch(e){n=e,S=!0}if(k&&"function"==typeof k.then){let e;if(k=await k.catch(e=>{n=e,S=!0}),x!==v[a][0]){if(S)throw n;return k}S&&O&&(e=n,"function"==typeof h?h(e):!1!==h)&&(d=!0,f({data:T,_c:s}))}if(d&&!S&&("function"==typeof d?f({data:d(k,T),error:s,_c:s}):f({data:k,error:s,_c:s})),v[a][1]=Y(),Promise.resolve(M()).then(()=>{f({_c:s})}),S){if(g)throw n;return}return k}}let j=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!u.has(e)){let n=f(S,t),r=Object.create(null),a=N.bind(s,e),i=l,o=Object.create(null),d=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},c=(t,n,r)=>{e.set(t,n);let a=o[t];if(a)for(let e of a)e(n,r)},h=()=>{if(!u.has(e)&&(u.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,c,d]),!O)){let t=n.initFocus(setTimeout.bind(s,j.bind(s,r,0))),a=n.initReconnect(setTimeout.bind(s,j.bind(s,r,1)));i=()=>{t&&t(),a&&a(),u.delete(e)}}};return h(),[e,a,h,i]}return[e,u.get(e)[4]]},[_,A]=R(new Map),H=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,a)=>{let i=n.errorRetryCount,o=a.retryCount,u=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(c(i)||!(o>i))&&setTimeout(r,u,a)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:E?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:E?5e3:3e3,compare:function e(t,n){var r,a;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((a=t.length)===n.length)for(;a--&&e(t[a],n[a]););return -1===a}if(!r||"object"==typeof t){for(r in a=0,t)if(o.call(t,r)&&++a&&!o.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===a}}return t!=t&&n!=n},isPaused:()=>!1,cache:_,mutate:A,fallback:{}},{isOnline:()=>p,isVisible:()=>{let e=v&&document.visibilityState;return c(e)||"hidden"!==e}}),V=(e,t)=>{let n=f(e,t);if(t){let{use:r,fallback:a}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=f(a,o))}return n},z=(0,a.createContext)({}),G=w&&window.__SWR_DEVTOOLS_USE__,Q=(G?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>{let a=n&&((...e)=>{let[r]=q(t),[,,,a]=u.get(_);if(r.startsWith("$inf$"))return n(...e);let i=a[r];return c(i)?n(...e):(delete a[r],i)});return e(t,a,r)});G&&(window.__SWR_DEVTOOLS_REACT__=a);let B=()=>{},I=B();new WeakMap;let X=a.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),J={dedupe:!0},$=Promise.resolve(s);d.defineProperty(e=>{let{value:t}=e,n=(0,a.useContext)(z),r="function"==typeof t,i=(0,a.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,a.useMemo)(()=>r?i:V(n,i),[r,n,i]),u=i&&i.provider,l=(0,a.useRef)(s);u&&!l.current&&(l.current=R(u(o.cache||_),i));let d=l.current;return d&&(o.cache=d[0],o.mutate=d[1]),P(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,a.createElement)(z.Provider,f(e,{value:o}))},"defaultValue",{value:H});let U=(r=(e,t,n)=>{let{cache:r,compare:o,suspense:l,fallbackData:d,revalidateOnMount:h,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:y,refreshWhenOffline:p,keepPreviousData:M}=n,[k,S,D,E]=u.get(r),[T,W]=q(e),C=(0,a.useRef)(!1),L=(0,a.useRef)(!1),F=(0,a.useRef)(T),j=(0,a.useRef)(t),R=(0,a.useRef)(n),_=()=>R.current.isVisible()&&R.current.isOnline(),[A,H,V,z]=b(r,T),G=(0,a.useRef)({}).current,Q=c(d)?c(n.fallback)?s:n.fallback[T]:d,B=(e,t)=>{for(let n in G)if("data"===n){if(!o(e[n],t[n])&&(!c(e[n])||!o(ea,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},I=(0,a.useMemo)(()=>{let e=!!T&&!!t&&(c(h)?!R.current.isPaused()&&!l&&!1!==m:h),n=t=>{let n=f(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=A(),a=z(),i=n(r),o=r===a?i:n(a),u=i;return[()=>{let e=n(A());return B(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>o]},[r,T]),U=(0,i.useSyncExternalStore)((0,a.useCallback)(e=>V(T,(t,n)=>{B(n,t)||e()}),[r,T]),I[0],I[1]),K=!C.current,Z=k[T]&&k[T].length>0,ee=U.data,et=c(ee)?Q&&"function"==typeof Q.then?X(Q):Q:ee,en=U.error,er=(0,a.useRef)(et),ea=M?c(ee)?c(er.current)?et:er.current:ee:et,ei=(!Z||!!c(en))&&(K&&!c(h)?h:!R.current.isPaused()&&(l?!c(et)&&m:c(et)||m)),eo=!!(T&&t&&K&&ei),eu=c(U.isValidating)?eo:U.isValidating,el=c(U.isLoading)?eo:U.isLoading,es=(0,a.useCallback)(async e=>{let t,r,a=j.current;if(!T||!a||L.current||R.current.isPaused())return!1;let i=!0,u=e||{},l=!D[T]||!u.dedupe,d=()=>x?!L.current&&T===F.current&&C.current:T===F.current,f={isValidating:!1,isLoading:!1},h=()=>{H(f)},m=()=>{let e=D[T];e&&e[1]===r&&delete D[T]},g={isValidating:!0};c(A().data)&&(g.isLoading=!0);try{if(l&&(H(g),n.loadingTimeout&&c(A().data)&&setTimeout(()=>{i&&d()&&R.current.onLoadingSlow(T,n)},n.loadingTimeout),D[T]=[a(W),Y()]),[t,r]=D[T],t=await t,l&&setTimeout(m,n.dedupingInterval),!D[T]||D[T][1]!==r)return l&&d()&&R.current.onDiscarded(T),!1;f.error=s;let e=S[T];if(!c(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),l&&d()&&R.current.onDiscarded(T),!1;let u=A().data;f.data=o(u,t)?u:t,l&&d()&&R.current.onSuccess(t,T,n)}catch(n){m();let e=R.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,l&&d())&&(e.onError(n,T,e),(!0===t||"function"==typeof t&&t(n))&&(!R.current.revalidateOnFocus||!R.current.revalidateOnReconnect||_())&&e.onErrorRetry(n,T,e,e=>{let t=k[T];t&&t[0]&&t[0](3,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0}))}return i=!1,h(),!0},[T,r]),ed=(0,a.useCallback)((...e)=>N(r,F.current,...e),[]);if(P(()=>{j.current=t,R.current=n,c(ee)||(er.current=ee)}),P(()=>{if(!T)return;let e=es.bind(s,J),t=0;R.current.revalidateOnFocus&&(t=Date.now()+R.current.focusThrottleInterval);let n=((e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(T,k,(n,r={})=>{if(0==n){let n=Date.now();R.current.revalidateOnFocus&&n>t&&_()&&(t=n+R.current.focusThrottleInterval,e())}else if(1==n)R.current.revalidateOnReconnect&&_()&&e();else if(2==n)return es();else if(3==n)return es(r)});return L.current=!1,F.current=T,C.current=!0,H({_k:W}),ei&&!D[T]&&(c(et)||O?e():(e=>w&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{L.current=!0,n()}},[T]),P(()=>{let e;function t(){let t="function"==typeof v?v(A().data):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!A().error&&(y||R.current.isVisible())&&(p||R.current.isOnline())?es(J).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,y,p,T]),(0,a.useDebugValue)(ea),l){let e=T&&c(et);if(!x&&O&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(j.current=t,R.current=n,L.current=!1);let r=E[T];if(X(!c(r)&&e?ed(r):$),!c(en)&&e)throw en;let a=e?es(J):$;!c(ea)&&e&&(a.status="fulfilled",a.value=!0),X(a)}return{mutate:ed,get data(){return G.data=!0,ea},get error(){return G.error=!0,en},get isValidating(){return G.isValidating=!0,eu},get isLoading(){return G.isLoading=!0,el}}},function(...e){let t=(()=>{let e=(0,a.useContext)(z);return(0,a.useMemo)(()=>f(H,e),[e])})(),[n,i,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],u=V(t,o),l=r,{use:s}=u,d=(s||[]).concat(Q);for(let e=d.length;e--;)l=d[e](l);return l(n,i||u.fetcher||null,u)})},8270:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(8462);function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},8462:(e,t,n)=>{n.d(t,{Cg:()=>i,F6:()=>l,Ks:()=>o,Nw:()=>u,_P:()=>s,my:()=>r,w4:()=>a});let r=6048e5,a=864e5,i=6e4,o=525600,u=43200,l=1440,s=Symbol.for("constructDateFrom")},8995:(e,t,n)=>{n.d(t,{c:()=>s});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,a=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{let t=e.defaultWidth,a=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let u=o[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(u)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(u));return n=e.valueCallback?e.valueCallback(s):s,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(u.length)}}}let s={code:"en-US",formatDistance:(e,t,n)=>{let a,i=r[e];if(a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+a;else return a+" ago";return a},formatLong:i,formatRelative:(e,t,n,r)=>o[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:u({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:u({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[687],{406:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(8258).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2304:(e,t,n)=>{n.d(t,{UC:()=>tL,YJ:()=>tI,In:()=>tM,q7:()=>tD,VF:()=>tB,p4:()=>tK,JU:()=>tO,ZL:()=>tj,bL:()=>tT,wn:()=>tW,PP:()=>tF,wv:()=>t_,l9:()=>tA,WT:()=>tN,LM:()=>tP});var r,o,l,i=n(4773),a=n(1471);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}var s=n(4053);function c(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(e,t){var n=c(e,t,"get");return n.get?n.get.call(e):n.value}function f(e,t,n){var r=c(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var p=n(7328),h=n(5034),v=n(9280),m=n(5386),g=new WeakMap;function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=w(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function w(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return g.get(this)&&(this.has(e)?d(this,o)[d(this,o).indexOf(e)]=e:d(this,o).push(e)),super.set(e,t),this}insert(e,t,n){let r,l=this.has(t),i=d(this,o).length,a=w(e),u=a>=0?a:i+a,s=u<0||u>=i?-1:u;if(s===this.size||l&&s===this.size-1||-1===s)return this.set(t,n),this;let c=this.size+ +!l;a<0&&u++;let f=[...d(this,o)],p=!1;for(let e=u;e<c;e++)if(u===e){let o=f[e];f[e]===t&&(o=f[e+1]),l&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=d(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=d(this,o).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=d(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=d(this,o).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return f(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&d(this,o).splice(d(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=y(d(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=y(d(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return d(this,o).indexOf(e)}keyAt(e){return y(d(this,o),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,l=0,i=null!=o?o:this.at(0);for(let e of this)i=0===l&&1===t.length?e:Reflect.apply(r,this,[i,e,l,this]),l++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,l=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);l=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[l,n,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,o,{writable:!0,value:void 0}),f(this,o,[...super.keys()]),g.set(this,!0)}};var b=i.createContext(void 0),x=n(7740),S=0;function E(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=n(63),R=n(819),k="focusScope.autoFocusOnMount",T="focusScope.autoFocusOnUnmount",A={bubbles:!1,cancelable:!0},N=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[u,s]=i.useState(null),c=(0,R.c)(o),d=(0,R.c)(l),f=i.useRef(null),p=(0,h.s)(t,e=>s(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?f.current=t:L(f.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||L(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&L(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),i.useEffect(()=>{if(u){P.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(k,A);u.addEventListener(k,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(L(r,{select:t}),document.activeElement!==n)return}(M(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&L(u))}return()=>{u.removeEventListener(k,c),setTimeout(()=>{let t=new CustomEvent(T,A);u.addEventListener(T,d),u.dispatchEvent(t),t.defaultPrevented||L(null!=e?e:document.body,{select:!0}),u.removeEventListener(T,d),P.remove(v)},0)}}},[u,c,d,v]);let g=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,l]=function(e){let t=M(e);return[j(t,e),j(t.reverse(),e)]}(t);r&&l?e.shiftKey||o!==l?e.shiftKey&&o===r&&(e.preventDefault(),n&&L(l,{select:!0})):(e.preventDefault(),n&&L(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,m.jsx)(C.sG.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});function M(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function L(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}N.displayName="FocusScope";var P=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=I(e,t)).unshift(t)},remove(t){var n;null==(n=(e=I(e,t))[0])||n.resume()}}}();function I(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(5987),D=n(9448),K=n(9302),B=n(9559),F=n(3049),W=n(607),_=new WeakMap,H=new WeakMap,z={},G=0,U=function(e){return e&&(e.host||U(e.parentNode))},V=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=U(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});z[n]||(z[n]=new WeakMap);var l=z[n],i=[],a=new Set,u=new Set(o),s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(_.get(e)||0)+1,s=(l.get(e)||0)+1;_.set(e,u),l.set(e,s),i.push(e),1===u&&o&&H.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),G++,function(){i.forEach(function(e){var t=_.get(e)-1,o=l.get(e)-1;_.set(e,t),l.set(e,o),t||(H.has(e)||e.removeAttribute(r),H.delete(e)),o||e.removeAttribute(n)}),--G||(_=new WeakMap,_=new WeakMap,H=new WeakMap,z={})}},q=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),V(r,o,n,"aria-hidden")):function(){return null}},Y=function(){return(Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function X(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var Z=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),J="width-before-scroll-bar";function Q(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var $="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ee=new WeakMap;function et(e){return e}var en=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=et),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var l=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(l)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=Y({async:!0,ssr:!1},e),o}(),er=function(){},eo=i.forwardRef(function(e,t){var n,r,o,l,a=i.useRef(null),u=i.useState({onScrollCapture:er,onWheelCapture:er,onTouchMoveCapture:er}),s=u[0],c=u[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,v=e.enabled,m=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,S=e.as,E=e.gapMode,C=X(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[a,t],r=function(e){return n.forEach(function(t){return Q(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,l=o.facade,$(function(){var e=ee.get(l);if(e){var t=new Set(e),r=new Set(n),o=l.current;t.forEach(function(e){r.has(e)||Q(e,null)}),r.forEach(function(e){t.has(e)||Q(e,o)})}ee.set(l,n)},[n]),l),k=Y(Y({},C),s);return i.createElement(i.Fragment,null,v&&i.createElement(g,{sideCar:en,removeScrollBar:h,shards:m,noRelative:y,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:a,gapMode:E}),d?i.cloneElement(i.Children.only(f),Y(Y({},k),{ref:R})):i.createElement(void 0===S?"div":S,Y({},k,{className:p,ref:R}),f))});eo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eo.classNames={fullWidth:J,zeroRight:Z};var el=function(e){var t=e.sideCar,n=X(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,Y({},n))};el.isSideCarExport=!0;var ei=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ea=function(){var e=ei();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eu=function(){var e=ea();return function(t){return e(t.styles,t.dynamic),null}},es={left:0,top:0,right:0,gap:0},ec=function(e){return parseInt(e||"",10)||0},ed=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ec(n),ec(r),ec(o)]},ef=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return es;var t=ed(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ep=eu(),eh="data-scroll-locked",ev=function(e,t,n,r){var o=e.left,l=e.top,i=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(eh,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(l,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Z," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(J," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Z," .").concat(Z," {\n right: 0 ").concat(r,";\n }\n \n .").concat(J," .").concat(J," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(eh,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},em=function(){var e=parseInt(document.body.getAttribute(eh)||"0",10);return isFinite(e)?e:0},eg=function(){i.useEffect(function(){return document.body.setAttribute(eh,(em()+1).toString()),function(){var e=em()-1;e<=0?document.body.removeAttribute(eh):document.body.setAttribute(eh,e.toString())}},[])},ey=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eg();var l=i.useMemo(function(){return ef(o)},[o]);return i.createElement(ep,{styles:ev(l,!t,o,n?"":"!important")})},ew=!1;if("undefined"!=typeof window)try{var eb=Object.defineProperty({},"passive",{get:function(){return ew=!0,!0}});window.addEventListener("test",eb,eb),window.removeEventListener("test",eb,eb)}catch(e){ew=!1}var ex=!!ew&&{passive:!1},eS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eE=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eC(e,r)){var o=eR(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eC=function(e,t){return"v"===e?eS(t,"overflowY"):eS(t,"overflowX")},eR=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ek=function(e,t,n,r,o){var l,i=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),a=i*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=eR(e,u),v=h[0],m=h[1]-h[2]-i*v;(v||m)&&eC(e,u)&&(f+=m,p+=v);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},eT=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eA=function(e){return[e.deltaX,e.deltaY]},eN=function(e){return e&&"current"in e?e.current:e},eM=0,ej=[];let eL=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eM++)[0],l=i.useState(eu)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,l=t.length;o<l;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eN),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,l=eT(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-l[0],s="deltaY"in e?e.deltaY:i[1]-l[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eE(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eE(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return ek(p,t,e,"h"===p?u:s,!0)},[]),s=i.useCallback(function(e){if(ej.length&&ej[ej.length-1]===l){var n="deltaY"in e?eA(e):eT(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eN).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var l={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),d=i.useCallback(function(e){n.current=eT(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eA(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){c(t.type,eT(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return ej.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,ex),document.addEventListener("touchmove",s,ex),document.addEventListener("touchstart",d,ex),function(){ej=ej.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,ex),document.removeEventListener("touchmove",s,ex),document.removeEventListener("touchstart",d,ex)}},[]);var h=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?i.createElement(ey,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},en.useMedium(r),el);var eP=i.forwardRef(function(e,t){return i.createElement(eo,Y({},e,{ref:t,sideCar:eL}))});eP.classNames=eo.classNames;var eI=[" ","Enter","ArrowUp","ArrowDown"],eO=[" ","Enter"],eD="Select",[eK,eB,eF]=function(e){let t=e+"CollectionProvider",[n,r]=(0,p.A)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,m.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",s=(0,v.TL)(u),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(u,n),i=(0,h.s)(t,o.collectionRef);return(0,m.jsx)(s,{ref:i,children:r})});c.displayName=u;let d=e+"CollectionItemSlot",f="data-radix-collection-item",g=(0,v.TL)(d),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),u=(0,h.s)(t,a),s=l(d,n);return i.useEffect(()=>(s.itemMap.set(a,{ref:a,...o}),()=>void s.itemMap.delete(a))),(0,m.jsx)(g,{...{[f]:""},ref:u,children:r})});return y.displayName=d,[{Provider:a,Slot:c,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(f,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(eD),[eW,e_]=(0,p.A)(eD,[eF,D.Bk]),eH=(0,D.Bk)(),[ez,eG]=eW(eD),[eU,eV]=eW(eD),eq=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:u,onValueChange:s,dir:c,name:d,autoComplete:f,disabled:p,required:h,form:v}=e,g=eH(t),[y,w]=i.useState(null),[x,S]=i.useState(null),[E,C]=i.useState(!1),R=function(e){let t=i.useContext(b);return e||t||"ltr"}(c),[k,T]=(0,B.i)({prop:r,defaultProp:null!=o&&o,onChange:l,caller:eD}),[A,N]=(0,B.i)({prop:a,defaultProp:u,onChange:s,caller:eD}),M=i.useRef(null),j=!y||v||!!y.closest("form"),[L,P]=i.useState(new Set),I=Array.from(L).map(e=>e.props.value).join(";");return(0,m.jsx)(D.bL,{...g,children:(0,m.jsxs)(ez,{required:h,scope:t,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:(0,O.B)(),value:A,onValueChange:N,open:k,onOpenChange:T,dir:R,triggerPointerDownPosRef:M,disabled:p,children:[(0,m.jsx)(eK.Provider,{scope:t,children:(0,m.jsx)(eU,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?(0,m.jsxs)(tE,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:A,onChange:e=>N(e.target.value),disabled:p,form:v,children:[void 0===A?(0,m.jsx)("option",{value:""}):null,Array.from(L)]},I):null]})})};eq.displayName=eD;var eY="SelectTrigger",eX=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=eH(n),a=eG(eY,n),u=a.disabled||r,c=(0,h.s)(t,a.onTriggerChange),d=eB(n),f=i.useRef("touch"),[p,v,g]=tR(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=tk(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,m.jsx)(D.Mz,{asChild:!0,...l,children:(0,m.jsx)(C.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tC(a.value)?"":void 0,...o,ref:c,onClick:(0,s.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:(0,s.mK)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.mK)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&eI.includes(e.key)&&(y(),e.preventDefault())})})})});eX.displayName=eY;var eZ="SelectValue",eJ=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:l,placeholder:i="",...a}=e,u=eG(eZ,n),{onValueNodeHasChildrenChange:s}=u,c=void 0!==l,d=(0,h.s)(t,u.onValueNodeChange);return(0,F.N)(()=>{s(c)},[s,c]),(0,m.jsx)(C.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:tC(u.value)?(0,m.jsx)(m.Fragment,{children:i}):l})});eJ.displayName=eZ;var eQ=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,m.jsx)(C.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});eQ.displayName="SelectIcon";var e$=e=>(0,m.jsx)(K.Z,{asChild:!0,...e});e$.displayName="SelectPortal";var e0="SelectContent",e1=i.forwardRef((e,t)=>{let n=eG(e0,e.__scopeSelect),[r,o]=i.useState();return((0,F.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,m.jsx)(e5,{...e,ref:t}):r?a.createPortal((0,m.jsx)(e2,{scope:e.__scopeSelect,children:(0,m.jsx)(eK.Slot,{scope:e.__scopeSelect,children:(0,m.jsx)("div",{children:e.children})})}),r):null});e1.displayName=e0;var[e2,e6]=eW(e0),e3=(0,v.TL)("SelectContent.RemoveScroll"),e5=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b,...C}=e,R=eG(e0,n),[k,T]=i.useState(null),[A,M]=i.useState(null),j=(0,h.s)(t,e=>T(e)),[L,P]=i.useState(null),[I,O]=i.useState(null),D=eB(n),[K,B]=i.useState(!1),F=i.useRef(!1);i.useEffect(()=>{if(k)return q(k)},[k]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:E()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:E()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),S--}},[]);let W=i.useCallback(e=>{let[t,...n]=D().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&A&&(A.scrollTop=0),n===r&&A&&(A.scrollTop=A.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[D,A]),_=i.useCallback(()=>W([L,k]),[W,L,k]);i.useEffect(()=>{K&&_()},[K,_]);let{onOpenChange:H,triggerPointerDownPosRef:z}=R;i.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{var n,r,o,l;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=z.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(l=null==(r=z.current)?void 0:r.y)?l:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():k.contains(n.target)||H(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[k,H,z]),i.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[G,U]=tR(e=>{let t=D().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tk(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=i.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==R.value&&R.value===t||r)&&(P(e),r&&(F.current=!0))},[R.value]),Y=i.useCallback(()=>null==k?void 0:k.focus(),[k]),X=i.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==R.value&&R.value===t||r)&&O(e)},[R.value]),Z="popper"===r?e4:e8,J=Z===e4?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:w,avoidCollisions:b}:{};return(0,m.jsx)(e2,{scope:n,content:k,viewport:A,onViewportChange:M,itemRefCallback:V,selectedItem:L,onItemLeave:Y,itemTextRefCallback:X,focusSelectedItem:_,selectedItemText:I,position:r,isPositioned:K,searchRef:G,children:(0,m.jsx)(eP,{as:e3,allowPinchZoom:!0,children:(0,m.jsx)(N,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.mK)(o,e=>{var t;null==(t=R.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(x.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,m.jsx)(Z,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...C,...J,onPlaced:()=>B(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,s.mK)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||U(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});e5.displayName="SelectContentImpl";var e8=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eG(e0,n),a=e6(e0,n),[s,c]=i.useState(null),[d,f]=i.useState(null),p=(0,h.s)(t,e=>f(e)),v=eB(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:x,focusSelectedItem:S}=a,E=i.useCallback(()=>{if(l.trigger&&l.valueNode&&s&&d&&w&&b&&x){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,l=n.left-r,i=e.left-l,a=e.width+i,c=Math.max(a,t.width),d=u(l,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.left=d+"px"}else{let r=t.right-o.right,l=window.innerWidth-n.right-r,i=window.innerWidth-e.right-l,a=e.width+i,c=Math.max(a,t.width),d=u(l,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.right=d+"px"}let i=v(),a=window.innerHeight-20,c=w.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=p+h+c+parseInt(f.paddingBottom,10)+m,S=Math.min(5*b.offsetHeight,y),E=window.getComputedStyle(w),C=parseInt(E.paddingTop,10),R=parseInt(E.paddingBottom,10),k=e.top+e.height/2-10,T=b.offsetHeight/2,A=p+h+(b.offsetTop+T);if(A<=k){let e=i.length>0&&b===i[i.length-1].ref.current;s.style.bottom="0px";let t=Math.max(a-k,T+(e?R:0)+(d.clientHeight-w.offsetTop-w.offsetHeight)+m);s.style.height=A+t+"px"}else{let e=i.length>0&&b===i[0].ref.current;s.style.top="0px";let t=Math.max(k,p+w.offsetTop+(e?C:0)+T);s.style.height=t+(y-A)+"px",w.scrollTop=A-k+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=S+"px",s.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[v,l.trigger,l.valueNode,s,d,w,b,x,l.dir,r]);(0,F.N)(()=>E(),[E]);let[R,k]=i.useState();(0,F.N)(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);let T=i.useCallback(e=>{e&&!0===y.current&&(E(),null==S||S(),y.current=!1)},[E,S]);return(0,m.jsx)(e7,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:(0,m.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,m.jsx)(C.sG.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});e8.displayName="SelectItemAlignedPosition";var e4=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...l}=e,i=eH(n);return(0,m.jsx)(D.UC,{...i,...l,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});e4.displayName="SelectPopperPosition";var[e7,e9]=eW(e0,{}),te="SelectViewport",tt=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=e6(te,n),a=e9(te,n),u=(0,h.s)(t,l.onViewportChange),c=i.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,m.jsx)(eK.Slot,{scope:n,children:(0,m.jsx)(C.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let l=o+e,i=Math.min(r,l),a=l-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});tt.displayName=te;var tn="SelectGroup",[tr,to]=eW(tn),tl=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,O.B)();return(0,m.jsx)(tr,{scope:n,id:o,children:(0,m.jsx)(C.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tl.displayName=tn;var ti="SelectLabel",ta=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=to(ti,n);return(0,m.jsx)(C.sG.div,{id:o.id,...r,ref:t})});ta.displayName=ti;var tu="SelectItem",[ts,tc]=eW(tu),td=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eG(tu,n),c=e6(tu,n),d=u.value===r,[f,p]=i.useState(null!=l?l:""),[v,g]=i.useState(!1),y=(0,h.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),w=(0,O.B)(),b=i.useRef("touch"),x=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,m.jsx)(ts,{scope:n,value:r,disabled:o,textId:w,isSelected:d,onItemTextChange:i.useCallback(e=>{p(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,m.jsx)(eK.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,m.jsx)(C.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:(0,s.mK)(a.onFocus,()=>g(!0)),onBlur:(0,s.mK)(a.onBlur,()=>g(!1)),onClick:(0,s.mK)(a.onClick,()=>{"mouse"!==b.current&&x()}),onPointerUp:(0,s.mK)(a.onPointerUp,()=>{"mouse"===b.current&&x()}),onPointerDown:(0,s.mK)(a.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,s.mK)(a.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.mK)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.mK)(a.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(eO.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});td.displayName=tu;var tf="SelectItemText",tp=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...l}=e,u=eG(tf,n),s=e6(tf,n),c=tc(tf,n),d=eV(tf,n),[f,p]=i.useState(null),v=(0,h.s)(t,e=>p(e),c.onItemTextChange,e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,c.value,c.disabled)}),g=null==f?void 0:f.textContent,y=i.useMemo(()=>(0,m.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=d;return(0,F.N)(()=>(w(y),()=>b(y)),[w,b,y]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(C.sG.span,{id:c.textId,...l,ref:v}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?a.createPortal(l.children,u.valueNode):null]})});tp.displayName=tf;var th="SelectItemIndicator",tv=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tc(th,n).isSelected?(0,m.jsx)(C.sG.span,{"aria-hidden":!0,...r,ref:t}):null});tv.displayName=th;var tm="SelectScrollUpButton",tg=i.forwardRef((e,t)=>{let n=e6(tm,e.__scopeSelect),r=e9(tm,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,F.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,m.jsx)(tb,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tg.displayName=tm;var ty="SelectScrollDownButton",tw=i.forwardRef((e,t)=>{let n=e6(ty,e.__scopeSelect),r=e9(ty,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,F.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,m.jsx)(tb,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tw.displayName=ty;var tb=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=e6("SelectScrollButton",n),a=i.useRef(null),u=eB(n),c=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,F.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,m.jsx)(C.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.mK)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.mK)(o.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.mK)(o.onPointerLeave,()=>{c()})})}),tx=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,m.jsx)(C.sG.div,{"aria-hidden":!0,...r,ref:t})});tx.displayName="SelectSeparator";var tS="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eH(n),l=eG(tS,n),i=e6(tS,n);return l.open&&"popper"===i.position?(0,m.jsx)(D.i3,{...o,...r,ref:t}):null}).displayName=tS;var tE=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,l=i.useRef(null),a=(0,h.s)(t,l),u=function(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return i.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[u,r]),(0,m.jsx)(C.sG.select,{...o,style:{...W.Qg,...o.style},ref:a,defaultValue:r})});function tC(e){return""===e||void 0===e}function tR(e){let t=(0,R.c)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tk(e,t,n){var r,o;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=(r=e,o=Math.max(i,0),r.map((e,t)=>r[(o+t)%r.length]));1===l.length&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return u!==n?u:void 0}tE.displayName="SelectBubbleInput";var tT=eq,tA=eX,tN=eJ,tM=eQ,tj=e$,tL=e1,tP=tt,tI=tl,tO=ta,tD=td,tK=tp,tB=tv,tF=tg,tW=tw,t_=tx},7163:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(8258).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{63:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(4773),o=n(1471),i=n(9280),l=n(5386),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},607:(e,t,n)=>{n.d(t,{Qg:()=>l,bL:()=>u});var r=n(4773),o=n(63),i=n(5386),l=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=r.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var u=a},819:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(4773);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},3049:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(4773),o=globalThis?.document?r.useLayoutEffect:()=>{}},4053:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},5987:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(4773),i=n(3049),l=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},7328:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4773),o=n(5386);function i(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}},7536:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(8258).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7740:(e,t,n)=>{n.d(t,{qW:()=>d});var r,o=n(4773),i=n(4053),l=n(63),a=n(5034),u=n(819),s=n(5386),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=o.useContext(f),[C,R]=o.useState(null),T=null!=(d=null==C?void 0:C.ownerDocument)?d:null==(n=globalThis)?void 0:n.document,[,L]=o.useState({}),A=(0,a.s)(t,e=>R(e)),O=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),S=O.indexOf(P),N=C?O.indexOf(C):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,D=N>=S,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));D&&!n&&(null==v||v(e),null==w||w(e),e.defaultPrevented||null==x||x())},T),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==x||x())},T);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===E.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},T),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[C,T,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>L({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(l.sG.div,{...b,ref:A,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}d.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},8251:(e,t,n)=>{n.d(t,{UC:()=>V,Kq:()=>z,bL:()=>U,Bc:()=>T,l9:()=>$});var r=n(4773),o=n(4053),i=n(5034),l=n(7328),a=n(7740),u=n(5987),s=n(9448),c=(n(9302),n(3049)),f=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef(null),a=r.useRef(e),u=r.useRef("none"),[s,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=d(l.current);u.current="mounted"===s?e:"none"},[s]),(0,c.N)(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=d(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),a.current=e}},[e,f]),(0,c.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=d(l.current).includes(CSS.escape(e.animationName));if(e.target===o&&r&&(f("ANIMATION_END"),!a.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(u.current=d(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),l="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||o.isPresent?r.cloneElement(l,{ref:a}):null};function d(e){return(null==e?void 0:e.animationName)||"none"}f.displayName="Presence";var p=n(63),m=n(9280),h=n(9559),g=n(607),v=n(5386),[y,w]=(0,l.A)("Tooltip",[s.Bk]),x=(0,s.Bk)(),b="TooltipProvider",E="tooltip.open",[C,R]=y(b),T=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=r.useRef(!0),u=r.useRef(!1),s=r.useRef(0);return r.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(C,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:l})};T.displayName=b;var L="Tooltip",[A,O]=y(L),P=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,f=R(L,e.__scopeTooltip),d=x(t),[p,m]=r.useState(null),g=(0,u.B)(),y=r.useRef(0),w=null!=a?a:f.disableHoverableContent,b=null!=c?c:f.delayDuration,C=r.useRef(!1),[T,O]=(0,h.i)({prop:o,defaultProp:null!=i&&i,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(E))):f.onClose(),null==l||l(e)},caller:L}),P=r.useMemo(()=>T?C.current?"delayed-open":"instant-open":"closed",[T]),S=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C.current=!1,O(!0)},[O]),N=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,O(!1)},[O]),k=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{C.current=!0,O(!0),y.current=0},b)},[b,O]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,v.jsx)(s.bL,{...d,children:(0,v.jsx)(A,{scope:t,contentId:g,open:T,stateAttribute:P,trigger:p,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{f.isOpenDelayedRef.current?k():S()},[f.isOpenDelayedRef,k,S]),onTriggerLeave:r.useCallback(()=>{w?N():(window.clearTimeout(y.current),y.current=0)},[N,w]),onOpen:S,onClose:N,disableHoverableContent:w,children:n})})};P.displayName=L;var S="TooltipTrigger",N=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=O(S,n),u=R(S,n),c=x(n),f=r.useRef(null),d=(0,i.s)(t,f,a.onTriggerChange),m=r.useRef(!1),h=r.useRef(!1),g=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,v.jsx)(s.Mz,{asChild:!0,...c,children:(0,v.jsx)(p.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:d,onPointerMove:(0,o.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,o.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.mK)(e.onFocus,()=>{m.current||a.onOpen()}),onBlur:(0,o.mK)(e.onBlur,a.onClose),onClick:(0,o.mK)(e.onClick,a.onClose)})})});N.displayName=S;var[k,D]=y("TooltipPortal",{forceMount:void 0}),M="TooltipContent",j=r.forwardRef((e,t)=>{let n=D(M,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=O(M,e.__scopeTooltip);return(0,v.jsx)(f,{present:r||l.open,children:l.disableHoverableContent?(0,v.jsx)(H,{side:o,...i,ref:t}):(0,v.jsx)(W,{side:o,...i,ref:t})})}),W=r.forwardRef((e,t)=>{let n=O(M,e.__scopeTooltip),o=R(M,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[u,s]=r.useState(null),{trigger:c,onClose:f}=n,d=l.current,{onPointerInTransitChange:p}=o,m=r.useCallback(()=>{s(null),p(!1)},[p]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&d){let e=e=>h(e,d),t=e=>h(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,h,m]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,f=a.y;s>r!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}(n,u);r?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,u,f,m]),(0,v.jsx)(H,{...e,ref:a})}),[_,F]=y(L,{isInside:!1}),B=(0,m.Dc)("TooltipContent"),H=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,f=O(M,n),d=x(n),{onClose:p}=f;return r.useEffect(()=>(document.addEventListener(E,p),()=>document.removeEventListener(E,p)),[p]),r.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(f.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,p]),(0,v.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,v.jsxs)(s.UC,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(B,{children:o}),(0,v.jsx)(_,{scope:n,isInside:!0,children:(0,v.jsx)(g.bL,{id:f.contentId,role:"tooltip",children:i||o})})]})})});j.displayName=M;var I="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=x(n);return F(I,n).isInside?null:(0,v.jsx)(s.i3,{...o,...r,ref:t})}).displayName=I;var z=T,U=P,$=N,V=j},9302:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(4773),o=n(1471),i=n(63),l=n(3049),a=n(5386),u=r.forwardRef((e,t)=>{var n,u;let{container:s,...c}=e,[f,d]=r.useState(!1);(0,l.N)(()=>d(!0),[]);let p=s||f&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),p):null});u.displayName="Portal"},9448:(e,t,n)=>{n.d(t,{Mz:()=>e0,i3:()=>e3,UC:()=>e1,bL:()=>eJ,Bk:()=>e_});var r=n(4773);let o=["top","right","bottom","left"],i=Math.min,l=Math.max,a=Math.round,u=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function y(e){return v.has(p(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>f[e])}let x=["left","right"],b=["right","left"],E=["top","bottom"],C=["bottom","top"];function R(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function A(e,t,n){let r,{reference:o,floating:i}=e,l=y(t),a=h(y(t)),u=g(a),s=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,v=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(m(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=A(s,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:g,y:v,data:y,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,f=null!=v?v:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:f}=A(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=d(t,e),h=T(m),g=a[p?"floating"===f?"reference":"floating":f],v=L(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(v.top-b.top+h.top)/x.y,bottom:(b.bottom-v.bottom+h.bottom)/x.y,left:(v.left-b.left+h.left)/x.x,right:(b.right-v.right+h.right)/x.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return o.some(t=>e[t]>=0)}let k=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=m(n),u="y"===y(n),s=k.has(l)?-1:1,c=i&&u?-1:1,f=d(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof v&&(g="end"===a?-1*v:v),u?{x:g*c,y:h*s}:{x:h*s,y:g*c}}function M(){return"undefined"!=typeof window}function j(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!M()&&(e instanceof Node||e instanceof W(e).Node)}function B(e){return!!M()&&(e instanceof Element||e instanceof W(e).Element)}function H(e){return!!M()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function I(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let z=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!z.has(o)}let $=new Set(["table","td","th"]),V=[":popover-open",":modal"];function K(e){return V.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let G=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function q(e){let t=Q(),n=B(e)?ee(e):e;return G.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Z=new Set(["html","body","#document"]);function J(e){return Z.has(j(e))}function ee(e){return W(e).getComputedStyle(e)}function et(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||I(e)&&e.host||_(e);return I(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&U(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=W(o);if(i){let e=eo(l);return t.concat(l,l.visualViewport||[],U(o)?o:[],e&&n?er(e):[])}return t.concat(o,er(o,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=H(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=a(n)!==i||a(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function el(e){return B(e)?e:e.contextElement}function ea(e){let t=el(e);if(!H(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ei(t),l=(i?a(n.width):n.width)/r,u=(i?a(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let eu=s(0);function es(e){let t=W(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function ec(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=el(e),a=s(1);t&&(r?B(r)&&(a=ea(r)):a=ea(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===W(l))&&o)?es(l):s(0),c=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=W(l),t=r&&B(r)?W(r):r,n=e,o=eo(n);for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=ee(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=l,o=eo(n=W(o))}}return L({width:d,height:p,x:c,y:f})}function ef(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(_(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ef(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function em(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=W(e),r=_(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=Q();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=ef(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=_(e),n=et(e),r=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ef(e),u=-n.scrollTop;return"rtl"===ee(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:u}}(_(e));else if(B(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=H(e)?ea(e):s(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function eh(e){return"static"===ee(e).position}function eg(e,t){if(!H(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=W(e);if(K(e))return r;if(!H(e)){let t=en(e);for(;t&&!J(t);){if(B(t)&&!eh(t))return t;t=en(t)}return r}let o=eg(e,t);for(;o&&(n=o,$.has(j(n)))&&eh(o);)o=eg(o,t);return o&&J(o)&&eh(o)&&!q(o)?r:o||function(e){let t=en(e);for(;H(t)&&!J(t);){if(q(t))return t;if(K(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=H(t),o=_(t),i="fixed"===n,l=ec(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i)if(("body"!==j(t)||U(o))&&(a=et(t)),r){let e=ec(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ef(o));i&&!r&&o&&(u.x=ef(o));let c=!o||r||i?s(0):ed(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=_(r),a=!!t&&K(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),f=s(0),d=H(r);if((d||!d&&!i)&&(("body"!==j(r)||U(l))&&(u=et(r)),H(r))){let e=ec(r);c=ea(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?s(0):ed(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>B(e)&&"body"!==j(e)),o=null,i="fixed"===ee(e).position,l=i?en(e):e;for(;B(l)&&!J(l);){let t=ee(l),n=q(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ep.has(o.position)||U(l)&&!n&&function e(t,n){let r=en(t);return!(r===n||!B(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=en(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],s=a.reduce((e,n)=>{let r=em(t,n,o);return e.top=l(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=l(r.left,e.left),e},em(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ev,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:ea,isElement:B,isRTL:function(e){return"rtl"===ee(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:u,elements:s,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let v=T(p),w={x:n,y:r},x=h(y(o)),b=g(x),E=await u.getDimensions(f),C="y"===x,R=C?"clientHeight":"clientWidth",L=a.reference[b]+a.reference[x]-w[x]-a.floating[b],A=w[x]-a.reference[x],O=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),P=O?O[R]:0;P&&await (null==u.isElement?void 0:u.isElement(O))||(P=s.floating[R]||a.floating[b]);let S=P/2-E[b]/2-1,N=i(v[C?"top":"left"],S),k=i(v[C?"bottom":"right"],S),D=P-E[b]-k,M=P/2-E[b]/2+(L/2-A/2),j=l(N,i(M,D)),W=!c.arrow&&null!=m(o)&&M!==j&&a.reference[b]/2-(M<N?N:k)-E[b]/2<0,_=W?M<N?M-N:M-D:0;return{[x]:w[x]+_,data:{[x]:j,centerOffset:M-j-_,...W&&{alignmentOffset:_}},reset:W}}});var eE=n(1471),eC="undefined"!=typeof document?r.useLayoutEffect:function(){};function eR(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eL(e,t){let n=eT(e);return Math.round(t*n)/n}function eA(e){let t=r.useRef(e);return eC(()=>{t.current=e}),t}var eO=n(63),eP=n(5386),eS=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eP.jsx)(eO.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eP.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eS.displayName="Arrow";var eN=n(5034),ek=n(7328),eD=n(819),eM=n(3049),ej="Popper",[eW,e_]=(0,ek.A)(ej),[eF,eB]=eW(ej),eH=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eP.jsx)(eF,{scope:t,anchor:o,onAnchorChange:i,children:n})};eH.displayName=ej;var eI="PopperAnchor",ez=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=eB(eI,n),a=r.useRef(null),u=(0,eN.s)(t,a),s=r.useRef(null);return r.useEffect(()=>{let e=s.current;s.current=(null==o?void 0:o.current)||a.current,e!==s.current&&l.onAnchorChange(s.current)}),o?null:(0,eP.jsx)(eO.sG.div,{...i,ref:u})});ez.displayName=eI;var eU="PopperContent",[e$,eV]=eW(eU),eK=r.forwardRef((e,t)=>{var n,o,a,s,c,f,v,T;let{__scopePopper:L,side:A="bottom",sideOffset:M=0,align:j="center",alignOffset:W=0,arrowPadding:F=0,avoidCollisions:B=!0,collisionBoundary:H=[],collisionPadding:I=0,sticky:z="partial",hideWhenDetached:U=!1,updatePositionStrategy:$="optimized",onPlaced:V,...K}=e,G=eB(eU,L),[Y,X]=r.useState(null),q=(0,eN.s)(t,e=>X(e)),[Q,Z]=r.useState(null),J=function(e){let[t,n]=r.useState(void 0);return(0,eM.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(Q),ee=null!=(v=null==J?void 0:J.width)?v:0,et=null!=(T=null==J?void 0:J.height)?T:0,en="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},eo=Array.isArray(H)?H:[H],ei=eo.length>0,ea={padding:en,boundary:eo.filter(eq),altBoundary:ei},{refs:eu,floatingStyles:es,placement:ef,isPositioned:ed,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);eR(p,o)||m(o);let[h,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),b=l||h,E=a||v,C=r.useRef(null),R=r.useRef(null),T=r.useRef(f),L=null!=s,A=eA(s),P=eA(i),S=eA(c),N=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,o={platform:ew,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==S.current};k.current&&!eR(T.current,t)&&(T.current=t,eE.flushSync(()=>{d(t)}))})},[p,t,n,P,S]);eC(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);eC(()=>(k.current=!0,()=>{k.current=!1}),[]),eC(()=>{if(b&&(C.current=b),E&&(R.current=E),b&&E){if(A.current)return A.current(b,E,N);N()}},[b,E,N,A,L]);let D=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:x}),[w,x]),M=r.useMemo(()=>({reference:b,floating:E}),[b,E]),j=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eL(M.floating,f.x),r=eL(M.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,M.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:N,refs:D,elements:M,floatingStyles:j}),[f,N,D,M,j])}({strategy:"fixed",placement:A+("center"!==j?"-"+j:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=el(e),m=a||s?[...p?er(p):[],...er(t)]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,r=null,o=_(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),a();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(c||t(),!h||!g)return;let v=u(m),y=u(o.clientWidth-(p+h)),w={rootMargin:-v+"px "+-y+"px "+-u(o.clientHeight-(m+g))+"px "+-u(p)+"px",threshold:l(0,i(1,f))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ex(d,e.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,w)}r.observe(e)}(!0),a}(p,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),v.observe(t));let y=d?ec(e):null;return d&&function t(){let r=ec(e);y&&!ex(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===$})},elements:{reference:G.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await D(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}))({mainAxis:M+et,alignmentAxis:W}),B&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},m=await P(t,c),g=y(p(o)),v=h(g),w=f[v],x=f[g];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+m[e],r=w-m[t];w=l(n,i(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+m[e],r=x-m[t];x=l(n,i(x,r))}let b=s.fn({...t,[v]:w,[g]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[v]:a,[g]:u}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===z?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=d(e,t),c={x:n,y:r},f=y(o),m=h(f),g=c[m],v=c[f],w=d(a,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+x.mainAxis,n=i.reference[m]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(s){var b,E;let e="y"===m?"width":"height",t=k.has(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:x.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[f])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:g,[f]:v}}}}(e),options:[e,t]}))():void 0,...ea}),B&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:v}=t,{mainAxis:T=!0,crossAxis:L=!0,fallbackPlacements:A,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:N=!0,...k}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let D=p(a),M=y(c),j=p(c)===c,W=await (null==f.isRTL?void 0:f.isRTL(v.floating)),_=A||(j||!N?[R(c)]:function(e){let t=R(e);return[w(e),t,w(t)]}(c)),F="none"!==S;!A&&F&&_.push(...function(e,t,n,r){let o=m(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;case"left":case"right":return t?E:C;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(c,N,S,W));let B=[c,..._],H=await P(t,k),I=[],z=(null==(r=u.flip)?void 0:r.overflows)||[];if(T&&I.push(H[D]),L){let e=function(e,t,n){void 0===n&&(n=!1);let r=m(e),o=h(y(e)),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}(a,s,W);I.push(H[e[0]],H[e[1]])}if(z=[...z,{placement:a,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=B[e];if(t&&("alignment"!==L||M===y(t)||z.every(e=>y(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(i=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(O){case"bestFit":{let e=null==(l=z.filter(e=>{if(F){let t=y(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...ea}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,a,{placement:u,rects:s,platform:c,elements:f}=t,{apply:h=()=>{},...g}=d(e,t),v=await P(t,g),w=p(u),x=m(u),b="y"===y(u),{width:E,height:C}=s.floating;"top"===w||"bottom"===w?(o=w,a=x===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(a=w,o="end"===x?"top":"bottom");let R=C-v.top-v.bottom,T=E-v.left-v.right,L=i(C-v[o],R),A=i(E-v[a],T),O=!t.middlewareData.shift,S=L,N=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=T),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=R),O&&!x){let e=l(v.left,0),t=l(v.right,0),n=l(v.top,0),r=l(v.bottom,0);b?N=E-2*(0!==e||0!==t?e+t:l(v.left,v.right)):S=C-2*(0!==n||0!==r?n+r:l(v.top,v.bottom))}await h({...t,availableWidth:N,availableHeight:S});let k=await c.getDimensions(f.floating);return E!==k.width||C!==k.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),Q&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eb({element:n.current,padding:r}).fn(t):{}:n?eb({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:Q,padding:F}),eQ({arrowWidth:ee,arrowHeight:et}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=S(await P(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=S(await P(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...ea})]}),[em,eh]=eZ(ef),eg=(0,eD.c)(V);(0,eM.N)(()=>{ed&&(null==eg||eg())},[ed,eg]);let ev=null==(n=ep.arrow)?void 0:n.x,ey=null==(o=ep.arrow)?void 0:o.y,eS=(null==(a=ep.arrow)?void 0:a.centerOffset)!==0,[ek,ej]=r.useState();return(0,eM.N)(()=>{Y&&ej(window.getComputedStyle(Y).zIndex)},[Y]),(0,eP.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ed?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ek,"--radix-popper-transform-origin":[null==(s=ep.transformOrigin)?void 0:s.x,null==(c=ep.transformOrigin)?void 0:c.y].join(" "),...(null==(f=ep.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eP.jsx)(e$,{scope:L,placedSide:em,onArrowChange:Z,arrowX:ev,arrowY:ey,shouldHideArrow:eS,children:(0,eP.jsx)(eO.sG.div,{"data-side":em,"data-align":eh,...K,ref:q,style:{...K.style,animation:ed?void 0:"none"}})})})});eK.displayName=eU;var eG="PopperArrow",eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eV(eG,n),i=eY[o.placedSide];return(0,eP.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eP.jsx)(eS,{...r,ref:t,style:{...r.style,display:"block"}})})});function eq(e){return null!==e}eX.displayName=eG;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=eZ(a),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,v=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,y="",w="";return"bottom"===p?(y=c?h:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(y=c?h:"".concat(g,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=c?h:"".concat(v,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=c?h:"".concat(v,"px")),{data:{x:y,y:w}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=eH,e0=ez,e1=eK,e3=eX},9559:(e,t,n)=>{n.d(t,{i:()=>a});var r,o=n(4773),i=n(3049),l=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,u]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return l(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[c,o.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[s,e,a,u])]}Symbol("RADIX:SYNC_STATE")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2287:(e,t,a)=>{"use strict";a.d(t,{$g:()=>d,Oc:()=>o,cn:()=>n,yQ:()=>l});var r=a(2928),s=a(8997);let l=10;function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}let o=5e3;function d(e,t,a){return a?"Page ".concat(e," of ").concat(t,"+"):"Page ".concat(e," of ").concat(t)}},2441:()=>{},5582:(e,t,a)=>{"use strict";a.d(t,{LayoutClient:()=>R});var r=a(5386),s=a(8251),l=a(8414),n=a.n(l),o=a(3283),d=a(4773),i=a(8258);let c=(0,i.A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var u=a(8257);function f(e){let{config:t}=e,{provider:a,parts:s}=((e,t)=>{if("vercel"===e){let e=[];return t.env&&e.push("env: ".concat(t.env)),t.project&&e.push("project: ".concat(t.project)),t.team&&e.push("team: ".concat(t.team)),{provider:"Vercel",parts:e}}if("embedded"===e){let e=[];return t.dataDir&&e.push("dir: ".concat(t.dataDir)),t.port&&e.push("port: ".concat(t.port)),{provider:"Embedded",parts:e}}return{provider:t.backend||"unknown",parts:[]}})(t.backend||"embedded",t);return(0,r.jsxs)("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[(0,r.jsxs)("span",{className:"font-medium",children:["Connected to: ",a]}),(0,r.jsxs)(u.m_,{children:[(0,r.jsx)(u.k$,{asChild:!0,children:(0,r.jsx)(c,{className:"w-4 h-4"})}),(0,r.jsx)(u.ZI,{children:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:s.map(e=>(0,r.jsx)("span",{children:e},e))})})]})]})}let m=(0,i.A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),p=(0,i.A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var h=a(3039),x=a(7122),g=a(6016),v=a(2287);let b=d.forwardRef((e,t)=>{let{className:a,type:s,...l}=e;return(0,r.jsx)("input",{type:s,className:(0,v.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});b.displayName="Input";var j=a(63),N=d.forwardRef((e,t)=>(0,r.jsx)(j.sG.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null==(a=e.onMouseDown)||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));N.displayName="Label";let y=(0,a(7586).F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),w=d.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(N,{ref:t,className:(0,v.cn)(y(),a),...s})});w.displayName=N.displayName;var C=a(9432),k=a(8052),L=a(8033);let V=(0,L.createServerReference)("4077217ab2693c124af7fd40bcb514074b64e60ae7",L.callServer,void 0,L.findSourceMapURL,"validateWorldConfig");function H(){let e=(0,k.Nt)(),t=(0,k.dL)(),[a,s]=(0,d.useState)(!1),[l,n]=(0,d.useState)(e),[o,i]=(0,d.useState)([]),[c,u]=(0,d.useState)(!1),f="embedded"===(l.backend||"embedded");(0,d.useEffect)(()=>{n(e)},[e]);let v=async()=>{u(!0);try{let e=await V(l);i(e),0===e.length&&(t(l),s(!1))}catch(e){console.error("Validation error:",e),i([{field:"general",message:e instanceof Error?e.message:"Unknown error"}])}finally{u(!1)}},j=(e,t)=>{n(a=>({...a,[e]:t})),i(t=>t.filter(t=>t.field!==e))},N=e=>{var t;return null==(t=o.find(t=>t.field===e))?void 0:t.message},y=JSON.stringify(l)!==JSON.stringify(e)||o.length>0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>s(!0),className:"p-2 rounded-full hover:bg-accent transition-colors",title:"Configuration",children:(0,r.jsx)(m,{className:"h-6 w-6"})}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"fixed inset-0 bg-black/50 z-40 cursor-default",onClick:()=>s(!1),"aria-label":"Close configuration panel"}),(0,r.jsx)("div",{className:"fixed top-0 right-0 h-full w-96 bg-background border-l shadow-lg z-50 overflow-y-auto",children:(0,r.jsxs)("div",{className:"p-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:"Configuration"}),(0,r.jsx)("button",{type:"button",onClick:()=>s(!1),className:"p-2 hover:bg-accent rounded-full transition-colors",children:(0,r.jsx)(p,{className:"h-5 w-5"})})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"backend",children:"Backend"}),(0,r.jsxs)(C.l6,{value:l.backend||"embedded",onValueChange:e=>j("backend",e),children:[(0,r.jsx)(C.bq,{id:"backend",children:(0,r.jsx)(C.yv,{placeholder:"Select backend"})}),(0,r.jsxs)(C.gC,{children:[(0,r.jsx)(C.eb,{value:"embedded",children:"Embedded"}),(0,r.jsx)(C.eb,{value:"vercel",children:"Vercel"})]})]})]}),f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"port",children:"Port"}),(0,r.jsx)(b,{id:"port",value:l.port||"",onChange:e=>j("port",e.target.value),placeholder:"3001",className:N("port")?"border-destructive":""}),N("port")&&(0,r.jsx)("p",{className:"text-sm text-destructive",children:N("port")})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"dataDir",children:"Data Directory"}),(0,r.jsx)(b,{id:"dataDir",value:l.dataDir||"",onChange:e=>j("dataDir",e.target.value),placeholder:".workflow-data or .next/workflow-data",className:N("dataDir")?"border-destructive":""}),N("dataDir")&&(0,r.jsx)("p",{className:"text-sm text-destructive",children:N("dataDir")}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"Path to the workflow data directory. Can be relative or absolute."})]})]}),!f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"env",children:"Environment"}),(0,r.jsx)(b,{id:"env",value:l.env||"production",onChange:e=>j("env",e.target.value),placeholder:"production or preview"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"authToken",children:"Auth Token"}),(0,r.jsx)(b,{id:"authToken",type:"password",value:l.authToken||"",onChange:e=>j("authToken",e.target.value),placeholder:"Vercel auth token"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"project",children:"Project ID"}),(0,r.jsx)(b,{id:"project",value:l.project||"",onChange:e=>j("project",e.target.value),placeholder:"prj_..."})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(w,{htmlFor:"team",children:"Team ID"}),(0,r.jsx)(b,{id:"team",value:l.team||"",onChange:e=>j("team",e.target.value),placeholder:"team_..."})]})]}),o.length>0&&(0,r.jsxs)(x.Fc,{variant:"destructive",children:[(0,r.jsx)(h.A,{className:"h-4 w-4"}),(0,r.jsx)(x.XL,{children:"Configuration Error"}),(0,r.jsx)(x.TN,{children:(0,r.jsx)("ul",{className:"list-disc list-inside space-y-1",children:o.map((e,t)=>(0,r.jsxs)("li",{children:["general"!==e.field&&(0,r.jsxs)("strong",{children:[e.field,":"]})," ",e.message]},"error-".concat(t)))})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-4",children:[(0,r.jsx)(g.$,{onClick:v,disabled:c||!y,className:"w-full",children:c?"Validating...":"Apply Configuration"}),(0,r.jsx)(g.$,{variant:"outline",onClick:()=>{n(e),i([]),s(!1)},className:"w-full",children:"Cancel"})]})]})]})})]})]})}function _(){let{className:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.jsxs)("svg",{viewBox:"0 0 1792 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e||"h-6 w-auto",role:"img","aria-label":"Workflow Logo",children:[(0,r.jsx)("title",{children:"Workflow Logo"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M753.933 55.627C806.249 55.627 840.685 91.718 840.685 147.345C840.685 202.971 806.249 239.062 753.933 239.062C701.286 239.062 666.851 202.971 666.851 147.345C666.851 91.7181 701.286 55.6271 753.933 55.627ZM753.933 90.0625C726.451 90.0626 710.889 111.254 710.889 147.345C710.889 183.436 726.451 204.627 753.933 204.627C781.084 204.627 796.978 183.436 796.978 147.345C796.978 111.254 781.084 90.0625 753.933 90.0625Z",className:"fill-foreground"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1445.65 55.627C1497.96 55.627 1532.4 91.718 1532.4 147.345C1532.4 202.971 1497.96 239.062 1445.65 239.062C1393 239.062 1358.56 202.971 1358.56 147.345C1358.56 91.718 1393 55.627 1445.65 55.627ZM1445.65 90.0625C1418.16 90.0625 1402.6 111.254 1402.6 147.345C1402.6 183.436 1418.16 204.627 1445.65 204.627C1472.8 204.627 1488.69 183.436 1488.69 147.345C1488.69 111.254 1472.8 90.0626 1445.65 90.0625Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M902.473 94.0361C909.095 70.8584 922.34 59.5997 944.855 59.5996H961.079V92.3799H944.524C916.38 92.38 904.128 106.949 904.128 135.094V235.089H861.746V59.5996H901.48L902.473 94.0361Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1019.25 138.735L1091.11 59.5996H1143.09L1074.55 132.113L1146.4 235.089H1098.72L1046.74 157.609L1019.25 187.078V235.089H976.872V0H1019.25V138.735Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1263.63 32.7803H1235.82C1224.89 32.7803 1217.28 41.3893 1217.28 54.9648V59.5996H1260.98V92.3799H1217.28V235.089H1174.56V92.3799H1149.4V59.5996H1174.56V54.9648C1174.56 19.5359 1191.78 0 1230.85 0H1263.63V32.7803Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1322.58 189.396C1322.58 197.673 1327.22 202.309 1335.5 202.31H1348.74V235.089H1324.57C1298.08 235.089 1280.2 218.534 1280.2 191.052V0H1322.58V189.396Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M1604.59 186.416L1641.02 59.5996H1677.77L1713.86 186.416L1749.95 59.5996H1791.34L1737.7 235.089H1694.32L1659.56 116.883L1624.79 235.089H1581.42L1527.77 59.5996H1568.83L1604.59 186.416Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M472.173 174.847L514.895 0.671875H554.66L598.038 174.847L640.432 0.671875H685.454L623.015 234H575.692L534.942 77.5713L493.863 234H446.869L384.1 0.671875H429.122L472.173 174.847Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M125.776 0C120.929 1.64945e-05 117 3.9291 117 8.77539V61.4248C117 66.2711 120.929 70.2002 125.776 70.2002H160.875L161.253 70.2051C169.032 70.4023 175.301 76.6734 175.495 84.4531L175.5 84.8252V143.325C175.5 148.171 179.429 152.101 184.276 152.101H219.375L219.753 152.105C227.53 152.303 233.798 158.571 233.995 166.348L234 166.726V225.225C234 230.071 237.929 234 242.776 234H295.425C300.271 234 304.2 230.071 304.2 225.225V172.575C304.2 167.729 300.271 163.8 295.425 163.8H260.25C252.334 163.76 245.905 157.43 245.705 149.553L245.7 149.176V90.6758C245.7 85.8295 241.771 81.9004 236.925 81.9004H201.825C193.874 81.9004 187.405 75.5551 187.205 67.6523L187.2 67.2754V8.77539C187.2 3.9291 183.271 1.64951e-05 178.425 0H125.776Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M67.2755 81.9004C62.4293 81.9004 58.5002 85.8295 58.5002 90.6758V143.325C58.5004 148.171 62.4294 152.101 67.2755 152.101H102.375L102.753 152.105C110.53 152.303 116.798 158.571 116.995 166.348L117 166.726V225.225C117 230.071 120.929 234 125.776 234H178.425C183.271 234 187.2 230.071 187.2 225.225V172.575C187.2 167.729 183.271 163.8 178.425 163.8H143.25C135.334 163.76 128.905 157.43 128.705 149.553L128.7 149.176V90.6758C128.7 85.8295 124.771 81.9004 119.925 81.9004H67.2755Z",className:"fill-foreground"}),(0,r.jsx)("path",{d:"M8.77454 163.8C3.92844 163.8 0.00012207 167.729 0.00012207 172.575V225.225C0.00012207 230.071 3.92844 234 8.77454 234H61.4249C66.2712 234 70.2003 230.071 70.2003 225.225V172.575C70.2003 167.729 66.2712 163.8 61.4249 163.8H8.77454Z",className:"fill-foreground"})]})}function R(e){let{children:t}=e,a=(0,o.useRouter)(),l=(0,o.useSearchParams)(),i=(0,k.Nt)(),c=l.get("id"),u=l.get("runId"),m=l.get("stepId"),p=l.get("hookId"),h=l.get("resource"),x=l.get("theme")||"system";return(0,d.useEffect)(()=>{let e=document.documentElement;e.classList.remove("light","dark"),("light"===x||"dark"===x)&&e.classList.add(x)},[x]),(0,d.useEffect)(()=>{let e;if(!h){if(u){let e;e=m?(0,k.g0)("/run/".concat(u),i,{sidebar:"step",stepId:m}):p?(0,k.g0)("/run/".concat(u),i,{sidebar:"hook",hookId:p}):(0,k.g0)("/run/".concat(u),i),a.push(e)}return}if(c){if("run"===h)e=(0,k.g0)("/run/".concat(c),i);else if("step"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"step",stepId:c});else if("stream"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"stream",streamId:c});else if("event"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"event",eventId:c});else if("hook"===h&&u)e=(0,k.g0)("/run/".concat(u),i,{sidebar:"hook",hookId:c});else{if("hook"!==h||u)return void console.warn("Can't deep-link to ".concat(h," ").concat(c,"."));e=(0,k.g0)("/",i,{sidebar:"hook",hookId:c})}a.push(e)}},[h,c,u,m,p,a,i]),(0,r.jsx)("div",{className:"min-h-screen p-8",children:(0,r.jsx)(s.Bc,{delayDuration:0,children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsx)("div",{className:"flex items-start justify-between",children:(0,r.jsxs)("div",{className:"mb-8 items-center flex justify-between w-full",children:[(0,r.jsx)(n(),{href:"https://useworkflow.dev",target:"_blank",children:(0,r.jsx)("h1",{className:"flex items-center gap-2 mb-2",title:"Workflow Observability",children:(0,r.jsx)(_,{})})}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,r.jsx)(f,{config:i}),(0,r.jsx)(H,{})]})]})}),t]})})})}},6016:(e,t,a)=>{"use strict";a.d(t,{$:()=>i});var r=a(5386),s=a(9280),l=a(7586),n=a(4773),o=a(2287);let d=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=n.forwardRef((e,t)=>{let{className:a,variant:l,size:n,asChild:i=!1,...c}=e,u=i?s.DX:"button";return(0,r.jsx)(u,{className:(0,o.cn)(d({variant:l,size:n,className:a})),ref:t,...c})});i.displayName="Button"},6426:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_188709",variable:"__variable_188709"}},7122:(e,t,a)=>{"use strict";a.d(t,{Fc:()=>d,TN:()=>c,XL:()=>i});var r=a(5386),s=a(7586),l=a(4773),n=a(2287);let o=(0,s.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=l.forwardRef((e,t)=>{let{className:a,variant:s,...l}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,n.cn)(o({variant:s}),a),...l})});d.displayName="Alert";let i=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",a),...s})});i.displayName="AlertTitle";let c=l.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",a),...s})});c.displayName="AlertDescription"},7222:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_9a8899",variable:"__variable_9a8899"}},7923:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,6426,23)),Promise.resolve().then(a.t.bind(a,7222,23)),Promise.resolve().then(a.t.bind(a,2441,23)),Promise.resolve().then(a.bind(a,5582))},8052:(e,t,a)=>{"use strict";a.d(t,{Nt:()=>o,dL:()=>d,g0:()=>i,nO:()=>c});var r=a(3283),s=a(4773);let l={backend:"embedded",dataDir:"../../workbench/nextjs-turbopack/.next/workflow-data",port:"3000",env:"production"},n=["backend","env","authToken","project","team","port","dataDir"];function o(){let e=(0,r.useSearchParams)();return(0,s.useMemo)(()=>{let t={...l};for(let a of n){let r=e.get(a);r&&(t[a]=r)}return t},[e])}function d(){let e=(0,r.useRouter)(),t=(0,r.usePathname)(),a=(0,r.useSearchParams)();return(0,s.useMemo)(()=>r=>{let s=new URLSearchParams(a.toString());for(let e of n){let t=r[e];null!=t&&""!==t?(t!==l[e]||a.has(e))&&s.set(e,t):s.delete(e)}let o=s.toString(),d=o?"".concat(t,"?").concat(o):t;e.push(d)},[e,t,a])}function i(e,t,a){let r=function(e){let t=new URLSearchParams;for(let a of n){let r=e[a];null!=r&&""!==r&&r!==l[a]&&t.set(a,r)}return t}(t);if(a)for(let[e,t]of Object.entries(a))null!=t&&""!==t&&r.set(e,t);let s=r.toString();return s?"".concat(e,"?").concat(s):e}let c=e=>({WORKFLOW_TARGET_WORLD:e.backend,WORKFLOW_VERCEL_ENV:e.env,WORKFLOW_VERCEL_AUTH_TOKEN:e.authToken,WORKFLOW_VERCEL_PROJECT:e.project,WORKFLOW_VERCEL_TEAM:e.team})},8257:(e,t,a)=>{"use strict";a.d(t,{ZI:()=>i,k$:()=>d,m_:()=>o});var r=a(5386),s=a(8251),l=a(4773),n=a(2287);s.Kq;let o=s.bL,d=s.l9,i=l.forwardRef((e,t)=>{let{className:a,sideOffset:l=4,...o}=e;return(0,r.jsx)(s.UC,{ref:t,sideOffset:l,className:(0,n.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})});i.displayName=s.UC.displayName},9432:(e,t,a)=>{"use strict";a.d(t,{bq:()=>f,eb:()=>x,gC:()=>h,l6:()=>c,yv:()=>u});var r=a(5386),s=a(2304),l=a(406),n=a(7163),o=a(7536),d=a(4773),i=a(2287);let c=s.bL;s.YJ;let u=s.WT,f=d.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsxs)(s.l9,{ref:t,className:(0,i.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[n,(0,r.jsx)(s.In,{asChild:!0,children:(0,r.jsx)(l.A,{className:"h-4 w-4 opacity-50"})})]})});f.displayName=s.l9.displayName;let m=d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.PP,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",a),...l,children:(0,r.jsx)(n.A,{className:"h-4 w-4"})})});m.displayName=s.PP.displayName;let p=d.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.wn,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})});p.displayName=s.wn.displayName;let h=d.forwardRef((e,t)=>{let{className:a,children:l,position:n="popper",...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsxs)(s.UC,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:n,...o,children:[(0,r.jsx)(m,{}),(0,r.jsx)(s.LM,{className:(0,i.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),(0,r.jsx)(p,{})]})})});h.displayName=s.UC.displayName,d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.JU,{ref:t,className:(0,i.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...l})}).displayName=s.JU.displayName;let x=d.forwardRef((e,t)=>{let{className:a,children:l,...n}=e;return(0,r.jsxs)(s.q7,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(o.A,{className:"h-4 w-4"})})}),(0,r.jsx)(s.p4,{children:l})]})});x.displayName=s.q7.displayName,d.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,r.jsx)(s.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...l})}).displayName=s.wv.displayName}},e=>{e.O(0,[880,98,724,687,909,624,358],()=>e(e.s=7923)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{3569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>O});var a=t(5386),r=t(3283),n=t(7394),l=t(1402),d=t(5456),o=t(8734),i=t(4773),c=t(8414),h=t.n(c),m=t(2287);let x=i.forwardRef((e,s)=>{let{className:t,href:r,children:n,...l}=e,d=r.startsWith("http")?r:"https://useworkflow.dev/docs/".concat(r.replace(/^\//,""));return(0,a.jsx)(h(),{href:d,className:(0,m.cn)("font-medium underline underline-offset-4 transition-colors",t),style:{color:"var(--ds-blue-600)"},target:"_blank",rel:"noopener noreferrer",ref:s,...l,children:n})});x.displayName="DocsLink";var u=t(8257),f=t(8753),j=t(316),p=t(8258);let g=(0,p.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),N=(0,p.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var v=t(7122),w=t(6016);let y=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:s,className:(0,m.cn)("w-full caption-bottom text-sm",t),...r})})});y.displayName="Table";let b=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("thead",{ref:s,className:(0,m.cn)("[&_tr]:border-b",t),...r})});b.displayName="TableHeader";let k=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tbody",{ref:s,className:(0,m.cn)("[&_tr:last-child]:border-0",t),...r})});k.displayName="TableBody",i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tfoot",{ref:s,className:(0,m.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...r})}).displayName="TableFooter";let C=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("tr",{ref:s,className:(0,m.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...r})});C.displayName="TableRow";let I=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("th",{ref:s,className:(0,m.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...r})});I.displayName="TableHead";let R=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("td",{ref:s,className:(0,m.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r})});R.displayName="TableCell",i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("caption",{ref:s,className:(0,m.cn)("mt-4 text-sm text-muted-foreground",t),...r})}).displayName="TableCaption";let M=e=>{var s,t;return(null==(s=e.message)?void 0:s.includes("403"))||(null==(t=e.message)?void 0:t.includes("Forbidden"))||403===e.status?"Your current Vercel account does not have access to this data. Please use `vercel login` to log in, or use `vercel switch` to ensure you can access the correct team.":e instanceof Error?e.message:"An error occurred"};var A=t(9432);function S(e){let{value:s,onChange:t,options:r=[5,10,20,50,100]}=e;return(0,a.jsxs)(A.l6,{value:String(s),onValueChange:e=>t(Number(e)),children:[(0,a.jsx)(A.bq,{className:"h-9",children:(0,a.jsx)(A.yv,{})}),(0,a.jsx)(A.gC,{children:r.map(e=>(0,a.jsx)(A.eb,{value:String(e),children:(0,a.jsxs)("span",{className:"pr-2",children:[e," / page"]})},e))})]})}function L(e){let{className:s,...t}=e;return(0,a.jsx)("div",{className:(0,m.cn)("animate-pulse rounded-md bg-muted",s),...t})}let T=e=>{let{rows:s}=e;return Array.from({length:s},(e,s)=>(0,a.jsxs)("div",{className:"flex gap-4 py-3",children:[(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"})]},"skeleton-row-".concat(s)))};function E(e){let{title:s,rows:t=m.yQ,bodyOnly:r=!1}=e;return r?(0,a.jsx)(T,{rows:t}):(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[s?(0,a.jsx)(L,{className:"h-6 w-32"}):(0,a.jsx)(L,{className:"h-6 w-48"}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(L,{className:"h-4 w-24"}),(0,a.jsx)(L,{className:"h-9 w-24"})]})]}),(0,a.jsxs)("div",{className:"space-y-3",style:{minHeight:"512px"},children:[(0,a.jsxs)("div",{className:"flex gap-4 pb-3 border-b",children:[(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/4"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"}),(0,a.jsx)(L,{className:"h-4 w-1/6"})]}),(0,a.jsx)(T,{rows:t})]})]})}function _(e){let{items:s,columns:t,title:r,loading:n=!1,error:l=null,getItemKey:d,onRowClick:o,isRowSelected:c,onRefresh:h,emptyMessage:x="No items found",headerActions:u,warningMessage:f,hasHitLimit:p=!1,hasReachedEnd:A=!1}=e,[L,T]=(0,i.useState)(m.yQ),[_,H]=(0,i.useState)(1),P=Math.max(1,Math.ceil(s.length/L)),F=(_-1)*L,z=Math.min(F+L,s.length),D=s.slice(F,z);return((0,i.useEffect)(()=>{_>P&&H(1)},[_,P]),n&&0===s.length)?(0,a.jsx)(E,{title:r}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h2",{className:"text-2xl my-4 font-semibold leading-none tracking-tight",children:r}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[u,h&&(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:h,disabled:n,children:[(0,a.jsx)(j.A,{className:n?"animate-spin":""}),"Refresh"]})]})]}),f&&(0,a.jsxs)(v.Fc,{variant:"destructive",className:"mb-4",children:[(0,a.jsx)(v.XL,{children:"Warning"}),(0,a.jsx)(v.TN,{children:f})]}),l?(0,a.jsxs)(v.Fc,{variant:"destructive",children:[(0,a.jsxs)(v.XL,{children:["Error loading ",r.toLowerCase()]}),(0,a.jsx)(v.TN,{children:M(l)})]}):0===s.length?(0,a.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:x}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,{children:[(0,a.jsx)(b,{children:(0,a.jsx)(C,{children:t.map(e=>(0,a.jsx)(I,{children:e.header},e.key))})}),(0,a.jsx)(k,{children:D.map(e=>{var s;let r=d(e),n=null!=(s=null==c?void 0:c(e))&&s;return(0,a.jsx)(C,{className:"".concat(o?"cursor-pointer":""," ").concat(n?"bg-accent":"hover:bg-accent/50"),onClick:()=>null==o?void 0:o(e),children:t.map(s=>(0,a.jsx)(R,{children:s.render(e)},"".concat(r,"-").concat(s.key)))},r)})})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mt-4",children:[(0,a.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Showing ",F+1,"-",z," of ",s.length,p&&" (limit reached)"]}),(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(S,{value:L,onChange:e=>{T(e),H(1)}}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{_>1&&H(e=>e-1)},disabled:1===_,children:[(0,a.jsx)(g,{}),"Previous"]}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{_<P&&H(e=>e+1)},disabled:_>=P,children:["Next",(0,a.jsx)(N,{})]})]})]}),_===P&&!A&&(0,a.jsx)("div",{className:"text-xs text-muted-foreground text-center py-2 bg-muted/30 rounded",children:p?"Displaying first 1,000 items. More data may be available but cannot be fetched due to the item limit.":"More data might be available but cannot currently be fetched."})]})]})]})}var H=t(5988);function P(e){let{config:s,hooks:t,loading:r,error:n,initialLoadComplete:l,hasHitLimit:d=!1,hasReachedEnd:o=!1,onHookClick:c,selectedHookId:h,onCloseDetailSidebar:m}=e,[j,p]=(0,i.useState)(new Map);(0,i.useEffect)(()=>{t.length&&(async()=>{let e=new Map;for(let s of t)e.set(s.hookId,{count:0,hasMore:!1,loading:!0});p(e);let a=await Promise.allSettled(t.map(async e=>{try{let t=await (0,f.u)(s,e.hookId,void 0,"asc",100),a=t.data.filter(e=>"hook_received"===e.eventType).length;return{hookId:e.hookId,count:a,hasMore:t.hasMore}}catch(s){return{hookId:e.hookId,count:s,hasMore:!1}}}));p(e=>{let s=new Map(e);for(let e=0;e<a.length;e++){let r=a[e],n=t[e].hookId;"fulfilled"===r.status?s.set(r.value.hookId,{count:r.value.count,hasMore:r.value.hasMore,loading:!1}):s.set(n,{count:0,hasMore:!1,loading:!1})}return s})})()},[t,s]);let g=[{key:"hookId",header:"Hook ID",render:e=>(0,a.jsx)("span",{className:"font-mono text-xs",children:e.hookId})},{key:"runId",header:"Run ID",render:e=>(0,a.jsx)("span",{className:"font-mono text-xs",children:e.runId})},{key:"token",header:"Token",render:e=>(0,a.jsxs)("span",{className:"font-mono text-xs",children:[e.token.substring(0,12),"..."]})},{key:"createdAt",header:"Created",render:e=>e.createdAt?(0,a.jsx)(H.s,{date:e.createdAt}):"-"},{key:"invocations",header:"Invocations",render:e=>{let s=j.get(e.hookId);if(!s||s.loading)return(0,a.jsx)("span",{className:"text-muted-foreground text-xs",children:"..."});if(s.count instanceof Error)return(0,a.jsx)("span",{className:"text-muted-foreground",children:"Error"});if(0===s.count)return(0,a.jsx)("span",{className:"text-muted-foreground",children:"0"});let t=s.hasMore?"".concat(s.count,"+"):"".concat(s.count);return s.hasMore?(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsx)("span",{className:"font-semibold cursor-help",children:t})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)("div",{className:"text-xs",children:"Showing first 100 invocations. There may be more."})})]}):(0,a.jsx)("span",{className:"font-semibold",children:t})}}];return(0,a.jsx)(_,{items:t,columns:g,title:"Hooks",loading:r&&!l,error:n,getItemKey:e=>e.hookId,onRowClick:e=>c(e.hookId),isRowSelected:e=>e.hookId===h,emptyMessage:(0,a.jsxs)("div",{children:["No active hooks found."," ",(0,a.jsx)(x,{href:"api-reference/vercel-workflow/create-hook",children:"Learn about hooks"})]}),hasHitLimit:d,hasReachedEnd:o})}function F(e){let{config:s,runId:t,onHookClick:r,selectedHookId:n,onCloseDetailSidebar:i}=e,{items:c,loading:h,error:m,hasHitLimit:x,hasReachedEnd:u,initialLoadComplete:f}=(0,d.u)({createKey:(e,s)=>(0,l.wk)(e.config,"hooks-exhaustive",e.runId||"all",s,"asc"),fetcher:async(e,s,t,a)=>(0,o.h)(e.config,e.runId,s,t,a),params:{config:s,runId:t},live:!1});return(0,a.jsx)(P,{config:s,runId:t,hooks:c,loading:h,error:m||void 0,initialLoadComplete:f,hasHitLimit:x,hasReachedEnd:u,onHookClick:r,selectedHookId:n,onCloseDetailSidebar:i})}var z=t(2931);let D=(0,p.A)("ArrowDownAZ",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]),$=(0,p.A)("ArrowUpAZ",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]);var V=t(3039),Z=t(8052),q=t(3006),U=t(6810);function W(e){var s;let{config:t,onRunClick:r}=e,[n,l]=(0,i.useState)("desc"),[d,o]=(0,i.useState)(m.yQ),[c,h]=(0,i.useState)(()=>new Date),f=(0,i.useMemo)(()=>(0,Z.nO)(t),[t]),{data:p,error:A,nextPage:L,previousPage:T,hasNextPage:_,hasPreviousPage:P,reload:F,pageInfo:W}=(0,q.b_)(f,{sortOrder:n,limit:d}),O=p.isLoading;return!O||(null==p?void 0:p.data)?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between my-4",children:[(0,a.jsx)("h2",{className:"text-2xl my-2 font-semibold leading-none tracking-tight",children:"Runs"}),(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsxs)(a.Fragment,{children:[c&&(0,a.jsx)(H.s,{date:c,className:"text-sm text-muted-foreground",type:"distance"}),(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{h(()=>new Date),F()},disabled:O,children:[(0,a.jsx)(j.A,{className:O?"animate-spin":""}),"Refresh"]})}),(0,a.jsx)(u.ZI,{children:"Note that this resets pages"})]}),(0,a.jsxs)(u.m_,{children:[(0,a.jsx)(u.k$,{asChild:!0,children:(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:()=>{l(e=>"desc"===e?"asc":"desc")},disabled:O,children:["desc"===n?(0,a.jsx)(D,{className:"h-4 w-4"}):(0,a.jsx)($,{className:"h-4 w-4"}),"desc"===n?"Newest":"Oldest"]})}),(0,a.jsx)(u.ZI,{children:"desc"===n?"Showing newest first":"Showing oldest first"})]})]})})]}),A?(0,a.jsxs)(v.Fc,{variant:"destructive",children:[(0,a.jsx)(V.A,{className:"h-4 w-4"}),(0,a.jsx)(v.XL,{children:"Error loading runs"}),(0,a.jsx)(v.TN,{children:M(A)})]}):O||p.data&&0!==p.data.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)(C,{children:[(0,a.jsx)(I,{children:"Workflow"}),(0,a.jsx)(I,{children:"Run ID"}),(0,a.jsx)(I,{children:"Status"}),(0,a.jsx)(I,{children:"Started"}),(0,a.jsx)(I,{children:"Completed"})]})}),(0,a.jsx)(k,{children:null==(s=p.data)?void 0:s.map(e=>{var s;return(0,a.jsxs)(C,{className:"cursor-pointer group relative",onClick:()=>r(e.runId),children:[(0,a.jsx)(R,{children:(null==(s=(0,z.s)(e.workflowName))?void 0:s.shortName)||"?"}),(0,a.jsx)(R,{className:"font-mono text-xs",children:e.runId}),(0,a.jsx)(R,{children:(0,a.jsx)(U.W,{status:e.status,context:e})}),(0,a.jsx)(R,{children:e.startedAt?(0,a.jsx)(H.s,{date:e.startedAt}):"-"}),(0,a.jsx)(R,{children:e.completedAt?(0,a.jsx)(H.s,{date:e.completedAt}):"-"})]},e.runId)})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-4",children:[(0,a.jsx)("div",{className:"text-sm text-muted-foreground",children:W}),(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)(S,{value:d,onChange:o}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:T,disabled:!P,children:[(0,a.jsx)(g,{}),"Previous"]}),(0,a.jsxs)(w.$,{variant:"outline",size:"sm",onClick:L,disabled:!_,children:["Next",(0,a.jsx)(N,{})]})]})]})]}):(0,a.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:["No workflow runs found."," ",(0,a.jsx)(x,{href:"foundations/concepts",children:"Learn about workflows"})]})]}):(0,a.jsx)(E,{title:"Runs"})}function O(){let e=(0,r.useRouter)(),s=(0,r.useSearchParams)(),t=(0,Z.Nt)(),l=s.get("sidebar"),d=s.get("hookId")||s.get("hook"),o=s=>{s?e.push((0,Z.g0)("/",t,{sidebar:"hook",hookId:s})):e.push((0,Z.g0)("/",t))};return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(n.t,{title:"Runs Error",description:"Failed to load workflow runs. Please try refreshing the page.",children:(0,a.jsx)(W,{config:t,onRunClick:(s,a)=>{a?e.push((0,Z.g0)("/run/".concat(s,"/streams/").concat(a),t)):e.push((0,Z.g0)("/run/".concat(s),t))}})}),(0,a.jsx)(n.t,{title:"Hooks Error",description:"Failed to load hooks. Please try refreshing the page.",children:(0,a.jsx)(F,{config:t,onHookClick:o,selectedHookId:"hook"===l&&d?d:void 0,onCloseDetailSidebar:()=>o(void 0)})})]})}},6741:(e,s,t)=>{Promise.resolve().then(t.bind(t,3569))},9432:(e,s,t)=>{"use strict";t.d(s,{bq:()=>m,eb:()=>j,gC:()=>f,l6:()=>c,yv:()=>h});var a=t(5386),r=t(2304),n=t(406),l=t(7163),d=t(7536),o=t(4773),i=t(2287);let c=r.bL;r.YJ;let h=r.WT,m=o.forwardRef((e,s)=>{let{className:t,children:l,...d}=e;return(0,a.jsxs)(r.l9,{ref:s,className:(0,i.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...d,children:[l,(0,a.jsx)(r.In,{asChild:!0,children:(0,a.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=r.l9.displayName;let x=o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.PP,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...n,children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})});x.displayName=r.PP.displayName;let u=o.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,a.jsx)(r.wn,{ref:s,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...l,children:(0,a.jsx)(n.A,{className:"h-4 w-4"})})});u.displayName=r.wn.displayName;let f=o.forwardRef((e,s)=>{let{className:t,children:n,position:l="popper",...d}=e;return(0,a.jsx)(r.ZL,{children:(0,a.jsxs)(r.UC,{ref:s,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,...d,children:[(0,a.jsx)(x,{}),(0,a.jsx)(r.LM,{className:(0,i.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(u,{})]})})});f.displayName=r.UC.displayName,o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.JU,{ref:s,className:(0,i.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...n})}).displayName=r.JU.displayName;let j=o.forwardRef((e,s)=>{let{className:t,children:n,...l}=e;return(0,a.jsxs)(r.q7,{ref:s,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})}),(0,a.jsx)(r.p4,{children:n})]})});j.displayName=r.q7.displayName,o.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.wv,{ref:s,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",t),...n})}).displayName=r.wv.displayName}},e=>{e.O(0,[222,98,724,412,687,31,909,624,358],()=>e(e.s=6741)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417],{3720:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>_});var a=t(5386),r=t(3283),n=t(7394),c=t(2931),l=t(4773),d=t(1402),i=t(5456),o=t(8052),x=t(2287),u=t(8033);let h=(0,u.createServerReference)("7c54d613968ac5689b90380f12582dc5ae669a61ec",u.callServer,void 0,u.findSourceMapURL,"fetchSteps"),m=(0,u.createServerReference)("7ea098a35f1d353c59ab63afdfa065e9a1ac2e7ae2",u.callServer,void 0,u.findSourceMapURL,"fetchEvents");var f=t(8734);let v=(0,u.createServerReference)("6013dbffaa94dc37d013770c8d7383147ca7323e39",u.callServer,void 0,u.findSourceMapURL,"cancelRun");var p=t(3006),g=t(6883),j=t(8258);let y=(0,j.A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var N=t(8257),k=t(6016);function b(e){let{canCancel:s,cancelling:t,cancelDisabledReason:r,onCancel:n}=e;return(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsx)("span",{children:(0,a.jsxs)(k.$,{variant:"outline",size:"sm",onClick:n,disabled:!s||t,children:[(0,a.jsx)(y,{className:"h-4 w-4"}),t?"Cancelling...":"Cancel"]})})}),r&&(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:r})})]})}var w=t(7536);let I=(0,j.A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function C(e){let{text:s,children:t,className:r}=e,[n,c]=(0,l.useState)(!1),d=async()=>{try{await navigator.clipboard.writeText(s),c(!0),setTimeout(()=>c(!1),2e3)}catch(e){console.error("Failed to copy text:",e)}};return(0,a.jsxs)("div",{className:(0,x.cn)("flex items-center gap-2 group",r),children:[t,(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:d,className:"opacity-0 group-hover:opacity-100 transition-opacity","aria-label":"Copy to clipboard",children:n?(0,a.jsx)(w.A,{className:"h-3 w-3 text-green-600"}):(0,a.jsx)(I,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})}),(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:n?"Copied!":"Copy to clipboard"})})]})]})}function S(e){let{hasError:s,errorMessage:t}=e;return(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)(N.m_,{children:[(0,a.jsx)(N.k$,{asChild:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full ".concat(s?"bg-red-500":"bg-green-500 animate-pulse")}),(0,a.jsx)("span",{className:"text-xs $\n hasError\n ? 'text-red-600 dark:text-red-400'\n : 'text-muted-foreground'",children:s?"Error":"Live"})]})}),(0,a.jsx)(N.ZI,{children:(0,a.jsx)("p",{children:s?"Error updating data: ".concat(t):"Content updates every ".concat(x.Oc/1e3," seconds")})})]})})}var R=t(5988),E=t(6810);function A(e){var s;let{config:t,runId:r,selectedId:n}=e,[u,j]=(0,l.useState)(!1),[y,N]=(0,l.useState)(Date.now()),{data:k,isLoading:w,error:I,mutate:A}=(0,d.Xt)(t,r,{refreshInterval:x.Oc});(0,l.useEffect)(()=>{k&&N(Date.now())},[k]);let{items:_,error:L,loading:M}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"steps-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>h(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),{items:z,error:D}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"events-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>m(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),{items:$,error:O}=(0,i.u)({createKey:(e,s)=>(0,d.wk)(e.config,"hooks-exhaustive",e.runId,s,"asc"),fetcher:async(e,s,t,a)=>(0,f.h)(e.config,e.runId,s,t,a),params:{config:t,runId:r},live:!0}),P=async()=>{if(!u)try{j(!0),await v(t,r),await A()}catch(e){console.error("Failed to cancel run:",e)}finally{j(!1)}};if(w)return(0,a.jsx)("div",{className:"text-center py-8",children:"Loading..."});if(I)return(0,a.jsxs)("div",{className:"text-center py-8",children:["Error: ",I.message]});if(!k)return(0,a.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"Run not found"});let U=(null==(s=(0,c.s)(k.workflowName))?void 0:s.shortName)||"?",F=I||L||D||O,K=F?(null==I?void 0:I.message)||(null==L?void 0:L.message)||(null==D?void 0:D.message)||(null==O?void 0:O.message)||"Unknown error":"",Z="pending"===k.status||"running"===k.status,T=u?"Cancelling run...":"completed"===k.status?"Run has already completed":"failed"===k.status?"Run has already failed":"cancelled"===k.status?"Run has already been cancelled":"";return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(g.E,{href:(0,o.g0)("/",t)}),(0,a.jsxs)("div",{className:"space-y-4 pb-6 border-b",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)("h1",{className:"text-2xl font-semibold",children:U})}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)(S,{hasError:F,errorMessage:K}),(0,a.jsx)(b,{canCancel:Z,cancelling:u,cancelDisabledReason:T,onCancel:P})]})]}),(0,a.jsxs)("div",{className:"flex items-start gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Status"}),(0,a.jsx)(E.W,{status:k.status,context:k})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Run ID"}),(0,a.jsx)(C,{text:k.runId,children:(0,a.jsx)("div",{className:"text-sm mt-0.5 font-mono",children:k.runId})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Queued"}),(0,a.jsx)("div",{className:"text-sm",children:k.createdAt?(0,a.jsx)(R.s,{date:k.createdAt}):"-"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Started"}),(0,a.jsx)("div",{className:"text-sm",children:k.startedAt?(0,a.jsx)(R.s,{date:k.startedAt}):"-"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"Completed"}),(0,a.jsx)("div",{className:"text-sm",children:k.completedAt?(0,a.jsx)(R.s,{date:k.completedAt}):"-"})]})]})]}),(0,a.jsx)(p.J9,{steps:_,events:z,hooks:$,config:t,run:k,isLoading:M})]})}function _(){let e=(0,r.useParams)(),s=(0,r.useSearchParams)(),t=(0,o.Nt)(),c=e.runId,l=s.get("stepId")||s.get("step"),d=s.get("eventId")||s.get("event"),i=s.get("hookId")||s.get("hook");return(0,a.jsx)(n.t,{title:"Run Detail Error",description:"Failed to load run details. Please try navigating back to the home page.",children:(0,a.jsx)(A,{config:t,runId:c,selectedId:l||d||i||void 0})})}},6883:(e,s,t)=>{"use strict";t.d(s,{E:()=>l});var a=t(5386);let r=(0,t(8258).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var n=t(8414),c=t.n(n);function l(e){let{href:s,label:t="Back"}=e;return(0,a.jsxs)(c(),{href:s,className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-2",children:[(0,a.jsx)(r,{className:"h-4 w-4"}),t]})}},8252:(e,s,t)=>{Promise.resolve().then(t.bind(t,3720))}},e=>{e.O(0,[222,98,724,412,31,909,624,358],()=>e(e.s=8252)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[627],{316:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(8258).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},2287:(e,t,r)=>{"use strict";r.d(t,{$g:()=>c,Oc:()=>o,cn:()=>i,yQ:()=>n});var a=r(2928),s=r(8997);let n=10;function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}let o=5e3;function c(e,t,r){return r?"Page ".concat(e," of ").concat(t,"+"):"Page ".concat(e," of ").concat(t)}},2338:(e,t,r)=>{"use strict";r.d(t,{Wu:()=>d,ZB:()=>c,Zp:()=>i,aR:()=>o});var a=r(5386),s=r(4773),n=r(2287);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...s})});i.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...s})});o.displayName="CardHeader";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",r),...s})});c.displayName="CardTitle",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})}).displayName="CardDescription";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...s})});d.displayName="CardContent",s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...s})}).displayName="CardFooter"},3128:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var a=r(5386),s=r(3283),n=r(7394),i=r(4773),o=r(2338),c=r(8052),d=r(8033);let l=(0,d.createServerReference)("703f93a1770dad4c2e2983abd813fe98dec4ba9907",d.callServer,void 0,d.findSourceMapURL,"readStream");var u=r(6883);function f(e){let{config:t,streamId:r}=e,n=(0,s.useParams)().runId,[d,f]=(0,i.useState)([]),[h,m]=(0,i.useState)(!0),[x,g]=(0,i.useState)(null),v=(0,i.useRef)(null),p=(0,i.useRef)(null),b=(0,i.useRef)(0);(0,i.useEffect)(()=>{v.current&&(v.current.scrollTop=v.current.scrollHeight)},[d.length]),(0,i.useEffect)(()=>{let e=!0;p.current=new AbortController;let a=()=>{e&&m(!1)},s=t=>{if(e&&t){let e=b.current++;f(r=>[...r,{id:e,text:t}])}},n=async(e,t)=>{for(;;){var r;if(null==(r=p.current)?void 0:r.signal.aborted)break;let{value:n,done:i}=await e.read();if(i){a();break}n&&n.byteLength>0&&s(t.decode(n,{stream:!0}))}};return(async()=>{try{let e=(await l(t,r)).getReader(),a=new TextDecoder;await n(e,a)}catch(t){e&&(g(t instanceof Error?t.message:String(t)),m(!1))}})(),()=>{e=!1,p.current&&p.current.abort()}},[t,r]);let j=n?(0,c.g0)("/run/".concat(n),t):(0,c.g0)("/",t);return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(u.E,{href:j}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(o.ZB,{className:"font-mono text-sm",children:r}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsx)("span",{className:"text-sm ".concat(h?"text-green-600 dark:text-green-400":"text-gray-600 dark:text-gray-400"),children:h?"● Live":"● Closed"})})]})}),(0,a.jsx)(o.Wu,{children:(0,a.jsx)("div",{ref:v,className:"bg-black text-green-400 font-mono text-sm p-4 rounded-md h-[600px] overflow-auto whitespace-pre-wrap break-words",children:x?(0,a.jsxs)("div",{className:"text-red-400",children:[(0,a.jsx)("div",{children:"Error reading stream:"}),(0,a.jsx)("div",{children:x})]}):0===d.length?(0,a.jsx)("div",{className:"text-gray-500",children:h?"Waiting for stream data...":"Stream is empty"}):(0,a.jsx)(a.Fragment,{children:d.map(e=>(0,a.jsx)("span",{children:e.text},"".concat(r,"-chunk-").concat(e.id)))})})})]})]})}function h(){let e=(0,s.useParams)(),t=(0,c.Nt)(),r=e.streamId;return(0,a.jsx)(n.t,{title:"Stream Error",description:"Failed to load stream data. Please try navigating back and selecting the stream again.",children:(0,a.jsx)(f,{config:t,streamId:r})})}},3686:(e,t,r)=>{Promise.resolve().then(r.bind(r,3128))},6016:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var a=r(5386),s=r(9280),n=r(7586),i=r(4773),o=r(2287);let c=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=i.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:d=!1,...l}=e,u=d?s.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(c({variant:n,size:i,className:r})),ref:t,...l})});d.displayName="Button"},6883:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var a=r(5386);let s=(0,r(8258).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var n=r(8414),i=r.n(n);function o(e){let{href:t,label:r="Back"}=e;return(0,a.jsxs)(i(),{href:t,className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-2",children:[(0,a.jsx)(s,{className:"h-4 w-4"}),r]})}},7122:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>c,TN:()=>l,XL:()=>d});var a=r(5386),s=r(7586),n=r(4773),i=r(2287);let o=(0,s.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:s,...n}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,i.cn)(o({variant:s}),r),...n})});c.displayName="Alert";let d=n.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});d.displayName="AlertTitle";let l=n.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",r),...s})});l.displayName="AlertDescription"},7394:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var a=r(5386),s=r(3039),n=r(316),i=r(4773),o=r(7122),c=r(6016),d=r(2338);class l extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Error caught by boundary:",e,t)}render(){return this.state.hasError&&this.state.error?this.props.fallback?this.props.fallback(this.state.error,this.handleReset):(0,a.jsxs)(d.Zp,{className:"border-destructive/50 bg-destructive/5",children:[(0,a.jsx)(d.aR,{children:(0,a.jsxs)(d.ZB,{className:"flex items-center gap-2 text-destructive",children:[(0,a.jsx)(s.A,{className:"h-5 w-5"}),this.props.title||"Error"]})}),(0,a.jsxs)(d.Wu,{className:"space-y-4",children:[(0,a.jsxs)(o.Fc,{variant:"destructive",children:[(0,a.jsx)(s.A,{className:"h-4 w-4"}),(0,a.jsx)(o.XL,{children:"Something went wrong"}),(0,a.jsx)(o.TN,{children:this.props.description||"An unexpected error occurred in this section."})]}),(0,a.jsxs)("div",{className:"bg-muted p-3 rounded-md text-sm font-mono text-muted-foreground overflow-auto max-h-48",children:[(0,a.jsx)("div",{className:"text-xs font-semibold mb-2",children:"Error details:"}),(0,a.jsx)("div",{className:"whitespace-pre-wrap break-words text-xs",children:this.state.error.message}),this.state.error.stack&&(0,a.jsx)("div",{className:"mt-2 opacity-60 text-xs",children:this.state.error.stack})]}),!1!==this.props.showReset&&(0,a.jsxs)(c.$,{variant:"outline",size:"sm",onClick:this.handleReset,className:"gap-2",children:[(0,a.jsx)(n.A,{className:"h-4 w-4"}),"Try again"]})]})]}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}}},8052:(e,t,r)=>{"use strict";r.d(t,{Nt:()=>o,dL:()=>c,g0:()=>d,nO:()=>l});var a=r(3283),s=r(4773);let n={backend:"embedded",dataDir:"../../workbench/nextjs-turbopack/.next/workflow-data",port:"3000",env:"production"},i=["backend","env","authToken","project","team","port","dataDir"];function o(){let e=(0,a.useSearchParams)();return(0,s.useMemo)(()=>{let t={...n};for(let r of i){let a=e.get(r);a&&(t[r]=a)}return t},[e])}function c(){let e=(0,a.useRouter)(),t=(0,a.usePathname)(),r=(0,a.useSearchParams)();return(0,s.useMemo)(()=>a=>{let s=new URLSearchParams(r.toString());for(let e of i){let t=a[e];null!=t&&""!==t?(t!==n[e]||r.has(e))&&s.set(e,t):s.delete(e)}let o=s.toString(),c=o?"".concat(t,"?").concat(o):t;e.push(c)},[e,t,r])}function d(e,t,r){let a=function(e){let t=new URLSearchParams;for(let r of i){let a=e[r];null!=a&&""!==a&&a!==n[r]&&t.set(r,a)}return t}(t);if(r)for(let[e,t]of Object.entries(r))null!=t&&""!==t&&a.set(e,t);let s=a.toString();return s?"".concat(e,"?").concat(s):e}let l=e=>({WORKFLOW_TARGET_WORLD:e.backend,WORKFLOW_VERCEL_ENV:e.env,WORKFLOW_VERCEL_AUTH_TOKEN:e.authToken,WORKFLOW_VERCEL_PROJECT:e.project,WORKFLOW_VERCEL_TEAM:e.team})}},e=>{e.O(0,[98,909,624,358],()=>e(e.s=3686)),_N_E=e.O()}]);
|