elanous 0.2.37 → 0.2.38
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/apps/pwa/out/404/index.html +1 -1
- package/apps/pwa/out/404.html +1 -1
- package/apps/pwa/out/_next/static/{8kITumG9GAZ1LwT9POrAR → RrjXTwz-urRAbChP1bX02}/_buildManifest.js +1 -1
- package/apps/pwa/out/_next/static/chunks/{2002-a43a3f380df873ec.js → 1026-44010f405704050c.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1118.a8a74ea29aac3e46.js +27 -0
- package/apps/pwa/out/_next/static/chunks/1204-2aa830479adf80f4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1341-43b7d2dc77d45c9d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1440-c3ea8882badfd9bf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7424.c0fe2a595d4232b5.js → 1632.7d87f998e714bede.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1698-9c11cbf97f13717e.js +1 -0
- package/apps/pwa/out/_next/static/chunks/1770-3b1fc92253ef9f2f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4937-28d437999b77c9dd.js → 1923-5c1695332240246a.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/1938.0e6c60ee91c4d7f5.js +148 -0
- package/apps/pwa/out/_next/static/chunks/2104.70e086d5174a4736.js +1 -0
- package/apps/pwa/out/_next/static/chunks/213-20675f20673ba22a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/214.186a430da28338f1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2277.3bd4c0ac7f1b5996.js +93 -0
- package/apps/pwa/out/_next/static/chunks/240.e09f433f71c78ff4.js +104 -0
- package/apps/pwa/out/_next/static/chunks/{3199.6a1a9b0e6cd01dc6.js → 2415.738b777642a02233.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/2417.02151393605a7cd0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2463.cd2641a76daaa9ff.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2576.b9e9c629c4b84c52.js +1 -0
- package/apps/pwa/out/_next/static/chunks/265-c021de53f0865bd9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2998-b1cc13956cd6a6e7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/2e4782d3.ba2f0ab2b63a53e7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1262.a89bb27a5b2f844e.js → 3086.fb14b60ce98b53d3.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3124-561f7f037943cde2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3130.626b54382b4dc379.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3221-1bb3f99a55088613.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3280.24edb1ffd03a7f3f.js +24 -0
- package/apps/pwa/out/_next/static/chunks/3288-eb3c22a1cbf2ae68.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2283.edd9627b7bdfb546.js → 3291.f6c1005387d514bd.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/33.ef99e8374f96c6c4.js +36 -0
- package/apps/pwa/out/_next/static/chunks/{6877-84d47b7e85d0c41e.js → 3341-f09b9efbd7a82f70.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3389.012c70767a872f9b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3410-d7c0f14b329d6fda.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3421.c87d6313a7d670f7.js +287 -0
- package/apps/pwa/out/_next/static/chunks/3422-83a3953f9bd67e26.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6680.6a693c28aae4cd19.js → 3528.e4b8ab70d339f965.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/3587-002e24e368c515a9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3644.f12a7d821ab940af.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3660.d7516588e2d875c3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3695.b82e2610f4cd4ea9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3858.ca1f5bc0f577eac9.js +94 -0
- package/apps/pwa/out/_next/static/chunks/3959-e6ac4a139d9d4bcc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/3f0de3de-2340c532c00395db.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4032.53f62176514ec0ea.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4199-f7c6eb40cd0322f8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4204-ef8484cbecd5d62f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4259-163129ca79913c4b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/428-eaa77df3d0c85969.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4432-97e400ffa1e161f5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/449-aa427cf2cbb75f50.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4491-39a0fd32bbaf3840.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4588.b7cf06d382953979.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4690.70ec8060825366ab.js +32 -0
- package/apps/pwa/out/_next/static/chunks/{4036.d54e55e1ebf5acdc.js → 4804.6012b5cd33c22792.js} +2 -2
- package/apps/pwa/out/_next/static/chunks/4881.e4d22d730e3b9df5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/4937.ce2e340dc29cad3e.js +79 -0
- package/apps/pwa/out/_next/static/chunks/5-bb1c08d84bd71df3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5005.de98df23b37cdf3c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5035.dc64a89cad5573cc.js +74 -0
- package/apps/pwa/out/_next/static/chunks/5041-5aada92ca215ffdd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6819.be5c9c4d67f22922.js → 5203.51e5d8b5f1dcfe53.js} +16 -16
- package/apps/pwa/out/_next/static/chunks/5207.1a224035455790fd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{757-4fbaf50942b8c424.js → 5255-1b60d50eabe9f057.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5269.d0436ee6d773382a.js +286 -0
- package/apps/pwa/out/_next/static/chunks/5300.677c97e0393742e6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{7867.e8725745ddd1d940.js → 5307.d7328020227880c2.js} +4 -4
- package/apps/pwa/out/_next/static/chunks/5309.3367c4d50f52b489.js +1 -0
- package/apps/pwa/out/_next/static/chunks/552-689827d49780fa00.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5539.34cc9d60622cb69b.js +8 -0
- package/apps/pwa/out/_next/static/chunks/5568.218dea0c00ca2ec7.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5046.7fd5cbd859299448.js → 5638.107314dc479e2f37.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/5645.b7e3b055455a04ea.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5662.18cc0f30353cbd96.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5671.da24fc9dc5e98325.js +1 -0
- package/apps/pwa/out/_next/static/chunks/5b141171.324c40fd49cb6821.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6142.913b44e260a3f925.js +64 -0
- package/apps/pwa/out/_next/static/chunks/6175-d4621f6a10b0cfab.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6290.3eb53a20746b72ce.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6415-9307f3eafa90837f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6493.27ad77de7aac7966.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6579-3de35d00aacd71b5.js +1 -0
- package/apps/pwa/out/_next/static/chunks/680-2f324c4e039a5b67.js +1 -0
- package/apps/pwa/out/_next/static/chunks/6845-331b3c7481da3ba3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1224.2ceca6c180d5130b.js → 7000.28157393caaf5343.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{6745-5a63492933959dd9.js → 7161-8f22db3ec5ed005e.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/{2479-fe7e188bd9402d14.js → 7311-60a7ea80d23c7521.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7401.525d0a12f7d02c06.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7438.c2cf72b66dca6aa4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{5952.294fc574a8625184.js → 7488.966b116789f3d41a.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7524.ce973525d30b3d52.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7573.2376e13c9c21f1f8.js +77 -0
- package/apps/pwa/out/_next/static/chunks/7577.ea6e9ac72e035520.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{6252.240578f10952e091.js → 7628.6b16863ac3972333.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7657.8d1fb3d2f7ebe273.js +1 -0
- package/apps/pwa/out/_next/static/chunks/7903-1435d5d2f0dd7807.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{1746.3563617ea64023a3.js → 7954.4f7a8832663ee979.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/7978-30a91192c5dbe3c2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4931.95cc6dbd230774ca.js → 8019.21ca554a821dad01.js} +16 -16
- package/apps/pwa/out/_next/static/chunks/8025-8795821525cf1a07.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8191.3674a00f0b565c23.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8217-604955d8885c5ef2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8298-eed6f5f2585a63f4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{2375.bf364c85dbb6f085.js → 8487.291666583bebe640.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/8509.3a54d4e61893d7cb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/8758.ac421f726a189125.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{4383.18e5c54db3a22c88.js → 8879.ac06755bcf3e44a1.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/891.d6c723a51a067b36.js +149 -0
- package/apps/pwa/out/_next/static/chunks/{9151.a2c51e93f9156dae.js → 8911.bf5e712acb25fb6c.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{58edce7d.f1b0c72acf13b123.js → 8994d93e.33ba491f95345fc2.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/{5f6af561-f90b7a67f4f75d13.js → 89d6c04f-6b8ab341748e468a.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/9223.cbcc88e0e9950426.js +41 -0
- package/apps/pwa/out/_next/static/chunks/9299.24e2a7d9b6d1f91b.js +226 -0
- package/apps/pwa/out/_next/static/chunks/9317.6a9869039c231bb3.js +24 -0
- package/apps/pwa/out/_next/static/chunks/9383.e4755f275b3c11ff.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9581.da63ddf41acfad46.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9715.8c5529a0a5c41a36.js +1 -0
- package/apps/pwa/out/_next/static/chunks/9817.3009d65f0889ef1f.js +2 -0
- package/apps/pwa/out/_next/static/chunks/{de8446d3.31b73eb239fecd7b.js → 9fe1b809.738da85c8b17e3fb.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-76873dd80da4f715.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-ed32b6ec5dea8f23.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-fdd40e15babf3d25.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/board/page-384efc78e85e400b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-866aac5ff226a7f3.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/bots/page-d91809c5aeed319a.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-128f3522f89a81ab.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/chat/page-595961abf3b43ad1.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/consult/page-f41dccb76d8c0263.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/control/page-a3205c2e28b7d0d9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-c39a80277814a3f4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-1ab3f98194513195.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/editor/page-a5246f7e254d77d0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/exec/page-0f92287bdb81217d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/field/page-5a37131ff63793ef.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-76873dd80da4f715.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ac4bd14bb2348bfd.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/intake/{page-5c112c6d7c33656e.js → page-c348a3959c5b5fc6.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-2addd81c0d3e2906.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live/page-da6b765f58a3eefb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-0661e40f8780c32c.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/loops/page-b89af1b1c8e4875b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/market/page-da8aeb82ba751cdb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-cc71317b239439db.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/morning/page-bde7fc1d64ffe369.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/not-found-e2797214f713fa58.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-2a35bcda70defaf6.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-3af03deedde45032.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/ops/release/{page-88a1edbff62eaf1d.js → page-d1d1210f99f620ae.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-46d1b5500885861d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-291ab19fe2acb173.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/{page-b9af2ac1c4737ce8.js → page-7f569e533ddeecba.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-990129c9fee46d8f.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-7737f785ebb1cdaf.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-9f3c73a4f7ffd2f8.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-03be7fb347f01058.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/settings/page-96b0280625e4df2b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-56855545049eb56d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-76873dd80da4f715.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/setup/page-79a909c9981f0338.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/share/{page-fb9e639c107f5f72.js → page-a9d9a3e66459c1e0.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-c383cbf2013f7069.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-f57c6a2e54dbdca4.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/term/page-6b140f77593576eb.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/today/page-6b767ae2d9d0adfc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/trace/page-116d6198d5da0e3d.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/vault/page-b9c9b778c7501370.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-a6c78392ab8f6335.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-455183deb4ed0cfe.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-6a63e99526bd63d0.js +1 -0
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-31c22caafe788c08.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{709a918c.4fd3b4e2a32cb4e3.js → b7459770.6539b11860eb8a9c.js} +7 -7
- package/apps/pwa/out/_next/static/chunks/{d9815f84.4918f682a45a8502.js → b7478fef.5917716286213fcc.js} +3 -3
- package/apps/pwa/out/_next/static/chunks/{4337e36d.f42c3b391b3d8f20.js → bb6987f9.3647e1a23b0e3217.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/de8b930d.d94c0f42acf807fc.js +1 -0
- package/apps/pwa/out/_next/static/chunks/{8c58d09b.e8724a299658d86f.js → eaad0cba.771200940c529df7.js} +1 -1
- package/apps/pwa/out/_next/static/chunks/framework-4b12a946f352cee2.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-941155250ed2644b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/main-app-f8b6765abed6d149.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_app-78432194c85388f9.js +1 -0
- package/apps/pwa/out/_next/static/chunks/pages/_error-cdf7390829512b1b.js +1 -0
- package/apps/pwa/out/_next/static/chunks/webpack-d5f0964a9c2e92d2.js +1 -0
- package/apps/pwa/out/approvals/index.html +1 -1
- package/apps/pwa/out/approvals/index.txt +22 -22
- package/apps/pwa/out/autopilot/index.html +1 -1
- package/apps/pwa/out/autopilot/index.txt +22 -22
- package/apps/pwa/out/board/index.html +1 -1
- package/apps/pwa/out/board/index.txt +22 -22
- package/apps/pwa/out/botlab/index.html +1 -1
- package/apps/pwa/out/botlab/index.txt +21 -21
- package/apps/pwa/out/bots/index.html +1 -1
- package/apps/pwa/out/bots/index.txt +21 -21
- package/apps/pwa/out/ceo/index.html +1 -1
- package/apps/pwa/out/ceo/index.txt +22 -22
- package/apps/pwa/out/chat/index.html +1 -1
- package/apps/pwa/out/chat/index.txt +21 -21
- package/apps/pwa/out/consult/index.html +1 -1
- package/apps/pwa/out/consult/index.txt +22 -22
- package/apps/pwa/out/control/index.html +1 -1
- package/apps/pwa/out/control/index.txt +22 -22
- package/apps/pwa/out/decisions/index.html +1 -1
- package/apps/pwa/out/decisions/index.txt +21 -21
- package/apps/pwa/out/design-check/index.html +1 -1
- package/apps/pwa/out/design-check/index.txt +22 -22
- package/apps/pwa/out/editor/index.html +1 -1
- package/apps/pwa/out/editor/index.txt +22 -22
- package/apps/pwa/out/exec/index.html +1 -1
- package/apps/pwa/out/exec/index.txt +22 -22
- package/apps/pwa/out/field/index.html +1 -1
- package/apps/pwa/out/field/index.txt +22 -22
- package/apps/pwa/out/healthz +1 -1
- package/apps/pwa/out/index.html +1 -1
- package/apps/pwa/out/index.txt +21 -21
- package/apps/pwa/out/inside/index.html +1 -1
- package/apps/pwa/out/inside/index.txt +21 -21
- package/apps/pwa/out/intake/index.html +1 -1
- package/apps/pwa/out/intake/index.txt +22 -22
- package/apps/pwa/out/live/index.html +1 -1
- package/apps/pwa/out/live/index.txt +22 -22
- package/apps/pwa/out/live-run/index.html +1 -1
- package/apps/pwa/out/live-run/index.txt +22 -22
- package/apps/pwa/out/loops/index.html +1 -1
- package/apps/pwa/out/loops/index.txt +21 -21
- package/apps/pwa/out/market/index.html +1 -1
- package/apps/pwa/out/market/index.txt +21 -21
- package/apps/pwa/out/missions/placeholder/index.html +1 -1
- package/apps/pwa/out/missions/placeholder/index.txt +21 -21
- package/apps/pwa/out/morning/index.html +1 -1
- package/apps/pwa/out/morning/index.txt +22 -22
- package/apps/pwa/out/observatory/index.html +1 -1
- package/apps/pwa/out/observatory/index.txt +22 -22
- package/apps/pwa/out/ops/checklist/index.html +1 -1
- package/apps/pwa/out/ops/checklist/index.txt +21 -21
- package/apps/pwa/out/ops/release/index.html +1 -1
- package/apps/pwa/out/ops/release/index.txt +21 -21
- package/apps/pwa/out/ops/seats/index.html +1 -1
- package/apps/pwa/out/ops/seats/index.txt +21 -21
- package/apps/pwa/out/outputs/index.html +1 -1
- package/apps/pwa/out/outputs/index.txt +21 -21
- package/apps/pwa/out/reflection/index.html +1 -1
- package/apps/pwa/out/reflection/index.txt +22 -22
- package/apps/pwa/out/scheduler/index.html +1 -1
- package/apps/pwa/out/scheduler/index.txt +22 -22
- package/apps/pwa/out/sessions/index.html +1 -1
- package/apps/pwa/out/sessions/index.txt +21 -21
- package/apps/pwa/out/settings/devices/index.html +1 -1
- package/apps/pwa/out/settings/devices/index.txt +22 -22
- package/apps/pwa/out/settings/index.html +1 -1
- package/apps/pwa/out/settings/index.txt +22 -22
- package/apps/pwa/out/setup/done/index.html +1 -1
- package/apps/pwa/out/setup/done/index.txt +22 -22
- package/apps/pwa/out/setup/index.html +1 -1
- package/apps/pwa/out/setup/index.txt +22 -22
- package/apps/pwa/out/share/index.html +1 -1
- package/apps/pwa/out/share/index.txt +22 -22
- package/apps/pwa/out/showroom/index.html +1 -1
- package/apps/pwa/out/showroom/index.txt +21 -21
- package/apps/pwa/out/tasks/index.html +1 -1
- package/apps/pwa/out/tasks/index.txt +22 -22
- package/apps/pwa/out/term/index.html +1 -1
- package/apps/pwa/out/term/index.txt +22 -22
- package/apps/pwa/out/today/index.html +1 -1
- package/apps/pwa/out/today/index.txt +22 -22
- package/apps/pwa/out/trace/index.html +1 -1
- package/apps/pwa/out/trace/index.txt +22 -22
- package/apps/pwa/out/vault/index.html +1 -1
- package/apps/pwa/out/vault/index.txt +22 -22
- package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +22 -22
- package/apps/pwa/out/workflows/index.html +1 -1
- package/apps/pwa/out/workflows/index.txt +22 -22
- package/apps/pwa/out/workspace/index.html +1 -1
- package/apps/pwa/out/workspace/index.txt +22 -22
- package/apps/pwa/out/worktrees/index.html +1 -1
- package/apps/pwa/out/worktrees/index.txt +22 -22
- package/graphs/release/recipes.yaml +9 -0
- package/graphs/release/release-loop.yaml +26 -18
- package/package.json +1 -1
- package/scripts/ask-op-inbox-once.ts +17 -0
- package/scripts/brand/check.ts +13 -4
- package/scripts/gate-0226-accepted-remaining-90.txt +91 -0
- package/scripts/gate-0226-failure-census.ts +39 -0
- package/scripts/intake-collect-telegram-saved-stage.ts +48 -0
- package/scripts/provision-export-redactions.ts +15 -0
- package/scripts/public-copy-lint.ts +122 -0
- package/scripts/public-export.ts +69 -2
- package/scripts/ratchets/next-tui-entry-budget.ts +124 -0
- package/scripts/ratchets/train-side-invariants.sh +7 -1
- package/scripts/release-loop/cut-branch.ts +61 -12
- package/scripts/release-loop/gate-node.ts +161 -25
- package/scripts/release-loop/gate-partial.ts +82 -3
- package/scripts/release-loop/gate-prewarm-plan.ts +35 -0
- package/scripts/release-loop/gate-radius-live.ts +4 -2
- package/scripts/release-loop/resume-cap.ts +2 -1
- package/scripts/release-loop/resume-release.ts +297 -8
- package/scripts/release-loop/resume.ts +13 -5
- package/scripts/release-loop/traffic-node.ts +12 -4
- package/scripts/release-loop/traffic-transition.ts +53 -13
- package/scripts/release-loop/version-node.ts +29 -4
- package/scripts/ux-sim.ts +1 -1
- package/scripts/video-pipeline.ts +2 -2
- package/src/acp/core-turn-bridge.ts +6 -1
- package/src/agent/run-context.ts +1 -1
- package/src/agent/task-notification.ts +3 -1
- package/src/agent-substrate/review-observation.ts +10 -0
- package/src/agent-substrate/self-review-cli.ts +195 -27
- package/src/auto-research/question-ladder-contract.ts +137 -0
- package/src/auto-research/research-turn.ts +134 -0
- package/src/autopilot/discovery/doc-lint.ts +1 -1
- package/src/bots/screen-probe.ts +1 -1
- package/src/capture/tui-self-report.ts +10 -2
- package/src/chat/index.ts +1 -0
- package/src/chat/tool-render/dispatch.ts +8 -1
- package/src/cli/guardian-cli.ts +3 -1
- package/src/cli/intake-cli.ts +48 -12
- package/src/cli/lesson-cli.ts +69 -9
- package/src/cli/pr-land-overlap-evidence.ts +38 -5
- package/src/cli/pr-land-refusal.ts +1 -1
- package/src/cli/pty-takeover-cli.ts +58 -5
- package/src/cli/release-checklist-read-cli.ts +5 -2
- package/src/cli/release-cli.ts +47 -9
- package/src/cli/review-carry.ts +77 -0
- package/src/cli/self-update.ts +1 -1
- package/src/cli/tasks-card-show.ts +31 -1
- package/src/cli/tasks-cli.ts +62 -23
- package/src/cli/tasks-read-cli.ts +13 -5
- package/src/context-bus/context-now.ts +86 -2
- package/src/core-turn/run-core-turn.ts +9 -2
- package/src/core-turn/types.ts +3 -0
- package/src/dashboard/index.ts +18 -17
- package/src/dashboard/input/terminal-modal-router.ts +8 -159
- package/src/dashboard/side-basic-runtime.ts +61 -0
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +2 -0
- package/src/dashboard/term-slash-runtime.ts +2 -0
- package/src/dashboard/turn-preamble.ts +28 -4
- package/src/domains/guardian-tick.ts +9 -0
- package/src/git-fs/watcher.ts +27 -22
- package/src/git-fs/worktree.ts +19 -3
- package/src/graph-runner/graph-grow.ts +37 -9
- package/src/graph-runner/runner.ts +17 -2
- package/src/grok/credential.ts +107 -36
- package/src/hq/fence-wrapper.ts +1 -1
- package/src/hq/transfer.ts +1 -1
- package/src/index.ts +44 -14
- package/src/intake-plane/collect-telegram-saved.ts +54 -5
- package/src/interactive-terminal-modal.ts +3 -0
- package/src/keybindings.ts +17 -22
- package/src/llm/provider-credentials.ts +1 -1
- package/src/llm-tool-schema.ts +20 -0
- package/src/llm.ts +81 -11
- package/src/loops/orchestrator/inbox-once.ts +28 -0
- package/src/loops/orchestrator/inbox.ts +130 -1
- package/src/loops/orchestrator/tick.ts +6 -3
- package/src/maturity/feature-maturity.ts +1 -0
- package/src/nexus/api/channel-ask-op.ts +96 -0
- package/src/nexus/api/discord-trigger-bot.ts +28 -1
- package/src/nexus/api/telegram-trigger-bot.ts +24 -0
- package/src/nexus/api/terminals.ts +28 -6
- package/src/patents/ledger.ts +18 -1
- package/src/preview/terminal.ts +4 -2
- package/src/prompt-cache/anthropic.ts +2 -0
- package/src/prompt-enhance/enhance.ts +5 -0
- package/src/pty-shell/pty-manifest.ts +16 -2
- package/src/release-loop/gate-shards.ts +61 -0
- package/src/release-loop/light-rc.ts +7 -4
- package/src/release-loop/rehearsal.ts +1 -1
- package/src/repl/index.ts +10 -0
- package/src/research/axis-fanout.ts +133 -0
- package/src/research/edge-decision.ts +88 -0
- package/src/research/output-router.ts +127 -0
- package/src/research-bridge/format.ts +16 -1
- package/src/research-bridge/index.ts +1 -0
- package/src/research-bridge/invoke.ts +41 -5
- package/src/self-dev/decompose.ts +45 -9
- package/src/self-dev/draft-residue.ts +221 -2
- package/src/self-dev/draft-sweep.ts +29 -16
- package/src/self-dev/orchestrate.ts +1 -0
- package/src/self-dev/run-supervisor.ts +22 -7
- package/src/self-dev/shard-run.ts +260 -3
- package/src/self-implement/comment-only-source.ts +54 -0
- package/src/self-implement/doctor-visit.ts +25 -0
- package/src/self-implement/gate-artifacts.ts +2 -2
- package/src/self-implement/gate-baseline.ts +44 -9
- package/src/self-implement/gate-cli.ts +151 -86
- package/src/self-implement/gate-failure-signature.ts +44 -0
- package/src/self-implement/gate-remote.ts +2 -0
- package/src/self-implement/goal-author.ts +74 -3
- package/src/self-implement/goal-doc/section.ts +22 -0
- package/src/self-implement/goal-supervisor-fill.ts +38 -4
- package/src/self-implement/knowhow-pack.ts +120 -7
- package/src/self-implement/l8-merge-queue.ts +198 -32
- package/src/self-implement/off-diff-evidence.ts +23 -0
- package/src/self-implement/orchestrator.ts +55 -12
- package/src/self-implement/pod-inplace-worktree.ts +82 -0
- package/src/self-implement/pod-warm-pool-profile.ts +2 -2
- package/src/self-implement/premise-review.ts +7 -5
- package/src/self-implement/run-ledger.ts +258 -0
- package/src/self-implement/seams.ts +33 -10
- package/src/self-implement/self-implement-cli.ts +26 -2
- package/src/session/channel-ask-op-envelope.ts +36 -0
- package/src/session/channel-op-reply-route.ts +200 -0
- package/src/session/chat.ts +3 -0
- package/src/session/index.ts +2 -0
- package/src/session-runtime/index.ts +9 -22
- package/src/skills/runner.ts +7 -3
- package/src/skills/tools/dev-harness.ts +2 -2
- package/src/skills/tools/schedule-wakeup.ts +1 -6
- package/src/status/bar.ts +3 -3
- package/src/storage/file-lock.ts +17 -4
- package/src/task-agent/adopt-pr.ts +63 -2
- package/src/task-agent/evidence-command-normalize.ts +42 -0
- package/src/task-agent/export-redactions-provision.ts +43 -0
- package/src/task-agent/parent-host.ts +59 -12
- package/src/task-agent/repair-cycle.ts +67 -8
- package/src/task-agent/repair-worker.ts +37 -1
- package/src/task-agent/task-hand.ts +98 -10
- package/src/task-agent/tier-split.ts +37 -3
- package/src/task-orchestrator/surfaces/pod-failure-reason.ts +31 -4
- package/src/task-orchestrator/surfaces/pod-pool.ts +27 -4
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +126 -48
- package/src/task-orchestrator/surfaces/self-implement.ts +33 -2
- package/src/terminal/session-registry.ts +1 -0
- package/src/terminal/terminal-modal-router.ts +156 -0
- package/src/tool-hints/gate.ts +6 -4
- package/src/tool-hints/signals.ts +33 -1
- package/src/tui/chat/background-job-status.ts +8 -2
- package/src/tui/entry.ts +469 -31
- package/src/tui/sidetab/attach.ts +304 -0
- package/src/tui/sidetab/list.ts +176 -0
- package/src/tui/sidetab/nl-tool.ts +136 -0
- package/src/tui/slash/resume-command.ts +23 -0
- package/src/tui/slash/resume.ts +3 -23
- package/src/tui/slash/term-next.ts +2 -1
- package/src/tui-client/local-chat-turn.ts +29 -8
- package/src/user-config.ts +11 -2
- package/src/ux-sim/fake-llm.ts +11 -5
- package/src/ux-sim/next-tui-seat-scenarios.ts +53 -1
- package/src/version/packed-revision.json +1 -1
- package/apps/pwa/out/_next/static/chunks/1041-5841aae848fb6403.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1087.3177e54f672dc526.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1105.efe1e13503ac7a33.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1417-1768233ac92f8a5d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1612.81bbc19af06af16c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1766.728d42053070bb2d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1773.d38e945481e04125.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1974-c12f9600da3d3c26.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1ed5e8af.cf424815c7c0efad.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2061.7232dc9dc058417f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/210.90b2cbd64926cf34.js +0 -32
- package/apps/pwa/out/_next/static/chunks/2318-450e75d07605b8fe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/244-a810d282a20f1783.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2514.03b60f266531a015.js +0 -148
- package/apps/pwa/out/_next/static/chunks/2526-a657538869888604.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2533-6f0341ff075809e9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2676.e7994c695ef0f30d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2734.3ffdf54254fb6f99.js +0 -27
- package/apps/pwa/out/_next/static/chunks/2770-23252bf3a37880b9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2969.66b8b545139d1544.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3128.a9210d08800ea6a8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3212.12179fd3eee8cef1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3578.4e9f9948a9a6f2f4.js +0 -2
- package/apps/pwa/out/_next/static/chunks/3760-2909ddb9279281cd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3825.1921b5901bf33dce.js +0 -36
- package/apps/pwa/out/_next/static/chunks/3994-63eb884ed0547011.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4115.5b438b99f0ae729f.js +0 -226
- package/apps/pwa/out/_next/static/chunks/4269.d8f9f34bb0fc6c43.js +0 -287
- package/apps/pwa/out/_next/static/chunks/431-4eed5bd2c5fe1719.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4313.76f232c304a15bde.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4324.c99ba3e83eb1b691.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4599-96eff3f2a9c242c1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4725-34bed25720cc326b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4825-a9d9d4e9f5892309.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4833-7934c592c5569f00.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4879-68518f547a207aff.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4896.f9b70285363b27b2.js +0 -24
- package/apps/pwa/out/_next/static/chunks/49aa54ab.80f39398e0ed0f30.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5056.482687319b82638e.js +0 -104
- package/apps/pwa/out/_next/static/chunks/506.16b83d56a437a9ee.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5260-20593b0a25d0afbc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5404.cc4e9fec26fd5925.js +0 -1
- package/apps/pwa/out/_next/static/chunks/576.485e83e3f3dec19a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5832-a6be14e663f65726.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5854-56648a9fe646b9a0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5925.3b1f8b135710249b.js +0 -93
- package/apps/pwa/out/_next/static/chunks/6168.17749aa3905fa073.js +0 -74
- package/apps/pwa/out/_next/static/chunks/6416.5d50b8ec9986ca98.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6758.e7fbf532953c0783.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6795.0cb8a59730d99703.js +0 -149
- package/apps/pwa/out/_next/static/chunks/6971-fb5f9dc0a2cb5d2d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/717.522b08685979b814.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7191.e41eb8f455c7f089.js +0 -41
- package/apps/pwa/out/_next/static/chunks/7233.8e744b7513119409.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7238-97c2226f80504bd8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7285.307963afcf7e7660.js +0 -24
- package/apps/pwa/out/_next/static/chunks/7299-fbe4b8c47a87614a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7314.df0d95930b0c3f50.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7406.c0589fdf2ee66629.js +0 -1
- package/apps/pwa/out/_next/static/chunks/752-90e3e7daad3d8e39.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7524-bcd3d9928c6842d9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7549.9a4de3bf231cfc52.js +0 -1
- package/apps/pwa/out/_next/static/chunks/765.76ae970ceb597b5b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7893-e444a1b0809cd1e4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7956-33748cabb3a05562.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7c5ed21f-f286708e57cf88f7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8030-aa66b478b53dbfca.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8051.c88c07dacbbc5f21.js +0 -8
- package/apps/pwa/out/_next/static/chunks/8080-40d781e7704d3671.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8149.80e402d4345e8dae.js +0 -77
- package/apps/pwa/out/_next/static/chunks/8205.50a5268f4e12ba0b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8231.a128feaa6f8b6079.js +0 -1
- package/apps/pwa/out/_next/static/chunks/85.4ddb1dda2ea3ffa2.js +0 -286
- package/apps/pwa/out/_next/static/chunks/8537.26517a09e8247beb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8595-e9b7081ab773a61f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8821-30cc65a61a60951f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8905.b3385aadb7b133e6.js +0 -79
- package/apps/pwa/out/_next/static/chunks/8983.246bb3a1ac38f50f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9072.18342f5941a1f3ec.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9123.9df04866b2d6e00f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9175-7d383df15a82e2be.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9181-bf89c07ce5b8f599.js +0 -1
- package/apps/pwa/out/_next/static/chunks/920-429bbc4504b45f71.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9207.625edf45d656151c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9378.d2575c6ffd6dd756.js +0 -94
- package/apps/pwa/out/_next/static/chunks/957.db5b5c4d32a35240.js +0 -1
- package/apps/pwa/out/_next/static/chunks/958.53a8dcf4729e6997.js +0 -64
- package/apps/pwa/out/_next/static/chunks/9647.8f0cd0898c592a29.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9665-26abb02665704c2c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9703.e7d81b6faef1050a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9882-7a9164b3c2dacbe5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9998.b74e033efadecd10.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c604fb980a634d88.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-ec2d8a4979ca9075.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/autopilot/page-cb6add08ad3c7660.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-e2eaa321ec223fe6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-5b8a09c475b5f844.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-91a77daedfbac191.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-f37fc5e974bda39b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-91429a0b78415a94.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-b95798b58263b910.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-763d53e175e17aa1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-d55023204055b12f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-89d2140d78abc810.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-82dc069abfe27f55.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-25d9eee7beb552c0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-770b4594c713ee97.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-c604fb980a634d88.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-ba8e0dcae4f83985.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-09788e1aa9a87db6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-3337c6a1328c2674.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-89acd5d68c0bc560.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-5c13e2c76371d797.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-653a9f18642825c6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/missions/[id]/page-fe986fe79b107546.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-1e5da297557d2354.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-91ea9f5869a40943.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-7824e21b999962e2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-53d00a60cc75a922.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-4e931248b3f9574b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-443364c9e4a23b31.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-25ab9c614c14129b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-dbcdcfac0a395a8a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-bf1de6645089ec58.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-c4201761a5e839c9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-c304f469ea5d70e4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-8e5a238cf5e50c9c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-c604fb980a634d88.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-32b526069ee50b3c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-84220c776608cedc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-e475618cbfd5ca2b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-ac2c1e6169cfce57.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-fccd3020af2f8806.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-9c0d7198ff7b5a91.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-d54b1ec9b9c6430d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-8c4bef1791d732ca.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-46fcc0b0bbc6fbfe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-c1c80e345fa9d6f5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-7dfda00afd172f5b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/f21fd540.63ac75328926ed30.js +0 -1
- package/apps/pwa/out/_next/static/chunks/framework-77fdcc873519a6cd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-d0d620d2ce235713.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-e0ef79c79337ba90.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-84b1bc71e3f9ce6a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-2acb61f1363128cb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-462ff5727ceb7824.js +0 -1
- package/scripts/migrate-monad-to-elanous.ts +0 -195
- package/scripts/rebrand-elanous.ts +0 -242
- /package/apps/pwa/out/_next/static/{8kITumG9GAZ1LwT9POrAR → RrjXTwz-urRAbChP1bX02}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3994],{10346:(e,t,n)=>{n.d(t,{T:()=>u});var r=n(57865),a=n(20381),s=n(33832),l=n(9145),o=n(16759),i=n(82002),c=n(62351),d=n(43105);function u(e){let{onAttached:t}=e,{config:n}=(0,o.Q)(),[u,m]=(0,a.useState)(!1),p=(0,a.useRef)(null),f=async e=>{var r;let a=null==(r=e.target.files)?void 0:r[0];if(e.target.value="",a){if(!n.baseUrl)return void i.oR.error("Daemon URL 미설정 — Settings 에서 입력");m(!0),(0,c.cY)("webterm.attach.pick",{filename:a.name,size:a.size,type:a.type});try{let e=await (0,d.v)({baseUrl:n.baseUrl,...n.token?{token:n.token}:{},file:a,filename:a.name});if(!e.ok){(0,c.cY)("webterm.attach.error",{status:e.status,detail:e.reason.slice(0,200)}),i.oR.error("업로드 실패 (".concat(e.status,")"));return}let{meta:r}=e;(0,c.cY)("webterm.attach.ok",{id:r.id,size:r.size}),i.oR.success("\uD83D\uDCCE ".concat(r.filename," (").concat((r.size/1024).toFixed(1)," kB)")),null==t||t(r)}catch(e){(0,c.cY)("webterm.attach.exception",{reason:String(e)}),i.oR.error("업로드 실패: ".concat(String(e instanceof Error?e.message:e)))}finally{m(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=p.current)?void 0:e.click()},disabled:u,"aria-label":"attach photo",title:"attach photo (camera or file)",className:"rounded p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground disabled:opacity-50",children:u?(0,r.jsx)(s.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,r.jsx)(l.A,{className:"h-3.5 w-3.5"})}),(0,r.jsx)("input",{ref:p,type:"file",accept:"image/*",capture:"environment",className:"hidden",onChange:f})]})}},30413:(e,t,n)=>{n.d(t,{F:()=>d});var r=n(57865);n(20381);var a=n(36254),s=n(65718),l=n(85864),o=n(28856),i=n(38388),c=n(9645);function d(e){let{className:t,children:n,...o}=e;return(0,r.jsxs)(a.V,{"data-slot":"scroll-area",className:(0,c.cn)("relative",t),...o,children:[(0,r.jsx)(s.B,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:n}),(0,r.jsx)(u,{}),(0,r.jsx)(l.I,{})]})}function u(e){let{className:t,orientation:n="vertical",...a}=e;return(0,r.jsx)(o.V,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:(0,c.cn)("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",t),...a,children:(0,r.jsx)(i.l,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}},36647:(e,t,n)=>{n.d(t,{h:()=>o,t:()=>l});var r=n(20381),a=n(16759),s=n(44459);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{client:t}=(0,a.Q)(),n=(0,s.hG)(t),l=()=>n.list(),o=(0,r.useSyncExternalStore)(e=>n.subscribe(e),l,l);return(0,r.useEffect)(()=>{if(e.activePoll)return n.enterActive()},[n,e.activePoll]),o}function o(){let{client:e}=(0,a.Q)(),t=(0,s.hG)(e),n=l({activePoll:!0}),[,o]=(0,r.useState)(0);return(0,r.useEffect)(()=>{t.forceRefresh().then(()=>o(e=>e+1))},[t]),n}},36761:(e,t,n)=>{n.d(t,{$:()=>l});var r=n(20381);let a=/[.!?。!?]+\s*/g;function s(){return void 0!==window.speechSynthesis}function l(e){var t;let[n,l]=(0,r.useState)(!1);(0,r.useEffect)(()=>{l(s())},[]);let[,o]=(0,r.useState)({}),i=(0,r.useRef)(""),c=(0,r.useRef)(e.enabled);c.current=e.enabled;let d=null!=(t=e.maxBufferChars)?t:80,u=(0,r.useRef)(e.language);u.current=e.language,(0,r.useEffect)(()=>{var e,t;if(!n)return;let r=()=>o({});return window.speechSynthesis.getVoices(),null==(e=(t=window.speechSynthesis).addEventListener)||e.call(t,"voiceschanged",r),()=>{var e,t;null==(e=(t=window.speechSynthesis).removeEventListener)||e.call(t,"voiceschanged",r)}},[n]),(0,r.useEffect)(()=>{n&&(e.enabled||(window.speechSynthesis.cancel(),i.current=""))},[e.enabled,n]);let m=(0,r.useCallback)(e=>{if(!n||!c.current)return;let t=e.trim();if(!t)return;let r=new SpeechSynthesisUtterance(t),a=function(e){var t;if(!s()||!e)return null;let n=window.speechSynthesis.getVoices();if(0===n.length)return null;let r=e.toLowerCase(),a=n.find(e=>e.lang.toLowerCase()===r);if(a)return a;let l=r.split("-")[0];return null!=(t=n.find(e=>e.lang.toLowerCase().startsWith(l)))?t:null}(u.current);a&&(r.voice=a),u.current&&(r.lang=u.current),window.speechSynthesis.speak(r)},[n]),p=(0,r.useCallback)(e=>{if(!e||!c.current)return;i.current+=e;let{sentences:t,remainder:n}=function(e){let t,n=[],r=0;for(a.lastIndex=0;null!==(t=a.exec(e));){let a=t.index+t[0].length,s=e.slice(r,a).trim();s&&n.push(s),r=a}return{sentences:n,remainder:e.slice(r)}}(i.current);for(let e of(i.current=n,t))m(e);if(i.current.length>=d){let e=i.current;i.current="",m(e)}},[d,m]);return{pushText:p,flush:(0,r.useCallback)(()=>{let e=i.current.trim();i.current="",e&&m(e)},[m]),cancel:(0,r.useCallback)(()=>{n&&(window.speechSynthesis.cancel(),i.current="")},[n]),supported:n}}},42770:(e,t,n)=>{n.d(t,{ht:()=>s,vn:()=>a});let r="elanous.pwa.sharePrefill";function a(e){try{window.sessionStorage.setItem(r,e)}catch(e){}}function s(){try{var e;let t=null!=(e=window.sessionStorage.getItem(r))?e:"";return window.sessionStorage.removeItem(r),t}catch(e){return""}}},43398:(e,t,n)=>{n.d(t,{g:()=>a,x:()=>r});let r={idle:"bg-slate-400",connecting:"bg-amber-500",listening:"bg-emerald-500",processing:"bg-sky-500",speaking:"bg-fuchsia-500",error:"bg-rose-600"},a={idle:"음성 대기",connecting:"연결 중…",listening:"듣는 중",processing:"생각 중",speaking:"말하는 중",error:"음성 오류"}},46243:(e,t,n)=>{n.d(t,{Qh:()=>y,lW:()=>v,o:()=>j});var r=n(57865),a=n(20381),s=n(16759),l=n(33797),o=n(36647),i=n(233),c=n(45258),d=n(26990),u=n(47791),m=n(47092),p=n(55734),f=n(17439),x=n(83145),h=n(62351),g=n(78071);let b={cli:"cli",pwa:"pwa",tg:"tg",dc:"dc"};async function v(e){if(!e||"undefined"==typeof navigator||!navigator.clipboard)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){return!1}}function j(e){return e?e.length<=8?e:"".concat(e.slice(0,8),"…"):"—"}function y(){var e,t,n,j,y;let w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},k=(0,s.Q)(),N=(0,o.t)(),[S,I]=(0,a.useState)(!1),[C,D]=(0,a.useState)(!1),[E,L]=(0,a.useState)(!1),R=(0,a.useRef)(null),A=(0,a.useRef)(null),T=(0,a.useRef)(null),M=null!=(e=w.sessionId)?e:k.sessionId,U=N.find(e=>e.id===M);(0,a.useEffect)(()=>()=>{R.current&&clearTimeout(R.current),A.current&&clearTimeout(A.current)},[]),(0,a.useEffect)(()=>{if(!C)return;let e=e=>{T.current&&!T.current.contains(e.target)&&D(!1)},t=e=>{"Escape"===e.key&&D(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[C]);let O=async()=>{if(!M)return;let e=await v(M);(0,h.cY)("webterm.session-pill.copy",{sessionId:M,ok:e,source:"dropdown"}),e&&(L(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>L(!1),1200))},P=S?"한 번 더 누르면 새 대화가 시작됩니다 — 지금 대화는 그대로 저장되고 대화 목록에 남습니다":"새 대화 시작 (두 번 클릭) — 빈 대화에서 새로 시작합니다",_=null!=(t=null==U?void 0:U.lastMsgPreview)?t:null;return(0,r.jsxs)("div",{ref:T,className:"relative flex items-center",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-md border border-border bg-card px-2 py-1 text-[11px]",children:[(0,r.jsx)("span",{className:"text-muted-foreground font-mono",children:"대화:"}),(0,r.jsx)(g.S,{sessionId:M,source:"pill"}),(null==U?void 0:U.origin)&&(0,r.jsx)("span",{className:"ml-1 rounded bg-muted px-1 py-0.5 font-mono text-[9px] uppercase text-muted-foreground",children:null!=(n=b[U.origin])?n:U.origin}),_&&(0,r.jsx)("span",{className:"ml-1 max-w-[180px] truncate border-l border-border pl-2 text-muted-foreground",title:_,children:_}),(0,r.jsxs)("span",{className:"ml-1 flex items-center gap-1 border-l border-border pl-1.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{if(!S){I(!0),(0,h.cY)("webterm.session-pill.fork-armed",{sessionId:M}),R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{I(!1),(0,h.cY)("webterm.session-pill.fork-disarmed-timeout",{sessionId:M})},4e3);return}R.current&&(clearTimeout(R.current),R.current=null),I(!1);let e=(0,l.Zr)();(0,h.cY)("webterm.session-pill.fork-confirmed",{previous:M,next:e}),k.setSessionId(e)},className:S?"rounded p-0.5 bg-destructive text-destructive-foreground hover:bg-destructive/90":"rounded p-0.5 hover:bg-secondary",title:P,"aria-label":P,children:(0,r.jsx)(i.A,{className:"h-3 w-3"})}),S?(0,r.jsx)("span",{className:"text-[10px] text-destructive","aria-live":"polite",children:"새 대화?"}):null,(0,r.jsx)("button",{type:"button",onClick:()=>D(e=>!e),"aria-label":"대화 메뉴",className:"rounded p-0.5 hover:bg-secondary",title:"대화 메뉴",children:(0,r.jsx)(c.A,{className:"h-3 w-3"})})]})]}),C&&(0,r.jsxs)("div",{role:"menu",className:"absolute left-0 top-7 z-50 w-72 rounded-md border border-border bg-popover py-1 text-xs shadow-md",children:[(0,r.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{let e=(0,l.Zr)();(0,h.cY)("webterm.session-pill.new-chat",{previous:M,next:e,source:"menu"}),k.setSessionId(e),D(!1)},className:"flex w-full items-start gap-2 px-3 py-1.5 text-left hover:bg-secondary",children:[(0,r.jsx)(d.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),(0,r.jsxs)("span",{children:["새 대화 시작",(0,r.jsx)("span",{className:"block text-[10px] text-muted-foreground",children:"빈 대화에서 새로 시작합니다 \xb7 지금 대화는 대화 목록에 남습니다"})]})]}),w.onAttachRequest&&(0,r.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{w.onAttachRequest(),D(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 hover:bg-secondary",children:[(0,r.jsx)(u.A,{className:"h-3.5 w-3.5 text-muted-foreground"}),"다른 대화로 전환"]}),(0,r.jsxs)("div",{className:"px-3 py-1.5 text-muted-foreground",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(m.A,{className:"h-3 w-3 shrink-0"}),(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-wide",children:"대화 ID"})]}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"flex-1 select-all break-all font-mono text-[11px] text-foreground",title:M||"",children:M||"(미설정)"}),(0,r.jsx)("button",{type:"button",onClick:()=>void O(),disabled:!M,className:"shrink-0 rounded p-1 hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",title:E?"복사됨":"대화 ID 전체 복사","aria-label":"대화 ID 복사","data-elanous-action":"session-id-copy-dropdown",children:E?(0,r.jsx)(p.A,{className:"h-3 w-3 text-emerald-500"}):(0,r.jsx)(f.A,{className:"h-3 w-3"})})]}),(0,r.jsxs)("div",{className:"mt-1 text-[10px]",children:[null!=(j=null==U?void 0:U.msgCount)?j:0," 메시지",(null==U?void 0:U.origin)&&" \xb7 ".concat(null!=(y=b[U.origin])?y:U.origin)]})]}),w.onForgetRequest&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"my-1 border-t border-border"}),(0,r.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{w.onForgetRequest(),D(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 text-rose-500 hover:bg-rose-500/10",children:[(0,r.jsx)(x.A,{className:"h-3.5 w-3.5"}),"이 대화 지우기"]})]})]})]})}},46290:(e,t,n)=>{n.d(t,{V:()=>P});var r=n(57865),a=n(20381),s=n(87462),l=n(18678),o=n(93891),i=n(10751),c=n(88606),d=n(82002),u=n(58174),m=n(23451),p=n(42770),f=n(9645),x=n(10346),h=n(57993),g=n(44072),b=n(33832),v=n(89658),j=n(16759),y=n(62351),w=n(81219);function k(e){let{open:t,image:n,filename:s="photo.jpg",onClose:l}=e,{config:o}=(0,j.Q)(),[i,c]=(0,a.useState)("idle"),[m,p]=(0,a.useState)(""),[f,x]=(0,a.useState)("minimal"),[h,g]=(0,a.useState)("minimal"),k=(0,w.hn)(),[N,S]=(0,a.useState)(k.defaultUseLlmVision),[I,C]=(0,a.useState)(k.defaultPreferHandwriting),[D,E]=(0,a.useState)(""),[L,R]=(0,a.useState)(""),[A,T]=(0,a.useState)("");async function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;if(!n)return;if(!o.baseUrl){R("Daemon URL 미설정 — Settings 에서 입력"),c("error");return}c("ocr"),R("");let a=new FormData;a.append("image",n,s),a.append("polishMode",e);let l=[];t&&l.push("context-aware","diagrams"),r&&l.push("handwriting"),l.length>0&&a.append("strengths",l.join(",")),(0,y.cY)("notes.ocr.start",{polishMode:e,vision:t,handwriting:r,filename:s,size:n.size});try{let t=await fetch("".concat(o.baseUrl,"/v1/notes/from-image"),{method:"POST",body:a,...o.token?{headers:{authorization:"Bearer ".concat(o.token)}}:{}});if(!t.ok){let e=await t.text().catch(()=>"");R("OCR 실패 (HTTP ".concat(t.status,") ").concat(e.slice(0,160))),c("error"),(0,y.cY)("notes.ocr.error",{status:t.status,detail:e.slice(0,200)});return}let n=await t.json(),r=n.usedLlmPolish?n.polishMode:"minimal";if(0===n.markdown.trim().length){R(n.usedLlmPolish?"이미지에서 텍스트를 추출하지 못했습니다. 다른 사진으로 다시 시도해주세요.":"이미지에서 텍스트를 추출하지 못했습니다. 다른 사진을 사용하거나 polishMode를 'enrich'로 바꾸어 LLM polish를 시도해주세요."),x(n.polishMode),g(r),E(n.provider),c("error"),(0,y.cY)("notes.ocr.empty",{provider:n.provider,requested:e,applied:r,usedLlmPolish:n.usedLlmPolish});return}p(n.markdown),T(n.markdown),E(n.provider),x(n.polishMode),g(r),c("review"),(0,y.cY)("notes.ocr.ok",{provider:n.provider,requested:e,applied:r,usedLlmPolish:n.usedLlmPolish,chars:n.markdown.length})}catch(e){R("OCR 실패: ".concat(String(e instanceof Error?e.message:e))),c("error"),(0,y.cY)("notes.ocr.exception",{reason:String(e)})}}async function U(){if(!o.baseUrl){R("Daemon URL 미설정"),c("error");return}let e=m!==A;c("saving"),(0,y.cY)("notes.save.start",{provider:D,selectedPolishMode:f,appliedPolishMode:h,edited:e,chars:m.length}),e&&O("edit");try{let e=await fetch("".concat(o.baseUrl,"/v1/notes/save"),{method:"POST",headers:{"content-type":"application/json",...o.token?{authorization:"Bearer ".concat(o.token)}:{}},body:JSON.stringify({markdown:m,sourceProvider:D,polishMode:h})});if(!e.ok){let t=await e.text().catch(()=>"");R("저장 실패 (HTTP ".concat(e.status,") ").concat(t.slice(0,160))),c("error"),(0,y.cY)("notes.save.error",{status:e.status,detail:t.slice(0,200)});return}let t=await e.json();c("saved"),d.oR.success("\uD83D\uDCDD 저장됨 — ".concat(t.vaultLabel," \xb7 ").concat(t.knowledgeId)),(0,y.cY)("notes.save.ok",{knowledgeId:t.knowledgeId,vaultLabel:t.vaultLabel}),setTimeout(l,400)}catch(e){R("저장 실패: ".concat(String(e instanceof Error?e.message:e))),c("error"),(0,y.cY)("notes.save.exception",{reason:String(e)})}}function O(e){o.baseUrl&&fetch("".concat(o.baseUrl,"/v1/metrics/notes-event"),{method:"POST",headers:{"content-type":"application/json",...o.token?{authorization:"Bearer ".concat(o.token)}:{}},body:JSON.stringify({type:e,polishMode:f})}).catch(()=>{})}function P(){let e=m!==A;(0,y.cY)("notes.cancel",{phase:i,edited:e,chars:m.length}),O("cancel"),e&&"review"===i&&O("discard"),l()}return(0,a.useEffect)(()=>{if(!t){c("idle"),p(""),T(""),E(""),R(""),x("minimal"),g("minimal");let e=(0,w.hn)();S(e.defaultUseLlmVision),C(e.defaultPreferHandwriting)}},[t]),(0,a.useEffect)(()=>{t&&n&&"idle"===i&&M(f)},[t,n]),(0,r.jsx)(v.lG,{open:t,onOpenChange:e=>{e||P()},children:(0,r.jsxs)(v.Cf,{className:"sm:max-w-lg",children:[(0,r.jsxs)(v.c7,{children:[(0,r.jsx)(v.L3,{children:"사진 → 마크다운 노트"}),(0,r.jsx)(v.rr,{children:"OCR 로 추출한 본문을 검토 + 편집 후 저장합니다."})]}),"ocr"===i&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 py-12 text-muted-foreground",children:[(0,r.jsx)(b.A,{className:"h-4 w-4 animate-spin"}),(0,r.jsx)("span",{children:"OCR 인식 중…"})]}),"saving"===i&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 py-12 text-muted-foreground",children:[(0,r.jsx)(b.A,{className:"h-4 w-4 animate-spin"}),(0,r.jsx)("span",{children:"저장 중…"})]}),"saved"===i&&(0,r.jsx)("div",{className:"flex items-center justify-center py-12 text-emerald-600",children:"✓ 저장 완료"}),"error"===i&&(0,r.jsxs)("div",{className:"space-y-3 py-4",children:[(0,r.jsx)("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:L}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)(u.$,{variant:"ghost",onClick:P,children:"닫기"}),n&&(0,r.jsx)(u.$,{onClick:()=>M(f),children:"다시 시도"})]})]}),"review"===i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[(0,r.jsxs)("span",{children:["provider: ",(0,r.jsx)("code",{children:D||"?"})]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("label",{className:"flex items-center gap-1",children:["polish:",(0,r.jsxs)("select",{value:f,onChange:e=>{let t=e.target.value;x(t),t!==h&&M(t)},className:"rounded border border-input bg-background px-1 py-0.5","aria-label":"polish mode",children:[(0,r.jsx)("option",{value:"minimal",children:"minimal (raw)"}),(0,r.jsx)("option",{value:"enrich",children:"enrich (polished)"})]})]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("label",{className:"flex items-center gap-1",title:"LLM 비전 우선시 — 더 정확하지만 느림 + 비쌈",children:[(0,r.jsx)("input",{type:"checkbox",checked:N,onChange:e=>{let t=e.target.checked;S(t),M(f,t,I)},"aria-label":"prefer LLM vision"}),"LLM 비전"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("label",{className:"flex items-center gap-1",title:"손글씨 우선시 — handwriting strength 추가 (registry 점수 boost)",children:[(0,r.jsx)("input",{type:"checkbox",checked:I,onChange:e=>{let t=e.target.checked;C(t),M(f,N,t)},"aria-label":"prefer handwriting"}),"손글씨"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{"data-testid":"notes-applied-polish",children:["applied: ",(0,r.jsx)("code",{children:h}),"enrich"===f&&"minimal"===h&&(0,r.jsx)("span",{className:"ml-1 text-amber-600",children:"(LLM polish 비활성)"})]}),(0,r.jsx)(u.$,{type:"button",variant:"ghost",size:"sm",className:"ml-auto text-xs",onClick:()=>M(f),"aria-label":"re-run OCR",children:"Re-OCR"})]}),(0,r.jsx)("textarea",{value:m,onChange:e=>p(e.target.value),rows:12,placeholder:"markdown 본문…","aria-label":"markdown editor",className:"w-full resize-y rounded-md border border-input bg-background px-3 py-2 font-mono text-xs shadow-xs focus:outline-none focus:ring-2 focus:ring-ring"})]}),(0,r.jsxs)(v.Es,{children:[(0,r.jsx)(u.$,{variant:"outline",onClick:P,children:"취소"}),(0,r.jsx)(u.$,{onClick:()=>void U(),disabled:0===m.trim().length,children:"저장"})]})]})]})})}function N(){let e=(0,a.useRef)(null),[t,n]=(0,a.useState)(!1),[s,l]=(0,a.useState)(null),[o,i]=(0,a.useState)("photo.jpg");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:()=>{var t;return null==(t=e.current)?void 0:t.click()},"aria-label":"save photo as note",title:"사진 → 마크다운 노트로 저장",className:"rounded p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground",children:(0,r.jsx)(g.A,{className:"h-3.5 w-3.5"})}),(0,r.jsx)("input",{ref:e,type:"file",accept:"image/*",capture:"environment",className:"hidden",onChange:function(e){var t;let r=null==(t=e.target.files)?void 0:t[0];e.target.value="",r&&(l(r),i(r.name),n(!0))}}),(0,r.jsx)(k,{open:t,image:s,filename:o,onClose:function(){n(!1),l(null)}})]})}var S=n(24805),I=n(88532);function C(){var e,t,n;let{client:s}=(0,j.Q)(),[l,o]=(0,a.useState)([]),[i,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),p=(0,a.useCallback)(async()=>{try{var e,t;let n=await s.fetchJson("/v1/setup/llm-providers");o(null!=(e=n.providers)?e:[]),c(null!=(t=n.activeProvider)?t:"")}catch(e){}},[s]);(0,a.useEffect)(()=>{p()},[p]);let f=l.filter(e=>"apiKey"===e.flow&&e.hasSavedKey||"auto"===e.flow),x=(0,a.useCallback)(async()=>{if(u||0===f.length)return;let e=f.findIndex(e=>e.provider===i),t=f[(e+1)%f.length];if(t.provider!==i||1!==f.length){m(!0);try{let e=await s.fetchJson("/v1/setup/llm-provider",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({provider:t.provider})});if(e&&e.error)d.oR.error("provider 전환 실패: ".concat(e.error));else{var n,r;c(null!=(r=null==e||null==(n=e.active)?void 0:n.provider)?r:t.provider)}}catch(e){d.oR.error("provider 전환 실패: ".concat(e instanceof Error?e.message:e))}finally{m(!1)}}},[u,f,i,s]);if(0===f.length)return null;let h=null!=(n=null!=(t=null==(e=l.find(e=>e.provider===i))?void 0:e.label)?t:i)?n:f[0].label;return(0,r.jsx)("button",{type:"button",onClick:()=>void x(),disabled:u||f.length<2,className:"rounded-full border border-border bg-card px-2 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:text-foreground disabled:opacity-60",title:f.length<2?"LLM provider: ".concat(h):"클릭하면 다음 provider 로 순환 (현재 ".concat(h,")"),children:h})}var D=n(68105),E=n(47956);function L(e){let{seats:t,selected:n,onSelect:a,disabled:s}=e;return 0===t.length?null:(0,r.jsx)("div",{className:"mb-2 flex flex-wrap items-center gap-1.5","aria-label":"요청할 자리",children:t.map(e=>(0,r.jsx)("button",{type:"button",disabled:s,"aria-pressed":n===e.id,onClick:()=>a(n===e.id?null:e.id),className:(0,f.cn)("rounded-full border px-2.5 py-1 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n===e.id?"border-accent bg-accent/15 font-semibold text-foreground":"border-border text-muted-foreground hover:bg-muted",s&&"opacity-60"),children:e.title},e.id))})}let R=[],A="elanous.seat-ask.client",T=null;function M(e){return/^\s*CTO\s*에게\s*물어봐(?:\s*[::]\s*|\s+)\S/i.test(e)}let U="elanous.pwa.chat.promptHistory.v1";function O(e,t){let n=e.lastIndexOf(t);if(n<0)return null;let r=e.slice(n+1);if(/[\s]/.test(r))return null;if(n>0){let t=e[n-1];if(!/\s/.test(t))return null}return r}function P(e){let{onSubmit:t,disabled:n,attachments:g=R,onAttached:b,onRemoveAttachment:v,tabId:w,voice:k,onListFiles:P,onListSkills:_,prefill:F}=e,{client:z,config:Y}=(0,j.Q)(),[q,H]=(0,a.useState)([]),[J,$]=(0,a.useState)(null),[K,B]=(0,a.useState)([]),[V,W]=(0,a.useState)([]),Q=(0,a.useRef)(null);Q.current||(Q.current=function(){let e=null;try{e=window.sessionStorage.getItem(A)}catch(e){}try{var t,n;null!=e||(e=null!=(n=null==(t=/(?:^|; )elanous\.seat-ask\.client=([a-f0-9-]{36})(?:;|$)/i.exec(document.cookie))?void 0:t[1])?n:null)}catch(e){}null!=e||(e=null!=T?T:crypto.randomUUID()),T=e;try{window.sessionStorage.setItem(A,e)}catch(e){}try{document.cookie="".concat(A,"=").concat(e,"; Path=/; SameSite=Lax; Max-Age=2592000")}catch(e){}return e}()),(0,a.useEffect)(()=>{if("function"!=typeof(null==z?void 0:z.listSeatAskAnswers))return()=>{};let e=!0;if(!Q.current)return()=>{e=!1};let t=!1;try{var n;let e=JSON.parse(null!=(n=window.sessionStorage.getItem("elanous.seat-ask.messages"))?n:"[]");e.length&&W(t=>[...t.filter(t=>{let{id:n}=t;return!e.some(e=>e.id===n)}),...e])}catch(e){}let r=async()=>{if(!t){t=!0;try{let{items:t}=await z.listSeatAskAnswers(Q.current);if(!e||!t.length)return;let r=t.map(e=>{let{id:t,text:n}=e;return{id:t,text:n}});W(e=>[...e,...r.filter(t=>{let{id:n}=t;return!e.some(e=>e.id===n)})]);try{var n;let a=JSON.parse(null!=(n=window.sessionStorage.getItem("elanous.seat-ask.messages"))?n:"[]"),s=[...a,...r.filter(e=>{let{id:t}=e;return!a.some(e=>e.id===t)})];window.sessionStorage.setItem("elanous.seat-ask.messages",JSON.stringify(s)),e&&await z.acknowledgeSeatAskAnswers(Q.current,t.map(e=>{let{id:t}=e;return t}))}catch(e){}}catch(e){}finally{t=!1}}},a=setInterval(r,1e4);return r(),()=>{e=!1,clearInterval(a)}},[z]);let[G,Z]=(0,a.useState)(""),[X,ee]=(0,a.useState)(!1),et=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=!0;return"function"!=typeof(null==z?void 0:z.listSeatRequests)?()=>{e=!1}:(z.listSeatRequests().then(t=>{e&&H(t.seats)}).catch(()=>{}),()=>{e=!1})},[z]);let en=(0,I.o1)("chatInput",w),[er,ea]=(0,a.useState)(()=>{let e=(0,I.N2)(en);return"string"==typeof e?e:""}),[es,el]=(0,a.useState)(()=>(function(){try{let e=window.localStorage.getItem(U);if(!e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(e=>"string"==typeof e)}catch(e){return[]}})()),[eo,ei]=(0,a.useState)(-1),ec=(0,a.useRef)(""),ed=!er.startsWith("/")||/\s/.test(er)?null:er.slice(1),eu=null!==ed?function(e){let t=e.trim().toLowerCase();return 0===t.length?m.bK:m.bK.filter(e=>e.name.toLowerCase().startsWith(t))}(ed):[],[em,ep]=(0,a.useState)(0);(0,a.useEffect)(()=>{ep(0)},[ed]);let ef=P?O(er,"@"):null,[ex,eh]=(0,a.useState)([]),[eg,eb]=(0,a.useState)(""),[ev,ej]=(0,a.useState)(0);(0,a.useEffect)(()=>{if(null===ef||!P)return;ej(0);let e=setTimeout(()=>{P(ef).then(e=>{eh(e.entries),eb(e.cwd)}).catch(()=>{})},200);return()=>clearTimeout(e)},[ef,P]),(0,a.useEffect)(()=>{null===ef&&(eh([]),eb(""),ej(0))},[ef]);let[ey,ew]=(0,a.useState)(!1),[ek,eN]=(0,a.useState)(0),eS=(0,a.useRef)(""),eI=ey?0===er.trim().length?es:es.filter(e=>e.toLowerCase().includes(er.trim().toLowerCase())):[],eC=()=>{ea(eS.current),ew(!1),eN(0),eS.current=""},eD=_?O(er,"$"):null,[eE,eL]=(0,a.useState)([]),[eR,eA]=(0,a.useState)(0),[eT,eM]=(0,a.useState)(D.kv);(0,a.useEffect)(()=>(eM((0,D.Vm)()),(0,D.$L)(eM)),[]);let{prediction:eU,predict:eO,clear:eP}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{baseUrl:t,token:n,enabled:r=!0,debounceMs:s=300}=e,[l,o]=(0,a.useState)(null),[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(null),m=(0,a.useRef)(null),p=(0,a.useRef)(null),f=(0,a.useCallback)(()=>{m.current&&(clearTimeout(m.current),m.current=null),p.current&&(p.current.abort(),p.current=null)},[]),x=(0,a.useCallback)(()=>{f(),o(null),u(null)},[f]),h=(0,a.useCallback)(function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(f(),!r||!t||0===e.trim().length&&0===a.length)return void o(null);m.current=setTimeout(async()=>{m.current=null;let r=new AbortController;p.current=r,c(!0);try{let s="".concat(t,"/v1/llm/route/predict"),l={"Content-Type":"application/json"};n&&n.length>0&&(l.Authorization="Bearer ".concat(n));let i=await fetch(s,{method:"POST",headers:l,body:JSON.stringify({text:e,attachments:a.map(e=>({kind:e}))}),signal:r.signal});if(r.signal.aborted)return;if(!i.ok)return void u("http-".concat(i.status));let c=await i.json();o(c),u(null)}catch(e){if(r.signal.aborted)return;u(e instanceof Error?e.message:String(e))}finally{p.current===r&&(p.current=null),c(!1)}},s)},[t,n,r,s,f]);return(0,a.useEffect)(()=>()=>f(),[f]),{prediction:l,inflight:i,error:d,predict:h,clear:x}}({baseUrl:Y.baseUrl,token:Y.token,enabled:eT.autoRouting});(0,a.useEffect)(()=>{if(!eT.autoRouting)return void eP();eO(er,g.map(e=>{var t;return(null==(t=e.mediaType)?void 0:t.startsWith("image/"))?"image":"document"}))},[er,eT.autoRouting,g,eO,eP]),(0,a.useEffect)(()=>{if(null===eD||!_)return;eA(0);let e=setTimeout(()=>{_(eD).then(e=>{eL(e.entries)}).catch(()=>{})},200);return()=>clearTimeout(e)},[eD,_]),(0,a.useEffect)(()=>{null===eD&&(eL([]),eA(0))},[eD]),(0,a.useEffect)(()=>{let e=(0,p.ht)();e&&(ea(e),d.oR.success("\uD83D\uDCE5 공유 받음 — 검토 후 보내세요"))},[]),(0,a.useEffect)(()=>{F&&(ea(F.text),(0,p.ht)())},[F]);let e_=(0,a.useRef)(null);(0,a.useEffect)(()=>(e_.current&&clearTimeout(e_.current),e_.current=setTimeout(()=>{0===er.length?(0,I.yd)(en):(0,I.Os)(en,er)},300),()=>{e_.current&&clearTimeout(e_.current)}),[er,en]);let eF=async e=>{ee(!0),Z("");try{if(M(e.text)){let t=await z.submitSeatAsk(e.text,Q.current);W(e=>[...e,{id:crypto.randomUUID(),text:t.reply}]),ea(""),(0,I.yd)(en);return}let t=await z.submitSeatRequest({seat:e.seat,text:e.text,...e.attachments.length?{attachments:e.attachments}:{}},e.key);for(let n of((0,y.cY)("pwa.seat-request.sent",{seat:t.seat,attachments:e.attachments.length}),B(e=>[...e,t]),et.current=null,e.attachments))null==v||v(n.id);ea(""),(0,I.yd)(en)}catch(t){et.current=e,t instanceof E.J_&&"unknown-seat"===t.code?(H(t.seats),J&&!t.seats.some(e=>e.id===J)&&($(null),et.current=null),Z("그 자리를 찾지 못했습니다 — ".concat(t.seats.map(e=>e.title).join(", ")))):t instanceof E.J_&&"attachments-unsupported"===t.code?Z("이 자리는 첨부를 받지 않습니다"):t instanceof E.J_&&"unknown-attachment"===t.code?Z("첨부가 만료됐습니다 — 다시 올려 주세요"):Z("접수하지 못했습니다 — 잠시 뒤 다시")}finally{ee(!1)}},ez=()=>eY(er),eY=e=>{if(n||X)return;let r=e.trim();if(M(r))return g.length?void Z("질문에는 첨부를 넣을 수 없습니다"):void eF({seat:"TC",text:r,attachments:[],key:crypto.randomUUID()});let a=/^@\S+\s+[\s\S]*\S$/.test(e.trimEnd());if((a||J)&&g.length>4)return void Z("자리 요청 첨부는 4개까지");if(J&&!r&&g.length)return void Z("자리 요청 내용을 입력해 주세요");if((a||J)&&r){let e=a?{text:r,attachments:[...g],key:crypto.randomUUID()}:{seat:J,text:r,attachments:[...g],key:crypto.randomUUID()},t=et.current;eF(t&&t.seat===e.seat&&t.text===e.text&&t.attachments.length===e.attachments.length&&t.attachments.every((t,n)=>{var r;return t.id===(null==(r=e.attachments[n])?void 0:r.id)})?t:e);return}(r||0!==g.length)&&(r.length>0&&(el(e=>{if(e[0]===r)return e;let t=[r,...e].slice(0,50);try{window.localStorage.setItem(U,JSON.stringify(t))}catch(e){}return t}),ei(-1),ec.current=""),t(r),ea(""),(0,I.yd)(en))},eq=e=>{let t=er.lastIndexOf("@");if(t<0)return;let n=er.slice(0,t),r=e.isDir?"".concat(e.relPath,"/"):e.relPath;ea("".concat(n,"@").concat(r).concat(e.isDir?"":" "))},eH=e=>{let t=er.lastIndexOf("$");if(t<0)return;let n=er.slice(0,t).trim();ea("/run-skill ".concat(e.name," ").concat(n?"".concat(n," "):""))},eJ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eu[Math.min(Math.max(em,0),eu.length-1)];e&&ea(":".concat(e.name," "))};(0,a.useEffect)(()=>{!(eo<0)&&es[eo]&&er!==es[eo]&&(ei(-1),ec.current="")},[er]);let e$=(0,m.FM)(er);return(0,r.jsxs)("div",{className:"border-t border-border bg-background p-3",children:[K.map(e=>{var t,n;return(0,r.jsxs)("div",{role:"status",className:"mb-2 rounded-md border border-border bg-card px-3 py-2 text-sm",children:["\uD83D\uDCE8 ",null!=(n=null==(t=q.find(t=>t.id===e.seat))?void 0:t.title)?n:e.seat," 접수 ",e.receiptId," \xb7 방금 \xb7 받음",e.attachments?" \xb7 첨부 ".concat(e.attachments):"",e.channel?" \xb7 채널 ".concat(e.channel):""]},e.receiptId)}),V.map(e=>(0,r.jsx)("p",{role:"status",className:"mb-2 rounded-md border border-border px-3 py-2 text-sm",children:e.text},e.id)),G&&(0,r.jsx)("p",{role:"alert",className:"mb-2 text-sm text-destructive",children:G}),(0,r.jsx)(L,{seats:q,selected:J,onSelect:e=>{$(e),Z("")},disabled:n||X}),ey&&(0,r.jsxs)("div",{className:"mb-2 overflow-hidden rounded-md border border-border bg-card shadow-md",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,r.jsx)("span",{children:"\uD83D\uDD0E reverse-i-search"}),(0,r.jsxs)("span",{className:"text-xs font-semibold",children:[eI.length," match",1===eI.length?"":"es"]})]}),0===eI.length?(0,r.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:0===er.length?"history 가 비어 있음":"일치 없음 — '".concat(er,"'")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ul",{className:"divide-y divide-border",children:eI.slice(0,8).map((e,t)=>{let n=t===ek;return(0,r.jsx)("li",{role:"button",tabIndex:-1,onMouseDown:n=>{n.preventDefault(),eN(t),requestAnimationFrame(()=>{ew(!1),eS.current="",ea(e)})},className:(0,f.cn)("flex cursor-pointer items-center gap-2 px-3 py-1.5 text-sm",n?"bg-accent/15 font-semibold":"hover:bg-accent/8"),children:(0,r.jsx)("span",{className:"line-clamp-2",children:e})},"".concat(e,"-").concat(t))})}),eI.length>8&&(0,r.jsxs)("div",{className:"px-3 py-1 text-[10px] text-muted-foreground",children:["+ ",eI.length-8," more (refine query)"]})]})]}),null!==ef&&ex.length>0&&(0,r.jsxs)("div",{className:"mb-2 overflow-hidden rounded-md border border-border bg-card shadow-md",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,r.jsxs)("span",{title:eg,children:["\uD83D\uDCC1 ",eg.length>48?"…"+eg.slice(-45):eg]}),(0,r.jsx)("span",{className:"text-xs font-semibold",children:ex.length})]}),(0,r.jsx)("ul",{className:"divide-y divide-border",children:ex.slice(0,12).map((e,t)=>{let n=t===ev;return(0,r.jsxs)("li",{role:"button",tabIndex:-1,onMouseDown:n=>{n.preventDefault(),ej(t),requestAnimationFrame(()=>eq(e))},className:(0,f.cn)("flex cursor-pointer items-center gap-2 px-3 py-1.5 text-sm",n?"bg-accent/15":"hover:bg-accent/8"),children:[(0,r.jsx)("span",{className:"text-xs",children:e.isDir?"\uD83D\uDCC2":"\uD83D\uDCC4"}),(0,r.jsxs)("span",{className:(0,f.cn)("font-mono",n?"font-semibold":"font-normal"),children:[e.name,e.isDir?"/":""]}),e.isDir&&(0,r.jsx)("span",{className:"ml-auto text-[10px] uppercase text-muted-foreground",children:"dir"})]},e.relPath)})}),ex.length>12&&(0,r.jsxs)("div",{className:"px-3 py-1 text-[10px] text-muted-foreground",children:["+ ",ex.length-12," more (refine query)"]})]}),null!==eD&&eE.length>0&&(0,r.jsxs)("div",{className:"mb-2 overflow-hidden rounded-md border border-border bg-card shadow-md",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,r.jsx)("span",{children:"✨ skills"}),(0,r.jsx)("span",{className:"text-xs font-semibold",children:eE.length})]}),(0,r.jsx)("ul",{className:"divide-y divide-border",children:eE.map((e,t)=>{let n=t===eR;return(0,r.jsxs)("li",{role:"button",tabIndex:-1,onMouseDown:n=>{n.preventDefault(),eA(t),requestAnimationFrame(()=>eH(e))},className:(0,f.cn)("flex cursor-pointer flex-col gap-0.5 px-3 py-1.5",n?"bg-accent/15":"hover:bg-accent/8"),children:[(0,r.jsx)("span",{className:(0,f.cn)("font-mono text-sm",n?"font-semibold":"font-normal"),children:e.name}),e.description.length>0&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:e.description})]},e.name)})})]}),null!==ed&&(0,r.jsxs)("div",{className:"mb-2 overflow-hidden rounded-md border border-border bg-card shadow-md",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-3 py-1.5 text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,r.jsx)("span",{children:"slash commands"}),(0,r.jsx)("span",{className:"text-xs font-semibold",children:eu.length})]}),0===eu.length?(0,r.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"일치하는 명령 없음"}):(0,r.jsx)("ul",{className:"divide-y divide-border",children:eu.map((e,t)=>{let n=t===em;return(0,r.jsxs)("li",{role:"button",tabIndex:-1,onMouseDown:n=>{n.preventDefault(),ep(t),eJ(e)},className:(0,f.cn)("flex cursor-pointer items-center gap-2 px-3 py-1.5 text-sm",n?"bg-accent/15":"hover:bg-accent/8"),children:[(0,r.jsxs)("span",{className:(0,f.cn)("font-mono",n?"font-semibold text-foreground":"text-foreground/86"),children:[":",e.name]}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:e.description})]},e.name)})})]}),g.length>0&&(0,r.jsx)("ul",{className:"mb-2 flex flex-wrap gap-1.5",children:g.map(e=>{var t,n;let a="string"==typeof e.mediaType&&e.mediaType.startsWith("image/");return(0,r.jsxs)("li",{className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-1.5 py-0.5 text-[11px]",title:null!=(t=e.path)?t:e.filename,children:[a?(0,r.jsx)("img",{src:function(e,t,n){if(!e)return"";let r=e.includes("?")?"&":"?",a=n?"".concat(r,"auth=").concat(encodeURIComponent(n)):"";return"".concat(null!=t?t:"").concat(e).concat(a)}(e.downloadUrl,Y.baseUrl,Y.token),alt:e.filename,className:"h-6 w-6 rounded-sm object-cover",loading:"lazy"}):(0,r.jsx)(s.A,{className:"h-3 w-3 text-muted-foreground","aria-hidden":!0}),(0,r.jsx)("span",{className:"max-w-[160px] truncate font-mono",children:e.filename}),(0,r.jsx)("span",{className:"text-muted-foreground",children:(n=e.size)<1024?"".concat(n," B"):n<1048576?"".concat((n/1024).toFixed(1)," kB"):"".concat((n/1024/1024).toFixed(1)," MB")}),v&&(0,r.jsx)("button",{type:"button",onClick:()=>v(e.id),"aria-label":"remove ".concat(e.filename),className:"rounded text-muted-foreground hover:text-rose-500",children:(0,r.jsx)(l.A,{className:"h-3 w-3"})})]},e.id)})}),(0,r.jsxs)("div",{className:"relative flex flex-wrap items-end gap-2 sm:flex-nowrap",children:[(0,r.jsxs)("div",{className:"flex shrink-0 basis-full items-center gap-0.5 pb-1 sm:basis-auto","data-elanous-composer-tools":!0,children:[(0,r.jsx)(x.T,{onAttached:b?e=>b([e]):void 0}),(0,r.jsx)(h.u,{onAttached:b}),(0,r.jsx)(N,{}),(0,r.jsx)(S.z,{}),(0,r.jsx)(C,{}),eT.autoRouting&&eU&&(0,r.jsx)("span",{className:"text-xs text-muted-foreground",title:"입력 의도 분류 \xb7 ACP 송신 경로는 변경하지 않습니다",children:eU.mission})]}),(0,r.jsx)("textarea",{value:er,onChange:e=>ea(e.target.value),onKeyDown:e=>{if(e.ctrlKey&&("r"===e.key||"R"===e.key)){e.preventDefault(),ey||(eS.current=er,ew(!0),eN(0),ea(""));return}if(ey){if("Enter"===e.key&&!e.shiftKey){e.preventDefault(),(()=>{if(0===eI.length)return eC();let e=Math.min(Math.max(ek,0),eI.length-1),t=eI[e];ew(!1),eN(0),eS.current="",ea(t)})();return}if("ArrowUp"===e.key){e.preventDefault(),eN(e=>Math.max(0,e-1));return}if("ArrowDown"===e.key){e.preventDefault(),eN(e=>Math.min(eI.length-1,e+1));return}if("Escape"===e.key){e.preventDefault(),eC();return}}if("Tab"===e.key&&!e.shiftKey&&(()=>{if(null!==ef&&ex.length>0){let e=Math.min(Math.max(ev,0),ex.length-1),t=ex[e],n=er.lastIndexOf("@");if(n<0)return!1;let r=er.slice(0,n),a=t.isDir?"".concat(t.name,"/"):t.name;return ea("".concat(r,"@").concat(a)),!0}if(null!==eD&&eE.length>0){let e=Math.min(Math.max(eR,0),eE.length-1),t=eE[e],n=er.lastIndexOf("$");if(n<0)return!1;let r=er.slice(0,n);return ea("".concat(r,"$").concat(t.name)),!0}if(null!==ed&&eu.length>0){let e=Math.min(Math.max(em,0),eu.length-1);return eJ(eu[e]),!0}return!1})())return void e.preventDefault();if(null!==ef&&ex.length>0){if("Enter"===e.key&&!e.shiftKey){e.preventDefault(),(()=>{if(0===ex.length)return;let e=Math.min(Math.max(ev,0),ex.length-1);eq(ex[e])})();return}if("ArrowUp"===e.key){e.preventDefault(),ej(e=>Math.max(0,e-1));return}if("ArrowDown"===e.key){e.preventDefault(),ej(e=>Math.min(ex.length-1,e+1));return}if("Escape"===e.key){e.preventDefault();let t=er.lastIndexOf("@");t>=0&&ea(er.slice(0,t));return}}if(null!==eD&&eE.length>0){if("Enter"===e.key&&!e.shiftKey){e.preventDefault(),(()=>{if(0===eE.length)return;let e=Math.min(Math.max(eR,0),eE.length-1);eH(eE[e])})();return}if("ArrowUp"===e.key){e.preventDefault(),eA(e=>Math.max(0,e-1));return}if("ArrowDown"===e.key){e.preventDefault(),eA(e=>Math.min(eE.length-1,e+1));return}if("Escape"===e.key){e.preventDefault();let t=er.lastIndexOf("$");t>=0&&ea(er.slice(0,t));return}}if(null!==ed&&eu.length>0){if("Enter"===e.key&&!e.shiftKey){e.preventDefault();let t=function(e,t,n){let r=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());if(r)return{kind:"run",line:":".concat(r.name)};let a=t[Math.min(Math.max(n,0),t.length-1)];return a?{kind:"complete",value:":".concat(a.name," ")}:null}(ed,eu,em);(null==t?void 0:t.kind)==="run"?eY(t.line):t&&ea(t.value);return}if("ArrowUp"===e.key){e.preventDefault(),ep(e=>Math.max(0,e-1));return}if("ArrowDown"===e.key){e.preventDefault(),ep(e=>Math.min(eu.length-1,e+1));return}if("Escape"===e.key){e.preventDefault(),ea("");return}}if("Enter"===e.key&&!e.shiftKey){e.preventDefault(),ez();return}if("ArrowUp"===e.key){(()=>{if(0===es.length||er.includes("\n"))return!1;-1===eo&&(ec.current=er);let e=Math.min(eo+1,es.length-1);return e===eo||(ei(e),ea(es[e]),!0)})()&&e.preventDefault();return}if("ArrowDown"===e.key){(()=>{if(eo<0||er.includes("\n"))return!1;if(0===eo)return ei(-1),ea(ec.current),!0;let e=eo-1;return ei(e),ea(es[e]),!0})()&&e.preventDefault();return}},placeholder:"메시지 \xb7 :help 명령 목록",rows:2,disabled:n||X,className:(0,f.cn)("min-h-[44px] max-h-[180px] min-w-0 flex-1 resize-y rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs focus:outline-none focus:ring-2 focus:ring-ring",e$&&"border-accent text-accent-foreground bg-accent/10",n&&"opacity-60")}),k&&(0,r.jsx)("button",{type:"button",onClick:k.onToggle,disabled:k.disabled,title:k.disabled?"daemon URL 미설정":k.phaseLabel,"data-elanous-action":"chat-voice-toggle-inline",className:(0,f.cn)("inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md border transition-colors",k.active?"border-rose-500/40 bg-rose-500/10 text-rose-600 hover:bg-rose-500/20":"border-input bg-background text-foreground hover:bg-muted",k.disabled&&"cursor-not-allowed opacity-50"),children:(0,r.jsxs)("span",{className:"relative inline-flex",children:[k.active?(0,r.jsx)(o.A,{className:"h-4 w-4"}):(0,r.jsx)(i.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{"aria-hidden":!0,className:(0,f.cn)("absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full",k.dotColor,("listening"===k.phase||"speaking"===k.phase)&&"animate-pulse")})]})}),(0,r.jsx)(u.$,{onClick:ez,disabled:n||X||!er.trim()&&0===g.length,size:"sm",children:(0,r.jsx)(c.A,{className:"h-4 w-4"})})]}),e$&&(0,r.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:"meta command — handled locally, not sent to LLM"})]})}},51851:(e,t,n)=>{n.d(t,{K:()=>i,u:()=>a});var r=n(20381);let a=932,s="elanous.pwa.wideView",l="elanous:wide-view";function o(){try{return"1"===window.localStorage.getItem(s)}catch(e){return!1}}function i(){let[e,t]=(0,r.useState)(null),[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(window.innerWidth),i(o());let e=()=>t(window.innerWidth),n=e=>{let t=e.detail;i("boolean"==typeof t?t:o())};return window.addEventListener("resize",e),window.addEventListener(l,n),window.addEventListener("storage",n),()=>{window.removeEventListener("resize",e),window.removeEventListener(l,n),window.removeEventListener("storage",n)}},[]),{compact:null!==e&&e<=a&&!n,setWide:(0,r.useCallback)(e=>{i(e);try{e?window.localStorage.setItem(s,"1"):window.localStorage.removeItem(s)}catch(e){}window.dispatchEvent(new CustomEvent(l,{detail:e}))},[])}}},53779:(e,t,n)=>{n.d(t,{D:()=>eg});var r=n(57865),a=n(20381),s=n(30413),l=n(36246);let o=[n(52681).A];var i=n(42052);let c={"coo-admin":"운영 할 일","release-schedule":"판 일정","release-checklist":"판별 칸"};function d(e){let{card:t}=e,[n,s]=(0,a.useState)(!1),l=t.items.map((e,t)=>({item:e,index:t})).sort((e,t)=>{var n,r;return(null!=(n=e.item.daysLeft)?n:1/0)-(null!=(r=t.item.daysLeft)?r:1/0)||e.index-t.index}),o=n?l:l.slice(0,12);return(0,r.jsxs)("section",{className:"rounded-lg border border-border bg-card p-3 text-card-foreground","data-elanous-card-kind":t.kind,children:[(0,r.jsxs)("h3",{className:"mb-2 text-sm font-semibold",children:[c[t.kind]," ",(0,r.jsxs)("span",{className:"font-normal text-muted-foreground",children:["\xb7 ",t.items.length]})]}),0===t.items.length&&(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"항목이 없습니다"}),(0,r.jsx)("ul",{className:"space-y-2",children:o.map(e=>{var t;let{item:n,index:a}=e,s=n.url?function(e){let t=e.trim();if(!t.includes("\\")){if(/^https?:\/\//i.test(t))try{let e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol?t:void 0}catch(e){return}return/^\/(?!\/)/.test(t)?t:void 0}}(n.url):void 0,l=function(e){if(null!==e)return e<0?{label:"".concat(-e,"일 지남"),tone:"overdue"}:0===e?{label:"오늘",tone:"soon"}:{label:"D-".concat(e),tone:e<=3?"soon":void 0}}(n.daysLeft);return(0,r.jsxs)("li",{className:"rounded border border-border/60 px-2 py-1.5 text-sm","data-elanous-card-item":a,children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline gap-2",children:[l&&(0,r.jsx)("span",{"data-due-status":l.tone,className:"overdue"===l.tone?"font-semibold text-red-600 dark:text-red-400":"soon"===l.tone?"font-semibold text-orange-600 dark:text-orange-400":"text-muted-foreground",children:l.label}),s?(0,r.jsx)("a",{className:"font-medium text-primary underline underline-offset-2",href:s,target:"_blank",rel:"noopener noreferrer",children:n.title}):(0,r.jsx)("span",{className:"font-medium",children:n.title})]}),(0,r.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:[n.state,n.owner,null!=(t=n.due)?t:void 0].filter(Boolean).join(" \xb7 ")})]},a)})}),t.items.length>12&&!n&&(0,r.jsxs)("button",{type:"button",className:"mt-2 text-xs font-medium text-primary underline underline-offset-2",onClick:()=>s(!0),children:[t.items.length-12,"개 더 보기"]})]})}function u(e){let{sources:t}=e;return(null==t?void 0:t.length)?(0,r.jsx)("ul",{"aria-label":"출처",className:"mt-1 space-y-0.5 rounded border border-border/60 bg-muted/20 px-2 py-1 text-xs text-muted-foreground",children:t.map((e,t)=>(0,r.jsxs)("li",{title:e.source,className:"break-words",children:[e.label,null!==e.ago?" \xb7 ".concat(e.ago):""]},"".concat(e.source,"-").concat(t)))}):null}var m=n(16759),p=n(72035),f=n(81796);function x(e){var t;let{acceptanceId:n}=e,{client:s}=(0,m.Q)(),[l,o]=(0,a.useState)(null),[i,c]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e;o(null),c(null);let t=!0,r=Date.now(),a=async()=>{if(!(!t||Date.now()-r>=36e5)){try{let e=await (0,f.PM)(s,n);if(!t||(o(e),c(null),(0,p.rr)(e.phase)))return}catch(n){if(!t)return;let e=n instanceof Error?n.message:String(n);if("harness ask not found"===e||/^HTTP 404\b/.test(e))return void c("접수 기록을 못 찾았습니다(데몬 재시작이면 사라질 수 있음)");c("상태 확인 실패 — ".concat(e.split(/\r?\n/,1)[0].slice(0,200)))}t&&Date.now()-r<36e5&&(e=setTimeout(()=>void a(),5e3))}};return a(),()=>{t=!1,e&&clearTimeout(e)}},[s,n]);let d="number"==typeof(null==l?void 0:l.elapsedSeconds)&&Number.isFinite(l.elapsedSeconds)?Math.max(0,Math.floor(l.elapsedSeconds)):0,u="string"==typeof(null==l?void 0:l.goalFile)?l.goalFile.split(/[\\/]/).pop():void 0;return(0,r.jsxs)("section",{"aria-label":"하니스 진행",className:"rounded-md border border-border bg-card px-3 py-2 text-xs not-italic text-card-foreground",children:[(0,r.jsx)("span",{className:"font-medium",children:(0,p.SK)(null!=(t=null==l?void 0:l.phase)?t:"accepted")}),(null==l?void 0:l.runId)&&(0,r.jsxs)("span",{className:"ml-2 font-mono",children:["런 ",l.runId.slice(0,8)]}),u&&(0,r.jsx)("span",{className:"ml-2 break-all",children:u}),(0,r.jsxs)("span",{className:"ml-2 text-muted-foreground",children:["경과 ",d>=60?"".concat(Math.floor(d/60),"분"):"".concat(d,"초")]}),i&&(0,r.jsx)("p",{role:"status",className:"mt-1 text-destructive",children:i})]})}var h=n(9645),g=n(55734),b=n(17439),v=n(57285),j=n(45258),y=n(62351);function w(e){let{block:t}=e,{msg:n,done:a,metrics:s}=t,l=[];if(s){let e=function(e){let t=Math.max(0,Math.round(e/1e3));return t<60?"".concat(t,"s"):t<3600?"".concat(Math.floor(t/60),"m ").concat(t%60,"s"):"".concat(Math.floor(t/3600),"h ").concat(Math.floor(t%3600/60),"m")}(s.elapsedMs);e&&s.elapsedMs>0&&l.push(e);let t=function(e){if(e<=0)return"";let t=e/1e3;return t>=1?"".concat(t.toFixed(1),"k tokens"):"".concat(e," tokens")}(s.tokenCount);t&&l.push(t)}let o=l.length?" (".concat(l.join(" \xb7 "),")"):"";return(0,r.jsxs)("div",{"data-elanous-block-kind":"agent_thinking","data-elanous-block-id":t.blockId,"data-elanous-done":a?"true":"false",className:(0,h.cn)("inline-flex items-center gap-1.5 rounded-full border bg-muted/30 px-2 py-0.5 text-[11px] font-mono",a?"border-border text-muted-foreground":"border-border/60 text-foreground"),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)("inline-block h-1.5 w-1.5 rounded-full",a?"bg-emerald-500":"bg-amber-400 motion-safe:animate-pulse")}),(0,r.jsxs)("span",{children:[a?"✓ ":"",n,a?"":"…",(0,r.jsx)("span",{className:"text-muted-foreground",children:o})]})]})}let k={running:"●",queued:"◌",done:"✓",error:"✗"},N={running:"border-amber-400/50 text-amber-300",queued:"border-border text-muted-foreground",done:"border-emerald-500/40 text-emerald-300",error:"border-destructive/50 text-destructive"};function S(e){let{block:t}=e,n=k[t.status],a=N[t.status];return(0,r.jsxs)("div",{"data-elanous-block-kind":"agent_status","data-elanous-block-id":t.blockId,"data-monad-agent-id":t.agentId,"data-elanous-status":t.status,className:(0,h.cn)("inline-flex items-center gap-1.5 rounded border bg-muted/20 px-2 py-0.5 text-[11px] font-mono",a),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)("running"===t.status?"motion-safe:animate-pulse":void 0),children:n}),(0,r.jsx)("span",{className:"font-semibold",children:t.agentId}),(0,r.jsx)("span",{className:"uppercase tracking-wide text-[10px] text-muted-foreground",children:t.status}),t.lastEvent&&(0,r.jsxs)("span",{className:"ml-1 truncate text-muted-foreground",children:["\xb7 ",t.lastEvent]})]})}let I={pending:"○","in-progress":"◐",done:"●",skipped:"⊘"},C={pending:"text-muted-foreground","in-progress":"text-amber-300",done:"text-emerald-400",skipped:"text-muted-foreground/60 line-through"};function D(e){let{block:t}=e;return(0,r.jsxs)("div",{"data-elanous-block-kind":"agent_plan","data-elanous-block-id":t.blockId,"data-elanous-plan-ref":t.ref,className:"rounded border border-border bg-muted/20 px-2 py-1.5 text-xs font-mono",children:[(0,r.jsxs)("div",{className:"mb-1 flex items-center justify-between text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,r.jsxs)("span",{children:["Plan \xb7 ",t.ref]}),"number"==typeof t.activeIndex&&t.steps.length>0&&(0,r.jsxs)("span",{children:[t.activeIndex+1,"/",t.steps.length]})]}),(0,r.jsx)("ol",{className:"m-0 list-none space-y-0.5 p-0",children:t.steps.map((e,n)=>{let a=n===t.activeIndex;return(0,r.jsxs)("li",{"data-elanous-step-index":n,"data-elanous-step-status":e.status,className:(0,h.cn)("flex items-start gap-2 leading-snug",C[e.status],a&&"done"!==e.status?"font-semibold motion-safe:animate-pulse":void 0),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none",children:I[e.status]}),(0,r.jsx)("span",{className:"flex-1 whitespace-pre-wrap",children:e.text})]},n)})})]})}let E={add:"bg-emerald-500/10 text-emerald-300",del:"bg-rose-500/10 text-rose-300",ctx:"text-muted-foreground"},L={add:"+",del:"-",ctx:" "};function R(e){let{block:t}=e,[n,s]=(0,a.useState)(!1),{adds:l,dels:o}=function(e){let t=0,n=0;for(let r of e.hunks)for(let e of r.lines)"add"===e.kind?t+=1:"del"===e.kind&&(n+=1);return{adds:t,dels:n}}(t),i=t.hunks.length;return(0,r.jsxs)("div",{"data-elanous-block-kind":"tool_diff","data-elanous-block-id":t.blockId,"data-elanous-file-path":t.filePath,className:"rounded border border-border bg-muted/20 px-2 py-1 text-xs font-mono",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>s(!n),"aria-expanded":n,className:"flex w-full items-center gap-2 text-left",children:[(0,r.jsx)("span",{"aria-hidden":"true",children:"⌥"}),(0,r.jsx)("span",{className:"font-semibold truncate",children:t.filePath}),t.language&&(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["\xb7",t.language]}),(0,r.jsxs)("span",{className:"ml-auto flex items-center gap-1.5 text-[10px]",children:[l>0&&(0,r.jsxs)("span",{className:"text-emerald-300",children:["+",l]}),o>0&&(0,r.jsxs)("span",{className:"text-rose-300",children:["-",o]}),(0,r.jsxs)("span",{className:"text-muted-foreground",children:[i," hunk",1===i?"":"s"]}),(0,r.jsx)("span",{"aria-hidden":"true",className:"text-muted-foreground",children:n?"▾":"▸"})]})]}),n&&(0,r.jsx)("div",{className:"mt-1 overflow-x-auto rounded bg-background/40",children:t.hunks.map((e,t)=>(0,r.jsxs)("div",{"data-elanous-hunk-index":t,className:"border-t border-border/40 first:border-t-0",children:[(0,r.jsxs)("div",{className:"px-2 py-0.5 text-[10px] text-muted-foreground bg-muted/30",children:["@@ -",e.oldStart,",",e.oldLines," +",e.newStart,",",e.newLines," @@"]}),(0,r.jsx)("pre",{className:"m-0 whitespace-pre p-0 text-[11px] leading-tight",children:e.lines.map((e,t)=>(0,r.jsxs)("div",{"data-elanous-line-kind":e.kind,className:(0,h.cn)("flex items-baseline px-2 py-px",E[e.kind]),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"w-3 shrink-0 select-none",children:L[e.kind]}),(0,r.jsx)("span",{className:"flex-1",children:e.text})]},t))})]},t))})]})}function A(e){var t,n,a,s;let{hit:l}=e;return(0,r.jsx)("li",{"data-elanous-search-hit-file":l.filePath,"data-elanous-search-hit-line":l.line,className:"rounded px-2 py-1 hover:bg-muted/30",children:(0,r.jsxs)("a",{href:function(e){var t;let n=null!=(t=e.column)?t:1;return"vscode://file/".concat(e.filePath,":").concat(e.line,":").concat(n)}(l),className:"block",target:"_blank",rel:"noopener",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2 text-[11px]",children:[(0,r.jsx)("span",{className:"font-semibold truncate",children:l.filePath}),(0,r.jsxs)("span",{className:"text-muted-foreground",children:[":",l.line]}),void 0!==l.column&&(0,r.jsxs)("span",{className:"text-muted-foreground",children:[":",l.column]})]}),(null!=(a=null==(t=l.contextBefore)?void 0:t.length)?a:0)>0&&(0,r.jsx)("pre",{className:"m-0 mt-0.5 whitespace-pre-wrap break-words text-[10px] text-muted-foreground/70",children:l.contextBefore.join("\n")}),(0,r.jsx)("pre",{className:"m-0 whitespace-pre-wrap break-words text-[10px] text-foreground",children:l.snippet}),(null!=(s=null==(n=l.contextAfter)?void 0:n.length)?s:0)>0&&(0,r.jsx)("pre",{className:"m-0 whitespace-pre-wrap break-words text-[10px] text-muted-foreground/70",children:l.contextAfter.join("\n")})]})})}function T(e){let{block:t}=e,[n,s]=(0,a.useState)(!1),l=t.hits.length,o=n?t.hits:t.hits.slice(0,5),i=l-o.length;return(0,r.jsxs)("div",{"data-elanous-block-kind":"tool_search_hits","data-elanous-block-id":t.blockId,"data-elanous-search-query":t.query,"data-elanous-accum-count":t.accumCount,className:(0,h.cn)("rounded border border-border bg-muted/20 px-2 py-1 text-xs font-mono"),children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2 mb-1",children:[(0,r.jsx)("span",{"aria-hidden":"true",children:"\uD83D\uDD0E"}),(0,r.jsx)("span",{className:"font-semibold",children:t.query}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:[t.accumCount," hit",1===t.accumCount?"":"s"]}),t.truncated&&(0,r.jsx)("span",{className:"text-[10px] text-amber-300",children:"truncated"})]}),0===l?(0,r.jsx)("div",{className:"text-[10px] text-muted-foreground italic",children:"(no hits yet)"}):(0,r.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:o.map((e,t)=>(0,r.jsx)(A,{hit:e},"".concat(e.filePath,":").concat(e.line,":").concat(t)))}),i>0&&(0,r.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"mt-1 w-full rounded bg-muted/40 px-2 py-0.5 text-[10px] text-muted-foreground hover:bg-muted/60",children:["+ ",i," more"]}),n&&l>5&&(0,r.jsx)("button",{type:"button",onClick:()=>s(!1),className:"mt-1 w-full rounded bg-muted/40 px-2 py-0.5 text-[10px] text-muted-foreground hover:bg-muted/60",children:"collapse"})]})}let M={stdout:"text-foreground",stderr:"text-rose-300",http:"text-amber-300",generic:"text-muted-foreground"},U={stdout:"▌",stderr:"▌",http:"↹",generic:"\xb7"};function O(e){var t;let{block:n}=e,[s,l]=(0,a.useState)(!1),o=n.lines.length,i=0===o?"":n.lines[o-1],c=void 0===n.exitCode?"":0===n.exitCode?"text-emerald-300":"text-rose-300";return(0,r.jsxs)("div",{"data-elanous-block-kind":"tool_progress","data-elanous-block-id":n.blockId,"data-elanous-stream":n.stream,"data-elanous-done":n.done?"true":"false",className:"rounded border border-border bg-muted/20 px-2 py-1 text-xs font-mono",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>l(!s),"aria-expanded":s,className:"flex w-full items-center gap-2 text-left",children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)(M[n.stream],!n.done&&"motion-safe:animate-pulse"),children:U[n.stream]}),(0,r.jsx)("span",{className:"uppercase tracking-wide text-[10px] text-muted-foreground",children:n.stream}),!s&&i&&(0,r.jsx)("span",{className:(0,h.cn)("flex-1 truncate",M[n.stream]),children:i}),(0,r.jsxs)("span",{className:"ml-auto flex items-center gap-1.5 text-[10px] text-muted-foreground",children:[(0,r.jsxs)("span",{children:[o," line",1===o?"":"s"]}),void 0!==n.bytesSoFar&&(0,r.jsxs)("span",{children:["\xb7 ",(t=n.bytesSoFar)<1024?"".concat(t,"B"):t<1048576?"".concat((t/1024).toFixed(1),"KB"):"".concat((t/1048576).toFixed(1),"MB")]}),void 0!==n.exitCode&&(0,r.jsxs)("span",{className:c,children:["\xb7 exit ",n.exitCode]}),n.done&&!n.exitCode&&(0,r.jsx)("span",{className:"text-emerald-300",children:"\xb7 ✓"}),(0,r.jsx)("span",{"aria-hidden":"true",children:s?"▾":"▸"})]})]}),s&&(0,r.jsx)("pre",{className:(0,h.cn)("m-0 mt-1 max-h-64 overflow-auto rounded bg-background/40 p-1.5 text-[11px] leading-tight whitespace-pre",M[n.stream]),children:0===n.lines.length?"(no output yet)":n.lines.join("\n")})]})}function P(e){var t;let{group:n}=e,a=function(e){if(0===e.samples.length)return"";if(1===e.samples.length)return"M0,".concat(9," L").concat(80,",").concat(9);let t=e.max-e.min||1,n=e.samples.map((n,r)=>{let a=r/(e.samples.length-1)*80,s=(n.value-e.min)/t;return"".concat(a.toFixed(1),",").concat((18-18*s).toFixed(1))});return"M".concat(n[0]," L").concat(n.slice(1).join(" L"))}(n);return(0,r.jsxs)("div",{"data-elanous-perf-metric":n.metric,"data-elanous-perf-latest":n.latest,className:"flex items-center gap-2 text-[10px] font-mono",children:[(0,r.jsx)("span",{className:"text-muted-foreground truncate min-w-[120px]",children:n.metric}),(0,r.jsx)("svg",{width:80,height:18,viewBox:"0 0 ".concat(80," ").concat(18),className:"shrink-0","aria-label":"".concat(n.metric," sparkline"),children:(0,r.jsx)("path",{d:a,fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinejoin:"round",strokeLinecap:"round",className:"text-amber-400"})}),(0,r.jsx)("span",{className:"text-foreground tabular-nums",children:(t=n.latest)>=1e3?(t/1e3).toFixed(1)+"k":t>=10?t.toFixed(0):t.toFixed(1)}),n.unit&&(0,r.jsx)("span",{className:"text-muted-foreground",children:n.unit})]})}function _(e){let{block:t}=e,n=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=t.get(n.metric);e?e.push(n):t.set(n.metric,[n])}let n=[];for(let[e,r]of t.entries()){let t=1/0,a=-1/0;for(let e of r)e.value<t&&(t=e.value),e.value>a&&(a=e.value);let s=r[r.length-1].value,l={metric:e,samples:r,latest:s,min:t,max:a},o=r[r.length-1].unit;void 0!==o&&(l.unit=o),n.push(l)}return n.sort((e,t)=>t.samples.length-e.samples.length),n})(t.samples),[t.samples]);return 0===n.length?(0,r.jsx)("div",{"data-elanous-block-kind":"perf_session","data-elanous-block-id":t.blockId,className:"rounded border border-border bg-muted/20 px-2 py-1 text-[10px] text-muted-foreground italic",children:"(no perf samples yet)"}):(0,r.jsx)("div",{"data-elanous-block-kind":"perf_session","data-elanous-block-id":t.blockId,"data-elanous-perf-metric-count":n.length,className:(0,h.cn)("rounded border border-border bg-muted/20 px-2 py-1","flex flex-col gap-0.5"),children:n.map(e=>(0,r.jsx)(P,{group:e},e.metric))})}let F="'none'";function z(e){let t=function(e){if(!e)return[];let t=new Set;for(let n of e)if("string"==typeof n)try{let e=new URL(n);if("http:"!==e.protocol&&"https:"!==e.protocol||e.username||e.password||"/"!==e.pathname||e.search||e.hash)continue;t.add(e.origin)}catch(e){}return[...t]}(e);return t.length>0?t.join(" "):F}let Y="ui/notifications/tool-result",q=(e,t,n)=>"".concat(e,":").concat(t,":").concat(typeof n,":").concat(String(n));function H(e,t,n){return{jsonrpc:"2.0",id:e,error:{code:t,message:n}}}function J(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function $(e){return{frames:{...e.frames},pending:{...e.pending},pushes:[...e.pushes],unmatched:[...e.unmatched],nextGeneration:e.nextGeneration}}function K(e){return{jsonrpc:"2.0",method:Y,params:{content:[],_meta:{"elanous/resultOmittedReason":e}}}}function B(e){let{message:t,omitted:n,bytes:r}=function(e){if(!(J(e)&&(!("content"in e)||Array.isArray(e.content))))return{message:K("not_a_tool_result"),omitted:"not_a_tool_result",bytes:-1};let t={jsonrpc:"2.0",method:Y,params:e};try{structuredClone(t);let e=new TextEncoder().encode(JSON.stringify(t)).byteLength;if(e<=65536)return{message:t,bytes:e};return{message:K("too_large"),omitted:"too_large",bytes:e}}catch(e){return{message:K("unserializable"),omitted:"unserializable",bytes:-1}}}(e.result);return{kind:"notify",frameId:e.frameId,message:t,bytes:r,...n?{omitted:n}:{}}}function V(e,t){for(let[n,r]of(delete e.frames[t],Object.entries(e.pending)))r.frameId===t&&delete e.pending[n];e.pushes=e.pushes.filter(e=>e.frameId!==t)}function W(e){return{frames:{},pending:{},pushes:[],unmatched:[],nextGeneration:e.nextGeneration}}function Q(e,t,n,r,a){let s=q(t,n,r),l=e.frames[t];if(!e.pending[s]||!l||l.generation!==n)return{state:e,actions:[]};let o=$(e);return delete o.pending[s],{state:o,actions:[{kind:"respond",frameId:t,message:"result"in a?{jsonrpc:"2.0",id:r,result:a.result}:{jsonrpc:"2.0",id:r,error:{code:-32603,message:"Daemon tool call failed",data:a.error}}}]}}let G=new WeakMap;function Z(e){let{html:t,connectDomains:n,resourceDomains:s,server:l,tool:o,toolCallId:i,toolResult:c}=e,d=function(){let{connectDomains:e,resourceDomains:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=z(e),r=z(t);return["default-src ".concat(F),"connect-src ".concat(n),"img-src ".concat(r),"media-src ".concat(r),"style-src ".concat(r),"font-src ".concat(r),"script-src 'unsafe-inline' ".concat(r),"base-uri ".concat(F),"form-action ".concat(F),"navigate-to ".concat(F)].join("; ")}({connectDomains:n,resourceDomains:s}),u='<meta http-equiv="Content-Security-Policy" content="'.concat(d,'">').concat(t),p=(0,a.useRef)(null),f=(0,a.useId)(),x=(0,a.useContext)(m.C),[h,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(null),j=(0,a.useCallback)(()=>{var e,t;g(!0),v(null!=(t=null==(e=p.current)?void 0:e.contentWindow)?t:null)},[]);return(0,a.useEffect)(()=>{if(b&&x)return function(e,t){let n=e.register({frameId:t.frameId,source:t.source,server:t.server,...void 0!==t.tool?{tool:t.tool}:{},...void 0!==t.toolCallId?{toolCallId:t.toolCallId}:{}}),r=void 0!==t.toolResult&&void 0!==t.tool;return(0,y.cY)("mcp-app.bridge.attach",{frameId:t.frameId,server:t.server,hasTool:void 0!==t.tool,hasToolCallId:void 0!==t.toolCallId,hasToolResult:void 0!==t.toolResult,published:r,...r?{}:{skipped:void 0===t.tool?"no-tool":"no-tool-result"}}),r&&e.publish({server:t.server,tool:t.tool,...void 0!==t.toolCallId?{toolCallId:t.toolCallId}:{},result:t.toolResult}),n}(function(e,t){let n=G.get(e);if(n)return n;let r=function(e,t){let n={frames:{},pending:{},pushes:[],unmatched:[],nextGeneration:1},r=(e,t)=>{var r;let a=null==(r=n.frames[e])?void 0:r.source;if("function"!=typeof(null==a?void 0:a.postMessage))return"no-target";try{return a.postMessage(t,"*"),"posted"}catch(e){return"threw"}},a=e=>{for(let s of e){if("observe"===s.kind&&(0,y.cY)("mcp-app.bridge.discard",{reason:s.reason,...s.method?{method:s.method}:{}}),"notify"===s.kind){let e=r(s.frameId,s.message);(0,y.cY)("mcp-app.bridge.push",{frameId:s.frameId,post:e,bytes:s.bytes,maxBytes:65536,...s.omitted?{omitted:s.omitted}:{}})}"respond"===s.kind&&r(s.frameId,s.message),"daemon-tool-call"===s.kind&&t.callWidgetTool({server:s.server,tool:s.tool,arguments:s.arguments}).then(e=>{let t=Q(n,s.frameId,s.generation,s.id,{result:e});n=t.state,a(t.actions)},e=>{let t=Q(n,s.frameId,s.generation,s.id,{error:String(e)});n=t.state,a(t.actions)})}},s=e=>{let t=function(e,t,n){let r=Object.values(e.frames).find(e=>e.source===t);if(!r)return{state:e,actions:[{kind:"observe",reason:"untrusted-source"}]};if(!J(n)||"2.0"!==n.jsonrpc||"string"!=typeof n.method)return{state:e,actions:[{kind:"observe",reason:"malformed-message"}]};if("notifications/initialized"===n.method||"ui/notifications/initialized"===n.method){var a;if(r.ready)return{state:e,actions:[]};let t=$(e);t.frames[r.frameId]={...r,ready:!0};let n=t.pushes.filter(e=>e.frameId===r.frameId&&e.generation===r.generation);return t.pushes=t.pushes.filter(e=>e.frameId!==r.frameId||e.generation!==r.generation),{state:t,actions:n.map(B)}}if(!("string"==typeof(a=n.id)||"number"==typeof a&&Number.isFinite(a)))return{state:e,actions:[]};if("ui/initialize"===n.method)return{state:e,actions:[{kind:"respond",frameId:r.frameId,message:{jsonrpc:"2.0",id:n.id,result:{protocolVersion:"2025-11-21",hostInfo:{name:"elanous",version:"1"},hostCapabilities:{serverTools:{}},hostContext:{}}}}]};if("ui/open-link"===n.method||"tools/call"!==n.method)return{state:e,actions:[{kind:"observe",reason:"unknown-method",method:n.method},{kind:"respond",frameId:r.frameId,message:H(n.id,-32601,"Method not found")}]};if(!J(n.params)||"string"!=typeof n.params.name)return{state:e,actions:[{kind:"respond",frameId:r.frameId,message:H(n.id,-32602,"Invalid params")}]};let s=q(r.frameId,r.generation,n.id);if(e.pending[s])return{state:e,actions:[{kind:"respond",frameId:r.frameId,message:H(n.id,-32600,"Duplicate request id")}]};let l=$(e);return l.pending[s]={frameId:r.frameId,id:n.id,generation:r.generation},{state:l,actions:[{kind:"daemon-tool-call",frameId:r.frameId,id:n.id,generation:r.generation,server:r.server,tool:n.params.name,arguments:n.params.arguments}]}}(n,e.source,e.data);n=t.state,a(t.actions)};return e.addEventListener("message",s),{register(e){var t;let r=function(e,t){let n=$(e);for(let[e,r]of Object.entries(n.frames))(e===t.frameId||r.source===t.source)&&V(n,e);let r=n.nextGeneration++;n.frames[t.frameId]={...t,generation:r,ready:!1};let a=n.unmatched.filter(e=>e.server===t.server&&e.tool===t.tool&&void 0!==e.toolCallId&&e.toolCallId===t.toolCallId);for(let e of(n.unmatched=n.unmatched.filter(e=>!a.includes(e)),a))n.pushes.push({...e,frameId:t.frameId,generation:r});return{state:n,actions:[]}}(n,e);n=r.state,a(r.actions);let s=null==(t=n.frames[e.frameId])?void 0:t.generation;return()=>{void 0!==s&&(n=function(e,t,n){let r=e.frames[t];if(!r||void 0!==n&&r.generation!==n)return{state:e,actions:[]};let a=$(e);return V(a,t),{state:a,actions:[]}}(n,e.frameId,s).state)}},publish(e){let t=function(e,t){let n=e,r=[],a=!1;for(let s of Object.values(e.frames)){if(s.server!==t.server||s.tool!==t.tool||(void 0!==t.toolCallId||void 0!==s.toolCallId)&&t.toolCallId!==s.toolCallId)continue;a=!0;let e=function(e,t){let n=e.frames[t.frameId];if(!n||n.generation!==t.generation)return{state:e,actions:[]};if(n.ready)return{state:e,actions:[B(t)]};let r=$(e);return r.pushes.push(t),{state:r,actions:[]}}(n,{...t,frameId:s.frameId,generation:s.generation});n=e.state,r.push(...e.actions)}if(!a&&void 0!==t.toolCallId){let e=$(n);e.unmatched=[...e.unmatched,t],n=e}return{state:n,actions:r}}(n,e);n=t.state,a(t.actions)},disposeConversation(){n=W(n)},close(){e.removeEventListener("message",s),n=W(n)}}}(t,{async callWidgetTool(t){let{tool:n,arguments:r}=t;return e.fetchJson("/v1/mcp/widgets/call",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({toolName:n,args:null!=r?r:{}})})}});return G.set(e,r),r}(x.client,window),{frameId:f,source:b,server:null!=l?l:"",...void 0!==o?{tool:o}:{},...void 0!==i?{toolCallId:i}:{},...void 0!==c?{toolResult:c}:{}})},[b,x,f,l,o,i,c]),(0,r.jsx)("iframe",{ref:p,"data-elanous-mcp-app-frame":"true","data-elanous-mcp-server":null!=l?l:"",sandbox:"allow-scripts",srcDoc:u,title:"MCP App",onLoad:j,className:"mt-2 w-full rounded border border-border bg-background transition-[height] ".concat(h?"h-96":"h-10")})}function X(e,t){let n=e.headers.get(t);if(null!==n)return n.split(",").map(e=>e.trim()).filter(e=>e.length>0)}async function ee(e,t){if(!t.server||!t.uri)return null;try{let n=await e.fetchResponse(function(e,t){let n=new URLSearchParams({server:e,uri:t});return"".concat("/v1/mcp/resources","?").concat(n.toString())}(t.server,t.uri),t.signal?{signal:t.signal}:void 0);if(!n.ok)return null;let r=await n.text();if(0===r.length)return null;let a=X(n,"x-elanous-mcp-app-connect-domains"),s=X(n,"x-elanous-mcp-app-resource-domains");return{html:r,...a?{connectDomains:a}:{},...s?{resourceDomains:s}:{}}}catch(e){return null}}let et=["__","."];function en(e){var t,n,s,l,o,i;let{block:c}=e,d=function(e){for(let t of et){let n=e.indexOf(t);if(n>0)return e.slice(0,n)}return""}(c.toolName),u=(0,a.useContext)(m.C),[p,f]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(c.html||!u||!d||!c.screenUrl)return;let e=new AbortController,t=!0,n=Date.now();return(0,y.cY)("mcp-app.body.fetch",{server:d,uri:c.screenUrl,reason:"not-embedded"}),ee(u.client,{server:d,uri:c.screenUrl,signal:e.signal}).then(e=>{var r,a,s,l,o;t&&((0,y.cY)("mcp-app.body.fetched",{server:d,elapsedMs:Date.now()-n,ok:null!==e,bytes:null!=(s=null==e?void 0:e.html.length)?s:0,connectDomains:null!=(l=null==e||null==(r=e.connectDomains)?void 0:r.length)?l:null,resourceDomains:null!=(o=null==e||null==(a=e.resourceDomains)?void 0:a.length)?o:null}),f(e))}).catch(e=>{t&&(0,y.cY)("mcp-app.body.fetched",{server:d,elapsedMs:Date.now()-n,ok:!1,threw:!0,reason:e instanceof Error?e.message.slice(0,200):String(e).slice(0,200)})}),()=>{t=!1,e.abort()}},[c.html,c.screenUrl,u,d]);let x=null!=(n=null!=(t=c.html)?t:null==p?void 0:p.html)?n:void 0,{connectDomains:h,resourceDomains:g}={...(null!=(s=c.connectDomains)?s:null==p?void 0:p.connectDomains)?{connectDomains:null!=(l=c.connectDomains)?l:null==p?void 0:p.connectDomains}:{},...(null!=(o=c.resourceDomains)?o:null==p?void 0:p.resourceDomains)?{resourceDomains:null!=(i=c.resourceDomains)?i:null==p?void 0:p.resourceDomains}:{}};return(0,r.jsxs)("section",{"data-elanous-block-kind":"mcp_app","data-elanous-tool-id":c.toolId,"data-elanous-tool-name":c.toolName,className:"rounded border border-border bg-muted/40 px-3 py-2 text-sm",children:[(0,r.jsx)("div",{className:"font-medium",children:c.toolName}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground",children:c.toolId}),(0,r.jsx)("div",{className:"mt-1 break-all font-mono text-xs",children:c.screenUrl}),x&&(0,r.jsx)(Z,{html:x,connectDomains:h,resourceDomains:g,server:d,tool:c.toolName,toolCallId:c.toolId,toolResult:c.toolResult}),c.fallbackText&&(0,r.jsx)("p",{className:"mt-2 whitespace-pre-wrap text-sm",children:c.fallbackText})]})}let er={pre:function(e){let{children:t}=e,n=(0,a.useMemo)(()=>(function e(t){if(null==t||"boolean"==typeof t)return"";if("string"==typeof t||"number"==typeof t)return String(t);if(Array.isArray(t))return t.map(e).join("");if("object"==typeof t&&"props"in t){let n=t.props;return e(null==n?void 0:n.children)}return""})(t),[t]),s=(0,a.useMemo)(()=>(function e(t){if(null==t||"object"!=typeof t)return null;if(Array.isArray(t)){for(let n of t){let t=e(n);if(t)return t}return null}let n=t.props;if((null==n?void 0:n.className)&&"string"==typeof n.className){var r;let e=/language-([\w+-]+)/.exec(n.className);if(e)return null!=(r=e[1])?r:null}return(null==n?void 0:n.children)?e(n.children):null})(t),[t]),l=(0,a.useMemo)(()=>"string"==typeof n&&0!==n.length&&(n.length>800||n.split("\n").length>12),[n]),[o,i]=(0,a.useState)(!l),[c,d]=(0,a.useState)(!1);if(!l)return(0,r.jsx)("pre",{children:t});let u=function(e){let t=e.split("\n");return t.length<=8?e:t.slice(0,8).join("\n")+"\n…"}(n),m=n.split("\n").length,p=async()=>{try{var e;await (null==(e=navigator.clipboard)?void 0:e.writeText(n)),d(!0),(0,y.cY)("pwa.code-block.copy",{lang:s,lineCount:m}),setTimeout(()=>d(!1),1500)}catch(e){(0,y.cY)("pwa.code-block.copy-error",{reason:String(e)})}};return(0,r.jsxs)("div",{className:"my-2 overflow-hidden rounded-md border border-border bg-muted/40","data-testid":"collapsible-code-block",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border bg-muted/60 px-2 py-1 text-[11px] text-muted-foreground",children:[(0,r.jsxs)("span",{className:"font-mono",children:[null!=s?s:"code"," \xb7 ",m," lines \xb7 ",n.length," chars"]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{p()},"aria-label":"copy code",className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 hover:bg-muted hover:text-foreground",children:[c?(0,r.jsx)(g.A,{className:"h-3 w-3"}):(0,r.jsx)(b.A,{className:"h-3 w-3"}),c?"copied":"copy"]}),(0,r.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),"aria-label":o?"collapse code":"expand code",className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 hover:bg-muted hover:text-foreground",children:[o?(0,r.jsx)(v.A,{className:"h-3 w-3"}):(0,r.jsx)(j.A,{className:"h-3 w-3"}),o?"collapse":"show all"]})]})]}),(0,r.jsx)("pre",{className:"!my-0 overflow-x-auto !rounded-none !bg-transparent !p-2 !text-[13px]",children:o?t:u})]})}};function ea(e){let{text:t,showCards:n}=e;if(!n)return(0,r.jsx)(es,{text:t});let a=(0,i.g)(t);return(0,r.jsxs)(r.Fragment,{children:[a.text.trim()&&(0,r.jsx)(es,{text:a.text}),a.cards.map((e,t)=>(0,r.jsx)(d,{card:e},t))]})}function es(e){let{text:t}=e;return(0,r.jsx)("div",{className:"prose prose-sm max-w-none break-words [&_pre]:bg-muted [&_pre]:p-2 [&_pre]:rounded [&_code]:font-mono [&_code]:text-xs [&_p]:my-1 [&_table]:text-xs",children:(0,r.jsx)(l.oz,{remarkPlugins:o,components:er,children:t})})}function el(e){let{block:t,children:n,mobileSimple:s=!1}=e,[l,o]=(0,a.useState)(!1),i="running"===t.status?"⋯":"done"===t.status?"✓":"✗",c="running"===t.status?"text-muted-foreground border-border":"error"===t.status?"text-destructive border-destructive/40":"text-foreground border-border",d=s||!!t.args&&Object.keys(t.args).length>0||!!n,u=[t.startedAt,t.endedAt].filter(e=>"number"==typeof e).map(e=>new Date(e).toLocaleTimeString()).join(" → ");return(0,r.jsxs)("div",{"data-elanous-block-kind":"tool_use","data-elanous-tool-name":t.name,"data-elanous-tool-status":t.status,className:(0,h.cn)("rounded border bg-muted/40 px-2 py-1 text-xs font-mono",s&&"min-w-0",c),children:[(0,r.jsxs)("button",{type:"button",onClick:d?()=>o(!l):void 0,className:(0,h.cn)("flex w-full items-center gap-2 text-left",s&&"min-w-0 overflow-hidden whitespace-nowrap",d?"cursor-pointer":"cursor-default"),"aria-expanded":d?l:void 0,children:[(0,r.jsx)("span",{"aria-hidden":"true",children:i}),(0,r.jsx)("span",{className:"font-semibold",children:t.name}),t.summary&&(0,r.jsx)("span",{className:"ml-1 truncate text-muted-foreground",children:t.summary}),u&&(0,r.jsx)("span",{className:"ml-auto text-muted-foreground",children:u}),d&&(0,r.jsx)("span",{className:"ml-auto text-muted-foreground","aria-hidden":"true",children:l?"▾":"▸"})]}),l&&d&&(s?(0,r.jsxs)("div",{children:[!!t.args&&Object.keys(t.args).length>0&&(0,r.jsx)("pre",{className:"mt-1 overflow-x-auto rounded bg-background/60 p-1.5 text-[10px] leading-tight",children:JSON.stringify(t.args,null,2)}),n]}):(0,r.jsx)("pre",{className:"mt-1 overflow-x-auto rounded bg-background/60 p-1.5 text-[10px] leading-tight",children:JSON.stringify(t.args,null,2)}))]})}function eo(e){let{blocks:t,showCards:n,mobileSimple:a=!1}=e;return(0,r.jsx)("div",{className:"flex flex-col gap-2",children:t.map((e,t)=>{var s,l;return"harness_ask"===e.kind?(0,r.jsx)(x,{acceptanceId:e.acceptanceId},"".concat(e.acceptanceId,"-").concat(t)):"text"===e.kind?(0,r.jsx)(ea,{text:e.text,showCards:n},t):"image"===e.kind?(0,r.jsx)("img",{src:e.src,alt:null!=(s=e.alt)?s:"inline image (".concat(e.mediaType,")"),className:"max-w-full rounded border border-border","data-elanous-block-kind":"image","data-elanous-media-type":e.mediaType},t):"tool_use"===e.kind?(0,r.jsxs)("div",{children:[(0,r.jsx)(el,{block:e,mobileSimple:a,...a&&(null==(l=e.sources)?void 0:l.length)?{children:(0,r.jsx)(u,{sources:e.sources})}:{}}),!a&&(0,r.jsx)(u,{sources:e.sources})]},"".concat(e.id,"-").concat(t)):"mcp_app"===e.kind?(0,r.jsx)(en,{block:e},"".concat(e.toolId,"-").concat(t)):"agent_thinking"===e.kind?(0,r.jsx)(w,{block:e},"thinking-".concat(e.blockId)):"agent_status"===e.kind?(0,r.jsx)(S,{block:e},"status-".concat(e.blockId)):"agent_plan"===e.kind?(0,r.jsx)(D,{block:e},"plan-".concat(e.blockId)):"tool_diff"===e.kind?(0,r.jsx)(R,{block:e},"diff-".concat(e.blockId)):"tool_search_hits"===e.kind?(0,r.jsx)(T,{block:e},"search-".concat(e.blockId)):"tool_progress"===e.kind?(0,r.jsx)(O,{block:e},"progress-".concat(e.blockId)):"perf_session"===e.kind?(0,r.jsx)(_,{block:e},"perf-".concat(e.blockId)):null})})}function ei(e){var t,n,a,s,l;let{message:o,mobileSimple:i=!1}=e,c="user"===o.role,d="meta"===o.role,u="system"===o.role,m=new Date(o.timestamp).toLocaleTimeString();if(d)return(0,r.jsxs)("div",{className:"px-2 py-1 text-[11px] text-muted-foreground italic",children:[(0,r.jsx)("pre",{className:"whitespace-pre-wrap font-mono text-[11px]",children:o.text}),(null==(a=o.blocks)?void 0:a.some(e=>"harness_ask"===e.kind))&&(0,r.jsx)(eo,{blocks:o.blocks,showCards:!1,mobileSimple:i})]});if(u){let e="error"===(null!=(l=null==(s=o.meta)?void 0:s.systemLevel)?l:"note");return(0,r.jsx)("div",{className:"px-3 py-2",children:(0,r.jsxs)("div",{className:(0,h.cn)("rounded-md border px-3 py-2 text-xs font-mono",e?"border-rose-500/60 bg-rose-500/10 text-rose-300":"border-border/60 bg-muted/40 text-muted-foreground italic"),children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("span",{className:(0,h.cn)("shrink-0 text-[10px] font-semibold uppercase tracking-wide",e?"text-rose-400":"text-muted-foreground/70"),children:e?"⚠ Error":"Note"}),(0,r.jsx)("pre",{className:"flex-1 whitespace-pre-wrap break-all",children:o.text})]}),(0,r.jsx)("div",{className:"mt-1 text-[10px] text-muted-foreground/80",children:m})]})})}let p=Array.isArray(o.blocks)&&o.blocks.length>0;return(0,r.jsx)("div",{className:(0,h.cn)("flex gap-3 px-4 py-3",c?"justify-end":"justify-start"),children:(0,r.jsxs)("div",{className:(0,h.cn)("max-w-[85%] rounded-lg px-3 py-2 text-sm shadow-sm",c?"bg-primary text-primary-foreground":"bg-card text-card-foreground border border-border"),children:[p?(0,r.jsx)(eo,{blocks:o.blocks,showCards:!c,mobileSimple:i}):(0,r.jsx)(ea,{text:o.text,showCards:!c}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-[10px] text-muted-foreground",children:[(0,r.jsx)("span",{children:m}),o.terminalId&&(0,r.jsx)("span",{title:"이 메시지가 나눈 터미널",className:"rounded border border-border/60 bg-muted/60 px-1 font-mono text-[9px] leading-4",children:o.terminalId}),(null==(t=o.meta)?void 0:t.provider)&&(0,r.jsxs)("span",{title:"답한 LLM",children:["\xb7 ",o.meta.provider,o.meta.model?" \xb7 ".concat(o.meta.model):""]}),(null==(n=o.meta)?void 0:n.stopReason)&&(0,r.jsxs)("span",{children:["\xb7 ",o.meta.stopReason]})]})]})})}var ec=n(66066),ed=n(77835);function eu(){let{client:e}=(0,m.Q)(),[t,n]=(0,a.useState)({client:e,item:null,busy:!1}),s=(0,a.useRef)(!1),l=(0,a.useRef)(e);l.current=e;let o=(0,a.useRef)(0),i=(0,a.useRef)(!1),c=t.client===e?t:null,d=(0,a.useCallback)(async()=>{if(!s.current||l.current!==e||"undefined"!=typeof document&&document.hidden)return;let t=++o.current;try{let r=await (0,ec.qK)(e);s.current&&l.current===e&&t===o.current&&n(t=>{var n;return t.client===e?{...t,item:null!=(n=r[0])?n:null}:t})}catch(r){s.current&&l.current===e&&t===o.current&&n(t=>t.client===e?{...t,item:null}:t)}},[e]);(0,a.useEffect)(()=>{s.current=!0,i.current=!1,n({client:e,item:null,busy:!1}),d();let t=globalThis.setInterval(()=>{d()},3e4),r=()=>{document.hidden||d()};return"undefined"!=typeof document&&document.addEventListener("visibilitychange",r),()=>{s.current=!1,i.current=!1,o.current++,globalThis.clearInterval(t),"undefined"!=typeof document&&document.removeEventListener("visibilitychange",r)}},[e,d]);let u=async t=>{if(!(null==c?void 0:c.item)||i.current)return;i.current=!0;let r=c.item.id;n(t=>t.client===e?{...t,busy:!0}:t);try{await (0,ec.LD)(e,r,t.id),s.current&&l.current===e&&(n(t=>{var n;return t.client===e&&(null==(n=t.item)?void 0:n.id)===r?{...t,item:null,busy:!1}:t}),await d())}catch(t){s.current&&l.current===e&&n(t=>t.client===e?{...t,busy:!1}:t)}finally{i.current=!1}};return(null==c?void 0:c.item)?(0,r.jsx)("div",{className:"px-4 py-3","data-chat-pending-decision":"",children:(0,r.jsx)(ed.l,{decision:c.item,onChoose:e=>{u(e)},busy:c.busy})}):null}function em(e){return ep(e)>240}function ep(e){return Math.max(0,e.scrollHeight-e.clientHeight-e.scrollTop)}function ef(e){var t;return null!=(t=null==e?void 0:e.querySelector('[data-slot="scroll-area-viewport"],[data-radix-scroll-area-viewport]'))?t:null}let ex=["wheel","touchmove","pointerdown","keydown"];var eh=n(88532);function eg(e){let{messages:t,pending:n,tabId:l,mobileSimple:o=!1}=e,i=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,eh.o1)("chatScroll",l);(0,a.useEffect)(()=>{let e=ef(c.current);if(!e)return;let t=(0,eh.N2)(d);"number"==typeof t&&t>0&&(e.scrollTop=t)},[d]),(0,a.useEffect)(()=>{let e=ef(c.current);if(!e)return;let t=null,n=()=>{t&&clearTimeout(t),t=setTimeout(()=>{(0,eh.Os)(d,e.scrollTop)},250)};return e.addEventListener("scroll",n,{passive:!0}),()=>{e.removeEventListener("scroll",n),t&&clearTimeout(t)}},[d]);let[u,m]=(0,a.useState)(!1),p=(0,a.useRef)({stuck:!0}),f=(0,a.useRef)(!1),x=(0,a.useRef)(t.length);(0,a.useEffect)(()=>{let e=t[t.length-1];t.length>x.current&&(null==e?void 0:e.role)==="user"&&(f.current=!0),x.current=t.length},[t]),(0,a.useEffect)(()=>{var e,t;let n=ef(c.current),r=null==(e=i.current)?void 0:e.parentElement;if(!n||!r)return;let a=!1,s=e=>{var t;!a&&(m(em({scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,clientHeight:n.clientHeight})),t=p.current,(f.current||t.stuck)&&(f.current=!1,n.scrollTo({top:n.scrollHeight,behavior:e?"auto":"smooth"})))};s(!1);let l=()=>({scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,clientHeight:n.clientHeight}),o=null,d=()=>{let e=l();p.current=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:96;return{stuck:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:96;return ep(e)<=t}(t,n)}}(p.current,e),m(em(e))},u=()=>{m(em(l()))},x=e=>{var t;if("keydown"!==e.type||"PageUp"===(t=e.key)||"PageDown"===t||"Home"===t||"End"===t||"ArrowUp"===t||"ArrowDown"===t||" "===t||"Spacebar"===t){if("pointerdown"===e.type){a=!0,n.scrollTo({top:n.scrollTop,behavior:"auto"});return}"function"==typeof requestAnimationFrame?(null!==o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{o=null,d()})):d()}},h=()=>{a&&(a=!1,d())};n.addEventListener("scroll",u,{passive:!0});let g=null!=(t=c.current)?t:n;for(let e of ex)g.addEventListener(e,x,{passive:!0});let b=window;null==b||b.addEventListener("pointerup",h,{passive:!0}),null==b||b.addEventListener("pointercancel",h,{passive:!0});let v=()=>{for(let e of(null!==o&&"function"==typeof cancelAnimationFrame&&(cancelAnimationFrame(o),o=null),n.removeEventListener("scroll",u),ex))g.removeEventListener(e,x);null==b||b.removeEventListener("pointerup",h),null==b||b.removeEventListener("pointercancel",h)};if("undefined"==typeof ResizeObserver)return v;let j=new ResizeObserver(()=>{s(!0)});return j.observe(r),()=>{j.disconnect(),v()}},[t.length,n]);let h=(0,a.useCallback)(()=>{let e=ef(c.current);p.current={stuck:!0},null==e||e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},[]);return 0!==t.length||n?(0,r.jsxs)("div",{ref:c,className:"relative flex-1 min-h-0",children:[(0,r.jsx)(s.F,{className:"h-full",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1 pt-2 ".concat("pb-24"),children:[t.map(e=>(0,r.jsx)(ei,{message:e,mobileSimple:o},e.id)),!o&&(0,r.jsx)(eu,{}),n&&(0,r.jsx)("div",{className:"flex justify-start px-4 py-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-sm text-muted-foreground",children:[(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-primary"}),"thinking…"]})}),(0,r.jsx)("div",{ref:i})]})}),u&&(0,r.jsx)("button",{type:"button",onClick:h,"data-elanous-jump-to-bottom":"true",className:"absolute bottom-3 left-1/2 -translate-x-1/2 rounded-full border border-border bg-card/95 px-3 py-1.5 text-xs shadow-lg backdrop-blur transition-colors hover:bg-accent",children:"맨 아래로 ↓"})]}):(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 p-8 text-center text-sm text-muted-foreground",children:[(0,r.jsx)("p",{children:"무엇이든 말을 걸어 보세요."}),(0,r.jsxs)("p",{className:"text-xs",children:[(0,r.jsx)("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono",children:":help"})," 를 치면 명령 목록이 나옵니다."]}),!o&&(0,r.jsx)(eu,{})]})}},66066:(e,t,n)=>{async function r(e){let t=await e.fetchResponse("/v1/ops-board/notices");if(!t.ok)throw Error("notices list failed: ".concat(t.status));return(await t.json()).notices}async function a(e,t,n){let r=await e.fetchResponse("/v1/ops-board/notices",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({noticeId:t,body:n})});if(!r.ok)throw Error("notice reply failed: ".concat(r.status));return(await r.json()).reply}async function s(e){let t=await e.fetchResponse("/v1/decisions?status=open");if(!t.ok)throw Error("decisions list failed: ".concat(t.status));return(await t.json()).decisions}async function l(e,t,n,r){let a=await e.fetchResponse("/v1/decisions/".concat(encodeURIComponent(t),"/decide"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({choice:n,...void 0===r?{}:{note:r}})});if(!a.ok)throw Error("decision failed: ".concat(a.status));return a.json()}n.d(t,{LD:()=>l,aj:()=>a,kh:()=>r,qK:()=>s})},68105:(e,t,n)=>{n.d(t,{$L:()=>i,Kz:()=>o,Vm:()=>l,kv:()=>s});let r="elanous.pwa.chat.autoRouting",a="elanous-chat-routing-changed",s={autoRouting:!1};function l(){return{autoRouting:function(e,t){try{let n=window.localStorage.getItem(e);if("1"===n)return!0;if("0"===n)return!1;return t}catch(e){return t}}(r,s.autoRouting)}}function o(e){try{window.localStorage.setItem(r,e?"1":"0")}catch(e){}window.dispatchEvent(new CustomEvent(a))}function i(e){let t=()=>e(l()),n=t=>{t.key===r&&e(l())};return window.addEventListener(a,t),window.addEventListener("storage",n),()=>{window.removeEventListener(a,t),window.removeEventListener("storage",n)}}},68190:(e,t,n)=>{n.d(t,{rm:()=>o});var r=n(57865),a=n(20381),s=n(16759),l=n(10526);function o(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{loadStatus:n=l.gh,pollMs:o=6e4,initialStatus:i}=t,{config:c}=(0,s.Q)(),[d,u]=(0,a.useState)(void 0===i?void 0:i);if((0,a.useEffect)(()=>{let e=!1,t=async()=>{if(!c.baseUrl){e||u(null);return}let t=await n({baseUrl:c.baseUrl,...c.token?{token:c.token}:{}});e||u(t)};if(t(),o<=0)return()=>{e=!0};let r=setInterval(()=>{t()},o);return()=>{e=!0,clearInterval(r)}},[c.baseUrl,c.token,n,o]),void 0===d)return null;if(null===d)return(0,r.jsx)("div",{className:"rounded-md border border-border bg-muted/40 px-2 py-1 text-[11px] text-muted-foreground",title:"예산 상태를 읽지 못했습니다","data-elanous-pill":"budget","data-budget-status":"unread",children:"budget —"});let m="warning"===(e=d.status)||"cap-exceeded"===e;return(0,r.jsx)("div",{className:m?"rounded-md border border-amber-500/50 bg-amber-500/10 px-2 py-1 text-[11px] font-medium text-amber-700 dark:text-amber-300":"rounded-md border border-border bg-muted/40 px-2 py-1 text-[11px] text-muted-foreground",title:"".concat(d.monthYYYYMM," \xb7 ").concat(d.status),"data-elanous-pill":"budget","data-budget-status":d.status,"data-budget-emphasis":m?"true":"false",children:function(e){let t="이번 달 ".concat(function(e){let t=Number.isFinite(e)?e:0;return"$".concat(t.toFixed(2))}(e.monthSoFarUsd));return null!=e.percent&&Number.isFinite(e.percent)?"".concat(t," \xb7 ").concat(e.percent,"%"):t}(d)})}},73140:(e,t,n)=>{n.d(t,{vG:()=>s});var r=n(57865),a=n(20381);function s(e){let{children:t}=e;return!function(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{"public"===new URLSearchParams(window.location.search).get("capture")&&t(!0)},[]),e}()?(0,r.jsx)(r.Fragment,{children:t}):null}},77835:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(57865),a=n(20381);function s(e){let[t,n]=(0,a.useState)("");if("onChoose"in e){let{decision:t,onChoose:n,busy:a}=e;return(0,r.jsxs)("article",{className:"rounded border border-border bg-card p-3","data-decision-card":t.id,children:[(0,r.jsx)("h3",{className:"text-sm font-semibold",children:t.title}),(0,r.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-muted-foreground",children:t.situation}),(0,r.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:t.options.map(e=>(0,r.jsxs)("button",{type:"button",disabled:a,onClick:()=>n(e),className:"rounded-md border border-border px-2 py-1 text-sm hover:bg-muted disabled:opacity-50",children:[e.label,"option"in t.recommendation&&t.recommendation.option===e.id&&(0,r.jsx)("span",{className:"ml-1 text-primary",children:"추천"})]},e.id))})]})}let{decision:s,onDecide:l,decidingChoice:o}=e,i=s.resolution.status,c="decided"===s.resolution.status?s.resolution.chosen:null;return(0,r.jsxs)("article",{className:"rounded border border-zinc-200 bg-white p-3",children:[(0,r.jsxs)("header",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:s.question}),(0,r.jsx)("time",{className:"shrink-0 text-xs opacity-60",dateTime:new Date(s.ts).toISOString(),children:new Date(s.ts).toLocaleString()})]}),(0,r.jsx)("ul",{className:"mt-2 flex flex-col gap-2",children:s.opinions.map((e,t)=>(0,r.jsxs)("li",{className:"rounded bg-zinc-50 p-2 text-xs",children:[(0,r.jsxs)("div",{className:"font-medium",children:[e.role,e.modelId?(0,r.jsxs)("span",{className:"opacity-60",children:[" \xb7 ",e.modelId]}):null]}),(0,r.jsx)("pre",{className:"mt-1 whitespace-pre-wrap text-xs leading-snug",children:e.text})]},"".concat(e.role,"-").concat(t)))}),(0,r.jsxs)("footer",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,r.jsxs)("span",{className:"text-xs opacity-70",children:["resolution:"," ","decided"===i?(0,r.jsxs)("span",{className:"font-medium text-emerald-700",children:["decided → ",c]}):(0,r.jsx)("span",{className:"text-amber-700",children:"open"})]}),l&&"open"===i&&(0,r.jsxs)("form",{className:"flex items-center gap-1",onSubmit:e=>{e.preventDefault(),t.trim()&&l(t.trim())},children:[(0,r.jsx)("input",{className:"w-32 rounded border border-zinc-300 px-2 py-0.5 text-xs",placeholder:"chosen…",value:t,onChange:e=>n(e.target.value),disabled:null!==o}),(0,r.jsx)("button",{type:"submit",className:"rounded bg-emerald-700 px-2 py-0.5 text-xs text-white disabled:opacity-50",disabled:!t.trim()||null!==o,children:o===t?"…":"apply"})]})]})]})}},78071:(e,t,n)=>{n.d(t,{S:()=>d});var r=n(57865),a=n(20381),s=n(55734),l=n(17439),o=n(9645),i=n(46243),c=n(62351);function d(e){let{sessionId:t,source:n="inline",variant:d="default",className:u,showCopyIcon:m=!0}=e,[p,f]=(0,a.useState)(!1),x=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{x.current&&clearTimeout(x.current)},[]);let h=async()=>{if(!t)return;let e=await (0,i.lW)(t);(0,c.cY)("webterm.session-id-chip.copy",{sessionId:t,ok:e,source:n}),e&&(f(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>f(!1),1200))},g=(0,i.o)(t),b=!t,v=t?"대화 ID 전체 (".concat(t.length,"자): ").concat(t,"\n\xb7 누르면 자동으로 복사됩니다 — 앞 8자만 표시합니다 (… 표시는 생략됨)\n\xb7 새 대화를 시작하면 다른 ID가 발급됩니다"):"대화가 선택되지 않았습니다";return(0,r.jsxs)("span",{role:"button",tabIndex:b?-1:0,"aria-disabled":b,onClick:b?void 0:e=>{e.stopPropagation(),h()},onKeyDown:b?void 0:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),h())},title:v,"aria-label":t?"대화 ID ".concat(t," 복사"):"대화가 선택되지 않았습니다","data-elanous-session-id":null!=t?t:"","data-elanous-action":"session-id-copy",className:(0,o.cn)("inline-flex items-center gap-1 rounded font-mono transition-colors select-none focus:outline-none focus:ring-1 focus:ring-ring","default"===d?"px-1 py-0.5 hover:bg-secondary":"opacity-70 hover:opacity-100 hover:bg-muted/40 px-0.5",p&&"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",b&&"cursor-not-allowed opacity-40",!b&&"cursor-copy",u),children:[(0,r.jsx)("span",{children:g}),m&&(p?(0,r.jsx)(s.A,{className:"h-3 w-3","aria-hidden":!0}):(0,r.jsx)(l.A,{className:"h-3 w-3 opacity-60","aria-hidden":!0}))]})}},80298:(e,t,n)=>{n.d(t,{D:()=>d});var r=n(57865),a=n(20381),s=n(93891),l=n(16759),o=n(9645),i=n(62351);function c(e){return!Number.isFinite(e)||e<0?"$0.00":"$".concat(e.toFixed(2))}function d(){let{client:e,config:t}=(0,l.Q)(),[n,d]=(0,a.useState)(null),[u,m]=(0,a.useState)(!1),p=!!t.baseUrl,f=(0,a.useCallback)(async()=>{if(p)try{let t=await e.voiceCost();d(t),m(!1)}catch(e){m(!0),(0,i.cY)("chat.voice.cost-pill.error",{reason:e instanceof Error?e.message:String(e)})}},[e,p]);if((0,a.useEffect)(()=>{if(!p)return;f();let e=setInterval(()=>void f(),6e4);return()=>clearInterval(e)},[p,f]),!p)return null;if(u&&!n)return(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 rounded-md border border-border bg-muted/40 px-2 py-1 text-[11px] text-muted-foreground",title:"voice cost — daemon /v1/voice/cost 응답 없음","data-elanous-pill":"voice-cost",children:[(0,r.jsx)(s.A,{className:"h-3 w-3","aria-hidden":!0}),(0,r.jsx)("span",{children:"—"})]});if(!n)return(0,r.jsxs)("div",{className:"inline-flex items-center gap-1 rounded-md border border-border bg-muted/40 px-2 py-1 text-[11px] text-muted-foreground","data-elanous-pill":"voice-cost",children:[(0,r.jsx)(s.A,{className:"h-3 w-3","aria-hidden":!0}),(0,r.jsx)("span",{children:"…"})]});let x=n.totalUsd>0;return(0,r.jsxs)("div",{className:(0,o.cn)("inline-flex items-center gap-1 rounded-md border px-2 py-1 text-[11px]",x?"border-emerald-500/30 bg-emerald-500/5 text-emerald-700 dark:text-emerald-400":"border-border bg-muted/40 text-muted-foreground"),title:"voice cost ".concat(n.monthYYYYMM," \xb7 STT ").concat(c(n.sttUsd)," \xb7 TTS ").concat(c(n.ttsUsd)),"data-elanous-pill":"voice-cost",children:[(0,r.jsx)(s.A,{className:"h-3 w-3","aria-hidden":!0}),(0,r.jsx)("span",{children:c(n.totalUsd)}),(0,r.jsx)("span",{className:"text-muted-foreground",children:"/mo"})]})}},81219:(e,t,n)=>{n.d(t,{hn:()=>s,qv:()=>l,sg:()=>o});let r="elanous.ocr.prefs",a={defaultUseLlmVision:!1,defaultPreferHandwriting:!1};function s(){if("undefined"==typeof localStorage)return{...a};try{let e=localStorage.getItem(r);if(!e)return{...a};let t=JSON.parse(e);return{defaultUseLlmVision:"boolean"==typeof t.defaultUseLlmVision?t.defaultUseLlmVision:a.defaultUseLlmVision,defaultPreferHandwriting:"boolean"==typeof t.defaultPreferHandwriting?t.defaultPreferHandwriting:a.defaultPreferHandwriting}}catch(e){return{...a}}}function l(e){if("undefined"==typeof localStorage)return{...a,...e};let t={...s(),...e};try{localStorage.setItem(r,JSON.stringify(t))}catch(e){}return t}function o(){if("undefined"==typeof localStorage)return{...a};try{localStorage.removeItem(r)}catch(e){}return{...a}}},88532:(e,t,n)=>{function r(e,t){return"".concat("elanous.pwa.snapshot.").concat(e,".").concat(t&&t.length>0?t:"singleton")}function a(){try{return window.localStorage}catch(e){return null}}function s(e){let t=a();if(!t)return null;try{let n=t.getItem(e);if(null===n)return null;return JSON.parse(n)}catch(n){try{t.removeItem(e)}catch(e){}return null}}function l(e,t){let n,r=a();if(r){try{n=JSON.stringify(t)}catch(e){return}if(!(n.length>262144))try{r.setItem(e,n)}catch(e){}}}function o(e){let t=a();if(t)try{t.removeItem(e)}catch(e){}}n.d(t,{N2:()=>s,Os:()=>l,o1:()=>r,yd:()=>o})},89658:(e,t,n)=>{n.d(t,{Cf:()=>g,Es:()=>v,L3:()=>j,c7:()=>b,lG:()=>f,rr:()=>y});var r=n(57865);n(20381);var a=n(45448),s=n(27951),l=n(17605),o=n(6672),i=n(80251),c=n(80055),d=n(64151),u=n(9645),m=n(58174),p=n(18678);function f(e){let{...t}=e;return(0,r.jsx)(a.D,{"data-slot":"dialog",...t})}function x(e){let{...t}=e;return(0,r.jsx)(s.Z,{"data-slot":"dialog-portal",...t})}function h(e){let{className:t,...n}=e;return(0,r.jsx)(l.X,{"data-slot":"dialog-overlay",className:(0,u.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",t),...n})}function g(e){let{className:t,children:n,showCloseButton:a=!0,...s}=e;return(0,r.jsxs)(x,{children:[(0,r.jsx)(h,{}),(0,r.jsxs)(o.h,{"data-slot":"dialog-content",className:(0,u.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...s,children:[n,a&&(0,r.jsxs)(i.H,{"data-slot":"dialog-close",render:(0,r.jsx)(m.$,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,r.jsx)(p.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function b(e){let{className:t,...n}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,u.cn)("flex flex-col gap-2",t),...n})}function v(e){let{className:t,showCloseButton:n=!1,children:a,...s}=e;return(0,r.jsxs)("div",{"data-slot":"dialog-footer",className:(0,u.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",t),...s,children:[a,n&&(0,r.jsx)(i.H,{render:(0,r.jsx)(m.$,{variant:"outline"}),children:"Close"})]})}function j(e){let{className:t,...n}=e;return(0,r.jsx)(c.L,{"data-slot":"dialog-title",className:(0,u.cn)("font-heading text-base leading-none font-medium",t),...n})}function y(e){let{className:t,...n}=e;return(0,r.jsx)(d.r,{"data-slot":"dialog-description",className:(0,u.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),...n})}}}]);
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4115],{21403:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(94268),a=s(1642),r=s(73084),n=(0,r.K)((t,e,s,r)=>{t.attr("class",s);let{width:n,height:o,x:c,y:h}=l(t,e);(0,i.a$)(t,o,n,r);let d=u(c,h,n,o,e);t.attr("viewBox",d),a.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),l=(0,r.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),u=(0,r.K)((t,e,s,i,a)=>`${t-a} ${e-a} ${s} ${i}`,"createViewBox")},25535:(t,e,s)=>{s.d(e,{CP:()=>h,Ck:()=>A,HT:()=>p,PB:()=>d,aC:()=>c,lC:()=>u,m:()=>o,tk:()=>l});var i=s(94268),a=s(73084),r=s(99462),n=s(39433),l=(0,a.K)((t,e)=>{let s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),u=(0,a.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),o=(0,a.K)((t,e)=>{let s=e.text.replace(i.H1," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class&&a.attr("class",e.class);let r=a.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(s),a},"drawText"),c=(0,a.K)((t,e,s,i)=>{let a=t.append("image");a.attr("x",e),a.attr("y",s);let n=(0,r.J)(i);a.attr("xlink:href",n)},"drawImage"),h=(0,a.K)((t,e,s,i)=>{let a=t.append("use");a.attr("x",e),a.attr("y",s);let n=(0,r.J)(i);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),d=(0,a.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,a.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),A=(0,a.K)(()=>{let t=(0,n.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},30053:(t,e,s)=>{s.d(e,{o:()=>i});var i=(0,s(73084).K)(()=>`
|
|
2
|
-
/* Font Awesome icon styling - consolidated */
|
|
3
|
-
.label-icon {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
height: 1em;
|
|
6
|
-
overflow: visible;
|
|
7
|
-
vertical-align: -0.125em;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.node .label-icon path {
|
|
11
|
-
fill: currentColor;
|
|
12
|
-
stroke: revert;
|
|
13
|
-
stroke-width: revert;
|
|
14
|
-
}
|
|
15
|
-
`,"getIconStyles")},60736:(t,e,s)=>{s.d(e,{A:()=>r});var i=s(73084),a=s(39433),r=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,a.Ltv)("#i"+t)),("sandbox"===e?(0,a.Ltv)(s.nodes()[0].contentDocument.body):(0,a.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},74115:(t,e,s)=>{s.d(e,{diagram:()=>B});var i=s(30053),a=s(60736),r=s(21403),n=s(39761);s(81028);var l=s(25535);s(61410),s(97411),s(52957),s(6171),s(68960),s(84273),s(53237);var u=s(75042),o=s(68180),c=s(94268),h=s(1642),d=s(73084),p=s(39433),A=s(59685),y=function(){var t=(0,d.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],i=[1,20],a=[1,41],r=[1,26],n=[1,42],l=[1,24],u=[1,25],o=[1,32],c=[1,33],h=[1,34],p=[1,45],A=[1,35],y=[1,36],g=[1,37],m=[1,38],b=[1,27],C=[1,28],k=[1,29],E=[1,30],f=[1,31],T=[1,44],D=[1,46],F=[1,43],B=[1,47],_=[1,9],$=[1,8,9],x=[1,58],S=[1,59],N=[1,60],L=[1,61],v=[1,62],I=[1,63],w=[1,64],O=[1,8,9,41],R=[1,77],K=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],M=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],U=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,103],z=[1,121],Q=[1,117],W=[1,113],j=[1,119],X=[1,114],H=[1,115],q=[1,116],V=[1,118],J=[1,120],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],te=[12,39],ts=[1,8,9,39,41,44,46],ti=[1,8,9,22],ta=[1,153],tr=[1,8,9,61],tn=[1,8,9,22,50,60,61,82,86,87,88,89,90],tl={trace:(0,d.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:(0,d.K)(function(t,e,s,i,a,r,n){var l=r.length-1;switch(a){case 8:this.$=r[l-1];break;case 9:case 10:case 13:case 15:case 46:this.$=r[l];break;case 11:case 14:this.$=r[l-2]+"."+r[l];break;case 12:case 16:case 110:this.$=r[l-1]+r[l];break;case 17:case 18:this.$=r[l-1]+"~"+r[l]+"~";break;case 19:i.addRelation(r[l]);break;case 20:r[l-1].title=i.cleanupLabel(r[l]),i.addRelation(r[l-1]);break;case 31:this.$=r[l].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=r[l].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(r[l-3],r[l-1][0],r[l-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(r[l-4],r[l-1][0],r[l-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(r[l]);break;case 37:this.$=i.addNamespace(r[l-1],r[l]);break;case 38:this.$=[[r[l]],[]];break;case 39:this.$=[[r[l-1]],[]];break;case 40:r[l][0].unshift(r[l-2]),this.$=r[l];break;case 41:this.$=[[],[r[l]]];break;case 42:this.$=[[],[r[l-1]]];break;case 43:r[l][1].unshift(r[l-2]),this.$=r[l];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(r[l-2],r[l]);break;case 49:i.addMembers(r[l-3],r[l-1]);break;case 51:i.setCssClass(r[l-5],r[l-3]),i.addMembers(r[l-5],r[l-1]);break;case 52:i.addAnnotation(r[l-3],r[l-1]);break;case 53:i.addAnnotation(r[l-6],r[l-4]),i.addMembers(r[l-6],r[l-1]);break;case 54:i.addAnnotation(r[l-5],r[l-3]);break;case 55:this.$=r[l],i.addClass(r[l]);break;case 56:this.$=r[l-1],i.addClass(r[l-1]),i.setClassLabel(r[l-1],r[l]);break;case 60:i.addAnnotation(r[l],r[l-2]);break;case 61:case 74:case 107:this.$=[r[l]];break;case 62:r[l].push(r[l-1]),this.$=r[l];break;case 63:case 65:case 66:break;case 64:i.addMember(r[l-1],i.cleanupLabel(r[l]));break;case 67:this.$={id1:r[l-2],id2:r[l],relation:r[l-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:r[l-3],id2:r[l],relation:r[l-1],relationTitle1:r[l-2],relationTitle2:"none"};break;case 69:this.$={id1:r[l-3],id2:r[l],relation:r[l-2],relationTitle1:"none",relationTitle2:r[l-1]};break;case 70:this.$={id1:r[l-4],id2:r[l],relation:r[l-2],relationTitle1:r[l-3],relationTitle2:r[l-1]};break;case 71:this.$=i.addNote(r[l],r[l-1]);break;case 72:this.$=i.addNote(r[l]);break;case 73:this.$=r[l-2],i.defineClass(r[l-1],r[l]);break;case 75:this.$=r[l-2].concat([r[l]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:r[l-2],type2:r[l],lineType:r[l-1]};break;case 81:this.$={type1:"none",type2:r[l],lineType:r[l-1]};break;case 82:this.$={type1:r[l-1],type2:"none",lineType:r[l]};break;case 83:this.$={type1:"none",type2:"none",lineType:r[l]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=r[l-2],i.setClickEvent(r[l-1],r[l]);break;case 92:case 98:this.$=r[l-3],i.setClickEvent(r[l-2],r[l-1]),i.setTooltip(r[l-2],r[l]);break;case 93:this.$=r[l-2],i.setLink(r[l-1],r[l]);break;case 94:this.$=r[l-3],i.setLink(r[l-2],r[l-1],r[l]);break;case 95:this.$=r[l-3],i.setLink(r[l-2],r[l-1]),i.setTooltip(r[l-2],r[l]);break;case 96:this.$=r[l-4],i.setLink(r[l-3],r[l-2],r[l]),i.setTooltip(r[l-3],r[l-1]);break;case 99:this.$=r[l-3],i.setClickEvent(r[l-2],r[l-1],r[l]);break;case 100:this.$=r[l-4],i.setClickEvent(r[l-3],r[l-2],r[l-1]),i.setTooltip(r[l-3],r[l]);break;case 101:this.$=r[l-3],i.setLink(r[l-2],r[l]);break;case 102:this.$=r[l-4],i.setLink(r[l-3],r[l-1],r[l]);break;case 103:this.$=r[l-4],i.setLink(r[l-3],r[l-1]),i.setTooltip(r[l-3],r[l]);break;case 104:this.$=r[l-5],i.setLink(r[l-4],r[l-2],r[l]),i.setTooltip(r[l-4],r[l-1]);break;case 105:this.$=r[l-2],i.setCssStyle(r[l-1],r[l]);break;case 106:i.setCssClass(r[l-1],r[l]);break;case 108:r[l-2].push(r[l]),this.$=r[l-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:r,48:n,51:l,52:u,54:o,56:c,57:h,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t($,[2,19],{22:[1,50]}),t($,[2,21]),t($,[2,22]),t($,[2,23]),t($,[2,24]),t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),{34:[1,51]},{36:[1,52]},t($,[2,33]),t($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:x,69:S,70:N,71:L,72:v,73:I,74:w}),{39:[1,65]},t(O,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t($,[2,65]),t($,[2,66]),{16:69,60:p,86:T,100:D,102:F},{16:39,17:40,19:70,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:71,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:72,60:p,86:T,100:D,102:F,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:T,100:D,102:F,103:B},{13:R,55:76},{58:78,60:[1,79]},t($,[2,76]),t($,[2,77]),t($,[2,78]),t($,[2,79]),t(K,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:T,100:D,102:F,103:B}),t(K,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:87,60:p,86:T,100:D,102:F,103:B},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:s,37:i,42:a,46:r,48:n,51:l,52:u,54:o,56:c,57:h,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:r,48:n,51:l,52:u,54:o,56:c,57:h,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B},t($,[2,20]),t($,[2,31]),t($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:T,100:D,102:F,103:B},{53:92,66:56,67:57,68:x,69:S,70:N,71:L,72:v,73:I,74:w},t($,[2,64]),{67:93,73:I,74:w},t(M,[2,83],{66:94,68:x,69:S,70:N,71:L,72:v}),t(G,[2,84]),t(G,[2,85]),t(G,[2,86]),t(G,[2,87]),t(G,[2,88]),t(U,[2,89]),t(U,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:n,54:o,56:c},{16:100,60:p,86:T,100:D,102:F},{41:[1,102],45:101,51:Y},{16:104,60:p,86:T,100:D,102:F},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Q,59:110,60:W,82:j,84:111,85:112,86:X,87:H,88:q,89:V,90:J},{60:[1,122]},{13:R,55:123},t(O,[2,72]),t(O,[2,138]),{22:z,50:Q,59:124,60:W,61:[1,125],82:j,84:111,85:112,86:X,87:H,88:q,89:V,90:J},t(Z,[2,74]),{16:39,17:40,19:126,60:p,86:T,100:D,102:F,103:B},t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),{11:127,12:tt,39:[2,36]},t(te,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:T,100:D,102:F,103:B}),t(te,[2,10]),t(ts,[2,55],{11:131,12:tt}),t(_,[2,7]),{9:[1,132]},t(ti,[2,67]),{16:39,17:40,19:133,60:p,86:T,100:D,102:F,103:B},{13:[1,135],16:39,17:40,19:134,60:p,86:T,100:D,102:F,103:B},t(M,[2,82],{66:136,68:x,69:S,70:N,71:L,72:v}),t(M,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:n,54:o,56:c},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(O,[2,48],{39:[1,142]}),{41:[1,143]},t(O,[2,50]),{41:[2,61],45:144,51:Y},{47:[1,145]},{16:39,17:40,19:146,60:p,86:T,100:D,102:F,103:B},t($,[2,91],{13:[1,147]}),t($,[2,93],{13:[1,149],77:[1,148]}),t($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t($,[2,105],{61:ta}),t(tr,[2,107],{85:154,22:z,50:Q,60:W,82:j,86:X,87:H,88:q,89:V,90:J}),t(tn,[2,109]),t(tn,[2,111]),t(tn,[2,112]),t(tn,[2,113]),t(tn,[2,114]),t(tn,[2,115]),t(tn,[2,116]),t(tn,[2,117]),t(tn,[2,118]),t(tn,[2,119]),t($,[2,106]),t(O,[2,71]),t($,[2,73],{61:ta}),{60:[1,155]},t(K,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:T,100:D,102:F,103:B},t(te,[2,12]),t(ts,[2,56]),{1:[2,4]},t(ti,[2,69]),t(ti,[2,68]),{16:39,17:40,19:158,60:p,86:T,100:D,102:F,103:B},t(M,[2,80]),t(O,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:n,54:o,56:c},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:n,54:o,56:c},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:n,54:o,56:c},{45:163,51:Y},t(O,[2,49]),{41:[2,62]},t(O,[2,52],{39:[1,164]}),t($,[2,60]),t($,[2,92]),t($,[2,94]),t($,[2,95],{77:[1,165]}),t($,[2,98]),t($,[2,99],{13:[1,166]}),t($,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Q,60:W,82:j,84:169,85:112,86:X,87:H,88:q,89:V,90:J},t(tn,[2,110]),t(Z,[2,75]),{14:[1,170]},t(te,[2,11]),t(ti,[2,70]),t(O,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Y},t($,[2,96]),t($,[2,100]),t($,[2,102]),t($,[2,103],{77:[1,174]}),t(tr,[2,108],{85:154,22:z,50:Q,60:W,82:j,86:X,87:H,88:q,89:V,90:J}),t(ts,[2,8]),t(O,[2,51]),{41:[1,175]},t(O,[2,54]),t($,[2,104]),t(O,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:(0,d.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,d.K)(function(t){var e=this,s=[0],i=[],a=[null],r=[],n=this.table,l="",u=0,o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),A={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(A[y]=this.yy[y]);p.setInput(t,A),A.lexer=p,A.parser=this,void 0===p.yylloc&&(p.yylloc={});var g=p.yylloc;r.push(g);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof A.parseError?this.parseError=A.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,d.K)(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),(0,d.K)(b,"lex");for(var C,k,E,f,T,D,F,B,_,$={};;){if(E=s[s.length-1],this.defaultActions[E]?f=this.defaultActions[E]:(null==C&&(C=b()),f=n[E]&&n[E][C]),void 0===f||!f.length||!f[0]){var x="";for(D in _=[],n[E])this.terminals_[D]&&D>2&&_.push("'"+this.terminals_[D]+"'");x=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(x,{text:p.match,token:this.terminals_[C]||C,line:p.yylineno,loc:g,expected:_})}if(f[0]instanceof Array&&f.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+C);switch(f[0]){case 1:s.push(C),a.push(p.yytext),r.push(p.yylloc),s.push(f[1]),C=null,k?(C=k,k=null):(o=p.yyleng,l=p.yytext,u=p.yylineno,g=p.yylloc,c>0&&c--);break;case 2:if(F=this.productions_[f[1]][1],$.$=a[a.length-F],$._$={first_line:r[r.length-(F||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(F||1)].first_column,last_column:r[r.length-1].last_column},m&&($._$.range=[r[r.length-(F||1)].range[0],r[r.length-1].range[1]]),void 0!==(T=this.performAction.apply($,[l,o,u,A,f[1],a,r].concat(h))))return T;F&&(s=s.slice(0,-1*F*2),a=a.slice(0,-1*F),r=r.slice(0,-1*F)),s.push(this.productions_[f[1]][0]),a.push($.$),r.push($._$),B=n[s[s.length-2]][s[s.length-1]],s.push(B);break;case 3:return!0}}return!0},"parse")};function tu(){this.yy={}}return tl.lexer={EOF:1,parseError:(0,d.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,d.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,d.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,d.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,d.K)(function(){return this._more=!0,this},"more"),reject:(0,d.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,d.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,d.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,d.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,d.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,d.K)(function(t,e){var s,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var r in a)this[r]=a[r];return!1},"test_match"),next:(0,d.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,a=this._currentRules(),r=0;r<a.length;r++)if((s=this._input.match(this.rules[a[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,a[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,d.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,d.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,d.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,d.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,d.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,d.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,d.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,d.K)(function(t,e,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,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],inclusive:!0}}},(0,d.K)(tu,"Parser"),tu.prototype=tl,tl.Parser=tu,new tu}();y.parser=y;var g=["#","+","~","-",""],m=class{static{(0,d.K)(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";let s=(0,c.jZ)(t,(0,c.D7)());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+(0,c.QO)(this.id);return"method"===this.memberType&&(t+=`(${(0,c.QO)(this.parameters.trim())})`,this.returnType&&(t+=" : "+(0,c.QO)(this.returnType))),{displayText:t=t.trim(),cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){let s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){let t=s[1]?s[1].trim():"";if(g.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){let t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let s=t.length,i=t.substring(0,1),a=t.substring(s-1);g.includes(i)&&(this.visibility=i),/[$*]/.exec(a)&&(e=a),this.id=t.substring(+(""!==this.visibility),""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let s=`${this.visibility?"\\"+this.visibility:""}${(0,c.QO)(this.id)}${"method"===this.memberType?`(${(0,c.QO)(this.parameters)})${this.returnType?" : "+(0,c.QO)(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},b="classId-",C=0,k=(0,d.K)(t=>c.Y2.sanitizeText(t,(0,c.D7)()),"sanitizeText"),E=class t{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=(0,d.K)(t=>{let e=(0,l.Ck)();(0,p.Ltv)(t).select("svg").selectAll("g").filter(function(){return null!==(0,p.Ltv)(this).attr("title")}).on("mouseover",t=>{let s=(0,p.Ltv)(t.currentTarget),i=s.attr("title");if(!i)return;let a=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(A.A.sanitize(i)).style("left",`${window.scrollX+a.left+a.width/2}px`).style("top",`${window.scrollY+a.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,p.Ltv)(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=c.SV,this.getAccTitle=c.iN,this.setAccDescription=c.EI,this.getAccDescription=c.m7,this.setDiagramTitle=c.ke,this.getDiagramTitle=c.ab,this.getConfig=(0,d.K)(()=>(0,c.D7)().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{(0,d.K)(this,"ClassDB")}splitClassNameAndType(t){let e=c.Y2.sanitizeText(t,(0,c.D7)()),s="",i=e;if(e.indexOf("~")>0){let t=e.split("~");i=k(t[0]),s=k(t[1])}return{className:i,type:s}}setClassLabel(t,e){let s=c.Y2.sanitizeText(t,(0,c.D7)());e&&(e=k(e));let{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){let e=c.Y2.sanitizeText(t,(0,c.D7)()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;let a=c.Y2.sanitizeText(s,(0,c.D7)());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:b+a+"-"+C}),C++}addInterface(t,e){let s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){let e=c.Y2.sanitizeText(t,(0,c.D7)());if(this.classes.has(e)){let t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",(0,c.IU)()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){let e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){h.R.debug("Adding relation: "+JSON.stringify(t));let e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=c.Y2.sanitizeText(t.relationTitle1.trim(),(0,c.D7)()),t.relationTitle2=c.Y2.sanitizeText(t.relationTitle2.trim(),(0,c.D7)()),this.relations.push(t)}addAnnotation(t,e){let s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);let s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){let t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(k(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new m(t,"method")):t&&i.members.push(new m(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){let s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),k(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=b+s),s=this.splitClassNameAndType(s).className;let i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(let s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{if(void 0!==e){let s=this.splitClassNameAndType(t).className,i=this.classes.get(s);i&&(i.tooltip=k(e))}})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){let i=(0,c.D7)();t.split(",").forEach(t=>{let a=t;/\d/.exec(t[0])&&(a=b+a),a=this.splitClassNameAndType(a).className;let r=this.classes.get(a);r&&(r.link=o._K.formatUrl(e,i),"sandbox"===i.securityLevel?r.linkTarget="_top":"string"==typeof s?r.linkTarget=k(s):r.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s);let i=this.splitClassNameAndType(t).className,a=this.classes.get(i);a&&(a.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){let i=c.Y2.sanitizeText(t,(0,c.D7)());if("loose"!==(0,c.D7)().securityLevel||void 0===e)return;let a=this.splitClassNameAndType(i).className;if(this.classes.has(a)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(a),this.functions.push(()=>{let s=this.lookUpDomId(a),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{o._K.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,e){let s=e.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){let e=t.split("."),s=Array(e.length);s[0]=e[0];for(let t=1;t<e.length;t++)s[t]=`${s[t-1]}.${e[t]}`;return s}createNamespaceNode(t,e,s,i=!1){return{id:t,label:e,classes:new Map,notes:new Map,children:new Map,domId:b+t+"-"+this.namespaceCounter++,parent:s,explicit:i}}linkParentChild(t,e){let s=this.namespaces.get(t),i=this.namespaces.get(e);s&&i&&(s.children.has(e)||s.children.set(e,i),i.parent??=t)}addNamespace(e,s){let i=t.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){let t=this.namespaces.get(i);return t.explicit=!0,s&&(t.label=s),i}let a=i.split("."),r=t.getAncestorIds(i);for(let t=0;t<r.length;t++){let e=r[t],i=t>0?r[t-1]:void 0,n=t===r.length-1,l=n&&s?s:a[t];this.namespaces.has(e)?n&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,l,i,n)),i&&this.linkParentChild(i,e)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(let s of e){let{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(let e of s){let s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){let s=this.classes.get(t);if(e&&s)for(let t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}resolveExplicitAncestor(t){let e=t;for(;e;){let t=this.namespaces.get(e);if(!t)break;if(t.explicit)return e;e=t.parent}}getData(){let t=[],e=[],s=(0,c.D7)(),i=s.class?.hierarchicalNamespaces??!0;for(let e of this.namespaces.values()){if(!i&&!e.explicit)continue;let a={id:e.id,label:i?e.label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:i?e.parent:void 0};t.push(a)}let a=0;for(let e of this.classes.values()){let r=i?e.parent:this.resolveExplicitAncestor(e.parent),n={...e,type:void 0,isGroup:!1,parentId:r,look:s.look,colorIndex:a++};t.push(n)}for(let a of this.notes.values()){let r=i?a.parent:this.resolveExplicitAncestor(a.parent),n={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:r,labelType:"markdown"};t.push(n);let l=this.classes.get(a.class)?.id;if(l){let t={id:`edgeNote${a.index}`,start:a.id,end:l,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(let e of this.interfaces){let i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let r=0;for(let t of this.relations){r++;let i={id:(0,o.rY)(t.id1,t.id2,{prefix:"id",counter:r}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},f=(0,d.K)(t=>{let{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!(0,u.P1)(e,i))return"";let a=(0,u.rq)(t.look),r=(0,u.Ic)(s),n="";for(let e=0;e<(0,u.nw)(t.THEME_COLOR_LIMIT,i);e++){let t=i[e%i.length];n+=`
|
|
16
|
-
|
|
17
|
-
[data-look="${a}"][data-color-id="color-${e}"].node .outer-path path {
|
|
18
|
-
stroke: ${t};
|
|
19
|
-
${r?`fill: ${s[e%s.length]};`:""}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
[data-look="${a}"][data-color-id="color-${e}"].node .divider path {
|
|
23
|
-
stroke: ${t};
|
|
24
|
-
}
|
|
25
|
-
`}return n},"genColor"),T=(0,d.K)(t=>`${f(t)}
|
|
26
|
-
g.classGroup text {
|
|
27
|
-
fill: ${t.nodeBorder||t.classText};
|
|
28
|
-
stroke: none;
|
|
29
|
-
font-family: ${t.fontFamily};
|
|
30
|
-
font-size: 10px;
|
|
31
|
-
|
|
32
|
-
.title {
|
|
33
|
-
font-weight: bolder;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.cluster-label text {
|
|
39
|
-
fill: ${t.titleColor};
|
|
40
|
-
}
|
|
41
|
-
.cluster-label span {
|
|
42
|
-
color: ${t.titleColor};
|
|
43
|
-
}
|
|
44
|
-
.cluster-label span p {
|
|
45
|
-
background-color: transparent;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cluster rect {
|
|
49
|
-
fill: ${t.clusterBkg};
|
|
50
|
-
stroke: ${t.clusterBorder};
|
|
51
|
-
stroke-width: 1px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cluster text {
|
|
55
|
-
fill: ${t.titleColor};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.cluster span {
|
|
59
|
-
color: ${t.titleColor};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.nodeLabel, .edgeLabel {
|
|
63
|
-
color: ${t.classText};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
67
|
-
color: ${t.noteTextColor};
|
|
68
|
-
}
|
|
69
|
-
.edgeLabel .label rect {
|
|
70
|
-
fill: ${t.mainBkg};
|
|
71
|
-
}
|
|
72
|
-
.label text {
|
|
73
|
-
fill: ${t.classText};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.labelBkg {
|
|
77
|
-
background: ${t.mainBkg};
|
|
78
|
-
}
|
|
79
|
-
.edgeLabel .label span {
|
|
80
|
-
background: ${t.mainBkg};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.classTitle {
|
|
84
|
-
font-weight: bolder;
|
|
85
|
-
}
|
|
86
|
-
.node rect,
|
|
87
|
-
.node circle,
|
|
88
|
-
.node ellipse,
|
|
89
|
-
.node polygon,
|
|
90
|
-
.node path {
|
|
91
|
-
fill: ${t.mainBkg};
|
|
92
|
-
stroke: ${t.nodeBorder};
|
|
93
|
-
stroke-width: ${t.strokeWidth};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.divider {
|
|
98
|
-
stroke: ${t.nodeBorder};
|
|
99
|
-
stroke-width: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
g.clickable {
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
g.classGroup rect {
|
|
107
|
-
fill: ${t.mainBkg};
|
|
108
|
-
stroke: ${t.nodeBorder};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
g.classGroup line {
|
|
112
|
-
stroke: ${t.nodeBorder};
|
|
113
|
-
stroke-width: 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.classLabel .box {
|
|
117
|
-
stroke: none;
|
|
118
|
-
stroke-width: 0;
|
|
119
|
-
fill: ${t.mainBkg};
|
|
120
|
-
opacity: 0.5;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.classLabel .label {
|
|
124
|
-
fill: ${t.nodeBorder};
|
|
125
|
-
font-size: 10px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.relation {
|
|
129
|
-
stroke: ${t.lineColor};
|
|
130
|
-
stroke-width: ${t.strokeWidth};
|
|
131
|
-
fill: none;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.dashed-line{
|
|
135
|
-
stroke-dasharray: 3;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.dotted-line{
|
|
139
|
-
stroke-dasharray: 1 2;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
[id$="-compositionStart"], .composition {
|
|
143
|
-
fill: ${t.lineColor} !important;
|
|
144
|
-
stroke: ${t.lineColor} !important;
|
|
145
|
-
stroke-width: 1;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
[id$="-compositionEnd"], .composition {
|
|
149
|
-
fill: ${t.lineColor} !important;
|
|
150
|
-
stroke: ${t.lineColor} !important;
|
|
151
|
-
stroke-width: 1;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
[id$="-dependencyStart"], .dependency {
|
|
155
|
-
fill: ${t.lineColor} !important;
|
|
156
|
-
stroke: ${t.lineColor} !important;
|
|
157
|
-
stroke-width: 1;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
[id$="-dependencyEnd"], .dependency {
|
|
161
|
-
fill: ${t.lineColor} !important;
|
|
162
|
-
stroke: ${t.lineColor} !important;
|
|
163
|
-
stroke-width: 1;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
[id$="-extensionStart"], .extension {
|
|
167
|
-
fill: transparent !important;
|
|
168
|
-
stroke: ${t.lineColor} !important;
|
|
169
|
-
stroke-width: 1;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
[id$="-extensionEnd"], .extension {
|
|
173
|
-
fill: transparent !important;
|
|
174
|
-
stroke: ${t.lineColor} !important;
|
|
175
|
-
stroke-width: 1;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
[id$="-aggregationStart"], .aggregation {
|
|
179
|
-
fill: transparent !important;
|
|
180
|
-
stroke: ${t.lineColor} !important;
|
|
181
|
-
stroke-width: 1;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
[id$="-aggregationEnd"], .aggregation {
|
|
185
|
-
fill: transparent !important;
|
|
186
|
-
stroke: ${t.lineColor} !important;
|
|
187
|
-
stroke-width: 1;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
[id$="-lollipopStart"], .lollipop {
|
|
191
|
-
fill: ${t.mainBkg} !important;
|
|
192
|
-
stroke: ${t.lineColor} !important;
|
|
193
|
-
stroke-width: 1;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
[id$="-lollipopEnd"], .lollipop {
|
|
197
|
-
fill: ${t.mainBkg} !important;
|
|
198
|
-
stroke: ${t.lineColor} !important;
|
|
199
|
-
stroke-width: 1;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.edgeTerminals {
|
|
203
|
-
font-size: 11px;
|
|
204
|
-
line-height: initial;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.classTitleText {
|
|
208
|
-
text-anchor: middle;
|
|
209
|
-
font-size: 18px;
|
|
210
|
-
fill: ${t.textColor};
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.edgeLabel[data-look="neo"] {
|
|
214
|
-
background-color: ${t.edgeLabelBackground};
|
|
215
|
-
p {
|
|
216
|
-
background-color: ${t.edgeLabelBackground};
|
|
217
|
-
}
|
|
218
|
-
rect {
|
|
219
|
-
opacity: 0.5;
|
|
220
|
-
background-color: ${t.edgeLabelBackground};
|
|
221
|
-
fill: ${t.edgeLabelBackground};
|
|
222
|
-
}
|
|
223
|
-
text-align: center;
|
|
224
|
-
}
|
|
225
|
-
${(0,i.o)()}
|
|
226
|
-
`,"getStyles"),D=(0,d.K)((t,e="TB")=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),F=(0,d.K)(function(t,e){return e.db.getClasses()},"getClasses"),B={parser:y,get db(){return new E},renderer:{getClasses:F,draw:(0,d.K)(async function(t,e,s,i){h.R.info("REF0:"),h.R.info("Drawing class diagram (v3)",e);let{securityLevel:l,state:u,layout:d}=(0,c.D7)();i.db.setDiagramId(e);let p=i.db.getData(),A=(0,a.A)(e,l);p.type=i.type,p.layoutAlgorithm=(0,n.q7)(d),p.nodeSpacing=u?.nodeSpacing||50,p.rankSpacing=u?.rankSpacing||50,p.markers=["aggregation","extension","composition","dependency","lollipop"],p.diagramId=e,await (0,n.XX)(p,A),o._K.insertTitle(A,"classDiagramTitleText",u?.titleTopMargin??25,i.db.getDiagramTitle()),(0,r.P)(A,8,"classDiagram",u?.useMaxWidth??!0)},"draw"),getDir:D},styles:T,init:(0,d.K)(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}}]);
|