nestlens 0.9.0 → 0.9.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.
Files changed (64) hide show
  1. package/dist/dashboard/public/assets/{BatchDetailView-D8PKMRJK.js → BatchDetailView-CNyv7Vc1.js} +1 -1
  2. package/dist/dashboard/public/assets/{BatchesPage-DT5Mywoo.js → BatchesPage-BrvAux3V.js} +1 -1
  3. package/dist/dashboard/public/assets/{CacheDetailView-BKg5s6do.js → CacheDetailView-CtmDMMR2.js} +1 -1
  4. package/dist/dashboard/public/assets/{CachePage-Dv0sIWfb.js → CachePage-D-LhEY8p.js} +1 -1
  5. package/dist/dashboard/public/assets/{CommandDetailView-34Fp3Zse.js → CommandDetailView-B_6u-4-M.js} +1 -1
  6. package/dist/dashboard/public/assets/{CommandsPage-DfJBmcAu.js → CommandsPage-BtMSnG2A.js} +1 -1
  7. package/dist/dashboard/public/assets/{CopyButton-CVTvd0EZ.js → CopyButton-C2sNp4HP.js} +1 -1
  8. package/dist/dashboard/public/assets/{DashboardPage-Bl0QYNJ5.js → DashboardPage-wUYPGV_y.js} +1 -1
  9. package/dist/dashboard/public/assets/{DataTable-DNJpoFzh.js → DataTable-PCSvmOPj.js} +1 -1
  10. package/dist/dashboard/public/assets/{DetailRow-CouZ8riB.js → DetailRow-CfonsGvS.js} +1 -1
  11. package/dist/dashboard/public/assets/{DumpDetailView-B6-Nre38.js → DumpDetailView-DGy7eSQl.js} +1 -1
  12. package/dist/dashboard/public/assets/{DumpsPage-Cd0B4s9o.js → DumpsPage-jeUeiAuN.js} +1 -1
  13. package/dist/dashboard/public/assets/{EntryDetailPage-QTrST2MQ.js → EntryDetailPage-C5QubCqk.js} +3 -3
  14. package/dist/dashboard/public/assets/{EntrySearchInput-DqIRbpja.js → EntrySearchInput-DLuCL4Ys.js} +1 -1
  15. package/dist/dashboard/public/assets/{EventDetailView-2SmuXgrJ.js → EventDetailView-DrExHdP3.js} +1 -1
  16. package/dist/dashboard/public/assets/{EventsPage-DCpLnIob.js → EventsPage-CA-mVFw2.js} +1 -1
  17. package/dist/dashboard/public/assets/{ExceptionDetailView-DxGim-Jg.js → ExceptionDetailView-xmNdG8Nb.js} +1 -1
  18. package/dist/dashboard/public/assets/{ExceptionsPage-Qa60iwA4.js → ExceptionsPage-D6ww4tft.js} +1 -1
  19. package/dist/dashboard/public/assets/{GateDetailView-DFVtRPBk.js → GateDetailView-Db3NrQmm.js} +1 -1
  20. package/dist/dashboard/public/assets/{GatesPage-DHGIZzbG.js → GatesPage-CuEy3xE1.js} +1 -1
  21. package/dist/dashboard/public/assets/{GraphQLDetailView-DvHekddm.js → GraphQLDetailView-DZPwXidi.js} +1 -1
  22. package/dist/dashboard/public/assets/{GraphQLPage-Cft-KFpI.js → GraphQLPage-D4vF4fhg.js} +1 -1
  23. package/dist/dashboard/public/assets/{HttpClientDetailView-qU0JPxsC.js → HttpClientDetailView-7v6RERdZ.js} +1 -1
  24. package/dist/dashboard/public/assets/{HttpClientPage-Kxa5nm75.js → HttpClientPage-Dz07Icgz.js} +1 -1
  25. package/dist/dashboard/public/assets/{JobDetailView-BfAICIc4.js → JobDetailView-DrDFXY-t.js} +1 -1
  26. package/dist/dashboard/public/assets/{JobsPage-BpBk0bYd.js → JobsPage-C7MOQ5N5.js} +1 -1
  27. package/dist/dashboard/public/assets/{LogDetailView-CdSLEf4Q.js → LogDetailView-OhpY0czv.js} +1 -1
  28. package/dist/dashboard/public/assets/{LogsPage-CaCtKQZ0.js → LogsPage-CELJRQdo.js} +1 -1
  29. package/dist/dashboard/public/assets/{MailDetailView-BiBUkOXW.js → MailDetailView-rmPDboFn.js} +1 -1
  30. package/dist/dashboard/public/assets/{MailPage-DAkydOVp.js → MailPage-CPmDY6cW.js} +1 -1
  31. package/dist/dashboard/public/assets/{ModelDetailView-CXCgDnpy.js → ModelDetailView-DVh-32OU.js} +1 -1
  32. package/dist/dashboard/public/assets/{ModelsPage-BwK3r0-I.js → ModelsPage-Bi2hB6U7.js} +1 -1
  33. package/dist/dashboard/public/assets/{NotificationDetailView-Bljgzgiz.js → NotificationDetailView-C_IGKjY3.js} +1 -1
  34. package/dist/dashboard/public/assets/{NotificationsPage-DMGpuTU-.js → NotificationsPage-Bn3roYs1.js} +1 -1
  35. package/dist/dashboard/public/assets/{PageHeader-BAc6Jvef.js → PageHeader-CIBDYg8j.js} +1 -1
  36. package/dist/dashboard/public/assets/{QueriesPage-DPls44cD.js → QueriesPage-DzWPvH8G.js} +1 -1
  37. package/dist/dashboard/public/assets/QueryDetailView-RUxW9Uqs.js +29 -0
  38. package/dist/dashboard/public/assets/{RedisDetailView-Ds3Hzc8m.js → RedisDetailView-Ceo27Mx3.js} +1 -1
  39. package/dist/dashboard/public/assets/{RedisPage-DhAhXwAd.js → RedisPage-pBNy_8Qd.js} +1 -1
  40. package/dist/dashboard/public/assets/{RequestDetailView-BwTcMKOH.js → RequestDetailView-t5odupt4.js} +1 -1
  41. package/dist/dashboard/public/assets/{RequestsPage-CIHqEF5P.js → RequestsPage-B2dLu5n_.js} +1 -1
  42. package/dist/dashboard/public/assets/{ScheduleDetailView-2RmRtcvM.js → ScheduleDetailView-D8OZ-_yh.js} +1 -1
  43. package/dist/dashboard/public/assets/{SchedulePage-D3MuXtV1.js → SchedulePage-CZ_j6ucP.js} +1 -1
  44. package/dist/dashboard/public/assets/{UserCard-Cbu0ICp6.js → UserCard-Dom0aCbz.js} +1 -1
  45. package/dist/dashboard/public/assets/{ViewDetailView-rCONPvjG.js → ViewDetailView-Bxd64RN9.js} +1 -1
  46. package/dist/dashboard/public/assets/{ViewsPage-CW5aN_D5.js → ViewsPage-Bvm7RI_3.js} +1 -1
  47. package/dist/dashboard/public/assets/{calendar-DcK1CETU.js → calendar-BMPz0Z6s.js} +1 -1
  48. package/dist/dashboard/public/assets/{circle-alert-CgZfn5uS.js → circle-alert-t2lIvGjF.js} +1 -1
  49. package/dist/dashboard/public/assets/{circle-check-big-1S8vooWx.js → circle-check-big-DfHJ1LXS.js} +1 -1
  50. package/dist/dashboard/public/assets/{circle-x-BOe5goDy.js → circle-x-Cgixh9fi.js} +1 -1
  51. package/dist/dashboard/public/assets/{eye-PnSIQ7GH.js → eye-DRW5kZff.js} +1 -1
  52. package/dist/dashboard/public/assets/format-BlNP-apw.js +1 -0
  53. package/dist/dashboard/public/assets/index-DOVqOa07.js +361 -0
  54. package/dist/dashboard/public/assets/{search-D9V4itpU.js → search-DgNz5G1h.js} +1 -1
  55. package/dist/dashboard/public/assets/{send-DOt7lNQl.js → send-BKsI3HhT.js} +1 -1
  56. package/dist/dashboard/public/assets/{timer-CZxO8Y_Q.js → timer-hkll0vuQ.js} +1 -1
  57. package/dist/dashboard/public/assets/{types-DZUckfsW.js → types-nsz9P0qo.js} +1 -1
  58. package/dist/dashboard/public/assets/{users-9cJRsfQV.js → users-CTNyAW4A.js} +1 -1
  59. package/dist/dashboard/public/assets/{zap-B0E2zzJ8.js → zap-BolYLTQe.js} +1 -1
  60. package/dist/dashboard/public/index.html +1 -1
  61. package/package.json +2 -2
  62. package/dist/dashboard/public/assets/QueryDetailView-BEwgxDtv.js +0 -29
  63. package/dist/dashboard/public/assets/format-PC0kH-TG.js +0 -1
  64. package/dist/dashboard/public/assets/index-DyvNu-oR.js +0 -361
@@ -1 +0,0 @@
1
- import{g as U}from"./vendor-DBTT3jXp.js";var k={exports:{}},A;function L(){return A||(A=1,(function(b,_){(function(T,S){b.exports=S()})(globalThis,()=>(()=>{var E={949:((g,p,v)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var i=v(515),y=(function(){function l(e,t,r){t===void 0&&(t=!0),r===void 0&&(r=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=r}return l.prototype.parse=function(){var e,t,r=(e=this.expression)!==null&&e!==void 0?e:"";if(r==="@reboot")return t=["@reboot","","","","","",""],t;if(r.startsWith("@")){var n=this.parseSpecial(this.expression);t=this.extractParts(n)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},l.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *","@reboot":"@reboot"},r=t[e];if(!r)throw new Error("Unknown special expression.");return r},l.prototype.extractParts=function(e){if(!this.expression)throw new Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),r=0;r<t.length;r++)if(t[r].includes(",")){var n=t[r].split(",").map(function(a){return a.trim()}).filter(function(a){return a!==""}).map(function(a){return isNaN(Number(a))?a:Number(a)}).filter(function(a){return a!==null&&a!==""});n.length===0&&n.push("*"),n.sort(function(a,s){return a!==null&&s!==null?a-s:0}),t[r]=n.map(function(a){return a!==null?a.toString():""}).join(",")}if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(t.length==1?"":"s",". At least 5 parts are required."));if(t.length==5)t.unshift(""),t.push("");else if(t.length==6){var o=/\d{4}$/.test(t[5])||t[4]=="?"||t[2]=="?";o?t.unshift(""):t.push("")}else if(t.length>7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},l.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),e[0].indexOf("0/")==0&&(e[0]=e[0].replace("0/","*/")),e[1].indexOf("0/")==0&&(e[1]=e[1].replace("0/","*/")),e[2].indexOf("0/")==0&&(e[2]=e[2].replace("0/","*/")),e[3].indexOf("1/")==0&&(e[3]=e[3].replace("1/","*/")),e[4].indexOf("1/")==0&&(e[4]=e[4].replace("1/","*/")),e[6].indexOf("1/")==0&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(c){var d=c.replace(/\D/,""),f=d;return t.dayOfWeekStartIndexZero?d=="7"&&(f="0"):f=(parseInt(d)-1).toString(),c.replace(d,f)}),e[5]=="L"&&(e[5]="6"),e[3]=="?"&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var r={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in r)e[5]=e[5].replace(new RegExp(n,"gi"),r[n].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(c){var d=c.replace(/\D/,""),f=d;return t.monthStartIndexZero&&(f=(parseInt(d)+1).toString()),c.replace(d,f)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in o)e[4]=e[4].replace(new RegExp(a,"gi"),o[a].toString());e[0]=="0"&&(e[0]=""),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+="-".concat(e[2]));for(var s=0;s<e.length;s++)if(e[s].indexOf(",")!=-1&&(e[s]=e[s].split(",").filter(function(c){return c!==""}).join(",")||"*"),e[s]=="*/1"&&(e[s]="*"),e[s].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[s])){var u=null;switch(s){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var h=e[s].split("/");e[s]="".concat(h[0],"-").concat(u,"/").concat(h[1])}}},l.prototype.validate=function(e){var t="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},l.prototype.validateAnyRanges=function(e){i.default.secondRange(e[0]),i.default.minuteRange(e[1]),i.default.hourRange(e[2]),i.default.dayOfMonthRange(e[3]),i.default.monthRange(e[4],this.monthStartIndexZero),i.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},l.prototype.validateOnlyExpectedCharactersFound=function(e,t){var r=e.match(new RegExp("[^".concat(t,"]+"),"gi"));if(r&&r.length)throw new Error("Expression contains invalid values: '".concat(r.toString(),"'"))},l})();p.CronParser=y}),333:((g,p,v)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var i=v(823),y=v(949),l=(function(){function e(t,r){if(this.expression=t,this.options=r,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var n=Object.keys(e.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=e.locales[this.options.locale],r.use24HourTimeFormat===void 0&&(r.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,r){var n=r===void 0?{}:r,o=n.throwExceptionOnParseError,a=o===void 0?!0:o,s=n.verbose,u=s===void 0?!1:s,h=n.dayOfWeekStartIndexZero,c=h===void 0?!0:h,d=n.monthStartIndexZero,f=d===void 0?!1:d,X=n.use24HourTimeFormat,m=n.locale,w=m===void 0?null:m,x=n.logicalAndDayFields,D=x===void 0?!1:x,M={throwExceptionOnParseError:a,verbose:u,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:X,locale:w,logicalAndDayFields:D};M.tzOffset&&console.warn("'tzOffset' option has been deprecated and is no longer supported.");var I=new e(t,M);return I.getFullDescription()},e.initialize=function(t,r){r===void 0&&(r="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=r,t.load(e.locales)},e.prototype.getFullDescription=function(){var t,r,n="";try{var o=new y.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=o.parse(),this.expressionParts[0]==="@reboot")return((r=(t=this.i18n).atReboot)===null||r===void 0?void 0:r.call(t))||"Run once, at startup";var a=this.getTimeOfDayDescription(),s=this.getDayOfMonthDescription(),u=this.getMonthDescription(),h=this.getDayOfWeekDescription(),c=this.getYearDescription();n+=a+s+h+u+c,n=this.transformVerbosity(n,!!this.options.verbose),n=n.charAt(0).toLocaleUpperCase()+n.substr(1)}catch(d){if(!this.options.throwExceptionOnParseError)n=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(d)}return n},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],r=this.expressionParts[1],n=this.expressionParts[2],o="";if(!i.StringUtilities.containsAny(r,e.specialCharacters)&&!i.StringUtilities.containsAny(n,e.specialCharacters)&&!i.StringUtilities.containsAny(t,e.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,r,t);else if(!t&&r.indexOf("-")>-1&&!(r.indexOf(",")>-1)&&!(r.indexOf("/")>-1)&&!i.StringUtilities.containsAny(n,e.specialCharacters)){var a=r.split("-");o+=i.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,a[0],""),this.formatTime(n,a[1],""))}else if(!t&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!i.StringUtilities.containsAny(r,e.specialCharacters)){var s=n.split(",");o+=this.i18n.at();for(var u=0;u<s.length;u++)o+=" ",o+=this.formatTime(s[u],r,""),u<s.length-2&&(o+=","),u==s.length-2&&(o+=this.i18n.spaceAnd())}else{var h=this.getSecondsDescription(),c=this.getMinutesDescription(),d=this.getHoursDescription();if(o+=h,o&&c&&(o+=", "),o+=c,c===d)return o;o&&d&&(o+=", "),o+=d}return o},e.prototype.getSecondsDescription=function(){var t=this,r=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return i.StringUtilities.format(t.i18n.everyX0Seconds(n),n)},function(n){return t.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?t.i18n.atX0SecondsPastTheMinute(n):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(n)});return r},e.prototype.getMinutesDescription=function(){var t=this,r=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(a){return a},function(a){return i.StringUtilities.format(t.i18n.everyX0Minutes(a),a)},function(a){return t.i18n.minutesX0ThroughX1PastTheHour()},function(a){try{return a=="0"&&n.indexOf("/")==-1&&r==""?t.i18n.everyHour():parseInt(a)<20?t.i18n.atX0MinutesPastTheHour(a):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(a)}catch{return t.i18n.atX0MinutesPastTheHour(a)}});return o},e.prototype.getHoursDescription=function(){var t=this,r=this.expressionParts[2],n=0,o=[];r.split("/")[0].split(",").forEach(function(u){var h=u.split("-");h.length===2&&o.push({value:h[1],index:n+1}),n+=h.length});var a=0,s=this.getSegmentDescription(r,this.i18n.everyHour(),function(u){var h=o.find(function(d){return d.value===u&&d.index===a}),c=h&&t.expressionParts[1]!=="0";return a++,c?t.formatTime(u,"59",""):t.formatTime(u,"0","")},function(u){return i.StringUtilities.format(t.i18n.everyX0Hours(u),u)},function(u){return t.i18n.betweenX0AndX1()},function(u){return t.i18n.atX0()});return s},e.prototype.getDayOfWeekDescription=function(){var t=this,r=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,a){var s=o;o.indexOf("#")>-1?s=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(s=s.replace("L",""));var u=parseInt(s),h=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(a)[u]:r[u];if(o.indexOf("#")>-1){var c=null,d=o.substring(o.indexOf("#")+1),f=o.substring(0,o.indexOf("#"));switch(d){case"1":c=t.i18n.first(f);break;case"2":c=t.i18n.second(f);break;case"3":c=t.i18n.third(f);break;case"4":c=t.i18n.fourth(f);break;case"5":c=t.i18n.fifth(f);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":i.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var a=o.substring(0,o.indexOf("-")),s=t.expressionParts[3]!="*";return s?t.i18n.commaAndX0ThroughX1(a):t.i18n.commaX0ThroughX1(a)},function(o){var a=null;if(o.indexOf("#")>-1){var s=o.substring(o.indexOf("#")+1),u=o.substring(0,o.indexOf("#"));a=t.i18n.commaOnThe(s,u).trim()+t.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)a=t.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var h=t.expressionParts[3]!="*";h?t.options.logicalAndDayFields?a=t.i18n.commaOnlyOnX0(o):a=t.i18n.commaAndOnX0():a=t.i18n.commaOnlyOnX0(o)}return a}),n},e.prototype.getMonthDescription=function(){var t=this,r=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,a){return a&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(a)[parseInt(o)-1]:r[parseInt(o)-1]},function(o){return parseInt(o)==1?"":i.StringUtilities.format(t.i18n.commaEveryX0Months(o),o)},function(o){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()},function(o){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()});return n},e.prototype.getDayOfMonthDescription=function(){var t=this,r=null,n=this.expressionParts[3];switch(n){case"L":r=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":r=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var a=parseInt(o[0].replace("W","")),s=a==1?this.i18n.firstWeekday():i.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());r=i.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}else{var u=n.match(/L-(\d{1,2})/);if(u){var h=u[1];r=i.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(h),h);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";r=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(c){return c=="L"?t.i18n.lastDay():t.i18n.dayX0?i.StringUtilities.format(t.i18n.dayX0(),c):c},function(c){return c=="1"?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(c)},function(c){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(c)},function(c){return t.i18n.commaOnDayX0OfTheMonth(c)})}break}}return r},e.prototype.getYearDescription=function(){var t=this,r=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return i.StringUtilities.format(t.i18n.commaEveryX0Years(n),n)},function(n){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()},function(n){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()});return r},e.prototype.getSegmentDescription=function(t,r,n,o,a,s){var u=null,h=t.indexOf("/")>-1,c=t.indexOf("-")>-1,d=t.indexOf(",")>-1;if(!t)u="";else if(t==="*")u=r;else if(!h&&!c&&!d)u=i.StringUtilities.format(s(t),n(t));else if(d){for(var f=t.split(","),X="",m=0;m<f.length;m++)if(m>0&&f.length>2&&(X+=",",m<f.length-1&&(X+=" ")),m>0&&f.length>1&&(m==f.length-1||f.length==2)&&(X+="".concat(this.i18n.spaceAnd()," ")),f[m].indexOf("/")>-1||f[m].indexOf("-")>-1){var w=f[m].indexOf("-")>-1&&f[m].indexOf("/")==-1,x=this.getSegmentDescription(f[m],r,n,o,w?this.i18n.commaX0ThroughX1:a,s);w&&(x=x.replace(", ","")),X+=x}else h?X+=this.getSegmentDescription(f[m],r,n,o,a,s):X+=n(f[m]);h?u=X:u=i.StringUtilities.format(s(t),X)}else if(h){var f=t.split("/");if(u=i.StringUtilities.format(o(f[1]),f[1]),f[0].indexOf("-")>-1){var D=this.generateRangeSegmentDescription(f[0],a,n);D.indexOf(", ")!=0&&(u+=", "),u+=D}else if(f[0].indexOf("*")==-1){var M=i.StringUtilities.format(s(f[0]),n(f[0]));M=M.replace(", ",""),u+=i.StringUtilities.format(this.i18n.commaStartingX0(),M)}}else c&&(u=this.generateRangeSegmentDescription(t,a,n));return u},e.prototype.generateRangeSegmentDescription=function(t,r,n){var o="",a=t.split("-"),s=n(a[0],1),u=n(a[1],2),h=r(t);return o+=i.StringUtilities.format(h,s,u),o},e.prototype.formatTime=function(t,r,n){var o=0,a=0,s=parseInt(t)+o,u=parseInt(r)+a;u>=60?(u-=60,s+=1):u<0&&(u+=60,s-=1),s>=24?s=s-24:s<0&&(s=24+s);var h="",c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),h=c?"".concat(this.getPeriod(s)," "):" ".concat(this.getPeriod(s)),s>12&&(s-=12),s===0&&(s=12));var d="";return n&&(d=":".concat(("00"+n).substring(n.length))),"".concat(c?h:"").concat(("00"+s.toString()).substring(s.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(d).concat(c?"":h)},e.prototype.transformVerbosity=function(t,r){if(!r&&(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),t=t.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),t=t.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),t=t.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,o=Object.entries(this.i18n.conciseVerbosityReplacements());n<o.length;n++){var a=o[n],s=a[0],u=a[1];t=t.replace(new RegExp(s,"g"),u)}return t},e.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e})();p.ExpressionDescriptor=l}),747:((g,p,v)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var i=v(486),y=(function(){function l(){}return l.prototype.load=function(e){e.en=new i.en},l})();p.enLocaleLoader=y}),486:((g,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var v=(function(){function i(){}return i.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},i.prototype.atX0MinutesPastTheHourGt20=function(){return null},i.prototype.commaMonthX0ThroughMonthX1=function(){return null},i.prototype.commaYearX0ThroughYearX1=function(){return null},i.prototype.use24HourTimeFormatByDefault=function(){return!1},i.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},i.prototype.everyMinute=function(){return"every minute"},i.prototype.everyHour=function(){return"every hour"},i.prototype.atSpace=function(){return"At "},i.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},i.prototype.at=function(){return"At"},i.prototype.spaceAnd=function(){return" and"},i.prototype.everySecond=function(){return"every second"},i.prototype.everyX0Seconds=function(){return"every %s seconds"},i.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},i.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},i.prototype.everyX0Minutes=function(){return"every %s minutes"},i.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},i.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},i.prototype.everyX0Hours=function(){return"every %s hours"},i.prototype.betweenX0AndX1=function(){return"between %s and %s"},i.prototype.atX0=function(){return"at %s"},i.prototype.commaEveryDay=function(){return", every day"},i.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},i.prototype.commaX0ThroughX1=function(){return", %s through %s"},i.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},i.prototype.first=function(){return"first"},i.prototype.second=function(){return"second"},i.prototype.third=function(){return"third"},i.prototype.fourth=function(){return"fourth"},i.prototype.fifth=function(){return"fifth"},i.prototype.commaOnThe=function(){return", on the "},i.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},i.prototype.lastDay=function(){return"the last day"},i.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},i.prototype.commaOnlyOnX0=function(){return", only on %s"},i.prototype.commaAndOnX0=function(){return", and on %s"},i.prototype.commaEveryX0Months=function(){return", every %s months"},i.prototype.commaOnlyInX0=function(){return", only in %s"},i.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},i.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},i.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},i.prototype.firstWeekday=function(){return"first weekday"},i.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},i.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},i.prototype.commaEveryX0Days=function(){return", every %s days"},i.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},i.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},i.prototype.commaEveryHour=function(){return", every hour"},i.prototype.commaEveryX0Years=function(){return", every %s years"},i.prototype.commaStartingX0=function(){return", starting %s"},i.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},i.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},i.prototype.atReboot=function(){return"Run once, at startup"},i})();p.en=v}),515:((g,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function v(y,l){if(!y)throw new Error(l)}var i=(function(){function y(){}return y.secondRange=function(l){for(var e=l.split(","),t=0;t<e.length;t++)if(!isNaN(parseInt(e[t],10))){var r=parseInt(e[t],10);v(r>=0&&r<=59,"seconds part must be >= 0 and <= 59")}},y.minuteRange=function(l){for(var e=l.split(","),t=0;t<e.length;t++)if(!isNaN(parseInt(e[t],10))){var r=parseInt(e[t],10);v(r>=0&&r<=59,"minutes part must be >= 0 and <= 59")}},y.hourRange=function(l){for(var e=l.split(","),t=0;t<e.length;t++)if(!isNaN(parseInt(e[t],10))){var r=parseInt(e[t],10);v(r>=0&&r<=23,"hours part must be >= 0 and <= 23")}},y.dayOfMonthRange=function(l){for(var e=l.split(","),t=0;t<e.length;t++)if(!isNaN(parseInt(e[t],10))){var r=parseInt(e[t],10);v(r>=1&&r<=31,"DOM part must be >= 1 and <= 31")}},y.monthRange=function(l,e){for(var t=l.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var n=parseInt(t[r],10);v(n>=1&&n<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},y.dayOfWeekRange=function(l,e){for(var t=l.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var n=parseInt(t[r],10);v(n>=0&&n<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},y})();p.default=i}),823:((g,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var v=(function(){function i(){}return i.format=function(y){for(var l=[],e=1;e<arguments.length;e++)l[e-1]=arguments[e];return y.replace(/%s/g,function(t){return l.shift()})},i.containsAny=function(y,l){return l.some(function(e){return y.indexOf(e)>-1})},i})();p.StringUtilities=v})},T={};function S(g){var p=T[g];if(p!==void 0)return p.exports;var v=T[g]={exports:{}};return E[g](v,v.exports,S),v.exports}var O={};return(()=>{var g=O;Object.defineProperty(g,"__esModule",{value:!0}),g.toString=void 0;var p=S(333),v=S(747);p.ExpressionDescriptor.initialize(new v.enLocaleLoader),g.default=p.ExpressionDescriptor;var i=p.ExpressionDescriptor.toString;g.toString=i})(),O})())})(k)),k.exports}var R=L();const W=U(R);function H(b){if(b<1e3)return`${b}ms`;const _=Math.floor(b/1e3),E=Math.floor(_/60),T=Math.floor(E/60),S=Math.floor(T/24);if(S>0){const O=T%24;return O>0?`${S}d ${O}h`:`${S}d`}if(T>0){const O=E%60;return O>0?`${T}h ${O}m`:`${T}h`}if(E>0){const O=_%60;return O>0?`${E}m ${O}s`:`${E}m`}return`${_}s`}function F(b){return b<1e3?null:H(b)}export{W as c,F as f};
@@ -1,361 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DashboardPage-Bl0QYNJ5.js","./vendor-DBTT3jXp.js","./badgeColors-DQ_P_DOX.js","./zap-B0E2zzJ8.js","./calendar-DcK1CETU.js","./RequestsPage-CIHqEF5P.js","./PageHeader-BAc6Jvef.js","./types-DZUckfsW.js","./EntrySearchInput-DqIRbpja.js","./search-D9V4itpU.js","./DataTable-DNJpoFzh.js","./QueriesPage-DPls44cD.js","./ExceptionsPage-Qa60iwA4.js","./circle-check-big-1S8vooWx.js","./LogsPage-CaCtKQZ0.js","./EventsPage-DCpLnIob.js","./JobsPage-BpBk0bYd.js","./CachePage-Dv0sIWfb.js","./MailPage-DAkydOVp.js","./SchedulePage-D3MuXtV1.js","./format-PC0kH-TG.js","./HttpClientPage-Kxa5nm75.js","./RedisPage-DhAhXwAd.js","./ModelsPage-BwK3r0-I.js","./NotificationsPage-DMGpuTU-.js","./ViewsPage-CW5aN_D5.js","./eye-PnSIQ7GH.js","./CommandsPage-DfJBmcAu.js","./GatesPage-DHGIZzbG.js","./BatchesPage-DT5Mywoo.js","./DumpsPage-Cd0B4s9o.js","./GraphQLPage-Cft-KFpI.js","./EntryDetailPage-QTrST2MQ.js"])))=>i.map(i=>d[i]);
2
- var Ne=Object.defineProperty;var Pe=(s,a,e)=>a in s?Ne(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var z=(s,a,e)=>Pe(s,typeof a!="symbol"?a+"":a,e);import{r as Ce,a as Re,g as Le,b as r,u as Te,L as D,O as Ae,R as Oe,c as p,N as De,d as Me,B as qe}from"./vendor-DBTT3jXp.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const n of o.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function e(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=e(l);fetch(l.href,o)}})();var G={exports:{}},M={};/**
3
- * @license React
4
- * react-jsx-runtime.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var Z;function $e(){if(Z)return M;Z=1;var s=Ce(),a=Symbol.for("react.element"),e=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function n(c,u,x){var d,h={},y=null,j=null;x!==void 0&&(y=""+x),u.key!==void 0&&(y=""+u.key),u.ref!==void 0&&(j=u.ref);for(d in u)i.call(u,d)&&!o.hasOwnProperty(d)&&(h[d]=u[d]);if(c&&c.defaultProps)for(d in u=c.defaultProps,u)h[d]===void 0&&(h[d]=u[d]);return{$$typeof:a,type:c,key:y,ref:j,props:h,_owner:l.current}}return M.Fragment=e,M.jsx=n,M.jsxs=n,M}var X;function ze(){return X||(X=1,G.exports=$e()),G.exports}var t=ze(),I={},Y;function Ie(){if(Y)return I;Y=1;var s=Re();return I.createRoot=s.createRoot,I.hydrateRoot=s.hydrateRoot,I}var Ke=Ie();const Ve=Le(Ke);let Be={data:""},Fe=s=>{if(typeof window=="object"){let a=(s?s.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return a.nonce=window.__nonce__,a.parentNode||(s||document.head).appendChild(a),a.firstChild}return s||Be},He=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ge=/\/\*[^]*?\*\/| +/g,ee=/\n+/g,A=(s,a)=>{let e="",i="",l="";for(let o in s){let n=s[o];o[0]=="@"?o[1]=="i"?e=o+" "+n+";":i+=o[1]=="f"?A(n,o):o+"{"+A(n,o[1]=="k"?"":a)+"}":typeof n=="object"?i+=A(n,a?a.replace(/([^,])+/g,c=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,c):c?c+" "+u:u)):o):n!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=A.p?A.p(o,n):o+":"+n+";")}return e+(a&&l?a+"{"+l+"}":l)+i},L={},pe=s=>{if(typeof s=="object"){let a="";for(let e in s)a+=e+pe(s[e]);return a}return s},Ue=(s,a,e,i,l)=>{let o=pe(s),n=L[o]||(L[o]=(u=>{let x=0,d=11;for(;x<u.length;)d=101*d+u.charCodeAt(x++)>>>0;return"go"+d})(o));if(!L[n]){let u=o!==s?s:(x=>{let d,h,y=[{}];for(;d=He.exec(x.replace(Ge,""));)d[4]?y.shift():d[3]?(h=d[3].replace(ee," ").trim(),y.unshift(y[0][h]=y[0][h]||{})):y[0][d[1]]=d[2].replace(ee," ").trim();return y[0]})(s);L[n]=A(l?{["@keyframes "+n]:u}:u,e?"":"."+n)}let c=e&&L.g?L.g:null;return e&&(L.g=L[n]),((u,x,d,h)=>{h?x.data=x.data.replace(h,u):x.data.indexOf(u)===-1&&(x.data=d?u+x.data:x.data+u)})(L[n],a,i,c),n},Je=(s,a,e)=>s.reduce((i,l,o)=>{let n=a[o];if(n&&n.call){let c=n(e),u=c&&c.props&&c.props.className||/^go/.test(c)&&c;n=u?"."+u:c&&typeof c=="object"?c.props?"":A(c,""):c===!1?"":c}return i+l+(n??"")},"");function F(s){let a=this||{},e=s.call?s(a.p):s;return Ue(e.unshift?e.raw?Je(e,[].slice.call(arguments,1),a.p):e.reduce((i,l)=>Object.assign(i,l&&l.call?l(a.p):l),{}):e,Fe(a.target),a.g,a.o,a.k)}let xe,J,W;F.bind({g:1});let T=F.bind({k:1});function We(s,a,e,i){A.p=a,xe=s,J=e,W=i}function O(s,a){let e=this||{};return function(){let i=arguments;function l(o,n){let c=Object.assign({},o),u=c.className||l.className;e.p=Object.assign({theme:J&&J()},c),e.o=/ *go\d+/.test(u),c.className=F.apply(e,i)+(u?" "+u:"");let x=s;return s[0]&&(x=c.as||s,delete c.as),W&&x[0]&&W(c),xe(x,c)}return l}}var Qe=s=>typeof s=="function",B=(s,a)=>Qe(s)?s(a):s,Ze=(()=>{let s=0;return()=>(++s).toString()})(),fe=(()=>{let s;return()=>{if(s===void 0&&typeof window<"u"){let a=matchMedia("(prefers-reduced-motion: reduce)");s=!a||a.matches}return s}})(),Xe=20,Q="default",ye=(s,a)=>{let{toastLimit:e}=s.settings;switch(a.type){case 0:return{...s,toasts:[a.toast,...s.toasts].slice(0,e)};case 1:return{...s,toasts:s.toasts.map(n=>n.id===a.toast.id?{...n,...a.toast}:n)};case 2:let{toast:i}=a;return ye(s,{type:s.toasts.find(n=>n.id===i.id)?1:0,toast:i});case 3:let{toastId:l}=a;return{...s,toasts:s.toasts.map(n=>n.id===l||l===void 0?{...n,dismissed:!0,visible:!1}:n)};case 4:return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(n=>n.id!==a.toastId)};case 5:return{...s,pausedAt:a.time};case 6:let o=a.time-(s.pausedAt||0);return{...s,pausedAt:void 0,toasts:s.toasts.map(n=>({...n,pauseDuration:n.pauseDuration+o}))}}},V=[],ge={toasts:[],pausedAt:void 0,settings:{toastLimit:Xe}},R={},je=(s,a=Q)=>{R[a]=ye(R[a]||ge,s),V.forEach(([e,i])=>{e===a&&i(R[a])})},be=s=>Object.keys(R).forEach(a=>je(s,a)),Ye=s=>Object.keys(R).find(a=>R[a].toasts.some(e=>e.id===s)),H=(s=Q)=>a=>{je(a,s)},et={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},tt=(s={},a=Q)=>{let[e,i]=r.useState(R[a]||ge),l=r.useRef(R[a]);r.useEffect(()=>(l.current!==R[a]&&i(R[a]),V.push([a,i]),()=>{let n=V.findIndex(([c])=>c===a);n>-1&&V.splice(n,1)}),[a]);let o=e.toasts.map(n=>{var c,u,x;return{...s,...s[n.type],...n,removeDelay:n.removeDelay||((c=s[n.type])==null?void 0:c.removeDelay)||(s==null?void 0:s.removeDelay),duration:n.duration||((u=s[n.type])==null?void 0:u.duration)||(s==null?void 0:s.duration)||et[n.type],style:{...s.style,...(x=s[n.type])==null?void 0:x.style,...n.style}}});return{...e,toasts:o}},st=(s,a="blank",e)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:a,ariaProps:{role:"status","aria-live":"polite"},message:s,pauseDuration:0,...e,id:(e==null?void 0:e.id)||Ze()}),$=s=>(a,e)=>{let i=st(a,s,e);return H(i.toasterId||Ye(i.id))({type:2,toast:i}),i.id},_=(s,a)=>$("blank")(s,a);_.error=$("error");_.success=$("success");_.loading=$("loading");_.custom=$("custom");_.dismiss=(s,a)=>{let e={type:3,toastId:s};a?H(a)(e):be(e)};_.dismissAll=s=>_.dismiss(void 0,s);_.remove=(s,a)=>{let e={type:4,toastId:s};a?H(a)(e):be(e)};_.removeAll=s=>_.remove(void 0,s);_.promise=(s,a,e)=>{let i=_.loading(a.loading,{...e,...e==null?void 0:e.loading});return typeof s=="function"&&(s=s()),s.then(l=>{let o=a.success?B(a.success,l):void 0;return o?_.success(o,{id:i,...e,...e==null?void 0:e.success}):_.dismiss(i),l}).catch(l=>{let o=a.error?B(a.error,l):void 0;o?_.error(o,{id:i,...e,...e==null?void 0:e.error}):_.dismiss(i)}),s};var at=1e3,rt=(s,a="default")=>{let{toasts:e,pausedAt:i}=tt(s,a),l=r.useRef(new Map).current,o=r.useCallback((h,y=at)=>{if(l.has(h))return;let j=setTimeout(()=>{l.delete(h),n({type:4,toastId:h})},y);l.set(h,j)},[]);r.useEffect(()=>{if(i)return;let h=Date.now(),y=e.map(j=>{if(j.duration===1/0)return;let k=(j.duration||0)+j.pauseDuration-(h-j.createdAt);if(k<0){j.visible&&_.dismiss(j.id);return}return setTimeout(()=>_.dismiss(j.id,a),k)});return()=>{y.forEach(j=>j&&clearTimeout(j))}},[e,i,a]);let n=r.useCallback(H(a),[a]),c=r.useCallback(()=>{n({type:5,time:Date.now()})},[n]),u=r.useCallback((h,y)=>{n({type:1,toast:{id:h,height:y}})},[n]),x=r.useCallback(()=>{i&&n({type:6,time:Date.now()})},[i,n]),d=r.useCallback((h,y)=>{let{reverseOrder:j=!1,gutter:k=8,defaultPosition:m}=y||{},w=e.filter(N=>(N.position||m)===(h.position||m)&&N.height),E=w.findIndex(N=>N.id===h.id),b=w.filter((N,C)=>C<E&&N.visible).length;return w.filter(N=>N.visible).slice(...j?[b+1]:[0,b]).reduce((N,C)=>N+(C.height||0)+k,0)},[e]);return r.useEffect(()=>{e.forEach(h=>{if(h.dismissed)o(h.id,h.removeDelay);else{let y=l.get(h.id);y&&(clearTimeout(y),l.delete(h.id))}})},[e,o]),{toasts:e,handlers:{updateHeight:u,startPause:c,endPause:x,calculateOffset:d}}},nt=T`
11
- from {
12
- transform: scale(0) rotate(45deg);
13
- opacity: 0;
14
- }
15
- to {
16
- transform: scale(1) rotate(45deg);
17
- opacity: 1;
18
- }`,ot=T`
19
- from {
20
- transform: scale(0);
21
- opacity: 0;
22
- }
23
- to {
24
- transform: scale(1);
25
- opacity: 1;
26
- }`,it=T`
27
- from {
28
- transform: scale(0) rotate(90deg);
29
- opacity: 0;
30
- }
31
- to {
32
- transform: scale(1) rotate(90deg);
33
- opacity: 1;
34
- }`,lt=O("div")`
35
- width: 20px;
36
- opacity: 0;
37
- height: 20px;
38
- border-radius: 10px;
39
- background: ${s=>s.primary||"#ff4b4b"};
40
- position: relative;
41
- transform: rotate(45deg);
42
-
43
- animation: ${nt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
44
- forwards;
45
- animation-delay: 100ms;
46
-
47
- &:after,
48
- &:before {
49
- content: '';
50
- animation: ${ot} 0.15s ease-out forwards;
51
- animation-delay: 150ms;
52
- position: absolute;
53
- border-radius: 3px;
54
- opacity: 0;
55
- background: ${s=>s.secondary||"#fff"};
56
- bottom: 9px;
57
- left: 4px;
58
- height: 2px;
59
- width: 12px;
60
- }
61
-
62
- &:before {
63
- animation: ${it} 0.15s ease-out forwards;
64
- animation-delay: 180ms;
65
- transform: rotate(90deg);
66
- }
67
- `,ct=T`
68
- from {
69
- transform: rotate(0deg);
70
- }
71
- to {
72
- transform: rotate(360deg);
73
- }
74
- `,dt=O("div")`
75
- width: 12px;
76
- height: 12px;
77
- box-sizing: border-box;
78
- border: 2px solid;
79
- border-radius: 100%;
80
- border-color: ${s=>s.secondary||"#e0e0e0"};
81
- border-right-color: ${s=>s.primary||"#616161"};
82
- animation: ${ct} 1s linear infinite;
83
- `,ut=T`
84
- from {
85
- transform: scale(0) rotate(45deg);
86
- opacity: 0;
87
- }
88
- to {
89
- transform: scale(1) rotate(45deg);
90
- opacity: 1;
91
- }`,ht=T`
92
- 0% {
93
- height: 0;
94
- width: 0;
95
- opacity: 0;
96
- }
97
- 40% {
98
- height: 0;
99
- width: 6px;
100
- opacity: 1;
101
- }
102
- 100% {
103
- opacity: 1;
104
- height: 10px;
105
- }`,mt=O("div")`
106
- width: 20px;
107
- opacity: 0;
108
- height: 20px;
109
- border-radius: 10px;
110
- background: ${s=>s.primary||"#61d345"};
111
- position: relative;
112
- transform: rotate(45deg);
113
-
114
- animation: ${ut} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
115
- forwards;
116
- animation-delay: 100ms;
117
- &:after {
118
- content: '';
119
- box-sizing: border-box;
120
- animation: ${ht} 0.2s ease-out forwards;
121
- opacity: 0;
122
- animation-delay: 200ms;
123
- position: absolute;
124
- border-right: 2px solid;
125
- border-bottom: 2px solid;
126
- border-color: ${s=>s.secondary||"#fff"};
127
- bottom: 6px;
128
- left: 6px;
129
- height: 10px;
130
- width: 6px;
131
- }
132
- `,pt=O("div")`
133
- position: absolute;
134
- `,xt=O("div")`
135
- position: relative;
136
- display: flex;
137
- justify-content: center;
138
- align-items: center;
139
- min-width: 20px;
140
- min-height: 20px;
141
- `,ft=T`
142
- from {
143
- transform: scale(0.6);
144
- opacity: 0.4;
145
- }
146
- to {
147
- transform: scale(1);
148
- opacity: 1;
149
- }`,yt=O("div")`
150
- position: relative;
151
- transform: scale(0.6);
152
- opacity: 0.4;
153
- min-width: 20px;
154
- animation: ${ft} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
155
- forwards;
156
- `,gt=({toast:s})=>{let{icon:a,type:e,iconTheme:i}=s;return a!==void 0?typeof a=="string"?r.createElement(yt,null,a):a:e==="blank"?null:r.createElement(xt,null,r.createElement(dt,{...i}),e!=="loading"&&r.createElement(pt,null,e==="error"?r.createElement(lt,{...i}):r.createElement(mt,{...i})))},jt=s=>`
157
- 0% {transform: translate3d(0,${s*-200}%,0) scale(.6); opacity:.5;}
158
- 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
159
- `,bt=s=>`
160
- 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
161
- 100% {transform: translate3d(0,${s*-150}%,-1px) scale(.6); opacity:0;}
162
- `,kt="0%{opacity:0;} 100%{opacity:1;}",vt="0%{opacity:1;} 100%{opacity:0;}",wt=O("div")`
163
- display: flex;
164
- align-items: center;
165
- background: #fff;
166
- color: #363636;
167
- line-height: 1.3;
168
- will-change: transform;
169
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
170
- max-width: 350px;
171
- pointer-events: auto;
172
- padding: 8px 10px;
173
- border-radius: 8px;
174
- `,St=O("div")`
175
- display: flex;
176
- justify-content: center;
177
- margin: 4px 10px;
178
- color: inherit;
179
- flex: 1 1 auto;
180
- white-space: pre-line;
181
- `,_t=(s,a)=>{let e=s.includes("top")?1:-1,[i,l]=fe()?[kt,vt]:[jt(e),bt(e)];return{animation:a?`${T(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${T(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Et=r.memo(({toast:s,position:a,style:e,children:i})=>{let l=s.height?_t(s.position||a||"top-center",s.visible):{opacity:0},o=r.createElement(gt,{toast:s}),n=r.createElement(St,{...s.ariaProps},B(s.message,s));return r.createElement(wt,{className:s.className,style:{...l,...e,...s.style}},typeof i=="function"?i({icon:o,message:n}):r.createElement(r.Fragment,null,o,n))});We(r.createElement);var Nt=({id:s,className:a,style:e,onHeightUpdate:i,children:l})=>{let o=r.useCallback(n=>{if(n){let c=()=>{let u=n.getBoundingClientRect().height;i(s,u)};c(),new MutationObserver(c).observe(n,{subtree:!0,childList:!0,characterData:!0})}},[s,i]);return r.createElement("div",{ref:o,className:a,style:e},l)},Pt=(s,a)=>{let e=s.includes("top"),i=e?{top:0}:{bottom:0},l=s.includes("center")?{justifyContent:"center"}:s.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:fe()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${a*(e?1:-1)}px)`,...i,...l}},Ct=F`
182
- z-index: 9999;
183
- > * {
184
- pointer-events: auto;
185
- }
186
- `,K=16,Rt=({reverseOrder:s,position:a="top-center",toastOptions:e,gutter:i,children:l,toasterId:o,containerStyle:n,containerClassName:c})=>{let{toasts:u,handlers:x}=rt(e,o);return r.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:K,left:K,right:K,bottom:K,pointerEvents:"none",...n},className:c,onMouseEnter:x.startPause,onMouseLeave:x.endPause},u.map(d=>{let h=d.position||a,y=x.calculateOffset(d,{reverseOrder:s,gutter:i,defaultPosition:a}),j=Pt(h,y);return r.createElement(Nt,{id:d.id,key:d.id,onHeightUpdate:x.updateHeight,className:d.visible?Ct:"",style:j},d.type==="custom"?B(d.message,d):l?l(d):r.createElement(Et,{toast:d,position:h}))}))},q=_;const Lt="modulepreload",Tt=function(s,a){return new URL(s,a).href},te={},v=function(a,e,i){let l=Promise.resolve();if(e&&e.length>0){let n=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),x=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));l=n(e.map(d=>{if(d=Tt(d,i),d in te)return;te[d]=!0;const h=d.endsWith(".css"),y=h?'[rel="stylesheet"]':"";if(!!i)for(let m=c.length-1;m>=0;m--){const w=c[m];if(w.href===d&&(!h||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${y}`))return;const k=document.createElement("link");if(k.rel=h?"stylesheet":Lt,h||(k.as="script"),k.crossOrigin="",k.href=d,x&&k.setAttribute("nonce",x),document.head.appendChild(k),h)return new Promise((m,w)=>{k.addEventListener("load",m),k.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(n){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=n,window.dispatchEvent(c),!c.defaultPrevented)throw n}return l.then(n=>{for(const c of n||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};/**
187
- * @license lucide-react v0.468.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const At=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ke=(...s)=>s.filter((a,e,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===e).join(" ").trim();/**
192
- * @license lucide-react v0.468.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */var Ot={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
197
- * @license lucide-react v0.468.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const Dt=r.forwardRef(({color:s="currentColor",size:a=24,strokeWidth:e=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:n,...c},u)=>r.createElement("svg",{ref:u,...Ot,width:a,height:a,stroke:s,strokeWidth:i?Number(e)*24/Number(a):e,className:ke("lucide",l),...c},[...n.map(([x,d])=>r.createElement(x,d)),...Array.isArray(o)?o:[o]]));/**
202
- * @license lucide-react v0.468.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const g=(s,a)=>{const e=r.forwardRef(({className:i,...l},o)=>r.createElement(Dt,{ref:o,iconNode:a,className:ke(`lucide-${At(s)}`,i),...l}));return e.displayName=`${s}`,e};/**
207
- * @license lucide-react v0.468.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const Mt=g("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
212
- * @license lucide-react v0.468.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const qt=g("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
217
- * @license lucide-react v0.468.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const $t=g("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
222
- * @license lucide-react v0.468.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const zt=g("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
227
- * @license lucide-react v0.468.0 - ISC
228
- *
229
- * This source code is licensed under the ISC license.
230
- * See the LICENSE file in the root directory of this source tree.
231
- */const se=g("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
232
- * @license lucide-react v0.468.0 - ISC
233
- *
234
- * This source code is licensed under the ISC license.
235
- * See the LICENSE file in the root directory of this source tree.
236
- */const ae=g("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
237
- * @license lucide-react v0.468.0 - ISC
238
- *
239
- * This source code is licensed under the ISC license.
240
- * See the LICENSE file in the root directory of this source tree.
241
- */const It=g("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
242
- * @license lucide-react v0.468.0 - ISC
243
- *
244
- * This source code is licensed under the ISC license.
245
- * See the LICENSE file in the root directory of this source tree.
246
- */const Kt=g("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
247
- * @license lucide-react v0.468.0 - ISC
248
- *
249
- * This source code is licensed under the ISC license.
250
- * See the LICENSE file in the root directory of this source tree.
251
- */const re=g("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
252
- * @license lucide-react v0.468.0 - ISC
253
- *
254
- * This source code is licensed under the ISC license.
255
- * See the LICENSE file in the root directory of this source tree.
256
- */const Vt=g("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
257
- * @license lucide-react v0.468.0 - ISC
258
- *
259
- * This source code is licensed under the ISC license.
260
- * See the LICENSE file in the root directory of this source tree.
261
- */const Bt=g("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
262
- * @license lucide-react v0.468.0 - ISC
263
- *
264
- * This source code is licensed under the ISC license.
265
- * See the LICENSE file in the root directory of this source tree.
266
- */const Ft=g("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
267
- * @license lucide-react v0.468.0 - ISC
268
- *
269
- * This source code is licensed under the ISC license.
270
- * See the LICENSE file in the root directory of this source tree.
271
- */const ne=g("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
272
- * @license lucide-react v0.468.0 - ISC
273
- *
274
- * This source code is licensed under the ISC license.
275
- * See the LICENSE file in the root directory of this source tree.
276
- */const Ht=g("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
277
- * @license lucide-react v0.468.0 - ISC
278
- *
279
- * This source code is licensed under the ISC license.
280
- * See the LICENSE file in the root directory of this source tree.
281
- */const Gt=g("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
282
- * @license lucide-react v0.468.0 - ISC
283
- *
284
- * This source code is licensed under the ISC license.
285
- * See the LICENSE file in the root directory of this source tree.
286
- */const Ut=g("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
287
- * @license lucide-react v0.468.0 - ISC
288
- *
289
- * This source code is licensed under the ISC license.
290
- * See the LICENSE file in the root directory of this source tree.
291
- */const Jt=g("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
292
- * @license lucide-react v0.468.0 - ISC
293
- *
294
- * This source code is licensed under the ISC license.
295
- * See the LICENSE file in the root directory of this source tree.
296
- */const oe=g("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
297
- * @license lucide-react v0.468.0 - ISC
298
- *
299
- * This source code is licensed under the ISC license.
300
- * See the LICENSE file in the root directory of this source tree.
301
- */const Wt=g("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
302
- * @license lucide-react v0.468.0 - ISC
303
- *
304
- * This source code is licensed under the ISC license.
305
- * See the LICENSE file in the root directory of this source tree.
306
- */const Qt=g("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
307
- * @license lucide-react v0.468.0 - ISC
308
- *
309
- * This source code is licensed under the ISC license.
310
- * See the LICENSE file in the root directory of this source tree.
311
- */const Zt=g("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
312
- * @license lucide-react v0.468.0 - ISC
313
- *
314
- * This source code is licensed under the ISC license.
315
- * See the LICENSE file in the root directory of this source tree.
316
- */const Xt=g("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
317
- * @license lucide-react v0.468.0 - ISC
318
- *
319
- * This source code is licensed under the ISC license.
320
- * See the LICENSE file in the root directory of this source tree.
321
- */const Yt=g("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
322
- * @license lucide-react v0.468.0 - ISC
323
- *
324
- * This source code is licensed under the ISC license.
325
- * See the LICENSE file in the root directory of this source tree.
326
- */const es=g("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"}]]);/**
327
- * @license lucide-react v0.468.0 - ISC
328
- *
329
- * This source code is licensed under the ISC license.
330
- * See the LICENSE file in the root directory of this source tree.
331
- */const ts=g("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
332
- * @license lucide-react v0.468.0 - ISC
333
- *
334
- * This source code is licensed under the ISC license.
335
- * See the LICENSE file in the root directory of this source tree.
336
- */const ie=g("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
337
- * @license lucide-react v0.468.0 - ISC
338
- *
339
- * This source code is licensed under the ISC license.
340
- * See the LICENSE file in the root directory of this source tree.
341
- */const U=g("Telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);/**
342
- * @license lucide-react v0.468.0 - ISC
343
- *
344
- * This source code is licensed under the ISC license.
345
- * See the LICENSE file in the root directory of this source tree.
346
- */const ss=g("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
347
- * @license lucide-react v0.468.0 - ISC
348
- *
349
- * This source code is licensed under the ISC license.
350
- * See the LICENSE file in the root directory of this source tree.
351
- */const le=g("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
352
- * @license lucide-react v0.468.0 - ISC
353
- *
354
- * This source code is licensed under the ISC license.
355
- * See the LICENSE file in the root directory of this source tree.
356
- */const ve=g("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
357
- * @license lucide-react v0.468.0 - ISC
358
- *
359
- * This source code is licensed under the ISC license.
360
- * See the LICENSE file in the root directory of this source tree.
361
- */const as=g("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),we=()=>window.__NESTLENS_BASE__??"",rs=s=>`${window.location.origin}${we()}/__nestlens__${s}`,Se=rs("/api");async function P(s,a){const e=await fetch(`${Se}${s}`,a);if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function $s(s){return P(`/entries/${s}`)}async function ce(){return P("/stats")}async function ns(){return(await fetch(`${Se}/entries`,{method:"DELETE"})).json()}async function zs(s){const a=new URLSearchParams;if(s.type&&a.set("type",s.type),s.limit&&a.set("limit",s.limit.toString()),s.beforeSequence!==void 0&&a.set("beforeSequence",s.beforeSequence.toString()),s.afterSequence!==void 0&&a.set("afterSequence",s.afterSequence.toString()),s.filters){const e=s.filters;e.levels&&e.levels.length>0&&a.set("levels",e.levels.join(",")),e.contexts&&e.contexts.length>0&&a.set("contexts",e.contexts.join(",")),e.queryTypes&&e.queryTypes.length>0&&a.set("queryTypes",e.queryTypes.join(",")),e.sources&&e.sources.length>0&&a.set("sources",e.sources.join(",")),e.slow!==void 0&&a.set("slow",e.slow.toString()),e.names&&e.names.length>0&&a.set("names",e.names.join(",")),e.methods&&e.methods.length>0&&a.set("methods",e.methods.join(",")),e.paths&&e.paths.length>0&&a.set("paths",e.paths.join(",")),e.resolved!==void 0&&a.set("resolved",e.resolved.toString()),e.statuses&&e.statuses.length>0&&a.set("statuses",e.statuses.join(",")),e.hostnames&&e.hostnames.length>0&&a.set("hostnames",e.hostnames.join(",")),e.controllers&&e.controllers.length>0&&a.set("controllers",e.controllers.join(",")),e.ips&&e.ips.length>0&&a.set("ips",e.ips.join(",")),e.eventNames&&e.eventNames.length>0&&a.set("eventNames",e.eventNames.join(",")),e.scheduleStatuses&&e.scheduleStatuses.length>0&&a.set("scheduleStatuses",e.scheduleStatuses.join(",")),e.scheduleNames&&e.scheduleNames.length>0&&a.set("scheduleNames",e.scheduleNames.join(",")),e.jobStatuses&&e.jobStatuses.length>0&&a.set("jobStatuses",e.jobStatuses.join(",")),e.jobNames&&e.jobNames.length>0&&a.set("jobNames",e.jobNames.join(",")),e.queues&&e.queues.length>0&&a.set("queues",e.queues.join(",")),e.cacheOperations&&e.cacheOperations.length>0&&a.set("cacheOperations",e.cacheOperations.join(",")),e.mailStatuses&&e.mailStatuses.length>0&&a.set("mailStatuses",e.mailStatuses.join(",")),e.redisStatuses&&e.redisStatuses.length>0&&a.set("redisStatuses",e.redisStatuses.join(",")),e.redisCommands&&e.redisCommands.length>0&&a.set("redisCommands",e.redisCommands.join(",")),e.modelActions&&e.modelActions.length>0&&a.set("modelActions",e.modelActions.join(",")),e.entities&&e.entities.length>0&&a.set("entities",e.entities.join(",")),e.modelSources&&e.modelSources.length>0&&a.set("modelSources",e.modelSources.join(",")),e.notificationTypes&&e.notificationTypes.length>0&&a.set("notificationTypes",e.notificationTypes.join(",")),e.notificationStatuses&&e.notificationStatuses.length>0&&a.set("notificationStatuses",e.notificationStatuses.join(",")),e.viewFormats&&e.viewFormats.length>0&&a.set("viewFormats",e.viewFormats.join(",")),e.viewStatuses&&e.viewStatuses.length>0&&a.set("viewStatuses",e.viewStatuses.join(",")),e.commandStatuses&&e.commandStatuses.length>0&&a.set("commandStatuses",e.commandStatuses.join(",")),e.commandNames&&e.commandNames.length>0&&a.set("commandNames",e.commandNames.join(",")),e.gateNames&&e.gateNames.length>0&&a.set("gateNames",e.gateNames.join(",")),e.gateResults&&e.gateResults.length>0&&a.set("gateResults",e.gateResults.join(",")),e.batchStatuses&&e.batchStatuses.length>0&&a.set("batchStatuses",e.batchStatuses.join(",")),e.batchOperations&&e.batchOperations.length>0&&a.set("batchOperations",e.batchOperations.join(",")),e.dumpStatuses&&e.dumpStatuses.length>0&&a.set("dumpStatuses",e.dumpStatuses.join(",")),e.dumpOperations&&e.dumpOperations.length>0&&a.set("dumpOperations",e.dumpOperations.join(",")),e.dumpFormats&&e.dumpFormats.length>0&&a.set("dumpFormats",e.dumpFormats.join(",")),e.operationTypes&&e.operationTypes.length>0&&a.set("operationTypes",e.operationTypes.join(",")),e.operationNames&&e.operationNames.length>0&&a.set("operationNames",e.operationNames.join(",")),e.hasErrors!==void 0&&a.set("hasErrors",e.hasErrors.toString()),e.hasN1!==void 0&&a.set("hasN1",e.hasN1.toString()),e.tags&&e.tags.length>0&&a.set("tags",e.tags.join(",")),e.search&&a.set("search",e.search)}return P(`/entries/cursor?${a.toString()}`)}async function Is(s){const a=new URLSearchParams;return s&&a.set("type",s),P(`/entries/latest-sequence?${a.toString()}`)}async function Ks(s,a){const e=new URLSearchParams;return e.set("afterSequence",s.toString()),a&&e.set("type",a),P(`/entries/check-new?${e.toString()}`)}async function Vs(){return P("/storage/stats")}async function Bs(){return P("/pruning/status")}async function Fs(){return P("/pruning/run",{method:"POST"})}async function Hs(s){return P(`/entries/${s}/resolve`,{method:"PATCH"})}async function Gs(s){return P(`/entries/${s}/unresolve`,{method:"PATCH"})}async function os(s){return P("/recording/pause",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:s})})}async function is(){return P("/recording/resume",{method:"POST"})}async function ls(){return P("/recording/status")}function cs(s){const a=r.useCallback(e=>{const i=e.target,l=i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.isContentEditable;for(const o of s){const{key:n,ctrl:c,meta:u,shift:x,alt:d,handler:h,preventDefault:y=!0}=o;if(l&&n.toLowerCase()!=="escape")continue;const j=e.key.toLowerCase()===n.toLowerCase(),k=x?e.shiftKey:!e.shiftKey,m=d?e.altKey:!e.altKey;if(c){if((e.ctrlKey||e.metaKey)&&j&&k&&m){y&&e.preventDefault(),h(e);return}continue}if(u){if(e.metaKey&&!e.ctrlKey&&j&&k&&m){y&&e.preventDefault(),h(e);return}continue}if(!e.ctrlKey&&!e.metaKey&&j&&k&&m){y&&e.preventDefault(),h(e);return}}},[s]);r.useEffect(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}const _e=r.createContext(void 0);function ds(){const s=r.useContext(_e);if(s===void 0)throw new Error("useStats must be used within a StatsProvider");return s}function de(){const[s,a]=r.useState(null),[e,i]=r.useState(!1);r.useEffect(()=>{const o=async()=>{try{const c=await ls();a(c.data)}catch(c){console.error("Failed to fetch recording status:",c)}};o();const n=setInterval(o,5e3);return()=>clearInterval(n)},[]);const l=async()=>{if(!(!s||e)){i(!0);try{if(s.isPaused){const o=await is();a(o.data),q.success("Recording resumed")}else{const o=await os();a(o.data),q.success("Recording paused")}}catch{q.error("Failed to toggle recording")}finally{i(!1)}}};return s?t.jsx("button",{onClick:l,disabled:e,className:`p-2.5 rounded-lg transition-colors ${s.isPaused?"text-yellow-600 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-300 hover:bg-yellow-50 dark:hover:bg-yellow-900/20":"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300 hover:bg-green-50 dark:hover:bg-green-900/20"} ${e?"opacity-50 cursor-not-allowed":""}`,"aria-label":s.isPaused?"Resume recording":"Pause recording",title:s.isPaused?"Resume Recording":"Pause Recording",children:s.isPaused?t.jsx(Xt,{className:"h-5 w-5"}):t.jsx(Zt,{className:"h-5 w-5"})}):null}const ue={dashboard:"text-primary-500",request:"text-blue-500",query:"text-purple-500",graphql:"text-fuchsia-500",exception:"text-red-500",log:"text-green-500",job:"text-yellow-500",schedule:"text-gray-500",batch:"text-lime-500",command:"text-slate-500",cache:"text-cyan-500",redis:"text-rose-500",model:"text-violet-500","http-client":"text-indigo-500",mail:"text-pink-500",notification:"text-orange-500",event:"text-emerald-500",view:"text-teal-500",gate:"text-amber-500",dump:"text-stone-500"},he=[{name:"Overview",items:[{name:"Dashboard",href:"/",icon:Gt,colorKey:"dashboard"}]},{name:"Core",items:[{name:"Requests",href:"/requests",icon:Mt,colorKey:"request"},{name:"Queries",href:"/queries",icon:Kt,colorKey:"query"},{name:"GraphQL",href:"/graphql",icon:Bt,colorKey:"graphql"},{name:"Exceptions",href:"/exceptions",icon:ve,badge:"exceptions",colorKey:"exception"},{name:"Logs",href:"/logs",icon:Vt,colorKey:"log"}]},{name:"Background",items:[{name:"Jobs",href:"/jobs",icon:zt,colorKey:"job"},{name:"Schedule",href:"/schedule",icon:It,colorKey:"schedule"},{name:"Batches",href:"/batches",icon:Wt,colorKey:"batch"},{name:"Commands",href:"/commands",icon:ss,colorKey:"command"}]},{name:"Data",items:[{name:"Cache",href:"/cache",icon:ne,colorKey:"cache"},{name:"Redis",href:"/redis",icon:$t,colorKey:"redis"},{name:"Models",href:"/models",icon:Ht,colorKey:"model"}]},{name:"Communication",items:[{name:"HTTP Client",href:"/http-client",icon:Ft,colorKey:"http-client"},{name:"Mail",href:"/mail",icon:Ut,colorKey:"mail"},{name:"Notifications",href:"/notifications",icon:qt,colorKey:"notification"},{name:"Events",href:"/events",icon:Yt,colorKey:"event"}]},{name:"System",items:[{name:"Views",href:"/views",icon:Qt,colorKey:"view"},{name:"Gates",href:"/gates",icon:ts,colorKey:"gate"},{name:"Dumps",href:"/dumps",icon:ne,colorKey:"dump"}]}];function me(s){return s!=="system"?s==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches}function us(){const s=Te(),[a,e]=r.useState(!1),{stats:i}=ds(),[l,o]=r.useState(()=>{if(typeof window<"u"){const m=localStorage.getItem("nestlens-collapsed-groups");return m?new Set(JSON.parse(m)):new Set}return new Set}),[n,c]=r.useState(()=>typeof window<"u"?document.documentElement.classList.contains("dark"):!1),[u,x]=r.useState(()=>{if(typeof window<"u"){const m=localStorage.getItem("nestlens-theme");if(m==="system"||m==="light"||m==="dark")return m}return"system"}),d=r.useCallback(m=>{o(w=>{const E=new Set(w);return E.has(m)?E.delete(m):E.add(m),localStorage.setItem("nestlens-collapsed-groups",JSON.stringify([...E])),E})},[]),h=r.useCallback(m=>{if(!i)return 0;switch(m){case"exceptions":return i.unresolvedExceptions??i.byType.exception??0;default:return 0}},[i]),y=r.useCallback(m=>{const w=me(m);w?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),c(w)},[]),j=r.useCallback(()=>{const m=n?"light":"dark";x(m),localStorage.setItem("nestlens-theme",m),y(m)},[n,y]),k=r.useCallback(async()=>{window.confirm("Are you sure you want to clear all entries?")&&(await ns(),q.success("All entries cleared"),window.location.reload())},[]);return r.useEffect(()=>{const m=me(u);if(document.documentElement.classList.toggle("dark",m),u==="system"){const w=window.matchMedia("(prefers-color-scheme: dark)"),E=b=>{document.documentElement.classList.toggle("dark",b.matches),c(b.matches)};return w.addEventListener("change",E),()=>w.removeEventListener("change",E)}},[u]),cs([{key:"k",ctrl:!0,handler:()=>k()},{key:"Escape",handler:()=>{a&&e(!1)},preventDefault:!1},{key:"d",ctrl:!0,handler:()=>j()}]),t.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[t.jsxs("div",{className:`fixed inset-0 z-50 lg:hidden ${a?"":"hidden"}`,children:[t.jsx("div",{className:"fixed inset-0 bg-gray-900/80",onClick:()=>e(!1)}),t.jsxs("div",{id:"mobile-sidebar","data-testid":"mobile-sidebar",className:"fixed inset-y-0 left-0 w-64 bg-white dark:bg-gray-800 flex flex-col",children:[t.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b border-gray-200 dark:border-gray-700",children:[t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-8 w-8 text-primary-600"}),t.jsx("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"NestLens"})]}),t.jsx("button",{onClick:()=>e(!1),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-label":"Close sidebar",children:t.jsx(as,{className:"h-6 w-6","aria-hidden":"true"})})]}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:he.map((m,w)=>{const E=l.has(m.name);return t.jsxs("div",{className:w>0?"mt-4":"",children:[t.jsxs("button",{onClick:()=>d(m.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`nav-group-${m.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:m.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:m.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?h(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-colors ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium":"text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white"}`,onClick:()=>e(!1),children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-4 w-4 ${ue[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-medium bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400 rounded-full",children:C>99?"99+":C})]},b.name)})})]},m.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(de,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:k,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})]}),t.jsx("div",{"data-testid":"sidebar",className:"hidden lg:fixed lg:inset-y-0 lg:flex lg:w-64 lg:flex-col",children:t.jsxs("div",{className:"flex flex-col h-full bg-white dark:bg-gray-800 border-r border-gray-200 dark:border-gray-700",children:[t.jsx("div",{className:"flex h-16 items-center px-4 border-b border-gray-200 dark:border-gray-700",children:t.jsxs(D,{to:"/",className:"flex items-center space-x-2.5",children:[t.jsx("div",{className:"p-1.5 bg-primary-100 dark:bg-primary-900/50 rounded-lg",children:t.jsx(U,{className:"h-6 w-6 text-primary-600 dark:text-primary-400"})}),t.jsxs("div",{children:[t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"}),t.jsxs("span",{className:"hidden xl:inline text-xs text-gray-400 dark:text-gray-500 ml-1.5",children:["v","0.9.0"]})]})]})}),t.jsx("nav",{className:"flex-1 min-h-0 overflow-y-auto py-4 px-3",children:he.map((m,w)=>{const E=l.has(m.name);return t.jsxs("div",{className:w>0?"mt-6":"",children:[t.jsxs("button",{onClick:()=>d(m.name),className:"flex items-center justify-between w-full px-2 py-1.5 text-[11px] font-semibold text-gray-400 dark:text-gray-500 uppercase tracking-wider hover:text-gray-600 dark:hover:text-gray-400 transition-colors","aria-expanded":!E,"aria-controls":`desktop-nav-group-${m.name.toLowerCase().replace(/\s+/g,"-")}`,children:[t.jsx("span",{children:m.name}),E?t.jsx(ae,{className:"h-3 w-3","aria-hidden":"true"}):t.jsx(se,{className:"h-3 w-3","aria-hidden":"true"})]}),!E&&t.jsx("div",{className:"mt-1 space-y-0.5",children:m.items.map(b=>{const N=b.href==="/"?s.pathname==="/":s.pathname.startsWith(b.href),C="badge"in b?h(b.badge):0;return t.jsxs(D,{to:b.href,"aria-current":N?"page":void 0,className:`group flex items-center justify-between px-3 py-2 rounded-lg transition-all duration-150 ${N?"bg-primary-50 text-primary-700 dark:bg-primary-900/50 dark:text-primary-200 font-medium shadow-sm":"text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800/50 hover:text-gray-900 dark:hover:text-white"}`,children:[t.jsxs("div",{className:"flex items-center space-x-3",children:[t.jsx(b.icon,{className:`h-[18px] w-[18px] ${ue[b.colorKey]||"text-gray-400"}`}),t.jsx("span",{className:"text-sm",children:b.name})]}),C>0&&t.jsx("span",{className:`inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-xs font-semibold rounded-full transition-colors ${N?"bg-primary-200 text-primary-800 dark:bg-primary-800 dark:text-primary-200":"bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-400"}`,children:C>99?"99+":C})]},b.name)})})]},m.name)})}),t.jsx("div",{className:"flex-shrink-0 p-3 border-t border-gray-200 dark:border-gray-700",children:t.jsxs("div",{className:"flex items-center justify-center gap-1",children:[t.jsx(de,{}),t.jsx("button",{onClick:j,className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":n?"Switch to light mode":"Switch to dark mode",title:n?"Light Mode (⌘D)":"Dark Mode (⌘D)",children:n?t.jsx(ie,{className:"h-5 w-5"}):t.jsx(oe,{className:"h-5 w-5"})}),t.jsx("button",{onClick:k,className:"p-2.5 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-lg transition-colors","aria-label":"Clear all data",title:"Clear All Data (⌘K)",children:t.jsx(le,{className:"h-5 w-5"})}),t.jsx("a",{href:"https://github.com/mogretici/nestlens",target:"_blank",rel:"noopener noreferrer",className:"p-2.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors","aria-label":"Documentation",title:"Documentation",children:t.jsx(re,{className:"h-5 w-5"})})]})})]})}),t.jsxs("div",{className:"lg:pl-64",children:[t.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center gap-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 lg:hidden",children:[t.jsx("button",{onClick:()=>e(!0),className:"text-gray-500 hover:text-gray-700 dark:text-gray-400","aria-expanded":a,"aria-controls":"mobile-sidebar","aria-label":"Open navigation menu",children:t.jsx(Jt,{className:"h-6 w-6","aria-hidden":"true"})}),t.jsxs(D,{to:"/",className:"flex items-center space-x-2",children:[t.jsx(U,{className:"h-6 w-6 text-primary-600"}),t.jsx("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"NestLens"})]})]}),t.jsx("main",{className:"p-4 lg:p-6",children:t.jsx(Ae,{})})]})]})}function f(){return t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-primary-600 dark:border-primary-400"}),t.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Loading..."})]})})}const hs=r.lazy(()=>v(()=>import("./DashboardPage-Bl0QYNJ5.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),ms=r.lazy(()=>v(()=>import("./RequestsPage-CIHqEF5P.js"),__vite__mapDeps([5,1,2,6,7,8,9,10]),import.meta.url)),ps=r.lazy(()=>v(()=>import("./QueriesPage-DPls44cD.js"),__vite__mapDeps([11,1,2,6,7,8,9,10,3]),import.meta.url)),xs=r.lazy(()=>v(()=>import("./ExceptionsPage-Qa60iwA4.js"),__vite__mapDeps([12,1,2,6,7,8,9,10,13]),import.meta.url)),fs=r.lazy(()=>v(()=>import("./LogsPage-CaCtKQZ0.js"),__vite__mapDeps([14,1,2,6,7,8,9,10]),import.meta.url)),ys=r.lazy(()=>v(()=>import("./EventsPage-DCpLnIob.js"),__vite__mapDeps([15,1,2,6,7,10]),import.meta.url)),gs=r.lazy(()=>v(()=>import("./JobsPage-BpBk0bYd.js"),__vite__mapDeps([16,1,2,6,7,10]),import.meta.url)),js=r.lazy(()=>v(()=>import("./CachePage-Dv0sIWfb.js"),__vite__mapDeps([17,1,2,6,7,10]),import.meta.url)),bs=r.lazy(()=>v(()=>import("./MailPage-DAkydOVp.js"),__vite__mapDeps([18,1,2,6,7,10]),import.meta.url)),ks=r.lazy(()=>v(()=>import("./SchedulePage-D3MuXtV1.js"),__vite__mapDeps([19,1,20,2,6,7,10]),import.meta.url)),vs=r.lazy(()=>v(()=>import("./HttpClientPage-Kxa5nm75.js"),__vite__mapDeps([21,1,2,6,7,10]),import.meta.url)),ws=r.lazy(()=>v(()=>import("./RedisPage-DhAhXwAd.js"),__vite__mapDeps([22,1,2,6,7,10]),import.meta.url)),Ss=r.lazy(()=>v(()=>import("./ModelsPage-BwK3r0-I.js"),__vite__mapDeps([23,1,2,6,7,10]),import.meta.url)),_s=r.lazy(()=>v(()=>import("./NotificationsPage-DMGpuTU-.js"),__vite__mapDeps([24,1,2,6,7,10]),import.meta.url)),Es=r.lazy(()=>v(()=>import("./ViewsPage-CW5aN_D5.js"),__vite__mapDeps([25,1,2,6,7,10,26]),import.meta.url)),Ns=r.lazy(()=>v(()=>import("./CommandsPage-DfJBmcAu.js"),__vite__mapDeps([27,1,2,6,7,10]),import.meta.url)),Ps=r.lazy(()=>v(()=>import("./GatesPage-DHGIZzbG.js"),__vite__mapDeps([28,1,2,6,7,10]),import.meta.url)),Cs=r.lazy(()=>v(()=>import("./BatchesPage-DT5Mywoo.js"),__vite__mapDeps([29,1,2,6,7,10]),import.meta.url)),Rs=r.lazy(()=>v(()=>import("./DumpsPage-Cd0B4s9o.js"),__vite__mapDeps([30,1,2,6,7,10]),import.meta.url)),Ls=r.lazy(()=>v(()=>import("./GraphQLPage-Cft-KFpI.js"),__vite__mapDeps([31,1,2,8,9,6,7,10]),import.meta.url)),S=r.lazy(()=>v(()=>import("./EntryDetailPage-QTrST2MQ.js").then(s=>s.E),__vite__mapDeps([32,1,2,7,9]),import.meta.url));function Ts(){return t.jsx(Oe,{children:t.jsxs(p,{path:"/",element:t.jsx(us,{}),children:[t.jsx(p,{index:!0,element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(hs,{})})}),t.jsx(p,{path:"requests",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ms,{})})}),t.jsx(p,{path:"queries",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ps,{})})}),t.jsx(p,{path:"exceptions",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(xs,{})})}),t.jsx(p,{path:"logs",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(fs,{})})}),t.jsx(p,{path:"events",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ys,{})})}),t.jsx(p,{path:"jobs",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(gs,{})})}),t.jsx(p,{path:"cache",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(js,{})})}),t.jsx(p,{path:"mail",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(bs,{})})}),t.jsx(p,{path:"schedule",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ks,{})})}),t.jsx(p,{path:"http-client",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(vs,{})})}),t.jsx(p,{path:"redis",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(ws,{})})}),t.jsx(p,{path:"models",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ss,{})})}),t.jsx(p,{path:"notifications",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(_s,{})})}),t.jsx(p,{path:"views",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Es,{})})}),t.jsx(p,{path:"commands",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ns,{})})}),t.jsx(p,{path:"gates",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ps,{})})}),t.jsx(p,{path:"batches",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Cs,{})})}),t.jsx(p,{path:"dumps",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Rs,{})})}),t.jsx(p,{path:"graphql",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(Ls,{})})}),t.jsx(p,{path:"requests/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"queries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"exceptions/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"logs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"events/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"jobs/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"cache/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"mail/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"schedule/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"http-client/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"redis/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"models/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"notifications/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"views/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"commands/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"gates/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"batches/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"dumps/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"graphql/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"entries/:id",element:t.jsx(r.Suspense,{fallback:t.jsx(f,{}),children:t.jsx(S,{})})}),t.jsx(p,{path:"*",element:t.jsx(De,{to:"/",replace:!0})})]})})}class As extends r.Component{constructor(){super(...arguments);z(this,"state",{hasError:!1});z(this,"handleReload",()=>{window.location.reload()});z(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,i){console.error("ErrorBoundary caught an error:",e,i),this.setState({errorInfo:i})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 p-4",children:t.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 text-center",children:[t.jsx("div",{className:"mx-auto w-12 h-12 flex items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30 mb-4",children:t.jsx(ve,{className:"h-6 w-6 text-red-600 dark:text-red-400"})}),t.jsx("h1",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),t.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),this.state.error&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 rounded-lg text-left",children:t.jsx("p",{className:"text-sm font-mono text-red-600 dark:text-red-400 break-all",children:this.state.error.message})}),t.jsxs("div",{className:"flex gap-3 justify-center",children:[t.jsx("button",{onClick:this.handleReset,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 rounded-lg transition-colors",children:"Try Again"}),t.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 rounded-lg transition-colors",children:[t.jsx(es,{className:"h-4 w-4"}),"Refresh Page"]})]}),!1]})}):this.props.children}}const Os=1e4;function Ds({children:s}){const[a,e]=r.useState(null),[i,l]=r.useState(null),o=r.useRef(!0),n=r.useRef(!0),c=r.useCallback(d=>{n.current&&(e(d),l(null),o.current=!1)},[]),u=r.useCallback(d=>{if(!n.current)return;const h=d instanceof Error?d:new Error("Failed to fetch stats");l(h),console.error("Failed to fetch stats:",d),o.current&&q.error("Failed to load statistics"),o.current=!1},[]),x=r.useCallback(async()=>ce().then(d=>c(d.data),d=>u(d)),[c,u]);return r.useEffect(()=>{n.current=!0;const d=setInterval(()=>void x(),Os);return ce().then(h=>c(h.data),u),()=>{n.current=!1,clearInterval(d)}},[x,c,u]),t.jsx(_e.Provider,{value:{stats:a,error:i,refreshStats:x},children:s})}const Ee=document.getElementById("root");if(!Ee)throw new Error("NestLens dashboard: no #root element in the served index.html");Ve.createRoot(Ee).render(t.jsx(Me.StrictMode,{children:t.jsx(As,{children:t.jsx(qe,{basename:we(),children:t.jsxs(Ds,{children:[t.jsx(Ts,{}),t.jsx(Rt,{position:"bottom-right",toastOptions:{duration:3e3,style:{background:"#1f2937",color:"#f3f4f6",borderRadius:"0.5rem"},success:{iconTheme:{primary:"#10b981",secondary:"#f3f4f6"}},error:{iconTheme:{primary:"#ef4444",secondary:"#f3f4f6"}}}})]})})})}));export{Mt as A,zt as B,It as C,Kt as D,Vt as F,Bt as G,ne as H,Ht as L,Ut as M,Wt as P,Yt as R,ts as S,ve as T,as as X,v as _,ss as a,$t as b,g as c,Ft as d,qt as e,Qt as f,ae as g,le as h,es as i,t as j,Vs as k,Bs as l,zs as m,Gs as n,Hs as o,rs as p,Is as q,Fs as r,Ks as s,se as t,ds as u,$s as v,Xt as w,q as z};