@xopcai/xopc 0.0.484 → 0.0.485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +4 -6
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/messaging/process-message.js +2 -1
- package/dist/gateway/server/chunks.bin +842 -830
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/{automations-page-B1Ri4sh8.js → automations-page-uY_wmZY1.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-CNSza6ir.js → automations-workspace-DyQq55Rh.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-page-EENl65YY.js → capabilities-page-WCl7Fdce.js} +2 -2
- package/dist/gateway/static/root/assets/{chat-page-LOR5JxDh.js → chat-page-3fVhP77N.js} +30 -30
- package/dist/gateway/static/root/assets/command-palette-api-UrqPvWR1.js +1 -0
- package/dist/gateway/static/root/assets/{index-DE6GguFZ.js → index-790PGhZb.js} +4 -4
- package/dist/gateway/static/root/assets/{note-detail-panel-DXzfoiyk.js → note-detail-panel-Bwm_aehq.js} +2 -2
- package/dist/gateway/static/root/assets/{notes-page-BNTgiHSk.js → notes-page-DkZWV3Ds.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-D7zTHQ0K.js → personal-page-cauym9hr.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-Dgs8ImMC.js → project-detail-page-D9WKZe3z.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-7WVrzJca.js → route-preload-DF8LOfKW.js} +2 -2
- package/dist/gateway/static/root/assets/{settings-page-BOzzOS6k.js → settings-page-Cd9WZ-Ac.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-gGU0LZ5e.js → skills-page-kL8E5zgi.js} +1 -1
- package/dist/gateway/static/root/assets/{space-page-CKVuhV2i.js → space-page-DlJB7GT1.js} +2 -2
- package/dist/gateway/static/root/assets/{task-detail-page-DEpYIaok.js → task-detail-page-BFa0Px-B.js} +1 -1
- package/dist/gateway/static/root/assets/{task-header-title-Cdgp2rCs.js → task-header-title-qzNctGl5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-Dd2jRUpz.js → use-personal-work-B1DWeBnm.js} +1 -1
- package/dist/gateway/static/root/index.html +6 -6
- package/dist/package.js +1 -1
- package/dist/src/agent/mcp/connection-drafts.d.ts +3 -1
- package/dist/src/agent/mcp/connection-drafts.js +24 -11
- package/dist/src/agent/mcp/connection-setup.js +13 -10
- package/dist/src/agent/mcp/native-mcp.js +1 -0
- package/dist/src/agent/mcp/network-policy.d.ts +6 -0
- package/dist/src/agent/mcp/network-policy.js +49 -0
- package/dist/src/agent/mcp/transport.js +14 -7
- package/dist/src/agent/messaging/message-router.js +2 -2
- package/dist/src/agent/service/direct-turn-helpers.js +9 -24
- package/dist/src/chat-commands/command-parse.d.ts +1 -0
- package/dist/src/chat-commands/command-parse.js +8 -10
- package/dist/src/chat-commands/registry.d.ts +5 -0
- package/dist/src/chat-commands/registry.js +8 -0
- package/dist/src/config/schema.d.ts +54 -4
- package/dist/src/config/schema.js +3 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +67 -0
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +16 -131
- package/dist/src/gateway/hono/routes/mobile-mcp-setup.d.ts +9 -0
- package/dist/src/gateway/hono/routes/mobile-mcp-setup.js +929 -0
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -4
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -4
- package/dist/src/gateway/next-turn-suggestions/generator.js +16 -2
- package/dist/src/gateway/next-turn-suggestions/service.d.ts +2 -1
- package/dist/src/gateway/next-turn-suggestions/service.js +17 -5
- package/dist/src/gateway/next-turn-suggestions/snapshot.d.ts +11 -0
- package/dist/src/gateway/next-turn-suggestions/snapshot.js +31 -2
- package/dist/src/gateway/service/config-coordinator.d.ts +14 -1
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/home-intelligence/host.js +5 -5
- package/dist/src/media/generation-changes.d.ts +4 -0
- package/dist/src/media/generation-changes.js +37 -0
- package/dist/src/music-generation/repository.js +12 -6
- package/dist/src/session/reset-triggers.js +1 -1
- package/dist/src/tui/tui-commands.d.ts +2 -1
- package/dist/src/tui/tui-commands.js +3 -3
- package/dist/src/tui/tui-submit.d.ts +1 -1
- package/dist/src/tui/tui-submit.js +2 -4
- package/dist/src/video-generation/drafts.js +2 -0
- package/dist/src/video-generation/repository.js +13 -6
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/command-palette-api-YP0zV_Ol.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"chunk-XO7NMUCD.js":[0,27906],"chunk-IMUF2VDJ.js":[27906,27249],"chunk-N36HGOVT.js":[55155,64050],"chunk-BTJK5OX3.js":[119205,1648],"chunk-SYV3GUVI.js":[120853,23077],"chunk-NPQVZXG3.js":[143930,9346],"chunk-MWK2ACCQ.js":[153276,1299276],"chunk-T2RNTL4C.js":[1452552,26539],"chunk-GCHTWJI4.js":[1479091,33150],"chunk-VUVJNUED.js":[1512241,843],"chunk-BMQ73PP2.js":[1513084,5711],"chunk-XJMNIUKP.js":[1518795,4275],"chunk-3VNUYMKJ.js":[1523070,59325],"chunk-PEDFCHUA.js":[1582395,10044],"chunk-PGPYAT3V.js":[1592439,5755],"chunk-VC3ZSLOW.js":[1598194,8650],"chunk-47YTUGIL.js":[1606844,2178],"chunk-65FJXVEC.js":[1609022,1239],"chunk-LYIFL3T2.js":[1610261,859],"chunk-W4O3WK2D.js":[1611120,4014],"chunk-B5ZN4LAU.js":[1615134,719],"chunk-6THQCZ6M.js":[1615853,5431],"chunk-LAXZETYW.js":[1621284,6380],"chunk-ADEM7HYW.js":[1627664,8679],"chunk-EZNTJWHT.js":[1636343,22999],"chunk-T3HFVZEB.js":[1659342,518],"chunk-5KZRBTUB.js":[1659860,12526],"chunk-O77PYYR6.js":[1672386,84731],"chunk-FRDTCO55.js":[1757117,9930],"chunk-B2B2ZIUF.js":[1767047,13002],"chunk-4EB23MEC.js":[1780049,52042],"chunk-C7MLLX5Z.js":[1832091,5014],"chunk-RQUVCPQE.js":[1837105,1894],"chunk-KU6NDUKZ.js":[1838999,2728],"chunk-QXBJK5HA.js":[1841727,15772],"chunk-WMG2J7H2.js":[1857499,18368],"chunk-BF67QPK5.js":[1875867,97072],"chunk-Z5MKANR3.js":[1972939,23204],"chunk-FFAJJMBL.js":[1996143,6382],"chunk-XFYTMKFX.js":[2002525,12216],"chunk-2NI263DU.js":[2014741,864],"chunk-NBSXYWYY.js":[2015605,39537],"chunk-FMDM7EA7.js":[2055142,3148],"chunk-6XAY2UGH.js":[2058290,4541],"chunk-VX74B3ED.js":[2062831,2924],"chunk-QTVPBXMD.js":[2065755,600],"chunk-23O7FRHH.js":[2066355,14153],"chunk-BQSKHFYI.js":[2080508,4607],"chunk-2L7FJZOG.js":[2085115,31319],"chunk-ZUK3IXB7.js":[2116434,4402],"chunk-BRUFLXPC.js":[2120836,13277],"chunk-U542YHAE.js":[2134113,5623],"chunk-M7GKICKF.js":[2139736,31924],"chunk-6NQN26U3.js":[2171660,728],"chunk-QTQJ7X25.js":[2172388,5725],"chunk-E3LYQNV5.js":[2178113,6609],"chunk-4FCD2P4H.js":[2184722,11760],"chunk-77M7WODX.js":[2196482,11280],"chunk-7RWCNGAJ.js":[2207762,26958],"chunk-C7MSLUAU.js":[2234720,3718],"chunk-LDE7ZMOR.js":[2238438,1180],"chunk-TDHY2RSW.js":[2239618,1910],"chunk-4PCYHZEA.js":[2241528,9457],"chunk-O5EN6Z6O.js":[2250985,4281],"chunk-NF4ORSWB.js":[2255266,6514],"chunk-QUZM63WT.js":[2261780,4506],"chunk-INERA4SQ.js":[2266286,973],"chunk-YPVEOQTI.js":[2267259,3355],"chunk-5FY3VRHB.js":[2270614,1846],"chunk-FBHVW5JU.js":[2272460,7751],"chunk-ENWJCB4Q.js":[2280211,595],"chunk-REJNVK45.js":[2280806,33663],"chunk-TP3EIOLO.js":[2314469,1962],"chunk-VCMQIBYG.js":[2316431,1251],"chunk-EOWR2ZCK.js":[2317682,522],"chunk-PKMEKWUW.js":[2318204,3114],"chunk-GKIBYB5E.js":[2321318,27966],"chunk-STPKPYDC.js":[2349284,12118],"chunk-XL3BIAIY.js":[2361402,1597],"chunk-IP2CMQ7X.js":[2362999,4152],"chunk-EGN4JDNB.js":[2367151,2229],"chunk-HAEOFMQQ.js":[2369380,1015],"chunk-XPS6OPXM.js":[2370395,2006],"chunk-6L5VFLZX.js":[2372401,3829],"chunk-46MZ4AGB.js":[2376230,10452],"chunk-UJLWRFBG.js":[2386682,5236],"chunk-XP7CUT2Y.js":[2391918,3017],"chunk-52XZULWB.js":[2394935,10222],"chunk-ZXUK7TO4.js":[2405157,1997],"chunk-RHCUL67P.js":[2407154,5827],"chunk-5TTP4BMG.js":[2412981,6070],"chunk-ZSR4REDE.js":[2419051,1654],"chunk-TZPLGLUD.js":[2420705,972],"chunk-2R74AOEE.js":[2421677,3577],"chunk-MISVP6VF.js":[2425254,19363],"chunk-BG5L4LHY.js":[2444617,6814],"chunk-A3IO7NUR.js":[2451431,6727],"chunk-JDURXBNV.js":[2458158,11818],"chunk-Z5Y5CXX7.js":[2469976,1107],"chunk-E4JDTX6V.js":[2471083,2478],"chunk-Y2UIXJXX.js":[2473561,2683],"chunk-3D5OIBSR.js":[2476244,8097],"chunk-QIATJFJ5.js":[2484341,4302],"chunk-C2VKWFMF.js":[2488643,8485],"chunk-2XFQUE2E.js":[2497128,1827],"chunk-PHEOT63U.js":[2498955,2820],"chunk-RY56TZOY.js":[2501775,27327],"chunk-VALAIVZL.js":[2529102,20779],"chunk-LV5R5MR6.js":[2549881,14246],"chunk-PT4WWNPH.js":[2564127,1309],"chunk-277VSIOY.js":[2565436,1956],"chunk-LRA5NHYU.js":[2567392,2009],"chunk-P4DGCNKB.js":[2569401,654],"chunk-WXECA77M.js":[2570055,22962],"chunk-VLEK37SH.js":[2593017,6283],"chunk-D4DYUHR3.js":[2599300,8052],"chunk-BJ35WSFZ.js":[2607352,8196],"chunk-265V4JGT.js":[2615548,11105],"chunk-X5CM6UZD.js":[2626653,1521],"chunk-PVALIXHE.js":[2628174,3191],"chunk-3NHM2AWN.js":[2631365,1057],"chunk-2732DLVI.js":[2632422,9228],"chunk-RENYLKGE.js":[2641650,968],"chunk-PIZFWCEH.js":[2642618,2113],"chunk-ZQDFKZ6Q.js":[2644731,2856],"chunk-B57NTEB7.js":[2647587,3188],"chunk-GR5R6SDM.js":[2650775,1348],"chunk-2BX2T3DZ.js":[2652123,798],"chunk-BHUKVQBV.js":[2652921,7738],"chunk-2OKZIM6S.js":[2660659,1205],"chunk-PWK4DV7L.js":[2661864,2354],"chunk-VMVWATJH.js":[2664218,29475],"chunk-ALELQDHA.js":[2693693,1830],"chunk-GBRAZEIG.js":[2695523,7826],"chunk-LFT2RB63.js":[2703349,1501],"chunk-HTUHY4QA.js":[2704850,17386],"chunk-5ZEFTENT.js":[2722236,1894],"chunk-PM2HA5X6.js":[2724130,4631],"chunk-RSZRDMYK.js":[2728761,3856],"chunk-YCYKMUCZ.js":[2732617,8421],"chunk-WB7FK3DG.js":[2741038,1248],"chunk-4VW2FKDC.js":[2742286,6013],"chunk-VYRCHHHL.js":[2748299,12884],"chunk-VXC7COFG.js":[2761183,1322],"chunk-BKVFZ3KY.js":[2762505,6082],"chunk-B7JFILND.js":[2768587,6062],"chunk-SPWEO2IW.js":[2774649,35982],"chunk-5GVCJXFR.js":[2810631,2873],"chunk-L2J4EFSL.js":[2813504,3756],"chunk-N6QAP6MU.js":[2817260,1064],"chunk-AGWOXQ5A.js":[2818324,770],"chunk-ZV5A5A7P.js":[2819094,1039],"chunk-5N7W4ZQK.js":[2820133,636],"chunk-2IKYH4V4.js":[2820769,7343],"chunk-NLAKMAXF.js":[2828112,1838],"chunk-QZZPHLBS.js":[2829950,34547],"chunk-LKNE2MCG.js":[2864497,2331],"chunk-PX647K6Z.js":[2866828,805],"chunk-4UKJ2G4G.js":[2867633,2047],"chunk-R73SQ5VL.js":[2869680,21628],"chunk-ARMCNKDH.js":[2891308,28042],"chunk-3BDADUWM.js":[2919350,6695],"chunk-426JOUPM.js":[2926045,3264],"chunk-4XY6GTS2.js":[2929309,33851],"chunk-RGGIH4MQ.js":[2963160,2290],"chunk-GFARS5JG.js":[2965450,3716],"chunk-TJFPS5R4.js":[2969166,9212],"chunk-NCTHHRGG.js":[2978378,9275],"chunk-5NZO4XKX.js":[2987653,2072],"chunk-H5OO26PL.js":[2989725,12786],"chunk-Q5OBJXA3.js":[3002511,12062],"chunk-QB5NOA5D.js":[3014573,1618],"chunk-34KJEOOI.js":[3016191,13635],"chunk-6QLAWUYL.js":[3029826,896],"chunk-ZLIQWRUK.js":[3030722,3268],"chunk-UDBCNPHC.js":[3033990,568],"chunk-QAXEHDGQ.js":[3034558,17637],"chunk-EVGNAVYE.js":[3052195,33259],"chunk-ILGCY5RI.js":[3085454,721],"chunk-WXVXVVZ4.js":[3086175,35770],"chunk-M2UEUXQX.js":[3121945,8059],"chunk-ZZXAS2HB.js":[3130004,706597],"chunk-C2GI7T7A.js":[3836601,14446],"chunk-YVV4H7XI.js":[3851047,9524],"chunk-PDD4UPCU.js":[3860571,1236],"chunk-6OBMZDP6.js":[3861807,14619],"chunk-26I2FYAN.js":[3876426,51046],"chunk-QPWXZAKM.js":[3927472,470],"chunk-GSQABOUT.js":[3927942,2422],"chunk-R2PXWALU.js":[3930364,1047],"chunk-PIKK2J4K.js":[3931411,2388],"chunk-YNHZDUII.js":[3933799,16139],"chunk-VIQ2G5AJ.js":[3949938,4428],"chunk-73XHLA25.js":[3954366,478],"chunk-BJP4A77S.js":[3954844,21945],"chunk-QV4M7N2E.js":[3976789,4619],"chunk-MOAASB3D.js":[3981408,3179],"chunk-6ACUTSHA.js":[3984587,5323],"chunk-XAANKBV6.js":[3989910,9538],"chunk-RC2WP56P.js":[3999448,7913],"chunk-5IHQCGE2.js":[4007361,1264],"chunk-UA2NHXCK.js":[4008625,1985],"chunk-2BFNT5FQ.js":[4010610,27373],"chunk-ZUWQ6JBK.js":[4037983,17569],"chunk-4BCVL2XA.js":[4055552,82781],"chunk-6UZECNWJ.js":[4138333,14053],"chunk-VDDTLWWY.js":[4152386,7026],"chunk-TXYURT2A.js":[4159412,3531],"chunk-BYL4SS5J.js":[4162943,10436],"chunk-6WG65LWN.js":[4173379,2382],"chunk-QBJIESCQ.js":[4175761,1583],"chunk-2E7YQDND.js":[4177344,18679],"chunk-SK2LVRA3.js":[4196023,3373],"chunk-JRIA6FDE.js":[4199396,36484],"chunk-LQR63PKU.js":[4235880,9315],"chunk-NZ3O2AWK.js":[4245195,890],"chunk-S3Z7AO3E.js":[4246085,3319],"chunk-Y5IMJ6Q6.js":[4249404,2353],"chunk-UH5TVJZS.js":[4251757,18210],"chunk-RTGD5PHP.js":[4269967,904],"chunk-XQ2Z7RQT.js":[4270871,2410],"chunk-YA7FBWQO.js":[4273281,4242],"chunk-3CASXF55.js":[4277523,1113],"chunk-2I4EAINT.js":[4278636,1027],"chunk-4XQNVANZ.js":[4279663,2061],"chunk-ZSZ6L636.js":[4281724,14299],"chunk-XCBVJKFU.js":[4296023,2329],"chunk-LIDUSFFL.js":[4298352,6179],"chunk-VSGEK35N.js":[4304531,5407],"chunk-EKDVPVHX.js":[4309938,5746],"chunk-BLKPLIV7.js":[4315684,66322],"chunk-REXW2N7D.js":[4382006,11103],"chunk-BA7KV7K2.js":[4393109,1402],"chunk-NUPVRZXS.js":[4394511,3001],"chunk-XO73CXA6.js":[4397512,5582],"chunk-WGJD55RG.js":[4403094,8926],"chunk-QI2JL2EW.js":[4412020,1846],"chunk-JOG6S4YJ.js":[4413866,5079],"chunk-ZPSRJFQC.js":[4418945,3778],"chunk-EO7TCUYX.js":[4422723,5601],"chunk-RN7A7OQY.js":[4428324,155305],"chunk-IIQSJXSM.js":[4583629,644],"chunk-C3HN46PJ.js":[4584273,37223],"chunk-DVFCHFK7.js":[4621496,420],"chunk-62XZXT5N.js":[4621916,54718],"chunk-ZURYLQQ6.js":[4676634,800],"chunk-J76KMXOL.js":[4677434,456],"chunk-HYHJZKC4.js":[4677890,48075],"chunk-EHYU7WWE.js":[4725965,3490],"chunk-ZCR6I4UK.js":[4729455,14130],"chunk-F42BGWRV.js":[4743585,5120],"chunk-BCMX326K.js":[4748705,6230],"chunk-2MURCOF5.js":[4754935,4008],"chunk-LBMBLSPB.js":[4758943,11396],"chunk-F27ZOYUX.js":[4770339,849],"chunk-KJEH2IB3.js":[4771188,1790],"chunk-3AVMMO7A.js":[4772978,927],"chunk-3TNKN4K6.js":[4773905,775],"chunk-EEYLZGWS.js":[4774680,7716],"chunk-PLTR4THA.js":[4782396,794],"chunk-67HJHVCC.js":[4783190,1138],"chunk-VONLJ7QW.js":[4784328,4741],"chunk-WJ4UA52I.js":[4789069,17038],"chunk-3YICI2HQ.js":[4806107,1029],"chunk-LX24SRWW.js":[4807136,546],"chunk-M5IUOYUH.js":[4807682,1797],"chunk-BMSYLKNE.js":[4809479,4959],"chunk-YXFOURWG.js":[4814438,7086],"chunk-MXQOIFWC.js":[4821524,798],"chunk-5ZEYM6FC.js":[4822322,1418],"chunk-LZENY7FK.js":[4823740,1471],"chunk-Q3PUOLLD.js":[4825211,2104],"chunk-XBHIMKEG.js":[4827315,50851],"chunk-56ODGJ6Q.js":[4878166,2828],"chunk-BF7PBCPL.js":[4880994,7815],"chunk-V2K7YPZV.js":[4888809,3874],"chunk-DEUKAWY7.js":[4892683,13052],"chunk-NJTY5UML.js":[4905735,428],"chunk-RIWK6SID.js":[4906163,2764],"chunk-SGNHRC3T.js":[4908927,13281],"chunk-SSE6OUVN.js":[4922208,1669],"chunk-NK3R6GUE.js":[4923877,2716],"chunk-ANFL5DZZ.js":[4926593,32790],"chunk-RRBAG4O2.js":[4959383,3339],"chunk-AYJMYACB.js":[4962722,5961],"chunk-UYR6344M.js":[4968683,24727],"chunk-SKJPJYCT.js":[4993410,894],"chunk-MZTXWTEC.js":[4994304,2437],"chunk-DAC5X2UN.js":[4996741,1595],"chunk-KLAWY6JW.js":[4998336,4983],"chunk-J6IYF4EP.js":[5003319,6413],"chunk-HMHXPLRG.js":[5009732,30172],"chunk-EN45VJL5.js":[5039904,7327],"chunk-DOOJN3W3.js":[5047231,3996],"chunk-6FJKODD6.js":[5051227,3859],"chunk-42K5RLAQ.js":[5055086,10723],"chunk-WYVIY5VB.js":[5065809,645],"chunk-UKT7OH5Y.js":[5066454,2420],"chunk-WMSUUMDD.js":[5068874,6964],"chunk-DTAIHUQP.js":[5075838,12643],"chunk-7JTM75RN.js":[5088481,3129],"chunk-TEKN6LKQ.js":[5091610,997966],"chunk-FANIJBKR.js":[6089576,703],"chunk-JCT73H2O.js":[6090279,652],"chunk-XFZZYCMA.js":[6090931,487],"chunk-JNAEIDFD.js":[6091418,1589],"chunk-QEHE5XIN.js":[6093007,1017],"chunk-UHEP6KTR.js":[6094024,1106],"chunk-UK4G5JFX.js":[6095130,3062],"chunk-SY24OFXM.js":[6098192,515],"chunk-RRP7B774.js":[6098707,15841],"chunk-CN4KJY3Y.js":[6114548,9077],"chunk-5LY4R7RQ.js":[6123625,7152],"chunk-O5PZDOZK.js":[6130777,2069],"chunk-YB4CQL7H.js":[6132846,951],"chunk-QKV4JNOO.js":[6133797,48128],"chunk-UAQ2PXTR.js":[6181925,2187],"chunk-VX554BAT.js":[6184112,785],"chunk-B4CHEEE6.js":[6184897,1805],"chunk-2INLK7KD.js":[6186702,1954],"chunk-JNAZH2TB.js":[6188656,6988],"chunk-4BMFKUPD.js":[6195644,5467],"chunk-Y4PDTXOU.js":[6201111,8122],"chunk-QFKUAFAQ.js":[6209233,2406],"chunk-B7WONTTB.js":[6211639,1094],"chunk-WFMWQGSA.js":[6212733,30788],"chunk-NT2G6NZP.js":[6243521,3096],"chunk-3OZYMO72.js":[6246617,1980],"chunk-2ZDPP7FB.js":[6248597,8701],"chunk-QOSZM46V.js":[6257298,2177],"chunk-VDFXDD6U.js":[6259475,2347],"chunk-VYRY7U3Y.js":[6261822,2615],"chunk-237BWHGI.js":[6264437,6170],"chunk-TESQNI37.js":[6270607,3580],"chunk-7KF7ZOXI.js":[6274187,4578],"chunk-KRAXVG3I.js":[6278765,25519],"chunk-HOYSS3QC.js":[6304284,1117],"chunk-QBNFEKVQ.js":[6305401,64777],"chunk-NP35VYSA.js":[6370178,1023],"chunk-TAUG3X7L.js":[6371201,21838],"chunk-6IVZUAPB.js":[6393039,2017],"chunk-ZP2ZINS5.js":[6395056,6301],"chunk-CVV6U64G.js":[6401357,6972],"chunk-35HY57CR.js":[6408329,5563],"chunk-2X2PKANO.js":[6413892,39996],"chunk-VVXKDZTJ.js":[6453888,6844],"chunk-BVPJUYBB.js":[6460732,2235],"chunk-2RFUFTFC.js":[6462967,16681],"chunk-RYNFJ253.js":[6479648,5425],"chunk-4UH3OSNF.js":[6485073,8073],"chunk-ZE5IUDQD.js":[6493146,606],"chunk-YVSCZO2R.js":[6493752,10530],"chunk-NM754SDS.js":[6504282,3429],"chunk-27YOGVZJ.js":[6507711,2580],"chunk-P5CSCXNW.js":[6510291,52741],"chunk-QGCQJ46Y.js":[6563032,11019],"chunk-2DH7SS2W.js":[6574051,11582],"chunk-NGX7G25D.js":[6585633,11045],"chunk-FKAUW6QU.js":[6596678,48087],"chunk-5BZXUC5U.js":[6644765,4057],"chunk-PZVWKPZX.js":[6648822,10749],"chunk-EBRPMDKO.js":[6659571,19289],"chunk-WYUPDHJC.js":[6678860,19081],"chunk-FYRPT3NK.js":[6697941,22833],"chunk-O3TBC7AG.js":[6720774,3256],"chunk-AWZ7QZ2F.js":[6724030,1024],"chunk-T4EJ2T7L.js":[6725054,1118],"chunk-MSDKXB5G.js":[6726172,740],"chunk-35TCK2P2.js":[6726912,60970],"chunk-76OHHETC.js":[6787882,4890],"chunk-LP6GE4PM.js":[6792772,106855],"chunk-QJOW5M74.js":[6899627,7487],"chunk-Q5LTRZLI.js":[6907114,5009],"chunk-GWSHGUKX.js":[6912123,7638],"chunk-SS4TF2IG.js":[6919761,1158],"chunk-WB4IFIPZ.js":[6920919,11738],"chunk-T26GEX7F.js":[6932657,2458],"chunk-BXWWAGLN.js":[6935115,27243],"chunk-YERHXATZ.js":[6962358,5045],"chunk-6V3HMRLM.js":[6967403,849],"chunk-4W5GLOJD.js":[6968252,2137],"chunk-VULLXRGG.js":[6970389,586],"chunk-Q4AQYXHM.js":[6970975,7472],"chunk-5IZLAOJV.js":[6978447,626],"chunk-4KZQAX6G.js":[6979073,667],"chunk-M73N7RE7.js":[6979740,5817],"chunk-KSSMC4QJ.js":[6985557,970],"chunk-RGZ76VYI.js":[6986527,181592],"chunk-3XN2XH5S.js":[7168119,12769],"chunk-3NT3ETW3.js":[7180888,653],"chunk-VOU3DFHW.js":[7181541,4266],"chunk-OBVZUCPL.js":[7185807,645],"chunk-2W3E3BLO.js":[7186452,517],"chunk-4QPNBL25.js":[7186969,20228],"chunk-NOA7XCOV.js":[7207197,984],"chunk-GNZH52ZD.js":[7208181,3598],"chunk-264XMB5F.js":[7211779,8965],"chunk-VGONHBUL.js":[7220744,3953],"chunk-LXYQ45YQ.js":[7224697,581],"chunk-U2LO66LM.js":[7225278,1459],"chunk-DGJWLGLU.js":[7226737,781],"chunk-5LFTJWWA.js":[7227518,1432],"chunk-XS24BHZR.js":[7228950,82538],"chunk-5VWXFIHH.js":[7311488,1622],"chunk-QXBLMETA.js":[7313110,208817],"chunk-ZLCY2RP4.js":[7521927,508],"chunk-54ZADWYC.js":[7522435,1119],"chunk-KWKQLY6R.js":[7523554,895],"chunk-3HMJ4S26.js":[7524449,798],"chunk-6ASH6ONX.js":[7525247,926],"chunk-K4HNIBI5.js":[7526173,1031],"chunk-N4XPYVHZ.js":[7527204,570],"chunk-P7Y5RLBQ.js":[7527774,659],"chunk-U46I2RNP.js":[7528433,14991],"chunk-TUDIJBII.js":[7543424,1323],"chunk-WKTYRRXK.js":[7544747,28011],"chunk-WEFATG3K.js":[7572758,3561],"chunk-DKTAVR5R.js":[7576319,1386],"chunk-T3WUKBNW.js":[7577705,5329],"chunk-VIOS5KFA.js":[7583034,2544],"chunk-Y2AJC5NI.js":[7585578,119256],"chunk-LRBYZBB7.js":[7704834,62367],"chunk-BAXEFCEU.js":[7767201,1526],"chunk-6GFNUYXP.js":[7768727,1814],"chunk-KMASKAQ5.js":[7770541,2510],"chunk-NSR44R6F.js":[7773051,689],"chunk-G2VH5DNT.js":[7773740,437],"chunk-SHJBGTOM.js":[7774177,151904],"chunk-ODJTWBHV.js":[7926081,3180],"chunk-ZFI65R5C.js":[7929261,2809],"chunk-S22477UO.js":[7932070,13208],"chunk-SJT2GU5M.js":[7945278,3215],"chunk-U5ZJ7R6P.js":[7948493,582],"chunk-45ETQRH3.js":[7949075,17831],"chunk-UHQAJBP5.js":[7966906,3326],"chunk-5KGRP5ZM.js":[7970232,5912],"chunk-MLCSLHVZ.js":[7976144,26754],"chunk-OXSIP42W.js":[8002898,4978],"chunk-IYJO5VG3.js":[8007876,34519],"chunk-BMLXI5BE.js":[8042395,1290],"chunk-77MJD6XD.js":[8043685,4228],"chunk-4YHLCABJ.js":[8047913,9934],"chunk-5PP4LL74.js":[8057847,116596],"chunk-ZE3HXUM6.js":[8174443,2359],"chunk-VAWZAMUC.js":[8176802,2527],"chunk-RQTX7IFO.js":[8179329,1694],"chunk-JN35X366.js":[8181023,1927],"chunk-UKJMKDAB.js":[8182950,6034],"chunk-ZPBVHK7J.js":[8188984,15620],"chunk-Y33JYRRC.js":[8204604,1624],"chunk-ARDJZXDH.js":[8206228,1463],"chunk-33E6LO6R.js":[8207691,5015],"chunk-75OSDJV6.js":[8212706,227316],"chunk-JZJTMB77.js":[8440022,1578],"chunk-3VUIANOV.js":[8441600,6887],"chunk-XAV4XAIU.js":[8448487,6268],"chunk-JHAJ2EQZ.js":[8454755,374],"chunk-7IMJQKLR.js":[8455129,37572],"chunk-X3EDPO4P.js":[8492701,1153],"chunk-SZIDQXE5.js":[8493854,6554],"chunk-VAWJ4Z57.js":[8500408,1761],"chunk-YR4KI4AX.js":[8502169,229364],"chunk-ASHYIKP2.js":[8731533,84523],"chunk-2NBKY5OR.js":[8816056,1163],"chunk-N7WEX3TW.js":[8817219,782],"chunk-PIDGJ3PS.js":[8818001,48682],"chunk-7NXOFE3Y.js":[8866683,627],"chunk-WDWUXXYA.js":[8867310,4194],"chunk-JGEF4B7U.js":[8871504,27065],"chunk-R53MR5FL.js":[8898569,1472],"chunk-WI53BNCJ.js":[8900041,9467],"chunk-G2BAEM2W.js":[8909508,7502],"chunk-ZX4JFCBX.js":[8917010,17614],"chunk-REHPYY6W.js":[8934624,8847],"chunk-WXZVQDZI.js":[8943471,15137],"chunk-ISDJHEV6.js":[8958608,5429],"chunk-GIYDZSWK.js":[8964037,1501],"chunk-HBLXR5QX.js":[8965538,14497],"chunk-T3VU5KKH.js":[8980035,28236],"chunk-DOJOZMUN.js":[9008271,1328],"chunk-FBB6EXGL.js":[9009599,929],"chunk-XIPXMUB4.js":[9010528,7629],"chunk-PYL4IDMD.js":[9018157,13189],"chunk-FVHQJ2XB.js":[9031346,8490],"chunk-W4YHG3HT.js":[9039836,3345],"chunk-J25WQIO7.js":[9043181,28643],"chunk-UJLK73XC.js":[9071824,16839],"chunk-EJFUQGLJ.js":[9088663,6736],"chunk-XPZA2Z2Q.js":[9095399,2839],"chunk-TVYRHFEB.js":[9098238,19441],"chunk-HTDYTOUU.js":[9117679,2312],"chunk-A2UQIFJK.js":[9119991,2057],"chunk-SFSIPPZN.js":[9122048,3458],"chunk-NP5QXY2I.js":[9125506,1567],"chunk-WCTVVWKG.js":[9127073,3187],"chunk-267KAPGU.js":[9130260,10882],"chunk-6KVY4KJN.js":[9141142,624],"chunk-3JLNGCKB.js":[9141766,13429],"chunk-TVAHDSQK.js":[9155195,5561],"chunk-3H2EHNBR.js":[9160756,48042],"chunk-RMHSR53E.js":[9208798,886],"chunk-UT7EZBVS.js":[9209684,686],"chunk-OTQLN3PY.js":[9210370,47976],"chunk-HZU45BXF.js":[9258346,24900],"chunk-VB7LSMI7.js":[9283246,1103],"chunk-DS3RZDUF.js":[9284349,53873],"chunk-MJJRW3JK.js":[9338222,5512],"chunk-XWL2HO2N.js":[9343734,43591],"chunk-2N3HZ2AA.js":[9387325,350953],"chunk-UEAIUC56.js":[9738278,10156],"chunk-EMJFYSOZ.js":[9748434,13663],"chunk-2CQDQRRY.js":[9762097,8271],"chunk-UY3B2Y3A.js":[9770368,6116],"chunk-YGIDO4BV.js":[9776484,283690],"chunk-YAZTC7UE.js":[10060174,531],"chunk-KVPM3YZL.js":[10060705,1653],"chunk-DAPLZJEI.js":[10062358,23789],"chunk-CVQFIAYE.js":[10086147,185742],"chunk-DLEPEZYT.js":[10271889,7790],"chunk-WU6FFQQA.js":[10279679,1187853],"chunk-O5XBBJIG.js":[11467532,21524],"chunk-KMOIE6QH.js":[11489056,7443],"chunk-TLJ52LYJ.js":[11496499,169178],"chunk-R5OULVRL.js":[11665677,107597],"chunk-B6LQRXY5.js":[11773274,13298],"chunk-3A7MM66Q.js":[11786572,21863],"chunk-UDCN3GDD.js":[11808435,29022],"chunk-FUZS7BHK.js":[11837457,2983],"chunk-6ENJPFNE.js":[11840440,3519],"chunk-5V4QCYX5.js":[11843959,1822],"chunk-RH35ZOZ4.js":[11845781,5732],"chunk-E2K5V7IX.js":[11851513,403326],"chunk-VVBEDMEH.js":[12254839,8493],"chunk-WWLJ2Y62.js":[12263332,11645],"chunk-B2MDZWCY.js":[12274977,6670],"chunk-Y2YVBRH7.js":[12281647,37692],"chunk-22SFDDPO.js":[12319339,71697],"chunk-LT4VNHKF.js":[12391036,3277],"chunk-36YI5FA2.js":[12394313,629],"chunk-HAVW4VAH.js":[12394942,11196],"chunk-4ZZOH2PJ.js":[12406138,706],"chunk-ZAFH24X7.js":[12406844,5141],"chunk-EHKXNXAC.js":[12411985,1178],"chunk-OKNI3MX4.js":[12413163,3408],"chunk-XKEY2ZJY.js":[12416571,766],"chunk-IFRG5QFF.js":[12417337,1620],"chunk-J67HNBT2.js":[12418957,529],"chunk-BOJVZQKS.js":[12419486,679],"chunk-5WN4QURS.js":[12420165,1178],"chunk-474JNYHQ.js":[12421343,529],"chunk-5AGA3WHS.js":[12421872,3778],"chunk-JLS6MFZF.js":[12425650,2317],"chunk-LJ44MR6C.js":[12427967,1867],"chunk-PYZQFS3I.js":[12429834,2228],"chunk-LBMU5PK3.js":[12432062,692],"chunk-VBWOB2EP.js":[12432754,675],"chunk-O6ZSVPQY.js":[12433429,1403],"chunk-D5ZQ2V77.js":[12434832,527],"chunk-GOBBENRZ.js":[12435359,1098],"chunk-GUMK3KV5.js":[12436457,29046],"chunk-JGYXVZRK.js":[12465503,2498],"chunk-UOTMDZRQ.js":[12468001,3173],"chunk-YYJ6YAEV.js":[12471174,1066],"chunk-ZR6OAOAM.js":[12472240,116389],"chunk-D3BCFTFP.js":[12588629,37126],"chunk-H7WI2XQX.js":[12625755,554],"chunk-EXF4DEBL.js":[12626309,583],"chunk-O2623Z65.js":[12626892,529],"chunk-RUY664CA.js":[12627421,554],"chunk-U2DQFIPH.js":[12627975,492],"chunk-LW4OWS6S.js":[12628467,463],"chunk-MFUYESC7.js":[12628930,640],"chunk-6F2TZSVU.js":[12629570,1407],"chunk-7D5JZYFE.js":[12630977,1243],"chunk-52DRUIWH.js":[12632220,5153],"chunk-GBJM5CZ7.js":[12637373,6919],"chunk-QDTW7PGT.js":[12644292,5944],"chunk-HHDYDNZZ.js":[12650236,3421],"chunk-3XJ3MRXL.js":[12653657,3948],"chunk-22CW5FEI.js":[12657605,3996],"chunk-KWKG432R.js":[12661601,4996],"chunk-JHLJQACP.js":[12666597,1730],"chunk-YHC3LX4V.js":[12668327,976],"chunk-MK5MYZFT.js":[12669303,7086],"chunk-YP2TV2FW.js":[12676389,1499],"chunk-SPKIZELV.js":[12677888,3051],"chunk-HJR57H5U.js":[12680939,476],"chunk-TEA4GVEE.js":[12681415,2189],"chunk-CTKMP6AA.js":[12683604,653],"chunk-57AC5DIM.js":[12684257,3885],"chunk-YUX22SYK.js":[12688142,915],"chunk-VWZRUZS4.js":[12689057,745],"chunk-BIVSV5WA.js":[12689802,535],"chunk-BYXZB3F3.js":[12690337,2936],"chunk-HTKSZO4U.js":[12693273,839],"chunk-Y6ILZL2T.js":[12694112,2863],"chunk-RBKDTPA4.js":[12696975,505],"chunk-UI5PZ2UB.js":[12697480,3247],"chunk-RBU6S5O5.js":[12700727,9400],"chunk-URXRPQ5T.js":[12710127,643],"chunk-OJ7HYH2S.js":[12710770,2436],"chunk-WT55OKYD.js":[12713206,1891],"chunk-REME6WPG.js":[12715097,1194],"chunk-A6QKASN5.js":[12716291,5157],"chunk-IRXRJKWP.js":[12721448,698],"chunk-XFTWFG6X.js":[12722146,3367],"chunk-DBH6X7SK.js":[12725513,553],"chunk-YV7U5UHL.js":[12726066,5192],"chunk-622PM7BB.js":[12731258,831],"chunk-VDCNTLYX.js":[12732089,2790],"chunk-XKVXCF6J.js":[12734879,763],"chunk-DB4IKYK5.js":[12735642,3042],"chunk-RCUOOC6I.js":[12738684,585],"chunk-NMPNDMWQ.js":[12739269,7095],"chunk-WNZIESWT.js":[12746364,660],"chunk-5DL354QD.js":[12747024,676],"chunk-7JWEWMSN.js":[12747700,625],"chunk-RJIFUWGV.js":[12748325,568],"chunk-ATSGHEAN.js":[12748893,1598],"gateway.js":[12750491,45514],"chunk-BYB4456Q.js":[12796005,575],"chunk-PSBU6GH5.js":[12796580,1644],"chunk-ROGOQGO2.js":[12798224,1229],"chunk-LNFEISV4.js":[12799453,2339],"chunk-7NSITDK5.js":[12801792,819],"chunk-JBBARELC.js":[12802611,1156],"chunk-D4PHHH6N.js":[12803767,2958],"chunk-TFVN4XPE.js":[12806725,22727],"chunk-JQ3SVCBK.js":[12829452,6570],"chunk-JIJXRBV3.js":[12836022,683],"chunk-V3MGUBPL.js":[12836705,679],"chunk-D4RFND2P.js":[12837384,43925],"chunk-W37DHVQZ.js":[12881309,2132],"chunk-KOL56MZS.js":[12883441,6048],"chunk-ERQ7PTAL.js":[12889489,32364],"chunk-O57S5IDR.js":[12921853,7383],"chunk-GXOOASN7.js":[12929236,1972],"chunk-YFKFN5RN.js":[12931208,26552],"chunk-VCQAMIXI.js":[12957760,3559],"chunk-CZJHJ5MD.js":[12961319,1279],"chunk-EJ2XPKOG.js":[12962598,5463],"chunk-HF67SVD3.js":[12968061,510],"chunk-CRKL76ET.js":[12968571,1977],"chunk-TYEXZIO4.js":[12970548,6376],"chunk-ZDAW4KZU.js":[12976924,1208],"chunk-YF7UQPVH.js":[12978132,21175],"chunk-LX5HTJ5O.js":[12999307,123503],"chunk-RSXWYDDK.js":[13122810,4230],"chunk-P3DVCZS3.js":[13127040,36666],"chunk-IKOA5O6E.js":[13163706,137021],"chunk-X2CLB72Y.js":[13300727,19818],"chunk-7HSZWQMD.js":[13320545,1995],"chunk-YIV5TOCA.js":[13322540,1266],"chunk-XJ7JE6QD.js":[13323806,89815],"chunk-PKYWH4XV.js":[13413621,2318],"chunk-EEXXXCOR.js":[13415939,2590],"chunk-4C2KWT6H.js":[13418529,2109],"chunk-UENH6JHC.js":[13420638,1379]}
|
|
1
|
+
{"chunk-4EHLTN2F.js":[0,27878],"chunk-EQSMU6CD.js":[27878,27221],"chunk-RJEQA5H4.js":[55099,87053],"chunk-XWZJORTR.js":[142152,1648],"chunk-AVOBLM6J.js":[143800,23049],"chunk-A2COKCQW.js":[166849,9346],"chunk-ZI2DEQML.js":[176195,1300645],"chunk-56QUKET6.js":[1476840,26539],"chunk-CHCNSTC6.js":[1503379,33150],"chunk-VUVJNUED.js":[1536529,843],"chunk-ENJSPMKE.js":[1537372,5711],"chunk-QLEOTQPP.js":[1543083,4275],"chunk-5F4OEQFO.js":[1547358,59297],"chunk-PEDFCHUA.js":[1606655,10044],"chunk-TQBGFP74.js":[1616699,5755],"chunk-BK6THAEN.js":[1622454,8650],"chunk-PSGNCPXS.js":[1631104,2178],"chunk-62R5NRBK.js":[1633282,1239],"chunk-ZHLUQOFD.js":[1634521,859],"chunk-UFOAOZEN.js":[1635380,4014],"chunk-B5ZN4LAU.js":[1639394,719],"chunk-P4SJ7AAE.js":[1640113,5431],"chunk-QI57FJGY.js":[1645544,6380],"chunk-4T4YJ4RD.js":[1651924,8679],"chunk-O5465CQM.js":[1660603,22971],"chunk-T3HFVZEB.js":[1683574,518],"chunk-63LB3RHX.js":[1684092,12498],"chunk-MTUOK4RE.js":[1696590,84731],"chunk-VZBM34RQ.js":[1781321,9930],"chunk-CH5G34ZR.js":[1791251,12974],"chunk-3PRRJBNC.js":[1804225,49495],"chunk-C7MLLX5Z.js":[1853720,5014],"chunk-RQUVCPQE.js":[1858734,1894],"chunk-LHXRXBJ7.js":[1860628,2728],"chunk-YFF5OONO.js":[1863356,15744],"chunk-NWMP6D2M.js":[1879100,18340],"chunk-RW66754J.js":[1897440,97072],"chunk-FPIQ2TFB.js":[1994512,23176],"chunk-DKPZXLQX.js":[2017688,6382],"chunk-AKB24SJT.js":[2024070,12188],"chunk-XFM6FHOY.js":[2036258,864],"chunk-EBLBBMDL.js":[2037122,39537],"chunk-Y7XDDNOH.js":[2076659,3148],"chunk-MPTY5RP3.js":[2079807,4541],"chunk-CL2LQSX2.js":[2084348,2924],"chunk-QTVPBXMD.js":[2087272,600],"chunk-OLXLRQHW.js":[2087872,14125],"chunk-BQSKHFYI.js":[2101997,4607],"chunk-ZTE7VHIQ.js":[2106604,31291],"chunk-UIY74G4U.js":[2137895,4402],"chunk-M75QD63N.js":[2142297,13249],"chunk-ZH2OH7N7.js":[2155546,5595],"chunk-6D33UMVD.js":[2161141,31896],"chunk-6NQN26U3.js":[2193037,728],"chunk-63QEZURP.js":[2193765,5725],"chunk-J7SIMWQO.js":[2199490,6609],"chunk-2SWA2Q4O.js":[2206099,11760],"chunk-TL2KU4L4.js":[2217859,11252],"chunk-RYLKKJ54.js":[2229111,26958],"chunk-VHTDWJFW.js":[2256069,3718],"chunk-5Q3KHPAT.js":[2259787,1180],"chunk-K7ACFJ32.js":[2260967,1910],"chunk-A47PEZXG.js":[2262877,9457],"chunk-JKWEWO7B.js":[2272334,4281],"chunk-HSZLBPUY.js":[2276615,6514],"chunk-WWND6QWV.js":[2283129,4506],"chunk-3CQQFC22.js":[2287635,973],"chunk-Y6OAY7T7.js":[2288608,3355],"chunk-QZGIBL3S.js":[2291963,1846],"chunk-3IF6EQBK.js":[2293809,7751],"chunk-ENWJCB4Q.js":[2301560,595],"chunk-7NN4OK6H.js":[2302155,33663],"chunk-W5DE23GH.js":[2335818,1962],"chunk-VCMQIBYG.js":[2337780,1251],"chunk-EOWR2ZCK.js":[2339031,522],"chunk-HP7EUJF5.js":[2339553,3086],"chunk-4FIM6H3E.js":[2342639,27966],"chunk-S3MAS27L.js":[2370605,12118],"chunk-TNKCLU3H.js":[2382723,1597],"chunk-HZPLZREV.js":[2384320,4124],"chunk-ELMOWOHB.js":[2388444,2229],"chunk-CSKJP2ZH.js":[2390673,1015],"chunk-ECLVKJ34.js":[2391688,2006],"chunk-6L5VFLZX.js":[2393694,3829],"chunk-ZIGCEUJW.js":[2397523,10452],"chunk-7INB3JS6.js":[2407975,5236],"chunk-FWBHGHFN.js":[2413211,3017],"chunk-5CWKGYAF.js":[2416228,10222],"chunk-Z3PJANAA.js":[2426450,1997],"chunk-AFEZ45A5.js":[2428447,5827],"chunk-SGK4HYK7.js":[2434274,6042],"chunk-36SQ3EEV.js":[2440316,1654],"chunk-U54S4H4O.js":[2441970,972],"chunk-A5FHBCL6.js":[2442942,3577],"chunk-OC64WE2M.js":[2446519,19335],"chunk-ZFC72E4I.js":[2465854,6814],"chunk-LSYWGS7A.js":[2472668,6699],"chunk-BZN4G6FK.js":[2479367,11818],"chunk-CHRKGZV7.js":[2491185,1107],"chunk-4C2FH2AO.js":[2492292,2478],"chunk-COK36SPG.js":[2494770,2683],"chunk-2HPOZMEU.js":[2497453,8097],"chunk-7PUSUQM4.js":[2505550,4302],"chunk-LCJQMIFX.js":[2509852,8485],"chunk-OXNEARI6.js":[2518337,1827],"chunk-PHEOT63U.js":[2520164,2820],"chunk-2DRP2VJ3.js":[2522984,27327],"chunk-5EWRVD53.js":[2550311,20779],"chunk-LVIMSVIB.js":[2571090,14246],"chunk-6TWLKPZR.js":[2585336,1309],"chunk-J5GMEYZP.js":[2586645,1956],"chunk-NU47DXBG.js":[2588601,2009],"chunk-NOKCUDXE.js":[2590610,654],"chunk-SSSZPEMQ.js":[2591264,22934],"chunk-N2RKCS4K.js":[2614198,6283],"chunk-RD6HWMDP.js":[2620481,8052],"chunk-2I56GWU5.js":[2628533,8196],"chunk-GR3S744X.js":[2636729,11077],"chunk-LKZ55UPD.js":[2647806,1521],"chunk-ZO5FP4D6.js":[2649327,3191],"chunk-NVKEO5PF.js":[2652518,1057],"chunk-VQ2WONJD.js":[2653575,9200],"chunk-RXGGHOUP.js":[2662775,968],"chunk-D3G773QR.js":[2663743,2113],"chunk-ZQDFKZ6Q.js":[2665856,2856],"chunk-B57NTEB7.js":[2668712,3188],"chunk-GR5R6SDM.js":[2671900,1348],"chunk-5OHVI5HJ.js":[2673248,798],"chunk-G3AJEF6Y.js":[2674046,7710],"chunk-Y6TFN7BQ.js":[2681756,1205],"chunk-ASXAZD47.js":[2682961,2326],"chunk-QIMIDGMC.js":[2685287,29475],"chunk-AEDVVRZ7.js":[2714762,1830],"chunk-GBRAZEIG.js":[2716592,7826],"chunk-2GQMBQI4.js":[2724418,1473],"chunk-NM5LPUD5.js":[2725891,17386],"chunk-5ZEFTENT.js":[2743277,1894],"chunk-FMH4HUD4.js":[2745171,4631],"chunk-UHAYBJMP.js":[2749802,3856],"chunk-KDHJ7TAJ.js":[2753658,8421],"chunk-GNAT3OYV.js":[2762079,1248],"chunk-KX5YPFLO.js":[2763327,5985],"chunk-DGELTOB2.js":[2769312,12851],"chunk-VXC7COFG.js":[2782163,1322],"chunk-H4BSXUGK.js":[2783485,6082],"chunk-B7JFILND.js":[2789567,6062],"chunk-SPWEO2IW.js":[2795629,35982],"chunk-4ETOBJ6A.js":[2831611,2873],"chunk-L2J4EFSL.js":[2834484,3756],"chunk-LKMDKIRD.js":[2838240,1064],"chunk-LCFGWND2.js":[2839304,770],"chunk-ZV5A5A7P.js":[2840074,1039],"chunk-5N7W4ZQK.js":[2841113,636],"chunk-GJQVAQJD.js":[2841749,7343],"chunk-LV3FQ6MX.js":[2849092,1838],"chunk-Q5RUZLTI.js":[2850930,34547],"chunk-LKNE2MCG.js":[2885477,2331],"chunk-33SCQXHN.js":[2887808,805],"chunk-4DREJSJP.js":[2888613,2495],"chunk-FI6VSKSZ.js":[2891108,21628],"chunk-GHD3DLUN.js":[2912736,28042],"chunk-3BDADUWM.js":[2940778,6695],"chunk-WSBSJ6IF.js":[2947473,3236],"chunk-5E4WGTJ2.js":[2950709,33851],"chunk-UPEI75V6.js":[2984560,2290],"chunk-4KI6SEJA.js":[2986850,3716],"chunk-M7KBCZY2.js":[2990566,9212],"chunk-L37E6SKP.js":[2999778,9247],"chunk-APP3GTQH.js":[3009025,2044],"chunk-ZG4HVQTL.js":[3011069,12786],"chunk-7ALLYUKY.js":[3023855,12062],"chunk-TBDSA5JU.js":[3035917,1618],"chunk-MSS523AX.js":[3037535,13635],"chunk-6QLAWUYL.js":[3051170,896],"chunk-NI5WWTSZ.js":[3052066,3268],"chunk-UDBCNPHC.js":[3055334,568],"chunk-4KJKRQ2J.js":[3055902,17609],"chunk-NTWTUEM4.js":[3073511,33259],"chunk-ILGCY5RI.js":[3106770,721],"chunk-WXVXVVZ4.js":[3107491,35770],"chunk-VKUOEG65.js":[3143261,8059],"chunk-WHDIXZYC.js":[3151320,706597],"chunk-4IKFRPPU.js":[3857917,14446],"chunk-H2M5XBVR.js":[3872363,9524],"chunk-PDD4UPCU.js":[3881887,1236],"chunk-IFMNUBFV.js":[3883123,14619],"chunk-5EVCZAIF.js":[3897742,51046],"chunk-QPWXZAKM.js":[3948788,470],"chunk-BOV33GTC.js":[3949258,2422],"chunk-R2PXWALU.js":[3951680,1047],"chunk-ISLX656I.js":[3952727,2388],"chunk-CN42EFOU.js":[3955115,16139],"chunk-42FMBESE.js":[3971254,4428],"chunk-73XHLA25.js":[3975682,478],"chunk-GS5WW6TQ.js":[3976160,21945],"chunk-QV4M7N2E.js":[3998105,4619],"chunk-MOAASB3D.js":[4002724,3179],"chunk-HQSFTW3L.js":[4005903,5567],"chunk-A53YLAJD.js":[4011470,9538],"chunk-754XOEG4.js":[4021008,8191],"chunk-G5WUBD6Q.js":[4029199,1264],"chunk-TT2HRNDU.js":[4030463,824],"chunk-IH7PNLKN.js":[4031287,1985],"chunk-W5KUJXS4.js":[4033272,27373],"chunk-5YQSPQDK.js":[4060645,17569],"chunk-TVWEB6OS.js":[4078214,82781],"chunk-CL2CVJIR.js":[4160995,14053],"chunk-5OKFBES7.js":[4175048,7026],"chunk-TXYURT2A.js":[4182074,3531],"chunk-ABFDXJTX.js":[4185605,10436],"chunk-NHH3JI47.js":[4196041,2382],"chunk-6FCAXEP5.js":[4198423,1583],"chunk-LMEKIRV6.js":[4200006,18679],"chunk-KWO25CJA.js":[4218685,3373],"chunk-B3D3CCE3.js":[4222058,36484],"chunk-57FWW2TR.js":[4258542,9315],"chunk-YNZN4RXL.js":[4267857,890],"chunk-4R6RHBKW.js":[4268747,3319],"chunk-JWWUBWGW.js":[4272066,2353],"chunk-3MCTZLD2.js":[4274419,18210],"chunk-RTGD5PHP.js":[4292629,904],"chunk-XQ2Z7RQT.js":[4293533,2410],"chunk-P6SOU6ZU.js":[4295943,4242],"chunk-A5OS5Q3A.js":[4300185,1113],"chunk-B6B3HTX5.js":[4301298,1027],"chunk-FCDE2PFH.js":[4302325,2061],"chunk-RZCCUFYW.js":[4304386,14299],"chunk-XCBVJKFU.js":[4318685,2329],"chunk-GWJZTPOP.js":[4321014,6179],"chunk-GSYWC2KA.js":[4327193,5407],"chunk-RZ4FO7NT.js":[4332600,5718],"chunk-A6HFXEOD.js":[4338318,66322],"chunk-HH6ORPZ3.js":[4404640,11103],"chunk-BA7KV7K2.js":[4415743,1402],"chunk-6I2ZCL5I.js":[4417145,3001],"chunk-XO73CXA6.js":[4420146,5582],"chunk-WGJD55RG.js":[4425728,8926],"chunk-QI2JL2EW.js":[4434654,1846],"chunk-JOG6S4YJ.js":[4436500,5079],"chunk-VEIEFCKW.js":[4441579,3750],"chunk-KLC43WP7.js":[4445329,5573],"chunk-XAD6UO77.js":[4450902,155305],"chunk-E5RADI2N.js":[4606207,644],"chunk-AQJFHKOP.js":[4606851,37223],"chunk-FO4P6YW4.js":[4644074,420],"chunk-732DBWTN.js":[4644494,54718],"chunk-HWEUBTHG.js":[4699212,800],"chunk-J76KMXOL.js":[4700012,456],"chunk-5GLE6K27.js":[4700468,48075],"chunk-3FSWGIW3.js":[4748543,3490],"chunk-YT6OAQR3.js":[4752033,14130],"chunk-XIJG7AVZ.js":[4766163,5120],"chunk-6TN2W5LR.js":[4771283,6230],"chunk-HOJ24P4R.js":[4777513,4008],"chunk-46PUIANP.js":[4781521,11396],"chunk-F27ZOYUX.js":[4792917,849],"chunk-SHZD54UU.js":[4793766,1790],"chunk-SVRRLIQY.js":[4795556,927],"chunk-GWN2VLYD.js":[4796483,775],"chunk-RR65GDCP.js":[4797258,7716],"chunk-PLTR4THA.js":[4804974,794],"chunk-LPSFPPUH.js":[4805768,1138],"chunk-B5CXY7QR.js":[4806906,4741],"chunk-MXRN7HKZ.js":[4811647,17038],"chunk-3YICI2HQ.js":[4828685,1029],"chunk-LX24SRWW.js":[4829714,546],"chunk-M5IUOYUH.js":[4830260,1797],"chunk-BMSYLKNE.js":[4832057,4959],"chunk-YXFOURWG.js":[4837016,7086],"chunk-KUGWS32P.js":[4844102,798],"chunk-GK3KUMYS.js":[4844900,1418],"chunk-GNDYUWGB.js":[4846318,1471],"chunk-G3PCMLP5.js":[4847789,2552],"chunk-THETYK7S.js":[4850341,50903],"chunk-ZPP6KSZI.js":[4901244,2828],"chunk-RB3DTWNS.js":[4904072,7815],"chunk-2EHWZDIS.js":[4911887,3874],"chunk-UWC6DG6K.js":[4915761,13052],"chunk-AMFM4WVB.js":[4928813,428],"chunk-55A25ZJP.js":[4929241,2764],"chunk-YDYWIPXM.js":[4932005,13281],"chunk-VWRDNZR3.js":[4945286,1669],"chunk-KX4U3BXT.js":[4946955,2716],"chunk-ELENTDOA.js":[4949671,32790],"chunk-2MGJFXBD.js":[4982461,3311],"chunk-UFUTK4J3.js":[4985772,5961],"chunk-7AK23H6H.js":[4991733,24727],"chunk-IJG6DW45.js":[5016460,894],"chunk-22ZGLOOQ.js":[5017354,2437],"chunk-F7SD67NN.js":[5019791,1595],"chunk-VOIKF3DA.js":[5021386,4983],"chunk-5RP2PLMF.js":[5026369,6413],"chunk-WZBKGQG2.js":[5032782,30172],"chunk-K6RE23MP.js":[5062954,7327],"chunk-DOOJN3W3.js":[5070281,3996],"chunk-6FJKODD6.js":[5074277,3859],"chunk-42K5RLAQ.js":[5078136,10723],"chunk-WYVIY5VB.js":[5088859,645],"chunk-LKMXI4JR.js":[5089504,2420],"chunk-RTX6Q7M4.js":[5091924,6964],"chunk-DTAIHUQP.js":[5098888,12643],"chunk-XZMGBQR6.js":[5111531,3577],"chunk-VVQN7FLQ.js":[5115108,997993],"chunk-4HKARYBY.js":[6113101,652],"chunk-YN7BSO4G.js":[6113753,487],"chunk-YEM257RN.js":[6114240,3373],"chunk-JNAEIDFD.js":[6117613,1589],"chunk-QEHE5XIN.js":[6119202,1017],"chunk-ASGDH4BX.js":[6120219,1106],"chunk-L2WQBEE2.js":[6121325,3062],"chunk-SY24OFXM.js":[6124387,515],"chunk-2BEHI55Z.js":[6124902,15841],"chunk-25ATCPQX.js":[6140743,9077],"chunk-5LY4R7RQ.js":[6149820,7152],"chunk-O5PZDOZK.js":[6156972,2069],"chunk-HSFPVTTN.js":[6159041,951],"chunk-QKV4JNOO.js":[6159992,48128],"chunk-J4ANDTN2.js":[6208120,2187],"chunk-7ZYRPKVQ.js":[6210307,785],"chunk-B4CHEEE6.js":[6211092,1805],"chunk-2INLK7KD.js":[6212897,1954],"chunk-YZ4FJDAZ.js":[6214851,6988],"chunk-TWL6NWVU.js":[6221839,5467],"chunk-2VHKGMZY.js":[6227306,8122],"chunk-QFKUAFAQ.js":[6235428,2406],"chunk-FSW455Z3.js":[6237834,1094],"chunk-WFMWQGSA.js":[6238928,30788],"chunk-NT2G6NZP.js":[6269716,3096],"chunk-3OZYMO72.js":[6272812,1980],"chunk-2ZDPP7FB.js":[6274792,8701],"chunk-QOSZM46V.js":[6283493,2177],"chunk-VDFXDD6U.js":[6285670,2347],"chunk-WNBGYTGS.js":[6288017,2615],"chunk-ZXXJIQWN.js":[6290632,6170],"chunk-33PEMHQE.js":[6296802,3552],"chunk-3TNMQJRT.js":[6300354,4550],"chunk-EAZYB6F7.js":[6304904,25519],"chunk-ITPQXSPP.js":[6330423,1117],"chunk-3VQZGR4Z.js":[6331540,64777],"chunk-5GOML4ZI.js":[6396317,1023],"chunk-TAUG3X7L.js":[6397340,21838],"chunk-2A22LVZH.js":[6419178,2017],"chunk-BNMAYJEG.js":[6421195,6301],"chunk-WW3YKGS4.js":[6427496,6972],"chunk-42GNJXRH.js":[6434468,5535],"chunk-GJK47LRI.js":[6440003,39996],"chunk-P5HVGN72.js":[6479999,6844],"chunk-BVPJUYBB.js":[6486843,2235],"chunk-RFXRJLUV.js":[6489078,16681],"chunk-QQWCFX65.js":[6505759,5425],"chunk-I62AI7UR.js":[6511184,8543],"chunk-ZE5IUDQD.js":[6519727,606],"chunk-W6M7WNXY.js":[6520333,10693],"chunk-WOXDKO4S.js":[6531026,3429],"chunk-27YOGVZJ.js":[6534455,2580],"chunk-4SERENB3.js":[6537035,52741],"chunk-NVG7KSFL.js":[6589776,11019],"chunk-P4EFWLH2.js":[6600795,11582],"chunk-SUOZ67ZA.js":[6612377,11045],"chunk-GNCG2VCY.js":[6623422,48087],"chunk-XBGXUWPO.js":[6671509,4057],"chunk-6YIVUJ3T.js":[6675566,10749],"chunk-WO6ZMMV7.js":[6686315,19289],"chunk-G7N4MM62.js":[6705604,19081],"chunk-C2LZILK7.js":[6724685,22833],"chunk-O3TBC7AG.js":[6747518,3256],"chunk-AWZ7QZ2F.js":[6750774,1024],"chunk-T4EJ2T7L.js":[6751798,1118],"chunk-MSDKXB5G.js":[6752916,740],"chunk-DRSPTDXZ.js":[6753656,60970],"chunk-A75HO5AX.js":[6814626,4890],"chunk-HRD6LIAC.js":[6819516,106855],"chunk-QJOW5M74.js":[6926371,7487],"chunk-SZ2YVWSW.js":[6933858,5009],"chunk-D2NMZ3NA.js":[6938867,7638],"chunk-SS4TF2IG.js":[6946505,1158],"chunk-BYRV3EV4.js":[6947663,11738],"chunk-6V3HMRLM.js":[6959401,849],"chunk-RQNH27O4.js":[6960250,2137],"chunk-C7IEAOOY.js":[6962387,586],"chunk-QYSZB2CX.js":[6962973,7472],"chunk-H3M2PQS6.js":[6970445,2458],"chunk-PQ4Q4FVE.js":[6972903,27243],"chunk-P4QWBLMG.js":[7000146,5045],"chunk-5IZLAOJV.js":[7005191,626],"chunk-4KZQAX6G.js":[7005817,667],"chunk-OFHZWLKW.js":[7006484,5817],"chunk-KSSMC4QJ.js":[7012301,970],"chunk-VWHCYNGY.js":[7013271,181592],"chunk-BGECF4FI.js":[7194863,12769],"chunk-3NT3ETW3.js":[7207632,653],"chunk-URWKYBAY.js":[7208285,4266],"chunk-OCMLYBJ6.js":[7212551,645],"chunk-2W3E3BLO.js":[7213196,517],"chunk-7ILZYYJ5.js":[7213713,20228],"chunk-NKDARRYS.js":[7233941,984],"chunk-L2B7V2IR.js":[7234925,3598],"chunk-AQMTMUTO.js":[7238523,8965],"chunk-VGONHBUL.js":[7247488,3953],"chunk-LXYQ45YQ.js":[7251441,581],"chunk-U2LO66LM.js":[7252022,1459],"chunk-DGJWLGLU.js":[7253481,781],"chunk-5LFTJWWA.js":[7254262,1432],"chunk-XS24BHZR.js":[7255694,82538],"chunk-5VWXFIHH.js":[7338232,1622],"chunk-QXBLMETA.js":[7339854,208817],"chunk-ZLCY2RP4.js":[7548671,508],"chunk-54ZADWYC.js":[7549179,1119],"chunk-KWKQLY6R.js":[7550298,895],"chunk-3HMJ4S26.js":[7551193,798],"chunk-6ASH6ONX.js":[7551991,926],"chunk-K4HNIBI5.js":[7552917,1031],"chunk-N4XPYVHZ.js":[7553948,570],"chunk-P7Y5RLBQ.js":[7554518,659],"chunk-U46I2RNP.js":[7555177,14991],"chunk-A5JJRXKP.js":[7570168,1323],"chunk-JD7LCTY5.js":[7571491,28011],"chunk-WEFATG3K.js":[7599502,3561],"chunk-3XIAQAZF.js":[7603063,1386],"chunk-7LI5PUEA.js":[7604449,5329],"chunk-XREFZ4IE.js":[7609778,2544],"chunk-JCZ4B3K4.js":[7612322,119256],"chunk-XI4KRMQ3.js":[7731578,62367],"chunk-5MCIPDL5.js":[7793945,1526],"chunk-F3MIOLJD.js":[7795471,1814],"chunk-XW5L7F7Q.js":[7797285,2510],"chunk-TJF3FRCL.js":[7799795,689],"chunk-HUGCUHDN.js":[7800484,437],"chunk-EBYX5RFA.js":[7800921,152079],"chunk-CFBLJRHC.js":[7953000,4270],"chunk-5KBNR7KF.js":[7957270,2809],"chunk-CBYXFXEK.js":[7960079,13229],"chunk-VOCQKOKX.js":[7973308,3215],"chunk-U5ZJ7R6P.js":[7976523,582],"chunk-27X7O44W.js":[7977105,17831],"chunk-ADFOOTBM.js":[7994936,3326],"chunk-ZJR6B5KN.js":[7998262,5912],"chunk-QN4GIIIQ.js":[8004174,26754],"chunk-OXSIP42W.js":[8030928,4978],"chunk-IYJO5VG3.js":[8035906,34519],"chunk-RLZOYXGX.js":[8070425,1290],"chunk-JXBZKVPX.js":[8071715,4228],"chunk-I4MAQNZ6.js":[8075943,9906],"chunk-UH3DPN5S.js":[8085849,116596],"chunk-XSGSA5HE.js":[8202445,2359],"chunk-VAWZAMUC.js":[8204804,2527],"chunk-IVW4FYZL.js":[8207331,1694],"chunk-S3LCGAXF.js":[8209025,1927],"chunk-UYEQ5IKQ.js":[8210952,10655],"chunk-NRI3A3P3.js":[8221607,15620],"chunk-PIN4OGVQ.js":[8237227,1624],"chunk-VVXSQB3N.js":[8238851,1463],"chunk-75OSDJV6.js":[8240314,227316],"chunk-VHYAANZJ.js":[8467630,1578],"chunk-BW5UVAJK.js":[8469208,6887],"chunk-5PACRQSG.js":[8476095,6268],"chunk-JHAJ2EQZ.js":[8482363,374],"chunk-7IMJQKLR.js":[8482737,37572],"chunk-NARWV6LV.js":[8520309,1153],"chunk-WKQ7CARB.js":[8521462,6554],"chunk-4CGRAJIN.js":[8528016,1761],"chunk-YR4KI4AX.js":[8529777,229364],"chunk-ASHYIKP2.js":[8759141,84523],"chunk-2NBKY5OR.js":[8843664,1163],"chunk-N7WEX3TW.js":[8844827,782],"chunk-PIDGJ3PS.js":[8845609,48682],"chunk-7NXOFE3Y.js":[8894291,627],"chunk-MMCLHVYR.js":[8894918,4194],"chunk-RM5WDE6D.js":[8899112,27065],"chunk-R53MR5FL.js":[8926177,1472],"chunk-WI53BNCJ.js":[8927649,9467],"chunk-G2BAEM2W.js":[8937116,7502],"chunk-ZX4JFCBX.js":[8944618,17614],"chunk-REHPYY6W.js":[8962232,8847],"chunk-WXZVQDZI.js":[8971079,15137],"chunk-ISDJHEV6.js":[8986216,5429],"chunk-GIYDZSWK.js":[8991645,1501],"chunk-HBLXR5QX.js":[8993146,14497],"chunk-T3VU5KKH.js":[9007643,28236],"chunk-DOJOZMUN.js":[9035879,1328],"chunk-FBB6EXGL.js":[9037207,929],"chunk-XIPXMUB4.js":[9038136,7629],"chunk-PYL4IDMD.js":[9045765,13189],"chunk-FVHQJ2XB.js":[9058954,8490],"chunk-W4YHG3HT.js":[9067444,3345],"chunk-J25WQIO7.js":[9070789,28643],"chunk-UJLK73XC.js":[9099432,16839],"chunk-EJFUQGLJ.js":[9116271,6736],"chunk-VNWXPWRQ.js":[9123007,2839],"chunk-MI7JADJI.js":[9125846,19441],"chunk-HTDYTOUU.js":[9145287,2312],"chunk-NYGDCIWF.js":[9147599,2057],"chunk-GC3FTUE4.js":[9149656,3458],"chunk-QZLZ3YTY.js":[9153114,1567],"chunk-DSP7JCME.js":[9154681,3187],"chunk-QLERLI65.js":[9157868,10882],"chunk-6KVY4KJN.js":[9168750,624],"chunk-ZERNGWJX.js":[9169374,13429],"chunk-TVAHDSQK.js":[9182803,5561],"chunk-VPX6NDSW.js":[9188364,48042],"chunk-RMHSR53E.js":[9236406,886],"chunk-UT7EZBVS.js":[9237292,686],"chunk-5TKXJ3PD.js":[9237978,47976],"chunk-TLNPVU7Q.js":[9285954,24900],"chunk-VB7LSMI7.js":[9310854,1103],"chunk-EYFAW7OO.js":[9311957,53873],"chunk-WYRR7ZUK.js":[9365830,5512],"chunk-XWL2HO2N.js":[9371342,43591],"chunk-2N3HZ2AA.js":[9414933,350953],"chunk-UEAIUC56.js":[9765886,10156],"chunk-EMJFYSOZ.js":[9776042,13663],"chunk-2CQDQRRY.js":[9789705,8271],"chunk-UY3B2Y3A.js":[9797976,6116],"chunk-YGIDO4BV.js":[9804092,283690],"chunk-YAZTC7UE.js":[10087782,531],"chunk-KVPM3YZL.js":[10088313,1653],"chunk-DAPLZJEI.js":[10089966,23789],"chunk-CVQFIAYE.js":[10113755,185742],"chunk-DLEPEZYT.js":[10299497,7790],"chunk-WU6FFQQA.js":[10307287,1187853],"chunk-O5XBBJIG.js":[11495140,21524],"chunk-KMOIE6QH.js":[11516664,7443],"chunk-TLJ52LYJ.js":[11524107,169178],"chunk-R5OULVRL.js":[11693285,107597],"chunk-B6LQRXY5.js":[11800882,13298],"chunk-3A7MM66Q.js":[11814180,21863],"chunk-UDCN3GDD.js":[11836043,29022],"chunk-FUZS7BHK.js":[11865065,2983],"chunk-6ENJPFNE.js":[11868048,3519],"chunk-5V4QCYX5.js":[11871567,1822],"chunk-RH35ZOZ4.js":[11873389,5732],"chunk-E2K5V7IX.js":[11879121,403326],"chunk-VVBEDMEH.js":[12282447,8493],"chunk-WWLJ2Y62.js":[12290940,11645],"chunk-B2MDZWCY.js":[12302585,6670],"chunk-Y2YVBRH7.js":[12309255,37692],"chunk-22SFDDPO.js":[12346947,71697],"chunk-LT4VNHKF.js":[12418644,3277],"chunk-36YI5FA2.js":[12421921,629],"chunk-HAVW4VAH.js":[12422550,11196],"chunk-4ZZOH2PJ.js":[12433746,706],"chunk-ZAFH24X7.js":[12434452,5141],"chunk-EHKXNXAC.js":[12439593,1178],"chunk-OKNI3MX4.js":[12440771,3408],"chunk-XKEY2ZJY.js":[12444179,766],"chunk-IFRG5QFF.js":[12444945,1620],"chunk-J67HNBT2.js":[12446565,529],"chunk-BOJVZQKS.js":[12447094,679],"chunk-5WN4QURS.js":[12447773,1178],"chunk-474JNYHQ.js":[12448951,529],"chunk-5AGA3WHS.js":[12449480,3778],"chunk-JLS6MFZF.js":[12453258,2317],"chunk-LJ44MR6C.js":[12455575,1867],"chunk-PYZQFS3I.js":[12457442,2228],"chunk-LBMU5PK3.js":[12459670,692],"chunk-VBWOB2EP.js":[12460362,675],"chunk-O6ZSVPQY.js":[12461037,1403],"chunk-D5ZQ2V77.js":[12462440,527],"chunk-GOBBENRZ.js":[12462967,1098],"chunk-GUMK3KV5.js":[12464065,29046],"chunk-JGYXVZRK.js":[12493111,2498],"chunk-UOTMDZRQ.js":[12495609,3173],"chunk-YYJ6YAEV.js":[12498782,1066],"chunk-ZR6OAOAM.js":[12499848,116389],"chunk-D3BCFTFP.js":[12616237,37126],"chunk-H7WI2XQX.js":[12653363,554],"chunk-EXF4DEBL.js":[12653917,583],"chunk-O2623Z65.js":[12654500,529],"chunk-RUY664CA.js":[12655029,554],"chunk-U2DQFIPH.js":[12655583,492],"chunk-LW4OWS6S.js":[12656075,463],"chunk-MFUYESC7.js":[12656538,640],"chunk-6F2TZSVU.js":[12657178,1407],"chunk-7D5JZYFE.js":[12658585,1243],"chunk-52DRUIWH.js":[12659828,5153],"chunk-GBJM5CZ7.js":[12664981,6919],"chunk-QDTW7PGT.js":[12671900,5944],"chunk-HHDYDNZZ.js":[12677844,3421],"chunk-3XJ3MRXL.js":[12681265,3948],"chunk-22CW5FEI.js":[12685213,3996],"chunk-KWKG432R.js":[12689209,4996],"chunk-JHLJQACP.js":[12694205,1730],"chunk-YHC3LX4V.js":[12695935,976],"chunk-A4DTC5ZN.js":[12696911,7086],"chunk-GEKBU5LU.js":[12703997,1499],"chunk-ZNB5F6A4.js":[12705496,3051],"chunk-HJR57H5U.js":[12708547,476],"chunk-GPIJBBBL.js":[12709023,2189],"chunk-XRXQBENI.js":[12711212,653],"chunk-SVGMLU4D.js":[12711865,3885],"chunk-YUX22SYK.js":[12715750,915],"chunk-VWZRUZS4.js":[12716665,745],"chunk-BIVSV5WA.js":[12717410,535],"chunk-BYXZB3F3.js":[12717945,2936],"chunk-AVNZJFYZ.js":[12720881,839],"chunk-CFLSIHZG.js":[12721720,2863],"chunk-RBKDTPA4.js":[12724583,505],"chunk-24MZQGUC.js":[12725088,3247],"chunk-RBU6S5O5.js":[12728335,9400],"chunk-URXRPQ5T.js":[12737735,643],"chunk-OJ7HYH2S.js":[12738378,2436],"chunk-WT55OKYD.js":[12740814,1891],"chunk-REME6WPG.js":[12742705,1194],"chunk-A6QKASN5.js":[12743899,5157],"chunk-IRXRJKWP.js":[12749056,698],"chunk-XFTWFG6X.js":[12749754,3367],"chunk-DBH6X7SK.js":[12753121,553],"chunk-YV7U5UHL.js":[12753674,5192],"chunk-622PM7BB.js":[12758866,831],"chunk-VDCNTLYX.js":[12759697,2790],"chunk-XKVXCF6J.js":[12762487,763],"chunk-DB4IKYK5.js":[12763250,3042],"chunk-RCUOOC6I.js":[12766292,585],"chunk-NMPNDMWQ.js":[12766877,7095],"chunk-WNZIESWT.js":[12773972,660],"chunk-5DL354QD.js":[12774632,676],"chunk-7JWEWMSN.js":[12775308,625],"chunk-RJIFUWGV.js":[12775933,568],"chunk-ATSGHEAN.js":[12776501,1598],"gateway.js":[12778099,45514],"chunk-BYB4456Q.js":[12823613,575],"chunk-W3MLMWUU.js":[12824188,1644],"chunk-3OUUYVXY.js":[12825832,1229],"chunk-ZAF5NDFS.js":[12827061,2339],"chunk-4UDK47YR.js":[12829400,819],"chunk-GF66SERR.js":[12830219,1156],"chunk-4YGCENX3.js":[12831375,2958],"chunk-AQGHJLTO.js":[12834333,22727],"chunk-KOQOCF6W.js":[12857060,6570],"chunk-KM42XUF7.js":[12863630,683],"chunk-V3MGUBPL.js":[12864313,679],"chunk-D4RFND2P.js":[12864992,43925],"chunk-WJQARKB6.js":[12908917,2132],"chunk-KOL56MZS.js":[12911049,6048],"chunk-77SZODMH.js":[12917097,32398],"chunk-O57S5IDR.js":[12949495,7383],"chunk-GXOOASN7.js":[12956878,1972],"chunk-YFKFN5RN.js":[12958850,26552],"chunk-VCQAMIXI.js":[12985402,3559],"chunk-CZJHJ5MD.js":[12988961,1279],"chunk-EJ2XPKOG.js":[12990240,5463],"chunk-HF67SVD3.js":[12995703,510],"chunk-CRKL76ET.js":[12996213,1977],"chunk-TYEXZIO4.js":[12998190,6376],"chunk-TDLCVR4S.js":[13004566,1208],"chunk-5G3DGRGC.js":[13005774,21175],"chunk-LX5HTJ5O.js":[13026949,123503],"chunk-2GBWYXTI.js":[13150452,4230],"chunk-FNXED53L.js":[13154682,36666],"chunk-IKOA5O6E.js":[13191348,137021],"chunk-HCIH5CMU.js":[13328369,19818],"chunk-7HSZWQMD.js":[13348187,1995],"chunk-YIV5TOCA.js":[13350182,1266],"chunk-SKN2T4OO.js":[13351448,89815],"chunk-PKYWH4XV.js":[13441263,2318],"chunk-EEXXXCOR.js":[13443581,2590],"chunk-4C2KWT6H.js":[13446171,2109],"chunk-UENH6JHC.js":[13448280,1379]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./automations-workspace-
|
|
1
|
+
import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./automations-workspace-DyQq55Rh.js";var r=e(),i=t();function a(){let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t}export{a as AutomationsPage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-page-
|
|
2
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./preload-helper-Czpn1I53.js";import{_ as a,f as o,t as s}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{a as c,i as l,l as u,n as d}from"./locale-store-CHjsq5NR.js";import{t as f}from"./messages-C7QSnTdg.js";import{a as p,n as m,o as h,r as g,s as _,t as v}from"./dist-DlirbHVs.js";import{t as y}from"./activity-YogQEteU.js";import{t as b}from"./arrow-left-D880xG-P.js";import{a as x,c as S,f as C,i as ee,l as w,n as T,o as E,r as D,s as O,t as k,u as A}from"./automation-display-DaVDNZz8.js";import{i as j,n as M,r as N,t as P}from"./automation-run-list-CM59-qm5.js";import{t as F}from"./check-DUBLcKHA.js";import{t as te}from"./chevron-down-ccbiQQz_.js";import{t as ne}from"./chevron-right-BweFrslA.js";import{n as I,r as L}from"./popover-select-hRG1EzAY.js";import{t as re}from"./circle-alert-BEjgurr2.js";import{t as ie}from"./circle-check-C23XjkUj.js";import{t as R}from"./copy-Dv6d4Dvw.js";import{t as z}from"./ellipsis-0k4rZLoy.js";import{t as ae}from"./eye-CABVeTq0.js";import{t as B}from"./git-branch-Dh9uxTot.js";import{t as V}from"./list-filter-CIPvpfLA.js";import{t as H}from"./loader-circle-CifKLtgG.js";import{t as oe}from"./markdown-view-ihzUc4ud.js";import{t as se}from"./message-circle-Badhj-4D.js";import{t as ce}from"./pause-DuPxgSxk.js";import{t as U}from"./pencil-DmIY3Oa-.js";import{t as le}from"./play-kxZvpBg8.js";import{t as W}from"./plus-Q2yW6OE7.js";import{t as G}from"./refresh-cw-BRlGaq2w.js";import{t as K}from"./search-DA7gz22f.js";import{t as ue}from"./shield-check-BU58siTV.js";import{t as de}from"./sparkles-DHlfQFAF.js";import{t as fe}from"./square-pen-B8FsvqNu.js";import{t as pe}from"./trash-2-DusmjVPV.js";import{t as me}from"./x-B_N4OPjy.js";import{t as he}from"./zap-dximCGjy.js";import{t as q}from"./cn-0WouolD0.js";import{t as J}from"./skeleton-DzdOeGYz.js";import{d as ge}from"./api-CGs641OT.js";import{a as _e}from"./session-api-CR3NLqvs.js";import{N as ve}from"./session-manager-DUWeBdeG.js";import{a as ye,i as be,o as xe}from"./vendor-swr-CdRzEUwF.js";import{t as Se}from"./chat-agents-api-CyvBfBbp.js";import{t as Ce}from"./button-C5tRaJxt.js";import{t as we}from"./page-header-store-NP7MCIaP.js";import{t as Y}from"./automation-api-D-gn6x5E.js";import{n as Te}from"./agent-display-names-Bje7vfSn.js";import{t as X}from"./sliding-tab-list-CmcrqRzN.js";import{t as Ee}from"./refresh-button-DX7bULU5.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,m as Ne,o as Pe,p as Fe,r as Ie,s as Le,t as Re,u as ze}from"./dist-DaFr5KMw.js";import{n as Be}from"./model-selector-QFZY5XNN.js";import{a as Ve,c as He,d as Ue,f as We,h as Z,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,u as Qe}from"./automation-task-card-C453Q-Wa.js";import{t as $e}from"./time-picker-otHjbob1.js";import{t as et}from"./date-time-picker-ChG1CqR1.js";import{i as tt,n as nt,r as rt,t as it}from"./automation-result-state-B7hq0XOL.js";import{n as at}from"./routine-panel-Bfbiz0IN.js";var ot=n(),Q=e(t(),1),$=r(),st=(0,Q.lazy)(()=>i(()=>import(`./chat-page-LOR5JxDh.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219])));function ct(e){let t=(0,ot.c)(110),{runId:n,automationId:r,projectId:i,language:a,onConfigure:o,onDetails:s,onBack:c}=e,l=a===`zh`,[u,d]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(!1),[h,g]=(0,Q.useState)(null),_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>g(e),t[0]=_):_=t[0];let v=_,y;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>m(!0),t[1]=y):y=t[1];let x=y,{mutate:S}=ye(),C=(0,Q.useRef)(!1),ee=i??``,w;t[2]!==r||t[3]!==n||t[4]!==ee?(w=[`automation-execution`,r,n,ee],t[2]=r,t[3]=n,t[4]=ee,t[5]=w):w=t[5];let T;t[6]!==r||t[7]!==i||t[8]!==n||t[9]!==l?(T=async()=>{let{run:e}=await Y.getRun(n);if(e.automationId!==r)throw Error(l?`执行记录不属于此自动化`:`Execution does not belong to this automation`);let{automation:t}=await Y.get(r);if(i&&t.projectId!==i)throw Error(l?`执行记录不属于此项目`:`Execution does not belong to this project`);return{run:e,automation:t}},t[6]=r,t[7]=i,t[8]=n,t[9]=l,t[10]=T):T=t[10];let E;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(E={refreshInterval:dt,shouldRetryOnError:!1},t[11]=E):E=t[11];let{data:D,error:O,mutate:k}=be(w,T,E),A=D?.run,j=A?.conversationId,N;t[12]===j?N=t[13]:(N=e=>!!(j&&(e.sessions[j]?.streaming||e.sessions[j]?.sending)),t[12]=j,t[13]=N);let P=ve(N),F;t[14]===j?F=t[15]:(F=j?[`automation-execution-session`,j]:null,t[14]=j,t[15]=F);let te;t[16]===j?te=t[17]:(te=()=>_e(j),t[16]=j,t[17]=te);let ne;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(ne={shouldRetryOnError:!1},t[18]=ne):ne=t[18];let{data:I,error:L,mutate:re}=be(F,te,ne),ie=A?.conversationShared||D?.automation.conversationMode===`continuous`||I?.customData?.latestAutomationRunId!==void 0&&I.customData.latestAutomationRunId!==n,R=!!(I&&(!ie||u)),z=!O&&!!(A&&(!j||ie&&!u&&I&&!L&&(A?.summary||A?.error)||I&&!L&&p)),ae,B;if(t[19]!==z||t[20]!==k||t[21]!==S||t[22]!==A?(ae=()=>{!A||!z||M(A)||A.readAtMs!=null||C.current||(C.current=!0,Y.markRunRead(A.id).then(async()=>{await Promise.all([k(),S(ut)])}).catch(lt).finally(()=>{C.current=!1}))},B=[A,z,k,S],t[19]=z,t[20]=k,t[21]=S,t[22]=A,t[23]=ae,t[24]=B):(ae=t[23],B=t[24]),(0,Q.useEffect)(ae,B),O){let e=O instanceof Error?O.message:l?`执行记录加载失败`:`Could not load execution`,n;t[25]===e?n=t[26]:(n=(0,$.jsx)(`p`,{children:e}),t[25]=e,t[26]=n);let r;t[27]===k?r=t[28]:(r=()=>void k(),t[27]=k,t[28]=r);let i=l?`重试`:`Retry`,a;t[29]!==r||t[30]!==i?(a=(0,$.jsx)(Ce,{onClick:r,children:i}),t[29]=r,t[30]=i,t[31]=a):a=t[31];let o=l?`返回自动化`:`Back to automation`,s;t[32]!==c||t[33]!==o?(s=(0,$.jsx)(Ce,{onClick:c,children:o}),t[32]=c,t[33]=o,t[34]=s):s=t[34];let u;return t[35]!==n||t[36]!==a||t[37]!==s?(u=(0,$.jsxs)(`section`,{role:`alert`,className:`space-y-3 p-5`,children:[n,a,s]}),t[35]=n,t[36]=a,t[37]=s,t[38]=u):u=t[38],u}if(!A){let e;return t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`space-y-4 p-5`,"aria-busy":`true`,children:[(0,$.jsx)(J,{className:`h-6 w-2/3`}),(0,$.jsx)(J,{className:`h-20`})]}),t[39]=e):e=t[39],e}let V;t[40]===A?V=t[41]:(V=M(A),t[40]=A,t[41]=V);let H=V,se=l?`执行会话`:`Execution conversation`,ce=l?`返回自动化`:`Back to automation`,U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(b,{className:`size-4`}),t[42]=U):U=t[42];let le;t[43]!==c||t[44]!==ce?(le=(0,$.jsx)(Ce,{variant:`ghost`,className:`shrink-0`,onClick:c,"aria-label":ce,children:U}),t[43]=c,t[44]=ce,t[45]=le):le=t[45];let W;t[46]===A.automationName?W=t[47]:(W=(0,$.jsx)(`h2`,{className:`truncate text-sm font-medium text-fg`,children:A.automationName}),t[46]=A.automationName,t[47]=W);let G;t[48]!==le||t[49]!==W?(G=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[le,W]}),t[48]=le,t[49]=W,t[50]=G):G=t[50];let K;t[51]!==A.createdAtMs||t[52]!==l?(K=new Date(A.createdAtMs).toLocaleString(l?`zh-CN`:`en-US`),t[51]=A.createdAtMs,t[52]=l,t[53]=K):K=t[53];let ue;t[54]===a?ue=t[55]:(ue=f(a),t[54]=a,t[55]=ue);let de=ue.automations.status[A.status],fe;t[56]!==K||t[57]!==de?(fe=(0,$.jsxs)(`span`,{children:[K,` · `,de]}),t[56]=K,t[57]=de,t[58]=fe):fe=t[58];let pe;t[59]!==s||t[60]!==A.id?(pe=()=>s(A.id),t[59]=s,t[60]=A.id,t[61]=pe):pe=t[61];let me=l?`运行详情`:`Run details`,he;t[62]!==pe||t[63]!==me?(he=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:pe,children:me}),t[62]=pe,t[63]=me,t[64]=he):he=t[64];let q;t[65]!==o||t[66]!==A?(q=()=>o(A),t[65]=o,t[66]=A,t[67]=q):q=t[67];let ge=l?`调整自动化`:`Adjust automation`,xe;t[68]!==q||t[69]!==ge?(xe=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:q,children:ge}),t[68]=q,t[69]=ge,t[70]=xe):xe=t[70];let Se;t[71]!==fe||t[72]!==he||t[73]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-fg-muted`,children:[fe,he,xe]}),t[71]=fe,t[72]=he,t[73]=xe,t[74]=Se):Se=t[74];let we;t[75]!==D?.automation||t[76]!==ie||t[77]!==l?(we=ie?(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[l?`多次执行可能共用此会话;下方摘要对应所选执行。`:`Executions may share this conversation. The summary belongs to the selected execution.`,D?.automation.conversationMode===`continuous`?l?`追问会进入后续运行上下文。`:` Follow-ups become context for future runs.`:null]}):null,t[75]=D?.automation,t[76]=ie,t[77]=l,t[78]=we):we=t[78];let Te;t[79]!==h||t[80]!==u||t[81]!==l?(Te=u?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:h===!0?l?`已定位到所选执行的会话起点。`:`Located the selected execution in this conversation.`:h===!1?l?`旧记录缺少可用的执行定位信息,当前显示完整会话。`:`No matching turn was found in the available history. Showing the full conversation.`:l?`正在定位所选执行…`:`Locating the selected execution…`}):null,t[79]=h,t[80]=u,t[81]=l,t[82]=Te):Te=t[82];let X;t[83]!==H||t[84]!==l?(X=H?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:l?`执行中,完成后可继续追问。`:`Execution in progress. Follow up after it finishes.`}):null,t[83]=H,t[84]=l,t[85]=X):X=t[85];let Ee;t[86]!==G||t[87]!==Se||t[88]!==we||t[89]!==Te||t[90]!==X?(Ee=(0,$.jsxs)(`header`,{className:`shrink-0 space-y-2 border-b border-edge px-4 py-3`,children:[G,Se,we,Te,X]}),t[86]=G,t[87]=Se,t[88]=we,t[89]=Te,t[90]=X,t[91]=Ee):Ee=t[91];let De;t[92]!==H||t[93]!==j||t[94]!==P||t[95]!==I||t[96]!==a||t[97]!==re||t[98]!==A.error||t[99]!==A.id||t[100]!==A.summary||t[101]!==L||t[102]!==ie||t[103]!==R||t[104]!==l?(De=R?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(st,{embedded:!0,automationExecution:!0,conversationId:j,readOnly:H||P,onHistoryReady:x,initialTurnId:ie?A.id:void 0,onInitialTurnLocated:v},j)}):(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-5`,children:[A.summary?(0,$.jsx)(oe,{content:A.summary}):null,A.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm text-danger`,children:A.error}):null,j?null:(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:H?l?`等待执行会话,开始后会自动更新。`:`Waiting for the execution conversation. This view updates automatically.`:l?`本次执行没有关联会话,可查看运行结果和详情。`:`No conversation is associated with this execution. Results and diagnostics remain available.`}),j&&!I&&!L?(0,$.jsx)(J,{className:`h-24`}):null,L?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:L.status===404?l?`执行会话已删除,运行结果仍保留。`:`The execution conversation was deleted. Results are still available.`:l?`执行会话暂时无法读取,运行结果仍保留。`:`The conversation is unavailable. Results are still available.`}),(0,$.jsx)(Ce,{onClick:()=>void re(),children:l?`重试`:`Retry`})]}):null,ie&&I?(0,$.jsx)(Ce,{variant:`secondary`,onClick:()=>d(!0),children:l?`打开共享会话`:`Open shared conversation`}):null,H?null:(0,$.jsx)(tt,{runId:A.id,language:a})]}),t[92]=H,t[93]=j,t[94]=P,t[95]=I,t[96]=a,t[97]=re,t[98]=A.error,t[99]=A.id,t[100]=A.summary,t[101]=L,t[102]=ie,t[103]=R,t[104]=l,t[105]=De):De=t[105];let Oe;return t[106]!==se||t[107]!==Ee||t[108]!==De?(Oe=(0,$.jsxs)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":se,children:[Ee,De]}),t[106]=se,t[107]=Ee,t[108]=De,t[109]=Oe):Oe=t[109],Oe}function lt(){}function ut(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-navigation-runs`].includes(String(e[0]))||e===`automations-global-system-source`}function dt(e){return e&&M(e.run)?3e3:15e3}function ft(e){let t=(0,ot.c)(44),{automation:n,language:r,busy:i,onEdit:a,onAction:o}=e,s=r===`zh`,c=n.management,l=s?`${n.name}的更多操作`:`More actions for ${n.name}`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(z,{className:`size-4`}),t[0]=u):u=t[0];let d;t[1]===l?d=t[2]:(d=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,className:`size-8 p-0`,"aria-label":l,children:u})}),t[1]=l,t[2]=d);let f;t[3]!==n||t[4]!==i||t[5]!==c||t[6]!==o||t[7]!==s?(f=(!c||c.editable.includes(`enabled`))&&!A(n)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:toggle`,()=>n.enabled?Y.pause(n.id):Y.resume(n.id)),children:[n.enabled?(0,$.jsx)(ce,{className:`size-4`}):(0,$.jsx)(le,{className:`size-4`}),n.enabled?s?`暂停`:`Pause`:s?`恢复`:`Resume`]}):null,t[3]=n,t[4]=i,t[5]=c,t[6]=o,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==n.id||t[10]!==i||t[11]!==c||t[12]!==o||t[13]!==s?(p=!c||c.runnable?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:run`,()=>Y.runNow(n.id)),children:[(0,$.jsx)(le,{className:`size-4`}),s?`立即运行`:`Run now`]}):null,t[9]=n.id,t[10]=i,t[11]=c,t[12]=o,t[13]=s,t[14]=p):p=t[14];let m;t[15]!==n||t[16]!==i||t[17]!==c||t[18]!==a||t[19]!==s?(m=!c||c.editable.includes(`trigger`)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>a(n),children:[(0,$.jsx)(U,{className:`size-4`}),s?`编辑`:`Edit`]}):null,t[15]=n,t[16]=i,t[17]=c,t[18]=a,t[19]=s,t[20]=m):m=t[20];let h;t[21]!==n.id||t[22]!==o||t[23]!==s?(h=()=>void o(`automation:${n.id}:copy-link`,()=>navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#/automations?automation=${encodeURIComponent(n.id)}`),s?`任务链接已复制`:`Task link copied`),t[21]=n.id,t[22]=o,t[23]=s,t[24]=h):h=t[24];let g;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(R,{className:`size-4`}),t[25]=g):g=t[25];let _=s?`复制任务链接`:`Copy task link`,v;t[26]!==h||t[27]!==_?(v=(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,onSelect:h,children:[g,_]}),t[26]=h,t[27]=_,t[28]=v):v=t[28];let y;t[29]!==n.id||t[30]!==i||t[31]!==c||t[32]!==o||t[33]!==s?(y=!c||c.deletable?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 h-px bg-edge-subtle`}),(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50 text-danger`,disabled:i,onSelect:()=>{window.confirm(s?`删除这个定时任务?已保存的对话仍可查看。`:`Delete this scheduled task? Saved conversations will remain available.`)&&o(`automation:${n.id}:delete`,()=>Y.remove(n.id))},children:[(0,$.jsx)(pe,{className:`size-4`}),s?`删除`:`Delete`]})]}):null,t[29]=n.id,t[30]=i,t[31]=c,t[32]=o,t[33]=s,t[34]=y):y=t[34];let b;t[35]!==v||t[36]!==y||t[37]!==f||t[38]!==p||t[39]!==m?(b=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:4,className:`z-70 min-w-44 rounded-xl border border-edge bg-surface-overlay p-1 shadow-popover`,children:[f,p,m,v,y]})}),t[35]=v,t[36]=y,t[37]=f,t[38]=p,t[39]=m,t[40]=b):b=t[40];let x;return t[41]!==b||t[42]!==d?(x=(0,$.jsxs)(Me,{children:[d,b]}),t[41]=b,t[42]=d,t[43]=x):x=t[43],x}function pt({automations:e,runs:t,labels:n,cronLabels:r,language:i,selectedAutomationId:a,selectedRunId:o,selectedRun:s,projectId:c,executionSummaries:l,onSelectRun:d,onOpenDetails:f,busy:p,onEdit:m,onAction:h}){let g=`xopc.automation-navigation:${u(e=>e.baseUrl)}:${u(e=>e.conversationId)??`local`}`,[_,v]=(0,Q.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}catch{return{}}});(0,Q.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);v(e&&typeof e==`object`&&!Array.isArray(e)?e:{})}catch{v({})}},[g]);let y=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{!a||y.current===a||(y.current=a,v(e=>({...e,[a]:!0})))},[a]);let b=e=>v(t=>{let n={...t,[e]:!t[e]};try{localStorage.setItem(g,JSON.stringify(n))}catch{}return n});return e.length===0?(0,$.jsx)(`p`,{className:`p-4 text-sm text-fg-muted`,children:n.empty.filtered}):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto divide-y divide-edge-subtle`,children:e.map(e=>{let u=t.filter(t=>t.automationId===e.id).sort((e,t)=>t.createdAtMs-e.createdAtMs),g=u.find(M);return(0,$.jsxs)(`div`,{className:`group relative`,children:[(0,$.jsx)(`button`,{type:`button`,"aria-expanded":!!_[e.id],"aria-controls":`automation-runs-${e.id}`,"aria-label":i===`zh`?`${_[e.id]?`收起`:`展开`} ${e.name} 的执行记录`:`${_[e.id]?`Collapse`:`Expand`} executions for ${e.name}`,className:`absolute left-1 top-2 z-10 rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>b(e.id),children:_[e.id]?(0,$.jsx)(te,{className:`size-4`}):(0,$.jsx)(ne,{className:`size-4`})}),(0,$.jsxs)(`button`,{type:`button`,className:q(`block w-full p-3 pl-9 pr-10 text-left outline-none hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a===e.id&&!o&&`bg-surface-hover`),style:{contentVisibility:`auto`,containIntrinsicSize:`auto 76px`},"aria-current":a===e.id&&!o?`true`:void 0,onClick:()=>f(e.id),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:q(`size-2 shrink-0 rounded-full`,g?`bg-blue-500`:nt(e,u)?`bg-red-500`:e.enabled?`bg-emerald-500`:`bg-fg-subtle`)}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:A(e)?i===`zh`?`已完成`:`Completed`:e.enabled?n.enabled:n.paused}),(l?.[e.id]?.unreadCount??0)>0?(0,$.jsx)(`span`,{className:`ml-auto size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:n.filters.unread})}):null]}),(0,$.jsxs)(`p`,{className:`mt-1 truncate pl-4 text-xs leading-5 text-fg-muted`,children:[e.enabled?(0,$.jsxs)($.Fragment,{children:[D(e,n,i),(0,$.jsx)(`span`,{className:`mx-1.5`,children:`·`})]}):null,ee(e.trigger,n,r,i)]}),nt(e,u)?(0,$.jsx)(`p`,{className:`mt-1 pl-4 text-xs text-red-700 dark:text-red-300`,children:n.dashboard.needsAttention}):null]}),(0,$.jsx)(`div`,{id:`automation-runs-${e.id}`,hidden:!_[e.id],children:(0,$.jsx)(P,{automationId:e.id,projectId:c,language:i,selectedRunId:o,selectedRun:s,enabled:!!_[e.id],onSelectRun:d})}),(0,$.jsx)(`div`,{className:`absolute right-1 top-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100`,children:(0,$.jsx)(ft,{automation:e,language:i,busy:p,onEdit:m,onAction:h})})]},e.id)})})}var mt=`xopc.automations.listWidth`,ht=272,gt=200,_t=560;function vt({children:e,language:t,busy:n}){let r=(0,Q.useRef)(null),i=(0,Q.useRef)(null),[a,o]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(()=>{try{let e=Number(window.localStorage.getItem(mt));if(Number.isFinite(e)&&e>=gt&&e<=_t)return e}catch{}return ht});(0,Q.useEffect)(()=>{try{window.localStorage.setItem(mt,String(s))}catch{}},[s]),(0,Q.useEffect)(()=>{if(!a)return;let{cursor:e,userSelect:t}=document.body.style;return document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{document.body.style.cursor=e,document.body.style.userSelect=t}},[a]);let l=e=>{let t=r.current?.getBoundingClientRect().width??1e3,n=Math.max(gt,Math.min(_t,t*.6,t-292));return Math.round(Math.max(gt,Math.min(n,e)))},u=t===`zh`?`调整任务列表宽度`:`Resize task list`;return(0,$.jsxs)(`section`,{ref:r,"aria-busy":n,className:`grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-y-3 md:grid-cols-[minmax(0,min(var(--automation-list-width),60%))_0.75rem_minmax(0,1fr)] md:grid-rows-1 md:gap-y-0`,style:{"--automation-list-width":`${s}px`},children:[e[0],(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":u,"aria-valuemin":gt,"aria-valuemax":_t,"aria-valuenow":s,tabIndex:0,title:t===`zh`?`左右拖动调整宽度,双击恢复默认`:`Drag to resize, double-click to reset`,className:`relative hidden touch-none select-none cursor-col-resize focus-visible:outline-accent md:block`,onPointerDown:e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.previousElementSibling?.getBoundingClientRect().width??s;i.current={pointerId:e.pointerId,startX:e.clientX,startWidth:t},o(!0)},onPointerMove:e=>{let t=i.current;t?.pointerId===e.pointerId&&c(l(t.startWidth+e.clientX-t.startX))},onPointerUp:e=>{i.current?.pointerId===e.pointerId&&(i.current=null,o(!1),e.currentTarget.releasePointerCapture(e.pointerId))},onPointerCancel:()=>{i.current=null,o(!1)},onLostPointerCapture:()=>{i.current=null,o(!1)},onDoubleClick:()=>c(ht),onKeyDown:e=>{[`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),c(l(e.key===`Home`?gt:e.key===`End`?_t:s+(e.key===`ArrowLeft`?-16:16))))}}),e[1]]})}var yt=(0,Q.lazy)(()=>i(()=>import(`./chat-page-LOR5JxDh.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219])));function bt(e){let t=(0,ot.c)(51),{automation:n,conversationId:r,runs:i,language:a,onSelectRun:o,onConfigured:s}=e,c=n?.id,l;t[0]!==c||t[1]!==r?(l=c&&!r?[`automation-workspace-chat`,c]:null,t[0]=c,t[1]=r,t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=()=>Y.openConfiguration({automationId:c}),t[3]=c,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},t[5]=d):d=t[5];let{data:p,error:m,mutate:h}=be(l,u,d),g;t[6]===r?g=t[7]:(g=r?[`automation-configuration`,r]:null,t[6]=r,t[7]=g);let _;t[8]===r?_=t[9]:(_=()=>Y.configuration(r),t[8]=r,t[9]=_);let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={refreshInterval:3e3},t[10]=v):v=t[10];let{data:y}=be(g,_,v),b,x;t[11]!==n||t[12]!==s||t[13]!==y?(b=()=>{!n&&y?.automation&&s?.(y.automation.id)},x=[n,y,s],t[11]=n,t[12]=s,t[13]=y,t[14]=b,t[15]=x):(b=t[14],x=t[15]),(0,Q.useEffect)(b,x);let S=r??p?.conversationId,{mutate:C}=ye(),ee;t[16]===S?ee=t[17]:(ee=e=>!!(S&&(e.sessions[S]?.streaming||e.sessions[S]?.sending)),t[16]=S,t[17]=ee);let w=ve(ee),T=(0,Q.useRef)(!1),E,D;t[18]!==C||t[19]!==w?(E=()=>{T.current&&!w&&C(xt),T.current=w},D=[w,C],t[18]=C,t[19]=w,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,Q.useEffect)(E,D);let O=a===`zh`,k;t[22]===a?k=t[23]:(k=f(a),t[22]=a,t[23]=k);let A=k,j;if(t[24]!==a||t[25]!==A.automations.status||t[26]!==o||t[27]!==i||t[28]!==O){let e;t[30]!==a||t[31]!==A.automations.status||t[32]!==o||t[33]!==O?(e=e=>({id:`automation-run:${e.id}`,timestamp:e.createdAtMs,content:(0,$.jsxs)(`article`,{className:`mx-auto w-full max-w-[var(--max-width-chat-frame)] space-y-3 py-3`,"aria-label":O?`任务运行结果`:`Task run result`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsxs)(`span`,{children:[new Date(e.createdAtMs).toLocaleString(O?`zh-CN`:`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),` · `,A.automations.status[e.status]]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>o(e.id),children:O?`查看详情`:`View details`})]}),e.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-danger`,children:rt(e,a)}):e.summary?(0,$.jsx)(oe,{content:e.summary}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:O?`正在执行,结果会显示在这里。`:`Running. The result will appear here.`}),e.status===`failed`||e.status===`timeout`?(0,$.jsx)(qe,{automationId:e.automationId,runId:e.id,language:a,variant:`secondary`}):null,[`queued`,`running`,`cancelling`].includes(e.status)?null:(0,$.jsx)(tt,{runId:e.id,language:a})]})}),t[30]=a,t[31]=A.automations.status,t[32]=o,t[33]=O,t[34]=e):e=t[34],j=i.map(e),t[24]=a,t[25]=A.automations.status,t[26]=o,t[27]=i,t[28]=O,t[29]=j}else j=t[29];let M=j;if(m){let e=O?`暂时无法打开任务对话。`:`Could not open the task conversation.`,n;t[35]===e?n=t[36]:(n=(0,$.jsx)(`p`,{children:e}),t[35]=e,t[36]=n);let r;t[37]===h?r=t[38]:(r=()=>void h(),t[37]=h,t[38]=r);let i=O?`重试`:`Retry`,a;t[39]!==r||t[40]!==i?(a=(0,$.jsx)(Ce,{variant:`secondary`,onClick:r,children:i}),t[39]=r,t[40]=i,t[41]=a):a=t[41];let o;return t[42]!==n||t[43]!==a?(o=(0,$.jsxs)(`div`,{role:`alert`,className:`p-6 text-sm text-fg-muted`,children:[n,a]}),t[42]=n,t[43]=a,t[44]=o):o=t[44],o}let N=O?`任务对话`:`Task conversation`,P;t[45]!==M||t[46]!==S?(P=S?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(yt,{embedded:!0,conversationId:S,automationWorkspace:!0,automationTimelineEntries:M},S)}):(0,$.jsxs)(`div`,{className:`space-y-4 p-6`,children:[(0,$.jsx)(J,{className:`h-20 w-2/3`}),(0,$.jsx)(J,{className:`h-28`})]}),t[45]=M,t[46]=S,t[47]=P):P=t[47];let F;return t[48]!==N||t[49]!==P?(F=(0,$.jsx)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":N,children:P}),t[48]=N,t[49]=P,t[50]=F):F=t[50],F}function xt(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-configuration`].includes(String(e[0]))}var St=`relative flex min-h-9 cursor-pointer items-center rounded-md py-2 pl-3 pr-8 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,Ct=`z-70 max-h-[min(32rem,calc(100dvh-2rem))] min-w-52 overflow-y-auto rounded-xl border border-edge bg-surface-overlay p-1.5 shadow-popover`;function wt(e){let t=(0,ot.c)(4),{value:n,children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(je,{className:`absolute right-2.5`,children:(0,$.jsx)(F,{className:`size-3.5`,"aria-hidden":!0})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,$.jsxs)(Oe,{value:n,className:St,children:[i,r]}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Tt(e){let t=(0,ot.c)(131),{language:n,labels:r,filter:i,ownership:a,source:o,projectId:s,projects:c,projectLocked:l,query:u,unreadCount:d,markReadBusy:f,onFilter:p,onOwnership:m,onSource:h,onProject:g,onQuery:_,onClear:v,onMarkAllRead:y}=e,b=n===`zh`,[x,S]=(0,Q.useState)(!1),C=(0,Q.useRef)(null),ee=(0,Q.useRef)(null),w=x||!!u,T=i!==`all`||o!==`all`||a!==`user`||!l&&!!s,E;t[0]===_?E=t[1]:(E=()=>{_(``),S(!1),ee.current?.focus()},t[0]=_,t[1]=E);let D=E,O=b?`定时任务`:`Scheduled tasks`,k;t[2]===O?k=t[3]:(k=(0,$.jsx)(`h2`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:O}),t[2]=O,t[3]=k);let A=b?`筛选任务`:`Filter tasks`,M=b?`筛选任务`:`Filter tasks`,N=T&&`text-accent-fg`,P;t[4]===N?P=t[5]:(P=q(`relative rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:bg-surface-hover`,N),t[4]=N,t[5]=P);let F;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(V,{className:`size-4`,"aria-hidden":!0}),t[6]=F):F=t[6];let te;t[7]!==T||t[8]!==b?(te=T?(0,$.jsx)(`span`,{className:`absolute right-1.5 top-1.5 size-1 rounded-full bg-accent`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:b?`已应用筛选`:`Filters applied`})}):null,t[7]=T,t[8]=b,t[9]=te):te=t[9];let I;t[10]!==A||t[11]!==M||t[12]!==P||t[13]!==te?(I=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":A,title:M,className:P,children:[F,te]})}),t[10]=A,t[11]=M,t[12]=P,t[13]=te,t[14]=I):I=t[14];let L=b?`状态`:`Status`,re;t[15]===L?re=t[16]:(re=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:L}),t[15]=L,t[16]=re);let ie;t[17]===p?ie=t[18]:(ie=e=>p(e),t[17]=p,t[18]=ie);let R=b?`全部状态`:`All statuses`,z;t[19]===R?z=t[20]:(z=(0,$.jsx)(wt,{value:`all`,children:R}),t[19]=R,t[20]=z);let ae;t[21]===r.filters.active?ae=t[22]:(ae=(0,$.jsx)(wt,{value:`active`,children:r.filters.active}),t[21]=r.filters.active,t[22]=ae);let B;t[23]===r.paused?B=t[24]:(B=(0,$.jsx)(wt,{value:`paused`,children:r.paused}),t[23]=r.paused,t[24]=B);let oe=b?`已完成`:`Completed`,se;t[25]===oe?se=t[26]:(se=(0,$.jsx)(wt,{value:`completed`,children:oe}),t[25]=oe,t[26]=se);let ce;t[27]===r.metrics.running?ce=t[28]:(ce=(0,$.jsx)(wt,{value:`running`,children:r.metrics.running}),t[27]=r.metrics.running,t[28]=ce);let U;t[29]===r.dashboard.needsAttention?U=t[30]:(U=(0,$.jsx)(wt,{value:`attention`,children:r.dashboard.needsAttention}),t[29]=r.dashboard.needsAttention,t[30]=U);let le;t[31]!==i||t[32]!==ie||t[33]!==z||t[34]!==ae||t[35]!==B||t[36]!==se||t[37]!==ce||t[38]!==U?(le=(0,$.jsxs)(Le,{value:i,onValueChange:ie,children:[z,ae,B,se,ce,U]}),t[31]=i,t[32]=ie,t[33]=z,t[34]=ae,t[35]=B,t[36]=se,t[37]=ce,t[38]=U,t[39]=le):le=t[39];let W;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[40]=W):W=t[40];let G=b?`归属`:`Owner`,ue;t[41]===G?ue=t[42]:(ue=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:G}),t[41]=G,t[42]=ue);let de;t[43]===m?de=t[44]:(de=e=>m(e),t[43]=m,t[44]=de);let fe=b?`我的任务`:`My tasks`,pe;t[45]===fe?pe=t[46]:(pe=(0,$.jsx)(wt,{value:`user`,children:fe}),t[45]=fe,t[46]=pe);let he=b?`系统任务`:`System tasks`,J;t[47]===he?J=t[48]:(J=(0,$.jsx)(wt,{value:`system`,children:he}),t[47]=he,t[48]=J);let ge;t[49]!==a||t[50]!==de||t[51]!==pe||t[52]!==J?(ge=(0,$.jsxs)(Le,{value:a,onValueChange:de,children:[pe,J]}),t[49]=a,t[50]=de,t[51]=pe,t[52]=J,t[53]=ge):ge=t[53];let _e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[54]=_e):_e=t[54];let ve;t[55]!==r.filters.allProjects||t[56]!==g||t[57]!==s||t[58]!==l||t[59]!==c||t[60]!==b?(ve=l?null:(0,$.jsxs)(ke,{children:[(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[b?`项目`:`Project`,(0,$.jsx)(`span`,{className:`ml-auto max-w-28 truncate text-xs text-fg-muted`,children:c.find(e=>e.id===s)?.name??r.filters.allProjects}),(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0})]}),(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:s,onValueChange:g,children:[(0,$.jsx)(wt,{value:``,children:r.filters.allProjects}),c.map(Et)]})})})]}),t[55]=r.filters.allProjects,t[56]=g,t[57]=s,t[58]=l,t[59]=c,t[60]=b,t[61]=ve):ve=t[61];let ye=b?`任务类型`:`Task type`,be;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0}),t[62]=be):be=t[62];let xe;t[63]===ye?xe=t[64]:(xe=(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[ye,be]}),t[63]=ye,t[64]=xe);let Se;t[65]===h?Se=t[66]:(Se=e=>h(e),t[65]=h,t[66]=Se);let Ce=b?`全部类型`:`All types`,we;t[67]===Ce?we=t[68]:(we=(0,$.jsx)(wt,{value:`all`,children:Ce}),t[67]=Ce,t[68]=we);let Y;t[69]===r.sources.agent?Y=t[70]:(Y=(0,$.jsx)(wt,{value:`agent`,children:r.sources.agent}),t[69]=r.sources.agent,t[70]=Y);let Te;t[71]===r.sources.task?Te=t[72]:(Te=(0,$.jsx)(wt,{value:`task_command`,children:r.sources.task}),t[71]=r.sources.task,t[72]=Te);let X;t[73]!==o||t[74]!==Se||t[75]!==we||t[76]!==Y||t[77]!==Te?(X=(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:o,onValueChange:Se,children:[we,Y,Te]})})}),t[73]=o,t[74]=Se,t[75]=we,t[76]=Y,t[77]=Te,t[78]=X):X=t[78];let Ee;t[79]!==xe||t[80]!==X?(Ee=(0,$.jsxs)(ke,{children:[xe,X]}),t[79]=xe,t[80]=X,t[81]=Ee):Ee=t[81];let Oe;t[82]!==T||t[83]!==v||t[84]!==u||t[85]!==b?(Oe=T||u?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),(0,$.jsx)(Ie,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg-muted outline-none data-[highlighted]:bg-surface-hover`,onSelect:v,children:b?`重置筛选`:`Reset filters`})]}):null,t[82]=T,t[83]=v,t[84]=u,t[85]=b,t[86]=Oe):Oe=t[86];let je;t[87]!==re||t[88]!==le||t[89]!==ue||t[90]!==ge||t[91]!==ve||t[92]!==Ee||t[93]!==Oe?(je=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:6,className:Ct,children:[re,le,W,ue,ge,_e,ve,Ee,Oe]})}),t[87]=re,t[88]=le,t[89]=ue,t[90]=ge,t[91]=ve,t[92]=Ee,t[93]=Oe,t[94]=je):je=t[94];let Be;t[95]!==I||t[96]!==je?(Be=(0,$.jsxs)(Me,{children:[I,je]}),t[95]=I,t[96]=je,t[97]=Be):Be=t[97];let Ve=b?`搜索任务`:`Search tasks`,He=b?`搜索任务`:`Search tasks`,Ue;t[98]!==D||t[99]!==w?(Ue=()=>{w?D():(S(!0),requestAnimationFrame(()=>C.current?.focus()))},t[98]=D,t[99]=w,t[100]=Ue):Ue=t[100];let We=w&&`bg-surface-hover text-fg`,Z;t[101]===We?Z=t[102]:(Z=q(`rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,We),t[101]=We,t[102]=Z);let Ge;t[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,$.jsx)(K,{className:`size-4`,"aria-hidden":!0}),t[103]=Ge):Ge=t[103];let Ke;t[104]!==w||t[105]!==Ve||t[106]!==He||t[107]!==Ue||t[108]!==Z?(Ke=(0,$.jsx)(`button`,{ref:ee,type:`button`,"aria-label":Ve,title:He,"aria-expanded":w,onClick:Ue,className:Z,children:Ge}),t[104]=w,t[105]=Ve,t[106]=He,t[107]=Ue,t[108]=Z,t[109]=Ke):Ke=t[109];let qe;t[110]!==Be||t[111]!==Ke?(qe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[Be,Ke]}),t[110]=Be,t[111]=Ke,t[112]=qe):qe=t[112];let Je;t[113]!==k||t[114]!==qe?(Je=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1`,children:[k,qe]}),t[113]=k,t[114]=qe,t[115]=Je):Je=t[115];let Ye;t[116]!==r.filters.markAllRead||t[117]!==f||t[118]!==y||t[119]!==d?(Ye=d>0?(0,$.jsxs)(`button`,{type:`button`,disabled:f,onClick:y,className:`flex min-h-9 w-full items-center gap-2 rounded-md px-2 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,"aria-busy":f,children:[f?(0,$.jsx)(H,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(j,{className:`size-4 shrink-0`,"aria-hidden":!0}),r.filters.markAllRead]}):null,t[116]=r.filters.markAllRead,t[117]=f,t[118]=y,t[119]=d,t[120]=Ye):Ye=t[120];let Xe;t[121]!==D||t[122]!==_||t[123]!==u||t[124]!==w||t[125]!==b?(Xe=w?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-2.5 focus-within:border-accent`,children:[(0,$.jsx)(K,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsx)(`input`,{ref:C,value:u,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),D())},"aria-label":b?`搜索任务名称或内容`:`Search task names or content`,placeholder:b?`搜索任务…`:`Search tasks…`,className:`min-h-10 min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,"aria-label":b?`关闭搜索`:`Close search`,onClick:D,className:`rounded-md p-1 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0})})]}):null,t[121]=D,t[122]=_,t[123]=u,t[124]=w,t[125]=b,t[126]=Xe):Xe=t[126];let Ze;return t[127]!==Je||t[128]!==Ye||t[129]!==Xe?(Ze=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[Je,Ye,Xe]}),t[127]=Je,t[128]=Ye,t[129]=Xe,t[130]=Ze):Ze=t[130],Ze}function Et(e){return(0,$.jsx)(wt,{value:e.id,children:(0,$.jsx)(`span`,{className:`max-w-56 truncate`,children:e.name})},e.id)}var Dt=[[`☀️`,`晨间简报`,`每天开始工作前,整理今天值得关注的任务与进展。`,`Morning briefing`,`Start each day with your tasks and project updates.`,`每天早上帮我整理当天到期、逾期的任务和项目进展,给出今天的重点。`,`Each morning, summarize my due and overdue tasks and project progress, and suggest priorities.`],[`📝`,`每周工作回顾`,`回顾一周的成果和问题,为下周留出清晰的方向。`,`Weekly review`,`Review the week and find a clear direction for the next.`,`每周五帮我回顾本周完成的任务和项目进展,整理未解决的问题,建议下周的重点。`,`Every Friday, review completed tasks and project progress, unresolved issues, and priorities for next week.`],[`🌱`,`项目进展跟进`,`定期看看项目进度,找出需要你关注的事情。`,`Project check-in`,`Keep an eye on project progress and what needs attention.`,`定期帮我检查项目进度,整理延期、阻塞和需要我决策的事项。先和我确认关注哪个项目以及运行时间。`,`Regularly review a project for delays, blockers, and decisions I need to make. Ask which project and when to run.`],[`🔔`,`重要事项提醒`,`把容易忘记的事情交给提醒,安心专注眼前。`,`A timely reminder`,`Make room to focus by setting a reminder for later.`,`我想安排一个重要事项提醒。请先问我需要提醒什么、什么时候提醒,以及是否重复。`,`Help me schedule a reminder. Ask what to remember, when, and whether it should repeat.`],[`📚`,`笔记整理`,`回看新收集的想法,整理出值得继续推进的线索。`,`Notes roundup`,`Revisit recent ideas and surface useful next steps.`,`每周帮我回顾最近新增的笔记,按主题整理,找出值得继续推进的想法。请先确认时间和范围。`,`Each week, group my recent notes by topic and suggest ideas worth pursuing. Confirm the schedule and scope.`],[`🧭`,`明日工作计划`,`下班前梳理未完成的事,安排明天最重要的三件事。`,`Plan tomorrow`,`Wrap up loose ends and choose tomorrow’s top three priorities.`,`每个工作日下班前,帮我梳理未完成的任务,建议明天最重要的三件事。请先确认具体时间。`,`Before the end of each workday, review unfinished tasks and suggest tomorrow’s top three priorities. Confirm the time.`],[`🗓️`,`月度复盘`,`拉远一点看进展,发现反复出现的问题和新的机会。`,`Monthly reflection`,`Step back to spot progress, recurring problems, and opportunities.`,`每月月底帮我回顾项目和任务的进展,总结成果、反复出现的问题和下个月的重点。请确认运行时间。`,`At the end of each month, review project and task progress, achievements, recurring problems, and priorities. Confirm the schedule.`],[`🎯`,`逾期任务检查`,`定期发现被搁置的事项,让重要的事重新向前。`,`Overdue task check`,`Find neglected tasks and get important work moving again.`,`定期帮我检查逾期任务,按紧迫程度整理,并建议下一步。请先确认运行频率和时间。`,`Regularly review overdue tasks, prioritize them by urgency, and suggest next steps. Confirm the frequency and time.`]];function Ot(e=Math.random){let t=[...Dt];for(let n=t.length-1;n>0;n--){let r=Math.min(n,Math.max(0,Math.floor(e()*(n+1))));[t[n],t[r]]=[t[r],t[n]]}return t.slice(0,6)}function kt({language:e,projectId:t,onOpenConversation:n}){let r=o(),[i,a]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(``),l=async e=>{a(!0),c(``);try{let i=await Ke({projectId:t,prompt:e});n?n(i):r(i)}catch(e){c(e instanceof Error?e.message:String(e))}finally{a(!1)}},u=e===`zh`,[d,f]=(0,Q.useState)(Ot),p=(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl px-2 py-10 sm:px-6 md:py-20`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(C,{className:`mx-auto size-10 text-fg-muted`,strokeWidth:1.3,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:u?`安排任务`:`Schedule a task`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:u?`说说你希望定期完成什么,我们一起安排好。`:`Tell us what you’d like done regularly. We’ll work out the details together.`})]}),(0,$.jsxs)(`div`,{className:`mb-3 mt-10 flex items-center justify-between text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:u?`也可以从这些想法开始`:`Or start with an idea`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>f(Ot()),className:`flex items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(G,{className:`size-3.5`,"aria-hidden":!0}),u?`换一组`:`More ideas`]})]}),(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:d.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:i,onClick:()=>void l(u?e[5]:e[6]),className:`flex min-h-28 items-center gap-4 rounded-xl border border-dashed border-edge bg-surface-panel px-5 py-4 transition-colors hover:border-edge-strong hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(`span`,{className:`shrink-0 text-2xl`,"aria-hidden":!0,children:e[0]}),(0,$.jsxs)(`span`,{className:`min-w-0`,children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:u?e[1]:e[3]}),(0,$.jsx)(`span`,{className:`mt-1 block text-sm leading-5 text-fg-muted`,children:u?e[2]:e[4]})]})]},e[1]))}),(0,$.jsx)(`div`,{className:`mt-6 text-center`,children:(0,$.jsx)(`button`,{type:`button`,disabled:i,onClick:()=>void l(),className:`rounded-md px-3 py-2 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,children:u?`说说你想安排的其他任务`:`Describe another task`})}),s?(0,$.jsx)(`p`,{role:`alert`,className:`mt-3 text-center text-sm text-danger`,children:s}):null]});return(0,$.jsx)(`section`,{"aria-label":u?`安排任务`:`Schedule a task`,children:p})}function At(e){if(!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function jt(e){return typeof e.message==`string`&&e.message.trim()?e.message:typeof e.error==`string`&&e.error.trim()?e.error:e.error&&typeof e.error==`object`&&typeof e.error.message==`string`?e.error.message:`AI suggestion failed`}function Mt(e,t={}){let n=At(e.split(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-page-3fVhP77N.js","assets/rolldown-runtime-aKtaBQYM.js","assets/marked.esm-8VXEA2AD.js","assets/vendor-react-BOUWij0V.js","assets/preload-helper-Czpn1I53.js","assets/chunk-KS7C4IRE-DIIvxCDx.js","assets/locale-store-CHjsq5NR.js","assets/messages-C7QSnTdg.js","assets/dist-DlirbHVs.js","assets/es2015-CFqg57eW.js","assets/dist-CDSvxjOh.js","assets/createLucideIcon-DPHK1VkS.js","assets/app-window-DXFNqt_0.js","assets/archive-Dz0hferG.js","assets/arrow-left-D880xG-P.js","assets/video-generation-Cec49Jwg.js","assets/arrow-up-D5ZtR1QT.js","assets/product-automation-feedback-GA_YPLkr.js","assets/activity-YogQEteU.js","assets/bot-DjLkhyZL.js","assets/circle-check-C23XjkUj.js","assets/circle-pause-CN9jYH2s.js","assets/clock-3-DnrAnuyZ.js","assets/external-link-DjqjBmc3.js","assets/loader-circle-CifKLtgG.js","assets/message-square-fVE7Ghj1.js","assets/pause-DuPxgSxk.js","assets/play-kxZvpBg8.js","assets/rotate-ccw-JM1TBLpp.js","assets/rotate-cw-LIg3Am9S.js","assets/sparkles-DHlfQFAF.js","assets/triangle-alert-2JXFNNKU.js","assets/volume-2-BSJhAY97.js","assets/zap-dximCGjy.js","assets/cn-0WouolD0.js","assets/bundle-mjs-rHxsej31.js","assets/session-manager-DUWeBdeG.js","assets/schemas-CCWMleym.js","assets/turn-outcome-BSbEJx8h.js","assets/product-delivery-4gEqUIsK.js","assets/session-api-CR3NLqvs.js","assets/gateway-startup-retry-DgmvR-hb.js","assets/local-session-drafts-CGSV1RQg.js","assets/tool-activity-BtJkgjFf.js","assets/attachment-utils-core-BPYdUI6y.js","assets/gateway-realtime-CoIFB3im.js","assets/gateway-realtime-store-CTWm23Qi.js","assets/playback-coordinator-CWHIf0wr.js","assets/registry-api-CDpUAb2R.js","assets/agents-admin-api-DSr-PWuW.js","assets/gateway-config-swr-BD-ams0X.js","assets/vendor-swr-CdRzEUwF.js","assets/button-C5tRaJxt.js","assets/automation-api-D-gn6x5E.js","assets/earth-C9Z4bTTG.js","assets/check-DUBLcKHA.js","assets/chevron-down-ccbiQQz_.js","assets/chevron-right-BweFrslA.js","assets/working-directory-picker-modal-DgM21YVT.js","assets/file-archive-DanfQJNe.js","assets/interaction-BdhHBbYa.js","assets/form-field-width-DJw_jULe.js","assets/settings-form-draft-Dy10ldo8.js","assets/popover-select-hRG1EzAY.js","assets/skeleton-DzdOeGYz.js","assets/dist-BSVQC3i_.js","assets/dist-DSRLZhL9.js","assets/floating-ui.dom-CiMnRY5O.js","assets/floating-ui.react-dom-Gx6CM22l.js","assets/settings-shell-dialog-layer-BU3UuiJr.js","assets/circle-alert-BEjgurr2.js","assets/send-1f1Ntw6E.js","assets/circle-x-DFsCKeya.js","assets/circle-BoO4YvTx.js","assets/file-tree-utils-DJs1faGv.js","assets/copy-Dv6d4Dvw.js","assets/database-CjjeZfRG.js","assets/download-Dk-ZjtO6.js","assets/ellipsis-0k4rZLoy.js","assets/file-code-corner-byQA1VfD.js","assets/file-image-CDUPkZvG.js","assets/file-text-D12HbeVy.js","assets/file-CStvVK2S.js","assets/folder-kanban-CpLlFI1o.js","assets/folder-open-CyzJ19I9.js","assets/folder-CN-pC3XL.js","assets/git-branch-Dh9uxTot.js","assets/globe-DSSGFWFn.js","assets/history-DXH_9jsE.js","assets/notes-api-D5SvfybU.js","assets/markdown-view-ihzUc4ud.js","assets/plus-Q2yW6OE7.js","assets/x-B_N4OPjy.js","assets/app-link-Ji4uewEG.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/xml-_d7dTN2Q.js","assets/mermaid-render-oOellPHt.js","assets/markdown-view-Czi3_WHu.css","assets/chat-chart-block-B83s8HE9.js","assets/key-round-DWbpyU2U.js","assets/laptop-CI3hBVrl.js","assets/link-2-D_ZKYUW7.js","assets/list-checks-BbsExAoq.js","assets/list-todo-CTVRto8O.js","assets/messages-square-BckAJrEW.js","assets/mic-CuUb7zc-.js","assets/monitor-Af5eAvF7.js","assets/use-generated-media-CzRbgtcv.js","assets/install-connector-dialog-CntHi8Rh.js","assets/secret-input-DsjfQmDn.js","assets/eye-CABVeTq0.js","assets/is-masked-secret-DOkL5b_X.js","assets/connectors-api-CRGq-TSw.js","assets/electron-env-DHOGevH3.js","assets/oauth-provider-connect-DGYky6ut.js","assets/cloud-C4-yfnnk.js","assets/models-hub-cache-BrD6r5Qs.js","assets/oauth-api-DnMpUoyx.js","assets/connection-usage-guide-B9hoSOnN.js","assets/connection-usage-BhdQRWgQ.js","assets/paperclip-f1HujQY1.js","assets/pencil-DmIY3Oa-.js","assets/pin-off-BMRv-Kxr.js","assets/refresh-cw-BRlGaq2w.js","assets/save-DRDABU--.js","assets/search-DA7gz22f.js","assets/settings-2-D-csvaET.js","assets/settings-uiTATseT.js","assets/share-2-CnIB9PsV.js","assets/shield-check-BU58siTV.js","assets/smartphone-DSSsQFqA.js","assets/square-DMK_fB-3.js","assets/preview-runtime-C1U57WSM.js","assets/use-async-resource-BHFGZCY2.js","assets/workspace-api-BuNWyNvA.js","assets/files-GdwDamkp.js","assets/index.module-Cd9ENXfk.js","assets/trash-2-DusmjVPV.js","assets/user-round-C9jxPhMR.js","assets/wifi-off-C35sMFUl.js","assets/share-link-dialog-2JjvWs0q.js","assets/copy-text-row-gqdh0Bg1.js","assets/wrench-DFb4r8bH.js","assets/tasks-CwyNaa-j.js","assets/specialists-xbB3xL9e.js","assets/api-CGs641OT.js","assets/session-identity-DRFdxntH.js","assets/new-session-preferences-gb411vZP.js","assets/composer-model-config-control-C2Bku39S.js","assets/model-selector-QFZY5XNN.js","assets/open-capability-settings-DQsmJxI7.js","assets/model-sort-_Tz8s_4N.js","assets/cloud-credits-B-nbtkqv.js","assets/space-api-_uKFiASp.js","assets/home-task-actions-C8Fi6GBq.js","assets/capabilities-BaKHutgZ.js","assets/capabilities-abgigXV1.js","assets/right-workspace-store-Cehybf-G.js","assets/phone-workspace-store-DGaibcsi.js","assets/workspace-editor-agent-store-CX8zX9eZ.js","assets/chat-agents-api-CyvBfBbp.js","assets/middleware-Pd0e8Igk.js","assets/composer-payload-handoff-ClWsunJ2.js","assets/voice-input-shortcut-events-DN-_rY5a.js","assets/chunk-D32TOXHM-DQIy-Baq.js","assets/linkify-it-BkqEorO0.js","assets/tool-friendly-title-CJVFJ2Ud.js","assets/use-realtime-voice-9OvLwHzk.js","assets/voice-CUfqdnlR.js","assets/composer-notifications-MGKffwC7.js","assets/activity-store-hSe5Nbgk.js","assets/voice-call-context-BM2A4bLz.js","assets/app-chrome-BeB4KgOf.js","assets/page-header-store-NP7MCIaP.js","assets/new-chat-navigation-spnin196.js","assets/loopi-CNtmi9FU.js","assets/loopi-C09I2mNj.css","assets/extension-provider-DFcRbTHI.js","assets/theme-store-CvG266p8.js","assets/extension-message-router-B2wbucV7.js","assets/agent-avatar-display-D_UDgOr9.js","assets/skill-wire-pattern-BPpeIcCi.js","assets/composer-handoff-params-DBpzHuNo.js","assets/agent-display-names-Bje7vfSn.js","assets/use-directory-picker-C4p7AgWY.js","assets/confirm-dialog-MHCmEEUZ.js","assets/shares-api-BhWvN3LS.js","assets/dist-DaFr5KMw.js","assets/use-composer-attachments-DJsIzJ1c.js","assets/chevron-left-DqFhpbvK.js","assets/use-file-preview-expanded-BFF2vXm5.js","assets/message-square-plus-XP0tGdlV.js","assets/minimize-2-DtOGrlpo.js","assets/constants-D5Z-mUto.js","assets/sliding-tab-list-CmcrqRzN.js","assets/sliding-indicator-hwz0sx3h.js","assets/use-share-link-WKZLlEqr.js","assets/file-preview-surface-Da1xZiG6.js","assets/command-palette-api-UrqPvWR1.js","assets/skill-list-api-B26hHnXq.js","assets/skill-api-utils-C7V4JVXM.js","assets/automation-task-card-C453Q-Wa.js","assets/automation-display-DaVDNZz8.js","assets/message-circle-Badhj-4D.js","assets/date-picker-DwITf4I2.js","assets/calendar-days-hw_Y-g-s.js","assets/time-picker-otHjbob1.js","assets/dev-view-store-DsjH8x76.js","assets/extension-iframe-host-CIAq7PSn.js","assets/extension-authoritative-grants-DYp2nNol.js","assets/runtime-health-zDkHcOZO.js","assets/api-B3T06TLl.js","assets/terminal-panel-store-Cy90Ix5U.js","assets/agents-app-path-ciChvpCS.js","assets/use-media-query-ady-FgjK.js","assets/oauth-authorization-window-o6URRos4.js","assets/page-context-draft-Bk7jVvAG.js","assets/management-api-FVu7eYXD.js","assets/side-chat-shortcut-BIw-1TTD.js","assets/chat-page-zQeUaawJ.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./preload-helper-Czpn1I53.js";import{_ as a,f as o,t as s}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{a as c,i as l,l as u,n as d}from"./locale-store-CHjsq5NR.js";import{t as f}from"./messages-C7QSnTdg.js";import{a as p,n as m,o as h,r as g,s as _,t as v}from"./dist-DlirbHVs.js";import{t as y}from"./activity-YogQEteU.js";import{t as b}from"./arrow-left-D880xG-P.js";import{a as x,c as S,f as C,i as ee,l as w,n as T,o as E,r as D,s as O,t as k,u as A}from"./automation-display-DaVDNZz8.js";import{i as j,n as M,r as N,t as P}from"./automation-run-list-CM59-qm5.js";import{t as F}from"./check-DUBLcKHA.js";import{t as te}from"./chevron-down-ccbiQQz_.js";import{t as ne}from"./chevron-right-BweFrslA.js";import{n as I,r as L}from"./popover-select-hRG1EzAY.js";import{t as re}from"./circle-alert-BEjgurr2.js";import{t as ie}from"./circle-check-C23XjkUj.js";import{t as R}from"./copy-Dv6d4Dvw.js";import{t as z}from"./ellipsis-0k4rZLoy.js";import{t as ae}from"./eye-CABVeTq0.js";import{t as B}from"./git-branch-Dh9uxTot.js";import{t as V}from"./list-filter-CIPvpfLA.js";import{t as H}from"./loader-circle-CifKLtgG.js";import{t as oe}from"./markdown-view-ihzUc4ud.js";import{t as se}from"./message-circle-Badhj-4D.js";import{t as ce}from"./pause-DuPxgSxk.js";import{t as U}from"./pencil-DmIY3Oa-.js";import{t as le}from"./play-kxZvpBg8.js";import{t as W}from"./plus-Q2yW6OE7.js";import{t as G}from"./refresh-cw-BRlGaq2w.js";import{t as K}from"./search-DA7gz22f.js";import{t as ue}from"./shield-check-BU58siTV.js";import{t as de}from"./sparkles-DHlfQFAF.js";import{t as fe}from"./square-pen-B8FsvqNu.js";import{t as pe}from"./trash-2-DusmjVPV.js";import{t as me}from"./x-B_N4OPjy.js";import{t as he}from"./zap-dximCGjy.js";import{t as q}from"./cn-0WouolD0.js";import{t as J}from"./skeleton-DzdOeGYz.js";import{d as ge}from"./api-CGs641OT.js";import{a as _e}from"./session-api-CR3NLqvs.js";import{N as ve}from"./session-manager-DUWeBdeG.js";import{a as ye,i as be,o as xe}from"./vendor-swr-CdRzEUwF.js";import{t as Se}from"./chat-agents-api-CyvBfBbp.js";import{t as Ce}from"./button-C5tRaJxt.js";import{t as we}from"./page-header-store-NP7MCIaP.js";import{t as Y}from"./automation-api-D-gn6x5E.js";import{n as Te}from"./agent-display-names-Bje7vfSn.js";import{t as X}from"./sliding-tab-list-CmcrqRzN.js";import{t as Ee}from"./refresh-button-DX7bULU5.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,m as Ne,o as Pe,p as Fe,r as Ie,s as Le,t as Re,u as ze}from"./dist-DaFr5KMw.js";import{n as Be}from"./model-selector-QFZY5XNN.js";import{a as Ve,c as He,d as Ue,f as We,h as Z,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,u as Qe}from"./automation-task-card-C453Q-Wa.js";import{t as $e}from"./time-picker-otHjbob1.js";import{t as et}from"./date-time-picker-ChG1CqR1.js";import{i as tt,n as nt,r as rt,t as it}from"./automation-result-state-B7hq0XOL.js";import{n as at}from"./routine-panel-Bfbiz0IN.js";var ot=n(),Q=e(t(),1),$=r(),st=(0,Q.lazy)(()=>i(()=>import(`./chat-page-3fVhP77N.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219])));function ct(e){let t=(0,ot.c)(110),{runId:n,automationId:r,projectId:i,language:a,onConfigure:o,onDetails:s,onBack:c}=e,l=a===`zh`,[u,d]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(!1),[h,g]=(0,Q.useState)(null),_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>g(e),t[0]=_):_=t[0];let v=_,y;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>m(!0),t[1]=y):y=t[1];let x=y,{mutate:S}=ye(),C=(0,Q.useRef)(!1),ee=i??``,w;t[2]!==r||t[3]!==n||t[4]!==ee?(w=[`automation-execution`,r,n,ee],t[2]=r,t[3]=n,t[4]=ee,t[5]=w):w=t[5];let T;t[6]!==r||t[7]!==i||t[8]!==n||t[9]!==l?(T=async()=>{let{run:e}=await Y.getRun(n);if(e.automationId!==r)throw Error(l?`执行记录不属于此自动化`:`Execution does not belong to this automation`);let{automation:t}=await Y.get(r);if(i&&t.projectId!==i)throw Error(l?`执行记录不属于此项目`:`Execution does not belong to this project`);return{run:e,automation:t}},t[6]=r,t[7]=i,t[8]=n,t[9]=l,t[10]=T):T=t[10];let E;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(E={refreshInterval:dt,shouldRetryOnError:!1},t[11]=E):E=t[11];let{data:D,error:O,mutate:k}=be(w,T,E),A=D?.run,j=A?.conversationId,N;t[12]===j?N=t[13]:(N=e=>!!(j&&(e.sessions[j]?.streaming||e.sessions[j]?.sending)),t[12]=j,t[13]=N);let P=ve(N),F;t[14]===j?F=t[15]:(F=j?[`automation-execution-session`,j]:null,t[14]=j,t[15]=F);let te;t[16]===j?te=t[17]:(te=()=>_e(j),t[16]=j,t[17]=te);let ne;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(ne={shouldRetryOnError:!1},t[18]=ne):ne=t[18];let{data:I,error:L,mutate:re}=be(F,te,ne),ie=A?.conversationShared||D?.automation.conversationMode===`continuous`||I?.customData?.latestAutomationRunId!==void 0&&I.customData.latestAutomationRunId!==n,R=!!(I&&(!ie||u)),z=!O&&!!(A&&(!j||ie&&!u&&I&&!L&&(A?.summary||A?.error)||I&&!L&&p)),ae,B;if(t[19]!==z||t[20]!==k||t[21]!==S||t[22]!==A?(ae=()=>{!A||!z||M(A)||A.readAtMs!=null||C.current||(C.current=!0,Y.markRunRead(A.id).then(async()=>{await Promise.all([k(),S(ut)])}).catch(lt).finally(()=>{C.current=!1}))},B=[A,z,k,S],t[19]=z,t[20]=k,t[21]=S,t[22]=A,t[23]=ae,t[24]=B):(ae=t[23],B=t[24]),(0,Q.useEffect)(ae,B),O){let e=O instanceof Error?O.message:l?`执行记录加载失败`:`Could not load execution`,n;t[25]===e?n=t[26]:(n=(0,$.jsx)(`p`,{children:e}),t[25]=e,t[26]=n);let r;t[27]===k?r=t[28]:(r=()=>void k(),t[27]=k,t[28]=r);let i=l?`重试`:`Retry`,a;t[29]!==r||t[30]!==i?(a=(0,$.jsx)(Ce,{onClick:r,children:i}),t[29]=r,t[30]=i,t[31]=a):a=t[31];let o=l?`返回自动化`:`Back to automation`,s;t[32]!==c||t[33]!==o?(s=(0,$.jsx)(Ce,{onClick:c,children:o}),t[32]=c,t[33]=o,t[34]=s):s=t[34];let u;return t[35]!==n||t[36]!==a||t[37]!==s?(u=(0,$.jsxs)(`section`,{role:`alert`,className:`space-y-3 p-5`,children:[n,a,s]}),t[35]=n,t[36]=a,t[37]=s,t[38]=u):u=t[38],u}if(!A){let e;return t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`space-y-4 p-5`,"aria-busy":`true`,children:[(0,$.jsx)(J,{className:`h-6 w-2/3`}),(0,$.jsx)(J,{className:`h-20`})]}),t[39]=e):e=t[39],e}let V;t[40]===A?V=t[41]:(V=M(A),t[40]=A,t[41]=V);let H=V,se=l?`执行会话`:`Execution conversation`,ce=l?`返回自动化`:`Back to automation`,U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(b,{className:`size-4`}),t[42]=U):U=t[42];let le;t[43]!==c||t[44]!==ce?(le=(0,$.jsx)(Ce,{variant:`ghost`,className:`shrink-0`,onClick:c,"aria-label":ce,children:U}),t[43]=c,t[44]=ce,t[45]=le):le=t[45];let W;t[46]===A.automationName?W=t[47]:(W=(0,$.jsx)(`h2`,{className:`truncate text-sm font-medium text-fg`,children:A.automationName}),t[46]=A.automationName,t[47]=W);let G;t[48]!==le||t[49]!==W?(G=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[le,W]}),t[48]=le,t[49]=W,t[50]=G):G=t[50];let K;t[51]!==A.createdAtMs||t[52]!==l?(K=new Date(A.createdAtMs).toLocaleString(l?`zh-CN`:`en-US`),t[51]=A.createdAtMs,t[52]=l,t[53]=K):K=t[53];let ue;t[54]===a?ue=t[55]:(ue=f(a),t[54]=a,t[55]=ue);let de=ue.automations.status[A.status],fe;t[56]!==K||t[57]!==de?(fe=(0,$.jsxs)(`span`,{children:[K,` · `,de]}),t[56]=K,t[57]=de,t[58]=fe):fe=t[58];let pe;t[59]!==s||t[60]!==A.id?(pe=()=>s(A.id),t[59]=s,t[60]=A.id,t[61]=pe):pe=t[61];let me=l?`运行详情`:`Run details`,he;t[62]!==pe||t[63]!==me?(he=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:pe,children:me}),t[62]=pe,t[63]=me,t[64]=he):he=t[64];let q;t[65]!==o||t[66]!==A?(q=()=>o(A),t[65]=o,t[66]=A,t[67]=q):q=t[67];let ge=l?`调整自动化`:`Adjust automation`,xe;t[68]!==q||t[69]!==ge?(xe=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:q,children:ge}),t[68]=q,t[69]=ge,t[70]=xe):xe=t[70];let Se;t[71]!==fe||t[72]!==he||t[73]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-fg-muted`,children:[fe,he,xe]}),t[71]=fe,t[72]=he,t[73]=xe,t[74]=Se):Se=t[74];let we;t[75]!==D?.automation||t[76]!==ie||t[77]!==l?(we=ie?(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[l?`多次执行可能共用此会话;下方摘要对应所选执行。`:`Executions may share this conversation. The summary belongs to the selected execution.`,D?.automation.conversationMode===`continuous`?l?`追问会进入后续运行上下文。`:` Follow-ups become context for future runs.`:null]}):null,t[75]=D?.automation,t[76]=ie,t[77]=l,t[78]=we):we=t[78];let Te;t[79]!==h||t[80]!==u||t[81]!==l?(Te=u?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:h===!0?l?`已定位到所选执行的会话起点。`:`Located the selected execution in this conversation.`:h===!1?l?`旧记录缺少可用的执行定位信息,当前显示完整会话。`:`No matching turn was found in the available history. Showing the full conversation.`:l?`正在定位所选执行…`:`Locating the selected execution…`}):null,t[79]=h,t[80]=u,t[81]=l,t[82]=Te):Te=t[82];let X;t[83]!==H||t[84]!==l?(X=H?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:l?`执行中,完成后可继续追问。`:`Execution in progress. Follow up after it finishes.`}):null,t[83]=H,t[84]=l,t[85]=X):X=t[85];let Ee;t[86]!==G||t[87]!==Se||t[88]!==we||t[89]!==Te||t[90]!==X?(Ee=(0,$.jsxs)(`header`,{className:`shrink-0 space-y-2 border-b border-edge px-4 py-3`,children:[G,Se,we,Te,X]}),t[86]=G,t[87]=Se,t[88]=we,t[89]=Te,t[90]=X,t[91]=Ee):Ee=t[91];let De;t[92]!==H||t[93]!==j||t[94]!==P||t[95]!==I||t[96]!==a||t[97]!==re||t[98]!==A.error||t[99]!==A.id||t[100]!==A.summary||t[101]!==L||t[102]!==ie||t[103]!==R||t[104]!==l?(De=R?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(st,{embedded:!0,automationExecution:!0,conversationId:j,readOnly:H||P,onHistoryReady:x,initialTurnId:ie?A.id:void 0,onInitialTurnLocated:v},j)}):(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-5`,children:[A.summary?(0,$.jsx)(oe,{content:A.summary}):null,A.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm text-danger`,children:A.error}):null,j?null:(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:H?l?`等待执行会话,开始后会自动更新。`:`Waiting for the execution conversation. This view updates automatically.`:l?`本次执行没有关联会话,可查看运行结果和详情。`:`No conversation is associated with this execution. Results and diagnostics remain available.`}),j&&!I&&!L?(0,$.jsx)(J,{className:`h-24`}):null,L?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:L.status===404?l?`执行会话已删除,运行结果仍保留。`:`The execution conversation was deleted. Results are still available.`:l?`执行会话暂时无法读取,运行结果仍保留。`:`The conversation is unavailable. Results are still available.`}),(0,$.jsx)(Ce,{onClick:()=>void re(),children:l?`重试`:`Retry`})]}):null,ie&&I?(0,$.jsx)(Ce,{variant:`secondary`,onClick:()=>d(!0),children:l?`打开共享会话`:`Open shared conversation`}):null,H?null:(0,$.jsx)(tt,{runId:A.id,language:a})]}),t[92]=H,t[93]=j,t[94]=P,t[95]=I,t[96]=a,t[97]=re,t[98]=A.error,t[99]=A.id,t[100]=A.summary,t[101]=L,t[102]=ie,t[103]=R,t[104]=l,t[105]=De):De=t[105];let Oe;return t[106]!==se||t[107]!==Ee||t[108]!==De?(Oe=(0,$.jsxs)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":se,children:[Ee,De]}),t[106]=se,t[107]=Ee,t[108]=De,t[109]=Oe):Oe=t[109],Oe}function lt(){}function ut(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-navigation-runs`].includes(String(e[0]))||e===`automations-global-system-source`}function dt(e){return e&&M(e.run)?3e3:15e3}function ft(e){let t=(0,ot.c)(44),{automation:n,language:r,busy:i,onEdit:a,onAction:o}=e,s=r===`zh`,c=n.management,l=s?`${n.name}的更多操作`:`More actions for ${n.name}`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(z,{className:`size-4`}),t[0]=u):u=t[0];let d;t[1]===l?d=t[2]:(d=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,className:`size-8 p-0`,"aria-label":l,children:u})}),t[1]=l,t[2]=d);let f;t[3]!==n||t[4]!==i||t[5]!==c||t[6]!==o||t[7]!==s?(f=(!c||c.editable.includes(`enabled`))&&!A(n)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:toggle`,()=>n.enabled?Y.pause(n.id):Y.resume(n.id)),children:[n.enabled?(0,$.jsx)(ce,{className:`size-4`}):(0,$.jsx)(le,{className:`size-4`}),n.enabled?s?`暂停`:`Pause`:s?`恢复`:`Resume`]}):null,t[3]=n,t[4]=i,t[5]=c,t[6]=o,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==n.id||t[10]!==i||t[11]!==c||t[12]!==o||t[13]!==s?(p=!c||c.runnable?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:run`,()=>Y.runNow(n.id)),children:[(0,$.jsx)(le,{className:`size-4`}),s?`立即运行`:`Run now`]}):null,t[9]=n.id,t[10]=i,t[11]=c,t[12]=o,t[13]=s,t[14]=p):p=t[14];let m;t[15]!==n||t[16]!==i||t[17]!==c||t[18]!==a||t[19]!==s?(m=!c||c.editable.includes(`trigger`)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>a(n),children:[(0,$.jsx)(U,{className:`size-4`}),s?`编辑`:`Edit`]}):null,t[15]=n,t[16]=i,t[17]=c,t[18]=a,t[19]=s,t[20]=m):m=t[20];let h;t[21]!==n.id||t[22]!==o||t[23]!==s?(h=()=>void o(`automation:${n.id}:copy-link`,()=>navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#/automations?automation=${encodeURIComponent(n.id)}`),s?`任务链接已复制`:`Task link copied`),t[21]=n.id,t[22]=o,t[23]=s,t[24]=h):h=t[24];let g;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(R,{className:`size-4`}),t[25]=g):g=t[25];let _=s?`复制任务链接`:`Copy task link`,v;t[26]!==h||t[27]!==_?(v=(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,onSelect:h,children:[g,_]}),t[26]=h,t[27]=_,t[28]=v):v=t[28];let y;t[29]!==n.id||t[30]!==i||t[31]!==c||t[32]!==o||t[33]!==s?(y=!c||c.deletable?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 h-px bg-edge-subtle`}),(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50 text-danger`,disabled:i,onSelect:()=>{window.confirm(s?`删除这个定时任务?已保存的对话仍可查看。`:`Delete this scheduled task? Saved conversations will remain available.`)&&o(`automation:${n.id}:delete`,()=>Y.remove(n.id))},children:[(0,$.jsx)(pe,{className:`size-4`}),s?`删除`:`Delete`]})]}):null,t[29]=n.id,t[30]=i,t[31]=c,t[32]=o,t[33]=s,t[34]=y):y=t[34];let b;t[35]!==v||t[36]!==y||t[37]!==f||t[38]!==p||t[39]!==m?(b=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:4,className:`z-70 min-w-44 rounded-xl border border-edge bg-surface-overlay p-1 shadow-popover`,children:[f,p,m,v,y]})}),t[35]=v,t[36]=y,t[37]=f,t[38]=p,t[39]=m,t[40]=b):b=t[40];let x;return t[41]!==b||t[42]!==d?(x=(0,$.jsxs)(Me,{children:[d,b]}),t[41]=b,t[42]=d,t[43]=x):x=t[43],x}function pt({automations:e,runs:t,labels:n,cronLabels:r,language:i,selectedAutomationId:a,selectedRunId:o,selectedRun:s,projectId:c,executionSummaries:l,onSelectRun:d,onOpenDetails:f,busy:p,onEdit:m,onAction:h}){let g=`xopc.automation-navigation:${u(e=>e.baseUrl)}:${u(e=>e.conversationId)??`local`}`,[_,v]=(0,Q.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}catch{return{}}});(0,Q.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);v(e&&typeof e==`object`&&!Array.isArray(e)?e:{})}catch{v({})}},[g]);let y=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{!a||y.current===a||(y.current=a,v(e=>({...e,[a]:!0})))},[a]);let b=e=>v(t=>{let n={...t,[e]:!t[e]};try{localStorage.setItem(g,JSON.stringify(n))}catch{}return n});return e.length===0?(0,$.jsx)(`p`,{className:`p-4 text-sm text-fg-muted`,children:n.empty.filtered}):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto divide-y divide-edge-subtle`,children:e.map(e=>{let u=t.filter(t=>t.automationId===e.id).sort((e,t)=>t.createdAtMs-e.createdAtMs),g=u.find(M);return(0,$.jsxs)(`div`,{className:`group relative`,children:[(0,$.jsx)(`button`,{type:`button`,"aria-expanded":!!_[e.id],"aria-controls":`automation-runs-${e.id}`,"aria-label":i===`zh`?`${_[e.id]?`收起`:`展开`} ${e.name} 的执行记录`:`${_[e.id]?`Collapse`:`Expand`} executions for ${e.name}`,className:`absolute left-1 top-2 z-10 rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>b(e.id),children:_[e.id]?(0,$.jsx)(te,{className:`size-4`}):(0,$.jsx)(ne,{className:`size-4`})}),(0,$.jsxs)(`button`,{type:`button`,className:q(`block w-full p-3 pl-9 pr-10 text-left outline-none hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a===e.id&&!o&&`bg-surface-hover`),style:{contentVisibility:`auto`,containIntrinsicSize:`auto 76px`},"aria-current":a===e.id&&!o?`true`:void 0,onClick:()=>f(e.id),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:q(`size-2 shrink-0 rounded-full`,g?`bg-blue-500`:nt(e,u)?`bg-red-500`:e.enabled?`bg-emerald-500`:`bg-fg-subtle`)}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:A(e)?i===`zh`?`已完成`:`Completed`:e.enabled?n.enabled:n.paused}),(l?.[e.id]?.unreadCount??0)>0?(0,$.jsx)(`span`,{className:`ml-auto size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:n.filters.unread})}):null]}),(0,$.jsxs)(`p`,{className:`mt-1 truncate pl-4 text-xs leading-5 text-fg-muted`,children:[e.enabled?(0,$.jsxs)($.Fragment,{children:[D(e,n,i),(0,$.jsx)(`span`,{className:`mx-1.5`,children:`·`})]}):null,ee(e.trigger,n,r,i)]}),nt(e,u)?(0,$.jsx)(`p`,{className:`mt-1 pl-4 text-xs text-red-700 dark:text-red-300`,children:n.dashboard.needsAttention}):null]}),(0,$.jsx)(`div`,{id:`automation-runs-${e.id}`,hidden:!_[e.id],children:(0,$.jsx)(P,{automationId:e.id,projectId:c,language:i,selectedRunId:o,selectedRun:s,enabled:!!_[e.id],onSelectRun:d})}),(0,$.jsx)(`div`,{className:`absolute right-1 top-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100`,children:(0,$.jsx)(ft,{automation:e,language:i,busy:p,onEdit:m,onAction:h})})]},e.id)})})}var mt=`xopc.automations.listWidth`,ht=272,gt=200,_t=560;function vt({children:e,language:t,busy:n}){let r=(0,Q.useRef)(null),i=(0,Q.useRef)(null),[a,o]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(()=>{try{let e=Number(window.localStorage.getItem(mt));if(Number.isFinite(e)&&e>=gt&&e<=_t)return e}catch{}return ht});(0,Q.useEffect)(()=>{try{window.localStorage.setItem(mt,String(s))}catch{}},[s]),(0,Q.useEffect)(()=>{if(!a)return;let{cursor:e,userSelect:t}=document.body.style;return document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{document.body.style.cursor=e,document.body.style.userSelect=t}},[a]);let l=e=>{let t=r.current?.getBoundingClientRect().width??1e3,n=Math.max(gt,Math.min(_t,t*.6,t-292));return Math.round(Math.max(gt,Math.min(n,e)))},u=t===`zh`?`调整任务列表宽度`:`Resize task list`;return(0,$.jsxs)(`section`,{ref:r,"aria-busy":n,className:`grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-y-3 md:grid-cols-[minmax(0,min(var(--automation-list-width),60%))_0.75rem_minmax(0,1fr)] md:grid-rows-1 md:gap-y-0`,style:{"--automation-list-width":`${s}px`},children:[e[0],(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":u,"aria-valuemin":gt,"aria-valuemax":_t,"aria-valuenow":s,tabIndex:0,title:t===`zh`?`左右拖动调整宽度,双击恢复默认`:`Drag to resize, double-click to reset`,className:`relative hidden touch-none select-none cursor-col-resize focus-visible:outline-accent md:block`,onPointerDown:e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.previousElementSibling?.getBoundingClientRect().width??s;i.current={pointerId:e.pointerId,startX:e.clientX,startWidth:t},o(!0)},onPointerMove:e=>{let t=i.current;t?.pointerId===e.pointerId&&c(l(t.startWidth+e.clientX-t.startX))},onPointerUp:e=>{i.current?.pointerId===e.pointerId&&(i.current=null,o(!1),e.currentTarget.releasePointerCapture(e.pointerId))},onPointerCancel:()=>{i.current=null,o(!1)},onLostPointerCapture:()=>{i.current=null,o(!1)},onDoubleClick:()=>c(ht),onKeyDown:e=>{[`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),c(l(e.key===`Home`?gt:e.key===`End`?_t:s+(e.key===`ArrowLeft`?-16:16))))}}),e[1]]})}var yt=(0,Q.lazy)(()=>i(()=>import(`./chat-page-3fVhP77N.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219])));function bt(e){let t=(0,ot.c)(51),{automation:n,conversationId:r,runs:i,language:a,onSelectRun:o,onConfigured:s}=e,c=n?.id,l;t[0]!==c||t[1]!==r?(l=c&&!r?[`automation-workspace-chat`,c]:null,t[0]=c,t[1]=r,t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=()=>Y.openConfiguration({automationId:c}),t[3]=c,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},t[5]=d):d=t[5];let{data:p,error:m,mutate:h}=be(l,u,d),g;t[6]===r?g=t[7]:(g=r?[`automation-configuration`,r]:null,t[6]=r,t[7]=g);let _;t[8]===r?_=t[9]:(_=()=>Y.configuration(r),t[8]=r,t[9]=_);let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={refreshInterval:3e3},t[10]=v):v=t[10];let{data:y}=be(g,_,v),b,x;t[11]!==n||t[12]!==s||t[13]!==y?(b=()=>{!n&&y?.automation&&s?.(y.automation.id)},x=[n,y,s],t[11]=n,t[12]=s,t[13]=y,t[14]=b,t[15]=x):(b=t[14],x=t[15]),(0,Q.useEffect)(b,x);let S=r??p?.conversationId,{mutate:C}=ye(),ee;t[16]===S?ee=t[17]:(ee=e=>!!(S&&(e.sessions[S]?.streaming||e.sessions[S]?.sending)),t[16]=S,t[17]=ee);let w=ve(ee),T=(0,Q.useRef)(!1),E,D;t[18]!==C||t[19]!==w?(E=()=>{T.current&&!w&&C(xt),T.current=w},D=[w,C],t[18]=C,t[19]=w,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,Q.useEffect)(E,D);let O=a===`zh`,k;t[22]===a?k=t[23]:(k=f(a),t[22]=a,t[23]=k);let A=k,j;if(t[24]!==a||t[25]!==A.automations.status||t[26]!==o||t[27]!==i||t[28]!==O){let e;t[30]!==a||t[31]!==A.automations.status||t[32]!==o||t[33]!==O?(e=e=>({id:`automation-run:${e.id}`,timestamp:e.createdAtMs,content:(0,$.jsxs)(`article`,{className:`mx-auto w-full max-w-[var(--max-width-chat-frame)] space-y-3 py-3`,"aria-label":O?`任务运行结果`:`Task run result`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsxs)(`span`,{children:[new Date(e.createdAtMs).toLocaleString(O?`zh-CN`:`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),` · `,A.automations.status[e.status]]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>o(e.id),children:O?`查看详情`:`View details`})]}),e.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-danger`,children:rt(e,a)}):e.summary?(0,$.jsx)(oe,{content:e.summary}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:O?`正在执行,结果会显示在这里。`:`Running. The result will appear here.`}),e.status===`failed`||e.status===`timeout`?(0,$.jsx)(qe,{automationId:e.automationId,runId:e.id,language:a,variant:`secondary`}):null,[`queued`,`running`,`cancelling`].includes(e.status)?null:(0,$.jsx)(tt,{runId:e.id,language:a})]})}),t[30]=a,t[31]=A.automations.status,t[32]=o,t[33]=O,t[34]=e):e=t[34],j=i.map(e),t[24]=a,t[25]=A.automations.status,t[26]=o,t[27]=i,t[28]=O,t[29]=j}else j=t[29];let M=j;if(m){let e=O?`暂时无法打开任务对话。`:`Could not open the task conversation.`,n;t[35]===e?n=t[36]:(n=(0,$.jsx)(`p`,{children:e}),t[35]=e,t[36]=n);let r;t[37]===h?r=t[38]:(r=()=>void h(),t[37]=h,t[38]=r);let i=O?`重试`:`Retry`,a;t[39]!==r||t[40]!==i?(a=(0,$.jsx)(Ce,{variant:`secondary`,onClick:r,children:i}),t[39]=r,t[40]=i,t[41]=a):a=t[41];let o;return t[42]!==n||t[43]!==a?(o=(0,$.jsxs)(`div`,{role:`alert`,className:`p-6 text-sm text-fg-muted`,children:[n,a]}),t[42]=n,t[43]=a,t[44]=o):o=t[44],o}let N=O?`任务对话`:`Task conversation`,P;t[45]!==M||t[46]!==S?(P=S?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(yt,{embedded:!0,conversationId:S,automationWorkspace:!0,automationTimelineEntries:M},S)}):(0,$.jsxs)(`div`,{className:`space-y-4 p-6`,children:[(0,$.jsx)(J,{className:`h-20 w-2/3`}),(0,$.jsx)(J,{className:`h-28`})]}),t[45]=M,t[46]=S,t[47]=P):P=t[47];let F;return t[48]!==N||t[49]!==P?(F=(0,$.jsx)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":N,children:P}),t[48]=N,t[49]=P,t[50]=F):F=t[50],F}function xt(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-configuration`].includes(String(e[0]))}var St=`relative flex min-h-9 cursor-pointer items-center rounded-md py-2 pl-3 pr-8 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,Ct=`z-70 max-h-[min(32rem,calc(100dvh-2rem))] min-w-52 overflow-y-auto rounded-xl border border-edge bg-surface-overlay p-1.5 shadow-popover`;function wt(e){let t=(0,ot.c)(4),{value:n,children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(je,{className:`absolute right-2.5`,children:(0,$.jsx)(F,{className:`size-3.5`,"aria-hidden":!0})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,$.jsxs)(Oe,{value:n,className:St,children:[i,r]}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Tt(e){let t=(0,ot.c)(131),{language:n,labels:r,filter:i,ownership:a,source:o,projectId:s,projects:c,projectLocked:l,query:u,unreadCount:d,markReadBusy:f,onFilter:p,onOwnership:m,onSource:h,onProject:g,onQuery:_,onClear:v,onMarkAllRead:y}=e,b=n===`zh`,[x,S]=(0,Q.useState)(!1),C=(0,Q.useRef)(null),ee=(0,Q.useRef)(null),w=x||!!u,T=i!==`all`||o!==`all`||a!==`user`||!l&&!!s,E;t[0]===_?E=t[1]:(E=()=>{_(``),S(!1),ee.current?.focus()},t[0]=_,t[1]=E);let D=E,O=b?`定时任务`:`Scheduled tasks`,k;t[2]===O?k=t[3]:(k=(0,$.jsx)(`h2`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:O}),t[2]=O,t[3]=k);let A=b?`筛选任务`:`Filter tasks`,M=b?`筛选任务`:`Filter tasks`,N=T&&`text-accent-fg`,P;t[4]===N?P=t[5]:(P=q(`relative rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:bg-surface-hover`,N),t[4]=N,t[5]=P);let F;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(V,{className:`size-4`,"aria-hidden":!0}),t[6]=F):F=t[6];let te;t[7]!==T||t[8]!==b?(te=T?(0,$.jsx)(`span`,{className:`absolute right-1.5 top-1.5 size-1 rounded-full bg-accent`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:b?`已应用筛选`:`Filters applied`})}):null,t[7]=T,t[8]=b,t[9]=te):te=t[9];let I;t[10]!==A||t[11]!==M||t[12]!==P||t[13]!==te?(I=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":A,title:M,className:P,children:[F,te]})}),t[10]=A,t[11]=M,t[12]=P,t[13]=te,t[14]=I):I=t[14];let L=b?`状态`:`Status`,re;t[15]===L?re=t[16]:(re=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:L}),t[15]=L,t[16]=re);let ie;t[17]===p?ie=t[18]:(ie=e=>p(e),t[17]=p,t[18]=ie);let R=b?`全部状态`:`All statuses`,z;t[19]===R?z=t[20]:(z=(0,$.jsx)(wt,{value:`all`,children:R}),t[19]=R,t[20]=z);let ae;t[21]===r.filters.active?ae=t[22]:(ae=(0,$.jsx)(wt,{value:`active`,children:r.filters.active}),t[21]=r.filters.active,t[22]=ae);let B;t[23]===r.paused?B=t[24]:(B=(0,$.jsx)(wt,{value:`paused`,children:r.paused}),t[23]=r.paused,t[24]=B);let oe=b?`已完成`:`Completed`,se;t[25]===oe?se=t[26]:(se=(0,$.jsx)(wt,{value:`completed`,children:oe}),t[25]=oe,t[26]=se);let ce;t[27]===r.metrics.running?ce=t[28]:(ce=(0,$.jsx)(wt,{value:`running`,children:r.metrics.running}),t[27]=r.metrics.running,t[28]=ce);let U;t[29]===r.dashboard.needsAttention?U=t[30]:(U=(0,$.jsx)(wt,{value:`attention`,children:r.dashboard.needsAttention}),t[29]=r.dashboard.needsAttention,t[30]=U);let le;t[31]!==i||t[32]!==ie||t[33]!==z||t[34]!==ae||t[35]!==B||t[36]!==se||t[37]!==ce||t[38]!==U?(le=(0,$.jsxs)(Le,{value:i,onValueChange:ie,children:[z,ae,B,se,ce,U]}),t[31]=i,t[32]=ie,t[33]=z,t[34]=ae,t[35]=B,t[36]=se,t[37]=ce,t[38]=U,t[39]=le):le=t[39];let W;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[40]=W):W=t[40];let G=b?`归属`:`Owner`,ue;t[41]===G?ue=t[42]:(ue=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:G}),t[41]=G,t[42]=ue);let de;t[43]===m?de=t[44]:(de=e=>m(e),t[43]=m,t[44]=de);let fe=b?`我的任务`:`My tasks`,pe;t[45]===fe?pe=t[46]:(pe=(0,$.jsx)(wt,{value:`user`,children:fe}),t[45]=fe,t[46]=pe);let he=b?`系统任务`:`System tasks`,J;t[47]===he?J=t[48]:(J=(0,$.jsx)(wt,{value:`system`,children:he}),t[47]=he,t[48]=J);let ge;t[49]!==a||t[50]!==de||t[51]!==pe||t[52]!==J?(ge=(0,$.jsxs)(Le,{value:a,onValueChange:de,children:[pe,J]}),t[49]=a,t[50]=de,t[51]=pe,t[52]=J,t[53]=ge):ge=t[53];let _e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[54]=_e):_e=t[54];let ve;t[55]!==r.filters.allProjects||t[56]!==g||t[57]!==s||t[58]!==l||t[59]!==c||t[60]!==b?(ve=l?null:(0,$.jsxs)(ke,{children:[(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[b?`项目`:`Project`,(0,$.jsx)(`span`,{className:`ml-auto max-w-28 truncate text-xs text-fg-muted`,children:c.find(e=>e.id===s)?.name??r.filters.allProjects}),(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0})]}),(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:s,onValueChange:g,children:[(0,$.jsx)(wt,{value:``,children:r.filters.allProjects}),c.map(Et)]})})})]}),t[55]=r.filters.allProjects,t[56]=g,t[57]=s,t[58]=l,t[59]=c,t[60]=b,t[61]=ve):ve=t[61];let ye=b?`任务类型`:`Task type`,be;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0}),t[62]=be):be=t[62];let xe;t[63]===ye?xe=t[64]:(xe=(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[ye,be]}),t[63]=ye,t[64]=xe);let Se;t[65]===h?Se=t[66]:(Se=e=>h(e),t[65]=h,t[66]=Se);let Ce=b?`全部类型`:`All types`,we;t[67]===Ce?we=t[68]:(we=(0,$.jsx)(wt,{value:`all`,children:Ce}),t[67]=Ce,t[68]=we);let Y;t[69]===r.sources.agent?Y=t[70]:(Y=(0,$.jsx)(wt,{value:`agent`,children:r.sources.agent}),t[69]=r.sources.agent,t[70]=Y);let Te;t[71]===r.sources.task?Te=t[72]:(Te=(0,$.jsx)(wt,{value:`task_command`,children:r.sources.task}),t[71]=r.sources.task,t[72]=Te);let X;t[73]!==o||t[74]!==Se||t[75]!==we||t[76]!==Y||t[77]!==Te?(X=(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:o,onValueChange:Se,children:[we,Y,Te]})})}),t[73]=o,t[74]=Se,t[75]=we,t[76]=Y,t[77]=Te,t[78]=X):X=t[78];let Ee;t[79]!==xe||t[80]!==X?(Ee=(0,$.jsxs)(ke,{children:[xe,X]}),t[79]=xe,t[80]=X,t[81]=Ee):Ee=t[81];let Oe;t[82]!==T||t[83]!==v||t[84]!==u||t[85]!==b?(Oe=T||u?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),(0,$.jsx)(Ie,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg-muted outline-none data-[highlighted]:bg-surface-hover`,onSelect:v,children:b?`重置筛选`:`Reset filters`})]}):null,t[82]=T,t[83]=v,t[84]=u,t[85]=b,t[86]=Oe):Oe=t[86];let je;t[87]!==re||t[88]!==le||t[89]!==ue||t[90]!==ge||t[91]!==ve||t[92]!==Ee||t[93]!==Oe?(je=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:6,className:Ct,children:[re,le,W,ue,ge,_e,ve,Ee,Oe]})}),t[87]=re,t[88]=le,t[89]=ue,t[90]=ge,t[91]=ve,t[92]=Ee,t[93]=Oe,t[94]=je):je=t[94];let Be;t[95]!==I||t[96]!==je?(Be=(0,$.jsxs)(Me,{children:[I,je]}),t[95]=I,t[96]=je,t[97]=Be):Be=t[97];let Ve=b?`搜索任务`:`Search tasks`,He=b?`搜索任务`:`Search tasks`,Ue;t[98]!==D||t[99]!==w?(Ue=()=>{w?D():(S(!0),requestAnimationFrame(()=>C.current?.focus()))},t[98]=D,t[99]=w,t[100]=Ue):Ue=t[100];let We=w&&`bg-surface-hover text-fg`,Z;t[101]===We?Z=t[102]:(Z=q(`rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,We),t[101]=We,t[102]=Z);let Ge;t[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,$.jsx)(K,{className:`size-4`,"aria-hidden":!0}),t[103]=Ge):Ge=t[103];let Ke;t[104]!==w||t[105]!==Ve||t[106]!==He||t[107]!==Ue||t[108]!==Z?(Ke=(0,$.jsx)(`button`,{ref:ee,type:`button`,"aria-label":Ve,title:He,"aria-expanded":w,onClick:Ue,className:Z,children:Ge}),t[104]=w,t[105]=Ve,t[106]=He,t[107]=Ue,t[108]=Z,t[109]=Ke):Ke=t[109];let qe;t[110]!==Be||t[111]!==Ke?(qe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[Be,Ke]}),t[110]=Be,t[111]=Ke,t[112]=qe):qe=t[112];let Je;t[113]!==k||t[114]!==qe?(Je=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1`,children:[k,qe]}),t[113]=k,t[114]=qe,t[115]=Je):Je=t[115];let Ye;t[116]!==r.filters.markAllRead||t[117]!==f||t[118]!==y||t[119]!==d?(Ye=d>0?(0,$.jsxs)(`button`,{type:`button`,disabled:f,onClick:y,className:`flex min-h-9 w-full items-center gap-2 rounded-md px-2 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,"aria-busy":f,children:[f?(0,$.jsx)(H,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(j,{className:`size-4 shrink-0`,"aria-hidden":!0}),r.filters.markAllRead]}):null,t[116]=r.filters.markAllRead,t[117]=f,t[118]=y,t[119]=d,t[120]=Ye):Ye=t[120];let Xe;t[121]!==D||t[122]!==_||t[123]!==u||t[124]!==w||t[125]!==b?(Xe=w?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-2.5 focus-within:border-accent`,children:[(0,$.jsx)(K,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsx)(`input`,{ref:C,value:u,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),D())},"aria-label":b?`搜索任务名称或内容`:`Search task names or content`,placeholder:b?`搜索任务…`:`Search tasks…`,className:`min-h-10 min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,"aria-label":b?`关闭搜索`:`Close search`,onClick:D,className:`rounded-md p-1 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0})})]}):null,t[121]=D,t[122]=_,t[123]=u,t[124]=w,t[125]=b,t[126]=Xe):Xe=t[126];let Ze;return t[127]!==Je||t[128]!==Ye||t[129]!==Xe?(Ze=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[Je,Ye,Xe]}),t[127]=Je,t[128]=Ye,t[129]=Xe,t[130]=Ze):Ze=t[130],Ze}function Et(e){return(0,$.jsx)(wt,{value:e.id,children:(0,$.jsx)(`span`,{className:`max-w-56 truncate`,children:e.name})},e.id)}var Dt=[[`☀️`,`晨间简报`,`每天开始工作前,整理今天值得关注的任务与进展。`,`Morning briefing`,`Start each day with your tasks and project updates.`,`每天早上帮我整理当天到期、逾期的任务和项目进展,给出今天的重点。`,`Each morning, summarize my due and overdue tasks and project progress, and suggest priorities.`],[`📝`,`每周工作回顾`,`回顾一周的成果和问题,为下周留出清晰的方向。`,`Weekly review`,`Review the week and find a clear direction for the next.`,`每周五帮我回顾本周完成的任务和项目进展,整理未解决的问题,建议下周的重点。`,`Every Friday, review completed tasks and project progress, unresolved issues, and priorities for next week.`],[`🌱`,`项目进展跟进`,`定期看看项目进度,找出需要你关注的事情。`,`Project check-in`,`Keep an eye on project progress and what needs attention.`,`定期帮我检查项目进度,整理延期、阻塞和需要我决策的事项。先和我确认关注哪个项目以及运行时间。`,`Regularly review a project for delays, blockers, and decisions I need to make. Ask which project and when to run.`],[`🔔`,`重要事项提醒`,`把容易忘记的事情交给提醒,安心专注眼前。`,`A timely reminder`,`Make room to focus by setting a reminder for later.`,`我想安排一个重要事项提醒。请先问我需要提醒什么、什么时候提醒,以及是否重复。`,`Help me schedule a reminder. Ask what to remember, when, and whether it should repeat.`],[`📚`,`笔记整理`,`回看新收集的想法,整理出值得继续推进的线索。`,`Notes roundup`,`Revisit recent ideas and surface useful next steps.`,`每周帮我回顾最近新增的笔记,按主题整理,找出值得继续推进的想法。请先确认时间和范围。`,`Each week, group my recent notes by topic and suggest ideas worth pursuing. Confirm the schedule and scope.`],[`🧭`,`明日工作计划`,`下班前梳理未完成的事,安排明天最重要的三件事。`,`Plan tomorrow`,`Wrap up loose ends and choose tomorrow’s top three priorities.`,`每个工作日下班前,帮我梳理未完成的任务,建议明天最重要的三件事。请先确认具体时间。`,`Before the end of each workday, review unfinished tasks and suggest tomorrow’s top three priorities. Confirm the time.`],[`🗓️`,`月度复盘`,`拉远一点看进展,发现反复出现的问题和新的机会。`,`Monthly reflection`,`Step back to spot progress, recurring problems, and opportunities.`,`每月月底帮我回顾项目和任务的进展,总结成果、反复出现的问题和下个月的重点。请确认运行时间。`,`At the end of each month, review project and task progress, achievements, recurring problems, and priorities. Confirm the schedule.`],[`🎯`,`逾期任务检查`,`定期发现被搁置的事项,让重要的事重新向前。`,`Overdue task check`,`Find neglected tasks and get important work moving again.`,`定期帮我检查逾期任务,按紧迫程度整理,并建议下一步。请先确认运行频率和时间。`,`Regularly review overdue tasks, prioritize them by urgency, and suggest next steps. Confirm the frequency and time.`]];function Ot(e=Math.random){let t=[...Dt];for(let n=t.length-1;n>0;n--){let r=Math.min(n,Math.max(0,Math.floor(e()*(n+1))));[t[n],t[r]]=[t[r],t[n]]}return t.slice(0,6)}function kt({language:e,projectId:t,onOpenConversation:n}){let r=o(),[i,a]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(``),l=async e=>{a(!0),c(``);try{let i=await Ke({projectId:t,prompt:e});n?n(i):r(i)}catch(e){c(e instanceof Error?e.message:String(e))}finally{a(!1)}},u=e===`zh`,[d,f]=(0,Q.useState)(Ot),p=(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl px-2 py-10 sm:px-6 md:py-20`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(C,{className:`mx-auto size-10 text-fg-muted`,strokeWidth:1.3,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:u?`安排任务`:`Schedule a task`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:u?`说说你希望定期完成什么,我们一起安排好。`:`Tell us what you’d like done regularly. We’ll work out the details together.`})]}),(0,$.jsxs)(`div`,{className:`mb-3 mt-10 flex items-center justify-between text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:u?`也可以从这些想法开始`:`Or start with an idea`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>f(Ot()),className:`flex items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(G,{className:`size-3.5`,"aria-hidden":!0}),u?`换一组`:`More ideas`]})]}),(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:d.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:i,onClick:()=>void l(u?e[5]:e[6]),className:`flex min-h-28 items-center gap-4 rounded-xl border border-dashed border-edge bg-surface-panel px-5 py-4 transition-colors hover:border-edge-strong hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(`span`,{className:`shrink-0 text-2xl`,"aria-hidden":!0,children:e[0]}),(0,$.jsxs)(`span`,{className:`min-w-0`,children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:u?e[1]:e[3]}),(0,$.jsx)(`span`,{className:`mt-1 block text-sm leading-5 text-fg-muted`,children:u?e[2]:e[4]})]})]},e[1]))}),(0,$.jsx)(`div`,{className:`mt-6 text-center`,children:(0,$.jsx)(`button`,{type:`button`,disabled:i,onClick:()=>void l(),className:`rounded-md px-3 py-2 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,children:u?`说说你想安排的其他任务`:`Describe another task`})}),s?(0,$.jsx)(`p`,{role:`alert`,className:`mt-3 text-center text-sm text-danger`,children:s}):null]});return(0,$.jsx)(`section`,{"aria-label":u?`安排任务`:`Schedule a task`,children:p})}function At(e){if(!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function jt(e){return typeof e.message==`string`&&e.message.trim()?e.message:typeof e.error==`string`&&e.error.trim()?e.error:e.error&&typeof e.error==`object`&&typeof e.error.message==`string`?e.error.message:`AI suggestion failed`}function Mt(e,t={}){let n=At(e.split(`
|
|
3
3
|
`).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
|
|
4
4
|
`));if(!n)return null;if(n.type===`text_delta`&&typeof n.delta==`string`)return t.onDelta?.(n.delta),null;if(n.type===`thinking_delta`&&typeof n.delta==`string`)return t.onThinkingDelta?.(n.delta),null;if(n.type===`done`&&typeof n.text==`string`)return n.text;if(n.type===`error`)throw Error(jt(n));return null}async function Nt(e,t={}){let n=await c(l(`/api/ai/text-assist`),{method:`POST`,headers:{Accept:`text/event-stream`},body:JSON.stringify(e)});if(!n.ok){let e=await n.json().catch(()=>({})),t=typeof e.error==`string`?e.error:e.error?.message;throw Error(t||`AI suggestion failed (${n.status})`)}if(!n.body){let e=await n.json().catch(()=>null);if(e?.text)return e;throw Error(`AI suggestion stream is empty`)}let r=n.body.getReader(),i=new TextDecoder,a=``,o=``,s=``;for(;;){let{done:e,value:n}=await r.read();if(n){a+=i.decode(n,{stream:!e});let r=a.split(/\r?\n\r?\n/);a=r.pop()??``;for(let e of r){let n=Mt(e,{onDelta:e=>{o+=e,t.onDelta?.(e)},onThinkingDelta:e=>{s+=e,t.onThinkingDelta?.(e)}});n!==null&&(o=n)}}if(e)break}if(a.trim()){let e=Mt(a,{onDelta:e=>{o+=e,t.onDelta?.(e)},onThinkingDelta:e=>{s+=e,t.onThinkingDelta?.(e)}});e!==null&&(o=e)}let u=o.trim();if(!u)throw Error(`AI returned an empty suggestion`);return{text:u,thinking:s.trim()||void 0}}function Pt(){let[e,t]=(0,Q.useState)(``),[n,r]=(0,Q.useState)(``),[i,a]=(0,Q.useState)(!1),[o,s]=(0,Q.useState)(null);return{suggestion:e,thinking:n,loading:i,error:o,generate:(0,Q.useCallback)(async e=>{a(!0),s(null),t(``),r(``);try{let n=await Nt(e,{onDelta:e=>{t(t=>t+e)},onThinkingDelta:e=>{r(t=>t+e)}});return t(n.text),r(n.thinking??``),n.text}catch(e){let t=e instanceof Error?e.message:`AI suggestion failed`;return s(t),null}finally{a(!1)}},[]),reset:(0,Q.useCallback)(()=>{t(``),r(``),s(null),a(!1)},[])}}var Ft=5;function It(e){return e.startsWith(`zh`)?{title:`AI 优化文案`,buttonTitle:`优化文案`,current:`当前内容`,suggestion:`AI 建议`,editedSuggestion:`审核并编辑建议`,thinking:`模型思考`,thinkingLoading:`思考中`,edit:`编辑`,preview:`预览`,loading:`正在生成建议...`,empty:`暂无内容`,generate:`生成建议`,regenerate:`重新生成`,applyCurrent:`应用当前内容`,replace:`替换`,append:`追加`,cancel:`取消`,close:`关闭`}:{title:`AI text assist`,buttonTitle:`Improve text`,current:`Current`,suggestion:`Suggestion`,editedSuggestion:`Review and edit suggestion`,thinking:`Model thinking`,thinkingLoading:`Thinking`,edit:`Edit`,preview:`Preview`,loading:`Generating suggestion...`,empty:`No content`,generate:`Generate suggestion`,regenerate:`Regenerate`,applyCurrent:`Apply current`,replace:`Replace`,append:`Append`,cancel:`Cancel`,close:`Close`}}function Lt(e){let t=(0,ot.c)(245),{value:n,onApply:r,fieldId:i,fieldLabel:a,scenario:o,format:s,intent:c,locale:l,context:u,disabled:d,className:f,showLabel:y}=e,b=o===void 0?`generic.text`:o,x=s===void 0?`plain`:s,S=c===void 0?`improve`:c,C=y===void 0||y,[ee,w]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(n),[D,O]=(0,Q.useState)(`preview`),[k,A]=(0,Q.useState)(``),[j,M]=(0,Q.useState)(`edit`),[N,P]=(0,Q.useState)(!0),[F,ne]=(0,Q.useState)(!1),[I,L]=(0,Q.useState)(null),re=(0,Q.useRef)(null),ie=(0,Q.useRef)(!0),{suggestion:R,thinking:z,loading:B,error:V,generate:H,reset:se}=Pt(),ce;t[0]===l?ce=t[1]:(ce=It(l),t[0]=l,t[1]=ce);let U=ce,le;t[2]!==B||t[3]!==z?(le=B&&z.trim().length>0,t[2]=B,t[3]=z,t[4]=le):le=t[4];let W=le,K,ue;t[5]!==ee||t[6]!==n?(K=()=>{ee||E(n)},ue=[ee,n],t[5]=ee,t[6]=n,t[7]=K,t[8]=ue):(K=t[7],ue=t[8]),(0,Q.useEffect)(K,ue);let pe,he;t[9]===R?(pe=t[10],he=t[11]):(he=()=>{A(R)},pe=[R],t[9]=R,t[10]=pe,t[11]=he),(0,Q.useEffect)(he,pe);let J,ge;t[12]===z?(J=t[13],ge=t[14]):(J=()=>{z.trim()&&P(!0)},ge=[z],t[12]=z,t[13]=J,t[14]=ge),(0,Q.useEffect)(J,ge);let _e;t[15]!==W||t[16]!==N?(_e=()=>{let e=re.current;!e||!W||!N||ie.current&&(e.scrollTop=e.scrollHeight)},t[15]=W,t[16]=N,t[17]=_e):_e=t[17];let ve;t[18]!==W||t[19]!==z||t[20]!==N?(ve=[W,z,N],t[18]=W,t[19]=z,t[20]=N,t[21]=ve):ve=t[21],(0,Q.useLayoutEffect)(_e,ve);let ye;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(ye=()=>{let e=re.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight;ie.current=t<=Ft},t[22]=ye):ye=t[22];let be=ye,xe;t[23]!==u||t[24]!==i||t[25]!==a||t[26]!==x||t[27]!==H||t[28]!==S||t[29]!==l||t[30]!==b?(xe=async e=>{M(`edit`),P(!0),ie.current=!0,await H({intent:S,scenario:b,input:e,locale:l,field:{id:i,label:a,format:x},context:u})},t[23]=u,t[24]=i,t[25]=a,t[26]=x,t[27]=H,t[28]=S,t[29]=l,t[30]=b,t[31]=xe):xe=t[31];let Se=xe,we;t[32]!==se||t[33]!==n?(we=e=>{ne(!!e.currentTarget.closest(`[role="dialog"]`)),L(document.querySelector(`.app-main-surface`)),E(n),O(`preview`),A(``),M(`edit`),P(!0),se(),w(!0)},t[32]=se,t[33]=n,t[34]=we):we=t[34];let Y=we,Te;t[35]!==T||t[36]!==Se?(Te=async()=>{await Se(T)},t[35]=T,t[36]=Se,t[37]=Te):Te=t[37];let Ee=Te,De;t[38]!==se||t[39]!==n?(De=()=>{w(!1),E(n),O(`preview`),A(``),M(`edit`),P(!0),se()},t[38]=se,t[39]=n,t[40]=De):De=t[40];let Oe=De,ke;t[41]!==Oe||t[42]!==T||t[43]!==r?(ke=()=>{r(T),Oe()},t[41]=Oe,t[42]=T,t[43]=r,t[44]=ke):ke=t[44];let Ae=ke,je;t[45]!==Oe||t[46]!==k||t[47]!==r?(je=()=>{k.trim()&&(r(k),Oe())},t[45]=Oe,t[46]=k,t[47]=r,t[48]=je):je=t[48];let Me=je,Ne;t[49]!==Oe||t[50]!==T||t[51]!==k||t[52]!==r?(Ne=()=>{if(!k.trim())return;let e=T.trimEnd();r(e?`${e}\n\n${k}`:k),Oe()},t[49]=Oe,t[50]=T,t[51]=k,t[52]=r,t[53]=Ne):Ne=t[53];let Pe=Ne,Fe;t[54]!==k||t[55]!==V||t[56]!==B?(Fe=!B&&!V&&k.trim().length>0,t[54]=k,t[55]=V,t[56]=B,t[57]=Fe):Fe=t[57];let Ie=Fe,Le=T!==n,Re;t[58]!==k||t[59]!==V||t[60]!==z?(Re=k.trim().length>0||z.trim().length>0||!!V,t[58]=k,t[59]=V,t[60]=z,t[61]=Re):Re=t[61];let ze=Re,Be=!C&&`size-7 p-0`,Ve;t[62]!==f||t[63]!==Be?(Ve=q(`h-7 gap-1 px-2 text-xs`,Be,f),t[62]=f,t[63]=Be,t[64]=Ve):Ve=t[64];let He=d||B,Ue;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,$.jsx)(de,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[65]=Ue):Ue=t[65];let We=C?U.buttonTitle:null,Z;t[66]!==U.buttonTitle||t[67]!==Y||t[68]!==Ve||t[69]!==He||t[70]!==We?(Z=(0,$.jsxs)(Ce,{type:`button`,variant:`ghost`,className:Ve,title:U.buttonTitle,"aria-label":U.buttonTitle,disabled:He,onClick:Y,children:[Ue,We]}),t[66]=U.buttonTitle,t[67]=Y,t[68]=Ve,t[69]=He,t[70]=We,t[71]=Z):Z=t[71];let Ge;t[72]===Oe?Ge=t[73]:(Ge=e=>e?w(!0):Oe(),t[72]=Oe,t[73]=Ge);let Ke=I??void 0,qe=F?`bg-transparent`:`bg-scrim`,Je;t[74]===qe?Je=t[75]:(Je=q(`xopc-dialog-overlay absolute inset-0 z-[80]`,qe),t[74]=qe,t[75]=Je);let Ye;t[76]===Je?Ye=t[77]:(Ye=(0,$.jsx)(p,{className:Je}),t[76]=Je,t[77]=Ye);let Xe;t[78]===U.title?Xe=t[79]:(Xe=(0,$.jsx)(_,{className:`text-base font-semibold text-fg`,children:U.title}),t[78]=U.title,t[79]=Xe);let Ze;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,$.jsx)(me,{className:`size-5`,strokeWidth:1.75}),t[80]=Ze):Ze=t[80];let Qe;t[81]===U.close?Qe=t[82]:(Qe=(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{type:`button`,variant:`ghost`,className:`size-9 shrink-0 p-0`,"aria-label":U.close,children:Ze})}),t[81]=U.close,t[82]=Qe);let $e;t[83]!==Xe||t[84]!==Qe?($e=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-b border-edge px-4 py-3`,children:[Xe,Qe]}),t[83]=Xe,t[84]=Qe,t[85]=$e):$e=t[85];let et;t[86]===U.current?et=t[87]:(et=(0,$.jsx)(`div`,{className:`min-w-0 text-xs font-medium text-fg-muted`,children:U.current}),t[86]=U.current,t[87]=et);let tt=U.current,nt=D===`edit`,rt=D===`edit`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,it;t[88]===rt?it=t[89]:(it=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,rt),t[88]=rt,t[89]=it);let at,st;t[90]===Symbol.for(`react.memo_cache_sentinel`)?(at=()=>O(`edit`),st=(0,$.jsx)(fe,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[90]=at,t[91]=st):(at=t[90],st=t[91]);let ct;t[92]!==U.edit||t[93]!==nt||t[94]!==it?(ct=(0,$.jsxs)(`button`,{"aria-pressed":nt,type:`button`,className:it,onClick:at,children:[st,U.edit]}),t[92]=U.edit,t[93]=nt,t[94]=it,t[95]=ct):ct=t[95];let lt=D===`preview`,ut=D===`preview`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,dt;t[96]===ut?dt=t[97]:(dt=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,ut),t[96]=ut,t[97]=dt);let ft,pt;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(ft=()=>O(`preview`),pt=(0,$.jsx)(ae,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[98]=ft,t[99]=pt):(ft=t[98],pt=t[99]);let mt;t[100]!==U.preview||t[101]!==lt||t[102]!==dt?(mt=(0,$.jsxs)(`button`,{"aria-pressed":lt,type:`button`,className:dt,onClick:ft,children:[pt,U.preview]}),t[100]=U.preview,t[101]=lt,t[102]=dt,t[103]=mt):mt=t[103];let ht;t[104]!==U.current||t[105]!==ct||t[106]!==mt?(ht=(0,$.jsxs)(X,{className:`flex shrink-0 items-center gap-1 rounded-lg border border-edge bg-surface-inset p-0.5`,role:`group`,"aria-label":tt,indicatorClassName:`rounded-md bg-surface-panel shadow-surface`,children:[ct,mt]}),t[104]=U.current,t[105]=ct,t[106]=mt,t[107]=ht):ht=t[107];let gt;t[108]!==et||t[109]!==ht?(gt=(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[et,ht]}),t[108]=et,t[109]=ht,t[110]=gt):gt=t[110];let _t;t[111]!==T||t[112]!==D||t[113]!==x||t[114]!==U.current||t[115]!==U.empty?(_t=D===`preview`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg`,children:x===`markdown`?(0,$.jsx)(oe,{content:T||U.empty,compact:!0,className:`text-sm`}):(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:T||U.empty})}):(0,$.jsx)(`textarea`,{className:`min-h-0 flex-1 resize-none overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/25`,value:T,onChange:e=>E(e.currentTarget.value),placeholder:U.empty,"aria-label":U.current}),t[111]=T,t[112]=D,t[113]=x,t[114]=U.current,t[115]=U.empty,t[116]=_t):_t=t[116];let vt;t[117]!==gt||t[118]!==_t?(vt=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden`,children:[gt,_t]}),t[117]=gt,t[118]=_t,t[119]=vt):vt=t[119];let yt;t[120]===U.editedSuggestion?yt=t[121]:(yt=(0,$.jsx)(`span`,{children:U.editedSuggestion}),t[120]=U.editedSuggestion,t[121]=yt);let bt;t[122]!==U.loading||t[123]!==B?(bt=B?(0,$.jsx)(`span`,{className:`ml-2 font-normal`,children:U.loading}):null,t[122]=U.loading,t[123]=B,t[124]=bt):bt=t[124];let xt;t[125]!==yt||t[126]!==bt?(xt=(0,$.jsxs)(`div`,{className:`min-w-0 text-xs font-medium text-fg-muted`,children:[yt,bt]}),t[125]=yt,t[126]=bt,t[127]=xt):xt=t[127];let St=U.editedSuggestion,Ct=j===`edit`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,wt;t[128]===Ct?wt=t[129]:(wt=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,Ct),t[128]=Ct,t[129]=wt);let Tt=j===`edit`,Et,Dt;t[130]===Symbol.for(`react.memo_cache_sentinel`)?(Et=()=>M(`edit`),Dt=(0,$.jsx)(fe,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[130]=Et,t[131]=Dt):(Et=t[130],Dt=t[131]);let Ot;t[132]!==U.edit||t[133]!==wt||t[134]!==Tt?(Ot=(0,$.jsxs)(`button`,{type:`button`,className:wt,"aria-pressed":Tt,onClick:Et,children:[Dt,U.edit]}),t[132]=U.edit,t[133]=wt,t[134]=Tt,t[135]=Ot):Ot=t[135];let kt=j===`preview`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,At;t[136]===kt?At=t[137]:(At=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,kt),t[136]=kt,t[137]=At);let jt=j===`preview`,Mt,Nt;t[138]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=()=>M(`preview`),Nt=(0,$.jsx)(ae,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[138]=Mt,t[139]=Nt):(Mt=t[138],Nt=t[139]);let Lt;t[140]!==U.preview||t[141]!==At||t[142]!==jt?(Lt=(0,$.jsxs)(`button`,{type:`button`,className:At,"aria-pressed":jt,onClick:Mt,children:[Nt,U.preview]}),t[140]=U.preview,t[141]=At,t[142]=jt,t[143]=Lt):Lt=t[143];let Bt;t[144]!==U.editedSuggestion||t[145]!==Ot||t[146]!==Lt?(Bt=(0,$.jsxs)(X,{className:`flex shrink-0 items-center gap-1 rounded-lg border border-edge bg-surface-inset p-0.5`,role:`group`,"aria-label":St,indicatorClassName:`rounded-md bg-surface-panel shadow-surface`,children:[Ot,Lt]}),t[144]=U.editedSuggestion,t[145]=Ot,t[146]=Lt,t[147]=Bt):Bt=t[147];let Vt;t[148]!==xt||t[149]!==Bt?(Vt=(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[xt,Bt]}),t[148]=xt,t[149]=Bt,t[150]=Vt):Vt=t[150];let Ht=W?`opacity-100`:`pointer-events-none opacity-0`,Ut;t[151]===Ht?Ut=t[152]:(Ut=q(`absolute inset-0 min-h-0 transition-opacity duration-200 ease-out motion-reduce:transition-none`,Ht),t[151]=Ht,t[152]=Ut);let Wt=!W,Gt;t[153]===Symbol.for(`react.memo_cache_sentinel`)?(Gt=()=>P(Rt),t[153]=Gt):Gt=t[153];let Kt;t[154]!==U.thinkingLoading||t[155]!==B?(Kt=B?(0,$.jsxs)(`span`,{className:`ml-1 font-normal`,children:[`· `,U.thinkingLoading]}):null,t[154]=U.thinkingLoading,t[155]=B,t[156]=Kt):Kt=t[156];let qt;t[157]!==U.thinking||t[158]!==Kt?(qt=(0,$.jsxs)(`span`,{className:`min-w-0 truncate`,children:[U.thinking,Kt]}),t[157]=U.thinking,t[158]=Kt,t[159]=qt):qt=t[159];let Jt=N&&`rotate-180`,Yt;t[160]===Jt?Yt=t[161]:(Yt=q(`size-3.5 shrink-0 transition-transform`,Jt),t[160]=Jt,t[161]=Yt);let Xt;t[162]===Yt?Xt=t[163]:(Xt=(0,$.jsx)(te,{className:Yt,strokeWidth:1.75,"aria-hidden":!0}),t[162]=Yt,t[163]=Xt);let Zt;t[164]!==qt||t[165]!==Xt?(Zt=(0,$.jsxs)(`button`,{type:`button`,className:`flex shrink-0 items-center justify-between gap-2 px-2.5 py-2 text-left text-xs font-medium text-fg-muted hover:text-fg`,onClick:Gt,children:[qt,Xt]}),t[164]=qt,t[165]=Xt,t[166]=Zt):Zt=t[166];let Qt;t[167]!==z||t[168]!==N?(Qt=N?(0,$.jsx)(`pre`,{ref:re,className:`min-h-0 flex-1 overflow-auto border-t border-edge px-2.5 py-2 whitespace-pre-wrap text-xs leading-5 text-fg-muted`,onScroll:be,children:z}):null,t[167]=z,t[168]=N,t[169]=Qt):Qt=t[169];let $t;t[170]!==Zt||t[171]!==Qt?($t=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col rounded-lg border border-edge bg-surface-inset/70`,children:[Zt,Qt]}),t[170]=Zt,t[171]=Qt,t[172]=$t):$t=t[172];let en;t[173]!==Ut||t[174]!==Wt||t[175]!==$t?(en=(0,$.jsx)(`div`,{className:Ut,"aria-hidden":Wt,children:$t}),t[173]=Ut,t[174]=Wt,t[175]=$t,t[176]=en):en=t[176];let tn=W?`pointer-events-none opacity-0`:`opacity-100`,nn;t[177]===tn?nn=t[178]:(nn=q(`absolute inset-0 min-h-0 transition-opacity duration-200 ease-out motion-reduce:transition-none`,tn),t[177]=tn,t[178]=nn);let rn;t[179]!==k||t[180]!==V||t[181]!==x||t[182]!==U.empty||t[183]!==U.loading||t[184]!==U.suggestion||t[185]!==B||t[186]!==j?(rn=V?(0,$.jsx)(`pre`,{className:`h-full min-h-0 overflow-auto whitespace-pre-wrap rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg-muted`,children:V}):j===`preview`?(0,$.jsx)(`div`,{className:`h-full min-h-0 overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg`,children:B&&!k.trim()?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:U.loading}):x===`markdown`?(0,$.jsx)(oe,{content:k||U.empty,compact:!0,className:`text-sm`}):(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:k||U.empty})}):(0,$.jsx)(`textarea`,{className:`h-full min-h-0 w-full resize-none overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/25 disabled:text-fg-muted`,value:k,onChange:e=>A(e.currentTarget.value),disabled:B,placeholder:B?U.loading:U.empty,"aria-label":U.suggestion}),t[179]=k,t[180]=V,t[181]=x,t[182]=U.empty,t[183]=U.loading,t[184]=U.suggestion,t[185]=B,t[186]=j,t[187]=rn):rn=t[187];let an;t[188]!==nn||t[189]!==rn?(an=(0,$.jsx)(`div`,{className:nn,children:rn}),t[188]=nn,t[189]=rn,t[190]=an):an=t[190];let on;t[191]!==en||t[192]!==an?(on=(0,$.jsxs)(`div`,{className:`relative min-h-0 flex-1 overflow-hidden`,children:[en,an]}),t[191]=en,t[192]=an,t[193]=on):on=t[193];let sn;t[194]!==Vt||t[195]!==on?(sn=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden`,children:[Vt,on]}),t[194]=Vt,t[195]=on,t[196]=sn):sn=t[196];let cn;t[197]!==vt||t[198]!==sn?(cn=(0,$.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-1 gap-3 overflow-hidden p-4 md:grid-cols-2`,children:[vt,sn]}),t[197]=vt,t[198]=sn,t[199]=cn):cn=t[199];let ln;t[200]!==Oe||t[201]!==U.cancel?(ln=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,onClick:Oe,children:U.cancel}),t[200]=Oe,t[201]=U.cancel,t[202]=ln):ln=t[202];let un=!Le,dn;t[203]!==Ae||t[204]!==U.applyCurrent||t[205]!==un?(dn=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,disabled:un,onClick:Ae,children:U.applyCurrent}),t[203]=Ae,t[204]=U.applyCurrent,t[205]=un,t[206]=dn):dn=t[206];let fn;t[207]===Ee?fn=t[208]:(fn=()=>void Ee(),t[207]=Ee,t[208]=fn);let pn;t[209]===ze?pn=t[210]:(pn=ze?(0,$.jsx)(G,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(de,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),t[209]=ze,t[210]=pn);let mn=ze?U.regenerate:U.generate,hn;t[211]!==B||t[212]!==pn||t[213]!==mn||t[214]!==fn?(hn=(0,$.jsxs)(Ce,{type:`button`,variant:`secondary`,disabled:B,onClick:fn,children:[pn,mn]}),t[211]=B,t[212]=pn,t[213]=mn,t[214]=fn,t[215]=hn):hn=t[215];let gn=!Ie,_n;t[216]!==Pe||t[217]!==U.append||t[218]!==gn?(_n=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,disabled:gn,onClick:Pe,children:U.append}),t[216]=Pe,t[217]=U.append,t[218]=gn,t[219]=_n):_n=t[219];let vn=!Ie,yn;t[220]!==Me||t[221]!==U.replace||t[222]!==vn?(yn=(0,$.jsx)(Ce,{type:`button`,variant:`primary`,disabled:vn,onClick:Me,children:U.replace}),t[220]=Me,t[221]=U.replace,t[222]=vn,t[223]=yn):yn=t[223];let bn;t[224]!==hn||t[225]!==_n||t[226]!==yn||t[227]!==ln||t[228]!==dn?(bn=(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-4 py-3`,children:[ln,dn,hn,_n,yn]}),t[224]=hn,t[225]=_n,t[226]=yn,t[227]=ln,t[228]=dn,t[229]=bn):bn=t[229];let xn;t[230]!==bn||t[231]!==$e||t[232]!==cn?(xn=(0,$.jsx)(`div`,{className:`absolute inset-0 z-[80] flex items-center justify-center p-4 pointer-events-none`,children:(0,$.jsxs)(g,{className:`xopc-dialog-content-pane pointer-events-auto flex h-[min(78vh,38rem)] w-full max-w-4xl flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,onOpenAutoFocus:zt,children:[$e,cn,bn]})}),t[230]=bn,t[231]=$e,t[232]=cn,t[233]=xn):xn=t[233];let Sn;t[234]!==xn||t[235]!==Ke||t[236]!==Ye?(Sn=(0,$.jsxs)(h,{container:Ke,children:[Ye,xn]}),t[234]=xn,t[235]=Ke,t[236]=Ye,t[237]=Sn):Sn=t[237];let Cn;t[238]!==ee||t[239]!==Sn||t[240]!==Ge?(Cn=(0,$.jsx)(v,{open:ee,onOpenChange:Ge,children:Sn}),t[238]=ee,t[239]=Sn,t[240]=Ge,t[241]=Cn):Cn=t[241];let wn;return t[242]!==Cn||t[243]!==Z?(wn=(0,$.jsxs)($.Fragment,{children:[Z,Cn]}),t[242]=Cn,t[243]=Z,t[244]=wn):wn=t[244],wn}function Rt(e){return!e}function zt(e){return e.preventDefault()}function Bt(e){return e.management!==void 0&&e.management.owner!==`observation`}function Vt(e){return[`reminder`,`brief`,`review`,`followUp`].map(t=>{let n=e.scenarios[t];return{...n,requiresProject:t===`followUp`,form:{...We,name:n.name,instruction:t===`reminder`?``:n.instruction,triggerMode:t===`reminder`?`once`:t===`review`?`weekly`:`daily`,time:t===`brief`?`08:30`:t===`review`?`17:00`:`09:00`,weekday:`5`,notificationPolicy:`all`}}})}var Ht=`w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg focus-visible:outline-2 focus-visible:outline-accent`;function Ut(e){let t=(0,ot.c)(99),{form:n,setForm:r,labels:i,projects:a,projectLocked:o,source:s,requiresProject:c}=e,l;t[0]===r?l=t[1]:(l=e=>r(t=>({...t,...e})),t[0]=r,t[1]=l);let u=l,d;t[2]!==i.experience.source||t[3]!==s?(d=(0,$.jsxs)(`p`,{className:`text-sm text-fg-muted`,children:[i.experience.source,`: `,s]}),t[2]=i.experience.source,t[3]=s,t[4]=d):d=t[4];let f;t[5]===u?f=t[6]:(f=e=>u({name:e.target.value}),t[5]=u,t[6]=f);let p;t[7]!==n.name||t[8]!==f?(p=(0,$.jsx)(`input`,{className:Ht,value:n.name,onChange:f}),t[7]=n.name,t[8]=f,t[9]=p):p=t[9];let m;t[10]!==i.form.name||t[11]!==p?(m=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.name,p]}),t[10]=i.form.name,t[11]=p,t[12]=m):m=t[12];let h;t[13]===u?h=t[14]:(h=e=>u({instruction:e.target.value}),t[13]=u,t[14]=h);let g;t[15]!==n.instruction||t[16]!==h?(g=(0,$.jsx)(`textarea`,{className:Ht,rows:5,value:n.instruction,onChange:h}),t[15]=n.instruction,t[16]=h,t[17]=g):g=t[17];let _;t[18]!==i.info.task||t[19]!==g?(_=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.info.task,g]}),t[18]=i.info.task,t[19]=g,t[20]=_):_=t[20];let v;t[21]!==n.projectId||t[22]!==i.form.noProject||t[23]!==i.form.project||t[24]!==o||t[25]!==a||t[26]!==u?(v=!o&&(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.project,(0,$.jsxs)(I,{className:Ht,value:n.projectId,onChange:e=>u({projectId:e.target.value}),children:[(0,$.jsx)(L,{value:``,children:i.form.noProject}),a.map(Wt)]})]}),t[21]=n.projectId,t[22]=i.form.noProject,t[23]=i.form.project,t[24]=o,t[25]=a,t[26]=u,t[27]=v):v=t[27];let y;t[28]!==n.projectId||t[29]!==i.experience.projectRequired||t[30]!==c?(y=c&&!n.projectId?(0,$.jsx)(`p`,{role:`status`,className:`text-sm text-fg-muted`,children:i.experience.projectRequired}):null,t[28]=n.projectId,t[29]=i.experience.projectRequired,t[30]=c,t[31]=y):y=t[31];let b;t[32]===u?b=t[33]:(b=e=>u({triggerMode:e.target.value}),t[32]=u,t[33]=b);let x;t[34]===i.trigger.once?x=t[35]:(x=(0,$.jsx)(L,{value:`once`,children:i.trigger.once}),t[34]=i.trigger.once,t[35]=x);let S;t[36]===i.trigger.daily?S=t[37]:(S=(0,$.jsx)(L,{value:`daily`,children:i.trigger.daily}),t[36]=i.trigger.daily,t[37]=S);let C;t[38]===i.trigger.weekly?C=t[39]:(C=(0,$.jsx)(L,{value:`weekly`,children:i.trigger.weekly}),t[38]=i.trigger.weekly,t[39]=C);let ee;t[40]!==n.triggerMode||t[41]!==b||t[42]!==x||t[43]!==S||t[44]!==C?(ee=(0,$.jsxs)(I,{className:Ht,value:n.triggerMode,onChange:b,children:[x,S,C]}),t[40]=n.triggerMode,t[41]=b,t[42]=x,t[43]=S,t[44]=C,t[45]=ee):ee=t[45];let w;t[46]!==i.form.trigger||t[47]!==ee?(w=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.trigger,ee]}),t[46]=i.form.trigger,t[47]=ee,t[48]=w):w=t[48];let T;t[49]!==n.onceAt||t[50]!==n.time||t[51]!==n.triggerMode||t[52]!==i.form.onceAt||t[53]!==i.form.time||t[54]!==u?(T=n.triggerMode===`once`?(0,$.jsx)(et,{label:i.form.onceAt,value:n.onceAt,defaultTime:n.time,onChange:e=>u({onceAt:e})}):(0,$.jsxs)(`div`,{className:`grid gap-2 text-sm text-fg`,children:[(0,$.jsx)(`span`,{children:i.form.time}),(0,$.jsx)($e,{value:n.time,onChange:e=>u({time:e}),ariaLabel:i.form.time})]}),t[49]=n.onceAt,t[50]=n.time,t[51]=n.triggerMode,t[52]=i.form.onceAt,t[53]=i.form.time,t[54]=u,t[55]=T):T=t[55];let E;t[56]!==n.triggerMode||t[57]!==n.weekday||t[58]!==i.form.day||t[59]!==i.weekdays||t[60]!==u?(E=n.triggerMode===`weekly`&&(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.day,(0,$.jsx)(I,{className:Ht,value:n.weekday,onChange:e=>u({weekday:e.target.value}),children:[`sunday`,`monday`,`tuesday`,`wednesday`,`thursday`,`friday`,`saturday`].map((e,t)=>(0,$.jsx)(L,{value:String(t),children:i.weekdays[e]},e))})]}),t[56]=n.triggerMode,t[57]=n.weekday,t[58]=i.form.day,t[59]=i.weekdays,t[60]=u,t[61]=E):E=t[61];let D;t[62]!==w||t[63]!==T||t[64]!==E?(D=(0,$.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[w,T,E]}),t[62]=w,t[63]=T,t[64]=E,t[65]=D):D=t[65];let O;t[66]!==n.onceAt||t[67]!==n.triggerMode||t[68]!==i.experience.futureTime?(O=n.triggerMode===`once`&&n.onceAt&&new Date(n.onceAt).getTime()<=Date.now()?(0,$.jsx)(`p`,{role:`status`,className:`text-sm text-red-700 dark:text-red-300`,children:i.experience.futureTime}):null,t[66]=n.onceAt,t[67]=n.triggerMode,t[68]=i.experience.futureTime,t[69]=O):O=t[69];let k;t[70]===i.experience.scheduleNote?k=t[71]:(k=(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:i.experience.scheduleNote}),t[70]=i.experience.scheduleNote,t[71]=k);let A;t[72]===u?A=t[73]:(A=e=>u({notificationPolicy:e.target.value}),t[72]=u,t[73]=A);let j;t[74]===i.draft.notifyAll?j=t[75]:(j=(0,$.jsx)(L,{value:`all`,children:i.draft.notifyAll}),t[74]=i.draft.notifyAll,t[75]=j);let M;t[76]===i.draft.notifyAttention?M=t[77]:(M=(0,$.jsx)(L,{value:`attention`,children:i.draft.notifyAttention}),t[76]=i.draft.notifyAttention,t[77]=M);let N;t[78]===i.draft.notifyNone?N=t[79]:(N=(0,$.jsx)(L,{value:`none`,children:i.draft.notifyNone}),t[78]=i.draft.notifyNone,t[79]=N);let P;t[80]!==n.notificationPolicy||t[81]!==A||t[82]!==j||t[83]!==M||t[84]!==N?(P=(0,$.jsxs)(I,{className:Ht,value:n.notificationPolicy,onChange:A,children:[j,M,N]}),t[80]=n.notificationPolicy,t[81]=A,t[82]=j,t[83]=M,t[84]=N,t[85]=P):P=t[85];let F;t[86]!==i.draft.notifications||t[87]!==P?(F=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.draft.notifications,P]}),t[86]=i.draft.notifications,t[87]=P,t[88]=F):F=t[88];let te;return t[89]!==y||t[90]!==D||t[91]!==d||t[92]!==O||t[93]!==k||t[94]!==F||t[95]!==m||t[96]!==_||t[97]!==v?(te=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4`,children:[d,m,_,v,y,D,O,k,F]}),t[89]=y,t[90]=D,t[91]=d,t[92]=O,t[93]=k,t[94]=F,t[95]=m,t[96]=_,t[97]=v,t[98]=te):te=t[98],te}function Wt(e){return(0,$.jsx)(L,{value:e.id,children:e.name},e.id)}var Gt=`xopc.automations.dismissedExecutionIssues`;function Kt(){if(typeof window>`u`)return{};try{let e=JSON.parse(window.localStorage.getItem(Gt)??`{}`);return!e||typeof e!=`object`||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`string`))}catch{return{}}}function qt(e,t,n){return e?E(e,n):t.never}function Jt(e,t){return e.kind===`routine`?`Routine · v${e.version}`:e.kind===`system`?e.capability===`home.advisor.refresh`?`Home AI suggestions refresh`:e.capability===`memory.temporal_sweep`?`Memory temporal sweep`:e.capability===`memory.daily_reconciliation`?`Memory daily reconciliation`:`Memory weekly knowledge maintenance`:e.kind===`task_command`?t.action.taskWithId.replace(`{id}`,e.taskId):e.agentId?t.action.agentWithId.replace(`{id}`,e.agentId):t.action.agent}function Yt(e,t){return e===`task_command`?t.action.runTask:t.action.runAgent}function Xt(e){return e.safety?.mode??`auto_apply`}function Zt(e){return e===`succeeded`?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`bg-red-500/10 text-red-700 dark:text-red-300`:e===`running`||e===`queued`||e===`cancelling`?`bg-blue-500/10 text-blue-700 dark:text-blue-300`:`bg-surface-hover text-fg-muted`}function Qt(e,t){if(e==null)return t.never;if(e<1e3)return`${e}ms`;let n=Math.round(e/1e3);return n<60?`${n}s`:`${Math.floor(n/60)}m ${n%60}s`}function $t(e){return e.status===`running`||e.status===`queued`||e.status===`cancelling`}function en(e){return e.status===`failed`||e.status===`timeout`}function tn(e,t){return e.action.kind===`system`?Jt(e.action,t):e.action.kind===`agent`?e.action.instruction:(e.action.kind,Jt(e.action,t))}function nn(e){return e.description?.trim()??``}function rn(e){return $t(e)?0:en(e)?1:e.status===`succeeded`?2:3}function an(e){return[...e].sort((e,t)=>{let n=rn(e)-rn(t);return n===0?t.createdAtMs-e.createdAtMs:n})}function on(){let e=(0,ot.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`section`,{className:`grid grid-cols-2 gap-px overflow-hidden rounded-xl border border-edge-subtle bg-edge-subtle xl:grid-cols-4`,children:Array.from({length:4}).map(cn)}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 space-y-2`,children:[(0,$.jsx)(J,{className:`h-4 w-36`}),(0,$.jsx)(J,{className:`h-3 w-56 max-w-full`})]}),(0,$.jsx)(J,{className:`h-7 w-20 rounded-full`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`section`,{className:`rounded-xl bg-surface-inset p-4`,children:[n,(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:Array.from({length:6}).map(sn)})]}),e[2]=r):r=e[2];let i,a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(J,{className:`h-4 w-32`}),a=(0,$.jsx)(J,{className:`mt-4 h-24 rounded-lg`}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let o;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4`,"aria-hidden":`true`,children:[t,(0,$.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-3 md:grid-cols-[15rem_minmax(0,1fr)] md:grid-rows-1 lg:grid-cols-[17rem_minmax(0,1fr)]`,children:[r,(0,$.jsxs)(`section`,{className:`hidden rounded-xl border border-edge-subtle p-4 xl:block`,children:[i,a,(0,$.jsxs)(`div`,{className:`mt-4 grid gap-2`,children:[(0,$.jsx)(J,{className:`h-12 rounded-lg`}),(0,$.jsx)(J,{className:`h-12 rounded-lg`}),(0,$.jsx)(J,{className:`h-12 rounded-lg`})]})]})]})]}),e[5]=o):o=e[5],o}function sn(e,t){return(0,$.jsx)(`div`,{className:`rounded-lg p-3`,children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(J,{className:`size-4 rounded-full`}),(0,$.jsx)(J,{className:`h-4 w-32`}),(0,$.jsx)(J,{className:`h-5 w-20 rounded-full`})]}),(0,$.jsx)(J,{className:`mt-3 h-4 w-full`}),(0,$.jsx)(J,{className:`mt-2 h-4 w-3/5`})]}),(0,$.jsx)(J,{className:`h-8 w-24 rounded-md`})]})},t)}function cn(e,t){return(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-2.5 bg-surface-base px-3 py-2.5`,children:[(0,$.jsx)(J,{className:`size-4 rounded-full`}),(0,$.jsx)(J,{className:`h-3 w-14`}),(0,$.jsx)(J,{className:`ml-auto h-4 w-10`})]},t)}function ln({projectId:e,embedded:t=!1,title:n,subtitle:r}){let i=d(e=>e.language),o=f(i),s=o.automations,c=o.productNavigation.sections[`automation-triggers`],l=o.cron,u=we(e=>e.setPageHeader),y=we(e=>e.clearPageHeader),[b,x]=a(),S=!t&&b.get(`view`)===`activity`,C=b.get(`run`)?.trim()??``,w=b.get(`view`)===`execution`&&!!C,T=b.get(`automation`)?.trim()??``,E=b.get(`new`)===`1`,D=b.get(`setupChat`)??void 0,O=b.get(`draft`)?.trim()??``,j=b.get(`action`)?.trim()??``,M=b.get(`taskId`)?.trim()??``,N=b.get(`projectId`)?.trim()??``,P=e?.trim()||N,F=!!e?.trim(),te=b.get(`autogenerate`)===`1`,ne=(0,Q.useRef)(``),I=b.get(`status`),L=I===`active`||I===`paused`||I===`completed`||I===`running`||I===`attention`?I:`all`,ie=b.get(`ownership`)===`system`?`system`:`user`,R=b.get(`source`),z=R===`agent`||R===`task_command`?R:`all`,ae=b.get(`q`)??``,B=e=>x(t=>{let n=new URLSearchParams(t);return e===`all`?n.delete(`status`):n.set(`status`,e),n.delete(`automation`),n}),V=e=>x(t=>{let n=new URLSearchParams(t);return e===`user`?n.delete(`ownership`):n.set(`ownership`,e),n.delete(`automation`),n}),H=e=>x(t=>{let n=new URLSearchParams(t);return e?n.set(`q`,e):n.delete(`q`),n.delete(`automation`),n},{replace:!0}),oe=e=>x(t=>{let n=new URLSearchParams(t);return e===`all`?n.delete(`source`):n.set(`source`,e),n.delete(`automation`),n}),se=()=>x(e=>{let t=new URLSearchParams(e);return t.delete(`status`),t.delete(`source`),t.delete(`q`),t.delete(`automation`),t}),[ce,U]=(0,Q.useState)(null),[le,G]=(0,Q.useState)(!1),[K,ue]=(0,Q.useState)(`blank`),[de,fe]=(0,Q.useState)(!1),[pe,J]=(0,Q.useState)(null),[_e,ve]=(0,Q.useState)(null),[ye,Te]=(0,Q.useState)(!1),[X,De]=(0,Q.useState)(We),[Oe,ke]=(0,Q.useState)(null),[Ae,je]=(0,Q.useState)(null),[Me,Ne]=(0,Q.useState)(!1),[Pe,Fe]=(0,Q.useState)(null),[Ie,Le]=(0,Q.useState)(``),[Re,ze]=(0,Q.useState)(null),[Be,Ve]=(0,Q.useState)(!1),[He,Z]=(0,Q.useState)(!1),[Ke,qe]=(0,Q.useState)(P),[$e,et]=(0,Q.useState)(`new_session`),[tt,rt]=(0,Q.useState)(`attention`),[at,ot]=(0,Q.useState)(null),[st,lt]=(0,Q.useState)(!1),[ut,dt]=(0,Q.useState)(!1),[ft,mt]=(0,Q.useState)(!1),[ht,gt]=(0,Q.useState)(null),[_t,yt]=(0,Q.useState)(Kt),xt=be([`automations`,P],()=>Y.list(P?{projectId:P}:void 0),{keepPreviousData:!0,refreshInterval:15e3}),St=be([`automation-runs`,P],()=>Y.runs(50,void 0,P?{projectId:P}:void 0),{keepPreviousData:!0,refreshInterval:1e4}),Ct=be(P?`automations-global-system-source`:null,()=>Y.list(),{keepPreviousData:!0,refreshInterval:15e3}),wt=be(P?`automation-runs-global-system-source`:null,()=>Y.runs(50),{keepPreviousData:!0,refreshInterval:1e4}),Et=be(Pe?[`automation-history`,Pe,P]:null,()=>Y.runs(50,Pe,P?{projectId:P}:void 0),{refreshInterval:1e4}),Dt=be(Ae?`automation-run-events:${Ae}`:null,()=>Y.runEvents(Ae),{refreshInterval:5e3}),Ot=be(Ae?[`automation-exact-run`,Ae]:null,()=>Y.getRun(Ae),{refreshInterval:3e3}),At=be(`automation-chat-agents`,Se),jt=be(`automation-tasks`,Y.tasks),Mt=be(`automation-projects`,()=>ge({sortBy:`name`,sortOrder:`asc`,limit:200})),Nt=xt.isLoading&&!xt.data||St.isLoading&&!St.data||!!P&&Ct.isLoading&&!Ct.data||!!P&&wt.isLoading&&!wt.data,Pt=!Nt&&(xt.isLoading||St.isLoading||Ct.isLoading||wt.isLoading),Ft=xt.data?.automations??[],It=P?Ct.data?.automations??[]:Ft,Lt=(0,Q.useMemo)(()=>an(St.data?.runs??[]),[St.data?.runs]),Rt=(0,Q.useMemo)(()=>P?an(wt.data?.runs??[]):Lt,[wt.data?.runs,P,Lt]),zt=(0,Q.useMemo)(()=>Ft.filter(e=>!Bt(e)),[Ft]),Ht=(0,Q.useMemo)(()=>It.filter(Bt),[It]),Wt=(0,Q.useMemo)(()=>[...zt,...Ht],[Ht,zt]),qt=(0,Q.useMemo)(()=>new Set(Ht.map(e=>e.id)),[Ht]),Jt=(0,Q.useMemo)(()=>Lt.filter(e=>!qt.has(e.automationId)),[Lt,qt]),Yt=(0,Q.useMemo)(()=>Rt.filter(e=>qt.has(e.automationId)),[Rt,qt]),Xt=(0,Q.useMemo)(()=>P?[...Lt,...Yt]:Lt,[P,Lt,Yt]),Zt=(0,Q.useMemo)(()=>Ot.data?.run?.id===Ae?Ot.data.run:Xt.find(e=>e.id===Ae)??Et.data?.runs.find(e=>e.id===Ae)??null,[Xt,Ae,Et.data,Ot.data]),Qt=(0,Q.useMemo)(()=>Wt.find(e=>e.id===Pe)??null,[Wt,Pe]),en=(0,Q.useMemo)(()=>Wt.find(e=>e.id===_e)??null,[Wt,_e]),rn=(0,Q.useMemo)(()=>[...Et.data?.runs??Xt].filter(e=>e.automationId===Pe).sort((e,t)=>t.createdAtMs-e.createdAtMs),[Xt,Pe,Et.data]),sn=Dt.data?.events??[],cn=(0,Q.useMemo)(()=>Jt.filter(e=>!$t(e)&&e.readAtMs==null),[Jt]),ln=zt.reduce((e,t)=>e+(xt.data?.executionSummaries?.[t.id]?.unreadCount??0),0),fn=ae.trim().toLocaleLowerCase(),pn=ie===`system`?Ht:zt,mn=ie===`system`?Yt:Jt,hn=(0,Q.useMemo)(()=>new Set(mn.filter($t).map(e=>e.automationId)),[mn]),_n=(0,Q.useMemo)(()=>pn.filter(e=>L===`attention`&&!nt(e,mn)||L===`running`&&!hn.has(e.id)||L===`active`&&!e.enabled||L===`paused`&&(e.enabled||A(e))||L===`completed`&&!A(e)||z!==`all`&&e.action.kind!==z?!1:!fn||[e.name,nn(e),tn(e,s),ee(e.trigger,s,l,i)].some(e=>e.toLocaleLowerCase().includes(fn))),[l,L,s,i,fn,pn,mn,hn,z]),vn=At.data?.items??[],yn=(0,Q.useMemo)(()=>(jt.data?.items??[]).map(e=>e.task),[jt.data]),Sn=Mt.data?.items??[],Cn=!!en?.management?.editable.includes(`trigger`),wn=[`daily`,`weekly`,`interval`,`cron`].includes(X.triggerMode)&&(![`daily`,`weekly`].includes(X.triggerMode)||/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(X.time))&&(X.triggerMode!==`interval`||k(X.intervalValue,X.intervalUnit)>=6e4)&&(X.triggerMode!==`cron`||!!X.cronExpr.trim()),Tn=Cn?wn:!!X.name.trim()&&(X.triggerMode!==`once`||Number.isFinite(new Date(X.onceAt).getTime())&&(!!en||new Date(X.onceAt).getTime()>Date.now()))&&(![`daily`,`weekly`].includes(X.triggerMode)||/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(X.time))&&(X.triggerMode!==`event`||!!X.eventType.trim()&&Ye(X.eventPayloadMatch))&&(X.actionMode===`task_command`?!!(X.taskId.trim()&&X.agentId.trim()):!!X.instruction.trim()),En=!0;try{[`daily`,`weekly`,`cron`].includes(X.triggerMode)&&Ze(X)}catch{En=!1}let Dn=Tn&&En,On=(0,Q.useMemo)(()=>Vt(s),[s]),kn=(0,Q.useMemo)(()=>zt.filter(e=>nt(e,Jt)),[zt,Jt]),jn=kn.some(e=>{let t=it(e,Jt);return t!==null&&_t[e.id]!==t}),Mn=(0,Q.useCallback)(()=>{yt(e=>{let t={...e};for(let e of kn){let n=it(e,Jt);n&&(t[e.id]=n)}try{window.localStorage.setItem(Gt,JSON.stringify(t))}catch{}return t})},[kn,Jt]);(0,Q.useEffect)(()=>{if(!Pt){if(E){Fe(null);return}if(T){Fe(T);return}if(_n.length===0){Fe(null);return}Pe&&_n.some(e=>e.id===Pe)||Fe(null)}},[T,_n,E,Pt,Pe]);let Nn=(0,Q.useCallback)(async()=>{await Promise.all([xt.mutate(),St.mutate(),Ct.mutate(),wt.mutate(),Et.mutate(),Dt.mutate(),xe(e=>Array.isArray(e)&&e[0]===`automation-navigation-runs`)])},[xt.mutate,Ct.mutate,wt.mutate,Dt.mutate,St.mutate,Et.mutate]),Pn=(0,Q.useCallback)(e=>{if(F){Fe(null),je(null);return}x(t=>{let n=new URLSearchParams(t);return e?n.set(`projectId`,e):n.delete(`projectId`),n.delete(`automation`),n.delete(`run`),n}),Fe(null),je(null)},[F,x]);(0,Q.useEffect)(()=>{F&&(qe(P),De(e=>e.projectId===P?e:{...e,projectId:P}))},[P,F]);let Fn=(0,Q.useCallback)(e=>{if(e===`blank`&&!M){fe(!0);return}if(ve(null),Te(!1),ke(null),ue(e),G(!0),e===`blank`){De({...We,projectId:P});return}Le(``),ze(null),Z(!1),qe(P),et(`new_session`),rt(`attention`)},[P,M]),In=e=>{U(e),De({...e.form,projectId:P}),ve(null),Te(!1),ke(null),ue(`quick`),G(!0)},Ln=(0,Q.useCallback)(e=>{if(e.action.kind===`agent`&&!e.management){J(e);return}De(Ue(e)),ve(e.id),Te(!1),Fe(null),ue(`blank`),G(!0)},[]),Rn=(0,Q.useCallback)(()=>{Re&&(De({...Ue(Re.automation),projectId:Ke,conversationMode:$e,notificationPolicy:tt}),ve(null),Te(!0),ue(`blank`))},[Re,$e,tt,Ke]),zn=(0,Q.useCallback)(async()=>{mt(!0),ke(null);try{await Nn()}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{mt(!1)}},[s.feedback.actionFailed,Nn]);(0,Q.useEffect)(()=>{let e=Wt.find(e=>e.id===T);!e||!Bt(e)||ie===`system`||x(e=>{let t=new URLSearchParams(e);return t.set(`ownership`,`system`),t},{replace:!0})},[T,Wt,ie,x]),(0,Q.useEffect)(()=>{j===`create`&&(Fn(`blank`),M&&De(e=>({...e,actionMode:`task_command`,taskId:M,safetyMode:`auto_apply`})),x(e=>{let t=new URLSearchParams(e);return t.delete(`action`),t.delete(`taskId`),t},{replace:!0}))},[j,Fn,x,M]),(0,Q.useEffect)(()=>{if(!O)return;let e=`${i}:${te?`auto`:`seed`}:${O}`;ne.current!==e&&(ne.current=e,Le(O),ze(null),Z(!1),qe(P),ue(`draft`),G(!0),x(e=>{let t=new URLSearchParams(e);return t.delete(`draft`),t.delete(`autogenerate`),t},{replace:!0}),te&&(ke(null),Ve(!0),Y.draft({prompt:O,language:i}).then(e=>{ze(e.draft),Z(!1)}).catch(e=>{ke(e instanceof Error?e.message:String(e))}).finally(()=>{Ve(!1)})))},[te,O,i,P,x]);let Bn=(0,Q.useCallback)(e=>{let t=Lt.find(t=>t.id===e)??Et.data?.runs.find(t=>t.id===e);if(!t||$t(t)||t.readAtMs!=null)return;let n=Date.now();St.mutate(t=>t&&{...t,runs:t.runs.map(t=>t.id===e?{...t,readAtMs:n}:t)},!1),Et.mutate(t=>t&&{...t,runs:t.runs.map(t=>t.id===e?{...t,readAtMs:n}:t)},!1),Y.markRunRead(e).catch(e=>{ke(e instanceof Error?e.message:String(e)),St.mutate(),Et.mutate()})},[Lt,St.mutate,Et.data,Et.mutate]),Vn=(0,Q.useCallback)(e=>{Bn(e),je(e),Ne(!0),x(t=>{let n=new URLSearchParams(t);return n.set(`run`,e),n},{replace:!0})},[Bn,x]),Hn=(0,Q.useCallback)(e=>{Fe(e),je(null),Ne(!1),x(t=>{let n=new URLSearchParams(t);n.set(`automation`,e);for(let e of[`new`,`setupChat`,`chatDraft`,`run`,`view`])n.delete(e);return n})},[x]),Un=(0,Q.useCallback)(e=>{Ne(!1),x(t=>{let n=new URLSearchParams(t);n.set(`automation`,e.automationId),n.set(`run`,e.id),n.set(`view`,`execution`);for(let e of[`new`,`setupChat`,`chatDraft`])n.delete(e);return n})},[x]);(0,Q.useEffect)(()=>{je(C||null),Ne(!!C&&!w)},[w,C]),(0,Q.useEffect)(()=>{C&&!w&&Bn(C)},[w,C,Bn]),(0,Q.useEffect)(()=>{ot(null),dt(!1)},[Ae]);async function Wn(){if(ke(null),X.triggerMode===`once`&&!en&&new Date(X.onceAt).getTime()<=Date.now()){ke(s.experience.futureTime);return}if(!(!Dn||ht)&&!(K===`quick`&&ce?.requiresProject&&!X.projectId)){if(ye&&Re){gt(`draft:edit`);try{let e=Qe(X),{simulation:t}=await Y.simulate(e);ze({...Re,automation:e,simulation:t}),qe(X.projectId),et(X.conversationMode),rt(X.notificationPolicy),Z(!1),Te(!1),ue(`draft`)}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{gt(null)}return}if(en){let e=en.id;await Gn(`automation:${e}:edit`,()=>Y.update(e,{...Cn?{trigger:Ge(en,{...X,instruction:`managed`}).trigger}:Ge(en,X),expectedRevision:en.updatedAtMs}))&&(G(!1),ve(null),Fe(e));return}gt(`automation:create`);try{let e=Qe(X),{automation:t}=await Y.create(e);De(We),G(!1),x(e=>{let n=new URLSearchParams(e);return n.delete(`status`),n.delete(`q`),n.delete(`run`),n.delete(`new`),n.set(`automation`,t.id),F||(t.projectId?n.set(`projectId`,t.projectId):n.delete(`projectId`)),n}),await Nn(),Fe(t.id)}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{gt(null)}}}async function Gn(e,t){ke(null),gt(e);try{return await t(),await Nn(),!0}catch(e){let t=e instanceof Error?e.message:String(e);return ke(t),!1}finally{gt(null)}}async function Kn(){await Gn(`runs:read-all`,()=>Y.markAllRunsRead(P||void 0))}async function qn(){let e=Ie.trim();if(e){ke(null),Ve(!0);try{let t=await Y.draft({prompt:e,language:i});ze(t.draft),Z(!1)}catch(e){ke(e instanceof Error?e.message:String(e))}finally{Ve(!1)}}}async function Jn(){if(!Re)return;let e=``,t=``;await Gn(`draft:publish`,async()=>{let{automation:n}=await Y.create({...Re.automation,...Ke?{projectId:Ke}:{projectId:void 0},conversationMode:$e,delivery:{...Re.automation.delivery,notificationPolicy:tt}});ze(null),Le(``),Z(!1),G(!1),B(`all`),H(``),e=n.id,t=n.projectId??``})&&e&&(Pn(t),Hn(e))}async function Yn(){if(!Re)return;let e=``,t=``,n=``;await Gn(`draft:test`,async()=>{let{automation:r}=await Y.create({...Re.automation,...Ke?{projectId:Ke}:{projectId:void 0},conversationMode:$e,delivery:{...Re.automation.delivery,notificationPolicy:tt},enabled:!1}),{run:i}=await Y.runNow(r.id);e=r.id,t=r.projectId??``,n=i.id,ze(null),Le(``),Z(!1),G(!1),B(`all`),H(``)})&&e&&n&&(Pn(t),Hn(e),Vn(n))}async function Xn(e){ke(null),lt(!0),ot(null),dt(!1);try{let t=await Y.repairDraft(e.id,{language:i});ot(t.repair)}catch(e){ke(e instanceof Error?e.message:String(e))}finally{lt(!1)}}async function Zn(e){at&&await Gn(`run:${e.id}:repair`,async()=>{await Y.update(e.automationId,at.patch),ot(null),dt(!1)})}let Qn=(0,Q.useMemo)(()=>(0,$.jsx)(Ee,{className:`size-9 shrink-0 p-0`,loading:ft,label:s.refresh,onClick:zn}),[s.refresh,ft,zn]);return(0,Q.useLayoutEffect)(()=>{if(!t)return u({startExtra:null,main:(0,$.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:c}),end:Qn}),()=>y()},[y,t,Qn,c,u]),(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:q(`flex min-h-0 w-full flex-1 flex-col gap-4`,t?`py-1`:`px-4 pt-3 sm:px-9 lg:pt-4 xl:px-10`,!t&&(S?`overflow-y-auto`:`overflow-hidden`)),children:[t?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 rounded-xl bg-surface-base px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(he,{className:`size-4 text-accent-fg`,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n||s.title})]}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:r||s.subtitle})]}),Qn]}):null,Oe||xt.error||St.error||Ct.error||wt.error?(0,$.jsx)(`div`,{role:`alert`,className:`rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-700 dark:text-red-300`,children:Oe||s.feedback.actionFailed}):null,S?Nt?(0,$.jsx)(on,{}):(0,$.jsx)(gn,{runs:mn,ownership:ie,labels:s,language:i,unreadCount:ie===`user`?cn.length:0,loading:Pt||ft,onOwnershipChange:V,onRefresh:zn,onSelectRun:Vn}):(0,$.jsxs)($.Fragment,{children:[!Nt&&jn&&ie===`user`?(0,$.jsxs)(`div`,{className:`flex items-center rounded-lg border border-red-500/20 bg-red-500/5`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>B(`attention`),className:`flex min-w-0 flex-1 items-center gap-3 rounded-l-lg px-4 py-3 text-left focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(re,{className:`size-4 shrink-0 text-red-700 dark:text-red-300`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 text-sm text-fg`,children:[(0,$.jsxs)(`span`,{className:`font-medium`,children:[s.experience.executionIssues,` · `,kn.length]}),(0,$.jsx)(`span`,{className:`ml-2 text-fg-muted`,children:s.experience.issuesDescription})]})]}),(0,$.jsx)(`button`,{type:`button`,onClick:Mn,className:`mr-2 rounded-md p-2 text-fg-muted hover:bg-red-500/10 hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":s.close,title:s.close,children:(0,$.jsx)(me,{className:`size-4`,"aria-hidden":!0})})]}):null,Nt?(0,$.jsx)(on,{}):(0,$.jsxs)(vt,{language:i,busy:Pt,children:[(0,$.jsxs)(`aside`,{className:q(`max-h-[28vh] min-h-0 min-w-0 flex-col overflow-hidden rounded-xl bg-surface-inset md:flex md:h-full md:max-h-none`,w?`hidden`:`flex`),children:[(0,$.jsxs)(`div`,{className:`shrink-0 p-3`,children:[(0,$.jsx)(Tt,{language:i,labels:s,filter:L,ownership:ie,source:z,projectId:P,projects:Sn,projectLocked:F,query:ae,unreadCount:ie===`user`?ln:0,markReadBusy:ht===`runs:read-all`,onFilter:B,onOwnership:V,onSource:oe,onProject:Pn,onQuery:H,onClear:()=>{se(),V(`user`),F||Pn(``)},onMarkAllRead:()=>void Kn()}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>fe(!0),className:`mt-2 flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(W,{className:`size-4`,"aria-hidden":!0}),i===`zh`?`新建任务`:`New task`]})]}),T&&!_n.some(e=>e.id===T)?(0,$.jsxs)(`p`,{role:`status`,className:`px-3 pb-2 text-xs text-fg-muted`,children:[i===`zh`?`当前自动化不在筛选结果中。`:`The selected automation is outside these filters.`,(0,$.jsx)(`button`,{type:`button`,className:`ml-1 text-accent-fg underline`,onClick:se,children:i===`zh`?`清除筛选`:`Clear filters`})]}):null,(0,$.jsx)(pt,{automations:_n,runs:mn,labels:s,cronLabels:l,language:i,selectedAutomationId:E?null:Pe,selectedRunId:w?C:void 0,selectedRun:w?Zt:null,projectId:P||void 0,executionSummaries:(ie===`system`&&P?Ct.data:xt.data)?.executionSummaries,onSelectRun:Un,onOpenDetails:Hn,busy:ht!==null,onEdit:Ln,onAction:Gn})]}),w&&T?(0,$.jsx)(ct,{automationId:T,runId:C,projectId:P||void 0,language:i,onBack:()=>Hn(T),onDetails:()=>Ne(!0),onConfigure:e=>{Y.openConfiguration({automationId:e.automationId,runId:e.id}).then(({conversationId:t})=>{Ne(!1),x(n=>{let r=new URLSearchParams(n);return r.set(`automation`,e.automationId),r.set(`setupChat`,t),r.delete(`run`),r.delete(`view`),r})}).catch(e=>ke(e instanceof Error?e.message:String(e)))}},`${T}:${C}`):!E&&Qt&&!Qt.management&&Qt.action.kind!==`system`?(0,$.jsx)(bt,{automation:Qt,conversationId:D,runs:rn,language:i,onSelectRun:Vn},Qt.id):D?(0,$.jsx)(bt,{conversationId:D,runs:[],language:i,onSelectRun:Vn,onConfigured:Hn},D):!E&&Qt?(0,$.jsx)(xn,{automation:Qt,runs:rn,runsLoading:Et.isLoading,runsError:Et.error?s.feedback.actionFailed:void 0,labels:s,cronLabels:l,language:i,projects:Sn,agentOptions:vn,defaultAgentId:At.data?.defaultId,busyAction:ht,onEdit:Ln,onSelectRun:Vn,onAction:Gn},Qt.id):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto`,children:(0,$.jsx)(kt,{language:i,projectId:P,onOpenConversation:e=>{let t=new URL(e,window.location.origin),n=t.searchParams.get(`setupChat`);x(e=>{let r=new URLSearchParams(e);r.set(`new`,`1`),r.delete(`automation`),r.set(`setupChat`,n);let i=t.searchParams.get(`chatDraft`);return i?r.set(`chatDraft`,i):r.delete(`chatDraft`),r})}},P)})]})]})]}),de?(0,$.jsx)(Xe,{language:i,projectId:P,onClose:()=>fe(!1),onCreated:e=>{V(`user`),se(),Hn(e.id)}}):null,pe?(0,$.jsx)(Xe,{automation:pe,language:i,onClose:()=>J(null)}):null,(0,$.jsx)(v,{open:le,onOpenChange:e=>{G(e),e||(ve(null),Te(!1))},children:(0,$.jsxs)(h,{children:[(0,$.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 z-65 bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-66 flex h-[min(760px,calc(100vh-2rem))] w-[min(100%-2rem,64rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge px-5 py-4`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(_,{className:`text-base font-semibold text-fg`,children:K===`draft`?s.draft.title:en?s.editTitle:ye?s.draft.editTitle:s.createTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:K===`draft`?s.draft.subtitle:s.form.createFlowHint})]}),(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,"aria-label":s.close,children:(0,$.jsx)(me,{className:`size-4`})})})]}),Oe?(0,$.jsx)(`p`,{role:`alert`,className:`px-5 py-2 text-sm text-red-700 dark:text-red-300`,children:Oe}):null,K===`draft`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,$.jsx)(dn,{labels:s,prompt:Ie,draft:Re,loading:Be,approved:He,publishBusy:ht===`draft:publish`,testBusy:ht===`draft:test`,templates:On,projects:Sn,projectId:Ke,conversationMode:$e,notificationPolicy:tt,onPromptChange:Le,onGenerate:qn,onEdit:Rn,onPublish:Jn,onTest:Yn,onProjectChange:qe,onConversationModeChange:et,onNotificationPolicyChange:rt,projectLocked:F,onApprovedChange:Z,onDiscard:()=>{ze(null),Z(!1)},onTemplateSelect:e=>{In(e),De({...e.form,projectId:Ke})},onOpenAdvanced:()=>{De({...We,projectId:Ke,conversationMode:$e,notificationPolicy:tt}),ue(`blank`)}})}):(0,$.jsxs)($.Fragment,{children:[Cn?(0,$.jsx)(un,{form:X,setForm:De,labels:s}):K===`quick`&&ce?(0,$.jsx)(Ut,{form:X,setForm:De,labels:s,projects:Sn,projectLocked:F,source:ce.source,requiresProject:ce.requiresProject}):(0,$.jsx)(An,{form:X,labels:s,setForm:De,projects:Sn,agentOptions:vn,agentsLoading:At.isLoading,defaultAgentId:At.data?.defaultId??``,taskOptions:yn,tasksLoading:jt.isLoading,language:i,projectLocked:F}),Cn||K===`quick`?(0,$.jsx)(`div`,{className:`max-h-40 shrink-0 overflow-y-auto px-5 pb-4`,children:(0,$.jsx)(Je,{form:X,onChange:e=>De(t=>({...t,...e})),language:i})}):null,(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-edge px-5 py-4`,children:[K===`quick`?(0,$.jsx)(Ce,{variant:`ghost`,onClick:()=>ue(`blank`),children:s.draft.advancedCreate}):null,ye?(0,$.jsx)(Ce,{variant:`ghost`,onClick:()=>{Te(!1),ue(`draft`)},children:s.cancel}):(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,children:s.cancel})}),(0,$.jsx)(Ce,{variant:`primary`,onClick:Wn,disabled:!Dn||!!ht||K===`quick`&&!!ce?.requiresProject&&!X.projectId,children:ht===`automation:create`||ht===`draft:edit`||en&&ht===`automation:${en.id}:edit`?s.feedback.working:en||ye?s.save:s.experience.createEnabled})]})]})]})]})}),(0,$.jsx)(v,{open:Me&&!!Zt,onOpenChange:e=>{Ne(e),!(e||w)&&x(e=>{let t=new URLSearchParams(e);return t.delete(`run`),t},{replace:!0})},children:(0,$.jsxs)(h,{children:[(0,$.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 z-65 bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-66 flex h-[min(85vh,40rem)] w-[min(100%-2rem,32rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,$.jsx)(_,{className:`truncate text-base font-semibold text-fg`,children:Zt?.automationName??s.dashboard.result}),(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,"aria-label":s.close,children:(0,$.jsx)(me,{className:`size-4`})})})]}),(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,$.jsx)(bn,{className:`rounded-none border-0`,run:Zt,events:sn,labels:s,cronLabels:l,language:i,loading:Dt.isLoading,repairDraft:at,repairLoading:st,repairApproved:ut,busyAction:ht,onRepairApprovedChange:dt,onSuggestRepair:Xn,onApplyRepair:Zn})})]})]})})]})}function un(e){let t=(0,ot.c)(48),{form:n,setForm:r,labels:i}=e,a;t[0]===r?a=t[1]:(a=e=>r(t=>({...t,...e})),t[0]=r,t[1]=a);let o=a,s;t[2]===i.form.trigger?s=t[3]:(s=(0,$.jsx)(Nn,{title:i.form.trigger}),t[2]=i.form.trigger,t[3]=s);let c;t[4]===o?c=t[5]:(c=e=>o({triggerMode:e.target.value}),t[4]=o,t[5]=c);let l;t[6]===i.trigger.daily?l=t[7]:(l=(0,$.jsx)(L,{value:`daily`,children:i.trigger.daily}),t[6]=i.trigger.daily,t[7]=l);let u;t[8]===i.trigger.weekly?u=t[9]:(u=(0,$.jsx)(L,{value:`weekly`,children:i.trigger.weekly}),t[8]=i.trigger.weekly,t[9]=u);let d;t[10]===i.trigger.interval?d=t[11]:(d=(0,$.jsx)(L,{value:`interval`,children:i.trigger.interval}),t[10]=i.trigger.interval,t[11]=d);let f;t[12]===i.trigger.customCron?f=t[13]:(f=(0,$.jsx)(L,{value:`cron`,children:i.trigger.customCron}),t[12]=i.trigger.customCron,t[13]=f);let p;t[14]!==n.triggerMode||t[15]!==i.form.trigger||t[16]!==c||t[17]!==l||t[18]!==u||t[19]!==d||t[20]!==f?(p=(0,$.jsxs)(I,{"aria-label":i.form.trigger,className:Mn,value:n.triggerMode,onChange:c,children:[l,u,d,f]}),t[14]=n.triggerMode,t[15]=i.form.trigger,t[16]=c,t[17]=l,t[18]=u,t[19]=d,t[20]=f,t[21]=p):p=t[21];let m;t[22]!==n.time||t[23]!==n.triggerMode||t[24]!==n.weekday||t[25]!==i.form.day||t[26]!==i.form.time||t[27]!==i.weekdays||t[28]!==o?(m=n.triggerMode===`daily`||n.triggerMode===`weekly`?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[(0,$.jsx)(Z,{label:i.form.time,children:(0,$.jsx)($e,{value:n.time,onChange:e=>o({time:e}),ariaLabel:i.form.time})}),n.triggerMode===`weekly`?(0,$.jsx)(Z,{label:i.form.day,children:(0,$.jsxs)(I,{className:Mn,value:n.weekday,onChange:e=>o({weekday:e.target.value}),children:[(0,$.jsx)(L,{value:`1`,children:i.weekdays.monday}),(0,$.jsx)(L,{value:`2`,children:i.weekdays.tuesday}),(0,$.jsx)(L,{value:`3`,children:i.weekdays.wednesday}),(0,$.jsx)(L,{value:`4`,children:i.weekdays.thursday}),(0,$.jsx)(L,{value:`5`,children:i.weekdays.friday}),(0,$.jsx)(L,{value:`6`,children:i.weekdays.saturday}),(0,$.jsx)(L,{value:`0`,children:i.weekdays.sunday})]})}):null]}):null,t[22]=n.time,t[23]=n.triggerMode,t[24]=n.weekday,t[25]=i.form.day,t[26]=i.form.time,t[27]=i.weekdays,t[28]=o,t[29]=m):m=t[29];let h;t[30]!==n.intervalUnit||t[31]!==n.intervalValue||t[32]!==n.triggerMode||t[33]!==i.form.intervalEvery||t[34]!==i.form.intervalUnits||t[35]!==o?(h=n.triggerMode===`interval`?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-[minmax(0,1fr)_10rem]`,children:[(0,$.jsx)(Z,{label:i.form.intervalEvery,children:(0,$.jsx)(`input`,{className:Mn,type:`number`,min:`1`,value:n.intervalValue,onChange:e=>o({intervalValue:e.target.value})})}),(0,$.jsx)(Z,{label:i.form.intervalUnits.minute,children:(0,$.jsxs)(I,{className:Mn,value:n.intervalUnit,onChange:e=>o({intervalUnit:e.target.value}),children:[(0,$.jsx)(L,{value:`minute`,children:i.form.intervalUnits.minute}),(0,$.jsx)(L,{value:`hour`,children:i.form.intervalUnits.hour}),(0,$.jsx)(L,{value:`day`,children:i.form.intervalUnits.day}),(0,$.jsx)(L,{value:`week`,children:i.form.intervalUnits.week})]})})]}):null,t[30]=n.intervalUnit,t[31]=n.intervalValue,t[32]=n.triggerMode,t[33]=i.form.intervalEvery,t[34]=i.form.intervalUnits,t[35]=o,t[36]=h):h=t[36];let g;t[37]!==n.cronExpr||t[38]!==n.triggerMode||t[39]!==i.form.expression||t[40]!==o?(g=n.triggerMode===`cron`?(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsx)(Z,{label:i.form.expression,children:(0,$.jsx)(`input`,{className:Mn,value:n.cronExpr,onChange:e=>o({cronExpr:e.target.value})})})}):null,t[37]=n.cronExpr,t[38]=n.triggerMode,t[39]=i.form.expression,t[40]=o,t[41]=g):g=t[41];let _;return t[42]!==h||t[43]!==g||t[44]!==s||t[45]!==p||t[46]!==m?(_=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:[s,p,m,h,g]}),t[42]=h,t[43]=g,t[44]=s,t[45]=p,t[46]=m,t[47]=_):_=t[47],_}function dn(e){let t=(0,ot.c)(110),{labels:n,prompt:r,draft:i,loading:a,approved:o,publishBusy:s,testBusy:c,templates:l,projects:u,projectId:d,conversationMode:f,notificationPolicy:p,onPromptChange:m,onGenerate:h,onEdit:g,onPublish:_,onTest:v,onProjectChange:y,onConversationModeChange:b,onNotificationPolicyChange:x,onApprovedChange:S,onDiscard:C,onTemplateSelect:ee,onOpenAdvanced:w,projectLocked:T}=e,E=s!==void 0&&s,D=c!==void 0&&c,O=T!==void 0&&T,k=!!(i&&i.simulation.requiredConfirmations.length>0),A;t[0]!==i||t[1]!==n.draft.advancedCreate||t[2]!==n.draft.suggestions||t[3]!==n.draft.suggestionsDescription||t[4]!==n.experience||t[5]!==w||t[6]!==ee||t[7]!==l?(A=i?null:(0,$.jsxs)(`div`,{className:`mb-5 border-b border-edge-subtle pb-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:n.draft.suggestions}),(0,$.jsx)(`div`,{className:`mt-1 text-xs text-fg-muted`,children:n.draft.suggestionsDescription})]}),(0,$.jsx)(Ce,{variant:`ghost`,onClick:w,children:n.draft.advancedCreate})]}),(0,$.jsx)(`div`,{className:`mt-3 grid gap-2 sm:grid-cols-2`,children:l.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`focus-visible:ring-2 focus-visible:ring-accent rounded-lg bg-surface-panel p-3 text-left hover:bg-surface-hover`,onClick:()=>ee(e),children:[(0,$.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`div`,{className:`mt-1 line-clamp-2 text-xs text-fg-muted`,children:e.description}),(0,$.jsxs)(`div`,{className:`mt-2 text-xs text-fg-muted`,children:[n.experience.source,`: `,e.source]})]},e.name))})]}),t[0]=i,t[1]=n.draft.advancedCreate,t[2]=n.draft.suggestions,t[3]=n.draft.suggestionsDescription,t[4]=n.experience,t[5]=w,t[6]=ee,t[7]=l,t[8]=A):A=t[8];let j;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(de,{className:`size-4 text-accent`}),t[9]=j):j=t[9];let M;t[10]===n.draft.title?M=t[11]:(M=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-semibold text-fg`,children:[j,n.draft.title]}),t[10]=n.draft.title,t[11]=M);let N;t[12]===n.draft.subtitle?N=t[13]:(N=(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:n.draft.subtitle}),t[12]=n.draft.subtitle,t[13]=N);let P;t[14]!==M||t[15]!==N?(P=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[M,N]}),t[14]=M,t[15]=N,t[16]=P):P=t[16];let F;t[17]!==a||t[18]!==r?(F=a||!r.trim(),t[17]=a,t[18]=r,t[19]=F):F=t[19];let te;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,$.jsx)(de,{className:`size-4`}),t[20]=te):te=t[20];let ne=a?n.draft.generating:n.draft.generate,re;t[21]!==h||t[22]!==ne||t[23]!==F?(re=(0,$.jsxs)(Ce,{variant:`primary`,onClick:h,disabled:F,children:[te,ne]}),t[21]=h,t[22]=ne,t[23]=F,t[24]=re):re=t[24];let ie;t[25]!==re||t[26]!==P?(ie=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[P,re]}),t[25]=re,t[26]=P,t[27]=ie):ie=t[27];let R;t[28]===m?R=t[29]:(R=e=>m(e.target.value),t[28]=m,t[29]=R);let z;t[30]!==n.draft.placeholder||t[31]!==n.draft.title||t[32]!==r||t[33]!==R?(z=(0,$.jsx)(`textarea`,{"aria-label":n.draft.title,className:`mt-4 min-h-20 w-full resize-y rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg outline-none focus:border-accent`,value:r,onChange:R,placeholder:n.draft.placeholder}),t[30]=n.draft.placeholder,t[31]=n.draft.title,t[32]=r,t[33]=R,t[34]=z):z=t[34];let ae=O?`sm:grid-cols-2`:`sm:grid-cols-3`,B;t[35]===ae?B=t[36]:(B=q(`mt-3 grid gap-3`,ae),t[35]=ae,t[36]=B);let V;t[37]!==n.draft.noProject||t[38]!==n.draft.project||t[39]!==y||t[40]!==d||t[41]!==O||t[42]!==u?(V=O?null:(0,$.jsx)(Z,{label:n.draft.project,children:(0,$.jsxs)(I,{className:Mn,value:d,onChange:e=>y(e.target.value),children:[(0,$.jsx)(L,{value:``,children:n.draft.noProject}),u.map(fn)]})}),t[37]=n.draft.noProject,t[38]=n.draft.project,t[39]=y,t[40]=d,t[41]=O,t[42]=u,t[43]=V):V=t[43];let H;t[44]===b?H=t[45]:(H=e=>b(e.target.value),t[44]=b,t[45]=H);let oe;t[46]===n.draft.newConversation?oe=t[47]:(oe=(0,$.jsx)(L,{value:`new_session`,children:n.draft.newConversation}),t[46]=n.draft.newConversation,t[47]=oe);let se;t[48]===n.draft.continuousConversation?se=t[49]:(se=(0,$.jsx)(L,{value:`continuous`,children:n.draft.continuousConversation}),t[48]=n.draft.continuousConversation,t[49]=se);let ce;t[50]!==f||t[51]!==H||t[52]!==oe||t[53]!==se?(ce=(0,$.jsxs)(I,{className:Mn,value:f,onChange:H,children:[oe,se]}),t[50]=f,t[51]=H,t[52]=oe,t[53]=se,t[54]=ce):ce=t[54];let W;t[55]!==n.draft.conversation||t[56]!==ce?(W=(0,$.jsx)(Z,{label:n.draft.conversation,children:ce}),t[55]=n.draft.conversation,t[56]=ce,t[57]=W):W=t[57];let G;t[58]===x?G=t[59]:(G=e=>x(e.target.value),t[58]=x,t[59]=G);let K;t[60]===n.draft.notifyAttention?K=t[61]:(K=(0,$.jsx)(L,{value:`attention`,children:n.draft.notifyAttention}),t[60]=n.draft.notifyAttention,t[61]=K);let ue;t[62]===n.draft.notifyAll?ue=t[63]:(ue=(0,$.jsx)(L,{value:`all`,children:n.draft.notifyAll}),t[62]=n.draft.notifyAll,t[63]=ue);let fe;t[64]===n.draft.notifyNone?fe=t[65]:(fe=(0,$.jsx)(L,{value:`none`,children:n.draft.notifyNone}),t[64]=n.draft.notifyNone,t[65]=fe);let pe;t[66]!==p||t[67]!==G||t[68]!==K||t[69]!==ue||t[70]!==fe?(pe=(0,$.jsxs)(I,{className:Mn,value:p,onChange:G,children:[K,ue,fe]}),t[66]=p,t[67]=G,t[68]=K,t[69]=ue,t[70]=fe,t[71]=pe):pe=t[71];let me;t[72]!==n.draft.notifications||t[73]!==pe?(me=(0,$.jsx)(Z,{label:n.draft.notifications,children:pe}),t[72]=n.draft.notifications,t[73]=pe,t[74]=me):me=t[74];let he;t[75]!==B||t[76]!==V||t[77]!==W||t[78]!==me?(he=(0,$.jsxs)(`div`,{className:B,children:[V,W,me]}),t[75]=B,t[76]=V,t[77]=W,t[78]=me,t[79]=he):he=t[79];let J;t[80]!==o||t[81]!==i||t[82]!==n.draft.approval||t[83]!==n.draft.assumptions||t[84]!==n.draft.discard||t[85]!==n.draft.edit||t[86]!==n.draft.publish||t[87]!==n.draft.review||t[88]!==n.draft.risks||t[89]!==n.draft.safety||t[90]!==n.draft.testOnce||t[91]!==n.draft.testing||t[92]!==n.feedback||t[93]!==n.info||t[94]!==n.none||t[95]!==S||t[96]!==C||t[97]!==g||t[98]!==_||t[99]!==v||t[100]!==E||t[101]!==k||t[102]!==D?(J=i?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 rounded-lg bg-surface-base p-4 lg:grid-cols-[1fr_1fr]`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:i.automation.name}),i.automation.description?(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:i.automation.description}):null,(0,$.jsxs)(`div`,{className:`mt-3 grid gap-2 text-sm`,children:[(0,$.jsx)(On,{label:n.info.when,value:i.simulation.triggerSummary}),(0,$.jsx)(On,{label:n.info.run,value:i.simulation.actionSummary})]})]}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-xs font-semibold uppercase text-fg-muted`,children:n.draft.review}),(0,$.jsx)(pn,{title:n.draft.safety,items:[...i.simulation.safetyNotes,...i.simulation.requiredConfirmations],empty:n.none}),(0,$.jsx)(pn,{title:n.draft.assumptions,items:i.assumptions,empty:n.none}),(0,$.jsx)(pn,{title:n.draft.risks,items:i.risks,empty:n.none}),k?(0,$.jsxs)(`label`,{className:`mt-4 flex items-start gap-2 text-sm text-fg`,children:[(0,$.jsx)(`input`,{className:`mt-1`,type:`checkbox`,checked:o,onChange:e=>S(e.target.checked)}),(0,$.jsx)(`span`,{children:n.draft.approval})]}):null,(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Ce,{variant:`ghost`,onClick:C,children:n.draft.discard}),(0,$.jsxs)(Ce,{variant:`secondary`,onClick:g,children:[(0,$.jsx)(U,{className:`size-4`}),n.draft.edit]}),(0,$.jsxs)(Ce,{variant:`secondary`,onClick:v,disabled:D||E||k&&!o,children:[(0,$.jsx)(le,{className:`size-4`}),D?n.draft.testing:n.draft.testOnce]}),(0,$.jsx)(Ce,{variant:`primary`,onClick:_,disabled:E||k&&!o,children:E?n.feedback.working:n.draft.publish})]})]})]}):null,t[80]=o,t[81]=i,t[82]=n.draft.approval,t[83]=n.draft.assumptions,t[84]=n.draft.discard,t[85]=n.draft.edit,t[86]=n.draft.publish,t[87]=n.draft.review,t[88]=n.draft.risks,t[89]=n.draft.safety,t[90]=n.draft.testOnce,t[91]=n.draft.testing,t[92]=n.feedback,t[93]=n.info,t[94]=n.none,t[95]=S,t[96]=C,t[97]=g,t[98]=_,t[99]=v,t[100]=E,t[101]=k,t[102]=D,t[103]=J):J=t[103];let ge;return t[104]!==ie||t[105]!==z||t[106]!==he||t[107]!==J||t[108]!==A?(ge=(0,$.jsxs)(`section`,{className:`rounded-lg bg-surface-base p-4`,children:[A,ie,z,he,J]}),t[104]=ie,t[105]=z,t[106]=he,t[107]=J,t[108]=A,t[109]=ge):ge=t[109],ge}function fn(e){return(0,$.jsx)(L,{value:e.id,children:e.name},e.id)}function pn(e){let t=(0,ot.c)(10),{title:n,items:r,empty:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`div`,{className:`text-xs font-medium text-fg-muted`,children:n}),t[0]=n,t[1]=a);let o;t[2]!==i||t[3]!==r?(o=r.length>0?r.map(mn):(0,$.jsx)(`li`,{className:`text-fg-muted`,children:i}),t[2]=i,t[3]=r,t[4]=o):o=t[4];let s;t[5]===o?s=t[6]:(s=(0,$.jsx)(`ul`,{className:`mt-1 space-y-1 text-sm text-fg`,children:o}),t[5]=o,t[6]=s);let c;return t[7]!==a||t[8]!==s?(c=(0,$.jsxs)(`div`,{className:`mt-3`,children:[a,s]}),t[7]=a,t[8]=s,t[9]=c):c=t[9],c}function mn(e){return(0,$.jsxs)(`li`,{children:[`- `,e]},e)}function hn(e){let t=(0,ot.c)(25),{icon:n,label:r,value:i,tone:a,active:o,onClick:s}=e,c=a===void 0?`default`:a,l=c===`danger`?`text-red-600 dark:text-red-300`:`text-fg-subtle`,u;t[0]===l?u=t[1]:(u=q(`shrink-0`,l),t[0]=l,t[1]=u);let d;t[2]!==n||t[3]!==u?(d=(0,$.jsx)(`span`,{className:u,children:n}),t[2]=n,t[3]=u,t[4]=d):d=t[4];let f;t[5]===r?f=t[6]:(f=(0,$.jsx)(`span`,{className:`truncate text-xs font-medium text-fg-muted`,children:r}),t[5]=r,t[6]=f);let p=c===`danger`?`text-red-700 dark:text-red-300`:`text-fg`,m;t[7]===p?m=t[8]:(m=q(`ml-auto truncate text-sm font-semibold tabular-nums`,p),t[7]=p,t[8]=m);let h;t[9]!==m||t[10]!==i?(h=(0,$.jsx)(`span`,{className:m,children:i}),t[9]=m,t[10]=i,t[11]=h):h=t[11];let g;t[12]!==d||t[13]!==f||t[14]!==h?(g=(0,$.jsxs)($.Fragment,{children:[d,f,h]}),t[12]=d,t[13]=f,t[14]=h,t[15]=g):g=t[15];let _=g,v=o&&`bg-accent/8`,y=s&&`cursor-pointer hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,b;t[16]!==v||t[17]!==y?(b=q(`flex min-h-12 min-w-0 items-center gap-2.5 bg-surface-base px-3 py-2.5 text-left transition-colors`,v,y),t[16]=v,t[17]=y,t[18]=b):b=t[18];let x=b,S=`${r}: ${i}`,C;return t[19]!==S||t[20]!==o||t[21]!==x||t[22]!==_||t[23]!==s?(C=s?(0,$.jsx)(`button`,{type:`button`,className:x,onClick:s,"aria-label":S,"aria-pressed":o,children:_}):(0,$.jsx)(`div`,{className:x,"aria-label":S,children:_}),t[19]=S,t[20]=o,t[21]=x,t[22]=_,t[23]=s,t[24]=C):C=t[24],C}function gn(e){let t=(0,ot.c)(74),{runs:n,ownership:r,labels:i,language:a,unreadCount:o,loading:s,onOwnershipChange:c,onRefresh:l,onSelectRun:u}=e,d;t[0]===n?d=t[1]:(d=n.filter($t),t[0]=n,t[1]=d);let f=d.length,p;t[2]===n?p=t[3]:(p=n.filter(en),t[2]=n,t[3]=p);let m=p.length,h;t[4]===i.dashboard.activity?h=t[5]:(h=(0,$.jsx)(`h2`,{id:`automation-activity-title`,className:`text-sm font-semibold text-fg`,children:i.dashboard.activity}),t[4]=i.dashboard.activity,t[5]=h);let g;t[6]===i.dashboard.activityDescription?g=t[7]:(g=(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:i.dashboard.activityDescription}),t[6]=i.dashboard.activityDescription,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[h,g]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let v=i.filters.ownership,b=r===`user`&&`bg-surface-base text-fg shadow-sm`,x;t[11]===b?x=t[12]:(x=q(`rounded-md px-2.5 py-1.5 text-xs font-medium text-fg-muted hover:text-fg`,b),t[11]=b,t[12]=x);let S;t[13]===c?S=t[14]:(S=()=>c(`user`),t[13]=c,t[14]=S);let C=r===`user`,ee;t[15]!==i.filters.userManaged||t[16]!==C||t[17]!==x||t[18]!==S?(ee=(0,$.jsx)(`button`,{type:`button`,className:x,onClick:S,"aria-pressed":C,children:i.filters.userManaged}),t[15]=i.filters.userManaged,t[16]=C,t[17]=x,t[18]=S,t[19]=ee):ee=t[19];let w=r===`system`&&`bg-surface-base text-fg shadow-sm`,T;t[20]===w?T=t[21]:(T=q(`rounded-md px-2.5 py-1.5 text-xs font-medium text-fg-muted hover:text-fg`,w),t[20]=w,t[21]=T);let E;t[22]===c?E=t[23]:(E=()=>c(`system`),t[22]=c,t[23]=E);let D=r===`system`,O;t[24]!==i.system.title||t[25]!==T||t[26]!==E||t[27]!==D?(O=(0,$.jsx)(`button`,{type:`button`,className:T,onClick:E,"aria-pressed":D,children:i.system.title}),t[24]=i.system.title,t[25]=T,t[26]=E,t[27]=D,t[28]=O):O=t[28];let k;t[29]!==i.filters.ownership||t[30]!==ee||t[31]!==O?(k=(0,$.jsxs)(X,{className:`flex rounded-lg bg-surface-panel p-0.5`,role:`group`,"aria-label":v,indicatorClassName:`rounded-md bg-surface-base shadow-sm`,children:[ee,O]}),t[29]=i.filters.ownership,t[30]=ee,t[31]=O,t[32]=k):k=t[32];let A;t[33]!==i.refresh||t[34]!==s||t[35]!==l?(A=(0,$.jsx)(Ee,{className:`size-9 shrink-0 p-0`,loading:s,label:i.refresh,onClick:l}),t[33]=i.refresh,t[34]=s,t[35]=l,t[36]=A):A=t[36];let j;t[37]!==k||t[38]!==A?(j=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k,A]}),t[37]=k,t[38]=A,t[39]=j):j=t[39];let M;t[40]!==j||t[41]!==_?(M=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 border-b border-edge-subtle px-4 py-3 sm:px-5`,children:[_,j]}),t[40]=j,t[41]=_,t[42]=M):M=t[42];let N;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(y,{className:`size-4`,"aria-hidden":!0}),t[43]=N):N=t[43];let P=i.metrics.total,F=String(n.length),te;t[44]!==i.metrics.total||t[45]!==F?(te=(0,$.jsx)(hn,{icon:N,label:P,value:F}),t[44]=i.metrics.total,t[45]=F,t[46]=te):te=t[46];let ne;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(le,{className:`size-4`,"aria-hidden":!0}),t[47]=ne):ne=t[47];let I=i.metrics.running,L=String(f),R;t[48]!==i.metrics.running||t[49]!==L?(R=(0,$.jsx)(hn,{icon:ne,label:I,value:L}),t[48]=i.metrics.running,t[49]=L,t[50]=R):R=t[50];let z;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(re,{className:`size-4`,"aria-hidden":!0}),t[51]=z):z=t[51];let ae=i.dashboard.needsAttention,B=String(m),V=m>0?`danger`:`default`,H;t[52]!==i.dashboard.needsAttention||t[53]!==B||t[54]!==V?(H=(0,$.jsx)(hn,{icon:z,label:ae,value:B,tone:V}),t[52]=i.dashboard.needsAttention,t[53]=B,t[54]=V,t[55]=H):H=t[55];let oe;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,$.jsx)(ie,{className:`size-4`,"aria-hidden":!0}),t[56]=oe):oe=t[56];let se=i.filters.unread,ce=String(o),U;t[57]!==i.filters.unread||t[58]!==ce?(U=(0,$.jsx)(hn,{icon:oe,label:se,value:ce}),t[57]=i.filters.unread,t[58]=ce,t[59]=U):U=t[59];let W;t[60]!==te||t[61]!==R||t[62]!==H||t[63]!==U?(W=(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-px border-b border-edge-subtle bg-edge-subtle lg:grid-cols-4`,children:[te,R,H,U]}),t[60]=te,t[61]=R,t[62]=H,t[63]=U,t[64]=W):W=t[64];let G;t[65]!==i||t[66]!==a||t[67]!==u||t[68]!==n?(G=n.length===0?(0,$.jsx)(kn,{className:`min-h-64 rounded-none border-0 shadow-none`,icon:(0,$.jsx)(y,{className:`size-5`}),title:i.empty.runs}):(0,$.jsx)(`div`,{className:`divide-y divide-edge-subtle`,children:n.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-start gap-3 px-4 py-3 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent sm:px-5`,onClick:()=>u(e.id),children:[(0,$.jsx)(`span`,{className:q(`mt-1.5 size-2 shrink-0 rounded-full`,$t(e)?`bg-blue-500`:en(e)?`bg-red-500`:`bg-emerald-500`),"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`truncate text-sm font-medium text-fg`,children:e.automationName}),e.readAtMs==null&&!$t(e)?(0,$.jsx)(`span`,{className:`size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:i.filters.unread})}):null]}),(0,$.jsx)(`span`,{className:q(`mt-1 line-clamp-2 block text-sm text-fg-muted`,e.error&&`text-red-700 dark:text-red-300`),children:e.error||e.summary||i.status[e.status]}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs text-fg-subtle`,children:qt(e.createdAtMs,i,a)})]}),(0,$.jsx)(`span`,{className:q(`shrink-0 rounded-full px-2 py-0.5 text-xs`,Zt(e.status)),children:i.status[e.status]})]},e.id))}),t[65]=i,t[66]=a,t[67]=u,t[68]=n,t[69]=G):G=t[69];let K;return t[70]!==M||t[71]!==W||t[72]!==G?(K=(0,$.jsxs)(`section`,{className:`overflow-hidden rounded-xl bg-surface-base`,"aria-labelledby":`automation-activity-title`,children:[M,W,G]}),t[70]=M,t[71]=W,t[72]=G,t[73]=K):K=t[73],K}function _n(e,t){let n=t.events,r=e.data&&typeof e.data==`object`?e.data:{},i=typeof r.actionKind==`string`?r.actionKind:null,a=typeof r.status==`string`&&r.status in t.status?t.status[r.status]:null;switch(e.type){case`run.queued`:return e.message.toLowerCase().includes(`manual`)?n.manualQueued:e.message.toLowerCase().includes(`scheduled`)?n.scheduledQueued:n.eventQueued;case`run.started`:return n.runStarted;case`action.started`:return i?n.actionStarted.replace(`{kind}`,i):n.actionStartedFallback;case`action.completed`:return i?n.actionCompleted.replace(`{kind}`,i):n.actionCompletedFallback;case`action.failed`:return i?n.actionFailed.replace(`{kind}`,i):n.actionFailedFallback;case`run.completed`:return a?n.runCompleted.replace(`{status}`,a):n.runCompletedFallback;default:return e.message}}function vn(e){let t=(0,ot.c)(17),{value:n,labels:r,title:i,defaultExpanded:a}=e,[o,s]=(0,Q.useState)(a!==void 0&&a),c;t[0]===n?c=t[1]:(c=JSON.stringify(n,null,2),t[0]=n,t[1]=c);let l=c,u;t[2]===l?u=t[3]:(u=l.split(`
|
|
5
5
|
`),t[2]=l,t[3]=u);let d=u.length,f=l.length>720||d>18,p;t[4]!==f||t[5]!==l?(p=f?`${l.split(`
|