@tuongaz/seeflow 0.1.115 → 0.1.116

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 (58) hide show
  1. package/dist/web/assets/{architectureDiagram-3BPJPVTR-DPSNT4Ld.js → architectureDiagram-3BPJPVTR-ChS0qb2x.js} +1 -1
  2. package/dist/web/assets/{blockDiagram-GPEHLZMM-BLOY8u_S.js → blockDiagram-GPEHLZMM-ClsRJfbP.js} +1 -1
  3. package/dist/web/assets/{c4Diagram-AAUBKEIU-CbCtsmL8.js → c4Diagram-AAUBKEIU-DraVWb1q.js} +1 -1
  4. package/dist/web/assets/channel-CFhAGsWg.js +1 -0
  5. package/dist/web/assets/{chart-cc_BTAZc.js → chart-Cl0G2q74.js} +1 -1
  6. package/dist/web/assets/{chunk-2J33WTMH-CLTlAzLO.js → chunk-2J33WTMH-RlnFQ5n3.js} +1 -1
  7. package/dist/web/assets/{chunk-4BX2VUAB-DOzixJ_C.js → chunk-4BX2VUAB-BzyRq_P8.js} +1 -1
  8. package/dist/web/assets/{chunk-55IACEB6-DXCxqBPy.js → chunk-55IACEB6-GEPQm1rc.js} +1 -1
  9. package/dist/web/assets/{chunk-727SXJPM-Bu54HSh0.js → chunk-727SXJPM-C3bBzMUY.js} +1 -1
  10. package/dist/web/assets/{chunk-AQP2D5EJ-BJeKkLj3.js → chunk-AQP2D5EJ-DDvxd8ad.js} +1 -1
  11. package/dist/web/assets/{chunk-FMBD7UC4-DCsZrH7U.js → chunk-FMBD7UC4-CirSrEeW.js} +1 -1
  12. package/dist/web/assets/{chunk-ND2GUHAM-CZh-szVJ.js → chunk-ND2GUHAM-Dj61HkBx.js} +1 -1
  13. package/dist/web/assets/{chunk-QZHKN3VN-D6Rh2zez.js → chunk-QZHKN3VN-wY1aCiCt.js} +1 -1
  14. package/dist/web/assets/classDiagram-4FO5ZUOK-Bn7A0H77.js +1 -0
  15. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-Bn7A0H77.js +1 -0
  16. package/dist/web/assets/{code-block-DptLogcr.js → code-block-CWlhsgY3.js} +1 -1
  17. package/dist/web/assets/{cose-bilkent-S5V4N54A-D2qgFc2h.js → cose-bilkent-S5V4N54A-Cvi7kqCH.js} +1 -1
  18. package/dist/web/assets/{dagre-BM42HDAG-qiFI29jP.js → dagre-BM42HDAG-j8nwNHtP.js} +1 -1
  19. package/dist/web/assets/{diagram-2AECGRRQ-Bsg9_Vd2.js → diagram-2AECGRRQ-BHS5sQs2.js} +1 -1
  20. package/dist/web/assets/{diagram-5GNKFQAL-BjqB0OrC.js → diagram-5GNKFQAL-CTtPXDpI.js} +1 -1
  21. package/dist/web/assets/{diagram-KO2AKTUF-D6K76HMu.js → diagram-KO2AKTUF-C3QzT83u.js} +1 -1
  22. package/dist/web/assets/{diagram-LMA3HP47-DqE19eSp.js → diagram-LMA3HP47-CD8FOgbM.js} +1 -1
  23. package/dist/web/assets/{diagram-OG6HWLK6-CksK6tca.js → diagram-OG6HWLK6-BUgOtqGR.js} +1 -1
  24. package/dist/web/assets/{erDiagram-TEJ5UH35-CAoVV0ZD.js → erDiagram-TEJ5UH35-CxmhWgYx.js} +1 -1
  25. package/dist/web/assets/{flowDiagram-I6XJVG4X-y8ikYQRC.js → flowDiagram-I6XJVG4X-S_cP7gJJ.js} +1 -1
  26. package/dist/web/assets/{ganttDiagram-6RSMTGT7-Dd5NIwTe.js → ganttDiagram-6RSMTGT7-CFL39R66.js} +1 -1
  27. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-DBdL4Hbc.js → gitGraphDiagram-PVQCEYII-DHzQjhWY.js} +1 -1
  28. package/dist/web/assets/{iconify-BM9V6YC8.js → iconify-DygcsvA_.js} +1 -1
  29. package/dist/web/assets/{index-B0-42wxM.js → index-vrogwRu7.js} +6 -6
  30. package/dist/web/assets/{index.es-DBSLNquD.js → index.es-DCyBp83M.js} +1 -1
  31. package/dist/web/assets/{infoDiagram-5YYISTIA-FeMwn_sl.js → infoDiagram-5YYISTIA-BIEW0vFd.js} +1 -1
  32. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-sPsSKUJS.js → ishikawaDiagram-YF4QCWOH-BTJFVfqA.js} +1 -1
  33. package/dist/web/assets/{journeyDiagram-JHISSGLW-7pY6zTCs.js → journeyDiagram-JHISSGLW-CjrQ6RsI.js} +1 -1
  34. package/dist/web/assets/{jspdf.es.min-CswmcIXO.js → jspdf.es.min-YoYb8Omk.js} +3 -3
  35. package/dist/web/assets/{kanban-definition-UN3LZRKU-doQuIKQj.js → kanban-definition-UN3LZRKU-DjmxqRKs.js} +1 -1
  36. package/dist/web/assets/{linear-ata0BYQv.js → linear-_5pJT7vm.js} +1 -1
  37. package/dist/web/assets/{markdown-32W9Sfos.js → markdown-y_6oaD2w.js} +1 -1
  38. package/dist/web/assets/{mermaid.core-BTSFRjqx.js → mermaid.core-BQGwXUyN.js} +4 -4
  39. package/dist/web/assets/{mindmap-definition-RKZ34NQL-C-jOY5nO.js → mindmap-definition-RKZ34NQL-BDqqUc0b.js} +1 -1
  40. package/dist/web/assets/{pieDiagram-4H26LBE5-mR7G0RQM.js → pieDiagram-4H26LBE5-dXuWIrlE.js} +1 -1
  41. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DFUxJ-U6.js → quadrantDiagram-W4KKPZXB-CJNSFKIz.js} +1 -1
  42. package/dist/web/assets/{requirementDiagram-4Y6WPE33-B2F_8-jz.js → requirementDiagram-4Y6WPE33-DwlMtj0S.js} +1 -1
  43. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-pmFTmxfV.js → sankeyDiagram-5OEKKPKP-MJWxcCKy.js} +1 -1
  44. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-DVTr4etq.js → sequenceDiagram-3UESZ5HK-CyjlXmJF.js} +1 -1
  45. package/dist/web/assets/{stateDiagram-AJRCARHV-B3kGcK4s.js → stateDiagram-AJRCARHV-CKszvTuC.js} +1 -1
  46. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-DEaCewos.js +1 -0
  47. package/dist/web/assets/{time-Crf6gimZ.js → time-BxtQjMAy.js} +1 -1
  48. package/dist/web/assets/{timeline-definition-PNZ67QCA-DcwDdX5c.js → timeline-definition-PNZ67QCA-NQ4BeV8V.js} +1 -1
  49. package/dist/web/assets/{vennDiagram-CIIHVFJN-CxXiWkT0.js → vennDiagram-CIIHVFJN-CERW1eu-.js} +1 -1
  50. package/dist/web/assets/{wardley-L42UT6IY-DsyOk5dp.js → wardley-L42UT6IY-CYU6l-ee.js} +1 -1
  51. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-C1k96fap.js → wardleyDiagram-YWT4CUSO-CRJfy1am.js} +1 -1
  52. package/dist/web/assets/{xychartDiagram-2RQKCTM6-BrhHRzGu.js → xychartDiagram-2RQKCTM6-PQ_cRQCE.js} +1 -1
  53. package/dist/web/index.html +1 -1
  54. package/package.json +1 -1
  55. package/dist/web/assets/channel-D_zmRSCr.js +0 -1
  56. package/dist/web/assets/classDiagram-4FO5ZUOK-Bp9sU3Ow.js +0 -1
  57. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-Bp9sU3Ow.js +0 -1
  58. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-DQ4N2HXZ.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chart-cc_BTAZc.js","assets/step-CWvwoXpJ.js","assets/band-BEGRCkg7.js","assets/init-BFKUnIhM.js","assets/ordinal-BQ3KlzSu.js","assets/linear-ata0BYQv.js","assets/defaultLocale-CrowFXzY.js","assets/time-Crf6gimZ.js","assets/mermaid.core-BTSFRjqx.js","assets/purify.es-CLGrRn1w.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chart-Cl0G2q74.js","assets/step-CWvwoXpJ.js","assets/band-BEGRCkg7.js","assets/init-BFKUnIhM.js","assets/ordinal-BQ3KlzSu.js","assets/linear-_5pJT7vm.js","assets/defaultLocale-CrowFXzY.js","assets/time-BxtQjMAy.js","assets/mermaid.core-BQGwXUyN.js","assets/purify.es-CLGrRn1w.js"])))=>i.map(i=>d[i]);
2
2
  function rse(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var PP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BX={exports:{}},Wz={},UX={exports:{}},Je={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -8443,7 +8443,7 @@ Error generating stack: `+i.message+`
8443
8443
  *
8444
8444
  * This source code is licensed under the ISC license.
8445
8445
  * See the LICENSE file in the root directory of this source tree.
8446
- */const bEe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ny,AArrowDownIcon:Ny,AArrowUp:Iy,AArrowUpIcon:Iy,ALargeSmall:Ay,ALargeSmallIcon:Ay,Accessibility:Ey,AccessibilityIcon:Ey,Activity:jy,ActivityIcon:jy,ActivitySquare:h1,ActivitySquareIcon:h1,AirVent:$y,AirVentIcon:$y,Airplay:Py,AirplayIcon:Py,AlarmCheck:Es,AlarmCheckIcon:Es,AlarmClock:Ry,AlarmClockCheck:Es,AlarmClockCheckIcon:Es,AlarmClockIcon:Ry,AlarmClockMinus:js,AlarmClockMinusIcon:js,AlarmClockOff:zy,AlarmClockOffIcon:zy,AlarmClockPlus:$s,AlarmClockPlusIcon:$s,AlarmMinus:js,AlarmMinusIcon:js,AlarmPlus:$s,AlarmPlusIcon:$s,AlarmSmoke:Ty,AlarmSmokeIcon:Ty,Album:Dy,AlbumIcon:Dy,AlertCircle:ba,AlertCircleIcon:ba,AlertOctagon:Fl,AlertOctagonIcon:Fl,AlertTriangle:qr,AlertTriangleIcon:qr,AlignCenter:Sa,AlignCenterHorizontal:Oy,AlignCenterHorizontalIcon:Oy,AlignCenterIcon:Sa,AlignCenterVertical:Hy,AlignCenterVerticalIcon:Hy,AlignEndHorizontal:Fy,AlignEndHorizontalIcon:Fy,AlignEndVertical:qy,AlignEndVerticalIcon:qy,AlignHorizontalDistributeCenter:Vy,AlignHorizontalDistributeCenterIcon:Vy,AlignHorizontalDistributeEnd:By,AlignHorizontalDistributeEndIcon:By,AlignHorizontalDistributeStart:Uy,AlignHorizontalDistributeStartIcon:Uy,AlignHorizontalJustifyCenter:Wy,AlignHorizontalJustifyCenterIcon:Wy,AlignHorizontalJustifyEnd:Ky,AlignHorizontalJustifyEndIcon:Ky,AlignHorizontalJustifyStart:Gy,AlignHorizontalJustifyStartIcon:Gy,AlignHorizontalSpaceAround:Xy,AlignHorizontalSpaceAroundIcon:Xy,AlignHorizontalSpaceBetween:Zy,AlignHorizontalSpaceBetweenIcon:Zy,AlignJustify:ud,AlignJustifyIcon:ud,AlignLeft:Zo,AlignLeftIcon:Zo,AlignRight:La,AlignRightIcon:La,AlignStartHorizontal:Yy,AlignStartHorizontalIcon:Yy,AlignStartVertical:Qy,AlignStartVerticalIcon:Qy,AlignVerticalDistributeCenter:Jy,AlignVerticalDistributeCenterIcon:Jy,AlignVerticalDistributeEnd:em,AlignVerticalDistributeEndIcon:em,AlignVerticalDistributeStart:tm,AlignVerticalDistributeStartIcon:tm,AlignVerticalJustifyCenter:nm,AlignVerticalJustifyCenterIcon:nm,AlignVerticalJustifyEnd:om,AlignVerticalJustifyEndIcon:om,AlignVerticalJustifyStart:rm,AlignVerticalJustifyStartIcon:rm,AlignVerticalSpaceAround:im,AlignVerticalSpaceAroundIcon:im,AlignVerticalSpaceBetween:am,AlignVerticalSpaceBetweenIcon:am,Ambulance:sm,AmbulanceIcon:sm,Ampersand:cm,AmpersandIcon:cm,Ampersands:lm,AmpersandsIcon:lm,Amphora:dm,AmphoraIcon:dm,Anchor:um,AnchorIcon:um,Angry:hm,AngryIcon:hm,Annoyed:fm,AnnoyedIcon:fm,Antenna:pm,AntennaIcon:pm,Anvil:ym,AnvilIcon:ym,Aperture:mm,ApertureIcon:mm,AppWindow:km,AppWindowIcon:km,AppWindowMac:gm,AppWindowMacIcon:gm,Apple:vm,AppleIcon:vm,Archive:Mm,ArchiveIcon:Mm,ArchiveRestore:xm,ArchiveRestoreIcon:xm,ArchiveX:wm,ArchiveXIcon:wm,AreaChart:Ks,AreaChartIcon:Ks,Armchair:bm,ArmchairIcon:bm,ArrowBigDown:Cm,ArrowBigDownDash:_m,ArrowBigDownDashIcon:_m,ArrowBigDownIcon:Cm,ArrowBigLeft:Lm,ArrowBigLeftDash:Sm,ArrowBigLeftDashIcon:Sm,ArrowBigLeftIcon:Lm,ArrowBigRight:Im,ArrowBigRightDash:Nm,ArrowBigRightDashIcon:Nm,ArrowBigRightIcon:Im,ArrowBigUp:Em,ArrowBigUpDash:Am,ArrowBigUpDashIcon:Am,ArrowBigUpIcon:Em,ArrowDown:Fm,ArrowDown01:jm,ArrowDown01Icon:jm,ArrowDown10:$m,ArrowDown10Icon:$m,ArrowDownAZ:Ps,ArrowDownAZIcon:Ps,ArrowDownAz:Ps,ArrowDownAzIcon:Ps,ArrowDownCircle:cc,ArrowDownCircleIcon:cc,ArrowDownFromLine:Pm,ArrowDownFromLineIcon:Pm,ArrowDownIcon:Fm,ArrowDownLeft:Rm,ArrowDownLeftFromCircle:lc,ArrowDownLeftFromCircleIcon:lc,ArrowDownLeftFromSquare:g1,ArrowDownLeftFromSquareIcon:g1,ArrowDownLeftIcon:Rm,ArrowDownLeftSquare:f1,ArrowDownLeftSquareIcon:f1,ArrowDownNarrowWide:zm,ArrowDownNarrowWideIcon:zm,ArrowDownRight:Dm,ArrowDownRightFromCircle:uc,ArrowDownRightFromCircleIcon:uc,ArrowDownRightFromSquare:k1,ArrowDownRightFromSquareIcon:k1,ArrowDownRightIcon:Dm,ArrowDownRightSquare:p1,ArrowDownRightSquareIcon:p1,ArrowDownSquare:y1,ArrowDownSquareIcon:y1,ArrowDownToDot:Tm,ArrowDownToDotIcon:Tm,ArrowDownToLine:Hm,ArrowDownToLineIcon:Hm,ArrowDownUp:Om,ArrowDownUpIcon:Om,ArrowDownWideNarrow:zs,ArrowDownWideNarrowIcon:zs,ArrowDownZA:Rs,ArrowDownZAIcon:Rs,ArrowDownZa:Rs,ArrowDownZaIcon:Rs,ArrowLeft:Bm,ArrowLeftCircle:dc,ArrowLeftCircleIcon:dc,ArrowLeftFromLine:qm,ArrowLeftFromLineIcon:qm,ArrowLeftIcon:Bm,ArrowLeftRight:d2,ArrowLeftRightIcon:d2,ArrowLeftSquare:m1,ArrowLeftSquareIcon:m1,ArrowLeftToLine:Vm,ArrowLeftToLineIcon:Vm,ArrowRight:y0,ArrowRightCircle:pc,ArrowRightCircleIcon:pc,ArrowRightFromLine:Um,ArrowRightFromLineIcon:Um,ArrowRightIcon:y0,ArrowRightLeft:Wm,ArrowRightLeftIcon:Wm,ArrowRightSquare:w1,ArrowRightSquareIcon:w1,ArrowRightToLine:Gm,ArrowRightToLineIcon:Gm,ArrowUp:og,ArrowUp01:Km,ArrowUp01Icon:Km,ArrowUp10:Xm,ArrowUp10Icon:Xm,ArrowUpAZ:Ts,ArrowUpAZIcon:Ts,ArrowUpAz:Ts,ArrowUpAzIcon:Ts,ArrowUpCircle:yc,ArrowUpCircleIcon:yc,ArrowUpDown:Zm,ArrowUpDownIcon:Zm,ArrowUpFromDot:Ym,ArrowUpFromDotIcon:Ym,ArrowUpFromLine:Qm,ArrowUpFromLineIcon:Qm,ArrowUpIcon:og,ArrowUpLeft:Jm,ArrowUpLeftFromCircle:hc,ArrowUpLeftFromCircleIcon:hc,ArrowUpLeftFromSquare:v1,ArrowUpLeftFromSquareIcon:v1,ArrowUpLeftIcon:Jm,ArrowUpLeftSquare:M1,ArrowUpLeftSquareIcon:M1,ArrowUpNarrowWide:Ds,ArrowUpNarrowWideIcon:Ds,ArrowUpRight:tg,ArrowUpRightFromCircle:fc,ArrowUpRightFromCircleIcon:fc,ArrowUpRightFromSquare:x1,ArrowUpRightFromSquareIcon:x1,ArrowUpRightIcon:tg,ArrowUpRightSquare:C1,ArrowUpRightSquareIcon:C1,ArrowUpSquare:b1,ArrowUpSquareIcon:b1,ArrowUpToLine:eg,ArrowUpToLineIcon:eg,ArrowUpWideNarrow:ng,ArrowUpWideNarrowIcon:ng,ArrowUpZA:Hs,ArrowUpZAIcon:Hs,ArrowUpZa:Hs,ArrowUpZaIcon:Hs,ArrowsUpFromLine:rg,ArrowsUpFromLineIcon:rg,Asterisk:ig,AsteriskIcon:ig,AsteriskSquare:_1,AsteriskSquareIcon:_1,AtSign:ag,AtSignIcon:ag,Atom:sg,AtomIcon:sg,AudioLines:cg,AudioLinesIcon:cg,AudioWaveform:dg,AudioWaveformIcon:dg,Award:lg,AwardIcon:lg,Axe:ug,AxeIcon:ug,Axis3D:Os,Axis3DIcon:Os,Axis3d:Os,Axis3dIcon:Os,Baby:hg,BabyIcon:hg,Backpack:fg,BackpackIcon:fg,Badge:Ig,BadgeAlert:yg,BadgeAlertIcon:yg,BadgeCent:pg,BadgeCentIcon:pg,BadgeCheck:Fs,BadgeCheckIcon:Fs,BadgeDollarSign:mg,BadgeDollarSignIcon:mg,BadgeEuro:kg,BadgeEuroIcon:kg,BadgeHelp:qs,BadgeHelpIcon:qs,BadgeIcon:Ig,BadgeIndianRupee:gg,BadgeIndianRupeeIcon:gg,BadgeInfo:vg,BadgeInfoIcon:vg,BadgeJapaneseYen:xg,BadgeJapaneseYenIcon:xg,BadgeMinus:wg,BadgeMinusIcon:wg,BadgePercent:Mg,BadgePercentIcon:Mg,BadgePlus:bg,BadgePlusIcon:bg,BadgePoundSterling:_g,BadgePoundSterlingIcon:_g,BadgeQuestionMark:qs,BadgeQuestionMarkIcon:qs,BadgeRussianRuble:Cg,BadgeRussianRubleIcon:Cg,BadgeSwissFranc:Sg,BadgeSwissFrancIcon:Sg,BadgeTurkishLira:Lg,BadgeTurkishLiraIcon:Lg,BadgeX:Ng,BadgeXIcon:Ng,BaggageClaim:Ag,BaggageClaimIcon:Ag,Balloon:Eg,BalloonIcon:Eg,Ban:u2,BanIcon:u2,Banana:jg,BananaIcon:jg,Bandage:$g,BandageIcon:$g,Banknote:Tg,BanknoteArrowDown:Pg,BanknoteArrowDownIcon:Pg,BanknoteArrowUp:zg,BanknoteArrowUpIcon:zg,BanknoteIcon:Tg,BanknoteX:Rg,BanknoteXIcon:Rg,BarChart:nc,BarChart2:oc,BarChart2Icon:oc,BarChart3:ec,BarChart3Icon:ec,BarChart4:Js,BarChart4Icon:Js,BarChartBig:Qs,BarChartBigIcon:Qs,BarChartHorizontal:Zs,BarChartHorizontalBig:Xs,BarChartHorizontalBigIcon:Xs,BarChartHorizontalIcon:Zs,BarChartIcon:nc,Barcode:Dg,BarcodeIcon:Dg,Barrel:Hg,BarrelIcon:Hg,Baseline:Og,BaselineIcon:Og,Bath:Fg,BathIcon:Fg,Battery:Kg,BatteryCharging:qg,BatteryChargingIcon:qg,BatteryFull:Vg,BatteryFullIcon:Vg,BatteryIcon:Kg,BatteryLow:Bg,BatteryLowIcon:Bg,BatteryMedium:Ug,BatteryMediumIcon:Ug,BatteryPlus:Wg,BatteryPlusIcon:Wg,BatteryWarning:Gg,BatteryWarningIcon:Gg,Beaker:Xg,BeakerIcon:Xg,Bean:Yg,BeanIcon:Yg,BeanOff:Zg,BeanOffIcon:Zg,Bed:ek,BedDouble:Qg,BedDoubleIcon:Qg,BedIcon:ek,BedSingle:Jg,BedSingleIcon:Jg,Beef:tk,BeefIcon:tk,Beer:ok,BeerIcon:ok,BeerOff:nk,BeerOffIcon:nk,Bell:dk,BellDot:rk,BellDotIcon:rk,BellElectric:ik,BellElectricIcon:ik,BellIcon:dk,BellMinus:ak,BellMinusIcon:ak,BellOff:sk,BellOffIcon:sk,BellPlus:ck,BellPlusIcon:ck,BellRing:lk,BellRingIcon:lk,BetweenHorizonalEnd:Vs,BetweenHorizonalEndIcon:Vs,BetweenHorizonalStart:Bs,BetweenHorizonalStartIcon:Bs,BetweenHorizontalEnd:Vs,BetweenHorizontalEndIcon:Vs,BetweenHorizontalStart:Bs,BetweenHorizontalStartIcon:Bs,BetweenVerticalEnd:uk,BetweenVerticalEndIcon:uk,BetweenVerticalStart:hk,BetweenVerticalStartIcon:hk,BicepsFlexed:fk,BicepsFlexedIcon:fk,Bike:pk,BikeIcon:pk,Binary:yk,BinaryIcon:yk,Binoculars:mk,BinocularsIcon:mk,Biohazard:gk,BiohazardIcon:gk,Bird:kk,BirdIcon:kk,Birdhouse:vk,BirdhouseIcon:vk,Bitcoin:xk,BitcoinIcon:xk,Blend:wk,BlendIcon:wk,Blinds:Mk,BlindsIcon:Mk,Blocks:bk,BlocksIcon:bk,Bluetooth:Lk,BluetoothConnected:_k,BluetoothConnectedIcon:_k,BluetoothIcon:Lk,BluetoothOff:Ck,BluetoothOffIcon:Ck,BluetoothSearching:Sk,BluetoothSearchingIcon:Sk,Bold:Nk,BoldIcon:Nk,Bolt:Ik,BoltIcon:Ik,Bomb:Ak,BombIcon:Ak,Bone:Ek,BoneIcon:Ek,Book:n4,BookA:jk,BookAIcon:jk,BookAlert:$k,BookAlertIcon:$k,BookAudio:Pk,BookAudioIcon:Pk,BookCheck:zk,BookCheckIcon:zk,BookCopy:Rk,BookCopyIcon:Rk,BookDashed:Us,BookDashedIcon:Us,BookDown:Tk,BookDownIcon:Tk,BookHeadphones:Dk,BookHeadphonesIcon:Dk,BookHeart:Hk,BookHeartIcon:Hk,BookIcon:n4,BookImage:Ok,BookImageIcon:Ok,BookKey:Fk,BookKeyIcon:Fk,BookLock:qk,BookLockIcon:qk,BookMarked:Vk,BookMarkedIcon:Vk,BookMinus:Bk,BookMinusIcon:Bk,BookOpen:Gk,BookOpenCheck:Uk,BookOpenCheckIcon:Uk,BookOpenIcon:Gk,BookOpenText:Wk,BookOpenTextIcon:Wk,BookPlus:Kk,BookPlusIcon:Kk,BookSearch:Xk,BookSearchIcon:Xk,BookTemplate:Us,BookTemplateIcon:Us,BookText:Zk,BookTextIcon:Zk,BookType:Yk,BookTypeIcon:Yk,BookUp:Jk,BookUp2:Qk,BookUp2Icon:Qk,BookUpIcon:Jk,BookUser:e4,BookUserIcon:e4,BookX:t4,BookXIcon:t4,Bookmark:s4,BookmarkCheck:o4,BookmarkCheckIcon:o4,BookmarkIcon:s4,BookmarkMinus:r4,BookmarkMinusIcon:r4,BookmarkPlus:i4,BookmarkPlusIcon:i4,BookmarkX:a4,BookmarkXIcon:a4,BoomBox:c4,BoomBoxIcon:c4,Bot:d4,BotIcon:d4,BotMessageSquare:l4,BotMessageSquareIcon:l4,BotOff:u4,BotOffIcon:u4,BottleWine:h4,BottleWineIcon:h4,BowArrow:f4,BowArrowIcon:f4,Box:p4,BoxIcon:p4,BoxSelect:R1,BoxSelectIcon:R1,Boxes:y4,BoxesIcon:y4,Braces:Ws,BracesIcon:Ws,Brackets:m4,BracketsIcon:m4,Brain:v4,BrainCircuit:g4,BrainCircuitIcon:g4,BrainCog:k4,BrainCogIcon:k4,BrainIcon:v4,BrickWall:M4,BrickWallFire:x4,BrickWallFireIcon:x4,BrickWallIcon:M4,BrickWallShield:w4,BrickWallShieldIcon:w4,Briefcase:S4,BriefcaseBusiness:b4,BriefcaseBusinessIcon:b4,BriefcaseConveyorBelt:_4,BriefcaseConveyorBeltIcon:_4,BriefcaseIcon:S4,BriefcaseMedical:C4,BriefcaseMedicalIcon:C4,BringToFront:L4,BringToFrontIcon:L4,Brush:A4,BrushCleaning:N4,BrushCleaningIcon:N4,BrushIcon:A4,Bubbles:I4,BubblesIcon:I4,Bug:$4,BugIcon:$4,BugOff:E4,BugOffIcon:E4,BugPlay:j4,BugPlayIcon:j4,Building:P4,Building2:z4,Building2Icon:z4,BuildingIcon:P4,Bus:T4,BusFront:R4,BusFrontIcon:R4,BusIcon:T4,Cable:H4,CableCar:D4,CableCarIcon:D4,CableIcon:H4,Cake:F4,CakeIcon:F4,CakeSlice:O4,CakeSliceIcon:O4,Calculator:q4,CalculatorIcon:q4,Calendar:l5,Calendar1:V4,Calendar1Icon:V4,CalendarArrowDown:B4,CalendarArrowDownIcon:B4,CalendarArrowUp:U4,CalendarArrowUpIcon:U4,CalendarCheck:G4,CalendarCheck2:W4,CalendarCheck2Icon:W4,CalendarCheckIcon:G4,CalendarClock:K4,CalendarClockIcon:K4,CalendarCog:X4,CalendarCogIcon:X4,CalendarDays:Z4,CalendarDaysIcon:Z4,CalendarFold:Y4,CalendarFoldIcon:Y4,CalendarHeart:Q4,CalendarHeartIcon:Q4,CalendarIcon:l5,CalendarMinus:e5,CalendarMinus2:J4,CalendarMinus2Icon:J4,CalendarMinusIcon:e5,CalendarOff:t5,CalendarOffIcon:t5,CalendarPlus:r5,CalendarPlus2:n5,CalendarPlus2Icon:n5,CalendarPlusIcon:r5,CalendarRange:o5,CalendarRangeIcon:o5,CalendarSearch:i5,CalendarSearchIcon:i5,CalendarSync:a5,CalendarSyncIcon:a5,CalendarX:c5,CalendarX2:s5,CalendarX2Icon:s5,CalendarXIcon:c5,Calendars:d5,CalendarsIcon:d5,Camera:h5,CameraIcon:h5,CameraOff:u5,CameraOffIcon:u5,CandlestickChart:Ys,CandlestickChartIcon:Ys,Candy:y5,CandyCane:f5,CandyCaneIcon:f5,CandyIcon:y5,CandyOff:p5,CandyOffIcon:p5,Cannabis:g5,CannabisIcon:g5,CannabisOff:m5,CannabisOffIcon:m5,Captions:Gs,CaptionsIcon:Gs,CaptionsOff:k5,CaptionsOffIcon:k5,Car:w5,CarFront:v5,CarFrontIcon:v5,CarIcon:w5,CarTaxiFront:x5,CarTaxiFrontIcon:x5,Caravan:M5,CaravanIcon:M5,CardSim:b5,CardSimIcon:b5,Carrot:_5,CarrotIcon:_5,CaseLower:C5,CaseLowerIcon:C5,CaseSensitive:S5,CaseSensitiveIcon:S5,CaseUpper:L5,CaseUpperIcon:L5,CassetteTape:N5,CassetteTapeIcon:N5,Cast:I5,CastIcon:I5,Castle:A5,CastleIcon:A5,Cat:E5,CatIcon:E5,Cctv:j5,CctvIcon:j5,ChartArea:Ks,ChartAreaIcon:Ks,ChartBar:Zs,ChartBarBig:Xs,ChartBarBigIcon:Xs,ChartBarDecreasing:$5,ChartBarDecreasingIcon:$5,ChartBarIcon:Zs,ChartBarIncreasing:P5,ChartBarIncreasingIcon:P5,ChartBarStacked:z5,ChartBarStackedIcon:z5,ChartCandlestick:Ys,ChartCandlestickIcon:Ys,ChartColumn:ec,ChartColumnBig:Qs,ChartColumnBigIcon:Qs,ChartColumnDecreasing:R5,ChartColumnDecreasingIcon:R5,ChartColumnIcon:ec,ChartColumnIncreasing:Js,ChartColumnIncreasingIcon:Js,ChartColumnStacked:T5,ChartColumnStackedIcon:T5,ChartGantt:D5,ChartGanttIcon:D5,ChartLine:tc,ChartLineIcon:tc,ChartNetwork:H5,ChartNetworkIcon:H5,ChartNoAxesColumn:oc,ChartNoAxesColumnDecreasing:O5,ChartNoAxesColumnDecreasingIcon:O5,ChartNoAxesColumnIcon:oc,ChartNoAxesColumnIncreasing:nc,ChartNoAxesColumnIncreasingIcon:nc,ChartNoAxesCombined:F5,ChartNoAxesCombinedIcon:F5,ChartNoAxesGantt:rc,ChartNoAxesGanttIcon:rc,ChartPie:ic,ChartPieIcon:ic,ChartScatter:ac,ChartScatterIcon:ac,ChartSpline:q5,ChartSplineIcon:q5,Check:Ba,CheckCheck:V5,CheckCheckIcon:V5,CheckCircle:mc,CheckCircle2:_a,CheckCircle2Icon:_a,CheckCircleIcon:mc,CheckIcon:Ba,CheckLine:B5,CheckLineIcon:B5,CheckSquare:L1,CheckSquare2:N1,CheckSquare2Icon:N1,CheckSquareIcon:L1,ChefHat:U5,ChefHatIcon:U5,Cherry:W5,CherryIcon:W5,ChessBishop:G5,ChessBishopIcon:G5,ChessKing:K5,ChessKingIcon:K5,ChessKnight:X5,ChessKnightIcon:X5,ChessPawn:Z5,ChessPawnIcon:Z5,ChessQueen:Y5,ChessQueenIcon:Y5,ChessRook:J5,ChessRookIcon:J5,ChevronDown:Q5,ChevronDownCircle:gc,ChevronDownCircleIcon:gc,ChevronDownIcon:Q5,ChevronDownSquare:I1,ChevronDownSquareIcon:I1,ChevronFirst:ev,ChevronFirstIcon:ev,ChevronLast:tv,ChevronLastIcon:tv,ChevronLeft:nv,ChevronLeftCircle:kc,ChevronLeftCircleIcon:kc,ChevronLeftIcon:nv,ChevronLeftSquare:A1,ChevronLeftSquareIcon:A1,ChevronRight:ov,ChevronRightCircle:vc,ChevronRightCircleIcon:vc,ChevronRightIcon:ov,ChevronRightSquare:j1,ChevronRightSquareIcon:j1,ChevronUp:rv,ChevronUpCircle:xc,ChevronUpCircleIcon:xc,ChevronUpIcon:rv,ChevronUpSquare:E1,ChevronUpSquareIcon:E1,ChevronsDown:av,ChevronsDownIcon:av,ChevronsDownUp:iv,ChevronsDownUpIcon:iv,ChevronsLeft:lv,ChevronsLeftIcon:lv,ChevronsLeftRight:cv,ChevronsLeftRightEllipsis:sv,ChevronsLeftRightEllipsisIcon:sv,ChevronsLeftRightIcon:cv,ChevronsRight:uv,ChevronsRightIcon:uv,ChevronsRightLeft:dv,ChevronsRightLeftIcon:dv,ChevronsUp:fv,ChevronsUpDown:hv,ChevronsUpDownIcon:hv,ChevronsUpIcon:fv,Chrome:sc,ChromeIcon:sc,Chromium:sc,ChromiumIcon:sc,Church:pv,ChurchIcon:pv,Cigarette:mv,CigaretteIcon:mv,CigaretteOff:yv,CigaretteOffIcon:yv,Circle:m0,CircleAlert:ba,CircleAlertIcon:ba,CircleArrowDown:cc,CircleArrowDownIcon:cc,CircleArrowLeft:dc,CircleArrowLeftIcon:dc,CircleArrowOutDownLeft:lc,CircleArrowOutDownLeftIcon:lc,CircleArrowOutDownRight:uc,CircleArrowOutDownRightIcon:uc,CircleArrowOutUpLeft:hc,CircleArrowOutUpLeftIcon:hc,CircleArrowOutUpRight:fc,CircleArrowOutUpRightIcon:fc,CircleArrowRight:pc,CircleArrowRightIcon:pc,CircleArrowUp:yc,CircleArrowUpIcon:yc,CircleCheck:_a,CircleCheckBig:mc,CircleCheckBigIcon:mc,CircleCheckIcon:_a,CircleChevronDown:gc,CircleChevronDownIcon:gc,CircleChevronLeft:kc,CircleChevronLeftIcon:kc,CircleChevronRight:vc,CircleChevronRightIcon:vc,CircleChevronUp:xc,CircleChevronUpIcon:xc,CircleDashed:gv,CircleDashedIcon:gv,CircleDivide:wc,CircleDivideIcon:wc,CircleDollarSign:kv,CircleDollarSignIcon:kv,CircleDot:xv,CircleDotDashed:vv,CircleDotDashedIcon:vv,CircleDotIcon:xv,CircleEllipsis:wv,CircleEllipsisIcon:wv,CircleEqual:Mv,CircleEqualIcon:Mv,CircleFadingArrowUp:bv,CircleFadingArrowUpIcon:bv,CircleFadingPlus:_v,CircleFadingPlusIcon:_v,CircleGauge:Mc,CircleGaugeIcon:Mc,CircleHelp:Xo,CircleHelpIcon:Xo,CircleIcon:m0,CircleMinus:bc,CircleMinusIcon:bc,CircleOff:Cv,CircleOffIcon:Cv,CircleParking:Cc,CircleParkingIcon:Cc,CircleParkingOff:_c,CircleParkingOffIcon:_c,CirclePause:Sc,CirclePauseIcon:Sc,CirclePercent:Lc,CirclePercentIcon:Lc,CirclePile:Sv,CirclePileIcon:Sv,CirclePlay:Nc,CirclePlayIcon:Nc,CirclePlus:Ic,CirclePlusIcon:Ic,CirclePoundSterling:Lv,CirclePoundSterlingIcon:Lv,CirclePower:Ac,CirclePowerIcon:Ac,CircleQuestionMark:Xo,CircleQuestionMarkIcon:Xo,CircleSlash:Nv,CircleSlash2:Ec,CircleSlash2Icon:Ec,CircleSlashIcon:Nv,CircleSlashed:Ec,CircleSlashedIcon:Ec,CircleSmall:Iv,CircleSmallIcon:Iv,CircleStar:Av,CircleStarIcon:Av,CircleStop:$c,CircleStopIcon:$c,CircleUser:Pc,CircleUserIcon:Pc,CircleUserRound:jc,CircleUserRoundIcon:jc,CircleX:zc,CircleXIcon:zc,CircuitBoard:Ev,CircuitBoardIcon:Ev,Citrus:jv,CitrusIcon:jv,Clapperboard:$v,ClapperboardIcon:$v,Clipboard:Vv,ClipboardCheck:Pv,ClipboardCheckIcon:Pv,ClipboardClock:zv,ClipboardClockIcon:zv,ClipboardCopy:Rv,ClipboardCopyIcon:Rv,ClipboardEdit:Tc,ClipboardEditIcon:Tc,ClipboardIcon:Vv,ClipboardList:Tv,ClipboardListIcon:Tv,ClipboardMinus:Dv,ClipboardMinusIcon:Dv,ClipboardPaste:Hv,ClipboardPasteIcon:Hv,ClipboardPen:Tc,ClipboardPenIcon:Tc,ClipboardPenLine:Rc,ClipboardPenLineIcon:Rc,ClipboardPlus:Ov,ClipboardPlusIcon:Ov,ClipboardSignature:Rc,ClipboardSignatureIcon:Rc,ClipboardType:Fv,ClipboardTypeIcon:Fv,ClipboardX:qv,ClipboardXIcon:qv,Clock:cx,Clock1:Bv,Clock10:Uv,Clock10Icon:Uv,Clock11:Wv,Clock11Icon:Wv,Clock12:Gv,Clock12Icon:Gv,Clock1Icon:Bv,Clock2:Kv,Clock2Icon:Kv,Clock3:Xv,Clock3Icon:Xv,Clock4:Zv,Clock4Icon:Zv,Clock5:Yv,Clock5Icon:Yv,Clock6:Qv,Clock6Icon:Qv,Clock7:Jv,Clock7Icon:Jv,Clock8:ex,Clock8Icon:ex,Clock9:tx,Clock9Icon:tx,ClockAlert:nx,ClockAlertIcon:nx,ClockArrowDown:ox,ClockArrowDownIcon:ox,ClockArrowUp:ax,ClockArrowUpIcon:ax,ClockCheck:rx,ClockCheckIcon:rx,ClockFading:ix,ClockFadingIcon:ix,ClockIcon:cx,ClockPlus:sx,ClockPlusIcon:sx,ClosedCaption:lx,ClosedCaptionIcon:lx,Cloud:h2,CloudAlert:dx,CloudAlertIcon:dx,CloudBackup:ux,CloudBackupIcon:ux,CloudCheck:hx,CloudCheckIcon:hx,CloudCog:fx,CloudCogIcon:fx,CloudDownload:Dc,CloudDownloadIcon:Dc,CloudDrizzle:px,CloudDrizzleIcon:px,CloudFog:yx,CloudFogIcon:yx,CloudHail:mx,CloudHailIcon:mx,CloudIcon:h2,CloudLightning:gx,CloudLightningIcon:gx,CloudMoon:vx,CloudMoonIcon:vx,CloudMoonRain:kx,CloudMoonRainIcon:kx,CloudOff:xx,CloudOffIcon:xx,CloudRain:Mx,CloudRainIcon:Mx,CloudRainWind:wx,CloudRainWindIcon:wx,CloudSnow:bx,CloudSnowIcon:bx,CloudSun:Cx,CloudSunIcon:Cx,CloudSunRain:_x,CloudSunRainIcon:_x,CloudSync:Sx,CloudSyncIcon:Sx,CloudUpload:Hc,CloudUploadIcon:Hc,Cloudy:Lx,CloudyIcon:Lx,Clover:Nx,CloverIcon:Nx,Club:Ix,ClubIcon:Ix,Code:Ax,Code2:Oc,Code2Icon:Oc,CodeIcon:Ax,CodeSquare:$1,CodeSquareIcon:$1,CodeXml:Oc,CodeXmlIcon:Oc,Codepen:Ex,CodepenIcon:Ex,Codesandbox:jx,CodesandboxIcon:jx,Coffee:$x,CoffeeIcon:$x,Cog:Px,CogIcon:Px,Coins:zx,CoinsIcon:zx,Columns:Fc,Columns2:Fc,Columns2Icon:Fc,Columns3:Ca,Columns3Cog:$r,Columns3CogIcon:$r,Columns3Icon:Ca,Columns4:Rx,Columns4Icon:Rx,ColumnsIcon:Fc,ColumnsSettings:$r,ColumnsSettingsIcon:$r,Combine:Tx,CombineIcon:Tx,Command:Dx,CommandIcon:Dx,Compass:Hx,CompassIcon:Hx,Component:Ox,ComponentIcon:Ox,Computer:Fx,ComputerIcon:Fx,ConciergeBell:qx,ConciergeBellIcon:qx,Cone:Vx,ConeIcon:Vx,Construction:Bx,ConstructionIcon:Bx,Contact:Ux,Contact2:qc,Contact2Icon:qc,ContactIcon:Ux,ContactRound:qc,ContactRoundIcon:qc,Container:Wx,ContainerIcon:Wx,Contrast:Gx,ContrastIcon:Gx,Cookie:Kx,CookieIcon:Kx,CookingPot:Xx,CookingPotIcon:Xx,Copy:t3,CopyCheck:Zx,CopyCheckIcon:Zx,CopyIcon:t3,CopyMinus:Yx,CopyMinusIcon:Yx,CopyPlus:Qx,CopyPlusIcon:Qx,CopySlash:Jx,CopySlashIcon:Jx,CopyX:e3,CopyXIcon:e3,Copyleft:o3,CopyleftIcon:o3,Copyright:n3,CopyrightIcon:n3,CornerDownLeft:r3,CornerDownLeftIcon:r3,CornerDownRight:i3,CornerDownRightIcon:i3,CornerLeftDown:a3,CornerLeftDownIcon:a3,CornerLeftUp:s3,CornerLeftUpIcon:s3,CornerRightDown:l3,CornerRightDownIcon:l3,CornerRightUp:c3,CornerRightUpIcon:c3,CornerUpLeft:u3,CornerUpLeftIcon:u3,CornerUpRight:d3,CornerUpRightIcon:d3,Cpu:h3,CpuIcon:h3,CreativeCommons:f3,CreativeCommonsIcon:f3,CreditCard:p3,CreditCardIcon:p3,Croissant:y3,CroissantIcon:y3,Crop:m3,CropIcon:m3,Cross:g3,CrossIcon:g3,Crosshair:k3,CrosshairIcon:k3,Crown:v3,CrownIcon:v3,Cuboid:x3,CuboidIcon:x3,CupSoda:w3,CupSodaIcon:w3,CurlyBraces:Ws,CurlyBracesIcon:Ws,Currency:M3,CurrencyIcon:M3,Cylinder:b3,CylinderIcon:b3,Dam:_3,DamIcon:_3,Database:f2,DatabaseBackup:C3,DatabaseBackupIcon:C3,DatabaseIcon:f2,DatabaseSearch:S3,DatabaseSearchIcon:S3,DatabaseZap:L3,DatabaseZapIcon:L3,DecimalsArrowLeft:N3,DecimalsArrowLeftIcon:N3,DecimalsArrowRight:I3,DecimalsArrowRightIcon:I3,Delete:A3,DeleteIcon:A3,Dessert:E3,DessertIcon:E3,Diameter:j3,DiameterIcon:j3,Diamond:g0,DiamondIcon:g0,DiamondMinus:$3,DiamondMinusIcon:$3,DiamondPercent:Vc,DiamondPercentIcon:Vc,DiamondPlus:P3,DiamondPlusIcon:P3,Dice1:z3,Dice1Icon:z3,Dice2:T3,Dice2Icon:T3,Dice3:R3,Dice3Icon:R3,Dice4:D3,Dice4Icon:D3,Dice5:H3,Dice5Icon:H3,Dice6:O3,Dice6Icon:O3,Dices:F3,DicesIcon:F3,Diff:q3,DiffIcon:q3,Disc:W3,Disc2:V3,Disc2Icon:V3,Disc3:U3,Disc3Icon:U3,DiscAlbum:B3,DiscAlbumIcon:B3,DiscIcon:W3,Divide:G3,DivideCircle:wc,DivideCircleIcon:wc,DivideIcon:G3,DivideSquare:T1,DivideSquareIcon:T1,Dna:X3,DnaIcon:X3,DnaOff:K3,DnaOffIcon:K3,Dock:Z3,DockIcon:Z3,Dog:Y3,DogIcon:Y3,DollarSign:Q3,DollarSignIcon:Q3,Donut:J3,DonutIcon:J3,DoorClosed:t8,DoorClosedIcon:t8,DoorClosedLocked:e8,DoorClosedLockedIcon:e8,DoorOpen:n8,DoorOpenIcon:n8,Dot:o8,DotIcon:o8,DotSquare:D1,DotSquareIcon:D1,Download:k0,DownloadCloud:Dc,DownloadCloudIcon:Dc,DownloadIcon:k0,DraftingCompass:r8,DraftingCompassIcon:r8,Drama:i8,DramaIcon:i8,Dribbble:a8,DribbbleIcon:a8,Drill:s8,DrillIcon:s8,Drone:c8,DroneIcon:c8,Droplet:d8,DropletIcon:d8,DropletOff:l8,DropletOffIcon:l8,Droplets:u8,DropletsIcon:u8,Drum:h8,DrumIcon:h8,Drumstick:f8,DrumstickIcon:f8,Dumbbell:p8,DumbbellIcon:p8,Ear:y8,EarIcon:y8,EarOff:m8,EarOffIcon:m8,Earth:Bc,EarthIcon:Bc,EarthLock:g8,EarthLockIcon:g8,Eclipse:k8,EclipseIcon:k8,Edit:so,Edit2:e1,Edit2Icon:e1,Edit3:Jl,Edit3Icon:Jl,EditIcon:so,Egg:w8,EggFried:v8,EggFriedIcon:v8,EggIcon:w8,EggOff:x8,EggOffIcon:x8,Ellipsis:Wc,EllipsisIcon:Wc,EllipsisVertical:Uc,EllipsisVerticalIcon:Uc,Equal:_8,EqualApproximately:M8,EqualApproximatelyIcon:M8,EqualIcon:_8,EqualNot:b8,EqualNotIcon:b8,EqualSquare:H1,EqualSquareIcon:H1,Eraser:C8,EraserIcon:C8,EthernetPort:S8,EthernetPortIcon:S8,Euro:L8,EuroIcon:L8,EvCharger:N8,EvChargerIcon:N8,Expand:I8,ExpandIcon:I8,ExternalLink:p2,ExternalLinkIcon:p2,Eye:j8,EyeClosed:A8,EyeClosedIcon:A8,EyeIcon:j8,EyeOff:E8,EyeOffIcon:E8,Facebook:$8,FacebookIcon:$8,Factory:P8,FactoryIcon:P8,Fan:R8,FanIcon:R8,FastForward:z8,FastForwardIcon:z8,Feather:T8,FeatherIcon:T8,Fence:D8,FenceIcon:D8,FerrisWheel:H8,FerrisWheelIcon:H8,Figma:O8,FigmaIcon:O8,File:f6,FileArchive:F8,FileArchiveIcon:F8,FileAudio:Pr,FileAudio2:Pr,FileAudio2Icon:Pr,FileAudioIcon:Pr,FileAxis3D:Gc,FileAxis3DIcon:Gc,FileAxis3d:Gc,FileAxis3dIcon:Gc,FileBadge:Kc,FileBadge2:Kc,FileBadge2Icon:Kc,FileBadgeIcon:Kc,FileBarChart:Yc,FileBarChart2:Qc,FileBarChart2Icon:Qc,FileBarChartIcon:Yc,FileBox:q8,FileBoxIcon:q8,FileBraces:Zc,FileBracesCorner:Xc,FileBracesCornerIcon:Xc,FileBracesIcon:Zc,FileChartColumn:Qc,FileChartColumnIcon:Qc,FileChartColumnIncreasing:Yc,FileChartColumnIncreasingIcon:Yc,FileChartLine:Jc,FileChartLineIcon:Jc,FileChartPie:el,FileChartPieIcon:el,FileCheck:V8,FileCheck2:tl,FileCheck2Icon:tl,FileCheckCorner:tl,FileCheckCornerIcon:tl,FileCheckIcon:V8,FileClock:U8,FileClockIcon:U8,FileCode:B8,FileCode2:nl,FileCode2Icon:nl,FileCodeCorner:nl,FileCodeCornerIcon:nl,FileCodeIcon:B8,FileCog:ol,FileCog2:ol,FileCog2Icon:ol,FileCogIcon:ol,FileDiff:W8,FileDiffIcon:W8,FileDigit:G8,FileDigitIcon:G8,FileDown:y2,FileDownIcon:y2,FileEdit:ll,FileEditIcon:ll,FileExclamationPoint:rl,FileExclamationPointIcon:rl,FileHeadphone:Pr,FileHeadphoneIcon:Pr,FileHeart:K8,FileHeartIcon:K8,FileIcon:f6,FileImage:X8,FileImageIcon:X8,FileInput:Z8,FileInputIcon:Z8,FileJson:Zc,FileJson2:Xc,FileJson2Icon:Xc,FileJsonIcon:Zc,FileKey:il,FileKey2:il,FileKey2Icon:il,FileKeyIcon:il,FileLineChart:Jc,FileLineChartIcon:Jc,FileLock:al,FileLock2:al,FileLock2Icon:al,FileLockIcon:al,FileMinus:Y8,FileMinus2:sl,FileMinus2Icon:sl,FileMinusCorner:sl,FileMinusCornerIcon:sl,FileMinusIcon:Y8,FileMusic:J8,FileMusicIcon:J8,FileOutput:Q8,FileOutputIcon:Q8,FilePen:ll,FilePenIcon:ll,FilePenLine:cl,FilePenLineIcon:cl,FilePieChart:el,FilePieChartIcon:el,FilePlay:dl,FilePlayIcon:dl,FilePlus:e6,FilePlus2:ul,FilePlus2Icon:ul,FilePlusCorner:ul,FilePlusCornerIcon:ul,FilePlusIcon:e6,FileQuestion:hl,FileQuestionIcon:hl,FileQuestionMark:hl,FileQuestionMarkIcon:hl,FileScan:t6,FileScanIcon:t6,FileSearch:n6,FileSearch2:fl,FileSearch2Icon:fl,FileSearchCorner:fl,FileSearchCornerIcon:fl,FileSearchIcon:n6,FileSignal:pl,FileSignalIcon:pl,FileSignature:cl,FileSignatureIcon:cl,FileSliders:o6,FileSlidersIcon:o6,FileSpreadsheet:r6,FileSpreadsheetIcon:r6,FileStack:i6,FileStackIcon:i6,FileSymlink:a6,FileSymlinkIcon:a6,FileTerminal:s6,FileTerminalIcon:s6,FileText:m2,FileTextIcon:m2,FileType:c6,FileType2:yl,FileType2Icon:yl,FileTypeCorner:yl,FileTypeCornerIcon:yl,FileTypeIcon:c6,FileUp:l6,FileUpIcon:l6,FileUser:d6,FileUserIcon:d6,FileVideo:dl,FileVideo2:ml,FileVideo2Icon:ml,FileVideoCamera:ml,FileVideoCameraIcon:ml,FileVideoIcon:dl,FileVolume:u6,FileVolume2:pl,FileVolume2Icon:pl,FileVolumeIcon:u6,FileWarning:rl,FileWarningIcon:rl,FileX:h6,FileX2:gl,FileX2Icon:gl,FileXCorner:gl,FileXCornerIcon:gl,FileXIcon:h6,Files:p6,FilesIcon:p6,Film:y6,FilmIcon:y6,Filter:Ml,FilterIcon:Ml,FilterX:wl,FilterXIcon:wl,Fingerprint:kl,FingerprintIcon:kl,FingerprintPattern:kl,FingerprintPatternIcon:kl,FireExtinguisher:m6,FireExtinguisherIcon:m6,Fish:v6,FishIcon:v6,FishOff:g6,FishOffIcon:g6,FishSymbol:k6,FishSymbolIcon:k6,FishingHook:x6,FishingHookIcon:x6,Flag:_6,FlagIcon:_6,FlagOff:w6,FlagOffIcon:w6,FlagTriangleLeft:M6,FlagTriangleLeftIcon:M6,FlagTriangleRight:b6,FlagTriangleRightIcon:b6,Flame:S6,FlameIcon:S6,FlameKindling:C6,FlameKindlingIcon:C6,Flashlight:N6,FlashlightIcon:N6,FlashlightOff:L6,FlashlightOffIcon:L6,FlaskConical:E6,FlaskConicalIcon:E6,FlaskConicalOff:I6,FlaskConicalOffIcon:I6,FlaskRound:A6,FlaskRoundIcon:A6,FlipHorizontal:$6,FlipHorizontal2:j6,FlipHorizontal2Icon:j6,FlipHorizontalIcon:$6,FlipVertical:z6,FlipVertical2:P6,FlipVertical2Icon:P6,FlipVerticalIcon:z6,Flower:T6,Flower2:R6,Flower2Icon:R6,FlowerIcon:T6,Focus:D6,FocusIcon:D6,FoldHorizontal:H6,FoldHorizontalIcon:H6,FoldVertical:O6,FoldVerticalIcon:O6,Folder:fw,FolderArchive:F6,FolderArchiveIcon:F6,FolderCheck:q6,FolderCheckIcon:q6,FolderClock:V6,FolderClockIcon:V6,FolderClosed:U6,FolderClosedIcon:U6,FolderCode:B6,FolderCodeIcon:B6,FolderCog:vl,FolderCog2:vl,FolderCog2Icon:vl,FolderCogIcon:vl,FolderDot:W6,FolderDotIcon:W6,FolderDown:G6,FolderDownIcon:G6,FolderEdit:xl,FolderEditIcon:xl,FolderGit:X6,FolderGit2:K6,FolderGit2Icon:K6,FolderGitIcon:X6,FolderHeart:Z6,FolderHeartIcon:Z6,FolderIcon:fw,FolderInput:Y6,FolderInputIcon:Y6,FolderKanban:Q6,FolderKanbanIcon:Q6,FolderKey:J6,FolderKeyIcon:J6,FolderLock:ew,FolderLockIcon:ew,FolderMinus:tw,FolderMinusIcon:tw,FolderOpen:g2,FolderOpenDot:nw,FolderOpenDotIcon:nw,FolderOpenIcon:g2,FolderOutput:ow,FolderOutputIcon:ow,FolderPen:xl,FolderPenIcon:xl,FolderPlus:rw,FolderPlusIcon:rw,FolderRoot:iw,FolderRootIcon:iw,FolderSearch:sw,FolderSearch2:aw,FolderSearch2Icon:aw,FolderSearchIcon:sw,FolderSymlink:cw,FolderSymlinkIcon:cw,FolderSync:lw,FolderSyncIcon:lw,FolderTree:dw,FolderTreeIcon:dw,FolderUp:uw,FolderUpIcon:uw,FolderX:hw,FolderXIcon:hw,Folders:pw,FoldersIcon:pw,Footprints:yw,FootprintsIcon:yw,ForkKnife:Ld,ForkKnifeCrossed:Sd,ForkKnifeCrossedIcon:Sd,ForkKnifeIcon:Ld,Forklift:kw,ForkliftIcon:kw,Form:mw,FormIcon:mw,FormInput:n1,FormInputIcon:n1,Forward:gw,ForwardIcon:gw,Frame:vw,FrameIcon:vw,Framer:Mw,FramerIcon:Mw,Frown:xw,FrownIcon:xw,Fuel:ww,FuelIcon:ww,Fullscreen:bw,FullscreenIcon:bw,FunctionSquare:O1,FunctionSquareIcon:O1,Funnel:Ml,FunnelIcon:Ml,FunnelPlus:_w,FunnelPlusIcon:_w,FunnelX:wl,FunnelXIcon:wl,GalleryHorizontal:Sw,GalleryHorizontalEnd:Cw,GalleryHorizontalEndIcon:Cw,GalleryHorizontalIcon:Sw,GalleryThumbnails:Lw,GalleryThumbnailsIcon:Lw,GalleryVertical:Iw,GalleryVerticalEnd:Nw,GalleryVerticalEndIcon:Nw,GalleryVerticalIcon:Iw,Gamepad:$w,Gamepad2:Aw,Gamepad2Icon:Aw,GamepadDirectional:Ew,GamepadDirectionalIcon:Ew,GamepadIcon:$w,GanttChart:rc,GanttChartIcon:rc,GanttChartSquare:Dr,GanttChartSquareIcon:Dr,Gauge:jw,GaugeCircle:Mc,GaugeCircleIcon:Mc,GaugeIcon:jw,Gavel:Pw,GavelIcon:Pw,Gem:zw,GemIcon:zw,GeorgianLari:Rw,GeorgianLariIcon:Rw,Ghost:Dw,GhostIcon:Dw,Gift:Tw,GiftIcon:Tw,GitBranch:Fw,GitBranchIcon:Fw,GitBranchMinus:Hw,GitBranchMinusIcon:Hw,GitBranchPlus:Ow,GitBranchPlusIcon:Ow,GitCommit:bl,GitCommitHorizontal:bl,GitCommitHorizontalIcon:bl,GitCommitIcon:bl,GitCommitVertical:qw,GitCommitVerticalIcon:qw,GitCompare:Bw,GitCompareArrows:Vw,GitCompareArrowsIcon:Vw,GitCompareIcon:Bw,GitFork:Uw,GitForkIcon:Uw,GitGraph:Ww,GitGraphIcon:Ww,GitMerge:Gw,GitMergeIcon:Gw,GitPullRequest:Jw,GitPullRequestArrow:Kw,GitPullRequestArrowIcon:Kw,GitPullRequestClosed:Xw,GitPullRequestClosedIcon:Xw,GitPullRequestCreate:Yw,GitPullRequestCreateArrow:Zw,GitPullRequestCreateArrowIcon:Zw,GitPullRequestCreateIcon:Yw,GitPullRequestDraft:Qw,GitPullRequestDraftIcon:Qw,GitPullRequestIcon:Jw,Github:e7,GithubIcon:e7,Gitlab:t7,GitlabIcon:t7,GlassWater:n7,GlassWaterIcon:n7,Glasses:o7,GlassesIcon:o7,Globe:a7,Globe2:Bc,Globe2Icon:Bc,GlobeIcon:a7,GlobeLock:r7,GlobeLockIcon:r7,GlobeX:i7,GlobeXIcon:i7,Goal:s7,GoalIcon:s7,Gpu:c7,GpuIcon:c7,Grab:Nl,GrabIcon:Nl,GraduationCap:l7,GraduationCapIcon:l7,Grape:d7,GrapeIcon:d7,Grid:zr,Grid2X2:Ll,Grid2X2Check:_l,Grid2X2CheckIcon:_l,Grid2X2Icon:Ll,Grid2X2Plus:Cl,Grid2X2PlusIcon:Cl,Grid2X2X:Sl,Grid2X2XIcon:Sl,Grid2x2:Ll,Grid2x2Check:_l,Grid2x2CheckIcon:_l,Grid2x2Icon:Ll,Grid2x2Plus:Cl,Grid2x2PlusIcon:Cl,Grid2x2X:Sl,Grid2x2XIcon:Sl,Grid3X3:zr,Grid3X3Icon:zr,Grid3x2:u7,Grid3x2Icon:u7,Grid3x3:zr,Grid3x3Icon:zr,GridIcon:zr,Grip:f7,GripHorizontal:h7,GripHorizontalIcon:h7,GripIcon:f7,GripVertical:p7,GripVerticalIcon:p7,Group:y7,GroupIcon:y7,Guitar:m7,GuitarIcon:m7,Ham:g7,HamIcon:g7,Hamburger:k7,HamburgerIcon:k7,Hammer:v7,HammerIcon:v7,Hand:k2,HandCoins:x7,HandCoinsIcon:x7,HandFist:w7,HandFistIcon:w7,HandGrab:Nl,HandGrabIcon:Nl,HandHeart:M7,HandHeartIcon:M7,HandHelping:Il,HandHelpingIcon:Il,HandIcon:k2,HandMetal:b7,HandMetalIcon:b7,HandPlatter:_7,HandPlatterIcon:_7,Handbag:C7,HandbagIcon:C7,Handshake:S7,HandshakeIcon:S7,HardDrive:I7,HardDriveDownload:L7,HardDriveDownloadIcon:L7,HardDriveIcon:I7,HardDriveUpload:N7,HardDriveUploadIcon:N7,HardHat:A7,HardHatIcon:A7,Hash:E7,HashIcon:E7,HatGlasses:j7,HatGlassesIcon:j7,Haze:$7,HazeIcon:$7,Hd:P7,HdIcon:P7,HdmiPort:z7,HdmiPortIcon:z7,Heading:q7,Heading1:R7,Heading1Icon:R7,Heading2:T7,Heading2Icon:T7,Heading3:D7,Heading3Icon:D7,Heading4:H7,Heading4Icon:H7,Heading5:O7,Heading5Icon:O7,Heading6:F7,Heading6Icon:F7,HeadingIcon:q7,HeadphoneOff:V7,HeadphoneOffIcon:V7,Headphones:B7,HeadphonesIcon:B7,Headset:U7,HeadsetIcon:U7,Heart:Q7,HeartCrack:W7,HeartCrackIcon:W7,HeartHandshake:K7,HeartHandshakeIcon:K7,HeartIcon:Q7,HeartMinus:G7,HeartMinusIcon:G7,HeartOff:X7,HeartOffIcon:X7,HeartPlus:Z7,HeartPlusIcon:Z7,HeartPulse:Y7,HeartPulseIcon:Y7,Heater:J7,HeaterIcon:J7,Helicopter:eM,HelicopterIcon:eM,HelpCircle:Xo,HelpCircleIcon:Xo,HelpingHand:Il,HelpingHandIcon:Il,Hexagon:v2,HexagonIcon:v2,Highlighter:tM,HighlighterIcon:tM,History:nM,HistoryIcon:nM,Home:Al,HomeIcon:Al,Hop:oM,HopIcon:oM,HopOff:rM,HopOffIcon:rM,Hospital:iM,HospitalIcon:iM,Hotel:aM,HotelIcon:aM,Hourglass:sM,HourglassIcon:sM,House:Al,HouseHeart:cM,HouseHeartIcon:cM,HouseIcon:Al,HousePlug:lM,HousePlugIcon:lM,HousePlus:dM,HousePlusIcon:dM,HouseWifi:uM,HouseWifiIcon:uM,IceCream:jl,IceCream2:El,IceCream2Icon:El,IceCreamBowl:El,IceCreamBowlIcon:El,IceCreamCone:jl,IceCreamConeIcon:jl,IceCreamIcon:jl,Icon:xQ,IdCard:fM,IdCardIcon:fM,IdCardLanyard:hM,IdCardLanyardIcon:hM,Image:w2,ImageDown:pM,ImageDownIcon:pM,ImageIcon:w2,ImageMinus:mM,ImageMinusIcon:mM,ImageOff:yM,ImageOffIcon:yM,ImagePlay:gM,ImagePlayIcon:gM,ImagePlus:x2,ImagePlusIcon:x2,ImageUp:kM,ImageUpIcon:kM,ImageUpscale:vM,ImageUpscaleIcon:vM,Images:xM,ImagesIcon:xM,Import:wM,ImportIcon:wM,Inbox:MM,InboxIcon:MM,Indent:Tr,IndentDecrease:Rr,IndentDecreaseIcon:Rr,IndentIcon:Tr,IndentIncrease:Tr,IndentIncreaseIcon:Tr,IndianRupee:bM,IndianRupeeIcon:bM,Infinity:CM,InfinityIcon:CM,Info:_M,InfoIcon:_M,Inspect:W1,InspectIcon:W1,InspectionPanel:SM,InspectionPanelIcon:SM,Instagram:LM,InstagramIcon:LM,Italic:NM,ItalicIcon:NM,IterationCcw:IM,IterationCcwIcon:IM,IterationCw:AM,IterationCwIcon:AM,JapaneseYen:EM,JapaneseYenIcon:EM,Joystick:jM,JoystickIcon:jM,Kanban:$M,KanbanIcon:$M,KanbanSquare:F1,KanbanSquareDashed:P1,KanbanSquareDashedIcon:P1,KanbanSquareIcon:F1,Kayak:PM,KayakIcon:PM,Key:TM,KeyIcon:TM,KeyRound:zM,KeyRoundIcon:zM,KeySquare:RM,KeySquareIcon:RM,Keyboard:OM,KeyboardIcon:OM,KeyboardMusic:DM,KeyboardMusicIcon:DM,KeyboardOff:HM,KeyboardOffIcon:HM,Lamp:WM,LampCeiling:FM,LampCeilingIcon:FM,LampDesk:qM,LampDeskIcon:qM,LampFloor:VM,LampFloorIcon:VM,LampIcon:WM,LampWallDown:BM,LampWallDownIcon:BM,LampWallUp:UM,LampWallUpIcon:UM,LandPlot:GM,LandPlotIcon:GM,Landmark:KM,LandmarkIcon:KM,Languages:XM,LanguagesIcon:XM,Laptop:QM,Laptop2:$l,Laptop2Icon:$l,LaptopIcon:QM,LaptopMinimal:$l,LaptopMinimalCheck:ZM,LaptopMinimalCheckIcon:ZM,LaptopMinimalIcon:$l,Lasso:JM,LassoIcon:JM,LassoSelect:YM,LassoSelectIcon:YM,Laugh:eb,LaughIcon:eb,Layers:Pi,Layers2:tb,Layers2Icon:tb,Layers3:Pi,Layers3Icon:Pi,LayersIcon:Pi,LayersPlus:nb,LayersPlusIcon:nb,Layout:Ql,LayoutDashboard:M2,LayoutDashboardIcon:M2,LayoutGrid:ob,LayoutGridIcon:ob,LayoutIcon:Ql,LayoutList:rb,LayoutListIcon:rb,LayoutPanelLeft:ib,LayoutPanelLeftIcon:ib,LayoutPanelTop:sb,LayoutPanelTopIcon:sb,LayoutTemplate:ab,LayoutTemplateIcon:ab,Leaf:cb,LeafIcon:cb,LeafyGreen:lb,LeafyGreenIcon:lb,Lectern:db,LecternIcon:db,LetterText:hd,LetterTextIcon:hd,Library:hb,LibraryBig:ub,LibraryBigIcon:ub,LibraryIcon:hb,LibrarySquare:q1,LibrarySquareIcon:q1,LifeBuoy:fb,LifeBuoyIcon:fb,Ligature:pb,LigatureIcon:pb,Lightbulb:mb,LightbulbIcon:mb,LightbulbOff:yb,LightbulbOffIcon:yb,LineChart:tc,LineChartIcon:tc,LineSquiggle:gb,LineSquiggleIcon:gb,Link:vb,Link2:Ua,Link2Icon:Ua,Link2Off:kb,Link2OffIcon:kb,LinkIcon:vb,Linkedin:xb,LinkedinIcon:xb,List:Hb,ListCheck:wb,ListCheckIcon:wb,ListChecks:Mb,ListChecksIcon:Mb,ListChevronsDownUp:bb,ListChevronsDownUpIcon:bb,ListChevronsUpDown:Cb,ListChevronsUpDownIcon:Cb,ListCollapse:_b,ListCollapseIcon:_b,ListEnd:Sb,ListEndIcon:Sb,ListFilter:Nb,ListFilterIcon:Nb,ListFilterPlus:Lb,ListFilterPlusIcon:Lb,ListIcon:Hb,ListIndentDecrease:Rr,ListIndentDecreaseIcon:Rr,ListIndentIncrease:Tr,ListIndentIncreaseIcon:Tr,ListMinus:Ib,ListMinusIcon:Ib,ListMusic:Ab,ListMusicIcon:Ab,ListOrdered:Eb,ListOrderedIcon:Eb,ListPlus:jb,ListPlusIcon:jb,ListRestart:$b,ListRestartIcon:$b,ListStart:Pb,ListStartIcon:Pb,ListTodo:zb,ListTodoIcon:zb,ListTree:Rb,ListTreeIcon:Rb,ListVideo:Tb,ListVideoIcon:Tb,ListX:Db,ListXIcon:Db,Loader:Fb,Loader2:Wn,Loader2Icon:Wn,LoaderCircle:Wn,LoaderCircleIcon:Wn,LoaderIcon:Fb,LoaderPinwheel:Ob,LoaderPinwheelIcon:Ob,Locate:Bb,LocateFixed:qb,LocateFixedIcon:qb,LocateIcon:Bb,LocateOff:Vb,LocateOffIcon:Vb,LocationEdit:Tl,LocationEditIcon:Tl,Lock:Wb,LockIcon:Wb,LockKeyhole:Ub,LockKeyholeIcon:Ub,LockKeyholeOpen:Pl,LockKeyholeOpenIcon:Pl,LockOpen:zl,LockOpenIcon:zl,LogIn:Gb,LogInIcon:Gb,LogOut:Kb,LogOutIcon:Kb,Logs:Xb,LogsIcon:Xb,Lollipop:Zb,LollipopIcon:Zb,LucideAArrowDown:Ny,LucideAArrowUp:Iy,LucideALargeSmall:Ay,LucideAccessibility:Ey,LucideActivity:jy,LucideActivitySquare:h1,LucideAirVent:$y,LucideAirplay:Py,LucideAlarmCheck:Es,LucideAlarmClock:Ry,LucideAlarmClockCheck:Es,LucideAlarmClockMinus:js,LucideAlarmClockOff:zy,LucideAlarmClockPlus:$s,LucideAlarmMinus:js,LucideAlarmPlus:$s,LucideAlarmSmoke:Ty,LucideAlbum:Dy,LucideAlertCircle:ba,LucideAlertOctagon:Fl,LucideAlertTriangle:qr,LucideAlignCenter:Sa,LucideAlignCenterHorizontal:Oy,LucideAlignCenterVertical:Hy,LucideAlignEndHorizontal:Fy,LucideAlignEndVertical:qy,LucideAlignHorizontalDistributeCenter:Vy,LucideAlignHorizontalDistributeEnd:By,LucideAlignHorizontalDistributeStart:Uy,LucideAlignHorizontalJustifyCenter:Wy,LucideAlignHorizontalJustifyEnd:Ky,LucideAlignHorizontalJustifyStart:Gy,LucideAlignHorizontalSpaceAround:Xy,LucideAlignHorizontalSpaceBetween:Zy,LucideAlignJustify:ud,LucideAlignLeft:Zo,LucideAlignRight:La,LucideAlignStartHorizontal:Yy,LucideAlignStartVertical:Qy,LucideAlignVerticalDistributeCenter:Jy,LucideAlignVerticalDistributeEnd:em,LucideAlignVerticalDistributeStart:tm,LucideAlignVerticalJustifyCenter:nm,LucideAlignVerticalJustifyEnd:om,LucideAlignVerticalJustifyStart:rm,LucideAlignVerticalSpaceAround:im,LucideAlignVerticalSpaceBetween:am,LucideAmbulance:sm,LucideAmpersand:cm,LucideAmpersands:lm,LucideAmphora:dm,LucideAnchor:um,LucideAngry:hm,LucideAnnoyed:fm,LucideAntenna:pm,LucideAnvil:ym,LucideAperture:mm,LucideAppWindow:km,LucideAppWindowMac:gm,LucideApple:vm,LucideArchive:Mm,LucideArchiveRestore:xm,LucideArchiveX:wm,LucideAreaChart:Ks,LucideArmchair:bm,LucideArrowBigDown:Cm,LucideArrowBigDownDash:_m,LucideArrowBigLeft:Lm,LucideArrowBigLeftDash:Sm,LucideArrowBigRight:Im,LucideArrowBigRightDash:Nm,LucideArrowBigUp:Em,LucideArrowBigUpDash:Am,LucideArrowDown:Fm,LucideArrowDown01:jm,LucideArrowDown10:$m,LucideArrowDownAZ:Ps,LucideArrowDownAz:Ps,LucideArrowDownCircle:cc,LucideArrowDownFromLine:Pm,LucideArrowDownLeft:Rm,LucideArrowDownLeftFromCircle:lc,LucideArrowDownLeftFromSquare:g1,LucideArrowDownLeftSquare:f1,LucideArrowDownNarrowWide:zm,LucideArrowDownRight:Dm,LucideArrowDownRightFromCircle:uc,LucideArrowDownRightFromSquare:k1,LucideArrowDownRightSquare:p1,LucideArrowDownSquare:y1,LucideArrowDownToDot:Tm,LucideArrowDownToLine:Hm,LucideArrowDownUp:Om,LucideArrowDownWideNarrow:zs,LucideArrowDownZA:Rs,LucideArrowDownZa:Rs,LucideArrowLeft:Bm,LucideArrowLeftCircle:dc,LucideArrowLeftFromLine:qm,LucideArrowLeftRight:d2,LucideArrowLeftSquare:m1,LucideArrowLeftToLine:Vm,LucideArrowRight:y0,LucideArrowRightCircle:pc,LucideArrowRightFromLine:Um,LucideArrowRightLeft:Wm,LucideArrowRightSquare:w1,LucideArrowRightToLine:Gm,LucideArrowUp:og,LucideArrowUp01:Km,LucideArrowUp10:Xm,LucideArrowUpAZ:Ts,LucideArrowUpAz:Ts,LucideArrowUpCircle:yc,LucideArrowUpDown:Zm,LucideArrowUpFromDot:Ym,LucideArrowUpFromLine:Qm,LucideArrowUpLeft:Jm,LucideArrowUpLeftFromCircle:hc,LucideArrowUpLeftFromSquare:v1,LucideArrowUpLeftSquare:M1,LucideArrowUpNarrowWide:Ds,LucideArrowUpRight:tg,LucideArrowUpRightFromCircle:fc,LucideArrowUpRightFromSquare:x1,LucideArrowUpRightSquare:C1,LucideArrowUpSquare:b1,LucideArrowUpToLine:eg,LucideArrowUpWideNarrow:ng,LucideArrowUpZA:Hs,LucideArrowUpZa:Hs,LucideArrowsUpFromLine:rg,LucideAsterisk:ig,LucideAsteriskSquare:_1,LucideAtSign:ag,LucideAtom:sg,LucideAudioLines:cg,LucideAudioWaveform:dg,LucideAward:lg,LucideAxe:ug,LucideAxis3D:Os,LucideAxis3d:Os,LucideBaby:hg,LucideBackpack:fg,LucideBadge:Ig,LucideBadgeAlert:yg,LucideBadgeCent:pg,LucideBadgeCheck:Fs,LucideBadgeDollarSign:mg,LucideBadgeEuro:kg,LucideBadgeHelp:qs,LucideBadgeIndianRupee:gg,LucideBadgeInfo:vg,LucideBadgeJapaneseYen:xg,LucideBadgeMinus:wg,LucideBadgePercent:Mg,LucideBadgePlus:bg,LucideBadgePoundSterling:_g,LucideBadgeQuestionMark:qs,LucideBadgeRussianRuble:Cg,LucideBadgeSwissFranc:Sg,LucideBadgeTurkishLira:Lg,LucideBadgeX:Ng,LucideBaggageClaim:Ag,LucideBalloon:Eg,LucideBan:u2,LucideBanana:jg,LucideBandage:$g,LucideBanknote:Tg,LucideBanknoteArrowDown:Pg,LucideBanknoteArrowUp:zg,LucideBanknoteX:Rg,LucideBarChart:nc,LucideBarChart2:oc,LucideBarChart3:ec,LucideBarChart4:Js,LucideBarChartBig:Qs,LucideBarChartHorizontal:Zs,LucideBarChartHorizontalBig:Xs,LucideBarcode:Dg,LucideBarrel:Hg,LucideBaseline:Og,LucideBath:Fg,LucideBattery:Kg,LucideBatteryCharging:qg,LucideBatteryFull:Vg,LucideBatteryLow:Bg,LucideBatteryMedium:Ug,LucideBatteryPlus:Wg,LucideBatteryWarning:Gg,LucideBeaker:Xg,LucideBean:Yg,LucideBeanOff:Zg,LucideBed:ek,LucideBedDouble:Qg,LucideBedSingle:Jg,LucideBeef:tk,LucideBeer:ok,LucideBeerOff:nk,LucideBell:dk,LucideBellDot:rk,LucideBellElectric:ik,LucideBellMinus:ak,LucideBellOff:sk,LucideBellPlus:ck,LucideBellRing:lk,LucideBetweenHorizonalEnd:Vs,LucideBetweenHorizonalStart:Bs,LucideBetweenHorizontalEnd:Vs,LucideBetweenHorizontalStart:Bs,LucideBetweenVerticalEnd:uk,LucideBetweenVerticalStart:hk,LucideBicepsFlexed:fk,LucideBike:pk,LucideBinary:yk,LucideBinoculars:mk,LucideBiohazard:gk,LucideBird:kk,LucideBirdhouse:vk,LucideBitcoin:xk,LucideBlend:wk,LucideBlinds:Mk,LucideBlocks:bk,LucideBluetooth:Lk,LucideBluetoothConnected:_k,LucideBluetoothOff:Ck,LucideBluetoothSearching:Sk,LucideBold:Nk,LucideBolt:Ik,LucideBomb:Ak,LucideBone:Ek,LucideBook:n4,LucideBookA:jk,LucideBookAlert:$k,LucideBookAudio:Pk,LucideBookCheck:zk,LucideBookCopy:Rk,LucideBookDashed:Us,LucideBookDown:Tk,LucideBookHeadphones:Dk,LucideBookHeart:Hk,LucideBookImage:Ok,LucideBookKey:Fk,LucideBookLock:qk,LucideBookMarked:Vk,LucideBookMinus:Bk,LucideBookOpen:Gk,LucideBookOpenCheck:Uk,LucideBookOpenText:Wk,LucideBookPlus:Kk,LucideBookSearch:Xk,LucideBookTemplate:Us,LucideBookText:Zk,LucideBookType:Yk,LucideBookUp:Jk,LucideBookUp2:Qk,LucideBookUser:e4,LucideBookX:t4,LucideBookmark:s4,LucideBookmarkCheck:o4,LucideBookmarkMinus:r4,LucideBookmarkPlus:i4,LucideBookmarkX:a4,LucideBoomBox:c4,LucideBot:d4,LucideBotMessageSquare:l4,LucideBotOff:u4,LucideBottleWine:h4,LucideBowArrow:f4,LucideBox:p4,LucideBoxSelect:R1,LucideBoxes:y4,LucideBraces:Ws,LucideBrackets:m4,LucideBrain:v4,LucideBrainCircuit:g4,LucideBrainCog:k4,LucideBrickWall:M4,LucideBrickWallFire:x4,LucideBrickWallShield:w4,LucideBriefcase:S4,LucideBriefcaseBusiness:b4,LucideBriefcaseConveyorBelt:_4,LucideBriefcaseMedical:C4,LucideBringToFront:L4,LucideBrush:A4,LucideBrushCleaning:N4,LucideBubbles:I4,LucideBug:$4,LucideBugOff:E4,LucideBugPlay:j4,LucideBuilding:P4,LucideBuilding2:z4,LucideBus:T4,LucideBusFront:R4,LucideCable:H4,LucideCableCar:D4,LucideCake:F4,LucideCakeSlice:O4,LucideCalculator:q4,LucideCalendar:l5,LucideCalendar1:V4,LucideCalendarArrowDown:B4,LucideCalendarArrowUp:U4,LucideCalendarCheck:G4,LucideCalendarCheck2:W4,LucideCalendarClock:K4,LucideCalendarCog:X4,LucideCalendarDays:Z4,LucideCalendarFold:Y4,LucideCalendarHeart:Q4,LucideCalendarMinus:e5,LucideCalendarMinus2:J4,LucideCalendarOff:t5,LucideCalendarPlus:r5,LucideCalendarPlus2:n5,LucideCalendarRange:o5,LucideCalendarSearch:i5,LucideCalendarSync:a5,LucideCalendarX:c5,LucideCalendarX2:s5,LucideCalendars:d5,LucideCamera:h5,LucideCameraOff:u5,LucideCandlestickChart:Ys,LucideCandy:y5,LucideCandyCane:f5,LucideCandyOff:p5,LucideCannabis:g5,LucideCannabisOff:m5,LucideCaptions:Gs,LucideCaptionsOff:k5,LucideCar:w5,LucideCarFront:v5,LucideCarTaxiFront:x5,LucideCaravan:M5,LucideCardSim:b5,LucideCarrot:_5,LucideCaseLower:C5,LucideCaseSensitive:S5,LucideCaseUpper:L5,LucideCassetteTape:N5,LucideCast:I5,LucideCastle:A5,LucideCat:E5,LucideCctv:j5,LucideChartArea:Ks,LucideChartBar:Zs,LucideChartBarBig:Xs,LucideChartBarDecreasing:$5,LucideChartBarIncreasing:P5,LucideChartBarStacked:z5,LucideChartCandlestick:Ys,LucideChartColumn:ec,LucideChartColumnBig:Qs,LucideChartColumnDecreasing:R5,LucideChartColumnIncreasing:Js,LucideChartColumnStacked:T5,LucideChartGantt:D5,LucideChartLine:tc,LucideChartNetwork:H5,LucideChartNoAxesColumn:oc,LucideChartNoAxesColumnDecreasing:O5,LucideChartNoAxesColumnIncreasing:nc,LucideChartNoAxesCombined:F5,LucideChartNoAxesGantt:rc,LucideChartPie:ic,LucideChartScatter:ac,LucideChartSpline:q5,LucideCheck:Ba,LucideCheckCheck:V5,LucideCheckCircle:mc,LucideCheckCircle2:_a,LucideCheckLine:B5,LucideCheckSquare:L1,LucideCheckSquare2:N1,LucideChefHat:U5,LucideCherry:W5,LucideChessBishop:G5,LucideChessKing:K5,LucideChessKnight:X5,LucideChessPawn:Z5,LucideChessQueen:Y5,LucideChessRook:J5,LucideChevronDown:Q5,LucideChevronDownCircle:gc,LucideChevronDownSquare:I1,LucideChevronFirst:ev,LucideChevronLast:tv,LucideChevronLeft:nv,LucideChevronLeftCircle:kc,LucideChevronLeftSquare:A1,LucideChevronRight:ov,LucideChevronRightCircle:vc,LucideChevronRightSquare:j1,LucideChevronUp:rv,LucideChevronUpCircle:xc,LucideChevronUpSquare:E1,LucideChevronsDown:av,LucideChevronsDownUp:iv,LucideChevronsLeft:lv,LucideChevronsLeftRight:cv,LucideChevronsLeftRightEllipsis:sv,LucideChevronsRight:uv,LucideChevronsRightLeft:dv,LucideChevronsUp:fv,LucideChevronsUpDown:hv,LucideChrome:sc,LucideChromium:sc,LucideChurch:pv,LucideCigarette:mv,LucideCigaretteOff:yv,LucideCircle:m0,LucideCircleAlert:ba,LucideCircleArrowDown:cc,LucideCircleArrowLeft:dc,LucideCircleArrowOutDownLeft:lc,LucideCircleArrowOutDownRight:uc,LucideCircleArrowOutUpLeft:hc,LucideCircleArrowOutUpRight:fc,LucideCircleArrowRight:pc,LucideCircleArrowUp:yc,LucideCircleCheck:_a,LucideCircleCheckBig:mc,LucideCircleChevronDown:gc,LucideCircleChevronLeft:kc,LucideCircleChevronRight:vc,LucideCircleChevronUp:xc,LucideCircleDashed:gv,LucideCircleDivide:wc,LucideCircleDollarSign:kv,LucideCircleDot:xv,LucideCircleDotDashed:vv,LucideCircleEllipsis:wv,LucideCircleEqual:Mv,LucideCircleFadingArrowUp:bv,LucideCircleFadingPlus:_v,LucideCircleGauge:Mc,LucideCircleHelp:Xo,LucideCircleMinus:bc,LucideCircleOff:Cv,LucideCircleParking:Cc,LucideCircleParkingOff:_c,LucideCirclePause:Sc,LucideCirclePercent:Lc,LucideCirclePile:Sv,LucideCirclePlay:Nc,LucideCirclePlus:Ic,LucideCirclePoundSterling:Lv,LucideCirclePower:Ac,LucideCircleQuestionMark:Xo,LucideCircleSlash:Nv,LucideCircleSlash2:Ec,LucideCircleSlashed:Ec,LucideCircleSmall:Iv,LucideCircleStar:Av,LucideCircleStop:$c,LucideCircleUser:Pc,LucideCircleUserRound:jc,LucideCircleX:zc,LucideCircuitBoard:Ev,LucideCitrus:jv,LucideClapperboard:$v,LucideClipboard:Vv,LucideClipboardCheck:Pv,LucideClipboardClock:zv,LucideClipboardCopy:Rv,LucideClipboardEdit:Tc,LucideClipboardList:Tv,LucideClipboardMinus:Dv,LucideClipboardPaste:Hv,LucideClipboardPen:Tc,LucideClipboardPenLine:Rc,LucideClipboardPlus:Ov,LucideClipboardSignature:Rc,LucideClipboardType:Fv,LucideClipboardX:qv,LucideClock:cx,LucideClock1:Bv,LucideClock10:Uv,LucideClock11:Wv,LucideClock12:Gv,LucideClock2:Kv,LucideClock3:Xv,LucideClock4:Zv,LucideClock5:Yv,LucideClock6:Qv,LucideClock7:Jv,LucideClock8:ex,LucideClock9:tx,LucideClockAlert:nx,LucideClockArrowDown:ox,LucideClockArrowUp:ax,LucideClockCheck:rx,LucideClockFading:ix,LucideClockPlus:sx,LucideClosedCaption:lx,LucideCloud:h2,LucideCloudAlert:dx,LucideCloudBackup:ux,LucideCloudCheck:hx,LucideCloudCog:fx,LucideCloudDownload:Dc,LucideCloudDrizzle:px,LucideCloudFog:yx,LucideCloudHail:mx,LucideCloudLightning:gx,LucideCloudMoon:vx,LucideCloudMoonRain:kx,LucideCloudOff:xx,LucideCloudRain:Mx,LucideCloudRainWind:wx,LucideCloudSnow:bx,LucideCloudSun:Cx,LucideCloudSunRain:_x,LucideCloudSync:Sx,LucideCloudUpload:Hc,LucideCloudy:Lx,LucideClover:Nx,LucideClub:Ix,LucideCode:Ax,LucideCode2:Oc,LucideCodeSquare:$1,LucideCodeXml:Oc,LucideCodepen:Ex,LucideCodesandbox:jx,LucideCoffee:$x,LucideCog:Px,LucideCoins:zx,LucideColumns:Fc,LucideColumns2:Fc,LucideColumns3:Ca,LucideColumns3Cog:$r,LucideColumns4:Rx,LucideColumnsSettings:$r,LucideCombine:Tx,LucideCommand:Dx,LucideCompass:Hx,LucideComponent:Ox,LucideComputer:Fx,LucideConciergeBell:qx,LucideCone:Vx,LucideConstruction:Bx,LucideContact:Ux,LucideContact2:qc,LucideContactRound:qc,LucideContainer:Wx,LucideContrast:Gx,LucideCookie:Kx,LucideCookingPot:Xx,LucideCopy:t3,LucideCopyCheck:Zx,LucideCopyMinus:Yx,LucideCopyPlus:Qx,LucideCopySlash:Jx,LucideCopyX:e3,LucideCopyleft:o3,LucideCopyright:n3,LucideCornerDownLeft:r3,LucideCornerDownRight:i3,LucideCornerLeftDown:a3,LucideCornerLeftUp:s3,LucideCornerRightDown:l3,LucideCornerRightUp:c3,LucideCornerUpLeft:u3,LucideCornerUpRight:d3,LucideCpu:h3,LucideCreativeCommons:f3,LucideCreditCard:p3,LucideCroissant:y3,LucideCrop:m3,LucideCross:g3,LucideCrosshair:k3,LucideCrown:v3,LucideCuboid:x3,LucideCupSoda:w3,LucideCurlyBraces:Ws,LucideCurrency:M3,LucideCylinder:b3,LucideDam:_3,LucideDatabase:f2,LucideDatabaseBackup:C3,LucideDatabaseSearch:S3,LucideDatabaseZap:L3,LucideDecimalsArrowLeft:N3,LucideDecimalsArrowRight:I3,LucideDelete:A3,LucideDessert:E3,LucideDiameter:j3,LucideDiamond:g0,LucideDiamondMinus:$3,LucideDiamondPercent:Vc,LucideDiamondPlus:P3,LucideDice1:z3,LucideDice2:T3,LucideDice3:R3,LucideDice4:D3,LucideDice5:H3,LucideDice6:O3,LucideDices:F3,LucideDiff:q3,LucideDisc:W3,LucideDisc2:V3,LucideDisc3:U3,LucideDiscAlbum:B3,LucideDivide:G3,LucideDivideCircle:wc,LucideDivideSquare:T1,LucideDna:X3,LucideDnaOff:K3,LucideDock:Z3,LucideDog:Y3,LucideDollarSign:Q3,LucideDonut:J3,LucideDoorClosed:t8,LucideDoorClosedLocked:e8,LucideDoorOpen:n8,LucideDot:o8,LucideDotSquare:D1,LucideDownload:k0,LucideDownloadCloud:Dc,LucideDraftingCompass:r8,LucideDrama:i8,LucideDribbble:a8,LucideDrill:s8,LucideDrone:c8,LucideDroplet:d8,LucideDropletOff:l8,LucideDroplets:u8,LucideDrum:h8,LucideDrumstick:f8,LucideDumbbell:p8,LucideEar:y8,LucideEarOff:m8,LucideEarth:Bc,LucideEarthLock:g8,LucideEclipse:k8,LucideEdit:so,LucideEdit2:e1,LucideEdit3:Jl,LucideEgg:w8,LucideEggFried:v8,LucideEggOff:x8,LucideEllipsis:Wc,LucideEllipsisVertical:Uc,LucideEqual:_8,LucideEqualApproximately:M8,LucideEqualNot:b8,LucideEqualSquare:H1,LucideEraser:C8,LucideEthernetPort:S8,LucideEuro:L8,LucideEvCharger:N8,LucideExpand:I8,LucideExternalLink:p2,LucideEye:j8,LucideEyeClosed:A8,LucideEyeOff:E8,LucideFacebook:$8,LucideFactory:P8,LucideFan:R8,LucideFastForward:z8,LucideFeather:T8,LucideFence:D8,LucideFerrisWheel:H8,LucideFigma:O8,LucideFile:f6,LucideFileArchive:F8,LucideFileAudio:Pr,LucideFileAudio2:Pr,LucideFileAxis3D:Gc,LucideFileAxis3d:Gc,LucideFileBadge:Kc,LucideFileBadge2:Kc,LucideFileBarChart:Yc,LucideFileBarChart2:Qc,LucideFileBox:q8,LucideFileBraces:Zc,LucideFileBracesCorner:Xc,LucideFileChartColumn:Qc,LucideFileChartColumnIncreasing:Yc,LucideFileChartLine:Jc,LucideFileChartPie:el,LucideFileCheck:V8,LucideFileCheck2:tl,LucideFileCheckCorner:tl,LucideFileClock:U8,LucideFileCode:B8,LucideFileCode2:nl,LucideFileCodeCorner:nl,LucideFileCog:ol,LucideFileCog2:ol,LucideFileDiff:W8,LucideFileDigit:G8,LucideFileDown:y2,LucideFileEdit:ll,LucideFileExclamationPoint:rl,LucideFileHeadphone:Pr,LucideFileHeart:K8,LucideFileImage:X8,LucideFileInput:Z8,LucideFileJson:Zc,LucideFileJson2:Xc,LucideFileKey:il,LucideFileKey2:il,LucideFileLineChart:Jc,LucideFileLock:al,LucideFileLock2:al,LucideFileMinus:Y8,LucideFileMinus2:sl,LucideFileMinusCorner:sl,LucideFileMusic:J8,LucideFileOutput:Q8,LucideFilePen:ll,LucideFilePenLine:cl,LucideFilePieChart:el,LucideFilePlay:dl,LucideFilePlus:e6,LucideFilePlus2:ul,LucideFilePlusCorner:ul,LucideFileQuestion:hl,LucideFileQuestionMark:hl,LucideFileScan:t6,LucideFileSearch:n6,LucideFileSearch2:fl,LucideFileSearchCorner:fl,LucideFileSignal:pl,LucideFileSignature:cl,LucideFileSliders:o6,LucideFileSpreadsheet:r6,LucideFileStack:i6,LucideFileSymlink:a6,LucideFileTerminal:s6,LucideFileText:m2,LucideFileType:c6,LucideFileType2:yl,LucideFileTypeCorner:yl,LucideFileUp:l6,LucideFileUser:d6,LucideFileVideo:dl,LucideFileVideo2:ml,LucideFileVideoCamera:ml,LucideFileVolume:u6,LucideFileVolume2:pl,LucideFileWarning:rl,LucideFileX:h6,LucideFileX2:gl,LucideFileXCorner:gl,LucideFiles:p6,LucideFilm:y6,LucideFilter:Ml,LucideFilterX:wl,LucideFingerprint:kl,LucideFingerprintPattern:kl,LucideFireExtinguisher:m6,LucideFish:v6,LucideFishOff:g6,LucideFishSymbol:k6,LucideFishingHook:x6,LucideFlag:_6,LucideFlagOff:w6,LucideFlagTriangleLeft:M6,LucideFlagTriangleRight:b6,LucideFlame:S6,LucideFlameKindling:C6,LucideFlashlight:N6,LucideFlashlightOff:L6,LucideFlaskConical:E6,LucideFlaskConicalOff:I6,LucideFlaskRound:A6,LucideFlipHorizontal:$6,LucideFlipHorizontal2:j6,LucideFlipVertical:z6,LucideFlipVertical2:P6,LucideFlower:T6,LucideFlower2:R6,LucideFocus:D6,LucideFoldHorizontal:H6,LucideFoldVertical:O6,LucideFolder:fw,LucideFolderArchive:F6,LucideFolderCheck:q6,LucideFolderClock:V6,LucideFolderClosed:U6,LucideFolderCode:B6,LucideFolderCog:vl,LucideFolderCog2:vl,LucideFolderDot:W6,LucideFolderDown:G6,LucideFolderEdit:xl,LucideFolderGit:X6,LucideFolderGit2:K6,LucideFolderHeart:Z6,LucideFolderInput:Y6,LucideFolderKanban:Q6,LucideFolderKey:J6,LucideFolderLock:ew,LucideFolderMinus:tw,LucideFolderOpen:g2,LucideFolderOpenDot:nw,LucideFolderOutput:ow,LucideFolderPen:xl,LucideFolderPlus:rw,LucideFolderRoot:iw,LucideFolderSearch:sw,LucideFolderSearch2:aw,LucideFolderSymlink:cw,LucideFolderSync:lw,LucideFolderTree:dw,LucideFolderUp:uw,LucideFolderX:hw,LucideFolders:pw,LucideFootprints:yw,LucideForkKnife:Ld,LucideForkKnifeCrossed:Sd,LucideForklift:kw,LucideForm:mw,LucideFormInput:n1,LucideForward:gw,LucideFrame:vw,LucideFramer:Mw,LucideFrown:xw,LucideFuel:ww,LucideFullscreen:bw,LucideFunctionSquare:O1,LucideFunnel:Ml,LucideFunnelPlus:_w,LucideFunnelX:wl,LucideGalleryHorizontal:Sw,LucideGalleryHorizontalEnd:Cw,LucideGalleryThumbnails:Lw,LucideGalleryVertical:Iw,LucideGalleryVerticalEnd:Nw,LucideGamepad:$w,LucideGamepad2:Aw,LucideGamepadDirectional:Ew,LucideGanttChart:rc,LucideGanttChartSquare:Dr,LucideGauge:jw,LucideGaugeCircle:Mc,LucideGavel:Pw,LucideGem:zw,LucideGeorgianLari:Rw,LucideGhost:Dw,LucideGift:Tw,LucideGitBranch:Fw,LucideGitBranchMinus:Hw,LucideGitBranchPlus:Ow,LucideGitCommit:bl,LucideGitCommitHorizontal:bl,LucideGitCommitVertical:qw,LucideGitCompare:Bw,LucideGitCompareArrows:Vw,LucideGitFork:Uw,LucideGitGraph:Ww,LucideGitMerge:Gw,LucideGitPullRequest:Jw,LucideGitPullRequestArrow:Kw,LucideGitPullRequestClosed:Xw,LucideGitPullRequestCreate:Yw,LucideGitPullRequestCreateArrow:Zw,LucideGitPullRequestDraft:Qw,LucideGithub:e7,LucideGitlab:t7,LucideGlassWater:n7,LucideGlasses:o7,LucideGlobe:a7,LucideGlobe2:Bc,LucideGlobeLock:r7,LucideGlobeX:i7,LucideGoal:s7,LucideGpu:c7,LucideGrab:Nl,LucideGraduationCap:l7,LucideGrape:d7,LucideGrid:zr,LucideGrid2X2:Ll,LucideGrid2X2Check:_l,LucideGrid2X2Plus:Cl,LucideGrid2X2X:Sl,LucideGrid2x2:Ll,LucideGrid2x2Check:_l,LucideGrid2x2Plus:Cl,LucideGrid2x2X:Sl,LucideGrid3X3:zr,LucideGrid3x2:u7,LucideGrid3x3:zr,LucideGrip:f7,LucideGripHorizontal:h7,LucideGripVertical:p7,LucideGroup:y7,LucideGuitar:m7,LucideHam:g7,LucideHamburger:k7,LucideHammer:v7,LucideHand:k2,LucideHandCoins:x7,LucideHandFist:w7,LucideHandGrab:Nl,LucideHandHeart:M7,LucideHandHelping:Il,LucideHandMetal:b7,LucideHandPlatter:_7,LucideHandbag:C7,LucideHandshake:S7,LucideHardDrive:I7,LucideHardDriveDownload:L7,LucideHardDriveUpload:N7,LucideHardHat:A7,LucideHash:E7,LucideHatGlasses:j7,LucideHaze:$7,LucideHd:P7,LucideHdmiPort:z7,LucideHeading:q7,LucideHeading1:R7,LucideHeading2:T7,LucideHeading3:D7,LucideHeading4:H7,LucideHeading5:O7,LucideHeading6:F7,LucideHeadphoneOff:V7,LucideHeadphones:B7,LucideHeadset:U7,LucideHeart:Q7,LucideHeartCrack:W7,LucideHeartHandshake:K7,LucideHeartMinus:G7,LucideHeartOff:X7,LucideHeartPlus:Z7,LucideHeartPulse:Y7,LucideHeater:J7,LucideHelicopter:eM,LucideHelpCircle:Xo,LucideHelpingHand:Il,LucideHexagon:v2,LucideHighlighter:tM,LucideHistory:nM,LucideHome:Al,LucideHop:oM,LucideHopOff:rM,LucideHospital:iM,LucideHotel:aM,LucideHourglass:sM,LucideHouse:Al,LucideHouseHeart:cM,LucideHousePlug:lM,LucideHousePlus:dM,LucideHouseWifi:uM,LucideIceCream:jl,LucideIceCream2:El,LucideIceCreamBowl:El,LucideIceCreamCone:jl,LucideIdCard:fM,LucideIdCardLanyard:hM,LucideImage:w2,LucideImageDown:pM,LucideImageMinus:mM,LucideImageOff:yM,LucideImagePlay:gM,LucideImagePlus:x2,LucideImageUp:kM,LucideImageUpscale:vM,LucideImages:xM,LucideImport:wM,LucideInbox:MM,LucideIndent:Tr,LucideIndentDecrease:Rr,LucideIndentIncrease:Tr,LucideIndianRupee:bM,LucideInfinity:CM,LucideInfo:_M,LucideInspect:W1,LucideInspectionPanel:SM,LucideInstagram:LM,LucideItalic:NM,LucideIterationCcw:IM,LucideIterationCw:AM,LucideJapaneseYen:EM,LucideJoystick:jM,LucideKanban:$M,LucideKanbanSquare:F1,LucideKanbanSquareDashed:P1,LucideKayak:PM,LucideKey:TM,LucideKeyRound:zM,LucideKeySquare:RM,LucideKeyboard:OM,LucideKeyboardMusic:DM,LucideKeyboardOff:HM,LucideLamp:WM,LucideLampCeiling:FM,LucideLampDesk:qM,LucideLampFloor:VM,LucideLampWallDown:BM,LucideLampWallUp:UM,LucideLandPlot:GM,LucideLandmark:KM,LucideLanguages:XM,LucideLaptop:QM,LucideLaptop2:$l,LucideLaptopMinimal:$l,LucideLaptopMinimalCheck:ZM,LucideLasso:JM,LucideLassoSelect:YM,LucideLaugh:eb,LucideLayers:Pi,LucideLayers2:tb,LucideLayers3:Pi,LucideLayersPlus:nb,LucideLayout:Ql,LucideLayoutDashboard:M2,LucideLayoutGrid:ob,LucideLayoutList:rb,LucideLayoutPanelLeft:ib,LucideLayoutPanelTop:sb,LucideLayoutTemplate:ab,LucideLeaf:cb,LucideLeafyGreen:lb,LucideLectern:db,LucideLetterText:hd,LucideLibrary:hb,LucideLibraryBig:ub,LucideLibrarySquare:q1,LucideLifeBuoy:fb,LucideLigature:pb,LucideLightbulb:mb,LucideLightbulbOff:yb,LucideLineChart:tc,LucideLineSquiggle:gb,LucideLink:vb,LucideLink2:Ua,LucideLink2Off:kb,LucideLinkedin:xb,LucideList:Hb,LucideListCheck:wb,LucideListChecks:Mb,LucideListChevronsDownUp:bb,LucideListChevronsUpDown:Cb,LucideListCollapse:_b,LucideListEnd:Sb,LucideListFilter:Nb,LucideListFilterPlus:Lb,LucideListIndentDecrease:Rr,LucideListIndentIncrease:Tr,LucideListMinus:Ib,LucideListMusic:Ab,LucideListOrdered:Eb,LucideListPlus:jb,LucideListRestart:$b,LucideListStart:Pb,LucideListTodo:zb,LucideListTree:Rb,LucideListVideo:Tb,LucideListX:Db,LucideLoader:Fb,LucideLoader2:Wn,LucideLoaderCircle:Wn,LucideLoaderPinwheel:Ob,LucideLocate:Bb,LucideLocateFixed:qb,LucideLocateOff:Vb,LucideLocationEdit:Tl,LucideLock:Wb,LucideLockKeyhole:Ub,LucideLockKeyholeOpen:Pl,LucideLockOpen:zl,LucideLogIn:Gb,LucideLogOut:Kb,LucideLogs:Xb,LucideLollipop:Zb,LucideLuggage:Yb,LucideMSquare:V1,LucideMagnet:Qb,LucideMail:a9,LucideMailCheck:Jb,LucideMailMinus:e9,LucideMailOpen:t9,LucideMailPlus:n9,LucideMailQuestion:Rl,LucideMailQuestionMark:Rl,LucideMailSearch:o9,LucideMailWarning:r9,LucideMailX:i9,LucideMailbox:c9,LucideMails:s9,LucideMap:b9,LucideMapMinus:l9,LucideMapPin:x9,LucideMapPinCheck:u9,LucideMapPinCheckInside:d9,LucideMapPinHouse:h9,LucideMapPinMinus:p9,LucideMapPinMinusInside:f9,LucideMapPinOff:y9,LucideMapPinPen:Tl,LucideMapPinPlus:g9,LucideMapPinPlusInside:m9,LucideMapPinX:k9,LucideMapPinXInside:v9,LucideMapPinned:w9,LucideMapPlus:M9,LucideMars:C9,LucideMarsStroke:_9,LucideMartini:S9,LucideMaximize:L9,LucideMaximize2:Hd,LucideMedal:N9,LucideMegaphone:A9,LucideMegaphoneOff:I9,LucideMeh:E9,LucideMemoryStick:j9,LucideMenu:P9,LucideMenuSquare:B1,LucideMerge:$9,LucideMessageCircle:B9,LucideMessageCircleCode:z9,LucideMessageCircleDashed:R9,LucideMessageCircleHeart:T9,LucideMessageCircleMore:D9,LucideMessageCircleOff:H9,LucideMessageCirclePlus:O9,LucideMessageCircleQuestion:Dl,LucideMessageCircleQuestionMark:Dl,LucideMessageCircleReply:F9,LucideMessageCircleWarning:q9,LucideMessageCircleX:V9,LucideMessageSquare:a_,LucideMessageSquareCode:U9,LucideMessageSquareDashed:W9,LucideMessageSquareDiff:G9,LucideMessageSquareDot:K9,LucideMessageSquareHeart:X9,LucideMessageSquareLock:Z9,LucideMessageSquareMore:Y9,LucideMessageSquareOff:Q9,LucideMessageSquarePlus:J9,LucideMessageSquareQuote:e_,LucideMessageSquareReply:t_,LucideMessageSquareShare:n_,LucideMessageSquareText:o_,LucideMessageSquareWarning:r_,LucideMessageSquareX:i_,LucideMessagesSquare:s_,LucideMic:l_,LucideMic2:Hl,LucideMicOff:c_,LucideMicVocal:Hl,LucideMicrochip:d_,LucideMicroscope:u_,LucideMicrowave:h_,LucideMilestone:f_,LucideMilk:y_,LucideMilkOff:p_,LucideMinimize:g_,LucideMinimize2:m_,LucideMinus:b2,LucideMinusCircle:bc,LucideMinusSquare:U1,LucideMonitor:E_,LucideMonitorCheck:k_,LucideMonitorCloud:v_,LucideMonitorCog:x_,LucideMonitorDot:w_,LucideMonitorDown:M_,LucideMonitorOff:b_,LucideMonitorPause:__,LucideMonitorPlay:C_,LucideMonitorSmartphone:S_,LucideMonitorSpeaker:L_,LucideMonitorStop:N_,LucideMonitorUp:I_,LucideMonitorX:A_,LucideMoon:$_,LucideMoonStar:j_,LucideMoreHorizontal:Wc,LucideMoreVertical:Uc,LucideMotorbike:P_,LucideMountain:R_,LucideMountainSnow:z_,LucideMouse:q_,LucideMouseOff:T_,LucideMousePointer:F_,LucideMousePointer2:_2,LucideMousePointer2Off:D_,LucideMousePointerBan:H_,LucideMousePointerClick:O_,LucideMousePointerSquareDashed:z1,LucideMove:eC,LucideMove3D:Ol,LucideMove3d:Ol,LucideMoveDiagonal:B_,LucideMoveDiagonal2:V_,LucideMoveDown:G_,LucideMoveDownLeft:U_,LucideMoveDownRight:W_,LucideMoveHorizontal:K_,LucideMoveLeft:C2,LucideMoveRight:X_,LucideMoveUp:Q_,LucideMoveUpLeft:Z_,LucideMoveUpRight:Y_,LucideMoveVertical:J_,LucideMusic:rC,LucideMusic2:tC,LucideMusic3:nC,LucideMusic4:oC,LucideNavigation:cC,LucideNavigation2:aC,LucideNavigation2Off:iC,LucideNavigationOff:sC,LucideNetwork:lC,LucideNewspaper:dC,LucideNfc:uC,LucideNonBinary:hC,LucideNotebook:mC,LucideNotebookPen:fC,LucideNotebookTabs:pC,LucideNotebookText:yC,LucideNotepadText:kC,LucideNotepadTextDashed:gC,LucideNut:vC,LucideNutOff:xC,LucideOctagon:MC,LucideOctagonAlert:Fl,LucideOctagonMinus:wC,LucideOctagonPause:ql,LucideOctagonX:Vl,LucideOmega:bC,LucideOption:CC,LucideOrbit:_C,LucideOrigami:SC,LucideOutdent:Rr,LucidePackage:PC,LucidePackage2:LC,LucidePackageCheck:NC,LucidePackageMinus:IC,LucidePackageOpen:AC,LucidePackagePlus:EC,LucidePackageSearch:jC,LucidePackageX:$C,LucidePaintBucket:zC,LucidePaintRoller:RC,LucidePaintbrush:TC,LucidePaintbrush2:Bl,LucidePaintbrushVertical:Bl,LucidePalette:DC,LucidePalmtree:md,LucidePanda:HC,LucidePanelBottom:FC,LucidePanelBottomClose:OC,LucidePanelBottomDashed:Ul,LucidePanelBottomInactive:Ul,LucidePanelBottomOpen:qC,LucidePanelLeft:Xl,LucidePanelLeftClose:Wl,LucidePanelLeftDashed:Gl,LucidePanelLeftInactive:Gl,LucidePanelLeftOpen:Kl,LucidePanelLeftRightDashed:VC,LucidePanelRight:BC,LucidePanelRightClose:v0,LucidePanelRightDashed:Zl,LucidePanelRightInactive:Zl,LucidePanelRightOpen:S2,LucidePanelTop:KC,LucidePanelTopBottomDashed:UC,LucidePanelTopClose:WC,LucidePanelTopDashed:Yl,LucidePanelTopInactive:Yl,LucidePanelTopOpen:GC,LucidePanelsLeftBottom:XC,LucidePanelsLeftRight:Ca,LucidePanelsRightBottom:ZC,LucidePanelsTopBottom:i1,LucidePanelsTopLeft:Ql,LucidePaperclip:YC,LucideParentheses:JC,LucideParkingCircle:Cc,LucideParkingCircleOff:_c,LucideParkingMeter:QC,LucideParkingSquare:K1,LucideParkingSquareOff:G1,LucidePartyPopper:eS,LucidePause:tS,LucidePauseCircle:Sc,LucidePauseOctagon:ql,LucidePawPrint:nS,LucidePcCase:oS,LucidePen:e1,LucidePenBox:so,LucidePenLine:Jl,LucidePenOff:rS,LucidePenSquare:so,LucidePenTool:iS,LucidePencil:N2,LucidePencilLine:L2,LucidePencilOff:aS,LucidePencilRuler:sS,LucidePentagon:cS,LucidePercent:lS,LucidePercentCircle:Lc,LucidePercentDiamond:Vc,LucidePercentSquare:X1,LucidePersonStanding:uS,LucidePhilippinePeso:dS,LucidePhone:kS,LucidePhoneCall:hS,LucidePhoneForwarded:fS,LucidePhoneIncoming:pS,LucidePhoneMissed:yS,LucidePhoneOff:mS,LucidePhoneOutgoing:gS,LucidePi:vS,LucidePiSquare:Q1,LucidePiano:xS,LucidePickaxe:wS,LucidePictureInPicture:bS,LucidePictureInPicture2:MS,LucidePieChart:ic,LucidePiggyBank:_S,LucidePilcrow:LS,LucidePilcrowLeft:CS,LucidePilcrowRight:SS,LucidePilcrowSquare:Z1,LucidePill:IS,LucidePillBottle:NS,LucidePin:ES,LucidePinOff:AS,LucidePipette:jS,LucidePizza:$S,LucidePlane:RS,LucidePlaneLanding:PS,LucidePlaneTakeoff:zS,LucidePlay:Od,LucidePlayCircle:Nc,LucidePlaySquare:Y1,LucidePlug:DS,LucidePlug2:TS,LucidePlugZap:t1,LucidePlugZap2:t1,LucidePlus:I2,LucidePlusCircle:Ic,LucidePlusSquare:J1,LucidePocket:OS,LucidePocketKnife:HS,LucidePodcast:qS,LucidePointer:VS,LucidePointerOff:FS,LucidePopcorn:BS,LucidePopsicle:US,LucidePoundSterling:WS,LucidePower:KS,LucidePowerCircle:Ac,LucidePowerOff:GS,LucidePowerSquare:ed,LucidePresentation:XS,LucidePrinter:QS,LucidePrinterCheck:ZS,LucidePrinterX:YS,LucideProjector:eL,LucideProportions:JS,LucidePuzzle:tL,LucidePyramid:nL,LucideQrCode:oL,LucideQuote:rL,LucideRabbit:iL,LucideRadar:aL,LucideRadiation:sL,LucideRadical:cL,LucideRadio:uL,LucideRadioReceiver:lL,LucideRadioTower:dL,LucideRadius:hL,LucideRailSymbol:fL,LucideRainbow:pL,LucideRat:yL,LucideRatio:mL,LucideReceipt:SL,LucideReceiptCent:gL,LucideReceiptEuro:kL,LucideReceiptIndianRupee:vL,LucideReceiptJapaneseYen:xL,LucideReceiptPoundSterling:wL,LucideReceiptRussianRuble:ML,LucideReceiptSwissFranc:bL,LucideReceiptText:_L,LucideReceiptTurkishLira:CL,LucideRectangleCircle:LL,LucideRectangleEllipsis:n1,LucideRectangleGoggles:NL,LucideRectangleHorizontal:IL,LucideRectangleVertical:AL,LucideRecycle:EL,LucideRedo:PL,LucideRedo2:jL,LucideRedoDot:$L,LucideRefreshCcw:TL,LucideRefreshCcwDot:zL,LucideRefreshCw:DL,LucideRefreshCwOff:RL,LucideRefrigerator:HL,LucideRegex:OL,LucideRemoveFormatting:FL,LucideRepeat:BL,LucideRepeat1:VL,LucideRepeat2:qL,LucideReplace:WL,LucideReplaceAll:UL,LucideReply:KL,LucideReplyAll:GL,LucideRewind:XL,LucideRibbon:YL,LucideRocket:ZL,LucideRockingChair:QL,LucideRollerCoaster:JL,LucideRose:eN,LucideRotate3D:o1,LucideRotate3d:o1,LucideRotateCcw:oN,LucideRotateCcwKey:tN,LucideRotateCcwSquare:nN,LucideRotateCw:iN,LucideRotateCwSquare:rN,LucideRoute:sN,LucideRouteOff:aN,LucideRouter:cN,LucideRows:r1,LucideRows2:r1,LucideRows3:i1,LucideRows4:lN,LucideRss:dN,LucideRuler:hN,LucideRulerDimensionLine:uN,LucideRussianRuble:fN,LucideSailboat:pN,LucideSalad:yN,LucideSandwich:mN,LucideSatellite:kN,LucideSatelliteDish:gN,LucideSaudiRiyal:vN,LucideSave:MN,LucideSaveAll:xN,LucideSaveOff:wN,LucideScale:bN,LucideScale3D:a1,LucideScale3d:a1,LucideScaling:_N,LucideScan:$N,LucideScanBarcode:CN,LucideScanEye:SN,LucideScanFace:LN,LucideScanHeart:NN,LucideScanLine:IN,LucideScanQrCode:AN,LucideScanSearch:EN,LucideScanText:jN,LucideScatterChart:ac,LucideSchool:PN,LucideSchool2:kd,LucideScissors:TN,LucideScissorsLineDashed:zN,LucideScissorsSquare:td,LucideScissorsSquareDashedBottom:S1,LucideScooter:RN,LucideScreenShare:HN,LucideScreenShareOff:DN,LucideScroll:FN,LucideScrollText:ON,LucideSearch:A2,LucideSearchAlert:qN,LucideSearchCheck:VN,LucideSearchCode:BN,LucideSearchSlash:UN,LucideSearchX:WN,LucideSection:GN,LucideSend:XN,LucideSendHorizonal:s1,LucideSendHorizontal:s1,LucideSendToBack:KN,LucideSeparatorHorizontal:YN,LucideSeparatorVertical:ZN,LucideServer:E2,LucideServerCog:QN,LucideServerCrash:JN,LucideServerOff:eI,LucideSettings:nI,LucideSettings2:tI,LucideShapes:j2,LucideShare:oI,LucideShare2:$2,LucideSheet:rI,LucideShell:iI,LucideShield:yI,LucideShieldAlert:aI,LucideShieldBan:sI,LucideShieldCheck:cI,LucideShieldClose:l1,LucideShieldEllipsis:lI,LucideShieldHalf:dI,LucideShieldMinus:uI,LucideShieldOff:hI,LucideShieldPlus:fI,LucideShieldQuestion:c1,LucideShieldQuestionMark:c1,LucideShieldUser:pI,LucideShieldX:l1,LucideShip:kI,LucideShipWheel:mI,LucideShirt:gI,LucideShoppingBag:xI,LucideShoppingBasket:vI,LucideShoppingCart:wI,LucideShovel:MI,LucideShowerHead:bI,LucideShredder:_I,LucideShrimp:CI,LucideShrink:SI,LucideShrub:LI,LucideShuffle:NI,LucideSidebar:Xl,LucideSidebarClose:Wl,LucideSidebarOpen:Kl,LucideSigma:II,LucideSigmaSquare:nd,LucideSignal:PI,LucideSignalHigh:AI,LucideSignalLow:EI,LucideSignalMedium:jI,LucideSignalZero:$I,LucideSignature:zI,LucideSignpost:TI,LucideSignpostBig:RI,LucideSiren:DI,LucideSkipBack:HI,LucideSkipForward:OI,LucideSkull:FI,LucideSlack:qI,LucideSlash:VI,LucideSlashSquare:od,LucideSlice:BI,LucideSliders:d1,LucideSlidersHorizontal:UI,LucideSlidersVertical:d1,LucideSmartphone:KI,LucideSmartphoneCharging:WI,LucideSmartphoneNfc:GI,LucideSmile:ZI,LucideSmilePlus:XI,LucideSnail:YI,LucideSnowflake:QI,LucideSoapDispenserDroplet:JI,LucideSofa:eA,LucideSolarPanel:tA,LucideSortAsc:Ds,LucideSortDesc:zs,LucideSoup:nA,LucideSpace:oA,LucideSpade:rA,LucideSparkle:iA,LucideSparkles:u1,LucideSpeaker:aA,LucideSpeech:sA,LucideSpellCheck:lA,LucideSpellCheck2:cA,LucideSpline:dA,LucideSplinePointer:uA,LucideSplit:hA,LucideSplitSquareHorizontal:rd,LucideSplitSquareVertical:id,LucideSpool:fA,LucideSpotlight:pA,LucideSprayCan:yA,LucideSprout:mA,LucideSquare:x0,LucideSquareActivity:h1,LucideSquareArrowDown:y1,LucideSquareArrowDownLeft:f1,LucideSquareArrowDownRight:p1,LucideSquareArrowLeft:m1,LucideSquareArrowOutDownLeft:g1,LucideSquareArrowOutDownRight:k1,LucideSquareArrowOutUpLeft:v1,LucideSquareArrowOutUpRight:x1,LucideSquareArrowRight:w1,LucideSquareArrowUp:b1,LucideSquareArrowUpLeft:M1,LucideSquareArrowUpRight:C1,LucideSquareAsterisk:_1,LucideSquareBottomDashedScissors:S1,LucideSquareChartGantt:Dr,LucideSquareCheck:N1,LucideSquareCheckBig:L1,LucideSquareChevronDown:I1,LucideSquareChevronLeft:A1,LucideSquareChevronRight:j1,LucideSquareChevronUp:E1,LucideSquareCode:$1,LucideSquareDashed:R1,LucideSquareDashedBottom:kA,LucideSquareDashedBottomCode:gA,LucideSquareDashedKanban:P1,LucideSquareDashedMousePointer:z1,LucideSquareDashedTopSolid:vA,LucideSquareDivide:T1,LucideSquareDot:D1,LucideSquareEqual:H1,LucideSquareFunction:O1,LucideSquareGanttChart:Dr,LucideSquareKanban:F1,LucideSquareLibrary:q1,LucideSquareM:V1,LucideSquareMenu:B1,LucideSquareMinus:U1,LucideSquareMousePointer:W1,LucideSquareParking:K1,LucideSquareParkingOff:G1,LucideSquarePause:xA,LucideSquarePen:so,LucideSquarePercent:X1,LucideSquarePi:Q1,LucideSquarePilcrow:Z1,LucideSquarePlay:Y1,LucideSquarePlus:J1,LucideSquarePower:ed,LucideSquareRadical:wA,LucideSquareRoundCorner:MA,LucideSquareScissors:td,LucideSquareSigma:nd,LucideSquareSlash:od,LucideSquareSplitHorizontal:rd,LucideSquareSplitVertical:id,LucideSquareSquare:_A,LucideSquareStack:bA,LucideSquareStar:SA,LucideSquareStop:CA,LucideSquareTerminal:ad,LucideSquareUser:cd,LucideSquareUserRound:sd,LucideSquareX:ld,LucideSquaresExclude:LA,LucideSquaresIntersect:NA,LucideSquaresSubtract:IA,LucideSquaresUnite:AA,LucideSquircle:w0,LucideSquircleDashed:EA,LucideSquirrel:jA,LucideStamp:$A,LucideStar:RA,LucideStarHalf:PA,LucideStarOff:zA,LucideStars:u1,LucideStepBack:TA,LucideStepForward:DA,LucideStethoscope:HA,LucideSticker:M0,LucideStickyNote:P2,LucideStone:OA,LucideStopCircle:$c,LucideStore:FA,LucideStretchHorizontal:VA,LucideStretchVertical:qA,LucideStrikethrough:BA,LucideSubscript:UA,LucideSubtitles:Gs,LucideSun:ZA,LucideSunDim:WA,LucideSunMedium:GA,LucideSunMoon:KA,LucideSunSnow:XA,LucideSunrise:YA,LucideSunset:QA,LucideSuperscript:JA,LucideSwatchBook:eE,LucideSwissFranc:tE,LucideSwitchCamera:nE,LucideSword:oE,LucideSwords:rE,LucideSyringe:iE,LucideTable:fE,LucideTable2:aE,LucideTableCellsMerge:sE,LucideTableCellsSplit:cE,LucideTableColumnsSplit:lE,LucideTableConfig:$r,LucideTableOfContents:dE,LucideTableProperties:uE,LucideTableRowsSplit:hE,LucideTablet:yE,LucideTabletSmartphone:pE,LucideTablets:mE,LucideTag:gE,LucideTags:kE,LucideTally1:vE,LucideTally2:xE,LucideTally3:wE,LucideTally4:ME,LucideTally5:bE,LucideTangent:_E,LucideTarget:CE,LucideTelescope:SE,LucideTent:NE,LucideTentTree:LE,LucideTerminal:IE,LucideTerminalSquare:ad,LucideTestTube:AE,LucideTestTube2:dd,LucideTestTubeDiagonal:dd,LucideTestTubes:EE,LucideText:Zo,LucideTextAlignCenter:Sa,LucideTextAlignEnd:La,LucideTextAlignJustify:ud,LucideTextAlignStart:Zo,LucideTextCursor:$E,LucideTextCursorInput:jE,LucideTextInitial:hd,LucideTextQuote:PE,LucideTextSearch:zE,LucideTextSelect:fd,LucideTextSelection:fd,LucideTextWrap:pd,LucideTheater:RE,LucideThermometer:HE,LucideThermometerSnowflake:TE,LucideThermometerSun:DE,LucideThumbsDown:OE,LucideThumbsUp:FE,LucideTicket:KE,LucideTicketCheck:qE,LucideTicketMinus:VE,LucideTicketPercent:BE,LucideTicketPlus:UE,LucideTicketSlash:WE,LucideTicketX:GE,LucideTickets:ZE,LucideTicketsPlane:XE,LucideTimer:JE,LucideTimerOff:YE,LucideTimerReset:QE,LucideToggleLeft:ej,LucideToggleRight:tj,LucideToilet:nj,LucideToolCase:rj,LucideToolbox:oj,LucideTornado:ij,LucideTorus:aj,LucideTouchpad:cj,LucideTouchpadOff:sj,LucideTowerControl:lj,LucideToyBrick:dj,LucideTractor:uj,LucideTrafficCone:hj,LucideTrain:yd,LucideTrainFront:pj,LucideTrainFrontTunnel:fj,LucideTrainTrack:yj,LucideTramFront:yd,LucideTransgender:mj,LucideTrash:gj,LucideTrash2:z2,LucideTreeDeciduous:kj,LucideTreePalm:md,LucideTreePine:vj,LucideTrees:xj,LucideTrello:wj,LucideTrendingDown:Mj,LucideTrendingUp:_j,LucideTrendingUpDown:bj,LucideTriangle:R2,LucideTriangleAlert:qr,LucideTriangleDashed:Cj,LucideTriangleRight:Sj,LucideTrophy:Lj,LucideTruck:Ij,LucideTruckElectric:Nj,LucideTurkishLira:Aj,LucideTurntable:Ej,LucideTurtle:jj,LucideTv:Pj,LucideTv2:gd,LucideTvMinimal:gd,LucideTvMinimalPlay:$j,LucideTwitch:zj,LucideTwitter:Rj,LucideType:b0,LucideTypeOutline:Tj,LucideUmbrella:Hj,LucideUmbrellaOff:Dj,LucideUnderline:Oj,LucideUndo:Vj,LucideUndo2:Fj,LucideUndoDot:qj,LucideUnfoldHorizontal:Bj,LucideUnfoldVertical:Uj,LucideUngroup:Wj,LucideUniversity:kd,LucideUnlink:Kj,LucideUnlink2:Gj,LucideUnlock:zl,LucideUnlockKeyhole:Pl,LucideUnplug:Xj,LucideUpload:T2,LucideUploadCloud:Hc,LucideUsb:Zj,LucideUser:D2,LucideUser2:_d,LucideUserCheck:Yj,LucideUserCheck2:vd,LucideUserCircle:Pc,LucideUserCircle2:jc,LucideUserCog:Qj,LucideUserCog2:xd,LucideUserKey:Jj,LucideUserLock:e$,LucideUserMinus:t$,LucideUserMinus2:wd,LucideUserPen:n$,LucideUserPlus:o$,LucideUserPlus2:Md,LucideUserRound:_d,LucideUserRoundCheck:vd,LucideUserRoundCog:xd,LucideUserRoundKey:r$,LucideUserRoundMinus:wd,LucideUserRoundPen:i$,LucideUserRoundPlus:Md,LucideUserRoundSearch:a$,LucideUserRoundX:bd,LucideUserSearch:s$,LucideUserSquare:cd,LucideUserSquare2:sd,LucideUserStar:c$,LucideUserX:l$,LucideUserX2:bd,LucideUsers:d$,LucideUsers2:Cd,LucideUsersRound:Cd,LucideUtensils:Ld,LucideUtensilsCrossed:Sd,LucideUtilityPole:u$,LucideVan:h$,LucideVariable:f$,LucideVault:p$,LucideVectorSquare:y$,LucideVegan:m$,LucideVenetianMask:g$,LucideVenus:v$,LucideVenusAndMars:k$,LucideVerified:Fs,LucideVibrate:w$,LucideVibrateOff:x$,LucideVideo:b$,LucideVideoOff:M$,LucideVideotape:_$,LucideView:C$,LucideVoicemail:S$,LucideVolleyball:L$,LucideVolume:j$,LucideVolume1:N$,LucideVolume2:I$,LucideVolumeOff:A$,LucideVolumeX:E$,LucideVote:$$,LucideWallet:z$,LucideWallet2:Nd,LucideWalletCards:P$,LucideWalletMinimal:Nd,LucideWallpaper:R$,LucideWand:T$,LucideWand2:Id,LucideWandSparkles:Id,LucideWarehouse:D$,LucideWashingMachine:H$,LucideWatch:O$,LucideWaves:B$,LucideWavesArrowDown:F$,LucideWavesArrowUp:q$,LucideWavesLadder:V$,LucideWaypoints:U$,LucideWebcam:W$,LucideWebhook:K$,LucideWebhookOff:G$,LucideWeight:Z$,LucideWeightTilde:X$,LucideWheat:J$,LucideWheatOff:Y$,LucideWholeWord:Q$,LucideWifi:sP,LucideWifiCog:eP,LucideWifiHigh:tP,LucideWifiLow:nP,LucideWifiOff:oP,LucideWifiPen:rP,LucideWifiSync:iP,LucideWifiZero:aP,LucideWind:lP,LucideWindArrowDown:cP,LucideWine:uP,LucideWineOff:dP,LucideWorkflow:hP,LucideWorm:fP,LucideWrapText:pd,LucideWrench:pP,LucideX:Fd,LucideXCircle:zc,LucideXOctagon:Vl,LucideXSquare:ld,LucideYoutube:yP,LucideZap:gP,LucideZapOff:mP,LucideZoomIn:kP,LucideZoomOut:vP,Luggage:Yb,LuggageIcon:Yb,MSquare:V1,MSquareIcon:V1,Magnet:Qb,MagnetIcon:Qb,Mail:a9,MailCheck:Jb,MailCheckIcon:Jb,MailIcon:a9,MailMinus:e9,MailMinusIcon:e9,MailOpen:t9,MailOpenIcon:t9,MailPlus:n9,MailPlusIcon:n9,MailQuestion:Rl,MailQuestionIcon:Rl,MailQuestionMark:Rl,MailQuestionMarkIcon:Rl,MailSearch:o9,MailSearchIcon:o9,MailWarning:r9,MailWarningIcon:r9,MailX:i9,MailXIcon:i9,Mailbox:c9,MailboxIcon:c9,Mails:s9,MailsIcon:s9,Map:b9,MapIcon:b9,MapMinus:l9,MapMinusIcon:l9,MapPin:x9,MapPinCheck:u9,MapPinCheckIcon:u9,MapPinCheckInside:d9,MapPinCheckInsideIcon:d9,MapPinHouse:h9,MapPinHouseIcon:h9,MapPinIcon:x9,MapPinMinus:p9,MapPinMinusIcon:p9,MapPinMinusInside:f9,MapPinMinusInsideIcon:f9,MapPinOff:y9,MapPinOffIcon:y9,MapPinPen:Tl,MapPinPenIcon:Tl,MapPinPlus:g9,MapPinPlusIcon:g9,MapPinPlusInside:m9,MapPinPlusInsideIcon:m9,MapPinX:k9,MapPinXIcon:k9,MapPinXInside:v9,MapPinXInsideIcon:v9,MapPinned:w9,MapPinnedIcon:w9,MapPlus:M9,MapPlusIcon:M9,Mars:C9,MarsIcon:C9,MarsStroke:_9,MarsStrokeIcon:_9,Martini:S9,MartiniIcon:S9,Maximize:L9,Maximize2:Hd,Maximize2Icon:Hd,MaximizeIcon:L9,Medal:N9,MedalIcon:N9,Megaphone:A9,MegaphoneIcon:A9,MegaphoneOff:I9,MegaphoneOffIcon:I9,Meh:E9,MehIcon:E9,MemoryStick:j9,MemoryStickIcon:j9,Menu:P9,MenuIcon:P9,MenuSquare:B1,MenuSquareIcon:B1,Merge:$9,MergeIcon:$9,MessageCircle:B9,MessageCircleCode:z9,MessageCircleCodeIcon:z9,MessageCircleDashed:R9,MessageCircleDashedIcon:R9,MessageCircleHeart:T9,MessageCircleHeartIcon:T9,MessageCircleIcon:B9,MessageCircleMore:D9,MessageCircleMoreIcon:D9,MessageCircleOff:H9,MessageCircleOffIcon:H9,MessageCirclePlus:O9,MessageCirclePlusIcon:O9,MessageCircleQuestion:Dl,MessageCircleQuestionIcon:Dl,MessageCircleQuestionMark:Dl,MessageCircleQuestionMarkIcon:Dl,MessageCircleReply:F9,MessageCircleReplyIcon:F9,MessageCircleWarning:q9,MessageCircleWarningIcon:q9,MessageCircleX:V9,MessageCircleXIcon:V9,MessageSquare:a_,MessageSquareCode:U9,MessageSquareCodeIcon:U9,MessageSquareDashed:W9,MessageSquareDashedIcon:W9,MessageSquareDiff:G9,MessageSquareDiffIcon:G9,MessageSquareDot:K9,MessageSquareDotIcon:K9,MessageSquareHeart:X9,MessageSquareHeartIcon:X9,MessageSquareIcon:a_,MessageSquareLock:Z9,MessageSquareLockIcon:Z9,MessageSquareMore:Y9,MessageSquareMoreIcon:Y9,MessageSquareOff:Q9,MessageSquareOffIcon:Q9,MessageSquarePlus:J9,MessageSquarePlusIcon:J9,MessageSquareQuote:e_,MessageSquareQuoteIcon:e_,MessageSquareReply:t_,MessageSquareReplyIcon:t_,MessageSquareShare:n_,MessageSquareShareIcon:n_,MessageSquareText:o_,MessageSquareTextIcon:o_,MessageSquareWarning:r_,MessageSquareWarningIcon:r_,MessageSquareX:i_,MessageSquareXIcon:i_,MessagesSquare:s_,MessagesSquareIcon:s_,Mic:l_,Mic2:Hl,Mic2Icon:Hl,MicIcon:l_,MicOff:c_,MicOffIcon:c_,MicVocal:Hl,MicVocalIcon:Hl,Microchip:d_,MicrochipIcon:d_,Microscope:u_,MicroscopeIcon:u_,Microwave:h_,MicrowaveIcon:h_,Milestone:f_,MilestoneIcon:f_,Milk:y_,MilkIcon:y_,MilkOff:p_,MilkOffIcon:p_,Minimize:g_,Minimize2:m_,Minimize2Icon:m_,MinimizeIcon:g_,Minus:b2,MinusCircle:bc,MinusCircleIcon:bc,MinusIcon:b2,MinusSquare:U1,MinusSquareIcon:U1,Monitor:E_,MonitorCheck:k_,MonitorCheckIcon:k_,MonitorCloud:v_,MonitorCloudIcon:v_,MonitorCog:x_,MonitorCogIcon:x_,MonitorDot:w_,MonitorDotIcon:w_,MonitorDown:M_,MonitorDownIcon:M_,MonitorIcon:E_,MonitorOff:b_,MonitorOffIcon:b_,MonitorPause:__,MonitorPauseIcon:__,MonitorPlay:C_,MonitorPlayIcon:C_,MonitorSmartphone:S_,MonitorSmartphoneIcon:S_,MonitorSpeaker:L_,MonitorSpeakerIcon:L_,MonitorStop:N_,MonitorStopIcon:N_,MonitorUp:I_,MonitorUpIcon:I_,MonitorX:A_,MonitorXIcon:A_,Moon:$_,MoonIcon:$_,MoonStar:j_,MoonStarIcon:j_,MoreHorizontal:Wc,MoreHorizontalIcon:Wc,MoreVertical:Uc,MoreVerticalIcon:Uc,Motorbike:P_,MotorbikeIcon:P_,Mountain:R_,MountainIcon:R_,MountainSnow:z_,MountainSnowIcon:z_,Mouse:q_,MouseIcon:q_,MouseOff:T_,MouseOffIcon:T_,MousePointer:F_,MousePointer2:_2,MousePointer2Icon:_2,MousePointer2Off:D_,MousePointer2OffIcon:D_,MousePointerBan:H_,MousePointerBanIcon:H_,MousePointerClick:O_,MousePointerClickIcon:O_,MousePointerIcon:F_,MousePointerSquareDashed:z1,MousePointerSquareDashedIcon:z1,Move:eC,Move3D:Ol,Move3DIcon:Ol,Move3d:Ol,Move3dIcon:Ol,MoveDiagonal:B_,MoveDiagonal2:V_,MoveDiagonal2Icon:V_,MoveDiagonalIcon:B_,MoveDown:G_,MoveDownIcon:G_,MoveDownLeft:U_,MoveDownLeftIcon:U_,MoveDownRight:W_,MoveDownRightIcon:W_,MoveHorizontal:K_,MoveHorizontalIcon:K_,MoveIcon:eC,MoveLeft:C2,MoveLeftIcon:C2,MoveRight:X_,MoveRightIcon:X_,MoveUp:Q_,MoveUpIcon:Q_,MoveUpLeft:Z_,MoveUpLeftIcon:Z_,MoveUpRight:Y_,MoveUpRightIcon:Y_,MoveVertical:J_,MoveVerticalIcon:J_,Music:rC,Music2:tC,Music2Icon:tC,Music3:nC,Music3Icon:nC,Music4:oC,Music4Icon:oC,MusicIcon:rC,Navigation:cC,Navigation2:aC,Navigation2Icon:aC,Navigation2Off:iC,Navigation2OffIcon:iC,NavigationIcon:cC,NavigationOff:sC,NavigationOffIcon:sC,Network:lC,NetworkIcon:lC,Newspaper:dC,NewspaperIcon:dC,Nfc:uC,NfcIcon:uC,NonBinary:hC,NonBinaryIcon:hC,Notebook:mC,NotebookIcon:mC,NotebookPen:fC,NotebookPenIcon:fC,NotebookTabs:pC,NotebookTabsIcon:pC,NotebookText:yC,NotebookTextIcon:yC,NotepadText:kC,NotepadTextDashed:gC,NotepadTextDashedIcon:gC,NotepadTextIcon:kC,Nut:vC,NutIcon:vC,NutOff:xC,NutOffIcon:xC,Octagon:MC,OctagonAlert:Fl,OctagonAlertIcon:Fl,OctagonIcon:MC,OctagonMinus:wC,OctagonMinusIcon:wC,OctagonPause:ql,OctagonPauseIcon:ql,OctagonX:Vl,OctagonXIcon:Vl,Omega:bC,OmegaIcon:bC,Option:CC,OptionIcon:CC,Orbit:_C,OrbitIcon:_C,Origami:SC,OrigamiIcon:SC,Outdent:Rr,OutdentIcon:Rr,Package:PC,Package2:LC,Package2Icon:LC,PackageCheck:NC,PackageCheckIcon:NC,PackageIcon:PC,PackageMinus:IC,PackageMinusIcon:IC,PackageOpen:AC,PackageOpenIcon:AC,PackagePlus:EC,PackagePlusIcon:EC,PackageSearch:jC,PackageSearchIcon:jC,PackageX:$C,PackageXIcon:$C,PaintBucket:zC,PaintBucketIcon:zC,PaintRoller:RC,PaintRollerIcon:RC,Paintbrush:TC,Paintbrush2:Bl,Paintbrush2Icon:Bl,PaintbrushIcon:TC,PaintbrushVertical:Bl,PaintbrushVerticalIcon:Bl,Palette:DC,PaletteIcon:DC,Palmtree:md,PalmtreeIcon:md,Panda:HC,PandaIcon:HC,PanelBottom:FC,PanelBottomClose:OC,PanelBottomCloseIcon:OC,PanelBottomDashed:Ul,PanelBottomDashedIcon:Ul,PanelBottomIcon:FC,PanelBottomInactive:Ul,PanelBottomInactiveIcon:Ul,PanelBottomOpen:qC,PanelBottomOpenIcon:qC,PanelLeft:Xl,PanelLeftClose:Wl,PanelLeftCloseIcon:Wl,PanelLeftDashed:Gl,PanelLeftDashedIcon:Gl,PanelLeftIcon:Xl,PanelLeftInactive:Gl,PanelLeftInactiveIcon:Gl,PanelLeftOpen:Kl,PanelLeftOpenIcon:Kl,PanelLeftRightDashed:VC,PanelLeftRightDashedIcon:VC,PanelRight:BC,PanelRightClose:v0,PanelRightCloseIcon:v0,PanelRightDashed:Zl,PanelRightDashedIcon:Zl,PanelRightIcon:BC,PanelRightInactive:Zl,PanelRightInactiveIcon:Zl,PanelRightOpen:S2,PanelRightOpenIcon:S2,PanelTop:KC,PanelTopBottomDashed:UC,PanelTopBottomDashedIcon:UC,PanelTopClose:WC,PanelTopCloseIcon:WC,PanelTopDashed:Yl,PanelTopDashedIcon:Yl,PanelTopIcon:KC,PanelTopInactive:Yl,PanelTopInactiveIcon:Yl,PanelTopOpen:GC,PanelTopOpenIcon:GC,PanelsLeftBottom:XC,PanelsLeftBottomIcon:XC,PanelsLeftRight:Ca,PanelsLeftRightIcon:Ca,PanelsRightBottom:ZC,PanelsRightBottomIcon:ZC,PanelsTopBottom:i1,PanelsTopBottomIcon:i1,PanelsTopLeft:Ql,PanelsTopLeftIcon:Ql,Paperclip:YC,PaperclipIcon:YC,Parentheses:JC,ParenthesesIcon:JC,ParkingCircle:Cc,ParkingCircleIcon:Cc,ParkingCircleOff:_c,ParkingCircleOffIcon:_c,ParkingMeter:QC,ParkingMeterIcon:QC,ParkingSquare:K1,ParkingSquareIcon:K1,ParkingSquareOff:G1,ParkingSquareOffIcon:G1,PartyPopper:eS,PartyPopperIcon:eS,Pause:tS,PauseCircle:Sc,PauseCircleIcon:Sc,PauseIcon:tS,PauseOctagon:ql,PauseOctagonIcon:ql,PawPrint:nS,PawPrintIcon:nS,PcCase:oS,PcCaseIcon:oS,Pen:e1,PenBox:so,PenBoxIcon:so,PenIcon:e1,PenLine:Jl,PenLineIcon:Jl,PenOff:rS,PenOffIcon:rS,PenSquare:so,PenSquareIcon:so,PenTool:iS,PenToolIcon:iS,Pencil:N2,PencilIcon:N2,PencilLine:L2,PencilLineIcon:L2,PencilOff:aS,PencilOffIcon:aS,PencilRuler:sS,PencilRulerIcon:sS,Pentagon:cS,PentagonIcon:cS,Percent:lS,PercentCircle:Lc,PercentCircleIcon:Lc,PercentDiamond:Vc,PercentDiamondIcon:Vc,PercentIcon:lS,PercentSquare:X1,PercentSquareIcon:X1,PersonStanding:uS,PersonStandingIcon:uS,PhilippinePeso:dS,PhilippinePesoIcon:dS,Phone:kS,PhoneCall:hS,PhoneCallIcon:hS,PhoneForwarded:fS,PhoneForwardedIcon:fS,PhoneIcon:kS,PhoneIncoming:pS,PhoneIncomingIcon:pS,PhoneMissed:yS,PhoneMissedIcon:yS,PhoneOff:mS,PhoneOffIcon:mS,PhoneOutgoing:gS,PhoneOutgoingIcon:gS,Pi:vS,PiIcon:vS,PiSquare:Q1,PiSquareIcon:Q1,Piano:xS,PianoIcon:xS,Pickaxe:wS,PickaxeIcon:wS,PictureInPicture:bS,PictureInPicture2:MS,PictureInPicture2Icon:MS,PictureInPictureIcon:bS,PieChart:ic,PieChartIcon:ic,PiggyBank:_S,PiggyBankIcon:_S,Pilcrow:LS,PilcrowIcon:LS,PilcrowLeft:CS,PilcrowLeftIcon:CS,PilcrowRight:SS,PilcrowRightIcon:SS,PilcrowSquare:Z1,PilcrowSquareIcon:Z1,Pill:IS,PillBottle:NS,PillBottleIcon:NS,PillIcon:IS,Pin:ES,PinIcon:ES,PinOff:AS,PinOffIcon:AS,Pipette:jS,PipetteIcon:jS,Pizza:$S,PizzaIcon:$S,Plane:RS,PlaneIcon:RS,PlaneLanding:PS,PlaneLandingIcon:PS,PlaneTakeoff:zS,PlaneTakeoffIcon:zS,Play:Od,PlayCircle:Nc,PlayCircleIcon:Nc,PlayIcon:Od,PlaySquare:Y1,PlaySquareIcon:Y1,Plug:DS,Plug2:TS,Plug2Icon:TS,PlugIcon:DS,PlugZap:t1,PlugZap2:t1,PlugZap2Icon:t1,PlugZapIcon:t1,Plus:I2,PlusCircle:Ic,PlusCircleIcon:Ic,PlusIcon:I2,PlusSquare:J1,PlusSquareIcon:J1,Pocket:OS,PocketIcon:OS,PocketKnife:HS,PocketKnifeIcon:HS,Podcast:qS,PodcastIcon:qS,Pointer:VS,PointerIcon:VS,PointerOff:FS,PointerOffIcon:FS,Popcorn:BS,PopcornIcon:BS,Popsicle:US,PopsicleIcon:US,PoundSterling:WS,PoundSterlingIcon:WS,Power:KS,PowerCircle:Ac,PowerCircleIcon:Ac,PowerIcon:KS,PowerOff:GS,PowerOffIcon:GS,PowerSquare:ed,PowerSquareIcon:ed,Presentation:XS,PresentationIcon:XS,Printer:QS,PrinterCheck:ZS,PrinterCheckIcon:ZS,PrinterIcon:QS,PrinterX:YS,PrinterXIcon:YS,Projector:eL,ProjectorIcon:eL,Proportions:JS,ProportionsIcon:JS,Puzzle:tL,PuzzleIcon:tL,Pyramid:nL,PyramidIcon:nL,QrCode:oL,QrCodeIcon:oL,Quote:rL,QuoteIcon:rL,Rabbit:iL,RabbitIcon:iL,Radar:aL,RadarIcon:aL,Radiation:sL,RadiationIcon:sL,Radical:cL,RadicalIcon:cL,Radio:uL,RadioIcon:uL,RadioReceiver:lL,RadioReceiverIcon:lL,RadioTower:dL,RadioTowerIcon:dL,Radius:hL,RadiusIcon:hL,RailSymbol:fL,RailSymbolIcon:fL,Rainbow:pL,RainbowIcon:pL,Rat:yL,RatIcon:yL,Ratio:mL,RatioIcon:mL,Receipt:SL,ReceiptCent:gL,ReceiptCentIcon:gL,ReceiptEuro:kL,ReceiptEuroIcon:kL,ReceiptIcon:SL,ReceiptIndianRupee:vL,ReceiptIndianRupeeIcon:vL,ReceiptJapaneseYen:xL,ReceiptJapaneseYenIcon:xL,ReceiptPoundSterling:wL,ReceiptPoundSterlingIcon:wL,ReceiptRussianRuble:ML,ReceiptRussianRubleIcon:ML,ReceiptSwissFranc:bL,ReceiptSwissFrancIcon:bL,ReceiptText:_L,ReceiptTextIcon:_L,ReceiptTurkishLira:CL,ReceiptTurkishLiraIcon:CL,RectangleCircle:LL,RectangleCircleIcon:LL,RectangleEllipsis:n1,RectangleEllipsisIcon:n1,RectangleGoggles:NL,RectangleGogglesIcon:NL,RectangleHorizontal:IL,RectangleHorizontalIcon:IL,RectangleVertical:AL,RectangleVerticalIcon:AL,Recycle:EL,RecycleIcon:EL,Redo:PL,Redo2:jL,Redo2Icon:jL,RedoDot:$L,RedoDotIcon:$L,RedoIcon:PL,RefreshCcw:TL,RefreshCcwDot:zL,RefreshCcwDotIcon:zL,RefreshCcwIcon:TL,RefreshCw:DL,RefreshCwIcon:DL,RefreshCwOff:RL,RefreshCwOffIcon:RL,Refrigerator:HL,RefrigeratorIcon:HL,Regex:OL,RegexIcon:OL,RemoveFormatting:FL,RemoveFormattingIcon:FL,Repeat:BL,Repeat1:VL,Repeat1Icon:VL,Repeat2:qL,Repeat2Icon:qL,RepeatIcon:BL,Replace:WL,ReplaceAll:UL,ReplaceAllIcon:UL,ReplaceIcon:WL,Reply:KL,ReplyAll:GL,ReplyAllIcon:GL,ReplyIcon:KL,Rewind:XL,RewindIcon:XL,Ribbon:YL,RibbonIcon:YL,Rocket:ZL,RocketIcon:ZL,RockingChair:QL,RockingChairIcon:QL,RollerCoaster:JL,RollerCoasterIcon:JL,Rose:eN,RoseIcon:eN,Rotate3D:o1,Rotate3DIcon:o1,Rotate3d:o1,Rotate3dIcon:o1,RotateCcw:oN,RotateCcwIcon:oN,RotateCcwKey:tN,RotateCcwKeyIcon:tN,RotateCcwSquare:nN,RotateCcwSquareIcon:nN,RotateCw:iN,RotateCwIcon:iN,RotateCwSquare:rN,RotateCwSquareIcon:rN,Route:sN,RouteIcon:sN,RouteOff:aN,RouteOffIcon:aN,Router:cN,RouterIcon:cN,Rows:r1,Rows2:r1,Rows2Icon:r1,Rows3:i1,Rows3Icon:i1,Rows4:lN,Rows4Icon:lN,RowsIcon:r1,Rss:dN,RssIcon:dN,Ruler:hN,RulerDimensionLine:uN,RulerDimensionLineIcon:uN,RulerIcon:hN,RussianRuble:fN,RussianRubleIcon:fN,Sailboat:pN,SailboatIcon:pN,Salad:yN,SaladIcon:yN,Sandwich:mN,SandwichIcon:mN,Satellite:kN,SatelliteDish:gN,SatelliteDishIcon:gN,SatelliteIcon:kN,SaudiRiyal:vN,SaudiRiyalIcon:vN,Save:MN,SaveAll:xN,SaveAllIcon:xN,SaveIcon:MN,SaveOff:wN,SaveOffIcon:wN,Scale:bN,Scale3D:a1,Scale3DIcon:a1,Scale3d:a1,Scale3dIcon:a1,ScaleIcon:bN,Scaling:_N,ScalingIcon:_N,Scan:$N,ScanBarcode:CN,ScanBarcodeIcon:CN,ScanEye:SN,ScanEyeIcon:SN,ScanFace:LN,ScanFaceIcon:LN,ScanHeart:NN,ScanHeartIcon:NN,ScanIcon:$N,ScanLine:IN,ScanLineIcon:IN,ScanQrCode:AN,ScanQrCodeIcon:AN,ScanSearch:EN,ScanSearchIcon:EN,ScanText:jN,ScanTextIcon:jN,ScatterChart:ac,ScatterChartIcon:ac,School:PN,School2:kd,School2Icon:kd,SchoolIcon:PN,Scissors:TN,ScissorsIcon:TN,ScissorsLineDashed:zN,ScissorsLineDashedIcon:zN,ScissorsSquare:td,ScissorsSquareDashedBottom:S1,ScissorsSquareDashedBottomIcon:S1,ScissorsSquareIcon:td,Scooter:RN,ScooterIcon:RN,ScreenShare:HN,ScreenShareIcon:HN,ScreenShareOff:DN,ScreenShareOffIcon:DN,Scroll:FN,ScrollIcon:FN,ScrollText:ON,ScrollTextIcon:ON,Search:A2,SearchAlert:qN,SearchAlertIcon:qN,SearchCheck:VN,SearchCheckIcon:VN,SearchCode:BN,SearchCodeIcon:BN,SearchIcon:A2,SearchSlash:UN,SearchSlashIcon:UN,SearchX:WN,SearchXIcon:WN,Section:GN,SectionIcon:GN,Send:XN,SendHorizonal:s1,SendHorizonalIcon:s1,SendHorizontal:s1,SendHorizontalIcon:s1,SendIcon:XN,SendToBack:KN,SendToBackIcon:KN,SeparatorHorizontal:YN,SeparatorHorizontalIcon:YN,SeparatorVertical:ZN,SeparatorVerticalIcon:ZN,Server:E2,ServerCog:QN,ServerCogIcon:QN,ServerCrash:JN,ServerCrashIcon:JN,ServerIcon:E2,ServerOff:eI,ServerOffIcon:eI,Settings:nI,Settings2:tI,Settings2Icon:tI,SettingsIcon:nI,Shapes:j2,ShapesIcon:j2,Share:oI,Share2:$2,Share2Icon:$2,ShareIcon:oI,Sheet:rI,SheetIcon:rI,Shell:iI,ShellIcon:iI,Shield:yI,ShieldAlert:aI,ShieldAlertIcon:aI,ShieldBan:sI,ShieldBanIcon:sI,ShieldCheck:cI,ShieldCheckIcon:cI,ShieldClose:l1,ShieldCloseIcon:l1,ShieldEllipsis:lI,ShieldEllipsisIcon:lI,ShieldHalf:dI,ShieldHalfIcon:dI,ShieldIcon:yI,ShieldMinus:uI,ShieldMinusIcon:uI,ShieldOff:hI,ShieldOffIcon:hI,ShieldPlus:fI,ShieldPlusIcon:fI,ShieldQuestion:c1,ShieldQuestionIcon:c1,ShieldQuestionMark:c1,ShieldQuestionMarkIcon:c1,ShieldUser:pI,ShieldUserIcon:pI,ShieldX:l1,ShieldXIcon:l1,Ship:kI,ShipIcon:kI,ShipWheel:mI,ShipWheelIcon:mI,Shirt:gI,ShirtIcon:gI,ShoppingBag:xI,ShoppingBagIcon:xI,ShoppingBasket:vI,ShoppingBasketIcon:vI,ShoppingCart:wI,ShoppingCartIcon:wI,Shovel:MI,ShovelIcon:MI,ShowerHead:bI,ShowerHeadIcon:bI,Shredder:_I,ShredderIcon:_I,Shrimp:CI,ShrimpIcon:CI,Shrink:SI,ShrinkIcon:SI,Shrub:LI,ShrubIcon:LI,Shuffle:NI,ShuffleIcon:NI,Sidebar:Xl,SidebarClose:Wl,SidebarCloseIcon:Wl,SidebarIcon:Xl,SidebarOpen:Kl,SidebarOpenIcon:Kl,Sigma:II,SigmaIcon:II,SigmaSquare:nd,SigmaSquareIcon:nd,Signal:PI,SignalHigh:AI,SignalHighIcon:AI,SignalIcon:PI,SignalLow:EI,SignalLowIcon:EI,SignalMedium:jI,SignalMediumIcon:jI,SignalZero:$I,SignalZeroIcon:$I,Signature:zI,SignatureIcon:zI,Signpost:TI,SignpostBig:RI,SignpostBigIcon:RI,SignpostIcon:TI,Siren:DI,SirenIcon:DI,SkipBack:HI,SkipBackIcon:HI,SkipForward:OI,SkipForwardIcon:OI,Skull:FI,SkullIcon:FI,Slack:qI,SlackIcon:qI,Slash:VI,SlashIcon:VI,SlashSquare:od,SlashSquareIcon:od,Slice:BI,SliceIcon:BI,Sliders:d1,SlidersHorizontal:UI,SlidersHorizontalIcon:UI,SlidersIcon:d1,SlidersVertical:d1,SlidersVerticalIcon:d1,Smartphone:KI,SmartphoneCharging:WI,SmartphoneChargingIcon:WI,SmartphoneIcon:KI,SmartphoneNfc:GI,SmartphoneNfcIcon:GI,Smile:ZI,SmileIcon:ZI,SmilePlus:XI,SmilePlusIcon:XI,Snail:YI,SnailIcon:YI,Snowflake:QI,SnowflakeIcon:QI,SoapDispenserDroplet:JI,SoapDispenserDropletIcon:JI,Sofa:eA,SofaIcon:eA,SolarPanel:tA,SolarPanelIcon:tA,SortAsc:Ds,SortAscIcon:Ds,SortDesc:zs,SortDescIcon:zs,Soup:nA,SoupIcon:nA,Space:oA,SpaceIcon:oA,Spade:rA,SpadeIcon:rA,Sparkle:iA,SparkleIcon:iA,Sparkles:u1,SparklesIcon:u1,Speaker:aA,SpeakerIcon:aA,Speech:sA,SpeechIcon:sA,SpellCheck:lA,SpellCheck2:cA,SpellCheck2Icon:cA,SpellCheckIcon:lA,Spline:dA,SplineIcon:dA,SplinePointer:uA,SplinePointerIcon:uA,Split:hA,SplitIcon:hA,SplitSquareHorizontal:rd,SplitSquareHorizontalIcon:rd,SplitSquareVertical:id,SplitSquareVerticalIcon:id,Spool:fA,SpoolIcon:fA,Spotlight:pA,SpotlightIcon:pA,SprayCan:yA,SprayCanIcon:yA,Sprout:mA,SproutIcon:mA,Square:x0,SquareActivity:h1,SquareActivityIcon:h1,SquareArrowDown:y1,SquareArrowDownIcon:y1,SquareArrowDownLeft:f1,SquareArrowDownLeftIcon:f1,SquareArrowDownRight:p1,SquareArrowDownRightIcon:p1,SquareArrowLeft:m1,SquareArrowLeftIcon:m1,SquareArrowOutDownLeft:g1,SquareArrowOutDownLeftIcon:g1,SquareArrowOutDownRight:k1,SquareArrowOutDownRightIcon:k1,SquareArrowOutUpLeft:v1,SquareArrowOutUpLeftIcon:v1,SquareArrowOutUpRight:x1,SquareArrowOutUpRightIcon:x1,SquareArrowRight:w1,SquareArrowRightIcon:w1,SquareArrowUp:b1,SquareArrowUpIcon:b1,SquareArrowUpLeft:M1,SquareArrowUpLeftIcon:M1,SquareArrowUpRight:C1,SquareArrowUpRightIcon:C1,SquareAsterisk:_1,SquareAsteriskIcon:_1,SquareBottomDashedScissors:S1,SquareBottomDashedScissorsIcon:S1,SquareChartGantt:Dr,SquareChartGanttIcon:Dr,SquareCheck:N1,SquareCheckBig:L1,SquareCheckBigIcon:L1,SquareCheckIcon:N1,SquareChevronDown:I1,SquareChevronDownIcon:I1,SquareChevronLeft:A1,SquareChevronLeftIcon:A1,SquareChevronRight:j1,SquareChevronRightIcon:j1,SquareChevronUp:E1,SquareChevronUpIcon:E1,SquareCode:$1,SquareCodeIcon:$1,SquareDashed:R1,SquareDashedBottom:kA,SquareDashedBottomCode:gA,SquareDashedBottomCodeIcon:gA,SquareDashedBottomIcon:kA,SquareDashedIcon:R1,SquareDashedKanban:P1,SquareDashedKanbanIcon:P1,SquareDashedMousePointer:z1,SquareDashedMousePointerIcon:z1,SquareDashedTopSolid:vA,SquareDashedTopSolidIcon:vA,SquareDivide:T1,SquareDivideIcon:T1,SquareDot:D1,SquareDotIcon:D1,SquareEqual:H1,SquareEqualIcon:H1,SquareFunction:O1,SquareFunctionIcon:O1,SquareGanttChart:Dr,SquareGanttChartIcon:Dr,SquareIcon:x0,SquareKanban:F1,SquareKanbanIcon:F1,SquareLibrary:q1,SquareLibraryIcon:q1,SquareM:V1,SquareMIcon:V1,SquareMenu:B1,SquareMenuIcon:B1,SquareMinus:U1,SquareMinusIcon:U1,SquareMousePointer:W1,SquareMousePointerIcon:W1,SquareParking:K1,SquareParkingIcon:K1,SquareParkingOff:G1,SquareParkingOffIcon:G1,SquarePause:xA,SquarePauseIcon:xA,SquarePen:so,SquarePenIcon:so,SquarePercent:X1,SquarePercentIcon:X1,SquarePi:Q1,SquarePiIcon:Q1,SquarePilcrow:Z1,SquarePilcrowIcon:Z1,SquarePlay:Y1,SquarePlayIcon:Y1,SquarePlus:J1,SquarePlusIcon:J1,SquarePower:ed,SquarePowerIcon:ed,SquareRadical:wA,SquareRadicalIcon:wA,SquareRoundCorner:MA,SquareRoundCornerIcon:MA,SquareScissors:td,SquareScissorsIcon:td,SquareSigma:nd,SquareSigmaIcon:nd,SquareSlash:od,SquareSlashIcon:od,SquareSplitHorizontal:rd,SquareSplitHorizontalIcon:rd,SquareSplitVertical:id,SquareSplitVerticalIcon:id,SquareSquare:_A,SquareSquareIcon:_A,SquareStack:bA,SquareStackIcon:bA,SquareStar:SA,SquareStarIcon:SA,SquareStop:CA,SquareStopIcon:CA,SquareTerminal:ad,SquareTerminalIcon:ad,SquareUser:cd,SquareUserIcon:cd,SquareUserRound:sd,SquareUserRoundIcon:sd,SquareX:ld,SquareXIcon:ld,SquaresExclude:LA,SquaresExcludeIcon:LA,SquaresIntersect:NA,SquaresIntersectIcon:NA,SquaresSubtract:IA,SquaresSubtractIcon:IA,SquaresUnite:AA,SquaresUniteIcon:AA,Squircle:w0,SquircleDashed:EA,SquircleDashedIcon:EA,SquircleIcon:w0,Squirrel:jA,SquirrelIcon:jA,Stamp:$A,StampIcon:$A,Star:RA,StarHalf:PA,StarHalfIcon:PA,StarIcon:RA,StarOff:zA,StarOffIcon:zA,Stars:u1,StarsIcon:u1,StepBack:TA,StepBackIcon:TA,StepForward:DA,StepForwardIcon:DA,Stethoscope:HA,StethoscopeIcon:HA,Sticker:M0,StickerIcon:M0,StickyNote:P2,StickyNoteIcon:P2,Stone:OA,StoneIcon:OA,StopCircle:$c,StopCircleIcon:$c,Store:FA,StoreIcon:FA,StretchHorizontal:VA,StretchHorizontalIcon:VA,StretchVertical:qA,StretchVerticalIcon:qA,Strikethrough:BA,StrikethroughIcon:BA,Subscript:UA,SubscriptIcon:UA,Subtitles:Gs,SubtitlesIcon:Gs,Sun:ZA,SunDim:WA,SunDimIcon:WA,SunIcon:ZA,SunMedium:GA,SunMediumIcon:GA,SunMoon:KA,SunMoonIcon:KA,SunSnow:XA,SunSnowIcon:XA,Sunrise:YA,SunriseIcon:YA,Sunset:QA,SunsetIcon:QA,Superscript:JA,SuperscriptIcon:JA,SwatchBook:eE,SwatchBookIcon:eE,SwissFranc:tE,SwissFrancIcon:tE,SwitchCamera:nE,SwitchCameraIcon:nE,Sword:oE,SwordIcon:oE,Swords:rE,SwordsIcon:rE,Syringe:iE,SyringeIcon:iE,Table:fE,Table2:aE,Table2Icon:aE,TableCellsMerge:sE,TableCellsMergeIcon:sE,TableCellsSplit:cE,TableCellsSplitIcon:cE,TableColumnsSplit:lE,TableColumnsSplitIcon:lE,TableConfig:$r,TableConfigIcon:$r,TableIcon:fE,TableOfContents:dE,TableOfContentsIcon:dE,TableProperties:uE,TablePropertiesIcon:uE,TableRowsSplit:hE,TableRowsSplitIcon:hE,Tablet:yE,TabletIcon:yE,TabletSmartphone:pE,TabletSmartphoneIcon:pE,Tablets:mE,TabletsIcon:mE,Tag:gE,TagIcon:gE,Tags:kE,TagsIcon:kE,Tally1:vE,Tally1Icon:vE,Tally2:xE,Tally2Icon:xE,Tally3:wE,Tally3Icon:wE,Tally4:ME,Tally4Icon:ME,Tally5:bE,Tally5Icon:bE,Tangent:_E,TangentIcon:_E,Target:CE,TargetIcon:CE,Telescope:SE,TelescopeIcon:SE,Tent:NE,TentIcon:NE,TentTree:LE,TentTreeIcon:LE,Terminal:IE,TerminalIcon:IE,TerminalSquare:ad,TerminalSquareIcon:ad,TestTube:AE,TestTube2:dd,TestTube2Icon:dd,TestTubeDiagonal:dd,TestTubeDiagonalIcon:dd,TestTubeIcon:AE,TestTubes:EE,TestTubesIcon:EE,Text:Zo,TextAlignCenter:Sa,TextAlignCenterIcon:Sa,TextAlignEnd:La,TextAlignEndIcon:La,TextAlignJustify:ud,TextAlignJustifyIcon:ud,TextAlignStart:Zo,TextAlignStartIcon:Zo,TextCursor:$E,TextCursorIcon:$E,TextCursorInput:jE,TextCursorInputIcon:jE,TextIcon:Zo,TextInitial:hd,TextInitialIcon:hd,TextQuote:PE,TextQuoteIcon:PE,TextSearch:zE,TextSearchIcon:zE,TextSelect:fd,TextSelectIcon:fd,TextSelection:fd,TextSelectionIcon:fd,TextWrap:pd,TextWrapIcon:pd,Theater:RE,TheaterIcon:RE,Thermometer:HE,ThermometerIcon:HE,ThermometerSnowflake:TE,ThermometerSnowflakeIcon:TE,ThermometerSun:DE,ThermometerSunIcon:DE,ThumbsDown:OE,ThumbsDownIcon:OE,ThumbsUp:FE,ThumbsUpIcon:FE,Ticket:KE,TicketCheck:qE,TicketCheckIcon:qE,TicketIcon:KE,TicketMinus:VE,TicketMinusIcon:VE,TicketPercent:BE,TicketPercentIcon:BE,TicketPlus:UE,TicketPlusIcon:UE,TicketSlash:WE,TicketSlashIcon:WE,TicketX:GE,TicketXIcon:GE,Tickets:ZE,TicketsIcon:ZE,TicketsPlane:XE,TicketsPlaneIcon:XE,Timer:JE,TimerIcon:JE,TimerOff:YE,TimerOffIcon:YE,TimerReset:QE,TimerResetIcon:QE,ToggleLeft:ej,ToggleLeftIcon:ej,ToggleRight:tj,ToggleRightIcon:tj,Toilet:nj,ToiletIcon:nj,ToolCase:rj,ToolCaseIcon:rj,Toolbox:oj,ToolboxIcon:oj,Tornado:ij,TornadoIcon:ij,Torus:aj,TorusIcon:aj,Touchpad:cj,TouchpadIcon:cj,TouchpadOff:sj,TouchpadOffIcon:sj,TowerControl:lj,TowerControlIcon:lj,ToyBrick:dj,ToyBrickIcon:dj,Tractor:uj,TractorIcon:uj,TrafficCone:hj,TrafficConeIcon:hj,Train:yd,TrainFront:pj,TrainFrontIcon:pj,TrainFrontTunnel:fj,TrainFrontTunnelIcon:fj,TrainIcon:yd,TrainTrack:yj,TrainTrackIcon:yj,TramFront:yd,TramFrontIcon:yd,Transgender:mj,TransgenderIcon:mj,Trash:gj,Trash2:z2,Trash2Icon:z2,TrashIcon:gj,TreeDeciduous:kj,TreeDeciduousIcon:kj,TreePalm:md,TreePalmIcon:md,TreePine:vj,TreePineIcon:vj,Trees:xj,TreesIcon:xj,Trello:wj,TrelloIcon:wj,TrendingDown:Mj,TrendingDownIcon:Mj,TrendingUp:_j,TrendingUpDown:bj,TrendingUpDownIcon:bj,TrendingUpIcon:_j,Triangle:R2,TriangleAlert:qr,TriangleAlertIcon:qr,TriangleDashed:Cj,TriangleDashedIcon:Cj,TriangleIcon:R2,TriangleRight:Sj,TriangleRightIcon:Sj,Trophy:Lj,TrophyIcon:Lj,Truck:Ij,TruckElectric:Nj,TruckElectricIcon:Nj,TruckIcon:Ij,TurkishLira:Aj,TurkishLiraIcon:Aj,Turntable:Ej,TurntableIcon:Ej,Turtle:jj,TurtleIcon:jj,Tv:Pj,Tv2:gd,Tv2Icon:gd,TvIcon:Pj,TvMinimal:gd,TvMinimalIcon:gd,TvMinimalPlay:$j,TvMinimalPlayIcon:$j,Twitch:zj,TwitchIcon:zj,Twitter:Rj,TwitterIcon:Rj,Type:b0,TypeIcon:b0,TypeOutline:Tj,TypeOutlineIcon:Tj,Umbrella:Hj,UmbrellaIcon:Hj,UmbrellaOff:Dj,UmbrellaOffIcon:Dj,Underline:Oj,UnderlineIcon:Oj,Undo:Vj,Undo2:Fj,Undo2Icon:Fj,UndoDot:qj,UndoDotIcon:qj,UndoIcon:Vj,UnfoldHorizontal:Bj,UnfoldHorizontalIcon:Bj,UnfoldVertical:Uj,UnfoldVerticalIcon:Uj,Ungroup:Wj,UngroupIcon:Wj,University:kd,UniversityIcon:kd,Unlink:Kj,Unlink2:Gj,Unlink2Icon:Gj,UnlinkIcon:Kj,Unlock:zl,UnlockIcon:zl,UnlockKeyhole:Pl,UnlockKeyholeIcon:Pl,Unplug:Xj,UnplugIcon:Xj,Upload:T2,UploadCloud:Hc,UploadCloudIcon:Hc,UploadIcon:T2,Usb:Zj,UsbIcon:Zj,User:D2,User2:_d,User2Icon:_d,UserCheck:Yj,UserCheck2:vd,UserCheck2Icon:vd,UserCheckIcon:Yj,UserCircle:Pc,UserCircle2:jc,UserCircle2Icon:jc,UserCircleIcon:Pc,UserCog:Qj,UserCog2:xd,UserCog2Icon:xd,UserCogIcon:Qj,UserIcon:D2,UserKey:Jj,UserKeyIcon:Jj,UserLock:e$,UserLockIcon:e$,UserMinus:t$,UserMinus2:wd,UserMinus2Icon:wd,UserMinusIcon:t$,UserPen:n$,UserPenIcon:n$,UserPlus:o$,UserPlus2:Md,UserPlus2Icon:Md,UserPlusIcon:o$,UserRound:_d,UserRoundCheck:vd,UserRoundCheckIcon:vd,UserRoundCog:xd,UserRoundCogIcon:xd,UserRoundIcon:_d,UserRoundKey:r$,UserRoundKeyIcon:r$,UserRoundMinus:wd,UserRoundMinusIcon:wd,UserRoundPen:i$,UserRoundPenIcon:i$,UserRoundPlus:Md,UserRoundPlusIcon:Md,UserRoundSearch:a$,UserRoundSearchIcon:a$,UserRoundX:bd,UserRoundXIcon:bd,UserSearch:s$,UserSearchIcon:s$,UserSquare:cd,UserSquare2:sd,UserSquare2Icon:sd,UserSquareIcon:cd,UserStar:c$,UserStarIcon:c$,UserX:l$,UserX2:bd,UserX2Icon:bd,UserXIcon:l$,Users:d$,Users2:Cd,Users2Icon:Cd,UsersIcon:d$,UsersRound:Cd,UsersRoundIcon:Cd,Utensils:Ld,UtensilsCrossed:Sd,UtensilsCrossedIcon:Sd,UtensilsIcon:Ld,UtilityPole:u$,UtilityPoleIcon:u$,Van:h$,VanIcon:h$,Variable:f$,VariableIcon:f$,Vault:p$,VaultIcon:p$,VectorSquare:y$,VectorSquareIcon:y$,Vegan:m$,VeganIcon:m$,VenetianMask:g$,VenetianMaskIcon:g$,Venus:v$,VenusAndMars:k$,VenusAndMarsIcon:k$,VenusIcon:v$,Verified:Fs,VerifiedIcon:Fs,Vibrate:w$,VibrateIcon:w$,VibrateOff:x$,VibrateOffIcon:x$,Video:b$,VideoIcon:b$,VideoOff:M$,VideoOffIcon:M$,Videotape:_$,VideotapeIcon:_$,View:C$,ViewIcon:C$,Voicemail:S$,VoicemailIcon:S$,Volleyball:L$,VolleyballIcon:L$,Volume:j$,Volume1:N$,Volume1Icon:N$,Volume2:I$,Volume2Icon:I$,VolumeIcon:j$,VolumeOff:A$,VolumeOffIcon:A$,VolumeX:E$,VolumeXIcon:E$,Vote:$$,VoteIcon:$$,Wallet:z$,Wallet2:Nd,Wallet2Icon:Nd,WalletCards:P$,WalletCardsIcon:P$,WalletIcon:z$,WalletMinimal:Nd,WalletMinimalIcon:Nd,Wallpaper:R$,WallpaperIcon:R$,Wand:T$,Wand2:Id,Wand2Icon:Id,WandIcon:T$,WandSparkles:Id,WandSparklesIcon:Id,Warehouse:D$,WarehouseIcon:D$,WashingMachine:H$,WashingMachineIcon:H$,Watch:O$,WatchIcon:O$,Waves:B$,WavesArrowDown:F$,WavesArrowDownIcon:F$,WavesArrowUp:q$,WavesArrowUpIcon:q$,WavesIcon:B$,WavesLadder:V$,WavesLadderIcon:V$,Waypoints:U$,WaypointsIcon:U$,Webcam:W$,WebcamIcon:W$,Webhook:K$,WebhookIcon:K$,WebhookOff:G$,WebhookOffIcon:G$,Weight:Z$,WeightIcon:Z$,WeightTilde:X$,WeightTildeIcon:X$,Wheat:J$,WheatIcon:J$,WheatOff:Y$,WheatOffIcon:Y$,WholeWord:Q$,WholeWordIcon:Q$,Wifi:sP,WifiCog:eP,WifiCogIcon:eP,WifiHigh:tP,WifiHighIcon:tP,WifiIcon:sP,WifiLow:nP,WifiLowIcon:nP,WifiOff:oP,WifiOffIcon:oP,WifiPen:rP,WifiPenIcon:rP,WifiSync:iP,WifiSyncIcon:iP,WifiZero:aP,WifiZeroIcon:aP,Wind:lP,WindArrowDown:cP,WindArrowDownIcon:cP,WindIcon:lP,Wine:uP,WineIcon:uP,WineOff:dP,WineOffIcon:dP,Workflow:hP,WorkflowIcon:hP,Worm:fP,WormIcon:fP,WrapText:pd,WrapTextIcon:pd,Wrench:pP,WrenchIcon:pP,X:Fd,XCircle:zc,XCircleIcon:zc,XIcon:Fd,XOctagon:Vl,XOctagonIcon:Vl,XSquare:ld,XSquareIcon:ld,Youtube:yP,YoutubeIcon:yP,Zap:gP,ZapIcon:gP,ZapOff:mP,ZapOffIcon:mP,ZoomIn:kP,ZoomInIcon:kP,ZoomOut:vP,ZoomOutIcon:vP,createLucideIcon:u,icons:MEe},Symbol.toStringTag,{value:"Module"})),_Ee=new Set(["createLucideIcon","Icon","icons","default"]),CEe=Symbol.for("react.forward_ref");function SEe(e){return typeof e=="function"?!0:e!==null&&typeof e=="object"?e.$$typeof===CEe:!1}function LEe(e){return e.replace(/[A-Z]/g,(t,n)=>n===0?t.toLowerCase():`-${t.toLowerCase()}`)}function NEe(){const e={};for(const[t,n]of Object.entries(bEe))_Ee.has(t)||SEe(n)&&(e[LEe(t)]=n);return e}const df=NEe(),IEe="help-circle",AEe=Object.keys(df).sort(),EEe=["logos:aws","logos:google-cloud","logos:microsoft-azure"],az={lucide:AEe,aws:[],gcp:[],azure:[],iconify:[...EEe]};function UH(e){for(const t of e)t.installed?az[t.vendor]=[...t.iconNames]:az[t.vendor]=[]}const jEe=["aws","gcp","azure","iconify"];function wQ(e){if(typeof e!="string")return null;const t=e.trim();if(t.length===0)return null;const n=t.indexOf(":");if(n===-1)return{vendor:"lucide",name:t};const o=t.slice(0,n),r=t.slice(n+1);return r.length===0?null:o==="lucide"?{vendor:"lucide",name:r}:jEe.includes(o)?{vendor:o,name:r}:null}function $Ee(e){return e.vendor==="lucide"?e.name:`${e.vendor}:${e.name}`}function PEe(e,t){const n=wQ(e);if(!n)return null;if(n.vendor==="lucide"){const o=df[n.name];return o?{kind:"lucide",component:o}:null}return n.vendor==="iconify"?{kind:"iconify",identifier:n.name}:{kind:"svg-url",url:`${t.studioBaseUrl}/api/icons/${n.vendor}/${n.name}.svg`}}const zEe="modulepreload",REe=function(e){return"/"+e},kU={},sh=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=REe(c),c in kU)return;kU[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":zEe,l||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};let zp=null;function TEe(){return zp||(zp=sh(()=>import("./iconify-BM9V6YC8.js"),[]).then(e=>e,()=>null),zp)}function MQ(e,t){return f.jsx(Xo,{className:e,"aria-label":t,"aria-hidden":t===void 0?!0:void 0,"data-testid":"icon-renderer-placeholder"})}function DEe({identifier:e,className:t,ariaLabel:n,color:o}){const[r,i]=m.useState(null);if(m.useEffect(()=>{let s=!0;return TEe().then(c=>{s&&i(c)}),()=>{s=!1}},[]),!r)return MQ(t,n);const a=r.Icon;return f.jsx(a,{icon:e,className:t,color:o,"aria-label":n,"aria-hidden":n===void 0?!0:void 0})}function Qa({iconId:e,studioBaseUrl:t,className:n,ariaLabel:o,color:r,strokeWidth:i,absoluteStrokeWidth:a}){const s=PEe(e,{studioBaseUrl:t});if(!s)return MQ(n,o);if(s.kind==="lucide"){const c=s.component;return f.jsx(c,{className:n,color:r,strokeWidth:i,absoluteStrokeWidth:a,"aria-label":o,"aria-hidden":o===void 0?!0:void 0})}return s.kind==="svg-url"?f.jsx("img",{src:s.url,loading:"lazy",draggable:!1,className:n,alt:o??"","aria-hidden":o===void 0?!0:void 0}):f.jsx(DEe,{identifier:s.identifier,className:n,ariaLabel:o,color:r})}const HEe={studioBaseUrl:""},Tf=m.createContext(HEe);function OEe({value:e,children:t}){return f.jsx(Tf.Provider,{value:e,children:t})}function tq(){return m.useContext(Tf)}const FEe=[".png",".jpg",".jpeg",".gif",".webp",".svg"],qEe=400,WH={width:200,height:200},VEe=e=>{const t=e.lastIndexOf(".");return t>=0?e.slice(t).toLowerCase():""},BEe=e=>{if(e.type.startsWith("image/")){const t=e.type.slice(6).toLowerCase();if(t==="png"||t==="jpeg"||t==="jpg"||t==="gif"||t==="webp"||t==="svg+xml")return!0}return FEe.includes(VEe(e.name))},UEe=e=>{if(!e)return[];const t=e.files;if(!t||t.length===0)return[];const n=[];for(let o=0;o<t.length;o++){const r=t.item(o);r&&BEe(r)&&n.push(r)}return n},WEe=(e,t=qEe)=>{if(e.width<=0||e.height<=0)return{...WH};const n=Math.max(e.width,e.height);if(n<=t)return{width:Math.round(e.width),height:Math.round(e.height)};const o=t/n;return{width:Math.round(e.width*o),height:Math.round(e.height*o)}},GEe=24,KEe=4,XEe=(e,t,n=GEe,o=KEe)=>{if(e.length===0)return[];const r=Math.min(e.length,Math.max(1,o)),i=Math.ceil(e.length/r),a=new Array(r).fill(0),s=new Array(i).fill(0);e.forEach((g,k)=>{const x=k%r,v=Math.floor(k/r);a[x]=Math.max(a[x],g.width),s[v]=Math.max(s[v],g.height)});const c=new Array(r).fill(0);for(let g=1;g<r;g++)c[g]=c[g-1]+a[g-1]+n;const l=new Array(i).fill(0);for(let g=1;g<i;g++)l[g]=l[g-1]+s[g-1]+n;const h=a.reduce((g,k)=>g+k,0)+n*(r-1),d=s.reduce((g,k)=>g+k,0)+n*(i-1),p=t.x-h/2,y=t.y-d/2;return e.map((g,k)=>{const x=k%r,v=Math.floor(k/r);return{x:p+c[x],y:y+l[v]}})},ZEe=async e=>{const t=UEe(e.dataTransfer);if(t.length===0||!e.rfInstance)return!1;const n=e.rfInstance.screenToFlowPosition(e.clientPos),o=await Promise.all(t.map(i=>e.computeDims(i))),r=XEe(o,n);return t.forEach((i,a)=>{e.dispatch({file:i,position:r[a],dims:o[a],originalFilename:i.name})}),!0},YEe=e=>new Promise(t=>{let n=null;const o=i=>{n&&URL.revokeObjectURL(n),t(i)};try{n=URL.createObjectURL(e)}catch{t({...WH});return}const r=new Image;r.onload=()=>{o(WEe({width:r.naturalWidth,height:r.naturalHeight}))},r.onerror=()=>{o({...WH})},r.src=n}),QEe=2048,JEe=e=>{const t=e.type.toLowerCase();return t==="image/png"||t==="image/jpeg"||t==="image/webp"},eje=async(e,t=QEe)=>{if(!JEe(e))return e;try{const n=await createImageBitmap(e),o=Math.max(n.width,n.height);if(o<=t)return n.close(),e;const r=t/o,i=Math.round(n.width*r),a=Math.round(n.height*r),s=document.createElement("canvas");s.width=i,s.height=a;const c=s.getContext("2d");if(!c)return n.close(),e;c.drawImage(n,0,0,i,a),n.close();const l=await new Promise(h=>{s.toBlob(d=>h(d),e.type)});return l?new File([l],e.name,{type:e.type,lastModified:e.lastModified}):e}catch{return e}};function bQ(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=bQ(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=bQ(e))&&(o&&(o+=" "),o+=t);return o}const nq="-",tje=e=>{const t=oje(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const s=a.split(nq);return s[0]===""&&s.length!==1&&s.shift(),CQ(s,t)||nje(a)},getConflictingClassGroupIds:(a,s)=>{const c=n[a]||[];return s&&o[a]?[...c,...o[a]]:c}}},CQ=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?CQ(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(nq);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},vU=/^\[(.+)\]$/,nje=e=>{if(vU.test(e)){const t=vU.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oje=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return ije(Object.entries(e.classGroups),n).forEach(([i,a])=>{GH(a,o,i,t)}),o},GH=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:xU(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(rje(r)){GH(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,a])=>{GH(a,xU(t,i),n,o)})})},xU=(e,t)=>{let n=e;return t.split(nq).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},rje=e=>e.isThemeGetter,ije=(e,t)=>t?e.map(([n,o])=>{const r=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,r]}):e,aje=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,o=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return r(i,a),a},set(i,a){n.has(i)?n.set(i,a):r(i,a)}}},SQ="!",sje=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],i=t.length,a=s=>{const c=[];let l=0,h=0,d;for(let x=0;x<s.length;x++){let v=s[x];if(l===0){if(v===r&&(o||s.slice(x,x+i)===t)){c.push(s.slice(h,x)),h=x+i;continue}if(v==="/"){d=x;continue}}v==="["?l++:v==="]"&&l--}const p=c.length===0?s:s.substring(h),y=p.startsWith(SQ),g=y?p.substring(1):p,k=d&&d>h?d-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:k}};return n?s=>n({className:s,parseClassName:a}):a},cje=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},lje=e=>({cache:aje(e.cacheSize),parseClassName:sje(e),...tje(e)}),dje=/\s+/,uje=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=[],a=e.trim().split(dje);let s="";for(let c=a.length-1;c>=0;c-=1){const l=a[c],{modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:y}=n(l);let g=!!y,k=o(g?p.substring(0,y):p);if(!k){if(!g){s=l+(s.length>0?" "+s:s);continue}if(k=o(p),!k){s=l+(s.length>0?" "+s:s);continue}g=!1}const x=cje(h).join(":"),v=d?x+SQ:x,M=v+k;if(i.includes(M))continue;i.push(M);const w=r(k,g);for(let b=0;b<w.length;++b){const C=w[b];i.push(v+C)}s=l+(s.length>0?" "+s:s)}return s};function hje(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=LQ(t))&&(o&&(o+=" "),o+=n);return o}const LQ=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=LQ(e[o]))&&(n&&(n+=" "),n+=t);return n};function fje(e,...t){let n,o,r,i=a;function a(c){const l=t.reduce((h,d)=>d(h),e());return n=lje(l),o=n.cache.get,r=n.cache.set,i=s,s(c)}function s(c){const l=o(c);if(l)return l;const h=uje(c,n);return r(c,h),h}return function(){return i(hje.apply(null,arguments))}}const Nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},NQ=/^\[(?:([a-z-]+):)?(.+)\]$/i,pje=/^\d+\/\d+$/,yje=new Set(["px","full","screen"]),mje=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gje=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kje=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vje=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xje=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=e=>_0(e)||yje.has(e)||pje.test(e),ha=e=>ch(e,"length",Nje),_0=e=>!!e&&!Number.isNaN(Number(e)),KT=e=>ch(e,"number",_0),Dh=e=>!!e&&Number.isInteger(Number(e)),wje=e=>e.endsWith("%")&&_0(e.slice(0,-1)),Ge=e=>NQ.test(e),fa=e=>mje.test(e),Mje=new Set(["length","size","percentage"]),bje=e=>ch(e,Mje,IQ),_je=e=>ch(e,"position",IQ),Cje=new Set(["image","url"]),Sje=e=>ch(e,Cje,Aje),Lje=e=>ch(e,"",Ije),Hh=()=>!0,ch=(e,t,n)=>{const o=NQ.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Nje=e=>gje.test(e)&&!kje.test(e),IQ=()=>!1,Ije=e=>vje.test(e),Aje=e=>xje.test(e),Eje=()=>{const e=Nt("colors"),t=Nt("spacing"),n=Nt("blur"),o=Nt("brightness"),r=Nt("borderColor"),i=Nt("borderRadius"),a=Nt("borderSpacing"),s=Nt("borderWidth"),c=Nt("contrast"),l=Nt("grayscale"),h=Nt("hueRotate"),d=Nt("invert"),p=Nt("gap"),y=Nt("gradientColorStops"),g=Nt("gradientColorStopPositions"),k=Nt("inset"),x=Nt("margin"),v=Nt("opacity"),M=Nt("padding"),w=Nt("saturate"),b=Nt("scale"),C=Nt("sepia"),_=Nt("skew"),S=Nt("space"),L=Nt("translate"),j=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Ge,t],E=()=>[Ge,t],V=()=>["",Si,ha],$=()=>["auto",_0,Ge],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",Ge],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[_0,Ge];return{cacheSize:500,separator:":",theme:{colors:[Hh],spacing:[Si,ha],blur:["none","",fa,Ge],brightness:W(),borderColor:[e],borderRadius:["none","","full",fa,Ge],borderSpacing:E(),borderWidth:V(),contrast:W(),grayscale:A(),hueRotate:W(),invert:A(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[wje,ha],inset:R(),margin:R(),opacity:W(),padding:E(),saturate:W(),scale:W(),sepia:A(),skew:W(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Ge]}],container:["container"],columns:[{columns:[fa]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Ge]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dh,Ge]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ge]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Dh,Ge]}],"grid-cols":[{"grid-cols":[Hh]}],"col-start-end":[{col:["auto",{span:["full",Dh,Ge]},Ge]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Hh]}],"row-start-end":[{row:["auto",{span:[Dh,Ge]},Ge]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ge,t]}],"min-w":[{"min-w":[Ge,t,"min","max","fit"]}],"max-w":[{"max-w":[Ge,t,"none","full","min","max","fit","prose",{screen:[fa]},fa]}],h:[{h:[Ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fa,ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",KT]}],"font-family":[{font:[Hh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ge]}],"line-clamp":[{"line-clamp":["none",_0,KT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Si,Ge]}],"list-image":[{"list-image":["none",Ge]}],"list-style-type":[{list:["none","disc","decimal",Ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Si,ha]}],"underline-offset":[{"underline-offset":["auto",Si,Ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),_je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bje]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sje]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Si,Ge]}],"outline-w":[{outline:[Si,ha]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Si,ha]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fa,Lje]}],"shadow-color":[{shadow:[Hh]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fa,Ge]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ge]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Ge]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Dh,Ge]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Si,ha,KT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jje=fje(Eje);function ee(...e){return jje(_Q(e))}function Yt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Yt(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var $je={value:()=>{}};function hR(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new xP(n)}function xP(e){this._=e}function Pje(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",r=n.indexOf(".");if(r>=0&&(o=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}xP.prototype=hR.prototype={constructor:xP,on:function(e,t){var n=this._,o=Pje(e+"",n),r,i=-1,a=o.length;if(arguments.length<2){for(;++i<a;)if((r=(e=o[i]).type)&&(r=zje(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<a;)if(r=(e=o[i]).type)n[r]=wU(n[r],e.name,t);else if(t==null)for(r in n)n[r]=wU(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xP(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),o=0,r,i;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)}};function zje(e,t){for(var n=0,o=e.length,r;n<o;++n)if((r=e[n]).name===t)return r.value}function wU(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=$je,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var KH="http://www.w3.org/1999/xhtml";const MU={svg:"http://www.w3.org/2000/svg",xhtml:KH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fR(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),MU.hasOwnProperty(t)?{space:MU[t],local:e}:e}function Rje(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KH&&t.documentElement.namespaceURI===KH?t.createElement(e):t.createElementNS(n,e)}}function Tje(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AQ(e){var t=fR(e);return(t.local?Tje:Rje)(t)}function Dje(){}function oq(e){return e==null?Dje:function(){return this.querySelector(e)}}function Hje(e){typeof e!="function"&&(e=oq(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=new Array(a),c,l,h=0;h<a;++h)(c=i[h])&&(l=e.call(c,c.__data__,h,i))&&("__data__"in c&&(l.__data__=c.__data__),s[h]=l);return new wo(o,this._parents)}function Oje(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fje(){return[]}function EQ(e){return e==null?Fje:function(){return this.querySelectorAll(e)}}function qje(e){return function(){return Oje(e.apply(this,arguments))}}function Vje(e){typeof e=="function"?e=qje(e):e=EQ(e);for(var t=this._groups,n=t.length,o=[],r=[],i=0;i<n;++i)for(var a=t[i],s=a.length,c,l=0;l<s;++l)(c=a[l])&&(o.push(e.call(c,c.__data__,l,a)),r.push(c));return new wo(o,r)}function jQ(e){return function(){return this.matches(e)}}function $Q(e){return function(t){return t.matches(e)}}var Bje=Array.prototype.find;function Uje(e){return function(){return Bje.call(this.children,e)}}function Wje(){return this.firstElementChild}function Gje(e){return this.select(e==null?Wje:Uje(typeof e=="function"?e:$Q(e)))}var Kje=Array.prototype.filter;function Xje(){return Array.from(this.children)}function Zje(e){return function(){return Kje.call(this.children,e)}}function Yje(e){return this.selectAll(e==null?Xje:Zje(typeof e=="function"?e:$Q(e)))}function Qje(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=[],c,l=0;l<a;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&s.push(c);return new wo(o,this._parents)}function PQ(e){return new Array(e.length)}function Jje(){return new wo(this._enter||this._groups.map(PQ),this._parents)}function sz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}sz.prototype={constructor:sz,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function e$e(e){return function(){return e}}function t$e(e,t,n,o,r,i){for(var a=0,s,c=t.length,l=i.length;a<l;++a)(s=t[a])?(s.__data__=i[a],o[a]=s):n[a]=new sz(e,i[a]);for(;a<c;++a)(s=t[a])&&(r[a]=s)}function n$e(e,t,n,o,r,i,a){var s,c,l=new Map,h=t.length,d=i.length,p=new Array(h),y;for(s=0;s<h;++s)(c=t[s])&&(p[s]=y=a.call(c,c.__data__,s,t)+"",l.has(y)?r[s]=c:l.set(y,c));for(s=0;s<d;++s)y=a.call(e,i[s],s,i)+"",(c=l.get(y))?(o[s]=c,c.__data__=i[s],l.delete(y)):n[s]=new sz(e,i[s]);for(s=0;s<h;++s)(c=t[s])&&l.get(p[s])===c&&(r[s]=c)}function o$e(e){return e.__data__}function r$e(e,t){if(!arguments.length)return Array.from(this,o$e);var n=t?n$e:t$e,o=this._parents,r=this._groups;typeof e!="function"&&(e=e$e(e));for(var i=r.length,a=new Array(i),s=new Array(i),c=new Array(i),l=0;l<i;++l){var h=o[l],d=r[l],p=d.length,y=i$e(e.call(h,h&&h.__data__,l,o)),g=y.length,k=s[l]=new Array(g),x=a[l]=new Array(g),v=c[l]=new Array(p);n(h,d,k,x,v,y,t);for(var M=0,w=0,b,C;M<g;++M)if(b=k[M]){for(M>=w&&(w=M+1);!(C=x[w])&&++w<g;);b._next=C||null}}return a=new wo(a,o),a._enter=s,a._exit=c,a}function i$e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function a$e(){return new wo(this._exit||this._groups.map(PQ),this._parents)}function s$e(e,t,n){var o=this.enter(),r=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?i.remove():n(i),o&&r?o.merge(r).order():r}function c$e(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,r=n.length,i=o.length,a=Math.min(r,i),s=new Array(r),c=0;c<a;++c)for(var l=n[c],h=o[c],d=l.length,p=s[c]=new Array(d),y,g=0;g<d;++g)(y=l[g]||h[g])&&(p[g]=y);for(;c<r;++c)s[c]=n[c];return new wo(s,this._parents)}function l$e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],r=o.length-1,i=o[r],a;--r>=0;)(a=o[r])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function d$e(e){e||(e=u$e);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var n=this._groups,o=n.length,r=new Array(o),i=0;i<o;++i){for(var a=n[i],s=a.length,c=r[i]=new Array(s),l,h=0;h<s;++h)(l=a[h])&&(c[h]=l);c.sort(t)}return new wo(r,this._parents).order()}function u$e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h$e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f$e(){return Array.from(this)}function p$e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,i=o.length;r<i;++r){var a=o[r];if(a)return a}return null}function y$e(){let e=0;for(const t of this)++e;return e}function m$e(){return!this.node()}function g$e(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var r=t[n],i=0,a=r.length,s;i<a;++i)(s=r[i])&&e.call(s,s.__data__,i,r);return this}function k$e(e){return function(){this.removeAttribute(e)}}function v$e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x$e(e,t){return function(){this.setAttribute(e,t)}}function w$e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function b$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _$e(e,t){var n=fR(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?v$e:k$e:typeof t=="function"?n.local?b$e:M$e:n.local?w$e:x$e)(n,t))}function zQ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function C$e(e){return function(){this.style.removeProperty(e)}}function S$e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L$e(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function N$e(e,t,n){return arguments.length>1?this.each((t==null?C$e:typeof t=="function"?L$e:S$e)(e,t,n??"")):D0(this.node(),e)}function D0(e,t){return e.style.getPropertyValue(t)||zQ(e).getComputedStyle(e,null).getPropertyValue(t)}function I$e(e){return function(){delete this[e]}}function A$e(e,t){return function(){this[e]=t}}function E$e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function j$e(e,t){return arguments.length>1?this.each((t==null?I$e:typeof t=="function"?E$e:A$e)(e,t)):this.node()[e]}function RQ(e){return e.trim().split(/^|\s+/)}function rq(e){return e.classList||new TQ(e)}function TQ(e){this._node=e,this._names=RQ(e.getAttribute("class")||"")}TQ.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function DQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.add(t[o])}function HQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.remove(t[o])}function $$e(e){return function(){DQ(this,e)}}function P$e(e){return function(){HQ(this,e)}}function z$e(e,t){return function(){(t.apply(this,arguments)?DQ:HQ)(this,e)}}function R$e(e,t){var n=RQ(e+"");if(arguments.length<2){for(var o=rq(this.node()),r=-1,i=n.length;++r<i;)if(!o.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?z$e:t?$$e:P$e)(n,t))}function T$e(){this.textContent=""}function D$e(e){return function(){this.textContent=e}}function H$e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O$e(e){return arguments.length?this.each(e==null?T$e:(typeof e=="function"?H$e:D$e)(e)):this.node().textContent}function F$e(){this.innerHTML=""}function q$e(e){return function(){this.innerHTML=e}}function V$e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function B$e(e){return arguments.length?this.each(e==null?F$e:(typeof e=="function"?V$e:q$e)(e)):this.node().innerHTML}function U$e(){this.nextSibling&&this.parentNode.appendChild(this)}function W$e(){return this.each(U$e)}function G$e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K$e(){return this.each(G$e)}function X$e(e){var t=typeof e=="function"?e:AQ(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Z$e(){return null}function Y$e(e,t){var n=typeof e=="function"?e:AQ(e),o=t==null?Z$e:typeof t=="function"?t:oq(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Q$e(){var e=this.parentNode;e&&e.removeChild(this)}function J$e(){return this.each(Q$e)}function ePe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tPe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nPe(e){return this.select(e?tPe:ePe)}function oPe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rPe(e){return function(t){e.call(this,t,this.__data__)}}function iPe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function aPe(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,r=t.length,i;n<r;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++o]=i;++o?t.length=o:delete this.__on}}}function sPe(e,t,n){return function(){var o=this.__on,r,i=rPe(t);if(o){for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=t;return}}this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function cPe(e,t,n){var o=iPe(e+""),r,i=o.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,h;c<l;++c)for(r=0,h=s[c];r<i;++r)if((a=o[r]).type===h.type&&a.name===h.name)return h.value}return}for(s=t?sPe:aPe,r=0;r<i;++r)this.each(s(o[r],t,n));return this}function OQ(e,t,n){var o=zQ(e),r=o.CustomEvent;typeof r=="function"?r=new r(t,n):(r=o.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function lPe(e,t){return function(){return OQ(this,e,t)}}function dPe(e,t){return function(){return OQ(this,e,t.apply(this,arguments))}}function uPe(e,t){return this.each((typeof t=="function"?dPe:lPe)(e,t))}function*hPe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,i=o.length,a;r<i;++r)(a=o[r])&&(yield a)}var FQ=[null];function wo(e,t){this._groups=e,this._parents=t}function Df(){return new wo([[document.documentElement]],FQ)}function fPe(){return this}wo.prototype=Df.prototype={constructor:wo,select:Hje,selectAll:Vje,selectChild:Gje,selectChildren:Yje,filter:Qje,data:r$e,enter:Jje,exit:a$e,join:s$e,merge:c$e,selection:fPe,order:l$e,sort:d$e,call:h$e,nodes:f$e,node:p$e,size:y$e,empty:m$e,each:g$e,attr:_$e,style:N$e,property:j$e,classed:R$e,text:O$e,html:B$e,raise:W$e,lower:K$e,append:X$e,insert:Y$e,remove:J$e,clone:nPe,datum:oPe,on:cPe,dispatch:uPe,[Symbol.iterator]:hPe};function fo(e){return typeof e=="string"?new wo([[document.querySelector(e)]],[document.documentElement]):new wo([[e]],FQ)}function pPe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function er(e,t){if(e=pPe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}const yPe={passive:!1},uf={capture:!0,passive:!1};function XT(e){e.stopImmediatePropagation()}function C0(e){e.preventDefault(),e.stopImmediatePropagation()}function qQ(e){var t=e.document.documentElement,n=fo(e).on("dragstart.drag",C0,uf);"onselectstart"in t?n.on("selectstart.drag",C0,uf):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function VQ(e,t){var n=e.document.documentElement,o=fo(e).on("dragstart.drag",null);t&&(o.on("click.drag",C0,uf),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function XH(e,{sourceEvent:t,subject:n,target:o,identifier:r,active:i,x:a,y:s,dx:c,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}XH.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mPe(e){return!e.ctrlKey&&!e.button}function gPe(){return this.parentNode}function kPe(e,t){return t??{x:e.x,y:e.y}}function vPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function BQ(){var e=mPe,t=gPe,n=kPe,o=vPe,r={},i=hR("start","drag","end"),a=0,s,c,l,h,d=0;function p(b){b.on("mousedown.drag",y).filter(o).on("touchstart.drag",x).on("touchmove.drag",v,yPe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(b,C){if(!(h||!e.call(this,b,C))){var _=w(this,t.call(this,b,C),b,C,"mouse");_&&(fo(b.view).on("mousemove.drag",g,uf).on("mouseup.drag",k,uf),qQ(b.view),XT(b),l=!1,s=b.clientX,c=b.clientY,_("start",b))}}function g(b){if(C0(b),!l){var C=b.clientX-s,_=b.clientY-c;l=C*C+_*_>d}r.mouse("drag",b)}function k(b){fo(b.view).on("mousemove.drag mouseup.drag",null),VQ(b.view,l),C0(b),r.mouse("end",b)}function x(b,C){if(e.call(this,b,C)){var _=b.changedTouches,S=t.call(this,b,C),L=_.length,j,I;for(j=0;j<L;++j)(I=w(this,S,b,C,_[j].identifier,_[j]))&&(XT(b),I("start",b,_[j]))}}function v(b){var C=b.changedTouches,_=C.length,S,L;for(S=0;S<_;++S)(L=r[C[S].identifier])&&(C0(b),L("drag",b,C[S]))}function M(b){var C=b.changedTouches,_=C.length,S,L;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),S=0;S<_;++S)(L=r[C[S].identifier])&&(XT(b),L("end",b,C[S]))}function w(b,C,_,S,L,j){var I=i.copy(),R=er(j||_,C),E,V,$;if(($=n.call(b,new XH("beforestart",{sourceEvent:_,target:p,identifier:L,active:a,x:R[0],y:R[1],dx:0,dy:0,dispatch:I}),S))!=null)return E=$.x-R[0]||0,V=$.y-R[1]||0,function T(D,F,z){var A=R,N;switch(D){case"start":r[L]=T,N=a++;break;case"end":delete r[L],--a;case"drag":R=er(z||F,C),N=a;break}I.call(D,b,new XH(D,{sourceEvent:F,subject:$,target:p,identifier:L,active:N,x:R[0]+E,y:R[1]+V,dx:R[0]-A[0],dy:R[1]-A[1],dispatch:I}),S)}}return p.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Rp(!!b),p):e},p.container=function(b){return arguments.length?(t=typeof b=="function"?b:Rp(b),p):t},p.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Rp(b),p):n},p.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:Rp(!!b),p):o},p.on=function(){var b=i.on.apply(i,arguments);return b===i?p:b},p.clickDistance=function(b){return arguments.length?(d=(b=+b)*b,p):Math.sqrt(d)},p}function iq(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UQ(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function Hf(){}var hf=.7,cz=1/hf,S0="\\s*([+-]?\\d+)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xPe=/^#([0-9a-f]{3,8})$/,wPe=new RegExp(`^rgb\\(${S0},${S0},${S0}\\)$`),MPe=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),bPe=new RegExp(`^rgba\\(${S0},${S0},${S0},${ff}\\)$`),_Pe=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${ff}\\)$`),CPe=new RegExp(`^hsl\\(${ff},${Qr},${Qr}\\)$`),SPe=new RegExp(`^hsla\\(${ff},${Qr},${Qr},${ff}\\)$`),bU={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iq(Hf,Xd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_U,formatHex:_U,formatHex8:LPe,formatHsl:NPe,formatRgb:CU,toString:CU});function _U(){return this.rgb().formatHex()}function LPe(){return this.rgb().formatHex8()}function NPe(){return WQ(this).formatHsl()}function CU(){return this.rgb().formatRgb()}function Xd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xPe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SU(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Tp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wPe.exec(e))?new Kn(t[1],t[2],t[3],1):(t=MPe.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bPe.exec(e))?Tp(t[1],t[2],t[3],t[4]):(t=_Pe.exec(e))?Tp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,1):(t=SPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,t[4]):bU.hasOwnProperty(e)?SU(bU[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function SU(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Tp(e,t,n,o){return o<=0&&(e=t=n=NaN),new Kn(e,t,n,o)}function IPe(e){return e instanceof Hf||(e=Xd(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function ZH(e,t,n,o){return arguments.length===1?IPe(e):new Kn(e,t,n,o??1)}function Kn(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}iq(Kn,ZH,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(qd(this.r),qd(this.g),qd(this.b),lz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LU,formatHex:LU,formatHex8:APe,formatRgb:NU,toString:NU}));function LU(){return`#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}`}function APe(){return`#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}${Rd((isNaN(this.opacity)?1:this.opacity)*255)}`}function NU(){const e=lz(this.opacity);return`${e===1?"rgb(":"rgba("}${qd(this.r)}, ${qd(this.g)}, ${qd(this.b)}${e===1?")":`, ${e})`}`}function lz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rd(e){return e=qd(e),(e<16?"0":"")+e.toString(16)}function IU(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,n,o)}function WQ(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Hf||(e=Xd(e)),!e)return new or;if(e instanceof or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),i=Math.max(t,n,o),a=NaN,s=i-r,c=(i+r)/2;return s?(t===i?a=(n-o)/s+(n<o)*6:n===i?a=(o-t)/s+2:a=(t-n)/s+4,s/=c<.5?i+r:2-i-r,a*=60):s=c>0&&c<1?0:a,new or(a,s,c,e.opacity)}function EPe(e,t,n,o){return arguments.length===1?WQ(e):new or(e,t,n,o??1)}function or(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}iq(or,EPe,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new or(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Kn(ZT(e>=240?e-240:e+120,r,o),ZT(e,r,o),ZT(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new or(AU(this.h),Dp(this.s),Dp(this.l),lz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lz(this.opacity);return`${e===1?"hsl(":"hsla("}${AU(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AU(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function ZT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const pR=e=>()=>e;function GQ(e,t){return function(n){return e+n*t}}function jPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function Ost(e,t){var n=t-e;return n?GQ(e,n>180||n<-180?n-360*Math.round(n/360):n):pR(isNaN(e)?t:e)}function $Pe(e){return(e=+e)==1?KQ:function(t,n){return n-t?jPe(t,n,e):pR(isNaN(t)?n:t)}}function KQ(e,t){var n=t-e;return n?GQ(e,n):pR(isNaN(e)?t:e)}const dz=function e(t){var n=$Pe(t);function o(r,i){var a=n((r=ZH(r)).r,(i=ZH(i)).r),s=n(r.g,i.g),c=n(r.b,i.b),l=KQ(r.opacity,i.opacity);return function(h){return r.r=a(h),r.g=s(h),r.b=c(h),r.opacity=l(h),r+""}}return o.gamma=e,o}(1);function PPe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),r;return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function zPe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RPe(e,t){var n=t?t.length:0,o=e?Math.min(n,e.length):0,r=new Array(o),i=new Array(n),a;for(a=0;a<o;++a)r[a]=H2(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<o;++a)i[a]=r[a](s);return i}}function TPe(e,t){var n=new Date;return e=+e,t=+t,function(o){return n.setTime(e*(1-o)+t*o),n}}function Vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DPe(e,t){var n={},o={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?n[r]=H2(e[r],t[r]):o[r]=t[r];return function(i){for(r in n)o[r]=n[r](i);return o}}var YH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YT=new RegExp(YH.source,"g");function HPe(e){return function(){return e}}function OPe(e){return function(t){return e(t)+""}}function XQ(e,t){var n=YH.lastIndex=YT.lastIndex=0,o,r,i,a=-1,s=[],c=[];for(e=e+"",t=t+"";(o=YH.exec(e))&&(r=YT.exec(t));)(i=r.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(o=o[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Vr(o,r)})),n=YT.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?OPe(c[0].x):HPe(t):(t=c.length,function(l){for(var h=0,d;h<t;++h)s[(d=c[h]).i]=d.x(l);return s.join("")})}function H2(e,t){var n=typeof t,o;return t==null||n==="boolean"?pR(t):(n==="number"?Vr:n==="string"?(o=Xd(t))?(t=o,dz):XQ:t instanceof Xd?dz:t instanceof Date?TPe:zPe(t)?PPe:Array.isArray(t)?RPe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DPe:Vr)(e,t)}var EU=180/Math.PI,QH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ZQ(e,t,n,o,r,i){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*o)&&(n-=e*c,o-=t*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:r,translateY:i,rotate:Math.atan2(t,e)*EU,skewX:Math.atan(c)*EU,scaleX:a,scaleY:s}}var Hp;function FPe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?QH:ZQ(t.a,t.b,t.c,t.d,t.e,t.f)}function qPe(e){return e==null||(Hp||(Hp=document.createElementNS("http://www.w3.org/2000/svg","g")),Hp.setAttribute("transform",e),!(e=Hp.transform.baseVal.consolidate()))?QH:(e=e.matrix,ZQ(e.a,e.b,e.c,e.d,e.e,e.f))}function YQ(e,t,n,o){function r(l){return l.length?l.pop()+" ":""}function i(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push("translate(",null,t,null,n);g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d||p)&&y.push("translate("+d+t+p+n)}function a(l,h,d,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:d.push(r(d)+"rotate(",null,o)-2,x:Vr(l,h)})):h&&d.push(r(d)+"rotate("+h+o)}function s(l,h,d,p){l!==h?p.push({i:d.push(r(d)+"skewX(",null,o)-2,x:Vr(l,h)}):h&&d.push(r(d)+"skewX("+h+o)}function c(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push(r(y)+"scale(",null,",",null,")");g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d!==1||p!==1)&&y.push(r(y)+"scale("+d+","+p+")")}return function(l,h){var d=[],p=[];return l=e(l),h=e(h),i(l.translateX,l.translateY,h.translateX,h.translateY,d,p),a(l.rotate,h.rotate,d,p),s(l.skewX,h.skewX,d,p),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,p),l=h=null,function(y){for(var g=-1,k=p.length,x;++g<k;)d[(x=p[g]).i]=x.x(y);return d.join("")}}}var VPe=YQ(FPe,"px, ","px)","deg)"),BPe=YQ(qPe,", ",")",")"),UPe=1e-12;function jU(e){return((e=Math.exp(e))+1/e)/2}function WPe(e){return((e=Math.exp(e))-1/e)/2}function GPe(e){return((e=Math.exp(2*e))-1)/(e+1)}const wP=function e(t,n,o){function r(i,a){var s=i[0],c=i[1],l=i[2],h=a[0],d=a[1],p=a[2],y=h-s,g=d-c,k=y*y+g*g,x,v;if(k<UPe)v=Math.log(p/l)/t,x=function(S){return[s+S*y,c+S*g,l*Math.exp(t*S*v)]};else{var M=Math.sqrt(k),w=(p*p-l*l+o*k)/(2*l*n*M),b=(p*p-l*l-o*k)/(2*p*n*M),C=Math.log(Math.sqrt(w*w+1)-w),_=Math.log(Math.sqrt(b*b+1)-b);v=(_-C)/t,x=function(S){var L=S*v,j=jU(C),I=l/(n*M)*(j*GPe(t*L+C)-WPe(C));return[s+I*y,c+I*g,l*j/jU(t*L+C)]}}return x.duration=v*1e3*t/Math.SQRT2,x}return r.rho=function(i){var a=Math.max(.001,+i),s=a*a,c=s*s;return e(a,s,c)},r}(Math.SQRT2,2,4);var H0=0,Yh=0,Oh=0,QQ=1e3,uz,Qh,hz=0,Zd=0,yR=0,pf=typeof performance=="object"&&performance.now?performance:Date,JQ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function aq(){return Zd||(JQ(KPe),Zd=pf.now()+yR)}function KPe(){Zd=0}function fz(){this._call=this._time=this._next=null}fz.prototype=eJ.prototype={constructor:fz,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?aq():+n)+(t==null?0:+t),!this._next&&Qh!==this&&(Qh?Qh._next=this:uz=this,Qh=this),this._call=e,this._time=n,JH()},stop:function(){this._call&&(this._call=null,this._time=1/0,JH())}};function eJ(e,t,n){var o=new fz;return o.restart(e,t,n),o}function XPe(){aq(),++H0;for(var e=uz,t;e;)(t=Zd-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H0}function $U(){Zd=(hz=pf.now())+yR,H0=Yh=0;try{XPe()}finally{H0=0,YPe(),Zd=0}}function ZPe(){var e=pf.now(),t=e-hz;t>QQ&&(yR-=t,hz=e)}function YPe(){for(var e,t=uz,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:uz=n);Qh=e,JH(o)}function JH(e){if(!H0){Yh&&(Yh=clearTimeout(Yh));var t=e-Zd;t>24?(e<1/0&&(Yh=setTimeout($U,e-pf.now()-yR)),Oh&&(Oh=clearInterval(Oh))):(Oh||(hz=pf.now(),Oh=setInterval(ZPe,QQ)),H0=1,JQ($U))}}function PU(e,t,n){var o=new fz;return t=t==null?0:+t,o.restart(r=>{o.stop(),e(r+t)},t,n),o}var QPe=hR("start","end","cancel","interrupt"),JPe=[],tJ=0,zU=1,eO=2,MP=3,RU=4,tO=5,bP=6;function mR(e,t,n,o,r,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;eze(e,n,{name:t,index:o,group:r,on:QPe,tween:JPe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:tJ})}function sq(e,t){var n=pr(e,t);if(n.state>tJ)throw new Error("too late; already scheduled");return n}function ii(e,t){var n=pr(e,t);if(n.state>MP)throw new Error("too late; already running");return n}function pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eze(e,t,n){var o=e.__transition,r;o[t]=n,n.timer=eJ(i,0,n.time);function i(l){n.state=zU,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var h,d,p,y;if(n.state!==zU)return c();for(h in o)if(y=o[h],y.name===n.name){if(y.state===MP)return PU(a);y.state===RU?(y.state=bP,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete o[h]):+h<t&&(y.state=bP,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete o[h])}if(PU(function(){n.state===MP&&(n.state=RU,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=eO,n.on.call("start",e,e.__data__,n.index,n.group),n.state===eO){for(n.state=MP,r=new Array(p=n.tween.length),h=0,d=-1;h<p;++h)(y=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(r[++d]=y);r.length=d+1}}function s(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=tO,1),d=-1,p=r.length;++d<p;)r[d].call(e,h);n.state===tO&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=bP,n.timer.stop(),delete o[t];for(var l in o)return;delete e.__transition}}function _P(e,t){var n=e.__transition,o,r,i=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((o=n[a]).name!==t){i=!1;continue}r=o.state>eO&&o.state<tO,o.state=bP,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[a]}i&&delete e.__transition}}function tze(e){return this.each(function(){_P(this,e)})}function nze(e,t){var n,o;return function(){var r=ii(this,e),i=r.tween;if(i!==n){o=n=i;for(var a=0,s=o.length;a<s;++a)if(o[a].name===t){o=o.slice(),o.splice(a,1);break}}r.tween=o}}function oze(e,t,n){var o,r;if(typeof n!="function")throw new Error;return function(){var i=ii(this,e),a=i.tween;if(a!==o){r=(o=a).slice();for(var s={name:t,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===t){r[c]=s;break}c===l&&r.push(s)}i.tween=r}}function rze(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=pr(this.node(),n).tween,r=0,i=o.length,a;r<i;++r)if((a=o[r]).name===e)return a.value;return null}return this.each((t==null?nze:oze)(n,e,t))}function cq(e,t,n){var o=e._id;return e.each(function(){var r=ii(this,o);(r.value||(r.value={}))[t]=n.apply(this,arguments)}),function(r){return pr(r,o).value[t]}}function nJ(e,t){var n;return(typeof t=="number"?Vr:t instanceof Xd?dz:(n=Xd(t))?(t=n,dz):XQ)(e,t)}function ize(e){return function(){this.removeAttribute(e)}}function aze(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sze(e,t,n){var o,r=n+"",i;return function(){var a=this.getAttribute(e);return a===r?null:a===o?i:i=t(o=a,n)}}function cze(e,t,n){var o,r=n+"",i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===r?null:a===o?i:i=t(o=a,n)}}function lze(e,t,n){var o,r,i;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),c=s+"",a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s)))}}function dze(e,t,n){var o,r,i;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),c=s+"",a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s)))}}function uze(e,t){var n=fR(e),o=n==="transform"?BPe:nJ;return this.attrTween(e,typeof t=="function"?(n.local?dze:lze)(n,o,cq(this,"attr."+e,t)):t==null?(n.local?aze:ize)(n):(n.local?cze:sze)(n,o,t))}function hze(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fze(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pze(e,t){var n,o;function r(){var i=t.apply(this,arguments);return i!==o&&(n=(o=i)&&fze(e,i)),n}return r._value=t,r}function yze(e,t){var n,o;function r(){var i=t.apply(this,arguments);return i!==o&&(n=(o=i)&&hze(e,i)),n}return r._value=t,r}function mze(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=fR(e);return this.tween(n,(o.local?pze:yze)(o,t))}function gze(e,t){return function(){sq(this,e).delay=+t.apply(this,arguments)}}function kze(e,t){return t=+t,function(){sq(this,e).delay=t}}function vze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gze:kze)(t,e)):pr(this.node(),t).delay}function xze(e,t){return function(){ii(this,e).duration=+t.apply(this,arguments)}}function wze(e,t){return t=+t,function(){ii(this,e).duration=t}}function Mze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xze:wze)(t,e)):pr(this.node(),t).duration}function bze(e,t){if(typeof t!="function")throw new Error;return function(){ii(this,e).ease=t}}function _ze(e){var t=this._id;return arguments.length?this.each(bze(t,e)):pr(this.node(),t).ease}function Cze(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,e).ease=n}}function Sze(e){if(typeof e!="function")throw new Error;return this.each(Cze(this._id,e))}function Lze(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=[],c,l=0;l<a;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&s.push(c);return new Bi(o,this._parents,this._name,this._id)}function Nze(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,r=n.length,i=Math.min(o,r),a=new Array(o),s=0;s<i;++s)for(var c=t[s],l=n[s],h=c.length,d=a[s]=new Array(h),p,y=0;y<h;++y)(p=c[y]||l[y])&&(d[y]=p);for(;s<o;++s)a[s]=t[s];return new Bi(a,this._parents,this._name,this._id)}function Ize(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Aze(e,t,n){var o,r,i=Ize(t)?sq:ii;return function(){var a=i(this,e),s=a.on;s!==o&&(r=(o=s).copy()).on(t,n),a.on=r}}function Eze(e,t){var n=this._id;return arguments.length<2?pr(this.node(),n).on.on(e):this.each(Aze(n,e,t))}function jze(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $ze(){return this.on("end.remove",jze(this._id))}function Pze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=oq(e));for(var o=this._groups,r=o.length,i=new Array(r),a=0;a<r;++a)for(var s=o[a],c=s.length,l=i[a]=new Array(c),h,d,p=0;p<c;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),l[p]=d,mR(l[p],t,n,p,l,pr(h,n)));return new Bi(i,this._parents,t,n)}function zze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=EQ(e));for(var o=this._groups,r=o.length,i=[],a=[],s=0;s<r;++s)for(var c=o[s],l=c.length,h,d=0;d<l;++d)if(h=c[d]){for(var p=e.call(h,h.__data__,d,c),y,g=pr(h,n),k=0,x=p.length;k<x;++k)(y=p[k])&&mR(y,t,n,k,p,g);i.push(p),a.push(h)}return new Bi(i,a,t,n)}var Rze=Df.prototype.constructor;function Tze(){return new Rze(this._groups,this._parents)}function Dze(e,t){var n,o,r;return function(){var i=D0(this,e),a=(this.style.removeProperty(e),D0(this,e));return i===a?null:i===n&&a===o?r:r=t(n=i,o=a)}}function oJ(e){return function(){this.style.removeProperty(e)}}function Hze(e,t,n){var o,r=n+"",i;return function(){var a=D0(this,e);return a===r?null:a===o?i:i=t(o=a,n)}}function Oze(e,t,n){var o,r,i;return function(){var a=D0(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),D0(this,e))),a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s))}}function Fze(e,t){var n,o,r,i="style."+t,a="end."+i,s;return function(){var c=ii(this,e),l=c.on,h=c.value[i]==null?s||(s=oJ(t)):void 0;(l!==n||r!==h)&&(o=(n=l).copy()).on(a,r=h),c.on=o}}function qze(e,t,n){var o=(e+="")=="transform"?VPe:nJ;return t==null?this.styleTween(e,Dze(e,o)).on("end.style."+e,oJ(e)):typeof t=="function"?this.styleTween(e,Oze(e,o,cq(this,"style."+e,t))).each(Fze(this._id,e)):this.styleTween(e,Hze(e,o,t),n).on("end.style."+e,null)}function Vze(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function Bze(e,t,n){var o,r;function i(){var a=t.apply(this,arguments);return a!==r&&(o=(r=a)&&Vze(e,a,n)),o}return i._value=t,i}function Uze(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Bze(e,t,n??""))}function Wze(e){return function(){this.textContent=e}}function Gze(e){return function(){var t=e(this);this.textContent=t??""}}function Kze(e){return this.tween("text",typeof e=="function"?Gze(cq(this,"text",e)):Wze(e==null?"":e+""))}function Xze(e){return function(t){this.textContent=e.call(this,t)}}function Zze(e){var t,n;function o(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Xze(r)),t}return o._value=e,o}function Yze(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Zze(e))}function Qze(){for(var e=this._name,t=this._id,n=rJ(),o=this._groups,r=o.length,i=0;i<r;++i)for(var a=o[i],s=a.length,c,l=0;l<s;++l)if(c=a[l]){var h=pr(c,t);mR(c,e,n,l,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Bi(o,this._parents,e,n)}function Jze(){var e,t,n=this,o=n._id,r=n.size();return new Promise(function(i,a){var s={value:a},c={value:function(){--r===0&&i()}};n.each(function(){var l=ii(this,o),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),l.on=t}),r===0&&i()})}var eRe=0;function Bi(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function rJ(){return++eRe}var Li=Df.prototype;Bi.prototype={constructor:Bi,select:Pze,selectAll:zze,selectChild:Li.selectChild,selectChildren:Li.selectChildren,filter:Lze,merge:Nze,selection:Tze,transition:Qze,call:Li.call,nodes:Li.nodes,node:Li.node,size:Li.size,empty:Li.empty,each:Li.each,on:Eze,attr:uze,attrTween:mze,style:qze,styleTween:Uze,text:Kze,textTween:Yze,remove:$ze,tween:rze,delay:vze,duration:Mze,ease:_ze,easeVarying:Sze,end:Jze,[Symbol.iterator]:Li[Symbol.iterator]};function tRe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nRe={time:null,delay:0,duration:250,ease:tRe};function oRe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function rRe(e){var t,n;e instanceof Bi?(t=e._id,e=e._name):(t=rJ(),(n=nRe).time=aq(),e=e==null?null:e+"");for(var o=this._groups,r=o.length,i=0;i<r;++i)for(var a=o[i],s=a.length,c,l=0;l<s;++l)(c=a[l])&&mR(c,e,t,l,a,n||oRe(c,t));return new Bi(o,this._parents,e,t)}Df.prototype.interrupt=tze;Df.prototype.transition=rRe;const Op=e=>()=>e;function iRe(e,{sourceEvent:t,target:n,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Ti(e,t,n){this.k=e,this.x=t,this.y=n}Ti.prototype={constructor:Ti,scale:function(e){return e===1?this:new Ti(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ti(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var gR=new Ti(1,0,0);iJ.prototype=Ti.prototype;function iJ(e){for(;!e.__zoom;)if(!(e=e.parentNode))return gR;return e.__zoom}function QT(e){e.stopImmediatePropagation()}function Fh(e){e.preventDefault(),e.stopImmediatePropagation()}function aRe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function sRe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function TU(){return this.__zoom||gR}function cRe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lRe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dRe(e,t,n){var o=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function aJ(){var e=aRe,t=sRe,n=dRe,o=cRe,r=lRe,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,c=wP,l=hR("start","zoom","end"),h,d,p,y=500,g=150,k=0,x=10;function v($){$.property("__zoom",TU).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",j).on("dblclick.zoom",I).filter(r).on("touchstart.zoom",R).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function($,T,D,F){var z=$.selection?$.selection():$;z.property("__zoom",TU),$!==z?C($,T,D,F):z.interrupt().each(function(){_(this,arguments).event(F).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},v.scaleBy=function($,T,D,F){v.scaleTo($,function(){var z=this.__zoom.k,A=typeof T=="function"?T.apply(this,arguments):T;return z*A},D,F)},v.scaleTo=function($,T,D,F){v.transform($,function(){var z=t.apply(this,arguments),A=this.__zoom,N=D==null?b(z):typeof D=="function"?D.apply(this,arguments):D,W=A.invert(N),O=typeof T=="function"?T.apply(this,arguments):T;return n(w(M(A,O),N,W),z,a)},D,F)},v.translateBy=function($,T,D,F){v.transform($,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),a)},null,F)},v.translateTo=function($,T,D,F,z){v.transform($,function(){var A=t.apply(this,arguments),N=this.__zoom,W=F==null?b(A):typeof F=="function"?F.apply(this,arguments):F;return n(gR.translate(W[0],W[1]).scale(N.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof D=="function"?-D.apply(this,arguments):-D),A,a)},F,z)};function M($,T){return T=Math.max(i[0],Math.min(i[1],T)),T===$.k?$:new Ti(T,$.x,$.y)}function w($,T,D){var F=T[0]-D[0]*$.k,z=T[1]-D[1]*$.k;return F===$.x&&z===$.y?$:new Ti($.k,F,z)}function b($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function C($,T,D,F){$.on("start.zoom",function(){_(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(F).end()}).tween("zoom",function(){var z=this,A=arguments,N=_(z,A).event(F),W=t.apply(z,A),O=D==null?b(W):typeof D=="function"?D.apply(z,A):D,P=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),Y=z.__zoom,Z=typeof T=="function"?T.apply(z,A):T,te=c(Y.invert(O).concat(P/Y.k),Z.invert(O).concat(P/Z.k));return function(ae){if(ae===1)ae=Z;else{var oe=te(ae),re=P/oe[2];ae=new Ti(re,O[0]-oe[0]*re,O[1]-oe[1]*re)}N.zoom(null,ae)}})}function _($,T,D){return!D&&$.__zooming||new S($,T)}function S($,T){this.that=$,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply($,T),this.taps=0}S.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,T){return this.mouse&&$!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var T=fo(this.that).datum();l.call($,this.that,new iRe($,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:l}),T)}};function L($,...T){if(!e.apply(this,arguments))return;var D=_(this,T).event($),F=this.__zoom,z=Math.max(i[0],Math.min(i[1],F.k*Math.pow(2,o.apply(this,arguments)))),A=er($);if(D.wheel)(D.mouse[0][0]!==A[0]||D.mouse[0][1]!==A[1])&&(D.mouse[1]=F.invert(D.mouse[0]=A)),clearTimeout(D.wheel);else{if(F.k===z)return;D.mouse=[A,F.invert(A)],_P(this),D.start()}Fh($),D.wheel=setTimeout(N,g),D.zoom("mouse",n(w(M(F,z),D.mouse[0],D.mouse[1]),D.extent,a));function N(){D.wheel=null,D.end()}}function j($,...T){if(p||!e.apply(this,arguments))return;var D=$.currentTarget,F=_(this,T,!0).event($),z=fo($.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",P,!0),A=er($,D),N=$.clientX,W=$.clientY;qQ($.view),QT($),F.mouse=[A,this.__zoom.invert(A)],_P(this),F.start();function O(Y){if(Fh(Y),!F.moved){var Z=Y.clientX-N,te=Y.clientY-W;F.moved=Z*Z+te*te>k}F.event(Y).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=er(Y,D),F.mouse[1]),F.extent,a))}function P(Y){z.on("mousemove.zoom mouseup.zoom",null),VQ(Y.view,F.moved),Fh(Y),F.event(Y).end()}}function I($,...T){if(e.apply(this,arguments)){var D=this.__zoom,F=er($.changedTouches?$.changedTouches[0]:$,this),z=D.invert(F),A=D.k*($.shiftKey?.5:2),N=n(w(M(D,A),F,z),t.apply(this,T),a);Fh($),s>0?fo(this).transition().duration(s).call(C,N,F,$):fo(this).call(v.transform,N,F,$)}}function R($,...T){if(e.apply(this,arguments)){var D=$.touches,F=D.length,z=_(this,T,$.changedTouches.length===F).event($),A,N,W,O;for(QT($),N=0;N<F;++N)W=D[N],O=er(W,this),O=[O,this.__zoom.invert(O),W.identifier],z.touch0?!z.touch1&&z.touch0[2]!==O[2]&&(z.touch1=O,z.taps=0):(z.touch0=O,A=!0,z.taps=1+!!h);h&&(h=clearTimeout(h)),A&&(z.taps<2&&(d=O[0],h=setTimeout(function(){h=null},y)),_P(this),z.start())}}function E($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,A,N,W,O;for(Fh($),A=0;A<z;++A)N=F[A],W=er(N,this),D.touch0&&D.touch0[2]===N.identifier?D.touch0[0]=W:D.touch1&&D.touch1[2]===N.identifier&&(D.touch1[0]=W);if(N=D.that.__zoom,D.touch1){var P=D.touch0[0],Y=D.touch0[1],Z=D.touch1[0],te=D.touch1[1],ae=(ae=Z[0]-P[0])*ae+(ae=Z[1]-P[1])*ae,oe=(oe=te[0]-Y[0])*oe+(oe=te[1]-Y[1])*oe;N=M(N,Math.sqrt(ae/oe)),W=[(P[0]+Z[0])/2,(P[1]+Z[1])/2],O=[(Y[0]+te[0])/2,(Y[1]+te[1])/2]}else if(D.touch0)W=D.touch0[0],O=D.touch0[1];else return;D.zoom("touch",n(w(N,W,O),D.extent,a))}}function V($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,A,N;for(QT($),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),A=0;A<z;++A)N=F[A],D.touch0&&D.touch0[2]===N.identifier?delete D.touch0:D.touch1&&D.touch1[2]===N.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(N=er(N,this),Math.hypot(d[0]-N[0],d[1]-N[1])<x)){var W=fo(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return v.wheelDelta=function($){return arguments.length?(o=typeof $=="function"?$:Op(+$),v):o},v.filter=function($){return arguments.length?(e=typeof $=="function"?$:Op(!!$),v):e},v.touchable=function($){return arguments.length?(r=typeof $=="function"?$:Op(!!$),v):r},v.extent=function($){return arguments.length?(t=typeof $=="function"?$:Op([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),v):t},v.scaleExtent=function($){return arguments.length?(i[0]=+$[0],i[1]=+$[1],v):[i[0],i[1]]},v.translateExtent=function($){return arguments.length?(a[0][0]=+$[0][0],a[1][0]=+$[1][0],a[0][1]=+$[0][1],a[1][1]=+$[1][1],v):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},v.constrain=function($){return arguments.length?(n=$,v):n},v.duration=function($){return arguments.length?(s=+$,v):s},v.interpolate=function($){return arguments.length?(c=$,v):c},v.on=function(){var $=l.on.apply(l,arguments);return $===l?v:$},v.clickDistance=function($){return arguments.length?(k=($=+$)*$,v):Math.sqrt(k)},v.tapDistance=function($){return arguments.length?(x=+$,v):x},v}const ti={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},yf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sJ=["Enter"," ","Escape"],cJ={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var O0;(function(e){e.Strict="strict",e.Loose="loose"})(O0||(O0={}));var Vd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Vd||(Vd={}));var F0;(function(e){e.Partial="partial",e.Full="full"})(F0||(F0={}));const lJ={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Ea;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Ea||(Ea={}));var mf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(mf||(mf={}));var ue;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ue||(ue={}));const DU={[ue.Left]:ue.Right,[ue.Right]:ue.Left,[ue.Top]:ue.Bottom,[ue.Bottom]:ue.Top};function dJ(e){return e===null?null:e?"valid":"invalid"}const uJ=e=>"id"in e&&"source"in e&&"target"in e,uRe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lq=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Of=(e,t=[0,0])=>{const{width:n,height:o}=Xi(e),r=e.origin??t,i=n*r[0],a=o*r[1];return{x:e.position.x-i,y:e.position.y-a}},hRe=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,r)=>{const i=typeof r=="string";let a=!t.nodeLookup&&!i?r:void 0;t.nodeLookup&&(a=i?t.nodeLookup.get(r):lq(r)?r:t.nodeLookup.get(r.id));const s=a?pz(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return kR(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return vR(n)},Ff=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(r=>{(t.filter===void 0||t.filter(r))&&(n=kR(n,pz(r)),o=!0)}),o?vR(n):{x:0,y:0,width:0,height:0}},dq=(e,t,[n,o,r]=[0,0,1],i=!1,a=!1)=>{const s={...Vf(t,[n,o,r]),width:t.width/r,height:t.height/r},c=[];for(const l of e.values()){const{measured:h,selectable:d=!0,hidden:p=!1}=l;if(a&&!d||p)continue;const y=h.width??l.width??l.initialWidth??null,g=h.height??l.height??l.initialHeight??null,k=gf(s,V0(l)),x=(y??0)*(g??0),v=i&&k>0;(!l.internals.handleBounds||v||k>=x||l.dragging)&&c.push(l)}return c},fRe=(e,t)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),t.filter(o=>n.has(o.source)||n.has(o.target))};function pRe(e,t){const n=new Map,o=t!=null&&t.nodes?new Set(t.nodes.map(r=>r.id)):null;return e.forEach(r=>{r.measured.width&&r.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!r.hidden)&&(!o||o.has(r.id))&&n.set(r.id,r)}),n}async function yRe({nodes:e,width:t,height:n,panZoom:o,minZoom:r,maxZoom:i},a){if(e.size===0)return Promise.resolve(!0);const s=pRe(e,a),c=Ff(s),l=uq(c,t,n,(a==null?void 0:a.minZoom)??r,(a==null?void 0:a.maxZoom)??i,(a==null?void 0:a.padding)??.1);return await o.setViewport(l,{duration:a==null?void 0:a.duration,ease:a==null?void 0:a.ease,interpolate:a==null?void 0:a.interpolate}),Promise.resolve(!0)}function hJ({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:r,onError:i}){const a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},h=a.origin??o;let d=a.extent||r;if(a.extent==="parent"&&!a.expandParent)if(!s)i==null||i("005",ti.error005());else{const y=s.measured.width,g=s.measured.height;y&&g&&(d=[[c,l],[c+y,l+g]])}else s&&B0(a.extent)&&(d=[[a.extent[0][0]+c,a.extent[0][1]+l],[a.extent[1][0]+c,a.extent[1][1]+l]]);const p=B0(d)?Yd(t,d,a.measured):t;return(a.measured.width===void 0||a.measured.height===void 0)&&(i==null||i("015",ti.error015())),{position:{x:p.x-c+(a.measured.width??0)*h[0],y:p.y-l+(a.measured.height??0)*h[1]},positionAbsolute:p}}async function mRe({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:o,onBeforeDelete:r}){const i=new Set(e.map(p=>p.id)),a=[];for(const p of n){if(p.deletable===!1)continue;const y=i.has(p.id),g=!y&&p.parentId&&a.find(k=>k.id===p.parentId);(y||g)&&a.push(p)}const s=new Set(t.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),h=fRe(a,c);for(const p of c)s.has(p.id)&&!h.find(g=>g.id===p.id)&&h.push(p);if(!r)return{edges:h,nodes:a};const d=await r({nodes:a,edges:h});return typeof d=="boolean"?d?{edges:h,nodes:a}:{edges:[],nodes:[]}:d}const q0=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Yd=(e={x:0,y:0},t,n)=>({x:q0(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:q0(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function fJ(e,t,n){const{width:o,height:r}=Xi(n),{x:i,y:a}=n.internals.positionAbsolute;return Yd(e,[[i,a],[i+o,a+r]],t)}const HU=(e,t,n)=>e<t?q0(Math.abs(e-t),1,t)/t:e>n?-q0(Math.abs(e-n),1,t)/t:0,pJ=(e,t,n=15,o=40)=>{const r=HU(e.x,o,t.width-o)*n,i=HU(e.y,o,t.height-o)*n;return[r,i]},kR=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nO=({x:e,y:t,width:n,height:o})=>({x:e,y:t,x2:e+n,y2:t+o}),vR=({x:e,y:t,x2:n,y2:o})=>({x:e,y:t,width:n-e,height:o-t}),V0=(e,t=[0,0])=>{var r,i;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,width:((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},pz=(e,t=[0,0])=>{var r,i;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,x2:n+(((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0),y2:o+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},yJ=(e,t)=>vR(kR(nO(e),nO(t))),gf=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)},OU=e=>rr(e.width)&&rr(e.height)&&rr(e.x)&&rr(e.y),rr=e=>!isNaN(e)&&isFinite(e),gRe=(e,t)=>{},qf=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Vf=({x:e,y:t},[n,o,r],i=!1,a=[1,1])=>{const s={x:(e-n)/r,y:(t-o)/r};return i?qf(s,a):s},yz=({x:e,y:t},[n,o,r])=>({x:e*r+n,y:t*r+o});function $u(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kRe(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=$u(e,n),r=$u(e,t);return{top:o,right:r,bottom:o,left:r,x:r*2,y:o*2}}if(typeof e=="object"){const o=$u(e.top??e.y??0,n),r=$u(e.bottom??e.y??0,n),i=$u(e.left??e.x??0,t),a=$u(e.right??e.x??0,t);return{top:o,right:a,bottom:r,left:i,x:i+a,y:o+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vRe(e,t,n,o,r,i){const{x:a,y:s}=yz(e,[t,n,o]),{x:c,y:l}=yz({x:e.x+e.width,y:e.y+e.height},[t,n,o]),h=r-c,d=i-l;return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(h),bottom:Math.floor(d)}}const uq=(e,t,n,o,r,i)=>{const a=kRe(i,t,n),s=(t-a.x)/e.width,c=(n-a.y)/e.height,l=Math.min(s,c),h=q0(l,o,r),d=e.x+e.width/2,p=e.y+e.height/2,y=t/2-d*h,g=n/2-p*h,k=vRe(e,y,g,h,t,n),x={left:Math.min(k.left-a.left,0),top:Math.min(k.top-a.top,0),right:Math.min(k.right-a.right,0),bottom:Math.min(k.bottom-a.bottom,0)};return{x:y-x.left+x.right,y:g-x.top+x.bottom,zoom:h}},kf=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function B0(e){return e!=null&&e!=="parent"}function Xi(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function mJ(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function gJ(e,t={width:0,height:0},n,o,r){const i={...e},a=o.get(n);if(a){const s=a.origin||r;i.x+=a.internals.positionAbsolute.x-(t.width??0)*s[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*s[1]}return i}function FU(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function xRe(){let e,t;return{promise:new Promise((o,r)=>{e=o,t=r}),resolve:e,reject:t}}function wRe(e){return{...cJ,...e||{}}}function O2(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:o,containerBounds:r}){const{x:i,y:a}=ir(e),s=Vf({x:i-((r==null?void 0:r.left)??0),y:a-((r==null?void 0:r.top)??0)},o),{x:c,y:l}=n?qf(s,t):s;return{xSnapped:c,ySnapped:l,...s}}const hq=e=>({width:e.offsetWidth,height:e.offsetHeight}),kJ=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},MRe=["INPUT","SELECT","TEXTAREA"];function vJ(e){var o,r;const t=((r=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:r[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:MRe.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const xJ=e=>"clientX"in e,ir=(e,t)=>{var i,a;const n=xJ(e),o=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,r=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:o-((t==null?void 0:t.left)??0),y:r-((t==null?void 0:t.top)??0)}},qU=(e,t,n,o,r)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(a=>{const s=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:e,nodeId:r,position:a.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...hq(a)}})};function wJ({sourceX:e,sourceY:t,targetX:n,targetY:o,sourceControlX:r,sourceControlY:i,targetControlX:a,targetControlY:s}){const c=e*.125+r*.375+a*.375+n*.125,l=t*.125+i*.375+s*.375+o*.125,h=Math.abs(c-e),d=Math.abs(l-t);return[c,l,h,d]}function Fp(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function VU({pos:e,x1:t,y1:n,x2:o,y2:r,c:i}){switch(e){case ue.Left:return[t-Fp(t-o,i),n];case ue.Right:return[t+Fp(o-t,i),n];case ue.Top:return[t,n-Fp(n-r,i)];case ue.Bottom:return[t,n+Fp(r-n,i)]}}function xR({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:i=ue.Top,curvature:a=.25}){const[s,c]=VU({pos:n,x1:e,y1:t,x2:o,y2:r,c:a}),[l,h]=VU({pos:i,x1:o,y1:r,x2:e,y2:t,c:a}),[d,p,y,g]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:h});return[`M${e},${t} C${s},${c} ${l},${h} ${o},${r}`,d,p,y,g]}function MJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const r=Math.abs(n-e)/2,i=n<e?n+r:n-r,a=Math.abs(o-t)/2,s=o<t?o+a:o-a;return[i,s,r,a]}function bRe({sourceNode:e,targetNode:t,selected:n=!1,zIndex:o=0,elevateOnSelect:r=!1,zIndexMode:i="basic"}){if(i==="manual")return o;const a=r&&n?o+1e3:o,s=Math.max(e.parentId||r&&e.selected?e.internals.z:0,t.parentId||r&&t.selected?t.internals.z:0);return a+s}function _Re({sourceNode:e,targetNode:t,width:n,height:o,transform:r}){const i=kR(pz(e),pz(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const a={x:-r[0]/r[2],y:-r[1]/r[2],width:n/r[2],height:o/r[2]};return gf(a,vR(i))>0}const CRe=({source:e,sourceHandle:t,target:n,targetHandle:o})=>`xy-edge__${e}${t||""}-${n}${o||""}`,SRe=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),LRe=(e,t,n={})=>{if(!e.source||!e.target)return t;const o=n.getEdgeId||CRe;let r;return uJ(e)?r={...e}:r={...e,id:o(e)},SRe(r,t)?t:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,t.concat(r))};function bJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const[r,i,a,s]=MJ({sourceX:e,sourceY:t,targetX:n,targetY:o});return[`M ${e},${t}L ${n},${o}`,r,i,a,s]}const BU={[ue.Left]:{x:-1,y:0},[ue.Right]:{x:1,y:0},[ue.Top]:{x:0,y:-1},[ue.Bottom]:{x:0,y:1}},NRe=({source:e,sourcePosition:t=ue.Bottom,target:n})=>t===ue.Left||t===ue.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},UU=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function IRe({source:e,sourcePosition:t=ue.Bottom,target:n,targetPosition:o=ue.Top,center:r,offset:i,stepPosition:a}){const s=BU[t],c=BU[o],l={x:e.x+s.x*i,y:e.y+s.y*i},h={x:n.x+c.x*i,y:n.y+c.y*i},d=NRe({source:l,sourcePosition:t,target:h}),p=d.x!==0?"x":"y",y=d[p];let g=[],k,x;const v={x:0,y:0},M={x:0,y:0},[,,w,b]=MJ({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[p]*c[p]===-1){p==="x"?(k=r.x??l.x+(h.x-l.x)*a,x=r.y??(l.y+h.y)/2):(k=r.x??(l.x+h.x)/2,x=r.y??l.y+(h.y-l.y)*a);const L=[{x:k,y:l.y},{x:k,y:h.y}],j=[{x:l.x,y:x},{x:h.x,y:x}];s[p]===y?g=p==="x"?L:j:g=p==="x"?j:L}else{const L=[{x:l.x,y:h.y}],j=[{x:h.x,y:l.y}];if(p==="x"?g=s.x===y?j:L:g=s.y===y?L:j,t===o){const $=Math.abs(e[p]-n[p]);if($<=i){const T=Math.min(i-1,i-$);s[p]===y?v[p]=(l[p]>e[p]?-1:1)*T:M[p]=(h[p]>n[p]?-1:1)*T}}if(t!==o){const $=p==="x"?"y":"x",T=s[p]===c[$],D=l[$]>h[$],F=l[$]<h[$];(s[p]===1&&(!T&&D||T&&F)||s[p]!==1&&(!T&&F||T&&D))&&(g=p==="x"?L:j)}const I={x:l.x+v.x,y:l.y+v.y},R={x:h.x+M.x,y:h.y+M.y},E=Math.max(Math.abs(I.x-g[0].x),Math.abs(R.x-g[0].x)),V=Math.max(Math.abs(I.y-g[0].y),Math.abs(R.y-g[0].y));E>=V?(k=(I.x+R.x)/2,x=g[0].y):(k=g[0].x,x=(I.y+R.y)/2)}const C={x:l.x+v.x,y:l.y+v.y},_={x:h.x+M.x,y:h.y+M.y};return[[e,...C.x!==g[0].x||C.y!==g[0].y?[C]:[],...g,..._.x!==g[g.length-1].x||_.y!==g[g.length-1].y?[_]:[],n],k,x,w,b]}function ARe(e,t,n,o){const r=Math.min(UU(e,t)/2,UU(t,n)/2,o),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a){const l=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${i+r*l},${a}Q ${i},${a} ${i},${a+r*h}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${a+r*c}Q ${i},${a} ${i+r*s},${a}`}function vf({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:i=ue.Top,borderRadius:a=5,centerX:s,centerY:c,offset:l=20,stepPosition:h=.5}){const[d,p,y,g,k]=IRe({source:{x:e,y:t},sourcePosition:n,target:{x:o,y:r},targetPosition:i,center:{x:s,y:c},offset:l,stepPosition:h});let x=`M${d[0].x} ${d[0].y}`;for(let v=1;v<d.length-1;v++)x+=ARe(d[v-1],d[v],d[v+1],a);return x+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[x,p,y,g,k]}function WU(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ERe(e){var d;const{sourceNode:t,targetNode:n}=e;if(!WU(t)||!WU(n))return null;const o=t.internals.handleBounds||GU(t.handles),r=n.internals.handleBounds||GU(n.handles),i=KU((o==null?void 0:o.source)??[],e.sourceHandle),a=KU(e.connectionMode===O0.Strict?(r==null?void 0:r.target)??[]:((r==null?void 0:r.target)??[]).concat((r==null?void 0:r.source)??[]),e.targetHandle);if(!i||!a)return(d=e.onError)==null||d.call(e,"008",ti.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(i==null?void 0:i.position)||ue.Bottom,c=(a==null?void 0:a.position)||ue.Top,l=Qd(t,i,s),h=Qd(n,a,c);return{sourceX:l.x,sourceY:l.y,targetX:h.x,targetY:h.y,sourcePosition:s,targetPosition:c}}function GU(e){if(!e)return null;const t=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?t.push(o):o.type==="target"&&n.push(o);return{source:t,target:n}}function Qd(e,t,n=ue.Left,o=!1){const r=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:a,height:s}=t??Xi(e);if(o)return{x:r+a/2,y:i+s/2};switch((t==null?void 0:t.position)??n){case ue.Top:return{x:r+a/2,y:i};case ue.Right:return{x:r+a,y:i+s/2};case ue.Bottom:return{x:r+a/2,y:i+s};case ue.Left:return{x:r,y:i+s/2}}}function KU(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function oO(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`:""}function jRe(e,{id:t,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:r}){const i=new Set;return e.reduce((a,s)=>([s.markerStart||o,s.markerEnd||r].forEach(c=>{if(c&&typeof c=="object"){const l=oO(c,t);i.has(l)||(a.push({id:l,color:c.color||n,...c}),i.add(l))}}),a),[]).sort((a,s)=>a.id.localeCompare(s.id))}const _J=1e3,$Re=10,fq={nodeOrigin:[0,0],nodeExtent:yf,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},PRe={...fq,checkEquality:!0};function pq(e,t){const n={...e};for(const o in t)t[o]!==void 0&&(n[o]=t[o]);return n}function zRe(e,t,n){const o=pq(fq,n);for(const r of e.values())if(r.parentId)mq(r,e,t,o);else{const i=Of(r,o.nodeOrigin),a=B0(r.extent)?r.extent:o.nodeExtent,s=Yd(i,a,Xi(r));r.internals.positionAbsolute=s}}function RRe(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],o=[];for(const r of e.handles){const i={id:r.id,width:r.width??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r.type};r.type==="source"?n.push(i):r.type==="target"&&o.push(i)}return{source:n,target:o}}function yq(e){return e==="manual"}function rO(e,t,n,o={}){var h,d;const r=pq(PRe,o),i={i:0},a=new Map(t),s=r!=null&&r.elevateNodesOnSelect&&!yq(r.zIndexMode)?_J:0;let c=e.length>0,l=!1;t.clear(),n.clear();for(const p of e){let y=a.get(p.id);if(r.checkEquality&&p===(y==null?void 0:y.internals.userNode))t.set(p.id,y);else{const g=Of(p,r.nodeOrigin),k=B0(p.extent)?p.extent:r.nodeExtent,x=Yd(g,k,Xi(p));y={...r.defaults,...p,measured:{width:(h=p.measured)==null?void 0:h.width,height:(d=p.measured)==null?void 0:d.height},internals:{positionAbsolute:x,handleBounds:RRe(p,y),z:CJ(p,s,r.zIndexMode),userNode:p}},t.set(p.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(c=!1),p.parentId&&mq(y,t,n,o,i),l||(l=p.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:l}}function TRe(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function mq(e,t,n,o,r){const{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:s,zIndexMode:c}=pq(fq,o),l=e.parentId,h=t.get(l);if(!h){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}TRe(e,n),r&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++r.i,h.internals.z=h.internals.z+r.i*$Re),r&&h.internals.rootParentIndex!==void 0&&(r.i=h.internals.rootParentIndex);const d=i&&!yq(c)?_J:0,{x:p,y,z:g}=DRe(e,h,a,s,d,c),{positionAbsolute:k}=e.internals,x=p!==k.x||y!==k.y;(x||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y}:k,z:g}})}function CJ(e,t,n){const o=rr(e.zIndex)?e.zIndex:0;return yq(n)?o:o+(e.selected?t:0)}function DRe(e,t,n,o,r,i){const{x:a,y:s}=t.internals.positionAbsolute,c=Xi(e),l=Of(e,n),h=B0(e.extent)?Yd(l,e.extent,c):l;let d=Yd({x:a+h.x,y:s+h.y},o,c);e.extent==="parent"&&(d=fJ(d,c,t));const p=CJ(e,r,i),y=t.internals.z??0;return{x:d.x,y:d.y,z:y>=p?y+1:p}}function gq(e,t,n,o=[0,0]){var a;const r=[],i=new Map;for(const s of e){const c=t.get(s.parentId);if(!c)continue;const l=((a=i.get(s.parentId))==null?void 0:a.expandedRect)??V0(c),h=yJ(l,s.rect);i.set(s.parentId,{expandedRect:h,parent:c})}return i.size>0&&i.forEach(({expandedRect:s,parent:c},l)=>{var w;const h=c.internals.positionAbsolute,d=Xi(c),p=c.origin??o,y=s.x<h.x?Math.round(Math.abs(h.x-s.x)):0,g=s.y<h.y?Math.round(Math.abs(h.y-s.y)):0,k=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),v=(k-d.width)*p[0],M=(x-d.height)*p[1];(y>0||g>0||v||M)&&(r.push({id:l,type:"position",position:{x:c.position.x-y+v,y:c.position.y-g+M}}),(w=n.get(l))==null||w.forEach(b=>{e.some(C=>C.id===b.id)||r.push({id:b.id,type:"position",position:{x:b.position.x+y,y:b.position.y+g}})})),(d.width<s.width||d.height<s.height||y||g)&&r.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:k+(y?p[0]*y-v:0),height:x+(g?p[1]*g-M:0)}})}),r}function HRe(e,t,n,o,r,i,a){const s=o==null?void 0:o.querySelector(".xyflow__viewport");let c=!1;if(!s)return{changes:[],updatedInternals:c};const l=[],h=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(h.transform),p=[];for(const y of e.values()){const g=t.get(y.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),c=!0;continue}const k=hq(y.nodeElement),x=g.measured.width!==k.width||g.measured.height!==k.height;if(!!(k.width&&k.height&&(x||!g.internals.handleBounds||y.force))){const M=y.nodeElement.getBoundingClientRect(),w=B0(g.extent)?g.extent:i;let{positionAbsolute:b}=g.internals;g.parentId&&g.extent==="parent"?b=fJ(b,k,t.get(g.parentId)):w&&(b=Yd(b,w,k));const C={...g,measured:k,internals:{...g.internals,positionAbsolute:b,handleBounds:{source:qU("source",y.nodeElement,M,d,g.id),target:qU("target",y.nodeElement,M,d,g.id)}}};t.set(g.id,C),g.parentId&&mq(C,t,n,{nodeOrigin:r,zIndexMode:a}),c=!0,x&&(l.push({id:g.id,type:"dimensions",dimensions:k}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:V0(C,r)}))}}if(p.length>0){const y=gq(p,t,n,r);l.push(...y)}return{changes:l,updatedInternals:c}}async function ORe({delta:e,panZoom:t,transform:n,translateExtent:o,width:r,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[r,i]],o),s=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(s)}function XU(e,t,n,o,r,i){let a=r;const s=o.get(a)||new Map;o.set(a,s.set(n,t)),a=`${r}-${e}`;const c=o.get(a)||new Map;if(o.set(a,c.set(n,t)),i){a=`${r}-${e}-${i}`;const l=o.get(a)||new Map;o.set(a,l.set(n,t))}}function SJ(e,t,n){e.clear(),t.clear();for(const o of n){const{source:r,target:i,sourceHandle:a=null,targetHandle:s=null}=o,c={edgeId:o.id,source:r,target:i,sourceHandle:a,targetHandle:s},l=`${r}-${a}--${i}-${s}`,h=`${i}-${s}--${r}-${a}`;XU("source",c,h,e,r,a),XU("target",c,l,e,i,s),t.set(o.id,o)}}function LJ(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:LJ(n,t):!1}function ZU(e,t,n){var r;let o=e;do{if((r=o==null?void 0:o.matches)!=null&&r.call(o,t))return!0;if(o===n)return!1;o=o==null?void 0:o.parentElement}while(o);return!1}function FRe(e,t,n,o){const r=new Map;for(const[i,a]of e)if((a.selected||a.id===o)&&(!a.parentId||!LJ(a,e))&&(a.draggable||t&&typeof a.draggable>"u")){const s=e.get(i);s&&r.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return r}function JT({nodeId:e,dragItems:t,nodeLookup:n,dragging:o=!0}){var a,s,c;const r=[];for(const[l,h]of t){const d=(a=n.get(l))==null?void 0:a.internals.userNode;d&&r.push({...d,position:h.position,dragging:o})}if(!e)return[r[0],r];const i=(s=n.get(e))==null?void 0:s.internals.userNode;return[i?{...i,position:((c=t.get(e))==null?void 0:c.position)||i.position,dragging:o}:r[0],r]}function qRe({dragItems:e,snapGrid:t,x:n,y:o}){const r=e.values().next().value;if(!r)return null;const i={x:n-r.distance.x,y:o-r.distance.y},a=qf(i,t);return{x:a.x-i.x,y:a.y-i.y}}function VRe({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:o,onDragStop:r}){let i={x:null,y:null},a=0,s=new Map,c=!1,l={x:0,y:0},h=null,d=!1,p=null,y=!1,g=!1,k=null;function x({noDragClassName:M,handleSelector:w,domNode:b,isSelectable:C,nodeId:_,nodeClickDistance:S=0}){p=fo(b);function L({x:E,y:V}){const{nodeLookup:$,nodeExtent:T,snapGrid:D,snapToGrid:F,nodeOrigin:z,onNodeDrag:A,onSelectionDrag:N,onError:W,updateNodePositions:O}=t();i={x:E,y:V};let P=!1;const Y=s.size>1,Z=Y&&T?nO(Ff(s)):null,te=Y&&F?qRe({dragItems:s,snapGrid:D,x:E,y:V}):null;for(const[ae,oe]of s){if(!$.has(ae))continue;let re={x:E-oe.distance.x,y:V-oe.distance.y};F&&(re=te?{x:Math.round(re.x+te.x),y:Math.round(re.y+te.y)}:qf(re,D));let se=null;if(Y&&T&&!oe.extent&&Z){const{positionAbsolute:ge}=oe.internals,Pe=ge.x-Z.x+T[0][0],Be=ge.x+oe.measured.width-Z.x2+T[1][0],De=ge.y-Z.y+T[0][1],pe=ge.y+oe.measured.height-Z.y2+T[1][1];se=[[Pe,De],[Be,pe]]}const{position:ve,positionAbsolute:ke}=hJ({nodeId:ae,nextPosition:re,nodeLookup:$,nodeExtent:se||T,nodeOrigin:z,onError:W});P=P||oe.position.x!==ve.x||oe.position.y!==ve.y,oe.position=ve,oe.internals.positionAbsolute=ke}if(g=g||P,!!P&&(O(s,!0),k&&(o||A||!_&&N))){const[ae,oe]=JT({nodeId:_,dragItems:s,nodeLookup:$});o==null||o(k,s,ae,oe),A==null||A(k,ae,oe),_||N==null||N(k,oe)}}async function j(){if(!h)return;const{transform:E,panBy:V,autoPanSpeed:$,autoPanOnNodeDrag:T}=t();if(!T){c=!1,cancelAnimationFrame(a);return}const[D,F]=pJ(l,h,$);(D!==0||F!==0)&&(i.x=(i.x??0)-D/E[2],i.y=(i.y??0)-F/E[2],await V({x:D,y:F})&&L(i)),a=requestAnimationFrame(j)}function I(E){var Y;const{nodeLookup:V,multiSelectionActive:$,nodesDraggable:T,transform:D,snapGrid:F,snapToGrid:z,selectNodesOnDrag:A,onNodeDragStart:N,onSelectionDragStart:W,unselectNodesAndEdges:O}=t();d=!0,(!A||!C)&&!$&&_&&((Y=V.get(_))!=null&&Y.selected||O()),C&&A&&_&&(e==null||e(_));const P=O2(E.sourceEvent,{transform:D,snapGrid:F,snapToGrid:z,containerBounds:h});if(i=P,s=FRe(V,T,P,_),s.size>0&&(n||N||!_&&W)){const[Z,te]=JT({nodeId:_,dragItems:s,nodeLookup:V});n==null||n(E.sourceEvent,s,Z,te),N==null||N(E.sourceEvent,Z,te),_||W==null||W(E.sourceEvent,te)}}const R=BQ().clickDistance(S).on("start",E=>{const{domNode:V,nodeDragThreshold:$,transform:T,snapGrid:D,snapToGrid:F}=t();h=(V==null?void 0:V.getBoundingClientRect())||null,y=!1,g=!1,k=E.sourceEvent,$===0&&I(E),i=O2(E.sourceEvent,{transform:T,snapGrid:D,snapToGrid:F,containerBounds:h}),l=ir(E.sourceEvent,h)}).on("drag",E=>{const{autoPanOnNodeDrag:V,transform:$,snapGrid:T,snapToGrid:D,nodeDragThreshold:F,nodeLookup:z}=t(),A=O2(E.sourceEvent,{transform:$,snapGrid:T,snapToGrid:D,containerBounds:h});if(k=E.sourceEvent,(E.sourceEvent.type==="touchmove"&&E.sourceEvent.touches.length>1||_&&!z.has(_))&&(y=!0),!y){if(!c&&V&&d&&(c=!0,j()),!d){const N=ir(E.sourceEvent,h),W=N.x-l.x,O=N.y-l.y;Math.sqrt(W*W+O*O)>F&&I(E)}(i.x!==A.xSnapped||i.y!==A.ySnapped)&&s&&d&&(l=ir(E.sourceEvent,h),L(A))}}).on("end",E=>{if(!(!d||y)&&(c=!1,d=!1,cancelAnimationFrame(a),s.size>0)){const{nodeLookup:V,updateNodePositions:$,onNodeDragStop:T,onSelectionDragStop:D}=t();if(g&&($(s,!1),g=!1),r||T||!_&&D){const[F,z]=JT({nodeId:_,dragItems:s,nodeLookup:V,dragging:!1});r==null||r(E.sourceEvent,s,F,z),T==null||T(E.sourceEvent,F,z),_||D==null||D(E.sourceEvent,z)}}}).filter(E=>{const V=E.target;return!E.button&&(!M||!ZU(V,`.${M}`,b))&&(!w||ZU(V,w,b))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:x,destroy:v}}function BRe(e,t,n){const o=[],r={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())gf(r,V0(i))>0&&o.push(i);return o}const URe=250;function WRe(e,t,n,o){var s,c;let r=[],i=1/0;const a=BRe(e,n,t+URe);for(const l of a){const h=[...((s=l.internals.handleBounds)==null?void 0:s.source)??[],...((c=l.internals.handleBounds)==null?void 0:c.target)??[]];for(const d of h){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:p,y}=Qd(l,d,d.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(y-e.y,2));g>t||(g<i?(r=[{...d,x:p,y}],i=g):g===i&&r.push({...d,x:p,y}))}}if(!r.length)return null;if(r.length>1){const l=o.type==="source"?"target":"source";return r.find(h=>h.type===l)??r[0]}return r[0]}function NJ(e,t,n,o,r,i=!1){var l,h,d;const a=o.get(e);if(!a)return null;const s=r==="strict"?(l=a.internals.handleBounds)==null?void 0:l[t]:[...((h=a.internals.handleBounds)==null?void 0:h.source)??[],...((d=a.internals.handleBounds)==null?void 0:d.target)??[]],c=(n?s==null?void 0:s.find(p=>p.id===n):s==null?void 0:s[0])??null;return c&&i?{...c,...Qd(a,c,c.position,!0)}:c}function IJ(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function GRe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const AJ=()=>!0;function KRe(e,{connectionMode:t,connectionRadius:n,handleId:o,nodeId:r,edgeUpdaterType:i,isTarget:a,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:h,flowId:d,panBy:p,cancelConnection:y,onConnectStart:g,onConnect:k,onConnectEnd:x,isValidConnection:v=AJ,onReconnectEnd:M,updateConnection:w,getTransform:b,getFromHandle:C,autoPanSpeed:_,dragThreshold:S=1,handleDomNode:L}){const j=kJ(e.target);let I=0,R;const{x:E,y:V}=ir(e),$=IJ(i,L),T=s==null?void 0:s.getBoundingClientRect();let D=!1;if(!T||!$)return;const F=NJ(r,$,o,c,t);if(!F)return;let z=ir(e,T),A=!1,N=null,W=!1,O=null;function P(){if(!h||!T)return;const[ve,ke]=pJ(z,T,_);p({x:ve,y:ke}),I=requestAnimationFrame(P)}const Y={...F,nodeId:r,type:$,position:F.position},Z=c.get(r);let ae={inProgress:!0,isValid:null,from:Qd(Z,Y,ue.Left,!0),fromHandle:Y,fromPosition:Y.position,fromNode:Z,to:z,toHandle:null,toPosition:DU[Y.position],toNode:null,pointer:z};function oe(){D=!0,w(ae),g==null||g(e,{nodeId:r,handleId:o,handleType:$})}S===0&&oe();function re(ve){if(!D){const{x:pe,y:me}=ir(ve),Ie=pe-E,Ue=me-V;if(!(Ie*Ie+Ue*Ue>S*S))return;oe()}if(!C()||!Y){se(ve);return}const ke=b();z=ir(ve,T),R=WRe(Vf(z,ke,!1,[1,1]),n,c,Y),A||(P(),A=!0);const ge=EJ(ve,{handle:R,connectionMode:t,fromNodeId:r,fromHandleId:o,fromType:a?"target":"source",isValidConnection:v,doc:j,lib:l,flowId:d,nodeLookup:c});O=ge.handleDomNode,N=ge.connection,W=GRe(!!R,ge.isValid);const Pe=c.get(r),Be=Pe?Qd(Pe,Y,ue.Left,!0):ae.from,De={...ae,from:Be,isValid:W,to:ge.toHandle&&W?yz({x:ge.toHandle.x,y:ge.toHandle.y},ke):z,toHandle:ge.toHandle,toPosition:W&&ge.toHandle?ge.toHandle.position:DU[Y.position],toNode:ge.toHandle?c.get(ge.toHandle.nodeId):null,pointer:z};w(De),ae=De}function se(ve){if(!("touches"in ve&&ve.touches.length>0)){if(D){(R||O)&&N&&W&&(k==null||k(N));const{inProgress:ke,...ge}=ae,Pe={...ge,toPosition:ae.toHandle?ae.toPosition:null};x==null||x(ve,Pe),i&&(M==null||M(ve,Pe))}y(),cancelAnimationFrame(I),A=!1,W=!1,N=null,O=null,j.removeEventListener("mousemove",re),j.removeEventListener("mouseup",se),j.removeEventListener("touchmove",re),j.removeEventListener("touchend",se)}}j.addEventListener("mousemove",re),j.addEventListener("mouseup",se),j.addEventListener("touchmove",re),j.addEventListener("touchend",se)}function EJ(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:r,fromType:i,doc:a,lib:s,flowId:c,isValidConnection:l=AJ,nodeLookup:h}){const d=i==="target",p=t?a.querySelector(`.${s}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:g}=ir(e),k=a.elementFromPoint(y,g),x=k!=null&&k.classList.contains(`${s}-flow__handle`)?k:p,v={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const M=IJ(void 0,x),w=x.getAttribute("data-nodeid"),b=x.getAttribute("data-handleid"),C=x.classList.contains("connectable"),_=x.classList.contains("connectableend");if(!w||!M)return v;const S={source:d?w:o,sourceHandle:d?b:r,target:d?o:w,targetHandle:d?r:b};v.connection=S;const j=C&&_&&(n===O0.Strict?d&&M==="source"||!d&&M==="target":w!==o||b!==r);v.isValid=j&&l(S),v.toHandle=NJ(w,M,b,h,n,!0)}return v}const iO={onPointerDown:KRe,isValid:EJ};function XRe({domNode:e,panZoom:t,getTransform:n,getViewScale:o}){const r=fo(e);function i({translateExtent:s,width:c,height:l,zoomStep:h=1,pannable:d=!0,zoomable:p=!0,inversePan:y=!1}){const g=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const b=n(),C=w.sourceEvent.ctrlKey&&kf()?10:1,_=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*h,S=b[2]*Math.pow(2,_*C);t.scaleTo(S)};let k=[0,0];const x=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(k=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},v=w=>{const b=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const C=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],_=[C[0]-k[0],C[1]-k[1]];k=C;const S=o()*Math.max(b[2],Math.log(b[2]))*(y?-1:1),L={x:b[0]-_[0]*S,y:b[1]-_[1]*S},j=[[0,0],[c,l]];t.setViewportConstrained({x:L.x,y:L.y,zoom:b[2]},j,s)},M=aJ().on("start",x).on("zoom",d?v:null).on("zoom.wheel",p?g:null);r.call(M,{})}function a(){r.on("zoom",null)}return{update:i,destroy:a,pointer:er}}const wR=e=>({x:e.x,y:e.y,zoom:e.k}),eD=({x:e,y:t,zoom:n})=>gR.translate(e,t).scale(n),i0=(e,t)=>e.target.closest(`.${t}`),jJ=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),ZRe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tD=(e,t=0,n=ZRe,o=()=>{})=>{const r=typeof t=="number"&&t>0;return r||o(),r?e.transition().duration(t).ease(n).on("end",o):e},$J=e=>{const t=e.ctrlKey&&kf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YRe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:o,panOnScrollMode:r,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return h=>{if(i0(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(h.ctrlKey&&a){const x=er(h),v=$J(h),M=d*Math.pow(2,v);o.scaleTo(n,M,x,h);return}const p=h.deltaMode===1?20:1;let y=r===Vd.Vertical?0:h.deltaX*p,g=r===Vd.Horizontal?0:h.deltaY*p;!kf()&&h.shiftKey&&r!==Vd.Vertical&&(y=h.deltaY*p,g=0),o.translateBy(n,-(y/d)*i,-(g/d)*i,{internal:!0});const k=wR(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,k),e.panScrollTimeout=setTimeout(()=>{l==null||l(h,k),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s==null||s(h,k))}}function QRe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(o,r){const i=o.type==="wheel",a=!t&&i&&!o.ctrlKey,s=i0(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),a||s)return null;o.preventDefault(),n.call(this,o,r)}}function JRe({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return o=>{var i,a,s;if((i=o.sourceEvent)!=null&&i.internal)return;const r=wR(o.transform);e.mouseButton=((a=o.sourceEvent)==null?void 0:a.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=r,((s=o.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(o.sourceEvent,r))}}function eTe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:o,onPanZoom:r}){return i=>{var a,s;e.usedRightMouseButton=!!(n&&jJ(t,e.mouseButton??0)),(a=i.sourceEvent)!=null&&a.sync||o([i.transform.x,i.transform.y,i.transform.k]),r&&!((s=i.sourceEvent)!=null&&s.internal)&&(r==null||r(i.sourceEvent,wR(i.transform)))}}function tTe({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:r,onPaneContextMenu:i}){return a=>{var s;if(!((s=a.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,i&&jJ(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,o(!1),r)){const c=wR(a.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{r==null||r(a.sourceEvent,c)},n?150:0)}}}function nTe({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:s,noPanClassName:c,lib:l,connectionInProgress:h}){return d=>{var x;const p=e||t,y=n&&d.ctrlKey,g=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(i0(d,`${l}-flow__node`)||i0(d,`${l}-flow__edge`)))return!0;if(!o&&!p&&!r&&!i&&!n||a||h&&!g||i0(d,s)&&g||i0(d,c)&&(!g||r&&g&&!e)||!n&&d.ctrlKey&&g)return!1;if(!n&&d.type==="touchstart"&&((x=d.touches)==null?void 0:x.length)>1)return d.preventDefault(),!1;if(!p&&!r&&!y&&g||!o&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(o)&&!o.includes(d.button)&&d.type==="mousedown")return!1;const k=Array.isArray(o)&&o.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||g)&&k}}function oTe({domNode:e,minZoom:t,maxZoom:n,translateExtent:o,viewport:r,onPanZoom:i,onPanZoomStart:a,onPanZoomEnd:s,onDraggingChange:c}){const l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),d=aJ().scaleExtent([t,n]).translateExtent(o),p=fo(e).call(d);M({x:r.x,y:r.y,zoom:q0(r.zoom,t,n)},[[0,0],[h.width,h.height]],o);const y=p.on("wheel.zoom"),g=p.on("dblclick.zoom");d.wheelDelta($J);function k(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).transform(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function x({noWheelClassName:R,noPanClassName:E,onPaneContextMenu:V,userSelectionActive:$,panOnScroll:T,panOnDrag:D,panOnScrollMode:F,panOnScrollSpeed:z,preventScrolling:A,zoomOnPinch:N,zoomOnScroll:W,zoomOnDoubleClick:O,zoomActivationKeyPressed:P,lib:Y,onTransformChange:Z,connectionInProgress:te,paneClickDistance:ae,selectionOnDrag:oe}){$&&!l.isZoomingOrPanning&&v();const re=T&&!P&&!$;d.clickDistance(oe?1/0:!rr(ae)||ae<0?0:ae);const se=re?YRe({zoomPanValues:l,noWheelClassName:R,d3Selection:p,d3Zoom:d,panOnScrollMode:F,panOnScrollSpeed:z,zoomOnPinch:N,onPanZoomStart:a,onPanZoom:i,onPanZoomEnd:s}):QRe({noWheelClassName:R,preventScrolling:A,d3ZoomHandler:y});if(p.on("wheel.zoom",se,{passive:!1}),!$){const ke=JRe({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:a});d.on("start",ke);const ge=eTe({zoomPanValues:l,panOnDrag:D,onPaneContextMenu:!!V,onPanZoom:i,onTransformChange:Z});d.on("zoom",ge);const Pe=tTe({zoomPanValues:l,panOnDrag:D,panOnScroll:T,onPaneContextMenu:V,onPanZoomEnd:s,onDraggingChange:c});d.on("end",Pe)}const ve=nTe({zoomActivationKeyPressed:P,panOnDrag:D,zoomOnScroll:W,panOnScroll:T,zoomOnDoubleClick:O,zoomOnPinch:N,userSelectionActive:$,noPanClassName:E,noWheelClassName:R,lib:Y,connectionInProgress:te});d.filter(ve),O?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function v(){d.on("zoom",null)}async function M(R,E,V){const $=eD(R),T=d==null?void 0:d.constrain()($,E,V);return T&&await k(T),new Promise(D=>D(T))}async function w(R,E){const V=eD(R);return await k(V,E),new Promise($=>$(V))}function b(R){if(p){const E=eD(R),V=p.property("__zoom");(V.k!==R.zoom||V.x!==R.x||V.y!==R.y)&&(d==null||d.transform(p,E,null,{sync:!0}))}}function C(){const R=p?iJ(p.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function _(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).scaleTo(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function S(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).scaleBy(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function L(R){d==null||d.scaleExtent(R)}function j(R){d==null||d.translateExtent(R)}function I(R){const E=!rr(R)||R<0?0:R;d==null||d.clickDistance(E)}return{update:x,destroy:v,setViewport:w,setViewportConstrained:M,getViewport:C,scaleTo:_,scaleBy:S,setScaleExtent:L,setTranslateExtent:j,syncViewport:b,setClickDistance:I}}var Ja;(function(e){e.Line="line",e.Handle="handle"})(Ja||(Ja={}));function rTe({width:e,prevWidth:t,height:n,prevHeight:o,affectsX:r,affectsY:i}){const a=e-t,s=n-o,c=[a>0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&r&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function YU(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),r=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:o,affectsY:r}}function pa(e,t){return Math.max(0,t-e)}function ya(e,t){return Math.max(0,e-t)}function qp(e,t,n){return Math.max(0,t-e,e-n)}function QU(e,t){return e?!t:t}function iTe(e,t,n,o,r,i,a,s){let{affectsX:c,affectsY:l}=t;const{isHorizontal:h,isVertical:d}=t,p=h&&d,{xSnapped:y,ySnapped:g}=n,{minWidth:k,maxWidth:x,minHeight:v,maxHeight:M}=o,{x:w,y:b,width:C,height:_,aspectRatio:S}=e;let L=Math.floor(h?y-e.pointerX:0),j=Math.floor(d?g-e.pointerY:0);const I=C+(c?-L:L),R=_+(l?-j:j),E=-i[0]*C,V=-i[1]*_;let $=qp(I,k,x),T=qp(R,v,M);if(a){let z=0,A=0;c&&L<0?z=pa(w+L+E,a[0][0]):!c&&L>0&&(z=ya(w+I+E,a[1][0])),l&&j<0?A=pa(b+j+V,a[0][1]):!l&&j>0&&(A=ya(b+R+V,a[1][1])),$=Math.max($,z),T=Math.max(T,A)}if(s){let z=0,A=0;c&&L>0?z=ya(w+L,s[0][0]):!c&&L<0&&(z=pa(w+I,s[1][0])),l&&j>0?A=ya(b+j,s[0][1]):!l&&j<0&&(A=pa(b+R,s[1][1])),$=Math.max($,z),T=Math.max(T,A)}if(r){if(h){const z=qp(I/S,v,M)*S;if($=Math.max($,z),a){let A=0;!c&&!l||c&&!l&&p?A=ya(b+V+I/S,a[1][1])*S:A=pa(b+V+(c?L:-L)/S,a[0][1])*S,$=Math.max($,A)}if(s){let A=0;!c&&!l||c&&!l&&p?A=pa(b+I/S,s[1][1])*S:A=ya(b+(c?L:-L)/S,s[0][1])*S,$=Math.max($,A)}}if(d){const z=qp(R*S,k,x)/S;if(T=Math.max(T,z),a){let A=0;!c&&!l||l&&!c&&p?A=ya(w+R*S+E,a[1][0])/S:A=pa(w+(l?j:-j)*S+E,a[0][0])/S,T=Math.max(T,A)}if(s){let A=0;!c&&!l||l&&!c&&p?A=pa(w+R*S,s[1][0])/S:A=ya(w+(l?j:-j)*S,s[0][0])/S,T=Math.max(T,A)}}}j=j+(j<0?T:-T),L=L+(L<0?$:-$),r&&(p?I>R*S?j=(QU(c,l)?-L:L)/S:L=(QU(c,l)?-j:j)*S:h?(j=L/S,l=c):(L=j*S,c=l));const D=c?w+L:w,F=l?b+j:b;return{width:C+(c?-L:L),height:_+(l?-j:j),x:i[0]*L*(c?-1:1)+D,y:i[1]*j*(l?-1:1)+F}}const PJ={width:0,height:0,x:0,y:0},aTe={...PJ,pointerX:0,pointerY:0,aspectRatio:1};function sTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function cTe(e,t,n){const o=t.position.x+e.position.x,r=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,s=n[0]*i,c=n[1]*a;return[[o-s,r-c],[o+i-s,r+a-c]]}function lTe({domNode:e,nodeId:t,getStoreItems:n,onChange:o,onEnd:r}){const i=fo(e);let a={controlDirection:YU("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:l,boundaries:h,keepAspectRatio:d,resizeDirection:p,onResizeStart:y,onResize:g,onResizeEnd:k,shouldResize:x}){let v={...PJ},M={...aTe};a={boundaries:h,resizeDirection:p,keepAspectRatio:d,controlDirection:YU(l)};let w,b=null,C=[],_,S,L,j=!1;const I=BQ().on("start",R=>{const{nodeLookup:E,transform:V,snapGrid:$,snapToGrid:T,nodeOrigin:D,paneDomNode:F}=n();if(w=E.get(t),!w)return;b=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:A}=O2(R.sourceEvent,{transform:V,snapGrid:$,snapToGrid:T,containerBounds:b});v={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},M={...v,pointerX:z,pointerY:A,aspectRatio:v.width/v.height},_=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(_=E.get(w.parentId),S=_&&w.extent==="parent"?sTe(_):void 0),C=[],L=void 0;for(const[N,W]of E)if(W.parentId===t&&(C.push({id:N,position:{...W.position},extent:W.extent}),W.extent==="parent"||W.expandParent)){const O=cTe(W,w,W.origin??D);L?L=[[Math.min(O[0][0],L[0][0]),Math.min(O[0][1],L[0][1])],[Math.max(O[1][0],L[1][0]),Math.max(O[1][1],L[1][1])]]:L=O}y==null||y(R,{...v})}).on("drag",R=>{const{transform:E,snapGrid:V,snapToGrid:$,nodeOrigin:T}=n(),D=O2(R.sourceEvent,{transform:E,snapGrid:V,snapToGrid:$,containerBounds:b}),F=[];if(!w)return;const{x:z,y:A,width:N,height:W}=v,O={},P=w.origin??T,{width:Y,height:Z,x:te,y:ae}=iTe(M,a.controlDirection,D,a.boundaries,a.keepAspectRatio,P,S,L),oe=Y!==N,re=Z!==W,se=te!==z&&oe,ve=ae!==A&&re;if(!se&&!ve&&!oe&&!re)return;if((se||ve||P[0]===1||P[1]===1)&&(O.x=se?te:v.x,O.y=ve?ae:v.y,v.x=O.x,v.y=O.y,C.length>0)){const Be=te-z,De=ae-A;for(const pe of C)pe.position={x:pe.position.x-Be+P[0]*(Y-N),y:pe.position.y-De+P[1]*(Z-W)},F.push(pe)}if((oe||re)&&(O.width=oe&&(!a.resizeDirection||a.resizeDirection==="horizontal")?Y:v.width,O.height=re&&(!a.resizeDirection||a.resizeDirection==="vertical")?Z:v.height,v.width=O.width,v.height=O.height),_&&w.expandParent){const Be=P[0]*(O.width??0);O.x&&O.x<Be&&(v.x=Be,M.x=M.x-(O.x-Be));const De=P[1]*(O.height??0);O.y&&O.y<De&&(v.y=De,M.y=M.y-(O.y-De))}const ke=rTe({width:v.width,prevWidth:N,height:v.height,prevHeight:W,affectsX:a.controlDirection.affectsX,affectsY:a.controlDirection.affectsY}),ge={...v,direction:ke};(x==null?void 0:x(R,ge))!==!1&&(j=!0,g==null||g(R,ge),o(O,F))}).on("end",R=>{j&&(k==null||k(R,{...v}),r==null||r({...v}),j=!1)});i.call(I)}function c(){i.on(".drag",null)}return{update:s,destroy:c}}var zJ={exports:{}},RJ={},TJ={exports:{}},DJ={};/**
8446
+ */const bEe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ny,AArrowDownIcon:Ny,AArrowUp:Iy,AArrowUpIcon:Iy,ALargeSmall:Ay,ALargeSmallIcon:Ay,Accessibility:Ey,AccessibilityIcon:Ey,Activity:jy,ActivityIcon:jy,ActivitySquare:h1,ActivitySquareIcon:h1,AirVent:$y,AirVentIcon:$y,Airplay:Py,AirplayIcon:Py,AlarmCheck:Es,AlarmCheckIcon:Es,AlarmClock:Ry,AlarmClockCheck:Es,AlarmClockCheckIcon:Es,AlarmClockIcon:Ry,AlarmClockMinus:js,AlarmClockMinusIcon:js,AlarmClockOff:zy,AlarmClockOffIcon:zy,AlarmClockPlus:$s,AlarmClockPlusIcon:$s,AlarmMinus:js,AlarmMinusIcon:js,AlarmPlus:$s,AlarmPlusIcon:$s,AlarmSmoke:Ty,AlarmSmokeIcon:Ty,Album:Dy,AlbumIcon:Dy,AlertCircle:ba,AlertCircleIcon:ba,AlertOctagon:Fl,AlertOctagonIcon:Fl,AlertTriangle:qr,AlertTriangleIcon:qr,AlignCenter:Sa,AlignCenterHorizontal:Oy,AlignCenterHorizontalIcon:Oy,AlignCenterIcon:Sa,AlignCenterVertical:Hy,AlignCenterVerticalIcon:Hy,AlignEndHorizontal:Fy,AlignEndHorizontalIcon:Fy,AlignEndVertical:qy,AlignEndVerticalIcon:qy,AlignHorizontalDistributeCenter:Vy,AlignHorizontalDistributeCenterIcon:Vy,AlignHorizontalDistributeEnd:By,AlignHorizontalDistributeEndIcon:By,AlignHorizontalDistributeStart:Uy,AlignHorizontalDistributeStartIcon:Uy,AlignHorizontalJustifyCenter:Wy,AlignHorizontalJustifyCenterIcon:Wy,AlignHorizontalJustifyEnd:Ky,AlignHorizontalJustifyEndIcon:Ky,AlignHorizontalJustifyStart:Gy,AlignHorizontalJustifyStartIcon:Gy,AlignHorizontalSpaceAround:Xy,AlignHorizontalSpaceAroundIcon:Xy,AlignHorizontalSpaceBetween:Zy,AlignHorizontalSpaceBetweenIcon:Zy,AlignJustify:ud,AlignJustifyIcon:ud,AlignLeft:Zo,AlignLeftIcon:Zo,AlignRight:La,AlignRightIcon:La,AlignStartHorizontal:Yy,AlignStartHorizontalIcon:Yy,AlignStartVertical:Qy,AlignStartVerticalIcon:Qy,AlignVerticalDistributeCenter:Jy,AlignVerticalDistributeCenterIcon:Jy,AlignVerticalDistributeEnd:em,AlignVerticalDistributeEndIcon:em,AlignVerticalDistributeStart:tm,AlignVerticalDistributeStartIcon:tm,AlignVerticalJustifyCenter:nm,AlignVerticalJustifyCenterIcon:nm,AlignVerticalJustifyEnd:om,AlignVerticalJustifyEndIcon:om,AlignVerticalJustifyStart:rm,AlignVerticalJustifyStartIcon:rm,AlignVerticalSpaceAround:im,AlignVerticalSpaceAroundIcon:im,AlignVerticalSpaceBetween:am,AlignVerticalSpaceBetweenIcon:am,Ambulance:sm,AmbulanceIcon:sm,Ampersand:cm,AmpersandIcon:cm,Ampersands:lm,AmpersandsIcon:lm,Amphora:dm,AmphoraIcon:dm,Anchor:um,AnchorIcon:um,Angry:hm,AngryIcon:hm,Annoyed:fm,AnnoyedIcon:fm,Antenna:pm,AntennaIcon:pm,Anvil:ym,AnvilIcon:ym,Aperture:mm,ApertureIcon:mm,AppWindow:km,AppWindowIcon:km,AppWindowMac:gm,AppWindowMacIcon:gm,Apple:vm,AppleIcon:vm,Archive:Mm,ArchiveIcon:Mm,ArchiveRestore:xm,ArchiveRestoreIcon:xm,ArchiveX:wm,ArchiveXIcon:wm,AreaChart:Ks,AreaChartIcon:Ks,Armchair:bm,ArmchairIcon:bm,ArrowBigDown:Cm,ArrowBigDownDash:_m,ArrowBigDownDashIcon:_m,ArrowBigDownIcon:Cm,ArrowBigLeft:Lm,ArrowBigLeftDash:Sm,ArrowBigLeftDashIcon:Sm,ArrowBigLeftIcon:Lm,ArrowBigRight:Im,ArrowBigRightDash:Nm,ArrowBigRightDashIcon:Nm,ArrowBigRightIcon:Im,ArrowBigUp:Em,ArrowBigUpDash:Am,ArrowBigUpDashIcon:Am,ArrowBigUpIcon:Em,ArrowDown:Fm,ArrowDown01:jm,ArrowDown01Icon:jm,ArrowDown10:$m,ArrowDown10Icon:$m,ArrowDownAZ:Ps,ArrowDownAZIcon:Ps,ArrowDownAz:Ps,ArrowDownAzIcon:Ps,ArrowDownCircle:cc,ArrowDownCircleIcon:cc,ArrowDownFromLine:Pm,ArrowDownFromLineIcon:Pm,ArrowDownIcon:Fm,ArrowDownLeft:Rm,ArrowDownLeftFromCircle:lc,ArrowDownLeftFromCircleIcon:lc,ArrowDownLeftFromSquare:g1,ArrowDownLeftFromSquareIcon:g1,ArrowDownLeftIcon:Rm,ArrowDownLeftSquare:f1,ArrowDownLeftSquareIcon:f1,ArrowDownNarrowWide:zm,ArrowDownNarrowWideIcon:zm,ArrowDownRight:Dm,ArrowDownRightFromCircle:uc,ArrowDownRightFromCircleIcon:uc,ArrowDownRightFromSquare:k1,ArrowDownRightFromSquareIcon:k1,ArrowDownRightIcon:Dm,ArrowDownRightSquare:p1,ArrowDownRightSquareIcon:p1,ArrowDownSquare:y1,ArrowDownSquareIcon:y1,ArrowDownToDot:Tm,ArrowDownToDotIcon:Tm,ArrowDownToLine:Hm,ArrowDownToLineIcon:Hm,ArrowDownUp:Om,ArrowDownUpIcon:Om,ArrowDownWideNarrow:zs,ArrowDownWideNarrowIcon:zs,ArrowDownZA:Rs,ArrowDownZAIcon:Rs,ArrowDownZa:Rs,ArrowDownZaIcon:Rs,ArrowLeft:Bm,ArrowLeftCircle:dc,ArrowLeftCircleIcon:dc,ArrowLeftFromLine:qm,ArrowLeftFromLineIcon:qm,ArrowLeftIcon:Bm,ArrowLeftRight:d2,ArrowLeftRightIcon:d2,ArrowLeftSquare:m1,ArrowLeftSquareIcon:m1,ArrowLeftToLine:Vm,ArrowLeftToLineIcon:Vm,ArrowRight:y0,ArrowRightCircle:pc,ArrowRightCircleIcon:pc,ArrowRightFromLine:Um,ArrowRightFromLineIcon:Um,ArrowRightIcon:y0,ArrowRightLeft:Wm,ArrowRightLeftIcon:Wm,ArrowRightSquare:w1,ArrowRightSquareIcon:w1,ArrowRightToLine:Gm,ArrowRightToLineIcon:Gm,ArrowUp:og,ArrowUp01:Km,ArrowUp01Icon:Km,ArrowUp10:Xm,ArrowUp10Icon:Xm,ArrowUpAZ:Ts,ArrowUpAZIcon:Ts,ArrowUpAz:Ts,ArrowUpAzIcon:Ts,ArrowUpCircle:yc,ArrowUpCircleIcon:yc,ArrowUpDown:Zm,ArrowUpDownIcon:Zm,ArrowUpFromDot:Ym,ArrowUpFromDotIcon:Ym,ArrowUpFromLine:Qm,ArrowUpFromLineIcon:Qm,ArrowUpIcon:og,ArrowUpLeft:Jm,ArrowUpLeftFromCircle:hc,ArrowUpLeftFromCircleIcon:hc,ArrowUpLeftFromSquare:v1,ArrowUpLeftFromSquareIcon:v1,ArrowUpLeftIcon:Jm,ArrowUpLeftSquare:M1,ArrowUpLeftSquareIcon:M1,ArrowUpNarrowWide:Ds,ArrowUpNarrowWideIcon:Ds,ArrowUpRight:tg,ArrowUpRightFromCircle:fc,ArrowUpRightFromCircleIcon:fc,ArrowUpRightFromSquare:x1,ArrowUpRightFromSquareIcon:x1,ArrowUpRightIcon:tg,ArrowUpRightSquare:C1,ArrowUpRightSquareIcon:C1,ArrowUpSquare:b1,ArrowUpSquareIcon:b1,ArrowUpToLine:eg,ArrowUpToLineIcon:eg,ArrowUpWideNarrow:ng,ArrowUpWideNarrowIcon:ng,ArrowUpZA:Hs,ArrowUpZAIcon:Hs,ArrowUpZa:Hs,ArrowUpZaIcon:Hs,ArrowsUpFromLine:rg,ArrowsUpFromLineIcon:rg,Asterisk:ig,AsteriskIcon:ig,AsteriskSquare:_1,AsteriskSquareIcon:_1,AtSign:ag,AtSignIcon:ag,Atom:sg,AtomIcon:sg,AudioLines:cg,AudioLinesIcon:cg,AudioWaveform:dg,AudioWaveformIcon:dg,Award:lg,AwardIcon:lg,Axe:ug,AxeIcon:ug,Axis3D:Os,Axis3DIcon:Os,Axis3d:Os,Axis3dIcon:Os,Baby:hg,BabyIcon:hg,Backpack:fg,BackpackIcon:fg,Badge:Ig,BadgeAlert:yg,BadgeAlertIcon:yg,BadgeCent:pg,BadgeCentIcon:pg,BadgeCheck:Fs,BadgeCheckIcon:Fs,BadgeDollarSign:mg,BadgeDollarSignIcon:mg,BadgeEuro:kg,BadgeEuroIcon:kg,BadgeHelp:qs,BadgeHelpIcon:qs,BadgeIcon:Ig,BadgeIndianRupee:gg,BadgeIndianRupeeIcon:gg,BadgeInfo:vg,BadgeInfoIcon:vg,BadgeJapaneseYen:xg,BadgeJapaneseYenIcon:xg,BadgeMinus:wg,BadgeMinusIcon:wg,BadgePercent:Mg,BadgePercentIcon:Mg,BadgePlus:bg,BadgePlusIcon:bg,BadgePoundSterling:_g,BadgePoundSterlingIcon:_g,BadgeQuestionMark:qs,BadgeQuestionMarkIcon:qs,BadgeRussianRuble:Cg,BadgeRussianRubleIcon:Cg,BadgeSwissFranc:Sg,BadgeSwissFrancIcon:Sg,BadgeTurkishLira:Lg,BadgeTurkishLiraIcon:Lg,BadgeX:Ng,BadgeXIcon:Ng,BaggageClaim:Ag,BaggageClaimIcon:Ag,Balloon:Eg,BalloonIcon:Eg,Ban:u2,BanIcon:u2,Banana:jg,BananaIcon:jg,Bandage:$g,BandageIcon:$g,Banknote:Tg,BanknoteArrowDown:Pg,BanknoteArrowDownIcon:Pg,BanknoteArrowUp:zg,BanknoteArrowUpIcon:zg,BanknoteIcon:Tg,BanknoteX:Rg,BanknoteXIcon:Rg,BarChart:nc,BarChart2:oc,BarChart2Icon:oc,BarChart3:ec,BarChart3Icon:ec,BarChart4:Js,BarChart4Icon:Js,BarChartBig:Qs,BarChartBigIcon:Qs,BarChartHorizontal:Zs,BarChartHorizontalBig:Xs,BarChartHorizontalBigIcon:Xs,BarChartHorizontalIcon:Zs,BarChartIcon:nc,Barcode:Dg,BarcodeIcon:Dg,Barrel:Hg,BarrelIcon:Hg,Baseline:Og,BaselineIcon:Og,Bath:Fg,BathIcon:Fg,Battery:Kg,BatteryCharging:qg,BatteryChargingIcon:qg,BatteryFull:Vg,BatteryFullIcon:Vg,BatteryIcon:Kg,BatteryLow:Bg,BatteryLowIcon:Bg,BatteryMedium:Ug,BatteryMediumIcon:Ug,BatteryPlus:Wg,BatteryPlusIcon:Wg,BatteryWarning:Gg,BatteryWarningIcon:Gg,Beaker:Xg,BeakerIcon:Xg,Bean:Yg,BeanIcon:Yg,BeanOff:Zg,BeanOffIcon:Zg,Bed:ek,BedDouble:Qg,BedDoubleIcon:Qg,BedIcon:ek,BedSingle:Jg,BedSingleIcon:Jg,Beef:tk,BeefIcon:tk,Beer:ok,BeerIcon:ok,BeerOff:nk,BeerOffIcon:nk,Bell:dk,BellDot:rk,BellDotIcon:rk,BellElectric:ik,BellElectricIcon:ik,BellIcon:dk,BellMinus:ak,BellMinusIcon:ak,BellOff:sk,BellOffIcon:sk,BellPlus:ck,BellPlusIcon:ck,BellRing:lk,BellRingIcon:lk,BetweenHorizonalEnd:Vs,BetweenHorizonalEndIcon:Vs,BetweenHorizonalStart:Bs,BetweenHorizonalStartIcon:Bs,BetweenHorizontalEnd:Vs,BetweenHorizontalEndIcon:Vs,BetweenHorizontalStart:Bs,BetweenHorizontalStartIcon:Bs,BetweenVerticalEnd:uk,BetweenVerticalEndIcon:uk,BetweenVerticalStart:hk,BetweenVerticalStartIcon:hk,BicepsFlexed:fk,BicepsFlexedIcon:fk,Bike:pk,BikeIcon:pk,Binary:yk,BinaryIcon:yk,Binoculars:mk,BinocularsIcon:mk,Biohazard:gk,BiohazardIcon:gk,Bird:kk,BirdIcon:kk,Birdhouse:vk,BirdhouseIcon:vk,Bitcoin:xk,BitcoinIcon:xk,Blend:wk,BlendIcon:wk,Blinds:Mk,BlindsIcon:Mk,Blocks:bk,BlocksIcon:bk,Bluetooth:Lk,BluetoothConnected:_k,BluetoothConnectedIcon:_k,BluetoothIcon:Lk,BluetoothOff:Ck,BluetoothOffIcon:Ck,BluetoothSearching:Sk,BluetoothSearchingIcon:Sk,Bold:Nk,BoldIcon:Nk,Bolt:Ik,BoltIcon:Ik,Bomb:Ak,BombIcon:Ak,Bone:Ek,BoneIcon:Ek,Book:n4,BookA:jk,BookAIcon:jk,BookAlert:$k,BookAlertIcon:$k,BookAudio:Pk,BookAudioIcon:Pk,BookCheck:zk,BookCheckIcon:zk,BookCopy:Rk,BookCopyIcon:Rk,BookDashed:Us,BookDashedIcon:Us,BookDown:Tk,BookDownIcon:Tk,BookHeadphones:Dk,BookHeadphonesIcon:Dk,BookHeart:Hk,BookHeartIcon:Hk,BookIcon:n4,BookImage:Ok,BookImageIcon:Ok,BookKey:Fk,BookKeyIcon:Fk,BookLock:qk,BookLockIcon:qk,BookMarked:Vk,BookMarkedIcon:Vk,BookMinus:Bk,BookMinusIcon:Bk,BookOpen:Gk,BookOpenCheck:Uk,BookOpenCheckIcon:Uk,BookOpenIcon:Gk,BookOpenText:Wk,BookOpenTextIcon:Wk,BookPlus:Kk,BookPlusIcon:Kk,BookSearch:Xk,BookSearchIcon:Xk,BookTemplate:Us,BookTemplateIcon:Us,BookText:Zk,BookTextIcon:Zk,BookType:Yk,BookTypeIcon:Yk,BookUp:Jk,BookUp2:Qk,BookUp2Icon:Qk,BookUpIcon:Jk,BookUser:e4,BookUserIcon:e4,BookX:t4,BookXIcon:t4,Bookmark:s4,BookmarkCheck:o4,BookmarkCheckIcon:o4,BookmarkIcon:s4,BookmarkMinus:r4,BookmarkMinusIcon:r4,BookmarkPlus:i4,BookmarkPlusIcon:i4,BookmarkX:a4,BookmarkXIcon:a4,BoomBox:c4,BoomBoxIcon:c4,Bot:d4,BotIcon:d4,BotMessageSquare:l4,BotMessageSquareIcon:l4,BotOff:u4,BotOffIcon:u4,BottleWine:h4,BottleWineIcon:h4,BowArrow:f4,BowArrowIcon:f4,Box:p4,BoxIcon:p4,BoxSelect:R1,BoxSelectIcon:R1,Boxes:y4,BoxesIcon:y4,Braces:Ws,BracesIcon:Ws,Brackets:m4,BracketsIcon:m4,Brain:v4,BrainCircuit:g4,BrainCircuitIcon:g4,BrainCog:k4,BrainCogIcon:k4,BrainIcon:v4,BrickWall:M4,BrickWallFire:x4,BrickWallFireIcon:x4,BrickWallIcon:M4,BrickWallShield:w4,BrickWallShieldIcon:w4,Briefcase:S4,BriefcaseBusiness:b4,BriefcaseBusinessIcon:b4,BriefcaseConveyorBelt:_4,BriefcaseConveyorBeltIcon:_4,BriefcaseIcon:S4,BriefcaseMedical:C4,BriefcaseMedicalIcon:C4,BringToFront:L4,BringToFrontIcon:L4,Brush:A4,BrushCleaning:N4,BrushCleaningIcon:N4,BrushIcon:A4,Bubbles:I4,BubblesIcon:I4,Bug:$4,BugIcon:$4,BugOff:E4,BugOffIcon:E4,BugPlay:j4,BugPlayIcon:j4,Building:P4,Building2:z4,Building2Icon:z4,BuildingIcon:P4,Bus:T4,BusFront:R4,BusFrontIcon:R4,BusIcon:T4,Cable:H4,CableCar:D4,CableCarIcon:D4,CableIcon:H4,Cake:F4,CakeIcon:F4,CakeSlice:O4,CakeSliceIcon:O4,Calculator:q4,CalculatorIcon:q4,Calendar:l5,Calendar1:V4,Calendar1Icon:V4,CalendarArrowDown:B4,CalendarArrowDownIcon:B4,CalendarArrowUp:U4,CalendarArrowUpIcon:U4,CalendarCheck:G4,CalendarCheck2:W4,CalendarCheck2Icon:W4,CalendarCheckIcon:G4,CalendarClock:K4,CalendarClockIcon:K4,CalendarCog:X4,CalendarCogIcon:X4,CalendarDays:Z4,CalendarDaysIcon:Z4,CalendarFold:Y4,CalendarFoldIcon:Y4,CalendarHeart:Q4,CalendarHeartIcon:Q4,CalendarIcon:l5,CalendarMinus:e5,CalendarMinus2:J4,CalendarMinus2Icon:J4,CalendarMinusIcon:e5,CalendarOff:t5,CalendarOffIcon:t5,CalendarPlus:r5,CalendarPlus2:n5,CalendarPlus2Icon:n5,CalendarPlusIcon:r5,CalendarRange:o5,CalendarRangeIcon:o5,CalendarSearch:i5,CalendarSearchIcon:i5,CalendarSync:a5,CalendarSyncIcon:a5,CalendarX:c5,CalendarX2:s5,CalendarX2Icon:s5,CalendarXIcon:c5,Calendars:d5,CalendarsIcon:d5,Camera:h5,CameraIcon:h5,CameraOff:u5,CameraOffIcon:u5,CandlestickChart:Ys,CandlestickChartIcon:Ys,Candy:y5,CandyCane:f5,CandyCaneIcon:f5,CandyIcon:y5,CandyOff:p5,CandyOffIcon:p5,Cannabis:g5,CannabisIcon:g5,CannabisOff:m5,CannabisOffIcon:m5,Captions:Gs,CaptionsIcon:Gs,CaptionsOff:k5,CaptionsOffIcon:k5,Car:w5,CarFront:v5,CarFrontIcon:v5,CarIcon:w5,CarTaxiFront:x5,CarTaxiFrontIcon:x5,Caravan:M5,CaravanIcon:M5,CardSim:b5,CardSimIcon:b5,Carrot:_5,CarrotIcon:_5,CaseLower:C5,CaseLowerIcon:C5,CaseSensitive:S5,CaseSensitiveIcon:S5,CaseUpper:L5,CaseUpperIcon:L5,CassetteTape:N5,CassetteTapeIcon:N5,Cast:I5,CastIcon:I5,Castle:A5,CastleIcon:A5,Cat:E5,CatIcon:E5,Cctv:j5,CctvIcon:j5,ChartArea:Ks,ChartAreaIcon:Ks,ChartBar:Zs,ChartBarBig:Xs,ChartBarBigIcon:Xs,ChartBarDecreasing:$5,ChartBarDecreasingIcon:$5,ChartBarIcon:Zs,ChartBarIncreasing:P5,ChartBarIncreasingIcon:P5,ChartBarStacked:z5,ChartBarStackedIcon:z5,ChartCandlestick:Ys,ChartCandlestickIcon:Ys,ChartColumn:ec,ChartColumnBig:Qs,ChartColumnBigIcon:Qs,ChartColumnDecreasing:R5,ChartColumnDecreasingIcon:R5,ChartColumnIcon:ec,ChartColumnIncreasing:Js,ChartColumnIncreasingIcon:Js,ChartColumnStacked:T5,ChartColumnStackedIcon:T5,ChartGantt:D5,ChartGanttIcon:D5,ChartLine:tc,ChartLineIcon:tc,ChartNetwork:H5,ChartNetworkIcon:H5,ChartNoAxesColumn:oc,ChartNoAxesColumnDecreasing:O5,ChartNoAxesColumnDecreasingIcon:O5,ChartNoAxesColumnIcon:oc,ChartNoAxesColumnIncreasing:nc,ChartNoAxesColumnIncreasingIcon:nc,ChartNoAxesCombined:F5,ChartNoAxesCombinedIcon:F5,ChartNoAxesGantt:rc,ChartNoAxesGanttIcon:rc,ChartPie:ic,ChartPieIcon:ic,ChartScatter:ac,ChartScatterIcon:ac,ChartSpline:q5,ChartSplineIcon:q5,Check:Ba,CheckCheck:V5,CheckCheckIcon:V5,CheckCircle:mc,CheckCircle2:_a,CheckCircle2Icon:_a,CheckCircleIcon:mc,CheckIcon:Ba,CheckLine:B5,CheckLineIcon:B5,CheckSquare:L1,CheckSquare2:N1,CheckSquare2Icon:N1,CheckSquareIcon:L1,ChefHat:U5,ChefHatIcon:U5,Cherry:W5,CherryIcon:W5,ChessBishop:G5,ChessBishopIcon:G5,ChessKing:K5,ChessKingIcon:K5,ChessKnight:X5,ChessKnightIcon:X5,ChessPawn:Z5,ChessPawnIcon:Z5,ChessQueen:Y5,ChessQueenIcon:Y5,ChessRook:J5,ChessRookIcon:J5,ChevronDown:Q5,ChevronDownCircle:gc,ChevronDownCircleIcon:gc,ChevronDownIcon:Q5,ChevronDownSquare:I1,ChevronDownSquareIcon:I1,ChevronFirst:ev,ChevronFirstIcon:ev,ChevronLast:tv,ChevronLastIcon:tv,ChevronLeft:nv,ChevronLeftCircle:kc,ChevronLeftCircleIcon:kc,ChevronLeftIcon:nv,ChevronLeftSquare:A1,ChevronLeftSquareIcon:A1,ChevronRight:ov,ChevronRightCircle:vc,ChevronRightCircleIcon:vc,ChevronRightIcon:ov,ChevronRightSquare:j1,ChevronRightSquareIcon:j1,ChevronUp:rv,ChevronUpCircle:xc,ChevronUpCircleIcon:xc,ChevronUpIcon:rv,ChevronUpSquare:E1,ChevronUpSquareIcon:E1,ChevronsDown:av,ChevronsDownIcon:av,ChevronsDownUp:iv,ChevronsDownUpIcon:iv,ChevronsLeft:lv,ChevronsLeftIcon:lv,ChevronsLeftRight:cv,ChevronsLeftRightEllipsis:sv,ChevronsLeftRightEllipsisIcon:sv,ChevronsLeftRightIcon:cv,ChevronsRight:uv,ChevronsRightIcon:uv,ChevronsRightLeft:dv,ChevronsRightLeftIcon:dv,ChevronsUp:fv,ChevronsUpDown:hv,ChevronsUpDownIcon:hv,ChevronsUpIcon:fv,Chrome:sc,ChromeIcon:sc,Chromium:sc,ChromiumIcon:sc,Church:pv,ChurchIcon:pv,Cigarette:mv,CigaretteIcon:mv,CigaretteOff:yv,CigaretteOffIcon:yv,Circle:m0,CircleAlert:ba,CircleAlertIcon:ba,CircleArrowDown:cc,CircleArrowDownIcon:cc,CircleArrowLeft:dc,CircleArrowLeftIcon:dc,CircleArrowOutDownLeft:lc,CircleArrowOutDownLeftIcon:lc,CircleArrowOutDownRight:uc,CircleArrowOutDownRightIcon:uc,CircleArrowOutUpLeft:hc,CircleArrowOutUpLeftIcon:hc,CircleArrowOutUpRight:fc,CircleArrowOutUpRightIcon:fc,CircleArrowRight:pc,CircleArrowRightIcon:pc,CircleArrowUp:yc,CircleArrowUpIcon:yc,CircleCheck:_a,CircleCheckBig:mc,CircleCheckBigIcon:mc,CircleCheckIcon:_a,CircleChevronDown:gc,CircleChevronDownIcon:gc,CircleChevronLeft:kc,CircleChevronLeftIcon:kc,CircleChevronRight:vc,CircleChevronRightIcon:vc,CircleChevronUp:xc,CircleChevronUpIcon:xc,CircleDashed:gv,CircleDashedIcon:gv,CircleDivide:wc,CircleDivideIcon:wc,CircleDollarSign:kv,CircleDollarSignIcon:kv,CircleDot:xv,CircleDotDashed:vv,CircleDotDashedIcon:vv,CircleDotIcon:xv,CircleEllipsis:wv,CircleEllipsisIcon:wv,CircleEqual:Mv,CircleEqualIcon:Mv,CircleFadingArrowUp:bv,CircleFadingArrowUpIcon:bv,CircleFadingPlus:_v,CircleFadingPlusIcon:_v,CircleGauge:Mc,CircleGaugeIcon:Mc,CircleHelp:Xo,CircleHelpIcon:Xo,CircleIcon:m0,CircleMinus:bc,CircleMinusIcon:bc,CircleOff:Cv,CircleOffIcon:Cv,CircleParking:Cc,CircleParkingIcon:Cc,CircleParkingOff:_c,CircleParkingOffIcon:_c,CirclePause:Sc,CirclePauseIcon:Sc,CirclePercent:Lc,CirclePercentIcon:Lc,CirclePile:Sv,CirclePileIcon:Sv,CirclePlay:Nc,CirclePlayIcon:Nc,CirclePlus:Ic,CirclePlusIcon:Ic,CirclePoundSterling:Lv,CirclePoundSterlingIcon:Lv,CirclePower:Ac,CirclePowerIcon:Ac,CircleQuestionMark:Xo,CircleQuestionMarkIcon:Xo,CircleSlash:Nv,CircleSlash2:Ec,CircleSlash2Icon:Ec,CircleSlashIcon:Nv,CircleSlashed:Ec,CircleSlashedIcon:Ec,CircleSmall:Iv,CircleSmallIcon:Iv,CircleStar:Av,CircleStarIcon:Av,CircleStop:$c,CircleStopIcon:$c,CircleUser:Pc,CircleUserIcon:Pc,CircleUserRound:jc,CircleUserRoundIcon:jc,CircleX:zc,CircleXIcon:zc,CircuitBoard:Ev,CircuitBoardIcon:Ev,Citrus:jv,CitrusIcon:jv,Clapperboard:$v,ClapperboardIcon:$v,Clipboard:Vv,ClipboardCheck:Pv,ClipboardCheckIcon:Pv,ClipboardClock:zv,ClipboardClockIcon:zv,ClipboardCopy:Rv,ClipboardCopyIcon:Rv,ClipboardEdit:Tc,ClipboardEditIcon:Tc,ClipboardIcon:Vv,ClipboardList:Tv,ClipboardListIcon:Tv,ClipboardMinus:Dv,ClipboardMinusIcon:Dv,ClipboardPaste:Hv,ClipboardPasteIcon:Hv,ClipboardPen:Tc,ClipboardPenIcon:Tc,ClipboardPenLine:Rc,ClipboardPenLineIcon:Rc,ClipboardPlus:Ov,ClipboardPlusIcon:Ov,ClipboardSignature:Rc,ClipboardSignatureIcon:Rc,ClipboardType:Fv,ClipboardTypeIcon:Fv,ClipboardX:qv,ClipboardXIcon:qv,Clock:cx,Clock1:Bv,Clock10:Uv,Clock10Icon:Uv,Clock11:Wv,Clock11Icon:Wv,Clock12:Gv,Clock12Icon:Gv,Clock1Icon:Bv,Clock2:Kv,Clock2Icon:Kv,Clock3:Xv,Clock3Icon:Xv,Clock4:Zv,Clock4Icon:Zv,Clock5:Yv,Clock5Icon:Yv,Clock6:Qv,Clock6Icon:Qv,Clock7:Jv,Clock7Icon:Jv,Clock8:ex,Clock8Icon:ex,Clock9:tx,Clock9Icon:tx,ClockAlert:nx,ClockAlertIcon:nx,ClockArrowDown:ox,ClockArrowDownIcon:ox,ClockArrowUp:ax,ClockArrowUpIcon:ax,ClockCheck:rx,ClockCheckIcon:rx,ClockFading:ix,ClockFadingIcon:ix,ClockIcon:cx,ClockPlus:sx,ClockPlusIcon:sx,ClosedCaption:lx,ClosedCaptionIcon:lx,Cloud:h2,CloudAlert:dx,CloudAlertIcon:dx,CloudBackup:ux,CloudBackupIcon:ux,CloudCheck:hx,CloudCheckIcon:hx,CloudCog:fx,CloudCogIcon:fx,CloudDownload:Dc,CloudDownloadIcon:Dc,CloudDrizzle:px,CloudDrizzleIcon:px,CloudFog:yx,CloudFogIcon:yx,CloudHail:mx,CloudHailIcon:mx,CloudIcon:h2,CloudLightning:gx,CloudLightningIcon:gx,CloudMoon:vx,CloudMoonIcon:vx,CloudMoonRain:kx,CloudMoonRainIcon:kx,CloudOff:xx,CloudOffIcon:xx,CloudRain:Mx,CloudRainIcon:Mx,CloudRainWind:wx,CloudRainWindIcon:wx,CloudSnow:bx,CloudSnowIcon:bx,CloudSun:Cx,CloudSunIcon:Cx,CloudSunRain:_x,CloudSunRainIcon:_x,CloudSync:Sx,CloudSyncIcon:Sx,CloudUpload:Hc,CloudUploadIcon:Hc,Cloudy:Lx,CloudyIcon:Lx,Clover:Nx,CloverIcon:Nx,Club:Ix,ClubIcon:Ix,Code:Ax,Code2:Oc,Code2Icon:Oc,CodeIcon:Ax,CodeSquare:$1,CodeSquareIcon:$1,CodeXml:Oc,CodeXmlIcon:Oc,Codepen:Ex,CodepenIcon:Ex,Codesandbox:jx,CodesandboxIcon:jx,Coffee:$x,CoffeeIcon:$x,Cog:Px,CogIcon:Px,Coins:zx,CoinsIcon:zx,Columns:Fc,Columns2:Fc,Columns2Icon:Fc,Columns3:Ca,Columns3Cog:$r,Columns3CogIcon:$r,Columns3Icon:Ca,Columns4:Rx,Columns4Icon:Rx,ColumnsIcon:Fc,ColumnsSettings:$r,ColumnsSettingsIcon:$r,Combine:Tx,CombineIcon:Tx,Command:Dx,CommandIcon:Dx,Compass:Hx,CompassIcon:Hx,Component:Ox,ComponentIcon:Ox,Computer:Fx,ComputerIcon:Fx,ConciergeBell:qx,ConciergeBellIcon:qx,Cone:Vx,ConeIcon:Vx,Construction:Bx,ConstructionIcon:Bx,Contact:Ux,Contact2:qc,Contact2Icon:qc,ContactIcon:Ux,ContactRound:qc,ContactRoundIcon:qc,Container:Wx,ContainerIcon:Wx,Contrast:Gx,ContrastIcon:Gx,Cookie:Kx,CookieIcon:Kx,CookingPot:Xx,CookingPotIcon:Xx,Copy:t3,CopyCheck:Zx,CopyCheckIcon:Zx,CopyIcon:t3,CopyMinus:Yx,CopyMinusIcon:Yx,CopyPlus:Qx,CopyPlusIcon:Qx,CopySlash:Jx,CopySlashIcon:Jx,CopyX:e3,CopyXIcon:e3,Copyleft:o3,CopyleftIcon:o3,Copyright:n3,CopyrightIcon:n3,CornerDownLeft:r3,CornerDownLeftIcon:r3,CornerDownRight:i3,CornerDownRightIcon:i3,CornerLeftDown:a3,CornerLeftDownIcon:a3,CornerLeftUp:s3,CornerLeftUpIcon:s3,CornerRightDown:l3,CornerRightDownIcon:l3,CornerRightUp:c3,CornerRightUpIcon:c3,CornerUpLeft:u3,CornerUpLeftIcon:u3,CornerUpRight:d3,CornerUpRightIcon:d3,Cpu:h3,CpuIcon:h3,CreativeCommons:f3,CreativeCommonsIcon:f3,CreditCard:p3,CreditCardIcon:p3,Croissant:y3,CroissantIcon:y3,Crop:m3,CropIcon:m3,Cross:g3,CrossIcon:g3,Crosshair:k3,CrosshairIcon:k3,Crown:v3,CrownIcon:v3,Cuboid:x3,CuboidIcon:x3,CupSoda:w3,CupSodaIcon:w3,CurlyBraces:Ws,CurlyBracesIcon:Ws,Currency:M3,CurrencyIcon:M3,Cylinder:b3,CylinderIcon:b3,Dam:_3,DamIcon:_3,Database:f2,DatabaseBackup:C3,DatabaseBackupIcon:C3,DatabaseIcon:f2,DatabaseSearch:S3,DatabaseSearchIcon:S3,DatabaseZap:L3,DatabaseZapIcon:L3,DecimalsArrowLeft:N3,DecimalsArrowLeftIcon:N3,DecimalsArrowRight:I3,DecimalsArrowRightIcon:I3,Delete:A3,DeleteIcon:A3,Dessert:E3,DessertIcon:E3,Diameter:j3,DiameterIcon:j3,Diamond:g0,DiamondIcon:g0,DiamondMinus:$3,DiamondMinusIcon:$3,DiamondPercent:Vc,DiamondPercentIcon:Vc,DiamondPlus:P3,DiamondPlusIcon:P3,Dice1:z3,Dice1Icon:z3,Dice2:T3,Dice2Icon:T3,Dice3:R3,Dice3Icon:R3,Dice4:D3,Dice4Icon:D3,Dice5:H3,Dice5Icon:H3,Dice6:O3,Dice6Icon:O3,Dices:F3,DicesIcon:F3,Diff:q3,DiffIcon:q3,Disc:W3,Disc2:V3,Disc2Icon:V3,Disc3:U3,Disc3Icon:U3,DiscAlbum:B3,DiscAlbumIcon:B3,DiscIcon:W3,Divide:G3,DivideCircle:wc,DivideCircleIcon:wc,DivideIcon:G3,DivideSquare:T1,DivideSquareIcon:T1,Dna:X3,DnaIcon:X3,DnaOff:K3,DnaOffIcon:K3,Dock:Z3,DockIcon:Z3,Dog:Y3,DogIcon:Y3,DollarSign:Q3,DollarSignIcon:Q3,Donut:J3,DonutIcon:J3,DoorClosed:t8,DoorClosedIcon:t8,DoorClosedLocked:e8,DoorClosedLockedIcon:e8,DoorOpen:n8,DoorOpenIcon:n8,Dot:o8,DotIcon:o8,DotSquare:D1,DotSquareIcon:D1,Download:k0,DownloadCloud:Dc,DownloadCloudIcon:Dc,DownloadIcon:k0,DraftingCompass:r8,DraftingCompassIcon:r8,Drama:i8,DramaIcon:i8,Dribbble:a8,DribbbleIcon:a8,Drill:s8,DrillIcon:s8,Drone:c8,DroneIcon:c8,Droplet:d8,DropletIcon:d8,DropletOff:l8,DropletOffIcon:l8,Droplets:u8,DropletsIcon:u8,Drum:h8,DrumIcon:h8,Drumstick:f8,DrumstickIcon:f8,Dumbbell:p8,DumbbellIcon:p8,Ear:y8,EarIcon:y8,EarOff:m8,EarOffIcon:m8,Earth:Bc,EarthIcon:Bc,EarthLock:g8,EarthLockIcon:g8,Eclipse:k8,EclipseIcon:k8,Edit:so,Edit2:e1,Edit2Icon:e1,Edit3:Jl,Edit3Icon:Jl,EditIcon:so,Egg:w8,EggFried:v8,EggFriedIcon:v8,EggIcon:w8,EggOff:x8,EggOffIcon:x8,Ellipsis:Wc,EllipsisIcon:Wc,EllipsisVertical:Uc,EllipsisVerticalIcon:Uc,Equal:_8,EqualApproximately:M8,EqualApproximatelyIcon:M8,EqualIcon:_8,EqualNot:b8,EqualNotIcon:b8,EqualSquare:H1,EqualSquareIcon:H1,Eraser:C8,EraserIcon:C8,EthernetPort:S8,EthernetPortIcon:S8,Euro:L8,EuroIcon:L8,EvCharger:N8,EvChargerIcon:N8,Expand:I8,ExpandIcon:I8,ExternalLink:p2,ExternalLinkIcon:p2,Eye:j8,EyeClosed:A8,EyeClosedIcon:A8,EyeIcon:j8,EyeOff:E8,EyeOffIcon:E8,Facebook:$8,FacebookIcon:$8,Factory:P8,FactoryIcon:P8,Fan:R8,FanIcon:R8,FastForward:z8,FastForwardIcon:z8,Feather:T8,FeatherIcon:T8,Fence:D8,FenceIcon:D8,FerrisWheel:H8,FerrisWheelIcon:H8,Figma:O8,FigmaIcon:O8,File:f6,FileArchive:F8,FileArchiveIcon:F8,FileAudio:Pr,FileAudio2:Pr,FileAudio2Icon:Pr,FileAudioIcon:Pr,FileAxis3D:Gc,FileAxis3DIcon:Gc,FileAxis3d:Gc,FileAxis3dIcon:Gc,FileBadge:Kc,FileBadge2:Kc,FileBadge2Icon:Kc,FileBadgeIcon:Kc,FileBarChart:Yc,FileBarChart2:Qc,FileBarChart2Icon:Qc,FileBarChartIcon:Yc,FileBox:q8,FileBoxIcon:q8,FileBraces:Zc,FileBracesCorner:Xc,FileBracesCornerIcon:Xc,FileBracesIcon:Zc,FileChartColumn:Qc,FileChartColumnIcon:Qc,FileChartColumnIncreasing:Yc,FileChartColumnIncreasingIcon:Yc,FileChartLine:Jc,FileChartLineIcon:Jc,FileChartPie:el,FileChartPieIcon:el,FileCheck:V8,FileCheck2:tl,FileCheck2Icon:tl,FileCheckCorner:tl,FileCheckCornerIcon:tl,FileCheckIcon:V8,FileClock:U8,FileClockIcon:U8,FileCode:B8,FileCode2:nl,FileCode2Icon:nl,FileCodeCorner:nl,FileCodeCornerIcon:nl,FileCodeIcon:B8,FileCog:ol,FileCog2:ol,FileCog2Icon:ol,FileCogIcon:ol,FileDiff:W8,FileDiffIcon:W8,FileDigit:G8,FileDigitIcon:G8,FileDown:y2,FileDownIcon:y2,FileEdit:ll,FileEditIcon:ll,FileExclamationPoint:rl,FileExclamationPointIcon:rl,FileHeadphone:Pr,FileHeadphoneIcon:Pr,FileHeart:K8,FileHeartIcon:K8,FileIcon:f6,FileImage:X8,FileImageIcon:X8,FileInput:Z8,FileInputIcon:Z8,FileJson:Zc,FileJson2:Xc,FileJson2Icon:Xc,FileJsonIcon:Zc,FileKey:il,FileKey2:il,FileKey2Icon:il,FileKeyIcon:il,FileLineChart:Jc,FileLineChartIcon:Jc,FileLock:al,FileLock2:al,FileLock2Icon:al,FileLockIcon:al,FileMinus:Y8,FileMinus2:sl,FileMinus2Icon:sl,FileMinusCorner:sl,FileMinusCornerIcon:sl,FileMinusIcon:Y8,FileMusic:J8,FileMusicIcon:J8,FileOutput:Q8,FileOutputIcon:Q8,FilePen:ll,FilePenIcon:ll,FilePenLine:cl,FilePenLineIcon:cl,FilePieChart:el,FilePieChartIcon:el,FilePlay:dl,FilePlayIcon:dl,FilePlus:e6,FilePlus2:ul,FilePlus2Icon:ul,FilePlusCorner:ul,FilePlusCornerIcon:ul,FilePlusIcon:e6,FileQuestion:hl,FileQuestionIcon:hl,FileQuestionMark:hl,FileQuestionMarkIcon:hl,FileScan:t6,FileScanIcon:t6,FileSearch:n6,FileSearch2:fl,FileSearch2Icon:fl,FileSearchCorner:fl,FileSearchCornerIcon:fl,FileSearchIcon:n6,FileSignal:pl,FileSignalIcon:pl,FileSignature:cl,FileSignatureIcon:cl,FileSliders:o6,FileSlidersIcon:o6,FileSpreadsheet:r6,FileSpreadsheetIcon:r6,FileStack:i6,FileStackIcon:i6,FileSymlink:a6,FileSymlinkIcon:a6,FileTerminal:s6,FileTerminalIcon:s6,FileText:m2,FileTextIcon:m2,FileType:c6,FileType2:yl,FileType2Icon:yl,FileTypeCorner:yl,FileTypeCornerIcon:yl,FileTypeIcon:c6,FileUp:l6,FileUpIcon:l6,FileUser:d6,FileUserIcon:d6,FileVideo:dl,FileVideo2:ml,FileVideo2Icon:ml,FileVideoCamera:ml,FileVideoCameraIcon:ml,FileVideoIcon:dl,FileVolume:u6,FileVolume2:pl,FileVolume2Icon:pl,FileVolumeIcon:u6,FileWarning:rl,FileWarningIcon:rl,FileX:h6,FileX2:gl,FileX2Icon:gl,FileXCorner:gl,FileXCornerIcon:gl,FileXIcon:h6,Files:p6,FilesIcon:p6,Film:y6,FilmIcon:y6,Filter:Ml,FilterIcon:Ml,FilterX:wl,FilterXIcon:wl,Fingerprint:kl,FingerprintIcon:kl,FingerprintPattern:kl,FingerprintPatternIcon:kl,FireExtinguisher:m6,FireExtinguisherIcon:m6,Fish:v6,FishIcon:v6,FishOff:g6,FishOffIcon:g6,FishSymbol:k6,FishSymbolIcon:k6,FishingHook:x6,FishingHookIcon:x6,Flag:_6,FlagIcon:_6,FlagOff:w6,FlagOffIcon:w6,FlagTriangleLeft:M6,FlagTriangleLeftIcon:M6,FlagTriangleRight:b6,FlagTriangleRightIcon:b6,Flame:S6,FlameIcon:S6,FlameKindling:C6,FlameKindlingIcon:C6,Flashlight:N6,FlashlightIcon:N6,FlashlightOff:L6,FlashlightOffIcon:L6,FlaskConical:E6,FlaskConicalIcon:E6,FlaskConicalOff:I6,FlaskConicalOffIcon:I6,FlaskRound:A6,FlaskRoundIcon:A6,FlipHorizontal:$6,FlipHorizontal2:j6,FlipHorizontal2Icon:j6,FlipHorizontalIcon:$6,FlipVertical:z6,FlipVertical2:P6,FlipVertical2Icon:P6,FlipVerticalIcon:z6,Flower:T6,Flower2:R6,Flower2Icon:R6,FlowerIcon:T6,Focus:D6,FocusIcon:D6,FoldHorizontal:H6,FoldHorizontalIcon:H6,FoldVertical:O6,FoldVerticalIcon:O6,Folder:fw,FolderArchive:F6,FolderArchiveIcon:F6,FolderCheck:q6,FolderCheckIcon:q6,FolderClock:V6,FolderClockIcon:V6,FolderClosed:U6,FolderClosedIcon:U6,FolderCode:B6,FolderCodeIcon:B6,FolderCog:vl,FolderCog2:vl,FolderCog2Icon:vl,FolderCogIcon:vl,FolderDot:W6,FolderDotIcon:W6,FolderDown:G6,FolderDownIcon:G6,FolderEdit:xl,FolderEditIcon:xl,FolderGit:X6,FolderGit2:K6,FolderGit2Icon:K6,FolderGitIcon:X6,FolderHeart:Z6,FolderHeartIcon:Z6,FolderIcon:fw,FolderInput:Y6,FolderInputIcon:Y6,FolderKanban:Q6,FolderKanbanIcon:Q6,FolderKey:J6,FolderKeyIcon:J6,FolderLock:ew,FolderLockIcon:ew,FolderMinus:tw,FolderMinusIcon:tw,FolderOpen:g2,FolderOpenDot:nw,FolderOpenDotIcon:nw,FolderOpenIcon:g2,FolderOutput:ow,FolderOutputIcon:ow,FolderPen:xl,FolderPenIcon:xl,FolderPlus:rw,FolderPlusIcon:rw,FolderRoot:iw,FolderRootIcon:iw,FolderSearch:sw,FolderSearch2:aw,FolderSearch2Icon:aw,FolderSearchIcon:sw,FolderSymlink:cw,FolderSymlinkIcon:cw,FolderSync:lw,FolderSyncIcon:lw,FolderTree:dw,FolderTreeIcon:dw,FolderUp:uw,FolderUpIcon:uw,FolderX:hw,FolderXIcon:hw,Folders:pw,FoldersIcon:pw,Footprints:yw,FootprintsIcon:yw,ForkKnife:Ld,ForkKnifeCrossed:Sd,ForkKnifeCrossedIcon:Sd,ForkKnifeIcon:Ld,Forklift:kw,ForkliftIcon:kw,Form:mw,FormIcon:mw,FormInput:n1,FormInputIcon:n1,Forward:gw,ForwardIcon:gw,Frame:vw,FrameIcon:vw,Framer:Mw,FramerIcon:Mw,Frown:xw,FrownIcon:xw,Fuel:ww,FuelIcon:ww,Fullscreen:bw,FullscreenIcon:bw,FunctionSquare:O1,FunctionSquareIcon:O1,Funnel:Ml,FunnelIcon:Ml,FunnelPlus:_w,FunnelPlusIcon:_w,FunnelX:wl,FunnelXIcon:wl,GalleryHorizontal:Sw,GalleryHorizontalEnd:Cw,GalleryHorizontalEndIcon:Cw,GalleryHorizontalIcon:Sw,GalleryThumbnails:Lw,GalleryThumbnailsIcon:Lw,GalleryVertical:Iw,GalleryVerticalEnd:Nw,GalleryVerticalEndIcon:Nw,GalleryVerticalIcon:Iw,Gamepad:$w,Gamepad2:Aw,Gamepad2Icon:Aw,GamepadDirectional:Ew,GamepadDirectionalIcon:Ew,GamepadIcon:$w,GanttChart:rc,GanttChartIcon:rc,GanttChartSquare:Dr,GanttChartSquareIcon:Dr,Gauge:jw,GaugeCircle:Mc,GaugeCircleIcon:Mc,GaugeIcon:jw,Gavel:Pw,GavelIcon:Pw,Gem:zw,GemIcon:zw,GeorgianLari:Rw,GeorgianLariIcon:Rw,Ghost:Dw,GhostIcon:Dw,Gift:Tw,GiftIcon:Tw,GitBranch:Fw,GitBranchIcon:Fw,GitBranchMinus:Hw,GitBranchMinusIcon:Hw,GitBranchPlus:Ow,GitBranchPlusIcon:Ow,GitCommit:bl,GitCommitHorizontal:bl,GitCommitHorizontalIcon:bl,GitCommitIcon:bl,GitCommitVertical:qw,GitCommitVerticalIcon:qw,GitCompare:Bw,GitCompareArrows:Vw,GitCompareArrowsIcon:Vw,GitCompareIcon:Bw,GitFork:Uw,GitForkIcon:Uw,GitGraph:Ww,GitGraphIcon:Ww,GitMerge:Gw,GitMergeIcon:Gw,GitPullRequest:Jw,GitPullRequestArrow:Kw,GitPullRequestArrowIcon:Kw,GitPullRequestClosed:Xw,GitPullRequestClosedIcon:Xw,GitPullRequestCreate:Yw,GitPullRequestCreateArrow:Zw,GitPullRequestCreateArrowIcon:Zw,GitPullRequestCreateIcon:Yw,GitPullRequestDraft:Qw,GitPullRequestDraftIcon:Qw,GitPullRequestIcon:Jw,Github:e7,GithubIcon:e7,Gitlab:t7,GitlabIcon:t7,GlassWater:n7,GlassWaterIcon:n7,Glasses:o7,GlassesIcon:o7,Globe:a7,Globe2:Bc,Globe2Icon:Bc,GlobeIcon:a7,GlobeLock:r7,GlobeLockIcon:r7,GlobeX:i7,GlobeXIcon:i7,Goal:s7,GoalIcon:s7,Gpu:c7,GpuIcon:c7,Grab:Nl,GrabIcon:Nl,GraduationCap:l7,GraduationCapIcon:l7,Grape:d7,GrapeIcon:d7,Grid:zr,Grid2X2:Ll,Grid2X2Check:_l,Grid2X2CheckIcon:_l,Grid2X2Icon:Ll,Grid2X2Plus:Cl,Grid2X2PlusIcon:Cl,Grid2X2X:Sl,Grid2X2XIcon:Sl,Grid2x2:Ll,Grid2x2Check:_l,Grid2x2CheckIcon:_l,Grid2x2Icon:Ll,Grid2x2Plus:Cl,Grid2x2PlusIcon:Cl,Grid2x2X:Sl,Grid2x2XIcon:Sl,Grid3X3:zr,Grid3X3Icon:zr,Grid3x2:u7,Grid3x2Icon:u7,Grid3x3:zr,Grid3x3Icon:zr,GridIcon:zr,Grip:f7,GripHorizontal:h7,GripHorizontalIcon:h7,GripIcon:f7,GripVertical:p7,GripVerticalIcon:p7,Group:y7,GroupIcon:y7,Guitar:m7,GuitarIcon:m7,Ham:g7,HamIcon:g7,Hamburger:k7,HamburgerIcon:k7,Hammer:v7,HammerIcon:v7,Hand:k2,HandCoins:x7,HandCoinsIcon:x7,HandFist:w7,HandFistIcon:w7,HandGrab:Nl,HandGrabIcon:Nl,HandHeart:M7,HandHeartIcon:M7,HandHelping:Il,HandHelpingIcon:Il,HandIcon:k2,HandMetal:b7,HandMetalIcon:b7,HandPlatter:_7,HandPlatterIcon:_7,Handbag:C7,HandbagIcon:C7,Handshake:S7,HandshakeIcon:S7,HardDrive:I7,HardDriveDownload:L7,HardDriveDownloadIcon:L7,HardDriveIcon:I7,HardDriveUpload:N7,HardDriveUploadIcon:N7,HardHat:A7,HardHatIcon:A7,Hash:E7,HashIcon:E7,HatGlasses:j7,HatGlassesIcon:j7,Haze:$7,HazeIcon:$7,Hd:P7,HdIcon:P7,HdmiPort:z7,HdmiPortIcon:z7,Heading:q7,Heading1:R7,Heading1Icon:R7,Heading2:T7,Heading2Icon:T7,Heading3:D7,Heading3Icon:D7,Heading4:H7,Heading4Icon:H7,Heading5:O7,Heading5Icon:O7,Heading6:F7,Heading6Icon:F7,HeadingIcon:q7,HeadphoneOff:V7,HeadphoneOffIcon:V7,Headphones:B7,HeadphonesIcon:B7,Headset:U7,HeadsetIcon:U7,Heart:Q7,HeartCrack:W7,HeartCrackIcon:W7,HeartHandshake:K7,HeartHandshakeIcon:K7,HeartIcon:Q7,HeartMinus:G7,HeartMinusIcon:G7,HeartOff:X7,HeartOffIcon:X7,HeartPlus:Z7,HeartPlusIcon:Z7,HeartPulse:Y7,HeartPulseIcon:Y7,Heater:J7,HeaterIcon:J7,Helicopter:eM,HelicopterIcon:eM,HelpCircle:Xo,HelpCircleIcon:Xo,HelpingHand:Il,HelpingHandIcon:Il,Hexagon:v2,HexagonIcon:v2,Highlighter:tM,HighlighterIcon:tM,History:nM,HistoryIcon:nM,Home:Al,HomeIcon:Al,Hop:oM,HopIcon:oM,HopOff:rM,HopOffIcon:rM,Hospital:iM,HospitalIcon:iM,Hotel:aM,HotelIcon:aM,Hourglass:sM,HourglassIcon:sM,House:Al,HouseHeart:cM,HouseHeartIcon:cM,HouseIcon:Al,HousePlug:lM,HousePlugIcon:lM,HousePlus:dM,HousePlusIcon:dM,HouseWifi:uM,HouseWifiIcon:uM,IceCream:jl,IceCream2:El,IceCream2Icon:El,IceCreamBowl:El,IceCreamBowlIcon:El,IceCreamCone:jl,IceCreamConeIcon:jl,IceCreamIcon:jl,Icon:xQ,IdCard:fM,IdCardIcon:fM,IdCardLanyard:hM,IdCardLanyardIcon:hM,Image:w2,ImageDown:pM,ImageDownIcon:pM,ImageIcon:w2,ImageMinus:mM,ImageMinusIcon:mM,ImageOff:yM,ImageOffIcon:yM,ImagePlay:gM,ImagePlayIcon:gM,ImagePlus:x2,ImagePlusIcon:x2,ImageUp:kM,ImageUpIcon:kM,ImageUpscale:vM,ImageUpscaleIcon:vM,Images:xM,ImagesIcon:xM,Import:wM,ImportIcon:wM,Inbox:MM,InboxIcon:MM,Indent:Tr,IndentDecrease:Rr,IndentDecreaseIcon:Rr,IndentIcon:Tr,IndentIncrease:Tr,IndentIncreaseIcon:Tr,IndianRupee:bM,IndianRupeeIcon:bM,Infinity:CM,InfinityIcon:CM,Info:_M,InfoIcon:_M,Inspect:W1,InspectIcon:W1,InspectionPanel:SM,InspectionPanelIcon:SM,Instagram:LM,InstagramIcon:LM,Italic:NM,ItalicIcon:NM,IterationCcw:IM,IterationCcwIcon:IM,IterationCw:AM,IterationCwIcon:AM,JapaneseYen:EM,JapaneseYenIcon:EM,Joystick:jM,JoystickIcon:jM,Kanban:$M,KanbanIcon:$M,KanbanSquare:F1,KanbanSquareDashed:P1,KanbanSquareDashedIcon:P1,KanbanSquareIcon:F1,Kayak:PM,KayakIcon:PM,Key:TM,KeyIcon:TM,KeyRound:zM,KeyRoundIcon:zM,KeySquare:RM,KeySquareIcon:RM,Keyboard:OM,KeyboardIcon:OM,KeyboardMusic:DM,KeyboardMusicIcon:DM,KeyboardOff:HM,KeyboardOffIcon:HM,Lamp:WM,LampCeiling:FM,LampCeilingIcon:FM,LampDesk:qM,LampDeskIcon:qM,LampFloor:VM,LampFloorIcon:VM,LampIcon:WM,LampWallDown:BM,LampWallDownIcon:BM,LampWallUp:UM,LampWallUpIcon:UM,LandPlot:GM,LandPlotIcon:GM,Landmark:KM,LandmarkIcon:KM,Languages:XM,LanguagesIcon:XM,Laptop:QM,Laptop2:$l,Laptop2Icon:$l,LaptopIcon:QM,LaptopMinimal:$l,LaptopMinimalCheck:ZM,LaptopMinimalCheckIcon:ZM,LaptopMinimalIcon:$l,Lasso:JM,LassoIcon:JM,LassoSelect:YM,LassoSelectIcon:YM,Laugh:eb,LaughIcon:eb,Layers:Pi,Layers2:tb,Layers2Icon:tb,Layers3:Pi,Layers3Icon:Pi,LayersIcon:Pi,LayersPlus:nb,LayersPlusIcon:nb,Layout:Ql,LayoutDashboard:M2,LayoutDashboardIcon:M2,LayoutGrid:ob,LayoutGridIcon:ob,LayoutIcon:Ql,LayoutList:rb,LayoutListIcon:rb,LayoutPanelLeft:ib,LayoutPanelLeftIcon:ib,LayoutPanelTop:sb,LayoutPanelTopIcon:sb,LayoutTemplate:ab,LayoutTemplateIcon:ab,Leaf:cb,LeafIcon:cb,LeafyGreen:lb,LeafyGreenIcon:lb,Lectern:db,LecternIcon:db,LetterText:hd,LetterTextIcon:hd,Library:hb,LibraryBig:ub,LibraryBigIcon:ub,LibraryIcon:hb,LibrarySquare:q1,LibrarySquareIcon:q1,LifeBuoy:fb,LifeBuoyIcon:fb,Ligature:pb,LigatureIcon:pb,Lightbulb:mb,LightbulbIcon:mb,LightbulbOff:yb,LightbulbOffIcon:yb,LineChart:tc,LineChartIcon:tc,LineSquiggle:gb,LineSquiggleIcon:gb,Link:vb,Link2:Ua,Link2Icon:Ua,Link2Off:kb,Link2OffIcon:kb,LinkIcon:vb,Linkedin:xb,LinkedinIcon:xb,List:Hb,ListCheck:wb,ListCheckIcon:wb,ListChecks:Mb,ListChecksIcon:Mb,ListChevronsDownUp:bb,ListChevronsDownUpIcon:bb,ListChevronsUpDown:Cb,ListChevronsUpDownIcon:Cb,ListCollapse:_b,ListCollapseIcon:_b,ListEnd:Sb,ListEndIcon:Sb,ListFilter:Nb,ListFilterIcon:Nb,ListFilterPlus:Lb,ListFilterPlusIcon:Lb,ListIcon:Hb,ListIndentDecrease:Rr,ListIndentDecreaseIcon:Rr,ListIndentIncrease:Tr,ListIndentIncreaseIcon:Tr,ListMinus:Ib,ListMinusIcon:Ib,ListMusic:Ab,ListMusicIcon:Ab,ListOrdered:Eb,ListOrderedIcon:Eb,ListPlus:jb,ListPlusIcon:jb,ListRestart:$b,ListRestartIcon:$b,ListStart:Pb,ListStartIcon:Pb,ListTodo:zb,ListTodoIcon:zb,ListTree:Rb,ListTreeIcon:Rb,ListVideo:Tb,ListVideoIcon:Tb,ListX:Db,ListXIcon:Db,Loader:Fb,Loader2:Wn,Loader2Icon:Wn,LoaderCircle:Wn,LoaderCircleIcon:Wn,LoaderIcon:Fb,LoaderPinwheel:Ob,LoaderPinwheelIcon:Ob,Locate:Bb,LocateFixed:qb,LocateFixedIcon:qb,LocateIcon:Bb,LocateOff:Vb,LocateOffIcon:Vb,LocationEdit:Tl,LocationEditIcon:Tl,Lock:Wb,LockIcon:Wb,LockKeyhole:Ub,LockKeyholeIcon:Ub,LockKeyholeOpen:Pl,LockKeyholeOpenIcon:Pl,LockOpen:zl,LockOpenIcon:zl,LogIn:Gb,LogInIcon:Gb,LogOut:Kb,LogOutIcon:Kb,Logs:Xb,LogsIcon:Xb,Lollipop:Zb,LollipopIcon:Zb,LucideAArrowDown:Ny,LucideAArrowUp:Iy,LucideALargeSmall:Ay,LucideAccessibility:Ey,LucideActivity:jy,LucideActivitySquare:h1,LucideAirVent:$y,LucideAirplay:Py,LucideAlarmCheck:Es,LucideAlarmClock:Ry,LucideAlarmClockCheck:Es,LucideAlarmClockMinus:js,LucideAlarmClockOff:zy,LucideAlarmClockPlus:$s,LucideAlarmMinus:js,LucideAlarmPlus:$s,LucideAlarmSmoke:Ty,LucideAlbum:Dy,LucideAlertCircle:ba,LucideAlertOctagon:Fl,LucideAlertTriangle:qr,LucideAlignCenter:Sa,LucideAlignCenterHorizontal:Oy,LucideAlignCenterVertical:Hy,LucideAlignEndHorizontal:Fy,LucideAlignEndVertical:qy,LucideAlignHorizontalDistributeCenter:Vy,LucideAlignHorizontalDistributeEnd:By,LucideAlignHorizontalDistributeStart:Uy,LucideAlignHorizontalJustifyCenter:Wy,LucideAlignHorizontalJustifyEnd:Ky,LucideAlignHorizontalJustifyStart:Gy,LucideAlignHorizontalSpaceAround:Xy,LucideAlignHorizontalSpaceBetween:Zy,LucideAlignJustify:ud,LucideAlignLeft:Zo,LucideAlignRight:La,LucideAlignStartHorizontal:Yy,LucideAlignStartVertical:Qy,LucideAlignVerticalDistributeCenter:Jy,LucideAlignVerticalDistributeEnd:em,LucideAlignVerticalDistributeStart:tm,LucideAlignVerticalJustifyCenter:nm,LucideAlignVerticalJustifyEnd:om,LucideAlignVerticalJustifyStart:rm,LucideAlignVerticalSpaceAround:im,LucideAlignVerticalSpaceBetween:am,LucideAmbulance:sm,LucideAmpersand:cm,LucideAmpersands:lm,LucideAmphora:dm,LucideAnchor:um,LucideAngry:hm,LucideAnnoyed:fm,LucideAntenna:pm,LucideAnvil:ym,LucideAperture:mm,LucideAppWindow:km,LucideAppWindowMac:gm,LucideApple:vm,LucideArchive:Mm,LucideArchiveRestore:xm,LucideArchiveX:wm,LucideAreaChart:Ks,LucideArmchair:bm,LucideArrowBigDown:Cm,LucideArrowBigDownDash:_m,LucideArrowBigLeft:Lm,LucideArrowBigLeftDash:Sm,LucideArrowBigRight:Im,LucideArrowBigRightDash:Nm,LucideArrowBigUp:Em,LucideArrowBigUpDash:Am,LucideArrowDown:Fm,LucideArrowDown01:jm,LucideArrowDown10:$m,LucideArrowDownAZ:Ps,LucideArrowDownAz:Ps,LucideArrowDownCircle:cc,LucideArrowDownFromLine:Pm,LucideArrowDownLeft:Rm,LucideArrowDownLeftFromCircle:lc,LucideArrowDownLeftFromSquare:g1,LucideArrowDownLeftSquare:f1,LucideArrowDownNarrowWide:zm,LucideArrowDownRight:Dm,LucideArrowDownRightFromCircle:uc,LucideArrowDownRightFromSquare:k1,LucideArrowDownRightSquare:p1,LucideArrowDownSquare:y1,LucideArrowDownToDot:Tm,LucideArrowDownToLine:Hm,LucideArrowDownUp:Om,LucideArrowDownWideNarrow:zs,LucideArrowDownZA:Rs,LucideArrowDownZa:Rs,LucideArrowLeft:Bm,LucideArrowLeftCircle:dc,LucideArrowLeftFromLine:qm,LucideArrowLeftRight:d2,LucideArrowLeftSquare:m1,LucideArrowLeftToLine:Vm,LucideArrowRight:y0,LucideArrowRightCircle:pc,LucideArrowRightFromLine:Um,LucideArrowRightLeft:Wm,LucideArrowRightSquare:w1,LucideArrowRightToLine:Gm,LucideArrowUp:og,LucideArrowUp01:Km,LucideArrowUp10:Xm,LucideArrowUpAZ:Ts,LucideArrowUpAz:Ts,LucideArrowUpCircle:yc,LucideArrowUpDown:Zm,LucideArrowUpFromDot:Ym,LucideArrowUpFromLine:Qm,LucideArrowUpLeft:Jm,LucideArrowUpLeftFromCircle:hc,LucideArrowUpLeftFromSquare:v1,LucideArrowUpLeftSquare:M1,LucideArrowUpNarrowWide:Ds,LucideArrowUpRight:tg,LucideArrowUpRightFromCircle:fc,LucideArrowUpRightFromSquare:x1,LucideArrowUpRightSquare:C1,LucideArrowUpSquare:b1,LucideArrowUpToLine:eg,LucideArrowUpWideNarrow:ng,LucideArrowUpZA:Hs,LucideArrowUpZa:Hs,LucideArrowsUpFromLine:rg,LucideAsterisk:ig,LucideAsteriskSquare:_1,LucideAtSign:ag,LucideAtom:sg,LucideAudioLines:cg,LucideAudioWaveform:dg,LucideAward:lg,LucideAxe:ug,LucideAxis3D:Os,LucideAxis3d:Os,LucideBaby:hg,LucideBackpack:fg,LucideBadge:Ig,LucideBadgeAlert:yg,LucideBadgeCent:pg,LucideBadgeCheck:Fs,LucideBadgeDollarSign:mg,LucideBadgeEuro:kg,LucideBadgeHelp:qs,LucideBadgeIndianRupee:gg,LucideBadgeInfo:vg,LucideBadgeJapaneseYen:xg,LucideBadgeMinus:wg,LucideBadgePercent:Mg,LucideBadgePlus:bg,LucideBadgePoundSterling:_g,LucideBadgeQuestionMark:qs,LucideBadgeRussianRuble:Cg,LucideBadgeSwissFranc:Sg,LucideBadgeTurkishLira:Lg,LucideBadgeX:Ng,LucideBaggageClaim:Ag,LucideBalloon:Eg,LucideBan:u2,LucideBanana:jg,LucideBandage:$g,LucideBanknote:Tg,LucideBanknoteArrowDown:Pg,LucideBanknoteArrowUp:zg,LucideBanknoteX:Rg,LucideBarChart:nc,LucideBarChart2:oc,LucideBarChart3:ec,LucideBarChart4:Js,LucideBarChartBig:Qs,LucideBarChartHorizontal:Zs,LucideBarChartHorizontalBig:Xs,LucideBarcode:Dg,LucideBarrel:Hg,LucideBaseline:Og,LucideBath:Fg,LucideBattery:Kg,LucideBatteryCharging:qg,LucideBatteryFull:Vg,LucideBatteryLow:Bg,LucideBatteryMedium:Ug,LucideBatteryPlus:Wg,LucideBatteryWarning:Gg,LucideBeaker:Xg,LucideBean:Yg,LucideBeanOff:Zg,LucideBed:ek,LucideBedDouble:Qg,LucideBedSingle:Jg,LucideBeef:tk,LucideBeer:ok,LucideBeerOff:nk,LucideBell:dk,LucideBellDot:rk,LucideBellElectric:ik,LucideBellMinus:ak,LucideBellOff:sk,LucideBellPlus:ck,LucideBellRing:lk,LucideBetweenHorizonalEnd:Vs,LucideBetweenHorizonalStart:Bs,LucideBetweenHorizontalEnd:Vs,LucideBetweenHorizontalStart:Bs,LucideBetweenVerticalEnd:uk,LucideBetweenVerticalStart:hk,LucideBicepsFlexed:fk,LucideBike:pk,LucideBinary:yk,LucideBinoculars:mk,LucideBiohazard:gk,LucideBird:kk,LucideBirdhouse:vk,LucideBitcoin:xk,LucideBlend:wk,LucideBlinds:Mk,LucideBlocks:bk,LucideBluetooth:Lk,LucideBluetoothConnected:_k,LucideBluetoothOff:Ck,LucideBluetoothSearching:Sk,LucideBold:Nk,LucideBolt:Ik,LucideBomb:Ak,LucideBone:Ek,LucideBook:n4,LucideBookA:jk,LucideBookAlert:$k,LucideBookAudio:Pk,LucideBookCheck:zk,LucideBookCopy:Rk,LucideBookDashed:Us,LucideBookDown:Tk,LucideBookHeadphones:Dk,LucideBookHeart:Hk,LucideBookImage:Ok,LucideBookKey:Fk,LucideBookLock:qk,LucideBookMarked:Vk,LucideBookMinus:Bk,LucideBookOpen:Gk,LucideBookOpenCheck:Uk,LucideBookOpenText:Wk,LucideBookPlus:Kk,LucideBookSearch:Xk,LucideBookTemplate:Us,LucideBookText:Zk,LucideBookType:Yk,LucideBookUp:Jk,LucideBookUp2:Qk,LucideBookUser:e4,LucideBookX:t4,LucideBookmark:s4,LucideBookmarkCheck:o4,LucideBookmarkMinus:r4,LucideBookmarkPlus:i4,LucideBookmarkX:a4,LucideBoomBox:c4,LucideBot:d4,LucideBotMessageSquare:l4,LucideBotOff:u4,LucideBottleWine:h4,LucideBowArrow:f4,LucideBox:p4,LucideBoxSelect:R1,LucideBoxes:y4,LucideBraces:Ws,LucideBrackets:m4,LucideBrain:v4,LucideBrainCircuit:g4,LucideBrainCog:k4,LucideBrickWall:M4,LucideBrickWallFire:x4,LucideBrickWallShield:w4,LucideBriefcase:S4,LucideBriefcaseBusiness:b4,LucideBriefcaseConveyorBelt:_4,LucideBriefcaseMedical:C4,LucideBringToFront:L4,LucideBrush:A4,LucideBrushCleaning:N4,LucideBubbles:I4,LucideBug:$4,LucideBugOff:E4,LucideBugPlay:j4,LucideBuilding:P4,LucideBuilding2:z4,LucideBus:T4,LucideBusFront:R4,LucideCable:H4,LucideCableCar:D4,LucideCake:F4,LucideCakeSlice:O4,LucideCalculator:q4,LucideCalendar:l5,LucideCalendar1:V4,LucideCalendarArrowDown:B4,LucideCalendarArrowUp:U4,LucideCalendarCheck:G4,LucideCalendarCheck2:W4,LucideCalendarClock:K4,LucideCalendarCog:X4,LucideCalendarDays:Z4,LucideCalendarFold:Y4,LucideCalendarHeart:Q4,LucideCalendarMinus:e5,LucideCalendarMinus2:J4,LucideCalendarOff:t5,LucideCalendarPlus:r5,LucideCalendarPlus2:n5,LucideCalendarRange:o5,LucideCalendarSearch:i5,LucideCalendarSync:a5,LucideCalendarX:c5,LucideCalendarX2:s5,LucideCalendars:d5,LucideCamera:h5,LucideCameraOff:u5,LucideCandlestickChart:Ys,LucideCandy:y5,LucideCandyCane:f5,LucideCandyOff:p5,LucideCannabis:g5,LucideCannabisOff:m5,LucideCaptions:Gs,LucideCaptionsOff:k5,LucideCar:w5,LucideCarFront:v5,LucideCarTaxiFront:x5,LucideCaravan:M5,LucideCardSim:b5,LucideCarrot:_5,LucideCaseLower:C5,LucideCaseSensitive:S5,LucideCaseUpper:L5,LucideCassetteTape:N5,LucideCast:I5,LucideCastle:A5,LucideCat:E5,LucideCctv:j5,LucideChartArea:Ks,LucideChartBar:Zs,LucideChartBarBig:Xs,LucideChartBarDecreasing:$5,LucideChartBarIncreasing:P5,LucideChartBarStacked:z5,LucideChartCandlestick:Ys,LucideChartColumn:ec,LucideChartColumnBig:Qs,LucideChartColumnDecreasing:R5,LucideChartColumnIncreasing:Js,LucideChartColumnStacked:T5,LucideChartGantt:D5,LucideChartLine:tc,LucideChartNetwork:H5,LucideChartNoAxesColumn:oc,LucideChartNoAxesColumnDecreasing:O5,LucideChartNoAxesColumnIncreasing:nc,LucideChartNoAxesCombined:F5,LucideChartNoAxesGantt:rc,LucideChartPie:ic,LucideChartScatter:ac,LucideChartSpline:q5,LucideCheck:Ba,LucideCheckCheck:V5,LucideCheckCircle:mc,LucideCheckCircle2:_a,LucideCheckLine:B5,LucideCheckSquare:L1,LucideCheckSquare2:N1,LucideChefHat:U5,LucideCherry:W5,LucideChessBishop:G5,LucideChessKing:K5,LucideChessKnight:X5,LucideChessPawn:Z5,LucideChessQueen:Y5,LucideChessRook:J5,LucideChevronDown:Q5,LucideChevronDownCircle:gc,LucideChevronDownSquare:I1,LucideChevronFirst:ev,LucideChevronLast:tv,LucideChevronLeft:nv,LucideChevronLeftCircle:kc,LucideChevronLeftSquare:A1,LucideChevronRight:ov,LucideChevronRightCircle:vc,LucideChevronRightSquare:j1,LucideChevronUp:rv,LucideChevronUpCircle:xc,LucideChevronUpSquare:E1,LucideChevronsDown:av,LucideChevronsDownUp:iv,LucideChevronsLeft:lv,LucideChevronsLeftRight:cv,LucideChevronsLeftRightEllipsis:sv,LucideChevronsRight:uv,LucideChevronsRightLeft:dv,LucideChevronsUp:fv,LucideChevronsUpDown:hv,LucideChrome:sc,LucideChromium:sc,LucideChurch:pv,LucideCigarette:mv,LucideCigaretteOff:yv,LucideCircle:m0,LucideCircleAlert:ba,LucideCircleArrowDown:cc,LucideCircleArrowLeft:dc,LucideCircleArrowOutDownLeft:lc,LucideCircleArrowOutDownRight:uc,LucideCircleArrowOutUpLeft:hc,LucideCircleArrowOutUpRight:fc,LucideCircleArrowRight:pc,LucideCircleArrowUp:yc,LucideCircleCheck:_a,LucideCircleCheckBig:mc,LucideCircleChevronDown:gc,LucideCircleChevronLeft:kc,LucideCircleChevronRight:vc,LucideCircleChevronUp:xc,LucideCircleDashed:gv,LucideCircleDivide:wc,LucideCircleDollarSign:kv,LucideCircleDot:xv,LucideCircleDotDashed:vv,LucideCircleEllipsis:wv,LucideCircleEqual:Mv,LucideCircleFadingArrowUp:bv,LucideCircleFadingPlus:_v,LucideCircleGauge:Mc,LucideCircleHelp:Xo,LucideCircleMinus:bc,LucideCircleOff:Cv,LucideCircleParking:Cc,LucideCircleParkingOff:_c,LucideCirclePause:Sc,LucideCirclePercent:Lc,LucideCirclePile:Sv,LucideCirclePlay:Nc,LucideCirclePlus:Ic,LucideCirclePoundSterling:Lv,LucideCirclePower:Ac,LucideCircleQuestionMark:Xo,LucideCircleSlash:Nv,LucideCircleSlash2:Ec,LucideCircleSlashed:Ec,LucideCircleSmall:Iv,LucideCircleStar:Av,LucideCircleStop:$c,LucideCircleUser:Pc,LucideCircleUserRound:jc,LucideCircleX:zc,LucideCircuitBoard:Ev,LucideCitrus:jv,LucideClapperboard:$v,LucideClipboard:Vv,LucideClipboardCheck:Pv,LucideClipboardClock:zv,LucideClipboardCopy:Rv,LucideClipboardEdit:Tc,LucideClipboardList:Tv,LucideClipboardMinus:Dv,LucideClipboardPaste:Hv,LucideClipboardPen:Tc,LucideClipboardPenLine:Rc,LucideClipboardPlus:Ov,LucideClipboardSignature:Rc,LucideClipboardType:Fv,LucideClipboardX:qv,LucideClock:cx,LucideClock1:Bv,LucideClock10:Uv,LucideClock11:Wv,LucideClock12:Gv,LucideClock2:Kv,LucideClock3:Xv,LucideClock4:Zv,LucideClock5:Yv,LucideClock6:Qv,LucideClock7:Jv,LucideClock8:ex,LucideClock9:tx,LucideClockAlert:nx,LucideClockArrowDown:ox,LucideClockArrowUp:ax,LucideClockCheck:rx,LucideClockFading:ix,LucideClockPlus:sx,LucideClosedCaption:lx,LucideCloud:h2,LucideCloudAlert:dx,LucideCloudBackup:ux,LucideCloudCheck:hx,LucideCloudCog:fx,LucideCloudDownload:Dc,LucideCloudDrizzle:px,LucideCloudFog:yx,LucideCloudHail:mx,LucideCloudLightning:gx,LucideCloudMoon:vx,LucideCloudMoonRain:kx,LucideCloudOff:xx,LucideCloudRain:Mx,LucideCloudRainWind:wx,LucideCloudSnow:bx,LucideCloudSun:Cx,LucideCloudSunRain:_x,LucideCloudSync:Sx,LucideCloudUpload:Hc,LucideCloudy:Lx,LucideClover:Nx,LucideClub:Ix,LucideCode:Ax,LucideCode2:Oc,LucideCodeSquare:$1,LucideCodeXml:Oc,LucideCodepen:Ex,LucideCodesandbox:jx,LucideCoffee:$x,LucideCog:Px,LucideCoins:zx,LucideColumns:Fc,LucideColumns2:Fc,LucideColumns3:Ca,LucideColumns3Cog:$r,LucideColumns4:Rx,LucideColumnsSettings:$r,LucideCombine:Tx,LucideCommand:Dx,LucideCompass:Hx,LucideComponent:Ox,LucideComputer:Fx,LucideConciergeBell:qx,LucideCone:Vx,LucideConstruction:Bx,LucideContact:Ux,LucideContact2:qc,LucideContactRound:qc,LucideContainer:Wx,LucideContrast:Gx,LucideCookie:Kx,LucideCookingPot:Xx,LucideCopy:t3,LucideCopyCheck:Zx,LucideCopyMinus:Yx,LucideCopyPlus:Qx,LucideCopySlash:Jx,LucideCopyX:e3,LucideCopyleft:o3,LucideCopyright:n3,LucideCornerDownLeft:r3,LucideCornerDownRight:i3,LucideCornerLeftDown:a3,LucideCornerLeftUp:s3,LucideCornerRightDown:l3,LucideCornerRightUp:c3,LucideCornerUpLeft:u3,LucideCornerUpRight:d3,LucideCpu:h3,LucideCreativeCommons:f3,LucideCreditCard:p3,LucideCroissant:y3,LucideCrop:m3,LucideCross:g3,LucideCrosshair:k3,LucideCrown:v3,LucideCuboid:x3,LucideCupSoda:w3,LucideCurlyBraces:Ws,LucideCurrency:M3,LucideCylinder:b3,LucideDam:_3,LucideDatabase:f2,LucideDatabaseBackup:C3,LucideDatabaseSearch:S3,LucideDatabaseZap:L3,LucideDecimalsArrowLeft:N3,LucideDecimalsArrowRight:I3,LucideDelete:A3,LucideDessert:E3,LucideDiameter:j3,LucideDiamond:g0,LucideDiamondMinus:$3,LucideDiamondPercent:Vc,LucideDiamondPlus:P3,LucideDice1:z3,LucideDice2:T3,LucideDice3:R3,LucideDice4:D3,LucideDice5:H3,LucideDice6:O3,LucideDices:F3,LucideDiff:q3,LucideDisc:W3,LucideDisc2:V3,LucideDisc3:U3,LucideDiscAlbum:B3,LucideDivide:G3,LucideDivideCircle:wc,LucideDivideSquare:T1,LucideDna:X3,LucideDnaOff:K3,LucideDock:Z3,LucideDog:Y3,LucideDollarSign:Q3,LucideDonut:J3,LucideDoorClosed:t8,LucideDoorClosedLocked:e8,LucideDoorOpen:n8,LucideDot:o8,LucideDotSquare:D1,LucideDownload:k0,LucideDownloadCloud:Dc,LucideDraftingCompass:r8,LucideDrama:i8,LucideDribbble:a8,LucideDrill:s8,LucideDrone:c8,LucideDroplet:d8,LucideDropletOff:l8,LucideDroplets:u8,LucideDrum:h8,LucideDrumstick:f8,LucideDumbbell:p8,LucideEar:y8,LucideEarOff:m8,LucideEarth:Bc,LucideEarthLock:g8,LucideEclipse:k8,LucideEdit:so,LucideEdit2:e1,LucideEdit3:Jl,LucideEgg:w8,LucideEggFried:v8,LucideEggOff:x8,LucideEllipsis:Wc,LucideEllipsisVertical:Uc,LucideEqual:_8,LucideEqualApproximately:M8,LucideEqualNot:b8,LucideEqualSquare:H1,LucideEraser:C8,LucideEthernetPort:S8,LucideEuro:L8,LucideEvCharger:N8,LucideExpand:I8,LucideExternalLink:p2,LucideEye:j8,LucideEyeClosed:A8,LucideEyeOff:E8,LucideFacebook:$8,LucideFactory:P8,LucideFan:R8,LucideFastForward:z8,LucideFeather:T8,LucideFence:D8,LucideFerrisWheel:H8,LucideFigma:O8,LucideFile:f6,LucideFileArchive:F8,LucideFileAudio:Pr,LucideFileAudio2:Pr,LucideFileAxis3D:Gc,LucideFileAxis3d:Gc,LucideFileBadge:Kc,LucideFileBadge2:Kc,LucideFileBarChart:Yc,LucideFileBarChart2:Qc,LucideFileBox:q8,LucideFileBraces:Zc,LucideFileBracesCorner:Xc,LucideFileChartColumn:Qc,LucideFileChartColumnIncreasing:Yc,LucideFileChartLine:Jc,LucideFileChartPie:el,LucideFileCheck:V8,LucideFileCheck2:tl,LucideFileCheckCorner:tl,LucideFileClock:U8,LucideFileCode:B8,LucideFileCode2:nl,LucideFileCodeCorner:nl,LucideFileCog:ol,LucideFileCog2:ol,LucideFileDiff:W8,LucideFileDigit:G8,LucideFileDown:y2,LucideFileEdit:ll,LucideFileExclamationPoint:rl,LucideFileHeadphone:Pr,LucideFileHeart:K8,LucideFileImage:X8,LucideFileInput:Z8,LucideFileJson:Zc,LucideFileJson2:Xc,LucideFileKey:il,LucideFileKey2:il,LucideFileLineChart:Jc,LucideFileLock:al,LucideFileLock2:al,LucideFileMinus:Y8,LucideFileMinus2:sl,LucideFileMinusCorner:sl,LucideFileMusic:J8,LucideFileOutput:Q8,LucideFilePen:ll,LucideFilePenLine:cl,LucideFilePieChart:el,LucideFilePlay:dl,LucideFilePlus:e6,LucideFilePlus2:ul,LucideFilePlusCorner:ul,LucideFileQuestion:hl,LucideFileQuestionMark:hl,LucideFileScan:t6,LucideFileSearch:n6,LucideFileSearch2:fl,LucideFileSearchCorner:fl,LucideFileSignal:pl,LucideFileSignature:cl,LucideFileSliders:o6,LucideFileSpreadsheet:r6,LucideFileStack:i6,LucideFileSymlink:a6,LucideFileTerminal:s6,LucideFileText:m2,LucideFileType:c6,LucideFileType2:yl,LucideFileTypeCorner:yl,LucideFileUp:l6,LucideFileUser:d6,LucideFileVideo:dl,LucideFileVideo2:ml,LucideFileVideoCamera:ml,LucideFileVolume:u6,LucideFileVolume2:pl,LucideFileWarning:rl,LucideFileX:h6,LucideFileX2:gl,LucideFileXCorner:gl,LucideFiles:p6,LucideFilm:y6,LucideFilter:Ml,LucideFilterX:wl,LucideFingerprint:kl,LucideFingerprintPattern:kl,LucideFireExtinguisher:m6,LucideFish:v6,LucideFishOff:g6,LucideFishSymbol:k6,LucideFishingHook:x6,LucideFlag:_6,LucideFlagOff:w6,LucideFlagTriangleLeft:M6,LucideFlagTriangleRight:b6,LucideFlame:S6,LucideFlameKindling:C6,LucideFlashlight:N6,LucideFlashlightOff:L6,LucideFlaskConical:E6,LucideFlaskConicalOff:I6,LucideFlaskRound:A6,LucideFlipHorizontal:$6,LucideFlipHorizontal2:j6,LucideFlipVertical:z6,LucideFlipVertical2:P6,LucideFlower:T6,LucideFlower2:R6,LucideFocus:D6,LucideFoldHorizontal:H6,LucideFoldVertical:O6,LucideFolder:fw,LucideFolderArchive:F6,LucideFolderCheck:q6,LucideFolderClock:V6,LucideFolderClosed:U6,LucideFolderCode:B6,LucideFolderCog:vl,LucideFolderCog2:vl,LucideFolderDot:W6,LucideFolderDown:G6,LucideFolderEdit:xl,LucideFolderGit:X6,LucideFolderGit2:K6,LucideFolderHeart:Z6,LucideFolderInput:Y6,LucideFolderKanban:Q6,LucideFolderKey:J6,LucideFolderLock:ew,LucideFolderMinus:tw,LucideFolderOpen:g2,LucideFolderOpenDot:nw,LucideFolderOutput:ow,LucideFolderPen:xl,LucideFolderPlus:rw,LucideFolderRoot:iw,LucideFolderSearch:sw,LucideFolderSearch2:aw,LucideFolderSymlink:cw,LucideFolderSync:lw,LucideFolderTree:dw,LucideFolderUp:uw,LucideFolderX:hw,LucideFolders:pw,LucideFootprints:yw,LucideForkKnife:Ld,LucideForkKnifeCrossed:Sd,LucideForklift:kw,LucideForm:mw,LucideFormInput:n1,LucideForward:gw,LucideFrame:vw,LucideFramer:Mw,LucideFrown:xw,LucideFuel:ww,LucideFullscreen:bw,LucideFunctionSquare:O1,LucideFunnel:Ml,LucideFunnelPlus:_w,LucideFunnelX:wl,LucideGalleryHorizontal:Sw,LucideGalleryHorizontalEnd:Cw,LucideGalleryThumbnails:Lw,LucideGalleryVertical:Iw,LucideGalleryVerticalEnd:Nw,LucideGamepad:$w,LucideGamepad2:Aw,LucideGamepadDirectional:Ew,LucideGanttChart:rc,LucideGanttChartSquare:Dr,LucideGauge:jw,LucideGaugeCircle:Mc,LucideGavel:Pw,LucideGem:zw,LucideGeorgianLari:Rw,LucideGhost:Dw,LucideGift:Tw,LucideGitBranch:Fw,LucideGitBranchMinus:Hw,LucideGitBranchPlus:Ow,LucideGitCommit:bl,LucideGitCommitHorizontal:bl,LucideGitCommitVertical:qw,LucideGitCompare:Bw,LucideGitCompareArrows:Vw,LucideGitFork:Uw,LucideGitGraph:Ww,LucideGitMerge:Gw,LucideGitPullRequest:Jw,LucideGitPullRequestArrow:Kw,LucideGitPullRequestClosed:Xw,LucideGitPullRequestCreate:Yw,LucideGitPullRequestCreateArrow:Zw,LucideGitPullRequestDraft:Qw,LucideGithub:e7,LucideGitlab:t7,LucideGlassWater:n7,LucideGlasses:o7,LucideGlobe:a7,LucideGlobe2:Bc,LucideGlobeLock:r7,LucideGlobeX:i7,LucideGoal:s7,LucideGpu:c7,LucideGrab:Nl,LucideGraduationCap:l7,LucideGrape:d7,LucideGrid:zr,LucideGrid2X2:Ll,LucideGrid2X2Check:_l,LucideGrid2X2Plus:Cl,LucideGrid2X2X:Sl,LucideGrid2x2:Ll,LucideGrid2x2Check:_l,LucideGrid2x2Plus:Cl,LucideGrid2x2X:Sl,LucideGrid3X3:zr,LucideGrid3x2:u7,LucideGrid3x3:zr,LucideGrip:f7,LucideGripHorizontal:h7,LucideGripVertical:p7,LucideGroup:y7,LucideGuitar:m7,LucideHam:g7,LucideHamburger:k7,LucideHammer:v7,LucideHand:k2,LucideHandCoins:x7,LucideHandFist:w7,LucideHandGrab:Nl,LucideHandHeart:M7,LucideHandHelping:Il,LucideHandMetal:b7,LucideHandPlatter:_7,LucideHandbag:C7,LucideHandshake:S7,LucideHardDrive:I7,LucideHardDriveDownload:L7,LucideHardDriveUpload:N7,LucideHardHat:A7,LucideHash:E7,LucideHatGlasses:j7,LucideHaze:$7,LucideHd:P7,LucideHdmiPort:z7,LucideHeading:q7,LucideHeading1:R7,LucideHeading2:T7,LucideHeading3:D7,LucideHeading4:H7,LucideHeading5:O7,LucideHeading6:F7,LucideHeadphoneOff:V7,LucideHeadphones:B7,LucideHeadset:U7,LucideHeart:Q7,LucideHeartCrack:W7,LucideHeartHandshake:K7,LucideHeartMinus:G7,LucideHeartOff:X7,LucideHeartPlus:Z7,LucideHeartPulse:Y7,LucideHeater:J7,LucideHelicopter:eM,LucideHelpCircle:Xo,LucideHelpingHand:Il,LucideHexagon:v2,LucideHighlighter:tM,LucideHistory:nM,LucideHome:Al,LucideHop:oM,LucideHopOff:rM,LucideHospital:iM,LucideHotel:aM,LucideHourglass:sM,LucideHouse:Al,LucideHouseHeart:cM,LucideHousePlug:lM,LucideHousePlus:dM,LucideHouseWifi:uM,LucideIceCream:jl,LucideIceCream2:El,LucideIceCreamBowl:El,LucideIceCreamCone:jl,LucideIdCard:fM,LucideIdCardLanyard:hM,LucideImage:w2,LucideImageDown:pM,LucideImageMinus:mM,LucideImageOff:yM,LucideImagePlay:gM,LucideImagePlus:x2,LucideImageUp:kM,LucideImageUpscale:vM,LucideImages:xM,LucideImport:wM,LucideInbox:MM,LucideIndent:Tr,LucideIndentDecrease:Rr,LucideIndentIncrease:Tr,LucideIndianRupee:bM,LucideInfinity:CM,LucideInfo:_M,LucideInspect:W1,LucideInspectionPanel:SM,LucideInstagram:LM,LucideItalic:NM,LucideIterationCcw:IM,LucideIterationCw:AM,LucideJapaneseYen:EM,LucideJoystick:jM,LucideKanban:$M,LucideKanbanSquare:F1,LucideKanbanSquareDashed:P1,LucideKayak:PM,LucideKey:TM,LucideKeyRound:zM,LucideKeySquare:RM,LucideKeyboard:OM,LucideKeyboardMusic:DM,LucideKeyboardOff:HM,LucideLamp:WM,LucideLampCeiling:FM,LucideLampDesk:qM,LucideLampFloor:VM,LucideLampWallDown:BM,LucideLampWallUp:UM,LucideLandPlot:GM,LucideLandmark:KM,LucideLanguages:XM,LucideLaptop:QM,LucideLaptop2:$l,LucideLaptopMinimal:$l,LucideLaptopMinimalCheck:ZM,LucideLasso:JM,LucideLassoSelect:YM,LucideLaugh:eb,LucideLayers:Pi,LucideLayers2:tb,LucideLayers3:Pi,LucideLayersPlus:nb,LucideLayout:Ql,LucideLayoutDashboard:M2,LucideLayoutGrid:ob,LucideLayoutList:rb,LucideLayoutPanelLeft:ib,LucideLayoutPanelTop:sb,LucideLayoutTemplate:ab,LucideLeaf:cb,LucideLeafyGreen:lb,LucideLectern:db,LucideLetterText:hd,LucideLibrary:hb,LucideLibraryBig:ub,LucideLibrarySquare:q1,LucideLifeBuoy:fb,LucideLigature:pb,LucideLightbulb:mb,LucideLightbulbOff:yb,LucideLineChart:tc,LucideLineSquiggle:gb,LucideLink:vb,LucideLink2:Ua,LucideLink2Off:kb,LucideLinkedin:xb,LucideList:Hb,LucideListCheck:wb,LucideListChecks:Mb,LucideListChevronsDownUp:bb,LucideListChevronsUpDown:Cb,LucideListCollapse:_b,LucideListEnd:Sb,LucideListFilter:Nb,LucideListFilterPlus:Lb,LucideListIndentDecrease:Rr,LucideListIndentIncrease:Tr,LucideListMinus:Ib,LucideListMusic:Ab,LucideListOrdered:Eb,LucideListPlus:jb,LucideListRestart:$b,LucideListStart:Pb,LucideListTodo:zb,LucideListTree:Rb,LucideListVideo:Tb,LucideListX:Db,LucideLoader:Fb,LucideLoader2:Wn,LucideLoaderCircle:Wn,LucideLoaderPinwheel:Ob,LucideLocate:Bb,LucideLocateFixed:qb,LucideLocateOff:Vb,LucideLocationEdit:Tl,LucideLock:Wb,LucideLockKeyhole:Ub,LucideLockKeyholeOpen:Pl,LucideLockOpen:zl,LucideLogIn:Gb,LucideLogOut:Kb,LucideLogs:Xb,LucideLollipop:Zb,LucideLuggage:Yb,LucideMSquare:V1,LucideMagnet:Qb,LucideMail:a9,LucideMailCheck:Jb,LucideMailMinus:e9,LucideMailOpen:t9,LucideMailPlus:n9,LucideMailQuestion:Rl,LucideMailQuestionMark:Rl,LucideMailSearch:o9,LucideMailWarning:r9,LucideMailX:i9,LucideMailbox:c9,LucideMails:s9,LucideMap:b9,LucideMapMinus:l9,LucideMapPin:x9,LucideMapPinCheck:u9,LucideMapPinCheckInside:d9,LucideMapPinHouse:h9,LucideMapPinMinus:p9,LucideMapPinMinusInside:f9,LucideMapPinOff:y9,LucideMapPinPen:Tl,LucideMapPinPlus:g9,LucideMapPinPlusInside:m9,LucideMapPinX:k9,LucideMapPinXInside:v9,LucideMapPinned:w9,LucideMapPlus:M9,LucideMars:C9,LucideMarsStroke:_9,LucideMartini:S9,LucideMaximize:L9,LucideMaximize2:Hd,LucideMedal:N9,LucideMegaphone:A9,LucideMegaphoneOff:I9,LucideMeh:E9,LucideMemoryStick:j9,LucideMenu:P9,LucideMenuSquare:B1,LucideMerge:$9,LucideMessageCircle:B9,LucideMessageCircleCode:z9,LucideMessageCircleDashed:R9,LucideMessageCircleHeart:T9,LucideMessageCircleMore:D9,LucideMessageCircleOff:H9,LucideMessageCirclePlus:O9,LucideMessageCircleQuestion:Dl,LucideMessageCircleQuestionMark:Dl,LucideMessageCircleReply:F9,LucideMessageCircleWarning:q9,LucideMessageCircleX:V9,LucideMessageSquare:a_,LucideMessageSquareCode:U9,LucideMessageSquareDashed:W9,LucideMessageSquareDiff:G9,LucideMessageSquareDot:K9,LucideMessageSquareHeart:X9,LucideMessageSquareLock:Z9,LucideMessageSquareMore:Y9,LucideMessageSquareOff:Q9,LucideMessageSquarePlus:J9,LucideMessageSquareQuote:e_,LucideMessageSquareReply:t_,LucideMessageSquareShare:n_,LucideMessageSquareText:o_,LucideMessageSquareWarning:r_,LucideMessageSquareX:i_,LucideMessagesSquare:s_,LucideMic:l_,LucideMic2:Hl,LucideMicOff:c_,LucideMicVocal:Hl,LucideMicrochip:d_,LucideMicroscope:u_,LucideMicrowave:h_,LucideMilestone:f_,LucideMilk:y_,LucideMilkOff:p_,LucideMinimize:g_,LucideMinimize2:m_,LucideMinus:b2,LucideMinusCircle:bc,LucideMinusSquare:U1,LucideMonitor:E_,LucideMonitorCheck:k_,LucideMonitorCloud:v_,LucideMonitorCog:x_,LucideMonitorDot:w_,LucideMonitorDown:M_,LucideMonitorOff:b_,LucideMonitorPause:__,LucideMonitorPlay:C_,LucideMonitorSmartphone:S_,LucideMonitorSpeaker:L_,LucideMonitorStop:N_,LucideMonitorUp:I_,LucideMonitorX:A_,LucideMoon:$_,LucideMoonStar:j_,LucideMoreHorizontal:Wc,LucideMoreVertical:Uc,LucideMotorbike:P_,LucideMountain:R_,LucideMountainSnow:z_,LucideMouse:q_,LucideMouseOff:T_,LucideMousePointer:F_,LucideMousePointer2:_2,LucideMousePointer2Off:D_,LucideMousePointerBan:H_,LucideMousePointerClick:O_,LucideMousePointerSquareDashed:z1,LucideMove:eC,LucideMove3D:Ol,LucideMove3d:Ol,LucideMoveDiagonal:B_,LucideMoveDiagonal2:V_,LucideMoveDown:G_,LucideMoveDownLeft:U_,LucideMoveDownRight:W_,LucideMoveHorizontal:K_,LucideMoveLeft:C2,LucideMoveRight:X_,LucideMoveUp:Q_,LucideMoveUpLeft:Z_,LucideMoveUpRight:Y_,LucideMoveVertical:J_,LucideMusic:rC,LucideMusic2:tC,LucideMusic3:nC,LucideMusic4:oC,LucideNavigation:cC,LucideNavigation2:aC,LucideNavigation2Off:iC,LucideNavigationOff:sC,LucideNetwork:lC,LucideNewspaper:dC,LucideNfc:uC,LucideNonBinary:hC,LucideNotebook:mC,LucideNotebookPen:fC,LucideNotebookTabs:pC,LucideNotebookText:yC,LucideNotepadText:kC,LucideNotepadTextDashed:gC,LucideNut:vC,LucideNutOff:xC,LucideOctagon:MC,LucideOctagonAlert:Fl,LucideOctagonMinus:wC,LucideOctagonPause:ql,LucideOctagonX:Vl,LucideOmega:bC,LucideOption:CC,LucideOrbit:_C,LucideOrigami:SC,LucideOutdent:Rr,LucidePackage:PC,LucidePackage2:LC,LucidePackageCheck:NC,LucidePackageMinus:IC,LucidePackageOpen:AC,LucidePackagePlus:EC,LucidePackageSearch:jC,LucidePackageX:$C,LucidePaintBucket:zC,LucidePaintRoller:RC,LucidePaintbrush:TC,LucidePaintbrush2:Bl,LucidePaintbrushVertical:Bl,LucidePalette:DC,LucidePalmtree:md,LucidePanda:HC,LucidePanelBottom:FC,LucidePanelBottomClose:OC,LucidePanelBottomDashed:Ul,LucidePanelBottomInactive:Ul,LucidePanelBottomOpen:qC,LucidePanelLeft:Xl,LucidePanelLeftClose:Wl,LucidePanelLeftDashed:Gl,LucidePanelLeftInactive:Gl,LucidePanelLeftOpen:Kl,LucidePanelLeftRightDashed:VC,LucidePanelRight:BC,LucidePanelRightClose:v0,LucidePanelRightDashed:Zl,LucidePanelRightInactive:Zl,LucidePanelRightOpen:S2,LucidePanelTop:KC,LucidePanelTopBottomDashed:UC,LucidePanelTopClose:WC,LucidePanelTopDashed:Yl,LucidePanelTopInactive:Yl,LucidePanelTopOpen:GC,LucidePanelsLeftBottom:XC,LucidePanelsLeftRight:Ca,LucidePanelsRightBottom:ZC,LucidePanelsTopBottom:i1,LucidePanelsTopLeft:Ql,LucidePaperclip:YC,LucideParentheses:JC,LucideParkingCircle:Cc,LucideParkingCircleOff:_c,LucideParkingMeter:QC,LucideParkingSquare:K1,LucideParkingSquareOff:G1,LucidePartyPopper:eS,LucidePause:tS,LucidePauseCircle:Sc,LucidePauseOctagon:ql,LucidePawPrint:nS,LucidePcCase:oS,LucidePen:e1,LucidePenBox:so,LucidePenLine:Jl,LucidePenOff:rS,LucidePenSquare:so,LucidePenTool:iS,LucidePencil:N2,LucidePencilLine:L2,LucidePencilOff:aS,LucidePencilRuler:sS,LucidePentagon:cS,LucidePercent:lS,LucidePercentCircle:Lc,LucidePercentDiamond:Vc,LucidePercentSquare:X1,LucidePersonStanding:uS,LucidePhilippinePeso:dS,LucidePhone:kS,LucidePhoneCall:hS,LucidePhoneForwarded:fS,LucidePhoneIncoming:pS,LucidePhoneMissed:yS,LucidePhoneOff:mS,LucidePhoneOutgoing:gS,LucidePi:vS,LucidePiSquare:Q1,LucidePiano:xS,LucidePickaxe:wS,LucidePictureInPicture:bS,LucidePictureInPicture2:MS,LucidePieChart:ic,LucidePiggyBank:_S,LucidePilcrow:LS,LucidePilcrowLeft:CS,LucidePilcrowRight:SS,LucidePilcrowSquare:Z1,LucidePill:IS,LucidePillBottle:NS,LucidePin:ES,LucidePinOff:AS,LucidePipette:jS,LucidePizza:$S,LucidePlane:RS,LucidePlaneLanding:PS,LucidePlaneTakeoff:zS,LucidePlay:Od,LucidePlayCircle:Nc,LucidePlaySquare:Y1,LucidePlug:DS,LucidePlug2:TS,LucidePlugZap:t1,LucidePlugZap2:t1,LucidePlus:I2,LucidePlusCircle:Ic,LucidePlusSquare:J1,LucidePocket:OS,LucidePocketKnife:HS,LucidePodcast:qS,LucidePointer:VS,LucidePointerOff:FS,LucidePopcorn:BS,LucidePopsicle:US,LucidePoundSterling:WS,LucidePower:KS,LucidePowerCircle:Ac,LucidePowerOff:GS,LucidePowerSquare:ed,LucidePresentation:XS,LucidePrinter:QS,LucidePrinterCheck:ZS,LucidePrinterX:YS,LucideProjector:eL,LucideProportions:JS,LucidePuzzle:tL,LucidePyramid:nL,LucideQrCode:oL,LucideQuote:rL,LucideRabbit:iL,LucideRadar:aL,LucideRadiation:sL,LucideRadical:cL,LucideRadio:uL,LucideRadioReceiver:lL,LucideRadioTower:dL,LucideRadius:hL,LucideRailSymbol:fL,LucideRainbow:pL,LucideRat:yL,LucideRatio:mL,LucideReceipt:SL,LucideReceiptCent:gL,LucideReceiptEuro:kL,LucideReceiptIndianRupee:vL,LucideReceiptJapaneseYen:xL,LucideReceiptPoundSterling:wL,LucideReceiptRussianRuble:ML,LucideReceiptSwissFranc:bL,LucideReceiptText:_L,LucideReceiptTurkishLira:CL,LucideRectangleCircle:LL,LucideRectangleEllipsis:n1,LucideRectangleGoggles:NL,LucideRectangleHorizontal:IL,LucideRectangleVertical:AL,LucideRecycle:EL,LucideRedo:PL,LucideRedo2:jL,LucideRedoDot:$L,LucideRefreshCcw:TL,LucideRefreshCcwDot:zL,LucideRefreshCw:DL,LucideRefreshCwOff:RL,LucideRefrigerator:HL,LucideRegex:OL,LucideRemoveFormatting:FL,LucideRepeat:BL,LucideRepeat1:VL,LucideRepeat2:qL,LucideReplace:WL,LucideReplaceAll:UL,LucideReply:KL,LucideReplyAll:GL,LucideRewind:XL,LucideRibbon:YL,LucideRocket:ZL,LucideRockingChair:QL,LucideRollerCoaster:JL,LucideRose:eN,LucideRotate3D:o1,LucideRotate3d:o1,LucideRotateCcw:oN,LucideRotateCcwKey:tN,LucideRotateCcwSquare:nN,LucideRotateCw:iN,LucideRotateCwSquare:rN,LucideRoute:sN,LucideRouteOff:aN,LucideRouter:cN,LucideRows:r1,LucideRows2:r1,LucideRows3:i1,LucideRows4:lN,LucideRss:dN,LucideRuler:hN,LucideRulerDimensionLine:uN,LucideRussianRuble:fN,LucideSailboat:pN,LucideSalad:yN,LucideSandwich:mN,LucideSatellite:kN,LucideSatelliteDish:gN,LucideSaudiRiyal:vN,LucideSave:MN,LucideSaveAll:xN,LucideSaveOff:wN,LucideScale:bN,LucideScale3D:a1,LucideScale3d:a1,LucideScaling:_N,LucideScan:$N,LucideScanBarcode:CN,LucideScanEye:SN,LucideScanFace:LN,LucideScanHeart:NN,LucideScanLine:IN,LucideScanQrCode:AN,LucideScanSearch:EN,LucideScanText:jN,LucideScatterChart:ac,LucideSchool:PN,LucideSchool2:kd,LucideScissors:TN,LucideScissorsLineDashed:zN,LucideScissorsSquare:td,LucideScissorsSquareDashedBottom:S1,LucideScooter:RN,LucideScreenShare:HN,LucideScreenShareOff:DN,LucideScroll:FN,LucideScrollText:ON,LucideSearch:A2,LucideSearchAlert:qN,LucideSearchCheck:VN,LucideSearchCode:BN,LucideSearchSlash:UN,LucideSearchX:WN,LucideSection:GN,LucideSend:XN,LucideSendHorizonal:s1,LucideSendHorizontal:s1,LucideSendToBack:KN,LucideSeparatorHorizontal:YN,LucideSeparatorVertical:ZN,LucideServer:E2,LucideServerCog:QN,LucideServerCrash:JN,LucideServerOff:eI,LucideSettings:nI,LucideSettings2:tI,LucideShapes:j2,LucideShare:oI,LucideShare2:$2,LucideSheet:rI,LucideShell:iI,LucideShield:yI,LucideShieldAlert:aI,LucideShieldBan:sI,LucideShieldCheck:cI,LucideShieldClose:l1,LucideShieldEllipsis:lI,LucideShieldHalf:dI,LucideShieldMinus:uI,LucideShieldOff:hI,LucideShieldPlus:fI,LucideShieldQuestion:c1,LucideShieldQuestionMark:c1,LucideShieldUser:pI,LucideShieldX:l1,LucideShip:kI,LucideShipWheel:mI,LucideShirt:gI,LucideShoppingBag:xI,LucideShoppingBasket:vI,LucideShoppingCart:wI,LucideShovel:MI,LucideShowerHead:bI,LucideShredder:_I,LucideShrimp:CI,LucideShrink:SI,LucideShrub:LI,LucideShuffle:NI,LucideSidebar:Xl,LucideSidebarClose:Wl,LucideSidebarOpen:Kl,LucideSigma:II,LucideSigmaSquare:nd,LucideSignal:PI,LucideSignalHigh:AI,LucideSignalLow:EI,LucideSignalMedium:jI,LucideSignalZero:$I,LucideSignature:zI,LucideSignpost:TI,LucideSignpostBig:RI,LucideSiren:DI,LucideSkipBack:HI,LucideSkipForward:OI,LucideSkull:FI,LucideSlack:qI,LucideSlash:VI,LucideSlashSquare:od,LucideSlice:BI,LucideSliders:d1,LucideSlidersHorizontal:UI,LucideSlidersVertical:d1,LucideSmartphone:KI,LucideSmartphoneCharging:WI,LucideSmartphoneNfc:GI,LucideSmile:ZI,LucideSmilePlus:XI,LucideSnail:YI,LucideSnowflake:QI,LucideSoapDispenserDroplet:JI,LucideSofa:eA,LucideSolarPanel:tA,LucideSortAsc:Ds,LucideSortDesc:zs,LucideSoup:nA,LucideSpace:oA,LucideSpade:rA,LucideSparkle:iA,LucideSparkles:u1,LucideSpeaker:aA,LucideSpeech:sA,LucideSpellCheck:lA,LucideSpellCheck2:cA,LucideSpline:dA,LucideSplinePointer:uA,LucideSplit:hA,LucideSplitSquareHorizontal:rd,LucideSplitSquareVertical:id,LucideSpool:fA,LucideSpotlight:pA,LucideSprayCan:yA,LucideSprout:mA,LucideSquare:x0,LucideSquareActivity:h1,LucideSquareArrowDown:y1,LucideSquareArrowDownLeft:f1,LucideSquareArrowDownRight:p1,LucideSquareArrowLeft:m1,LucideSquareArrowOutDownLeft:g1,LucideSquareArrowOutDownRight:k1,LucideSquareArrowOutUpLeft:v1,LucideSquareArrowOutUpRight:x1,LucideSquareArrowRight:w1,LucideSquareArrowUp:b1,LucideSquareArrowUpLeft:M1,LucideSquareArrowUpRight:C1,LucideSquareAsterisk:_1,LucideSquareBottomDashedScissors:S1,LucideSquareChartGantt:Dr,LucideSquareCheck:N1,LucideSquareCheckBig:L1,LucideSquareChevronDown:I1,LucideSquareChevronLeft:A1,LucideSquareChevronRight:j1,LucideSquareChevronUp:E1,LucideSquareCode:$1,LucideSquareDashed:R1,LucideSquareDashedBottom:kA,LucideSquareDashedBottomCode:gA,LucideSquareDashedKanban:P1,LucideSquareDashedMousePointer:z1,LucideSquareDashedTopSolid:vA,LucideSquareDivide:T1,LucideSquareDot:D1,LucideSquareEqual:H1,LucideSquareFunction:O1,LucideSquareGanttChart:Dr,LucideSquareKanban:F1,LucideSquareLibrary:q1,LucideSquareM:V1,LucideSquareMenu:B1,LucideSquareMinus:U1,LucideSquareMousePointer:W1,LucideSquareParking:K1,LucideSquareParkingOff:G1,LucideSquarePause:xA,LucideSquarePen:so,LucideSquarePercent:X1,LucideSquarePi:Q1,LucideSquarePilcrow:Z1,LucideSquarePlay:Y1,LucideSquarePlus:J1,LucideSquarePower:ed,LucideSquareRadical:wA,LucideSquareRoundCorner:MA,LucideSquareScissors:td,LucideSquareSigma:nd,LucideSquareSlash:od,LucideSquareSplitHorizontal:rd,LucideSquareSplitVertical:id,LucideSquareSquare:_A,LucideSquareStack:bA,LucideSquareStar:SA,LucideSquareStop:CA,LucideSquareTerminal:ad,LucideSquareUser:cd,LucideSquareUserRound:sd,LucideSquareX:ld,LucideSquaresExclude:LA,LucideSquaresIntersect:NA,LucideSquaresSubtract:IA,LucideSquaresUnite:AA,LucideSquircle:w0,LucideSquircleDashed:EA,LucideSquirrel:jA,LucideStamp:$A,LucideStar:RA,LucideStarHalf:PA,LucideStarOff:zA,LucideStars:u1,LucideStepBack:TA,LucideStepForward:DA,LucideStethoscope:HA,LucideSticker:M0,LucideStickyNote:P2,LucideStone:OA,LucideStopCircle:$c,LucideStore:FA,LucideStretchHorizontal:VA,LucideStretchVertical:qA,LucideStrikethrough:BA,LucideSubscript:UA,LucideSubtitles:Gs,LucideSun:ZA,LucideSunDim:WA,LucideSunMedium:GA,LucideSunMoon:KA,LucideSunSnow:XA,LucideSunrise:YA,LucideSunset:QA,LucideSuperscript:JA,LucideSwatchBook:eE,LucideSwissFranc:tE,LucideSwitchCamera:nE,LucideSword:oE,LucideSwords:rE,LucideSyringe:iE,LucideTable:fE,LucideTable2:aE,LucideTableCellsMerge:sE,LucideTableCellsSplit:cE,LucideTableColumnsSplit:lE,LucideTableConfig:$r,LucideTableOfContents:dE,LucideTableProperties:uE,LucideTableRowsSplit:hE,LucideTablet:yE,LucideTabletSmartphone:pE,LucideTablets:mE,LucideTag:gE,LucideTags:kE,LucideTally1:vE,LucideTally2:xE,LucideTally3:wE,LucideTally4:ME,LucideTally5:bE,LucideTangent:_E,LucideTarget:CE,LucideTelescope:SE,LucideTent:NE,LucideTentTree:LE,LucideTerminal:IE,LucideTerminalSquare:ad,LucideTestTube:AE,LucideTestTube2:dd,LucideTestTubeDiagonal:dd,LucideTestTubes:EE,LucideText:Zo,LucideTextAlignCenter:Sa,LucideTextAlignEnd:La,LucideTextAlignJustify:ud,LucideTextAlignStart:Zo,LucideTextCursor:$E,LucideTextCursorInput:jE,LucideTextInitial:hd,LucideTextQuote:PE,LucideTextSearch:zE,LucideTextSelect:fd,LucideTextSelection:fd,LucideTextWrap:pd,LucideTheater:RE,LucideThermometer:HE,LucideThermometerSnowflake:TE,LucideThermometerSun:DE,LucideThumbsDown:OE,LucideThumbsUp:FE,LucideTicket:KE,LucideTicketCheck:qE,LucideTicketMinus:VE,LucideTicketPercent:BE,LucideTicketPlus:UE,LucideTicketSlash:WE,LucideTicketX:GE,LucideTickets:ZE,LucideTicketsPlane:XE,LucideTimer:JE,LucideTimerOff:YE,LucideTimerReset:QE,LucideToggleLeft:ej,LucideToggleRight:tj,LucideToilet:nj,LucideToolCase:rj,LucideToolbox:oj,LucideTornado:ij,LucideTorus:aj,LucideTouchpad:cj,LucideTouchpadOff:sj,LucideTowerControl:lj,LucideToyBrick:dj,LucideTractor:uj,LucideTrafficCone:hj,LucideTrain:yd,LucideTrainFront:pj,LucideTrainFrontTunnel:fj,LucideTrainTrack:yj,LucideTramFront:yd,LucideTransgender:mj,LucideTrash:gj,LucideTrash2:z2,LucideTreeDeciduous:kj,LucideTreePalm:md,LucideTreePine:vj,LucideTrees:xj,LucideTrello:wj,LucideTrendingDown:Mj,LucideTrendingUp:_j,LucideTrendingUpDown:bj,LucideTriangle:R2,LucideTriangleAlert:qr,LucideTriangleDashed:Cj,LucideTriangleRight:Sj,LucideTrophy:Lj,LucideTruck:Ij,LucideTruckElectric:Nj,LucideTurkishLira:Aj,LucideTurntable:Ej,LucideTurtle:jj,LucideTv:Pj,LucideTv2:gd,LucideTvMinimal:gd,LucideTvMinimalPlay:$j,LucideTwitch:zj,LucideTwitter:Rj,LucideType:b0,LucideTypeOutline:Tj,LucideUmbrella:Hj,LucideUmbrellaOff:Dj,LucideUnderline:Oj,LucideUndo:Vj,LucideUndo2:Fj,LucideUndoDot:qj,LucideUnfoldHorizontal:Bj,LucideUnfoldVertical:Uj,LucideUngroup:Wj,LucideUniversity:kd,LucideUnlink:Kj,LucideUnlink2:Gj,LucideUnlock:zl,LucideUnlockKeyhole:Pl,LucideUnplug:Xj,LucideUpload:T2,LucideUploadCloud:Hc,LucideUsb:Zj,LucideUser:D2,LucideUser2:_d,LucideUserCheck:Yj,LucideUserCheck2:vd,LucideUserCircle:Pc,LucideUserCircle2:jc,LucideUserCog:Qj,LucideUserCog2:xd,LucideUserKey:Jj,LucideUserLock:e$,LucideUserMinus:t$,LucideUserMinus2:wd,LucideUserPen:n$,LucideUserPlus:o$,LucideUserPlus2:Md,LucideUserRound:_d,LucideUserRoundCheck:vd,LucideUserRoundCog:xd,LucideUserRoundKey:r$,LucideUserRoundMinus:wd,LucideUserRoundPen:i$,LucideUserRoundPlus:Md,LucideUserRoundSearch:a$,LucideUserRoundX:bd,LucideUserSearch:s$,LucideUserSquare:cd,LucideUserSquare2:sd,LucideUserStar:c$,LucideUserX:l$,LucideUserX2:bd,LucideUsers:d$,LucideUsers2:Cd,LucideUsersRound:Cd,LucideUtensils:Ld,LucideUtensilsCrossed:Sd,LucideUtilityPole:u$,LucideVan:h$,LucideVariable:f$,LucideVault:p$,LucideVectorSquare:y$,LucideVegan:m$,LucideVenetianMask:g$,LucideVenus:v$,LucideVenusAndMars:k$,LucideVerified:Fs,LucideVibrate:w$,LucideVibrateOff:x$,LucideVideo:b$,LucideVideoOff:M$,LucideVideotape:_$,LucideView:C$,LucideVoicemail:S$,LucideVolleyball:L$,LucideVolume:j$,LucideVolume1:N$,LucideVolume2:I$,LucideVolumeOff:A$,LucideVolumeX:E$,LucideVote:$$,LucideWallet:z$,LucideWallet2:Nd,LucideWalletCards:P$,LucideWalletMinimal:Nd,LucideWallpaper:R$,LucideWand:T$,LucideWand2:Id,LucideWandSparkles:Id,LucideWarehouse:D$,LucideWashingMachine:H$,LucideWatch:O$,LucideWaves:B$,LucideWavesArrowDown:F$,LucideWavesArrowUp:q$,LucideWavesLadder:V$,LucideWaypoints:U$,LucideWebcam:W$,LucideWebhook:K$,LucideWebhookOff:G$,LucideWeight:Z$,LucideWeightTilde:X$,LucideWheat:J$,LucideWheatOff:Y$,LucideWholeWord:Q$,LucideWifi:sP,LucideWifiCog:eP,LucideWifiHigh:tP,LucideWifiLow:nP,LucideWifiOff:oP,LucideWifiPen:rP,LucideWifiSync:iP,LucideWifiZero:aP,LucideWind:lP,LucideWindArrowDown:cP,LucideWine:uP,LucideWineOff:dP,LucideWorkflow:hP,LucideWorm:fP,LucideWrapText:pd,LucideWrench:pP,LucideX:Fd,LucideXCircle:zc,LucideXOctagon:Vl,LucideXSquare:ld,LucideYoutube:yP,LucideZap:gP,LucideZapOff:mP,LucideZoomIn:kP,LucideZoomOut:vP,Luggage:Yb,LuggageIcon:Yb,MSquare:V1,MSquareIcon:V1,Magnet:Qb,MagnetIcon:Qb,Mail:a9,MailCheck:Jb,MailCheckIcon:Jb,MailIcon:a9,MailMinus:e9,MailMinusIcon:e9,MailOpen:t9,MailOpenIcon:t9,MailPlus:n9,MailPlusIcon:n9,MailQuestion:Rl,MailQuestionIcon:Rl,MailQuestionMark:Rl,MailQuestionMarkIcon:Rl,MailSearch:o9,MailSearchIcon:o9,MailWarning:r9,MailWarningIcon:r9,MailX:i9,MailXIcon:i9,Mailbox:c9,MailboxIcon:c9,Mails:s9,MailsIcon:s9,Map:b9,MapIcon:b9,MapMinus:l9,MapMinusIcon:l9,MapPin:x9,MapPinCheck:u9,MapPinCheckIcon:u9,MapPinCheckInside:d9,MapPinCheckInsideIcon:d9,MapPinHouse:h9,MapPinHouseIcon:h9,MapPinIcon:x9,MapPinMinus:p9,MapPinMinusIcon:p9,MapPinMinusInside:f9,MapPinMinusInsideIcon:f9,MapPinOff:y9,MapPinOffIcon:y9,MapPinPen:Tl,MapPinPenIcon:Tl,MapPinPlus:g9,MapPinPlusIcon:g9,MapPinPlusInside:m9,MapPinPlusInsideIcon:m9,MapPinX:k9,MapPinXIcon:k9,MapPinXInside:v9,MapPinXInsideIcon:v9,MapPinned:w9,MapPinnedIcon:w9,MapPlus:M9,MapPlusIcon:M9,Mars:C9,MarsIcon:C9,MarsStroke:_9,MarsStrokeIcon:_9,Martini:S9,MartiniIcon:S9,Maximize:L9,Maximize2:Hd,Maximize2Icon:Hd,MaximizeIcon:L9,Medal:N9,MedalIcon:N9,Megaphone:A9,MegaphoneIcon:A9,MegaphoneOff:I9,MegaphoneOffIcon:I9,Meh:E9,MehIcon:E9,MemoryStick:j9,MemoryStickIcon:j9,Menu:P9,MenuIcon:P9,MenuSquare:B1,MenuSquareIcon:B1,Merge:$9,MergeIcon:$9,MessageCircle:B9,MessageCircleCode:z9,MessageCircleCodeIcon:z9,MessageCircleDashed:R9,MessageCircleDashedIcon:R9,MessageCircleHeart:T9,MessageCircleHeartIcon:T9,MessageCircleIcon:B9,MessageCircleMore:D9,MessageCircleMoreIcon:D9,MessageCircleOff:H9,MessageCircleOffIcon:H9,MessageCirclePlus:O9,MessageCirclePlusIcon:O9,MessageCircleQuestion:Dl,MessageCircleQuestionIcon:Dl,MessageCircleQuestionMark:Dl,MessageCircleQuestionMarkIcon:Dl,MessageCircleReply:F9,MessageCircleReplyIcon:F9,MessageCircleWarning:q9,MessageCircleWarningIcon:q9,MessageCircleX:V9,MessageCircleXIcon:V9,MessageSquare:a_,MessageSquareCode:U9,MessageSquareCodeIcon:U9,MessageSquareDashed:W9,MessageSquareDashedIcon:W9,MessageSquareDiff:G9,MessageSquareDiffIcon:G9,MessageSquareDot:K9,MessageSquareDotIcon:K9,MessageSquareHeart:X9,MessageSquareHeartIcon:X9,MessageSquareIcon:a_,MessageSquareLock:Z9,MessageSquareLockIcon:Z9,MessageSquareMore:Y9,MessageSquareMoreIcon:Y9,MessageSquareOff:Q9,MessageSquareOffIcon:Q9,MessageSquarePlus:J9,MessageSquarePlusIcon:J9,MessageSquareQuote:e_,MessageSquareQuoteIcon:e_,MessageSquareReply:t_,MessageSquareReplyIcon:t_,MessageSquareShare:n_,MessageSquareShareIcon:n_,MessageSquareText:o_,MessageSquareTextIcon:o_,MessageSquareWarning:r_,MessageSquareWarningIcon:r_,MessageSquareX:i_,MessageSquareXIcon:i_,MessagesSquare:s_,MessagesSquareIcon:s_,Mic:l_,Mic2:Hl,Mic2Icon:Hl,MicIcon:l_,MicOff:c_,MicOffIcon:c_,MicVocal:Hl,MicVocalIcon:Hl,Microchip:d_,MicrochipIcon:d_,Microscope:u_,MicroscopeIcon:u_,Microwave:h_,MicrowaveIcon:h_,Milestone:f_,MilestoneIcon:f_,Milk:y_,MilkIcon:y_,MilkOff:p_,MilkOffIcon:p_,Minimize:g_,Minimize2:m_,Minimize2Icon:m_,MinimizeIcon:g_,Minus:b2,MinusCircle:bc,MinusCircleIcon:bc,MinusIcon:b2,MinusSquare:U1,MinusSquareIcon:U1,Monitor:E_,MonitorCheck:k_,MonitorCheckIcon:k_,MonitorCloud:v_,MonitorCloudIcon:v_,MonitorCog:x_,MonitorCogIcon:x_,MonitorDot:w_,MonitorDotIcon:w_,MonitorDown:M_,MonitorDownIcon:M_,MonitorIcon:E_,MonitorOff:b_,MonitorOffIcon:b_,MonitorPause:__,MonitorPauseIcon:__,MonitorPlay:C_,MonitorPlayIcon:C_,MonitorSmartphone:S_,MonitorSmartphoneIcon:S_,MonitorSpeaker:L_,MonitorSpeakerIcon:L_,MonitorStop:N_,MonitorStopIcon:N_,MonitorUp:I_,MonitorUpIcon:I_,MonitorX:A_,MonitorXIcon:A_,Moon:$_,MoonIcon:$_,MoonStar:j_,MoonStarIcon:j_,MoreHorizontal:Wc,MoreHorizontalIcon:Wc,MoreVertical:Uc,MoreVerticalIcon:Uc,Motorbike:P_,MotorbikeIcon:P_,Mountain:R_,MountainIcon:R_,MountainSnow:z_,MountainSnowIcon:z_,Mouse:q_,MouseIcon:q_,MouseOff:T_,MouseOffIcon:T_,MousePointer:F_,MousePointer2:_2,MousePointer2Icon:_2,MousePointer2Off:D_,MousePointer2OffIcon:D_,MousePointerBan:H_,MousePointerBanIcon:H_,MousePointerClick:O_,MousePointerClickIcon:O_,MousePointerIcon:F_,MousePointerSquareDashed:z1,MousePointerSquareDashedIcon:z1,Move:eC,Move3D:Ol,Move3DIcon:Ol,Move3d:Ol,Move3dIcon:Ol,MoveDiagonal:B_,MoveDiagonal2:V_,MoveDiagonal2Icon:V_,MoveDiagonalIcon:B_,MoveDown:G_,MoveDownIcon:G_,MoveDownLeft:U_,MoveDownLeftIcon:U_,MoveDownRight:W_,MoveDownRightIcon:W_,MoveHorizontal:K_,MoveHorizontalIcon:K_,MoveIcon:eC,MoveLeft:C2,MoveLeftIcon:C2,MoveRight:X_,MoveRightIcon:X_,MoveUp:Q_,MoveUpIcon:Q_,MoveUpLeft:Z_,MoveUpLeftIcon:Z_,MoveUpRight:Y_,MoveUpRightIcon:Y_,MoveVertical:J_,MoveVerticalIcon:J_,Music:rC,Music2:tC,Music2Icon:tC,Music3:nC,Music3Icon:nC,Music4:oC,Music4Icon:oC,MusicIcon:rC,Navigation:cC,Navigation2:aC,Navigation2Icon:aC,Navigation2Off:iC,Navigation2OffIcon:iC,NavigationIcon:cC,NavigationOff:sC,NavigationOffIcon:sC,Network:lC,NetworkIcon:lC,Newspaper:dC,NewspaperIcon:dC,Nfc:uC,NfcIcon:uC,NonBinary:hC,NonBinaryIcon:hC,Notebook:mC,NotebookIcon:mC,NotebookPen:fC,NotebookPenIcon:fC,NotebookTabs:pC,NotebookTabsIcon:pC,NotebookText:yC,NotebookTextIcon:yC,NotepadText:kC,NotepadTextDashed:gC,NotepadTextDashedIcon:gC,NotepadTextIcon:kC,Nut:vC,NutIcon:vC,NutOff:xC,NutOffIcon:xC,Octagon:MC,OctagonAlert:Fl,OctagonAlertIcon:Fl,OctagonIcon:MC,OctagonMinus:wC,OctagonMinusIcon:wC,OctagonPause:ql,OctagonPauseIcon:ql,OctagonX:Vl,OctagonXIcon:Vl,Omega:bC,OmegaIcon:bC,Option:CC,OptionIcon:CC,Orbit:_C,OrbitIcon:_C,Origami:SC,OrigamiIcon:SC,Outdent:Rr,OutdentIcon:Rr,Package:PC,Package2:LC,Package2Icon:LC,PackageCheck:NC,PackageCheckIcon:NC,PackageIcon:PC,PackageMinus:IC,PackageMinusIcon:IC,PackageOpen:AC,PackageOpenIcon:AC,PackagePlus:EC,PackagePlusIcon:EC,PackageSearch:jC,PackageSearchIcon:jC,PackageX:$C,PackageXIcon:$C,PaintBucket:zC,PaintBucketIcon:zC,PaintRoller:RC,PaintRollerIcon:RC,Paintbrush:TC,Paintbrush2:Bl,Paintbrush2Icon:Bl,PaintbrushIcon:TC,PaintbrushVertical:Bl,PaintbrushVerticalIcon:Bl,Palette:DC,PaletteIcon:DC,Palmtree:md,PalmtreeIcon:md,Panda:HC,PandaIcon:HC,PanelBottom:FC,PanelBottomClose:OC,PanelBottomCloseIcon:OC,PanelBottomDashed:Ul,PanelBottomDashedIcon:Ul,PanelBottomIcon:FC,PanelBottomInactive:Ul,PanelBottomInactiveIcon:Ul,PanelBottomOpen:qC,PanelBottomOpenIcon:qC,PanelLeft:Xl,PanelLeftClose:Wl,PanelLeftCloseIcon:Wl,PanelLeftDashed:Gl,PanelLeftDashedIcon:Gl,PanelLeftIcon:Xl,PanelLeftInactive:Gl,PanelLeftInactiveIcon:Gl,PanelLeftOpen:Kl,PanelLeftOpenIcon:Kl,PanelLeftRightDashed:VC,PanelLeftRightDashedIcon:VC,PanelRight:BC,PanelRightClose:v0,PanelRightCloseIcon:v0,PanelRightDashed:Zl,PanelRightDashedIcon:Zl,PanelRightIcon:BC,PanelRightInactive:Zl,PanelRightInactiveIcon:Zl,PanelRightOpen:S2,PanelRightOpenIcon:S2,PanelTop:KC,PanelTopBottomDashed:UC,PanelTopBottomDashedIcon:UC,PanelTopClose:WC,PanelTopCloseIcon:WC,PanelTopDashed:Yl,PanelTopDashedIcon:Yl,PanelTopIcon:KC,PanelTopInactive:Yl,PanelTopInactiveIcon:Yl,PanelTopOpen:GC,PanelTopOpenIcon:GC,PanelsLeftBottom:XC,PanelsLeftBottomIcon:XC,PanelsLeftRight:Ca,PanelsLeftRightIcon:Ca,PanelsRightBottom:ZC,PanelsRightBottomIcon:ZC,PanelsTopBottom:i1,PanelsTopBottomIcon:i1,PanelsTopLeft:Ql,PanelsTopLeftIcon:Ql,Paperclip:YC,PaperclipIcon:YC,Parentheses:JC,ParenthesesIcon:JC,ParkingCircle:Cc,ParkingCircleIcon:Cc,ParkingCircleOff:_c,ParkingCircleOffIcon:_c,ParkingMeter:QC,ParkingMeterIcon:QC,ParkingSquare:K1,ParkingSquareIcon:K1,ParkingSquareOff:G1,ParkingSquareOffIcon:G1,PartyPopper:eS,PartyPopperIcon:eS,Pause:tS,PauseCircle:Sc,PauseCircleIcon:Sc,PauseIcon:tS,PauseOctagon:ql,PauseOctagonIcon:ql,PawPrint:nS,PawPrintIcon:nS,PcCase:oS,PcCaseIcon:oS,Pen:e1,PenBox:so,PenBoxIcon:so,PenIcon:e1,PenLine:Jl,PenLineIcon:Jl,PenOff:rS,PenOffIcon:rS,PenSquare:so,PenSquareIcon:so,PenTool:iS,PenToolIcon:iS,Pencil:N2,PencilIcon:N2,PencilLine:L2,PencilLineIcon:L2,PencilOff:aS,PencilOffIcon:aS,PencilRuler:sS,PencilRulerIcon:sS,Pentagon:cS,PentagonIcon:cS,Percent:lS,PercentCircle:Lc,PercentCircleIcon:Lc,PercentDiamond:Vc,PercentDiamondIcon:Vc,PercentIcon:lS,PercentSquare:X1,PercentSquareIcon:X1,PersonStanding:uS,PersonStandingIcon:uS,PhilippinePeso:dS,PhilippinePesoIcon:dS,Phone:kS,PhoneCall:hS,PhoneCallIcon:hS,PhoneForwarded:fS,PhoneForwardedIcon:fS,PhoneIcon:kS,PhoneIncoming:pS,PhoneIncomingIcon:pS,PhoneMissed:yS,PhoneMissedIcon:yS,PhoneOff:mS,PhoneOffIcon:mS,PhoneOutgoing:gS,PhoneOutgoingIcon:gS,Pi:vS,PiIcon:vS,PiSquare:Q1,PiSquareIcon:Q1,Piano:xS,PianoIcon:xS,Pickaxe:wS,PickaxeIcon:wS,PictureInPicture:bS,PictureInPicture2:MS,PictureInPicture2Icon:MS,PictureInPictureIcon:bS,PieChart:ic,PieChartIcon:ic,PiggyBank:_S,PiggyBankIcon:_S,Pilcrow:LS,PilcrowIcon:LS,PilcrowLeft:CS,PilcrowLeftIcon:CS,PilcrowRight:SS,PilcrowRightIcon:SS,PilcrowSquare:Z1,PilcrowSquareIcon:Z1,Pill:IS,PillBottle:NS,PillBottleIcon:NS,PillIcon:IS,Pin:ES,PinIcon:ES,PinOff:AS,PinOffIcon:AS,Pipette:jS,PipetteIcon:jS,Pizza:$S,PizzaIcon:$S,Plane:RS,PlaneIcon:RS,PlaneLanding:PS,PlaneLandingIcon:PS,PlaneTakeoff:zS,PlaneTakeoffIcon:zS,Play:Od,PlayCircle:Nc,PlayCircleIcon:Nc,PlayIcon:Od,PlaySquare:Y1,PlaySquareIcon:Y1,Plug:DS,Plug2:TS,Plug2Icon:TS,PlugIcon:DS,PlugZap:t1,PlugZap2:t1,PlugZap2Icon:t1,PlugZapIcon:t1,Plus:I2,PlusCircle:Ic,PlusCircleIcon:Ic,PlusIcon:I2,PlusSquare:J1,PlusSquareIcon:J1,Pocket:OS,PocketIcon:OS,PocketKnife:HS,PocketKnifeIcon:HS,Podcast:qS,PodcastIcon:qS,Pointer:VS,PointerIcon:VS,PointerOff:FS,PointerOffIcon:FS,Popcorn:BS,PopcornIcon:BS,Popsicle:US,PopsicleIcon:US,PoundSterling:WS,PoundSterlingIcon:WS,Power:KS,PowerCircle:Ac,PowerCircleIcon:Ac,PowerIcon:KS,PowerOff:GS,PowerOffIcon:GS,PowerSquare:ed,PowerSquareIcon:ed,Presentation:XS,PresentationIcon:XS,Printer:QS,PrinterCheck:ZS,PrinterCheckIcon:ZS,PrinterIcon:QS,PrinterX:YS,PrinterXIcon:YS,Projector:eL,ProjectorIcon:eL,Proportions:JS,ProportionsIcon:JS,Puzzle:tL,PuzzleIcon:tL,Pyramid:nL,PyramidIcon:nL,QrCode:oL,QrCodeIcon:oL,Quote:rL,QuoteIcon:rL,Rabbit:iL,RabbitIcon:iL,Radar:aL,RadarIcon:aL,Radiation:sL,RadiationIcon:sL,Radical:cL,RadicalIcon:cL,Radio:uL,RadioIcon:uL,RadioReceiver:lL,RadioReceiverIcon:lL,RadioTower:dL,RadioTowerIcon:dL,Radius:hL,RadiusIcon:hL,RailSymbol:fL,RailSymbolIcon:fL,Rainbow:pL,RainbowIcon:pL,Rat:yL,RatIcon:yL,Ratio:mL,RatioIcon:mL,Receipt:SL,ReceiptCent:gL,ReceiptCentIcon:gL,ReceiptEuro:kL,ReceiptEuroIcon:kL,ReceiptIcon:SL,ReceiptIndianRupee:vL,ReceiptIndianRupeeIcon:vL,ReceiptJapaneseYen:xL,ReceiptJapaneseYenIcon:xL,ReceiptPoundSterling:wL,ReceiptPoundSterlingIcon:wL,ReceiptRussianRuble:ML,ReceiptRussianRubleIcon:ML,ReceiptSwissFranc:bL,ReceiptSwissFrancIcon:bL,ReceiptText:_L,ReceiptTextIcon:_L,ReceiptTurkishLira:CL,ReceiptTurkishLiraIcon:CL,RectangleCircle:LL,RectangleCircleIcon:LL,RectangleEllipsis:n1,RectangleEllipsisIcon:n1,RectangleGoggles:NL,RectangleGogglesIcon:NL,RectangleHorizontal:IL,RectangleHorizontalIcon:IL,RectangleVertical:AL,RectangleVerticalIcon:AL,Recycle:EL,RecycleIcon:EL,Redo:PL,Redo2:jL,Redo2Icon:jL,RedoDot:$L,RedoDotIcon:$L,RedoIcon:PL,RefreshCcw:TL,RefreshCcwDot:zL,RefreshCcwDotIcon:zL,RefreshCcwIcon:TL,RefreshCw:DL,RefreshCwIcon:DL,RefreshCwOff:RL,RefreshCwOffIcon:RL,Refrigerator:HL,RefrigeratorIcon:HL,Regex:OL,RegexIcon:OL,RemoveFormatting:FL,RemoveFormattingIcon:FL,Repeat:BL,Repeat1:VL,Repeat1Icon:VL,Repeat2:qL,Repeat2Icon:qL,RepeatIcon:BL,Replace:WL,ReplaceAll:UL,ReplaceAllIcon:UL,ReplaceIcon:WL,Reply:KL,ReplyAll:GL,ReplyAllIcon:GL,ReplyIcon:KL,Rewind:XL,RewindIcon:XL,Ribbon:YL,RibbonIcon:YL,Rocket:ZL,RocketIcon:ZL,RockingChair:QL,RockingChairIcon:QL,RollerCoaster:JL,RollerCoasterIcon:JL,Rose:eN,RoseIcon:eN,Rotate3D:o1,Rotate3DIcon:o1,Rotate3d:o1,Rotate3dIcon:o1,RotateCcw:oN,RotateCcwIcon:oN,RotateCcwKey:tN,RotateCcwKeyIcon:tN,RotateCcwSquare:nN,RotateCcwSquareIcon:nN,RotateCw:iN,RotateCwIcon:iN,RotateCwSquare:rN,RotateCwSquareIcon:rN,Route:sN,RouteIcon:sN,RouteOff:aN,RouteOffIcon:aN,Router:cN,RouterIcon:cN,Rows:r1,Rows2:r1,Rows2Icon:r1,Rows3:i1,Rows3Icon:i1,Rows4:lN,Rows4Icon:lN,RowsIcon:r1,Rss:dN,RssIcon:dN,Ruler:hN,RulerDimensionLine:uN,RulerDimensionLineIcon:uN,RulerIcon:hN,RussianRuble:fN,RussianRubleIcon:fN,Sailboat:pN,SailboatIcon:pN,Salad:yN,SaladIcon:yN,Sandwich:mN,SandwichIcon:mN,Satellite:kN,SatelliteDish:gN,SatelliteDishIcon:gN,SatelliteIcon:kN,SaudiRiyal:vN,SaudiRiyalIcon:vN,Save:MN,SaveAll:xN,SaveAllIcon:xN,SaveIcon:MN,SaveOff:wN,SaveOffIcon:wN,Scale:bN,Scale3D:a1,Scale3DIcon:a1,Scale3d:a1,Scale3dIcon:a1,ScaleIcon:bN,Scaling:_N,ScalingIcon:_N,Scan:$N,ScanBarcode:CN,ScanBarcodeIcon:CN,ScanEye:SN,ScanEyeIcon:SN,ScanFace:LN,ScanFaceIcon:LN,ScanHeart:NN,ScanHeartIcon:NN,ScanIcon:$N,ScanLine:IN,ScanLineIcon:IN,ScanQrCode:AN,ScanQrCodeIcon:AN,ScanSearch:EN,ScanSearchIcon:EN,ScanText:jN,ScanTextIcon:jN,ScatterChart:ac,ScatterChartIcon:ac,School:PN,School2:kd,School2Icon:kd,SchoolIcon:PN,Scissors:TN,ScissorsIcon:TN,ScissorsLineDashed:zN,ScissorsLineDashedIcon:zN,ScissorsSquare:td,ScissorsSquareDashedBottom:S1,ScissorsSquareDashedBottomIcon:S1,ScissorsSquareIcon:td,Scooter:RN,ScooterIcon:RN,ScreenShare:HN,ScreenShareIcon:HN,ScreenShareOff:DN,ScreenShareOffIcon:DN,Scroll:FN,ScrollIcon:FN,ScrollText:ON,ScrollTextIcon:ON,Search:A2,SearchAlert:qN,SearchAlertIcon:qN,SearchCheck:VN,SearchCheckIcon:VN,SearchCode:BN,SearchCodeIcon:BN,SearchIcon:A2,SearchSlash:UN,SearchSlashIcon:UN,SearchX:WN,SearchXIcon:WN,Section:GN,SectionIcon:GN,Send:XN,SendHorizonal:s1,SendHorizonalIcon:s1,SendHorizontal:s1,SendHorizontalIcon:s1,SendIcon:XN,SendToBack:KN,SendToBackIcon:KN,SeparatorHorizontal:YN,SeparatorHorizontalIcon:YN,SeparatorVertical:ZN,SeparatorVerticalIcon:ZN,Server:E2,ServerCog:QN,ServerCogIcon:QN,ServerCrash:JN,ServerCrashIcon:JN,ServerIcon:E2,ServerOff:eI,ServerOffIcon:eI,Settings:nI,Settings2:tI,Settings2Icon:tI,SettingsIcon:nI,Shapes:j2,ShapesIcon:j2,Share:oI,Share2:$2,Share2Icon:$2,ShareIcon:oI,Sheet:rI,SheetIcon:rI,Shell:iI,ShellIcon:iI,Shield:yI,ShieldAlert:aI,ShieldAlertIcon:aI,ShieldBan:sI,ShieldBanIcon:sI,ShieldCheck:cI,ShieldCheckIcon:cI,ShieldClose:l1,ShieldCloseIcon:l1,ShieldEllipsis:lI,ShieldEllipsisIcon:lI,ShieldHalf:dI,ShieldHalfIcon:dI,ShieldIcon:yI,ShieldMinus:uI,ShieldMinusIcon:uI,ShieldOff:hI,ShieldOffIcon:hI,ShieldPlus:fI,ShieldPlusIcon:fI,ShieldQuestion:c1,ShieldQuestionIcon:c1,ShieldQuestionMark:c1,ShieldQuestionMarkIcon:c1,ShieldUser:pI,ShieldUserIcon:pI,ShieldX:l1,ShieldXIcon:l1,Ship:kI,ShipIcon:kI,ShipWheel:mI,ShipWheelIcon:mI,Shirt:gI,ShirtIcon:gI,ShoppingBag:xI,ShoppingBagIcon:xI,ShoppingBasket:vI,ShoppingBasketIcon:vI,ShoppingCart:wI,ShoppingCartIcon:wI,Shovel:MI,ShovelIcon:MI,ShowerHead:bI,ShowerHeadIcon:bI,Shredder:_I,ShredderIcon:_I,Shrimp:CI,ShrimpIcon:CI,Shrink:SI,ShrinkIcon:SI,Shrub:LI,ShrubIcon:LI,Shuffle:NI,ShuffleIcon:NI,Sidebar:Xl,SidebarClose:Wl,SidebarCloseIcon:Wl,SidebarIcon:Xl,SidebarOpen:Kl,SidebarOpenIcon:Kl,Sigma:II,SigmaIcon:II,SigmaSquare:nd,SigmaSquareIcon:nd,Signal:PI,SignalHigh:AI,SignalHighIcon:AI,SignalIcon:PI,SignalLow:EI,SignalLowIcon:EI,SignalMedium:jI,SignalMediumIcon:jI,SignalZero:$I,SignalZeroIcon:$I,Signature:zI,SignatureIcon:zI,Signpost:TI,SignpostBig:RI,SignpostBigIcon:RI,SignpostIcon:TI,Siren:DI,SirenIcon:DI,SkipBack:HI,SkipBackIcon:HI,SkipForward:OI,SkipForwardIcon:OI,Skull:FI,SkullIcon:FI,Slack:qI,SlackIcon:qI,Slash:VI,SlashIcon:VI,SlashSquare:od,SlashSquareIcon:od,Slice:BI,SliceIcon:BI,Sliders:d1,SlidersHorizontal:UI,SlidersHorizontalIcon:UI,SlidersIcon:d1,SlidersVertical:d1,SlidersVerticalIcon:d1,Smartphone:KI,SmartphoneCharging:WI,SmartphoneChargingIcon:WI,SmartphoneIcon:KI,SmartphoneNfc:GI,SmartphoneNfcIcon:GI,Smile:ZI,SmileIcon:ZI,SmilePlus:XI,SmilePlusIcon:XI,Snail:YI,SnailIcon:YI,Snowflake:QI,SnowflakeIcon:QI,SoapDispenserDroplet:JI,SoapDispenserDropletIcon:JI,Sofa:eA,SofaIcon:eA,SolarPanel:tA,SolarPanelIcon:tA,SortAsc:Ds,SortAscIcon:Ds,SortDesc:zs,SortDescIcon:zs,Soup:nA,SoupIcon:nA,Space:oA,SpaceIcon:oA,Spade:rA,SpadeIcon:rA,Sparkle:iA,SparkleIcon:iA,Sparkles:u1,SparklesIcon:u1,Speaker:aA,SpeakerIcon:aA,Speech:sA,SpeechIcon:sA,SpellCheck:lA,SpellCheck2:cA,SpellCheck2Icon:cA,SpellCheckIcon:lA,Spline:dA,SplineIcon:dA,SplinePointer:uA,SplinePointerIcon:uA,Split:hA,SplitIcon:hA,SplitSquareHorizontal:rd,SplitSquareHorizontalIcon:rd,SplitSquareVertical:id,SplitSquareVerticalIcon:id,Spool:fA,SpoolIcon:fA,Spotlight:pA,SpotlightIcon:pA,SprayCan:yA,SprayCanIcon:yA,Sprout:mA,SproutIcon:mA,Square:x0,SquareActivity:h1,SquareActivityIcon:h1,SquareArrowDown:y1,SquareArrowDownIcon:y1,SquareArrowDownLeft:f1,SquareArrowDownLeftIcon:f1,SquareArrowDownRight:p1,SquareArrowDownRightIcon:p1,SquareArrowLeft:m1,SquareArrowLeftIcon:m1,SquareArrowOutDownLeft:g1,SquareArrowOutDownLeftIcon:g1,SquareArrowOutDownRight:k1,SquareArrowOutDownRightIcon:k1,SquareArrowOutUpLeft:v1,SquareArrowOutUpLeftIcon:v1,SquareArrowOutUpRight:x1,SquareArrowOutUpRightIcon:x1,SquareArrowRight:w1,SquareArrowRightIcon:w1,SquareArrowUp:b1,SquareArrowUpIcon:b1,SquareArrowUpLeft:M1,SquareArrowUpLeftIcon:M1,SquareArrowUpRight:C1,SquareArrowUpRightIcon:C1,SquareAsterisk:_1,SquareAsteriskIcon:_1,SquareBottomDashedScissors:S1,SquareBottomDashedScissorsIcon:S1,SquareChartGantt:Dr,SquareChartGanttIcon:Dr,SquareCheck:N1,SquareCheckBig:L1,SquareCheckBigIcon:L1,SquareCheckIcon:N1,SquareChevronDown:I1,SquareChevronDownIcon:I1,SquareChevronLeft:A1,SquareChevronLeftIcon:A1,SquareChevronRight:j1,SquareChevronRightIcon:j1,SquareChevronUp:E1,SquareChevronUpIcon:E1,SquareCode:$1,SquareCodeIcon:$1,SquareDashed:R1,SquareDashedBottom:kA,SquareDashedBottomCode:gA,SquareDashedBottomCodeIcon:gA,SquareDashedBottomIcon:kA,SquareDashedIcon:R1,SquareDashedKanban:P1,SquareDashedKanbanIcon:P1,SquareDashedMousePointer:z1,SquareDashedMousePointerIcon:z1,SquareDashedTopSolid:vA,SquareDashedTopSolidIcon:vA,SquareDivide:T1,SquareDivideIcon:T1,SquareDot:D1,SquareDotIcon:D1,SquareEqual:H1,SquareEqualIcon:H1,SquareFunction:O1,SquareFunctionIcon:O1,SquareGanttChart:Dr,SquareGanttChartIcon:Dr,SquareIcon:x0,SquareKanban:F1,SquareKanbanIcon:F1,SquareLibrary:q1,SquareLibraryIcon:q1,SquareM:V1,SquareMIcon:V1,SquareMenu:B1,SquareMenuIcon:B1,SquareMinus:U1,SquareMinusIcon:U1,SquareMousePointer:W1,SquareMousePointerIcon:W1,SquareParking:K1,SquareParkingIcon:K1,SquareParkingOff:G1,SquareParkingOffIcon:G1,SquarePause:xA,SquarePauseIcon:xA,SquarePen:so,SquarePenIcon:so,SquarePercent:X1,SquarePercentIcon:X1,SquarePi:Q1,SquarePiIcon:Q1,SquarePilcrow:Z1,SquarePilcrowIcon:Z1,SquarePlay:Y1,SquarePlayIcon:Y1,SquarePlus:J1,SquarePlusIcon:J1,SquarePower:ed,SquarePowerIcon:ed,SquareRadical:wA,SquareRadicalIcon:wA,SquareRoundCorner:MA,SquareRoundCornerIcon:MA,SquareScissors:td,SquareScissorsIcon:td,SquareSigma:nd,SquareSigmaIcon:nd,SquareSlash:od,SquareSlashIcon:od,SquareSplitHorizontal:rd,SquareSplitHorizontalIcon:rd,SquareSplitVertical:id,SquareSplitVerticalIcon:id,SquareSquare:_A,SquareSquareIcon:_A,SquareStack:bA,SquareStackIcon:bA,SquareStar:SA,SquareStarIcon:SA,SquareStop:CA,SquareStopIcon:CA,SquareTerminal:ad,SquareTerminalIcon:ad,SquareUser:cd,SquareUserIcon:cd,SquareUserRound:sd,SquareUserRoundIcon:sd,SquareX:ld,SquareXIcon:ld,SquaresExclude:LA,SquaresExcludeIcon:LA,SquaresIntersect:NA,SquaresIntersectIcon:NA,SquaresSubtract:IA,SquaresSubtractIcon:IA,SquaresUnite:AA,SquaresUniteIcon:AA,Squircle:w0,SquircleDashed:EA,SquircleDashedIcon:EA,SquircleIcon:w0,Squirrel:jA,SquirrelIcon:jA,Stamp:$A,StampIcon:$A,Star:RA,StarHalf:PA,StarHalfIcon:PA,StarIcon:RA,StarOff:zA,StarOffIcon:zA,Stars:u1,StarsIcon:u1,StepBack:TA,StepBackIcon:TA,StepForward:DA,StepForwardIcon:DA,Stethoscope:HA,StethoscopeIcon:HA,Sticker:M0,StickerIcon:M0,StickyNote:P2,StickyNoteIcon:P2,Stone:OA,StoneIcon:OA,StopCircle:$c,StopCircleIcon:$c,Store:FA,StoreIcon:FA,StretchHorizontal:VA,StretchHorizontalIcon:VA,StretchVertical:qA,StretchVerticalIcon:qA,Strikethrough:BA,StrikethroughIcon:BA,Subscript:UA,SubscriptIcon:UA,Subtitles:Gs,SubtitlesIcon:Gs,Sun:ZA,SunDim:WA,SunDimIcon:WA,SunIcon:ZA,SunMedium:GA,SunMediumIcon:GA,SunMoon:KA,SunMoonIcon:KA,SunSnow:XA,SunSnowIcon:XA,Sunrise:YA,SunriseIcon:YA,Sunset:QA,SunsetIcon:QA,Superscript:JA,SuperscriptIcon:JA,SwatchBook:eE,SwatchBookIcon:eE,SwissFranc:tE,SwissFrancIcon:tE,SwitchCamera:nE,SwitchCameraIcon:nE,Sword:oE,SwordIcon:oE,Swords:rE,SwordsIcon:rE,Syringe:iE,SyringeIcon:iE,Table:fE,Table2:aE,Table2Icon:aE,TableCellsMerge:sE,TableCellsMergeIcon:sE,TableCellsSplit:cE,TableCellsSplitIcon:cE,TableColumnsSplit:lE,TableColumnsSplitIcon:lE,TableConfig:$r,TableConfigIcon:$r,TableIcon:fE,TableOfContents:dE,TableOfContentsIcon:dE,TableProperties:uE,TablePropertiesIcon:uE,TableRowsSplit:hE,TableRowsSplitIcon:hE,Tablet:yE,TabletIcon:yE,TabletSmartphone:pE,TabletSmartphoneIcon:pE,Tablets:mE,TabletsIcon:mE,Tag:gE,TagIcon:gE,Tags:kE,TagsIcon:kE,Tally1:vE,Tally1Icon:vE,Tally2:xE,Tally2Icon:xE,Tally3:wE,Tally3Icon:wE,Tally4:ME,Tally4Icon:ME,Tally5:bE,Tally5Icon:bE,Tangent:_E,TangentIcon:_E,Target:CE,TargetIcon:CE,Telescope:SE,TelescopeIcon:SE,Tent:NE,TentIcon:NE,TentTree:LE,TentTreeIcon:LE,Terminal:IE,TerminalIcon:IE,TerminalSquare:ad,TerminalSquareIcon:ad,TestTube:AE,TestTube2:dd,TestTube2Icon:dd,TestTubeDiagonal:dd,TestTubeDiagonalIcon:dd,TestTubeIcon:AE,TestTubes:EE,TestTubesIcon:EE,Text:Zo,TextAlignCenter:Sa,TextAlignCenterIcon:Sa,TextAlignEnd:La,TextAlignEndIcon:La,TextAlignJustify:ud,TextAlignJustifyIcon:ud,TextAlignStart:Zo,TextAlignStartIcon:Zo,TextCursor:$E,TextCursorIcon:$E,TextCursorInput:jE,TextCursorInputIcon:jE,TextIcon:Zo,TextInitial:hd,TextInitialIcon:hd,TextQuote:PE,TextQuoteIcon:PE,TextSearch:zE,TextSearchIcon:zE,TextSelect:fd,TextSelectIcon:fd,TextSelection:fd,TextSelectionIcon:fd,TextWrap:pd,TextWrapIcon:pd,Theater:RE,TheaterIcon:RE,Thermometer:HE,ThermometerIcon:HE,ThermometerSnowflake:TE,ThermometerSnowflakeIcon:TE,ThermometerSun:DE,ThermometerSunIcon:DE,ThumbsDown:OE,ThumbsDownIcon:OE,ThumbsUp:FE,ThumbsUpIcon:FE,Ticket:KE,TicketCheck:qE,TicketCheckIcon:qE,TicketIcon:KE,TicketMinus:VE,TicketMinusIcon:VE,TicketPercent:BE,TicketPercentIcon:BE,TicketPlus:UE,TicketPlusIcon:UE,TicketSlash:WE,TicketSlashIcon:WE,TicketX:GE,TicketXIcon:GE,Tickets:ZE,TicketsIcon:ZE,TicketsPlane:XE,TicketsPlaneIcon:XE,Timer:JE,TimerIcon:JE,TimerOff:YE,TimerOffIcon:YE,TimerReset:QE,TimerResetIcon:QE,ToggleLeft:ej,ToggleLeftIcon:ej,ToggleRight:tj,ToggleRightIcon:tj,Toilet:nj,ToiletIcon:nj,ToolCase:rj,ToolCaseIcon:rj,Toolbox:oj,ToolboxIcon:oj,Tornado:ij,TornadoIcon:ij,Torus:aj,TorusIcon:aj,Touchpad:cj,TouchpadIcon:cj,TouchpadOff:sj,TouchpadOffIcon:sj,TowerControl:lj,TowerControlIcon:lj,ToyBrick:dj,ToyBrickIcon:dj,Tractor:uj,TractorIcon:uj,TrafficCone:hj,TrafficConeIcon:hj,Train:yd,TrainFront:pj,TrainFrontIcon:pj,TrainFrontTunnel:fj,TrainFrontTunnelIcon:fj,TrainIcon:yd,TrainTrack:yj,TrainTrackIcon:yj,TramFront:yd,TramFrontIcon:yd,Transgender:mj,TransgenderIcon:mj,Trash:gj,Trash2:z2,Trash2Icon:z2,TrashIcon:gj,TreeDeciduous:kj,TreeDeciduousIcon:kj,TreePalm:md,TreePalmIcon:md,TreePine:vj,TreePineIcon:vj,Trees:xj,TreesIcon:xj,Trello:wj,TrelloIcon:wj,TrendingDown:Mj,TrendingDownIcon:Mj,TrendingUp:_j,TrendingUpDown:bj,TrendingUpDownIcon:bj,TrendingUpIcon:_j,Triangle:R2,TriangleAlert:qr,TriangleAlertIcon:qr,TriangleDashed:Cj,TriangleDashedIcon:Cj,TriangleIcon:R2,TriangleRight:Sj,TriangleRightIcon:Sj,Trophy:Lj,TrophyIcon:Lj,Truck:Ij,TruckElectric:Nj,TruckElectricIcon:Nj,TruckIcon:Ij,TurkishLira:Aj,TurkishLiraIcon:Aj,Turntable:Ej,TurntableIcon:Ej,Turtle:jj,TurtleIcon:jj,Tv:Pj,Tv2:gd,Tv2Icon:gd,TvIcon:Pj,TvMinimal:gd,TvMinimalIcon:gd,TvMinimalPlay:$j,TvMinimalPlayIcon:$j,Twitch:zj,TwitchIcon:zj,Twitter:Rj,TwitterIcon:Rj,Type:b0,TypeIcon:b0,TypeOutline:Tj,TypeOutlineIcon:Tj,Umbrella:Hj,UmbrellaIcon:Hj,UmbrellaOff:Dj,UmbrellaOffIcon:Dj,Underline:Oj,UnderlineIcon:Oj,Undo:Vj,Undo2:Fj,Undo2Icon:Fj,UndoDot:qj,UndoDotIcon:qj,UndoIcon:Vj,UnfoldHorizontal:Bj,UnfoldHorizontalIcon:Bj,UnfoldVertical:Uj,UnfoldVerticalIcon:Uj,Ungroup:Wj,UngroupIcon:Wj,University:kd,UniversityIcon:kd,Unlink:Kj,Unlink2:Gj,Unlink2Icon:Gj,UnlinkIcon:Kj,Unlock:zl,UnlockIcon:zl,UnlockKeyhole:Pl,UnlockKeyholeIcon:Pl,Unplug:Xj,UnplugIcon:Xj,Upload:T2,UploadCloud:Hc,UploadCloudIcon:Hc,UploadIcon:T2,Usb:Zj,UsbIcon:Zj,User:D2,User2:_d,User2Icon:_d,UserCheck:Yj,UserCheck2:vd,UserCheck2Icon:vd,UserCheckIcon:Yj,UserCircle:Pc,UserCircle2:jc,UserCircle2Icon:jc,UserCircleIcon:Pc,UserCog:Qj,UserCog2:xd,UserCog2Icon:xd,UserCogIcon:Qj,UserIcon:D2,UserKey:Jj,UserKeyIcon:Jj,UserLock:e$,UserLockIcon:e$,UserMinus:t$,UserMinus2:wd,UserMinus2Icon:wd,UserMinusIcon:t$,UserPen:n$,UserPenIcon:n$,UserPlus:o$,UserPlus2:Md,UserPlus2Icon:Md,UserPlusIcon:o$,UserRound:_d,UserRoundCheck:vd,UserRoundCheckIcon:vd,UserRoundCog:xd,UserRoundCogIcon:xd,UserRoundIcon:_d,UserRoundKey:r$,UserRoundKeyIcon:r$,UserRoundMinus:wd,UserRoundMinusIcon:wd,UserRoundPen:i$,UserRoundPenIcon:i$,UserRoundPlus:Md,UserRoundPlusIcon:Md,UserRoundSearch:a$,UserRoundSearchIcon:a$,UserRoundX:bd,UserRoundXIcon:bd,UserSearch:s$,UserSearchIcon:s$,UserSquare:cd,UserSquare2:sd,UserSquare2Icon:sd,UserSquareIcon:cd,UserStar:c$,UserStarIcon:c$,UserX:l$,UserX2:bd,UserX2Icon:bd,UserXIcon:l$,Users:d$,Users2:Cd,Users2Icon:Cd,UsersIcon:d$,UsersRound:Cd,UsersRoundIcon:Cd,Utensils:Ld,UtensilsCrossed:Sd,UtensilsCrossedIcon:Sd,UtensilsIcon:Ld,UtilityPole:u$,UtilityPoleIcon:u$,Van:h$,VanIcon:h$,Variable:f$,VariableIcon:f$,Vault:p$,VaultIcon:p$,VectorSquare:y$,VectorSquareIcon:y$,Vegan:m$,VeganIcon:m$,VenetianMask:g$,VenetianMaskIcon:g$,Venus:v$,VenusAndMars:k$,VenusAndMarsIcon:k$,VenusIcon:v$,Verified:Fs,VerifiedIcon:Fs,Vibrate:w$,VibrateIcon:w$,VibrateOff:x$,VibrateOffIcon:x$,Video:b$,VideoIcon:b$,VideoOff:M$,VideoOffIcon:M$,Videotape:_$,VideotapeIcon:_$,View:C$,ViewIcon:C$,Voicemail:S$,VoicemailIcon:S$,Volleyball:L$,VolleyballIcon:L$,Volume:j$,Volume1:N$,Volume1Icon:N$,Volume2:I$,Volume2Icon:I$,VolumeIcon:j$,VolumeOff:A$,VolumeOffIcon:A$,VolumeX:E$,VolumeXIcon:E$,Vote:$$,VoteIcon:$$,Wallet:z$,Wallet2:Nd,Wallet2Icon:Nd,WalletCards:P$,WalletCardsIcon:P$,WalletIcon:z$,WalletMinimal:Nd,WalletMinimalIcon:Nd,Wallpaper:R$,WallpaperIcon:R$,Wand:T$,Wand2:Id,Wand2Icon:Id,WandIcon:T$,WandSparkles:Id,WandSparklesIcon:Id,Warehouse:D$,WarehouseIcon:D$,WashingMachine:H$,WashingMachineIcon:H$,Watch:O$,WatchIcon:O$,Waves:B$,WavesArrowDown:F$,WavesArrowDownIcon:F$,WavesArrowUp:q$,WavesArrowUpIcon:q$,WavesIcon:B$,WavesLadder:V$,WavesLadderIcon:V$,Waypoints:U$,WaypointsIcon:U$,Webcam:W$,WebcamIcon:W$,Webhook:K$,WebhookIcon:K$,WebhookOff:G$,WebhookOffIcon:G$,Weight:Z$,WeightIcon:Z$,WeightTilde:X$,WeightTildeIcon:X$,Wheat:J$,WheatIcon:J$,WheatOff:Y$,WheatOffIcon:Y$,WholeWord:Q$,WholeWordIcon:Q$,Wifi:sP,WifiCog:eP,WifiCogIcon:eP,WifiHigh:tP,WifiHighIcon:tP,WifiIcon:sP,WifiLow:nP,WifiLowIcon:nP,WifiOff:oP,WifiOffIcon:oP,WifiPen:rP,WifiPenIcon:rP,WifiSync:iP,WifiSyncIcon:iP,WifiZero:aP,WifiZeroIcon:aP,Wind:lP,WindArrowDown:cP,WindArrowDownIcon:cP,WindIcon:lP,Wine:uP,WineIcon:uP,WineOff:dP,WineOffIcon:dP,Workflow:hP,WorkflowIcon:hP,Worm:fP,WormIcon:fP,WrapText:pd,WrapTextIcon:pd,Wrench:pP,WrenchIcon:pP,X:Fd,XCircle:zc,XCircleIcon:zc,XIcon:Fd,XOctagon:Vl,XOctagonIcon:Vl,XSquare:ld,XSquareIcon:ld,Youtube:yP,YoutubeIcon:yP,Zap:gP,ZapIcon:gP,ZapOff:mP,ZapOffIcon:mP,ZoomIn:kP,ZoomInIcon:kP,ZoomOut:vP,ZoomOutIcon:vP,createLucideIcon:u,icons:MEe},Symbol.toStringTag,{value:"Module"})),_Ee=new Set(["createLucideIcon","Icon","icons","default"]),CEe=Symbol.for("react.forward_ref");function SEe(e){return typeof e=="function"?!0:e!==null&&typeof e=="object"?e.$$typeof===CEe:!1}function LEe(e){return e.replace(/[A-Z]/g,(t,n)=>n===0?t.toLowerCase():`-${t.toLowerCase()}`)}function NEe(){const e={};for(const[t,n]of Object.entries(bEe))_Ee.has(t)||SEe(n)&&(e[LEe(t)]=n);return e}const df=NEe(),IEe="help-circle",AEe=Object.keys(df).sort(),EEe=["logos:aws","logos:google-cloud","logos:microsoft-azure"],az={lucide:AEe,aws:[],gcp:[],azure:[],iconify:[...EEe]};function UH(e){for(const t of e)t.installed?az[t.vendor]=[...t.iconNames]:az[t.vendor]=[]}const jEe=["aws","gcp","azure","iconify"];function wQ(e){if(typeof e!="string")return null;const t=e.trim();if(t.length===0)return null;const n=t.indexOf(":");if(n===-1)return{vendor:"lucide",name:t};const o=t.slice(0,n),r=t.slice(n+1);return r.length===0?null:o==="lucide"?{vendor:"lucide",name:r}:jEe.includes(o)?{vendor:o,name:r}:null}function $Ee(e){return e.vendor==="lucide"?e.name:`${e.vendor}:${e.name}`}function PEe(e,t){const n=wQ(e);if(!n)return null;if(n.vendor==="lucide"){const o=df[n.name];return o?{kind:"lucide",component:o}:null}return n.vendor==="iconify"?{kind:"iconify",identifier:n.name}:{kind:"svg-url",url:`${t.studioBaseUrl}/api/icons/${n.vendor}/${n.name}.svg`}}const zEe="modulepreload",REe=function(e){return"/"+e},kU={},sh=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=REe(c),c in kU)return;kU[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":zEe,l||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};let zp=null;function TEe(){return zp||(zp=sh(()=>import("./iconify-DygcsvA_.js"),[]).then(e=>e,()=>null),zp)}function MQ(e,t){return f.jsx(Xo,{className:e,"aria-label":t,"aria-hidden":t===void 0?!0:void 0,"data-testid":"icon-renderer-placeholder"})}function DEe({identifier:e,className:t,ariaLabel:n,color:o}){const[r,i]=m.useState(null);if(m.useEffect(()=>{let s=!0;return TEe().then(c=>{s&&i(c)}),()=>{s=!1}},[]),!r)return MQ(t,n);const a=r.Icon;return f.jsx(a,{icon:e,className:t,color:o,"aria-label":n,"aria-hidden":n===void 0?!0:void 0})}function Qa({iconId:e,studioBaseUrl:t,className:n,ariaLabel:o,color:r,strokeWidth:i,absoluteStrokeWidth:a}){const s=PEe(e,{studioBaseUrl:t});if(!s)return MQ(n,o);if(s.kind==="lucide"){const c=s.component;return f.jsx(c,{className:n,color:r,strokeWidth:i,absoluteStrokeWidth:a,"aria-label":o,"aria-hidden":o===void 0?!0:void 0})}return s.kind==="svg-url"?f.jsx("img",{src:s.url,loading:"lazy",draggable:!1,className:n,alt:o??"","aria-hidden":o===void 0?!0:void 0}):f.jsx(DEe,{identifier:s.identifier,className:n,ariaLabel:o,color:r})}const HEe={studioBaseUrl:""},Tf=m.createContext(HEe);function OEe({value:e,children:t}){return f.jsx(Tf.Provider,{value:e,children:t})}function tq(){return m.useContext(Tf)}const FEe=[".png",".jpg",".jpeg",".gif",".webp",".svg"],qEe=400,WH={width:200,height:200},VEe=e=>{const t=e.lastIndexOf(".");return t>=0?e.slice(t).toLowerCase():""},BEe=e=>{if(e.type.startsWith("image/")){const t=e.type.slice(6).toLowerCase();if(t==="png"||t==="jpeg"||t==="jpg"||t==="gif"||t==="webp"||t==="svg+xml")return!0}return FEe.includes(VEe(e.name))},UEe=e=>{if(!e)return[];const t=e.files;if(!t||t.length===0)return[];const n=[];for(let o=0;o<t.length;o++){const r=t.item(o);r&&BEe(r)&&n.push(r)}return n},WEe=(e,t=qEe)=>{if(e.width<=0||e.height<=0)return{...WH};const n=Math.max(e.width,e.height);if(n<=t)return{width:Math.round(e.width),height:Math.round(e.height)};const o=t/n;return{width:Math.round(e.width*o),height:Math.round(e.height*o)}},GEe=24,KEe=4,XEe=(e,t,n=GEe,o=KEe)=>{if(e.length===0)return[];const r=Math.min(e.length,Math.max(1,o)),i=Math.ceil(e.length/r),a=new Array(r).fill(0),s=new Array(i).fill(0);e.forEach((g,k)=>{const x=k%r,v=Math.floor(k/r);a[x]=Math.max(a[x],g.width),s[v]=Math.max(s[v],g.height)});const c=new Array(r).fill(0);for(let g=1;g<r;g++)c[g]=c[g-1]+a[g-1]+n;const l=new Array(i).fill(0);for(let g=1;g<i;g++)l[g]=l[g-1]+s[g-1]+n;const h=a.reduce((g,k)=>g+k,0)+n*(r-1),d=s.reduce((g,k)=>g+k,0)+n*(i-1),p=t.x-h/2,y=t.y-d/2;return e.map((g,k)=>{const x=k%r,v=Math.floor(k/r);return{x:p+c[x],y:y+l[v]}})},ZEe=async e=>{const t=UEe(e.dataTransfer);if(t.length===0||!e.rfInstance)return!1;const n=e.rfInstance.screenToFlowPosition(e.clientPos),o=await Promise.all(t.map(i=>e.computeDims(i))),r=XEe(o,n);return t.forEach((i,a)=>{e.dispatch({file:i,position:r[a],dims:o[a],originalFilename:i.name})}),!0},YEe=e=>new Promise(t=>{let n=null;const o=i=>{n&&URL.revokeObjectURL(n),t(i)};try{n=URL.createObjectURL(e)}catch{t({...WH});return}const r=new Image;r.onload=()=>{o(WEe({width:r.naturalWidth,height:r.naturalHeight}))},r.onerror=()=>{o({...WH})},r.src=n}),QEe=2048,JEe=e=>{const t=e.type.toLowerCase();return t==="image/png"||t==="image/jpeg"||t==="image/webp"},eje=async(e,t=QEe)=>{if(!JEe(e))return e;try{const n=await createImageBitmap(e),o=Math.max(n.width,n.height);if(o<=t)return n.close(),e;const r=t/o,i=Math.round(n.width*r),a=Math.round(n.height*r),s=document.createElement("canvas");s.width=i,s.height=a;const c=s.getContext("2d");if(!c)return n.close(),e;c.drawImage(n,0,0,i,a),n.close();const l=await new Promise(h=>{s.toBlob(d=>h(d),e.type)});return l?new File([l],e.name,{type:e.type,lastModified:e.lastModified}):e}catch{return e}};function bQ(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=bQ(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=bQ(e))&&(o&&(o+=" "),o+=t);return o}const nq="-",tje=e=>{const t=oje(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{const s=a.split(nq);return s[0]===""&&s.length!==1&&s.shift(),CQ(s,t)||nje(a)},getConflictingClassGroupIds:(a,s)=>{const c=n[a]||[];return s&&o[a]?[...c,...o[a]]:c}}},CQ=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?CQ(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(nq);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},vU=/^\[(.+)\]$/,nje=e=>{if(vU.test(e)){const t=vU.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oje=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return ije(Object.entries(e.classGroups),n).forEach(([i,a])=>{GH(a,o,i,t)}),o},GH=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:xU(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(rje(r)){GH(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,a])=>{GH(a,xU(t,i),n,o)})})},xU=(e,t)=>{let n=e;return t.split(nq).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},rje=e=>e.isThemeGetter,ije=(e,t)=>t?e.map(([n,o])=>{const r=o.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,r]}):e,aje=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,o=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=o.get(i))!==void 0)return r(i,a),a},set(i,a){n.has(i)?n.set(i,a):r(i,a)}}},SQ="!",sje=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],i=t.length,a=s=>{const c=[];let l=0,h=0,d;for(let x=0;x<s.length;x++){let v=s[x];if(l===0){if(v===r&&(o||s.slice(x,x+i)===t)){c.push(s.slice(h,x)),h=x+i;continue}if(v==="/"){d=x;continue}}v==="["?l++:v==="]"&&l--}const p=c.length===0?s:s.substring(h),y=p.startsWith(SQ),g=y?p.substring(1):p,k=d&&d>h?d-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:k}};return n?s=>n({className:s,parseClassName:a}):a},cje=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},lje=e=>({cache:aje(e.cacheSize),parseClassName:sje(e),...tje(e)}),dje=/\s+/,uje=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=[],a=e.trim().split(dje);let s="";for(let c=a.length-1;c>=0;c-=1){const l=a[c],{modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:y}=n(l);let g=!!y,k=o(g?p.substring(0,y):p);if(!k){if(!g){s=l+(s.length>0?" "+s:s);continue}if(k=o(p),!k){s=l+(s.length>0?" "+s:s);continue}g=!1}const x=cje(h).join(":"),v=d?x+SQ:x,M=v+k;if(i.includes(M))continue;i.push(M);const w=r(k,g);for(let b=0;b<w.length;++b){const C=w[b];i.push(v+C)}s=l+(s.length>0?" "+s:s)}return s};function hje(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=LQ(t))&&(o&&(o+=" "),o+=n);return o}const LQ=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=LQ(e[o]))&&(n&&(n+=" "),n+=t);return n};function fje(e,...t){let n,o,r,i=a;function a(c){const l=t.reduce((h,d)=>d(h),e());return n=lje(l),o=n.cache.get,r=n.cache.set,i=s,s(c)}function s(c){const l=o(c);if(l)return l;const h=uje(c,n);return r(c,h),h}return function(){return i(hje.apply(null,arguments))}}const Nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},NQ=/^\[(?:([a-z-]+):)?(.+)\]$/i,pje=/^\d+\/\d+$/,yje=new Set(["px","full","screen"]),mje=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gje=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kje=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vje=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xje=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=e=>_0(e)||yje.has(e)||pje.test(e),ha=e=>ch(e,"length",Nje),_0=e=>!!e&&!Number.isNaN(Number(e)),KT=e=>ch(e,"number",_0),Dh=e=>!!e&&Number.isInteger(Number(e)),wje=e=>e.endsWith("%")&&_0(e.slice(0,-1)),Ge=e=>NQ.test(e),fa=e=>mje.test(e),Mje=new Set(["length","size","percentage"]),bje=e=>ch(e,Mje,IQ),_je=e=>ch(e,"position",IQ),Cje=new Set(["image","url"]),Sje=e=>ch(e,Cje,Aje),Lje=e=>ch(e,"",Ije),Hh=()=>!0,ch=(e,t,n)=>{const o=NQ.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Nje=e=>gje.test(e)&&!kje.test(e),IQ=()=>!1,Ije=e=>vje.test(e),Aje=e=>xje.test(e),Eje=()=>{const e=Nt("colors"),t=Nt("spacing"),n=Nt("blur"),o=Nt("brightness"),r=Nt("borderColor"),i=Nt("borderRadius"),a=Nt("borderSpacing"),s=Nt("borderWidth"),c=Nt("contrast"),l=Nt("grayscale"),h=Nt("hueRotate"),d=Nt("invert"),p=Nt("gap"),y=Nt("gradientColorStops"),g=Nt("gradientColorStopPositions"),k=Nt("inset"),x=Nt("margin"),v=Nt("opacity"),M=Nt("padding"),w=Nt("saturate"),b=Nt("scale"),C=Nt("sepia"),_=Nt("skew"),S=Nt("space"),L=Nt("translate"),j=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Ge,t],E=()=>[Ge,t],V=()=>["",Si,ha],$=()=>["auto",_0,Ge],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",Ge],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[_0,Ge];return{cacheSize:500,separator:":",theme:{colors:[Hh],spacing:[Si,ha],blur:["none","",fa,Ge],brightness:W(),borderColor:[e],borderRadius:["none","","full",fa,Ge],borderSpacing:E(),borderWidth:V(),contrast:W(),grayscale:A(),hueRotate:W(),invert:A(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[wje,ha],inset:R(),margin:R(),opacity:W(),padding:E(),saturate:W(),scale:W(),sepia:A(),skew:W(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Ge]}],container:["container"],columns:[{columns:[fa]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Ge]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dh,Ge]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ge]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Dh,Ge]}],"grid-cols":[{"grid-cols":[Hh]}],"col-start-end":[{col:["auto",{span:["full",Dh,Ge]},Ge]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Hh]}],"row-start-end":[{row:["auto",{span:[Dh,Ge]},Ge]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ge,t]}],"min-w":[{"min-w":[Ge,t,"min","max","fit"]}],"max-w":[{"max-w":[Ge,t,"none","full","min","max","fit","prose",{screen:[fa]},fa]}],h:[{h:[Ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fa,ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",KT]}],"font-family":[{font:[Hh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ge]}],"line-clamp":[{"line-clamp":["none",_0,KT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Si,Ge]}],"list-image":[{"list-image":["none",Ge]}],"list-style-type":[{list:["none","disc","decimal",Ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Si,ha]}],"underline-offset":[{"underline-offset":["auto",Si,Ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),_je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bje]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sje]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Si,Ge]}],"outline-w":[{outline:[Si,ha]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Si,ha]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fa,Lje]}],"shadow-color":[{shadow:[Hh]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fa,Ge]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ge]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Ge]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Dh,Ge]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Si,ha,KT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jje=fje(Eje);function ee(...e){return jje(_Q(e))}function Yt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Yt(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var $je={value:()=>{}};function hR(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new xP(n)}function xP(e){this._=e}function Pje(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",r=n.indexOf(".");if(r>=0&&(o=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}xP.prototype=hR.prototype={constructor:xP,on:function(e,t){var n=this._,o=Pje(e+"",n),r,i=-1,a=o.length;if(arguments.length<2){for(;++i<a;)if((r=(e=o[i]).type)&&(r=zje(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<a;)if(r=(e=o[i]).type)n[r]=wU(n[r],e.name,t);else if(t==null)for(r in n)n[r]=wU(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xP(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),o=0,r,i;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)}};function zje(e,t){for(var n=0,o=e.length,r;n<o;++n)if((r=e[n]).name===t)return r.value}function wU(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=$je,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var KH="http://www.w3.org/1999/xhtml";const MU={svg:"http://www.w3.org/2000/svg",xhtml:KH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fR(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),MU.hasOwnProperty(t)?{space:MU[t],local:e}:e}function Rje(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KH&&t.documentElement.namespaceURI===KH?t.createElement(e):t.createElementNS(n,e)}}function Tje(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AQ(e){var t=fR(e);return(t.local?Tje:Rje)(t)}function Dje(){}function oq(e){return e==null?Dje:function(){return this.querySelector(e)}}function Hje(e){typeof e!="function"&&(e=oq(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=new Array(a),c,l,h=0;h<a;++h)(c=i[h])&&(l=e.call(c,c.__data__,h,i))&&("__data__"in c&&(l.__data__=c.__data__),s[h]=l);return new wo(o,this._parents)}function Oje(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fje(){return[]}function EQ(e){return e==null?Fje:function(){return this.querySelectorAll(e)}}function qje(e){return function(){return Oje(e.apply(this,arguments))}}function Vje(e){typeof e=="function"?e=qje(e):e=EQ(e);for(var t=this._groups,n=t.length,o=[],r=[],i=0;i<n;++i)for(var a=t[i],s=a.length,c,l=0;l<s;++l)(c=a[l])&&(o.push(e.call(c,c.__data__,l,a)),r.push(c));return new wo(o,r)}function jQ(e){return function(){return this.matches(e)}}function $Q(e){return function(t){return t.matches(e)}}var Bje=Array.prototype.find;function Uje(e){return function(){return Bje.call(this.children,e)}}function Wje(){return this.firstElementChild}function Gje(e){return this.select(e==null?Wje:Uje(typeof e=="function"?e:$Q(e)))}var Kje=Array.prototype.filter;function Xje(){return Array.from(this.children)}function Zje(e){return function(){return Kje.call(this.children,e)}}function Yje(e){return this.selectAll(e==null?Xje:Zje(typeof e=="function"?e:$Q(e)))}function Qje(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=[],c,l=0;l<a;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&s.push(c);return new wo(o,this._parents)}function PQ(e){return new Array(e.length)}function Jje(){return new wo(this._enter||this._groups.map(PQ),this._parents)}function sz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}sz.prototype={constructor:sz,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function e$e(e){return function(){return e}}function t$e(e,t,n,o,r,i){for(var a=0,s,c=t.length,l=i.length;a<l;++a)(s=t[a])?(s.__data__=i[a],o[a]=s):n[a]=new sz(e,i[a]);for(;a<c;++a)(s=t[a])&&(r[a]=s)}function n$e(e,t,n,o,r,i,a){var s,c,l=new Map,h=t.length,d=i.length,p=new Array(h),y;for(s=0;s<h;++s)(c=t[s])&&(p[s]=y=a.call(c,c.__data__,s,t)+"",l.has(y)?r[s]=c:l.set(y,c));for(s=0;s<d;++s)y=a.call(e,i[s],s,i)+"",(c=l.get(y))?(o[s]=c,c.__data__=i[s],l.delete(y)):n[s]=new sz(e,i[s]);for(s=0;s<h;++s)(c=t[s])&&l.get(p[s])===c&&(r[s]=c)}function o$e(e){return e.__data__}function r$e(e,t){if(!arguments.length)return Array.from(this,o$e);var n=t?n$e:t$e,o=this._parents,r=this._groups;typeof e!="function"&&(e=e$e(e));for(var i=r.length,a=new Array(i),s=new Array(i),c=new Array(i),l=0;l<i;++l){var h=o[l],d=r[l],p=d.length,y=i$e(e.call(h,h&&h.__data__,l,o)),g=y.length,k=s[l]=new Array(g),x=a[l]=new Array(g),v=c[l]=new Array(p);n(h,d,k,x,v,y,t);for(var M=0,w=0,b,C;M<g;++M)if(b=k[M]){for(M>=w&&(w=M+1);!(C=x[w])&&++w<g;);b._next=C||null}}return a=new wo(a,o),a._enter=s,a._exit=c,a}function i$e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function a$e(){return new wo(this._exit||this._groups.map(PQ),this._parents)}function s$e(e,t,n){var o=this.enter(),r=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?i.remove():n(i),o&&r?o.merge(r).order():r}function c$e(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,r=n.length,i=o.length,a=Math.min(r,i),s=new Array(r),c=0;c<a;++c)for(var l=n[c],h=o[c],d=l.length,p=s[c]=new Array(d),y,g=0;g<d;++g)(y=l[g]||h[g])&&(p[g]=y);for(;c<r;++c)s[c]=n[c];return new wo(s,this._parents)}function l$e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],r=o.length-1,i=o[r],a;--r>=0;)(a=o[r])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function d$e(e){e||(e=u$e);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var n=this._groups,o=n.length,r=new Array(o),i=0;i<o;++i){for(var a=n[i],s=a.length,c=r[i]=new Array(s),l,h=0;h<s;++h)(l=a[h])&&(c[h]=l);c.sort(t)}return new wo(r,this._parents).order()}function u$e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h$e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f$e(){return Array.from(this)}function p$e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,i=o.length;r<i;++r){var a=o[r];if(a)return a}return null}function y$e(){let e=0;for(const t of this)++e;return e}function m$e(){return!this.node()}function g$e(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var r=t[n],i=0,a=r.length,s;i<a;++i)(s=r[i])&&e.call(s,s.__data__,i,r);return this}function k$e(e){return function(){this.removeAttribute(e)}}function v$e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x$e(e,t){return function(){this.setAttribute(e,t)}}function w$e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function b$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _$e(e,t){var n=fR(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?v$e:k$e:typeof t=="function"?n.local?b$e:M$e:n.local?w$e:x$e)(n,t))}function zQ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function C$e(e){return function(){this.style.removeProperty(e)}}function S$e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L$e(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function N$e(e,t,n){return arguments.length>1?this.each((t==null?C$e:typeof t=="function"?L$e:S$e)(e,t,n??"")):D0(this.node(),e)}function D0(e,t){return e.style.getPropertyValue(t)||zQ(e).getComputedStyle(e,null).getPropertyValue(t)}function I$e(e){return function(){delete this[e]}}function A$e(e,t){return function(){this[e]=t}}function E$e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function j$e(e,t){return arguments.length>1?this.each((t==null?I$e:typeof t=="function"?E$e:A$e)(e,t)):this.node()[e]}function RQ(e){return e.trim().split(/^|\s+/)}function rq(e){return e.classList||new TQ(e)}function TQ(e){this._node=e,this._names=RQ(e.getAttribute("class")||"")}TQ.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function DQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.add(t[o])}function HQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.remove(t[o])}function $$e(e){return function(){DQ(this,e)}}function P$e(e){return function(){HQ(this,e)}}function z$e(e,t){return function(){(t.apply(this,arguments)?DQ:HQ)(this,e)}}function R$e(e,t){var n=RQ(e+"");if(arguments.length<2){for(var o=rq(this.node()),r=-1,i=n.length;++r<i;)if(!o.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?z$e:t?$$e:P$e)(n,t))}function T$e(){this.textContent=""}function D$e(e){return function(){this.textContent=e}}function H$e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O$e(e){return arguments.length?this.each(e==null?T$e:(typeof e=="function"?H$e:D$e)(e)):this.node().textContent}function F$e(){this.innerHTML=""}function q$e(e){return function(){this.innerHTML=e}}function V$e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function B$e(e){return arguments.length?this.each(e==null?F$e:(typeof e=="function"?V$e:q$e)(e)):this.node().innerHTML}function U$e(){this.nextSibling&&this.parentNode.appendChild(this)}function W$e(){return this.each(U$e)}function G$e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K$e(){return this.each(G$e)}function X$e(e){var t=typeof e=="function"?e:AQ(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Z$e(){return null}function Y$e(e,t){var n=typeof e=="function"?e:AQ(e),o=t==null?Z$e:typeof t=="function"?t:oq(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Q$e(){var e=this.parentNode;e&&e.removeChild(this)}function J$e(){return this.each(Q$e)}function ePe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tPe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nPe(e){return this.select(e?tPe:ePe)}function oPe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rPe(e){return function(t){e.call(this,t,this.__data__)}}function iPe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function aPe(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,r=t.length,i;n<r;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++o]=i;++o?t.length=o:delete this.__on}}}function sPe(e,t,n){return function(){var o=this.__on,r,i=rPe(t);if(o){for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=t;return}}this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function cPe(e,t,n){var o=iPe(e+""),r,i=o.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,h;c<l;++c)for(r=0,h=s[c];r<i;++r)if((a=o[r]).type===h.type&&a.name===h.name)return h.value}return}for(s=t?sPe:aPe,r=0;r<i;++r)this.each(s(o[r],t,n));return this}function OQ(e,t,n){var o=zQ(e),r=o.CustomEvent;typeof r=="function"?r=new r(t,n):(r=o.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function lPe(e,t){return function(){return OQ(this,e,t)}}function dPe(e,t){return function(){return OQ(this,e,t.apply(this,arguments))}}function uPe(e,t){return this.each((typeof t=="function"?dPe:lPe)(e,t))}function*hPe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,i=o.length,a;r<i;++r)(a=o[r])&&(yield a)}var FQ=[null];function wo(e,t){this._groups=e,this._parents=t}function Df(){return new wo([[document.documentElement]],FQ)}function fPe(){return this}wo.prototype=Df.prototype={constructor:wo,select:Hje,selectAll:Vje,selectChild:Gje,selectChildren:Yje,filter:Qje,data:r$e,enter:Jje,exit:a$e,join:s$e,merge:c$e,selection:fPe,order:l$e,sort:d$e,call:h$e,nodes:f$e,node:p$e,size:y$e,empty:m$e,each:g$e,attr:_$e,style:N$e,property:j$e,classed:R$e,text:O$e,html:B$e,raise:W$e,lower:K$e,append:X$e,insert:Y$e,remove:J$e,clone:nPe,datum:oPe,on:cPe,dispatch:uPe,[Symbol.iterator]:hPe};function fo(e){return typeof e=="string"?new wo([[document.querySelector(e)]],[document.documentElement]):new wo([[e]],FQ)}function pPe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function er(e,t){if(e=pPe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}const yPe={passive:!1},uf={capture:!0,passive:!1};function XT(e){e.stopImmediatePropagation()}function C0(e){e.preventDefault(),e.stopImmediatePropagation()}function qQ(e){var t=e.document.documentElement,n=fo(e).on("dragstart.drag",C0,uf);"onselectstart"in t?n.on("selectstart.drag",C0,uf):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function VQ(e,t){var n=e.document.documentElement,o=fo(e).on("dragstart.drag",null);t&&(o.on("click.drag",C0,uf),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function XH(e,{sourceEvent:t,subject:n,target:o,identifier:r,active:i,x:a,y:s,dx:c,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}XH.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mPe(e){return!e.ctrlKey&&!e.button}function gPe(){return this.parentNode}function kPe(e,t){return t??{x:e.x,y:e.y}}function vPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function BQ(){var e=mPe,t=gPe,n=kPe,o=vPe,r={},i=hR("start","drag","end"),a=0,s,c,l,h,d=0;function p(b){b.on("mousedown.drag",y).filter(o).on("touchstart.drag",x).on("touchmove.drag",v,yPe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(b,C){if(!(h||!e.call(this,b,C))){var _=w(this,t.call(this,b,C),b,C,"mouse");_&&(fo(b.view).on("mousemove.drag",g,uf).on("mouseup.drag",k,uf),qQ(b.view),XT(b),l=!1,s=b.clientX,c=b.clientY,_("start",b))}}function g(b){if(C0(b),!l){var C=b.clientX-s,_=b.clientY-c;l=C*C+_*_>d}r.mouse("drag",b)}function k(b){fo(b.view).on("mousemove.drag mouseup.drag",null),VQ(b.view,l),C0(b),r.mouse("end",b)}function x(b,C){if(e.call(this,b,C)){var _=b.changedTouches,S=t.call(this,b,C),L=_.length,j,I;for(j=0;j<L;++j)(I=w(this,S,b,C,_[j].identifier,_[j]))&&(XT(b),I("start",b,_[j]))}}function v(b){var C=b.changedTouches,_=C.length,S,L;for(S=0;S<_;++S)(L=r[C[S].identifier])&&(C0(b),L("drag",b,C[S]))}function M(b){var C=b.changedTouches,_=C.length,S,L;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),S=0;S<_;++S)(L=r[C[S].identifier])&&(XT(b),L("end",b,C[S]))}function w(b,C,_,S,L,j){var I=i.copy(),R=er(j||_,C),E,V,$;if(($=n.call(b,new XH("beforestart",{sourceEvent:_,target:p,identifier:L,active:a,x:R[0],y:R[1],dx:0,dy:0,dispatch:I}),S))!=null)return E=$.x-R[0]||0,V=$.y-R[1]||0,function T(D,F,z){var A=R,N;switch(D){case"start":r[L]=T,N=a++;break;case"end":delete r[L],--a;case"drag":R=er(z||F,C),N=a;break}I.call(D,b,new XH(D,{sourceEvent:F,subject:$,target:p,identifier:L,active:N,x:R[0]+E,y:R[1]+V,dx:R[0]-A[0],dy:R[1]-A[1],dispatch:I}),S)}}return p.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Rp(!!b),p):e},p.container=function(b){return arguments.length?(t=typeof b=="function"?b:Rp(b),p):t},p.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Rp(b),p):n},p.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:Rp(!!b),p):o},p.on=function(){var b=i.on.apply(i,arguments);return b===i?p:b},p.clickDistance=function(b){return arguments.length?(d=(b=+b)*b,p):Math.sqrt(d)},p}function iq(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UQ(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function Hf(){}var hf=.7,cz=1/hf,S0="\\s*([+-]?\\d+)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xPe=/^#([0-9a-f]{3,8})$/,wPe=new RegExp(`^rgb\\(${S0},${S0},${S0}\\)$`),MPe=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),bPe=new RegExp(`^rgba\\(${S0},${S0},${S0},${ff}\\)$`),_Pe=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${ff}\\)$`),CPe=new RegExp(`^hsl\\(${ff},${Qr},${Qr}\\)$`),SPe=new RegExp(`^hsla\\(${ff},${Qr},${Qr},${ff}\\)$`),bU={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};iq(Hf,Xd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_U,formatHex:_U,formatHex8:LPe,formatHsl:NPe,formatRgb:CU,toString:CU});function _U(){return this.rgb().formatHex()}function LPe(){return this.rgb().formatHex8()}function NPe(){return WQ(this).formatHsl()}function CU(){return this.rgb().formatRgb()}function Xd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xPe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SU(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Tp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wPe.exec(e))?new Kn(t[1],t[2],t[3],1):(t=MPe.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bPe.exec(e))?Tp(t[1],t[2],t[3],t[4]):(t=_Pe.exec(e))?Tp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,1):(t=SPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,t[4]):bU.hasOwnProperty(e)?SU(bU[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function SU(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Tp(e,t,n,o){return o<=0&&(e=t=n=NaN),new Kn(e,t,n,o)}function IPe(e){return e instanceof Hf||(e=Xd(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function ZH(e,t,n,o){return arguments.length===1?IPe(e):new Kn(e,t,n,o??1)}function Kn(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}iq(Kn,ZH,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(qd(this.r),qd(this.g),qd(this.b),lz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LU,formatHex:LU,formatHex8:APe,formatRgb:NU,toString:NU}));function LU(){return`#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}`}function APe(){return`#${Rd(this.r)}${Rd(this.g)}${Rd(this.b)}${Rd((isNaN(this.opacity)?1:this.opacity)*255)}`}function NU(){const e=lz(this.opacity);return`${e===1?"rgb(":"rgba("}${qd(this.r)}, ${qd(this.g)}, ${qd(this.b)}${e===1?")":`, ${e})`}`}function lz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rd(e){return e=qd(e),(e<16?"0":"")+e.toString(16)}function IU(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,n,o)}function WQ(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Hf||(e=Xd(e)),!e)return new or;if(e instanceof or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),i=Math.max(t,n,o),a=NaN,s=i-r,c=(i+r)/2;return s?(t===i?a=(n-o)/s+(n<o)*6:n===i?a=(o-t)/s+2:a=(t-n)/s+4,s/=c<.5?i+r:2-i-r,a*=60):s=c>0&&c<1?0:a,new or(a,s,c,e.opacity)}function EPe(e,t,n,o){return arguments.length===1?WQ(e):new or(e,t,n,o??1)}function or(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}iq(or,EPe,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new or(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Kn(ZT(e>=240?e-240:e+120,r,o),ZT(e,r,o),ZT(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new or(AU(this.h),Dp(this.s),Dp(this.l),lz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lz(this.opacity);return`${e===1?"hsl(":"hsla("}${AU(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AU(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function ZT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const pR=e=>()=>e;function GQ(e,t){return function(n){return e+n*t}}function jPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function Ost(e,t){var n=t-e;return n?GQ(e,n>180||n<-180?n-360*Math.round(n/360):n):pR(isNaN(e)?t:e)}function $Pe(e){return(e=+e)==1?KQ:function(t,n){return n-t?jPe(t,n,e):pR(isNaN(t)?n:t)}}function KQ(e,t){var n=t-e;return n?GQ(e,n):pR(isNaN(e)?t:e)}const dz=function e(t){var n=$Pe(t);function o(r,i){var a=n((r=ZH(r)).r,(i=ZH(i)).r),s=n(r.g,i.g),c=n(r.b,i.b),l=KQ(r.opacity,i.opacity);return function(h){return r.r=a(h),r.g=s(h),r.b=c(h),r.opacity=l(h),r+""}}return o.gamma=e,o}(1);function PPe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),r;return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function zPe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RPe(e,t){var n=t?t.length:0,o=e?Math.min(n,e.length):0,r=new Array(o),i=new Array(n),a;for(a=0;a<o;++a)r[a]=H2(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<o;++a)i[a]=r[a](s);return i}}function TPe(e,t){var n=new Date;return e=+e,t=+t,function(o){return n.setTime(e*(1-o)+t*o),n}}function Vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DPe(e,t){var n={},o={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?n[r]=H2(e[r],t[r]):o[r]=t[r];return function(i){for(r in n)o[r]=n[r](i);return o}}var YH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YT=new RegExp(YH.source,"g");function HPe(e){return function(){return e}}function OPe(e){return function(t){return e(t)+""}}function XQ(e,t){var n=YH.lastIndex=YT.lastIndex=0,o,r,i,a=-1,s=[],c=[];for(e=e+"",t=t+"";(o=YH.exec(e))&&(r=YT.exec(t));)(i=r.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(o=o[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Vr(o,r)})),n=YT.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?OPe(c[0].x):HPe(t):(t=c.length,function(l){for(var h=0,d;h<t;++h)s[(d=c[h]).i]=d.x(l);return s.join("")})}function H2(e,t){var n=typeof t,o;return t==null||n==="boolean"?pR(t):(n==="number"?Vr:n==="string"?(o=Xd(t))?(t=o,dz):XQ:t instanceof Xd?dz:t instanceof Date?TPe:zPe(t)?PPe:Array.isArray(t)?RPe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DPe:Vr)(e,t)}var EU=180/Math.PI,QH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ZQ(e,t,n,o,r,i){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*o)&&(n-=e*c,o-=t*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:r,translateY:i,rotate:Math.atan2(t,e)*EU,skewX:Math.atan(c)*EU,scaleX:a,scaleY:s}}var Hp;function FPe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?QH:ZQ(t.a,t.b,t.c,t.d,t.e,t.f)}function qPe(e){return e==null||(Hp||(Hp=document.createElementNS("http://www.w3.org/2000/svg","g")),Hp.setAttribute("transform",e),!(e=Hp.transform.baseVal.consolidate()))?QH:(e=e.matrix,ZQ(e.a,e.b,e.c,e.d,e.e,e.f))}function YQ(e,t,n,o){function r(l){return l.length?l.pop()+" ":""}function i(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push("translate(",null,t,null,n);g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d||p)&&y.push("translate("+d+t+p+n)}function a(l,h,d,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:d.push(r(d)+"rotate(",null,o)-2,x:Vr(l,h)})):h&&d.push(r(d)+"rotate("+h+o)}function s(l,h,d,p){l!==h?p.push({i:d.push(r(d)+"skewX(",null,o)-2,x:Vr(l,h)}):h&&d.push(r(d)+"skewX("+h+o)}function c(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push(r(y)+"scale(",null,",",null,")");g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d!==1||p!==1)&&y.push(r(y)+"scale("+d+","+p+")")}return function(l,h){var d=[],p=[];return l=e(l),h=e(h),i(l.translateX,l.translateY,h.translateX,h.translateY,d,p),a(l.rotate,h.rotate,d,p),s(l.skewX,h.skewX,d,p),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,p),l=h=null,function(y){for(var g=-1,k=p.length,x;++g<k;)d[(x=p[g]).i]=x.x(y);return d.join("")}}}var VPe=YQ(FPe,"px, ","px)","deg)"),BPe=YQ(qPe,", ",")",")"),UPe=1e-12;function jU(e){return((e=Math.exp(e))+1/e)/2}function WPe(e){return((e=Math.exp(e))-1/e)/2}function GPe(e){return((e=Math.exp(2*e))-1)/(e+1)}const wP=function e(t,n,o){function r(i,a){var s=i[0],c=i[1],l=i[2],h=a[0],d=a[1],p=a[2],y=h-s,g=d-c,k=y*y+g*g,x,v;if(k<UPe)v=Math.log(p/l)/t,x=function(S){return[s+S*y,c+S*g,l*Math.exp(t*S*v)]};else{var M=Math.sqrt(k),w=(p*p-l*l+o*k)/(2*l*n*M),b=(p*p-l*l-o*k)/(2*p*n*M),C=Math.log(Math.sqrt(w*w+1)-w),_=Math.log(Math.sqrt(b*b+1)-b);v=(_-C)/t,x=function(S){var L=S*v,j=jU(C),I=l/(n*M)*(j*GPe(t*L+C)-WPe(C));return[s+I*y,c+I*g,l*j/jU(t*L+C)]}}return x.duration=v*1e3*t/Math.SQRT2,x}return r.rho=function(i){var a=Math.max(.001,+i),s=a*a,c=s*s;return e(a,s,c)},r}(Math.SQRT2,2,4);var H0=0,Yh=0,Oh=0,QQ=1e3,uz,Qh,hz=0,Zd=0,yR=0,pf=typeof performance=="object"&&performance.now?performance:Date,JQ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function aq(){return Zd||(JQ(KPe),Zd=pf.now()+yR)}function KPe(){Zd=0}function fz(){this._call=this._time=this._next=null}fz.prototype=eJ.prototype={constructor:fz,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?aq():+n)+(t==null?0:+t),!this._next&&Qh!==this&&(Qh?Qh._next=this:uz=this,Qh=this),this._call=e,this._time=n,JH()},stop:function(){this._call&&(this._call=null,this._time=1/0,JH())}};function eJ(e,t,n){var o=new fz;return o.restart(e,t,n),o}function XPe(){aq(),++H0;for(var e=uz,t;e;)(t=Zd-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H0}function $U(){Zd=(hz=pf.now())+yR,H0=Yh=0;try{XPe()}finally{H0=0,YPe(),Zd=0}}function ZPe(){var e=pf.now(),t=e-hz;t>QQ&&(yR-=t,hz=e)}function YPe(){for(var e,t=uz,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:uz=n);Qh=e,JH(o)}function JH(e){if(!H0){Yh&&(Yh=clearTimeout(Yh));var t=e-Zd;t>24?(e<1/0&&(Yh=setTimeout($U,e-pf.now()-yR)),Oh&&(Oh=clearInterval(Oh))):(Oh||(hz=pf.now(),Oh=setInterval(ZPe,QQ)),H0=1,JQ($U))}}function PU(e,t,n){var o=new fz;return t=t==null?0:+t,o.restart(r=>{o.stop(),e(r+t)},t,n),o}var QPe=hR("start","end","cancel","interrupt"),JPe=[],tJ=0,zU=1,eO=2,MP=3,RU=4,tO=5,bP=6;function mR(e,t,n,o,r,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;eze(e,n,{name:t,index:o,group:r,on:QPe,tween:JPe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:tJ})}function sq(e,t){var n=pr(e,t);if(n.state>tJ)throw new Error("too late; already scheduled");return n}function ii(e,t){var n=pr(e,t);if(n.state>MP)throw new Error("too late; already running");return n}function pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eze(e,t,n){var o=e.__transition,r;o[t]=n,n.timer=eJ(i,0,n.time);function i(l){n.state=zU,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var h,d,p,y;if(n.state!==zU)return c();for(h in o)if(y=o[h],y.name===n.name){if(y.state===MP)return PU(a);y.state===RU?(y.state=bP,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete o[h]):+h<t&&(y.state=bP,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete o[h])}if(PU(function(){n.state===MP&&(n.state=RU,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=eO,n.on.call("start",e,e.__data__,n.index,n.group),n.state===eO){for(n.state=MP,r=new Array(p=n.tween.length),h=0,d=-1;h<p;++h)(y=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(r[++d]=y);r.length=d+1}}function s(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=tO,1),d=-1,p=r.length;++d<p;)r[d].call(e,h);n.state===tO&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=bP,n.timer.stop(),delete o[t];for(var l in o)return;delete e.__transition}}function _P(e,t){var n=e.__transition,o,r,i=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((o=n[a]).name!==t){i=!1;continue}r=o.state>eO&&o.state<tO,o.state=bP,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[a]}i&&delete e.__transition}}function tze(e){return this.each(function(){_P(this,e)})}function nze(e,t){var n,o;return function(){var r=ii(this,e),i=r.tween;if(i!==n){o=n=i;for(var a=0,s=o.length;a<s;++a)if(o[a].name===t){o=o.slice(),o.splice(a,1);break}}r.tween=o}}function oze(e,t,n){var o,r;if(typeof n!="function")throw new Error;return function(){var i=ii(this,e),a=i.tween;if(a!==o){r=(o=a).slice();for(var s={name:t,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===t){r[c]=s;break}c===l&&r.push(s)}i.tween=r}}function rze(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=pr(this.node(),n).tween,r=0,i=o.length,a;r<i;++r)if((a=o[r]).name===e)return a.value;return null}return this.each((t==null?nze:oze)(n,e,t))}function cq(e,t,n){var o=e._id;return e.each(function(){var r=ii(this,o);(r.value||(r.value={}))[t]=n.apply(this,arguments)}),function(r){return pr(r,o).value[t]}}function nJ(e,t){var n;return(typeof t=="number"?Vr:t instanceof Xd?dz:(n=Xd(t))?(t=n,dz):XQ)(e,t)}function ize(e){return function(){this.removeAttribute(e)}}function aze(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sze(e,t,n){var o,r=n+"",i;return function(){var a=this.getAttribute(e);return a===r?null:a===o?i:i=t(o=a,n)}}function cze(e,t,n){var o,r=n+"",i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===r?null:a===o?i:i=t(o=a,n)}}function lze(e,t,n){var o,r,i;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),c=s+"",a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s)))}}function dze(e,t,n){var o,r,i;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),c=s+"",a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s)))}}function uze(e,t){var n=fR(e),o=n==="transform"?BPe:nJ;return this.attrTween(e,typeof t=="function"?(n.local?dze:lze)(n,o,cq(this,"attr."+e,t)):t==null?(n.local?aze:ize)(n):(n.local?cze:sze)(n,o,t))}function hze(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fze(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pze(e,t){var n,o;function r(){var i=t.apply(this,arguments);return i!==o&&(n=(o=i)&&fze(e,i)),n}return r._value=t,r}function yze(e,t){var n,o;function r(){var i=t.apply(this,arguments);return i!==o&&(n=(o=i)&&hze(e,i)),n}return r._value=t,r}function mze(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=fR(e);return this.tween(n,(o.local?pze:yze)(o,t))}function gze(e,t){return function(){sq(this,e).delay=+t.apply(this,arguments)}}function kze(e,t){return t=+t,function(){sq(this,e).delay=t}}function vze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gze:kze)(t,e)):pr(this.node(),t).delay}function xze(e,t){return function(){ii(this,e).duration=+t.apply(this,arguments)}}function wze(e,t){return t=+t,function(){ii(this,e).duration=t}}function Mze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xze:wze)(t,e)):pr(this.node(),t).duration}function bze(e,t){if(typeof t!="function")throw new Error;return function(){ii(this,e).ease=t}}function _ze(e){var t=this._id;return arguments.length?this.each(bze(t,e)):pr(this.node(),t).ease}function Cze(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,e).ease=n}}function Sze(e){if(typeof e!="function")throw new Error;return this.each(Cze(this._id,e))}function Lze(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var i=t[r],a=i.length,s=o[r]=[],c,l=0;l<a;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&s.push(c);return new Bi(o,this._parents,this._name,this._id)}function Nze(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,r=n.length,i=Math.min(o,r),a=new Array(o),s=0;s<i;++s)for(var c=t[s],l=n[s],h=c.length,d=a[s]=new Array(h),p,y=0;y<h;++y)(p=c[y]||l[y])&&(d[y]=p);for(;s<o;++s)a[s]=t[s];return new Bi(a,this._parents,this._name,this._id)}function Ize(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Aze(e,t,n){var o,r,i=Ize(t)?sq:ii;return function(){var a=i(this,e),s=a.on;s!==o&&(r=(o=s).copy()).on(t,n),a.on=r}}function Eze(e,t){var n=this._id;return arguments.length<2?pr(this.node(),n).on.on(e):this.each(Aze(n,e,t))}function jze(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $ze(){return this.on("end.remove",jze(this._id))}function Pze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=oq(e));for(var o=this._groups,r=o.length,i=new Array(r),a=0;a<r;++a)for(var s=o[a],c=s.length,l=i[a]=new Array(c),h,d,p=0;p<c;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),l[p]=d,mR(l[p],t,n,p,l,pr(h,n)));return new Bi(i,this._parents,t,n)}function zze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=EQ(e));for(var o=this._groups,r=o.length,i=[],a=[],s=0;s<r;++s)for(var c=o[s],l=c.length,h,d=0;d<l;++d)if(h=c[d]){for(var p=e.call(h,h.__data__,d,c),y,g=pr(h,n),k=0,x=p.length;k<x;++k)(y=p[k])&&mR(y,t,n,k,p,g);i.push(p),a.push(h)}return new Bi(i,a,t,n)}var Rze=Df.prototype.constructor;function Tze(){return new Rze(this._groups,this._parents)}function Dze(e,t){var n,o,r;return function(){var i=D0(this,e),a=(this.style.removeProperty(e),D0(this,e));return i===a?null:i===n&&a===o?r:r=t(n=i,o=a)}}function oJ(e){return function(){this.style.removeProperty(e)}}function Hze(e,t,n){var o,r=n+"",i;return function(){var a=D0(this,e);return a===r?null:a===o?i:i=t(o=a,n)}}function Oze(e,t,n){var o,r,i;return function(){var a=D0(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),D0(this,e))),a===c?null:a===o&&c===r?i:(r=c,i=t(o=a,s))}}function Fze(e,t){var n,o,r,i="style."+t,a="end."+i,s;return function(){var c=ii(this,e),l=c.on,h=c.value[i]==null?s||(s=oJ(t)):void 0;(l!==n||r!==h)&&(o=(n=l).copy()).on(a,r=h),c.on=o}}function qze(e,t,n){var o=(e+="")=="transform"?VPe:nJ;return t==null?this.styleTween(e,Dze(e,o)).on("end.style."+e,oJ(e)):typeof t=="function"?this.styleTween(e,Oze(e,o,cq(this,"style."+e,t))).each(Fze(this._id,e)):this.styleTween(e,Hze(e,o,t),n).on("end.style."+e,null)}function Vze(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function Bze(e,t,n){var o,r;function i(){var a=t.apply(this,arguments);return a!==r&&(o=(r=a)&&Vze(e,a,n)),o}return i._value=t,i}function Uze(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Bze(e,t,n??""))}function Wze(e){return function(){this.textContent=e}}function Gze(e){return function(){var t=e(this);this.textContent=t??""}}function Kze(e){return this.tween("text",typeof e=="function"?Gze(cq(this,"text",e)):Wze(e==null?"":e+""))}function Xze(e){return function(t){this.textContent=e.call(this,t)}}function Zze(e){var t,n;function o(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Xze(r)),t}return o._value=e,o}function Yze(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Zze(e))}function Qze(){for(var e=this._name,t=this._id,n=rJ(),o=this._groups,r=o.length,i=0;i<r;++i)for(var a=o[i],s=a.length,c,l=0;l<s;++l)if(c=a[l]){var h=pr(c,t);mR(c,e,n,l,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Bi(o,this._parents,e,n)}function Jze(){var e,t,n=this,o=n._id,r=n.size();return new Promise(function(i,a){var s={value:a},c={value:function(){--r===0&&i()}};n.each(function(){var l=ii(this,o),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),l.on=t}),r===0&&i()})}var eRe=0;function Bi(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function rJ(){return++eRe}var Li=Df.prototype;Bi.prototype={constructor:Bi,select:Pze,selectAll:zze,selectChild:Li.selectChild,selectChildren:Li.selectChildren,filter:Lze,merge:Nze,selection:Tze,transition:Qze,call:Li.call,nodes:Li.nodes,node:Li.node,size:Li.size,empty:Li.empty,each:Li.each,on:Eze,attr:uze,attrTween:mze,style:qze,styleTween:Uze,text:Kze,textTween:Yze,remove:$ze,tween:rze,delay:vze,duration:Mze,ease:_ze,easeVarying:Sze,end:Jze,[Symbol.iterator]:Li[Symbol.iterator]};function tRe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nRe={time:null,delay:0,duration:250,ease:tRe};function oRe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function rRe(e){var t,n;e instanceof Bi?(t=e._id,e=e._name):(t=rJ(),(n=nRe).time=aq(),e=e==null?null:e+"");for(var o=this._groups,r=o.length,i=0;i<r;++i)for(var a=o[i],s=a.length,c,l=0;l<s;++l)(c=a[l])&&mR(c,e,t,l,a,n||oRe(c,t));return new Bi(o,this._parents,e,t)}Df.prototype.interrupt=tze;Df.prototype.transition=rRe;const Op=e=>()=>e;function iRe(e,{sourceEvent:t,target:n,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Ti(e,t,n){this.k=e,this.x=t,this.y=n}Ti.prototype={constructor:Ti,scale:function(e){return e===1?this:new Ti(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ti(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var gR=new Ti(1,0,0);iJ.prototype=Ti.prototype;function iJ(e){for(;!e.__zoom;)if(!(e=e.parentNode))return gR;return e.__zoom}function QT(e){e.stopImmediatePropagation()}function Fh(e){e.preventDefault(),e.stopImmediatePropagation()}function aRe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function sRe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function TU(){return this.__zoom||gR}function cRe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lRe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dRe(e,t,n){var o=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function aJ(){var e=aRe,t=sRe,n=dRe,o=cRe,r=lRe,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,c=wP,l=hR("start","zoom","end"),h,d,p,y=500,g=150,k=0,x=10;function v($){$.property("__zoom",TU).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",j).on("dblclick.zoom",I).filter(r).on("touchstart.zoom",R).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function($,T,D,F){var z=$.selection?$.selection():$;z.property("__zoom",TU),$!==z?C($,T,D,F):z.interrupt().each(function(){_(this,arguments).event(F).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},v.scaleBy=function($,T,D,F){v.scaleTo($,function(){var z=this.__zoom.k,A=typeof T=="function"?T.apply(this,arguments):T;return z*A},D,F)},v.scaleTo=function($,T,D,F){v.transform($,function(){var z=t.apply(this,arguments),A=this.__zoom,N=D==null?b(z):typeof D=="function"?D.apply(this,arguments):D,W=A.invert(N),O=typeof T=="function"?T.apply(this,arguments):T;return n(w(M(A,O),N,W),z,a)},D,F)},v.translateBy=function($,T,D,F){v.transform($,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),a)},null,F)},v.translateTo=function($,T,D,F,z){v.transform($,function(){var A=t.apply(this,arguments),N=this.__zoom,W=F==null?b(A):typeof F=="function"?F.apply(this,arguments):F;return n(gR.translate(W[0],W[1]).scale(N.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof D=="function"?-D.apply(this,arguments):-D),A,a)},F,z)};function M($,T){return T=Math.max(i[0],Math.min(i[1],T)),T===$.k?$:new Ti(T,$.x,$.y)}function w($,T,D){var F=T[0]-D[0]*$.k,z=T[1]-D[1]*$.k;return F===$.x&&z===$.y?$:new Ti($.k,F,z)}function b($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function C($,T,D,F){$.on("start.zoom",function(){_(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(F).end()}).tween("zoom",function(){var z=this,A=arguments,N=_(z,A).event(F),W=t.apply(z,A),O=D==null?b(W):typeof D=="function"?D.apply(z,A):D,P=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),Y=z.__zoom,Z=typeof T=="function"?T.apply(z,A):T,te=c(Y.invert(O).concat(P/Y.k),Z.invert(O).concat(P/Z.k));return function(ae){if(ae===1)ae=Z;else{var oe=te(ae),re=P/oe[2];ae=new Ti(re,O[0]-oe[0]*re,O[1]-oe[1]*re)}N.zoom(null,ae)}})}function _($,T,D){return!D&&$.__zooming||new S($,T)}function S($,T){this.that=$,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply($,T),this.taps=0}S.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,T){return this.mouse&&$!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var T=fo(this.that).datum();l.call($,this.that,new iRe($,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:l}),T)}};function L($,...T){if(!e.apply(this,arguments))return;var D=_(this,T).event($),F=this.__zoom,z=Math.max(i[0],Math.min(i[1],F.k*Math.pow(2,o.apply(this,arguments)))),A=er($);if(D.wheel)(D.mouse[0][0]!==A[0]||D.mouse[0][1]!==A[1])&&(D.mouse[1]=F.invert(D.mouse[0]=A)),clearTimeout(D.wheel);else{if(F.k===z)return;D.mouse=[A,F.invert(A)],_P(this),D.start()}Fh($),D.wheel=setTimeout(N,g),D.zoom("mouse",n(w(M(F,z),D.mouse[0],D.mouse[1]),D.extent,a));function N(){D.wheel=null,D.end()}}function j($,...T){if(p||!e.apply(this,arguments))return;var D=$.currentTarget,F=_(this,T,!0).event($),z=fo($.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",P,!0),A=er($,D),N=$.clientX,W=$.clientY;qQ($.view),QT($),F.mouse=[A,this.__zoom.invert(A)],_P(this),F.start();function O(Y){if(Fh(Y),!F.moved){var Z=Y.clientX-N,te=Y.clientY-W;F.moved=Z*Z+te*te>k}F.event(Y).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=er(Y,D),F.mouse[1]),F.extent,a))}function P(Y){z.on("mousemove.zoom mouseup.zoom",null),VQ(Y.view,F.moved),Fh(Y),F.event(Y).end()}}function I($,...T){if(e.apply(this,arguments)){var D=this.__zoom,F=er($.changedTouches?$.changedTouches[0]:$,this),z=D.invert(F),A=D.k*($.shiftKey?.5:2),N=n(w(M(D,A),F,z),t.apply(this,T),a);Fh($),s>0?fo(this).transition().duration(s).call(C,N,F,$):fo(this).call(v.transform,N,F,$)}}function R($,...T){if(e.apply(this,arguments)){var D=$.touches,F=D.length,z=_(this,T,$.changedTouches.length===F).event($),A,N,W,O;for(QT($),N=0;N<F;++N)W=D[N],O=er(W,this),O=[O,this.__zoom.invert(O),W.identifier],z.touch0?!z.touch1&&z.touch0[2]!==O[2]&&(z.touch1=O,z.taps=0):(z.touch0=O,A=!0,z.taps=1+!!h);h&&(h=clearTimeout(h)),A&&(z.taps<2&&(d=O[0],h=setTimeout(function(){h=null},y)),_P(this),z.start())}}function E($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,A,N,W,O;for(Fh($),A=0;A<z;++A)N=F[A],W=er(N,this),D.touch0&&D.touch0[2]===N.identifier?D.touch0[0]=W:D.touch1&&D.touch1[2]===N.identifier&&(D.touch1[0]=W);if(N=D.that.__zoom,D.touch1){var P=D.touch0[0],Y=D.touch0[1],Z=D.touch1[0],te=D.touch1[1],ae=(ae=Z[0]-P[0])*ae+(ae=Z[1]-P[1])*ae,oe=(oe=te[0]-Y[0])*oe+(oe=te[1]-Y[1])*oe;N=M(N,Math.sqrt(ae/oe)),W=[(P[0]+Z[0])/2,(P[1]+Z[1])/2],O=[(Y[0]+te[0])/2,(Y[1]+te[1])/2]}else if(D.touch0)W=D.touch0[0],O=D.touch0[1];else return;D.zoom("touch",n(w(N,W,O),D.extent,a))}}function V($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,A,N;for(QT($),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),A=0;A<z;++A)N=F[A],D.touch0&&D.touch0[2]===N.identifier?delete D.touch0:D.touch1&&D.touch1[2]===N.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(N=er(N,this),Math.hypot(d[0]-N[0],d[1]-N[1])<x)){var W=fo(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return v.wheelDelta=function($){return arguments.length?(o=typeof $=="function"?$:Op(+$),v):o},v.filter=function($){return arguments.length?(e=typeof $=="function"?$:Op(!!$),v):e},v.touchable=function($){return arguments.length?(r=typeof $=="function"?$:Op(!!$),v):r},v.extent=function($){return arguments.length?(t=typeof $=="function"?$:Op([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),v):t},v.scaleExtent=function($){return arguments.length?(i[0]=+$[0],i[1]=+$[1],v):[i[0],i[1]]},v.translateExtent=function($){return arguments.length?(a[0][0]=+$[0][0],a[1][0]=+$[1][0],a[0][1]=+$[0][1],a[1][1]=+$[1][1],v):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},v.constrain=function($){return arguments.length?(n=$,v):n},v.duration=function($){return arguments.length?(s=+$,v):s},v.interpolate=function($){return arguments.length?(c=$,v):c},v.on=function(){var $=l.on.apply(l,arguments);return $===l?v:$},v.clickDistance=function($){return arguments.length?(k=($=+$)*$,v):Math.sqrt(k)},v.tapDistance=function($){return arguments.length?(x=+$,v):x},v}const ti={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},yf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sJ=["Enter"," ","Escape"],cJ={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var O0;(function(e){e.Strict="strict",e.Loose="loose"})(O0||(O0={}));var Vd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Vd||(Vd={}));var F0;(function(e){e.Partial="partial",e.Full="full"})(F0||(F0={}));const lJ={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Ea;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Ea||(Ea={}));var mf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(mf||(mf={}));var ue;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ue||(ue={}));const DU={[ue.Left]:ue.Right,[ue.Right]:ue.Left,[ue.Top]:ue.Bottom,[ue.Bottom]:ue.Top};function dJ(e){return e===null?null:e?"valid":"invalid"}const uJ=e=>"id"in e&&"source"in e&&"target"in e,uRe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lq=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Of=(e,t=[0,0])=>{const{width:n,height:o}=Xi(e),r=e.origin??t,i=n*r[0],a=o*r[1];return{x:e.position.x-i,y:e.position.y-a}},hRe=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,r)=>{const i=typeof r=="string";let a=!t.nodeLookup&&!i?r:void 0;t.nodeLookup&&(a=i?t.nodeLookup.get(r):lq(r)?r:t.nodeLookup.get(r.id));const s=a?pz(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return kR(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return vR(n)},Ff=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(r=>{(t.filter===void 0||t.filter(r))&&(n=kR(n,pz(r)),o=!0)}),o?vR(n):{x:0,y:0,width:0,height:0}},dq=(e,t,[n,o,r]=[0,0,1],i=!1,a=!1)=>{const s={...Vf(t,[n,o,r]),width:t.width/r,height:t.height/r},c=[];for(const l of e.values()){const{measured:h,selectable:d=!0,hidden:p=!1}=l;if(a&&!d||p)continue;const y=h.width??l.width??l.initialWidth??null,g=h.height??l.height??l.initialHeight??null,k=gf(s,V0(l)),x=(y??0)*(g??0),v=i&&k>0;(!l.internals.handleBounds||v||k>=x||l.dragging)&&c.push(l)}return c},fRe=(e,t)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),t.filter(o=>n.has(o.source)||n.has(o.target))};function pRe(e,t){const n=new Map,o=t!=null&&t.nodes?new Set(t.nodes.map(r=>r.id)):null;return e.forEach(r=>{r.measured.width&&r.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!r.hidden)&&(!o||o.has(r.id))&&n.set(r.id,r)}),n}async function yRe({nodes:e,width:t,height:n,panZoom:o,minZoom:r,maxZoom:i},a){if(e.size===0)return Promise.resolve(!0);const s=pRe(e,a),c=Ff(s),l=uq(c,t,n,(a==null?void 0:a.minZoom)??r,(a==null?void 0:a.maxZoom)??i,(a==null?void 0:a.padding)??.1);return await o.setViewport(l,{duration:a==null?void 0:a.duration,ease:a==null?void 0:a.ease,interpolate:a==null?void 0:a.interpolate}),Promise.resolve(!0)}function hJ({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:r,onError:i}){const a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},h=a.origin??o;let d=a.extent||r;if(a.extent==="parent"&&!a.expandParent)if(!s)i==null||i("005",ti.error005());else{const y=s.measured.width,g=s.measured.height;y&&g&&(d=[[c,l],[c+y,l+g]])}else s&&B0(a.extent)&&(d=[[a.extent[0][0]+c,a.extent[0][1]+l],[a.extent[1][0]+c,a.extent[1][1]+l]]);const p=B0(d)?Yd(t,d,a.measured):t;return(a.measured.width===void 0||a.measured.height===void 0)&&(i==null||i("015",ti.error015())),{position:{x:p.x-c+(a.measured.width??0)*h[0],y:p.y-l+(a.measured.height??0)*h[1]},positionAbsolute:p}}async function mRe({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:o,onBeforeDelete:r}){const i=new Set(e.map(p=>p.id)),a=[];for(const p of n){if(p.deletable===!1)continue;const y=i.has(p.id),g=!y&&p.parentId&&a.find(k=>k.id===p.parentId);(y||g)&&a.push(p)}const s=new Set(t.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),h=fRe(a,c);for(const p of c)s.has(p.id)&&!h.find(g=>g.id===p.id)&&h.push(p);if(!r)return{edges:h,nodes:a};const d=await r({nodes:a,edges:h});return typeof d=="boolean"?d?{edges:h,nodes:a}:{edges:[],nodes:[]}:d}const q0=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Yd=(e={x:0,y:0},t,n)=>({x:q0(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:q0(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function fJ(e,t,n){const{width:o,height:r}=Xi(n),{x:i,y:a}=n.internals.positionAbsolute;return Yd(e,[[i,a],[i+o,a+r]],t)}const HU=(e,t,n)=>e<t?q0(Math.abs(e-t),1,t)/t:e>n?-q0(Math.abs(e-n),1,t)/t:0,pJ=(e,t,n=15,o=40)=>{const r=HU(e.x,o,t.width-o)*n,i=HU(e.y,o,t.height-o)*n;return[r,i]},kR=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nO=({x:e,y:t,width:n,height:o})=>({x:e,y:t,x2:e+n,y2:t+o}),vR=({x:e,y:t,x2:n,y2:o})=>({x:e,y:t,width:n-e,height:o-t}),V0=(e,t=[0,0])=>{var r,i;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,width:((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},pz=(e,t=[0,0])=>{var r,i;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,x2:n+(((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0),y2:o+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},yJ=(e,t)=>vR(kR(nO(e),nO(t))),gf=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)},OU=e=>rr(e.width)&&rr(e.height)&&rr(e.x)&&rr(e.y),rr=e=>!isNaN(e)&&isFinite(e),gRe=(e,t)=>{},qf=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Vf=({x:e,y:t},[n,o,r],i=!1,a=[1,1])=>{const s={x:(e-n)/r,y:(t-o)/r};return i?qf(s,a):s},yz=({x:e,y:t},[n,o,r])=>({x:e*r+n,y:t*r+o});function $u(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kRe(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=$u(e,n),r=$u(e,t);return{top:o,right:r,bottom:o,left:r,x:r*2,y:o*2}}if(typeof e=="object"){const o=$u(e.top??e.y??0,n),r=$u(e.bottom??e.y??0,n),i=$u(e.left??e.x??0,t),a=$u(e.right??e.x??0,t);return{top:o,right:a,bottom:r,left:i,x:i+a,y:o+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vRe(e,t,n,o,r,i){const{x:a,y:s}=yz(e,[t,n,o]),{x:c,y:l}=yz({x:e.x+e.width,y:e.y+e.height},[t,n,o]),h=r-c,d=i-l;return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(h),bottom:Math.floor(d)}}const uq=(e,t,n,o,r,i)=>{const a=kRe(i,t,n),s=(t-a.x)/e.width,c=(n-a.y)/e.height,l=Math.min(s,c),h=q0(l,o,r),d=e.x+e.width/2,p=e.y+e.height/2,y=t/2-d*h,g=n/2-p*h,k=vRe(e,y,g,h,t,n),x={left:Math.min(k.left-a.left,0),top:Math.min(k.top-a.top,0),right:Math.min(k.right-a.right,0),bottom:Math.min(k.bottom-a.bottom,0)};return{x:y-x.left+x.right,y:g-x.top+x.bottom,zoom:h}},kf=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function B0(e){return e!=null&&e!=="parent"}function Xi(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function mJ(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function gJ(e,t={width:0,height:0},n,o,r){const i={...e},a=o.get(n);if(a){const s=a.origin||r;i.x+=a.internals.positionAbsolute.x-(t.width??0)*s[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*s[1]}return i}function FU(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function xRe(){let e,t;return{promise:new Promise((o,r)=>{e=o,t=r}),resolve:e,reject:t}}function wRe(e){return{...cJ,...e||{}}}function O2(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:o,containerBounds:r}){const{x:i,y:a}=ir(e),s=Vf({x:i-((r==null?void 0:r.left)??0),y:a-((r==null?void 0:r.top)??0)},o),{x:c,y:l}=n?qf(s,t):s;return{xSnapped:c,ySnapped:l,...s}}const hq=e=>({width:e.offsetWidth,height:e.offsetHeight}),kJ=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},MRe=["INPUT","SELECT","TEXTAREA"];function vJ(e){var o,r;const t=((r=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:r[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:MRe.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const xJ=e=>"clientX"in e,ir=(e,t)=>{var i,a;const n=xJ(e),o=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,r=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:o-((t==null?void 0:t.left)??0),y:r-((t==null?void 0:t.top)??0)}},qU=(e,t,n,o,r)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(a=>{const s=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:e,nodeId:r,position:a.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...hq(a)}})};function wJ({sourceX:e,sourceY:t,targetX:n,targetY:o,sourceControlX:r,sourceControlY:i,targetControlX:a,targetControlY:s}){const c=e*.125+r*.375+a*.375+n*.125,l=t*.125+i*.375+s*.375+o*.125,h=Math.abs(c-e),d=Math.abs(l-t);return[c,l,h,d]}function Fp(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function VU({pos:e,x1:t,y1:n,x2:o,y2:r,c:i}){switch(e){case ue.Left:return[t-Fp(t-o,i),n];case ue.Right:return[t+Fp(o-t,i),n];case ue.Top:return[t,n-Fp(n-r,i)];case ue.Bottom:return[t,n+Fp(r-n,i)]}}function xR({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:i=ue.Top,curvature:a=.25}){const[s,c]=VU({pos:n,x1:e,y1:t,x2:o,y2:r,c:a}),[l,h]=VU({pos:i,x1:o,y1:r,x2:e,y2:t,c:a}),[d,p,y,g]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:h});return[`M${e},${t} C${s},${c} ${l},${h} ${o},${r}`,d,p,y,g]}function MJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const r=Math.abs(n-e)/2,i=n<e?n+r:n-r,a=Math.abs(o-t)/2,s=o<t?o+a:o-a;return[i,s,r,a]}function bRe({sourceNode:e,targetNode:t,selected:n=!1,zIndex:o=0,elevateOnSelect:r=!1,zIndexMode:i="basic"}){if(i==="manual")return o;const a=r&&n?o+1e3:o,s=Math.max(e.parentId||r&&e.selected?e.internals.z:0,t.parentId||r&&t.selected?t.internals.z:0);return a+s}function _Re({sourceNode:e,targetNode:t,width:n,height:o,transform:r}){const i=kR(pz(e),pz(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const a={x:-r[0]/r[2],y:-r[1]/r[2],width:n/r[2],height:o/r[2]};return gf(a,vR(i))>0}const CRe=({source:e,sourceHandle:t,target:n,targetHandle:o})=>`xy-edge__${e}${t||""}-${n}${o||""}`,SRe=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),LRe=(e,t,n={})=>{if(!e.source||!e.target)return t;const o=n.getEdgeId||CRe;let r;return uJ(e)?r={...e}:r={...e,id:o(e)},SRe(r,t)?t:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,t.concat(r))};function bJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const[r,i,a,s]=MJ({sourceX:e,sourceY:t,targetX:n,targetY:o});return[`M ${e},${t}L ${n},${o}`,r,i,a,s]}const BU={[ue.Left]:{x:-1,y:0},[ue.Right]:{x:1,y:0},[ue.Top]:{x:0,y:-1},[ue.Bottom]:{x:0,y:1}},NRe=({source:e,sourcePosition:t=ue.Bottom,target:n})=>t===ue.Left||t===ue.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},UU=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function IRe({source:e,sourcePosition:t=ue.Bottom,target:n,targetPosition:o=ue.Top,center:r,offset:i,stepPosition:a}){const s=BU[t],c=BU[o],l={x:e.x+s.x*i,y:e.y+s.y*i},h={x:n.x+c.x*i,y:n.y+c.y*i},d=NRe({source:l,sourcePosition:t,target:h}),p=d.x!==0?"x":"y",y=d[p];let g=[],k,x;const v={x:0,y:0},M={x:0,y:0},[,,w,b]=MJ({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[p]*c[p]===-1){p==="x"?(k=r.x??l.x+(h.x-l.x)*a,x=r.y??(l.y+h.y)/2):(k=r.x??(l.x+h.x)/2,x=r.y??l.y+(h.y-l.y)*a);const L=[{x:k,y:l.y},{x:k,y:h.y}],j=[{x:l.x,y:x},{x:h.x,y:x}];s[p]===y?g=p==="x"?L:j:g=p==="x"?j:L}else{const L=[{x:l.x,y:h.y}],j=[{x:h.x,y:l.y}];if(p==="x"?g=s.x===y?j:L:g=s.y===y?L:j,t===o){const $=Math.abs(e[p]-n[p]);if($<=i){const T=Math.min(i-1,i-$);s[p]===y?v[p]=(l[p]>e[p]?-1:1)*T:M[p]=(h[p]>n[p]?-1:1)*T}}if(t!==o){const $=p==="x"?"y":"x",T=s[p]===c[$],D=l[$]>h[$],F=l[$]<h[$];(s[p]===1&&(!T&&D||T&&F)||s[p]!==1&&(!T&&F||T&&D))&&(g=p==="x"?L:j)}const I={x:l.x+v.x,y:l.y+v.y},R={x:h.x+M.x,y:h.y+M.y},E=Math.max(Math.abs(I.x-g[0].x),Math.abs(R.x-g[0].x)),V=Math.max(Math.abs(I.y-g[0].y),Math.abs(R.y-g[0].y));E>=V?(k=(I.x+R.x)/2,x=g[0].y):(k=g[0].x,x=(I.y+R.y)/2)}const C={x:l.x+v.x,y:l.y+v.y},_={x:h.x+M.x,y:h.y+M.y};return[[e,...C.x!==g[0].x||C.y!==g[0].y?[C]:[],...g,..._.x!==g[g.length-1].x||_.y!==g[g.length-1].y?[_]:[],n],k,x,w,b]}function ARe(e,t,n,o){const r=Math.min(UU(e,t)/2,UU(t,n)/2,o),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a){const l=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${i+r*l},${a}Q ${i},${a} ${i},${a+r*h}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${a+r*c}Q ${i},${a} ${i+r*s},${a}`}function vf({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:i=ue.Top,borderRadius:a=5,centerX:s,centerY:c,offset:l=20,stepPosition:h=.5}){const[d,p,y,g,k]=IRe({source:{x:e,y:t},sourcePosition:n,target:{x:o,y:r},targetPosition:i,center:{x:s,y:c},offset:l,stepPosition:h});let x=`M${d[0].x} ${d[0].y}`;for(let v=1;v<d.length-1;v++)x+=ARe(d[v-1],d[v],d[v+1],a);return x+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[x,p,y,g,k]}function WU(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ERe(e){var d;const{sourceNode:t,targetNode:n}=e;if(!WU(t)||!WU(n))return null;const o=t.internals.handleBounds||GU(t.handles),r=n.internals.handleBounds||GU(n.handles),i=KU((o==null?void 0:o.source)??[],e.sourceHandle),a=KU(e.connectionMode===O0.Strict?(r==null?void 0:r.target)??[]:((r==null?void 0:r.target)??[]).concat((r==null?void 0:r.source)??[]),e.targetHandle);if(!i||!a)return(d=e.onError)==null||d.call(e,"008",ti.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(i==null?void 0:i.position)||ue.Bottom,c=(a==null?void 0:a.position)||ue.Top,l=Qd(t,i,s),h=Qd(n,a,c);return{sourceX:l.x,sourceY:l.y,targetX:h.x,targetY:h.y,sourcePosition:s,targetPosition:c}}function GU(e){if(!e)return null;const t=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?t.push(o):o.type==="target"&&n.push(o);return{source:t,target:n}}function Qd(e,t,n=ue.Left,o=!1){const r=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:a,height:s}=t??Xi(e);if(o)return{x:r+a/2,y:i+s/2};switch((t==null?void 0:t.position)??n){case ue.Top:return{x:r+a/2,y:i};case ue.Right:return{x:r+a,y:i+s/2};case ue.Bottom:return{x:r+a/2,y:i+s};case ue.Left:return{x:r,y:i+s/2}}}function KU(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function oO(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`:""}function jRe(e,{id:t,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:r}){const i=new Set;return e.reduce((a,s)=>([s.markerStart||o,s.markerEnd||r].forEach(c=>{if(c&&typeof c=="object"){const l=oO(c,t);i.has(l)||(a.push({id:l,color:c.color||n,...c}),i.add(l))}}),a),[]).sort((a,s)=>a.id.localeCompare(s.id))}const _J=1e3,$Re=10,fq={nodeOrigin:[0,0],nodeExtent:yf,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},PRe={...fq,checkEquality:!0};function pq(e,t){const n={...e};for(const o in t)t[o]!==void 0&&(n[o]=t[o]);return n}function zRe(e,t,n){const o=pq(fq,n);for(const r of e.values())if(r.parentId)mq(r,e,t,o);else{const i=Of(r,o.nodeOrigin),a=B0(r.extent)?r.extent:o.nodeExtent,s=Yd(i,a,Xi(r));r.internals.positionAbsolute=s}}function RRe(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],o=[];for(const r of e.handles){const i={id:r.id,width:r.width??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r.type};r.type==="source"?n.push(i):r.type==="target"&&o.push(i)}return{source:n,target:o}}function yq(e){return e==="manual"}function rO(e,t,n,o={}){var h,d;const r=pq(PRe,o),i={i:0},a=new Map(t),s=r!=null&&r.elevateNodesOnSelect&&!yq(r.zIndexMode)?_J:0;let c=e.length>0,l=!1;t.clear(),n.clear();for(const p of e){let y=a.get(p.id);if(r.checkEquality&&p===(y==null?void 0:y.internals.userNode))t.set(p.id,y);else{const g=Of(p,r.nodeOrigin),k=B0(p.extent)?p.extent:r.nodeExtent,x=Yd(g,k,Xi(p));y={...r.defaults,...p,measured:{width:(h=p.measured)==null?void 0:h.width,height:(d=p.measured)==null?void 0:d.height},internals:{positionAbsolute:x,handleBounds:RRe(p,y),z:CJ(p,s,r.zIndexMode),userNode:p}},t.set(p.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(c=!1),p.parentId&&mq(y,t,n,o,i),l||(l=p.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:l}}function TRe(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function mq(e,t,n,o,r){const{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:s,zIndexMode:c}=pq(fq,o),l=e.parentId,h=t.get(l);if(!h){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}TRe(e,n),r&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++r.i,h.internals.z=h.internals.z+r.i*$Re),r&&h.internals.rootParentIndex!==void 0&&(r.i=h.internals.rootParentIndex);const d=i&&!yq(c)?_J:0,{x:p,y,z:g}=DRe(e,h,a,s,d,c),{positionAbsolute:k}=e.internals,x=p!==k.x||y!==k.y;(x||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y}:k,z:g}})}function CJ(e,t,n){const o=rr(e.zIndex)?e.zIndex:0;return yq(n)?o:o+(e.selected?t:0)}function DRe(e,t,n,o,r,i){const{x:a,y:s}=t.internals.positionAbsolute,c=Xi(e),l=Of(e,n),h=B0(e.extent)?Yd(l,e.extent,c):l;let d=Yd({x:a+h.x,y:s+h.y},o,c);e.extent==="parent"&&(d=fJ(d,c,t));const p=CJ(e,r,i),y=t.internals.z??0;return{x:d.x,y:d.y,z:y>=p?y+1:p}}function gq(e,t,n,o=[0,0]){var a;const r=[],i=new Map;for(const s of e){const c=t.get(s.parentId);if(!c)continue;const l=((a=i.get(s.parentId))==null?void 0:a.expandedRect)??V0(c),h=yJ(l,s.rect);i.set(s.parentId,{expandedRect:h,parent:c})}return i.size>0&&i.forEach(({expandedRect:s,parent:c},l)=>{var w;const h=c.internals.positionAbsolute,d=Xi(c),p=c.origin??o,y=s.x<h.x?Math.round(Math.abs(h.x-s.x)):0,g=s.y<h.y?Math.round(Math.abs(h.y-s.y)):0,k=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),v=(k-d.width)*p[0],M=(x-d.height)*p[1];(y>0||g>0||v||M)&&(r.push({id:l,type:"position",position:{x:c.position.x-y+v,y:c.position.y-g+M}}),(w=n.get(l))==null||w.forEach(b=>{e.some(C=>C.id===b.id)||r.push({id:b.id,type:"position",position:{x:b.position.x+y,y:b.position.y+g}})})),(d.width<s.width||d.height<s.height||y||g)&&r.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:k+(y?p[0]*y-v:0),height:x+(g?p[1]*g-M:0)}})}),r}function HRe(e,t,n,o,r,i,a){const s=o==null?void 0:o.querySelector(".xyflow__viewport");let c=!1;if(!s)return{changes:[],updatedInternals:c};const l=[],h=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(h.transform),p=[];for(const y of e.values()){const g=t.get(y.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),c=!0;continue}const k=hq(y.nodeElement),x=g.measured.width!==k.width||g.measured.height!==k.height;if(!!(k.width&&k.height&&(x||!g.internals.handleBounds||y.force))){const M=y.nodeElement.getBoundingClientRect(),w=B0(g.extent)?g.extent:i;let{positionAbsolute:b}=g.internals;g.parentId&&g.extent==="parent"?b=fJ(b,k,t.get(g.parentId)):w&&(b=Yd(b,w,k));const C={...g,measured:k,internals:{...g.internals,positionAbsolute:b,handleBounds:{source:qU("source",y.nodeElement,M,d,g.id),target:qU("target",y.nodeElement,M,d,g.id)}}};t.set(g.id,C),g.parentId&&mq(C,t,n,{nodeOrigin:r,zIndexMode:a}),c=!0,x&&(l.push({id:g.id,type:"dimensions",dimensions:k}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:V0(C,r)}))}}if(p.length>0){const y=gq(p,t,n,r);l.push(...y)}return{changes:l,updatedInternals:c}}async function ORe({delta:e,panZoom:t,transform:n,translateExtent:o,width:r,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[r,i]],o),s=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(s)}function XU(e,t,n,o,r,i){let a=r;const s=o.get(a)||new Map;o.set(a,s.set(n,t)),a=`${r}-${e}`;const c=o.get(a)||new Map;if(o.set(a,c.set(n,t)),i){a=`${r}-${e}-${i}`;const l=o.get(a)||new Map;o.set(a,l.set(n,t))}}function SJ(e,t,n){e.clear(),t.clear();for(const o of n){const{source:r,target:i,sourceHandle:a=null,targetHandle:s=null}=o,c={edgeId:o.id,source:r,target:i,sourceHandle:a,targetHandle:s},l=`${r}-${a}--${i}-${s}`,h=`${i}-${s}--${r}-${a}`;XU("source",c,h,e,r,a),XU("target",c,l,e,i,s),t.set(o.id,o)}}function LJ(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:LJ(n,t):!1}function ZU(e,t,n){var r;let o=e;do{if((r=o==null?void 0:o.matches)!=null&&r.call(o,t))return!0;if(o===n)return!1;o=o==null?void 0:o.parentElement}while(o);return!1}function FRe(e,t,n,o){const r=new Map;for(const[i,a]of e)if((a.selected||a.id===o)&&(!a.parentId||!LJ(a,e))&&(a.draggable||t&&typeof a.draggable>"u")){const s=e.get(i);s&&r.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return r}function JT({nodeId:e,dragItems:t,nodeLookup:n,dragging:o=!0}){var a,s,c;const r=[];for(const[l,h]of t){const d=(a=n.get(l))==null?void 0:a.internals.userNode;d&&r.push({...d,position:h.position,dragging:o})}if(!e)return[r[0],r];const i=(s=n.get(e))==null?void 0:s.internals.userNode;return[i?{...i,position:((c=t.get(e))==null?void 0:c.position)||i.position,dragging:o}:r[0],r]}function qRe({dragItems:e,snapGrid:t,x:n,y:o}){const r=e.values().next().value;if(!r)return null;const i={x:n-r.distance.x,y:o-r.distance.y},a=qf(i,t);return{x:a.x-i.x,y:a.y-i.y}}function VRe({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:o,onDragStop:r}){let i={x:null,y:null},a=0,s=new Map,c=!1,l={x:0,y:0},h=null,d=!1,p=null,y=!1,g=!1,k=null;function x({noDragClassName:M,handleSelector:w,domNode:b,isSelectable:C,nodeId:_,nodeClickDistance:S=0}){p=fo(b);function L({x:E,y:V}){const{nodeLookup:$,nodeExtent:T,snapGrid:D,snapToGrid:F,nodeOrigin:z,onNodeDrag:A,onSelectionDrag:N,onError:W,updateNodePositions:O}=t();i={x:E,y:V};let P=!1;const Y=s.size>1,Z=Y&&T?nO(Ff(s)):null,te=Y&&F?qRe({dragItems:s,snapGrid:D,x:E,y:V}):null;for(const[ae,oe]of s){if(!$.has(ae))continue;let re={x:E-oe.distance.x,y:V-oe.distance.y};F&&(re=te?{x:Math.round(re.x+te.x),y:Math.round(re.y+te.y)}:qf(re,D));let se=null;if(Y&&T&&!oe.extent&&Z){const{positionAbsolute:ge}=oe.internals,Pe=ge.x-Z.x+T[0][0],Be=ge.x+oe.measured.width-Z.x2+T[1][0],De=ge.y-Z.y+T[0][1],pe=ge.y+oe.measured.height-Z.y2+T[1][1];se=[[Pe,De],[Be,pe]]}const{position:ve,positionAbsolute:ke}=hJ({nodeId:ae,nextPosition:re,nodeLookup:$,nodeExtent:se||T,nodeOrigin:z,onError:W});P=P||oe.position.x!==ve.x||oe.position.y!==ve.y,oe.position=ve,oe.internals.positionAbsolute=ke}if(g=g||P,!!P&&(O(s,!0),k&&(o||A||!_&&N))){const[ae,oe]=JT({nodeId:_,dragItems:s,nodeLookup:$});o==null||o(k,s,ae,oe),A==null||A(k,ae,oe),_||N==null||N(k,oe)}}async function j(){if(!h)return;const{transform:E,panBy:V,autoPanSpeed:$,autoPanOnNodeDrag:T}=t();if(!T){c=!1,cancelAnimationFrame(a);return}const[D,F]=pJ(l,h,$);(D!==0||F!==0)&&(i.x=(i.x??0)-D/E[2],i.y=(i.y??0)-F/E[2],await V({x:D,y:F})&&L(i)),a=requestAnimationFrame(j)}function I(E){var Y;const{nodeLookup:V,multiSelectionActive:$,nodesDraggable:T,transform:D,snapGrid:F,snapToGrid:z,selectNodesOnDrag:A,onNodeDragStart:N,onSelectionDragStart:W,unselectNodesAndEdges:O}=t();d=!0,(!A||!C)&&!$&&_&&((Y=V.get(_))!=null&&Y.selected||O()),C&&A&&_&&(e==null||e(_));const P=O2(E.sourceEvent,{transform:D,snapGrid:F,snapToGrid:z,containerBounds:h});if(i=P,s=FRe(V,T,P,_),s.size>0&&(n||N||!_&&W)){const[Z,te]=JT({nodeId:_,dragItems:s,nodeLookup:V});n==null||n(E.sourceEvent,s,Z,te),N==null||N(E.sourceEvent,Z,te),_||W==null||W(E.sourceEvent,te)}}const R=BQ().clickDistance(S).on("start",E=>{const{domNode:V,nodeDragThreshold:$,transform:T,snapGrid:D,snapToGrid:F}=t();h=(V==null?void 0:V.getBoundingClientRect())||null,y=!1,g=!1,k=E.sourceEvent,$===0&&I(E),i=O2(E.sourceEvent,{transform:T,snapGrid:D,snapToGrid:F,containerBounds:h}),l=ir(E.sourceEvent,h)}).on("drag",E=>{const{autoPanOnNodeDrag:V,transform:$,snapGrid:T,snapToGrid:D,nodeDragThreshold:F,nodeLookup:z}=t(),A=O2(E.sourceEvent,{transform:$,snapGrid:T,snapToGrid:D,containerBounds:h});if(k=E.sourceEvent,(E.sourceEvent.type==="touchmove"&&E.sourceEvent.touches.length>1||_&&!z.has(_))&&(y=!0),!y){if(!c&&V&&d&&(c=!0,j()),!d){const N=ir(E.sourceEvent,h),W=N.x-l.x,O=N.y-l.y;Math.sqrt(W*W+O*O)>F&&I(E)}(i.x!==A.xSnapped||i.y!==A.ySnapped)&&s&&d&&(l=ir(E.sourceEvent,h),L(A))}}).on("end",E=>{if(!(!d||y)&&(c=!1,d=!1,cancelAnimationFrame(a),s.size>0)){const{nodeLookup:V,updateNodePositions:$,onNodeDragStop:T,onSelectionDragStop:D}=t();if(g&&($(s,!1),g=!1),r||T||!_&&D){const[F,z]=JT({nodeId:_,dragItems:s,nodeLookup:V,dragging:!1});r==null||r(E.sourceEvent,s,F,z),T==null||T(E.sourceEvent,F,z),_||D==null||D(E.sourceEvent,z)}}}).filter(E=>{const V=E.target;return!E.button&&(!M||!ZU(V,`.${M}`,b))&&(!w||ZU(V,w,b))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:x,destroy:v}}function BRe(e,t,n){const o=[],r={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())gf(r,V0(i))>0&&o.push(i);return o}const URe=250;function WRe(e,t,n,o){var s,c;let r=[],i=1/0;const a=BRe(e,n,t+URe);for(const l of a){const h=[...((s=l.internals.handleBounds)==null?void 0:s.source)??[],...((c=l.internals.handleBounds)==null?void 0:c.target)??[]];for(const d of h){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:p,y}=Qd(l,d,d.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(y-e.y,2));g>t||(g<i?(r=[{...d,x:p,y}],i=g):g===i&&r.push({...d,x:p,y}))}}if(!r.length)return null;if(r.length>1){const l=o.type==="source"?"target":"source";return r.find(h=>h.type===l)??r[0]}return r[0]}function NJ(e,t,n,o,r,i=!1){var l,h,d;const a=o.get(e);if(!a)return null;const s=r==="strict"?(l=a.internals.handleBounds)==null?void 0:l[t]:[...((h=a.internals.handleBounds)==null?void 0:h.source)??[],...((d=a.internals.handleBounds)==null?void 0:d.target)??[]],c=(n?s==null?void 0:s.find(p=>p.id===n):s==null?void 0:s[0])??null;return c&&i?{...c,...Qd(a,c,c.position,!0)}:c}function IJ(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function GRe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const AJ=()=>!0;function KRe(e,{connectionMode:t,connectionRadius:n,handleId:o,nodeId:r,edgeUpdaterType:i,isTarget:a,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:h,flowId:d,panBy:p,cancelConnection:y,onConnectStart:g,onConnect:k,onConnectEnd:x,isValidConnection:v=AJ,onReconnectEnd:M,updateConnection:w,getTransform:b,getFromHandle:C,autoPanSpeed:_,dragThreshold:S=1,handleDomNode:L}){const j=kJ(e.target);let I=0,R;const{x:E,y:V}=ir(e),$=IJ(i,L),T=s==null?void 0:s.getBoundingClientRect();let D=!1;if(!T||!$)return;const F=NJ(r,$,o,c,t);if(!F)return;let z=ir(e,T),A=!1,N=null,W=!1,O=null;function P(){if(!h||!T)return;const[ve,ke]=pJ(z,T,_);p({x:ve,y:ke}),I=requestAnimationFrame(P)}const Y={...F,nodeId:r,type:$,position:F.position},Z=c.get(r);let ae={inProgress:!0,isValid:null,from:Qd(Z,Y,ue.Left,!0),fromHandle:Y,fromPosition:Y.position,fromNode:Z,to:z,toHandle:null,toPosition:DU[Y.position],toNode:null,pointer:z};function oe(){D=!0,w(ae),g==null||g(e,{nodeId:r,handleId:o,handleType:$})}S===0&&oe();function re(ve){if(!D){const{x:pe,y:me}=ir(ve),Ie=pe-E,Ue=me-V;if(!(Ie*Ie+Ue*Ue>S*S))return;oe()}if(!C()||!Y){se(ve);return}const ke=b();z=ir(ve,T),R=WRe(Vf(z,ke,!1,[1,1]),n,c,Y),A||(P(),A=!0);const ge=EJ(ve,{handle:R,connectionMode:t,fromNodeId:r,fromHandleId:o,fromType:a?"target":"source",isValidConnection:v,doc:j,lib:l,flowId:d,nodeLookup:c});O=ge.handleDomNode,N=ge.connection,W=GRe(!!R,ge.isValid);const Pe=c.get(r),Be=Pe?Qd(Pe,Y,ue.Left,!0):ae.from,De={...ae,from:Be,isValid:W,to:ge.toHandle&&W?yz({x:ge.toHandle.x,y:ge.toHandle.y},ke):z,toHandle:ge.toHandle,toPosition:W&&ge.toHandle?ge.toHandle.position:DU[Y.position],toNode:ge.toHandle?c.get(ge.toHandle.nodeId):null,pointer:z};w(De),ae=De}function se(ve){if(!("touches"in ve&&ve.touches.length>0)){if(D){(R||O)&&N&&W&&(k==null||k(N));const{inProgress:ke,...ge}=ae,Pe={...ge,toPosition:ae.toHandle?ae.toPosition:null};x==null||x(ve,Pe),i&&(M==null||M(ve,Pe))}y(),cancelAnimationFrame(I),A=!1,W=!1,N=null,O=null,j.removeEventListener("mousemove",re),j.removeEventListener("mouseup",se),j.removeEventListener("touchmove",re),j.removeEventListener("touchend",se)}}j.addEventListener("mousemove",re),j.addEventListener("mouseup",se),j.addEventListener("touchmove",re),j.addEventListener("touchend",se)}function EJ(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:r,fromType:i,doc:a,lib:s,flowId:c,isValidConnection:l=AJ,nodeLookup:h}){const d=i==="target",p=t?a.querySelector(`.${s}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:g}=ir(e),k=a.elementFromPoint(y,g),x=k!=null&&k.classList.contains(`${s}-flow__handle`)?k:p,v={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const M=IJ(void 0,x),w=x.getAttribute("data-nodeid"),b=x.getAttribute("data-handleid"),C=x.classList.contains("connectable"),_=x.classList.contains("connectableend");if(!w||!M)return v;const S={source:d?w:o,sourceHandle:d?b:r,target:d?o:w,targetHandle:d?r:b};v.connection=S;const j=C&&_&&(n===O0.Strict?d&&M==="source"||!d&&M==="target":w!==o||b!==r);v.isValid=j&&l(S),v.toHandle=NJ(w,M,b,h,n,!0)}return v}const iO={onPointerDown:KRe,isValid:EJ};function XRe({domNode:e,panZoom:t,getTransform:n,getViewScale:o}){const r=fo(e);function i({translateExtent:s,width:c,height:l,zoomStep:h=1,pannable:d=!0,zoomable:p=!0,inversePan:y=!1}){const g=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const b=n(),C=w.sourceEvent.ctrlKey&&kf()?10:1,_=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*h,S=b[2]*Math.pow(2,_*C);t.scaleTo(S)};let k=[0,0];const x=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(k=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},v=w=>{const b=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const C=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],_=[C[0]-k[0],C[1]-k[1]];k=C;const S=o()*Math.max(b[2],Math.log(b[2]))*(y?-1:1),L={x:b[0]-_[0]*S,y:b[1]-_[1]*S},j=[[0,0],[c,l]];t.setViewportConstrained({x:L.x,y:L.y,zoom:b[2]},j,s)},M=aJ().on("start",x).on("zoom",d?v:null).on("zoom.wheel",p?g:null);r.call(M,{})}function a(){r.on("zoom",null)}return{update:i,destroy:a,pointer:er}}const wR=e=>({x:e.x,y:e.y,zoom:e.k}),eD=({x:e,y:t,zoom:n})=>gR.translate(e,t).scale(n),i0=(e,t)=>e.target.closest(`.${t}`),jJ=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),ZRe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tD=(e,t=0,n=ZRe,o=()=>{})=>{const r=typeof t=="number"&&t>0;return r||o(),r?e.transition().duration(t).ease(n).on("end",o):e},$J=e=>{const t=e.ctrlKey&&kf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YRe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:o,panOnScrollMode:r,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return h=>{if(i0(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(h.ctrlKey&&a){const x=er(h),v=$J(h),M=d*Math.pow(2,v);o.scaleTo(n,M,x,h);return}const p=h.deltaMode===1?20:1;let y=r===Vd.Vertical?0:h.deltaX*p,g=r===Vd.Horizontal?0:h.deltaY*p;!kf()&&h.shiftKey&&r!==Vd.Vertical&&(y=h.deltaY*p,g=0),o.translateBy(n,-(y/d)*i,-(g/d)*i,{internal:!0});const k=wR(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,k),e.panScrollTimeout=setTimeout(()=>{l==null||l(h,k),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s==null||s(h,k))}}function QRe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(o,r){const i=o.type==="wheel",a=!t&&i&&!o.ctrlKey,s=i0(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),a||s)return null;o.preventDefault(),n.call(this,o,r)}}function JRe({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return o=>{var i,a,s;if((i=o.sourceEvent)!=null&&i.internal)return;const r=wR(o.transform);e.mouseButton=((a=o.sourceEvent)==null?void 0:a.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=r,((s=o.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(o.sourceEvent,r))}}function eTe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:o,onPanZoom:r}){return i=>{var a,s;e.usedRightMouseButton=!!(n&&jJ(t,e.mouseButton??0)),(a=i.sourceEvent)!=null&&a.sync||o([i.transform.x,i.transform.y,i.transform.k]),r&&!((s=i.sourceEvent)!=null&&s.internal)&&(r==null||r(i.sourceEvent,wR(i.transform)))}}function tTe({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:r,onPaneContextMenu:i}){return a=>{var s;if(!((s=a.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,i&&jJ(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,o(!1),r)){const c=wR(a.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{r==null||r(a.sourceEvent,c)},n?150:0)}}}function nTe({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:s,noPanClassName:c,lib:l,connectionInProgress:h}){return d=>{var x;const p=e||t,y=n&&d.ctrlKey,g=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(i0(d,`${l}-flow__node`)||i0(d,`${l}-flow__edge`)))return!0;if(!o&&!p&&!r&&!i&&!n||a||h&&!g||i0(d,s)&&g||i0(d,c)&&(!g||r&&g&&!e)||!n&&d.ctrlKey&&g)return!1;if(!n&&d.type==="touchstart"&&((x=d.touches)==null?void 0:x.length)>1)return d.preventDefault(),!1;if(!p&&!r&&!y&&g||!o&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(o)&&!o.includes(d.button)&&d.type==="mousedown")return!1;const k=Array.isArray(o)&&o.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||g)&&k}}function oTe({domNode:e,minZoom:t,maxZoom:n,translateExtent:o,viewport:r,onPanZoom:i,onPanZoomStart:a,onPanZoomEnd:s,onDraggingChange:c}){const l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),d=aJ().scaleExtent([t,n]).translateExtent(o),p=fo(e).call(d);M({x:r.x,y:r.y,zoom:q0(r.zoom,t,n)},[[0,0],[h.width,h.height]],o);const y=p.on("wheel.zoom"),g=p.on("dblclick.zoom");d.wheelDelta($J);function k(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).transform(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function x({noWheelClassName:R,noPanClassName:E,onPaneContextMenu:V,userSelectionActive:$,panOnScroll:T,panOnDrag:D,panOnScrollMode:F,panOnScrollSpeed:z,preventScrolling:A,zoomOnPinch:N,zoomOnScroll:W,zoomOnDoubleClick:O,zoomActivationKeyPressed:P,lib:Y,onTransformChange:Z,connectionInProgress:te,paneClickDistance:ae,selectionOnDrag:oe}){$&&!l.isZoomingOrPanning&&v();const re=T&&!P&&!$;d.clickDistance(oe?1/0:!rr(ae)||ae<0?0:ae);const se=re?YRe({zoomPanValues:l,noWheelClassName:R,d3Selection:p,d3Zoom:d,panOnScrollMode:F,panOnScrollSpeed:z,zoomOnPinch:N,onPanZoomStart:a,onPanZoom:i,onPanZoomEnd:s}):QRe({noWheelClassName:R,preventScrolling:A,d3ZoomHandler:y});if(p.on("wheel.zoom",se,{passive:!1}),!$){const ke=JRe({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:a});d.on("start",ke);const ge=eTe({zoomPanValues:l,panOnDrag:D,onPaneContextMenu:!!V,onPanZoom:i,onTransformChange:Z});d.on("zoom",ge);const Pe=tTe({zoomPanValues:l,panOnDrag:D,panOnScroll:T,onPaneContextMenu:V,onPanZoomEnd:s,onDraggingChange:c});d.on("end",Pe)}const ve=nTe({zoomActivationKeyPressed:P,panOnDrag:D,zoomOnScroll:W,panOnScroll:T,zoomOnDoubleClick:O,zoomOnPinch:N,userSelectionActive:$,noPanClassName:E,noWheelClassName:R,lib:Y,connectionInProgress:te});d.filter(ve),O?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function v(){d.on("zoom",null)}async function M(R,E,V){const $=eD(R),T=d==null?void 0:d.constrain()($,E,V);return T&&await k(T),new Promise(D=>D(T))}async function w(R,E){const V=eD(R);return await k(V,E),new Promise($=>$(V))}function b(R){if(p){const E=eD(R),V=p.property("__zoom");(V.k!==R.zoom||V.x!==R.x||V.y!==R.y)&&(d==null||d.transform(p,E,null,{sync:!0}))}}function C(){const R=p?iJ(p.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function _(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).scaleTo(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function S(R,E){return p?new Promise(V=>{d==null||d.interpolate((E==null?void 0:E.interpolate)==="linear"?H2:wP).scaleBy(tD(p,E==null?void 0:E.duration,E==null?void 0:E.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function L(R){d==null||d.scaleExtent(R)}function j(R){d==null||d.translateExtent(R)}function I(R){const E=!rr(R)||R<0?0:R;d==null||d.clickDistance(E)}return{update:x,destroy:v,setViewport:w,setViewportConstrained:M,getViewport:C,scaleTo:_,scaleBy:S,setScaleExtent:L,setTranslateExtent:j,syncViewport:b,setClickDistance:I}}var Ja;(function(e){e.Line="line",e.Handle="handle"})(Ja||(Ja={}));function rTe({width:e,prevWidth:t,height:n,prevHeight:o,affectsX:r,affectsY:i}){const a=e-t,s=n-o,c=[a>0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&r&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function YU(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),r=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:o,affectsY:r}}function pa(e,t){return Math.max(0,t-e)}function ya(e,t){return Math.max(0,e-t)}function qp(e,t,n){return Math.max(0,t-e,e-n)}function QU(e,t){return e?!t:t}function iTe(e,t,n,o,r,i,a,s){let{affectsX:c,affectsY:l}=t;const{isHorizontal:h,isVertical:d}=t,p=h&&d,{xSnapped:y,ySnapped:g}=n,{minWidth:k,maxWidth:x,minHeight:v,maxHeight:M}=o,{x:w,y:b,width:C,height:_,aspectRatio:S}=e;let L=Math.floor(h?y-e.pointerX:0),j=Math.floor(d?g-e.pointerY:0);const I=C+(c?-L:L),R=_+(l?-j:j),E=-i[0]*C,V=-i[1]*_;let $=qp(I,k,x),T=qp(R,v,M);if(a){let z=0,A=0;c&&L<0?z=pa(w+L+E,a[0][0]):!c&&L>0&&(z=ya(w+I+E,a[1][0])),l&&j<0?A=pa(b+j+V,a[0][1]):!l&&j>0&&(A=ya(b+R+V,a[1][1])),$=Math.max($,z),T=Math.max(T,A)}if(s){let z=0,A=0;c&&L>0?z=ya(w+L,s[0][0]):!c&&L<0&&(z=pa(w+I,s[1][0])),l&&j>0?A=ya(b+j,s[0][1]):!l&&j<0&&(A=pa(b+R,s[1][1])),$=Math.max($,z),T=Math.max(T,A)}if(r){if(h){const z=qp(I/S,v,M)*S;if($=Math.max($,z),a){let A=0;!c&&!l||c&&!l&&p?A=ya(b+V+I/S,a[1][1])*S:A=pa(b+V+(c?L:-L)/S,a[0][1])*S,$=Math.max($,A)}if(s){let A=0;!c&&!l||c&&!l&&p?A=pa(b+I/S,s[1][1])*S:A=ya(b+(c?L:-L)/S,s[0][1])*S,$=Math.max($,A)}}if(d){const z=qp(R*S,k,x)/S;if(T=Math.max(T,z),a){let A=0;!c&&!l||l&&!c&&p?A=ya(w+R*S+E,a[1][0])/S:A=pa(w+(l?j:-j)*S+E,a[0][0])/S,T=Math.max(T,A)}if(s){let A=0;!c&&!l||l&&!c&&p?A=pa(w+R*S,s[1][0])/S:A=ya(w+(l?j:-j)*S,s[0][0])/S,T=Math.max(T,A)}}}j=j+(j<0?T:-T),L=L+(L<0?$:-$),r&&(p?I>R*S?j=(QU(c,l)?-L:L)/S:L=(QU(c,l)?-j:j)*S:h?(j=L/S,l=c):(L=j*S,c=l));const D=c?w+L:w,F=l?b+j:b;return{width:C+(c?-L:L),height:_+(l?-j:j),x:i[0]*L*(c?-1:1)+D,y:i[1]*j*(l?-1:1)+F}}const PJ={width:0,height:0,x:0,y:0},aTe={...PJ,pointerX:0,pointerY:0,aspectRatio:1};function sTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function cTe(e,t,n){const o=t.position.x+e.position.x,r=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,s=n[0]*i,c=n[1]*a;return[[o-s,r-c],[o+i-s,r+a-c]]}function lTe({domNode:e,nodeId:t,getStoreItems:n,onChange:o,onEnd:r}){const i=fo(e);let a={controlDirection:YU("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:l,boundaries:h,keepAspectRatio:d,resizeDirection:p,onResizeStart:y,onResize:g,onResizeEnd:k,shouldResize:x}){let v={...PJ},M={...aTe};a={boundaries:h,resizeDirection:p,keepAspectRatio:d,controlDirection:YU(l)};let w,b=null,C=[],_,S,L,j=!1;const I=BQ().on("start",R=>{const{nodeLookup:E,transform:V,snapGrid:$,snapToGrid:T,nodeOrigin:D,paneDomNode:F}=n();if(w=E.get(t),!w)return;b=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:A}=O2(R.sourceEvent,{transform:V,snapGrid:$,snapToGrid:T,containerBounds:b});v={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},M={...v,pointerX:z,pointerY:A,aspectRatio:v.width/v.height},_=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(_=E.get(w.parentId),S=_&&w.extent==="parent"?sTe(_):void 0),C=[],L=void 0;for(const[N,W]of E)if(W.parentId===t&&(C.push({id:N,position:{...W.position},extent:W.extent}),W.extent==="parent"||W.expandParent)){const O=cTe(W,w,W.origin??D);L?L=[[Math.min(O[0][0],L[0][0]),Math.min(O[0][1],L[0][1])],[Math.max(O[1][0],L[1][0]),Math.max(O[1][1],L[1][1])]]:L=O}y==null||y(R,{...v})}).on("drag",R=>{const{transform:E,snapGrid:V,snapToGrid:$,nodeOrigin:T}=n(),D=O2(R.sourceEvent,{transform:E,snapGrid:V,snapToGrid:$,containerBounds:b}),F=[];if(!w)return;const{x:z,y:A,width:N,height:W}=v,O={},P=w.origin??T,{width:Y,height:Z,x:te,y:ae}=iTe(M,a.controlDirection,D,a.boundaries,a.keepAspectRatio,P,S,L),oe=Y!==N,re=Z!==W,se=te!==z&&oe,ve=ae!==A&&re;if(!se&&!ve&&!oe&&!re)return;if((se||ve||P[0]===1||P[1]===1)&&(O.x=se?te:v.x,O.y=ve?ae:v.y,v.x=O.x,v.y=O.y,C.length>0)){const Be=te-z,De=ae-A;for(const pe of C)pe.position={x:pe.position.x-Be+P[0]*(Y-N),y:pe.position.y-De+P[1]*(Z-W)},F.push(pe)}if((oe||re)&&(O.width=oe&&(!a.resizeDirection||a.resizeDirection==="horizontal")?Y:v.width,O.height=re&&(!a.resizeDirection||a.resizeDirection==="vertical")?Z:v.height,v.width=O.width,v.height=O.height),_&&w.expandParent){const Be=P[0]*(O.width??0);O.x&&O.x<Be&&(v.x=Be,M.x=M.x-(O.x-Be));const De=P[1]*(O.height??0);O.y&&O.y<De&&(v.y=De,M.y=M.y-(O.y-De))}const ke=rTe({width:v.width,prevWidth:N,height:v.height,prevHeight:W,affectsX:a.controlDirection.affectsX,affectsY:a.controlDirection.affectsY}),ge={...v,direction:ke};(x==null?void 0:x(R,ge))!==!1&&(j=!0,g==null||g(R,ge),o(O,F))}).on("end",R=>{j&&(k==null||k(R,{...v}),r==null||r({...v}),j=!1)});i.call(I)}function c(){i.on(".drag",null)}return{update:s,destroy:c}}var zJ={exports:{}},RJ={},TJ={exports:{}},DJ={};/**
8447
8447
  * @license React
8448
8448
  * use-sync-external-store-shim.production.js
8449
8449
  *
@@ -8466,7 +8466,7 @@ Error generating stack: `+i.message+`
8466
8466
  +`).split(`
8467
8467
  `)),h=l.reduce((d,p)=>d.concat(...p),[]);return[l,h]}return[[],[]]},[e]);return m.useEffect(()=>{const c=(t==null?void 0:t.target)??iW,l=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const h=y=>{var x,v;if(r.current=y.ctrlKey||y.metaKey||y.shiftKey||y.altKey,(!r.current||r.current&&!l)&&vJ(y))return!1;const k=sW(y.code,s);if(i.current.add(y[k]),aW(a,i.current,!1)){const M=((v=(x=y.composedPath)==null?void 0:x.call(y))==null?void 0:v[0])||y.target,w=(M==null?void 0:M.nodeName)==="BUTTON"||(M==null?void 0:M.nodeName)==="A";t.preventDefault!==!1&&(r.current||!w)&&y.preventDefault(),o(!0)}},d=y=>{const g=sW(y.code,s);aW(a,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(y[g]),y.key==="Meta"&&i.current.clear(),r.current=!1},p=()=>{i.current.clear(),o(!1)};return c==null||c.addEventListener("keydown",h),c==null||c.addEventListener("keyup",d),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{c==null||c.removeEventListener("keydown",h),c==null||c.removeEventListener("keyup",d),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,o]),n}function aW(e,t,n){return e.filter(o=>n||o.length===t.size).some(o=>o.every(r=>t.has(r)))}function sW(e,t){return t.includes(e)?"code":"key"}const eDe=()=>{const e=St();return m.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[o,r,i],panZoom:a}=e.getState();return a?(await a.setViewport({x:t.x??o,y:t.y??r,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,o]=e.getState().transform;return{x:t,y:n,zoom:o}},setCenter:async(t,n,o)=>e.getState().setCenter(t,n,o),fitBounds:async(t,n)=>{const{width:o,height:r,minZoom:i,maxZoom:a,panZoom:s}=e.getState(),c=uq(t,o,r,i,a,(n==null?void 0:n.padding)??.1);return s?(await s.setViewport(c,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:o,snapGrid:r,snapToGrid:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:c}=a.getBoundingClientRect(),l={x:t.x-s,y:t.y-c},h=n.snapGrid??r,d=n.snapToGrid??i;return Vf(l,o,d,h)},flowToScreenPosition:t=>{const{transform:n,domNode:o}=e.getState();if(!o)return t;const{x:r,y:i}=o.getBoundingClientRect(),a=yz(t,n);return{x:a.x+r,y:a.y+i}}}),[])};function BJ(e,t){const n=[],o=new Map,r=[];for(const i of e)if(i.type==="add"){r.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const a=o.get(i.id);a?a.push(i):o.set(i.id,[i])}for(const i of t){const a=o.get(i.id);if(!a){n.push(i);continue}if(a[0].type==="remove")continue;if(a[0].type==="replace"){n.push({...a[0].item});continue}const s={...i};for(const c of a)tDe(c,s);n.push(s)}return r.length&&r.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function tDe(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function UJ(e,t){return BJ(e,t)}function WJ(e,t){return BJ(e,t)}function Ad(e,t){return{id:e,type:"select",selected:t}}function a0(e,t=new Set,n=!1){const o=[];for(const[r,i]of e){const a=t.has(r);!(i.selected===void 0&&!a)&&i.selected!==a&&(n&&(i.selected=a),o.push(Ad(i.id,a)))}return o}function cW({items:e=[],lookup:t}){var r;const n=[],o=new Map(e.map(i=>[i.id,i]));for(const[i,a]of e.entries()){const s=t.get(a.id),c=((r=s==null?void 0:s.internals)==null?void 0:r.userNode)??s;c!==void 0&&c!==a&&n.push({id:a.id,item:a,type:"replace"}),c===void 0&&n.push({item:a,type:"add",index:i})}for(const[i]of t)o.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function lW(e){return{id:e.id,type:"remove"}}const dW=e=>uRe(e),nDe=e=>uJ(e);function GJ(e){return m.forwardRef(e)}function uW(e){const[t,n]=m.useState(BigInt(0)),[o]=m.useState(()=>oDe(()=>n(r=>r+BigInt(1))));return aO(()=>{const r=o.get();r.length&&(e(r),o.reset())},[t]),o}function oDe(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const KJ=m.createContext(null);function rDe({children:e}){const t=St(),n=m.useCallback(s=>{const{nodes:c=[],setNodes:l,hasDefaultNodes:h,onNodesChange:d,nodeLookup:p,fitViewQueued:y,onNodesChangeMiddlewareMap:g}=t.getState();let k=c;for(const v of s)k=typeof v=="function"?v(k):v;let x=cW({items:k,lookup:p});for(const v of g.values())x=v(x);h&&l(k),x.length>0?d==null||d(x):y&&window.requestAnimationFrame(()=>{const{fitViewQueued:v,nodes:M,setNodes:w}=t.getState();v&&w(M)})},[]),o=uW(n),r=m.useCallback(s=>{const{edges:c=[],setEdges:l,hasDefaultEdges:h,onEdgesChange:d,edgeLookup:p}=t.getState();let y=c;for(const g of s)y=typeof g=="function"?g(y):g;h?l(y):d&&d(cW({items:y,lookup:p}))},[]),i=uW(r),a=m.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return f.jsx(KJ.Provider,{value:a,children:e})}function iDe(){const e=m.useContext(KJ);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const aDe=e=>!!e.panZoom;function _R(){const e=eDe(),t=St(),n=iDe(),o=je(aDe),r=m.useMemo(()=>{const i=d=>t.getState().nodeLookup.get(d),a=d=>{n.nodeQueue.push(d)},s=d=>{n.edgeQueue.push(d)},c=d=>{var v,M;const{nodeLookup:p,nodeOrigin:y}=t.getState(),g=dW(d)?d:p.get(d.id),k=g.parentId?gJ(g.position,g.measured,g.parentId,p,y):g.position,x={...g,position:k,width:((v=g.measured)==null?void 0:v.width)??g.width,height:((M=g.measured)==null?void 0:M.height)??g.height};return V0(x)},l=(d,p,y={replace:!1})=>{a(g=>g.map(k=>{if(k.id===d){const x=typeof p=="function"?p(k):p;return y.replace&&dW(x)?x:{...k,...x}}return k}))},h=(d,p,y={replace:!1})=>{s(g=>g.map(k=>{if(k.id===d){const x=typeof p=="function"?p(k):p;return y.replace&&nDe(x)?x:{...k,...x}}return k}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>{var p;return(p=i(d))==null?void 0:p.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:d=[]}=t.getState();return d.map(p=>({...p}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:a,setEdges:s,addNodes:d=>{const p=Array.isArray(d)?d:[d];n.nodeQueue.push(y=>[...y,...p])},addEdges:d=>{const p=Array.isArray(d)?d:[d];n.edgeQueue.push(y=>[...y,...p])},toObject:()=>{const{nodes:d=[],edges:p=[],transform:y}=t.getState(),[g,k,x]=y;return{nodes:d.map(v=>({...v})),edges:p.map(v=>({...v})),viewport:{x:g,y:k,zoom:x}}},deleteElements:async({nodes:d=[],edges:p=[]})=>{const{nodes:y,edges:g,onNodesDelete:k,onEdgesDelete:x,triggerNodeChanges:v,triggerEdgeChanges:M,onDelete:w,onBeforeDelete:b}=t.getState(),{nodes:C,edges:_}=await mRe({nodesToRemove:d,edgesToRemove:p,nodes:y,edges:g,onBeforeDelete:b}),S=_.length>0,L=C.length>0;if(S){const j=_.map(lW);x==null||x(_),M(j)}if(L){const j=C.map(lW);k==null||k(C),v(j)}return(L||S)&&(w==null||w({nodes:C,edges:_})),{deletedNodes:C,deletedEdges:_}},getIntersectingNodes:(d,p=!0,y)=>{const g=OU(d),k=g?d:c(d),x=y!==void 0;return k?(y||t.getState().nodes).filter(v=>{const M=t.getState().nodeLookup.get(v.id);if(M&&!g&&(v.id===d.id||!M.internals.positionAbsolute))return!1;const w=V0(x?v:M),b=gf(w,k);return p&&b>0||b>=w.width*w.height||b>=k.width*k.height}):[]},isNodeIntersecting:(d,p,y=!0)=>{const k=OU(d)?d:c(d);if(!k)return!1;const x=gf(k,p);return y&&x>0||x>=p.width*p.height||x>=k.width*k.height},updateNode:l,updateNodeData:(d,p,y={replace:!1})=>{l(d,g=>{const k=typeof p=="function"?p(g):p;return y.replace?{...g,data:k}:{...g,data:{...g.data,...k}}},y)},updateEdge:h,updateEdgeData:(d,p,y={replace:!1})=>{h(d,g=>{const k=typeof p=="function"?p(g):p;return y.replace?{...g,data:k}:{...g,data:{...g.data,...k}}},y)},getNodesBounds:d=>{const{nodeLookup:p,nodeOrigin:y}=t.getState();return hRe(d,{nodeLookup:p,nodeOrigin:y})},getHandleConnections:({type:d,id:p,nodeId:y})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${y}-${d}${p?`-${p}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:d,handleId:p,nodeId:y})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${y}${d?p?`-${d}-${p}`:`-${d}`:""}`))==null?void 0:g.values())??[])},fitView:async d=>{const p=t.getState().fitViewResolver??xRe();return t.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:p}),n.nodeQueue.push(y=>[...y]),p.promise}}},[]);return m.useMemo(()=>({...r,...e,viewportInitialized:o}),[o])}const hW=e=>e.selected,sDe=typeof window<"u"?window:void 0;function cDe({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=St(),{deleteElements:o}=_R(),r=xf(e,{actInsideInputWithModifier:!1}),i=xf(t,{target:sDe});m.useEffect(()=>{if(r){const{edges:a,nodes:s}=n.getState();o({nodes:s.filter(hW),edges:a.filter(hW)}),n.setState({nodesSelectionActive:!1})}},[r]),m.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function lDe(e){const t=St();m.useEffect(()=>{const n=()=>{var r,i,a,s;if(!e.current||!(((i=(r=e.current).checkVisibility)==null?void 0:i.call(r))??!0))return!1;const o=hq(e.current);(o.height===0||o.width===0)&&((s=(a=t.getState()).onError)==null||s.call(a,"004",ti.error004())),t.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const CR={position:"absolute",width:"100%",height:"100%",top:0,left:0},dDe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function uDe({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:r=.5,panOnScrollMode:i=Vd.Free,zoomOnDoubleClick:a=!0,panOnDrag:s=!0,defaultViewport:c,translateExtent:l,minZoom:h,maxZoom:d,zoomActivationKeyCode:p,preventScrolling:y=!0,children:g,noWheelClassName:k,noPanClassName:x,onViewportChange:v,isControlledViewport:M,paneClickDistance:w,selectionOnDrag:b}){const C=St(),_=m.useRef(null),{userSelectionActive:S,lib:L,connectionInProgress:j}=je(dDe,jt),I=xf(p),R=m.useRef();lDe(_);const E=m.useCallback(V=>{v==null||v({x:V[0],y:V[1],zoom:V[2]}),M||C.setState({transform:V})},[v,M]);return m.useEffect(()=>{if(_.current){R.current=oTe({domNode:_.current,minZoom:h,maxZoom:d,translateExtent:l,viewport:c,onDraggingChange:D=>C.setState(F=>F.paneDragging===D?F:{paneDragging:D}),onPanZoomStart:(D,F)=>{const{onViewportChangeStart:z,onMoveStart:A}=C.getState();A==null||A(D,F),z==null||z(F)},onPanZoom:(D,F)=>{const{onViewportChange:z,onMove:A}=C.getState();A==null||A(D,F),z==null||z(F)},onPanZoomEnd:(D,F)=>{const{onViewportChangeEnd:z,onMoveEnd:A}=C.getState();A==null||A(D,F),z==null||z(F)}});const{x:V,y:$,zoom:T}=R.current.getViewport();return C.setState({panZoom:R.current,transform:[V,$,T],domNode:_.current.closest(".react-flow")}),()=>{var D;(D=R.current)==null||D.destroy()}}},[]),m.useEffect(()=>{var V;(V=R.current)==null||V.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:r,panOnScrollMode:i,zoomOnDoubleClick:a,panOnDrag:s,zoomActivationKeyPressed:I,preventScrolling:y,noPanClassName:x,userSelectionActive:S,noWheelClassName:k,lib:L,onTransformChange:E,connectionInProgress:j,selectionOnDrag:b,paneClickDistance:w})},[e,t,n,o,r,i,a,s,I,y,x,S,k,L,E,j,b,w]),f.jsx("div",{className:"react-flow__renderer",ref:_,style:CR,children:g})}const hDe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function fDe(){const{userSelectionActive:e,userSelectionRect:t}=je(hDe,jt);return e&&t?f.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const oD=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},pDe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function yDe({isSelecting:e,selectionKeyPressed:t,selectionMode:n=F0.Full,panOnDrag:o,paneClickDistance:r,selectionOnDrag:i,onSelectionStart:a,onSelectionEnd:s,onPaneClick:c,onPaneContextMenu:l,onPaneScroll:h,onPaneMouseEnter:d,onPaneMouseMove:p,onPaneMouseLeave:y,children:g}){const k=St(),{userSelectionActive:x,elementsSelectable:v,dragging:M,connectionInProgress:w}=je(pDe,jt),b=v&&(e||x),C=m.useRef(null),_=m.useRef(),S=m.useRef(new Set),L=m.useRef(new Set),j=m.useRef(!1),I=z=>{if(j.current||w){j.current=!1;return}c==null||c(z),k.getState().resetSelectedElements(),k.setState({nodesSelectionActive:!1})},R=z=>{if(Array.isArray(o)&&(o!=null&&o.includes(2))){z.preventDefault();return}l==null||l(z)},E=h?z=>h(z):void 0,V=z=>{j.current&&(z.stopPropagation(),j.current=!1)},$=z=>{var Z,te;const{domNode:A}=k.getState();if(_.current=A==null?void 0:A.getBoundingClientRect(),!_.current)return;const N=z.target===C.current;if(!N&&!!z.target.closest(".nokey")||!e||!(i&&N||t)||z.button!==0||!z.isPrimary)return;(te=(Z=z.target)==null?void 0:Z.setPointerCapture)==null||te.call(Z,z.pointerId),j.current=!1;const{x:P,y:Y}=ir(z.nativeEvent,_.current);k.setState({userSelectionRect:{width:0,height:0,startX:P,startY:Y,x:P,y:Y}}),N||(z.stopPropagation(),z.preventDefault())},T=z=>{const{userSelectionRect:A,transform:N,nodeLookup:W,edgeLookup:O,connectionLookup:P,triggerNodeChanges:Y,triggerEdgeChanges:Z,defaultEdgeOptions:te,resetSelectedElements:ae}=k.getState();if(!_.current||!A)return;const{x:oe,y:re}=ir(z.nativeEvent,_.current),{startX:se,startY:ve}=A;if(!j.current){const De=t?0:r;if(Math.hypot(oe-se,re-ve)<=De)return;ae(),a==null||a(z)}j.current=!0;const ke={startX:se,startY:ve,x:oe<se?oe:se,y:re<ve?re:ve,width:Math.abs(oe-se),height:Math.abs(re-ve)},ge=S.current,Pe=L.current;S.current=new Set(dq(W,ke,N,n===F0.Partial,!0).map(De=>De.id)),L.current=new Set;const Be=(te==null?void 0:te.selectable)??!0;for(const De of S.current){const pe=P.get(De);if(pe)for(const{edgeId:me}of pe.values()){const Ie=O.get(me);Ie&&(Ie.selectable??Be)&&L.current.add(me)}}if(!FU(ge,S.current)){const De=a0(W,S.current,!0);Y(De)}if(!FU(Pe,L.current)){const De=a0(O,L.current);Z(De)}k.setState({userSelectionRect:ke,userSelectionActive:!0,nodesSelectionActive:!1})},D=z=>{var A,N;z.button===0&&((N=(A=z.target)==null?void 0:A.releasePointerCapture)==null||N.call(A,z.pointerId),!x&&z.target===C.current&&k.getState().userSelectionRect&&(I==null||I(z)),k.setState({userSelectionActive:!1,userSelectionRect:null}),j.current&&(s==null||s(z),k.setState({nodesSelectionActive:S.current.size>0})))},F=o===!0||Array.isArray(o)&&o.includes(0);return f.jsxs("div",{className:Yt(["react-flow__pane",{draggable:F,dragging:M,selection:e}]),onClick:b?void 0:oD(I,C),onContextMenu:oD(R,C),onWheel:oD(E,C),onPointerEnter:b?void 0:d,onPointerMove:b?T:p,onPointerUp:b?D:void 0,onPointerDownCapture:b?$:void 0,onClickCapture:b?V:void 0,onPointerLeave:y,ref:C,style:CR,children:[g,f.jsx(fDe,{})]})}function sO({id:e,store:t,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:r,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:s,onError:c}=t.getState(),l=s.get(e);if(!l){c==null||c("012",ti.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&a)&&(i({nodes:[l],edges:[]}),requestAnimationFrame(()=>{var h;return(h=o==null?void 0:o.current)==null?void 0:h.blur()})):r([e])}function XJ({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:o,nodeId:r,isSelectable:i,nodeClickDistance:a}){const s=St(),[c,l]=m.useState(!1),h=m.useRef();return m.useEffect(()=>{h.current=VRe({getStoreItems:()=>s.getState(),onNodeMouseDown:d=>{sO({id:d,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}})},[]),m.useEffect(()=>{if(!(t||!e.current||!h.current))return h.current.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:r,nodeClickDistance:a}),()=>{var d;(d=h.current)==null||d.destroy()}},[n,o,t,i,e,r,a]),c}const mDe=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function ZJ(){const e=St();return m.useCallback(n=>{const{nodeExtent:o,snapToGrid:r,snapGrid:i,nodesDraggable:a,onError:s,updateNodePositions:c,nodeLookup:l,nodeOrigin:h}=e.getState(),d=new Map,p=mDe(a),y=r?i[0]:5,g=r?i[1]:5,k=n.direction.x*y*n.factor,x=n.direction.y*g*n.factor;for(const[,v]of l){if(!p(v))continue;let M={x:v.internals.positionAbsolute.x+k,y:v.internals.positionAbsolute.y+x};r&&(M=qf(M,i));const{position:w,positionAbsolute:b}=hJ({nodeId:v.id,nextPosition:M,nodeLookup:l,nodeExtent:o,nodeOrigin:h,onError:s});v.position=w,v.internals.positionAbsolute=b,d.set(v.id,v)}c(d)},[])}const kq=m.createContext(null),gDe=kq.Provider;kq.Consumer;const YJ=()=>m.useContext(kq),kDe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),vDe=(e,t,n)=>o=>{const{connectionClickStartHandle:r,connectionMode:i,connection:a}=o,{fromHandle:s,toHandle:c,isValid:l}=a,h=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===t&&(c==null?void 0:c.type)===n;return{connectingFrom:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===n,connectingTo:h,clickConnecting:(r==null?void 0:r.nodeId)===e&&(r==null?void 0:r.id)===t&&(r==null?void 0:r.type)===n,isPossibleEndHandle:i===O0.Strict?(s==null?void 0:s.type)!==n:e!==(s==null?void 0:s.nodeId)||t!==(s==null?void 0:s.id),connectionInProcess:!!s,clickConnectionInProcess:!!r,valid:h&&l}};function xDe({type:e="source",position:t=ue.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:r=!0,isConnectableEnd:i=!0,id:a,onConnect:s,children:c,className:l,onMouseDown:h,onTouchStart:d,...p},y){var T,D;const g=a||null,k=e==="target",x=St(),v=YJ(),{connectOnClick:M,noPanClassName:w,rfId:b}=je(kDe,jt),{connectingFrom:C,connectingTo:_,clickConnecting:S,isPossibleEndHandle:L,connectionInProcess:j,clickConnectionInProcess:I,valid:R}=je(vDe(v,g,e),jt);v||(D=(T=x.getState()).onError)==null||D.call(T,"010",ti.error010());const E=F=>{const{defaultEdgeOptions:z,onConnect:A,hasDefaultEdges:N}=x.getState(),W={...z,...F};if(N){const{edges:O,setEdges:P}=x.getState();P(LRe(W,O))}A==null||A(W),s==null||s(W)},V=F=>{if(!v)return;const z=xJ(F.nativeEvent);if(r&&(z&&F.button===0||!z)){const A=x.getState();iO.onPointerDown(F.nativeEvent,{handleDomNode:F.currentTarget,autoPanOnConnect:A.autoPanOnConnect,connectionMode:A.connectionMode,connectionRadius:A.connectionRadius,domNode:A.domNode,nodeLookup:A.nodeLookup,lib:A.lib,isTarget:k,handleId:g,nodeId:v,flowId:A.rfId,panBy:A.panBy,cancelConnection:A.cancelConnection,onConnectStart:A.onConnectStart,onConnectEnd:(...N)=>{var W,O;return(O=(W=x.getState()).onConnectEnd)==null?void 0:O.call(W,...N)},updateConnection:A.updateConnection,onConnect:E,isValidConnection:n||((...N)=>{var W,O;return((O=(W=x.getState()).isValidConnection)==null?void 0:O.call(W,...N))??!0}),getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,autoPanSpeed:A.autoPanSpeed,dragThreshold:A.connectionDragThreshold})}z?h==null||h(F):d==null||d(F)},$=F=>{const{onClickConnectStart:z,onClickConnectEnd:A,connectionClickStartHandle:N,connectionMode:W,isValidConnection:O,lib:P,rfId:Y,nodeLookup:Z,connection:te}=x.getState();if(!v||!N&&!r)return;if(!N){z==null||z(F.nativeEvent,{nodeId:v,handleId:g,handleType:e}),x.setState({connectionClickStartHandle:{nodeId:v,type:e,id:g}});return}const ae=kJ(F.target),oe=n||O,{connection:re,isValid:se}=iO.isValid(F.nativeEvent,{handle:{nodeId:v,id:g,type:e},connectionMode:W,fromNodeId:N.nodeId,fromHandleId:N.id||null,fromType:N.type,isValidConnection:oe,flowId:Y,doc:ae,lib:P,nodeLookup:Z});se&&re&&E(re);const ve=structuredClone(te);delete ve.inProgress,ve.toPosition=ve.toHandle?ve.toHandle.position:null,A==null||A(F,ve),x.setState({connectionClickStartHandle:null})};return f.jsx("div",{"data-handleid":g,"data-nodeid":v,"data-handlepos":t,"data-id":`${b}-${v}-${g}-${e}`,className:Yt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",w,l,{source:!k,target:k,connectable:o,connectablestart:r,connectableend:i,clickconnecting:S,connectingfrom:C,connectingto:_,valid:R,connectionindicator:o&&(!j||L)&&(j||I?i:r)}]),onMouseDown:V,onTouchStart:V,onClick:M?$:void 0,ref:y,...p,children:c})}const lt=m.memo(GJ(xDe));function wDe({data:e,isConnectable:t,sourcePosition:n=ue.Bottom}){return f.jsxs(f.Fragment,{children:[e==null?void 0:e.label,f.jsx(lt,{type:"source",position:n,isConnectable:t})]})}function MDe({data:e,isConnectable:t,targetPosition:n=ue.Top,sourcePosition:o=ue.Bottom}){return f.jsxs(f.Fragment,{children:[f.jsx(lt,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,f.jsx(lt,{type:"source",position:o,isConnectable:t})]})}function bDe(){return null}function _De({data:e,isConnectable:t,targetPosition:n=ue.Top}){return f.jsxs(f.Fragment,{children:[f.jsx(lt,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const mz={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},fW={input:wDe,default:MDe,output:_De,group:bDe};function CDe(e){var t,n,o,r;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((o=e.style)==null?void 0:o.width),height:e.height??((r=e.style)==null?void 0:r.height)}}const SDe=e=>{const{width:t,height:n,x:o,y:r}=Ff(e.nodeLookup,{filter:i=>!!i.selected});return{width:rr(t)?t:null,height:rr(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${r}px)`}};function LDe({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const o=St(),{width:r,height:i,transformString:a,userSelectionActive:s}=je(SDe,jt),c=ZJ(),l=m.useRef(null);m.useEffect(()=>{var y;n||(y=l.current)==null||y.focus({preventScroll:!0})},[n]);const h=!s&&r!==null&&i!==null;if(XJ({nodeRef:l,disabled:!h}),!h)return null;const d=e?y=>{const g=o.getState().nodes.filter(k=>k.selected);e(y,g)}:void 0,p=y=>{Object.prototype.hasOwnProperty.call(mz,y.key)&&(y.preventDefault(),c({direction:mz[y.key],factor:y.shiftKey?4:1}))};return f.jsx("div",{className:Yt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:a},children:f.jsx("div",{ref:l,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:r,height:i}})})}const pW=typeof window<"u"?window:void 0,NDe=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function QJ({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:a,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:l,selectionOnDrag:h,selectionMode:d,onSelectionStart:p,onSelectionEnd:y,multiSelectionKeyCode:g,panActivationKeyCode:k,zoomActivationKeyCode:x,elementsSelectable:v,zoomOnScroll:M,zoomOnPinch:w,panOnScroll:b,panOnScrollSpeed:C,panOnScrollMode:_,zoomOnDoubleClick:S,panOnDrag:L,defaultViewport:j,translateExtent:I,minZoom:R,maxZoom:E,preventScrolling:V,onSelectionContextMenu:$,noWheelClassName:T,noPanClassName:D,disableKeyboardA11y:F,onViewportChange:z,isControlledViewport:A}){const{nodesSelectionActive:N,userSelectionActive:W}=je(NDe,jt),O=xf(l,{target:pW}),P=xf(k,{target:pW}),Y=P||L,Z=P||b,te=h&&Y!==!0,ae=O||W||te;return cDe({deleteKeyCode:c,multiSelectionKeyCode:g}),f.jsx(uDe,{onPaneContextMenu:i,elementsSelectable:v,zoomOnScroll:M,zoomOnPinch:w,panOnScroll:Z,panOnScrollSpeed:C,panOnScrollMode:_,zoomOnDoubleClick:S,panOnDrag:!O&&Y,defaultViewport:j,translateExtent:I,minZoom:R,maxZoom:E,zoomActivationKeyCode:x,preventScrolling:V,noWheelClassName:T,noPanClassName:D,onViewportChange:z,isControlledViewport:A,paneClickDistance:s,selectionOnDrag:te,children:f.jsxs(yDe,{onSelectionStart:p,onSelectionEnd:y,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:r,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:Y,isSelecting:!!ae,selectionMode:d,selectionKeyPressed:O,paneClickDistance:s,selectionOnDrag:te,children:[e,N&&f.jsx(LDe,{onSelectionContextMenu:$,noPanClassName:D,disableKeyboardA11y:F})]})})}QJ.displayName="FlowRenderer";const IDe=m.memo(QJ),ADe=e=>t=>e?dq(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function EDe(e){return je(m.useCallback(ADe(e),[e]),jt)}const jDe=e=>e.updateNodeInternals;function $De(){const e=je(jDe),[t]=m.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(r=>{const i=r.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:r.target,force:!0})}),e(o)}));return m.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function PDe({node:e,nodeType:t,hasDimensions:n,resizeObserver:o}){const r=St(),i=m.useRef(null),a=m.useRef(null),s=m.useRef(e.sourcePosition),c=m.useRef(e.targetPosition),l=m.useRef(t),h=n&&!!e.internals.handleBounds;return m.useEffect(()=>{i.current&&!e.hidden&&(!h||a.current!==i.current)&&(a.current&&(o==null||o.unobserve(a.current)),o==null||o.observe(i.current),a.current=i.current)},[h,e.hidden]),m.useEffect(()=>()=>{a.current&&(o==null||o.unobserve(a.current),a.current=null)},[]),m.useEffect(()=>{if(i.current){const d=l.current!==t,p=s.current!==e.sourcePosition,y=c.current!==e.targetPosition;(d||p||y)&&(l.current=t,s.current=e.sourcePosition,c.current=e.targetPosition,r.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function zDe({id:e,onClick:t,onMouseEnter:n,onMouseMove:o,onMouseLeave:r,onContextMenu:i,onDoubleClick:a,nodesDraggable:s,elementsSelectable:c,nodesConnectable:l,nodesFocusable:h,resizeObserver:d,noDragClassName:p,noPanClassName:y,disableKeyboardA11y:g,rfId:k,nodeTypes:x,nodeClickDistance:v,onError:M}){const{node:w,internals:b,isParent:C}=je(oe=>{const re=oe.nodeLookup.get(e),se=oe.parentLookup.has(e);return{node:re,internals:re.internals,isParent:se}},jt);let _=w.type||"default",S=(x==null?void 0:x[_])||fW[_];S===void 0&&(M==null||M("003",ti.error003(_)),_="default",S=(x==null?void 0:x.default)||fW.default);const L=!!(w.draggable||s&&typeof w.draggable>"u"),j=!!(w.selectable||c&&typeof w.selectable>"u"),I=!!(w.connectable||l&&typeof w.connectable>"u"),R=!!(w.focusable||h&&typeof w.focusable>"u"),E=St(),V=mJ(w),$=PDe({node:w,nodeType:_,hasDimensions:V,resizeObserver:d}),T=XJ({nodeRef:$,disabled:w.hidden||!L,noDragClassName:p,handleSelector:w.dragHandle,nodeId:e,isSelectable:j,nodeClickDistance:v}),D=ZJ();if(w.hidden)return null;const F=Xi(w),z=CDe(w),A=j||L||t||n||o||r,N=n?oe=>n(oe,{...b.userNode}):void 0,W=o?oe=>o(oe,{...b.userNode}):void 0,O=r?oe=>r(oe,{...b.userNode}):void 0,P=i?oe=>i(oe,{...b.userNode}):void 0,Y=a?oe=>a(oe,{...b.userNode}):void 0,Z=oe=>{const{selectNodesOnDrag:re,nodeDragThreshold:se}=E.getState();j&&(!re||!L||se>0)&&sO({id:e,store:E,nodeRef:$}),t&&t(oe,{...b.userNode})},te=oe=>{if(!(vJ(oe.nativeEvent)||g)){if(sJ.includes(oe.key)&&j){const re=oe.key==="Escape";sO({id:e,store:E,unselect:re,nodeRef:$})}else if(L&&w.selected&&Object.prototype.hasOwnProperty.call(mz,oe.key)){oe.preventDefault();const{ariaLabelConfig:re}=E.getState();E.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:oe.key.replace("Arrow","").toLowerCase(),x:~~b.positionAbsolute.x,y:~~b.positionAbsolute.y})}),D({direction:mz[oe.key],factor:oe.shiftKey?4:1})}}},ae=()=>{var Pe;if(g||!((Pe=$.current)!=null&&Pe.matches(":focus-visible")))return;const{transform:oe,width:re,height:se,autoPanOnNodeFocus:ve,setCenter:ke}=E.getState();if(!ve)return;dq(new Map([[e,w]]),{x:0,y:0,width:re,height:se},oe,!0).length>0||ke(w.position.x+F.width/2,w.position.y+F.height/2,{zoom:oe[2]})};return f.jsx("div",{className:Yt(["react-flow__node",`react-flow__node-${_}`,{[y]:L},w.className,{selected:w.selected,selectable:j,parent:C,draggable:L,dragging:T}]),ref:$,style:{zIndex:b.z,transform:`translate(${b.positionAbsolute.x}px,${b.positionAbsolute.y}px)`,pointerEvents:A?"all":"none",visibility:V?"visible":"hidden",...w.style,...z},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:N,onMouseMove:W,onMouseLeave:O,onContextMenu:P,onClick:Z,onDoubleClick:Y,onKeyDown:R?te:void 0,tabIndex:R?0:void 0,onFocus:R?ae:void 0,role:w.ariaRole??(R?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${FJ}-${k}`,"aria-label":w.ariaLabel,...w.domAttributes,children:f.jsx(gDe,{value:e,children:f.jsx(S,{id:e,data:w.data,type:_,positionAbsoluteX:b.positionAbsolute.x,positionAbsoluteY:b.positionAbsolute.y,selected:w.selected??!1,selectable:j,draggable:L,deletable:w.deletable??!0,isConnectable:I,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:T,dragHandle:w.dragHandle,zIndex:b.z,parentId:w.parentId,...F})})})}var RDe=m.memo(zDe);const TDe=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function JJ(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:o,elementsSelectable:r,onError:i}=je(TDe,jt),a=EDe(e.onlyRenderVisibleElements),s=$De();return f.jsx("div",{className:"react-flow__nodes",style:CR,children:a.map(c=>f.jsx(RDe,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:t,nodesConnectable:n,nodesFocusable:o,elementsSelectable:r,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}JJ.displayName="NodeRenderer";const DDe=m.memo(JJ);function HDe(e){return je(m.useCallback(n=>{if(!e)return n.edges.map(r=>r.id);const o=[];if(n.width&&n.height)for(const r of n.edges){const i=n.nodeLookup.get(r.source),a=n.nodeLookup.get(r.target);i&&a&&_Re({sourceNode:i,targetNode:a,width:n.width,height:n.height,transform:n.transform})&&o.push(r.id)}return o},[e]),jt)}const ODe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return f.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},FDe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return f.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},yW={[mf.Arrow]:ODe,[mf.ArrowClosed]:FDe};function qDe(e){const t=St();return m.useMemo(()=>{var r,i;return Object.prototype.hasOwnProperty.call(yW,e)?yW[e]:((i=(r=t.getState()).onError)==null||i.call(r,"009",ti.error009(e)),null)},[e])}const VDe=({id:e,type:t,color:n,width:o=12.5,height:r=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:s="auto-start-reverse"})=>{const c=qDe(t);return c?f.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${r}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:f.jsx(c,{color:n,strokeWidth:a})}):null},eee=({defaultColor:e,rfId:t})=>{const n=je(i=>i.edges),o=je(i=>i.defaultEdgeOptions),r=m.useMemo(()=>jRe(n,{id:t,defaultColor:e,defaultMarkerStart:o==null?void 0:o.markerStart,defaultMarkerEnd:o==null?void 0:o.markerEnd}),[n,o,t,e]);return r.length?f.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:f.jsx("defs",{children:r.map(i=>f.jsx(VDe,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};eee.displayName="MarkerDefinitions";var BDe=m.memo(eee);function tee({x:e,y:t,label:n,labelStyle:o,labelShowBg:r=!0,labelBgStyle:i,labelBgPadding:a=[2,4],labelBgBorderRadius:s=2,children:c,className:l,...h}){const[d,p]=m.useState({x:1,y:0,width:0,height:0}),y=Yt(["react-flow__edge-textwrapper",l]),g=m.useRef(null);return m.useEffect(()=>{if(g.current){const k=g.current.getBBox();p({x:k.x,y:k.y,width:k.width,height:k.height})}},[n]),n?f.jsxs("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:y,visibility:d.width?"visible":"hidden",...h,children:[r&&f.jsx("rect",{width:d.width+2*a[0],x:-a[0],y:-a[1],height:d.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),f.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:g,style:o,children:n}),c]}):null}tee.displayName="EdgeText";const UDe=m.memo(tee);function Bf({path:e,labelX:t,labelY:n,label:o,labelStyle:r,labelShowBg:i,labelBgStyle:a,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:l=20,...h}){return f.jsxs(f.Fragment,{children:[f.jsx("path",{...h,d:e,fill:"none",className:Yt(["react-flow__edge-path",h.className])}),l?f.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:l,className:"react-flow__edge-interaction"}):null,o&&rr(t)&&rr(n)?f.jsx(UDe,{x:t,y:n,label:o,labelStyle:r,labelShowBg:i,labelBgStyle:a,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function mW({pos:e,x1:t,y1:n,x2:o,y2:r}){return e===ue.Left||e===ue.Right?[.5*(t+o),n]:[t,.5*(n+r)]}function nee({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:i=ue.Top}){const[a,s]=mW({pos:n,x1:e,y1:t,x2:o,y2:r}),[c,l]=mW({pos:i,x1:o,y1:r,x2:e,y2:t}),[h,d,p,y]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:a,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${e},${t} C${a},${s} ${c},${l} ${o},${r}`,h,d,p,y]}function oee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:i,sourcePosition:a,targetPosition:s,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:v})=>{const[M,w,b]=nee({sourceX:n,sourceY:o,sourcePosition:a,targetX:r,targetY:i,targetPosition:s}),C=e.isInternal?void 0:t;return f.jsx(Bf,{id:C,path:M,labelX:w,labelY:b,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:v})})}const WDe=oee({isInternal:!1}),ree=oee({isInternal:!0});WDe.displayName="SimpleBezierEdge";ree.displayName="SimpleBezierEdgeInternal";function iee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:i,label:a,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,sourcePosition:y=ue.Bottom,targetPosition:g=ue.Top,markerEnd:k,markerStart:x,pathOptions:v,interactionWidth:M})=>{const[w,b,C]=vf({sourceX:n,sourceY:o,sourcePosition:y,targetX:r,targetY:i,targetPosition:g,borderRadius:v==null?void 0:v.borderRadius,offset:v==null?void 0:v.offset,stepPosition:v==null?void 0:v.stepPosition}),_=e.isInternal?void 0:t;return f.jsx(Bf,{id:_,path:w,labelX:b,labelY:C,label:a,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:k,markerStart:x,interactionWidth:M})})}const aee=iee({isInternal:!1}),see=iee({isInternal:!0});aee.displayName="SmoothStepEdge";see.displayName="SmoothStepEdgeInternal";function cee(e){return m.memo(({id:t,...n})=>{var r;const o=e.isInternal?void 0:t;return f.jsx(aee,{...n,id:o,pathOptions:m.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(r=n.pathOptions)==null?void 0:r.offset])})})}const GDe=cee({isInternal:!1}),lee=cee({isInternal:!0});GDe.displayName="StepEdge";lee.displayName="StepEdgeInternal";function dee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:i,label:a,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:y,markerStart:g,interactionWidth:k})=>{const[x,v,M]=bJ({sourceX:n,sourceY:o,targetX:r,targetY:i}),w=e.isInternal?void 0:t;return f.jsx(Bf,{id:w,path:x,labelX:v,labelY:M,label:a,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:y,markerStart:g,interactionWidth:k})})}const KDe=dee({isInternal:!1}),uee=dee({isInternal:!0});KDe.displayName="StraightEdge";uee.displayName="StraightEdgeInternal";function hee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:i,sourcePosition:a=ue.Bottom,targetPosition:s=ue.Top,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,pathOptions:v,interactionWidth:M})=>{const[w,b,C]=xR({sourceX:n,sourceY:o,sourcePosition:a,targetX:r,targetY:i,targetPosition:s,curvature:v==null?void 0:v.curvature}),_=e.isInternal?void 0:t;return f.jsx(Bf,{id:_,path:w,labelX:b,labelY:C,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:M})})}const XDe=hee({isInternal:!1}),fee=hee({isInternal:!0});XDe.displayName="BezierEdge";fee.displayName="BezierEdgeInternal";const gW={default:fee,straight:uee,step:lee,smoothstep:see,simplebezier:ree},kW={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},ZDe=(e,t,n)=>n===ue.Left?e-t:n===ue.Right?e+t:e,YDe=(e,t,n)=>n===ue.Top?e-t:n===ue.Bottom?e+t:e,vW="react-flow__edgeupdater";function xW({position:e,centerX:t,centerY:n,radius:o=10,onMouseDown:r,onMouseEnter:i,onMouseOut:a,type:s}){return f.jsx("circle",{onMouseDown:r,onMouseEnter:i,onMouseOut:a,className:Yt([vW,`${vW}-${s}`]),cx:ZDe(t,o,e),cy:YDe(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function QDe({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:o,sourceY:r,targetX:i,targetY:a,sourcePosition:s,targetPosition:c,onReconnect:l,onReconnectStart:h,onReconnectEnd:d,setReconnecting:p,setUpdateHover:y}){const g=St(),k=(b,C)=>{if(b.button!==0)return;const{autoPanOnConnect:_,domNode:S,connectionMode:L,connectionRadius:j,lib:I,onConnectStart:R,cancelConnection:E,nodeLookup:V,rfId:$,panBy:T,updateConnection:D}=g.getState(),F=C.type==="target",z=(W,O)=>{p(!1),d==null||d(W,n,C.type,O)},A=W=>l==null?void 0:l(n,W),N=(W,O)=>{p(!0),h==null||h(b,n,C.type),R==null||R(W,O)};iO.onPointerDown(b.nativeEvent,{autoPanOnConnect:_,connectionMode:L,connectionRadius:j,domNode:S,handleId:C.id,nodeId:C.nodeId,nodeLookup:V,isTarget:F,edgeUpdaterType:C.type,lib:I,flowId:$,cancelConnection:E,panBy:T,isValidConnection:(...W)=>{var O,P;return((P=(O=g.getState()).isValidConnection)==null?void 0:P.call(O,...W))??!0},onConnect:A,onConnectStart:N,onConnectEnd:(...W)=>{var O,P;return(P=(O=g.getState()).onConnectEnd)==null?void 0:P.call(O,...W)},onReconnectEnd:z,updateConnection:D,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:b.currentTarget})},x=b=>k(b,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),v=b=>k(b,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),M=()=>y(!0),w=()=>y(!1);return f.jsxs(f.Fragment,{children:[(e===!0||e==="source")&&f.jsx(xW,{position:s,centerX:o,centerY:r,radius:t,onMouseDown:x,onMouseEnter:M,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&f.jsx(xW,{position:c,centerX:i,centerY:a,radius:t,onMouseDown:v,onMouseEnter:M,onMouseOut:w,type:"target"})]})}function JDe({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:o,onClick:r,onDoubleClick:i,onContextMenu:a,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,reconnectRadius:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:y,rfId:g,edgeTypes:k,noPanClassName:x,onError:v,disableKeyboardA11y:M}){let w=je(ke=>ke.edgeLookup.get(e));const b=je(ke=>ke.defaultEdgeOptions);w=b?{...b,...w}:w;let C=w.type||"default",_=(k==null?void 0:k[C])||gW[C];_===void 0&&(v==null||v("011",ti.error011(C)),C="default",_=(k==null?void 0:k.default)||gW.default);const S=!!(w.focusable||t&&typeof w.focusable>"u"),L=typeof d<"u"&&(w.reconnectable||n&&typeof w.reconnectable>"u"),j=!!(w.selectable||o&&typeof w.selectable>"u"),I=m.useRef(null),[R,E]=m.useState(!1),[V,$]=m.useState(!1),T=St(),{zIndex:D,sourceX:F,sourceY:z,targetX:A,targetY:N,sourcePosition:W,targetPosition:O}=je(m.useCallback(ke=>{const ge=ke.nodeLookup.get(w.source),Pe=ke.nodeLookup.get(w.target);if(!ge||!Pe)return{zIndex:w.zIndex,...kW};const Be=ERe({id:e,sourceNode:ge,targetNode:Pe,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:ke.connectionMode,onError:v});return{zIndex:bRe({selected:w.selected,zIndex:w.zIndex,sourceNode:ge,targetNode:Pe,elevateOnSelect:ke.elevateEdgesOnSelect,zIndexMode:ke.zIndexMode}),...Be||kW}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),jt),P=m.useMemo(()=>w.markerStart?`url('#${oO(w.markerStart,g)}')`:void 0,[w.markerStart,g]),Y=m.useMemo(()=>w.markerEnd?`url('#${oO(w.markerEnd,g)}')`:void 0,[w.markerEnd,g]);if(w.hidden||F===null||z===null||A===null||N===null)return null;const Z=ke=>{var De;const{addSelectedEdges:ge,unselectNodesAndEdges:Pe,multiSelectionActive:Be}=T.getState();j&&(T.setState({nodesSelectionActive:!1}),w.selected&&Be?(Pe({nodes:[],edges:[w]}),(De=I.current)==null||De.blur()):ge([e])),r&&r(ke,w)},te=i?ke=>{i(ke,{...w})}:void 0,ae=a?ke=>{a(ke,{...w})}:void 0,oe=s?ke=>{s(ke,{...w})}:void 0,re=c?ke=>{c(ke,{...w})}:void 0,se=l?ke=>{l(ke,{...w})}:void 0,ve=ke=>{var ge;if(!M&&sJ.includes(ke.key)&&j){const{unselectNodesAndEdges:Pe,addSelectedEdges:Be}=T.getState();ke.key==="Escape"?((ge=I.current)==null||ge.blur(),Pe({edges:[w]})):Be([e])}};return f.jsx("svg",{style:{zIndex:D},children:f.jsxs("g",{className:Yt(["react-flow__edge",`react-flow__edge-${C}`,w.className,x,{selected:w.selected,animated:w.animated,inactive:!j&&!r,updating:R,selectable:j}]),onClick:Z,onDoubleClick:te,onContextMenu:ae,onMouseEnter:oe,onMouseMove:re,onMouseLeave:se,onKeyDown:S?ve:void 0,tabIndex:S?0:void 0,role:w.ariaRole??(S?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":S?`${qJ}-${g}`:void 0,ref:I,...w.domAttributes,children:[!V&&f.jsx(_,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:j,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:F,sourceY:z,targetX:A,targetY:N,sourcePosition:W,targetPosition:O,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:P,markerEnd:Y,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),L&&f.jsx(QDe,{edge:w,isReconnectable:L,reconnectRadius:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:y,sourceX:F,sourceY:z,targetX:A,targetY:N,sourcePosition:W,targetPosition:O,setUpdateHover:E,setReconnecting:$})]})})}var eHe=m.memo(JDe);const tHe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function pee({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:o,noPanClassName:r,onReconnect:i,onEdgeContextMenu:a,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:l,onEdgeClick:h,reconnectRadius:d,onEdgeDoubleClick:p,onReconnectStart:y,onReconnectEnd:g,disableKeyboardA11y:k}){const{edgesFocusable:x,edgesReconnectable:v,elementsSelectable:M,onError:w}=je(tHe,jt),b=HDe(t);return f.jsxs("div",{className:"react-flow__edges",children:[f.jsx(BDe,{defaultColor:e,rfId:n}),b.map(C=>f.jsx(eHe,{id:C,edgesFocusable:x,edgesReconnectable:v,elementsSelectable:M,noPanClassName:r,onReconnect:i,onContextMenu:a,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,onClick:h,reconnectRadius:d,onDoubleClick:p,onReconnectStart:y,onReconnectEnd:g,rfId:n,onError:w,edgeTypes:o,disableKeyboardA11y:k},C))]})}pee.displayName="EdgeRenderer";const nHe=m.memo(pee),oHe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function rHe({children:e}){const t=je(oHe);return f.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function iHe(e){const t=_R(),n=m.useRef(!1);m.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const aHe=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function sHe(e){const t=je(aHe),n=St();return m.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function cHe(e){return e.connection.inProgress?{...e.connection,to:Vf(e.connection.to,e.transform)}:{...e.connection}}function lHe(e){return cHe}function dHe(e){const t=lHe();return je(t,jt)}const uHe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function hHe({containerStyle:e,style:t,type:n,component:o}){const{nodesConnectable:r,width:i,height:a,isValid:s,inProgress:c}=je(uHe,jt);return!(i&&r&&c)?null:f.jsx("svg",{style:e,width:i,height:a,className:"react-flow__connectionline react-flow__container",children:f.jsx("g",{className:Yt(["react-flow__connection",dJ(s)]),children:f.jsx(yee,{style:t,type:n,CustomComponent:o,isValid:s})})})}const yee=({style:e,type:t=Ea.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:r,from:i,fromNode:a,fromHandle:s,fromPosition:c,to:l,toNode:h,toHandle:d,toPosition:p,pointer:y}=dHe();if(!r)return;if(n)return f.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:a,fromHandle:s,fromX:i.x,fromY:i.y,toX:l.x,toY:l.y,fromPosition:c,toPosition:p,connectionStatus:dJ(o),toNode:h,toHandle:d,pointer:y});let g="";const k={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:l.x,targetY:l.y,targetPosition:p};switch(t){case Ea.Bezier:[g]=xR(k);break;case Ea.SimpleBezier:[g]=nee(k);break;case Ea.Step:[g]=vf({...k,borderRadius:0});break;case Ea.SmoothStep:[g]=vf(k);break;default:[g]=bJ(k)}return f.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};yee.displayName="ConnectionLine";const fHe={};function wW(e=fHe){m.useRef(e),St(),m.useEffect(()=>{},[e])}function pHe(){St(),m.useRef(!1),m.useEffect(()=>{},[])}function mee({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:o,onEdgeClick:r,onNodeDoubleClick:i,onEdgeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:h,onSelectionContextMenu:d,onSelectionStart:p,onSelectionEnd:y,connectionLineType:g,connectionLineStyle:k,connectionLineComponent:x,connectionLineContainerStyle:v,selectionKeyCode:M,selectionOnDrag:w,selectionMode:b,multiSelectionKeyCode:C,panActivationKeyCode:_,zoomActivationKeyCode:S,deleteKeyCode:L,onlyRenderVisibleElements:j,elementsSelectable:I,defaultViewport:R,translateExtent:E,minZoom:V,maxZoom:$,preventScrolling:T,defaultMarkerColor:D,zoomOnScroll:F,zoomOnPinch:z,panOnScroll:A,panOnScrollSpeed:N,panOnScrollMode:W,zoomOnDoubleClick:O,panOnDrag:P,onPaneClick:Y,onPaneMouseEnter:Z,onPaneMouseMove:te,onPaneMouseLeave:ae,onPaneScroll:oe,onPaneContextMenu:re,paneClickDistance:se,nodeClickDistance:ve,onEdgeContextMenu:ke,onEdgeMouseEnter:ge,onEdgeMouseMove:Pe,onEdgeMouseLeave:Be,reconnectRadius:De,onReconnect:pe,onReconnectStart:me,onReconnectEnd:Ie,noDragClassName:Ue,noWheelClassName:ut,noPanClassName:et,disableKeyboardA11y:le,nodeExtent:rn,rfId:Gt,viewport:J,onViewportChange:H}){return wW(e),wW(t),pHe(),iHe(n),sHe(J),f.jsx(IDe,{onPaneClick:Y,onPaneMouseEnter:Z,onPaneMouseMove:te,onPaneMouseLeave:ae,onPaneContextMenu:re,onPaneScroll:oe,paneClickDistance:se,deleteKeyCode:L,selectionKeyCode:M,selectionOnDrag:w,selectionMode:b,onSelectionStart:p,onSelectionEnd:y,multiSelectionKeyCode:C,panActivationKeyCode:_,zoomActivationKeyCode:S,elementsSelectable:I,zoomOnScroll:F,zoomOnPinch:z,zoomOnDoubleClick:O,panOnScroll:A,panOnScrollSpeed:N,panOnScrollMode:W,panOnDrag:P,defaultViewport:R,translateExtent:E,minZoom:V,maxZoom:$,onSelectionContextMenu:d,preventScrolling:T,noDragClassName:Ue,noWheelClassName:ut,noPanClassName:et,disableKeyboardA11y:le,onViewportChange:H,isControlledViewport:!!J,children:f.jsxs(rHe,{children:[f.jsx(nHe,{edgeTypes:t,onEdgeClick:r,onEdgeDoubleClick:a,onReconnect:pe,onReconnectStart:me,onReconnectEnd:Ie,onlyRenderVisibleElements:j,onEdgeContextMenu:ke,onEdgeMouseEnter:ge,onEdgeMouseMove:Pe,onEdgeMouseLeave:Be,reconnectRadius:De,defaultMarkerColor:D,noPanClassName:et,disableKeyboardA11y:le,rfId:Gt}),f.jsx(hHe,{style:k,type:g,component:x,containerStyle:v}),f.jsx("div",{className:"react-flow__edgelabel-renderer"}),f.jsx(DDe,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:h,nodeClickDistance:ve,onlyRenderVisibleElements:j,noPanClassName:et,noDragClassName:Ue,disableKeyboardA11y:le,nodeExtent:rn,rfId:Gt}),f.jsx("div",{className:"react-flow__viewport-portal"})]})})}mee.displayName="GraphView";const yHe=m.memo(mee),MW=({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:i,fitView:a,fitViewOptions:s,minZoom:c=.5,maxZoom:l=2,nodeOrigin:h,nodeExtent:d,zIndexMode:p="basic"}={})=>{const y=new Map,g=new Map,k=new Map,x=new Map,v=o??t??[],M=n??e??[],w=h??[0,0],b=d??yf;SJ(k,x,v);const{nodesInitialized:C}=rO(M,y,g,{nodeOrigin:w,nodeExtent:b,zIndexMode:p});let _=[0,0,1];if(a&&r&&i){const S=Ff(y,{filter:R=>!!((R.width||R.initialWidth)&&(R.height||R.initialHeight))}),{x:L,y:j,zoom:I}=uq(S,r,i,c,l,(s==null?void 0:s.padding)??.1);_=[L,j,I]}return{rfId:"1",width:r??0,height:i??0,transform:_,nodes:M,nodesInitialized:C,nodeLookup:y,parentLookup:g,edges:v,edgeLookup:x,connectionLookup:k,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:l,translateExtent:yf,nodeExtent:b,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:O0.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:w,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:a??!1,fitViewOptions:s,fitViewResolver:null,connection:{...lJ},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:gRe,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:cJ,zIndexMode:p,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},mHe=({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:i,fitView:a,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:h,nodeExtent:d,zIndexMode:p})=>zTe((y,g)=>{async function k(){const{nodeLookup:x,panZoom:v,fitViewOptions:M,fitViewResolver:w,width:b,height:C,minZoom:_,maxZoom:S}=g();v&&(await yRe({nodes:x,width:b,height:C,panZoom:v,minZoom:_,maxZoom:S},M),w==null||w.resolve(!0),y({fitViewResolver:null}))}return{...MW({nodes:e,edges:t,width:r,height:i,fitView:a,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:h,nodeExtent:d,defaultNodes:n,defaultEdges:o,zIndexMode:p}),setNodes:x=>{const{nodeLookup:v,parentLookup:M,nodeOrigin:w,elevateNodesOnSelect:b,fitViewQueued:C,zIndexMode:_,nodesSelectionActive:S}=g(),{nodesInitialized:L,hasSelectedNodes:j}=rO(x,v,M,{nodeOrigin:w,nodeExtent:d,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:_}),I=S&&j;C&&L?(k(),y({nodes:x,nodesInitialized:L,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:I})):y({nodes:x,nodesInitialized:L,nodesSelectionActive:I})},setEdges:x=>{const{connectionLookup:v,edgeLookup:M}=g();SJ(v,M,x),y({edges:x})},setDefaultNodesAndEdges:(x,v)=>{if(x){const{setNodes:M}=g();M(x),y({hasDefaultNodes:!0})}if(v){const{setEdges:M}=g();M(v),y({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:v,nodeLookup:M,parentLookup:w,domNode:b,nodeOrigin:C,nodeExtent:_,debug:S,fitViewQueued:L,zIndexMode:j}=g(),{changes:I,updatedInternals:R}=HRe(x,M,w,b,C,_,j);R&&(zRe(M,w,{nodeOrigin:C,nodeExtent:_,zIndexMode:j}),L?(k(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),(I==null?void 0:I.length)>0&&(S&&console.log("React Flow: trigger node changes",I),v==null||v(I)))},updateNodePositions:(x,v=!1)=>{const M=[];let w=[];const{nodeLookup:b,triggerNodeChanges:C,connection:_,updateConnection:S,onNodesChangeMiddlewareMap:L}=g();for(const[j,I]of x){const R=b.get(j),E=!!(R!=null&&R.expandParent&&(R!=null&&R.parentId)&&(I!=null&&I.position)),V={id:j,type:"position",position:E?{x:Math.max(0,I.position.x),y:Math.max(0,I.position.y)}:I.position,dragging:v};if(R&&_.inProgress&&_.fromNode.id===R.id){const $=Qd(R,_.fromHandle,ue.Left,!0);S({..._,from:$})}E&&R.parentId&&M.push({id:j,parentId:R.parentId,rect:{...I.internals.positionAbsolute,width:I.measured.width??0,height:I.measured.height??0}}),w.push(V)}if(M.length>0){const{parentLookup:j,nodeOrigin:I}=g(),R=gq(M,b,j,I);w.push(...R)}for(const j of L.values())w=j(w);C(w)},triggerNodeChanges:x=>{const{onNodesChange:v,setNodes:M,nodes:w,hasDefaultNodes:b,debug:C}=g();if(x!=null&&x.length){if(b){const _=UJ(x,w);M(_)}C&&console.log("React Flow: trigger node changes",x),v==null||v(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:v,setEdges:M,edges:w,hasDefaultEdges:b,debug:C}=g();if(x!=null&&x.length){if(b){const _=WJ(x,w);M(_)}C&&console.log("React Flow: trigger edge changes",x),v==null||v(x)}},addSelectedNodes:x=>{const{multiSelectionActive:v,edgeLookup:M,nodeLookup:w,triggerNodeChanges:b,triggerEdgeChanges:C}=g();if(v){const _=x.map(S=>Ad(S,!0));b(_);return}b(a0(w,new Set([...x]),!0)),C(a0(M))},addSelectedEdges:x=>{const{multiSelectionActive:v,edgeLookup:M,nodeLookup:w,triggerNodeChanges:b,triggerEdgeChanges:C}=g();if(v){const _=x.map(S=>Ad(S,!0));C(_);return}C(a0(M,new Set([...x]))),b(a0(w,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:v}={})=>{const{edges:M,nodes:w,nodeLookup:b,triggerNodeChanges:C,triggerEdgeChanges:_}=g(),S=x||w,L=v||M,j=[];for(const R of S){if(!R.selected)continue;const E=b.get(R.id);E&&(E.selected=!1),j.push(Ad(R.id,!1))}const I=[];for(const R of L)R.selected&&I.push(Ad(R.id,!1));C(j),_(I)},setMinZoom:x=>{const{panZoom:v,maxZoom:M}=g();v==null||v.setScaleExtent([x,M]),y({minZoom:x})},setMaxZoom:x=>{const{panZoom:v,minZoom:M}=g();v==null||v.setScaleExtent([M,x]),y({maxZoom:x})},setTranslateExtent:x=>{var v;(v=g().panZoom)==null||v.setTranslateExtent(x),y({translateExtent:x})},resetSelectedElements:()=>{const{edges:x,nodes:v,triggerNodeChanges:M,triggerEdgeChanges:w,elementsSelectable:b}=g();if(!b)return;const C=v.reduce((S,L)=>L.selected?[...S,Ad(L.id,!1)]:S,[]),_=x.reduce((S,L)=>L.selected?[...S,Ad(L.id,!1)]:S,[]);M(C),w(_)},setNodeExtent:x=>{const{nodes:v,nodeLookup:M,parentLookup:w,nodeOrigin:b,elevateNodesOnSelect:C,nodeExtent:_,zIndexMode:S}=g();x[0][0]===_[0][0]&&x[0][1]===_[0][1]&&x[1][0]===_[1][0]&&x[1][1]===_[1][1]||(rO(v,M,w,{nodeOrigin:b,nodeExtent:x,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:S}),y({nodeExtent:x}))},panBy:x=>{const{transform:v,width:M,height:w,panZoom:b,translateExtent:C}=g();return ORe({delta:x,panZoom:b,transform:v,translateExtent:C,width:M,height:w})},setCenter:async(x,v,M)=>{const{width:w,height:b,maxZoom:C,panZoom:_}=g();if(!_)return Promise.resolve(!1);const S=typeof(M==null?void 0:M.zoom)<"u"?M.zoom:C;return await _.setViewport({x:w/2-x*S,y:b/2-v*S,zoom:S},{duration:M==null?void 0:M.duration,ease:M==null?void 0:M.ease,interpolate:M==null?void 0:M.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{y({connection:{...lJ}})},updateConnection:x=>{y({connection:x})},reset:()=>y({...MW()})}},Object.is);function gHe({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:o,initialWidth:r,initialHeight:i,initialMinZoom:a,initialMaxZoom:s,initialFitViewOptions:c,fitView:l,nodeOrigin:h,nodeExtent:d,zIndexMode:p,children:y}){const[g]=m.useState(()=>mHe({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:i,fitView:l,minZoom:a,maxZoom:s,fitViewOptions:c,nodeOrigin:h,nodeExtent:d,zIndexMode:p}));return f.jsx(RTe,{value:g,children:f.jsx(rDe,{children:y})})}function kHe({children:e,nodes:t,edges:n,defaultNodes:o,defaultEdges:r,width:i,height:a,fitView:s,fitViewOptions:c,minZoom:l,maxZoom:h,nodeOrigin:d,nodeExtent:p,zIndexMode:y}){return m.useContext(bR)?f.jsx(f.Fragment,{children:e}):f.jsx(gHe,{initialNodes:t,initialEdges:n,defaultNodes:o,defaultEdges:r,initialWidth:i,initialHeight:a,fitView:s,initialFitViewOptions:c,initialMinZoom:l,initialMaxZoom:h,nodeOrigin:d,nodeExtent:p,zIndexMode:y,children:e})}const vHe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function xHe({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,className:r,nodeTypes:i,edgeTypes:a,onNodeClick:s,onEdgeClick:c,onInit:l,onMove:h,onMoveStart:d,onMoveEnd:p,onConnect:y,onConnectStart:g,onConnectEnd:k,onClickConnectStart:x,onClickConnectEnd:v,onNodeMouseEnter:M,onNodeMouseMove:w,onNodeMouseLeave:b,onNodeContextMenu:C,onNodeDoubleClick:_,onNodeDragStart:S,onNodeDrag:L,onNodeDragStop:j,onNodesDelete:I,onEdgesDelete:R,onDelete:E,onSelectionChange:V,onSelectionDragStart:$,onSelectionDrag:T,onSelectionDragStop:D,onSelectionContextMenu:F,onSelectionStart:z,onSelectionEnd:A,onBeforeDelete:N,connectionMode:W,connectionLineType:O=Ea.Bezier,connectionLineStyle:P,connectionLineComponent:Y,connectionLineContainerStyle:Z,deleteKeyCode:te="Backspace",selectionKeyCode:ae="Shift",selectionOnDrag:oe=!1,selectionMode:re=F0.Full,panActivationKeyCode:se="Space",multiSelectionKeyCode:ve=kf()?"Meta":"Control",zoomActivationKeyCode:ke=kf()?"Meta":"Control",snapToGrid:ge,snapGrid:Pe,onlyRenderVisibleElements:Be=!1,selectNodesOnDrag:De,nodesDraggable:pe,autoPanOnNodeFocus:me,nodesConnectable:Ie,nodesFocusable:Ue,nodeOrigin:ut=VJ,edgesFocusable:et,edgesReconnectable:le,elementsSelectable:rn=!0,defaultViewport:Gt=XTe,minZoom:J=.5,maxZoom:H=2,translateExtent:Q=yf,preventScrolling:be=!0,nodeExtent:Ee,defaultMarkerColor:wt="#b1b1b7",zoomOnScroll:gn=!0,zoomOnPinch:an=!0,panOnScroll:Fn=!1,panOnScrollSpeed:qn=.5,panOnScrollMode:Me=Vd.Free,zoomOnDoubleClick:Fe=!0,panOnDrag:dn=!0,onPaneClick:gr,onPaneMouseEnter:pt,onPaneMouseMove:dt,onPaneMouseLeave:Vn,onPaneScroll:mi,onPaneContextMenu:Qt,paneClickDistance:Pt=1,nodeClickDistance:Jt=0,children:yu,onReconnect:mu,onReconnectStart:gu,onReconnectEnd:ku,onEdgeContextMenu:vu,onEdgeDoubleClick:xu,onEdgeMouseEnter:hs,onEdgeMouseMove:fs,onEdgeMouseLeave:ps,reconnectRadius:ys=10,onNodesChange:gi,onEdgesChange:ki,noDragClassName:wu="nodrag",noWheelClassName:Mu="nowheel",noPanClassName:Co="nopan",fitView:Qi,fitViewOptions:Ji,connectOnClick:He,attributionPosition:Ht,proOptions:ms,defaultEdgeOptions:bu,elevateNodesOnSelect:vi=!0,elevateEdgesOnSelect:kr=!1,disableKeyboardA11y:xi=!1,autoPanOnConnect:Sn,autoPanOnNodeDrag:Oo,autoPanSpeed:kn,connectionRadius:Ot,isValidConnection:ea,onError:gs,style:Fo,id:ta,nodeDragThreshold:wi,connectionDragThreshold:en,viewport:qo,onViewportChange:So,width:vr,height:na,colorMode:_u="light",debug:Cu,onScroll:Lo,ariaLabelConfig:ks,zIndexMode:Vo="basic",...xr},Su){const Ln=ta||"1",no=JTe(_u),oo=m.useCallback(Nn=>{Nn.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Lo==null||Lo(Nn)},[Lo]);return f.jsx("div",{"data-testid":"rf__wrapper",...xr,onScroll:oo,style:{...Fo,...vHe},ref:Su,className:Yt(["react-flow",r,no]),id:ta,role:"application",children:f.jsxs(kHe,{nodes:e,edges:t,width:vr,height:na,fitView:Qi,fitViewOptions:Ji,minZoom:J,maxZoom:H,nodeOrigin:ut,nodeExtent:Ee,zIndexMode:Vo,children:[f.jsx(QTe,{nodes:e,edges:t,defaultNodes:n,defaultEdges:o,onConnect:y,onConnectStart:g,onConnectEnd:k,onClickConnectStart:x,onClickConnectEnd:v,nodesDraggable:pe,autoPanOnNodeFocus:me,nodesConnectable:Ie,nodesFocusable:Ue,edgesFocusable:et,edgesReconnectable:le,elementsSelectable:rn,elevateNodesOnSelect:vi,elevateEdgesOnSelect:kr,minZoom:J,maxZoom:H,nodeExtent:Ee,onNodesChange:gi,onEdgesChange:ki,snapToGrid:ge,snapGrid:Pe,connectionMode:W,translateExtent:Q,connectOnClick:He,defaultEdgeOptions:bu,fitView:Qi,fitViewOptions:Ji,onNodesDelete:I,onEdgesDelete:R,onDelete:E,onNodeDragStart:S,onNodeDrag:L,onNodeDragStop:j,onSelectionDrag:T,onSelectionDragStart:$,onSelectionDragStop:D,onMove:h,onMoveStart:d,onMoveEnd:p,noPanClassName:Co,nodeOrigin:ut,rfId:Ln,autoPanOnConnect:Sn,autoPanOnNodeDrag:Oo,autoPanSpeed:kn,onError:gs,connectionRadius:Ot,isValidConnection:ea,selectNodesOnDrag:De,nodeDragThreshold:wi,connectionDragThreshold:en,onBeforeDelete:N,debug:Cu,ariaLabelConfig:ks,zIndexMode:Vo}),f.jsx(yHe,{onInit:l,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:M,onNodeMouseMove:w,onNodeMouseLeave:b,onNodeContextMenu:C,onNodeDoubleClick:_,nodeTypes:i,edgeTypes:a,connectionLineType:O,connectionLineStyle:P,connectionLineComponent:Y,connectionLineContainerStyle:Z,selectionKeyCode:ae,selectionOnDrag:oe,selectionMode:re,deleteKeyCode:te,multiSelectionKeyCode:ve,panActivationKeyCode:se,zoomActivationKeyCode:ke,onlyRenderVisibleElements:Be,defaultViewport:Gt,translateExtent:Q,minZoom:J,maxZoom:H,preventScrolling:be,zoomOnScroll:gn,zoomOnPinch:an,zoomOnDoubleClick:Fe,panOnScroll:Fn,panOnScrollSpeed:qn,panOnScrollMode:Me,panOnDrag:dn,onPaneClick:gr,onPaneMouseEnter:pt,onPaneMouseMove:dt,onPaneMouseLeave:Vn,onPaneScroll:mi,onPaneContextMenu:Qt,paneClickDistance:Pt,nodeClickDistance:Jt,onSelectionContextMenu:F,onSelectionStart:z,onSelectionEnd:A,onReconnect:mu,onReconnectStart:gu,onReconnectEnd:ku,onEdgeContextMenu:vu,onEdgeDoubleClick:xu,onEdgeMouseEnter:hs,onEdgeMouseMove:fs,onEdgeMouseLeave:ps,reconnectRadius:ys,defaultMarkerColor:wt,noDragClassName:wu,noWheelClassName:Mu,noPanClassName:Co,rfId:Ln,disableKeyboardA11y:xi,nodeExtent:Ee,viewport:qo,onViewportChange:So}),f.jsx(KTe,{onSelectionChange:V}),yu,f.jsx(VTe,{proOptions:ms,position:Ht}),f.jsx(qTe,{rfId:Ln,disableKeyboardA11y:xi})]})})}var wHe=GJ(xHe);const MHe=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__edgelabel-renderer")};function bHe({children:e}){const t=je(MHe);return t?au.createPortal(e,t):null}const _He=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__viewport-portal")};function gee({children:e}){const t=je(_He);return t?au.createPortal(e,t):null}function kee(){const e=St();return m.useCallback(t=>{const{domNode:n,updateNodeInternals:o}=e.getState(),r=Array.isArray(t)?t:[t],i=new Map;r.forEach(a=>{const s=n==null?void 0:n.querySelector(`.react-flow__node[data-id="${a}"]`);s&&i.set(a,{id:a,nodeElement:s,force:!0})}),requestAnimationFrame(()=>o(i,{triggerFitView:!1}))},[])}function bW(e){return je(m.useCallback(n=>n.nodeLookup.get(e),[e]),jt)}function CHe({dimensions:e,lineWidth:t,variant:n,className:o}){return f.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Yt(["react-flow__background-pattern",n,o])})}function SHe({radius:e,className:t}){return f.jsx("circle",{cx:e,cy:e,r:e,className:Yt(["react-flow__background-pattern","dots",t])})}var Wa;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Wa||(Wa={}));const LHe={[Wa.Dots]:1,[Wa.Lines]:1,[Wa.Cross]:6},NHe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function vee({id:e,variant:t=Wa.Dots,gap:n=20,size:o,lineWidth:r=1,offset:i=0,color:a,bgColor:s,style:c,className:l,patternClassName:h}){const d=m.useRef(null),{transform:p,patternId:y}=je(NHe,jt),g=o||LHe[t],k=t===Wa.Dots,x=t===Wa.Cross,v=Array.isArray(n)?n:[n,n],M=[v[0]*p[2]||1,v[1]*p[2]||1],w=g*p[2],b=Array.isArray(i)?i:[i,i],C=x?[w,w]:M,_=[b[0]*p[2]||1+C[0]/2,b[1]*p[2]||1+C[1]/2],S=`${y}${e||""}`;return f.jsxs("svg",{className:Yt(["react-flow__background",l]),style:{...c,...CR,"--xy-background-color-props":s,"--xy-background-pattern-color-props":a},ref:d,"data-testid":"rf__background",children:[f.jsx("pattern",{id:S,x:p[0]%M[0],y:p[1]%M[1],width:M[0],height:M[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${_[0]},-${_[1]})`,children:k?f.jsx(SHe,{radius:w/2,className:h}):f.jsx(CHe,{dimensions:C,lineWidth:r,variant:t,className:h})}),f.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${S})`})]})}vee.displayName="Background";const IHe=m.memo(vee);function AHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:f.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function EHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:f.jsx("path",{d:"M0 0h32v4.2H0z"})})}function jHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:f.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function $He(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:f.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function PHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:f.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function s0({children:e,className:t,...n}){return f.jsx("button",{type:"button",className:Yt(["react-flow__controls-button",t]),...n,children:e})}const zHe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function xee({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:r,onZoomIn:i,onZoomOut:a,onFitView:s,onInteractiveChange:c,className:l,children:h,position:d="bottom-left",orientation:p="vertical","aria-label":y}){const g=St(),{isInteractive:k,minZoomReached:x,maxZoomReached:v,ariaLabelConfig:M}=je(zHe,jt),{zoomIn:w,zoomOut:b,fitView:C}=_R(),_=()=>{w(),i==null||i()},S=()=>{b(),a==null||a()},L=()=>{C(r),s==null||s()},j=()=>{g.setState({nodesDraggable:!k,nodesConnectable:!k,elementsSelectable:!k}),c==null||c(!k)},I=p==="horizontal"?"horizontal":"vertical";return f.jsxs(W0,{className:Yt(["react-flow__controls",I,l]),position:d,style:e,"data-testid":"rf__controls","aria-label":y??M["controls.ariaLabel"],children:[t&&f.jsxs(f.Fragment,{children:[f.jsx(s0,{onClick:_,className:"react-flow__controls-zoomin",title:M["controls.zoomIn.ariaLabel"],"aria-label":M["controls.zoomIn.ariaLabel"],disabled:v,children:f.jsx(AHe,{})}),f.jsx(s0,{onClick:S,className:"react-flow__controls-zoomout",title:M["controls.zoomOut.ariaLabel"],"aria-label":M["controls.zoomOut.ariaLabel"],disabled:x,children:f.jsx(EHe,{})})]}),n&&f.jsx(s0,{className:"react-flow__controls-fitview",onClick:L,title:M["controls.fitView.ariaLabel"],"aria-label":M["controls.fitView.ariaLabel"],children:f.jsx(jHe,{})}),o&&f.jsx(s0,{className:"react-flow__controls-interactive",onClick:j,title:M["controls.interactive.ariaLabel"],"aria-label":M["controls.interactive.ariaLabel"],children:k?f.jsx(PHe,{}):f.jsx($He,{})}),h]})}xee.displayName="Controls";const RHe=m.memo(xee);function THe({id:e,x:t,y:n,width:o,height:r,style:i,color:a,strokeColor:s,strokeWidth:c,className:l,borderRadius:h,shapeRendering:d,selected:p,onClick:y}){const{background:g,backgroundColor:k}=i||{},x=a||g||k;return f.jsx("rect",{className:Yt(["react-flow__minimap-node",{selected:p},l]),x:t,y:n,rx:h,ry:h,width:o,height:r,style:{fill:x,stroke:s,strokeWidth:c},shapeRendering:d,onClick:y?v=>y(v,e):void 0})}const DHe=m.memo(THe),HHe=e=>e.nodes.map(t=>t.id),rD=e=>e instanceof Function?e:()=>e;function OHe({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:r,nodeComponent:i=DHe,onClick:a}){const s=je(HHe,jt),c=rD(t),l=rD(e),h=rD(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return f.jsx(f.Fragment,{children:s.map(p=>f.jsx(qHe,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:l,nodeClassNameFunc:h,nodeBorderRadius:o,nodeStrokeWidth:r,NodeComponent:i,onClick:a,shapeRendering:d},p))})}function FHe({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:r,nodeStrokeWidth:i,shapeRendering:a,NodeComponent:s,onClick:c}){const{node:l,x:h,y:d,width:p,height:y}=je(g=>{const k=g.nodeLookup.get(e);if(!k)return{node:void 0,x:0,y:0,width:0,height:0};const x=k.internals.userNode,{x:v,y:M}=k.internals.positionAbsolute,{width:w,height:b}=Xi(x);return{node:x,x:v,y:M,width:w,height:b}},jt);return!l||l.hidden||!mJ(l)?null:f.jsx(s,{x:h,y:d,width:p,height:y,style:l.style,selected:!!l.selected,className:o(l),color:t(l),borderRadius:r,strokeColor:n(l),strokeWidth:i,shapeRendering:a,onClick:c,id:l.id})}const qHe=m.memo(FHe);var VHe=m.memo(OHe);const BHe=200,UHe=150,WHe=e=>!e.hidden,GHe=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?yJ(Ff(e.nodeLookup,{filter:WHe}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},KHe="react-flow__minimap-desc";function wee({style:e,className:t,nodeStrokeColor:n,nodeColor:o,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:a,nodeComponent:s,bgColor:c,maskColor:l,maskStrokeColor:h,maskStrokeWidth:d,position:p="bottom-right",onClick:y,onNodeClick:g,pannable:k=!1,zoomable:x=!1,ariaLabel:v,inversePan:M,zoomStep:w=1,offsetScale:b=5}){const C=St(),_=m.useRef(null),{boundingRect:S,viewBB:L,rfId:j,panZoom:I,translateExtent:R,flowWidth:E,flowHeight:V,ariaLabelConfig:$}=je(GHe,jt),T=(e==null?void 0:e.width)??BHe,D=(e==null?void 0:e.height)??UHe,F=S.width/T,z=S.height/D,A=Math.max(F,z),N=A*T,W=A*D,O=b*A,P=S.x-(N-S.width)/2-O,Y=S.y-(W-S.height)/2-O,Z=N+O*2,te=W+O*2,ae=`${KHe}-${j}`,oe=m.useRef(0),re=m.useRef();oe.current=A,m.useEffect(()=>{if(_.current&&I)return re.current=XRe({domNode:_.current,panZoom:I,getTransform:()=>C.getState().transform,getViewScale:()=>oe.current}),()=>{var ge;(ge=re.current)==null||ge.destroy()}},[I]),m.useEffect(()=>{var ge;(ge=re.current)==null||ge.update({translateExtent:R,width:E,height:V,inversePan:M,pannable:k,zoomStep:w,zoomable:x})},[k,x,M,w,R,E,V]);const se=y?ge=>{var De;const[Pe,Be]=((De=re.current)==null?void 0:De.pointer(ge))||[0,0];y(ge,{x:Pe,y:Be})}:void 0,ve=g?m.useCallback((ge,Pe)=>{const Be=C.getState().nodeLookup.get(Pe).internals.userNode;g(ge,Be)},[]):void 0,ke=v??$["minimap.ariaLabel"];return f.jsx(W0,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-stroke-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*A:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof a=="number"?a:void 0},className:Yt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:f.jsxs("svg",{width:T,height:D,viewBox:`${P} ${Y} ${Z} ${te}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ae,ref:_,onClick:se,children:[ke&&f.jsx("title",{id:ae,children:ke}),f.jsx(VHe,{onClick:ve,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:r,nodeStrokeWidth:a,nodeComponent:s}),f.jsx("path",{className:"react-flow__minimap-mask",d:`M${P-O},${Y-O}h${Z+O*2}v${te+O*2}h${-Z-O*2}z
8468
8468
  M${L.x},${L.y}h${L.width}v${L.height}h${-L.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}wee.displayName="MiniMap";const XHe=m.memo(wee),ZHe=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,YHe={[Ja.Line]:"right",[Ja.Handle]:"bottom-right"};function QHe({nodeId:e,position:t,variant:n=Ja.Handle,className:o,style:r=void 0,children:i,color:a,minWidth:s=10,minHeight:c=10,maxWidth:l=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:p,autoScale:y=!0,shouldResize:g,onResizeStart:k,onResize:x,onResizeEnd:v}){const M=YJ(),w=typeof e=="string"?e:M,b=St(),C=m.useRef(null),_=n===Ja.Handle,S=je(m.useCallback(ZHe(_&&y),[_,y]),jt),L=m.useRef(null),j=t??YHe[n];m.useEffect(()=>{if(!(!C.current||!w))return L.current||(L.current=lTe({domNode:C.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:R,transform:E,snapGrid:V,snapToGrid:$,nodeOrigin:T,domNode:D}=b.getState();return{nodeLookup:R,transform:E,snapGrid:V,snapToGrid:$,nodeOrigin:T,paneDomNode:D}},onChange:(R,E)=>{const{triggerNodeChanges:V,nodeLookup:$,parentLookup:T,nodeOrigin:D}=b.getState(),F=[],z={x:R.x,y:R.y},A=$.get(w);if(A&&A.expandParent&&A.parentId){const N=A.origin??D,W=R.width??A.measured.width??0,O=R.height??A.measured.height??0,P={id:A.id,parentId:A.parentId,rect:{width:W,height:O,...gJ({x:R.x??A.position.x,y:R.y??A.position.y},{width:W,height:O},A.parentId,$,N)}},Y=gq([P],$,T,D);F.push(...Y),z.x=R.x?Math.max(N[0]*W,R.x):void 0,z.y=R.y?Math.max(N[1]*O,R.y):void 0}if(z.x!==void 0&&z.y!==void 0){const N={id:w,type:"position",position:{...z}};F.push(N)}if(R.width!==void 0&&R.height!==void 0){const W={id:w,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:R.width,height:R.height}};F.push(W)}for(const N of E){const W={...N,type:"position"};F.push(W)}V(F)},onEnd:({width:R,height:E})=>{const V={id:w,type:"dimensions",resizing:!1,dimensions:{width:R,height:E}};b.getState().triggerNodeChanges([V])}})),L.current.update({controlPosition:j,boundaries:{minWidth:s,minHeight:c,maxWidth:l,maxHeight:h},keepAspectRatio:d,resizeDirection:p,onResizeStart:k,onResize:x,onResizeEnd:v,shouldResize:g}),()=>{var R;(R=L.current)==null||R.destroy()}},[j,s,c,l,h,d,k,x,v,g]);const I=j.split("-");return f.jsx("div",{className:Yt(["react-flow__resize-control","nodrag",...I,n,o]),ref:C,style:{...r,scale:S,...a&&{[_?"backgroundColor":"borderColor"]:a}},children:i})}const _W=m.memo(QHe),JHe=24,eOe=e=>({type:mf.ArrowClosed,width:18,height:18,...e?{color:e}:{}}),Mee={solid:{},dashed:{strokeDasharray:"6 4"},dotted:{strokeDasharray:"2 4"}},tOe=3,CW=new WeakMap,nOe=(e,t,n=!1)=>{const o=CW.get(e);if(o&&o.isAdjacentToRunning===t&&o.selected===n)return o.edge;const r=e.style?Mee[e.style]:{},i=Ct(e.color,"edge"),a=e.borderSize??2,s=n?Math.max(tOe,a):a,l={...r,...i,...n?{strokeWidth:s,opacity:1}:{strokeWidth:s}},h=e.direction??"forward",d=i.stroke,p=e.headShape??"arrow",y=e.tailShape??p,g=h==="backward"||h==="both",k=h==="forward"||h==="both",x=p!=="arrow",v=y!=="arrow",M=eOe(d),w=g&&!v?M:void 0,b=k&&!x?M:void 0,C=x||v,_={id:e.id,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle,type:"editableEdge",label:e.label,animated:t,data:{path:e.path,sourceHandleAutoPicked:e.sourceHandleAutoPicked,targetHandleAutoPicked:e.targetHandleAutoPicked,sourcePin:e.sourcePin,targetPin:e.targetPin,fontSize:e.fontSize,...C?{...x?{headShape:p}:{},...v?{tailShape:y}:{},headStart:g,headEnd:k}:{}},style:l,markerStart:w,markerEnd:b,interactionWidth:JHe};return CW.set(e,{isAdjacentToRunning:t,selected:n,edge:_}),_},oOe=(e,t={})=>{const n=t.setTimer??((l,h)=>globalThis.setTimeout(l,h)),o=t.clearTimer??(l=>{globalThis.clearTimeout(l)});let r=null,i=null;return{schedule:l=>{r!==null&&o(r),i=l,r=n(()=>{r=null;const h=i;i=null,h&&h()},e)},flush:()=>{r!==null&&(o(r),r=null);const l=i;i=null,l&&l()},cancel:()=>{r!==null&&(o(r),r=null),i=null},get pending(){return r!==null}}},bee="seeflow:detail-panel-width",Fu=380,cO=320,lO=800;function dO(e){return Number.isFinite(e)?e<cO?cO:e>lO?lO:e:Fu}function rOe(){if(typeof window>"u")return Fu;try{const e=window.localStorage.getItem(bee);if(e===null)return Fu;const t=Number(e);return!Number.isFinite(t)||t<cO||t>lO?Fu:t}catch{return Fu}}function iOe(e){if(!(typeof window>"u"))try{const t=dO(e);window.localStorage.setItem(bee,String(t))}catch{}}function aOe(e,t,n,o){const r=typeof window>"u"?null:window;if(!r)return;let i=dO(e);const a=c=>{i=dO(e+(t-c.clientX)),n.onWidth(i)},s=()=>{r.removeEventListener("pointermove",a),r.removeEventListener("pointerup",s),r.removeEventListener("pointercancel",s),n.onCommit(i)};r.addEventListener("pointermove",a),r.addEventListener("pointerup",s),r.addEventListener("pointercancel",s)}function sOe(e,t,n){return`${n!==void 0?n.replace(/\/+$/,""):"/api/projects"}/${encodeURIComponent(e)}/files/${encodeURI(t)}`}const wf=(e,t)=>{const n=e.w/2,o=e.h/2,r=e.x+n,i=e.y+o,a=t.x-r,s=t.y-i;if(a===0&&s===0)return{x:r,y:i,side:"right"};const c=Math.abs(a),l=Math.abs(s),h=c===0?Number.POSITIVE_INFINITY:n/c,d=l===0?Number.POSITIVE_INFINITY:o/l,p=Math.min(h,d),y=r+a*p,g=i+s*p,k=c*o>=l*n?a>=0?"right":"left":s>=0?"bottom":"top";return{x:y,y:g,side:k}},uO=(e,t)=>{const n=Math.max(0,Math.min(e.w,t.x-e.x)),o=Math.max(0,Math.min(e.h,t.y-e.y)),r=n,i=e.w-n,a=o,s=e.h-o,c=Math.min(r,i,a,s),l=e.h===0?0:o/e.h,h=e.w===0?0:n/e.w;return c===r?{side:"left",t:l}:c===i?{side:"right",t:l}:c===a?{side:"top",t:h}:{side:"bottom",t:h}},gz=(e,t)=>{const n=Math.min(1,Math.max(0,t.t));let o,r;switch(t.side){case"top":o=e.x+n*e.w,r=e.y;break;case"bottom":o=e.x+n*e.w,r=e.y+e.h;break;case"left":o=e.x,r=e.y+n*e.h;break;case"right":o=e.x+e.w,r=e.y+n*e.h;break}return{x:o,y:r,side:t.side}},cOe=(e,t)=>{const n=o=>Math.min(1,Math.max(0,o));switch(t.side){case"top":case"bottom":return{side:t.side,t:e.w===0?0:n((t.x-e.x)/e.w)};case"left":case"right":return{side:t.side,t:e.h===0?0:n((t.y-e.y)/e.h)}}},lOe=(e,t)=>{const n=(e==null?void 0:e.fallback)??{x:0,y:0,side:"right"},o=(t==null?void 0:t.fallback)??{x:0,y:0,side:"left"};if(!e||!t)return{source:n,target:o};const r={x:e.box.x+e.box.w/2,y:e.box.y+e.box.h/2},i={x:t.box.x+t.box.w/2,y:t.box.y+t.box.h/2},a=e.pin?gz(e.box,e.pin):e.autoPicked===!1?e.fallback:wf(e.box,i),s=t.pin?gz(t.box,t.pin):t.autoPicked===!1?t.fallback:wf(t.box,r);return{source:a,target:s}};function Pa({initialValue:e,onCommit:t,onExit:n,multiline:o=!1,commitMode:r="enter-commits",required:i=!1,field:a,className:s,style:c,placeholder:l,selectOnMount:h=!0}){const d=o||r==="blur-only",p=m.useRef(null),[y,g]=m.useState(!1),[k,x]=m.useState(e.length===0),v=m.useRef(oOe(400)),M=m.useRef(e),w=m.useRef(!1);m.useEffect(()=>{const E=p.current;if(!E)return;E.textContent=e,E.focus();const V=window.getSelection();if(V){const T=document.createRange();T.selectNodeContents(E),h||T.collapse(!1),V.removeAllRanges(),V.addRange(T)}const $=v.current;return()=>{$.flush()}},[]);const b=()=>{const E=p.current;return E?d?E.innerText:E.textContent??"":""},C=E=>{v.current.cancel(),E!==M.current&&(M.current=E,t(E))},_=()=>{const E=b();if(x(E.length===0),i&&E.trim().length===0){v.current.cancel();return}v.current.schedule(()=>C(E))},S=()=>{v.current.cancel();const E=b();if(i&&E.trim().length===0){const V=p.current;V&&(V.textContent=e),g(!0),setTimeout(()=>g(!1),320),n();return}C(E),n()},L=()=>{v.current.cancel();const E=p.current;E&&(E.textContent=e),n()},j=E=>{if(E.stopPropagation(),E.nativeEvent.stopPropagation(),E.key==="Enter"){if(r==="blur-only"||o&&E.shiftKey){E.preventDefault(),document.execCommand("insertText",!1,`
8469
- `);return}E.preventDefault(),w.current=!0,S();return}E.key==="Escape"&&(E.preventDefault(),w.current=!0,L())},I=E=>{E.preventDefault();const V=E.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},R=()=>{if(w.current){w.current=!1;return}const E=p.current;!E||!E.isConnected||S()};return f.jsx("div",{ref:p,"data-testid":"inline-edit-input","data-field":a,"data-placeholder":l,role:"textbox",tabIndex:0,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onInput:_,onKeyDown:j,onPaste:I,onBlur:R,onMouseDown:E=>E.stopPropagation(),onClick:E=>E.stopPropagation(),onDoubleClick:E=>E.stopPropagation(),style:c,className:ee("nodrag nopan nowheel sf:block sf:w-full sf:bg-transparent sf:p-0 sf:text-inherit sf:outline-none","sf:whitespace-pre-wrap sf:wrap-break-word",k&&l?"inline-edit-empty":"",y?"inline-edit-shake":"",s)})}const _ee=8,SW=12,LW={height:`${_ee}px`,borderColor:"transparent"},NW={width:`${_ee}px`,borderColor:"transparent"},dOe={width:`${SW}px`,height:`${SW}px`,background:"transparent",border:"none"},uOe={width:"calc(10px / var(--rf-zoom, 1))",height:"calc(10px / var(--rf-zoom, 1))",background:"hsl(var(--background))",border:"calc(1px / var(--rf-zoom, 1)) solid hsl(var(--primary) / 0.6)",borderRadius:"calc(2px / var(--rf-zoom, 1))",zIndex:1},hOe=[{position:"top",style:LW},{position:"bottom",style:LW},{position:"left",style:NW},{position:"right",style:NW}],fOe=["top-left","top-right","bottom-left","bottom-right"],IW={pointerEvents:"none",cursor:"default"};function su({visible:e,minWidth:t=80,minHeight:n=40,onResizeStart:o,onResize:r,onResizeEnd:i,cornerVariant:a="invisible"}){const s=a==="visible"?uOe:dOe,c=h=>e?h:{...h,...IW},l=e?s:{...s,opacity:0,...IW};return f.jsxs(f.Fragment,{children:[hOe.map(({position:h,style:d})=>f.jsx(_W,{position:h,variant:Ja.Line,minWidth:t,minHeight:n,style:c(d),onResizeStart:o,onResize:r,onResizeEnd:i,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h)),fOe.map(h=>f.jsx(_W,{position:h,variant:Ja.Handle,minWidth:t,minHeight:n,style:l,autoScale:!1,onResizeStart:o,onResize:r,onResizeEnd:i,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h))]})}function AW(e){const t=e==null?void 0:e.sourceEvent;return{metaKey:t==null?void 0:t.metaKey,ctrlKey:t==null?void 0:t.ctrlKey}}function pOe(e,t){return{left:t.x!==e.x,right:t.x+t.width!==e.x+e.width,top:t.y!==e.y,bottom:t.y+t.height!==e.y+e.height}}function yOe(e){return!!(e.left||e.right||e.top||e.bottom)}function cu(e){const{onResize:t,onResizeEnd:n,onResizeFinal:o,setResizing:r,nodeId:i,alignment:a}=e,[s,c]=m.useState(!1),l=m.useRef(null),h=m.useRef(!1),d=m.useRef(t),p=m.useRef(n),y=m.useRef(o),g=m.useRef(r),k=m.useRef(a),x=m.useRef(i);m.useEffect(()=>{d.current=t},[t]),m.useEffect(()=>{p.current=n},[n]),m.useEffect(()=>{y.current=o},[o]),m.useEffect(()=>{g.current=r},[r]),m.useEffect(()=>{k.current=a},[a]),m.useEffect(()=>{x.current=i},[i]);const v=m.useCallback((b,C)=>{var _;c(!0),(_=g.current)==null||_.call(g,!0),h.current=!1,l.current=C?{x:C.x,y:C.y,width:C.width,height:C.height}:null},[]),M=m.useCallback((b,C)=>{var I;let _={x:C.x,y:C.y,width:C.width,height:C.height};const S=k.current,L=x.current,j=l.current;if(S&&L&&j){if(!h.current){const R=pOe(j,C);yOe(R)&&(S.beginResize(L,R),h.current=!0)}if(h.current){const{snappedRect:R}=S.applyResizeSnap({id:L,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));_={x:R.x,y:R.y,width:R.w,height:R.h}}}(I=d.current)==null||I.call(d,_)},[]),w=m.useCallback((b,C)=>{var R,E,V,$;c(!1),(R=g.current)==null||R.call(g,!1);const _=l.current;l.current=null;const S=h.current;h.current=!1;const L=k.current,j=x.current;if(_&&_.width===C.width&&_.height===C.height){S&&(L==null||L.endResize());return}let I={x:C.x,y:C.y,width:C.width,height:C.height};if(L&&j&&S){const{snappedRect:T}=L.applyResizeSnap({id:j,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));I={x:T.x,y:T.y,width:T.w,height:T.h}}L==null||L.endResize(),(E=d.current)==null||E.call(d,I),(V=p.current)==null||V.call(p,I),_&&(($=y.current)==null||$.call(y,I,_))},[]);return{isResizing:s,onResizeStart:v,onResizeEvent:M,onResizeEnd:w}}const G0={width:48,height:48},mOe=24,gOe=24,Bp="sf:opacity-0 sf:transition-opacity";function kOe(e){return Ct(e,"text").color??"currentColor"}function vOe({id:e,data:t,selected:n,isConnectable:o}){const{onResizeStart:r,onResizeEvent:i,onResizeEnd:a}=cu({onResize:x=>{var v;return(v=t.onResize)==null?void 0:v.call(t,e,x)},onResizeEnd:x=>{var v;return(v=t.onResizeEnd)==null?void 0:v.call(t,e,x)},setResizing:t.setResizing,nodeId:e,alignment:t.resizeAlignment}),s=t.width!==void 0||t.height!==void 0,c=!!t.onNameChange,[l,h]=m.useState(!1),{studioBaseUrl:d}=m.useContext(Tf),p=kOe(t.color),y=t.strokeWidth??2,g={...s?{}:{width:G0.width,height:G0.height}},k=x=>{!c||l||(x.stopPropagation(),h(!0))};return f.jsxs("div",{className:ee("sf:group sf:relative",s?"sf:h-full sf:w-full":""),style:g,"data-testid":"icon-node","data-node-type":"icon",onDoubleClick:k,children:[f.jsx(su,{visible:!!n&&!!t.onResize&&!l,cornerVariant:"visible",minWidth:mOe,minHeight:gOe,onResizeStart:r,onResize:i,onResizeEnd:a}),f.jsx(lt,{type:"target",position:ue.Top,id:"t",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"target",position:ue.Left,id:"l",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(Qa,{iconId:t.icon,studioBaseUrl:d,color:p,strokeWidth:y,absoluteStrokeWidth:!0,ariaLabel:t.alt,className:"sf:block sf:h-full sf:w-full sf:pointer-events-none sf:select-none"}),l&&c?f.jsx("div",{className:"sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:text-center sf:text-xs sf:text-muted-foreground",children:f.jsx(Pa,{initialValue:t.name??"",field:"icon-node-label",onCommit:x=>{var v;return(v=t.onNameChange)==null?void 0:v.call(t,e,x)},onExit:()=>h(!1),placeholder:"Label"})}):t.name?f.jsx("span",{"data-testid":"icon-node-label",className:"sf:pointer-events-none sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:truncate sf:text-center sf:text-xs sf:text-muted-foreground sf:select-none",children:t.name}):null,f.jsx(lt,{type:"source",position:ue.Right,id:"r",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"source",position:ue.Bottom,id:"b",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")})]})}function xOe(e,t){return e.selected===t.selected&&e.data===t.data&&e.width===t.width&&e.height===t.height}const wOe=m.memo(vOe,xOe),Cee="seeflow:icon-recents",MOe=16;function See(){if(typeof window>"u")return[];try{const e=window.localStorage.getItem(Cee);if(e===null)return[];const t=JSON.parse(e);return Array.isArray(t)?t.every(n=>typeof n=="string")?t:[]:[]}catch{return[]}}function bOe(e){if(!(typeof window>"u"))try{const n=See().filter(r=>r!==e),o=[e,...n].slice(0,MOe);window.localStorage.setItem(Cee,JSON.stringify(o))}catch{}}const _Oe=typeof navigator<"u"&&typeof navigator.platform=="string"&&navigator.platform.toLowerCase().includes("mac"),COe=e=>e.length===1?e.toUpperCase():e==="Escape"?"Esc":e,Ft=(e,t=_Oe)=>{const n=COe(e.key);if(t){let r="";return e.meta&&(r+="⌘"),e.alt&&(r+="⌥"),e.shift&&(r+="⇧"),`${r}${n}`}const o=[];return e.meta&&o.push("Ctrl"),e.shift&&o.push("Shift"),e.alt&&o.push("Alt"),o.push(n),o.join("+")},vq=[{id:"tool.select",label:"Select tool",description:"Switch to the selection tool",category:"Tools",shortcut:Ft({key:"V"})},{id:"tool.hand",label:"Hand tool",description:"Pan the canvas; node interaction is suspended while armed",category:"Tools",shortcut:Ft({key:"H"})},{id:"tool.rectangle",label:"Rectangle",description:"Draw rectangle nodes",category:"Tools",shortcut:Ft({key:"R"})},{id:"tool.ellipse",label:"Ellipse",description:"Draw ellipse nodes",category:"Tools",shortcut:Ft({key:"O"})},{id:"tool.text",label:"Text",description:"Add a text node",category:"Tools",shortcut:Ft({key:"T"})},{id:"tool.sticky",label:"Sticky note",description:"Add a sticky note",category:"Tools",shortcut:Ft({key:"S"})},{id:"tool.database",label:"Database",description:"Add a database node",category:"Tools",shortcut:Ft({key:"D"})},{id:"tool.server",label:"Server",description:"Add a server node",category:"Tools"},{id:"tool.user",label:"User",description:"Add a user node",category:"Tools"},{id:"tool.queue",label:"Queue",description:"Add a queue node",category:"Tools"},{id:"tool.cloud",label:"Cloud",description:"Add a cloud node",category:"Tools"},{id:"tool.diamond",label:"Diamond",description:"Add a diamond node (decision / gateway)",category:"Tools"},{id:"tool.hexagon",label:"Hexagon",description:"Add a hexagon node (microservice)",category:"Tools"},{id:"tool.triangle",label:"Triangle",description:"Add a triangle node (warning / hierarchy)",category:"Tools"},{id:"tool.parallelogram",label:"Parallelogram",description:"Add a parallelogram node (data / IO in flowcharts)",category:"Tools"},{id:"tool.document",label:"Document",description:"Add a document node (file / report)",category:"Tools"},{id:"tool.linkflow",label:"Link node",description:"Add a link node and pick a target flow",category:"Tools"},{id:"edit.undo",label:"Undo",category:"Edit",shortcut:Ft({meta:!0,key:"Z"}),enabled:e=>e.canUndo},{id:"edit.redo",label:"Redo",category:"Edit",shortcut:Ft({meta:!0,shift:!0,key:"Z"}),enabled:e=>e.canRedo},{id:"edit.copy",label:"Copy",category:"Edit",shortcut:Ft({meta:!0,key:"C"}),enabled:e=>e.hasSelection},{id:"edit.paste",label:"Paste",category:"Edit",shortcut:Ft({meta:!0,key:"V"}),enabled:e=>e.hasClipboard},{id:"edit.duplicate",label:"Duplicate",category:"Edit",shortcut:Ft({meta:!0,key:"D"}),enabled:e=>e.hasSelection},{id:"edit.delete",label:"Delete",category:"Edit",shortcut:Ft({key:"Delete"}),enabled:e=>e.hasSelection},{id:"edit.selectAll",label:"Select all",category:"Edit",shortcut:Ft({meta:!0,key:"A"})},{id:"view.fit",label:"Fit view",description:"Fit everything in the viewport",category:"View",shortcut:Ft({meta:!0,key:"0"})},{id:"view.zoomIn",label:"Zoom in",category:"View",shortcut:Ft({meta:!0,key:"="})},{id:"view.zoomOut",label:"Zoom out",category:"View",shortcut:Ft({meta:!0,key:"-"})},{id:"view.zoom100",label:"Zoom to 100%",category:"View",shortcut:Ft({key:"1"})},{id:"view.zoomToSelection",label:"Zoom to selection",category:"View",shortcut:Ft({key:"F"}),enabled:e=>e.hasSelection},{id:"layout.tidy",label:"Tidy layout",description:"Auto-layout the canvas or current selection",category:"Layout",shortcut:Ft({meta:!0,shift:!0,key:"L"})},{id:"selection.deselect",label:"Deselect",description:"Clear selection and exit draw mode",category:"Selection",shortcut:Ft({key:"Escape"})},{id:"help.commandPalette",label:"Open command palette",category:"Help",shortcut:Ft({meta:!0,key:"P"})},{id:"export.pdf",label:"Export to PDF",description:"Download the current canvas as a PDF",category:"File",enabled:e=>e.canExportDemo},{id:"export.png",label:"Export as image",description:"Download the current canvas as a PNG",category:"File",enabled:e=>e.canExportDemo}],iD=e=>{const t=vq.find(n=>n.id===e);return t?t.shortcut?`${t.label} (${t.shortcut})`:t.label:""},SOe=1,LOe=10,NOe=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return null;const t=e.shiftKey?LOe:SOe;switch(e.key){case"ArrowLeft":return{dx:-t,dy:0};case"ArrowRight":return{dx:t,dy:0};case"ArrowUp":return{dx:0,dy:-t};case"ArrowDown":return{dx:0,dy:t};default:return null}},IOe=e=>{if(!(e.metaKey||e.ctrlKey)||e.altKey)return null;switch(e.key){case"0":return"fit";case"=":case"+":return"in";case"-":case"_":return"out";default:return null}},AOe=(e,t,n)=>{if(t.length===0)return[];const o=new Map(n.map(i=>[i.id,i])),r=[];for(const i of t){const a=o.get(i);a&&r.push({id:i,position:{x:a.position.x+e.dx,y:a.position.y+e.dy}})}return r},EOe=({event:e,isEditableActive:t,hasNodes:n,hasConnectors:o,selectedIds:r,hasClipboard:i})=>{if(!(e.metaKey||e.ctrlKey))return{type:"noop"};if(e.shiftKey||e.altKey)return{type:"noop"};const a=e.key.toLowerCase();return a!=="a"&&a!=="c"&&a!=="v"&&a!=="d"?{type:"noop"}:t?{type:"noop"}:a==="a"?!n&&!o?{type:"noop"}:{type:"selectAll"}:a==="c"?r.length===0?{type:"noop"}:{type:"copy",ids:r}:a==="d"?r.length===0?{type:"noop"}:{type:"duplicate",ids:r}:i?{type:"paste"}:{type:"noop"}},jOe=(e,t)=>{if(t.isEditableActive||!(e.metaKey||e.ctrlKey)||e.altKey)return null;const n=e.key.toLowerCase();return n==="z"?e.shiftKey?"redo":"undo":n==="y"&&!e.shiftKey?"redo":null},$Oe=e=>{if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return null;switch(e.key.toLowerCase()){case"v":return"select";case"h":return"hand";case"r":return"rectangle";case"o":return"ellipse";case"t":return"text";case"s":return"sticky";case"d":return"database";default:return null}},ji="seeflow",Lee=e=>`${e}:last-used-style:v1`,aD=()=>({node:{},connector:{}}),sD=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),xq=e=>{var t;try{const n=(t=globalThis.localStorage)==null?void 0:t.getItem(Lee(e));if(!n)return aD();const o=JSON.parse(n);if(!sD(o))return aD();const r=sD(o.node)?o.node:{},i=sD(o.connector)?o.connector:{};return{node:r,connector:i}}catch{return aD()}},Nee=(e,t)=>{var n;try{(n=globalThis.localStorage)==null||n.setItem(Lee(e),JSON.stringify(t))}catch{}},c0=e=>xq(e),EW=(e,t)=>{const{alt:n,...o}=t,r={...o};r.borderSize!==void 0&&r.borderWidth===void 0?r.borderWidth=r.borderSize:r.borderWidth!==void 0&&r.borderSize===void 0&&(r.borderSize=r.borderWidth);const i=xq(e);Nee(e,{...i,node:{...i.node,...r}})},POe=(e,t)=>{const n=xq(e);Nee(e,{...n,connector:{...n.connector,...t}})},wq=1,jW=17,hO=(e,t)=>{if(!e)return{};const n={};for(const o of t)e[o]!==void 0&&(n[o]=e[o]);return n},zOe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","cornerRadius","shadow"],ROe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","shadow"],TOe=["fontSize"],DOe=["borderColor","borderWidth","borderStyle","shadow"];function $W(e,t,n){if(e==="text")return{width:t.width,height:t.height,fontSize:jW,...hO(n,TOe)};const o=e==="ellipse"?ROe:zOe;return{width:t.width,height:t.height,borderSize:wq,fontSize:jW,...hO(n,o)}}function HOe(e,t,n){return{path:e,width:t.width,height:t.height,borderWidth:wq,...hO(n,DOe)}}const wn=async(e,t,n,o,r)=>{const i={method:t},a={...o??{}};r!==void 0&&(a["content-type"]="application/json",i.body=JSON.stringify(r)),Object.keys(a).length>0&&(i.headers=a);const s=await e(n,i);if(!s.ok){let c=null;try{c=await s.json()}catch{}throw new Error((c==null?void 0:c.error)??`${t} ${n} → ${s.status}`)}return await s.json()},OOe=e=>{const{baseUrl:t,project:n,flow:o}=e,r=e.fetch??globalThis.fetch.bind(globalThis),i=e.EventSource??globalThis.EventSource,a=e.headers,s=`${t}/api/projects/${encodeURIComponent(n)}`,c=`${s}/flows/${encodeURIComponent(o)}`,l=`${t}/api/icons`;return{async createNode(d){const p=await wn(r,"POST",`${c}/nodes`,a,d);return{id:p.id,node:p.node}},async updateNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}`,a,p)},async updateNodePosition(d,p){return await wn(r,"PATCH",`${c}/nodes/${d}/position`,a,p)},async deleteNode(d){await wn(r,"DELETE",`${c}/nodes/${d}`,a)},async reorderNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}/order`,a,p)},async createConnector(d){return{id:(await wn(r,"POST",`${c}/connectors`,a,d)).id}},async updateConnector(d,p){await wn(r,"PATCH",`${c}/connectors/${d}`,a,p)},async deleteConnector(d){await wn(r,"DELETE",`${c}/connectors/${d}`,a)},async uploadImage(d,p,y){const g=new FormData;g.append("file",p),g.append("filename",y);const k=`${c}/nodes/${encodeURIComponent(d)}/files/upload`,x={method:"POST",body:g};a&&(x.headers={...a});const v=await r(k,x);if(!v.ok){let M=null;try{M=await v.json()}catch{}throw new Error((M==null?void 0:M.error)??`POST ${k} → ${v.status}`)}return await v.json()},async playAction(d){return await wn(r,"POST",`${c}/play/${d}`,a,{})},async openFile(d){await wn(r,"POST",`${s}/files/open`,a,{path:d})},async revealFile(d){await wn(r,"POST",`${s}/files/reveal`,a,{path:d})},async computeLayout(d,p){const y=await wn(r,"POST",`${t}/api/layout`,a,{nodes:d,edges:p});return{nodes:y.nodes,connectors:y.connectors}},icons:{async listPacks(){return(await wn(r,"GET",`${l}/packs`,a)).packs},async install(d,p){return{jobId:(await wn(r,"POST",`${l}/install`,a,{vendor:d,acceptTerms:p.acceptTerms??!1})).jobId}},subscribeJob(d,p){const y=`${l}/jobs/${encodeURIComponent(d)}/events`,g=new i(y);return g.onmessage=k=>{try{p(JSON.parse(k.data))}catch(x){console.error("icons.subscribeJob: failed to parse SSE payload",x)}},()=>g.close()},async remove(d){await wn(r,"DELETE",`${l}/packs/${encodeURIComponent(d)}`,a)},async getLicense(d){const p=await wn(r,"GET",`${l}/licenses/${encodeURIComponent(d)}`,a);return{summary:p.summary,url:p.url,requiresAcceptance:p.requiresAcceptance}}}}},FOe=500,qOe=500,VOe=2e3,BOe=(e,t)=>{if(!e&&!t)return;if(!e)return{...t};if(!t)return{...e};const n={...t};for(const[o,r]of Object.entries(e))n[o]=r;return n},PW=(e,t,n)=>{const o=Date.now(),r=FOe,i=qOe,{stack:a,cursor:s}=e;if(t.coalesceKey&&s>0){const h=a[s-1];if(h&&h.coalesceKey===t.coalesceKey&&o-h.capturedAt<=i){const d=a.slice(0,s);return d[s-1]={...h,do:t.do,capturedAt:o,beforeFields:BOe(h.beforeFields,t.beforeFields)},{stack:d,cursor:s}}}const c=a.slice(0,s);c.push({...t,capturedAt:o});let l=s+1;for(;c.length>r;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},UOe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},WOe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iee=()=>({stack:[],cursor:0}),zW=e=>e.cursor===e.stack.length?e:{stack:e.stack.slice(0,e.cursor),cursor:e.cursor},GOe=(e,t,n=Date.now(),o=VOe)=>n-t>o?Iee():e,KOe=new Set(["borderColor","backgroundColor","borderSize","borderWidth","borderStyle","fontSize","textAlign","cornerRadius","shadow","color","strokeWidth","target"]);function XOe(e,t){let n={stack:[],cursor:0},o=0;const r=new Set;let i=null;const a=()=>({canUndo:n.cursor>0,canRedo:n.cursor<n.stack.length}),s=()=>{const k=a();for(const x of r)x(k)},c=()=>{if(i){o=Date.now();return}const k=zW(n);o=Date.now(),k!==n&&(n=k,s())},l=k=>{if(i){i.ops.push({redo:k.do,undo:k.undo});return}n=PW(n,{...k,capturedAt:Date.now()}),s()},h={createNode:async k=>{c();const x=await e.createNode(k);return l({do:async()=>{await e.createNode({...k,id:x.id})},undo:async()=>{await e.deleteNode(x.id)}}),x},updateNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateNode(k,x);return}const w={},b=M.data??{};for(const _ of Object.keys(x))if(_==="position")w[_]=M.position;else if(_==="type")w[_]=M.type;else{const S=b[_];w[_]=S===void 0&&KOe.has(_)?null:S}await e.updateNode(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateNode(k,x)},undo:async()=>{await e.updateNode(k,w)},coalesceKey:`update:${k}:${C}`,beforeFields:w})},updateNodePosition:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(C=>C.id===k),w=M==null?void 0:M.position,b=await e.updateNodePosition(k,x);return w&&l({do:async()=>{await e.updateNodePosition(k,x)},undo:async()=>{await e.updateNodePosition(k,w)},coalesceKey:`pos:${k}`}),b},deleteNode:async k=>{c();const{nodes:x,connectors:v}=t(),M=x.find(b=>b.id===k);if(!M){await e.deleteNode(k);return}const w=v.filter(b=>b.source===k||b.target===k);await e.deleteNode(k),l({do:async()=>{await e.deleteNode(k)},undo:async()=>{await e.createNode({id:M.id,type:M.type,position:M.position,data:M.data??{}});for(const b of w)try{await e.createConnector({id:b.id,source:b.source,target:b.target,sourceHandle:b.sourceHandle,targetHandle:b.targetHandle,sourceHandleAutoPicked:b.sourceHandleAutoPicked,targetHandleAutoPicked:b.targetHandleAutoPicked,sourcePin:b.sourcePin,targetPin:b.targetPin,label:b.label,style:b.style,color:b.color,direction:b.direction,eventName:b.eventName,queueName:b.queueName,method:b.method,url:b.url})}catch(C){console.warn(`[seeflow/canvas] failed to restore connector ${b.id} during deleteNode undo:`,C)}}})},reorderNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.findIndex(w=>w.id===k);if(M<0){await e.reorderNode(k,x);return}await e.reorderNode(k,x),l({do:async()=>{await e.reorderNode(k,x)},undo:async()=>{await e.reorderNode(k,{op:"toIndex",index:M})}})},createConnector:async k=>{c();const x=await e.createConnector(k);return l({do:async()=>{await e.createConnector({...k,id:x.id})},undo:async()=>{await e.deleteConnector(x.id)}}),x},updateConnector:async(k,x)=>{c();const{connectors:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateConnector(k,x);return}const w={},b=M;for(const _ of Object.keys(x))w[_]=b[_];await e.updateConnector(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateConnector(k,x)},undo:async()=>{await e.updateConnector(k,w)},coalesceKey:`update:conn:${k}:${C}`,beforeFields:w})},deleteConnector:async k=>{c();const{connectors:x}=t(),v=x.find(M=>M.id===k);if(!v){await e.deleteConnector(k);return}await e.deleteConnector(k),l({do:async()=>{await e.deleteConnector(k)},undo:async()=>{await e.createConnector({id:v.id,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,sourceHandleAutoPicked:v.sourceHandleAutoPicked,targetHandleAutoPicked:v.targetHandleAutoPicked,sourcePin:v.sourcePin,targetPin:v.targetPin,label:v.label,style:v.style,color:v.color,direction:v.direction,eventName:v.eventName,queueName:v.queueName,method:v.method,url:v.url})}})},uploadImage:(k,x,v)=>e.uploadImage(k,x,v),...e.playAction?{playAction:k=>e.playAction(k)}:{},...e.openFile?{openFile:k=>e.openFile(k)}:{},...e.revealFile?{revealFile:k=>e.revealFile(k)}:{},...e.computeLayout?{computeLayout:(k,x)=>e.computeLayout(k,x)}:{},...e.icons?{icons:e.icons}:{}};let d=Promise.resolve();const p=async()=>{const k=UOe(n);k.entry&&(n=k.state,s(),await k.entry.undo())},y=async()=>{const k=WOe(n);k.entry&&(n=k.state,s(),await k.entry.do())};return{adapter:h,history:{get canUndo(){return n.cursor>0},get canRedo(){return n.cursor<n.stack.length},undo:()=>{o=Date.now();const k=d.then(p);return d=k.then(()=>{},()=>{}),k},redo:()=>{o=Date.now();const k=d.then(y);return d=k.then(()=>{},()=>{}),k},clear:()=>{n=Iee(),s()},markExternalChange:()=>{const k=GOe(n,o);k!==n&&(n=k,s())},batch:async(k,x,v)=>{if(i)return x();const M=zW(n);o=Date.now(),M!==n&&(n=M,s());const w={name:k,ops:[]};i=w;try{const b=await x();if(i=null,w.ops.length>0){const C=w.ops.slice();n=PW(n,{do:async()=>{for(const _ of C)await _.redo()},undo:async()=>{for(let _=C.length-1;_>=0;_--)await C[_].undo()},coalesceKey:v==null?void 0:v.coalesceKey,capturedAt:Date.now()}),s()}return b}catch(b){i=null;for(let C=w.ops.length-1;C>=0;C--)try{await w.ops[C].undo()}catch(_){console.warn(`[seeflow/canvas] batch '${k}' rollback inverse rejected:`,_)}throw b}},subscribe:k=>(r.add(k),k(a()),()=>{r.delete(k)})}}}function Aee(e,t,n){let o=null,r=!1;const i=new ResizeObserver(()=>{r||(o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!r&&n()},t))});return i.observe(e),()=>{r||(r=!0,o!==null&&(clearTimeout(o),o=null),i.disconnect())}}var ct;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const a of r)i[a]=a;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),a={};for(const s of i)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.push(a);return i},e.find=(r,i)=>{for(const a of r)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function o(r,i=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=o,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ct||(ct={}));var RW;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(RW||(RW={}));const Ce=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Na=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},ye=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ui extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},o={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)o._errors.push(n(a));else{let s=o,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return r(this),o}static assert(t){if(!(t instanceof Ui))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},o=[];for(const r of this.issues)if(r.path.length>0){const i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else o.push(t(r));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}Ui.create=e=>new Ui(e);const fO=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let ZOe=fO;function YOe(){return ZOe}const QOe=e=>{const{data:t,path:n,errorMaps:o,issueData:r}=e,i=[...n,...r.path||[]],a={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let s="";const c=o.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...r,path:i,message:s}};function we(e,t){const n=YOe(),o=QOe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fO?void 0:fO].filter(r=>!!r)});e.common.issues.push(o)}class Rn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const o=[];for(const r of n){if(r.status==="aborted")return Ve;r.status==="dirty"&&t.dirty(),o.push(r.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,n){const o=[];for(const r of n){const i=await r.key,a=await r.value;o.push({key:i,value:a})}return Rn.mergeObjectSync(t,o)}static mergeObjectSync(t,n){const o={};for(const r of n){const{key:i,value:a}=r;if(i.status==="aborted"||a.status==="aborted")return Ve;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(o[i.value]=a.value)}return{status:t.value,value:o}}}const Ve=Object.freeze({status:"aborted"}),Jh=e=>({status:"dirty",value:e}),Ho=e=>({status:"valid",value:e}),TW=e=>e.status==="aborted",DW=e=>e.status==="dirty",K0=e=>e.status==="valid",kz=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));class ni{constructor(t,n,o,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=o,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HW=(e,t)=>{if(K0(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ui(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:o,description:r}=e;if(t&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,s)=>{const{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??o??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}class tt{get description(){return this._def.description}_getType(t){return Na(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Rn,ctx:{common:t.parent.common,data:t.data,parsedType:Na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(kz(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const o=this.safeParse(t,n);if(o.success)return o.data;throw o.error}safeParse(t,n){const o={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)},r=this._parseSync({data:t,path:o.path,parent:o});return HW(o,r)}"~validate"(t){var o,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return K0(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(r=(o=i==null?void 0:i.message)==null?void 0:o.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>K0(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const o=await this.safeParseAsync(t,n);if(o.success)return o.data;throw o.error}async safeParseAsync(t,n){const o={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)},r=this._parse({data:t,path:o.path,parent:o}),i=await(kz(r)?r:Promise.resolve(r));return HW(o,i)}refine(t,n){const o=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const a=t(r),s=()=>i.addIssue({code:ye.custom,...o(r)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((o,r)=>t(o)?!0:(r.addIssue(typeof n=="function"?n(o,r):n),!1))}_refinement(t){return new Y0({schema:this,typeName:Oe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ga.create(this,this._def)}nullable(){return Q0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jr.create(this)}promise(){return bz.create(this,this._def)}or(t){return xz.create([this,t],this._def)}and(t){return wz.create(this,t,this._def)}transform(t){return new Y0({...Ze(this._def),schema:this,typeName:Oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new kO({...Ze(this._def),innerType:this,defaultValue:n,typeName:Oe.ZodDefault})}brand(){return new wFe({typeName:Oe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vO({...Ze(this._def),innerType:this,catchValue:n,typeName:Oe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mq.create(this,t)}readonly(){return xO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JOe=/^c[^\s-]{8,}$/i,eFe=/^[0-9a-z]+$/,tFe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nFe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oFe=/^[a-z0-9_-]{21}$/i,rFe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,iFe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aFe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sFe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cD;const cFe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lFe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,dFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hFe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fFe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Eee="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pFe=new RegExp(`^${Eee}$`);function jee(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yFe(e){return new RegExp(`^${jee(e)}$`)}function mFe(e){let t=`${Eee}T${jee(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gFe(e,t){return!!((t==="v4"||!t)&&cFe.test(e)||(t==="v6"||!t)&&dFe.test(e))}function kFe(e,t){if(!rFe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const o=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(o));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function vFe(e,t){return!!((t==="v4"||!t)&&lFe.test(e)||(t==="v6"||!t)&&uFe.test(e))}class Di extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.string,received:i.parsedType}),Ve}const o=new Rn;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,s=t.data.length<i.value;(a||s)&&(r=this._getOrReturnCtx(t,r),a?we(r,{code:ye.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&we(r,{code:ye.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")aFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"email",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")cD||(cD=new RegExp(sFe,"u")),cD.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"emoji",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")nFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"uuid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")oFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"nanoid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")JOe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")eFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid2",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")tFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ulid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),we(r,{validation:"url",code:ye.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"regex",code:ye.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?mFe(i).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?pFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?yFe(i).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?iFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"duration",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?gFe(t.data,i.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ip",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?kFe(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"jwt",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?vFe(t.data,i.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cidr",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?hFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?fFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64url",code:ye.invalid_string,message:i.message}),o.dirty()):ct.assertNever(i);return{status:o.value,value:t.data}}_regex(t,n,o){return this.refinement(r=>t.test(r),{validation:n,code:ye.invalid_string,...Le.errToObj(o)})}_addCheck(t){return new Di({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new Di({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Di.create=e=>new Di({checks:[],typeName:Oe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});function xFe(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,r=n>o?n:o,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}class X0 extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.number,received:i.parsedType}),Ve}let o;const r=new Rn;for(const i of this._def.checks)i.kind==="int"?ct.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?xFe(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_finite,message:i.message}),r.dirty()):ct.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new X0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new X0({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(n)&&Number.isFinite(t)}}X0.create=e=>new X0({checks:[],typeName:Oe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Mf extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let o;const r=new Rn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ct.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new Mf({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new Mf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Mf.create=e=>new Mf({checks:[],typeName:Oe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});class pO extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.boolean,received:o.parsedType}),Ve}return Ho(t.data)}}pO.create=e=>new pO({typeName:Oe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class vz extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.date,received:i.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_date}),Ve}const o=new Rn;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):ct.assertNever(i);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vz({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}vz.create=e=>new vz({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Oe.ZodDate,...Ze(e)});class OW extends tt{_parse(t){if(this._getType(t)!==Ce.symbol){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.symbol,received:o.parsedType}),Ve}return Ho(t.data)}}OW.create=e=>new OW({typeName:Oe.ZodSymbol,...Ze(e)});class FW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.undefined,received:o.parsedType}),Ve}return Ho(t.data)}}FW.create=e=>new FW({typeName:Oe.ZodUndefined,...Ze(e)});class qW extends tt{_parse(t){if(this._getType(t)!==Ce.null){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.null,received:o.parsedType}),Ve}return Ho(t.data)}}qW.create=e=>new qW({typeName:Oe.ZodNull,...Ze(e)});class VW extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ho(t.data)}}VW.create=e=>new VW({typeName:Oe.ZodAny,...Ze(e)});class yO extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ho(t.data)}}yO.create=e=>new yO({typeName:Oe.ZodUnknown,...Ze(e)});class es extends tt{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.never,received:n.parsedType}),Ve}}es.create=e=>new es({typeName:Oe.ZodNever,...Ze(e)});class BW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.void,received:o.parsedType}),Ve}return Ho(t.data)}}BW.create=e=>new BW({typeName:Oe.ZodVoid,...Ze(e)});class Jr extends tt{_parse(t){const{ctx:n,status:o}=this._processInputParams(t),r=this._def;if(n.parsedType!==Ce.array)return we(n,{code:ye.invalid_type,expected:Ce.array,received:n.parsedType}),Ve;if(r.exactLength!==null){const a=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(a||s)&&(we(n,{code:a?ye.too_big:ye.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),o.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(we(n,{code:ye.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),o.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(we(n,{code:ye.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>r.type._parseAsync(new ni(n,a,n.path,s)))).then(a=>Rn.mergeArray(o,a));const i=[...n.data].map((a,s)=>r.type._parseSync(new ni(n,a,n.path,s)));return Rn.mergeArray(o,i)}get element(){return this._def.type}min(t,n){return new Jr({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Jr({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Jr({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Jr.create=(e,t)=>new Jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Oe.ZodArray,...Ze(t)});function qu(e){if(e instanceof Xt){const t={};for(const n in e.shape){const o=e.shape[n];t[n]=Ga.create(qu(o))}return new Xt({...e._def,shape:()=>t})}else return e instanceof Jr?new Jr({...e._def,type:qu(e.element)}):e instanceof Ga?Ga.create(qu(e.unwrap())):e instanceof Q0?Q0.create(qu(e.unwrap())):e instanceof Jd?Jd.create(e.items.map(t=>qu(t))):e}class Xt extends tt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return we(l,{code:ye.invalid_type,expected:Ce.object,received:l.parsedType}),Ve}const{status:o,ctx:r}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const l in r.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const h=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:h._parse(new ni(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof es){const l=this._def.unknownKeys;if(l==="passthrough")for(const h of s)c.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(l==="strict")s.length>0&&(we(r,{code:ye.unrecognized_keys,keys:s}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const h of s){const d=r.data[h];c.push({key:{status:"valid",value:h},value:l._parse(new ni(r,d,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const h of c){const d=await h.key,p=await h.value;l.push({key:d,value:p,alwaysSet:h.alwaysSet})}return l}).then(l=>Rn.mergeObjectSync(o,l)):Rn.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new Xt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,o)=>{var i,a;const r=((a=(i=this._def).errorMap)==null?void 0:a.call(i,n,o).message)??o.defaultError;return n.code==="unrecognized_keys"?{message:Le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Xt({...this._def,unknownKeys:"strip"})}passthrough(){return new Xt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Oe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xt({...this._def,catchall:t})}pick(t){const n={};for(const o of ct.objectKeys(t))t[o]&&this.shape[o]&&(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}omit(t){const n={};for(const o of ct.objectKeys(this.shape))t[o]||(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}deepPartial(){return qu(this)}partial(t){const n={};for(const o of ct.objectKeys(this.shape)){const r=this.shape[o];t&&!t[o]?n[o]=r:n[o]=r.optional()}return new Xt({...this._def,shape:()=>n})}required(t){const n={};for(const o of ct.objectKeys(this.shape))if(t&&!t[o])n[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof Ga;)i=i._def.innerType;n[o]=i}return new Xt({...this._def,shape:()=>n})}keyof(){return $ee(ct.objectKeys(this.shape))}}Xt.create=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.strictCreate=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.lazycreate=(e,t)=>new Xt({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});class xz extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=this._def.options;function r(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(s=>new Ui(s.ctx.common.issues));return we(n,{code:ye.invalid_union,unionErrors:a}),Ve}if(n.common.async)return Promise.all(o.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let i;const a=[];for(const c of o){const l={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:l});if(h.status==="valid")return h;h.status==="dirty"&&!i&&(i={result:h,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=a.map(c=>new Ui(c));return we(n,{code:ye.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}xz.create=(e,t)=>new xz({options:e,typeName:Oe.ZodUnion,...Ze(t)});function mO(e,t){const n=Na(e),o=Na(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&o===Ce.object){const r=ct.objectKeys(t),i=ct.objectKeys(e).filter(s=>r.indexOf(s)!==-1),a={...e,...t};for(const s of i){const c=mO(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===Ce.array&&o===Ce.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const a=e[i],s=t[i],c=mO(a,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===Ce.date&&o===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class wz extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=(i,a)=>{if(TW(i)||TW(a))return Ve;const s=mO(i.value,a.value);return s.valid?((DW(i)||DW(a))&&n.dirty(),{status:n.value,value:s.data}):(we(o,{code:ye.invalid_intersection_types}),Ve)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>r(i,a)):r(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}wz.create=(e,t,n)=>new wz({left:e,right:t,typeName:Oe.ZodIntersection,...Ze(n)});class Jd extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.array)return we(o,{code:ye.invalid_type,expected:Ce.array,received:o.parsedType}),Ve;if(o.data.length<this._def.items.length)return we(o,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&o.data.length>this._def.items.length&&(we(o,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...o.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new ni(o,a,o.path,s)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>Rn.mergeArray(n,a)):Rn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Jd({...this._def,rest:t})}}Jd.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jd({items:e,typeName:Oe.ZodTuple,rest:null,...Ze(t)})};class Mz extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.object)return we(o,{code:ye.invalid_type,expected:Ce.object,received:o.parsedType}),Ve;const r=[],i=this._def.keyType,a=this._def.valueType;for(const s in o.data)r.push({key:i._parse(new ni(o,s,o.path,s)),value:a._parse(new ni(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Rn.mergeObjectAsync(n,r):Rn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,o){return n instanceof tt?new Mz({keyType:t,valueType:n,typeName:Oe.ZodRecord,...Ze(o)}):new Mz({keyType:Di.create(),valueType:t,typeName:Oe.ZodRecord,...Ze(n)})}}class UW extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.map)return we(o,{code:ye.invalid_type,expected:Ce.map,received:o.parsedType}),Ve;const r=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([s,c],l)=>({key:r._parse(new ni(o,s,o.path,[l,"key"])),value:i._parse(new ni(o,c,o.path,[l,"value"]))}));if(o.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,h=await c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,h=c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}}}}UW.create=(e,t,n)=>new UW({valueType:t,keyType:e,typeName:Oe.ZodMap,...Ze(n)});class bf extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.set)return we(o,{code:ye.invalid_type,expected:Ce.set,received:o.parsedType}),Ve;const r=this._def;r.minSize!==null&&o.data.size<r.minSize.value&&(we(o,{code:ye.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&o.data.size>r.maxSize.value&&(we(o,{code:ye.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function a(c){const l=new Set;for(const h of c){if(h.status==="aborted")return Ve;h.status==="dirty"&&n.dirty(),l.add(h.value)}return{status:n.value,value:l}}const s=[...o.data.values()].map((c,l)=>i._parse(new ni(o,c,o.path,l)));return o.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new bf({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new bf({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bf.create=(e,t)=>new bf({valueType:e,minSize:null,maxSize:null,typeName:Oe.ZodSet,...Ze(t)});class WW extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}WW.create=(e,t)=>new WW({getter:e,typeName:Oe.ZodLazy,...Ze(t)});class gO extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}gO.create=(e,t)=>new gO({value:e,typeName:Oe.ZodLiteral,...Ze(t)});function $ee(e,t){return new Z0({values:e,typeName:Oe.ZodEnum,...Ze(t)})}class Z0 extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{expected:ct.joinValues(o),received:n.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{received:n.data,code:ye.invalid_enum_value,options:o}),Ve}return Ho(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Z0.create(t,{...this._def,...n})}exclude(t,n=this._def){return Z0.create(this.options.filter(o=>!t.includes(o)),{...this._def,...n})}}Z0.create=$ee;class GW extends tt{_parse(t){const n=ct.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==Ce.string&&o.parsedType!==Ce.number){const r=ct.objectValues(n);return we(o,{expected:ct.joinValues(r),received:o.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ct.objectValues(n);return we(o,{received:o.data,code:ye.invalid_enum_value,options:r}),Ve}return Ho(t.data)}get enum(){return this._def.values}}GW.create=(e,t)=>new GW({values:e,typeName:Oe.ZodNativeEnum,...Ze(t)});class bz extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return we(n,{code:ye.invalid_type,expected:Ce.promise,received:n.parsedType}),Ve;const o=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Ho(o.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bz.create=(e,t)=>new bz({type:e,typeName:Oe.ZodPromise,...Ze(t)});class Y0 extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:a=>{we(o,a),a.fatal?n.abort():n.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const a=r.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?Jh(c.value):c});{if(n.value==="aborted")return Ve;const s=this._def.schema._parseSync({data:a,path:o.path,parent:o});return s.status==="aborted"?Ve:s.status==="dirty"||n.value==="dirty"?Jh(s.value):s}}if(r.type==="refinement"){const a=s=>{const c=r.refinement(s,i);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){const s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(o.common.async===!1){const a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!K0(a))return Ve;const s=r.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>K0(a)?Promise.resolve(r.transform(a.value,i)).then(s=>({status:n.value,value:s})):Ve);ct.assertNever(r)}}Y0.create=(e,t,n)=>new Y0({schema:e,typeName:Oe.ZodEffects,effect:t,...Ze(n)});Y0.createWithPreprocess=(e,t,n)=>new Y0({schema:t,effect:{type:"preprocess",transform:e},typeName:Oe.ZodEffects,...Ze(n)});class Ga extends tt{_parse(t){return this._getType(t)===Ce.undefined?Ho(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ga.create=(e,t)=>new Ga({innerType:e,typeName:Oe.ZodOptional,...Ze(t)});class Q0 extends tt{_parse(t){return this._getType(t)===Ce.null?Ho(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q0.create=(e,t)=>new Q0({innerType:e,typeName:Oe.ZodNullable,...Ze(t)});class kO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let o=n.data;return n.parsedType===Ce.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}kO.create=(e,t)=>new kO({innerType:e,typeName:Oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class vO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return kz(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ui(o.common.issues)},input:o.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Ui(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}vO.create=(e,t)=>new vO({innerType:e,typeName:Oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class KW extends tt{_parse(t){if(this._getType(t)!==Ce.nan){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.nan,received:o.parsedType}),Ve}return{status:"valid",value:t.data}}}KW.create=e=>new KW({typeName:Oe.ZodNaN,...Ze(e)});class wFe extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mq extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?Ve:i.status==="dirty"?(n.dirty(),Jh(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{const r=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return r.status==="aborted"?Ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:o.path,parent:o})}}static create(t,n){return new Mq({in:t,out:n,typeName:Oe.ZodPipeline})}}class xO extends tt{_parse(t){const n=this._def.innerType._parse(t),o=r=>(K0(r)&&(r.value=Object.freeze(r.value)),r);return kz(n)?n.then(r=>o(r)):o(n)}unwrap(){return this._def.innerType}}xO.create=(e,t)=>new xO({innerType:e,typeName:Oe.ZodReadonly,...Ze(t)});var Oe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Oe||(Oe={}));const hn=Di.create,Pee=X0.create,MFe=pO.create,F2=yO.create;es.create;const Cs=Jr.create,st=Xt.create,wO=xz.create;wz.create;Jd.create;const XW=Mz.create,Up=gO.create,Wp=Z0.create;bz.create;Ga.create;Q0.create;const bFe=st({$state:hn().min(1)}),Ai=st({$action:hn().min(1)}),_Fe=st({$cond:F2(),$then:F2(),$else:F2().optional()}),Qo=e=>wO([e,bFe,Ai,_Fe]),qt=Qo(hn()),Ni=Qo(Pee()),Gp=Qo(MFe()),zee={Card:st({title:qt.optional()}),Separator:st({orientation:Qo(Wp(["horizontal","vertical"])).optional()}),Tabs:st({value:qt.optional(),items:Cs(st({id:hn(),label:hn()})),onChange:Ai.optional()}),Accordion:st({items:Cs(st({id:hn(),title:hn(),content:hn()}))}),Badge:st({label:qt,variant:Qo(Wp(["default","secondary","destructive","outline"])).optional()}),Avatar:st({src:qt.optional(),alt:qt.optional(),fallback:qt.optional()}),Progress:st({value:Ni}),Skeleton:st({width:Ni.optional(),height:Ni.optional()}),Label:st({text:qt}),Heading:st({level:Qo(wO([Up(1),Up(2),Up(3),Up(4)])).optional(),text:qt}),Text:st({text:qt,muted:Gp.optional()}),Icon:st({name:qt,size:Ni.optional()}),Chart:st({kind:Qo(Wp(["bar","line","area","pie"])),data:Qo(Cs(XW(hn(),F2()))),xKey:qt.optional(),series:Cs(st({key:hn(),label:hn().optional()})).optional()}),Table:st({columns:Cs(st({key:hn(),label:hn()})),rows:Qo(Cs(XW(hn(),F2())))}),Metric:st({label:qt,value:Qo(wO([hn(),Pee()]))}),CodeBlock:st({code:qt,language:qt.optional()}),Markdown:st({content:qt}),Button:st({label:qt,variant:Qo(Wp(["default","destructive","outline","secondary","ghost","link"])).optional(),onClick:Ai.optional(),disabled:Gp.optional()}),Input:st({value:qt.optional(),placeholder:qt.optional(),onChange:Ai.optional()}),Checkbox:st({checked:Gp.optional(),onChange:Ai.optional(),label:qt.optional()}),Switch:st({checked:Gp.optional(),onChange:Ai.optional()}),Select:st({value:qt.optional(),items:Cs(st({value:hn(),label:hn()})),onChange:Ai.optional()}),Textarea:st({value:qt.optional(),placeholder:qt.optional(),rows:Ni.optional(),onChange:Ai.optional()}),Slider:st({value:Ni.optional(),min:Ni.optional(),max:Ni.optional(),step:Ni.optional(),onChange:Ai.optional()})},Ree=Object.keys(zee);Object.fromEntries(Ree.map(e=>[e,{props:zee[e],description:e}]));function ZW(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oi(...e){return t=>{let n=!1;const o=e.map(r=>{const i=ZW(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():ZW(e[r],null)}}}}function xt(...e){return m.useCallback(oi(...e),e)}var CFe=Symbol.for("react.lazy"),_z=aF[" use ".trim().toString()];function SFe(e){return typeof e=="object"&&e!==null&&"then"in e}function Tee(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===CFe&&"_payload"in e&&SFe(e._payload)}function LFe(e){const t=IFe(e),n=m.forwardRef((o,r)=>{let{children:i,...a}=o;Tee(i)&&typeof _z=="function"&&(i=_z(i._payload));const s=m.Children.toArray(i),c=s.find(EFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...a,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...a,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var NFe=LFe("Slot");function IFe(e){const t=m.forwardRef((n,o)=>{let{children:r,...i}=n;if(Tee(r)&&typeof _z=="function"&&(r=_z(r._payload)),m.isValidElement(r)){const a=$Fe(r),s=jFe(i,r.props);return r.type!==m.Fragment&&(s.ref=o?oi(o,a):a),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AFe=Symbol("radix.slottable");function EFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AFe}function jFe(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function $Fe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QW=_Q,Dee=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return QW(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(l=>{const h=n==null?void 0:n[l],d=i==null?void 0:i[l];if(h===null)return null;const p=YW(h)||YW(d);return r[l][p]}),s=n&&Object.entries(n).reduce((l,h)=>{let[d,p]=h;return p===void 0||(l[d]=p),l},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((l,h)=>{let{class:d,className:p,...y}=h;return Object.entries(y).every(g=>{let[k,x]=g;return Array.isArray(x)?x.includes({...i,...s}[k]):{...i,...s}[k]===x})?[...l,d,p]:l},[]);return QW(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},PFe=Dee("sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-md sf:text-sm sf:font-medium sf:ring-offset-background sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-2 sf:disabled:pointer-events-none sf:disabled:opacity-50",{variants:{variant:{default:"sf:bg-primary sf:text-primary-foreground sf:font-semibold sf:hover:bg-emerald-400",destructive:"sf:bg-destructive sf:text-destructive-foreground sf:hover:bg-destructive/90",outline:"sf:border sf:border-input sf:bg-background sf:hover:bg-secondary sf:hover:text-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground sf:hover:bg-secondary/80",ghost:"sf:text-muted-foreground sf:hover:bg-muted sf:hover:text-foreground",link:"sf:text-primary sf:underline-offset-4 sf:hover:underline"},size:{default:"sf:h-9 sf:px-4 sf:py-2",sm:"sf:h-8 sf:rounded-md sf:px-3",lg:"sf:h-11 sf:rounded-md sf:px-8",icon:"sf:h-9 sf:w-9"}},defaultVariants:{variant:"default",size:"default"}}),rt=m.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},i)=>{const a=o?NFe:"button";return f.jsx(a,{className:ee(PFe({variant:t,size:n,className:e})),ref:i,...r})});rt.displayName="Button";function Hee(e,[t,n]){return Math.min(n,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function zFe(e,t){const n=m.createContext(t),o=i=>{const{children:a,...s}=i,c=m.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:c,children:a})};o.displayName=e+"Provider";function r(i){const a=m.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function yr(e,t=[]){let n=[];function o(i,a){const s=m.createContext(a),c=n.length;n=[...n,a];const l=d=>{var v;const{scope:p,children:y,...g}=d,k=((v=p==null?void 0:p[e])==null?void 0:v[c])||s,x=m.useMemo(()=>g,Object.values(g));return f.jsx(k.Provider,{value:x,children:y})};l.displayName=i+"Provider";function h(d,p){var k;const y=((k=p==null?void 0:p[e])==null?void 0:k[c])||s,g=m.useContext(y);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,h]}const r=()=>{const i=n.map(a=>m.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[o,RFe(r,...t)]}function RFe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=o.reduce((s,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...s,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ts=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},TFe=aF[" useInsertionEffect ".trim().toString()]||ts;function lu({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,a]=DFe({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:r;{const h=m.useRef(e!==void 0);m.useEffect(()=>{const d=h.current;d!==s&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. 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.`),h.current=s},[s,o])}const l=m.useCallback(h=>{var d;if(s){const p=HFe(h)?h(e):h;p!==e&&((d=a.current)==null||d.call(a,p))}else i(h)},[s,e,i,a]);return[c,l]}function DFe({defaultProp:e,onChange:t}){const[n,o]=m.useState(e),r=m.useRef(n),i=m.useRef(t);return TFe(()=>{i.current=t},[t]),m.useEffect(()=>{var a;r.current!==n&&((a=i.current)==null||a.call(i,n),r.current=n)},[n,r]),[n,o,i]}function HFe(e){return typeof e=="function"}var OFe=m.createContext(void 0);function SR(e){const t=m.useContext(OFe);return e||t||"ltr"}function FFe(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oee(e){const[t,n]=m.useState(void 0);return ts(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function J0(e){const t=qFe(e),n=m.forwardRef((o,r)=>{const{children:i,...a}=o,s=m.Children.toArray(i),c=s.find(BFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...a,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...a,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function qFe(e){const t=m.forwardRef((n,o)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const a=WFe(r),s=UFe(i,r.props);return r.type!==m.Fragment&&(s.ref=o?oi(o,a):a),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fee=Symbol("radix.slottable");function VFe(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fee,t}function BFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fee}function UFe(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function WFe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var GFe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=GFe.reduce((e,t)=>{const n=J0(`Primitive.${t}`),o=m.forwardRef((r,i)=>{const{asChild:a,...s}=r,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function qee(e,t){e&&au.flushSync(()=>e.dispatchEvent(t))}function bq(e){const t=e+"CollectionProvider",[n,o]=yr(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=k=>{const{scope:x,children:v}=k,M=uo.useRef(null),w=uo.useRef(new Map).current;return f.jsx(r,{scope:x,itemMap:w,collectionRef:M,children:v})};a.displayName=t;const s=e+"CollectionSlot",c=J0(s),l=uo.forwardRef((k,x)=>{const{scope:v,children:M}=k,w=i(s,v),b=xt(x,w.collectionRef);return f.jsx(c,{ref:b,children:M})});l.displayName=s;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=J0(h),y=uo.forwardRef((k,x)=>{const{scope:v,children:M,...w}=k,b=uo.useRef(null),C=xt(x,b),_=i(h,v);return uo.useEffect(()=>(_.itemMap.set(b,{ref:b,...w}),()=>void _.itemMap.delete(b))),f.jsx(p,{[d]:"",ref:C,children:M})});y.displayName=h;function g(k){const x=i(e+"CollectionConsumer",k);return uo.useCallback(()=>{const M=x.collectionRef.current;if(!M)return[];const w=Array.from(M.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,S)=>w.indexOf(_.ref.current)-w.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:y},g,o]}var Vee=["PageUp","PageDown"],Bee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Uee={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},lh="Slider",[MO,KFe,XFe]=bq(lh),[Wee]=yr(lh,[XFe]),[ZFe,LR]=Wee(lh),Gee=m.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[o],value:h,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:y=!1,form:g,...k}=e,x=m.useRef(new Set),v=m.useRef(0),w=a==="horizontal"?YFe:QFe,[b=[],C]=lu({prop:h,defaultProp:l,onChange:R=>{var V;(V=[...x.current][v.current])==null||V.focus(),d(R)}}),_=m.useRef(b);function S(R){const E=oqe(b,R);I(R,E)}function L(R){I(R,v.current)}function j(){const R=_.current[v.current];b[v.current]!==R&&p(b)}function I(R,E,{commit:V}={commit:!1}){const $=sqe(i),T=cqe(Math.round((R-o)/i)*i+o,$),D=Hee(T,[o,r]);C((F=[])=>{const z=tqe(F,D,E);if(aqe(z,c*i)){v.current=z.indexOf(D);const A=String(z)!==String(F);return A&&V&&p(z),A?z:F}else return F})}return f.jsx(ZFe,{scope:e.__scopeSlider,name:n,disabled:s,min:o,max:r,valueIndexToChangeRef:v,thumbs:x.current,values:b,orientation:a,form:g,children:f.jsx(MO.Provider,{scope:e.__scopeSlider,children:f.jsx(MO.Slot,{scope:e.__scopeSlider,children:f.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...k,ref:t,onPointerDown:Se(k.onPointerDown,()=>{s||(_.current=b)}),min:o,max:r,inverted:y,onSlideStart:s?void 0:S,onSlideMove:s?void 0:L,onSlideEnd:s?void 0:j,onHomeKeyDown:()=>!s&&I(o,0,{commit:!0}),onEndKeyDown:()=>!s&&I(r,b.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!s){const T=Vee.includes(R.key)||R.shiftKey&&Bee.includes(R.key)?10:1,D=v.current,F=b[D],z=i*T*E;I(F+z,D,{commit:!0})}}})})})})});Gee.displayName=lh;var[Kee,Xee]=Wee(lh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),YFe=m.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...h}=e,[d,p]=m.useState(null),y=xt(t,w=>p(w)),g=m.useRef(void 0),k=SR(r),x=k==="ltr",v=x&&!i||!x&&i;function M(w){const b=g.current||d.getBoundingClientRect(),C=[0,b.width],S=_q(C,v?[n,o]:[o,n]);return g.current=b,S(w-b.left)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:f.jsx(Zee,{dir:k,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const b=M(w.clientX);a==null||a(b)},onSlideMove:w=>{const b=M(w.clientX);s==null||s(b)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const C=Uee[v?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:C?-1:1})}})})}),QFe=m.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:c,...l}=e,h=m.useRef(null),d=xt(t,h),p=m.useRef(void 0),y=!r;function g(k){const x=p.current||h.current.getBoundingClientRect(),v=[0,x.height],w=_q(v,y?[o,n]:[n,o]);return p.current=x,w(k-x.top)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:f.jsx(Zee,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:k=>{const x=g(k.clientY);i==null||i(x)},onSlideMove:k=>{const x=g(k.clientY);a==null||a(x)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:k=>{const v=Uee[y?"from-bottom":"from-top"].includes(k.key);c==null||c({event:k,direction:v?-1:1})}})})}),Zee=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:c,...l}=e,h=LR(lh,n);return f.jsx(We.span,{...l,ref:t,onKeyDown:Se(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Vee.concat(Bee).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:Se(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),h.thumbs.has(p)?p.focus():o(d)}),onPointerMove:Se(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:Se(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),Yee="SliderTrack",Qee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(Yee,n);return f.jsx(We.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Qee.displayName=Yee;var bO="SliderRange",Jee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(bO,n),i=Xee(bO,n),a=m.useRef(null),s=xt(t,a),c=r.values.length,l=r.values.map(p=>nte(p,r.min,r.max)),h=c>1?Math.min(...l):0,d=100-Math.max(...l);return f.jsx(We.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:s,style:{...e.style,[i.startEdge]:h+"%",[i.endEdge]:d+"%"}})});Jee.displayName=bO;var _O="SliderThumb",ete=m.forwardRef((e,t)=>{const n=KFe(e.__scopeSlider),[o,r]=m.useState(null),i=xt(t,s=>r(s)),a=m.useMemo(()=>o?n().findIndex(s=>s.ref.current===o):-1,[n,o]);return f.jsx(JFe,{...e,ref:i,index:a})}),JFe=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...i}=e,a=LR(_O,n),s=Xee(_O,n),[c,l]=m.useState(null),h=xt(t,M=>l(M)),d=c?a.form||!!c.closest("form"):!0,p=Oee(c),y=a.values[o],g=y===void 0?0:nte(y,a.min,a.max),k=nqe(o,a.values.length),x=p==null?void 0:p[s.size],v=x?rqe(x,g,s.direction):0;return m.useEffect(()=>{if(c)return a.thumbs.add(c),()=>{a.thumbs.delete(c)}},[c,a.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${v}px)`},children:[f.jsx(MO.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(We.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":a.min,"aria-valuenow":y,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:h,style:y===void 0?{display:"none"}:e.style,onFocus:Se(e.onFocus,()=>{a.valueIndexToChangeRef.current=o})})}),d&&f.jsx(tte,{name:r??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:y},o)]})});ete.displayName=_O;var eqe="RadioBubbleInput",tte=m.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=m.useRef(null),i=xt(r,o),a=FFe(t);return m.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&h){const d=new Event("input",{bubbles:!0});h.call(s,t),s.dispatchEvent(d)}},[a,t]),f.jsx(We.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});tte.displayName=eqe;function tqe(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,i)=>r-i)}function nte(e,t,n){const i=100/(n-t)*(e-t);return Hee(i,[0,100])}function nqe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function oqe(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function rqe(e,t,n){const o=e/2,i=_q([0,50],[0,o]);return(o-i(t)*n)*n}function iqe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function aqe(e,t){if(t>0){const n=iqe(e);return Math.min(...n)>=t}return!0}function _q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function sqe(e){return(String(e).split(".")[1]||"").length}function cqe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ote=Gee,lqe=Qee,dqe=Jee,uqe=ete;const Cq=m.forwardRef(({className:e,...t},n)=>f.jsxs(ote,{ref:n,className:ee("sf:relative sf:flex sf:w-full sf:touch-none sf:select-none sf:items-center",e),...t,children:[f.jsx(lqe,{className:"sf:relative sf:h-1.5 sf:w-full sf:grow sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx(dqe,{className:"sf:absolute sf:h-full sf:bg-primary"})}),f.jsx(uqe,{className:"sf:block sf:h-4 sf:w-4 sf:rounded-full sf:border sf:border-primary/60 sf:bg-background sf:shadow-sm sf:transition-colors sf:hover:border-primary sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:disabled:pointer-events-none sf:disabled:opacity-50"})]}));Cq.displayName=ote.displayName;const hqe={1:"sf:text-2xl sf:font-semibold sf:tracking-tight",2:"sf:text-xl sf:font-semibold sf:tracking-tight",3:"sf:text-lg sf:font-semibold",4:"sf:text-base sf:font-semibold"};function fqe({text:e,level:t=2}){const n=`h${t}`;return f.jsx(n,{className:ee(hqe[t]),children:e})}const rte=m.createContext({custom:{}});function pqe({value:e,children:t}){return f.jsx(rte.Provider,{value:e,children:t})}function yqe(){return m.useContext(rte)}function mqe({name:e,as:t,size:n=16,fallback:o=IEe,...r}){const i=yqe(),a=t??(e?i.custom[e]:void 0)??(e?df[e]:void 0)??df[o];return a?f.jsx(a,{size:n,...r}):null}function gqe({name:e,size:t=16}){return f.jsx(mqe,{name:e,size:t,"aria-hidden":!0})}function kqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:typeof e=="object"?JSON.stringify(e):String(e)}function vqe({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:text-muted-foreground sf:text-xs sf:uppercase sf:tracking-wide",children:e}),f.jsx("span",{className:"sf:font-semibold sf:text-2xl sf:tabular-nums",children:kqe(t)})]})}function xqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):JSON.stringify(e)}function wqe({columns:e=[],rows:t=[]}){return f.jsx("div",{className:"sf:w-full sf:overflow-x-auto",children:f.jsxs("table",{className:"sf:w-full sf:text-left sf:text-sm",children:[f.jsx("thead",{className:"sf:border-b sf:bg-muted/50",children:f.jsx("tr",{children:e.map(n=>f.jsx("th",{scope:"col",className:"sf:px-3 sf:py-2 sf:font-medium sf:text-muted-foreground",children:n.label},n.key))})}),f.jsx("tbody",{children:t.map((n,o)=>f.jsx("tr",{className:"sf:border-b last:sf:border-0",children:e.map(r=>f.jsx("td",{className:"sf:px-3 sf:py-2",children:xqe(n[r.key])},r.key))},o))})]})})}function Mqe({text:e,muted:t}){return f.jsx("p",{className:ee("sf:text-sm",t&&"sf:text-muted-foreground"),children:e})}function bqe({title:e,children:t}){return f.jsxs("div",{className:"sf:bg-card sf:p-4 sf:text-card-foreground sf:shadow-sm",children:[e!==void 0?f.jsx("div",{className:"sf:mb-3 sf:font-semibold sf:text-base sf:leading-tight",children:e}):null,f.jsx("div",{className:"sf:flex sf:flex-col sf:gap-3",children:t})]})}function _qe({orientation:e="horizontal"}){return f.jsx("div",{"aria-orientation":e,className:ee("sf:bg-border",e==="horizontal"?"sf:h-px sf:w-full":"sf:h-full sf:w-px")})}function Cqe({value:e,items:t,onChange:n,children:o}){const r=t??[];return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2",children:[f.jsx("div",{className:"sf:inline-flex sf:h-9 sf:items-center sf:justify-start sf:rounded-md sf:bg-muted sf:p-1 sf:text-muted-foreground",children:r.map(i=>f.jsx("button",{type:"button","data-state":e===i.id?"active":"inactive",onClick:()=>n==null?void 0:n({value:i.id}),className:"sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-sm sf:px-3 sf:py-1 sf:text-xs sf:font-medium sf:transition-all sf:data-[state=active]:bg-background sf:data-[state=active]:text-foreground sf:data-[state=active]:shadow-sm",children:i.label},i.id))}),o]})}function Sqe({items:e}){const t=e??[];return f.jsx("div",{className:"sf:flex sf:flex-col sf:divide-y sf:rounded-md sf:border",children:t.map(n=>f.jsxs("details",{className:"sf:group sf:px-3 sf:py-2",children:[f.jsx("summary",{className:"sf:cursor-pointer sf:py-1 sf:font-medium sf:text-sm",children:n.title}),f.jsx("div",{className:"sf:py-2 sf:text-muted-foreground sf:text-sm",children:n.content})]},n.id))})}const JW={default:"sf:bg-primary sf:text-primary-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground",destructive:"sf:bg-destructive sf:text-destructive-foreground",outline:"sf:border sf:border-border sf:text-foreground"};function Lqe({label:e,variant:t="default"}){return f.jsx("span",{className:ee("sf:inline-flex sf:items-center sf:rounded-full sf:px-2.5 sf:py-0.5 sf:font-medium sf:text-xs",JW[t]??JW.default),children:e})}function Nqe({src:e,alt:t,fallback:n}){return e?f.jsx("img",{src:e,alt:t??"",className:"sf:inline-block sf:h-9 sf:w-9 sf:rounded-full sf:object-cover"}):f.jsx("span",{className:"sf:inline-flex sf:h-9 sf:w-9 sf:items-center sf:justify-center sf:rounded-full sf:bg-muted sf:font-medium sf:text-muted-foreground sf:text-sm",children:n??"?"})}function Iqe({value:e=0}){const t=Math.max(0,Math.min(100,e));return f.jsx("div",{"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,className:"sf:relative sf:h-2 sf:w-full sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx("div",{className:"sf:h-full sf:bg-primary sf:transition-all",style:{width:`${t}%`}})})}function Aqe({width:e,height:t}){return f.jsx("div",{className:"sf:animate-pulse sf:rounded-md sf:bg-muted",style:{width:e??"100%",height:t??16}})}function Eqe({text:e}){return f.jsx("span",{className:"sf:font-medium sf:text-sm sf:leading-none",children:e})}function jqe({label:e,variant:t="default",onClick:n,disabled:o}){return f.jsx(rt,{variant:t,disabled:o,onClick:()=>n==null?void 0:n(),children:e})}const Sq="sf:flex sf:h-9 sf:w-full sf:rounded-md sf:border sf:border-input sf:bg-background sf:px-3 sf:py-1 sf:text-sm sf:shadow-sm sf:transition-colors sf:placeholder:text-muted-foreground sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring sf:disabled:cursor-not-allowed sf:disabled:opacity-50";function $qe({value:e,placeholder:t,onChange:n}){return f.jsx("input",{type:"text",value:e??"",placeholder:t,onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq})}function Pqe({checked:e,onChange:t,label:n}){return f.jsxs("label",{className:"sf:inline-flex sf:items-center sf:gap-2 sf:text-sm",children:[f.jsx("input",{type:"checkbox",checked:e??!1,onChange:o=>t==null?void 0:t({checked:o.target.checked}),className:"sf:h-4 sf:w-4 sf:rounded sf:border sf:border-input sf:accent-primary"}),n]})}function zqe({checked:e,onChange:t}){return f.jsx("button",{type:"button",role:"switch","aria-checked":e??!1,onClick:()=>t==null?void 0:t({checked:!(e??!1)}),className:ee("sf:relative sf:inline-flex sf:h-5 sf:w-9 sf:shrink-0 sf:cursor-pointer sf:items-center sf:rounded-full sf:border-2 sf:border-transparent sf:transition-colors",e?"sf:bg-primary":"sf:bg-input"),children:f.jsx("span",{className:ee("sf:pointer-events-none sf:block sf:h-4 sf:w-4 sf:rounded-full sf:bg-background sf:shadow-lg sf:ring-0 sf:transition-transform",e?"sf:translate-x-4":"sf:translate-x-0")})})}function Rqe({value:e,items:t,onChange:n}){return f.jsx("select",{value:e??"",onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq,children:(t??[]).map(o=>f.jsx("option",{value:o.value,children:o.label},o.value))})}function Tqe({value:e,placeholder:t,rows:n,onChange:o}){return f.jsx("textarea",{value:e??"",placeholder:t,rows:n,onChange:r=>o==null?void 0:o({value:r.target.value}),className:ee(Sq,"sf:min-h-16 sf:py-2")})}function Dqe({value:e,min:t=0,max:n=100,step:o=1,onChange:r}){return f.jsx(Cq,{value:e===void 0?void 0:[e],min:t,max:n,step:o,onValueChange:i=>{const[a]=i;typeof a=="number"&&(r==null||r({value:a}))}})}const Hqe=m.lazy(()=>sh(()=>import("./chart-cc_BTAZc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function Oqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Hqe,{...e})})}const Fqe=m.lazy(()=>sh(()=>import("./markdown-32W9Sfos.js"),[]));function qqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Fqe,{...e})})}const Vqe=m.lazy(()=>sh(()=>import("./code-block-DptLogcr.js"),[]));function Bqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Vqe,{...e})})}const ite={Card:bqe,Separator:_qe,Tabs:Cqe,Accordion:Sqe,Badge:Lqe,Avatar:Nqe,Progress:Iqe,Skeleton:Aqe,Label:Eqe,Heading:fqe,Text:Mqe,Icon:gqe,Chart:Oqe,Table:wqe,Metric:vqe,CodeBlock:Bqe,Markdown:qqe,Button:jqe,Input:$qe,Checkbox:Pqe,Switch:zqe,Select:Rqe,Textarea:Tqe,Slider:Dqe},eG=Ree.filter(e=>ite[e]===void 0);if(eG.length>0)throw new Error(`componentRegistry is missing impls for: ${eG.join(", ")}. Every catalog entry in COMPONENT_NAMES must have a matching component impl.`);const Uqe={components:ite};function Wqe(e,t){return t.kind==="set"?{...e,[t.path]:t.value}:{...e,...t.partial}}function ate(e){return e===null||typeof e!="object"?!1:"$state"in e||"$action"in e||"$param"in e||"$cond"in e}function CP(e,t,n,o){if(!ate(e))return e;if(typeof e.$state=="string")return t[e.$state];if(typeof e.$action=="string"){const r=e.$action;return o.has(r)?i=>n(r,i):void 0}if("$cond"in e){const r=CP(e.$cond,t,n,o);return CP(r?e.$then:e.$else,t,n,o)}return e}function Gqe(e,t,n,o){if(!e)return{};const r={};for(const[i,a]of Object.entries(e))r[i]=CP(a,t,n,o);return r}function tG({spec:e,nodeId:t,apiBaseUrl:n="/api",projectSlug:o,flowSlug:r}){const[i,a]=m.useReducer(Wqe,e.state??{}),s=new Set(Object.keys(e.actions??{})),c=m.useCallback(async(l,h)=>{var y;const d=(y=e.actions)==null?void 0:y[l];if(!d)return;if(d.kind==="set"){const g=Kqe(d.value,h,i);a({kind:"set",path:d.path,value:g});return}if(!o||!r)return;const p=`${n}/projects/${encodeURIComponent(o)}/flows/${encodeURIComponent(r)}/nodes/${encodeURIComponent(t)}/actions/${encodeURIComponent(l)}`;try{const g=await fetch(p,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h??{})});if(!g.ok){const x=await g.text();a({kind:"set",path:`/__errors/${l}`,value:x});return}const k=await g.json();k!==null&&typeof k=="object"&&a({kind:"merge",partial:k})}catch(g){a({kind:"set",path:`/__errors/${l}`,value:g instanceof Error?g.message:String(g)})}},[e.actions,o,r,n,t,i]);return ste(e.root,e,i,c,s)}function Kqe(e,t,n){return ate(e)?typeof e.$param=="string"?t!==null&&typeof t=="object"?t[e.$param]:void 0:typeof e.$state=="string"?n[e.$state]:e:e}function ste(e,t,n,o,r){const i=t.elements[e];if(!i)return null;const a=Uqe.components[i.type];if(!a)return null;const s=Gqe(i.props,n,o,r),l=(i.children??[]).map(h=>f.jsx(Xqe,{children:ste(h,t,n,o,r)},h));return f.jsx(a,{...s,children:l.length>0?l:void 0})}function Xqe({children:e}){return e}function ri(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Zqe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yqe="DismissableLayer",CO="dismissableLayer.update",Qqe="dismissableLayer.pointerDownOutside",Jqe="dismissableLayer.focusOutside",nG,cte=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,l=m.useContext(cte),[h,d]=m.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=xt(t,S=>d(S)),k=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=k.indexOf(x),M=h?k.indexOf(h):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,b=M>=v,C=nVe(S=>{const L=S.target,j=[...l.branches].some(I=>I.contains(L));!b||j||(r==null||r(S),a==null||a(S),S.defaultPrevented||s==null||s())},p),_=oVe(S=>{const L=S.target;[...l.branches].some(I=>I.contains(L))||(i==null||i(S),a==null||a(S),S.defaultPrevented||s==null||s())},p);return Zqe(S=>{M===l.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},p),m.useEffect(()=>{if(h)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(nG=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(h)),l.layers.add(h),oG(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=nG)}},[h,p,n,l]),m.useEffect(()=>()=>{h&&(l.layers.delete(h),l.layersWithOutsidePointerEventsDisabled.delete(h),oG())},[h,l]),m.useEffect(()=>{const S=()=>y({});return document.addEventListener(CO,S),()=>document.removeEventListener(CO,S)},[]),f.jsx(We.div,{...c,ref:g,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});Uf.displayName=Yqe;var eVe="DismissableLayerBranch",tVe=m.forwardRef((e,t)=>{const n=m.useContext(cte),o=m.useRef(null),r=xt(t,o);return m.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(We.div,{...e,ref:r})});tVe.displayName=eVe;function nVe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=s=>{if(s.target&&!o.current){let c=function(){lte(Qqe,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oVe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),o=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!o.current&&lte(Jqe,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function oG(){const e=new CustomEvent(CO);document.dispatchEvent(e)}function lte(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?qee(r,i):r.dispatchEvent(i)}var lD=0;function Lq(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rG()),document.body.insertAdjacentElement("beforeend",e[1]??rG()),lD++,()=>{lD===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lD--}},[])}function rG(){const 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 dD="focusScope.autoFocusOnMount",uD="focusScope.autoFocusOnUnmount",iG={bubbles:!1,cancelable:!0},rVe="FocusScope",NR=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,c]=m.useState(null),l=ri(r),h=ri(i),d=m.useRef(null),p=xt(t,k=>c(k)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let k=function(w){if(y.paused||!s)return;const b=w.target;s.contains(b)?d.current=b:xa(d.current,{select:!0})},x=function(w){if(y.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||xa(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&xa(s)};document.addEventListener("focusin",k),document.addEventListener("focusout",x);const M=new MutationObserver(v);return s&&M.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",x),M.disconnect()}}},[o,s,y.paused]),m.useEffect(()=>{if(s){sG.add(y);const k=document.activeElement;if(!s.contains(k)){const v=new CustomEvent(dD,iG);s.addEventListener(dD,l),s.dispatchEvent(v),v.defaultPrevented||(iVe(dVe(dte(s)),{select:!0}),document.activeElement===k&&xa(s))}return()=>{s.removeEventListener(dD,l),setTimeout(()=>{const v=new CustomEvent(uD,iG);s.addEventListener(uD,h),s.dispatchEvent(v),v.defaultPrevented||xa(k??document.body,{select:!0}),s.removeEventListener(uD,h),sG.remove(y)},0)}}},[s,l,h,y]);const g=m.useCallback(k=>{if(!n&&!o||y.paused)return;const x=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,v=document.activeElement;if(x&&v){const M=k.currentTarget,[w,b]=aVe(M);w&&b?!k.shiftKey&&v===b?(k.preventDefault(),n&&xa(w,{select:!0})):k.shiftKey&&v===w&&(k.preventDefault(),n&&xa(b,{select:!0})):v===M&&k.preventDefault()}},[n,o,y.paused]);return f.jsx(We.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});NR.displayName=rVe;function iVe(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(xa(o,{select:t}),document.activeElement!==n)return}function aVe(e){const t=dte(e),n=aG(t,e),o=aG(t.reverse(),e);return[n,o]}function dte(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function aG(e,t){for(const n of e)if(!sVe(n,{upTo:t}))return n}function sVe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cVe(e){return e instanceof HTMLInputElement&&"select"in e}function xa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cVe(e)&&t&&e.select()}}var sG=lVe();function lVe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cG(e,t),e.unshift(t)},remove(t){var n;e=cG(e,t),(n=e[0])==null||n.resume()}}}function cG(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function dVe(e){return e.filter(t=>t.tagName!=="A")}var uVe=aF[" useId ".trim().toString()]||(()=>{}),hVe=0;function zn(e){const[t,n]=m.useState(uVe());return ts(()=>{n(o=>o??String(hVe++))},[e]),e||(t?`radix-${t}`:"")}const fVe=["top","right","bottom","left"],ns=Math.min,ho=Math.max,Cz=Math.round,Kp=Math.floor,ei=e=>({x:e,y:e}),pVe={left:"right",right:"left",bottom:"top",top:"bottom"};function SO(e,t,n){return ho(e,ns(t,n))}function Wi(e,t){return typeof e=="function"?e(t):e}function Gi(e){return e.split("-")[0]}function dh(e){return e.split("-")[1]}function Nq(e){return e==="x"?"y":"x"}function Iq(e){return e==="y"?"height":"width"}function Kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Aq(e){return Nq(Kr(e))}function yVe(e,t,n){n===void 0&&(n=!1);const o=dh(e),r=Aq(e),i=Iq(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Sz(a)),[a,Sz(a)]}function mVe(e){const t=Sz(e);return[LO(e),t,LO(t)]}function LO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lG=["left","right"],dG=["right","left"],gVe=["top","bottom"],kVe=["bottom","top"];function vVe(e,t,n){switch(e){case"top":case"bottom":return n?t?dG:lG:t?lG:dG;case"left":case"right":return t?gVe:kVe;default:return[]}}function xVe(e,t,n,o){const r=dh(e);let i=vVe(Gi(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(LO)))),i}function Sz(e){const t=Gi(e);return pVe[t]+e.slice(t.length)}function wVe(e){return{top:0,right:0,bottom:0,left:0,...e}}function ute(e){return typeof e!="number"?wVe(e):{top:e,right:e,bottom:e,left:e}}function Lz(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function uG(e,t,n){let{reference:o,floating:r}=e;const i=Kr(t),a=Aq(t),s=Iq(a),c=Gi(t),l=i==="y",h=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let y;switch(c){case"top":y={x:h,y:o.y-r.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:d};break;case"left":y={x:o.x-r.width,y:d};break;default:y={x:o.x,y:o.y}}switch(dh(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}async function MVe(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Wi(t,e),g=ute(y),x=s[p?d==="floating"?"reference":"floating":d],v=Lz(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:h,strategy:c})),M=d==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Lz(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:w,strategy:c}):M);return{top:(v.top-C.top+g.top)/b.y,bottom:(C.bottom-v.bottom+g.bottom)/b.y,left:(v.left-C.left+g.left)/b.x,right:(C.right-v.right+g.right)/b.x}}const bVe=50,_Ve=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:MVe},c=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:d}=uG(l,o,c),p=o,y=0;const g={};for(let k=0;k<i.length;k++){const x=i[k];if(!x)continue;const{name:v,fn:M}=x,{x:w,y:b,data:C,reset:_}=await M({x:h,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});h=w??h,d=b??d,g[v]={...g[v],...C},_&&y<bVe&&(y++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:h,y:d}=uG(l,p,c)),k=-1)}return{x:h,y:d,placement:p,strategy:r,middlewareData:g}},CVe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:h=0}=Wi(e,t)||{};if(l==null)return{};const d=ute(h),p={x:n,y:o},y=Aq(r),g=Iq(y),k=await a.getDimensions(l),x=y==="y",v=x?"top":"left",M=x?"bottom":"right",w=x?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[y]-p[y]-i.floating[g],C=p[y]-i.reference[y],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let S=_?_[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement(_)))&&(S=s.floating[w]||i.floating[g]);const L=b/2-C/2,j=S/2-k[g]/2-1,I=ns(d[v],j),R=ns(d[M],j),E=I,V=S-k[g]-R,$=S/2-k[g]/2+L,T=SO(E,$,V),D=!c.arrow&&dh(r)!=null&&$!==T&&i.reference[g]/2-($<E?I:R)-k[g]/2<0,F=D?$<E?$-E:$-V:0;return{[y]:p[y]+F,data:{[y]:T,centerOffset:$-T-F,...D&&{alignmentOffset:F}},reset:D}}}),SVe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0,...x}=Wi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Gi(r),M=Kr(s),w=Gi(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=p||(w||!k?[Sz(s)]:mVe(s)),_=g!=="none";!p&&_&&C.push(...xVe(s,k,g,b));const S=[s,...C],L=await c.detectOverflow(t,x),j=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&j.push(L[v]),d){const $=yVe(r,a,b);j.push(L[$[0]],L[$[1]])}if(I=[...I,{placement:r,overflows:j}],!j.every($=>$<=0)){var R,E;const $=(((R=i.flip)==null?void 0:R.index)||0)+1,T=S[$];if(T&&(!(d==="alignment"?M!==Kr(T):!1)||I.every(z=>Kr(z.placement)===M?z.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:T}};let D=(E=I.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(y){case"bestFit":{var V;const F=(V=I.filter(z=>{if(_){const A=Kr(z.placement);return A===M||A==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(A=>A>0).reduce((A,N)=>A+N,0)]).sort((z,A)=>z[1]-A[1])[0])==null?void 0:V[0];F&&(D=F);break}case"initialPlacement":D=s;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function hG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fG(e){return fVe.some(t=>e[t]>=0)}const LVe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=Wi(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...i,elementContext:"reference"}),s=hG(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fG(s)}}}case"escaped":{const a=await o.detectOverflow(t,{...i,altBoundary:!0}),s=hG(a,n.floating);return{data:{escapedOffsets:s,escaped:fG(s)}}}default:return{}}}}},hte=new Set(["left","top"]);async function NVe(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Gi(n),s=dh(n),c=Kr(n)==="y",l=hte.has(a)?-1:1,h=i&&c?-1:1,d=Wi(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(y=s==="end"?g*-1:g),c?{x:y*h,y:p*l}:{x:p*l,y:y*h}}const IVe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await NVe(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},AVe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:M,y:w}=v;return{x:M,y:w}}},...l}=Wi(e,t),h={x:n,y:o},d=await i.detectOverflow(t,l),p=Kr(Gi(r)),y=Nq(p);let g=h[y],k=h[p];if(a){const v=y==="y"?"top":"left",M=y==="y"?"bottom":"right",w=g+d[v],b=g-d[M];g=SO(w,g,b)}if(s){const v=p==="y"?"top":"left",M=p==="y"?"bottom":"right",w=k+d[v],b=k-d[M];k=SO(w,k,b)}const x=c.fn({...t,[y]:g,[p]:k});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[y]:a,[p]:s}}}}}},EVe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wi(e,t),h={x:n,y:o},d=Kr(r),p=Nq(d);let y=h[p],g=h[d];const k=Wi(s,t),x=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(c){const w=p==="y"?"height":"width",b=i.reference[p]-i.floating[w]+x.mainAxis,C=i.reference[p]+i.reference[w]-x.mainAxis;y<b?y=b:y>C&&(y=C)}if(l){var v,M;const w=p==="y"?"width":"height",b=hte.has(Gi(r)),C=i.reference[d]-i.floating[w]+(b&&((v=a.offset)==null?void 0:v[d])||0)+(b?0:x.crossAxis),_=i.reference[d]+i.reference[w]+(b?0:((M=a.offset)==null?void 0:M[d])||0)-(b?x.crossAxis:0);g<C?g=C:g>_&&(g=_)}return{[p]:y,[d]:g}}}},jVe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=Wi(e,t),h=await a.detectOverflow(t,l),d=Gi(r),p=dh(r),y=Kr(r)==="y",{width:g,height:k}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,x=p==="end"?"top":"bottom");const M=k-h.top-h.bottom,w=g-h.left-h.right,b=ns(k-h[x],M),C=ns(g-h[v],w),_=!t.middlewareData.shift;let S=b,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=M),_&&!p){const I=ho(h.left,0),R=ho(h.right,0),E=ho(h.top,0),V=ho(h.bottom,0);y?L=g-2*(I!==0||R!==0?I+R:ho(h.left,h.right)):S=k-2*(E!==0||V!==0?E+V:ho(h.top,h.bottom))}await c({...t,availableWidth:L,availableHeight:S});const j=await a.getDimensions(s.floating);return g!==j.width||k!==j.height?{reset:{rects:!0}}:{}}}};function IR(){return typeof window<"u"}function uh(e){return fte(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ai(e){var t;return(t=(fte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fte(e){return IR()?e instanceof Node||e instanceof ko(e).Node:!1}function dr(e){return IR()?e instanceof Element||e instanceof ko(e).Element:!1}function Zi(e){return IR()?e instanceof HTMLElement||e instanceof ko(e).HTMLElement:!1}function pG(e){return!IR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Wf(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function $Ve(e){return/^(table|td|th)$/.test(uh(e))}function AR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const PVe=/transform|translate|scale|rotate|perspective|filter/,zVe=/paint|layout|strict|content/,Ss=e=>!!e&&e!=="none";let hD;function Eq(e){const t=dr(e)?ur(e):e;return Ss(t.transform)||Ss(t.translate)||Ss(t.scale)||Ss(t.rotate)||Ss(t.perspective)||!jq()&&(Ss(t.backdropFilter)||Ss(t.filter))||PVe.test(t.willChange||"")||zVe.test(t.contain||"")}function RVe(e){let t=os(e);for(;Zi(t)&&!eh(t);){if(Eq(t))return t;if(AR(t))return null;t=os(t)}return null}function jq(){return hD==null&&(hD=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hD}function eh(e){return/^(html|body|#document)$/.test(uh(e))}function ur(e){return ko(e).getComputedStyle(e)}function ER(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function os(e){if(uh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pG(e)&&e.host||ai(e);return pG(t)?t.host:t}function pte(e){const t=os(e);return eh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&Wf(t)?t:pte(t)}function _f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pte(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),a=ko(r);if(i){const s=NO(a);return t.concat(a,a.visualViewport||[],Wf(r)?r:[],s&&n?_f(s):[])}else return t.concat(r,_f(r,[],n))}function NO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yte(e){const t=ur(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Zi(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Cz(n)!==i||Cz(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function $q(e){return dr(e)?e:e.contextElement}function L0(e){const t=$q(e);if(!Zi(t))return ei(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=yte(t);let a=(i?Cz(n.width):n.width)/o,s=(i?Cz(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const TVe=ei(0);function mte(e){const t=ko(e);return!jq()||!t.visualViewport?TVe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DVe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function eu(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=$q(e);let a=ei(1);t&&(o?dr(o)&&(a=L0(o)):a=L0(e));const s=DVe(i,n,o)?mte(i):ei(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,h=r.width/a.x,d=r.height/a.y;if(i){const p=ko(i),y=o&&dr(o)?ko(o):o;let g=p,k=NO(g);for(;k&&o&&y!==g;){const x=L0(k),v=k.getBoundingClientRect(),M=ur(k),w=v.left+(k.clientLeft+parseFloat(M.paddingLeft))*x.x,b=v.top+(k.clientTop+parseFloat(M.paddingTop))*x.y;c*=x.x,l*=x.y,h*=x.x,d*=x.y,c+=w,l+=b,g=ko(k),k=NO(g)}}return Lz({width:h,height:d,x:c,y:l})}function jR(e,t){const n=ER(e).scrollLeft;return t?t.left+n:eu(ai(e)).left+n}function gte(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-jR(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function HVe(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",a=ai(o),s=t?AR(t.floating):!1;if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ei(1);const h=ei(0),d=Zi(o);if((d||!d&&!i)&&((uh(o)!=="body"||Wf(a))&&(c=ER(o)),d)){const y=eu(o);l=L0(o),h.x=y.x+o.clientLeft,h.y=y.y+o.clientTop}const p=a&&!d&&!i?gte(a,c):ei(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+p.x,y:n.y*l.y-c.scrollTop*l.y+h.y+p.y}}function OVe(e){return Array.from(e.getClientRects())}function FVe(e){const t=ai(e),n=ER(e),o=e.ownerDocument.body,r=ho(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ho(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+jR(e);const s=-n.scrollTop;return ur(o).direction==="rtl"&&(a+=ho(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}const yG=25;function qVe(e,t){const n=ko(e),o=ai(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const h=jq();(!h||h&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const l=jR(o);if(l<=0){const h=o.ownerDocument,d=h.body,p=getComputedStyle(d),y=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-d.clientWidth-y);g<=yG&&(i-=g)}else l<=yG&&(i+=l);return{width:i,height:a,x:s,y:c}}function VVe(e,t){const n=eu(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Zi(e)?L0(e):ei(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:a,height:s,x:c,y:l}}function mG(e,t,n){let o;if(t==="viewport")o=qVe(e,n);else if(t==="document")o=FVe(ai(e));else if(dr(t))o=VVe(t,n);else{const r=mte(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lz(o)}function kte(e,t){const n=os(e);return n===t||!dr(n)||eh(n)?!1:ur(n).position==="fixed"||kte(n,t)}function BVe(e,t){const n=t.get(e);if(n)return n;let o=_f(e,[],!1).filter(s=>dr(s)&&uh(s)!=="body"),r=null;const i=ur(e).position==="fixed";let a=i?os(e):e;for(;dr(a)&&!eh(a);){const s=ur(a),c=Eq(a);!c&&s.position==="fixed"&&(r=null),(i?!c&&!r:!c&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Wf(a)&&!c&&kte(e,a))?o=o.filter(h=>h!==a):r=s,a=os(a)}return t.set(e,o),o}function UVe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?AR(t)?[]:BVe(t,this._c):[].concat(n),o],s=mG(t,a[0],r);let c=s.top,l=s.right,h=s.bottom,d=s.left;for(let p=1;p<a.length;p++){const y=mG(t,a[p],r);c=ho(y.top,c),l=ns(y.right,l),h=ns(y.bottom,h),d=ho(y.left,d)}return{width:l-d,height:h-c,x:d,y:c}}function WVe(e){const{width:t,height:n}=yte(e);return{width:t,height:n}}function GVe(e,t,n){const o=Zi(t),r=ai(t),i=n==="fixed",a=eu(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ei(0);function l(){c.x=jR(r)}if(o||!o&&!i)if((uh(t)!=="body"||Wf(r))&&(s=ER(t)),o){const y=eu(t,!0,i,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else r&&l();i&&!o&&r&&l();const h=r&&!o&&!i?gte(r,s):ei(0),d=a.left+s.scrollLeft-c.x-h.x,p=a.top+s.scrollTop-c.y-h.y;return{x:d,y:p,width:a.width,height:a.height}}function fD(e){return ur(e).position==="static"}function gG(e,t){if(!Zi(e)||ur(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ai(e)===n&&(n=n.ownerDocument.body),n}function vte(e,t){const n=ko(e);if(AR(e))return n;if(!Zi(e)){let r=os(e);for(;r&&!eh(r);){if(dr(r)&&!fD(r))return r;r=os(r)}return n}let o=gG(e,t);for(;o&&$Ve(o)&&fD(o);)o=gG(o,t);return o&&eh(o)&&fD(o)&&!Eq(o)?n:o||RVe(e)||n}const KVe=async function(e){const t=this.getOffsetParent||vte,n=this.getDimensions,o=await n(e.floating);return{reference:GVe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function XVe(e){return ur(e).direction==="rtl"}const ZVe={convertOffsetParentRelativeRectToViewportRelativeRect:HVe,getDocumentElement:ai,getClippingRect:UVe,getOffsetParent:vte,getElementRects:KVe,getClientRects:OVe,getDimensions:WVe,getScale:L0,isElement:dr,isRTL:XVe};function xte(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YVe(e,t){let n=null,o;const r=ai(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:h,top:d,width:p,height:y}=l;if(s||t(),!p||!y)return;const g=Kp(d),k=Kp(r.clientWidth-(h+p)),x=Kp(r.clientHeight-(d+y)),v=Kp(h),w={rootMargin:-g+"px "+-k+"px "+-x+"px "+-v+"px",threshold:ho(0,ns(1,c))||1};let b=!0;function C(_){const S=_[0].intersectionRatio;if(S!==c){if(!b)return a();S?a(!1,S):o=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!xte(l,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return a(!0),i}function QVe(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=$q(e),h=r||i?[...l?_f(l):[],...t?_f(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&s?YVe(l,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(v=>{let[M]=v;M&&M.target===l&&y&&t&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),t&&y.observe(t));let g,k=c?eu(e):null;c&&x();function x(){const v=eu(e);k&&!xte(k,v)&&n(),k=v,g=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(M=>{r&&M.removeEventListener("scroll",n),i&&M.removeEventListener("resize",n)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const JVe=IVe,eBe=AVe,tBe=SVe,nBe=jVe,oBe=LVe,kG=CVe,rBe=EVe,iBe=(e,t,n)=>{const o=new Map,r={platform:ZVe,...n},i={...r.platform,_c:o};return _Ve(e,t,{...r,platform:i})};var aBe=typeof document<"u",sBe=function(){},SP=aBe?m.useLayoutEffect:sBe;function Nz(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Nz(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Nz(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wte(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vG(e,t){const n=wte(e);return Math.round(t*n)/n}function pD(e){const t=m.useRef(e);return SP(()=>{t.current=e}),t}function cBe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[h,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=m.useState(o);Nz(p,o)||y(o);const[g,k]=m.useState(null),[x,v]=m.useState(null),M=m.useCallback(z=>{z!==_.current&&(_.current=z,k(z))},[]),w=m.useCallback(z=>{z!==S.current&&(S.current=z,v(z))},[]),b=i||g,C=a||x,_=m.useRef(null),S=m.useRef(null),L=m.useRef(h),j=c!=null,I=pD(c),R=pD(r),E=pD(l),V=m.useCallback(()=>{if(!_.current||!S.current)return;const z={placement:t,strategy:n,middleware:p};R.current&&(z.platform=R.current),iBe(_.current,S.current,z).then(A=>{const N={...A,isPositioned:E.current!==!1};$.current&&!Nz(L.current,N)&&(L.current=N,au.flushSync(()=>{d(N)}))})},[p,t,n,R,E]);SP(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[l]);const $=m.useRef(!1);SP(()=>($.current=!0,()=>{$.current=!1}),[]),SP(()=>{if(b&&(_.current=b),C&&(S.current=C),b&&C){if(I.current)return I.current(b,C,V);V()}},[b,C,V,I,j]);const T=m.useMemo(()=>({reference:_,floating:S,setReference:M,setFloating:w}),[M,w]),D=m.useMemo(()=>({reference:b,floating:C}),[b,C]),F=m.useMemo(()=>{const z={position:n,left:0,top:0};if(!D.floating)return z;const A=vG(D.floating,h.x),N=vG(D.floating,h.y);return s?{...z,transform:"translate("+A+"px, "+N+"px)",...wte(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:N}},[n,s,D.floating,h.x,h.y]);return m.useMemo(()=>({...h,update:V,refs:T,elements:D,floatingStyles:F}),[h,V,T,D,F])}const lBe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?kG({element:o.current,padding:r}).fn(n):{}:o?kG({element:o,padding:r}).fn(n):{}}}},dBe=(e,t)=>{const n=JVe(e);return{name:n.name,fn:n.fn,options:[e,t]}},uBe=(e,t)=>{const n=eBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},hBe=(e,t)=>({fn:rBe(e).fn,options:[e,t]}),fBe=(e,t)=>{const n=tBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pBe=(e,t)=>{const n=nBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},yBe=(e,t)=>{const n=oBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},mBe=(e,t)=>{const n=lBe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gBe="Arrow",Mte=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return f.jsx(We.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mte.displayName=gBe;var kBe=Mte,Pq="Popper",[bte,hh]=yr(Pq),[vBe,_te]=bte(Pq),Cte=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return f.jsx(vBe,{scope:t,anchor:o,onAnchorChange:r,children:n})};Cte.displayName=Pq;var Ste="PopperAnchor",Lte=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=_te(Ste,n),a=m.useRef(null),s=xt(t,a),c=m.useRef(null);return m.useEffect(()=>{const l=c.current;c.current=(o==null?void 0:o.current)||a.current,l!==c.current&&i.onAnchorChange(c.current)}),o?null:f.jsx(We.div,{...r,ref:s})});Lte.displayName=Ste;var zq="PopperContent",[xBe,wBe]=bte(zq),Nte=m.forwardRef((e,t)=>{var ae,oe,re,se,ve,ke;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:y="optimized",onPlaced:g,...k}=e,x=_te(zq,n),[v,M]=m.useState(null),w=xt(t,ge=>M(ge)),[b,C]=m.useState(null),_=Oee(b),S=(_==null?void 0:_.width)??0,L=(_==null?void 0:_.height)??0,j=o+(i!=="center"?"-"+i:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},R=Array.isArray(l)?l:[l],E=R.length>0,V={padding:I,boundary:R.filter(bBe),altBoundary:E},{refs:$,floatingStyles:T,placement:D,isPositioned:F,middlewareData:z}=cBe({strategy:"fixed",placement:j,whileElementsMounted:(...ge)=>QVe(...ge,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[dBe({mainAxis:r+L,alignmentAxis:a}),c&&uBe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hBe():void 0,...V}),c&&fBe({...V}),pBe({...V,apply:({elements:ge,rects:Pe,availableWidth:Be,availableHeight:De})=>{const{width:pe,height:me}=Pe.reference,Ie=ge.floating.style;Ie.setProperty("--radix-popper-available-width",`${Be}px`),Ie.setProperty("--radix-popper-available-height",`${De}px`),Ie.setProperty("--radix-popper-anchor-width",`${pe}px`),Ie.setProperty("--radix-popper-anchor-height",`${me}px`)}}),b&&mBe({element:b,padding:s}),_Be({arrowWidth:S,arrowHeight:L}),p&&yBe({strategy:"referenceHidden",...V})]}),[A,N]=Ete(D),W=ri(g);ts(()=>{F&&(W==null||W())},[F,W]);const O=(ae=z.arrow)==null?void 0:ae.x,P=(oe=z.arrow)==null?void 0:oe.y,Y=((re=z.arrow)==null?void 0:re.centerOffset)!==0,[Z,te]=m.useState();return ts(()=>{v&&te(window.getComputedStyle(v).zIndex)},[v]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(se=z.transformOrigin)==null?void 0:se.x,(ve=z.transformOrigin)==null?void 0:ve.y].join(" "),...((ke=z.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(xBe,{scope:n,placedSide:A,onArrowChange:C,arrowX:O,arrowY:P,shouldHideArrow:Y,children:f.jsx(We.div,{"data-side":A,"data-align":N,...k,ref:w,style:{...k.style,animation:F?void 0:"none"}})})})});Nte.displayName=zq;var Ite="PopperArrow",MBe={top:"bottom",right:"left",bottom:"top",left:"right"},Ate=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=wBe(Ite,o),a=MBe[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(kBe,{...r,ref:n,style:{...r.style,display:"block"}})})});Ate.displayName=Ite;function bBe(e){return e!==null}var _Be=e=>({name:"transformOrigin",options:e,fn(t){var x,v,M;const{placement:n,rects:o,middlewareData:r}=t,a=((x=r.arrow)==null?void 0:x.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,h]=Ete(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(((v=r.arrow)==null?void 0:v.x)??0)+s/2,y=(((M=r.arrow)==null?void 0:M.y)??0)+c/2;let g="",k="";return l==="bottom"?(g=a?d:`${p}px`,k=`${-c}px`):l==="top"?(g=a?d:`${p}px`,k=`${o.floating.height+c}px`):l==="right"?(g=`${-c}px`,k=a?d:`${y}px`):l==="left"&&(g=`${o.floating.width+c}px`,k=a?d:`${y}px`),{data:{x:g,y:k}}}});function Ete(e){const[t,n="center"]=e.split("-");return[t,n]}var Rq=Cte,$R=Lte,Tq=Nte,Dq=Ate,CBe="Portal",Gf=m.forwardRef((e,t)=>{var s;const{container:n,...o}=e,[r,i]=m.useState(!1);ts(()=>i(!0),[]);const a=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Ale.createPortal(f.jsx(We.div,{...o,ref:t}),a):null});Gf.displayName=CBe;function SBe(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var _o=e=>{const{present:t,children:n}=e,o=LBe(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),i=xt(o.ref,NBe(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:i}):null};_o.displayName="Presence";function LBe(e){const[t,n]=m.useState(),o=m.useRef(null),r=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[s,c]=SBe(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Xp(o.current);i.current=s==="mounted"?l:"none"},[s]),ts(()=>{const l=o.current,h=r.current;if(h!==e){const p=i.current,y=Xp(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(h&&p!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ts(()=>{if(t){let l;const h=t.ownerDocument.defaultView??window,d=y=>{const k=Xp(o.current).includes(CSS.escape(y.animationName));if(y.target===t&&k&&(c("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=y=>{y.target===t&&(i.current=Xp(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Xp(e){return(e==null?void 0:e.animationName)||"none"}function NBe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IBe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,Zp=new WeakMap,Yp={},yD=0,jte=function(e){return e&&(e.host||jte(e.parentNode))},ABe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=jte(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EBe=function(e,t,n,o){var r=ABe(t,Array.isArray(e)?e:[e]);Yp[n]||(Yp[n]=new WeakMap);var i=Yp[n],a=[],s=new Set,c=new Set(r),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};r.forEach(l);var h=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))h(p);else try{var y=p.getAttribute(o),g=y!==null&&y!=="false",k=(Pu.get(p)||0)+1,x=(i.get(p)||0)+1;Pu.set(p,k),i.set(p,x),a.push(p),k===1&&g&&Zp.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),s.clear(),yD++,function(){a.forEach(function(d){var p=Pu.get(d)-1,y=i.get(d)-1;Pu.set(d,p),i.set(d,y),p||(Zp.has(d)||d.removeAttribute(o),Zp.delete(d)),y||d.removeAttribute(n)}),yD--,yD||(Pu=new WeakMap,Pu=new WeakMap,Zp=new WeakMap,Yp={})}},Hq=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=IBe(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),EBe(o,r,n,"aria-hidden")):function(){return null}},Wr=function(){return Wr=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wr.apply(this,arguments)};function $te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function jBe(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var LP="right-scroll-bar-position",NP="width-before-scroll-bar",$Be="with-scroll-bars-hidden",PBe="--removed-body-scroll-bar-size";function mD(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zBe(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var RBe=typeof window<"u"?m.useLayoutEffect:m.useEffect,xG=new WeakMap;function TBe(e,t){var n=zBe(null,function(o){return e.forEach(function(r){return mD(r,o)})});return RBe(function(){var o=xG.get(n);if(o){var r=new Set(o),i=new Set(e),a=n.current;r.forEach(function(s){i.has(s)||mD(s,null)}),i.forEach(function(s){r.has(s)||mD(s,a)})}xG.set(n,e)},[e]),n}function DBe(e){return e}function HBe(e,t){t===void 0&&(t=DBe);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,o);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(o=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var h=a;a=[],h.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(h){a.push(h),l()},filter:function(h){return a=a.filter(h),n}}}};return r}function OBe(e){e===void 0&&(e={});var t=HBe(null);return t.options=Wr({async:!0,ssr:!1},e),t}var Pte=function(e){var t=e.sideCar,n=$te(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return m.createElement(o,Wr({},n))};Pte.isSideCarExport=!0;function FBe(e,t){return e.useMedium(t),Pte}var zte=OBe(),gD=function(){},PR=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:gD,onWheelCapture:gD,onTouchMoveCapture:gD}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,y=e.noRelative,g=e.noIsolation,k=e.inert,x=e.allowPinchZoom,v=e.as,M=v===void 0?"div":v,w=e.gapMode,b=$te(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=TBe([n,t]),S=Wr(Wr({},b),r);return m.createElement(m.Fragment,null,h&&m.createElement(C,{sideCar:zte,removeScrollBar:l,shards:d,noRelative:y,noIsolation:g,inert:k,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:w}),a?m.cloneElement(m.Children.only(s),Wr(Wr({},S),{ref:_})):m.createElement(M,Wr({},S,{className:c,ref:_}),s))});PR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};PR.classNames={fullWidth:NP,zeroRight:LP};var qBe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VBe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qBe();return t&&e.setAttribute("nonce",t),e}function BBe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UBe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WBe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VBe())&&(BBe(t,n),UBe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GBe=function(){var e=WBe();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rte=function(){var e=GBe(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},KBe={left:0,top:0,right:0,gap:0},kD=function(e){return parseInt(e||"",10)||0},XBe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[kD(n),kD(o),kD(r)]},ZBe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KBe;var t=XBe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},YBe=Rte(),N0="data-scroll-locked",QBe=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
8469
+ `);return}E.preventDefault(),w.current=!0,S();return}E.key==="Escape"&&(E.preventDefault(),w.current=!0,L())},I=E=>{E.preventDefault();const V=E.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},R=()=>{if(w.current){w.current=!1;return}const E=p.current;!E||!E.isConnected||S()};return f.jsx("div",{ref:p,"data-testid":"inline-edit-input","data-field":a,"data-placeholder":l,role:"textbox",tabIndex:0,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onInput:_,onKeyDown:j,onPaste:I,onBlur:R,onMouseDown:E=>E.stopPropagation(),onClick:E=>E.stopPropagation(),onDoubleClick:E=>E.stopPropagation(),style:c,className:ee("nodrag nopan nowheel sf:block sf:w-full sf:bg-transparent sf:p-0 sf:text-inherit sf:outline-none","sf:whitespace-pre-wrap sf:wrap-break-word",k&&l?"inline-edit-empty":"",y?"inline-edit-shake":"",s)})}const _ee=8,SW=12,LW={height:`${_ee}px`,borderColor:"transparent"},NW={width:`${_ee}px`,borderColor:"transparent"},dOe={width:`${SW}px`,height:`${SW}px`,background:"transparent",border:"none"},uOe={width:"calc(10px / var(--rf-zoom, 1))",height:"calc(10px / var(--rf-zoom, 1))",background:"hsl(var(--background))",border:"calc(1px / var(--rf-zoom, 1)) solid hsl(var(--primary) / 0.6)",borderRadius:"calc(2px / var(--rf-zoom, 1))",zIndex:1},hOe=[{position:"top",style:LW},{position:"bottom",style:LW},{position:"left",style:NW},{position:"right",style:NW}],fOe=["top-left","top-right","bottom-left","bottom-right"],IW={pointerEvents:"none",cursor:"default"};function su({visible:e,minWidth:t=80,minHeight:n=40,onResizeStart:o,onResize:r,onResizeEnd:i,cornerVariant:a="invisible"}){const s=a==="visible"?uOe:dOe,c=h=>e?h:{...h,...IW},l=e?s:{...s,opacity:0,...IW};return f.jsxs(f.Fragment,{children:[hOe.map(({position:h,style:d})=>f.jsx(_W,{position:h,variant:Ja.Line,minWidth:t,minHeight:n,style:c(d),onResizeStart:o,onResize:r,onResizeEnd:i,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h)),fOe.map(h=>f.jsx(_W,{position:h,variant:Ja.Handle,minWidth:t,minHeight:n,style:l,autoScale:!1,onResizeStart:o,onResize:r,onResizeEnd:i,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h))]})}function AW(e){const t=e==null?void 0:e.sourceEvent;return{metaKey:t==null?void 0:t.metaKey,ctrlKey:t==null?void 0:t.ctrlKey}}function pOe(e,t){return{left:t.x!==e.x,right:t.x+t.width!==e.x+e.width,top:t.y!==e.y,bottom:t.y+t.height!==e.y+e.height}}function yOe(e){return!!(e.left||e.right||e.top||e.bottom)}function cu(e){const{onResize:t,onResizeEnd:n,onResizeFinal:o,setResizing:r,nodeId:i,alignment:a}=e,[s,c]=m.useState(!1),l=m.useRef(null),h=m.useRef(!1),d=m.useRef(t),p=m.useRef(n),y=m.useRef(o),g=m.useRef(r),k=m.useRef(a),x=m.useRef(i);m.useEffect(()=>{d.current=t},[t]),m.useEffect(()=>{p.current=n},[n]),m.useEffect(()=>{y.current=o},[o]),m.useEffect(()=>{g.current=r},[r]),m.useEffect(()=>{k.current=a},[a]),m.useEffect(()=>{x.current=i},[i]);const v=m.useCallback((b,C)=>{var _;c(!0),(_=g.current)==null||_.call(g,!0),h.current=!1,l.current=C?{x:C.x,y:C.y,width:C.width,height:C.height}:null},[]),M=m.useCallback((b,C)=>{var I;let _={x:C.x,y:C.y,width:C.width,height:C.height};const S=k.current,L=x.current,j=l.current;if(S&&L&&j){if(!h.current){const R=pOe(j,C);yOe(R)&&(S.beginResize(L,R),h.current=!0)}if(h.current){const{snappedRect:R}=S.applyResizeSnap({id:L,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));_={x:R.x,y:R.y,width:R.w,height:R.h}}}(I=d.current)==null||I.call(d,_)},[]),w=m.useCallback((b,C)=>{var R,E,V,$;c(!1),(R=g.current)==null||R.call(g,!1);const _=l.current;l.current=null;const S=h.current;h.current=!1;const L=k.current,j=x.current;if(_&&_.width===C.width&&_.height===C.height){S&&(L==null||L.endResize());return}let I={x:C.x,y:C.y,width:C.width,height:C.height};if(L&&j&&S){const{snappedRect:T}=L.applyResizeSnap({id:j,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));I={x:T.x,y:T.y,width:T.w,height:T.h}}L==null||L.endResize(),(E=d.current)==null||E.call(d,I),(V=p.current)==null||V.call(p,I),_&&(($=y.current)==null||$.call(y,I,_))},[]);return{isResizing:s,onResizeStart:v,onResizeEvent:M,onResizeEnd:w}}const G0={width:48,height:48},mOe=24,gOe=24,Bp="sf:opacity-0 sf:transition-opacity";function kOe(e){return Ct(e,"text").color??"currentColor"}function vOe({id:e,data:t,selected:n,isConnectable:o}){const{onResizeStart:r,onResizeEvent:i,onResizeEnd:a}=cu({onResize:x=>{var v;return(v=t.onResize)==null?void 0:v.call(t,e,x)},onResizeEnd:x=>{var v;return(v=t.onResizeEnd)==null?void 0:v.call(t,e,x)},setResizing:t.setResizing,nodeId:e,alignment:t.resizeAlignment}),s=t.width!==void 0||t.height!==void 0,c=!!t.onNameChange,[l,h]=m.useState(!1),{studioBaseUrl:d}=m.useContext(Tf),p=kOe(t.color),y=t.strokeWidth??2,g={...s?{}:{width:G0.width,height:G0.height}},k=x=>{!c||l||(x.stopPropagation(),h(!0))};return f.jsxs("div",{className:ee("sf:group sf:relative",s?"sf:h-full sf:w-full":""),style:g,"data-testid":"icon-node","data-node-type":"icon",onDoubleClick:k,children:[f.jsx(su,{visible:!!n&&!!t.onResize&&!l,cornerVariant:"visible",minWidth:mOe,minHeight:gOe,onResizeStart:r,onResize:i,onResizeEnd:a}),f.jsx(lt,{type:"target",position:ue.Top,id:"t",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"target",position:ue.Left,id:"l",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(Qa,{iconId:t.icon,studioBaseUrl:d,color:p,strokeWidth:y,absoluteStrokeWidth:!0,ariaLabel:t.alt,className:"sf:block sf:h-full sf:w-full sf:pointer-events-none sf:select-none"}),l&&c?f.jsx("div",{className:"sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:text-center sf:text-xs sf:text-muted-foreground",children:f.jsx(Pa,{initialValue:t.name??"",field:"icon-node-label",onCommit:x=>{var v;return(v=t.onNameChange)==null?void 0:v.call(t,e,x)},onExit:()=>h(!1),placeholder:"Label"})}):t.name?f.jsx("span",{"data-testid":"icon-node-label",className:"sf:pointer-events-none sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:truncate sf:text-center sf:text-xs sf:text-muted-foreground sf:select-none",children:t.name}):null,f.jsx(lt,{type:"source",position:ue.Right,id:"r",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"source",position:ue.Bottom,id:"b",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")})]})}function xOe(e,t){return e.selected===t.selected&&e.data===t.data&&e.width===t.width&&e.height===t.height}const wOe=m.memo(vOe,xOe),Cee="seeflow:icon-recents",MOe=16;function See(){if(typeof window>"u")return[];try{const e=window.localStorage.getItem(Cee);if(e===null)return[];const t=JSON.parse(e);return Array.isArray(t)?t.every(n=>typeof n=="string")?t:[]:[]}catch{return[]}}function bOe(e){if(!(typeof window>"u"))try{const n=See().filter(r=>r!==e),o=[e,...n].slice(0,MOe);window.localStorage.setItem(Cee,JSON.stringify(o))}catch{}}const _Oe=typeof navigator<"u"&&typeof navigator.platform=="string"&&navigator.platform.toLowerCase().includes("mac"),COe=e=>e.length===1?e.toUpperCase():e==="Escape"?"Esc":e,Ft=(e,t=_Oe)=>{const n=COe(e.key);if(t){let r="";return e.meta&&(r+="⌘"),e.alt&&(r+="⌥"),e.shift&&(r+="⇧"),`${r}${n}`}const o=[];return e.meta&&o.push("Ctrl"),e.shift&&o.push("Shift"),e.alt&&o.push("Alt"),o.push(n),o.join("+")},vq=[{id:"tool.select",label:"Select tool",description:"Switch to the selection tool",category:"Tools",shortcut:Ft({key:"V"})},{id:"tool.hand",label:"Hand tool",description:"Pan the canvas; node interaction is suspended while armed",category:"Tools",shortcut:Ft({key:"H"})},{id:"tool.rectangle",label:"Rectangle",description:"Draw rectangle nodes",category:"Tools",shortcut:Ft({key:"R"})},{id:"tool.ellipse",label:"Ellipse",description:"Draw ellipse nodes",category:"Tools",shortcut:Ft({key:"O"})},{id:"tool.text",label:"Text",description:"Add a text node",category:"Tools",shortcut:Ft({key:"T"})},{id:"tool.sticky",label:"Sticky note",description:"Add a sticky note",category:"Tools",shortcut:Ft({key:"S"})},{id:"tool.database",label:"Database",description:"Add a database node",category:"Tools",shortcut:Ft({key:"D"})},{id:"tool.server",label:"Server",description:"Add a server node",category:"Tools"},{id:"tool.user",label:"User",description:"Add a user node",category:"Tools"},{id:"tool.queue",label:"Queue",description:"Add a queue node",category:"Tools"},{id:"tool.cloud",label:"Cloud",description:"Add a cloud node",category:"Tools"},{id:"tool.diamond",label:"Diamond",description:"Add a diamond node (decision / gateway)",category:"Tools"},{id:"tool.hexagon",label:"Hexagon",description:"Add a hexagon node (microservice)",category:"Tools"},{id:"tool.triangle",label:"Triangle",description:"Add a triangle node (warning / hierarchy)",category:"Tools"},{id:"tool.parallelogram",label:"Parallelogram",description:"Add a parallelogram node (data / IO in flowcharts)",category:"Tools"},{id:"tool.document",label:"Document",description:"Add a document node (file / report)",category:"Tools"},{id:"tool.linkflow",label:"Link node",description:"Add a link node and pick a target flow",category:"Tools"},{id:"edit.undo",label:"Undo",category:"Edit",shortcut:Ft({meta:!0,key:"Z"}),enabled:e=>e.canUndo},{id:"edit.redo",label:"Redo",category:"Edit",shortcut:Ft({meta:!0,shift:!0,key:"Z"}),enabled:e=>e.canRedo},{id:"edit.copy",label:"Copy",category:"Edit",shortcut:Ft({meta:!0,key:"C"}),enabled:e=>e.hasSelection},{id:"edit.paste",label:"Paste",category:"Edit",shortcut:Ft({meta:!0,key:"V"}),enabled:e=>e.hasClipboard},{id:"edit.duplicate",label:"Duplicate",category:"Edit",shortcut:Ft({meta:!0,key:"D"}),enabled:e=>e.hasSelection},{id:"edit.delete",label:"Delete",category:"Edit",shortcut:Ft({key:"Delete"}),enabled:e=>e.hasSelection},{id:"edit.selectAll",label:"Select all",category:"Edit",shortcut:Ft({meta:!0,key:"A"})},{id:"view.fit",label:"Fit view",description:"Fit everything in the viewport",category:"View",shortcut:Ft({meta:!0,key:"0"})},{id:"view.zoomIn",label:"Zoom in",category:"View",shortcut:Ft({meta:!0,key:"="})},{id:"view.zoomOut",label:"Zoom out",category:"View",shortcut:Ft({meta:!0,key:"-"})},{id:"view.zoom100",label:"Zoom to 100%",category:"View",shortcut:Ft({key:"1"})},{id:"view.zoomToSelection",label:"Zoom to selection",category:"View",shortcut:Ft({key:"F"}),enabled:e=>e.hasSelection},{id:"layout.tidy",label:"Tidy layout",description:"Auto-layout the canvas or current selection",category:"Layout",shortcut:Ft({meta:!0,shift:!0,key:"L"})},{id:"selection.deselect",label:"Deselect",description:"Clear selection and exit draw mode",category:"Selection",shortcut:Ft({key:"Escape"})},{id:"help.commandPalette",label:"Open command palette",category:"Help",shortcut:Ft({meta:!0,key:"P"})},{id:"export.pdf",label:"Export to PDF",description:"Download the current canvas as a PDF",category:"File",enabled:e=>e.canExportDemo},{id:"export.png",label:"Export as image",description:"Download the current canvas as a PNG",category:"File",enabled:e=>e.canExportDemo}],iD=e=>{const t=vq.find(n=>n.id===e);return t?t.shortcut?`${t.label} (${t.shortcut})`:t.label:""},SOe=1,LOe=10,NOe=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return null;const t=e.shiftKey?LOe:SOe;switch(e.key){case"ArrowLeft":return{dx:-t,dy:0};case"ArrowRight":return{dx:t,dy:0};case"ArrowUp":return{dx:0,dy:-t};case"ArrowDown":return{dx:0,dy:t};default:return null}},IOe=e=>{if(!(e.metaKey||e.ctrlKey)||e.altKey)return null;switch(e.key){case"0":return"fit";case"=":case"+":return"in";case"-":case"_":return"out";default:return null}},AOe=(e,t,n)=>{if(t.length===0)return[];const o=new Map(n.map(i=>[i.id,i])),r=[];for(const i of t){const a=o.get(i);a&&r.push({id:i,position:{x:a.position.x+e.dx,y:a.position.y+e.dy}})}return r},EOe=({event:e,isEditableActive:t,hasNodes:n,hasConnectors:o,selectedIds:r,hasClipboard:i})=>{if(!(e.metaKey||e.ctrlKey))return{type:"noop"};if(e.shiftKey||e.altKey)return{type:"noop"};const a=e.key.toLowerCase();return a!=="a"&&a!=="c"&&a!=="v"&&a!=="d"?{type:"noop"}:t?{type:"noop"}:a==="a"?!n&&!o?{type:"noop"}:{type:"selectAll"}:a==="c"?r.length===0?{type:"noop"}:{type:"copy",ids:r}:a==="d"?r.length===0?{type:"noop"}:{type:"duplicate",ids:r}:i?{type:"paste"}:{type:"noop"}},jOe=(e,t)=>{if(t.isEditableActive||!(e.metaKey||e.ctrlKey)||e.altKey)return null;const n=e.key.toLowerCase();return n==="z"?e.shiftKey?"redo":"undo":n==="y"&&!e.shiftKey?"redo":null},$Oe=e=>{if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return null;switch(e.key.toLowerCase()){case"v":return"select";case"h":return"hand";case"r":return"rectangle";case"o":return"ellipse";case"t":return"text";case"s":return"sticky";case"d":return"database";default:return null}},ji="seeflow",Lee=e=>`${e}:last-used-style:v1`,aD=()=>({node:{},connector:{}}),sD=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),xq=e=>{var t;try{const n=(t=globalThis.localStorage)==null?void 0:t.getItem(Lee(e));if(!n)return aD();const o=JSON.parse(n);if(!sD(o))return aD();const r=sD(o.node)?o.node:{},i=sD(o.connector)?o.connector:{};return{node:r,connector:i}}catch{return aD()}},Nee=(e,t)=>{var n;try{(n=globalThis.localStorage)==null||n.setItem(Lee(e),JSON.stringify(t))}catch{}},c0=e=>xq(e),EW=(e,t)=>{const{alt:n,...o}=t,r={...o};r.borderSize!==void 0&&r.borderWidth===void 0?r.borderWidth=r.borderSize:r.borderWidth!==void 0&&r.borderSize===void 0&&(r.borderSize=r.borderWidth);const i=xq(e);Nee(e,{...i,node:{...i.node,...r}})},POe=(e,t)=>{const n=xq(e);Nee(e,{...n,connector:{...n.connector,...t}})},wq=1,jW=17,hO=(e,t)=>{if(!e)return{};const n={};for(const o of t)e[o]!==void 0&&(n[o]=e[o]);return n},zOe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","cornerRadius","shadow"],ROe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","shadow"],TOe=["fontSize"],DOe=["borderColor","borderWidth","borderStyle","shadow"];function $W(e,t,n){if(e==="text")return{width:t.width,height:t.height,fontSize:jW,...hO(n,TOe)};const o=e==="ellipse"?ROe:zOe;return{width:t.width,height:t.height,borderSize:wq,fontSize:jW,...hO(n,o)}}function HOe(e,t,n){return{path:e,width:t.width,height:t.height,borderWidth:wq,...hO(n,DOe)}}const wn=async(e,t,n,o,r)=>{const i={method:t},a={...o??{}};r!==void 0&&(a["content-type"]="application/json",i.body=JSON.stringify(r)),Object.keys(a).length>0&&(i.headers=a);const s=await e(n,i);if(!s.ok){let c=null;try{c=await s.json()}catch{}throw new Error((c==null?void 0:c.error)??`${t} ${n} → ${s.status}`)}return await s.json()},OOe=e=>{const{baseUrl:t,project:n,flow:o}=e,r=e.fetch??globalThis.fetch.bind(globalThis),i=e.EventSource??globalThis.EventSource,a=e.headers,s=`${t}/api/projects/${encodeURIComponent(n)}`,c=`${s}/flows/${encodeURIComponent(o)}`,l=`${t}/api/icons`;return{async createNode(d){const p=await wn(r,"POST",`${c}/nodes`,a,d);return{id:p.id,node:p.node}},async updateNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}`,a,p)},async updateNodePosition(d,p){return await wn(r,"PATCH",`${c}/nodes/${d}/position`,a,p)},async deleteNode(d){await wn(r,"DELETE",`${c}/nodes/${d}`,a)},async reorderNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}/order`,a,p)},async createConnector(d){return{id:(await wn(r,"POST",`${c}/connectors`,a,d)).id}},async updateConnector(d,p){await wn(r,"PATCH",`${c}/connectors/${d}`,a,p)},async deleteConnector(d){await wn(r,"DELETE",`${c}/connectors/${d}`,a)},async uploadImage(d,p,y){const g=new FormData;g.append("file",p),g.append("filename",y);const k=`${c}/nodes/${encodeURIComponent(d)}/files/upload`,x={method:"POST",body:g};a&&(x.headers={...a});const v=await r(k,x);if(!v.ok){let M=null;try{M=await v.json()}catch{}throw new Error((M==null?void 0:M.error)??`POST ${k} → ${v.status}`)}return await v.json()},async playAction(d){return await wn(r,"POST",`${c}/play/${d}`,a,{})},async openFile(d){await wn(r,"POST",`${s}/files/open`,a,{path:d})},async revealFile(d){await wn(r,"POST",`${s}/files/reveal`,a,{path:d})},async computeLayout(d,p){const y=await wn(r,"POST",`${t}/api/layout`,a,{nodes:d,edges:p});return{nodes:y.nodes,connectors:y.connectors}},icons:{async listPacks(){return(await wn(r,"GET",`${l}/packs`,a)).packs},async install(d,p){return{jobId:(await wn(r,"POST",`${l}/install`,a,{vendor:d,acceptTerms:p.acceptTerms??!1})).jobId}},subscribeJob(d,p){const y=`${l}/jobs/${encodeURIComponent(d)}/events`,g=new i(y);return g.onmessage=k=>{try{p(JSON.parse(k.data))}catch(x){console.error("icons.subscribeJob: failed to parse SSE payload",x)}},()=>g.close()},async remove(d){await wn(r,"DELETE",`${l}/packs/${encodeURIComponent(d)}`,a)},async getLicense(d){const p=await wn(r,"GET",`${l}/licenses/${encodeURIComponent(d)}`,a);return{summary:p.summary,url:p.url,requiresAcceptance:p.requiresAcceptance}}}}},FOe=500,qOe=500,VOe=2e3,BOe=(e,t)=>{if(!e&&!t)return;if(!e)return{...t};if(!t)return{...e};const n={...t};for(const[o,r]of Object.entries(e))n[o]=r;return n},PW=(e,t,n)=>{const o=Date.now(),r=FOe,i=qOe,{stack:a,cursor:s}=e;if(t.coalesceKey&&s>0){const h=a[s-1];if(h&&h.coalesceKey===t.coalesceKey&&o-h.capturedAt<=i){const d=a.slice(0,s);return d[s-1]={...h,do:t.do,capturedAt:o,beforeFields:BOe(h.beforeFields,t.beforeFields)},{stack:d,cursor:s}}}const c=a.slice(0,s);c.push({...t,capturedAt:o});let l=s+1;for(;c.length>r;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},UOe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},WOe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iee=()=>({stack:[],cursor:0}),zW=e=>e.cursor===e.stack.length?e:{stack:e.stack.slice(0,e.cursor),cursor:e.cursor},GOe=(e,t,n=Date.now(),o=VOe)=>n-t>o?Iee():e,KOe=new Set(["borderColor","backgroundColor","borderSize","borderWidth","borderStyle","fontSize","textAlign","cornerRadius","shadow","color","strokeWidth","target"]);function XOe(e,t){let n={stack:[],cursor:0},o=0;const r=new Set;let i=null;const a=()=>({canUndo:n.cursor>0,canRedo:n.cursor<n.stack.length}),s=()=>{const k=a();for(const x of r)x(k)},c=()=>{if(i){o=Date.now();return}const k=zW(n);o=Date.now(),k!==n&&(n=k,s())},l=k=>{if(i){i.ops.push({redo:k.do,undo:k.undo});return}n=PW(n,{...k,capturedAt:Date.now()}),s()},h={createNode:async k=>{c();const x=await e.createNode(k);return l({do:async()=>{await e.createNode({...k,id:x.id})},undo:async()=>{await e.deleteNode(x.id)}}),x},updateNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateNode(k,x);return}const w={},b=M.data??{};for(const _ of Object.keys(x))if(_==="position")w[_]=M.position;else if(_==="type")w[_]=M.type;else{const S=b[_];w[_]=S===void 0&&KOe.has(_)?null:S}await e.updateNode(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateNode(k,x)},undo:async()=>{await e.updateNode(k,w)},coalesceKey:`update:${k}:${C}`,beforeFields:w})},updateNodePosition:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(C=>C.id===k),w=M==null?void 0:M.position,b=await e.updateNodePosition(k,x);return w&&l({do:async()=>{await e.updateNodePosition(k,x)},undo:async()=>{await e.updateNodePosition(k,w)},coalesceKey:`pos:${k}`}),b},deleteNode:async k=>{c();const{nodes:x,connectors:v}=t(),M=x.find(b=>b.id===k);if(!M){await e.deleteNode(k);return}const w=v.filter(b=>b.source===k||b.target===k);await e.deleteNode(k),l({do:async()=>{await e.deleteNode(k)},undo:async()=>{await e.createNode({id:M.id,type:M.type,position:M.position,data:M.data??{}});for(const b of w)try{await e.createConnector({id:b.id,source:b.source,target:b.target,sourceHandle:b.sourceHandle,targetHandle:b.targetHandle,sourceHandleAutoPicked:b.sourceHandleAutoPicked,targetHandleAutoPicked:b.targetHandleAutoPicked,sourcePin:b.sourcePin,targetPin:b.targetPin,label:b.label,style:b.style,color:b.color,direction:b.direction,eventName:b.eventName,queueName:b.queueName,method:b.method,url:b.url})}catch(C){console.warn(`[seeflow/canvas] failed to restore connector ${b.id} during deleteNode undo:`,C)}}})},reorderNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.findIndex(w=>w.id===k);if(M<0){await e.reorderNode(k,x);return}await e.reorderNode(k,x),l({do:async()=>{await e.reorderNode(k,x)},undo:async()=>{await e.reorderNode(k,{op:"toIndex",index:M})}})},createConnector:async k=>{c();const x=await e.createConnector(k);return l({do:async()=>{await e.createConnector({...k,id:x.id})},undo:async()=>{await e.deleteConnector(x.id)}}),x},updateConnector:async(k,x)=>{c();const{connectors:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateConnector(k,x);return}const w={},b=M;for(const _ of Object.keys(x))w[_]=b[_];await e.updateConnector(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateConnector(k,x)},undo:async()=>{await e.updateConnector(k,w)},coalesceKey:`update:conn:${k}:${C}`,beforeFields:w})},deleteConnector:async k=>{c();const{connectors:x}=t(),v=x.find(M=>M.id===k);if(!v){await e.deleteConnector(k);return}await e.deleteConnector(k),l({do:async()=>{await e.deleteConnector(k)},undo:async()=>{await e.createConnector({id:v.id,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,sourceHandleAutoPicked:v.sourceHandleAutoPicked,targetHandleAutoPicked:v.targetHandleAutoPicked,sourcePin:v.sourcePin,targetPin:v.targetPin,label:v.label,style:v.style,color:v.color,direction:v.direction,eventName:v.eventName,queueName:v.queueName,method:v.method,url:v.url})}})},uploadImage:(k,x,v)=>e.uploadImage(k,x,v),...e.playAction?{playAction:k=>e.playAction(k)}:{},...e.openFile?{openFile:k=>e.openFile(k)}:{},...e.revealFile?{revealFile:k=>e.revealFile(k)}:{},...e.computeLayout?{computeLayout:(k,x)=>e.computeLayout(k,x)}:{},...e.icons?{icons:e.icons}:{}};let d=Promise.resolve();const p=async()=>{const k=UOe(n);k.entry&&(n=k.state,s(),await k.entry.undo())},y=async()=>{const k=WOe(n);k.entry&&(n=k.state,s(),await k.entry.do())};return{adapter:h,history:{get canUndo(){return n.cursor>0},get canRedo(){return n.cursor<n.stack.length},undo:()=>{o=Date.now();const k=d.then(p);return d=k.then(()=>{},()=>{}),k},redo:()=>{o=Date.now();const k=d.then(y);return d=k.then(()=>{},()=>{}),k},clear:()=>{n=Iee(),s()},markExternalChange:()=>{const k=GOe(n,o);k!==n&&(n=k,s())},batch:async(k,x,v)=>{if(i)return x();const M=zW(n);o=Date.now(),M!==n&&(n=M,s());const w={name:k,ops:[]};i=w;try{const b=await x();if(i=null,w.ops.length>0){const C=w.ops.slice();n=PW(n,{do:async()=>{for(const _ of C)await _.redo()},undo:async()=>{for(let _=C.length-1;_>=0;_--)await C[_].undo()},coalesceKey:v==null?void 0:v.coalesceKey,capturedAt:Date.now()}),s()}return b}catch(b){i=null;for(let C=w.ops.length-1;C>=0;C--)try{await w.ops[C].undo()}catch(_){console.warn(`[seeflow/canvas] batch '${k}' rollback inverse rejected:`,_)}throw b}},subscribe:k=>(r.add(k),k(a()),()=>{r.delete(k)})}}}function Aee(e,t,n){let o=null,r=!1;const i=new ResizeObserver(()=>{r||(o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!r&&n()},t))});return i.observe(e),()=>{r||(r=!0,o!==null&&(clearTimeout(o),o=null),i.disconnect())}}var ct;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const a of r)i[a]=a;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),a={};for(const s of i)a[s]=r[s];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.push(a);return i},e.find=(r,i)=>{for(const a of r)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function o(r,i=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=o,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(ct||(ct={}));var RW;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(RW||(RW={}));const Ce=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Na=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},ye=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ui extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},o={_errors:[]},r=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)o._errors.push(n(a));else{let s=o,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return r(this),o}static assert(t){if(!(t instanceof Ui))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},o=[];for(const r of this.issues)if(r.path.length>0){const i=r.path[0];n[i]=n[i]||[],n[i].push(t(r))}else o.push(t(r));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}Ui.create=e=>new Ui(e);const fO=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let ZOe=fO;function YOe(){return ZOe}const QOe=e=>{const{data:t,path:n,errorMaps:o,issueData:r}=e,i=[...n,...r.path||[]],a={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let s="";const c=o.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...r,path:i,message:s}};function we(e,t){const n=YOe(),o=QOe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fO?void 0:fO].filter(r=>!!r)});e.common.issues.push(o)}class Rn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const o=[];for(const r of n){if(r.status==="aborted")return Ve;r.status==="dirty"&&t.dirty(),o.push(r.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,n){const o=[];for(const r of n){const i=await r.key,a=await r.value;o.push({key:i,value:a})}return Rn.mergeObjectSync(t,o)}static mergeObjectSync(t,n){const o={};for(const r of n){const{key:i,value:a}=r;if(i.status==="aborted"||a.status==="aborted")return Ve;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(o[i.value]=a.value)}return{status:t.value,value:o}}}const Ve=Object.freeze({status:"aborted"}),Jh=e=>({status:"dirty",value:e}),Ho=e=>({status:"valid",value:e}),TW=e=>e.status==="aborted",DW=e=>e.status==="dirty",K0=e=>e.status==="valid",kz=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));class ni{constructor(t,n,o,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=o,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HW=(e,t)=>{if(K0(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ui(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:o,description:r}=e;if(t&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(a,s)=>{const{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??o??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}class tt{get description(){return this._def.description}_getType(t){return Na(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Rn,ctx:{common:t.parent.common,data:t.data,parsedType:Na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(kz(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const o=this.safeParse(t,n);if(o.success)return o.data;throw o.error}safeParse(t,n){const o={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)},r=this._parseSync({data:t,path:o.path,parent:o});return HW(o,r)}"~validate"(t){var o,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return K0(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(r=(o=i==null?void 0:i.message)==null?void 0:o.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>K0(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const o=await this.safeParseAsync(t,n);if(o.success)return o.data;throw o.error}async safeParseAsync(t,n){const o={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Na(t)},r=this._parse({data:t,path:o.path,parent:o}),i=await(kz(r)?r:Promise.resolve(r));return HW(o,i)}refine(t,n){const o=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const a=t(r),s=()=>i.addIssue({code:ye.custom,...o(r)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((o,r)=>t(o)?!0:(r.addIssue(typeof n=="function"?n(o,r):n),!1))}_refinement(t){return new Y0({schema:this,typeName:Oe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ga.create(this,this._def)}nullable(){return Q0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jr.create(this)}promise(){return bz.create(this,this._def)}or(t){return xz.create([this,t],this._def)}and(t){return wz.create(this,t,this._def)}transform(t){return new Y0({...Ze(this._def),schema:this,typeName:Oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new kO({...Ze(this._def),innerType:this,defaultValue:n,typeName:Oe.ZodDefault})}brand(){return new wFe({typeName:Oe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vO({...Ze(this._def),innerType:this,catchValue:n,typeName:Oe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mq.create(this,t)}readonly(){return xO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JOe=/^c[^\s-]{8,}$/i,eFe=/^[0-9a-z]+$/,tFe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nFe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oFe=/^[a-z0-9_-]{21}$/i,rFe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,iFe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aFe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sFe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cD;const cFe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lFe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,dFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hFe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fFe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Eee="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pFe=new RegExp(`^${Eee}$`);function jee(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yFe(e){return new RegExp(`^${jee(e)}$`)}function mFe(e){let t=`${Eee}T${jee(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gFe(e,t){return!!((t==="v4"||!t)&&cFe.test(e)||(t==="v6"||!t)&&dFe.test(e))}function kFe(e,t){if(!rFe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const o=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(o));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function vFe(e,t){return!!((t==="v4"||!t)&&lFe.test(e)||(t==="v6"||!t)&&uFe.test(e))}class Di extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.string,received:i.parsedType}),Ve}const o=new Rn;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,s=t.data.length<i.value;(a||s)&&(r=this._getOrReturnCtx(t,r),a?we(r,{code:ye.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&we(r,{code:ye.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")aFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"email",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")cD||(cD=new RegExp(sFe,"u")),cD.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"emoji",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")nFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"uuid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")oFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"nanoid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")JOe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")eFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid2",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")tFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ulid",code:ye.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),we(r,{validation:"url",code:ye.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"regex",code:ye.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?mFe(i).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?pFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?yFe(i).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?iFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"duration",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?gFe(t.data,i.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ip",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?kFe(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"jwt",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?vFe(t.data,i.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cidr",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?hFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64",code:ye.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?fFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64url",code:ye.invalid_string,message:i.message}),o.dirty()):ct.assertNever(i);return{status:o.value,value:t.data}}_regex(t,n,o){return this.refinement(r=>t.test(r),{validation:n,code:ye.invalid_string,...Le.errToObj(o)})}_addCheck(t){return new Di({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new Di({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Di({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Di.create=e=>new Di({checks:[],typeName:Oe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});function xFe(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,r=n>o?n:o,i=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return i%a/10**r}class X0 extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.number,received:i.parsedType}),Ve}let o;const r=new Rn;for(const i of this._def.checks)i.kind==="int"?ct.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?xFe(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_finite,message:i.message}),r.dirty()):ct.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new X0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new X0({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(n)&&Number.isFinite(t)}}X0.create=e=>new X0({checks:[],typeName:Oe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Mf extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let o;const r=new Rn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):ct.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new Mf({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new Mf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Mf.create=e=>new Mf({checks:[],typeName:Oe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});class pO extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.boolean,received:o.parsedType}),Ve}return Ho(t.data)}}pO.create=e=>new pO({typeName:Oe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class vz extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_type,expected:Ce.date,received:i.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return we(i,{code:ye.invalid_date}),Ve}const o=new Rn;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):ct.assertNever(i);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vz({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}vz.create=e=>new vz({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Oe.ZodDate,...Ze(e)});class OW extends tt{_parse(t){if(this._getType(t)!==Ce.symbol){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.symbol,received:o.parsedType}),Ve}return Ho(t.data)}}OW.create=e=>new OW({typeName:Oe.ZodSymbol,...Ze(e)});class FW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.undefined,received:o.parsedType}),Ve}return Ho(t.data)}}FW.create=e=>new FW({typeName:Oe.ZodUndefined,...Ze(e)});class qW extends tt{_parse(t){if(this._getType(t)!==Ce.null){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.null,received:o.parsedType}),Ve}return Ho(t.data)}}qW.create=e=>new qW({typeName:Oe.ZodNull,...Ze(e)});class VW extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ho(t.data)}}VW.create=e=>new VW({typeName:Oe.ZodAny,...Ze(e)});class yO extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ho(t.data)}}yO.create=e=>new yO({typeName:Oe.ZodUnknown,...Ze(e)});class es extends tt{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.never,received:n.parsedType}),Ve}}es.create=e=>new es({typeName:Oe.ZodNever,...Ze(e)});class BW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.void,received:o.parsedType}),Ve}return Ho(t.data)}}BW.create=e=>new BW({typeName:Oe.ZodVoid,...Ze(e)});class Jr extends tt{_parse(t){const{ctx:n,status:o}=this._processInputParams(t),r=this._def;if(n.parsedType!==Ce.array)return we(n,{code:ye.invalid_type,expected:Ce.array,received:n.parsedType}),Ve;if(r.exactLength!==null){const a=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(a||s)&&(we(n,{code:a?ye.too_big:ye.too_small,minimum:s?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),o.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(we(n,{code:ye.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),o.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(we(n,{code:ye.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>r.type._parseAsync(new ni(n,a,n.path,s)))).then(a=>Rn.mergeArray(o,a));const i=[...n.data].map((a,s)=>r.type._parseSync(new ni(n,a,n.path,s)));return Rn.mergeArray(o,i)}get element(){return this._def.type}min(t,n){return new Jr({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Jr({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Jr({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Jr.create=(e,t)=>new Jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Oe.ZodArray,...Ze(t)});function qu(e){if(e instanceof Xt){const t={};for(const n in e.shape){const o=e.shape[n];t[n]=Ga.create(qu(o))}return new Xt({...e._def,shape:()=>t})}else return e instanceof Jr?new Jr({...e._def,type:qu(e.element)}):e instanceof Ga?Ga.create(qu(e.unwrap())):e instanceof Q0?Q0.create(qu(e.unwrap())):e instanceof Jd?Jd.create(e.items.map(t=>qu(t))):e}class Xt extends tt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return we(l,{code:ye.invalid_type,expected:Ce.object,received:l.parsedType}),Ve}const{status:o,ctx:r}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const l in r.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const h=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:h._parse(new ni(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof es){const l=this._def.unknownKeys;if(l==="passthrough")for(const h of s)c.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(l==="strict")s.length>0&&(we(r,{code:ye.unrecognized_keys,keys:s}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const h of s){const d=r.data[h];c.push({key:{status:"valid",value:h},value:l._parse(new ni(r,d,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const h of c){const d=await h.key,p=await h.value;l.push({key:d,value:p,alwaysSet:h.alwaysSet})}return l}).then(l=>Rn.mergeObjectSync(o,l)):Rn.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new Xt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,o)=>{var i,a;const r=((a=(i=this._def).errorMap)==null?void 0:a.call(i,n,o).message)??o.defaultError;return n.code==="unrecognized_keys"?{message:Le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Xt({...this._def,unknownKeys:"strip"})}passthrough(){return new Xt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Oe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xt({...this._def,catchall:t})}pick(t){const n={};for(const o of ct.objectKeys(t))t[o]&&this.shape[o]&&(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}omit(t){const n={};for(const o of ct.objectKeys(this.shape))t[o]||(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}deepPartial(){return qu(this)}partial(t){const n={};for(const o of ct.objectKeys(this.shape)){const r=this.shape[o];t&&!t[o]?n[o]=r:n[o]=r.optional()}return new Xt({...this._def,shape:()=>n})}required(t){const n={};for(const o of ct.objectKeys(this.shape))if(t&&!t[o])n[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof Ga;)i=i._def.innerType;n[o]=i}return new Xt({...this._def,shape:()=>n})}keyof(){return $ee(ct.objectKeys(this.shape))}}Xt.create=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.strictCreate=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.lazycreate=(e,t)=>new Xt({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});class xz extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=this._def.options;function r(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(s=>new Ui(s.ctx.common.issues));return we(n,{code:ye.invalid_union,unionErrors:a}),Ve}if(n.common.async)return Promise.all(o.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let i;const a=[];for(const c of o){const l={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:l});if(h.status==="valid")return h;h.status==="dirty"&&!i&&(i={result:h,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=a.map(c=>new Ui(c));return we(n,{code:ye.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}xz.create=(e,t)=>new xz({options:e,typeName:Oe.ZodUnion,...Ze(t)});function mO(e,t){const n=Na(e),o=Na(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&o===Ce.object){const r=ct.objectKeys(t),i=ct.objectKeys(e).filter(s=>r.indexOf(s)!==-1),a={...e,...t};for(const s of i){const c=mO(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(n===Ce.array&&o===Ce.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const a=e[i],s=t[i],c=mO(a,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===Ce.date&&o===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class wz extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=(i,a)=>{if(TW(i)||TW(a))return Ve;const s=mO(i.value,a.value);return s.valid?((DW(i)||DW(a))&&n.dirty(),{status:n.value,value:s.data}):(we(o,{code:ye.invalid_intersection_types}),Ve)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>r(i,a)):r(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}wz.create=(e,t,n)=>new wz({left:e,right:t,typeName:Oe.ZodIntersection,...Ze(n)});class Jd extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.array)return we(o,{code:ye.invalid_type,expected:Ce.array,received:o.parsedType}),Ve;if(o.data.length<this._def.items.length)return we(o,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&o.data.length>this._def.items.length&&(we(o,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...o.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new ni(o,a,o.path,s)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>Rn.mergeArray(n,a)):Rn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Jd({...this._def,rest:t})}}Jd.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jd({items:e,typeName:Oe.ZodTuple,rest:null,...Ze(t)})};class Mz extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.object)return we(o,{code:ye.invalid_type,expected:Ce.object,received:o.parsedType}),Ve;const r=[],i=this._def.keyType,a=this._def.valueType;for(const s in o.data)r.push({key:i._parse(new ni(o,s,o.path,s)),value:a._parse(new ni(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Rn.mergeObjectAsync(n,r):Rn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,o){return n instanceof tt?new Mz({keyType:t,valueType:n,typeName:Oe.ZodRecord,...Ze(o)}):new Mz({keyType:Di.create(),valueType:t,typeName:Oe.ZodRecord,...Ze(n)})}}class UW extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.map)return we(o,{code:ye.invalid_type,expected:Ce.map,received:o.parsedType}),Ve;const r=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([s,c],l)=>({key:r._parse(new ni(o,s,o.path,[l,"key"])),value:i._parse(new ni(o,c,o.path,[l,"value"]))}));if(o.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,h=await c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,h=c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}}}}UW.create=(e,t,n)=>new UW({valueType:t,keyType:e,typeName:Oe.ZodMap,...Ze(n)});class bf extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.set)return we(o,{code:ye.invalid_type,expected:Ce.set,received:o.parsedType}),Ve;const r=this._def;r.minSize!==null&&o.data.size<r.minSize.value&&(we(o,{code:ye.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&o.data.size>r.maxSize.value&&(we(o,{code:ye.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function a(c){const l=new Set;for(const h of c){if(h.status==="aborted")return Ve;h.status==="dirty"&&n.dirty(),l.add(h.value)}return{status:n.value,value:l}}const s=[...o.data.values()].map((c,l)=>i._parse(new ni(o,c,o.path,l)));return o.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,n){return new bf({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new bf({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bf.create=(e,t)=>new bf({valueType:e,minSize:null,maxSize:null,typeName:Oe.ZodSet,...Ze(t)});class WW extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}WW.create=(e,t)=>new WW({getter:e,typeName:Oe.ZodLazy,...Ze(t)});class gO extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}gO.create=(e,t)=>new gO({value:e,typeName:Oe.ZodLiteral,...Ze(t)});function $ee(e,t){return new Z0({values:e,typeName:Oe.ZodEnum,...Ze(t)})}class Z0 extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{expected:ct.joinValues(o),received:n.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{received:n.data,code:ye.invalid_enum_value,options:o}),Ve}return Ho(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Z0.create(t,{...this._def,...n})}exclude(t,n=this._def){return Z0.create(this.options.filter(o=>!t.includes(o)),{...this._def,...n})}}Z0.create=$ee;class GW extends tt{_parse(t){const n=ct.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==Ce.string&&o.parsedType!==Ce.number){const r=ct.objectValues(n);return we(o,{expected:ct.joinValues(r),received:o.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ct.objectValues(n);return we(o,{received:o.data,code:ye.invalid_enum_value,options:r}),Ve}return Ho(t.data)}get enum(){return this._def.values}}GW.create=(e,t)=>new GW({values:e,typeName:Oe.ZodNativeEnum,...Ze(t)});class bz extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return we(n,{code:ye.invalid_type,expected:Ce.promise,received:n.parsedType}),Ve;const o=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Ho(o.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bz.create=(e,t)=>new bz({type:e,typeName:Oe.ZodPromise,...Ze(t)});class Y0 extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:a=>{we(o,a),a.fatal?n.abort():n.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const a=r.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?Jh(c.value):c});{if(n.value==="aborted")return Ve;const s=this._def.schema._parseSync({data:a,path:o.path,parent:o});return s.status==="aborted"?Ve:s.status==="dirty"||n.value==="dirty"?Jh(s.value):s}}if(r.type==="refinement"){const a=s=>{const c=r.refinement(s,i);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){const s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(o.common.async===!1){const a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!K0(a))return Ve;const s=r.transform(a.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(a=>K0(a)?Promise.resolve(r.transform(a.value,i)).then(s=>({status:n.value,value:s})):Ve);ct.assertNever(r)}}Y0.create=(e,t,n)=>new Y0({schema:e,typeName:Oe.ZodEffects,effect:t,...Ze(n)});Y0.createWithPreprocess=(e,t,n)=>new Y0({schema:t,effect:{type:"preprocess",transform:e},typeName:Oe.ZodEffects,...Ze(n)});class Ga extends tt{_parse(t){return this._getType(t)===Ce.undefined?Ho(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ga.create=(e,t)=>new Ga({innerType:e,typeName:Oe.ZodOptional,...Ze(t)});class Q0 extends tt{_parse(t){return this._getType(t)===Ce.null?Ho(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q0.create=(e,t)=>new Q0({innerType:e,typeName:Oe.ZodNullable,...Ze(t)});class kO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let o=n.data;return n.parsedType===Ce.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}kO.create=(e,t)=>new kO({innerType:e,typeName:Oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class vO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return kz(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ui(o.common.issues)},input:o.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Ui(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}vO.create=(e,t)=>new vO({innerType:e,typeName:Oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class KW extends tt{_parse(t){if(this._getType(t)!==Ce.nan){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.nan,received:o.parsedType}),Ve}return{status:"valid",value:t.data}}}KW.create=e=>new KW({typeName:Oe.ZodNaN,...Ze(e)});class wFe extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mq extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?Ve:i.status==="dirty"?(n.dirty(),Jh(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{const r=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return r.status==="aborted"?Ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:o.path,parent:o})}}static create(t,n){return new Mq({in:t,out:n,typeName:Oe.ZodPipeline})}}class xO extends tt{_parse(t){const n=this._def.innerType._parse(t),o=r=>(K0(r)&&(r.value=Object.freeze(r.value)),r);return kz(n)?n.then(r=>o(r)):o(n)}unwrap(){return this._def.innerType}}xO.create=(e,t)=>new xO({innerType:e,typeName:Oe.ZodReadonly,...Ze(t)});var Oe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Oe||(Oe={}));const hn=Di.create,Pee=X0.create,MFe=pO.create,F2=yO.create;es.create;const Cs=Jr.create,st=Xt.create,wO=xz.create;wz.create;Jd.create;const XW=Mz.create,Up=gO.create,Wp=Z0.create;bz.create;Ga.create;Q0.create;const bFe=st({$state:hn().min(1)}),Ai=st({$action:hn().min(1)}),_Fe=st({$cond:F2(),$then:F2(),$else:F2().optional()}),Qo=e=>wO([e,bFe,Ai,_Fe]),qt=Qo(hn()),Ni=Qo(Pee()),Gp=Qo(MFe()),zee={Card:st({title:qt.optional()}),Separator:st({orientation:Qo(Wp(["horizontal","vertical"])).optional()}),Tabs:st({value:qt.optional(),items:Cs(st({id:hn(),label:hn()})),onChange:Ai.optional()}),Accordion:st({items:Cs(st({id:hn(),title:hn(),content:hn()}))}),Badge:st({label:qt,variant:Qo(Wp(["default","secondary","destructive","outline"])).optional()}),Avatar:st({src:qt.optional(),alt:qt.optional(),fallback:qt.optional()}),Progress:st({value:Ni}),Skeleton:st({width:Ni.optional(),height:Ni.optional()}),Label:st({text:qt}),Heading:st({level:Qo(wO([Up(1),Up(2),Up(3),Up(4)])).optional(),text:qt}),Text:st({text:qt,muted:Gp.optional()}),Icon:st({name:qt,size:Ni.optional()}),Chart:st({kind:Qo(Wp(["bar","line","area","pie"])),data:Qo(Cs(XW(hn(),F2()))),xKey:qt.optional(),series:Cs(st({key:hn(),label:hn().optional()})).optional()}),Table:st({columns:Cs(st({key:hn(),label:hn()})),rows:Qo(Cs(XW(hn(),F2())))}),Metric:st({label:qt,value:Qo(wO([hn(),Pee()]))}),CodeBlock:st({code:qt,language:qt.optional()}),Markdown:st({content:qt}),Button:st({label:qt,variant:Qo(Wp(["default","destructive","outline","secondary","ghost","link"])).optional(),onClick:Ai.optional(),disabled:Gp.optional()}),Input:st({value:qt.optional(),placeholder:qt.optional(),onChange:Ai.optional()}),Checkbox:st({checked:Gp.optional(),onChange:Ai.optional(),label:qt.optional()}),Switch:st({checked:Gp.optional(),onChange:Ai.optional()}),Select:st({value:qt.optional(),items:Cs(st({value:hn(),label:hn()})),onChange:Ai.optional()}),Textarea:st({value:qt.optional(),placeholder:qt.optional(),rows:Ni.optional(),onChange:Ai.optional()}),Slider:st({value:Ni.optional(),min:Ni.optional(),max:Ni.optional(),step:Ni.optional(),onChange:Ai.optional()})},Ree=Object.keys(zee);Object.fromEntries(Ree.map(e=>[e,{props:zee[e],description:e}]));function ZW(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oi(...e){return t=>{let n=!1;const o=e.map(r=>{const i=ZW(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():ZW(e[r],null)}}}}function xt(...e){return m.useCallback(oi(...e),e)}var CFe=Symbol.for("react.lazy"),_z=aF[" use ".trim().toString()];function SFe(e){return typeof e=="object"&&e!==null&&"then"in e}function Tee(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===CFe&&"_payload"in e&&SFe(e._payload)}function LFe(e){const t=IFe(e),n=m.forwardRef((o,r)=>{let{children:i,...a}=o;Tee(i)&&typeof _z=="function"&&(i=_z(i._payload));const s=m.Children.toArray(i),c=s.find(EFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...a,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...a,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}var NFe=LFe("Slot");function IFe(e){const t=m.forwardRef((n,o)=>{let{children:r,...i}=n;if(Tee(r)&&typeof _z=="function"&&(r=_z(r._payload)),m.isValidElement(r)){const a=$Fe(r),s=jFe(i,r.props);return r.type!==m.Fragment&&(s.ref=o?oi(o,a):a),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AFe=Symbol("radix.slottable");function EFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AFe}function jFe(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function $Fe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QW=_Q,Dee=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return QW(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(l=>{const h=n==null?void 0:n[l],d=i==null?void 0:i[l];if(h===null)return null;const p=YW(h)||YW(d);return r[l][p]}),s=n&&Object.entries(n).reduce((l,h)=>{let[d,p]=h;return p===void 0||(l[d]=p),l},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((l,h)=>{let{class:d,className:p,...y}=h;return Object.entries(y).every(g=>{let[k,x]=g;return Array.isArray(x)?x.includes({...i,...s}[k]):{...i,...s}[k]===x})?[...l,d,p]:l},[]);return QW(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},PFe=Dee("sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-md sf:text-sm sf:font-medium sf:ring-offset-background sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-2 sf:disabled:pointer-events-none sf:disabled:opacity-50",{variants:{variant:{default:"sf:bg-primary sf:text-primary-foreground sf:font-semibold sf:hover:bg-emerald-400",destructive:"sf:bg-destructive sf:text-destructive-foreground sf:hover:bg-destructive/90",outline:"sf:border sf:border-input sf:bg-background sf:hover:bg-secondary sf:hover:text-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground sf:hover:bg-secondary/80",ghost:"sf:text-muted-foreground sf:hover:bg-muted sf:hover:text-foreground",link:"sf:text-primary sf:underline-offset-4 sf:hover:underline"},size:{default:"sf:h-9 sf:px-4 sf:py-2",sm:"sf:h-8 sf:rounded-md sf:px-3",lg:"sf:h-11 sf:rounded-md sf:px-8",icon:"sf:h-9 sf:w-9"}},defaultVariants:{variant:"default",size:"default"}}),rt=m.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},i)=>{const a=o?NFe:"button";return f.jsx(a,{className:ee(PFe({variant:t,size:n,className:e})),ref:i,...r})});rt.displayName="Button";function Hee(e,[t,n]){return Math.min(n,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function zFe(e,t){const n=m.createContext(t),o=i=>{const{children:a,...s}=i,c=m.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:c,children:a})};o.displayName=e+"Provider";function r(i){const a=m.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[o,r]}function yr(e,t=[]){let n=[];function o(i,a){const s=m.createContext(a),c=n.length;n=[...n,a];const l=d=>{var v;const{scope:p,children:y,...g}=d,k=((v=p==null?void 0:p[e])==null?void 0:v[c])||s,x=m.useMemo(()=>g,Object.values(g));return f.jsx(k.Provider,{value:x,children:y})};l.displayName=i+"Provider";function h(d,p){var k;const y=((k=p==null?void 0:p[e])==null?void 0:k[c])||s,g=m.useContext(y);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,h]}const r=()=>{const i=n.map(a=>m.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[o,RFe(r,...t)]}function RFe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const a=o.reduce((s,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...s,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ts=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},TFe=aF[" useInsertionEffect ".trim().toString()]||ts;function lu({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,a]=DFe({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:r;{const h=m.useRef(e!==void 0);m.useEffect(()=>{const d=h.current;d!==s&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. 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.`),h.current=s},[s,o])}const l=m.useCallback(h=>{var d;if(s){const p=HFe(h)?h(e):h;p!==e&&((d=a.current)==null||d.call(a,p))}else i(h)},[s,e,i,a]);return[c,l]}function DFe({defaultProp:e,onChange:t}){const[n,o]=m.useState(e),r=m.useRef(n),i=m.useRef(t);return TFe(()=>{i.current=t},[t]),m.useEffect(()=>{var a;r.current!==n&&((a=i.current)==null||a.call(i,n),r.current=n)},[n,r]),[n,o,i]}function HFe(e){return typeof e=="function"}var OFe=m.createContext(void 0);function SR(e){const t=m.useContext(OFe);return e||t||"ltr"}function FFe(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oee(e){const[t,n]=m.useState(void 0);return ts(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function J0(e){const t=qFe(e),n=m.forwardRef((o,r)=>{const{children:i,...a}=o,s=m.Children.toArray(i),c=s.find(BFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...a,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...a,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function qFe(e){const t=m.forwardRef((n,o)=>{const{children:r,...i}=n;if(m.isValidElement(r)){const a=WFe(r),s=UFe(i,r.props);return r.type!==m.Fragment&&(s.ref=o?oi(o,a):a),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fee=Symbol("radix.slottable");function VFe(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fee,t}function BFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fee}function UFe(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const c=i(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function WFe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var GFe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=GFe.reduce((e,t)=>{const n=J0(`Primitive.${t}`),o=m.forwardRef((r,i)=>{const{asChild:a,...s}=r,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function qee(e,t){e&&au.flushSync(()=>e.dispatchEvent(t))}function bq(e){const t=e+"CollectionProvider",[n,o]=yr(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=k=>{const{scope:x,children:v}=k,M=uo.useRef(null),w=uo.useRef(new Map).current;return f.jsx(r,{scope:x,itemMap:w,collectionRef:M,children:v})};a.displayName=t;const s=e+"CollectionSlot",c=J0(s),l=uo.forwardRef((k,x)=>{const{scope:v,children:M}=k,w=i(s,v),b=xt(x,w.collectionRef);return f.jsx(c,{ref:b,children:M})});l.displayName=s;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=J0(h),y=uo.forwardRef((k,x)=>{const{scope:v,children:M,...w}=k,b=uo.useRef(null),C=xt(x,b),_=i(h,v);return uo.useEffect(()=>(_.itemMap.set(b,{ref:b,...w}),()=>void _.itemMap.delete(b))),f.jsx(p,{[d]:"",ref:C,children:M})});y.displayName=h;function g(k){const x=i(e+"CollectionConsumer",k);return uo.useCallback(()=>{const M=x.collectionRef.current;if(!M)return[];const w=Array.from(M.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,S)=>w.indexOf(_.ref.current)-w.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:l,ItemSlot:y},g,o]}var Vee=["PageUp","PageDown"],Bee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Uee={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},lh="Slider",[MO,KFe,XFe]=bq(lh),[Wee]=yr(lh,[XFe]),[ZFe,LR]=Wee(lh),Gee=m.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[o],value:h,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:y=!1,form:g,...k}=e,x=m.useRef(new Set),v=m.useRef(0),w=a==="horizontal"?YFe:QFe,[b=[],C]=lu({prop:h,defaultProp:l,onChange:R=>{var V;(V=[...x.current][v.current])==null||V.focus(),d(R)}}),_=m.useRef(b);function S(R){const E=oqe(b,R);I(R,E)}function L(R){I(R,v.current)}function j(){const R=_.current[v.current];b[v.current]!==R&&p(b)}function I(R,E,{commit:V}={commit:!1}){const $=sqe(i),T=cqe(Math.round((R-o)/i)*i+o,$),D=Hee(T,[o,r]);C((F=[])=>{const z=tqe(F,D,E);if(aqe(z,c*i)){v.current=z.indexOf(D);const A=String(z)!==String(F);return A&&V&&p(z),A?z:F}else return F})}return f.jsx(ZFe,{scope:e.__scopeSlider,name:n,disabled:s,min:o,max:r,valueIndexToChangeRef:v,thumbs:x.current,values:b,orientation:a,form:g,children:f.jsx(MO.Provider,{scope:e.__scopeSlider,children:f.jsx(MO.Slot,{scope:e.__scopeSlider,children:f.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...k,ref:t,onPointerDown:Se(k.onPointerDown,()=>{s||(_.current=b)}),min:o,max:r,inverted:y,onSlideStart:s?void 0:S,onSlideMove:s?void 0:L,onSlideEnd:s?void 0:j,onHomeKeyDown:()=>!s&&I(o,0,{commit:!0}),onEndKeyDown:()=>!s&&I(r,b.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!s){const T=Vee.includes(R.key)||R.shiftKey&&Bee.includes(R.key)?10:1,D=v.current,F=b[D],z=i*T*E;I(F+z,D,{commit:!0})}}})})})})});Gee.displayName=lh;var[Kee,Xee]=Wee(lh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),YFe=m.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...h}=e,[d,p]=m.useState(null),y=xt(t,w=>p(w)),g=m.useRef(void 0),k=SR(r),x=k==="ltr",v=x&&!i||!x&&i;function M(w){const b=g.current||d.getBoundingClientRect(),C=[0,b.width],S=_q(C,v?[n,o]:[o,n]);return g.current=b,S(w-b.left)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:f.jsx(Zee,{dir:k,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const b=M(w.clientX);a==null||a(b)},onSlideMove:w=>{const b=M(w.clientX);s==null||s(b)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const C=Uee[v?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:C?-1:1})}})})}),QFe=m.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:c,...l}=e,h=m.useRef(null),d=xt(t,h),p=m.useRef(void 0),y=!r;function g(k){const x=p.current||h.current.getBoundingClientRect(),v=[0,x.height],w=_q(v,y?[o,n]:[n,o]);return p.current=x,w(k-x.top)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:f.jsx(Zee,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:k=>{const x=g(k.clientY);i==null||i(x)},onSlideMove:k=>{const x=g(k.clientY);a==null||a(x)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:k=>{const v=Uee[y?"from-bottom":"from-top"].includes(k.key);c==null||c({event:k,direction:v?-1:1})}})})}),Zee=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:c,...l}=e,h=LR(lh,n);return f.jsx(We.span,{...l,ref:t,onKeyDown:Se(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Vee.concat(Bee).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:Se(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),h.thumbs.has(p)?p.focus():o(d)}),onPointerMove:Se(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:Se(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),Yee="SliderTrack",Qee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(Yee,n);return f.jsx(We.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Qee.displayName=Yee;var bO="SliderRange",Jee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(bO,n),i=Xee(bO,n),a=m.useRef(null),s=xt(t,a),c=r.values.length,l=r.values.map(p=>nte(p,r.min,r.max)),h=c>1?Math.min(...l):0,d=100-Math.max(...l);return f.jsx(We.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:s,style:{...e.style,[i.startEdge]:h+"%",[i.endEdge]:d+"%"}})});Jee.displayName=bO;var _O="SliderThumb",ete=m.forwardRef((e,t)=>{const n=KFe(e.__scopeSlider),[o,r]=m.useState(null),i=xt(t,s=>r(s)),a=m.useMemo(()=>o?n().findIndex(s=>s.ref.current===o):-1,[n,o]);return f.jsx(JFe,{...e,ref:i,index:a})}),JFe=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...i}=e,a=LR(_O,n),s=Xee(_O,n),[c,l]=m.useState(null),h=xt(t,M=>l(M)),d=c?a.form||!!c.closest("form"):!0,p=Oee(c),y=a.values[o],g=y===void 0?0:nte(y,a.min,a.max),k=nqe(o,a.values.length),x=p==null?void 0:p[s.size],v=x?rqe(x,g,s.direction):0;return m.useEffect(()=>{if(c)return a.thumbs.add(c),()=>{a.thumbs.delete(c)}},[c,a.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${v}px)`},children:[f.jsx(MO.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(We.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":a.min,"aria-valuenow":y,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:h,style:y===void 0?{display:"none"}:e.style,onFocus:Se(e.onFocus,()=>{a.valueIndexToChangeRef.current=o})})}),d&&f.jsx(tte,{name:r??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:y},o)]})});ete.displayName=_O;var eqe="RadioBubbleInput",tte=m.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=m.useRef(null),i=xt(r,o),a=FFe(t);return m.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&h){const d=new Event("input",{bubbles:!0});h.call(s,t),s.dispatchEvent(d)}},[a,t]),f.jsx(We.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});tte.displayName=eqe;function tqe(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,i)=>r-i)}function nte(e,t,n){const i=100/(n-t)*(e-t);return Hee(i,[0,100])}function nqe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function oqe(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function rqe(e,t,n){const o=e/2,i=_q([0,50],[0,o]);return(o-i(t)*n)*n}function iqe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function aqe(e,t){if(t>0){const n=iqe(e);return Math.min(...n)>=t}return!0}function _q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function sqe(e){return(String(e).split(".")[1]||"").length}function cqe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ote=Gee,lqe=Qee,dqe=Jee,uqe=ete;const Cq=m.forwardRef(({className:e,...t},n)=>f.jsxs(ote,{ref:n,className:ee("sf:relative sf:flex sf:w-full sf:touch-none sf:select-none sf:items-center",e),...t,children:[f.jsx(lqe,{className:"sf:relative sf:h-1.5 sf:w-full sf:grow sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx(dqe,{className:"sf:absolute sf:h-full sf:bg-primary"})}),f.jsx(uqe,{className:"sf:block sf:h-4 sf:w-4 sf:rounded-full sf:border sf:border-primary/60 sf:bg-background sf:shadow-sm sf:transition-colors sf:hover:border-primary sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:disabled:pointer-events-none sf:disabled:opacity-50"})]}));Cq.displayName=ote.displayName;const hqe={1:"sf:text-2xl sf:font-semibold sf:tracking-tight",2:"sf:text-xl sf:font-semibold sf:tracking-tight",3:"sf:text-lg sf:font-semibold",4:"sf:text-base sf:font-semibold"};function fqe({text:e,level:t=2}){const n=`h${t}`;return f.jsx(n,{className:ee(hqe[t]),children:e})}const rte=m.createContext({custom:{}});function pqe({value:e,children:t}){return f.jsx(rte.Provider,{value:e,children:t})}function yqe(){return m.useContext(rte)}function mqe({name:e,as:t,size:n=16,fallback:o=IEe,...r}){const i=yqe(),a=t??(e?i.custom[e]:void 0)??(e?df[e]:void 0)??df[o];return a?f.jsx(a,{size:n,...r}):null}function gqe({name:e,size:t=16}){return f.jsx(mqe,{name:e,size:t,"aria-hidden":!0})}function kqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:typeof e=="object"?JSON.stringify(e):String(e)}function vqe({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:text-muted-foreground sf:text-xs sf:uppercase sf:tracking-wide",children:e}),f.jsx("span",{className:"sf:font-semibold sf:text-2xl sf:tabular-nums",children:kqe(t)})]})}function xqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):JSON.stringify(e)}function wqe({columns:e=[],rows:t=[]}){return f.jsx("div",{className:"sf:w-full sf:overflow-x-auto",children:f.jsxs("table",{className:"sf:w-full sf:text-left sf:text-sm",children:[f.jsx("thead",{className:"sf:border-b sf:bg-muted/50",children:f.jsx("tr",{children:e.map(n=>f.jsx("th",{scope:"col",className:"sf:px-3 sf:py-2 sf:font-medium sf:text-muted-foreground",children:n.label},n.key))})}),f.jsx("tbody",{children:t.map((n,o)=>f.jsx("tr",{className:"sf:border-b last:sf:border-0",children:e.map(r=>f.jsx("td",{className:"sf:px-3 sf:py-2",children:xqe(n[r.key])},r.key))},o))})]})})}function Mqe({text:e,muted:t}){return f.jsx("p",{className:ee("sf:text-sm",t&&"sf:text-muted-foreground"),children:e})}function bqe({title:e,children:t}){return f.jsxs("div",{className:"sf:bg-card sf:p-4 sf:text-card-foreground sf:shadow-sm",children:[e!==void 0?f.jsx("div",{className:"sf:mb-3 sf:font-semibold sf:text-base sf:leading-tight",children:e}):null,f.jsx("div",{className:"sf:flex sf:flex-col sf:gap-3",children:t})]})}function _qe({orientation:e="horizontal"}){return f.jsx("div",{"aria-orientation":e,className:ee("sf:bg-border",e==="horizontal"?"sf:h-px sf:w-full":"sf:h-full sf:w-px")})}function Cqe({value:e,items:t,onChange:n,children:o}){const r=t??[];return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2",children:[f.jsx("div",{className:"sf:inline-flex sf:h-9 sf:items-center sf:justify-start sf:rounded-md sf:bg-muted sf:p-1 sf:text-muted-foreground",children:r.map(i=>f.jsx("button",{type:"button","data-state":e===i.id?"active":"inactive",onClick:()=>n==null?void 0:n({value:i.id}),className:"sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-sm sf:px-3 sf:py-1 sf:text-xs sf:font-medium sf:transition-all sf:data-[state=active]:bg-background sf:data-[state=active]:text-foreground sf:data-[state=active]:shadow-sm",children:i.label},i.id))}),o]})}function Sqe({items:e}){const t=e??[];return f.jsx("div",{className:"sf:flex sf:flex-col sf:divide-y sf:rounded-md sf:border",children:t.map(n=>f.jsxs("details",{className:"sf:group sf:px-3 sf:py-2",children:[f.jsx("summary",{className:"sf:cursor-pointer sf:py-1 sf:font-medium sf:text-sm",children:n.title}),f.jsx("div",{className:"sf:py-2 sf:text-muted-foreground sf:text-sm",children:n.content})]},n.id))})}const JW={default:"sf:bg-primary sf:text-primary-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground",destructive:"sf:bg-destructive sf:text-destructive-foreground",outline:"sf:border sf:border-border sf:text-foreground"};function Lqe({label:e,variant:t="default"}){return f.jsx("span",{className:ee("sf:inline-flex sf:items-center sf:rounded-full sf:px-2.5 sf:py-0.5 sf:font-medium sf:text-xs",JW[t]??JW.default),children:e})}function Nqe({src:e,alt:t,fallback:n}){return e?f.jsx("img",{src:e,alt:t??"",className:"sf:inline-block sf:h-9 sf:w-9 sf:rounded-full sf:object-cover"}):f.jsx("span",{className:"sf:inline-flex sf:h-9 sf:w-9 sf:items-center sf:justify-center sf:rounded-full sf:bg-muted sf:font-medium sf:text-muted-foreground sf:text-sm",children:n??"?"})}function Iqe({value:e=0}){const t=Math.max(0,Math.min(100,e));return f.jsx("div",{"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,className:"sf:relative sf:h-2 sf:w-full sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx("div",{className:"sf:h-full sf:bg-primary sf:transition-all",style:{width:`${t}%`}})})}function Aqe({width:e,height:t}){return f.jsx("div",{className:"sf:animate-pulse sf:rounded-md sf:bg-muted",style:{width:e??"100%",height:t??16}})}function Eqe({text:e}){return f.jsx("span",{className:"sf:font-medium sf:text-sm sf:leading-none",children:e})}function jqe({label:e,variant:t="default",onClick:n,disabled:o}){return f.jsx(rt,{variant:t,disabled:o,onClick:()=>n==null?void 0:n(),children:e})}const Sq="sf:flex sf:h-9 sf:w-full sf:rounded-md sf:border sf:border-input sf:bg-background sf:px-3 sf:py-1 sf:text-sm sf:shadow-sm sf:transition-colors sf:placeholder:text-muted-foreground sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring sf:disabled:cursor-not-allowed sf:disabled:opacity-50";function $qe({value:e,placeholder:t,onChange:n}){return f.jsx("input",{type:"text",value:e??"",placeholder:t,onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq})}function Pqe({checked:e,onChange:t,label:n}){return f.jsxs("label",{className:"sf:inline-flex sf:items-center sf:gap-2 sf:text-sm",children:[f.jsx("input",{type:"checkbox",checked:e??!1,onChange:o=>t==null?void 0:t({checked:o.target.checked}),className:"sf:h-4 sf:w-4 sf:rounded sf:border sf:border-input sf:accent-primary"}),n]})}function zqe({checked:e,onChange:t}){return f.jsx("button",{type:"button",role:"switch","aria-checked":e??!1,onClick:()=>t==null?void 0:t({checked:!(e??!1)}),className:ee("sf:relative sf:inline-flex sf:h-5 sf:w-9 sf:shrink-0 sf:cursor-pointer sf:items-center sf:rounded-full sf:border-2 sf:border-transparent sf:transition-colors",e?"sf:bg-primary":"sf:bg-input"),children:f.jsx("span",{className:ee("sf:pointer-events-none sf:block sf:h-4 sf:w-4 sf:rounded-full sf:bg-background sf:shadow-lg sf:ring-0 sf:transition-transform",e?"sf:translate-x-4":"sf:translate-x-0")})})}function Rqe({value:e,items:t,onChange:n}){return f.jsx("select",{value:e??"",onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq,children:(t??[]).map(o=>f.jsx("option",{value:o.value,children:o.label},o.value))})}function Tqe({value:e,placeholder:t,rows:n,onChange:o}){return f.jsx("textarea",{value:e??"",placeholder:t,rows:n,onChange:r=>o==null?void 0:o({value:r.target.value}),className:ee(Sq,"sf:min-h-16 sf:py-2")})}function Dqe({value:e,min:t=0,max:n=100,step:o=1,onChange:r}){return f.jsx(Cq,{value:e===void 0?void 0:[e],min:t,max:n,step:o,onValueChange:i=>{const[a]=i;typeof a=="number"&&(r==null||r({value:a}))}})}const Hqe=m.lazy(()=>sh(()=>import("./chart-Cl0G2q74.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function Oqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Hqe,{...e})})}const Fqe=m.lazy(()=>sh(()=>import("./markdown-y_6oaD2w.js"),[]));function qqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Fqe,{...e})})}const Vqe=m.lazy(()=>sh(()=>import("./code-block-CWlhsgY3.js"),[]));function Bqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Vqe,{...e})})}const ite={Card:bqe,Separator:_qe,Tabs:Cqe,Accordion:Sqe,Badge:Lqe,Avatar:Nqe,Progress:Iqe,Skeleton:Aqe,Label:Eqe,Heading:fqe,Text:Mqe,Icon:gqe,Chart:Oqe,Table:wqe,Metric:vqe,CodeBlock:Bqe,Markdown:qqe,Button:jqe,Input:$qe,Checkbox:Pqe,Switch:zqe,Select:Rqe,Textarea:Tqe,Slider:Dqe},eG=Ree.filter(e=>ite[e]===void 0);if(eG.length>0)throw new Error(`componentRegistry is missing impls for: ${eG.join(", ")}. Every catalog entry in COMPONENT_NAMES must have a matching component impl.`);const Uqe={components:ite};function Wqe(e,t){return t.kind==="set"?{...e,[t.path]:t.value}:{...e,...t.partial}}function ate(e){return e===null||typeof e!="object"?!1:"$state"in e||"$action"in e||"$param"in e||"$cond"in e}function CP(e,t,n,o){if(!ate(e))return e;if(typeof e.$state=="string")return t[e.$state];if(typeof e.$action=="string"){const r=e.$action;return o.has(r)?i=>n(r,i):void 0}if("$cond"in e){const r=CP(e.$cond,t,n,o);return CP(r?e.$then:e.$else,t,n,o)}return e}function Gqe(e,t,n,o){if(!e)return{};const r={};for(const[i,a]of Object.entries(e))r[i]=CP(a,t,n,o);return r}function tG({spec:e,nodeId:t,apiBaseUrl:n="/api",projectSlug:o,flowSlug:r}){const[i,a]=m.useReducer(Wqe,e.state??{}),s=new Set(Object.keys(e.actions??{})),c=m.useCallback(async(l,h)=>{var y;const d=(y=e.actions)==null?void 0:y[l];if(!d)return;if(d.kind==="set"){const g=Kqe(d.value,h,i);a({kind:"set",path:d.path,value:g});return}if(!o||!r)return;const p=`${n}/projects/${encodeURIComponent(o)}/flows/${encodeURIComponent(r)}/nodes/${encodeURIComponent(t)}/actions/${encodeURIComponent(l)}`;try{const g=await fetch(p,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h??{})});if(!g.ok){const x=await g.text();a({kind:"set",path:`/__errors/${l}`,value:x});return}const k=await g.json();k!==null&&typeof k=="object"&&a({kind:"merge",partial:k})}catch(g){a({kind:"set",path:`/__errors/${l}`,value:g instanceof Error?g.message:String(g)})}},[e.actions,o,r,n,t,i]);return ste(e.root,e,i,c,s)}function Kqe(e,t,n){return ate(e)?typeof e.$param=="string"?t!==null&&typeof t=="object"?t[e.$param]:void 0:typeof e.$state=="string"?n[e.$state]:e:e}function ste(e,t,n,o,r){const i=t.elements[e];if(!i)return null;const a=Uqe.components[i.type];if(!a)return null;const s=Gqe(i.props,n,o,r),l=(i.children??[]).map(h=>f.jsx(Xqe,{children:ste(h,t,n,o,r)},h));return f.jsx(a,{...s,children:l.length>0?l:void 0})}function Xqe({children:e}){return e}function ri(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Zqe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yqe="DismissableLayer",CO="dismissableLayer.update",Qqe="dismissableLayer.pointerDownOutside",Jqe="dismissableLayer.focusOutside",nG,cte=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,l=m.useContext(cte),[h,d]=m.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=xt(t,S=>d(S)),k=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=k.indexOf(x),M=h?k.indexOf(h):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,b=M>=v,C=nVe(S=>{const L=S.target,j=[...l.branches].some(I=>I.contains(L));!b||j||(r==null||r(S),a==null||a(S),S.defaultPrevented||s==null||s())},p),_=oVe(S=>{const L=S.target;[...l.branches].some(I=>I.contains(L))||(i==null||i(S),a==null||a(S),S.defaultPrevented||s==null||s())},p);return Zqe(S=>{M===l.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},p),m.useEffect(()=>{if(h)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(nG=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(h)),l.layers.add(h),oG(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=nG)}},[h,p,n,l]),m.useEffect(()=>()=>{h&&(l.layers.delete(h),l.layersWithOutsidePointerEventsDisabled.delete(h),oG())},[h,l]),m.useEffect(()=>{const S=()=>y({});return document.addEventListener(CO,S),()=>document.removeEventListener(CO,S)},[]),f.jsx(We.div,{...c,ref:g,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});Uf.displayName=Yqe;var eVe="DismissableLayerBranch",tVe=m.forwardRef((e,t)=>{const n=m.useContext(cte),o=m.useRef(null),r=xt(t,o);return m.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(We.div,{...e,ref:r})});tVe.displayName=eVe;function nVe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=s=>{if(s.target&&!o.current){let c=function(){lte(Qqe,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oVe(e,t=globalThis==null?void 0:globalThis.document){const n=ri(e),o=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!o.current&&lte(Jqe,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function oG(){const e=new CustomEvent(CO);document.dispatchEvent(e)}function lte(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?qee(r,i):r.dispatchEvent(i)}var lD=0;function Lq(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rG()),document.body.insertAdjacentElement("beforeend",e[1]??rG()),lD++,()=>{lD===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lD--}},[])}function rG(){const 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 dD="focusScope.autoFocusOnMount",uD="focusScope.autoFocusOnUnmount",iG={bubbles:!1,cancelable:!0},rVe="FocusScope",NR=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,c]=m.useState(null),l=ri(r),h=ri(i),d=m.useRef(null),p=xt(t,k=>c(k)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let k=function(w){if(y.paused||!s)return;const b=w.target;s.contains(b)?d.current=b:xa(d.current,{select:!0})},x=function(w){if(y.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||xa(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&xa(s)};document.addEventListener("focusin",k),document.addEventListener("focusout",x);const M=new MutationObserver(v);return s&&M.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",x),M.disconnect()}}},[o,s,y.paused]),m.useEffect(()=>{if(s){sG.add(y);const k=document.activeElement;if(!s.contains(k)){const v=new CustomEvent(dD,iG);s.addEventListener(dD,l),s.dispatchEvent(v),v.defaultPrevented||(iVe(dVe(dte(s)),{select:!0}),document.activeElement===k&&xa(s))}return()=>{s.removeEventListener(dD,l),setTimeout(()=>{const v=new CustomEvent(uD,iG);s.addEventListener(uD,h),s.dispatchEvent(v),v.defaultPrevented||xa(k??document.body,{select:!0}),s.removeEventListener(uD,h),sG.remove(y)},0)}}},[s,l,h,y]);const g=m.useCallback(k=>{if(!n&&!o||y.paused)return;const x=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,v=document.activeElement;if(x&&v){const M=k.currentTarget,[w,b]=aVe(M);w&&b?!k.shiftKey&&v===b?(k.preventDefault(),n&&xa(w,{select:!0})):k.shiftKey&&v===w&&(k.preventDefault(),n&&xa(b,{select:!0})):v===M&&k.preventDefault()}},[n,o,y.paused]);return f.jsx(We.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});NR.displayName=rVe;function iVe(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(xa(o,{select:t}),document.activeElement!==n)return}function aVe(e){const t=dte(e),n=aG(t,e),o=aG(t.reverse(),e);return[n,o]}function dte(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function aG(e,t){for(const n of e)if(!sVe(n,{upTo:t}))return n}function sVe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cVe(e){return e instanceof HTMLInputElement&&"select"in e}function xa(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cVe(e)&&t&&e.select()}}var sG=lVe();function lVe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cG(e,t),e.unshift(t)},remove(t){var n;e=cG(e,t),(n=e[0])==null||n.resume()}}}function cG(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function dVe(e){return e.filter(t=>t.tagName!=="A")}var uVe=aF[" useId ".trim().toString()]||(()=>{}),hVe=0;function zn(e){const[t,n]=m.useState(uVe());return ts(()=>{n(o=>o??String(hVe++))},[e]),e||(t?`radix-${t}`:"")}const fVe=["top","right","bottom","left"],ns=Math.min,ho=Math.max,Cz=Math.round,Kp=Math.floor,ei=e=>({x:e,y:e}),pVe={left:"right",right:"left",bottom:"top",top:"bottom"};function SO(e,t,n){return ho(e,ns(t,n))}function Wi(e,t){return typeof e=="function"?e(t):e}function Gi(e){return e.split("-")[0]}function dh(e){return e.split("-")[1]}function Nq(e){return e==="x"?"y":"x"}function Iq(e){return e==="y"?"height":"width"}function Kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Aq(e){return Nq(Kr(e))}function yVe(e,t,n){n===void 0&&(n=!1);const o=dh(e),r=Aq(e),i=Iq(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Sz(a)),[a,Sz(a)]}function mVe(e){const t=Sz(e);return[LO(e),t,LO(t)]}function LO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lG=["left","right"],dG=["right","left"],gVe=["top","bottom"],kVe=["bottom","top"];function vVe(e,t,n){switch(e){case"top":case"bottom":return n?t?dG:lG:t?lG:dG;case"left":case"right":return t?gVe:kVe;default:return[]}}function xVe(e,t,n,o){const r=dh(e);let i=vVe(Gi(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(LO)))),i}function Sz(e){const t=Gi(e);return pVe[t]+e.slice(t.length)}function wVe(e){return{top:0,right:0,bottom:0,left:0,...e}}function ute(e){return typeof e!="number"?wVe(e):{top:e,right:e,bottom:e,left:e}}function Lz(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function uG(e,t,n){let{reference:o,floating:r}=e;const i=Kr(t),a=Aq(t),s=Iq(a),c=Gi(t),l=i==="y",h=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let y;switch(c){case"top":y={x:h,y:o.y-r.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:d};break;case"left":y={x:o.x-r.width,y:d};break;default:y={x:o.x,y:o.y}}switch(dh(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}async function MVe(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Wi(t,e),g=ute(y),x=s[p?d==="floating"?"reference":"floating":d],v=Lz(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:h,strategy:c})),M=d==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Lz(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:w,strategy:c}):M);return{top:(v.top-C.top+g.top)/b.y,bottom:(C.bottom-v.bottom+g.bottom)/b.y,left:(v.left-C.left+g.left)/b.x,right:(C.right-v.right+g.right)/b.x}}const bVe=50,_Ve=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:MVe},c=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:d}=uG(l,o,c),p=o,y=0;const g={};for(let k=0;k<i.length;k++){const x=i[k];if(!x)continue;const{name:v,fn:M}=x,{x:w,y:b,data:C,reset:_}=await M({x:h,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});h=w??h,d=b??d,g[v]={...g[v],...C},_&&y<bVe&&(y++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:h,y:d}=uG(l,p,c)),k=-1)}return{x:h,y:d,placement:p,strategy:r,middlewareData:g}},CVe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:h=0}=Wi(e,t)||{};if(l==null)return{};const d=ute(h),p={x:n,y:o},y=Aq(r),g=Iq(y),k=await a.getDimensions(l),x=y==="y",v=x?"top":"left",M=x?"bottom":"right",w=x?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[y]-p[y]-i.floating[g],C=p[y]-i.reference[y],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let S=_?_[w]:0;(!S||!await(a.isElement==null?void 0:a.isElement(_)))&&(S=s.floating[w]||i.floating[g]);const L=b/2-C/2,j=S/2-k[g]/2-1,I=ns(d[v],j),R=ns(d[M],j),E=I,V=S-k[g]-R,$=S/2-k[g]/2+L,T=SO(E,$,V),D=!c.arrow&&dh(r)!=null&&$!==T&&i.reference[g]/2-($<E?I:R)-k[g]/2<0,F=D?$<E?$-E:$-V:0;return{[y]:p[y]+F,data:{[y]:T,centerOffset:$-T-F,...D&&{alignmentOffset:F}},reset:D}}}),SVe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0,...x}=Wi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Gi(r),M=Kr(s),w=Gi(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=p||(w||!k?[Sz(s)]:mVe(s)),_=g!=="none";!p&&_&&C.push(...xVe(s,k,g,b));const S=[s,...C],L=await c.detectOverflow(t,x),j=[];let I=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&j.push(L[v]),d){const $=yVe(r,a,b);j.push(L[$[0]],L[$[1]])}if(I=[...I,{placement:r,overflows:j}],!j.every($=>$<=0)){var R,E;const $=(((R=i.flip)==null?void 0:R.index)||0)+1,T=S[$];if(T&&(!(d==="alignment"?M!==Kr(T):!1)||I.every(z=>Kr(z.placement)===M?z.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:T}};let D=(E=I.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(y){case"bestFit":{var V;const F=(V=I.filter(z=>{if(_){const A=Kr(z.placement);return A===M||A==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(A=>A>0).reduce((A,N)=>A+N,0)]).sort((z,A)=>z[1]-A[1])[0])==null?void 0:V[0];F&&(D=F);break}case"initialPlacement":D=s;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function hG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fG(e){return fVe.some(t=>e[t]>=0)}const LVe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=Wi(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...i,elementContext:"reference"}),s=hG(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fG(s)}}}case"escaped":{const a=await o.detectOverflow(t,{...i,altBoundary:!0}),s=hG(a,n.floating);return{data:{escapedOffsets:s,escaped:fG(s)}}}default:return{}}}}},hte=new Set(["left","top"]);async function NVe(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Gi(n),s=dh(n),c=Kr(n)==="y",l=hte.has(a)?-1:1,h=i&&c?-1:1,d=Wi(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(y=s==="end"?g*-1:g),c?{x:y*h,y:p*l}:{x:p*l,y:y*h}}const IVe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await NVe(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},AVe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:M,y:w}=v;return{x:M,y:w}}},...l}=Wi(e,t),h={x:n,y:o},d=await i.detectOverflow(t,l),p=Kr(Gi(r)),y=Nq(p);let g=h[y],k=h[p];if(a){const v=y==="y"?"top":"left",M=y==="y"?"bottom":"right",w=g+d[v],b=g-d[M];g=SO(w,g,b)}if(s){const v=p==="y"?"top":"left",M=p==="y"?"bottom":"right",w=k+d[v],b=k-d[M];k=SO(w,k,b)}const x=c.fn({...t,[y]:g,[p]:k});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[y]:a,[p]:s}}}}}},EVe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wi(e,t),h={x:n,y:o},d=Kr(r),p=Nq(d);let y=h[p],g=h[d];const k=Wi(s,t),x=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(c){const w=p==="y"?"height":"width",b=i.reference[p]-i.floating[w]+x.mainAxis,C=i.reference[p]+i.reference[w]-x.mainAxis;y<b?y=b:y>C&&(y=C)}if(l){var v,M;const w=p==="y"?"width":"height",b=hte.has(Gi(r)),C=i.reference[d]-i.floating[w]+(b&&((v=a.offset)==null?void 0:v[d])||0)+(b?0:x.crossAxis),_=i.reference[d]+i.reference[w]+(b?0:((M=a.offset)==null?void 0:M[d])||0)-(b?x.crossAxis:0);g<C?g=C:g>_&&(g=_)}return{[p]:y,[d]:g}}}},jVe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=Wi(e,t),h=await a.detectOverflow(t,l),d=Gi(r),p=dh(r),y=Kr(r)==="y",{width:g,height:k}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,x=p==="end"?"top":"bottom");const M=k-h.top-h.bottom,w=g-h.left-h.right,b=ns(k-h[x],M),C=ns(g-h[v],w),_=!t.middlewareData.shift;let S=b,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=M),_&&!p){const I=ho(h.left,0),R=ho(h.right,0),E=ho(h.top,0),V=ho(h.bottom,0);y?L=g-2*(I!==0||R!==0?I+R:ho(h.left,h.right)):S=k-2*(E!==0||V!==0?E+V:ho(h.top,h.bottom))}await c({...t,availableWidth:L,availableHeight:S});const j=await a.getDimensions(s.floating);return g!==j.width||k!==j.height?{reset:{rects:!0}}:{}}}};function IR(){return typeof window<"u"}function uh(e){return fte(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ai(e){var t;return(t=(fte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fte(e){return IR()?e instanceof Node||e instanceof ko(e).Node:!1}function dr(e){return IR()?e instanceof Element||e instanceof ko(e).Element:!1}function Zi(e){return IR()?e instanceof HTMLElement||e instanceof ko(e).HTMLElement:!1}function pG(e){return!IR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Wf(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function $Ve(e){return/^(table|td|th)$/.test(uh(e))}function AR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const PVe=/transform|translate|scale|rotate|perspective|filter/,zVe=/paint|layout|strict|content/,Ss=e=>!!e&&e!=="none";let hD;function Eq(e){const t=dr(e)?ur(e):e;return Ss(t.transform)||Ss(t.translate)||Ss(t.scale)||Ss(t.rotate)||Ss(t.perspective)||!jq()&&(Ss(t.backdropFilter)||Ss(t.filter))||PVe.test(t.willChange||"")||zVe.test(t.contain||"")}function RVe(e){let t=os(e);for(;Zi(t)&&!eh(t);){if(Eq(t))return t;if(AR(t))return null;t=os(t)}return null}function jq(){return hD==null&&(hD=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hD}function eh(e){return/^(html|body|#document)$/.test(uh(e))}function ur(e){return ko(e).getComputedStyle(e)}function ER(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function os(e){if(uh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pG(e)&&e.host||ai(e);return pG(t)?t.host:t}function pte(e){const t=os(e);return eh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&Wf(t)?t:pte(t)}function _f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pte(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),a=ko(r);if(i){const s=NO(a);return t.concat(a,a.visualViewport||[],Wf(r)?r:[],s&&n?_f(s):[])}else return t.concat(r,_f(r,[],n))}function NO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yte(e){const t=ur(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Zi(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Cz(n)!==i||Cz(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function $q(e){return dr(e)?e:e.contextElement}function L0(e){const t=$q(e);if(!Zi(t))return ei(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=yte(t);let a=(i?Cz(n.width):n.width)/o,s=(i?Cz(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const TVe=ei(0);function mte(e){const t=ko(e);return!jq()||!t.visualViewport?TVe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DVe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function eu(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=$q(e);let a=ei(1);t&&(o?dr(o)&&(a=L0(o)):a=L0(e));const s=DVe(i,n,o)?mte(i):ei(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,h=r.width/a.x,d=r.height/a.y;if(i){const p=ko(i),y=o&&dr(o)?ko(o):o;let g=p,k=NO(g);for(;k&&o&&y!==g;){const x=L0(k),v=k.getBoundingClientRect(),M=ur(k),w=v.left+(k.clientLeft+parseFloat(M.paddingLeft))*x.x,b=v.top+(k.clientTop+parseFloat(M.paddingTop))*x.y;c*=x.x,l*=x.y,h*=x.x,d*=x.y,c+=w,l+=b,g=ko(k),k=NO(g)}}return Lz({width:h,height:d,x:c,y:l})}function jR(e,t){const n=ER(e).scrollLeft;return t?t.left+n:eu(ai(e)).left+n}function gte(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-jR(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function HVe(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",a=ai(o),s=t?AR(t.floating):!1;if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ei(1);const h=ei(0),d=Zi(o);if((d||!d&&!i)&&((uh(o)!=="body"||Wf(a))&&(c=ER(o)),d)){const y=eu(o);l=L0(o),h.x=y.x+o.clientLeft,h.y=y.y+o.clientTop}const p=a&&!d&&!i?gte(a,c):ei(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+p.x,y:n.y*l.y-c.scrollTop*l.y+h.y+p.y}}function OVe(e){return Array.from(e.getClientRects())}function FVe(e){const t=ai(e),n=ER(e),o=e.ownerDocument.body,r=ho(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ho(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+jR(e);const s=-n.scrollTop;return ur(o).direction==="rtl"&&(a+=ho(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}const yG=25;function qVe(e,t){const n=ko(e),o=ai(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const h=jq();(!h||h&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const l=jR(o);if(l<=0){const h=o.ownerDocument,d=h.body,p=getComputedStyle(d),y=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-d.clientWidth-y);g<=yG&&(i-=g)}else l<=yG&&(i+=l);return{width:i,height:a,x:s,y:c}}function VVe(e,t){const n=eu(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Zi(e)?L0(e):ei(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:a,height:s,x:c,y:l}}function mG(e,t,n){let o;if(t==="viewport")o=qVe(e,n);else if(t==="document")o=FVe(ai(e));else if(dr(t))o=VVe(t,n);else{const r=mte(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lz(o)}function kte(e,t){const n=os(e);return n===t||!dr(n)||eh(n)?!1:ur(n).position==="fixed"||kte(n,t)}function BVe(e,t){const n=t.get(e);if(n)return n;let o=_f(e,[],!1).filter(s=>dr(s)&&uh(s)!=="body"),r=null;const i=ur(e).position==="fixed";let a=i?os(e):e;for(;dr(a)&&!eh(a);){const s=ur(a),c=Eq(a);!c&&s.position==="fixed"&&(r=null),(i?!c&&!r:!c&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Wf(a)&&!c&&kte(e,a))?o=o.filter(h=>h!==a):r=s,a=os(a)}return t.set(e,o),o}function UVe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?AR(t)?[]:BVe(t,this._c):[].concat(n),o],s=mG(t,a[0],r);let c=s.top,l=s.right,h=s.bottom,d=s.left;for(let p=1;p<a.length;p++){const y=mG(t,a[p],r);c=ho(y.top,c),l=ns(y.right,l),h=ns(y.bottom,h),d=ho(y.left,d)}return{width:l-d,height:h-c,x:d,y:c}}function WVe(e){const{width:t,height:n}=yte(e);return{width:t,height:n}}function GVe(e,t,n){const o=Zi(t),r=ai(t),i=n==="fixed",a=eu(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ei(0);function l(){c.x=jR(r)}if(o||!o&&!i)if((uh(t)!=="body"||Wf(r))&&(s=ER(t)),o){const y=eu(t,!0,i,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else r&&l();i&&!o&&r&&l();const h=r&&!o&&!i?gte(r,s):ei(0),d=a.left+s.scrollLeft-c.x-h.x,p=a.top+s.scrollTop-c.y-h.y;return{x:d,y:p,width:a.width,height:a.height}}function fD(e){return ur(e).position==="static"}function gG(e,t){if(!Zi(e)||ur(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ai(e)===n&&(n=n.ownerDocument.body),n}function vte(e,t){const n=ko(e);if(AR(e))return n;if(!Zi(e)){let r=os(e);for(;r&&!eh(r);){if(dr(r)&&!fD(r))return r;r=os(r)}return n}let o=gG(e,t);for(;o&&$Ve(o)&&fD(o);)o=gG(o,t);return o&&eh(o)&&fD(o)&&!Eq(o)?n:o||RVe(e)||n}const KVe=async function(e){const t=this.getOffsetParent||vte,n=this.getDimensions,o=await n(e.floating);return{reference:GVe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function XVe(e){return ur(e).direction==="rtl"}const ZVe={convertOffsetParentRelativeRectToViewportRelativeRect:HVe,getDocumentElement:ai,getClippingRect:UVe,getOffsetParent:vte,getElementRects:KVe,getClientRects:OVe,getDimensions:WVe,getScale:L0,isElement:dr,isRTL:XVe};function xte(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YVe(e,t){let n=null,o;const r=ai(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:h,top:d,width:p,height:y}=l;if(s||t(),!p||!y)return;const g=Kp(d),k=Kp(r.clientWidth-(h+p)),x=Kp(r.clientHeight-(d+y)),v=Kp(h),w={rootMargin:-g+"px "+-k+"px "+-x+"px "+-v+"px",threshold:ho(0,ns(1,c))||1};let b=!0;function C(_){const S=_[0].intersectionRatio;if(S!==c){if(!b)return a();S?a(!1,S):o=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!xte(l,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return a(!0),i}function QVe(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=$q(e),h=r||i?[...l?_f(l):[],...t?_f(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&s?YVe(l,n):null;let p=-1,y=null;a&&(y=new ResizeObserver(v=>{let[M]=v;M&&M.target===l&&y&&t&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),t&&y.observe(t));let g,k=c?eu(e):null;c&&x();function x(){const v=eu(e);k&&!xte(k,v)&&n(),k=v,g=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(M=>{r&&M.removeEventListener("scroll",n),i&&M.removeEventListener("resize",n)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const JVe=IVe,eBe=AVe,tBe=SVe,nBe=jVe,oBe=LVe,kG=CVe,rBe=EVe,iBe=(e,t,n)=>{const o=new Map,r={platform:ZVe,...n},i={...r.platform,_c:o};return _Ve(e,t,{...r,platform:i})};var aBe=typeof document<"u",sBe=function(){},SP=aBe?m.useLayoutEffect:sBe;function Nz(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Nz(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Nz(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wte(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vG(e,t){const n=wte(e);return Math.round(t*n)/n}function pD(e){const t=m.useRef(e);return SP(()=>{t.current=e}),t}function cBe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[h,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=m.useState(o);Nz(p,o)||y(o);const[g,k]=m.useState(null),[x,v]=m.useState(null),M=m.useCallback(z=>{z!==_.current&&(_.current=z,k(z))},[]),w=m.useCallback(z=>{z!==S.current&&(S.current=z,v(z))},[]),b=i||g,C=a||x,_=m.useRef(null),S=m.useRef(null),L=m.useRef(h),j=c!=null,I=pD(c),R=pD(r),E=pD(l),V=m.useCallback(()=>{if(!_.current||!S.current)return;const z={placement:t,strategy:n,middleware:p};R.current&&(z.platform=R.current),iBe(_.current,S.current,z).then(A=>{const N={...A,isPositioned:E.current!==!1};$.current&&!Nz(L.current,N)&&(L.current=N,au.flushSync(()=>{d(N)}))})},[p,t,n,R,E]);SP(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[l]);const $=m.useRef(!1);SP(()=>($.current=!0,()=>{$.current=!1}),[]),SP(()=>{if(b&&(_.current=b),C&&(S.current=C),b&&C){if(I.current)return I.current(b,C,V);V()}},[b,C,V,I,j]);const T=m.useMemo(()=>({reference:_,floating:S,setReference:M,setFloating:w}),[M,w]),D=m.useMemo(()=>({reference:b,floating:C}),[b,C]),F=m.useMemo(()=>{const z={position:n,left:0,top:0};if(!D.floating)return z;const A=vG(D.floating,h.x),N=vG(D.floating,h.y);return s?{...z,transform:"translate("+A+"px, "+N+"px)",...wte(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:N}},[n,s,D.floating,h.x,h.y]);return m.useMemo(()=>({...h,update:V,refs:T,elements:D,floatingStyles:F}),[h,V,T,D,F])}const lBe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?kG({element:o.current,padding:r}).fn(n):{}:o?kG({element:o,padding:r}).fn(n):{}}}},dBe=(e,t)=>{const n=JVe(e);return{name:n.name,fn:n.fn,options:[e,t]}},uBe=(e,t)=>{const n=eBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},hBe=(e,t)=>({fn:rBe(e).fn,options:[e,t]}),fBe=(e,t)=>{const n=tBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pBe=(e,t)=>{const n=nBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},yBe=(e,t)=>{const n=oBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},mBe=(e,t)=>{const n=lBe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gBe="Arrow",Mte=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return f.jsx(We.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mte.displayName=gBe;var kBe=Mte,Pq="Popper",[bte,hh]=yr(Pq),[vBe,_te]=bte(Pq),Cte=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return f.jsx(vBe,{scope:t,anchor:o,onAnchorChange:r,children:n})};Cte.displayName=Pq;var Ste="PopperAnchor",Lte=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=_te(Ste,n),a=m.useRef(null),s=xt(t,a),c=m.useRef(null);return m.useEffect(()=>{const l=c.current;c.current=(o==null?void 0:o.current)||a.current,l!==c.current&&i.onAnchorChange(c.current)}),o?null:f.jsx(We.div,{...r,ref:s})});Lte.displayName=Ste;var zq="PopperContent",[xBe,wBe]=bte(zq),Nte=m.forwardRef((e,t)=>{var ae,oe,re,se,ve,ke;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:y="optimized",onPlaced:g,...k}=e,x=_te(zq,n),[v,M]=m.useState(null),w=xt(t,ge=>M(ge)),[b,C]=m.useState(null),_=Oee(b),S=(_==null?void 0:_.width)??0,L=(_==null?void 0:_.height)??0,j=o+(i!=="center"?"-"+i:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},R=Array.isArray(l)?l:[l],E=R.length>0,V={padding:I,boundary:R.filter(bBe),altBoundary:E},{refs:$,floatingStyles:T,placement:D,isPositioned:F,middlewareData:z}=cBe({strategy:"fixed",placement:j,whileElementsMounted:(...ge)=>QVe(...ge,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[dBe({mainAxis:r+L,alignmentAxis:a}),c&&uBe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hBe():void 0,...V}),c&&fBe({...V}),pBe({...V,apply:({elements:ge,rects:Pe,availableWidth:Be,availableHeight:De})=>{const{width:pe,height:me}=Pe.reference,Ie=ge.floating.style;Ie.setProperty("--radix-popper-available-width",`${Be}px`),Ie.setProperty("--radix-popper-available-height",`${De}px`),Ie.setProperty("--radix-popper-anchor-width",`${pe}px`),Ie.setProperty("--radix-popper-anchor-height",`${me}px`)}}),b&&mBe({element:b,padding:s}),_Be({arrowWidth:S,arrowHeight:L}),p&&yBe({strategy:"referenceHidden",...V})]}),[A,N]=Ete(D),W=ri(g);ts(()=>{F&&(W==null||W())},[F,W]);const O=(ae=z.arrow)==null?void 0:ae.x,P=(oe=z.arrow)==null?void 0:oe.y,Y=((re=z.arrow)==null?void 0:re.centerOffset)!==0,[Z,te]=m.useState();return ts(()=>{v&&te(window.getComputedStyle(v).zIndex)},[v]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(se=z.transformOrigin)==null?void 0:se.x,(ve=z.transformOrigin)==null?void 0:ve.y].join(" "),...((ke=z.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(xBe,{scope:n,placedSide:A,onArrowChange:C,arrowX:O,arrowY:P,shouldHideArrow:Y,children:f.jsx(We.div,{"data-side":A,"data-align":N,...k,ref:w,style:{...k.style,animation:F?void 0:"none"}})})})});Nte.displayName=zq;var Ite="PopperArrow",MBe={top:"bottom",right:"left",bottom:"top",left:"right"},Ate=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=wBe(Ite,o),a=MBe[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(kBe,{...r,ref:n,style:{...r.style,display:"block"}})})});Ate.displayName=Ite;function bBe(e){return e!==null}var _Be=e=>({name:"transformOrigin",options:e,fn(t){var x,v,M;const{placement:n,rects:o,middlewareData:r}=t,a=((x=r.arrow)==null?void 0:x.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,h]=Ete(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(((v=r.arrow)==null?void 0:v.x)??0)+s/2,y=(((M=r.arrow)==null?void 0:M.y)??0)+c/2;let g="",k="";return l==="bottom"?(g=a?d:`${p}px`,k=`${-c}px`):l==="top"?(g=a?d:`${p}px`,k=`${o.floating.height+c}px`):l==="right"?(g=`${-c}px`,k=a?d:`${y}px`):l==="left"&&(g=`${o.floating.width+c}px`,k=a?d:`${y}px`),{data:{x:g,y:k}}}});function Ete(e){const[t,n="center"]=e.split("-");return[t,n]}var Rq=Cte,$R=Lte,Tq=Nte,Dq=Ate,CBe="Portal",Gf=m.forwardRef((e,t)=>{var s;const{container:n,...o}=e,[r,i]=m.useState(!1);ts(()=>i(!0),[]);const a=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Ale.createPortal(f.jsx(We.div,{...o,ref:t}),a):null});Gf.displayName=CBe;function SBe(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var _o=e=>{const{present:t,children:n}=e,o=LBe(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),i=xt(o.ref,NBe(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:i}):null};_o.displayName="Presence";function LBe(e){const[t,n]=m.useState(),o=m.useRef(null),r=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[s,c]=SBe(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Xp(o.current);i.current=s==="mounted"?l:"none"},[s]),ts(()=>{const l=o.current,h=r.current;if(h!==e){const p=i.current,y=Xp(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(h&&p!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ts(()=>{if(t){let l;const h=t.ownerDocument.defaultView??window,d=y=>{const k=Xp(o.current).includes(CSS.escape(y.animationName));if(y.target===t&&k&&(c("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=y=>{y.target===t&&(i.current=Xp(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Xp(e){return(e==null?void 0:e.animationName)||"none"}function NBe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IBe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,Zp=new WeakMap,Yp={},yD=0,jte=function(e){return e&&(e.host||jte(e.parentNode))},ABe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=jte(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EBe=function(e,t,n,o){var r=ABe(t,Array.isArray(e)?e:[e]);Yp[n]||(Yp[n]=new WeakMap);var i=Yp[n],a=[],s=new Set,c=new Set(r),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};r.forEach(l);var h=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))h(p);else try{var y=p.getAttribute(o),g=y!==null&&y!=="false",k=(Pu.get(p)||0)+1,x=(i.get(p)||0)+1;Pu.set(p,k),i.set(p,x),a.push(p),k===1&&g&&Zp.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),s.clear(),yD++,function(){a.forEach(function(d){var p=Pu.get(d)-1,y=i.get(d)-1;Pu.set(d,p),i.set(d,y),p||(Zp.has(d)||d.removeAttribute(o),Zp.delete(d)),y||d.removeAttribute(n)}),yD--,yD||(Pu=new WeakMap,Pu=new WeakMap,Zp=new WeakMap,Yp={})}},Hq=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=IBe(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),EBe(o,r,n,"aria-hidden")):function(){return null}},Wr=function(){return Wr=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Wr.apply(this,arguments)};function $te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function jBe(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var LP="right-scroll-bar-position",NP="width-before-scroll-bar",$Be="with-scroll-bars-hidden",PBe="--removed-body-scroll-bar-size";function mD(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zBe(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var RBe=typeof window<"u"?m.useLayoutEffect:m.useEffect,xG=new WeakMap;function TBe(e,t){var n=zBe(null,function(o){return e.forEach(function(r){return mD(r,o)})});return RBe(function(){var o=xG.get(n);if(o){var r=new Set(o),i=new Set(e),a=n.current;r.forEach(function(s){i.has(s)||mD(s,null)}),i.forEach(function(s){r.has(s)||mD(s,a)})}xG.set(n,e)},[e]),n}function DBe(e){return e}function HBe(e,t){t===void 0&&(t=DBe);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,o);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(o=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var h=a;a=[],h.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(h){a.push(h),l()},filter:function(h){return a=a.filter(h),n}}}};return r}function OBe(e){e===void 0&&(e={});var t=HBe(null);return t.options=Wr({async:!0,ssr:!1},e),t}var Pte=function(e){var t=e.sideCar,n=$te(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return m.createElement(o,Wr({},n))};Pte.isSideCarExport=!0;function FBe(e,t){return e.useMedium(t),Pte}var zte=OBe(),gD=function(){},PR=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:gD,onWheelCapture:gD,onTouchMoveCapture:gD}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,y=e.noRelative,g=e.noIsolation,k=e.inert,x=e.allowPinchZoom,v=e.as,M=v===void 0?"div":v,w=e.gapMode,b=$te(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=TBe([n,t]),S=Wr(Wr({},b),r);return m.createElement(m.Fragment,null,h&&m.createElement(C,{sideCar:zte,removeScrollBar:l,shards:d,noRelative:y,noIsolation:g,inert:k,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:w}),a?m.cloneElement(m.Children.only(s),Wr(Wr({},S),{ref:_})):m.createElement(M,Wr({},S,{className:c,ref:_}),s))});PR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};PR.classNames={fullWidth:NP,zeroRight:LP};var qBe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VBe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qBe();return t&&e.setAttribute("nonce",t),e}function BBe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UBe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WBe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VBe())&&(BBe(t,n),UBe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GBe=function(){var e=WBe();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rte=function(){var e=GBe(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},KBe={left:0,top:0,right:0,gap:0},kD=function(e){return parseInt(e||"",10)||0},XBe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[kD(n),kD(o),kD(r)]},ZBe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KBe;var t=XBe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},YBe=Rte(),N0="data-scroll-locked",QBe=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
8470
8470
  .`.concat($Be,` {
8471
8471
  overflow: hidden `).concat(o,`;
8472
8472
  padding-right: `).concat(s,"px ").concat(o,`;
@@ -8538,10 +8538,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8538
8538
  `))+1))}const a="#".repeat(r),s=n.enter("headingAtx"),c=n.enter("phrasing");i.move(a+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
8539
8539
  `,...i.current()});return/^[\t ]/.test(l)&&(l=If(l.charCodeAt(0))+l.slice(1)),l=l?a+" "+l:a,n.options.closeAtx&&(l+=" "+a),c(),s(),l}yie.peek=Gtt;function yie(e){return e.value||""}function Gtt(){return"<"}mie.peek=Ktt;function mie(e,t,n,o){const r=IV(n),i=r==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const c=n.createTracker(o);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),l+=c.move(" "+r),l+=c.move(n.safe(e.title,{before:l,after:r,...c.current()})),l+=c.move(r),s()),l+=c.move(")"),a(),l}function Ktt(){return"!"}gie.peek=Xtt;function gie(e,t,n,o){const r=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return a(),n.stack=h,i(),r==="full"||!l||l!==d?c+=s.move(d+"]"):r==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Xtt(){return"!"}kie.peek=Ztt;function kie(e,t,n){let o=e.value||"",r="`",i=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i<n.unsafe.length;){const a=n.unsafe[i],s=n.compilePattern(a);let c;if(a.atBreak)for(;c=s.exec(o);){let l=c.index;o.charCodeAt(l)===10&&o.charCodeAt(l-1)===13&&l--,o=o.slice(0,l)+" "+o.slice(c.index+1)}}return r+o+r}function Ztt(){return"`"}function vie(e,t){const n=xV(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}xie.peek=Ytt;function xie(e,t,n,o){const r=IV(n),i=r==='"'?"Quote":"Apostrophe",a=n.createTracker(o);let s,c;if(vie(e,n)){const h=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=h,d}s=n.enter("link"),c=n.enter("label");let l=a.move("[");return l+=a.move(n.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(n.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=n.enter("destinationRaw"),l+=a.move(n.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),l+=a.move(" "+r),l+=a.move(n.safe(e.title,{before:l,after:r,...a.current()})),l+=a.move(r),c()),l+=a.move(")"),s(),l}function Ytt(e,t,n){return vie(e,n)?"<":"["}wie.peek=Qtt;function wie(e,t,n,o){const r=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return a(),n.stack=h,i(),r==="full"||!l||l!==d?c+=s.move(d+"]"):r==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Qtt(){return"["}function AV(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Jtt(e){const t=AV(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ent(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Mie(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function tnt(e,t,n,o){const r=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?ent(n):AV(n);const s=e.ordered?a==="."?")":".":Jtt(n);let c=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Mie(n)===a&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(a=s),n.bulletCurrent=a;const l=n.containerFlow(e,o);return n.bulletLastUsed=a,n.bulletCurrent=i,r(),l}function nnt(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ont(e,t,n,o){const r=nnt(n);let i=n.bulletCurrent||AV(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let a=i.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(o);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),h);return c(),l;function h(d,p,y){return p?(y?"":" ".repeat(a))+d:(y?i:i+" ".repeat(a-i.length))+d}}function rnt(e,t,n,o){const r=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,o);return i(),r(),a}const int=tT(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ant(e,t,n,o){return(e.children.some(function(a){return int(a)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function snt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bie.peek=cnt;function bie(e,t,n,o){const r=snt(n),i=n.enter("strong"),a=n.createTracker(o),s=a.move(r+r);let c=a.move(n.containerPhrasing(e,{after:r,before:s,...a.current()}));const l=c.charCodeAt(0),h=Fz(o.before.charCodeAt(o.before.length-1),l,r);h.inside&&(c=If(l)+c.slice(1));const d=c.charCodeAt(c.length-1),p=Fz(o.after.charCodeAt(0),d,r);p.inside&&(c=c.slice(0,-1)+If(d));const y=a.move(r+r);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+c+y}function cnt(e,t,n){return n.options.strong||"*"}function lnt(e,t,n,o){return n.safe(e.value,o)}function dnt(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function unt(e,t,n){const o=(Mie(n)+(n.options.ruleSpaces?" ":"")).repeat(dnt(n));return n.options.ruleSpaces?o.slice(0,-1):o}const _ie={blockquote:Ptt,break:DK,code:Ott,definition:qtt,emphasis:pie,hardBreak:DK,heading:Wtt,html:yie,image:mie,imageReference:gie,inlineCode:kie,link:xie,linkReference:wie,list:tnt,listItem:ont,paragraph:rnt,root:ant,strong:bie,text:lnt,thematicBreak:unt};function hnt(){return{enter:{table:fnt,tableData:HK,tableHeader:HK,tableRow:ynt},exit:{codeText:mnt,table:pnt,tableData:DD,tableHeader:DD,tableRow:DD}}}function fnt(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pnt(e){this.exit(e),this.data.inTable=void 0}function ynt(e){this.enter({type:"tableRow",children:[]},e)}function DD(e){this.exit(e)}function HK(e){this.enter({type:"tableCell",children:[]},e)}function mnt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gnt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gnt(e,t){return t==="|"?t:e}function knt(e){const t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,r=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
8540
8540
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:c,tableRow:s}};function a(y,g,k,x){return l(h(y,k,x),y.align)}function s(y,g,k,x){const v=d(y,k,x),M=l([v]);return M.slice(0,M.indexOf(`
8541
- `))}function c(y,g,k,x){const v=k.enter("tableCell"),M=k.enter("phrasing"),w=k.containerPhrasing(y,{...x,before:i,after:i});return M(),v(),w}function l(y,g){return jtt(y,{align:g,alignDelimiters:o,padding:n,stringLength:r})}function h(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("table");for(;++v<x.length;)M[v]=d(x[v],g,k);return w(),M}function d(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("tableRow");for(;++v<x.length;)M[v]=c(x[v],y,g,k);return w(),M}function p(y,g,k){let x=_ie.inlineCode(y,g,k);return k.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function vnt(){return{exit:{taskListCheckValueChecked:OK,taskListCheckValueUnchecked:OK,paragraph:wnt}}}function xnt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mnt}}}function OK(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wnt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const r=t.children;let i=-1,a;for(;++i<r.length;){const s=r[i];if(s.type==="paragraph"){a=s;break}}a===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Mnt(e,t,n,o){const r=e.children[0],i=typeof e.checked=="boolean"&&r&&r.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(o);i&&s.move(a);let c=_ie.listItem(e,t,n,{...o,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+a}}function bnt(){return[ttt(),Mtt(),Stt(),hnt(),vnt()]}function _nt(e){return{extensions:[ntt(),btt(e),Ltt(),knt(e),xnt()]}}const Cnt={tokenize:Ent,partial:!0},Cie={tokenize:jnt,partial:!0},Sie={tokenize:$nt,partial:!0},Lie={tokenize:Pnt,partial:!0},Snt={tokenize:znt,partial:!0},Nie={name:"wwwAutolink",tokenize:Int,previous:Aie},Iie={name:"protocolAutolink",tokenize:Ant,previous:Eie},Yi={name:"emailAutolink",tokenize:Nnt,previous:jie},yi={};function Lnt(){return{text:yi}}let Ls=48;for(;Ls<123;)yi[Ls]=Yi,Ls++,Ls===58?Ls=65:Ls===91&&(Ls=97);yi[43]=Yi;yi[45]=Yi;yi[46]=Yi;yi[95]=Yi;yi[72]=[Yi,Iie];yi[104]=[Yi,Iie];yi[87]=[Yi,Nie];yi[119]=[Yi,Nie];function Nnt(e,t,n){const o=this;let r,i;return a;function a(d){return!ZO(d)||!jie.call(o,o.previous)||EV(o.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ZO(d)?(e.consume(d),s):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check(Snt,h,l)(d):d===45||d===95||bn(d)?(i=!0,e.consume(d),c):h(d)}function l(d){return e.consume(d),r=!0,c}function h(d){return i&&r&&$n(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Int(e,t,n){const o=this;return r;function r(a){return a!==87&&a!==119||!Aie.call(o,o.previous)||EV(o.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cnt,e.attempt(Cie,e.attempt(Sie,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Ant(e,t,n){const o=this;let r="",i=!1;return a;function a(d){return(d===72||d===104)&&Eie.call(o,o.previous)&&!EV(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if($n(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),i?l:(i=!0,c)):n(d)}function l(d){return d===null||Dz(d)||vt(d)||ou(d)||QR(d)?n(d):e.attempt(Cie,e.attempt(Sie,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ent(e,t,n){let o=0;return r;function r(a){return(a===87||a===119)&&o<3?(o++,e.consume(a),r):a===46&&o===3?(e.consume(a),i):n(a)}function i(a){return a===null?n(a):t(a)}}function jnt(e,t,n){let o,r,i;return a;function a(l){return l===46||l===95?e.check(Lie,c,s)(l):l===null||vt(l)||ou(l)||l!==45&&QR(l)?c(l):(i=!0,e.consume(l),a)}function s(l){return l===95?o=!0:(r=o,o=void 0),e.consume(l),a}function c(l){return r||o||!i?n(l):t(l)}}function $nt(e,t){let n=0,o=0;return r;function r(a){return a===40?(n++,e.consume(a),r):a===41&&o<n?i(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(Lie,t,i)(a):a===null||vt(a)||ou(a)?t(a):(e.consume(a),r)}function i(a){return a===41&&o++,e.consume(a),r}}function Pnt(e,t,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),i):s===93?(e.consume(s),r):s===60||s===null||vt(s)||ou(s)?t(s):n(s)}function r(s){return s===null||s===40||s===91||vt(s)||ou(s)?t(s):o(s)}function i(s){return $n(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),o):$n(s)?(e.consume(s),a):n(s)}}function znt(e,t,n){return o;function o(i){return e.consume(i),r}function r(i){return bn(i)?n(i):t(i)}}function Aie(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vt(e)}function Eie(e){return!$n(e)}function jie(e){return!(e===47||ZO(e))}function ZO(e){return e===43||e===45||e===46||e===95||bn(e)}function EV(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Rnt={tokenize:Bnt,partial:!0};function Tnt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fnt,continuation:{tokenize:qnt},exit:Vnt}},text:{91:{name:"gfmFootnoteCall",tokenize:Ont},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Dnt,resolveTo:Hnt}}}}function Dnt(e,t,n){const o=this;let r=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a;for(;r--;){const c=o.events[r][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!a||!a._balanced)return n(c);const l=cr(o.sliceSerialize({start:a.end,end:o.now()}));return l.codePointAt(0)!==94||!i.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Hnt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...s),e}function Ont(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(i>999||d===93&&!a||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(cr(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(a=!0),i++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),i++,l):l(d)}}function Fnt(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,a=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(g)}function h(g){if(a>999||g===93&&!s||g===null||g===91||vt(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return i=cr(o.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vt(g)||(s=!0),a++,e.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(e.consume(g),a++,h):h(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),r.includes(i)||r.push(i),it(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function qnt(e,t,n){return e.check(np,t,e.attempt(Rnt,t,n))}function Vnt(e){e.exit("gfmFootnoteDefinition")}function Bnt(e,t,n){const o=this;return it(e,r,"gfmFootnoteDefinitionIndent",5);function r(i){const a=o.events[o.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(i):n(i)}}function Unt(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:r};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function r(a,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let l=c;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[c][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[c][1].end)},d={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[c][1].start)},p=[["enter",h,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",d,s]],y=s.parser.constructs.insideSpan.null;y&&vo(p,p.length,0,JR(y,a.slice(l+1,c),s)),vo(p,p.length,0,[["exit",d,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",h,s]]),vo(a,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function i(a,s,c){const l=this.previous,h=this.events;let d=0;return p;function p(g){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(g):(a.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const k=oh(l);if(g===126)return d>1?c(g):(a.consume(g),d++,y);if(d<2&&!n)return c(g);const x=a.exit("strikethroughSequenceTemporary"),v=oh(g);return x._open=!v||v===2&&!!k,x._close=!k||k===2&&!!v,s(g)}}}class Wnt{constructor(){this.map=[]}add(t,n,o){Gnt(this,t,n,o)}consume(t){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push(t.slice()),t.length=0;let r=o.pop();for(;r;){for(const i of r)t.push(i);r=o.pop()}this.map.length=0}}function Gnt(e,t,n,o){let r=0;if(!(n===0&&o.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...o);return}r+=1}e.map.push([t,n,o])}}function Knt(e,t){let n=!1;const o=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=o.length-1;o[i]=o[i]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function Xnt(){return{flow:{null:{name:"table",tokenize:Znt,resolveAll:Ynt}}}}function Znt(e,t,n){const o=this;let r=0,i=0,a;return s;function s(I){let R=o.events.length-1;for(;R>-1;){const $=o.events[R][1].type;if($==="lineEnding"||$==="linePrefix")R--;else break}const E=R>-1?o.events[R][1].type:null,V=E==="tableHead"||E==="tableRow"?_:c;return V===_&&o.parser.lazy[o.now().line]?n(I):V(I)}function c(I){return e.enter("tableHead"),e.enter("tableRow"),l(I)}function l(I){return I===124||(a=!0,i+=1),h(I)}function h(I){return I===null?n(I):$e(I)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),y):n(I):Qe(I)?it(e,h,"whitespace")(I):(i+=1,a&&(a=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,h):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),h(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function y(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(I):(e.enter("tableDelimiterRow"),a=!1,Qe(I)?it(e,g,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?x(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):C(I)}function k(I){return Qe(I)?it(e,x,"whitespace")(I):x(I)}function x(I){return I===58?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(i+=1,v(I)):I===null||$e(I)?b(I):C(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),M(I)):C(I)}function M(I){return I===45?(e.consume(I),M):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return Qe(I)?it(e,b,"whitespace")(I):b(I)}function b(I){return I===124?g(I):I===null||$e(I)?!a||r!==i?C(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):C(I)}function C(I){return n(I)}function _(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||$e(I)?(e.exit("tableRow"),t(I)):Qe(I)?it(e,S,"whitespace")(I):(e.enter("data"),L(I))}function L(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?j:L)}function j(I){return I===92||I===124?(e.consume(I),L):L(I)}}function Ynt(e,t){let n=-1,o=!0,r=0,i=[0,0,0,0],a=[0,0,0,0],s=!1,c=0,l,h,d;const p=new Wnt;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(FK(p,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(o=!0,d=void 0,i=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",h,t]])),r=g.type==="tableDelimiterRow"?2:h?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(o=!1,a[2]===0&&(i[1]!==0&&(a[0]=a[1],d=uy(p,t,i,r,void 0,d),i=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(o?o=!1:(i[1]!==0&&(a[0]=a[1],d=uy(p,t,i,r,void 0,d)),i=a,a=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,i[1]!==0?(a[0]=a[1],d=uy(p,t,i,r,n,d)):a[1]!==0&&(d=uy(p,t,a,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&FK(p,t,c,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Knt(t.events,n))}return e}function uy(e,t,n,o,r,i){const a=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Uu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=Uu(t.events,n[1]);if(i={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const l=Uu(t.events,n[2]),h=Uu(t.events,n[3]),d={type:s,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),o!==2){const p=t.events[n[2]],y=t.events[n[3]];if(p[1].end=Object.assign({},y[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(i.end=Object.assign({},Uu(t.events,r)),e.add(r,0,[["exit",i,t]]),i=void 0),i}function FK(e,t,n,o,r){const i=[],a=Uu(t.events,n);r&&(r.end=Object.assign({},a),i.push(["exit",r,t])),o.end=Object.assign({},a),i.push(["exit",o,t]),e.add(n+1,0,i)}function Uu(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const Qnt={name:"tasklistCheck",tokenize:eot};function Jnt(){return{text:{91:Qnt}}}function eot(e,t,n){const o=this;return r;function r(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return vt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Qe(c)?e.check({tokenize:tot},t,n)(c):n(c)}}function tot(e,t,n){return it(e,o,"whitespace");function o(r){return r===null?n(r):t(r)}}function not(e){return qre([Lnt(),Tnt(),Unt(e),Xnt(),Jnt()])}const oot={};function rot(e){const t=this,n=e||oot,o=t.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(not(n)),i.push(bnt()),a.push(_nt(n))}let hy=null,iot=0;function aot(){return hy||(hy=sh(()=>import("./mermaid.core-BTSFRjqx.js").then(e=>e.ak),__vite__mapDeps([8,9,1])).then(e=>{const t=e;return t.default??t}),hy)}function qK(){var e;return typeof document>"u"?!1:document.documentElement.classList.contains("dark")||(e=document.body)!=null&&e.classList.contains("dark")?!0:!!document.querySelector(".dark")}function VK({code:e,className:t}){const n=m.useRef(null),o=m.useRef(`seeflow-mermaid-${++iot}`),[r,i]=m.useState(null),[a,s]=m.useState(()=>qK());return m.useEffect(()=>{if(typeof document>"u")return;const c=()=>s(qK()),l=new MutationObserver(c);return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.body&&l.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[]),m.useEffect(()=>{let c=!1;return i(null),aot().then(async l=>{l.initialize({startOnLoad:!1,theme:a?"dark":"default",securityLevel:"strict",fontFamily:'"Inter", ui-sans-serif, system-ui, sans-serif'});const h=`${o.current}-${a?"d":"l"}`,d=await l.render(h,e);if(c)return;const p=n.current;p&&(p.innerHTML=d.svg)}).catch(l=>{c||i(l instanceof Error?l.message:String(l))}),()=>{c=!0}},[e,a]),r?f.jsx("pre",{"data-testid":"detail-panel-mermaid-fallback","data-mermaid-error":"true",title:r,className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs sf:text-foreground sf:last:mb-0",t),children:f.jsx("code",{children:e})}):f.jsx("div",{ref:n,"data-testid":"detail-panel-mermaid","data-mermaid-theme":a?"dark":"light",role:"img","aria-label":"Mermaid diagram",className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/30 sf:px-3 sf:py-2 sf:text-foreground sf:last:mb-0",t)})}function sot({flowId:e,node:t,connector:n,adapter:o,onNameChange:r,onDescriptionChange:i,onDetailChange:a,onIconChange:s,statusReport:c,open:l=!0,onClose:h}){const{studioBaseUrl:d}=tq(),p=(t==null?void 0:t.type)==="text",y=(t==null?void 0:t.type)==="ellipse"||(t==null?void 0:t.type)==="sticky",g=p?null:t,k=g&&"name"in g.data?g.data.name??"":"",x=(g==null?void 0:g.data.description)??"",v=(g==null?void 0:g.data.detail)??"",M=g!==null&&!y,w=g!==null&&(g.type==="rectangle"||g.type==="component"),b=w&&typeof s=="function",C=w&&g&&"icon"in g.data?g.data.icon??null:null,[_,S]=m.useState(()=>rOe()),L=R=>{R.preventDefault(),aOe(_,R.clientX,{onWidth:S,onCommit:iOe})};m.useEffect(()=>{const R=E=>{var $;if(E.key!=="Escape")return;const V=document.activeElement;($=V==null?void 0:V.getAttribute("data-testid"))!=null&&$.endsWith("-editor")||h()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[h]);const j={width:l?_:0,borderLeftWidth:l?"var(--detail-panel-border-left)":0,transition:"width 220ms ease-out, border-left-width 220ms ease-out"},I={width:_,boxShadow:"var(--detail-panel-shadow)"};return f.jsx("aside",{"aria-label":"Inspector","data-testid":"detail-panel","data-state":l?"open":"closed",style:j,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-hidden sf:border-border",children:f.jsxs("div",{style:I,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-y-auto sf:bg-card/94 sf:p-6 sf:backdrop-blur-[14px]",children:[f.jsx("div",{"aria-label":"Resize detail panel",onPointerDown:L,"data-testid":"detail-panel-resize-handle",className:"sf:absolute sf:inset-y-0 sf:left-0 sf:z-10 sf:hidden sf:w-1.5 sf:cursor-col-resize sf:bg-transparent sf:transition-colors sf:hover:bg-border sf:sm:block"}),f.jsxs("button",{type:"button",onClick:h,"aria-label":"Close inspector","data-testid":"detail-panel-close",className:"sf:absolute sf:right-4 sf:top-4 sf:z-10 sf:inline-flex sf:h-7 sf:w-7 sf:items-center sf:justify-center sf:rounded-sm sf:text-foreground/70 sf:opacity-70 sf:transition-opacity sf:hover:opacity-100 sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring sf:focus:ring-offset-2",children:[f.jsx(v0,{className:"sf:h-4 sf:w-4"}),f.jsx("span",{className:"sf:sr-only",children:"Close"})]}),g?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[M?f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:text-foreground",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-2",children:[b&&s?f.jsx(cot,{nodeId:g.id,icon:C,onChange:s}):w&&C?f.jsx("span",{"data-testid":"detail-panel-icon-readonly","aria-hidden":!0,className:"sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:text-foreground/90",children:f.jsx(Qa,{iconId:C,studioBaseUrl:d,className:"sf:h-4 sf:w-4"})}):null,f.jsx("div",{className:"sf:min-w-0 sf:flex-1",children:f.jsx(HD,{nodeId:g.id,value:k,placeholder:"Name",multiline:!1,ariaLabel:"Name",testIdBase:"detail-panel-name",onSave:r,textClassName:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95"})})]})}):f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:sr-only",children:g.id}),f.jsxs("p",{className:"sf:sr-only",children:[g.id," · ",g.type]})]}),f.jsxs("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:[c?f.jsx(hot,{report:c}):null,f.jsx(HD,{nodeId:g.id,value:x,placeholder:"Short description shown on the node body",multiline:!0,ariaLabel:"Description",testIdBase:"detail-panel-description",onSave:i,textClassName:"sf:text-[13px] sf:leading-relaxed sf:text-muted-foreground sf:dark:text-zinc-400"}),f.jsx(HD,{nodeId:g.id,value:v,placeholder:"Long-form notes, context, anything…",multiline:!0,ariaLabel:"Detail",testIdBase:"detail-panel-detail",onSave:a,markdown:!0,textClassName:"sf:text-sm sf:leading-relaxed sf:text-foreground"}),g.type==="html"&&e?f.jsx(lot,{adapter:o,nodeId:g.id,htmlPath:"view.html"}):null]})]}):n?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95",children:n.label??"Connector"}),f.jsx("p",{className:"sf:sr-only",children:n.id})]}),f.jsx("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:f.jsx(pot,{connector:n})})]}):f.jsx("div",{"data-testid":"detail-panel-empty",className:"sf:text-muted-foreground sf:text-sm",children:"Select a node to inspect."})]})})}function HD({nodeId:e,value:t,placeholder:n,multiline:o,ariaLabel:r,testIdBase:i,onSave:a,textClassName:s,markdown:c=!1}){const[l,h]=m.useState(!1),d=m.useRef(null),p=m.useRef(!1);m.useEffect(()=>{if(!l)return;const C=d.current;if(!C)return;C.textContent=t,C.focus();const _=window.getSelection();if(_){const S=document.createRange();S.selectNodeContents(C),S.collapse(!1),_.removeAllRanges(),_.addRange(S)}},[l,t]);const y=t==="";if(!a)return f.jsx("div",{"data-testid":i,"aria-label":r,className:ee("sf:w-full sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t});const g=()=>{const C=d.current,_=C?o?C.innerText:C.textContent??"":t;a(e,_),h(!1)},k=()=>{h(!1)},x=C=>{if(C.stopPropagation(),C.nativeEvent.stopPropagation(),C.key==="Escape"){C.preventDefault(),p.current=!0,k();return}if(C.key==="Enter"){if(C.preventDefault(),C.shiftKey||!o){g();return}document.execCommand("insertText",!1,`
8541
+ `))}function c(y,g,k,x){const v=k.enter("tableCell"),M=k.enter("phrasing"),w=k.containerPhrasing(y,{...x,before:i,after:i});return M(),v(),w}function l(y,g){return jtt(y,{align:g,alignDelimiters:o,padding:n,stringLength:r})}function h(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("table");for(;++v<x.length;)M[v]=d(x[v],g,k);return w(),M}function d(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("tableRow");for(;++v<x.length;)M[v]=c(x[v],y,g,k);return w(),M}function p(y,g,k){let x=_ie.inlineCode(y,g,k);return k.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function vnt(){return{exit:{taskListCheckValueChecked:OK,taskListCheckValueUnchecked:OK,paragraph:wnt}}}function xnt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mnt}}}function OK(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wnt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const r=t.children;let i=-1,a;for(;++i<r.length;){const s=r[i];if(s.type==="paragraph"){a=s;break}}a===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Mnt(e,t,n,o){const r=e.children[0],i=typeof e.checked=="boolean"&&r&&r.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(o);i&&s.move(a);let c=_ie.listItem(e,t,n,{...o,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+a}}function bnt(){return[ttt(),Mtt(),Stt(),hnt(),vnt()]}function _nt(e){return{extensions:[ntt(),btt(e),Ltt(),knt(e),xnt()]}}const Cnt={tokenize:Ent,partial:!0},Cie={tokenize:jnt,partial:!0},Sie={tokenize:$nt,partial:!0},Lie={tokenize:Pnt,partial:!0},Snt={tokenize:znt,partial:!0},Nie={name:"wwwAutolink",tokenize:Int,previous:Aie},Iie={name:"protocolAutolink",tokenize:Ant,previous:Eie},Yi={name:"emailAutolink",tokenize:Nnt,previous:jie},yi={};function Lnt(){return{text:yi}}let Ls=48;for(;Ls<123;)yi[Ls]=Yi,Ls++,Ls===58?Ls=65:Ls===91&&(Ls=97);yi[43]=Yi;yi[45]=Yi;yi[46]=Yi;yi[95]=Yi;yi[72]=[Yi,Iie];yi[104]=[Yi,Iie];yi[87]=[Yi,Nie];yi[119]=[Yi,Nie];function Nnt(e,t,n){const o=this;let r,i;return a;function a(d){return!ZO(d)||!jie.call(o,o.previous)||EV(o.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ZO(d)?(e.consume(d),s):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check(Snt,h,l)(d):d===45||d===95||bn(d)?(i=!0,e.consume(d),c):h(d)}function l(d){return e.consume(d),r=!0,c}function h(d){return i&&r&&$n(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Int(e,t,n){const o=this;return r;function r(a){return a!==87&&a!==119||!Aie.call(o,o.previous)||EV(o.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cnt,e.attempt(Cie,e.attempt(Sie,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Ant(e,t,n){const o=this;let r="",i=!1;return a;function a(d){return(d===72||d===104)&&Eie.call(o,o.previous)&&!EV(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if($n(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),i?l:(i=!0,c)):n(d)}function l(d){return d===null||Dz(d)||vt(d)||ou(d)||QR(d)?n(d):e.attempt(Cie,e.attempt(Sie,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ent(e,t,n){let o=0;return r;function r(a){return(a===87||a===119)&&o<3?(o++,e.consume(a),r):a===46&&o===3?(e.consume(a),i):n(a)}function i(a){return a===null?n(a):t(a)}}function jnt(e,t,n){let o,r,i;return a;function a(l){return l===46||l===95?e.check(Lie,c,s)(l):l===null||vt(l)||ou(l)||l!==45&&QR(l)?c(l):(i=!0,e.consume(l),a)}function s(l){return l===95?o=!0:(r=o,o=void 0),e.consume(l),a}function c(l){return r||o||!i?n(l):t(l)}}function $nt(e,t){let n=0,o=0;return r;function r(a){return a===40?(n++,e.consume(a),r):a===41&&o<n?i(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(Lie,t,i)(a):a===null||vt(a)||ou(a)?t(a):(e.consume(a),r)}function i(a){return a===41&&o++,e.consume(a),r}}function Pnt(e,t,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),i):s===93?(e.consume(s),r):s===60||s===null||vt(s)||ou(s)?t(s):n(s)}function r(s){return s===null||s===40||s===91||vt(s)||ou(s)?t(s):o(s)}function i(s){return $n(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),o):$n(s)?(e.consume(s),a):n(s)}}function znt(e,t,n){return o;function o(i){return e.consume(i),r}function r(i){return bn(i)?n(i):t(i)}}function Aie(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vt(e)}function Eie(e){return!$n(e)}function jie(e){return!(e===47||ZO(e))}function ZO(e){return e===43||e===45||e===46||e===95||bn(e)}function EV(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Rnt={tokenize:Bnt,partial:!0};function Tnt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fnt,continuation:{tokenize:qnt},exit:Vnt}},text:{91:{name:"gfmFootnoteCall",tokenize:Ont},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Dnt,resolveTo:Hnt}}}}function Dnt(e,t,n){const o=this;let r=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a;for(;r--;){const c=o.events[r][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!a||!a._balanced)return n(c);const l=cr(o.sliceSerialize({start:a.end,end:o.now()}));return l.codePointAt(0)!==94||!i.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Hnt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...s),e}function Ont(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(i>999||d===93&&!a||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(cr(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(a=!0),i++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),i++,l):l(d)}}function Fnt(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,a=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(g)}function h(g){if(a>999||g===93&&!s||g===null||g===91||vt(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return i=cr(o.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vt(g)||(s=!0),a++,e.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(e.consume(g),a++,h):h(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),r.includes(i)||r.push(i),it(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function qnt(e,t,n){return e.check(np,t,e.attempt(Rnt,t,n))}function Vnt(e){e.exit("gfmFootnoteDefinition")}function Bnt(e,t,n){const o=this;return it(e,r,"gfmFootnoteDefinitionIndent",5);function r(i){const a=o.events[o.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(i):n(i)}}function Unt(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:r};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function r(a,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let l=c;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[c][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[c][1].end)},d={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[c][1].start)},p=[["enter",h,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",d,s]],y=s.parser.constructs.insideSpan.null;y&&vo(p,p.length,0,JR(y,a.slice(l+1,c),s)),vo(p,p.length,0,[["exit",d,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",h,s]]),vo(a,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function i(a,s,c){const l=this.previous,h=this.events;let d=0;return p;function p(g){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(g):(a.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const k=oh(l);if(g===126)return d>1?c(g):(a.consume(g),d++,y);if(d<2&&!n)return c(g);const x=a.exit("strikethroughSequenceTemporary"),v=oh(g);return x._open=!v||v===2&&!!k,x._close=!k||k===2&&!!v,s(g)}}}class Wnt{constructor(){this.map=[]}add(t,n,o){Gnt(this,t,n,o)}consume(t){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push(t.slice()),t.length=0;let r=o.pop();for(;r;){for(const i of r)t.push(i);r=o.pop()}this.map.length=0}}function Gnt(e,t,n,o){let r=0;if(!(n===0&&o.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...o);return}r+=1}e.map.push([t,n,o])}}function Knt(e,t){let n=!1;const o=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=o.length-1;o[i]=o[i]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function Xnt(){return{flow:{null:{name:"table",tokenize:Znt,resolveAll:Ynt}}}}function Znt(e,t,n){const o=this;let r=0,i=0,a;return s;function s(I){let R=o.events.length-1;for(;R>-1;){const $=o.events[R][1].type;if($==="lineEnding"||$==="linePrefix")R--;else break}const E=R>-1?o.events[R][1].type:null,V=E==="tableHead"||E==="tableRow"?_:c;return V===_&&o.parser.lazy[o.now().line]?n(I):V(I)}function c(I){return e.enter("tableHead"),e.enter("tableRow"),l(I)}function l(I){return I===124||(a=!0,i+=1),h(I)}function h(I){return I===null?n(I):$e(I)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),y):n(I):Qe(I)?it(e,h,"whitespace")(I):(i+=1,a&&(a=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,h):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),h(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function y(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(I):(e.enter("tableDelimiterRow"),a=!1,Qe(I)?it(e,g,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?x(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):C(I)}function k(I){return Qe(I)?it(e,x,"whitespace")(I):x(I)}function x(I){return I===58?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(i+=1,v(I)):I===null||$e(I)?b(I):C(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),M(I)):C(I)}function M(I){return I===45?(e.consume(I),M):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return Qe(I)?it(e,b,"whitespace")(I):b(I)}function b(I){return I===124?g(I):I===null||$e(I)?!a||r!==i?C(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):C(I)}function C(I){return n(I)}function _(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||$e(I)?(e.exit("tableRow"),t(I)):Qe(I)?it(e,S,"whitespace")(I):(e.enter("data"),L(I))}function L(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?j:L)}function j(I){return I===92||I===124?(e.consume(I),L):L(I)}}function Ynt(e,t){let n=-1,o=!0,r=0,i=[0,0,0,0],a=[0,0,0,0],s=!1,c=0,l,h,d;const p=new Wnt;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(FK(p,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(o=!0,d=void 0,i=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",h,t]])),r=g.type==="tableDelimiterRow"?2:h?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(o=!1,a[2]===0&&(i[1]!==0&&(a[0]=a[1],d=uy(p,t,i,r,void 0,d),i=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(o?o=!1:(i[1]!==0&&(a[0]=a[1],d=uy(p,t,i,r,void 0,d)),i=a,a=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,i[1]!==0?(a[0]=a[1],d=uy(p,t,i,r,n,d)):a[1]!==0&&(d=uy(p,t,a,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&FK(p,t,c,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Knt(t.events,n))}return e}function uy(e,t,n,o,r,i){const a=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Uu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=Uu(t.events,n[1]);if(i={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const l=Uu(t.events,n[2]),h=Uu(t.events,n[3]),d={type:s,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),o!==2){const p=t.events[n[2]],y=t.events[n[3]];if(p[1].end=Object.assign({},y[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(i.end=Object.assign({},Uu(t.events,r)),e.add(r,0,[["exit",i,t]]),i=void 0),i}function FK(e,t,n,o,r){const i=[],a=Uu(t.events,n);r&&(r.end=Object.assign({},a),i.push(["exit",r,t])),o.end=Object.assign({},a),i.push(["exit",o,t]),e.add(n+1,0,i)}function Uu(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const Qnt={name:"tasklistCheck",tokenize:eot};function Jnt(){return{text:{91:Qnt}}}function eot(e,t,n){const o=this;return r;function r(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return vt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Qe(c)?e.check({tokenize:tot},t,n)(c):n(c)}}function tot(e,t,n){return it(e,o,"whitespace");function o(r){return r===null?n(r):t(r)}}function not(e){return qre([Lnt(),Tnt(),Unt(e),Xnt(),Jnt()])}const oot={};function rot(e){const t=this,n=e||oot,o=t.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(not(n)),i.push(bnt()),a.push(_nt(n))}let hy=null,iot=0;function aot(){return hy||(hy=sh(()=>import("./mermaid.core-BQGwXUyN.js").then(e=>e.ak),__vite__mapDeps([8,9,1])).then(e=>{const t=e;return t.default??t}),hy)}function qK(){var e;return typeof document>"u"?!1:document.documentElement.classList.contains("dark")||(e=document.body)!=null&&e.classList.contains("dark")?!0:!!document.querySelector(".dark")}function VK({code:e,className:t}){const n=m.useRef(null),o=m.useRef(`seeflow-mermaid-${++iot}`),[r,i]=m.useState(null),[a,s]=m.useState(()=>qK());return m.useEffect(()=>{if(typeof document>"u")return;const c=()=>s(qK()),l=new MutationObserver(c);return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.body&&l.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[]),m.useEffect(()=>{let c=!1;return i(null),aot().then(async l=>{l.initialize({startOnLoad:!1,theme:a?"dark":"default",securityLevel:"strict",fontFamily:'"Inter", ui-sans-serif, system-ui, sans-serif'});const h=`${o.current}-${a?"d":"l"}`,d=await l.render(h,e);if(c)return;const p=n.current;p&&(p.innerHTML=d.svg)}).catch(l=>{c||i(l instanceof Error?l.message:String(l))}),()=>{c=!0}},[e,a]),r?f.jsx("pre",{"data-testid":"detail-panel-mermaid-fallback","data-mermaid-error":"true",title:r,className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs sf:text-foreground sf:last:mb-0",t),children:f.jsx("code",{children:e})}):f.jsx("div",{ref:n,"data-testid":"detail-panel-mermaid","data-mermaid-theme":a?"dark":"light",role:"img","aria-label":"Mermaid diagram",className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/30 sf:px-3 sf:py-2 sf:text-foreground sf:last:mb-0",t)})}function sot({flowId:e,node:t,connector:n,adapter:o,onNameChange:r,onDescriptionChange:i,onDetailChange:a,onIconChange:s,statusReport:c,open:l=!0,onClose:h}){const{studioBaseUrl:d}=tq(),p=(t==null?void 0:t.type)==="text",y=(t==null?void 0:t.type)==="ellipse"||(t==null?void 0:t.type)==="sticky",g=p?null:t,k=g&&"name"in g.data?g.data.name??"":"",x=(g==null?void 0:g.data.description)??"",v=(g==null?void 0:g.data.detail)??"",M=g!==null&&!y,w=g!==null&&(g.type==="rectangle"||g.type==="component"),b=w&&typeof s=="function",C=w&&g&&"icon"in g.data?g.data.icon??null:null,[_,S]=m.useState(()=>rOe()),L=R=>{R.preventDefault(),aOe(_,R.clientX,{onWidth:S,onCommit:iOe})};m.useEffect(()=>{const R=E=>{var $;if(E.key!=="Escape")return;const V=document.activeElement;($=V==null?void 0:V.getAttribute("data-testid"))!=null&&$.endsWith("-editor")||h()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[h]);const j={width:l?_:0,borderLeftWidth:l?"var(--detail-panel-border-left)":0,transition:"width 220ms ease-out, border-left-width 220ms ease-out"},I={width:_,boxShadow:"var(--detail-panel-shadow)"};return f.jsx("aside",{"aria-label":"Inspector","data-testid":"detail-panel","data-state":l?"open":"closed",style:j,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-hidden sf:border-border",children:f.jsxs("div",{style:I,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-y-auto sf:bg-card/94 sf:p-6 sf:backdrop-blur-[14px]",children:[f.jsx("div",{"aria-label":"Resize detail panel",onPointerDown:L,"data-testid":"detail-panel-resize-handle",className:"sf:absolute sf:inset-y-0 sf:left-0 sf:z-10 sf:hidden sf:w-1.5 sf:cursor-col-resize sf:bg-transparent sf:transition-colors sf:hover:bg-border sf:sm:block"}),f.jsxs("button",{type:"button",onClick:h,"aria-label":"Close inspector","data-testid":"detail-panel-close",className:"sf:absolute sf:right-4 sf:top-4 sf:z-10 sf:inline-flex sf:h-7 sf:w-7 sf:items-center sf:justify-center sf:rounded-sm sf:text-foreground/70 sf:opacity-70 sf:transition-opacity sf:hover:opacity-100 sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring sf:focus:ring-offset-2",children:[f.jsx(v0,{className:"sf:h-4 sf:w-4"}),f.jsx("span",{className:"sf:sr-only",children:"Close"})]}),g?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[M?f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:text-foreground",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-2",children:[b&&s?f.jsx(cot,{nodeId:g.id,icon:C,onChange:s}):w&&C?f.jsx("span",{"data-testid":"detail-panel-icon-readonly","aria-hidden":!0,className:"sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:text-foreground/90",children:f.jsx(Qa,{iconId:C,studioBaseUrl:d,className:"sf:h-4 sf:w-4"})}):null,f.jsx("div",{className:"sf:min-w-0 sf:flex-1",children:f.jsx(HD,{nodeId:g.id,value:k,placeholder:"Name",multiline:!1,ariaLabel:"Name",testIdBase:"detail-panel-name",onSave:r,textClassName:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95"})})]})}):f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:sr-only",children:g.id}),f.jsxs("p",{className:"sf:sr-only",children:[g.id," · ",g.type]})]}),f.jsxs("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:[c?f.jsx(hot,{report:c}):null,f.jsx(HD,{nodeId:g.id,value:x,placeholder:"Short description shown on the node body",multiline:!0,ariaLabel:"Description",testIdBase:"detail-panel-description",onSave:i,textClassName:"sf:text-[13px] sf:leading-relaxed sf:text-muted-foreground sf:dark:text-zinc-400"}),f.jsx(HD,{nodeId:g.id,value:v,placeholder:"Long-form notes, context, anything…",multiline:!0,ariaLabel:"Detail",testIdBase:"detail-panel-detail",onSave:a,markdown:!0,textClassName:"sf:text-sm sf:leading-relaxed sf:text-foreground"}),g.type==="html"&&e?f.jsx(lot,{adapter:o,nodeId:g.id,htmlPath:"view.html"}):null]})]}):n?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95",children:n.label??"Connector"}),f.jsx("p",{className:"sf:sr-only",children:n.id})]}),f.jsx("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:f.jsx(pot,{connector:n})})]}):f.jsx("div",{"data-testid":"detail-panel-empty",className:"sf:text-muted-foreground sf:text-sm",children:"Select a node to inspect."})]})})}function HD({nodeId:e,value:t,placeholder:n,multiline:o,ariaLabel:r,testIdBase:i,onSave:a,textClassName:s,markdown:c=!1}){const[l,h]=m.useState(!1),d=m.useRef(null),p=m.useRef(!1);m.useEffect(()=>{if(!l)return;const C=d.current;if(!C)return;C.textContent=t,C.focus();const _=window.getSelection();if(_){const S=document.createRange();S.selectNodeContents(C),S.collapse(!1),_.removeAllRanges(),_.addRange(S)}},[l,t]);const y=t==="";if(!a)return f.jsx("div",{"data-testid":i,"aria-label":r,className:ee("sf:w-full sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t});const g=()=>{const C=d.current,_=C?o?C.innerText:C.textContent??"":t;a(e,_),h(!1)},k=()=>{h(!1)},x=C=>{if(C.stopPropagation(),C.nativeEvent.stopPropagation(),C.key==="Escape"){C.preventDefault(),p.current=!0,k();return}if(C.key==="Enter"){if(C.preventDefault(),C.shiftKey||!o){g();return}document.execCommand("insertText",!1,`
8542
8542
  `)}},v=C=>{C.preventDefault();const _=C.clipboardData.getData("text/plain");document.execCommand("insertText",!1,_)},M=C=>{},w=()=>{if(p.current){p.current=!1;return}g()},b=()=>{l||h(!0)};return f.jsx("div",{className:"relative","data-testid":i,"data-editing":l?"true":"false",children:l?f.jsx("div",{ref:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,spellCheck:!1,tabIndex:0,onKeyDown:x,onPaste:v,onInput:M,onBlur:w,"data-testid":`${i}-editor`,className:ee("sf:block sf:w-full sf:whitespace-pre-wrap sf:wrap-break-word sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm sf:outline-hidden",s),role:"textbox","aria-multiline":o?"true":"false","aria-label":r}):f.jsx("button",{type:"button",onClick:b,"aria-label":`Edit ${r.toLowerCase()}`,className:ee("sf:block sf:w-full sf:cursor-text sf:rounded-md sf:px-2 sf:py-1.5 sf:text-left sf:text-sm sf:transition-colors sf:hover:bg-muted/50",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t})})}function cot({nodeId:e,icon:t,onChange:n}){const[o,r]=m.useState(!1),{studioBaseUrl:i}=tq();return f.jsx(Uq,{open:o,onOpenChange:r,onPick:a=>{n(e,a),r(!1)},anchor:f.jsx("button",{type:"button","data-testid":"detail-panel-icon-trigger","aria-label":t?"Change icon":"Add icon","aria-pressed":o,className:ee("sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:rounded-md sf:text-foreground sf:transition-colors",t?"sf:hover:bg-muted":"sf:border sf:border-dashed sf:border-muted-foreground/40 sf:text-muted-foreground/60 sf:hover:border-muted-foreground sf:hover:text-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:t?f.jsx(Qa,{iconId:t,studioBaseUrl:i,className:"sf:h-4 sf:w-4"}):f.jsx(x2,{className:"sf:h-4 sf:w-4","aria-hidden":!0})})})}function lot({adapter:e,nodeId:t,htmlPath:n}){const[o,r]=m.useState({kind:"idle"}),i=typeof(e==null?void 0:e.openFile)=="function",a=typeof(e==null?void 0:e.revealFile)=="function",s=`nodes/${t}/${n}`,c=async l=>{var h,d;r({kind:"pending"});try{l==="open"?await((h=e==null?void 0:e.openFile)==null?void 0:h.call(e,s)):await((d=e==null?void 0:e.revealFile)==null?void 0:d.call(e,s)),r({kind:"idle"})}catch(p){r({kind:"error",message:p instanceof Error?p.message:String(p)})}};return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2 sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs","data-testid":"detail-panel-html-node",children:[f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:font-mono sf:text-[11px] sf:text-muted-foreground sf:uppercase sf:tracking-widest",children:"Path"}),f.jsx("code",{"data-testid":"detail-panel-html-path",className:"sf:block sf:break-all sf:rounded sf:bg-muted/40 sf:px-2 sf:py-1 sf:font-mono sf:text-[11px]",children:n})]}),i||a?f.jsxs("div",{className:"sf:flex sf:flex-wrap sf:items-center sf:gap-2",children:[i?f.jsxs(rt,{type:"button",size:"sm",variant:"outline",className:"sf:h-7 sf:gap-1.5 sf:px-2",onClick:()=>{c("open")},disabled:o.kind==="pending","data-testid":"detail-panel-html-open","aria-label":"Open in editor",children:[f.jsx(L2,{className:"sf:h-3.5 sf:w-3.5"}),"Open in editor"]}):null,a?f.jsxs(rt,{type:"button",size:"sm",variant:"outline",className:"sf:h-7 sf:gap-1.5 sf:px-2",onClick:()=>{c("reveal")},disabled:o.kind==="pending","data-testid":"detail-panel-html-reveal","aria-label":"Reveal in Finder/Explorer",children:[f.jsx(g2,{className:"sf:h-3.5 sf:w-3.5"}),"Reveal"]}):null]}):null,o.kind==="error"?f.jsx("div",{"data-testid":"detail-panel-html-status","data-status":o.kind,className:ee("sf:text-[11px] sf:text-destructive"),children:o.message??""}):null]})}function dot(e,t){const n=Math.max(0,t-e);if(n<1e3)return"just now";const o=Math.floor(n/1e3);if(o<60)return`${o}s ago`;const r=Math.floor(o/60);if(r<60)return`${r}m ago`;const i=Math.floor(r/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function uot(e){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function hot({report:e,now:t=Date.now()}){const n=e.data?Object.entries(e.data):[];return f.jsxs("section",{className:"sf:flex sf:flex-col sf:gap-2 sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs","data-testid":"detail-panel-status","data-state":e.state,children:[f.jsxs("div",{className:"sf:flex sf:items-center sf:justify-between sf:gap-2",children:[f.jsx(Kq,{state:e.state,summary:e.summary,"data-testid":"detail-panel-status-badge"}),f.jsx("span",{className:"sf:shrink-0 sf:text-[10px] sf:text-muted-foreground","data-testid":"detail-panel-status-relative-time",children:`Last updated: ${dot(e.ts,t)}`})]}),e.detail?f.jsx("div",{"data-testid":"detail-panel-status-detail",className:"sf:whitespace-pre-wrap sf:wrap-break-word sf:rounded sf:bg-muted/40 sf:px-2 sf:py-1 sf:text-[11px] sf:text-foreground",children:e.detail}):null,n.length>0?f.jsx("dl",{"data-testid":"detail-panel-status-data",className:"sf:grid sf:grid-cols-[auto_1fr] sf:gap-x-3 sf:gap-y-1 sf:text-[11px]",children:n.map(([o,r])=>f.jsxs("div",{className:"contents","data-testid":"detail-panel-status-data-row",children:[f.jsx("dt",{className:"sf:truncate sf:font-medium sf:text-muted-foreground",children:o}),f.jsx("dd",{className:"sf:break-all sf:font-mono sf:text-foreground",children:uot(r)})]},o))}):null]})}function $ie(e){return typeof e=="string"?e.replace(/\n$/,""):Array.isArray(e)?e.map(t=>typeof t=="string"?t:"").join("").replace(/\n$/,""):String(e??"").replace(/\n$/,"")}function fot(e){if(!m.isValidElement(e))return null;const t=e.props;return!t||typeof t.className!="string"||!t.className.includes("language-mermaid")?null:$ie(t.children)}function BK({value:e}){return f.jsx(Uet,{remarkPlugins:[rot],components:{h1:({children:t})=>f.jsx("h1",{className:"sf:mb-1 sf:text-base sf:font-bold sf:leading-snug",children:t}),h2:({children:t})=>f.jsx("h2",{className:"sf:mb-1 sf:text-sm sf:font-semibold sf:leading-snug",children:t}),h3:({children:t})=>f.jsx("h3",{className:"sf:mb-0.5 sf:text-sm sf:font-medium sf:leading-snug",children:t}),p:({children:t})=>f.jsx("p",{className:"sf:mb-2 sf:last:mb-0 sf:leading-relaxed",children:t}),ul:({children:t})=>f.jsx("ul",{className:"sf:mb-2 sf:list-disc sf:pl-4 sf:last:mb-0",children:t}),ol:({children:t})=>f.jsx("ol",{className:"sf:mb-2 sf:list-decimal sf:pl-4 sf:last:mb-0",children:t}),li:({children:t})=>f.jsx("li",{className:"mb-0.5",children:t}),code:({children:t,className:n})=>typeof n=="string"&&n.includes("language-mermaid")?f.jsx(VK,{code:$ie(t)}):(n==null?void 0:n.includes("language-"))?f.jsx("code",{className:"sf:block sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs",children:t}):f.jsx("code",{className:"sf:rounded sf:bg-muted/60 sf:px-1 sf:py-0.5 sf:font-mono sf:text-xs",children:t}),pre:({children:t})=>{const n=fot(t);return n!==null?f.jsx(VK,{code:n}):f.jsx("pre",{className:"sf:mb-2 sf:last:mb-0",children:t})},blockquote:({children:t})=>f.jsx("blockquote",{className:"sf:mb-2 sf:border-l-2 sf:border-muted-foreground/30 sf:pl-3 sf:italic sf:text-muted-foreground sf:last:mb-0",children:t}),a:({href:t,children:n})=>f.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"sf:text-primary sf:underline sf:underline-offset-2",children:n}),strong:({children:t})=>f.jsx("strong",{className:"font-semibold",children:t}),em:({children:t})=>f.jsx("em",{className:"italic",children:t}),hr:()=>f.jsx("hr",{className:"sf:my-2 sf:border-border"}),table:({children:t})=>f.jsx("div",{className:"sf:mb-2 sf:overflow-x-auto sf:last:mb-0",children:f.jsx("table",{className:"sf:w-full sf:border-collapse sf:text-xs",children:t})}),th:({children:t})=>f.jsx("th",{className:"sf:border sf:border-border sf:bg-muted/40 sf:px-2 sf:py-1 sf:text-left sf:font-medium",children:t}),td:({children:t})=>f.jsx("td",{className:"sf:border sf:border-border sf:px-2 sf:py-1",children:t})},children:e})}function pot({connector:e}){return f.jsx("div",{className:"sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs",children:f.jsxs("dl",{className:"divide-y",children:[f.jsx(Ii,{label:"Source",value:e.source}),f.jsx(Ii,{label:"Target",value:e.target}),e.label?f.jsx(Ii,{label:"Label",value:e.label}):null,e.style?f.jsx(Ii,{label:"Style",value:e.style}):null,e.color?f.jsx(Ii,{label:"Color",value:e.color}):null,e.direction?f.jsx(Ii,{label:"Direction",value:e.direction}):null,e.url?f.jsx(Ii,{label:"URL",value:`${e.method??"GET"} ${e.url}`}):null,e.eventName?f.jsx(Ii,{label:"Event",value:e.eventName}):null,e.queueName?f.jsx(Ii,{label:"Queue",value:e.queueName}):null]})})}function Ii({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:items-start sf:gap-3 sf:py-2 sf:first:pt-0 sf:last:pb-0",children:[f.jsx("dt",{className:"sf:w-20 sf:shrink-0 sf:font-medium sf:text-muted-foreground",children:e}),f.jsx("dd",{className:"sf:flex-1 sf:break-all sf:font-mono",children:t})]})}const yot="https://seeflow.dev/embed",mot=(e,t)=>{const n=`${yot}/${encodeURIComponent(e)}`;return t?`${n}?theme=${t}`:n},got=e=>{var t,n;return(n=(t=e==null?void 0:e.documentElement)==null?void 0:t.classList)!=null&&n.contains("dark")?"dark":"light"},kot=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;"),vot=e=>[`<iframe src="${kot(e)}"`,' width="100%"',' height="600"',' style="border:0"',' allow="fullscreen"',' loading="lazy"></iframe>'].join(`
8543
8543
  `),xot="Embed this canvas",wot="Paste this iframe into any page to embed the canvas.",Mot="Copy snippet",bot="Copied!",_ot="Press ⌘C to copy",Cot="Close",Sot="Theme",Lot=1500,Not=[{value:"match",label:"Match my theme"},{value:"light",label:"Light"},{value:"dark",label:"Dark"}],Iot=e=>e==="light"?"light":e==="dark"?"dark":got(typeof document<"u"?document:null);function Aot({open:e,onOpenChange:t,projectId:n}){const[o,r]=m.useState("idle"),[i,a]=m.useState("match"),s=m.useRef(null),c=m.useMemo(()=>vot(mot(n,Iot(i))),[n,i]),l=m.useCallback(async()=>{try{await navigator.clipboard.writeText(c),r("copied"),setTimeout(()=>r("idle"),Lot)}catch{r("fallback");const h=s.current;h&&(h.focus(),h.select())}},[c]);return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(si,{"data-testid":"embed-dialog-content",children:[f.jsxs(ci,{children:[f.jsx(li,{children:xot}),f.jsx(di,{children:wot})]}),f.jsxs("fieldset",{className:"sf:flex sf:flex-col sf:gap-2 sf:border-0 sf:p-0",children:[f.jsx("legend",{id:"embed-dialog-theme-label",className:"sf:mb-2 sf:text-xs sf:font-medium sf:text-foreground",children:Sot}),f.jsx("div",{"data-testid":"embed-dialog-theme-group",className:"sf:inline-flex sf:self-start sf:rounded-md sf:border sf:border-input sf:bg-background sf:p-0.5",children:Not.map(h=>{const d=i===h.value;return f.jsx("button",{type:"button","aria-pressed":d,"aria-label":h.label,"data-testid":`embed-dialog-theme-${h.value}`,"data-active":d,onClick:()=>a(h.value),className:ee("sf:rounded sf:px-3 sf:py-1 sf:text-xs sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring",d?"sf:bg-secondary sf:text-secondary-foreground sf:shadow-sm":"sf:text-muted-foreground sf:hover:bg-accent sf:hover:text-accent-foreground"),children:h.label},h.value)})})]}),f.jsx("textarea",{ref:s,"data-testid":"embed-dialog-snippet",readOnly:!0,rows:7,value:c,spellCheck:!1,onFocus:h=>h.currentTarget.select(),className:"sf:w-full sf:resize-none sf:rounded-md sf:border sf:border-border sf:bg-background sf:p-3 sf:font-mono sf:text-xs sf:leading-relaxed sf:text-foreground sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring"}),o==="fallback"?f.jsx("p",{"data-testid":"embed-dialog-fallback-hint",className:"sf:text-xs sf:text-muted-foreground",children:_ot}):null,f.jsxs(fr,{children:[f.jsx(rt,{variant:"outline","data-testid":"embed-dialog-close",onClick:()=>t(!1),children:Cot}),f.jsx(rt,{"data-testid":"embed-dialog-copy",onClick:l,children:o==="copied"?bot:Mot})]})]})})}const UK="Share / download",Eot="Download PDF",jot="Download PNG",$ot="Embed",Pot="Export to seeflow.dev";function Pie({mode:e,projectId:t,enableEmbed:n,onDownloadPdf:o,onDownloadPng:r,onExportToCloud:i,embedOpen:a,onEmbedOpenChange:s}){const[c,l]=m.useState(!1),[h,d]=m.useState(!1),[p,y]=m.useState(!1),g=a!==void 0,k=g?a:p,x=m.useCallback(S=>{g||y(S),s==null||s(S)},[g,s]),v=m.useCallback(()=>{!o||c||(l(!0),Promise.resolve(o()).finally(()=>l(!1)))},[o,c]),M=m.useCallback(()=>{!r||h||(d(!0),Promise.resolve(r()).finally(()=>d(!1)))},[r,h]),w=!!o,b=!!r,C=n&&typeof t=="string"&&t.length>0,_=e==="edit"&&!!i;return!w&&!b&&!C&&!_?null:f.jsxs(f.Fragment,{children:[f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":"share-menu-trigger","aria-label":UK,title:UK,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-border sf:bg-background/95 sf:text-muted-foreground sf:shadow-md sf:backdrop-blur-sm sf:transition-colors","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring"),children:f.jsx($2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsxs(GR,{align:"end","data-testid":"share-menu-content",onCloseAutoFocus:S=>{S.preventDefault()},children:[w?f.jsxs(za,{"data-testid":"share-menu-pdf",disabled:c,onSelect:S=>{S.preventDefault(),v()},children:[c?f.jsx(Wn,{className:"sf:h-4 sf:w-4 sf:animate-spin","aria-hidden":"true"}):f.jsx(y2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:Eot})]}):null,b?f.jsxs(za,{"data-testid":"share-menu-png",disabled:h,onSelect:S=>{S.preventDefault(),M()},children:[h?f.jsx(Wn,{className:"sf:h-4 sf:w-4 sf:animate-spin","aria-hidden":"true"}):f.jsx(w2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:jot})]}):null,C?f.jsxs(za,{"data-testid":"share-menu-embed",onSelect:S=>{S.preventDefault(),x(!0)},children:[f.jsx(x0,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:$ot})]}):null,_?f.jsxs(za,{"data-testid":"share-menu-export-cloud",onSelect:()=>{i==null||i()},children:[f.jsx(T2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:Pot})]}):null]})]}),C&&t?f.jsx(Aot,{open:k,onOpenChange:x,projectId:t}):null]})}const zot=8;function Rot(e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,r=Number.NEGATIVE_INFINITY,i=!1;for(const a of e){const s=a.data.width,c=a.data.height;s===void 0||c===void 0||(i=!0,a.position.x<t&&(t=a.position.x),a.position.y<n&&(n=a.position.y),a.position.x+s>o&&(o=a.position.x+s),a.position.y+c>r&&(r=a.position.y+c))}return i?{x:t,y:n,width:o-t,height:r-n}:null}function Tot(e){return e.length>=2}function Dot({selectedNodes:e,onMultiResize:t,paddingPx:n=zot}){_R();const[o,r]=m.useState(null),[i,a]=m.useState(null);if(m.useRef(!1),m.useRef(null),!Tot(e))return null;const s=Rot(e);if(!s)return null;const c=i??s;return c.x-n,c.y-n,c.width+n*2,c.height+n*2,null}const WK=22,GK=11,KK=3,XK=2,OD=8,FD=1,ZK=["none","white","slate","gray","red","orange","amber","yellow","lime","green","teal","cyan","sky","blue","indigo","violet","fuchsia","pink"],fy=[{value:"solid",icon:Tz,label:"Solid",testId:"style-tab-border-style-solid"},{value:"dashed",icon:ure,label:"Dashed",testId:"style-tab-border-style-dashed"},{value:"dotted",icon:hre,label:"Dotted",testId:"style-tab-border-style-dotted"}],YK=[{value:"solid",icon:Tz,label:"Solid",testId:"style-tab-edge-style-solid"},{value:"dashed",icon:ure,label:"Dashed",testId:"style-tab-edge-style-dashed"},{value:"dotted",icon:hre,label:"Dotted",testId:"style-tab-edge-style-dotted"}],Hot=[{value:"curve",icon:UXe,label:"Curve",testId:"style-tab-edge-path-curve"},{value:"step",icon:WXe,label:"Zigzag",testId:"style-tab-edge-path-step"}],QK=[{value:"arrow",icon:y0,label:"Arrow",testId:"style-tab-head-shape-arrow"},{value:"one",icon:GXe,label:"One",testId:"style-tab-head-shape-one"},{value:"many",icon:KXe,label:"Many",testId:"style-tab-head-shape-many"},{value:"optional-many",icon:XXe,label:"Optional many",testId:"style-tab-head-shape-optional-many"},{value:"diamond",icon:g0,label:"Diamond",testId:"style-tab-head-shape-diamond"},{value:"circle",icon:m0,label:"Circle",testId:"style-tab-head-shape-circle"}],Oot="center",Fot=[{value:"left",icon:Zo,label:"Left",testId:"style-tab-text-align-left"},{value:"center",icon:Sa,label:"Center",testId:"style-tab-text-align-center"},{value:"right",icon:La,label:"Right",testId:"style-tab-text-align-right"}],qot=[{value:"none",icon:b2,label:"None",testId:"style-tab-direction-none"},{value:"backward",icon:C2,label:"Backward",testId:"style-tab-direction-backward"},{value:"forward",icon:y0,label:"Forward",testId:"style-tab-direction-forward"},{value:"both",icon:d2,label:"Both",testId:"style-tab-direction-both"}];function Vot({nodes:e,connectors:t,onStyleNode:n,onStyleNodePreview:o,onStyleNodes:r,onStyleNodesPreview:i,onStyleConnector:a,onStyleConnectorPreview:s,onRequestIconReplace:c}){const l=e.length>0,h=t.length>0;if(!l&&!h)return null;const d=l&&!h,p=!l&&h,y=e[0],g=t[0],k=e.filter(H=>H.type!=="icon"),x=k[0],v=d&&e.every(H=>H.type==="icon"),M=v?e.find(H=>H.type==="icon"):void 0,w=d&&e.every(H=>H.type==="image"),b=d&&(y==null?void 0:y.type)==="text",C=(p?g==null?void 0:g.color:b?x==null?void 0:x.data.borderColor:x==null?void 0:x.data.backgroundColor)??"default",_=(x==null?void 0:x.data.borderStyle)??"solid",S=(g==null?void 0:g.style)??"solid",L=(g==null?void 0:g.direction)??"forward",j=(g==null?void 0:g.path)??"curve",I=(g==null?void 0:g.headShape)??"arrow",R=(g==null?void 0:g.tailShape)??(g==null?void 0:g.headShape)??"arrow",E=L==="forward"||L==="both",V=L==="backward"||L==="both",$=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{borderColor:H,backgroundColor:H});else for(const Q of e)n(Q.id,{borderColor:H,backgroundColor:H});for(const Q of t)a(Q.id,{color:H})},T=H=>{for(const Q of e)n(Q.id,{borderStyle:H});for(const Q of t)a(Q.id,{style:H})},D=H=>{for(const Q of e)n(Q.id,{borderSize:H});for(const Q of t)a(Q.id,{borderSize:H})},F=H=>{for(const Q of e)o==null||o(Q.id,{borderSize:H});for(const Q of t)s==null||s(Q.id,{borderSize:H})},z=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{fontSize:H});else for(const Q of e)n(Q.id,{fontSize:H})},A=H=>{if(e.length>1&&i)i(e.map(Q=>Q.id),{fontSize:H});else for(const Q of e)o==null||o(Q.id,{fontSize:H})},N=k.length>1&&new Set(k.map(H=>H.data.fontSize??WK)).size>1,W=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{textAlign:H});else for(const Q of e)n(Q.id,{textAlign:H})},O=(x==null?void 0:x.data.textAlign)??Oot,P=H=>{for(const Q of t)a(Q.id,{fontSize:H})},Y=H=>{for(const Q of t)s==null||s(Q.id,{fontSize:H})},Z=t.length>1&&new Set(t.map(H=>H.fontSize??GK)).size>1,te=H=>{for(const Q of e)n(Q.id,{cornerRadius:H})},ae=H=>{for(const Q of e)o==null||o(Q.id,{cornerRadius:H})},oe=k.length>1&&new Set(k.map(H=>H.data.cornerRadius??OD)).size>1,re=H=>{for(const Q of e)n(Q.id,{shadow:H})},se=H=>{for(const Q of e)o==null||o(Q.id,{shadow:H})},ve=k.length>1&&new Set(k.map(H=>H.data.shadow??FD)).size>1,ke=H=>{for(const Q of t)a(Q.id,{path:H})},ge=H=>{for(const Q of t)a(Q.id,{direction:H})},Pe=H=>{for(const Q of t)a(Q.id,{headShape:H})},Be=H=>{for(const Q of t)a(Q.id,{tailShape:H})},De=H=>{for(const Q of e)n(Q.id,{color:H})},pe=(M==null?void 0:M.data.color)??"default",me=p?(g==null?void 0:g.borderSize)??XK:(x==null?void 0:x.data.borderSize)??KK,Ie=p?XK:KK,Ue=p?"edge":"border",ut=p?"Connector color":"Color",et=p?"connector color":"color",le="style-tab-color-trigger",rn="style-tab-color";if(v){const H=!!c&&e.length===1&&!!M,Q=()=>{M&&c&&c(M.id)};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Uot,{testId:"style-strip-icon-color",tooltip:"Icon color",ariaLabel:"icon color",activeToken:pe,previewKind:"edge",tokenTestIdPrefix:"style-tab-icon-color",innerTestId:"style-tab-icon-color-trigger",allowNone:!1,onSelect:De}),H?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":"style-strip-change-icon","aria-label":"change icon",title:"Change icon",onClick:Q,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:f.jsx(M0,{className:"sf:h-4 sf:w-4"})})}),f.jsx(fu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:"Change icon"})]}):null]})})}if(w){const H=e[0],Q=(H==null?void 0:H.data.borderColor)??"default",be=(H==null?void 0:H.data.borderStyle)??"solid",Ee=(H==null?void 0:H.data.borderWidth)??1,wt=pt=>{for(const dt of e)n(dt.id,{borderColor:pt})},gn=pt=>{for(const dt of e)n(dt.id,{borderStyle:pt})},an=pt=>{for(const dt of e)n(dt.id,{borderWidth:pt})},Fn=pt=>{for(const dt of e)o==null||o(dt.id,{borderWidth:pt})},qn=pt=>{for(const dt of e)n(dt.id,{cornerRadius:pt})},Me=pt=>{for(const dt of e)o==null||o(dt.id,{cornerRadius:pt})},Fe=pt=>{for(const dt of e)n(dt.id,{shadow:pt})},dn=pt=>{for(const dt of e)o==null||o(dt.id,{shadow:pt})},gr=()=>{const pt=Q==="none";return f.jsx("span",{className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",pt&&"sf:bg-card"),style:pt?void 0:qz(Q),children:pt?f.jsx(Vz,{}):null})};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Ar,{testId:"style-strip-image-border-color-button",tooltip:"Border color",ariaLabel:"image border color",renderIcon:gr,children:f.jsx(YO,{testId:"style-strip-image-border-color",activeToken:Q,previewKind:"border",tokenTestIdPrefix:"style-tab-image-border-color",innerTestId:"style-tab-image-border-color-trigger",ariaLabel:"image border color",onSelect:wt})}),f.jsx(Ar,{testId:"style-strip-image-corner-radius-button",tooltip:"Corners",ariaLabel:"image corners",renderIcon:()=>f.jsx(w0,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-image-corner-radius",children:f.jsx(Ns,{value:H==null?void 0:H.data.cornerRadius,defaultValue:OD,min:0,max:32,suffix:"px",onPreview:Me,onCommit:qn,testId:"style-tab-image-corner-radius-slider"})})}),f.jsx(Ar,{testId:"style-strip-image-shadow-button",tooltip:"Shadow",ariaLabel:"image shadow",renderIcon:()=>f.jsx(Pi,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-image-shadow",children:f.jsx(Ns,{value:H==null?void 0:H.data.shadow,defaultValue:FD,min:0,max:5,onPreview:dn,onCommit:Fe,testId:"style-tab-image-shadow-slider"})})}),f.jsx(Ar,{testId:"style-strip-image-border-style",tooltip:"Border style",ariaLabel:"image border style",renderIcon:()=>{var dt;const pt=((dt=fy.find(Vn=>Vn.value===be))==null?void 0:dt.icon)??Tz;return f.jsx(pt,{className:"sf:h-4 sf:w-4"})},children:f.jsx(ma,{ariaLabel:"Border style",value:be,onChange:gn,options:fy})}),f.jsx(Ar,{testId:"style-strip-image-border-width",tooltip:"Border width",ariaLabel:"image border width",renderIcon:()=>f.jsx("span",{className:"sf:font-mono sf:text-[10px] sf:tabular-nums",children:Ee}),children:f.jsx(Ns,{value:H==null?void 0:H.data.borderWidth,defaultValue:1,min:0,max:8,suffix:"px",onPreview:Fn,onCommit:an,testId:"style-tab-image-border-width-slider"})})]})})}const Gt=!b,J=()=>{const H=C==="none";return f.jsx("span",{className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",H&&"sf:bg-card"),style:H?void 0:qz(C),children:H?f.jsx(Vz,{}):null})};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Ar,{testId:"style-strip-color-button",tooltip:ut,ariaLabel:et,renderIcon:J,children:f.jsx(YO,{testId:"style-strip-color",activeToken:C,previewKind:Ue,tokenTestIdPrefix:rn,innerTestId:le,ariaLabel:et,allowNone:!p,onSelect:$})}),l?f.jsx(Ar,{testId:"style-strip-corner-radius-button",tooltip:"Corners",ariaLabel:"corners",renderIcon:()=>f.jsx(w0,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-corner-radius",children:f.jsx(Ns,{value:x==null?void 0:x.data.cornerRadius,defaultValue:OD,min:0,max:32,suffix:"px",indeterminate:oe,onPreview:ae,onCommit:te,testId:"style-tab-corner-radius-slider"})})}):null,l?f.jsx(Ar,{testId:"style-strip-shadow-button",tooltip:"Shadow",ariaLabel:"shadow",renderIcon:()=>f.jsx(Pi,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-shadow",children:f.jsx(Ns,{value:x==null?void 0:x.data.shadow,defaultValue:FD,min:0,max:5,indeterminate:ve,onPreview:se,onCommit:re,testId:"style-tab-shadow-slider"})})}):null,Gt?f.jsx(Ar,{testId:"style-strip-border",tooltip:p?"Connector":"Border",ariaLabel:p?"connector":"border",renderIcon:()=>{var Q,be;const H=(p?(Q=YK.find(Ee=>Ee.value===S))==null?void 0:Q.icon:(be=fy.find(Ee=>Ee.value===_))==null?void 0:be.icon)??Tz;return f.jsx(H,{className:"sf:h-4 sf:w-4"})},children:f.jsxs("div",{className:"sf:flex sf:w-56 sf:flex-col sf:gap-3",children:[f.jsx(ka,{label:"Style",testId:"style-strip-border-style",children:p?f.jsx(ma,{ariaLabel:"Connector style",value:S,onChange:H=>T(H),options:YK}):f.jsx(ma,{ariaLabel:"Border style",value:_,onChange:H=>T(H),options:fy})}),f.jsx(ka,{label:"Width",testId:"style-strip-border-size",children:f.jsx(Ns,{value:me,defaultValue:Ie,min:0,max:8,suffix:"px",onPreview:F,onCommit:D,testId:p?"style-tab-stroke-width-slider":"style-tab-border-size-slider"})}),p?f.jsx(ka,{label:"Path",testId:"style-strip-path",children:f.jsx(ma,{ariaLabel:"Connector path",value:j,onChange:ke,options:Hot})}):null,p?f.jsx(ka,{label:"Direction",testId:"style-strip-direction-section",children:f.jsx(ma,{ariaLabel:"Connector direction",value:L,onChange:ge,options:qot})}):null,p?f.jsxs(ka,{label:"Head shape",testId:"style-strip-head-shape",children:[f.jsx("div",{className:ee(!E&&"sf:pointer-events-none sf:opacity-40"),"aria-disabled":!E,children:f.jsx(ma,{ariaLabel:"Connector head shape",value:I,onChange:Pe,options:QK})}),E?null:f.jsx("p",{className:"sf:mt-2 sf:text-[11px] sf:text-muted-foreground",children:"Point the direction forward to show a head."})]}):null,p?f.jsxs(ka,{label:"Tail shape",testId:"style-strip-tail-shape",children:[f.jsx("div",{className:ee(!V&&"sf:pointer-events-none sf:opacity-40"),"aria-disabled":!V,children:f.jsx(ma,{ariaLabel:"Connector tail shape",value:R,onChange:Be,options:QK})}),V?null:f.jsx("p",{className:"sf:mt-2 sf:text-[11px] sf:text-muted-foreground",children:"Point the direction backward (or both) to show a tail."})]}):null]})}):null,l||p?f.jsx(Ar,{testId:"style-strip-text",tooltip:"Text",ariaLabel:"text",renderIcon:()=>f.jsx(b0,{className:"sf:h-4 sf:w-4"}),children:f.jsxs("div",{className:"sf:flex sf:w-56 sf:flex-col sf:gap-3",children:[f.jsx(ka,{label:"Size",testId:p?"style-strip-connector-font-size":"style-strip-font-size",children:f.jsx(Ns,{value:p?g==null?void 0:g.fontSize:x==null?void 0:x.data.fontSize,defaultValue:p?GK:WK,min:p?8:10,max:32,suffix:"px",indeterminate:p?Z:N,onPreview:p?Y:A,onCommit:p?P:z,testId:p?"style-tab-connector-font-size-slider":"style-tab-font-size-slider"})}),l?f.jsx(ka,{label:"Align",testId:"style-strip-text-align",children:f.jsx(ma,{ariaLabel:"Text alignment",value:O,onChange:W,options:Fot})}):null]})}):null]})})}function qz(e){return e==="default"?{backgroundColor:"hsl(var(--card))"}:{backgroundColor:k1e[e].edge}}function Vz(){return f.jsx("span",{"aria-hidden":"true",className:"sf:pointer-events-none sf:absolute sf:inset-0 sf:rounded-full",style:{backgroundImage:"linear-gradient(45deg, transparent 45%, hsl(0, 75%, 55%) 45%, hsl(0, 75%, 55%) 55%, transparent 55%)"}})}function Bot({token:e,isActive:t,onClick:n,testId:o,ariaLabel:r}){const i=e==="none",a=e==="white";return f.jsxs("button",{type:"button",onClick:n,"data-testid":o,"data-active":t,"aria-label":r,"aria-pressed":t,title:e,className:ee("sf:relative sf:flex sf:h-5 sf:w-5 sf:items-center sf:justify-center sf:rounded-full sf:transition-all",i&&"sf:border sf:border-border sf:bg-card",a&&"sf:border sf:border-border",t?"sf:ring-2 sf:ring-ring sf:ring-offset-1 sf:ring-offset-popover":"sf:hover:scale-110"),style:i?void 0:qz(e),children:[i?f.jsx(Vz,{}):null,t&&!i?f.jsx(Ba,{className:"sf:h-2.5 sf:w-2.5 sf:drop-shadow-sm",style:{color:a?"hsl(0, 0%, 30%)":"hsl(var(--foreground))"}}):null]})}function Uot({testId:e,tooltip:t,ariaLabel:n,activeToken:o,previewKind:r,tokenTestIdPrefix:i,innerTestId:a,allowNone:s,onSelect:c}){const[l,h]=m.useState(!1),d=o==="none";return f.jsxs(du,{open:l,onOpenChange:h,children:[f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(ph,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":e,"data-active-token":o,"aria-label":`${n}: ${o}`,title:t,className:ee("sf:group sf:relative sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:f.jsx("span",{"data-testid":a,className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",d&&"sf:bg-card"),style:d?void 0:qz(o),children:d?f.jsx(Vz,{}):null})})})}),f.jsx(fu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:t})]}),f.jsx(ls,{side:"right",align:"start",className:"sf:w-auto sf:p-1.5","data-testid":`${a}-popover`,children:f.jsx(YO,{testId:`${i}-grid`,activeToken:o,previewKind:r,tokenTestIdPrefix:i,innerTestId:a,ariaLabel:n,allowNone:s,onSelect:p=>{c(p),h(!1)}})})]})}function YO({testId:e,activeToken:t,previewKind:n,tokenTestIdPrefix:o,innerTestId:r,ariaLabel:i,allowNone:a,onSelect:s}){const c=a===!1?ZK.filter(l=>l!=="none"):ZK;return f.jsx("div",{"data-testid":e,"data-active-token":t,"data-inner-testid":r,className:"sf:grid sf:grid-cols-6 sf:gap-2 sf:p-1",children:c.map(l=>f.jsx(Bot,{token:l,isActive:t===l,onClick:()=>s(l),testId:`${o}-${l}`,ariaLabel:`${i} ${l}`},l))})}function ka({label:e,testId:t,children:n}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1.5","data-testid":t,children:[f.jsx("div",{className:"sf:text-[11px] sf:font-medium sf:uppercase sf:tracking-wide sf:text-muted-foreground",children:e}),n]})}function Ar({testId:e,tooltip:t,ariaLabel:n,renderIcon:o,children:r}){const[i,a]=m.useState(!1);return f.jsxs(du,{open:i,onOpenChange:a,children:[f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(ph,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":e,"aria-label":n,title:t,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:o()})})}),f.jsx(fu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:t})]}),f.jsx(ls,{side:"right",align:"start",className:"sf:w-auto sf:p-3",children:r})]})}function Ns({value:e,defaultValue:t,min:n,max:o,suffix:r,indeterminate:i,onPreview:a,onCommit:s,testId:c}){const l=e??t,[h,d]=m.useState(l),[p,y]=m.useState(!1);m.useEffect(()=>{d(l),y(!1)},[l]);const g=i&&!p;return f.jsxs("div",{className:"sf:flex sf:w-48 sf:items-center sf:gap-3",children:[f.jsx(Cq,{min:n,max:o,step:1,value:[h],onValueChange:([k])=>{const x=k??n;d(x),y(!0),a==null||a(x)},onValueCommit:([k])=>s(k??n),"data-testid":c,"data-indeterminate":g?"true":void 0,className:ee("sf:flex-1",g&&"sf:opacity-60")}),f.jsx("span",{"data-testid":`${c}-value`,className:"sf:w-12 sf:shrink-0 sf:text-right sf:text-xs sf:tabular-nums sf:text-muted-foreground",children:g?"Mixed":f.jsxs(f.Fragment,{children:[h,r]})})]})}const Wot="var(--sf-accent)",Uh="var(--sf-alignment-spacing)",va=5,JK=44,eX=18,Got={position:"absolute",top:0,left:0,width:1,height:1,overflow:"visible",pointerEvents:"none"};function Wu(e,t,n,o,r,i){return f.jsx("line",{x1:e,y1:t,x2:n,y2:o,stroke:r,strokeWidth:1,opacity:.9,"vector-effect":"non-scaling-stroke"},i)}function Kot(e,t){const[n,o,r,i]=e.kind==="v"?[e.x,e.y1,e.x,e.y2]:[e.x1,e.y,e.x2,e.y];return Wu(n,o,r,i,Wot,t)}function Xot(e,t){const n=e.kind==="spacing-v",o=e.kind==="spacing-v"?e.x1:e.x,r=e.kind==="spacing-v"?e.y:e.y1,i=e.kind==="spacing-v"?e.x2:e.x,a=e.kind==="spacing-v"?e.y:e.y2,s=(o+i)/2,c=(r+a)/2,l=n?[Wu(o,r-va,o,r+va,Uh,"cap-a"),Wu(i,a-va,i,a+va,Uh,"cap-b")]:[Wu(o-va,r,o+va,r,Uh,"cap-a"),Wu(i-va,a,i+va,a,Uh,"cap-b")];return f.jsxs("g",{children:[Wu(o,r,i,a,Uh,"main"),l,f.jsx("foreignObject",{x:s-JK/2,y:c-eX/2,width:JK,height:eX,children:f.jsx("span",{className:"sf:flex sf:h-full sf:w-full sf:items-center sf:justify-center sf:rounded sf:bg-[var(--sf-alignment-spacing)] sf:px-1 sf:text-[10px] sf:font-medium sf:leading-none sf:text-white",children:`${Math.round(e.gap)}px`})})]},t)}function Zot({guides:e}){return e.length===0?null:f.jsx("svg",{"aria-hidden":"true",style:Got,children:e.map((t,n)=>{const o=`${t.kind}-${n}`;return t.kind==="v"||t.kind==="h"?Kot(t,o):Xot(t,o)})})}const ot=1e-6,zie=(e,t)=>Math.abs(e-t)<=ot;function Yot(e,t){if(t){const n=[];return t.left&&n.push({value:e.x,isCenter:!1}),t.right&&n.push({value:e.x+e.w,isCenter:!1}),n}return[{value:e.x,isCenter:!1},{value:e.x+e.w/2,isCenter:!0},{value:e.x+e.w,isCenter:!1}]}function Qot(e,t){if(t){const n=[];return t.top&&n.push({value:e.y,isCenter:!1}),t.bottom&&n.push({value:e.y+e.h,isCenter:!1}),n}return[{value:e.y,isCenter:!1},{value:e.y+e.h/2,isCenter:!0},{value:e.y+e.h,isCenter:!1}]}function Rie(e){return[e.x,e.x+e.w/2,e.x+e.w]}function Tie(e){return[e.y,e.y+e.h/2,e.y+e.h]}function Jot(e,t,n){const o=e.x<t.x+t.w-ot&&t.x<e.x+e.w-ot,r=e.y<t.y+t.h-ot&&t.y<e.y+e.h-ot;if(o&&r)return!0;if(o){const i=t.y+t.h<=e.y+ot;for(const a of n){if(a.id===e.id||a.id===t.id)continue;const s=a.x<e.x+e.w-ot&&e.x<a.x+a.w-ot,c=a.x<t.x+t.w-ot&&t.x<a.x+a.w-ot;if(!s||!c)continue;if(i?a.y+a.h>t.y+ot&&a.y<e.y-ot:a.y+a.h>e.y+e.h+ot&&a.y<t.y-ot)return!1}return!0}if(r){const i=t.x>=e.x+e.w-ot;for(const a of n){if(a.id===e.id||a.id===t.id)continue;const s=a.y<e.y+e.h-ot&&e.y<a.y+a.h-ot,c=a.y<t.y+t.h-ot&&t.y<a.y+a.h-ot;if(!s||!c)continue;if(i?a.x+a.w>e.x+e.w+ot&&a.x<t.x-ot:a.x+a.w>t.x+t.w+ot&&a.x<e.x-ot)return!1}return!0}return!0}function ert(e,t){return t.filter(n=>Jot(e,n,t))}function tX(e,t,n,o){let r=null;for(const i of e)for(const a of t)for(const s of n(a)){const c=s-i.value,l=Math.abs(c);if(l>o+ot)continue;(r===null||l<r.abs-ot||Math.abs(l-r.abs)<=ot&&i.isCenter&&!r.isCenter)&&(r={delta:c,abs:l,isCenter:i.isCenter,line:s})}return r?{delta:r.delta,line:r.line}:null}function trt(e,t,n){const o=n.filter(a=>Rie(a).some(s=>zie(s,e)));let r=t.y,i=t.y+t.h;for(const a of o)r=Math.min(r,a.y),i=Math.max(i,a.y+a.h);return{kind:"v",x:e,y1:r,y2:i,refIds:o.map(a=>a.id)}}function nrt(e,t,n){const o=n.filter(a=>Tie(a).some(s=>zie(s,e)));let r=t.x,i=t.x+t.w;for(const a of o)r=Math.min(r,a.x),i=Math.max(i,a.x+a.w);return{kind:"h",y:e,x1:r,x2:i,refIds:o.map(a=>a.id)}}function nX(e,t,n,o){if(n.length<2)return null;const r=[...n].sort((s,c)=>s.lo-c.lo),i=[];for(let s=0;s<r.length-1;s++){const c=r[s],l=r[s+1];if(!c||!l)continue;const h=l.lo-c.hi;if(h>=t-ot){const p=(h-t)/2,y=c.hi+p;i.push({targetLo:y,segments:[{from:c.hi,to:y,gap:p},{from:y+t,to:l.lo,gap:p}]})}const d=l.lo-c.hi;if(d>=-ot){const p=l.hi+d;i.push({targetLo:p,segments:[{from:c.hi,to:l.lo,gap:d},{from:l.hi,to:p,gap:d}]});const y=c.lo-d-t;i.push({targetLo:y,segments:[{from:y+t,to:c.lo,gap:d},{from:c.hi,to:l.lo,gap:d}]})}}let a=null;for(const s of i){const c=s.targetLo-e,l=Math.abs(c);l>o+ot||(a===null||l<a.abs-ot)&&(a={delta:c,abs:l,segments:s.segments})}return a?{delta:a.delta,segments:a.segments}:null}function oX(e,t,n,o={}){const{resizeMode:r=!1,activeEdges:i}=o,a=[],s=ert(e,t),c=tX(Yot(e,i),s,Rie,n),l=tX(Qot(e,i),s,Tie,n);let h=e.x+((c==null?void 0:c.delta)??0),d=e.y+((l==null?void 0:l.delta)??0);const p={...e,x:h,y:d};if(c&&a.push(trt(c.line,p,s)),l&&a.push(nrt(l.line,p,s)),c||l){if(!c){const y=s.filter(k=>p.y<k.y+k.h-ot&&k.y<p.y+p.h-ot),g=nX(p.x,e.w,y.map(k=>({lo:k.x,hi:k.x+k.w})),n);if(g){r||(h+=g.delta);const k=p.y+p.h/2;for(const x of g.segments)a.push({kind:"spacing-v",x1:x.from,x2:x.to,y:k,gap:x.gap})}}if(!l){const y=s.filter(k=>p.x<k.x+k.w-ot&&k.x<p.x+p.w-ot),g=nX(p.y,e.h,y.map(k=>({lo:k.y,hi:k.y+k.h})),n);if(g){r||(d+=g.delta);const k=p.x+p.w/2;for(const x of g.segments)a.push({kind:"spacing-h",y1:x.from,y2:x.to,x:k,gap:x.gap})}}}return{snappedX:h,snappedY:d,guides:a}}function Die(e){var t,n;return e?{w:((t=e.measured)==null?void 0:t.width)??e.width??0,h:((n=e.measured)==null?void 0:n.height)??e.height??0}:{w:0,h:0}}function rX(e){const{w:t,h:n}=Die(e);return{id:e.id,x:e.position.x,y:e.position.y,w:t,h:n}}function ort(e){switch(e.kind){case"v":return`v|${e.x}|${e.refIds.join(",")}`;case"h":return`h|${e.y}|${e.refIds.join(",")}`;case"spacing-v":return`spacing-v|${e.x1},${e.x2},${e.y}|${e.gap}`;case"spacing-h":return`spacing-h|${e.y1},${e.y2},${e.x}|${e.gap}`}}function rrt(e){return e.map(ort).join(";")}function irt(e){const{enabled:t,thresholdPx:n,viewport:o,rfNodesRef:r}=e,[i,a]=m.useState([]),s=m.useRef(null),c=m.useRef(null),l=m.useRef(null),h=m.useRef(null),d=m.useRef(null),p=m.useRef(""),y=n/(o.zoom||1),g=m.useCallback(_=>{h.current=_,d.current===null&&(d.current=globalThis.requestAnimationFrame(()=>{d.current=null;const S=h.current??[];h.current=null;const L=rrt(S);L!==p.current&&(p.current=L,a(S))}))},[]),k=m.useCallback(()=>{d.current!==null&&(globalThis.cancelAnimationFrame(d.current),d.current=null),h.current=null,p.current!==""&&(p.current="",a([]))},[]),x=m.useCallback(_=>{const S=new Set(_);s.current=r.current.filter(L=>!S.has(L.id)).map(rX)},[r]),v=m.useCallback((_,S)=>{if(!t)return _;if(S.metaKey||S.ctrlKey)return g([]),_;const L=s.current;if(!L)return _;let j=Number.POSITIVE_INFINITY,I=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,E=Number.NEGATIVE_INFINITY,V=0;for(const z of _){if(z.type!=="position"||!z.position||!z.id)continue;const A=r.current.find(O=>O.id===z.id),{w:N,h:W}=Die(A);j=Math.min(j,z.position.x),I=Math.min(I,z.position.y),R=Math.max(R,z.position.x+N),E=Math.max(E,z.position.y+W),V++}if(V===0)return _;const $={id:"__sf_selection__",x:j,y:I,w:R-j,h:E-I},T=oX($,L,y);g(T.guides);const D=T.snappedX-$.x,F=T.snappedY-$.y;return D===0&&F===0?_:_.map(z=>z.type==="position"&&z.position?{...z,position:{x:z.position.x+D,y:z.position.y+F}}:z)},[t,y,r,g]),M=m.useCallback(()=>{s.current=null,k()},[k]),w=m.useCallback((_,S)=>{c.current=_,l.current=S,s.current=r.current.filter(L=>L.id!==_).map(rX)},[r]),b=m.useCallback((_,S)=>{if(!t)return{snappedRect:_,guides:[]};if(S.metaKey||S.ctrlKey)return g([]),{snappedRect:_,guides:[]};const L=s.current,j=l.current;if(!L||!j)return{snappedRect:_,guides:[]};const I={..._,id:c.current??_.id},R=oX(I,L,y,{resizeMode:!0,activeEdges:j});g(R.guides);const E=R.snappedX-I.x,V=R.snappedY-I.y;let{x:$,y:T,w:D,h:F}=_;return j.left?($=_.x+E,D=_.w-E):j.right&&(D=_.w+E),j.top?(T=_.y+V,F=_.h-V):j.bottom&&(F=_.h+V),{snappedRect:{id:_.id,x:$,y:T,w:D,h:F},guides:R.guides}},[t,y,g]),C=m.useCallback(()=>{c.current=null,l.current=null,s.current=null,k()},[k]);return{guides:i,beginGesture:x,interceptChanges:v,endGesture:M,beginResize:w,applyResizeSnap:b,endResize:C}}function art(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),o=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(r),t&&(o.href=t),r.href=e,r.href}const srt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Ka(e){const t=[];for(let n=0,o=e.length;n<o;n++)t.push(e[n]);return t}let Hu=null;function Hie(e={}){return Hu||(e.includeStyleProperties?(Hu=e.includeStyleProperties,Hu):(Hu=Ka(window.getComputedStyle(document.documentElement)),Hu))}function Bz(e,t){const o=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return o?parseFloat(o.replace("px","")):0}function crt(e){const t=Bz(e,"border-left-width"),n=Bz(e,"border-right-width");return e.clientWidth+t+n}function lrt(e){const t=Bz(e,"border-top-width"),n=Bz(e,"border-bottom-width");return e.clientHeight+t+n}function Oie(e,t={}){const n=t.width||crt(e),o=t.height||lrt(e);return{width:n,height:o}}function drt(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ao=16384;function urt(e){(e.width>ao||e.height>ao)&&(e.width>ao&&e.height>ao?e.width>e.height?(e.height*=ao/e.width,e.width=ao):(e.width*=ao/e.height,e.height=ao):e.width>ao?(e.height*=ao/e.width,e.width=ao):(e.width*=ao/e.height,e.height=ao))}function Uz(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>{o.decode().then(()=>{requestAnimationFrame(()=>t(o))})},o.onerror=n,o.crossOrigin="anonymous",o.decoding="async",o.src=e})}async function hrt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function frt(e,t,n){const o="http://www.w3.org/2000/svg",r=document.createElementNS(o,"svg"),i=document.createElementNS(o,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${n}`),r.setAttribute("viewBox",`0 0 ${t} ${n}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),r.appendChild(i),i.appendChild(e),hrt(r)}const Jn=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Jn(n,t)};function prt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function yrt(e,t){return Hie(t).map(n=>{const o=e.getPropertyValue(n),r=e.getPropertyPriority(n);return`${n}: ${o}${r?" !important":""};`}).join(" ")}function mrt(e,t,n,o){const r=`.${e}:${t}`,i=n.cssText?prt(n):yrt(n,o);return document.createTextNode(`${r}{${i}}`)}function iX(e,t,n,o){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const a=srt();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(mrt(a,n,r,o)),t.appendChild(s)}function grt(e,t,n){iX(e,t,":before",n),iX(e,t,":after",n)}const aX="application/font-woff",sX="image/jpeg",krt={woff:aX,woff2:aX,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:sX,jpeg:sX,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function vrt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function jV(e){const t=vrt(e).toLowerCase();return krt[t]||""}function xrt(e){return e.split(/,/)[1]}function QO(e){return e.search(/^(data:)/)!==-1}function wrt(e,t){return`data:${t};base64,${e}`}async function Fie(e,t,n){const o=await fetch(e,t);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);const r=await o.blob();return new Promise((i,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{i(n({res:o,result:s.result}))}catch(c){a(c)}},s.readAsDataURL(r)})}const qD={};function Mrt(e,t,n){let o=e.replace(/\?.*/,"");return n&&(o=e),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),t?`[${t}]${o}`:o}async function $V(e,t,n){const o=Mrt(e,t,n.includeQueryParams);if(qD[o]!=null)return qD[o];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const i=await Fie(e,n.fetchRequestInit,({res:a,result:s})=>(t||(t=a.headers.get("Content-Type")||""),xrt(s)));r=wrt(i,t)}catch(i){r=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;i&&(a=typeof i=="string"?i:i.message),a&&console.warn(a)}return qD[o]=r,r}async function brt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Uz(t)}async function _rt(e,t){if(e.currentSrc){const i=document.createElement("canvas"),a=i.getContext("2d");i.width=e.clientWidth,i.height=e.clientHeight,a==null||a.drawImage(e,0,0,i.width,i.height);const s=i.toDataURL();return Uz(s)}const n=e.poster,o=jV(n),r=await $V(n,o,t);return Uz(r)}async function Crt(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await oT(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Srt(e,t){return Jn(e,HTMLCanvasElement)?brt(e):Jn(e,HTMLVideoElement)?_rt(e,t):Jn(e,HTMLIFrameElement)?Crt(e,t):e.cloneNode(qie(e))}const Lrt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",qie=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Nrt(e,t,n){var o,r;if(qie(t))return t;let i=[];return Lrt(e)&&e.assignedNodes?i=Ka(e.assignedNodes()):Jn(e,HTMLIFrameElement)&&(!((o=e.contentDocument)===null||o===void 0)&&o.body)?i=Ka(e.contentDocument.body.childNodes):i=Ka(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),i.length===0||Jn(e,HTMLVideoElement)||await i.reduce((a,s)=>a.then(()=>oT(s,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function Irt(e,t,n){const o=t.style;if(!o)return;const r=window.getComputedStyle(e);r.cssText?(o.cssText=r.cssText,o.transformOrigin=r.transformOrigin):Hie(n).forEach(i=>{let a=r.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Jn(e,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),o.setProperty(i,a,r.getPropertyPriority(i))})}function Art(e,t){Jn(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Jn(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ert(e,t){if(Jn(e,HTMLSelectElement)){const n=t,o=Array.from(n.children).find(r=>e.value===r.getAttribute("value"));o&&o.setAttribute("selected","")}}function jrt(e,t,n){return Jn(t,Element)&&(Irt(e,t,n),grt(e,t,n),Art(e,t),Ert(e,t)),t}async function $rt(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const o={};for(let i=0;i<n.length;i++){const s=n[i].getAttribute("xlink:href");if(s){const c=e.querySelector(s),l=document.querySelector(s);!c&&l&&!o[s]&&(o[s]=await oT(l,t,!0))}}const r=Object.values(o);if(r.length){const i="http://www.w3.org/1999/xhtml",a=document.createElementNS(i,"svg");a.setAttribute("xmlns",i),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(i,"defs");a.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(a)}return e}async function oT(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(o=>Srt(o,t)).then(o=>Nrt(e,o,t)).then(o=>jrt(e,o,t)).then(o=>$rt(o,t))}const Vie=/url\((['"]?)([^'"]+?)\1\)/g,Prt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zrt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Rrt(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Trt(e){const t=[];return e.replace(Vie,(n,o,r)=>(t.push(r),n)),t.filter(n=>!QO(n))}async function Drt(e,t,n,o,r){try{const i=n?art(t,n):t,a=jV(t);let s;return r||(s=await $V(i,a,o)),e.replace(Rrt(t),`$1${s}$3`)}catch{}return e}function Hrt(e,{preferredFontFormat:t}){return t?e.replace(zrt,n=>{for(;;){const[o,,r]=Prt.exec(n)||[];if(!r)return"";if(r===t)return`src: ${o};`}}):e}function Bie(e){return e.search(Vie)!==-1}async function Uie(e,t,n){if(!Bie(e))return e;const o=Hrt(e,n);return Trt(o).reduce((i,a)=>i.then(s=>Drt(s,a,t,n)),Promise.resolve(o))}async function Ou(e,t,n){var o;const r=(o=t.style)===null||o===void 0?void 0:o.getPropertyValue(e);if(r){const i=await Uie(r,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function Ort(e,t){await Ou("background",e,t)||await Ou("background-image",e,t),await Ou("mask",e,t)||await Ou("-webkit-mask",e,t)||await Ou("mask-image",e,t)||await Ou("-webkit-mask-image",e,t)}async function Frt(e,t){const n=Jn(e,HTMLImageElement);if(!(n&&!QO(e.src))&&!(Jn(e,SVGImageElement)&&!QO(e.href.baseVal)))return;const o=n?e.src:e.href.baseVal,r=await $V(o,jV(o),t);await new Promise((i,a)=>{e.onload=i,e.onerror=t.onImageErrorHandler?(...c)=>{try{i(t.onImageErrorHandler(...c))}catch(l){a(l)}}:a;const s=e;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=r):e.href.baseVal=r})}async function qrt(e,t){const o=Ka(e.childNodes).map(r=>Wie(r,t));await Promise.all(o).then(()=>e)}async function Wie(e,t){Jn(e,Element)&&(await Ort(e,t),await Frt(e,t),await qrt(e,t))}function Vrt(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(r=>{n[r]=o[r]}),e}const cX={};async function lX(e){let t=cX[e];if(t!=null)return t;const o=await(await fetch(e)).text();return t={url:e,cssText:o},cX[e]=t,t}async function dX(e,t){let n=e.cssText;const o=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async a=>{let s=a.replace(o,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Fie(s,t.fetchRequestInit,({result:c})=>(n=n.replace(a,`url(${c})`),[a,c]))});return Promise.all(i).then(()=>n)}function uX(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let o=e.replace(n,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(o);if(c===null)break;t.push(c[0])}o=o.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(a,"gi");for(;;){let c=i.exec(o);if(c===null){if(c=s.exec(o),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;t.push(c[0])}return t}async function Brt(e,t){const n=[],o=[];return e.forEach(r=>{if("cssRules"in r)try{Ka(r.cssRules||[]).forEach((i,a)=>{if(i.type===CSSRule.IMPORT_RULE){let s=a+1;const c=i.href,l=lX(c).then(h=>dX(h,t)).then(h=>uX(h).forEach(d=>{try{r.insertRule(d,d.startsWith("@import")?s+=1:r.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:d,error:p})}})).catch(h=>{console.error("Error loading remote css",h.toString())});o.push(l)}})}catch(i){const a=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&o.push(lX(r.href).then(s=>dX(s,t)).then(s=>uX(s).forEach(c=>{a.insertRule(c,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(o).then(()=>(e.forEach(r=>{if("cssRules"in r)try{Ka(r.cssRules||[]).forEach(i=>{n.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${r.href}`,i)}}),n))}function Urt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Bie(t.style.getPropertyValue("src")))}async function Wrt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Ka(e.ownerDocument.styleSheets),o=await Brt(n,t);return Urt(o)}function Gie(e){return e.trim().replace(/["']/g,"")}function Grt(e){const t=new Set;function n(o){(o.style.fontFamily||getComputedStyle(o).fontFamily).split(",").forEach(i=>{t.add(Gie(i))}),Array.from(o.children).forEach(i=>{i instanceof HTMLElement&&n(i)})}return n(e),t}async function Krt(e,t){const n=await Wrt(e,t),o=Grt(e);return(await Promise.all(n.filter(i=>o.has(Gie(i.style.fontFamily))).map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return Uie(i.cssText,a,t)}))).join(`
8544
- `)}async function Xrt(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Krt(e,t);if(n){const o=document.createElement("style"),r=document.createTextNode(n);o.appendChild(r),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}}async function Zrt(e,t={}){const{width:n,height:o}=Oie(e,t),r=await oT(e,t,!0);return await Xrt(r,t),await Wie(r,t),Vrt(r,t),await frt(r,n,o)}async function Yrt(e,t={}){const{width:n,height:o}=Oie(e,t),r=await Zrt(e,t),i=await Uz(r),a=document.createElement("canvas"),s=a.getContext("2d"),c=t.pixelRatio||drt(),l=t.canvasWidth||n,h=t.canvasHeight||o;return a.width=l*c,a.height=h*c,t.skipAutoScale||urt(a),a.style.width=`${l}`,a.style.height=`${h}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function Qrt(e,t={}){return(await Yrt(e,t)).toDataURL()}const Jrt=e=>e instanceof Element?!(e.classList.contains("react-flow__minimap")||e.classList.contains("react-flow__controls")||e.classList.contains("react-flow__panel")):!0,eit=e=>{var o;let t=e;for(;t&&!t.classList.contains("seeflow-canvas-root");)t=t.parentElement;if(t){const r=getComputedStyle(t).getPropertyValue("--bg-canvas").trim();if(r.length>0)return r}const n=(o=e.ownerDocument)==null?void 0:o.documentElement;return n!=null&&n.classList.contains("dark")?"#0a0a0c":"#fafafa"},tit=async e=>{const t=await Qrt(e,{cacheBust:!0,filter:Jrt,backgroundColor:eit(e)}),n=await new Promise((o,r)=>{const i=new Image;i.onload=()=>o({width:i.naturalWidth,height:i.naturalHeight}),i.onerror=()=>r(new Error("Failed to decode captured image")),i.src=t});return{dataUrl:t,...n}},nit=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()},oit=e=>{const t=e.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t.slice(0,80):"canvas"},hX=(e,t)=>`${oit(e??"canvas")}.${t}`,rit=({projectId:e,getReactFlow:t})=>{const[n,o]=m.useState(null),r=m.useCallback(()=>o(null),[]),i=m.useCallback(async()=>{const l=t();if(!l)return null;const h=document.querySelector(".react-flow__viewport");if(!h)return null;const d=l.getViewport();try{return await l.fitView({duration:0,padding:.1}),await new Promise(p=>requestAnimationFrame(()=>p())),await tit(h)}finally{l.setViewport(d,{duration:0})}},[t]),a=m.useCallback(async()=>{o(null);try{const l=await i();if(!l)return;nit(l.dataUrl,hX(e,"png"))}catch(l){o(l instanceof Error?l.message:String(l))}},[i,e]),s=m.useCallback(async()=>{o(null);try{const l=await i();if(!l)return;const{jsPDF:h}=await sh(async()=>{const{jsPDF:y}=await import("./jspdf.es.min-CswmcIXO.js").then(g=>g.j);return{jsPDF:y}},[]),d=l.width>l.height?"landscape":"portrait",p=new h({orientation:d,unit:"px",format:[l.width,l.height],hotfixes:["px_scaling"]});p.addImage(l.dataUrl,"PNG",0,0,l.width,l.height),p.save(hX(e,"pdf"))}catch(l){o(l instanceof Error?l.message:String(l))}},[i,e]),c=m.useCallback(async()=>{const l=await i();return l==null?void 0:l.dataUrl},[i]);return{exportPdf:s,exportPng:a,capturePreview:c,lastError:n,clearError:r}},iit=12,ait=1200;function sit(e,t={}){const n=t.idleMs??ait;let o,r=null,i=null;const a=typeof requestAnimationFrame<"u",s=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},c=()=>{i!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(i),i=null},l=()=>{if(i=null,!r)return;const{clientX:y,clientY:g}=r;r=null;const k=e.getBoundingClientRect();e.style.setProperty("--mx",`${y-k.left}px`),e.style.setProperty("--my",`${g-k.top}px`),e.dataset.active="true",s(),o=setTimeout(()=>{e.dataset.active="false",o=void 0},n)};return{onMove:y=>{if(r={clientX:y.clientX,clientY:y.clientY},!a){l();return}i===null&&(i=requestAnimationFrame(l))},onLeave:()=>{c(),r=null,s(),e.dataset.active="false"},dispose:()=>{c(),r=null,s()}}}function cit(){const e=m.useRef(null),t=je(a=>a.transform,(a,s)=>a[0]===s[0]&&a[1]===s[1]&&a[2]===s[2]),[n,o,r]=t,i=iit*r;return m.useEffect(()=>{var d;const a=e.current;if(!a)return;const s=(d=a.parentElement)==null?void 0:d.querySelector(".react-flow__pane");if(!s)return;const{onMove:c,onLeave:l,dispose:h}=sit(a);return s.addEventListener("mousemove",c,{passive:!0}),s.addEventListener("mouseleave",l,{passive:!0}),()=>{s.removeEventListener("mousemove",c),s.removeEventListener("mouseleave",l),h()}},[]),f.jsx("div",{ref:e,className:"glow-overlay","data-active":"false","data-testid":"canvas-glow-overlay",style:{backgroundPosition:`${n}px ${o}px`,backgroundSize:`${i}px ${i}px`}})}const lit="Hide inspector",dit="Open inspector";function uit({open:e,onToggle:t}){const n=e?v0:S2,o=e?lit:dit;return f.jsx(I0,{delayDuration:300,children:f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"ghost",size:"icon","data-testid":"inspector-toggle","aria-pressed":e,"aria-label":o,onClick:t,className:"sf:h-8 sf:w-8",children:f.jsx(n,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsx(fu,{children:o})]})})}const hit={showToolbar:!0,showStyleStrip:!0,showDetailPanel:!0,showStatusBadges:!0,showResizeHandles:!0,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!0,enableContextMenu:!0,enableDragDrop:!0,enableImageDrop:!0,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!0},fit={showToolbar:!0,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!0,showResizeHandles:!1,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!1},pit={showToolbar:!1,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!1,showResizeHandles:!1,showControls:!1,showShareMenu:!1,showMiniMap:!1,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!1,enablePan:!1,enableSelection:!1,enableNodeMove:!1,enableEmbed:!1,enableAlignmentGuides:!1};function yit(e){const t=e.mode==="edit"?hit:e.mode==="mini"?pit:fit;return{showToolbar:e.showToolbar??t.showToolbar,showStyleStrip:e.showStyleStrip??t.showStyleStrip,showDetailPanel:e.showDetailPanel??t.showDetailPanel,showStatusBadges:e.showStatusBadges??t.showStatusBadges,showResizeHandles:e.showResizeHandles??t.showResizeHandles,showControls:e.showControls??t.showControls,showShareMenu:e.showShareMenu??t.showShareMenu,showMiniMap:e.showMiniMap??t.showMiniMap,enableKeyboard:e.enableKeyboard??t.enableKeyboard,enableContextMenu:e.enableContextMenu??t.enableContextMenu,enableDragDrop:e.enableDragDrop??t.enableDragDrop,enableImageDrop:e.enableImageDrop??t.enableImageDrop,enableZoom:e.enableZoom??t.enableZoom,enablePan:e.enablePan??t.enablePan,enableSelection:e.enableSelection??t.enableSelection,enableNodeMove:e.enableNodeMove??t.enableNodeMove,enableEmbed:e.enableEmbed??t.enableEmbed,enableAlignmentGuides:e.enableAlignmentGuides??t.enableAlignmentGuides,alignmentSnapThreshold:e.alignmentSnapThreshold}}const py=40,fX=4,Wh={padding:.15,duration:300,includeHiddenNodes:!1};function mit(e){return e===void 0||e===!1?{onMount:!1,onExternalNodeChange:!1}:e===!0?{onMount:!0,onExternalNodeChange:!0}:{onMount:e.onMount??!0,onExternalNodeChange:e.onExternalNodeChange??!0}}const pX=e=>{if("clientX"in e)return{clientX:e.clientX,clientY:e.clientY};const t=e.changedTouches[0]??e.touches[0];return t?{clientX:t.clientX,clientY:t.clientY}:null},git=(e,t)=>{var o;const n=document.elementsFromPoint(e,t);for(const r of n){const i=(o=r.closest)==null?void 0:o.call(r,".react-flow__node");if(i)return i}return null},Kie=15,VD=(e,t,n)=>{const o=git(t,n);if(o)return o;if(!e)return null;let r=null,i=Kie;const a=e.querySelectorAll(".react-flow__node");for(const s of a){const c=s.getBoundingClientRect();if(c.width===0||c.height===0)continue;const l=Math.max(c.left-t,0,t-c.right),h=Math.max(c.top-n,0,n-c.bottom),d=Math.hypot(l,h);d<=i&&(r=s,i=d)}return r};function yX(e,t,n,o,r){if(e==="source"?(o==null?void 0:o.targetPin)!==void 0||(o==null?void 0:o.targetHandleAutoPicked)===!1:(o==null?void 0:o.sourcePin)!==void 0||(o==null?void 0:o.sourceHandleAutoPicked)===!1)return;const a=e==="source"?n:t,s=e==="source"?t:n,c=r(a),l=r(s);if(!c||!l)return;const h=c.measured.width??c.width??0,d=c.measured.height??c.height??0,p=l.measured.width??l.width??0,y=l.measured.height??l.height??0;if(h===0||d===0||p===0||y===0)return;const g={x:c.internals.positionAbsolute.x,y:c.internals.positionAbsolute.y,w:h,h:d},k={x:l.internals.positionAbsolute.x+p/2,y:l.internals.positionAbsolute.y+y/2};return cOe(g,wf(g,k))}function kit(e,t,n,o){if(o===null)return"no-op";const r=e==="source"?t:n;return o===(e==="source"?n:t)?"self-loop":o===r?"pin-own":"reconnect-and-pin"}const vit=(e,t)=>{if(!t)return e;const n=t.data?{...e.data,...t.data}:e.data;return{...e,...t,data:n}},xit=(e,t)=>t?{...e,...t}:e,wit={rectangle:lGe,ellipse:io,sticky:io,text:io,database:io,server:io,user:io,queue:io,cloud:io,diamond:io,hexagon:io,triangle:io,parallelogram:io,document:io,image:JWe,icon:wOe,html:KWe,component:lWe,linkflow:oGe},Mit={editableEdge:pGe},bit={zIndex:0},_it={hideAttribution:!0},Cit=8,mX=(e,t)=>e?typeof e=="string"?`url('#${e}')`:`url('#${`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`}')`:void 0,Sit=e=>function({fromX:n,fromY:o,toX:r,toY:i,fromPosition:a,toPosition:s,connectionLineStyle:c}){const l=je(me=>e.current?me.edges.find(Ie=>Ie.reconnectable===!0)??null:null),h=l==null?void 0:l.data,d=l?null:c0(ji).connector,p=je(me=>{var Ue;const Ie=me.connection;return((Ue=Ie==null?void 0:Ie.fromHandle)==null?void 0:Ue.nodeId)??null}),y=je(me=>l!=null&&l.source?me.nodeLookup.get(l.source)??null:null),g=je(me=>l!=null&&l.target?me.nodeLookup.get(l.target)??null:null),k=je(me=>p?me.nodeLookup.get(p)??null:null),x=(l==null?void 0:l.source)===p,v=l?x?y:g:k,M=x?g:y,w=x?h==null?void 0:h.sourcePin:h==null?void 0:h.targetPin,b=x?h==null?void 0:h.sourceHandleAutoPicked:h==null?void 0:h.targetHandleAutoPicked;let C=n,_=o,S=a,L=null;if(v){const me=v.measured.width??v.width??0,Ie=v.measured.height??v.height??0;if(me>0&&Ie>0){L={x:v.internals.positionAbsolute.x,y:v.internals.positionAbsolute.y,w:me,h:Ie};let Ue=null;if(w)Ue=gz(L,w);else if(b!==!1&&M){const ut=M.measured.width??M.width??0,et=M.measured.height??M.height??0;if(ut>0&&et>0){const le={x:M.internals.positionAbsolute.x+ut/2,y:M.internals.positionAbsolute.y+et/2};Ue=wf(L,le)}}Ue&&(C=Ue.x,_=Ue.y,S=BD[Ue.side])}}const j=je(me=>me.transform[2]),I=je(me=>me.transform[0]),R=je(me=>me.transform[1]),E=je(me=>me.nodeLookup),V=je(me=>{var Ie;return((Ie=me.connection.toHandle)==null?void 0:Ie.nodeId)??null}),$=je(me=>{var Ie;return((Ie=me.connection.pointer)==null?void 0:Ie.x)??null}),T=je(me=>{var Ie;return((Ie=me.connection.pointer)==null?void 0:Ie.y)??null}),D=$!==null&&j>0?($-I)/j:null,F=T!==null&&j>0?(T-R)/j:null;let z=r,A=i,N=s,W=!1;if(j>0){const me=Kie/j,Ie=l?x?l.source:l.target:null;let Ue=null;if(V&&V!==Ie){const ut=E.get(V)??null;ut&&(Ue=ut)}if(!Ue){let ut=me;for(const et of E.values()){if(Ie&&et.id===Ie||v&&et.id===v.id)continue;const le=et.measured.width??et.width??0,rn=et.measured.height??et.height??0;if(le===0||rn===0)continue;const Gt=et.internals.positionAbsolute.x,J=et.internals.positionAbsolute.y,H=Math.max(Gt-r,0,r-(Gt+le)),Q=Math.max(J-i,0,i-(J+rn)),be=Math.hypot(H,Q);be<=ut&&(ut=be,Ue=et)}}if(Ue){const ut=Ue.measured.width??Ue.width??0,et=Ue.measured.height??Ue.height??0;if(ut>0&&et>0){const le={x:Ue.internals.positionAbsolute.x,y:Ue.internals.positionAbsolute.y,w:ut,h:et},Gt=uO(le,D!==null&&F!==null?{x:D,y:F}:{x:r,y:i}),J=gz(le,Gt);if(z=J.x,A=J.y,N=BD[J.side],!l&&L){const H={x:le.x+le.w/2,y:le.y+le.h/2},Q=wf(L,H);C=Q.x,_=Q.y,S=BD[Q.side],W=!0}}}}const O=l?(h==null?void 0:h.path)==="step":(d==null?void 0:d.path)==="step",[P]=O?vf({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:A,targetPosition:N,borderRadius:Cit}):xR({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:A,targetPosition:N}),Y=!l&&v?{...d!=null&&d.style?Mee[d.style]:{},...Ct(d==null?void 0:d.color,"edge"),strokeWidth:(d==null?void 0:d.borderSize)??2}:void 0,Z=(l==null?void 0:l.style)??Y??c??void 0,te=je(me=>me.rfId),ae=x?l==null?void 0:l.markerStart:l==null?void 0:l.markerEnd,oe=x?l==null?void 0:l.markerEnd:l==null?void 0:l.markerStart,re=mX(ae,te),se=mX(oe,te),ve=Z==null?void 0:Z.stroke,ke=(d==null?void 0:d.direction)??"forward",ge=((d==null?void 0:d.headShape)??"arrow")==="arrow",Pe=((d==null?void 0:d.tailShape)??(d==null?void 0:d.headShape)??"arrow")==="arrow",Be=W&&!!ve,De=Be&&ge&&(ke==="forward"||ke==="both")?kX(z,A,N):null,pe=Be&&Pe&&(ke==="backward"||ke==="both")?kX(C,_,S):null;return f.jsxs(f.Fragment,{children:[f.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Z,markerStart:re,markerEnd:se}),De?f.jsx("polygon",{points:De,fill:ve??void 0}):null,pe?f.jsx("polygon",{points:pe,fill:ve??void 0}):null]})},gX=11,yy=5.5;function kX(e,t,n){const o=n===ue.Left?{x:1,y:0}:n===ue.Right?{x:-1,y:0}:n===ue.Top?{x:0,y:1}:{x:0,y:-1},r={x:-o.y,y:o.x},i=e-o.x*gX,a=t-o.y*gX,s=i+r.x*yy,c=a+r.y*yy,l=i-r.x*yy,h=a-r.y*yy;return`${e},${t} ${s},${c} ${l},${h}`}const BD={top:ue.Top,right:ue.Right,bottom:ue.Bottom,left:ue.Left};function Lit({storeApiRef:e}){const t=St();return m.useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null)}),[t,e]),null}function Nit({wrapperRef:e}){const t=je(o=>o.transform[2]),n=e.current;return n&&n.style.setProperty("--rf-zoom",String(t)),null}const Iit=new Set(["INPUT","TEXTAREA","SELECT"]),JO=e=>e?Iit.has(e.tagName)?!0:e instanceof HTMLElement&&e.isContentEditable:!1;function Ait(e){const{event:t,selectedNodeIds:n,hasClipboard:o,activeElement:r,onCopySelection:i,onPasteSelection:a}=e;if(!(t.metaKey||t.ctrlKey)||t.shiftKey||t.altKey)return!1;const s=t.key.toLowerCase();return s!=="c"&&s!=="v"||JO(r)?!1:s==="c"?n.length===0||!i?!1:(t.preventDefault(),i([...n]),!0):!o||!a?!1:(t.preventDefault(),a(),!0)}const vX=(e,t)=>{var n;return((n=e==null?void 0:e[t])==null?void 0:n.status)??"idle"},Eit=(e,t)=>{var n;return(n=e==null?void 0:e[t])==null?void 0:n.status},jit=(e,t)=>{var n,o;return((n=e==null?void 0:e[t])==null?void 0:n.status)==="error"?(o=e[t])==null?void 0:o.error:void 0};function $it(e,t){var QV,JV,eB;const{mode:n,adapter:o,topLeftSlot:r,topRightSlot:i,projectId:a,flowSlug:s,fileBaseUrl:c,apiBaseUrl:l="/api",studioBaseUrl:h="",nodes:d,connectors:p,selectedNodeIds:y,selectedConnectorIds:g,onSelectionChange:k,runtime:x,onPlayNode:v,onNodePositionChange:M,onNodePositionsChange:w,onNodeResize:b,onNodeResizeEnd:C,onHtmlNodeFitToContent:_,onComponentNodeFitToContent:S,onMultiResize:L,onNodeNameChange:j,onNodeDescriptionChange:I,onConnectorLabelChange:R,onCreateShapeNode:E,onCreateIconNode:V,onCreateLinkflowNode:$,onCreateImageFromFile:T,onRetryImageUpload:D,onCreateHtmlNode:F,onCreateConnector:z,onReconnectConnector:A,onReorderNode:N,onDeleteNode:W,onCopyNode:O,onPasteAt:P,hasClipboard:Y,onCopySelection:Z,onPasteSelection:te,selectedNodes:ae,selectedConnectors:oe,onStyleNode:re,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRfInit:Be,onTidy:De,onNodeClick:pe,onConnectorClick:me,onPaneClick:Ie,onCreateAndConnectFromPane:Ue,pendingEditNodeId:ut,iconPickerOpen:et,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,onRequestIconReplace:J,onPinEndpoint:H,onUnpinEndpoint:Q,canvasMode:be,onCanvasModeChange:Ee,disableSidebar:wt,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,autoFitView:Fe,autoFitViewSignal:dn,customIcons:gr,onExportToCloud:pt,onNodeDragStart:dt,onNodeDragStop:Vn,onViewportChange:mi,history:Qt,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:yu,showStatusBadges:mu,showResizeHandles:gu,showControls:ku,showShareMenu:vu,showMiniMap:xu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:gi,enablePan:ki,enableSelection:wu,enableNodeMove:Mu,enableEmbed:Co,enableAlignmentGuides:Qi,alignmentSnapThreshold:Ji}=e,He=m.useMemo(()=>yit({mode:n,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:yu,showStatusBadges:mu,showResizeHandles:gu,showControls:ku,showShareMenu:vu,showMiniMap:xu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:gi,enablePan:ki,enableSelection:wu,enableNodeMove:Mu,enableEmbed:Co,enableAlignmentGuides:Qi,alignmentSnapThreshold:Ji}),[n,Pt,Jt,yu,mu,gu,ku,vu,xu,hs,fs,ps,ys,gi,ki,wu,Mu,Co,Qi,Ji]),Ht=n==="edit",ms=m.useRef(He);m.useEffect(()=>{ms.current=He},[He]);const bu=Fe??(n==="mini"?!0:void 0),vi=m.useMemo(()=>mit(bu),[bu]),kr=x==null?void 0:x.runs,xi=x==null?void 0:x.statuses,Sn=(QV=x==null?void 0:x.pendingOverrides)==null?void 0:QV.nodes,Oo=(JV=x==null?void 0:x.pendingOverrides)==null?void 0:JV.connectors,kn=m.useRef(null),Ot=m.useRef(null),ea=m.useRef(!1),gs=m.useRef(!1),Fo=m.useRef(!1),ta=m.useRef(vi);ta.current=vi,m.useEffect(()=>{if(ea.current||!vi.onMount||d.length===0)return;const q=Ot.current;q&&(q.fitView(Wh),ea.current=!0)},[d,vi.onMount]);const wi=m.useRef(null),en=be.kind==="draw"?be.shape:null,qo=be.kind==="draw-icon"?be.iconName:null,So=en!==null||qo!==null,vr=be.kind==="hand",na=m.useRef(new Map),_u=m.useCallback((q,X)=>(na.current.set(q,X),()=>{na.current.get(q)===X&&na.current.delete(q)}),[]),Cu=m.useRef(null),Lo=m.useCallback(()=>Cu.current,[]),ks=m.useCallback(q=>{Cu.current=q},[]),[Vo,xr]=m.useState(!1),Su=m.useRef(!1);m.useEffect(()=>{Su.current=Vo},[Vo]);const Ln=m.useRef(!1),no=m.useRef(!1),oo=m.useRef(!1),[Nn,Mi]=m.useState(null),xh=m.useRef(null);m.useEffect(()=>{xh.current=Nn},[Nn]),m.useCallback(()=>{Mi(null)},[]);const rT=m.useMemo(()=>Sit(oo),[]),Lu=m.useRef(null),Lt=m.useRef(null),oa=m.useCallback(q=>{const X=kn.current;if(!X){Lu.current=q;return}const ie=Lu.current;if(ie&&ie!==q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(ie)}"]`);ce==null||ce.removeAttribute("data-connect-source")}if(q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-source","true")}Lu.current=q},[]),wr=m.useCallback(q=>{const X=kn.current,ie=Lt.current;if(ie!==q){if(X&&ie){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(ie)}"]`);ce==null||ce.removeAttribute("data-connect-target")}if(X&&q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-target","true")}Lt.current=q}},[]),No=m.useCallback(()=>{oa(null),wr(null)},[oa,wr]);m.useEffect(()=>{if(!Vo){wr(null);return}let q=null,X=null;const ie=()=>{q=null;const de=X;if(X=null,!de)return;const Ae=VD(kn.current,de.clientX,de.clientY),xe=(Ae==null?void 0:Ae.getAttribute("data-id"))??null;if(xe&&xe===Lu.current){wr(null);return}wr(xe)},ce=de=>{X={clientX:de.clientX,clientY:de.clientY},q===null&&(q=requestAnimationFrame(ie))};return document.addEventListener("pointermove",ce,{passive:!0}),()=>{document.removeEventListener("pointermove",ce),q!==null&&cancelAnimationFrame(q)}},[Vo,wr]);const[Mr,wh]=m.useState(null),[ra,vs]=m.useState(null),Bo=m.useRef(null),xs=m.useRef(null),ws=m.useRef(null),Ms=m.useRef(null),ia=m.useRef(!1);m.useEffect(()=>{Bo.current=en},[en]),m.useEffect(()=>{xs.current=qo},[qo]);const Mh=m.useCallback(()=>{Ee({kind:"select"}),wh(null),vs(null),Bo.current=null,xs.current=null,ws.current=null,Ms.current=null,ia.current=!1},[Ee]);m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{var de,Ae;if(X.key!=="Escape"||JO(document.activeElement))return;if(Bo.current||xs.current){X.preventDefault(),Mh();return}if(Su.current){X.preventDefault(),Ln.current=!0,no.current=!0;try{(de=wi.current)==null||de.getState().cancelConnection()}catch{}document.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,button:0})),xr(!1);return}if(xh.current){X.preventDefault(),Mi(null);return}const ie=Wo.current.size>0,ce=bi.current.size>0;(ie||ce)&&(X.preventDefault(),(Ae=Nr.current)==null||Ae.call(Nr,[],[]))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Mh,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{const ie=jOe(X,{isEditableActive:JO(document.activeElement)});ie&&Qt&&(X.preventDefault(),X.stopPropagation(),ie==="undo"?Qt.undo():Qt.redo())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Qt,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{Ait({event:X,selectedNodeIds:y,hasClipboard:!!Y,activeElement:document.activeElement,onCopySelection:Z,onPasteSelection:te})};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[y,Y,Z,te,He.enableKeyboard]);const ip=m.useCallback(q=>{var ce,de;if(!Bo.current&&!xs.current)return;const X=q.target;if(!(X!=null&&X.classList.contains("react-flow__pane")))return;const ie={x:q.clientX,y:q.clientY};ia.current=!0,ws.current=ie,Ms.current=ie,wh(ie),vs(ie);try{(de=(ce=q.currentTarget).setPointerCapture)==null||de.call(ce,q.pointerId)}catch{}q.preventDefault(),q.stopPropagation()},[]),iT=m.useCallback(q=>{if(!ia.current)return;const X={x:q.clientX,y:q.clientY};Ms.current=X,vs(X)},[]),ap=m.useCallback(q=>{var Sh,tB;if(!ia.current)return;ia.current=!1;try{(tB=(Sh=q.currentTarget).releasePointerCapture)==null||tB.call(Sh,q.pointerId)}catch{}const X=ws.current,ie=Ms.current,ce=Bo.current,de=xs.current,Ae=Ot.current;if(Mh(),!X||!ie||!Ae||!ce&&!de)return;const xe=Math.min(X.x,ie.x),Ne=Math.min(X.y,ie.y),nt=Math.max(X.x,ie.x),ft=Math.max(X.y,ie.y),mt=nt-xe,Re=ft-Ne,Ut=Ae.screenToFlowPosition({x:xe,y:Ne}),ro=Ae.screenToFlowPosition({x:nt,y:ft}),gt=ro.x-Ut.x,kt=ro.y-Ut.y;if(ce==="linkflow"){const Lh=mt<fX&&Re<fX,yT=Lh?Ez.width:Math.max(gt,jz.width),mT=Lh?Ez.height:Math.max(kt,jz.height);$==null||$(Ut,{width:yT,height:mT});return}if(de){const Lh=mt<py||Re<py,yT=Lh?G0.width:gt,mT=Lh?G0.height:kt;V==null||V(de,Ut,{width:yT,height:mT});return}if(!ce)return;const zt=mt<py||Re<py,qe=zt?Az[ce].width:gt,_i=zt?Az[ce].height:kt;E==null||E(ce,Ut,{width:qe,height:_i})},[Mh,E,V,$]),br=m.useRef(!1),U=m.useRef(!1),B=m.useRef(null),G=m.useRef({}),K=m.useRef(new Map),ne=m.useCallback(()=>{var q;gs.current&&(U.current||br.current||(gs.current=!1,(q=Ot.current)==null||q.fitView(Wh)))},[]),ze=m.useCallback(q=>{U.current=q,q||ne()},[ne]),Mt=m.useMemo(()=>({beginResize:(q,X)=>{var ie;return(ie=B.current)==null?void 0:ie.beginResize(q,X)},applyResizeSnap:(q,X)=>{var ie;return((ie=B.current)==null?void 0:ie.applyResizeSnap(q,X))??{snappedRect:q,guides:[]}},endResize:()=>{var q;return(q=B.current)==null?void 0:q.endResize()}}),[]);m.useEffect(()=>{var q;if(!Fo.current){Fo.current=!0;return}if(ta.current.onExternalNodeChange){if(U.current||br.current){gs.current=!0;return}(q=Ot.current)==null||q.fitView(Wh)}},[dn]);const Ye=!!N||!!W||!!O||!!P||!!Q,[ht,In]=m.useState(null),[Io,Te]=m.useState(!1),[un,_r]=m.useState(null),[Cr,Sr]=m.useState(null),Uo=m.useRef(null),bh=m.useRef(null);m.useEffect(()=>{if(!ht)return;const q=bh.current;if(!q)return;const X=new MouseEvent("contextmenu",{clientX:ht.x,clientY:ht.y,bubbles:!0,cancelable:!0,button:2,buttons:2});q.dispatchEvent(X)},[ht]);const Lr=m.useCallback(q=>{const X=Uo.current;!X||!N||N(X,q)},[N]),Xe=m.useCallback(()=>{const q=Uo.current;!q||!W||W(q)},[W]),sn=m.useCallback(()=>{const q=Uo.current;!q||!O||O(q)},[O]),An=m.useCallback(()=>{const q=Uo.current;!q||!J||J(q)},[J]);m.useCallback((q,X,ie,ce,de)=>{ms.current.enableContextMenu&&(Uo.current=null,Te(!1),_r(null),Sr({connectorId:q,kind:X,pinned:ie}),In({x:ce,y:de}))},[]);const Ao=m.useCallback(()=>{const q=Cr;!q||!Q||Q(q.connectorId,q.kind)},[Cr,Q]),Nu=m.useCallback(()=>{if(!P)return;const q=ht,X=Ot.current;if(!q||!X)return;const ie=X.screenToFlowPosition({x:q.x,y:q.y});P(ie)},[ht,P]),Iu=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent||""),aT=Iu?"⌘C":"Ctrl+C",sp=Iu?"⌘V":"Ctrl+V",Au=m.useMemo(()=>new Set(y),[y]),aa=m.useMemo(()=>new Set(g),[g]),kae=m.useMemo(()=>{if(y.length<2)return[];const q=Sn,X=[];for(const ie of y){const ce=d.find(Ne=>Ne.id===ie);if(!ce)continue;const de=q==null?void 0:q[ie],Ae=(de==null?void 0:de.data)??{},xe=ce.data;X.push({id:ie,position:(de==null?void 0:de.position)??ce.position,data:{width:Ae.width??xe.width,height:Ae.height??xe.height}})}return X},[d,Sn,y]),vae=ae??[],cp=m.useMemo(()=>{const q=de=>{const Ae=Ht?void 0:K.current.get(de.id),xe={id:de.id,type:de.type,position:Ae??de.position,data:{...de.data,projectId:a,fileBaseUrl:c,projectSlug:de.type==="component"?a:void 0,flowSlug:de.type==="component"?s:void 0,apiBaseUrl:de.type==="component"?l:void 0,onRetryUpload:D,status:Eit(kr,de.id),errorMessage:jit(kr,de.id),statusReport:xi==null?void 0:xi[de.id],onPlay:v,onResize:b,onResizeEnd:C,setResizing:ze,resizeAlignment:He.enableAlignmentGuides?Mt:void 0,onFitToContent:de.type==="html"?_:de.type==="component"?S:void 0,onNameChange:(()=>{if(Ht&&de.type!=="ellipse")return j})(),onDescriptionChange:(()=>{if(Ht&&(de.type==="rectangle"||de.type==="ellipse"||de.type==="sticky"))return I})(),onIconChange:(()=>{if(Ht&&!(de.type!=="rectangle"&&de.type!=="component"))return Me})(),autoEditOnMount:ut===de.id?!0:void 0},selected:Au.has(de.id)};return(!(de.data.autoSize===!0)||U.current)&&(de.data.width!==void 0&&(xe.width=de.data.width),de.data.height!==void 0&&(xe.height=de.data.height)),Au.has(de.id)||(xe.connectable=!1),xe},X=d.map(de=>q(vit(de,Sn==null?void 0:Sn[de.id]))),ie=new Set(d.map(de=>de.id)),ce=[];if(Sn)for(const[de,Ae]of Object.entries(Sn)){if(ie.has(de))continue;const xe=Ae;typeof xe.type!="string"||!xe.position||!xe.data||ce.push(q({...xe,id:de}))}return[...X,...ce]},[a,s,c,l,d,Au,kr,xi,v,b,C,_,S,ze,Mt,He.enableAlignmentGuides,Sn,j,I,Me,D,ut,Ht]),[sT,cT]=m.useState(cp);m.useEffect(()=>{br.current||U.current||cT(cp)},[cp]),m.useEffect(()=>{Eu.current=sT},[sT]);const Wo=m.useRef(Au);m.useEffect(()=>{Wo.current=Au},[Au]);const Nr=m.useRef(k);m.useEffect(()=>{Nr.current=k},[k]);const bi=m.useRef(aa);m.useEffect(()=>{bi.current=aa},[aa]);const Eu=m.useRef(cp),bs=m.useRef(!1),lp=m.useRef(new Set),dp=m.useRef(new Set),lT=m.useRef(new Set),dT=m.useRef(new Set),sa=m.useRef(null),xae=m.useCallback(q=>{var zt;const X=B.current,ie=X?X.interceptChanges(q,G.current):q,ce=bs.current?lT.current:(zt=sa.current)!=null&&zt.shift?sa.current.nodeIds:null,de=ce&&ce.size>0?ie.filter(qe=>qe.type!=="select"?!0:!(qe.selected===!1&&ce.has(qe.id))):ie,Ae=new Set;for(const qe of de)qe.type==="select"&&Ae.add(qe.id);const xe=UJ(de,Eu.current),Ne=new Set;if(U.current)for(const qe of de)qe.type==="dimensions"&&Ne.add(qe.id);const nt=Ne.size===0?xe:xe.map(qe=>!Ne.has(qe.id)||qe.width===void 0&&qe.height===void 0?qe:{...qe,data:{...qe.data,...qe.width!==void 0?{width:qe.width}:{},...qe.height!==void 0?{height:qe.height}:{}}}),ft=Wo.current,mt=bs.current||ft.size===0?nt:nt.map(qe=>ft.has(qe.id)&&!Ae.has(qe.id)&&!qe.selected?{...qe,selected:!0}:qe);if(Eu.current=mt,cT(mt),Ae.size===0)return;if(bs.current){for(const qe of de)qe.type==="select"&&(qe.selected?lp.current.add(qe.id):lp.current.delete(qe.id));return}const Re=Nr.current;if(!Re)return;const Ut=mt.filter(qe=>qe.selected).map(qe=>qe.id),ro=Wo.current;ro.size===Ut.length&&Ut.every(qe=>ro.has(qe))||(Wo.current=new Set(Ut),Re(Ut,[...bi.current]))},[]),up=m.useRef([]),wae=m.useCallback(q=>{var mt;const X=bs.current?dT.current:(mt=sa.current)!=null&&mt.shift?sa.current.edgeIds:null,ie=X&&X.size>0?q.filter(Re=>Re.type!=="select"?!0:!(Re.selected===!1&&X.has(Re.id))):q,ce=new Set;for(const Re of ie)Re.type==="select"&&ce.add(Re.id);if(ce.size===0)return;if(bs.current){for(const Re of ie)Re.type==="select"&&(Re.selected?dp.current.add(Re.id):dp.current.delete(Re.id));return}const de=Nr.current;if(!de)return;const xe=WJ(ie,up.current).filter(Re=>Re.selected).map(Re=>Re.id),Ne=bi.current;Ne.size===xe.length&&xe.every(Re=>Ne.has(Re))||(bi.current=new Set(xe),de([...Wo.current],xe))},[]),Mae=m.useCallback(q=>{bs.current=!0;const X=sa.current,ie=(X==null?void 0:X.shift)??(q.shiftKey||q.metaKey||q.ctrlKey);lT.current=ie?new Set((X==null?void 0:X.nodeIds)??Wo.current):new Set,dT.current=ie?new Set((X==null?void 0:X.edgeIds)??bi.current):new Set,lp.current=new Set(lT.current),dp.current=new Set(dT.current)},[]),bae=m.useCallback(()=>{bs.current=!1,sa.current=null;const q=Nr.current;if(!q)return;const X=[...lp.current],ie=new Set(X),ce=new Set(dp.current);for(const nt of up.current)ie.has(nt.source)&&ie.has(nt.target)&&ce.add(nt.id);const de=Wo.current,Ae=bi.current,xe=de.size===ie.size&&X.every(nt=>de.has(nt)),Ne=Ae.size===ce.size&&[...ce].every(nt=>Ae.has(nt));xe&&Ne||(Wo.current=new Set(X),bi.current=new Set(ce),q(X,[...ce]))},[]),_ae=m.useCallback(q=>{if(sa.current=null,Bo.current||q.button!==0)return;const X=q.target;X!=null&&X.classList.contains("react-flow__pane")&&(sa.current={shift:q.shiftKey||q.metaKey||q.ctrlKey,nodeIds:new Set(Wo.current),edgeIds:new Set(bi.current)})},[]),Cae=m.useCallback(q=>{if(!ms.current.enableContextMenu||Wo.current.size<2)return;const ie=q.target;ie!==bh.current&&(ie!=null&&ie.closest(".seeflow-connector-endpoint-dot")||(q.preventDefault(),q.stopPropagation(),Uo.current=null,Te(!0),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})))},[]),Sae=m.useCallback(q=>{const X=q.dataTransfer;if(!X)return;const ie=X.types?Array.from(X.types):[],ce=ie.includes("Files"),de=ie.includes(BG),Ae=ce&&!!T&&He.enableImageDrop,xe=de&&!!F&&He.enableDragDrop;if(!(!Ae&&!xe)){q.preventDefault();try{X.dropEffect="copy"}catch{}}},[T,F,He.enableImageDrop,He.enableDragDrop]),Lae=m.useCallback(q=>{const X=q.dataTransfer;if((X!=null&&X.types?Array.from(X.types):[]).includes(BG)&&F&&He.enableDragDrop){q.preventDefault();const Ae=Ot.current;if(!Ae)return;const xe=Ae.screenToFlowPosition({x:q.clientX,y:q.clientY});F({position:xe});return}if(!T||!He.enableImageDrop)return;const de={x:q.clientX,y:q.clientY};q.preventDefault(),ZEe({dataTransfer:X,clientPos:de,rfInstance:Ot.current,computeDims:YEe,dispatch:T})},[T,F,He.enableImageDrop,He.enableDragDrop]),RV=!!A,TV=aa.size===1?[...aa][0]:null,uT=m.useMemo(()=>{const q=Ne=>{const nt=vX(kr,Ne.source)==="running"||vX(kr,Ne.target)==="running",ft=aa.has(Ne.id),mt=nOe(Ne,nt,ft);ft&&(mt.selected=!0);const Re=RV&&Ne.id===TV,Ut=Re?{...mt,reconnectable:!0}:mt;return{...Ut,data:{...Ut.data,onLabelChange:Ht?R:void 0,reconnectable:Re,registerEditHandle:_u,getEditingConnectorId:Lo,setEditingConnectorId:ks}}},X=new Set(p.map(Ne=>Ne.id)),ie=p.map(Ne=>q(xit(Ne,Oo==null?void 0:Oo[Ne.id]))),ce=[];if(Oo)for(const[Ne,nt]of Object.entries(Oo)){if(X.has(Ne))continue;const ft=nt;typeof ft.source!="string"||typeof ft.target!="string"||ce.push(q({...ft,id:Ne}))}const de=[...ie,...ce],Ae=[],xe=[];for(const Ne of de)aa.has(Ne.id)?xe.push(Ne):Ae.push(Ne);return[...Ae,...xe]},[p,kr,aa,TV,Oo,R,RV,_u,Lo,ks,Ht]);m.useEffect(()=>{up.current=uT},[uT]);const _h=o??null,Nae=m.useMemo(()=>{if(_h!=null&&_h.computeLayout)return async()=>{const q=Ot.current,X=Eu.current;if(X.length<2)return;const ie=X.map(gt=>{var Sh;const kt=(Sh=q==null?void 0:q.getInternalNode(gt.id))==null?void 0:Sh.measured,zt=gt.data,qe=(kt==null?void 0:kt.width)??zt.width??200,_i=(kt==null?void 0:kt.height)??zt.height??120;return{id:gt.id,type:gt.type,width:qe,height:_i}}),ce=new Map;for(const gt of X)ce.set(gt.id,gt.position);const de=up.current.map(gt=>({id:gt.id,source:gt.source,target:gt.target})),Ae=_h.computeLayout;if(!Ae)return;const xe=await Ae(ie,de),Ne=new Map;for(const[gt,kt]of Object.entries(xe.nodes))Ne.set(gt,kt.position);let nt=Number.POSITIVE_INFINITY,ft=Number.POSITIVE_INFINITY,mt=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY;for(const gt of ie){const kt=ce.get(gt.id);if(!kt)continue;kt.x<nt&&(nt=kt.x),kt.y<ft&&(ft=kt.y);const zt=Ne.get(gt.id);zt&&(zt.x<mt&&(mt=zt.x),zt.y<Re&&(Re=zt.y))}const Ut=Number.isFinite(nt)&&Number.isFinite(mt)?nt-mt:0,ro=Number.isFinite(ft)&&Number.isFinite(Re)?ft-Re:0;cT(gt=>gt.map(kt=>{const zt=Ne.get(kt.id);return zt?{...kt,position:{x:zt.x+Ut,y:zt.y+ro}}:kt}))}},[_h]),hp=De??(Ht?void 0:Nae),fp=m.useRef(!1),DV=m.useRef(null),Iae=m.useCallback(q=>{var Ne;if(!Ht||!z)return;const{source:X,target:ie}=q;if(!X||!ie||X===ie)return;fp.current=!0;const ce=((Ne=DV.current)==null?void 0:Ne.nodeId)??null,de=ce!==null&&ce===ie&&ce!==X;z(de?ie:X,de?X:ie)},[z,Ht]),hT=m.useCallback(q=>{const X=ie=>{if(!ie)return!1;const ce=Eu.current.find(de=>de.id===ie);return ce?ce.type==="text":!1};return!X(q.source)&&!X(q.target)},[]),Aae=m.useCallback((q,X)=>{var mt;xr(!1),No();const ie=fp.current;if(fp.current=!1,ie||oo.current)return;if(Ln.current){Ln.current=!1;return}if(!z)return;const ce=(mt=X.fromNode)==null?void 0:mt.id,de=X.fromHandle;if(!ce||!de)return;const Ae=pX(q);if(!Ae)return;const xe=VD(kn.current,Ae.clientX,Ae.clientY);if(!xe)return;const Ne=xe.getAttribute("data-id");if(!Ne||Ne===ce||!hT({source:ce,target:Ne,sourceHandle:null,targetHandle:null}))return;let nt;const ft=Ot.current;if(ft){const Re=ft.getInternalNode(Ne);if(Re){const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut>0&&ro>0){const gt=ft.screenToFlowPosition({x:Ae.clientX,y:Ae.clientY});nt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt)}}}z(ce,Ne,nt?{targetPin:nt}:void 0)},[z,No,hT]),pp=m.useRef(!1),Eae=m.useCallback((q,X)=>{if(!A)return;const{source:ie,target:ce,sourceHandle:de,targetHandle:Ae}=X;if(!ie||!ce||ie===ce)return;const xe={};if(ie!==q.source&&(xe.source=ie),ce!==q.target&&(xe.target=ce),typeof de=="string"&&de!==q.sourceHandle&&(xe.sourceHandle=de),typeof Ae=="string"&&Ae!==q.targetHandle&&(xe.targetHandle=Ae),xe.source===void 0&&xe.target===void 0&&xe.sourceHandle===void 0&&xe.targetHandle===void 0)return;(xe.source!==void 0||xe.sourceHandle!==void 0)&&(xe.sourceHandleAutoPicked=!1),(xe.target!==void 0||xe.targetHandle!==void 0)&&(xe.targetHandleAutoPicked=!1);const Ne=Ot.current;if(!(xe.source===void 0&&xe.target===void 0)&&Ne){const ft=xe.source!==void 0?"source":"target",mt=yX(ft,q.source,q.target,q.data,Re=>Ne.getInternalNode(Re)??null);mt&&(ft==="source"?xe.targetPin=mt:xe.sourcePin=mt)}pp.current=!0,A(q.id,xe)},[A]),jae=m.useCallback((q,X,ie,ce)=>{var qe;xr(!1),No(),oo.current=!1;const de=pp.current;if(pp.current=!1,de)return;if(no.current){no.current=!1;return}if(!A)return;const Ae=pX(q);let xe=((qe=ce.toNode)==null?void 0:qe.id)??null;if(!xe&&Ae){const _i=VD(kn.current,Ae.clientX,Ae.clientY);xe=(_i==null?void 0:_i.getAttribute("data-id"))??null}const Ne=ie==="source"?"target":"source",nt=kit(Ne,X.source,X.target,xe);if(nt==="no-op"||nt==="self-loop"||!Ae)return;const ft=Ot.current;if(!ft)return;const mt=nt==="pin-own"?Ne==="source"?X.source:X.target:xe,Re=ft.getInternalNode(mt);if(!Re)return;const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut===0||ro===0)return;const gt=ft.screenToFlowPosition({x:Ae.clientX,y:Ae.clientY}),kt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt);if(nt==="pin-own"){if(!H)return;H(X.id,Ne,kt);return}const zt=yX(Ne,X.source,X.target,X.data,_i=>ft.getInternalNode(_i)??null);Ne==="source"?A(X.id,{source:xe,sourceHandle:null,sourceHandleAutoPicked:!1,sourcePin:kt,...zt?{targetPin:zt}:{}}):A(X.id,{target:xe,targetHandle:null,targetHandleAutoPicked:!1,targetPin:kt,...zt?{sourcePin:zt}:{}})},[A,No,H]),_s=m.useMemo(()=>{var Ne;if(!Mr||!ra)return null;const q=(Ne=kn.current)==null?void 0:Ne.getBoundingClientRect(),X=(q==null?void 0:q.left)??0,ie=(q==null?void 0:q.top)??0,ce=Math.min(Mr.x,ra.x),de=Math.min(Mr.y,ra.y),Ae=Math.abs(ra.x-Mr.x),xe=Math.abs(ra.y-Mr.y);return{left:ce-X,top:de-ie,width:Ae,height:xe}},[Mr,ra]),ca=en?c0(ji).node:void 0,Ch=en==="linkflow",$ae=en&&!Ch?vne(en):"",Pae=en&&!Ch?xne(en,ca):void 0,zae=en==="text",[HV,OV]=m.useState(!1),[Rae,yp]=m.useState(!1),[Tae,FV]=m.useState(!1),[qV,Dae]=m.useState(()=>({canUndo:(Qt==null?void 0:Qt.canUndo)??!1,canRedo:(Qt==null?void 0:Qt.canRedo)??!1}));m.useEffect(()=>Qt?Qt.subscribe(Dae):void 0,[Qt]);const[fT,VV]=m.useState(!1),Hae=((eB=Ot.current)==null?void 0:eB.getViewport())??{x:0,y:0,zoom:1},BV=irt({enabled:He.enableAlignmentGuides,thresholdPx:He.alignmentSnapThreshold??6,viewport:Hae,rfNodesRef:Eu});B.current=BV;const Oae=Qt?qV.canUndo:!1,Fae=Qt?qV.canRedo:!1,la=rit({projectId:a,getReactFlow:()=>Ot.current});m.useImperativeHandle(t,()=>({exportPdf:la.exportPdf,exportPng:la.exportPng,openEmbedDialog:()=>FV(!0),capturePreview:la.capturePreview}),[la.exportPdf,la.exportPng,la.capturePreview]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=ce=>{if(!ce)return!1;const de=ce.tagName;return de==="INPUT"||de==="TEXTAREA"||de==="SELECT"?!0:ce instanceof HTMLElement&&ce.isContentEditable},X=ce=>{ce.code==="Space"&&(q(document.activeElement)||(ce.preventDefault(),OV(!0)))},ie=ce=>{ce.code==="Space"&&(OV(!1),yp(!1))};return window.addEventListener("keydown",X),window.addEventListener("keyup",ie),()=>{window.removeEventListener("keydown",X),window.removeEventListener("keyup",ie)}},[He.enableKeyboard]);const mp=m.useCallback(q=>{if(q.length!==0){if(!Ht){const X=K.current;for(const ie of q)X.set(ie.id,{x:ie.position.x,y:ie.position.y});return}if(q.length===1){const X=q[0];X&&M&&M(X.id,{x:X.position.x,y:X.position.y});return}if(w){w(q.map(X=>({id:X.id,position:{x:X.position.x,y:X.position.y}})));return}if(M)for(const X of q)M(X.id,{x:X.position.x,y:X.position.y})}},[M,w,Ht]),UV=m.useCallback((q,X,ie)=>{br.current=!1,mp(ie),ne()},[mp,ne]),WV=m.useCallback(()=>{br.current=!0},[]),GV=m.useCallback((q,X)=>{br.current=!1,mp(X),ne()},[mp,ne]),qae=m.useCallback((q,X)=>{xh.current&&Mi(null);const ie=kn.current;ie&&ie.style.setProperty("--rf-zoom",String(X.zoom)),mi==null||mi(X)},[mi]),Vae=m.useCallback((q,X,ie)=>{var ce;br.current=!0,G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ce=B.current)==null||ce.beginGesture((ie??[]).map(de=>de.id)),dt==null||dt()},[dt]),Bae=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Uae=m.useCallback((q,X,ie)=>{var ce;UV(q,X,ie),(ce=B.current)==null||ce.endGesture(),Vn==null||Vn()},[UV,Vn]),Wae=m.useCallback((q,X)=>{var ie;WV(),G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ie=B.current)==null||ie.beginGesture((X??[]).map(ce=>ce.id)),dt==null||dt()},[WV,dt]),Gae=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Kae=m.useCallback((q,X)=>{var ie;GV(q,X),(ie=B.current)==null||ie.endGesture(),Vn==null||Vn()},[GV,Vn]),Xae=m.useCallback((q,X)=>{var ie;(ie=na.current.get(X.id))==null||ie()},[]),Zae=m.useCallback((q,X)=>{pe==null||pe(X.id)},[pe]),Yae=m.useCallback(q=>{Ie==null||Ie()},[Ie]),Qae=m.useCallback((q,X)=>{me==null||me(X.id)},[me]),KV=So?"crosshair":vr||HV?Rae?"grabbing":"grab":void 0,XV=y.length+g.length===1,ZV=XV?y[0]:void 0,YV=XV?g[0]:void 0,Jae=ZV?d.find(q=>q.id===ZV)??null:null;YV&&p.find(q=>q.id===YV);const ese=a??null,pT=He.showDetailPanel&&!wt,tse=pT,nse=m.useMemo(()=>({custom:gr??{}}),[gr]),ose=m.useMemo(()=>({studioBaseUrl:h}),[h]),gp=o==null?void 0:o.icons;return m.useEffect(()=>{if(!gp)return;let q=!1;return(async()=>{try{const X=await gp.listPacks();if(q)return;UH(X)}catch{}})(),()=>{q=!0}},[gp]),f.jsx(pqe,{value:nse,children:f.jsx(OEe,{value:ose,children:f.jsx("div",{"data-testid":"seeflow-canvas","data-mode":n,"data-canvas-mode":be.kind,"data-can-undo":Oae?"true":"false","data-can-redo":Fae?"true":"false",ref:kn,className:"seeflow-canvas-root sf:relative sf:flex sf:h-full sf:w-full",style:KV?{cursor:KV}:void 0,onPointerDownCapture:_ae,onPointerDown:q=>{HV&&yp(!0),ip(q)},onPointerMove:iT,onPointerUp:q=>{yp(!1),ap(q)},onPointerCancel:()=>{ia.current=!1,ws.current=null,Ms.current=null,wh(null),vs(null),yp(!1)},onContextMenuCapture:Cae,onDragOver:Sae,onDrop:Lae,children:f.jsxs(LUe,{containerRef:kn,children:[f.jsxs("div",{className:"sf:relative sf:flex-1 sf:min-w-0 sf:h-full",children:[f.jsxs(wHe,{nodes:sT,edges:uT,onNodesChange:xae,nodeTypes:wit,edgeTypes:Mit,proOptions:_it,fitView:!0,minZoom:n==="mini"?.05:.5,nodesDraggable:(Ht?!!M:!0)&&!So&&!vr&&He.enableNodeMove,nodesConnectable:Ht&&!!z&&!So&&!vr,deleteKeyCode:Ht?["Backspace","Delete"]:null,zoomOnScroll:He.enableZoom,zoomOnPinch:He.enableZoom,className:Vo?"seeflow-connecting":void 0,onConnect:Ht?Iae:void 0,isValidConnection:hT,onConnectStart:(q,X)=>{xr(!0),fp.current=!1,DV.current={nodeId:X.nodeId??null,handleType:X.handleType??null},oa(X.nodeId??null)},onConnectEnd:Aae,onReconnect:Ht&&A?Eae:void 0,onReconnectStart:(q,X,ie)=>{xr(!0),pp.current=!1,oo.current=!0;const ce=ie==="source"?X.source:X.target;oa(ce)},onReconnectEnd:jae,connectionLineComponent:rT,connectionLineStyle:{strokeWidth:2},connectionRadius:32,reconnectRadius:10,edgesReconnectable:!1,elevateNodesOnSelect:!1,elementsSelectable:!So&&!vr&&He.enableSelection,selectNodesOnDrag:!1,nodeClickDistance:5,selectionOnDrag:!So&&!vr&&He.enableSelection,panOnDrag:So?!1:vr?[0,1,2]:He.enablePan?[1,2]:!1,selectionMode:F0.Partial,selectionKeyCode:null,multiSelectionKeyCode:So?null:["Meta","Shift"],panActivationKeyCode:So?null:"Space",onSelectionStart:Mae,onSelectionEnd:bae,defaultEdgeOptions:bit,zoomOnDoubleClick:!1,onInit:q=>{Ot.current=q;const X=kn.current;X&&X.style.setProperty("--rf-zoom",String(q.getZoom())),X&&X.setAttribute("data-canvas-ready","true"),!ea.current&&vi.onMount&&d.length>0&&(q.fitView(Wh),ea.current=!0),Be==null||Be(q)},onMove:qae,onEdgesChange:wae,onNodeDragStart:Vae,onNodeDrag:Bae,onNodeDragStop:Uae,onSelectionDragStart:Wae,onSelectionDrag:Gae,onSelectionDragStop:Kae,onNodeClick:Zae,onEdgeClick:Qae,onEdgeDoubleClick:Xae,onPaneClick:Yae,onNodeContextMenu:He.enableContextMenu&&Ye?(q,X)=>{q.preventDefault(),Uo.current=X.id,Te(!0),_r(X.type??null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,onPaneContextMenu:He.enableContextMenu&&P?q=>{q.preventDefault(),Uo.current=null,Te(!1),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,children:[f.jsx(Lit,{storeApiRef:wi}),f.jsx(Nit,{wrapperRef:kn}),f.jsx(IHe,{gap:12,size:.6}),He.enableAlignmentGuides?f.jsx(gee,{children:f.jsx(Zot,{guides:BV.guides})}):null,n!=="mini"&&f.jsx(cit,{}),He.showControls?f.jsxs(RHe,{showInteractive:!1,showFitView:!1,children:[f.jsx(s0,{"data-testid":"controls-fit-view","aria-label":"Fit view",title:"Fit view",disabled:d.length===0,onClick:()=>{var q;(q=Ot.current)==null||q.fitView(Wh)},children:f.jsx(Hd,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})}),f.jsx(s0,{"data-testid":"controls-tidy","aria-label":"Tidy layout (⌘⇧L)",title:"Tidy layout (⌘⇧L)",disabled:!hp,onClick:()=>hp==null?void 0:hp(),children:f.jsx(M2,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})})]}):null,He.showMiniMap?f.jsx(XHe,{className:"sf-canvas-minimap"}):null,He.showResizeHandles?f.jsx(Dot,{selectedNodes:kae,onMultiResize:L}):null,r||He.showToolbar||He.showStyleStrip&&re&&ge?f.jsx(W0,{position:"top-left",children:f.jsxs("div",{className:"sf:flex sf:flex-col sf:items-start sf:gap-2",children:[r,He.showToolbar?f.jsx(dZe,{mode:be,onModeChange:Ee,iconPickerOpen:et??!1,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,showShapeTools:Ht&&!!E,iconsAdapter:gp}):null,He.showStyleStrip&&re&&ge?f.jsx(Vot,{nodes:vae,connectors:oe??[],onStyleNode:re,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRequestIconReplace:J}):null]})}):null,He.showShareMenu||i||pT?f.jsx(W0,{position:"top-right",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-1",children:[i,pT&&!fT?f.jsx(uit,{open:fT,onToggle:()=>VV(q=>!q)}):null,He.showShareMenu?f.jsx(Pie,{mode:n==="mini"?"view":n,projectId:a,enableEmbed:He.enableEmbed,onDownloadPdf:la.exportPdf,onDownloadPng:la.exportPng,onExportToCloud:pt,embedOpen:Tae,onEmbedOpenChange:FV}):null]})}):null]}),_s?f.jsxs("div",{"data-testid":"canvas-draw-ghost","data-ghost-shape":en??void 0,"data-ghost-icon":qo??void 0,"aria-hidden":!0,className:ee("sf:pointer-events-none sf:absolute sf:z-10",$ae,zae?"sf:rounded-sm sf:border sf:border-dashed sf:border-muted-foreground/40":"",Ch?"sf:flex sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-dashed sf:border-border sf:bg-muted/40 sf:text-muted-foreground sf:text-sm":"",qo?"sf:flex sf:items-center sf:justify-center":""),style:{...Pae,left:_s.left,top:_s.top,width:_s.width,height:_s.height},children:[qo?f.jsx(Qa,{iconId:qo,studioBaseUrl:h,className:"sf:block sf:h-full sf:w-full sf:select-none"}):null,Ch?f.jsxs("span",{className:"sf:inline-flex sf:items-center sf:gap-2",children:[f.jsx(Ua,{size:14,"aria-hidden":!0}),f.jsx("span",{children:"Link to a flow"})]}):null,(()=>{if(Ch)return null;const q=en?Gq[en]:void 0;if(!q)return null;const X=wne(ca);return f.jsx(q,{width:_s.width,height:_s.height,borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderSize:(ca==null?void 0:ca.borderSize)??wq,borderStyle:ca==null?void 0:ca.borderStyle})})()]}):null,He.enableContextMenu&&Ye?f.jsxs(XKe,{onOpenChange:q=>{q||(In(null),Uo.current=null,_r(null),Sr(null))},children:[f.jsx(ZKe,{asChild:!0,children:f.jsx("div",{ref:bh,"data-testid":"node-context-menu-trigger","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(ht==null?void 0:ht.x)??0,top:(ht==null?void 0:ht.y)??0,width:0,height:0}})}),f.jsxs(zoe,{"data-testid":"node-context-menu",children:[Cr!=null&&Cr.pinned&&Q?f.jsx(Hr,{"data-testid":"connector-endpoint-context-menu-unpin",onSelect:Ao,children:"Unpin"}):null,Io&&O?f.jsxs(Hr,{"data-testid":"node-context-menu-copy",onSelect:sn,children:["Copy",f.jsx(PO,{children:aT})]}):null,P?f.jsxs(Hr,{"data-testid":"node-context-menu-paste",disabled:!Y,onSelect:Nu,children:["Paste",f.jsx(PO,{children:sp})]}):null,Io&&(O||P)&&(un==="icon"&&J||N||W)?f.jsx(AP,{}):null,Io&&un==="icon"&&J?f.jsx(Hr,{"data-testid":"node-context-menu-change-icon",onSelect:An,children:"Change icon"}):null,Io&&un==="icon"&&J&&(N||W)?f.jsx(AP,{}):null,Io&&N?f.jsxs(f.Fragment,{children:[f.jsx(Hr,{"data-testid":"node-context-menu-to-front",onSelect:()=>Lr({op:"toFront"}),children:"Bring to front"}),f.jsx(Hr,{"data-testid":"node-context-menu-forward",onSelect:()=>Lr({op:"forward"}),children:"Bring forward"}),f.jsx(Hr,{"data-testid":"node-context-menu-backward",onSelect:()=>Lr({op:"backward"}),children:"Send backward"}),f.jsx(Hr,{"data-testid":"node-context-menu-to-back",onSelect:()=>Lr({op:"toBack"}),children:"Send to back"})]}):null,Io&&N&&W?f.jsx(AP,{}):null,Io&&W?f.jsx(Hr,{"data-testid":"node-context-menu-delete",onSelect:Xe,children:"Delete"}):null]})]}):null,Ue?f.jsxs(du,{open:!!Nn,onOpenChange:q=>{q||Mi(null)},children:[f.jsx(NUe,{asChild:!0,children:f.jsx("div",{"data-testid":"drop-popover-anchor","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(Nn==null?void 0:Nn.clientX)??0,top:(Nn==null?void 0:Nn.clientY)??0,width:0,height:0}})}),f.jsx(ls,{"data-testid":"drop-popover",align:"start",side:"bottom",sideOffset:4,className:"sf:w-auto sf:p-1",onOpenAutoFocus:q=>{q.preventDefault()},children:f.jsx("div",{role:"menu","aria-label":"Create connected node",className:"sf:flex sf:flex-col sf:gap-0.5",children:lZe.map(({shape:q,label:X,Icon:ie})=>q==="linkflow"?null:f.jsxs("button",{type:"button",role:"menuitem","data-testid":`drop-popover-shape-${q}`,onClick:()=>{const ce=Nn;ce&&(Ue({sourceNodeId:ce.sourceNodeId,position:{x:ce.flowX,y:ce.flowY},shape:q}),Mi(null))},className:ee("sf:flex sf:items-center sf:gap-2 sf:rounded-sm sf:px-2 sf:py-1.5 sf:text-left sf:text-sm","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus:bg-accent sf:focus:text-accent-foreground sf:focus:outline-hidden"),children:[f.jsx(ie,{className:"sf:h-4 sf:w-4 sf:text-muted-foreground","aria-hidden":"true"}),f.jsx("span",{children:X})]},q))})})]}):null]}),tse?f.jsx(sot,{flowId:ese,node:Jae,connector:null,adapter:o??null,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,open:fT,onClose:()=>{var q;VV(!1),(q=Nr.current)==null||q.call(Nr,[],[])}}):null]})})})})}const Pit=m.forwardRef($it);/**
8544
+ `)}async function Xrt(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Krt(e,t);if(n){const o=document.createElement("style"),r=document.createTextNode(n);o.appendChild(r),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}}async function Zrt(e,t={}){const{width:n,height:o}=Oie(e,t),r=await oT(e,t,!0);return await Xrt(r,t),await Wie(r,t),Vrt(r,t),await frt(r,n,o)}async function Yrt(e,t={}){const{width:n,height:o}=Oie(e,t),r=await Zrt(e,t),i=await Uz(r),a=document.createElement("canvas"),s=a.getContext("2d"),c=t.pixelRatio||drt(),l=t.canvasWidth||n,h=t.canvasHeight||o;return a.width=l*c,a.height=h*c,t.skipAutoScale||urt(a),a.style.width=`${l}`,a.style.height=`${h}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(i,0,0,a.width,a.height),a}async function Qrt(e,t={}){return(await Yrt(e,t)).toDataURL()}const Jrt=e=>e instanceof Element?!(e.classList.contains("react-flow__minimap")||e.classList.contains("react-flow__controls")||e.classList.contains("react-flow__panel")):!0,eit=e=>{var o;let t=e;for(;t&&!t.classList.contains("seeflow-canvas-root");)t=t.parentElement;if(t){const r=getComputedStyle(t).getPropertyValue("--bg-canvas").trim();if(r.length>0)return r}const n=(o=e.ownerDocument)==null?void 0:o.documentElement;return n!=null&&n.classList.contains("dark")?"#0a0a0c":"#fafafa"},tit=async e=>{const t=await Qrt(e,{cacheBust:!0,filter:Jrt,backgroundColor:eit(e)}),n=await new Promise((o,r)=>{const i=new Image;i.onload=()=>o({width:i.naturalWidth,height:i.naturalHeight}),i.onerror=()=>r(new Error("Failed to decode captured image")),i.src=t});return{dataUrl:t,...n}},nit=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()},oit=e=>{const t=e.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t.slice(0,80):"canvas"},hX=(e,t)=>`${oit(e??"canvas")}.${t}`,rit=({projectId:e,getReactFlow:t})=>{const[n,o]=m.useState(null),r=m.useCallback(()=>o(null),[]),i=m.useCallback(async()=>{const l=t();if(!l)return null;const h=document.querySelector(".react-flow__viewport");if(!h)return null;const d=l.getViewport();try{return await l.fitView({duration:0,padding:.1}),await new Promise(p=>requestAnimationFrame(()=>p())),await tit(h)}finally{l.setViewport(d,{duration:0})}},[t]),a=m.useCallback(async()=>{o(null);try{const l=await i();if(!l)return;nit(l.dataUrl,hX(e,"png"))}catch(l){o(l instanceof Error?l.message:String(l))}},[i,e]),s=m.useCallback(async()=>{o(null);try{const l=await i();if(!l)return;const{jsPDF:h}=await sh(async()=>{const{jsPDF:y}=await import("./jspdf.es.min-YoYb8Omk.js").then(g=>g.j);return{jsPDF:y}},[]),d=l.width>l.height?"landscape":"portrait",p=new h({orientation:d,unit:"px",format:[l.width,l.height],hotfixes:["px_scaling"]});p.addImage(l.dataUrl,"PNG",0,0,l.width,l.height),p.save(hX(e,"pdf"))}catch(l){o(l instanceof Error?l.message:String(l))}},[i,e]),c=m.useCallback(async()=>{const l=await i();return l==null?void 0:l.dataUrl},[i]);return{exportPdf:s,exportPng:a,capturePreview:c,lastError:n,clearError:r}},iit=12,ait=1200;function sit(e,t={}){const n=t.idleMs??ait;let o,r=null,i=null;const a=typeof requestAnimationFrame<"u",s=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},c=()=>{i!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(i),i=null},l=()=>{if(i=null,!r)return;const{clientX:y,clientY:g}=r;r=null;const k=e.getBoundingClientRect();e.style.setProperty("--mx",`${y-k.left}px`),e.style.setProperty("--my",`${g-k.top}px`),e.dataset.active="true",s(),o=setTimeout(()=>{e.dataset.active="false",o=void 0},n)};return{onMove:y=>{if(r={clientX:y.clientX,clientY:y.clientY},!a){l();return}i===null&&(i=requestAnimationFrame(l))},onLeave:()=>{c(),r=null,s(),e.dataset.active="false"},dispose:()=>{c(),r=null,s()}}}function cit(){const e=m.useRef(null),t=je(a=>a.transform,(a,s)=>a[0]===s[0]&&a[1]===s[1]&&a[2]===s[2]),[n,o,r]=t,i=iit*r;return m.useEffect(()=>{var d;const a=e.current;if(!a)return;const s=(d=a.parentElement)==null?void 0:d.querySelector(".react-flow__pane");if(!s)return;const{onMove:c,onLeave:l,dispose:h}=sit(a);return s.addEventListener("mousemove",c,{passive:!0}),s.addEventListener("mouseleave",l,{passive:!0}),()=>{s.removeEventListener("mousemove",c),s.removeEventListener("mouseleave",l),h()}},[]),f.jsx("div",{ref:e,className:"glow-overlay","data-active":"false","data-testid":"canvas-glow-overlay",style:{backgroundPosition:`${n}px ${o}px`,backgroundSize:`${i}px ${i}px`}})}const lit="Hide inspector",dit="Open inspector";function uit({open:e,onToggle:t}){const n=e?v0:S2,o=e?lit:dit;return f.jsx(I0,{delayDuration:300,children:f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"ghost",size:"icon","data-testid":"inspector-toggle","aria-pressed":e,"aria-label":o,onClick:t,className:"sf:h-8 sf:w-8",children:f.jsx(n,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsx(fu,{children:o})]})})}const hit={showToolbar:!0,showStyleStrip:!0,showDetailPanel:!0,showStatusBadges:!0,showResizeHandles:!0,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!0,enableContextMenu:!0,enableDragDrop:!0,enableImageDrop:!0,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!0},fit={showToolbar:!0,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!0,showResizeHandles:!1,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!1},pit={showToolbar:!1,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!1,showResizeHandles:!1,showControls:!1,showShareMenu:!1,showMiniMap:!1,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!1,enablePan:!1,enableSelection:!1,enableNodeMove:!1,enableEmbed:!1,enableAlignmentGuides:!1};function yit(e){const t=e.mode==="edit"?hit:e.mode==="mini"?pit:fit;return{showToolbar:e.showToolbar??t.showToolbar,showStyleStrip:e.showStyleStrip??t.showStyleStrip,showDetailPanel:e.showDetailPanel??t.showDetailPanel,showStatusBadges:e.showStatusBadges??t.showStatusBadges,showResizeHandles:e.showResizeHandles??t.showResizeHandles,showControls:e.showControls??t.showControls,showShareMenu:e.showShareMenu??t.showShareMenu,showMiniMap:e.showMiniMap??t.showMiniMap,enableKeyboard:e.enableKeyboard??t.enableKeyboard,enableContextMenu:e.enableContextMenu??t.enableContextMenu,enableDragDrop:e.enableDragDrop??t.enableDragDrop,enableImageDrop:e.enableImageDrop??t.enableImageDrop,enableZoom:e.enableZoom??t.enableZoom,enablePan:e.enablePan??t.enablePan,enableSelection:e.enableSelection??t.enableSelection,enableNodeMove:e.enableNodeMove??t.enableNodeMove,enableEmbed:e.enableEmbed??t.enableEmbed,enableAlignmentGuides:e.enableAlignmentGuides??t.enableAlignmentGuides,alignmentSnapThreshold:e.alignmentSnapThreshold}}const py=40,fX=4,Wh={padding:.15,duration:300,includeHiddenNodes:!1};function mit(e){return e===void 0||e===!1?{onMount:!1,onExternalNodeChange:!1}:e===!0?{onMount:!0,onExternalNodeChange:!0}:{onMount:e.onMount??!0,onExternalNodeChange:e.onExternalNodeChange??!0}}const pX=e=>{if("clientX"in e)return{clientX:e.clientX,clientY:e.clientY};const t=e.changedTouches[0]??e.touches[0];return t?{clientX:t.clientX,clientY:t.clientY}:null},git=(e,t)=>{var o;const n=document.elementsFromPoint(e,t);for(const r of n){const i=(o=r.closest)==null?void 0:o.call(r,".react-flow__node");if(i)return i}return null},Kie=15,VD=(e,t,n)=>{const o=git(t,n);if(o)return o;if(!e)return null;let r=null,i=Kie;const a=e.querySelectorAll(".react-flow__node");for(const s of a){const c=s.getBoundingClientRect();if(c.width===0||c.height===0)continue;const l=Math.max(c.left-t,0,t-c.right),h=Math.max(c.top-n,0,n-c.bottom),d=Math.hypot(l,h);d<=i&&(r=s,i=d)}return r};function yX(e,t,n,o,r){if(e==="source"?(o==null?void 0:o.targetPin)!==void 0||(o==null?void 0:o.targetHandleAutoPicked)===!1:(o==null?void 0:o.sourcePin)!==void 0||(o==null?void 0:o.sourceHandleAutoPicked)===!1)return;const a=e==="source"?n:t,s=e==="source"?t:n,c=r(a),l=r(s);if(!c||!l)return;const h=c.measured.width??c.width??0,d=c.measured.height??c.height??0,p=l.measured.width??l.width??0,y=l.measured.height??l.height??0;if(h===0||d===0||p===0||y===0)return;const g={x:c.internals.positionAbsolute.x,y:c.internals.positionAbsolute.y,w:h,h:d},k={x:l.internals.positionAbsolute.x+p/2,y:l.internals.positionAbsolute.y+y/2};return cOe(g,wf(g,k))}function kit(e,t,n,o){if(o===null)return"no-op";const r=e==="source"?t:n;return o===(e==="source"?n:t)?"self-loop":o===r?"pin-own":"reconnect-and-pin"}const vit=(e,t)=>{if(!t)return e;const n=t.data?{...e.data,...t.data}:e.data;return{...e,...t,data:n}},xit=(e,t)=>t?{...e,...t}:e,wit={rectangle:lGe,ellipse:io,sticky:io,text:io,database:io,server:io,user:io,queue:io,cloud:io,diamond:io,hexagon:io,triangle:io,parallelogram:io,document:io,image:JWe,icon:wOe,html:KWe,component:lWe,linkflow:oGe},Mit={editableEdge:pGe},bit={zIndex:0},_it={hideAttribution:!0},Cit=8,mX=(e,t)=>e?typeof e=="string"?`url('#${e}')`:`url('#${`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`}')`:void 0,Sit=e=>function({fromX:n,fromY:o,toX:r,toY:i,fromPosition:a,toPosition:s,connectionLineStyle:c}){const l=je(me=>e.current?me.edges.find(Ie=>Ie.reconnectable===!0)??null:null),h=l==null?void 0:l.data,d=l?null:c0(ji).connector,p=je(me=>{var Ue;const Ie=me.connection;return((Ue=Ie==null?void 0:Ie.fromHandle)==null?void 0:Ue.nodeId)??null}),y=je(me=>l!=null&&l.source?me.nodeLookup.get(l.source)??null:null),g=je(me=>l!=null&&l.target?me.nodeLookup.get(l.target)??null:null),k=je(me=>p?me.nodeLookup.get(p)??null:null),x=(l==null?void 0:l.source)===p,v=l?x?y:g:k,M=x?g:y,w=x?h==null?void 0:h.sourcePin:h==null?void 0:h.targetPin,b=x?h==null?void 0:h.sourceHandleAutoPicked:h==null?void 0:h.targetHandleAutoPicked;let C=n,_=o,S=a,L=null;if(v){const me=v.measured.width??v.width??0,Ie=v.measured.height??v.height??0;if(me>0&&Ie>0){L={x:v.internals.positionAbsolute.x,y:v.internals.positionAbsolute.y,w:me,h:Ie};let Ue=null;if(w)Ue=gz(L,w);else if(b!==!1&&M){const ut=M.measured.width??M.width??0,et=M.measured.height??M.height??0;if(ut>0&&et>0){const le={x:M.internals.positionAbsolute.x+ut/2,y:M.internals.positionAbsolute.y+et/2};Ue=wf(L,le)}}Ue&&(C=Ue.x,_=Ue.y,S=BD[Ue.side])}}const j=je(me=>me.transform[2]),I=je(me=>me.transform[0]),R=je(me=>me.transform[1]),E=je(me=>me.nodeLookup),V=je(me=>{var Ie;return((Ie=me.connection.toHandle)==null?void 0:Ie.nodeId)??null}),$=je(me=>{var Ie;return((Ie=me.connection.pointer)==null?void 0:Ie.x)??null}),T=je(me=>{var Ie;return((Ie=me.connection.pointer)==null?void 0:Ie.y)??null}),D=$!==null&&j>0?($-I)/j:null,F=T!==null&&j>0?(T-R)/j:null;let z=r,A=i,N=s,W=!1;if(j>0){const me=Kie/j,Ie=l?x?l.source:l.target:null;let Ue=null;if(V&&V!==Ie){const ut=E.get(V)??null;ut&&(Ue=ut)}if(!Ue){let ut=me;for(const et of E.values()){if(Ie&&et.id===Ie||v&&et.id===v.id)continue;const le=et.measured.width??et.width??0,rn=et.measured.height??et.height??0;if(le===0||rn===0)continue;const Gt=et.internals.positionAbsolute.x,J=et.internals.positionAbsolute.y,H=Math.max(Gt-r,0,r-(Gt+le)),Q=Math.max(J-i,0,i-(J+rn)),be=Math.hypot(H,Q);be<=ut&&(ut=be,Ue=et)}}if(Ue){const ut=Ue.measured.width??Ue.width??0,et=Ue.measured.height??Ue.height??0;if(ut>0&&et>0){const le={x:Ue.internals.positionAbsolute.x,y:Ue.internals.positionAbsolute.y,w:ut,h:et},Gt=uO(le,D!==null&&F!==null?{x:D,y:F}:{x:r,y:i}),J=gz(le,Gt);if(z=J.x,A=J.y,N=BD[J.side],!l&&L){const H={x:le.x+le.w/2,y:le.y+le.h/2},Q=wf(L,H);C=Q.x,_=Q.y,S=BD[Q.side],W=!0}}}}const O=l?(h==null?void 0:h.path)==="step":(d==null?void 0:d.path)==="step",[P]=O?vf({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:A,targetPosition:N,borderRadius:Cit}):xR({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:A,targetPosition:N}),Y=!l&&v?{...d!=null&&d.style?Mee[d.style]:{},...Ct(d==null?void 0:d.color,"edge"),strokeWidth:(d==null?void 0:d.borderSize)??2}:void 0,Z=(l==null?void 0:l.style)??Y??c??void 0,te=je(me=>me.rfId),ae=x?l==null?void 0:l.markerStart:l==null?void 0:l.markerEnd,oe=x?l==null?void 0:l.markerEnd:l==null?void 0:l.markerStart,re=mX(ae,te),se=mX(oe,te),ve=Z==null?void 0:Z.stroke,ke=(d==null?void 0:d.direction)??"forward",ge=((d==null?void 0:d.headShape)??"arrow")==="arrow",Pe=((d==null?void 0:d.tailShape)??(d==null?void 0:d.headShape)??"arrow")==="arrow",Be=W&&!!ve,De=Be&&ge&&(ke==="forward"||ke==="both")?kX(z,A,N):null,pe=Be&&Pe&&(ke==="backward"||ke==="both")?kX(C,_,S):null;return f.jsxs(f.Fragment,{children:[f.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Z,markerStart:re,markerEnd:se}),De?f.jsx("polygon",{points:De,fill:ve??void 0}):null,pe?f.jsx("polygon",{points:pe,fill:ve??void 0}):null]})},gX=11,yy=5.5;function kX(e,t,n){const o=n===ue.Left?{x:1,y:0}:n===ue.Right?{x:-1,y:0}:n===ue.Top?{x:0,y:1}:{x:0,y:-1},r={x:-o.y,y:o.x},i=e-o.x*gX,a=t-o.y*gX,s=i+r.x*yy,c=a+r.y*yy,l=i-r.x*yy,h=a-r.y*yy;return`${e},${t} ${s},${c} ${l},${h}`}const BD={top:ue.Top,right:ue.Right,bottom:ue.Bottom,left:ue.Left};function Lit({storeApiRef:e}){const t=St();return m.useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null)}),[t,e]),null}function Nit({wrapperRef:e}){const t=je(o=>o.transform[2]),n=e.current;return n&&n.style.setProperty("--rf-zoom",String(t)),null}const Iit=new Set(["INPUT","TEXTAREA","SELECT"]),JO=e=>e?Iit.has(e.tagName)?!0:e instanceof HTMLElement&&e.isContentEditable:!1;function Ait(e){const{event:t,selectedNodeIds:n,hasClipboard:o,activeElement:r,onCopySelection:i,onPasteSelection:a}=e;if(!(t.metaKey||t.ctrlKey)||t.shiftKey||t.altKey)return!1;const s=t.key.toLowerCase();return s!=="c"&&s!=="v"||JO(r)?!1:s==="c"?n.length===0||!i?!1:(t.preventDefault(),i([...n]),!0):!o||!a?!1:(t.preventDefault(),a(),!0)}const vX=(e,t)=>{var n;return((n=e==null?void 0:e[t])==null?void 0:n.status)??"idle"},Eit=(e,t)=>{var n;return(n=e==null?void 0:e[t])==null?void 0:n.status},jit=(e,t)=>{var n,o;return((n=e==null?void 0:e[t])==null?void 0:n.status)==="error"?(o=e[t])==null?void 0:o.error:void 0};function $it(e,t){var QV,JV,eB;const{mode:n,adapter:o,topLeftSlot:r,topRightSlot:i,projectId:a,flowSlug:s,fileBaseUrl:c,apiBaseUrl:l="/api",studioBaseUrl:h="",nodes:d,connectors:p,selectedNodeIds:y,selectedConnectorIds:g,onSelectionChange:k,runtime:x,onPlayNode:v,onNodePositionChange:M,onNodePositionsChange:w,onNodeResize:b,onNodeResizeEnd:C,onHtmlNodeFitToContent:_,onComponentNodeFitToContent:S,onMultiResize:L,onNodeNameChange:j,onNodeDescriptionChange:I,onConnectorLabelChange:R,onCreateShapeNode:E,onCreateIconNode:V,onCreateLinkflowNode:$,onCreateImageFromFile:T,onRetryImageUpload:D,onCreateHtmlNode:F,onCreateConnector:z,onReconnectConnector:A,onReorderNode:N,onDeleteNode:W,onCopyNode:O,onPasteAt:P,hasClipboard:Y,onCopySelection:Z,onPasteSelection:te,selectedNodes:ae,selectedConnectors:oe,onStyleNode:re,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRfInit:Be,onTidy:De,onNodeClick:pe,onConnectorClick:me,onPaneClick:Ie,onCreateAndConnectFromPane:Ue,pendingEditNodeId:ut,iconPickerOpen:et,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,onRequestIconReplace:J,onPinEndpoint:H,onUnpinEndpoint:Q,canvasMode:be,onCanvasModeChange:Ee,disableSidebar:wt,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,autoFitView:Fe,autoFitViewSignal:dn,customIcons:gr,onExportToCloud:pt,onNodeDragStart:dt,onNodeDragStop:Vn,onViewportChange:mi,history:Qt,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:yu,showStatusBadges:mu,showResizeHandles:gu,showControls:ku,showShareMenu:vu,showMiniMap:xu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:gi,enablePan:ki,enableSelection:wu,enableNodeMove:Mu,enableEmbed:Co,enableAlignmentGuides:Qi,alignmentSnapThreshold:Ji}=e,He=m.useMemo(()=>yit({mode:n,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:yu,showStatusBadges:mu,showResizeHandles:gu,showControls:ku,showShareMenu:vu,showMiniMap:xu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:gi,enablePan:ki,enableSelection:wu,enableNodeMove:Mu,enableEmbed:Co,enableAlignmentGuides:Qi,alignmentSnapThreshold:Ji}),[n,Pt,Jt,yu,mu,gu,ku,vu,xu,hs,fs,ps,ys,gi,ki,wu,Mu,Co,Qi,Ji]),Ht=n==="edit",ms=m.useRef(He);m.useEffect(()=>{ms.current=He},[He]);const bu=Fe??(n==="mini"?!0:void 0),vi=m.useMemo(()=>mit(bu),[bu]),kr=x==null?void 0:x.runs,xi=x==null?void 0:x.statuses,Sn=(QV=x==null?void 0:x.pendingOverrides)==null?void 0:QV.nodes,Oo=(JV=x==null?void 0:x.pendingOverrides)==null?void 0:JV.connectors,kn=m.useRef(null),Ot=m.useRef(null),ea=m.useRef(!1),gs=m.useRef(!1),Fo=m.useRef(!1),ta=m.useRef(vi);ta.current=vi,m.useEffect(()=>{if(ea.current||!vi.onMount||d.length===0)return;const q=Ot.current;q&&(q.fitView(Wh),ea.current=!0)},[d,vi.onMount]);const wi=m.useRef(null),en=be.kind==="draw"?be.shape:null,qo=be.kind==="draw-icon"?be.iconName:null,So=en!==null||qo!==null,vr=be.kind==="hand",na=m.useRef(new Map),_u=m.useCallback((q,X)=>(na.current.set(q,X),()=>{na.current.get(q)===X&&na.current.delete(q)}),[]),Cu=m.useRef(null),Lo=m.useCallback(()=>Cu.current,[]),ks=m.useCallback(q=>{Cu.current=q},[]),[Vo,xr]=m.useState(!1),Su=m.useRef(!1);m.useEffect(()=>{Su.current=Vo},[Vo]);const Ln=m.useRef(!1),no=m.useRef(!1),oo=m.useRef(!1),[Nn,Mi]=m.useState(null),xh=m.useRef(null);m.useEffect(()=>{xh.current=Nn},[Nn]),m.useCallback(()=>{Mi(null)},[]);const rT=m.useMemo(()=>Sit(oo),[]),Lu=m.useRef(null),Lt=m.useRef(null),oa=m.useCallback(q=>{const X=kn.current;if(!X){Lu.current=q;return}const ie=Lu.current;if(ie&&ie!==q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(ie)}"]`);ce==null||ce.removeAttribute("data-connect-source")}if(q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-source","true")}Lu.current=q},[]),wr=m.useCallback(q=>{const X=kn.current,ie=Lt.current;if(ie!==q){if(X&&ie){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(ie)}"]`);ce==null||ce.removeAttribute("data-connect-target")}if(X&&q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-target","true")}Lt.current=q}},[]),No=m.useCallback(()=>{oa(null),wr(null)},[oa,wr]);m.useEffect(()=>{if(!Vo){wr(null);return}let q=null,X=null;const ie=()=>{q=null;const de=X;if(X=null,!de)return;const Ae=VD(kn.current,de.clientX,de.clientY),xe=(Ae==null?void 0:Ae.getAttribute("data-id"))??null;if(xe&&xe===Lu.current){wr(null);return}wr(xe)},ce=de=>{X={clientX:de.clientX,clientY:de.clientY},q===null&&(q=requestAnimationFrame(ie))};return document.addEventListener("pointermove",ce,{passive:!0}),()=>{document.removeEventListener("pointermove",ce),q!==null&&cancelAnimationFrame(q)}},[Vo,wr]);const[Mr,wh]=m.useState(null),[ra,vs]=m.useState(null),Bo=m.useRef(null),xs=m.useRef(null),ws=m.useRef(null),Ms=m.useRef(null),ia=m.useRef(!1);m.useEffect(()=>{Bo.current=en},[en]),m.useEffect(()=>{xs.current=qo},[qo]);const Mh=m.useCallback(()=>{Ee({kind:"select"}),wh(null),vs(null),Bo.current=null,xs.current=null,ws.current=null,Ms.current=null,ia.current=!1},[Ee]);m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{var de,Ae;if(X.key!=="Escape"||JO(document.activeElement))return;if(Bo.current||xs.current){X.preventDefault(),Mh();return}if(Su.current){X.preventDefault(),Ln.current=!0,no.current=!0;try{(de=wi.current)==null||de.getState().cancelConnection()}catch{}document.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,button:0})),xr(!1);return}if(xh.current){X.preventDefault(),Mi(null);return}const ie=Wo.current.size>0,ce=bi.current.size>0;(ie||ce)&&(X.preventDefault(),(Ae=Nr.current)==null||Ae.call(Nr,[],[]))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Mh,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{const ie=jOe(X,{isEditableActive:JO(document.activeElement)});ie&&Qt&&(X.preventDefault(),X.stopPropagation(),ie==="undo"?Qt.undo():Qt.redo())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Qt,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{Ait({event:X,selectedNodeIds:y,hasClipboard:!!Y,activeElement:document.activeElement,onCopySelection:Z,onPasteSelection:te})};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[y,Y,Z,te,He.enableKeyboard]);const ip=m.useCallback(q=>{var ce,de;if(!Bo.current&&!xs.current)return;const X=q.target;if(!(X!=null&&X.classList.contains("react-flow__pane")))return;const ie={x:q.clientX,y:q.clientY};ia.current=!0,ws.current=ie,Ms.current=ie,wh(ie),vs(ie);try{(de=(ce=q.currentTarget).setPointerCapture)==null||de.call(ce,q.pointerId)}catch{}q.preventDefault(),q.stopPropagation()},[]),iT=m.useCallback(q=>{if(!ia.current)return;const X={x:q.clientX,y:q.clientY};Ms.current=X,vs(X)},[]),ap=m.useCallback(q=>{var Sh,tB;if(!ia.current)return;ia.current=!1;try{(tB=(Sh=q.currentTarget).releasePointerCapture)==null||tB.call(Sh,q.pointerId)}catch{}const X=ws.current,ie=Ms.current,ce=Bo.current,de=xs.current,Ae=Ot.current;if(Mh(),!X||!ie||!Ae||!ce&&!de)return;const xe=Math.min(X.x,ie.x),Ne=Math.min(X.y,ie.y),nt=Math.max(X.x,ie.x),ft=Math.max(X.y,ie.y),mt=nt-xe,Re=ft-Ne,Ut=Ae.screenToFlowPosition({x:xe,y:Ne}),ro=Ae.screenToFlowPosition({x:nt,y:ft}),gt=ro.x-Ut.x,kt=ro.y-Ut.y;if(ce==="linkflow"){const Lh=mt<fX&&Re<fX,yT=Lh?Ez.width:Math.max(gt,jz.width),mT=Lh?Ez.height:Math.max(kt,jz.height);$==null||$(Ut,{width:yT,height:mT});return}if(de){const Lh=mt<py||Re<py,yT=Lh?G0.width:gt,mT=Lh?G0.height:kt;V==null||V(de,Ut,{width:yT,height:mT});return}if(!ce)return;const zt=mt<py||Re<py,qe=zt?Az[ce].width:gt,_i=zt?Az[ce].height:kt;E==null||E(ce,Ut,{width:qe,height:_i})},[Mh,E,V,$]),br=m.useRef(!1),U=m.useRef(!1),B=m.useRef(null),G=m.useRef({}),K=m.useRef(new Map),ne=m.useCallback(()=>{var q;gs.current&&(U.current||br.current||(gs.current=!1,(q=Ot.current)==null||q.fitView(Wh)))},[]),ze=m.useCallback(q=>{U.current=q,q||ne()},[ne]),Mt=m.useMemo(()=>({beginResize:(q,X)=>{var ie;return(ie=B.current)==null?void 0:ie.beginResize(q,X)},applyResizeSnap:(q,X)=>{var ie;return((ie=B.current)==null?void 0:ie.applyResizeSnap(q,X))??{snappedRect:q,guides:[]}},endResize:()=>{var q;return(q=B.current)==null?void 0:q.endResize()}}),[]);m.useEffect(()=>{var q;if(!Fo.current){Fo.current=!0;return}if(ta.current.onExternalNodeChange){if(U.current||br.current){gs.current=!0;return}(q=Ot.current)==null||q.fitView(Wh)}},[dn]);const Ye=!!N||!!W||!!O||!!P||!!Q,[ht,In]=m.useState(null),[Io,Te]=m.useState(!1),[un,_r]=m.useState(null),[Cr,Sr]=m.useState(null),Uo=m.useRef(null),bh=m.useRef(null);m.useEffect(()=>{if(!ht)return;const q=bh.current;if(!q)return;const X=new MouseEvent("contextmenu",{clientX:ht.x,clientY:ht.y,bubbles:!0,cancelable:!0,button:2,buttons:2});q.dispatchEvent(X)},[ht]);const Lr=m.useCallback(q=>{const X=Uo.current;!X||!N||N(X,q)},[N]),Xe=m.useCallback(()=>{const q=Uo.current;!q||!W||W(q)},[W]),sn=m.useCallback(()=>{const q=Uo.current;!q||!O||O(q)},[O]),An=m.useCallback(()=>{const q=Uo.current;!q||!J||J(q)},[J]);m.useCallback((q,X,ie,ce,de)=>{ms.current.enableContextMenu&&(Uo.current=null,Te(!1),_r(null),Sr({connectorId:q,kind:X,pinned:ie}),In({x:ce,y:de}))},[]);const Ao=m.useCallback(()=>{const q=Cr;!q||!Q||Q(q.connectorId,q.kind)},[Cr,Q]),Nu=m.useCallback(()=>{if(!P)return;const q=ht,X=Ot.current;if(!q||!X)return;const ie=X.screenToFlowPosition({x:q.x,y:q.y});P(ie)},[ht,P]),Iu=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent||""),aT=Iu?"⌘C":"Ctrl+C",sp=Iu?"⌘V":"Ctrl+V",Au=m.useMemo(()=>new Set(y),[y]),aa=m.useMemo(()=>new Set(g),[g]),kae=m.useMemo(()=>{if(y.length<2)return[];const q=Sn,X=[];for(const ie of y){const ce=d.find(Ne=>Ne.id===ie);if(!ce)continue;const de=q==null?void 0:q[ie],Ae=(de==null?void 0:de.data)??{},xe=ce.data;X.push({id:ie,position:(de==null?void 0:de.position)??ce.position,data:{width:Ae.width??xe.width,height:Ae.height??xe.height}})}return X},[d,Sn,y]),vae=ae??[],cp=m.useMemo(()=>{const q=de=>{const Ae=Ht?void 0:K.current.get(de.id),xe={id:de.id,type:de.type,position:Ae??de.position,data:{...de.data,projectId:a,fileBaseUrl:c,projectSlug:de.type==="component"?a:void 0,flowSlug:de.type==="component"?s:void 0,apiBaseUrl:de.type==="component"?l:void 0,onRetryUpload:D,status:Eit(kr,de.id),errorMessage:jit(kr,de.id),statusReport:xi==null?void 0:xi[de.id],onPlay:v,onResize:b,onResizeEnd:C,setResizing:ze,resizeAlignment:He.enableAlignmentGuides?Mt:void 0,onFitToContent:de.type==="html"?_:de.type==="component"?S:void 0,onNameChange:(()=>{if(Ht&&de.type!=="ellipse")return j})(),onDescriptionChange:(()=>{if(Ht&&(de.type==="rectangle"||de.type==="ellipse"||de.type==="sticky"))return I})(),onIconChange:(()=>{if(Ht&&!(de.type!=="rectangle"&&de.type!=="component"))return Me})(),autoEditOnMount:ut===de.id?!0:void 0},selected:Au.has(de.id)};return(!(de.data.autoSize===!0)||U.current)&&(de.data.width!==void 0&&(xe.width=de.data.width),de.data.height!==void 0&&(xe.height=de.data.height)),Au.has(de.id)||(xe.connectable=!1),xe},X=d.map(de=>q(vit(de,Sn==null?void 0:Sn[de.id]))),ie=new Set(d.map(de=>de.id)),ce=[];if(Sn)for(const[de,Ae]of Object.entries(Sn)){if(ie.has(de))continue;const xe=Ae;typeof xe.type!="string"||!xe.position||!xe.data||ce.push(q({...xe,id:de}))}return[...X,...ce]},[a,s,c,l,d,Au,kr,xi,v,b,C,_,S,ze,Mt,He.enableAlignmentGuides,Sn,j,I,Me,D,ut,Ht]),[sT,cT]=m.useState(cp);m.useEffect(()=>{br.current||U.current||cT(cp)},[cp]),m.useEffect(()=>{Eu.current=sT},[sT]);const Wo=m.useRef(Au);m.useEffect(()=>{Wo.current=Au},[Au]);const Nr=m.useRef(k);m.useEffect(()=>{Nr.current=k},[k]);const bi=m.useRef(aa);m.useEffect(()=>{bi.current=aa},[aa]);const Eu=m.useRef(cp),bs=m.useRef(!1),lp=m.useRef(new Set),dp=m.useRef(new Set),lT=m.useRef(new Set),dT=m.useRef(new Set),sa=m.useRef(null),xae=m.useCallback(q=>{var zt;const X=B.current,ie=X?X.interceptChanges(q,G.current):q,ce=bs.current?lT.current:(zt=sa.current)!=null&&zt.shift?sa.current.nodeIds:null,de=ce&&ce.size>0?ie.filter(qe=>qe.type!=="select"?!0:!(qe.selected===!1&&ce.has(qe.id))):ie,Ae=new Set;for(const qe of de)qe.type==="select"&&Ae.add(qe.id);const xe=UJ(de,Eu.current),Ne=new Set;if(U.current)for(const qe of de)qe.type==="dimensions"&&Ne.add(qe.id);const nt=Ne.size===0?xe:xe.map(qe=>!Ne.has(qe.id)||qe.width===void 0&&qe.height===void 0?qe:{...qe,data:{...qe.data,...qe.width!==void 0?{width:qe.width}:{},...qe.height!==void 0?{height:qe.height}:{}}}),ft=Wo.current,mt=bs.current||ft.size===0?nt:nt.map(qe=>ft.has(qe.id)&&!Ae.has(qe.id)&&!qe.selected?{...qe,selected:!0}:qe);if(Eu.current=mt,cT(mt),Ae.size===0)return;if(bs.current){for(const qe of de)qe.type==="select"&&(qe.selected?lp.current.add(qe.id):lp.current.delete(qe.id));return}const Re=Nr.current;if(!Re)return;const Ut=mt.filter(qe=>qe.selected).map(qe=>qe.id),ro=Wo.current;ro.size===Ut.length&&Ut.every(qe=>ro.has(qe))||(Wo.current=new Set(Ut),Re(Ut,[...bi.current]))},[]),up=m.useRef([]),wae=m.useCallback(q=>{var mt;const X=bs.current?dT.current:(mt=sa.current)!=null&&mt.shift?sa.current.edgeIds:null,ie=X&&X.size>0?q.filter(Re=>Re.type!=="select"?!0:!(Re.selected===!1&&X.has(Re.id))):q,ce=new Set;for(const Re of ie)Re.type==="select"&&ce.add(Re.id);if(ce.size===0)return;if(bs.current){for(const Re of ie)Re.type==="select"&&(Re.selected?dp.current.add(Re.id):dp.current.delete(Re.id));return}const de=Nr.current;if(!de)return;const xe=WJ(ie,up.current).filter(Re=>Re.selected).map(Re=>Re.id),Ne=bi.current;Ne.size===xe.length&&xe.every(Re=>Ne.has(Re))||(bi.current=new Set(xe),de([...Wo.current],xe))},[]),Mae=m.useCallback(q=>{bs.current=!0;const X=sa.current,ie=(X==null?void 0:X.shift)??(q.shiftKey||q.metaKey||q.ctrlKey);lT.current=ie?new Set((X==null?void 0:X.nodeIds)??Wo.current):new Set,dT.current=ie?new Set((X==null?void 0:X.edgeIds)??bi.current):new Set,lp.current=new Set(lT.current),dp.current=new Set(dT.current)},[]),bae=m.useCallback(()=>{bs.current=!1,sa.current=null;const q=Nr.current;if(!q)return;const X=[...lp.current],ie=new Set(X),ce=new Set(dp.current);for(const nt of up.current)ie.has(nt.source)&&ie.has(nt.target)&&ce.add(nt.id);const de=Wo.current,Ae=bi.current,xe=de.size===ie.size&&X.every(nt=>de.has(nt)),Ne=Ae.size===ce.size&&[...ce].every(nt=>Ae.has(nt));xe&&Ne||(Wo.current=new Set(X),bi.current=new Set(ce),q(X,[...ce]))},[]),_ae=m.useCallback(q=>{if(sa.current=null,Bo.current||q.button!==0)return;const X=q.target;X!=null&&X.classList.contains("react-flow__pane")&&(sa.current={shift:q.shiftKey||q.metaKey||q.ctrlKey,nodeIds:new Set(Wo.current),edgeIds:new Set(bi.current)})},[]),Cae=m.useCallback(q=>{if(!ms.current.enableContextMenu||Wo.current.size<2)return;const ie=q.target;ie!==bh.current&&(ie!=null&&ie.closest(".seeflow-connector-endpoint-dot")||(q.preventDefault(),q.stopPropagation(),Uo.current=null,Te(!0),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})))},[]),Sae=m.useCallback(q=>{const X=q.dataTransfer;if(!X)return;const ie=X.types?Array.from(X.types):[],ce=ie.includes("Files"),de=ie.includes(BG),Ae=ce&&!!T&&He.enableImageDrop,xe=de&&!!F&&He.enableDragDrop;if(!(!Ae&&!xe)){q.preventDefault();try{X.dropEffect="copy"}catch{}}},[T,F,He.enableImageDrop,He.enableDragDrop]),Lae=m.useCallback(q=>{const X=q.dataTransfer;if((X!=null&&X.types?Array.from(X.types):[]).includes(BG)&&F&&He.enableDragDrop){q.preventDefault();const Ae=Ot.current;if(!Ae)return;const xe=Ae.screenToFlowPosition({x:q.clientX,y:q.clientY});F({position:xe});return}if(!T||!He.enableImageDrop)return;const de={x:q.clientX,y:q.clientY};q.preventDefault(),ZEe({dataTransfer:X,clientPos:de,rfInstance:Ot.current,computeDims:YEe,dispatch:T})},[T,F,He.enableImageDrop,He.enableDragDrop]),RV=!!A,TV=aa.size===1?[...aa][0]:null,uT=m.useMemo(()=>{const q=Ne=>{const nt=vX(kr,Ne.source)==="running"||vX(kr,Ne.target)==="running",ft=aa.has(Ne.id),mt=nOe(Ne,nt,ft);ft&&(mt.selected=!0);const Re=RV&&Ne.id===TV,Ut=Re?{...mt,reconnectable:!0}:mt;return{...Ut,data:{...Ut.data,onLabelChange:Ht?R:void 0,reconnectable:Re,registerEditHandle:_u,getEditingConnectorId:Lo,setEditingConnectorId:ks}}},X=new Set(p.map(Ne=>Ne.id)),ie=p.map(Ne=>q(xit(Ne,Oo==null?void 0:Oo[Ne.id]))),ce=[];if(Oo)for(const[Ne,nt]of Object.entries(Oo)){if(X.has(Ne))continue;const ft=nt;typeof ft.source!="string"||typeof ft.target!="string"||ce.push(q({...ft,id:Ne}))}const de=[...ie,...ce],Ae=[],xe=[];for(const Ne of de)aa.has(Ne.id)?xe.push(Ne):Ae.push(Ne);return[...Ae,...xe]},[p,kr,aa,TV,Oo,R,RV,_u,Lo,ks,Ht]);m.useEffect(()=>{up.current=uT},[uT]);const _h=o??null,Nae=m.useMemo(()=>{if(_h!=null&&_h.computeLayout)return async()=>{const q=Ot.current,X=Eu.current;if(X.length<2)return;const ie=X.map(gt=>{var Sh;const kt=(Sh=q==null?void 0:q.getInternalNode(gt.id))==null?void 0:Sh.measured,zt=gt.data,qe=(kt==null?void 0:kt.width)??zt.width??200,_i=(kt==null?void 0:kt.height)??zt.height??120;return{id:gt.id,type:gt.type,width:qe,height:_i}}),ce=new Map;for(const gt of X)ce.set(gt.id,gt.position);const de=up.current.map(gt=>({id:gt.id,source:gt.source,target:gt.target})),Ae=_h.computeLayout;if(!Ae)return;const xe=await Ae(ie,de),Ne=new Map;for(const[gt,kt]of Object.entries(xe.nodes))Ne.set(gt,kt.position);let nt=Number.POSITIVE_INFINITY,ft=Number.POSITIVE_INFINITY,mt=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY;for(const gt of ie){const kt=ce.get(gt.id);if(!kt)continue;kt.x<nt&&(nt=kt.x),kt.y<ft&&(ft=kt.y);const zt=Ne.get(gt.id);zt&&(zt.x<mt&&(mt=zt.x),zt.y<Re&&(Re=zt.y))}const Ut=Number.isFinite(nt)&&Number.isFinite(mt)?nt-mt:0,ro=Number.isFinite(ft)&&Number.isFinite(Re)?ft-Re:0;cT(gt=>gt.map(kt=>{const zt=Ne.get(kt.id);return zt?{...kt,position:{x:zt.x+Ut,y:zt.y+ro}}:kt}))}},[_h]),hp=De??(Ht?void 0:Nae),fp=m.useRef(!1),DV=m.useRef(null),Iae=m.useCallback(q=>{var Ne;if(!Ht||!z)return;const{source:X,target:ie}=q;if(!X||!ie||X===ie)return;fp.current=!0;const ce=((Ne=DV.current)==null?void 0:Ne.nodeId)??null,de=ce!==null&&ce===ie&&ce!==X;z(de?ie:X,de?X:ie)},[z,Ht]),hT=m.useCallback(q=>{const X=ie=>{if(!ie)return!1;const ce=Eu.current.find(de=>de.id===ie);return ce?ce.type==="text":!1};return!X(q.source)&&!X(q.target)},[]),Aae=m.useCallback((q,X)=>{var mt;xr(!1),No();const ie=fp.current;if(fp.current=!1,ie||oo.current)return;if(Ln.current){Ln.current=!1;return}if(!z)return;const ce=(mt=X.fromNode)==null?void 0:mt.id,de=X.fromHandle;if(!ce||!de)return;const Ae=pX(q);if(!Ae)return;const xe=VD(kn.current,Ae.clientX,Ae.clientY);if(!xe)return;const Ne=xe.getAttribute("data-id");if(!Ne||Ne===ce||!hT({source:ce,target:Ne,sourceHandle:null,targetHandle:null}))return;let nt;const ft=Ot.current;if(ft){const Re=ft.getInternalNode(Ne);if(Re){const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut>0&&ro>0){const gt=ft.screenToFlowPosition({x:Ae.clientX,y:Ae.clientY});nt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt)}}}z(ce,Ne,nt?{targetPin:nt}:void 0)},[z,No,hT]),pp=m.useRef(!1),Eae=m.useCallback((q,X)=>{if(!A)return;const{source:ie,target:ce,sourceHandle:de,targetHandle:Ae}=X;if(!ie||!ce||ie===ce)return;const xe={};if(ie!==q.source&&(xe.source=ie),ce!==q.target&&(xe.target=ce),typeof de=="string"&&de!==q.sourceHandle&&(xe.sourceHandle=de),typeof Ae=="string"&&Ae!==q.targetHandle&&(xe.targetHandle=Ae),xe.source===void 0&&xe.target===void 0&&xe.sourceHandle===void 0&&xe.targetHandle===void 0)return;(xe.source!==void 0||xe.sourceHandle!==void 0)&&(xe.sourceHandleAutoPicked=!1),(xe.target!==void 0||xe.targetHandle!==void 0)&&(xe.targetHandleAutoPicked=!1);const Ne=Ot.current;if(!(xe.source===void 0&&xe.target===void 0)&&Ne){const ft=xe.source!==void 0?"source":"target",mt=yX(ft,q.source,q.target,q.data,Re=>Ne.getInternalNode(Re)??null);mt&&(ft==="source"?xe.targetPin=mt:xe.sourcePin=mt)}pp.current=!0,A(q.id,xe)},[A]),jae=m.useCallback((q,X,ie,ce)=>{var qe;xr(!1),No(),oo.current=!1;const de=pp.current;if(pp.current=!1,de)return;if(no.current){no.current=!1;return}if(!A)return;const Ae=pX(q);let xe=((qe=ce.toNode)==null?void 0:qe.id)??null;if(!xe&&Ae){const _i=VD(kn.current,Ae.clientX,Ae.clientY);xe=(_i==null?void 0:_i.getAttribute("data-id"))??null}const Ne=ie==="source"?"target":"source",nt=kit(Ne,X.source,X.target,xe);if(nt==="no-op"||nt==="self-loop"||!Ae)return;const ft=Ot.current;if(!ft)return;const mt=nt==="pin-own"?Ne==="source"?X.source:X.target:xe,Re=ft.getInternalNode(mt);if(!Re)return;const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut===0||ro===0)return;const gt=ft.screenToFlowPosition({x:Ae.clientX,y:Ae.clientY}),kt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt);if(nt==="pin-own"){if(!H)return;H(X.id,Ne,kt);return}const zt=yX(Ne,X.source,X.target,X.data,_i=>ft.getInternalNode(_i)??null);Ne==="source"?A(X.id,{source:xe,sourceHandle:null,sourceHandleAutoPicked:!1,sourcePin:kt,...zt?{targetPin:zt}:{}}):A(X.id,{target:xe,targetHandle:null,targetHandleAutoPicked:!1,targetPin:kt,...zt?{sourcePin:zt}:{}})},[A,No,H]),_s=m.useMemo(()=>{var Ne;if(!Mr||!ra)return null;const q=(Ne=kn.current)==null?void 0:Ne.getBoundingClientRect(),X=(q==null?void 0:q.left)??0,ie=(q==null?void 0:q.top)??0,ce=Math.min(Mr.x,ra.x),de=Math.min(Mr.y,ra.y),Ae=Math.abs(ra.x-Mr.x),xe=Math.abs(ra.y-Mr.y);return{left:ce-X,top:de-ie,width:Ae,height:xe}},[Mr,ra]),ca=en?c0(ji).node:void 0,Ch=en==="linkflow",$ae=en&&!Ch?vne(en):"",Pae=en&&!Ch?xne(en,ca):void 0,zae=en==="text",[HV,OV]=m.useState(!1),[Rae,yp]=m.useState(!1),[Tae,FV]=m.useState(!1),[qV,Dae]=m.useState(()=>({canUndo:(Qt==null?void 0:Qt.canUndo)??!1,canRedo:(Qt==null?void 0:Qt.canRedo)??!1}));m.useEffect(()=>Qt?Qt.subscribe(Dae):void 0,[Qt]);const[fT,VV]=m.useState(!1),Hae=((eB=Ot.current)==null?void 0:eB.getViewport())??{x:0,y:0,zoom:1},BV=irt({enabled:He.enableAlignmentGuides,thresholdPx:He.alignmentSnapThreshold??6,viewport:Hae,rfNodesRef:Eu});B.current=BV;const Oae=Qt?qV.canUndo:!1,Fae=Qt?qV.canRedo:!1,la=rit({projectId:a,getReactFlow:()=>Ot.current});m.useImperativeHandle(t,()=>({exportPdf:la.exportPdf,exportPng:la.exportPng,openEmbedDialog:()=>FV(!0),capturePreview:la.capturePreview}),[la.exportPdf,la.exportPng,la.capturePreview]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=ce=>{if(!ce)return!1;const de=ce.tagName;return de==="INPUT"||de==="TEXTAREA"||de==="SELECT"?!0:ce instanceof HTMLElement&&ce.isContentEditable},X=ce=>{ce.code==="Space"&&(q(document.activeElement)||(ce.preventDefault(),OV(!0)))},ie=ce=>{ce.code==="Space"&&(OV(!1),yp(!1))};return window.addEventListener("keydown",X),window.addEventListener("keyup",ie),()=>{window.removeEventListener("keydown",X),window.removeEventListener("keyup",ie)}},[He.enableKeyboard]);const mp=m.useCallback(q=>{if(q.length!==0){if(!Ht){const X=K.current;for(const ie of q)X.set(ie.id,{x:ie.position.x,y:ie.position.y});return}if(q.length===1){const X=q[0];X&&M&&M(X.id,{x:X.position.x,y:X.position.y});return}if(w){w(q.map(X=>({id:X.id,position:{x:X.position.x,y:X.position.y}})));return}if(M)for(const X of q)M(X.id,{x:X.position.x,y:X.position.y})}},[M,w,Ht]),UV=m.useCallback((q,X,ie)=>{br.current=!1,mp(ie),ne()},[mp,ne]),WV=m.useCallback(()=>{br.current=!0},[]),GV=m.useCallback((q,X)=>{br.current=!1,mp(X),ne()},[mp,ne]),qae=m.useCallback((q,X)=>{xh.current&&Mi(null);const ie=kn.current;ie&&ie.style.setProperty("--rf-zoom",String(X.zoom)),mi==null||mi(X)},[mi]),Vae=m.useCallback((q,X,ie)=>{var ce;br.current=!0,G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ce=B.current)==null||ce.beginGesture((ie??[]).map(de=>de.id)),dt==null||dt()},[dt]),Bae=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Uae=m.useCallback((q,X,ie)=>{var ce;UV(q,X,ie),(ce=B.current)==null||ce.endGesture(),Vn==null||Vn()},[UV,Vn]),Wae=m.useCallback((q,X)=>{var ie;WV(),G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ie=B.current)==null||ie.beginGesture((X??[]).map(ce=>ce.id)),dt==null||dt()},[WV,dt]),Gae=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Kae=m.useCallback((q,X)=>{var ie;GV(q,X),(ie=B.current)==null||ie.endGesture(),Vn==null||Vn()},[GV,Vn]),Xae=m.useCallback((q,X)=>{var ie;(ie=na.current.get(X.id))==null||ie()},[]),Zae=m.useCallback((q,X)=>{pe==null||pe(X.id)},[pe]),Yae=m.useCallback(q=>{Ie==null||Ie()},[Ie]),Qae=m.useCallback((q,X)=>{me==null||me(X.id)},[me]),KV=So?"crosshair":vr||HV?Rae?"grabbing":"grab":void 0,XV=y.length+g.length===1,ZV=XV?y[0]:void 0,YV=XV?g[0]:void 0,Jae=ZV?d.find(q=>q.id===ZV)??null:null;YV&&p.find(q=>q.id===YV);const ese=a??null,pT=He.showDetailPanel&&!wt,tse=pT,nse=m.useMemo(()=>({custom:gr??{}}),[gr]),ose=m.useMemo(()=>({studioBaseUrl:h}),[h]),gp=o==null?void 0:o.icons;return m.useEffect(()=>{if(!gp)return;let q=!1;return(async()=>{try{const X=await gp.listPacks();if(q)return;UH(X)}catch{}})(),()=>{q=!0}},[gp]),f.jsx(pqe,{value:nse,children:f.jsx(OEe,{value:ose,children:f.jsx("div",{"data-testid":"seeflow-canvas","data-mode":n,"data-canvas-mode":be.kind,"data-can-undo":Oae?"true":"false","data-can-redo":Fae?"true":"false",ref:kn,className:"seeflow-canvas-root sf:relative sf:flex sf:h-full sf:w-full",style:KV?{cursor:KV}:void 0,onPointerDownCapture:_ae,onPointerDown:q=>{HV&&yp(!0),ip(q)},onPointerMove:iT,onPointerUp:q=>{yp(!1),ap(q)},onPointerCancel:()=>{ia.current=!1,ws.current=null,Ms.current=null,wh(null),vs(null),yp(!1)},onContextMenuCapture:Cae,onDragOver:Sae,onDrop:Lae,children:f.jsxs(LUe,{containerRef:kn,children:[f.jsxs("div",{className:"sf:relative sf:flex-1 sf:min-w-0 sf:h-full",children:[f.jsxs(wHe,{nodes:sT,edges:uT,onNodesChange:xae,nodeTypes:wit,edgeTypes:Mit,proOptions:_it,fitView:!0,minZoom:n==="mini"?.05:.5,nodesDraggable:(Ht?!!M:!0)&&!So&&!vr&&He.enableNodeMove,nodesConnectable:Ht&&!!z&&!So&&!vr,deleteKeyCode:Ht?["Backspace","Delete"]:null,zoomOnScroll:He.enableZoom,zoomOnPinch:He.enableZoom,className:Vo?"seeflow-connecting":void 0,onConnect:Ht?Iae:void 0,isValidConnection:hT,onConnectStart:(q,X)=>{xr(!0),fp.current=!1,DV.current={nodeId:X.nodeId??null,handleType:X.handleType??null},oa(X.nodeId??null)},onConnectEnd:Aae,onReconnect:Ht&&A?Eae:void 0,onReconnectStart:(q,X,ie)=>{xr(!0),pp.current=!1,oo.current=!0;const ce=ie==="source"?X.source:X.target;oa(ce)},onReconnectEnd:jae,connectionLineComponent:rT,connectionLineStyle:{strokeWidth:2},connectionRadius:32,reconnectRadius:10,edgesReconnectable:!1,elevateNodesOnSelect:!1,elementsSelectable:!So&&!vr&&He.enableSelection,selectNodesOnDrag:!1,nodeClickDistance:5,selectionOnDrag:!So&&!vr&&He.enableSelection,panOnDrag:So?!1:vr?[0,1,2]:He.enablePan?[1,2]:!1,selectionMode:F0.Partial,selectionKeyCode:null,multiSelectionKeyCode:So?null:["Meta","Shift"],panActivationKeyCode:So?null:"Space",onSelectionStart:Mae,onSelectionEnd:bae,defaultEdgeOptions:bit,zoomOnDoubleClick:!1,onInit:q=>{Ot.current=q;const X=kn.current;X&&X.style.setProperty("--rf-zoom",String(q.getZoom())),X&&X.setAttribute("data-canvas-ready","true"),!ea.current&&vi.onMount&&d.length>0&&(q.fitView(Wh),ea.current=!0),Be==null||Be(q)},onMove:qae,onEdgesChange:wae,onNodeDragStart:Vae,onNodeDrag:Bae,onNodeDragStop:Uae,onSelectionDragStart:Wae,onSelectionDrag:Gae,onSelectionDragStop:Kae,onNodeClick:Zae,onEdgeClick:Qae,onEdgeDoubleClick:Xae,onPaneClick:Yae,onNodeContextMenu:He.enableContextMenu&&Ye?(q,X)=>{q.preventDefault(),Uo.current=X.id,Te(!0),_r(X.type??null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,onPaneContextMenu:He.enableContextMenu&&P?q=>{q.preventDefault(),Uo.current=null,Te(!1),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,children:[f.jsx(Lit,{storeApiRef:wi}),f.jsx(Nit,{wrapperRef:kn}),f.jsx(IHe,{gap:12,size:.6}),He.enableAlignmentGuides?f.jsx(gee,{children:f.jsx(Zot,{guides:BV.guides})}):null,n!=="mini"&&f.jsx(cit,{}),He.showControls?f.jsxs(RHe,{showInteractive:!1,showFitView:!1,children:[f.jsx(s0,{"data-testid":"controls-fit-view","aria-label":"Fit view",title:"Fit view",disabled:d.length===0,onClick:()=>{var q;(q=Ot.current)==null||q.fitView(Wh)},children:f.jsx(Hd,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})}),f.jsx(s0,{"data-testid":"controls-tidy","aria-label":"Tidy layout (⌘⇧L)",title:"Tidy layout (⌘⇧L)",disabled:!hp,onClick:()=>hp==null?void 0:hp(),children:f.jsx(M2,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})})]}):null,He.showMiniMap?f.jsx(XHe,{className:"sf-canvas-minimap"}):null,He.showResizeHandles?f.jsx(Dot,{selectedNodes:kae,onMultiResize:L}):null,r||He.showToolbar||He.showStyleStrip&&re&&ge?f.jsx(W0,{position:"top-left",children:f.jsxs("div",{className:"sf:flex sf:flex-col sf:items-start sf:gap-2",children:[r,He.showToolbar?f.jsx(dZe,{mode:be,onModeChange:Ee,iconPickerOpen:et??!1,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,showShapeTools:Ht&&!!E,iconsAdapter:gp}):null,He.showStyleStrip&&re&&ge?f.jsx(Vot,{nodes:vae,connectors:oe??[],onStyleNode:re,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRequestIconReplace:J}):null]})}):null,He.showShareMenu||i||pT?f.jsx(W0,{position:"top-right",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-1",children:[i,pT&&!fT?f.jsx(uit,{open:fT,onToggle:()=>VV(q=>!q)}):null,He.showShareMenu?f.jsx(Pie,{mode:n==="mini"?"view":n,projectId:a,enableEmbed:He.enableEmbed,onDownloadPdf:la.exportPdf,onDownloadPng:la.exportPng,onExportToCloud:pt,embedOpen:Tae,onEmbedOpenChange:FV}):null]})}):null]}),_s?f.jsxs("div",{"data-testid":"canvas-draw-ghost","data-ghost-shape":en??void 0,"data-ghost-icon":qo??void 0,"aria-hidden":!0,className:ee("sf:pointer-events-none sf:absolute sf:z-10",$ae,zae?"sf:rounded-sm sf:border sf:border-dashed sf:border-muted-foreground/40":"",Ch?"sf:flex sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-dashed sf:border-border sf:bg-muted/40 sf:text-muted-foreground sf:text-sm":"",qo?"sf:flex sf:items-center sf:justify-center":""),style:{...Pae,left:_s.left,top:_s.top,width:_s.width,height:_s.height},children:[qo?f.jsx(Qa,{iconId:qo,studioBaseUrl:h,className:"sf:block sf:h-full sf:w-full sf:select-none"}):null,Ch?f.jsxs("span",{className:"sf:inline-flex sf:items-center sf:gap-2",children:[f.jsx(Ua,{size:14,"aria-hidden":!0}),f.jsx("span",{children:"Link to a flow"})]}):null,(()=>{if(Ch)return null;const q=en?Gq[en]:void 0;if(!q)return null;const X=wne(ca);return f.jsx(q,{width:_s.width,height:_s.height,borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderSize:(ca==null?void 0:ca.borderSize)??wq,borderStyle:ca==null?void 0:ca.borderStyle})})()]}):null,He.enableContextMenu&&Ye?f.jsxs(XKe,{onOpenChange:q=>{q||(In(null),Uo.current=null,_r(null),Sr(null))},children:[f.jsx(ZKe,{asChild:!0,children:f.jsx("div",{ref:bh,"data-testid":"node-context-menu-trigger","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(ht==null?void 0:ht.x)??0,top:(ht==null?void 0:ht.y)??0,width:0,height:0}})}),f.jsxs(zoe,{"data-testid":"node-context-menu",children:[Cr!=null&&Cr.pinned&&Q?f.jsx(Hr,{"data-testid":"connector-endpoint-context-menu-unpin",onSelect:Ao,children:"Unpin"}):null,Io&&O?f.jsxs(Hr,{"data-testid":"node-context-menu-copy",onSelect:sn,children:["Copy",f.jsx(PO,{children:aT})]}):null,P?f.jsxs(Hr,{"data-testid":"node-context-menu-paste",disabled:!Y,onSelect:Nu,children:["Paste",f.jsx(PO,{children:sp})]}):null,Io&&(O||P)&&(un==="icon"&&J||N||W)?f.jsx(AP,{}):null,Io&&un==="icon"&&J?f.jsx(Hr,{"data-testid":"node-context-menu-change-icon",onSelect:An,children:"Change icon"}):null,Io&&un==="icon"&&J&&(N||W)?f.jsx(AP,{}):null,Io&&N?f.jsxs(f.Fragment,{children:[f.jsx(Hr,{"data-testid":"node-context-menu-to-front",onSelect:()=>Lr({op:"toFront"}),children:"Bring to front"}),f.jsx(Hr,{"data-testid":"node-context-menu-forward",onSelect:()=>Lr({op:"forward"}),children:"Bring forward"}),f.jsx(Hr,{"data-testid":"node-context-menu-backward",onSelect:()=>Lr({op:"backward"}),children:"Send backward"}),f.jsx(Hr,{"data-testid":"node-context-menu-to-back",onSelect:()=>Lr({op:"toBack"}),children:"Send to back"})]}):null,Io&&N&&W?f.jsx(AP,{}):null,Io&&W?f.jsx(Hr,{"data-testid":"node-context-menu-delete",onSelect:Xe,children:"Delete"}):null]})]}):null,Ue?f.jsxs(du,{open:!!Nn,onOpenChange:q=>{q||Mi(null)},children:[f.jsx(NUe,{asChild:!0,children:f.jsx("div",{"data-testid":"drop-popover-anchor","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(Nn==null?void 0:Nn.clientX)??0,top:(Nn==null?void 0:Nn.clientY)??0,width:0,height:0}})}),f.jsx(ls,{"data-testid":"drop-popover",align:"start",side:"bottom",sideOffset:4,className:"sf:w-auto sf:p-1",onOpenAutoFocus:q=>{q.preventDefault()},children:f.jsx("div",{role:"menu","aria-label":"Create connected node",className:"sf:flex sf:flex-col sf:gap-0.5",children:lZe.map(({shape:q,label:X,Icon:ie})=>q==="linkflow"?null:f.jsxs("button",{type:"button",role:"menuitem","data-testid":`drop-popover-shape-${q}`,onClick:()=>{const ce=Nn;ce&&(Ue({sourceNodeId:ce.sourceNodeId,position:{x:ce.flowX,y:ce.flowY},shape:q}),Mi(null))},className:ee("sf:flex sf:items-center sf:gap-2 sf:rounded-sm sf:px-2 sf:py-1.5 sf:text-left sf:text-sm","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus:bg-accent sf:focus:text-accent-foreground sf:focus:outline-hidden"),children:[f.jsx(ie,{className:"sf:h-4 sf:w-4 sf:text-muted-foreground","aria-hidden":"true"}),f.jsx("span",{children:X})]},q))})})]}):null]}),tse?f.jsx(sot,{flowId:ese,node:Jae,connector:null,adapter:o??null,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,open:fT,onClose:()=>{var q;VV(!1),(q=Nr.current)==null||q.call(Nr,[],[])}}):null]})})})})}const Pit=m.forwardRef($it);/**
8545
8545
  * @license lucide-react v0.453.0 - ISC
8546
8546
  *
8547
8547
  * This source code is licensed under the ISC license.
@@ -8646,7 +8646,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8646
8646
  *
8647
8647
  * This source code is licensed under the ISC license.
8648
8648
  * See the LICENSE file in the root directory of this source tree.
8649
- */const Git=mn("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),MX="seeflow.export.email",bX="seeflow.export.name",_X="seeflow.export.visibility";function Kit({open:e,onOpenChange:t,project:n,flowName:o,onCapturePreview:r}){const[i,a]=m.useState(""),[s,c]=m.useState(""),[l,h]=m.useState("public"),[d,p]=m.useState({kind:"idle"}),[y,g]=m.useState(!1),[k,x]=m.useState(new Set),v=s1e(n),M=eq(e?n:null),w=M.flows;m.useEffect(()=>{e&&(a(localStorage.getItem(MX)??""),c(o??localStorage.getItem(bX)??""),h(localStorage.getItem(_X)??"public"),p({kind:"idle"}),g(!1))},[e,o]),m.useEffect(()=>{e&&w&&x(new Set(w.map($=>$.flowSlug)))},[e,w]);const b=m.useCallback(async()=>{p({kind:"loading"});try{const $=await(r==null?void 0:r()),{shareUrl:T}=await v(i.trim(),s.trim(),l,$,Array.from(k));localStorage.setItem(MX,i.trim()),localStorage.setItem(bX,s.trim()),localStorage.setItem(_X,l),p({kind:"done",shareUrl:T})}catch($){p({kind:"error",message:$ instanceof Error?$.message:String($)})}},[v,i,s,l,r,k]),C=m.useCallback($=>{x(T=>{const D=new Set(T);return D.has($)?D.delete($):D.add($),D})},[]),_=m.useCallback(()=>{w&&x($=>$.size===w.length?new Set:new Set(w.map(T=>T.flowSlug)))},[w]),S=m.useCallback(async()=>{if(d.kind==="done")try{await navigator.clipboard.writeText(d.shareUrl),g(!0),setTimeout(()=>g(!1),2e3)}catch($){console.error("Failed to copy to clipboard:",$)}},[d]),L=d.kind==="loading",j=i.trim().length>0&&s.trim().length>0&&w!==null&&M.error===null&&k.size>0,I=((w==null?void 0:w.length)??0)>=2,R=M.loading,E=M.error!==null,V=w!==null&&k.size===w.length;return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:$=>{$.preventDefault();const T=document.querySelector('[data-testid="export-email-input"]');T==null||T.focus()},children:[f.jsxs(ci,{children:[f.jsx(li,{children:"Export project to seeflow.dev"}),f.jsx(di,{children:"Upload this project to the cloud and get a shareable link."})]}),d.kind!=="done"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Email"}),f.jsx("input",{type:"email",required:!0,autoComplete:"email",value:i,onChange:$=>a($.target.value),disabled:L,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Flow Name"}),f.jsx("input",{type:"text",required:!0,value:s,onChange:$=>c($.target.value),disabled:L,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Visibility"}),f.jsxs("select",{value:l,onChange:$=>h($.target.value),disabled:L,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[f.jsx("option",{value:"public",children:"Public — anyone can discover it"}),f.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),R?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground","data-testid":"export-flows-loading",children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Loading flows…"})]}):null,E?f.jsxs("div",{role:"alert","data-testid":"export-flows-error",className:"flex items-center justify-between gap-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[f.jsx("span",{children:"Couldn't load flows."}),f.jsx("button",{type:"button",onClick:()=>M.refresh(),disabled:L,"data-testid":"export-flows-retry",className:"shrink-0 font-medium underline-offset-2 hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:"Retry"})]}):null,I&&w?f.jsxs("div",{className:"flex flex-col gap-1.5 text-sm","data-testid":"export-flows-section",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium",children:"Flows"}),f.jsx("button",{type:"button",onClick:_,disabled:L,"data-testid":"export-flows-toggle-all",className:"text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:V?"Clear":"Select all"})]}),f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto rounded-md border bg-background p-2",children:w.map($=>f.jsx("li",{children:f.jsxs("label",{className:"flex items-center gap-2 rounded px-2 py-1 hover:bg-muted",children:[f.jsx("input",{type:"checkbox",checked:k.has($.flowSlug),onChange:()=>C($.flowSlug),disabled:L,"data-testid":`export-flow-checkbox-${$.flowSlug}`}),f.jsx("span",{className:"flex-1 truncate",children:$.name}),$.isDefault?f.jsx(Bit,{className:"h-3.5 w-3.5 text-muted-foreground","aria-label":"default flow","data-testid":`export-flow-default-${$.flowSlug}`}):null]})},$.flowSlug))})]}):null,d.kind==="error"?f.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:d.message}):null]}),f.jsx(fr,{children:d.kind==="error"?f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:()=>p({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:L,"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:b,disabled:L||!j,"data-testid":"export-submit",children:L?f.jsxs(f.Fragment,{children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",readOnly:!0,value:d.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-hidden"}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:S,"aria-label":"Copy link","data-testid":"export-copy",children:y?f.jsx(Zie,{className:"h-4 w-4","aria-hidden":"true"}):f.jsx(Qie,{className:"h-4 w-4","aria-hidden":"true"})}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(d.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:f.jsx(Hit,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),f.jsx(fr,{children:f.jsx(rt,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}const Xit={isCloud:!1,user:null,provider:YF},tae=m.createContext(null);function Zit({config:e,provider:t,children:n}){const[o,r]=m.useState(()=>{var a;return((a=t.getUser)==null?void 0:a.call(t))??null});m.useEffect(()=>{var a;return r(((a=t.getUser)==null?void 0:a.call(t))??null),t.onChange(()=>{var s;return r(((s=t.getUser)==null?void 0:s.call(t))??null)})},[t]);const i=m.useMemo(()=>({isCloud:e.mode==="cloud",user:o,provider:t}),[e.mode,o,t]);return f.jsx(tae.Provider,{value:i,children:n})}function rp(){return m.useContext(tae)??Xit}function nae({open:e,onOpenChange:t,onCreated:n}){const{isCloud:o}=rp(),[r,i]=m.useState(""),[a,s]=m.useState(""),[c,l]=m.useState(""),[h,d]=m.useState(null),[p,y]=m.useState(!1);m.useEffect(()=>{e&&(i(""),s(""),l(""),d(null),y(!1))},[e]);const g=r.trim(),k=a.trim(),x=c.trim(),v=k.length>0&&!p,M=async w=>{if(w.preventDefault(),!!v){y(!0),d(null);try{const b=await y1e({name:k,...g.length>0?{path:g}:{},...x.length>0?{description:x}:{}});n(b),t(!1)}catch(b){d(b instanceof Error?b.message:String(b)),y(!1)}}};return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"create-project-dialog",onOpenAutoFocus:w=>{w.preventDefault();const b=document.querySelector('[data-testid="create-project-name-input"]');b==null||b.focus()},children:[f.jsxs(ci,{children:[f.jsx(li,{children:"Create new project"}),f.jsx(di,{children:o?"Scaffold a new SeeFlow project.":"Scaffold a new SeeFlow project. It's created in ~/.seeflow/projects/ unless you give a path."})]}),f.jsxs("form",{onSubmit:M,className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Project name"}),f.jsx("input",{type:"text",required:!0,autoComplete:"off",spellCheck:!1,value:a,onChange:w=>s(w.target.value),"data-testid":"create-project-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),o?null:f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Project path ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("input",{type:"text",autoComplete:"off",spellCheck:!1,placeholder:"/absolute/path/to/my-project",value:r,onChange:w=>i(w.target.value),"data-testid":"create-project-path-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"Leave blank to create it in ~/.seeflow/projects/"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Description ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("textarea",{rows:3,autoComplete:"off",spellCheck:!1,value:c,onChange:w=>l(w.target.value),"data-testid":"create-project-description-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),h?f.jsx("div",{role:"alert","data-testid":"create-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:h}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:p,children:"Cancel"}),f.jsx(rt,{type:"submit",disabled:!v,"data-testid":"create-project-submit",children:p?"Creating…":"Create project"})]})]})]})})}const CX="seeflow:navigate",Yit=e=>(window.addEventListener("popstate",e),window.addEventListener(CX,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener(CX,e)}),SX=()=>window.location.pathname,Qit=()=>m.useSyncExternalStore(Yit,SX,SX),oae=(e,t)=>`/projects/${encodeURIComponent(e)}/flows/${encodeURIComponent(t)}`,rae=e=>{const t=e.split("/").filter(Boolean);if(t.length!==4||t[0]!=="projects"||t[2]!=="flows")return null;const n=decodeURIComponent(t[1]??""),o=decodeURIComponent(t[3]??"");return!n||!o?null:{project:n,flow:o}},iae=e=>{const t=e.indexOf("/");return t<=0||t===e.length-1?null:{project:e.slice(0,t),flow:e.slice(t+1)}},Jit=e=>{const t=e.split("/").filter(Boolean);if(t.length!==2||t[0]!=="projects")return null;const n=decodeURIComponent(t[1]??"");return n?{project:n}:null},eat="seeflow:navigate",eF="seeflow:flow-stack",PV=e=>({project:e.project,flow:e.flow,slug:`${e.project}/${e.flow}`}),tat=e=>{const t=rae(e);return t?[PV(t)]:[]},nat=(e,t)=>[...e,PV(t)],oat=e=>e?[PV(e)]:[],rat=(e,t,n)=>{if(typeof t=="number"&&t>=0&&t<=e.length){const o=e.slice(0,t),r=o.at(-1);if(n){if(r&&r.project===n.project&&r.flow===n.flow)return o}else if(o.length===0)return o}return null};let Gr=[],LX=!1;const zV=()=>{typeof window>"u"||window.dispatchEvent(new Event(eF))},iat=e=>(window.addEventListener(eF,e),()=>window.removeEventListener(eF,e)),NX=()=>Gr,aae=()=>m.useSyncExternalStore(iat,NX,NX),sae=(e,t)=>{window.history.pushState({stackDepth:e},"",t),window.dispatchEvent(new Event(eat))},aat=(e,t)=>{const n=window.history.state??null;window.history.replaceState({...n??{},stackDepth:e},"",t)},sat=e=>{const t=nat(Gr,e);sae(t.length,oae(e.project,e.flow)),Gr=t,zV()},cat=()=>{window.history.back()},mo=e=>{const t=oat(e),n=e?oae(e.project,e.flow):"/";window.location.pathname===n?aat(t.length,n):sae(t.length,n),Gr!==t&&(Gr=t,zV())},lat=()=>{if(LX)return;Gr=tat(window.location.pathname);const e=window.history.state??null;typeof(e==null?void 0:e.stackDepth)!="number"&&window.history.replaceState({...e??{},stackDepth:Gr.length},"",window.location.pathname+window.location.search+window.location.hash),window.addEventListener("popstate",()=>{const t=window.history.state??null,n=rae(window.location.pathname),o=rat(Gr,t==null?void 0:t.stackDepth,n);if(o!==null){Gr!==o&&(Gr=o,zV());return}mo(n)}),LX=!0},dat="seeflow:last-flow:",cae=e=>`${dat}${e}`,lae=e=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(cae(e))}catch{return null}},uat=(e,t)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(cae(e),t)}catch{}},hat=(e,t)=>{var o;if(e.length===0)return null;if(t){const r=e.find(i=>i.flowSlug===t);if(r)return r.flowSlug}const n=e.find(r=>r.isDefault);return n?n.flowSlug:((o=e[0])==null?void 0:o.flowSlug)??null};function fat({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}){const{isCloud:r}=rp(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),[l,h]=m.useState(null),[d,p]=m.useState(!1),[y,g]=m.useState(null),[k,x]=m.useState(!1);m.useEffect(()=>{const L=j=>{j.key==="k"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),a(I=>!I))};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[]);const v=e.find(L=>L.projectSlug===t),M=L=>{const I=lae(L.projectSlug)??L.defaultFlow;mo({project:L.projectSlug,flow:I})},w=L=>{n==null||n(L)},b=L=>{h(L),g(null),x(!1)},C=()=>{d||(h(null),g(null),x(!1))},_=async()=>{if(l){p(!0),g(null);try{await(o==null?void 0:o(l.projectSlug,{deleteSource:k})),h(null),x(!1)}catch(L){g(L instanceof Error?L.message:String(L))}finally{p(!1)}}},S=(l==null?void 0:l.flowCount)??0;return f.jsxs(f.Fragment,{children:[f.jsxs(du,{open:i,onOpenChange:a,children:[f.jsx(ph,{asChild:!0,children:f.jsxs(rt,{type:"button",variant:"outline",size:"sm","aria-label":"Switch project","aria-expanded":i,className:"gap-2","data-testid":"project-switcher-trigger",children:[f.jsx("span",{className:"max-w-[180px] truncate text-sm",children:(v==null?void 0:v.name)??"Select project"}),f.jsx(jne,{children:"⌘K"}),f.jsx(Yie,{className:"h-3.5 w-3.5 opacity-60"})]})}),f.jsxs(ls,{align:"end",sideOffset:6,className:"relative w-[320px] p-0","data-testid":"project-switcher-popover",children:[f.jsxs(Zq,{children:[f.jsx(Ane,{placeholder:"Search projects..."}),f.jsxs(Yq,{className:"pb-12",children:[f.jsx(Qq,{children:"No projects."}),e.length>0?f.jsx($z,{heading:"Projects",children:e.map(L=>f.jsxs(Pz,{value:`${L.name} ${L.projectSlug}`,onSelect:()=>{a(!1),M(L)},"data-testid":`project-switcher-row-${L.projectSlug}`,className:"group flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-0.5",children:[f.jsx("span",{className:"font-medium",children:L.name}),!r&&L.repoPath?f.jsx("span",{className:"w-full truncate text-xs text-muted-foreground",children:L.repoPath}):null]}),f.jsx("button",{type:"button","aria-label":`Unregister ${L.name}`,"data-testid":`project-switcher-unregister-${L.projectSlug}`,className:"shrink-0 rounded p-0.5 opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",onClick:j=>{j.stopPropagation(),a(!1),b(L)},children:f.jsx(eae,{className:"h-3.5 w-3.5"})})]},L.projectSlug))}):null]})]}),f.jsx("button",{type:"button","aria-label":"Create new project",title:"Create new project","data-testid":"project-switcher-create",onClick:()=>{a(!1),c(!0)},className:"absolute right-2 bottom-2 inline-flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-md transition-colors hover:bg-emerald-400 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:f.jsx(Jie,{className:"h-4 w-4"})})]})]}),f.jsx(nae,{open:s,onOpenChange:c,onCreated:w}),f.jsx(hr,{open:l!==null,onOpenChange:L=>{L||C()},children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"unregister-project-dialog",children:[f.jsxs(ci,{children:[f.jsx(li,{children:k?"Delete project?":"Unregister project?"}),f.jsxs(di,{children:["This removes ",f.jsx("strong",{children:l==null?void 0:l.name})," from SeeFlow."," ",f.jsxs("strong",{children:["All ",S," ",S===1?"flow":"flows"]})," ","under this project will be unregistered."]})]}),!r&&(l!=null&&l.repoPath)?f.jsxs("label",{className:"flex items-start gap-2 rounded-md border border-border px-3 py-2 text-sm",children:[f.jsx("input",{type:"checkbox",checked:k,onChange:L=>x(L.target.checked),disabled:d,"data-testid":"unregister-project-delete-source",className:"mt-0.5 h-4 w-4 cursor-pointer accent-destructive"}),f.jsxs("span",{className:"flex-1",children:[f.jsx("span",{className:"font-medium",children:"Also delete files from disk"}),f.jsxs("span",{className:"mt-1 block text-xs text-muted-foreground",children:["Permanently removes"," ",f.jsx("code",{className:"break-all text-xs",children:l.repoPath})," and everything inside it. This cannot be undone."]})]})]}):null,y?f.jsx("div",{role:"alert","data-testid":"unregister-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:y}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:C,disabled:d,children:"Cancel"}),f.jsx(rt,{type:"button",variant:"destructive",onClick:_,disabled:d,"data-testid":"unregister-project-confirm",children:d?k?"Deleting…":"Unregistering…":k?"Delete project":"Unregister"})]})]})})]})}const pat=e=>{var o,r,i,a;const t=((o=e.name)==null?void 0:o.trim())||((r=e.email)==null?void 0:r.trim())||"";if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);if(n.length>=2){const s=((i=n[0])==null?void 0:i[0])??"",c=((a=n[1])==null?void 0:a[0])??"";return(s+c).toUpperCase()}return t.slice(0,2).toUpperCase()};function yat({user:e,onOpenProfile:t,onMyProjects:n,onSignOut:o}){const r=e.name||e.email||"Account";return f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","aria-label":"Account menu","data-testid":"user-menu-trigger",className:"flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-xs font-semibold text-foreground transition-colors hover:bg-muted/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.imageUrl?f.jsx("img",{src:e.imageUrl,alt:"",className:"h-full w-full object-cover"}):f.jsx("span",{children:pat(e)})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-56","data-testid":"user-menu",children:[f.jsx(lV,{children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"truncate text-sm font-medium",children:r}),e.name&&e.email?f.jsx("span",{className:"truncate text-xs font-normal text-muted-foreground",children:e.email}):null]})}),f.jsx(zO,{}),f.jsxs(za,{onSelect:t,"data-testid":"user-menu-profile",children:[f.jsx(Wit,{className:"mr-2 h-4 w-4"}),"My profile"]}),f.jsxs(za,{onSelect:n,"data-testid":"user-menu-projects",children:[f.jsx(Oit,{className:"mr-2 h-4 w-4"}),"My projects"]}),f.jsx(zO,{}),f.jsxs(za,{onSelect:o,"data-testid":"user-menu-signout",children:[f.jsx(Fit,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})}const dae="seeflow:theme",IX="(prefers-color-scheme: dark)";function mat(e){return e==="light"||e==="dark"||e==="system"}function gat(e){try{const t=e.getItem(dae);return mat(t)?t:"system"}catch{return"system"}}function kat(e){try{const t=new URLSearchParams(e);if(!t.has("theme"))return null;const n=t.get("theme");return n==="light"||n==="dark"?n:"light"}catch{return null}}function vat(e,t){try{e.setItem(dae,t)}catch{}}function xat(e,t){return e==="system"?t?"dark":"light":e}function wat(e,t){t==="dark"?(e.classList.add("dark"),e.classList.remove("light")):(e.classList.add("light"),e.classList.remove("dark"))}function Mat(e,t){var o;const n=r=>t(r.matches);return e.addEventListener?(e.addEventListener("change",n),()=>{var r;return(r=e.removeEventListener)==null?void 0:r.call(e,"change",n)}):((o=e.addListener)==null||o.call(e,n),()=>{var r;return(r=e.removeListener)==null?void 0:r.call(e,n)})}function bat(){const[e,t]=m.useState(()=>{if(typeof window>"u")return"system";const a=kat(window.location.search);return a||gat(window.localStorage)}),[n,o]=m.useState(()=>typeof window>"u"?!1:window.matchMedia(IX).matches);m.useEffect(()=>{if(typeof window>"u")return;const a=window.matchMedia(IX);return Mat(a,o)},[]);const r=xat(e,n);m.useEffect(()=>{typeof document>"u"||wat(document.documentElement,r)},[r]);const i=m.useCallback(a=>{typeof window<"u"&&vat(window.localStorage,a),t(a)},[]);return{theme:e,setTheme:i,resolvedTheme:r}}const _at=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function Cat({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o,share:r,onBack:i,previousFlowName:a}){const{theme:s,setTheme:c}=bat(),{isCloud:l,user:h,provider:d}=rp(),p=a!==void 0;return f.jsxs("header",{className:"relative flex h-14 shrink-0 items-center justify-between bg-background/85 px-5 backdrop-blur-md shadow-[0_1px_3px_-1px_rgba(15,23,42,0.06),0_2px_8px_-4px_rgba(15,23,42,0.05)] dark:shadow-[0_4px_12px_-6px_rgba(0,0,0,0.6)]",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[p?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button",onClick:i,"aria-label":"Back to previous flow","data-testid":"flow-back-button",className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:f.jsx(Dit,{size:16,strokeWidth:2.25})})}),f.jsxs(fu,{side:"bottom",children:["Back to ",a]})]}):null,f.jsxs("button",{type:"button",onClick:()=>mo(null),className:"-ml-1.5 flex items-center gap-2 rounded-md px-1.5 py-1 text-base font-bold tracking-tight transition-colors hover:bg-muted/60",children:[f.jsx(Git,{size:18,strokeWidth:2.25,className:"text-emerald-400"}),"SeeFlow",f.jsxs("span",{className:"ml-1 text-[10px] font-normal tracking-normal text-muted-foreground/70",children:["v","0.1.115"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(fat,{projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}),r?f.jsx(Pie,{mode:"edit",enableEmbed:!1,onDownloadPdf:r.onDownloadPdf,onDownloadPng:r.onDownloadPng,onExportToCloud:l?void 0:r.onExportToCloud}):null,f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"outline",size:"icon","aria-label":"Settings","data-testid":"settings-trigger",children:f.jsx(Vit,{className:"h-4 w-4"})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-44","data-testid":"settings-menu",children:[f.jsx(lV,{children:"Theme"}),f.jsx(wXe,{value:s,onValueChange:y=>c(y),children:_at.map(y=>f.jsx(ere,{value:y.value,"data-testid":`theme-${y.value}`,children:y.label},y.value))})]})]}),l&&h?f.jsx(yat,{user:h,onOpenProfile:()=>{var y;return(y=d.openProfile)==null?void 0:y.call(d)},onMyProjects:()=>mo(null),onSignOut:()=>void d.signOut()}):null]})]})}const Sat=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(null),r=m.useCallback(()=>c1e().then(i=>{t(i),o(null)}).catch(i=>{console.error("[useDemos] failed",i),t([]),o(String(i))}),[]);return m.useEffect(()=>{r()},[r]),{demos:e,error:n,refresh:r}},Lat=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(!0),[r,i]=m.useState(null),a=m.useCallback(()=>(o(!0),l1e().then(c=>{t(c),i(null)}).catch(c=>{console.error("[useProjects] failed",c),t([]),i(String(c))}).finally(()=>o(!1))),[]);m.useEffect(()=>{a()},[a]);const s=m.useCallback(async(c,l)=>{await h1e(c,l),await a()},[a]);return{projects:e,loading:n,error:r,refresh:a,unregisterProject:s}},AX=1e3,Nat=3e4;function uae(e){const t=new Map;let n=!1,o=AX,r=null,i=null;const a=(l,h)=>{const d=t.get(l);if(d)for(const p of d)p(h)},s=()=>{n||(a("error",{data:"",lastEventId:""}),i=setTimeout(c,o),o=Math.min(o*2,Nat))},c=async()=>{if(n)return;r=new AbortController;const l=Iat((h,d)=>a(h,d));try{const h=await oQ().getToken(),d=new Headers({accept:"text/event-stream"});h&&d.set("Authorization",`Bearer ${h}`);const p=await fetch(e,{headers:d,signal:r.signal});if(!p.ok||!p.body){s();return}o=AX,a("open",{data:"",lastEventId:""});const y=p.body.getReader(),g=new TextDecoder;for(;;){const{value:k,done:x}=await y.read();if(x)break;l.feed(g.decode(k,{stream:!0}))}s()}catch{n||s()}};return c(),{addEventListener(l,h){let d=t.get(l);d||(d=new Set,t.set(l,d)),d.add(h)},close(){n=!0,i&&clearTimeout(i),r==null||r.abort()}}}function Iat(e){let t="",n="";const o=r=>{let i="message";const a=[];for(const s of r.split(`
8649
+ */const Git=mn("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),MX="seeflow.export.email",bX="seeflow.export.name",_X="seeflow.export.visibility";function Kit({open:e,onOpenChange:t,project:n,flowName:o,onCapturePreview:r}){const[i,a]=m.useState(""),[s,c]=m.useState(""),[l,h]=m.useState("public"),[d,p]=m.useState({kind:"idle"}),[y,g]=m.useState(!1),[k,x]=m.useState(new Set),v=s1e(n),M=eq(e?n:null),w=M.flows;m.useEffect(()=>{e&&(a(localStorage.getItem(MX)??""),c(o??localStorage.getItem(bX)??""),h(localStorage.getItem(_X)??"public"),p({kind:"idle"}),g(!1))},[e,o]),m.useEffect(()=>{e&&w&&x(new Set(w.map($=>$.flowSlug)))},[e,w]);const b=m.useCallback(async()=>{p({kind:"loading"});try{const $=await(r==null?void 0:r()),{shareUrl:T}=await v(i.trim(),s.trim(),l,$,Array.from(k));localStorage.setItem(MX,i.trim()),localStorage.setItem(bX,s.trim()),localStorage.setItem(_X,l),p({kind:"done",shareUrl:T})}catch($){p({kind:"error",message:$ instanceof Error?$.message:String($)})}},[v,i,s,l,r,k]),C=m.useCallback($=>{x(T=>{const D=new Set(T);return D.has($)?D.delete($):D.add($),D})},[]),_=m.useCallback(()=>{w&&x($=>$.size===w.length?new Set:new Set(w.map(T=>T.flowSlug)))},[w]),S=m.useCallback(async()=>{if(d.kind==="done")try{await navigator.clipboard.writeText(d.shareUrl),g(!0),setTimeout(()=>g(!1),2e3)}catch($){console.error("Failed to copy to clipboard:",$)}},[d]),L=d.kind==="loading",j=i.trim().length>0&&s.trim().length>0&&w!==null&&M.error===null&&k.size>0,I=((w==null?void 0:w.length)??0)>=2,R=M.loading,E=M.error!==null,V=w!==null&&k.size===w.length;return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:$=>{$.preventDefault();const T=document.querySelector('[data-testid="export-email-input"]');T==null||T.focus()},children:[f.jsxs(ci,{children:[f.jsx(li,{children:"Export project to seeflow.dev"}),f.jsx(di,{children:"Upload this project to the cloud and get a shareable link."})]}),d.kind!=="done"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Email"}),f.jsx("input",{type:"email",required:!0,autoComplete:"email",value:i,onChange:$=>a($.target.value),disabled:L,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Flow Name"}),f.jsx("input",{type:"text",required:!0,value:s,onChange:$=>c($.target.value),disabled:L,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Visibility"}),f.jsxs("select",{value:l,onChange:$=>h($.target.value),disabled:L,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[f.jsx("option",{value:"public",children:"Public — anyone can discover it"}),f.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),R?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground","data-testid":"export-flows-loading",children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Loading flows…"})]}):null,E?f.jsxs("div",{role:"alert","data-testid":"export-flows-error",className:"flex items-center justify-between gap-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[f.jsx("span",{children:"Couldn't load flows."}),f.jsx("button",{type:"button",onClick:()=>M.refresh(),disabled:L,"data-testid":"export-flows-retry",className:"shrink-0 font-medium underline-offset-2 hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:"Retry"})]}):null,I&&w?f.jsxs("div",{className:"flex flex-col gap-1.5 text-sm","data-testid":"export-flows-section",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium",children:"Flows"}),f.jsx("button",{type:"button",onClick:_,disabled:L,"data-testid":"export-flows-toggle-all",className:"text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:V?"Clear":"Select all"})]}),f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto rounded-md border bg-background p-2",children:w.map($=>f.jsx("li",{children:f.jsxs("label",{className:"flex items-center gap-2 rounded px-2 py-1 hover:bg-muted",children:[f.jsx("input",{type:"checkbox",checked:k.has($.flowSlug),onChange:()=>C($.flowSlug),disabled:L,"data-testid":`export-flow-checkbox-${$.flowSlug}`}),f.jsx("span",{className:"flex-1 truncate",children:$.name}),$.isDefault?f.jsx(Bit,{className:"h-3.5 w-3.5 text-muted-foreground","aria-label":"default flow","data-testid":`export-flow-default-${$.flowSlug}`}):null]})},$.flowSlug))})]}):null,d.kind==="error"?f.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:d.message}):null]}),f.jsx(fr,{children:d.kind==="error"?f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:()=>p({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:L,"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:b,disabled:L||!j,"data-testid":"export-submit",children:L?f.jsxs(f.Fragment,{children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",readOnly:!0,value:d.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-hidden"}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:S,"aria-label":"Copy link","data-testid":"export-copy",children:y?f.jsx(Zie,{className:"h-4 w-4","aria-hidden":"true"}):f.jsx(Qie,{className:"h-4 w-4","aria-hidden":"true"})}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(d.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:f.jsx(Hit,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),f.jsx(fr,{children:f.jsx(rt,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}const Xit={isCloud:!1,user:null,provider:YF},tae=m.createContext(null);function Zit({config:e,provider:t,children:n}){const[o,r]=m.useState(()=>{var a;return((a=t.getUser)==null?void 0:a.call(t))??null});m.useEffect(()=>{var a;return r(((a=t.getUser)==null?void 0:a.call(t))??null),t.onChange(()=>{var s;return r(((s=t.getUser)==null?void 0:s.call(t))??null)})},[t]);const i=m.useMemo(()=>({isCloud:e.mode==="cloud",user:o,provider:t}),[e.mode,o,t]);return f.jsx(tae.Provider,{value:i,children:n})}function rp(){return m.useContext(tae)??Xit}function nae({open:e,onOpenChange:t,onCreated:n}){const{isCloud:o}=rp(),[r,i]=m.useState(""),[a,s]=m.useState(""),[c,l]=m.useState(""),[h,d]=m.useState(null),[p,y]=m.useState(!1);m.useEffect(()=>{e&&(i(""),s(""),l(""),d(null),y(!1))},[e]);const g=r.trim(),k=a.trim(),x=c.trim(),v=k.length>0&&!p,M=async w=>{if(w.preventDefault(),!!v){y(!0),d(null);try{const b=await y1e({name:k,...g.length>0?{path:g}:{},...x.length>0?{description:x}:{}});n(b),t(!1)}catch(b){d(b instanceof Error?b.message:String(b)),y(!1)}}};return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"create-project-dialog",onOpenAutoFocus:w=>{w.preventDefault();const b=document.querySelector('[data-testid="create-project-name-input"]');b==null||b.focus()},children:[f.jsxs(ci,{children:[f.jsx(li,{children:"Create new project"}),f.jsx(di,{children:o?"Scaffold a new SeeFlow project.":"Scaffold a new SeeFlow project. It's created in ~/.seeflow/projects/ unless you give a path."})]}),f.jsxs("form",{onSubmit:M,className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Project name"}),f.jsx("input",{type:"text",required:!0,autoComplete:"off",spellCheck:!1,value:a,onChange:w=>s(w.target.value),"data-testid":"create-project-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),o?null:f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Project path ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("input",{type:"text",autoComplete:"off",spellCheck:!1,placeholder:"/absolute/path/to/my-project",value:r,onChange:w=>i(w.target.value),"data-testid":"create-project-path-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"Leave blank to create it in ~/.seeflow/projects/"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Description ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("textarea",{rows:3,autoComplete:"off",spellCheck:!1,value:c,onChange:w=>l(w.target.value),"data-testid":"create-project-description-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),h?f.jsx("div",{role:"alert","data-testid":"create-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:h}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:p,children:"Cancel"}),f.jsx(rt,{type:"submit",disabled:!v,"data-testid":"create-project-submit",children:p?"Creating…":"Create project"})]})]})]})})}const CX="seeflow:navigate",Yit=e=>(window.addEventListener("popstate",e),window.addEventListener(CX,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener(CX,e)}),SX=()=>window.location.pathname,Qit=()=>m.useSyncExternalStore(Yit,SX,SX),oae=(e,t)=>`/projects/${encodeURIComponent(e)}/flows/${encodeURIComponent(t)}`,rae=e=>{const t=e.split("/").filter(Boolean);if(t.length!==4||t[0]!=="projects"||t[2]!=="flows")return null;const n=decodeURIComponent(t[1]??""),o=decodeURIComponent(t[3]??"");return!n||!o?null:{project:n,flow:o}},iae=e=>{const t=e.indexOf("/");return t<=0||t===e.length-1?null:{project:e.slice(0,t),flow:e.slice(t+1)}},Jit=e=>{const t=e.split("/").filter(Boolean);if(t.length!==2||t[0]!=="projects")return null;const n=decodeURIComponent(t[1]??"");return n?{project:n}:null},eat="seeflow:navigate",eF="seeflow:flow-stack",PV=e=>({project:e.project,flow:e.flow,slug:`${e.project}/${e.flow}`}),tat=e=>{const t=rae(e);return t?[PV(t)]:[]},nat=(e,t)=>[...e,PV(t)],oat=e=>e?[PV(e)]:[],rat=(e,t,n)=>{if(typeof t=="number"&&t>=0&&t<=e.length){const o=e.slice(0,t),r=o.at(-1);if(n){if(r&&r.project===n.project&&r.flow===n.flow)return o}else if(o.length===0)return o}return null};let Gr=[],LX=!1;const zV=()=>{typeof window>"u"||window.dispatchEvent(new Event(eF))},iat=e=>(window.addEventListener(eF,e),()=>window.removeEventListener(eF,e)),NX=()=>Gr,aae=()=>m.useSyncExternalStore(iat,NX,NX),sae=(e,t)=>{window.history.pushState({stackDepth:e},"",t),window.dispatchEvent(new Event(eat))},aat=(e,t)=>{const n=window.history.state??null;window.history.replaceState({...n??{},stackDepth:e},"",t)},sat=e=>{const t=nat(Gr,e);sae(t.length,oae(e.project,e.flow)),Gr=t,zV()},cat=()=>{window.history.back()},mo=e=>{const t=oat(e),n=e?oae(e.project,e.flow):"/";window.location.pathname===n?aat(t.length,n):sae(t.length,n),Gr!==t&&(Gr=t,zV())},lat=()=>{if(LX)return;Gr=tat(window.location.pathname);const e=window.history.state??null;typeof(e==null?void 0:e.stackDepth)!="number"&&window.history.replaceState({...e??{},stackDepth:Gr.length},"",window.location.pathname+window.location.search+window.location.hash),window.addEventListener("popstate",()=>{const t=window.history.state??null,n=rae(window.location.pathname),o=rat(Gr,t==null?void 0:t.stackDepth,n);if(o!==null){Gr!==o&&(Gr=o,zV());return}mo(n)}),LX=!0},dat="seeflow:last-flow:",cae=e=>`${dat}${e}`,lae=e=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(cae(e))}catch{return null}},uat=(e,t)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(cae(e),t)}catch{}},hat=(e,t)=>{var o;if(e.length===0)return null;if(t){const r=e.find(i=>i.flowSlug===t);if(r)return r.flowSlug}const n=e.find(r=>r.isDefault);return n?n.flowSlug:((o=e[0])==null?void 0:o.flowSlug)??null};function fat({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}){const{isCloud:r}=rp(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),[l,h]=m.useState(null),[d,p]=m.useState(!1),[y,g]=m.useState(null),[k,x]=m.useState(!1);m.useEffect(()=>{const L=j=>{j.key==="k"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),a(I=>!I))};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[]);const v=e.find(L=>L.projectSlug===t),M=L=>{const I=lae(L.projectSlug)??L.defaultFlow;mo({project:L.projectSlug,flow:I})},w=L=>{n==null||n(L)},b=L=>{h(L),g(null),x(!1)},C=()=>{d||(h(null),g(null),x(!1))},_=async()=>{if(l){p(!0),g(null);try{await(o==null?void 0:o(l.projectSlug,{deleteSource:k})),h(null),x(!1)}catch(L){g(L instanceof Error?L.message:String(L))}finally{p(!1)}}},S=(l==null?void 0:l.flowCount)??0;return f.jsxs(f.Fragment,{children:[f.jsxs(du,{open:i,onOpenChange:a,children:[f.jsx(ph,{asChild:!0,children:f.jsxs(rt,{type:"button",variant:"outline",size:"sm","aria-label":"Switch project","aria-expanded":i,className:"gap-2","data-testid":"project-switcher-trigger",children:[f.jsx("span",{className:"max-w-[180px] truncate text-sm",children:(v==null?void 0:v.name)??"Select project"}),f.jsx(jne,{children:"⌘K"}),f.jsx(Yie,{className:"h-3.5 w-3.5 opacity-60"})]})}),f.jsxs(ls,{align:"end",sideOffset:6,className:"relative w-[320px] p-0","data-testid":"project-switcher-popover",children:[f.jsxs(Zq,{children:[f.jsx(Ane,{placeholder:"Search projects..."}),f.jsxs(Yq,{className:"pb-12",children:[f.jsx(Qq,{children:"No projects."}),e.length>0?f.jsx($z,{heading:"Projects",children:e.map(L=>f.jsxs(Pz,{value:`${L.name} ${L.projectSlug}`,onSelect:()=>{a(!1),M(L)},"data-testid":`project-switcher-row-${L.projectSlug}`,className:"group flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-0.5",children:[f.jsx("span",{className:"font-medium",children:L.name}),!r&&L.repoPath?f.jsx("span",{className:"w-full truncate text-xs text-muted-foreground",children:L.repoPath}):null]}),f.jsx("button",{type:"button","aria-label":`Unregister ${L.name}`,"data-testid":`project-switcher-unregister-${L.projectSlug}`,className:"shrink-0 rounded p-0.5 opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",onClick:j=>{j.stopPropagation(),a(!1),b(L)},children:f.jsx(eae,{className:"h-3.5 w-3.5"})})]},L.projectSlug))}):null]})]}),f.jsx("button",{type:"button","aria-label":"Create new project",title:"Create new project","data-testid":"project-switcher-create",onClick:()=>{a(!1),c(!0)},className:"absolute right-2 bottom-2 inline-flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-md transition-colors hover:bg-emerald-400 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:f.jsx(Jie,{className:"h-4 w-4"})})]})]}),f.jsx(nae,{open:s,onOpenChange:c,onCreated:w}),f.jsx(hr,{open:l!==null,onOpenChange:L=>{L||C()},children:f.jsxs(si,{className:"sm:max-w-md","data-testid":"unregister-project-dialog",children:[f.jsxs(ci,{children:[f.jsx(li,{children:k?"Delete project?":"Unregister project?"}),f.jsxs(di,{children:["This removes ",f.jsx("strong",{children:l==null?void 0:l.name})," from SeeFlow."," ",f.jsxs("strong",{children:["All ",S," ",S===1?"flow":"flows"]})," ","under this project will be unregistered."]})]}),!r&&(l!=null&&l.repoPath)?f.jsxs("label",{className:"flex items-start gap-2 rounded-md border border-border px-3 py-2 text-sm",children:[f.jsx("input",{type:"checkbox",checked:k,onChange:L=>x(L.target.checked),disabled:d,"data-testid":"unregister-project-delete-source",className:"mt-0.5 h-4 w-4 cursor-pointer accent-destructive"}),f.jsxs("span",{className:"flex-1",children:[f.jsx("span",{className:"font-medium",children:"Also delete files from disk"}),f.jsxs("span",{className:"mt-1 block text-xs text-muted-foreground",children:["Permanently removes"," ",f.jsx("code",{className:"break-all text-xs",children:l.repoPath})," and everything inside it. This cannot be undone."]})]})]}):null,y?f.jsx("div",{role:"alert","data-testid":"unregister-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:y}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:C,disabled:d,children:"Cancel"}),f.jsx(rt,{type:"button",variant:"destructive",onClick:_,disabled:d,"data-testid":"unregister-project-confirm",children:d?k?"Deleting…":"Unregistering…":k?"Delete project":"Unregister"})]})]})})]})}const pat=e=>{var o,r,i,a;const t=((o=e.name)==null?void 0:o.trim())||((r=e.email)==null?void 0:r.trim())||"";if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);if(n.length>=2){const s=((i=n[0])==null?void 0:i[0])??"",c=((a=n[1])==null?void 0:a[0])??"";return(s+c).toUpperCase()}return t.slice(0,2).toUpperCase()};function yat({user:e,onOpenProfile:t,onMyProjects:n,onSignOut:o}){const r=e.name||e.email||"Account";return f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","aria-label":"Account menu","data-testid":"user-menu-trigger",className:"flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-xs font-semibold text-foreground transition-colors hover:bg-muted/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.imageUrl?f.jsx("img",{src:e.imageUrl,alt:"",className:"h-full w-full object-cover"}):f.jsx("span",{children:pat(e)})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-56","data-testid":"user-menu",children:[f.jsx(lV,{children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"truncate text-sm font-medium",children:r}),e.name&&e.email?f.jsx("span",{className:"truncate text-xs font-normal text-muted-foreground",children:e.email}):null]})}),f.jsx(zO,{}),f.jsxs(za,{onSelect:t,"data-testid":"user-menu-profile",children:[f.jsx(Wit,{className:"mr-2 h-4 w-4"}),"My profile"]}),f.jsxs(za,{onSelect:n,"data-testid":"user-menu-projects",children:[f.jsx(Oit,{className:"mr-2 h-4 w-4"}),"My projects"]}),f.jsx(zO,{}),f.jsxs(za,{onSelect:o,"data-testid":"user-menu-signout",children:[f.jsx(Fit,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})}const dae="seeflow:theme",IX="(prefers-color-scheme: dark)";function mat(e){return e==="light"||e==="dark"||e==="system"}function gat(e){try{const t=e.getItem(dae);return mat(t)?t:"system"}catch{return"system"}}function kat(e){try{const t=new URLSearchParams(e);if(!t.has("theme"))return null;const n=t.get("theme");return n==="light"||n==="dark"?n:"light"}catch{return null}}function vat(e,t){try{e.setItem(dae,t)}catch{}}function xat(e,t){return e==="system"?t?"dark":"light":e}function wat(e,t){t==="dark"?(e.classList.add("dark"),e.classList.remove("light")):(e.classList.add("light"),e.classList.remove("dark"))}function Mat(e,t){var o;const n=r=>t(r.matches);return e.addEventListener?(e.addEventListener("change",n),()=>{var r;return(r=e.removeEventListener)==null?void 0:r.call(e,"change",n)}):((o=e.addListener)==null||o.call(e,n),()=>{var r;return(r=e.removeListener)==null?void 0:r.call(e,n)})}function bat(){const[e,t]=m.useState(()=>{if(typeof window>"u")return"system";const a=kat(window.location.search);return a||gat(window.localStorage)}),[n,o]=m.useState(()=>typeof window>"u"?!1:window.matchMedia(IX).matches);m.useEffect(()=>{if(typeof window>"u")return;const a=window.matchMedia(IX);return Mat(a,o)},[]);const r=xat(e,n);m.useEffect(()=>{typeof document>"u"||wat(document.documentElement,r)},[r]);const i=m.useCallback(a=>{typeof window<"u"&&vat(window.localStorage,a),t(a)},[]);return{theme:e,setTheme:i,resolvedTheme:r}}const _at=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function Cat({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o,share:r,onBack:i,previousFlowName:a}){const{theme:s,setTheme:c}=bat(),{isCloud:l,user:h,provider:d}=rp(),p=a!==void 0;return f.jsxs("header",{className:"relative flex h-14 shrink-0 items-center justify-between bg-background/85 px-5 backdrop-blur-md shadow-[0_1px_3px_-1px_rgba(15,23,42,0.06),0_2px_8px_-4px_rgba(15,23,42,0.05)] dark:shadow-[0_4px_12px_-6px_rgba(0,0,0,0.6)]",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[p?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button",onClick:i,"aria-label":"Back to previous flow","data-testid":"flow-back-button",className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:f.jsx(Dit,{size:16,strokeWidth:2.25})})}),f.jsxs(fu,{side:"bottom",children:["Back to ",a]})]}):null,f.jsxs("button",{type:"button",onClick:()=>mo(null),className:"-ml-1.5 flex items-center gap-2 rounded-md px-1.5 py-1 text-base font-bold tracking-tight transition-colors hover:bg-muted/60",children:[f.jsx(Git,{size:18,strokeWidth:2.25,className:"text-emerald-400"}),"SeeFlow",f.jsxs("span",{className:"ml-1 text-[10px] font-normal tracking-normal text-muted-foreground/70",children:["v","0.1.116"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(fat,{projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}),r?f.jsx(Pie,{mode:"edit",enableEmbed:!1,onDownloadPdf:r.onDownloadPdf,onDownloadPng:r.onDownloadPng,onExportToCloud:l?void 0:r.onExportToCloud}):null,f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"outline",size:"icon","aria-label":"Settings","data-testid":"settings-trigger",children:f.jsx(Vit,{className:"h-4 w-4"})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-44","data-testid":"settings-menu",children:[f.jsx(lV,{children:"Theme"}),f.jsx(wXe,{value:s,onValueChange:y=>c(y),children:_at.map(y=>f.jsx(ere,{value:y.value,"data-testid":`theme-${y.value}`,children:y.label},y.value))})]})]}),l&&h?f.jsx(yat,{user:h,onOpenProfile:()=>{var y;return(y=d.openProfile)==null?void 0:y.call(d)},onMyProjects:()=>mo(null),onSignOut:()=>void d.signOut()}):null]})]})}const Sat=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(null),r=m.useCallback(()=>c1e().then(i=>{t(i),o(null)}).catch(i=>{console.error("[useDemos] failed",i),t([]),o(String(i))}),[]);return m.useEffect(()=>{r()},[r]),{demos:e,error:n,refresh:r}},Lat=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(!0),[r,i]=m.useState(null),a=m.useCallback(()=>(o(!0),l1e().then(c=>{t(c),i(null)}).catch(c=>{console.error("[useProjects] failed",c),t([]),i(String(c))}).finally(()=>o(!1))),[]);m.useEffect(()=>{a()},[a]);const s=m.useCallback(async(c,l)=>{await h1e(c,l),await a()},[a]);return{projects:e,loading:n,error:r,refresh:a,unregisterProject:s}},AX=1e3,Nat=3e4;function uae(e){const t=new Map;let n=!1,o=AX,r=null,i=null;const a=(l,h)=>{const d=t.get(l);if(d)for(const p of d)p(h)},s=()=>{n||(a("error",{data:"",lastEventId:""}),i=setTimeout(c,o),o=Math.min(o*2,Nat))},c=async()=>{if(n)return;r=new AbortController;const l=Iat((h,d)=>a(h,d));try{const h=await oQ().getToken(),d=new Headers({accept:"text/event-stream"});h&&d.set("Authorization",`Bearer ${h}`);const p=await fetch(e,{headers:d,signal:r.signal});if(!p.ok||!p.body){s();return}o=AX,a("open",{data:"",lastEventId:""});const y=p.body.getReader(),g=new TextDecoder;for(;;){const{value:k,done:x}=await y.read();if(x)break;l.feed(g.decode(k,{stream:!0}))}s()}catch{n||s()}};return c(),{addEventListener(l,h){let d=t.get(l);d||(d=new Set,t.set(l,d)),d.add(h)},close(){n=!0,i&&clearTimeout(i),r==null||r.abort()}}}function Iat(e){let t="",n="";const o=r=>{let i="message";const a=[];for(const s of r.split(`
8650
8650
  `)){const c=s.endsWith("\r")?s.slice(0,-1):s;if(c===""||c.startsWith(":"))continue;const l=c.indexOf(":"),h=l===-1?c:c.slice(0,l);let d=l===-1?"":c.slice(l+1);d.startsWith(" ")&&(d=d.slice(1)),h==="event"?i=d:h==="data"?a.push(d):h==="id"&&(n=d)}a.length!==0&&e(i,{data:a.join(`
8651
8651
  `),lastEventId:n})};return{feed(r){t+=r;let i=EX(t);for(;i!==-1;){const a=t.slice(0,i.index);t=t.slice(i.index+i.length),o(a),i=EX(t)}}}}const EX=e=>{const t=e.indexOf(`
8652
8652