@bendyline/gezel-service 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/gezeld.js +6253 -3616
- package/dist/handboek-content/whats-new/1.26224.md +1 -0
- package/dist/handboek-content/whats-new/1.26226.md +1 -0
- package/dist/handboek-content/whats-new/1.26231.md +1 -0
- package/dist/handboek-content/whats-new/1.26234.md +1 -0
- package/dist/handboek-content/whats-new/1.26237.md +1 -0
- package/dist/handboek-content/whats-new/1.26244.md +2 -1
- package/dist/handboek-content/whats-new/1.26247.md +88 -0
- package/dist/handboek-content/whats-new/whats-new-index.md +1 -0
- package/dist/index-store/static-index-worker.js +17 -1
- package/dist/index.d.ts +473 -209
- package/dist/index.js +6251 -3614
- package/dist/memory/embed-worker.js +58 -2
- package/dist/memory/image-embed-worker.js +8 -0
- package/dist/providers/llama-cpp/gguf-metadata-worker.js +2 -0
- package/dist/providers/mlx/python/gezel_mlx_server.py +18 -18
- package/dist/ui/assets/AmbientDashboardCard-Cf5fi_fY.js +1 -0
- package/dist/ui/assets/{AudioEngineSettings-BDrNIGGm.js → AudioEngineSettings-D3L7HOHe.js} +1 -1
- package/dist/ui/assets/{BenchmarksView-CHyujjs8.js → BenchmarksView-B68hrLCl.js} +1 -1
- package/dist/ui/assets/CatalogBrowser-DEM9t7Es.js +1 -0
- package/dist/ui/assets/{ChannelsSettings-Be_W1mr8.js → ChannelsSettings-DtK_k0Ul.js} +1 -1
- package/dist/ui/assets/ChatTimelineView-CQ4Sf4Ip.js +7 -0
- package/dist/ui/assets/ConfirmDialog-Dt1ed4Fh.js +1 -0
- package/dist/ui/assets/ConnectedAppsPanel-Cl8LEkrt.js +1 -0
- package/dist/ui/assets/CraftbookEditor-DEQRlQ2p.js +1 -0
- package/dist/ui/assets/{CraftbookScriptEditorView-DXIZYZT3.js → CraftbookScriptEditorView-DhXkkIdK.js} +1 -1
- package/dist/ui/assets/{CraftbookTabContent-Bm7t_b37.js → CraftbookTabContent-_oIdpQTG.js} +1 -1
- package/dist/ui/assets/{CraftbookToolsetSetup-DTEA-3K3.js → CraftbookToolsetSetup-BKg136L1.js} +1 -1
- package/dist/ui/assets/{CraftbooksView-C4X99TTe.js → CraftbooksView-Dm2zH-nW.js} +2 -2
- package/dist/ui/assets/{DiffpackReviewView-ClcNxtmF.js → DiffpackReviewView-EFLGJnwr.js} +1 -1
- package/dist/ui/assets/DocumentDetail-ClDRj2N-.js +1 -0
- package/dist/ui/assets/DocumentsView-ny9oieg2.js +1 -0
- package/dist/ui/assets/DropdownMenu-S4d9-3j3.js +1 -0
- package/dist/ui/assets/Ds4Settings-CeWlm5Vf.js +1 -0
- package/dist/ui/assets/EmbeddedChat-Hjrrgpao.js +1 -0
- package/dist/ui/assets/{FaceRecognitionCard-D3hdc7uU.js → FaceRecognitionCard-D7ufKqjI.js} +1 -1
- package/dist/ui/assets/FileMapView-DRjf59RH.js +1 -0
- package/dist/ui/assets/{FoldersSettings-BcNzl4vT.js → FoldersSettings-DDUhaFio.js} +1 -1
- package/dist/ui/assets/GezelDetail-Cph6pVGb.js +1 -0
- package/dist/ui/assets/{GezelJsonEditor-fOvYclu9.js → GezelJsonEditor-7vDGyBib.js} +1 -1
- package/dist/ui/assets/{GezellenView-BTzhHrxi.js → GezellenView-DQhcO1CP.js} +1 -1
- package/dist/ui/assets/{GildeUpdatesCard-Bq6XEpLP.js → GildeUpdatesCard-UKKNm_U8.js} +1 -1
- package/dist/ui/assets/{GithubSignInChip-CnlTCG8G.js → GithubSignInChip-DjM3qZsL.js} +1 -1
- package/dist/ui/assets/{HandboekMediaProvider-BfQW8_Nr.js → HandboekMediaProvider-DixaXTAH.js} +1 -1
- package/dist/ui/assets/HandboekView-BeNQqho9.js +1 -0
- package/dist/ui/assets/HistoryView-E2szGNGS.js +1 -0
- package/dist/ui/assets/{HomeView-CB_5TJIp.css → HomeView-CNeqCFPc.css} +1 -1
- package/dist/ui/assets/HomeView-CkiS3DXy.js +1 -0
- package/dist/ui/assets/{ImageEngineSettings-BpMfQy4f.js → ImageEngineSettings-BCKT7Gvi.js} +1 -1
- package/dist/ui/assets/{ImageRecognitionSettings-Ct-7-Oas.js → ImageRecognitionSettings-DD6syFez.js} +1 -1
- package/dist/ui/assets/IncompleteDownloads-BiPaaahS.js +1 -0
- package/dist/ui/assets/InstallProgressRow-DyKOI4MU.js +1 -0
- package/dist/ui/assets/KnowledgeCatalogsCard-B132vzRa.js +1 -0
- package/dist/ui/assets/KnowledgeView-CtPuIlN4.js +1 -0
- package/dist/ui/assets/LlamaCppSettings-D6zHcu4W.js +1 -0
- package/dist/ui/assets/{MarkdownField-D-0Zw7gM.js → MarkdownField-CK8K3fzj.js} +1 -1
- package/dist/ui/assets/MemoriesTree-DzjXzIrM.js +1 -0
- package/dist/ui/assets/{MicrophoneSettings-BIaFxyY_.js → MicrophoneSettings-1FH83SCq.js} +1 -1
- package/dist/ui/assets/MlxSettings-BYxUqFnJ.js +1 -0
- package/dist/ui/assets/ModelPicker-DoXPfQkQ.js +1 -0
- package/dist/ui/assets/{NewScriptDialog-D-gkY8TS.js → NewScriptDialog-C5X-7PMt.js} +1 -1
- package/dist/ui/assets/NewTaskDialog-Cyqtmigv.js +2 -0
- package/dist/ui/assets/{OllamaSettings-oIE2Mech.js → OllamaSettings-DkjmA-sB.js} +1 -1
- package/dist/ui/assets/ProjectChat-YEqUME6k.js +5 -0
- package/dist/ui/assets/{ProjectConnectionsTab-BZqp-oKI.js → ProjectConnectionsTab-dFCJpW93.js} +1 -1
- package/dist/ui/assets/ProjectGitStatusBar-CjZxG54t.js +1 -0
- package/dist/ui/assets/{ProjectGithubView-w8suLCsA.js → ProjectGithubView-CQ4-tmPx.js} +1 -1
- package/dist/ui/assets/{ProjectMailTab-DGo7eyB8.js → ProjectMailTab-NaScsZJf.js} +1 -1
- package/dist/ui/assets/ProjectOverviewView-ChjxbQas.js +1 -0
- package/dist/ui/assets/{ProjectTimeline-DRe3D9qY.js → ProjectTimeline-BZpdCisR.js} +1 -1
- package/dist/ui/assets/ProjectsView-J77ECk6V.js +7 -0
- package/dist/ui/assets/{RecommendedBadge-BKiDixnB.js → RecommendedBadge-D0m68PAu.js} +1 -1
- package/dist/ui/assets/{RemoteServersPanel-DGyl6-Rg.js → RemoteServersPanel-BdLOoORu.js} +1 -1
- package/dist/ui/assets/ScriptEditorTabs-BFvIiDFZ.js +2 -0
- package/dist/ui/assets/ScriptEditorView-B09rm1vz.js +5 -0
- package/dist/ui/assets/{ScriptsView-WQc28TmQ.js → ScriptsView-BvNAJXpo.js} +1 -1
- package/dist/ui/assets/{SecurityComplianceSettings-DsMEA4J3.js → SecurityComplianceSettings-DzGOnptO.js} +1 -1
- package/dist/ui/assets/SessionSwitcher-6okzcxT7.js +1 -0
- package/dist/ui/assets/SettingsView-Dur4dLhW.js +3 -0
- package/dist/ui/assets/SquisqIntegration-6v3yNOIP.js +2 -0
- package/dist/ui/assets/{StorageCleanupDialog-DHqwyMZZ.js → StorageCleanupDialog-OQlomMJD.js} +1 -1
- package/dist/ui/assets/{StorageUsageCard-CdT6SU51.js → StorageUsageCard-f6c6qTbM.js} +1 -1
- package/dist/ui/assets/Tabs-jE0Z5Tzd.js +1 -0
- package/dist/ui/assets/TaskTabContent-0w3kAUWR.js +1 -0
- package/dist/ui/assets/TasksView-BVMT4BAY.js +1 -0
- package/dist/ui/assets/{TerminalCodeEditor-77pBm6f3.js → TerminalCodeEditor-DO7zLKy-.js} +2 -2
- package/dist/ui/assets/ToolsetsEditor-Bb1wD5mV.js +8 -0
- package/dist/ui/assets/TransformToolbarButton-BWYkEB0d.js +5 -0
- package/dist/ui/assets/UnrecognizedModels-HtdMZUqK.js +1 -0
- package/dist/ui/assets/{VideoEngineSettings-DzMeINuv.js → VideoEngineSettings-Dq8Nw_tK.js} +1 -1
- package/dist/ui/assets/{WorkspaceIndexPane-DU4yd4Ai.js → WorkspaceIndexPane-fpDz4MwZ.js} +1 -1
- package/dist/ui/assets/{api-BX5xXiFs.js → api-BPraLwsh.js} +1 -1
- package/dist/ui/assets/chat-thread-memory-Be48zsyG.js +1 -0
- package/dist/ui/assets/chunk-6ECMNUIP-DDVjPyfK.js +15 -0
- package/dist/ui/assets/{chunk-6N2J7C2B-B5QIrD9m.js → chunk-6N2J7C2B-CsppiLVr.js} +1 -1
- package/dist/ui/assets/{chunk-A6N6IN3I-DXok09eC.js → chunk-A6N6IN3I-ofeM4l8g.js} +1 -1
- package/dist/ui/assets/chunk-B7GEAZBI-Divd2h1k.js +1 -0
- package/dist/ui/assets/chunk-DXYWKZ52-BXcAlClu.js +1 -0
- package/dist/ui/assets/chunk-FLR2ARKC-D7wrvQgT.js +2 -0
- package/dist/ui/assets/chunk-IIQYS2YH-DKZhWMpn.js +1 -0
- package/dist/ui/assets/{chunk-ILCJ3WFD-WRukZ7R1.js → chunk-ILCJ3WFD-CLZxw4Ge.js} +3 -3
- package/dist/ui/assets/chunk-OBADJV7C-CDVOcmYt.js +1 -0
- package/dist/ui/assets/chunk-Q77KNJIN-BIDRf0aP.js +6 -0
- package/dist/ui/assets/chunk-S5PCVMKU-Df5XzhSE.js +6 -0
- package/dist/ui/assets/chunk-UBFT2CDQ-FexGDigd.js +31 -0
- package/dist/ui/assets/{chunk-USU6HTKB-D5FmDzJU.js → chunk-USU6HTKB-B_p-YcDp.js} +1 -1
- package/dist/ui/assets/chunk-VKXOZTYP-BoVvWSBR.js +5 -0
- package/dist/ui/assets/{chunk-6RQOV3B3-CwvKotJw.js → chunk-VPWPEMZJ-DRKoa_j0.js} +1 -1
- package/dist/ui/assets/{chunk-WATAOG4Y-DXg2lov5.js → chunk-WATAOG4Y-C1EXVPmG.js} +1 -1
- package/dist/ui/assets/{container-B7jJtK5V.js → container-Ce94efbg.js} +1 -1
- package/dist/ui/assets/csv-62UGQMzZ.js +1 -0
- package/dist/ui/assets/data-B2kHjlc5.js +1 -0
- package/dist/ui/assets/dist-B9-VrAP8.js +2 -0
- package/dist/ui/assets/dist-BaHut5iX.js +2 -0
- package/dist/ui/assets/dist-BqGwkOe5.js +225 -0
- package/dist/ui/assets/dist-ZnIgkoEi.js +4 -0
- package/dist/ui/assets/{dist-BHl1ZAVG.js → dist-l6uUFZMV.js} +2 -2
- package/dist/ui/assets/dist-pLLFUPO-.js +1 -0
- package/dist/ui/assets/{doc-s6H7T0IO.js → doc-Dr5K49bx.js} +28 -28
- package/dist/ui/assets/document-companion-BQk2kS0F.js +1 -0
- package/dist/ui/assets/document-import-QoM9UxJr.js +1 -0
- package/dist/ui/assets/docx-sXa1Rf41.js +2 -0
- package/dist/ui/assets/{epub-B98SgHBz.js → epub-RopMP0ec.js} +4 -4
- package/dist/ui/assets/{export-options-Bu-tI6og.js → export-options-f7PKjEBb.js} +1 -1
- package/dist/ui/assets/extract-UTAOG7LV-4WDRw1o4.js +1 -0
- package/dist/ui/assets/file-browser-c2tf4MIb.js +5 -0
- package/dist/ui/assets/html-BGVOMhkv.js +253 -0
- package/dist/ui/assets/icons-DWaUNQbT.js +1 -0
- package/dist/ui/assets/images-JLBFCDD4-6JitW0hD.js +1 -0
- package/dist/ui/assets/index-B8NcxqcR.css +1 -0
- package/dist/ui/assets/index-C0DYtvfg.js +34 -0
- package/dist/ui/assets/index-J8TOMdvV.js +2 -0
- package/dist/ui/assets/{infer-kCLH1C8z.js → infer-LEGOsu64.js} +2 -2
- package/dist/ui/assets/ironcalc-BAi5gOlE.js +3 -0
- package/dist/ui/assets/layouts-2A7QNF6Y-CVwP7noP.js +1 -0
- package/dist/ui/assets/{mail-link-CI6YD6k2.js → mail-link-DXkmCd5b.js} +1 -1
- package/dist/ui/assets/markdown-baseline-9B52XlX2.js +1 -0
- package/dist/ui/assets/{markdown-Bi9b5f5Y.js → markdown-ryKA_OmY.js} +1 -1
- package/dist/ui/assets/materialize-A34OZGEU-xNNKzytx.js +1 -0
- package/dist/ui/assets/model-inventory-ykSm_IT5.js +1 -0
- package/dist/ui/assets/{model-quantization-BDzrELN_.js → model-quantization-CLO7XLoF.js} +1 -1
- package/dist/ui/assets/{monaco-base-BiVSa1J-.js → monaco-base-B1H1U1Sw.js} +1 -1
- package/dist/ui/assets/{monaco-setup-UeltVkg_.js → monaco-setup-DjhrGQui.js} +1 -1
- package/dist/ui/assets/{new-project-meta-0xhggGA_.js → new-project-meta-_f9sfcRX.js} +1 -1
- package/dist/ui/assets/outside-in-D73N1g_b.js +3 -0
- package/dist/ui/assets/{pdf-DgTjy3rN.js → pdf-BOjVDlCK.js} +3 -3
- package/dist/ui/assets/{pending-drafts-YVW6X55O.js → pending-drafts-B11MKQ9R.js} +1 -1
- package/dist/ui/assets/{poppetje-Ce-02Aqi.js → poppetje-DLB8uevw.js} +2 -2
- package/dist/ui/assets/pptx-BuxyNxQh.js +6 -0
- package/dist/ui/assets/primitives-CWrGZpPI.js +41 -0
- package/dist/ui/assets/run-export-ChaMXrKS.js +23 -0
- package/dist/ui/assets/squisq-formats-aAdypXoy.js +1 -0
- package/dist/ui/assets/standalone-source-q_Zzd1bd.js +11 -0
- package/dist/ui/assets/storage-D8pE2zg0.js +1 -0
- package/dist/ui/assets/styles-BhnF3s2q.css +1 -0
- package/dist/ui/assets/styles-CKVKwqoQ.js +550 -0
- package/dist/ui/assets/table-fcouR4db.js +1 -0
- package/dist/ui/assets/{terminal-monaco-setup-DNoK2tN4.js → terminal-monaco-setup-BAzrVzeR.js} +1 -1
- package/dist/ui/assets/{useCompactLayout-BarJPYcv.js → useCompactLayout-Dtolvzye.js} +0 -0
- package/dist/ui/assets/{useCopilotAvailability-BH1nLXQI.js → useCopilotAvailability-3xZvKgTF.js} +1 -1
- package/dist/ui/assets/{useDiffpacks-CK8W_OD_.js → useDiffpacks-Dsnr0wtX.js} +1 -1
- package/dist/ui/assets/{useGitSync-DWxX5-7K.js → useGitSync-BCTptQsp.js} +1 -1
- package/dist/ui/assets/{useShowWorkInProgressFeatures-DwwviLRO.js → useShowWorkInProgressFeatures-BhDNuQiU.js} +1 -1
- package/dist/ui/assets/{useTotalRamBytes-WoN_mi-V.js → useTotalRamBytes-DIx-_pf8.js} +1 -1
- package/dist/ui/assets/wasm-DdxEDD2H.js +1 -0
- package/dist/ui/assets/wasm_bg-DW9Xt_vt.wasm +0 -0
- package/dist/ui/assets/xlsx-DyBGuAO1.js +4 -0
- package/dist/ui/index.html +19 -18
- package/package.json +11 -11
- package/dist/ui/assets/AmbientDashboardCard-C1Ee-FKZ.js +0 -1
- package/dist/ui/assets/CatalogBrowser-Bz8ZtxPn.js +0 -1
- package/dist/ui/assets/ChatTimelineView-Do9EryEH.js +0 -7
- package/dist/ui/assets/ConfirmDialog-BHFs6vmJ.js +0 -1
- package/dist/ui/assets/ConnectedAppsPanel-BtMayq0R.js +0 -1
- package/dist/ui/assets/CraftbookEditor-D5jTzWwF.js +0 -1
- package/dist/ui/assets/DocumentDetail-CPU51d04.js +0 -1
- package/dist/ui/assets/DocumentsView-B6OyjvJ0.js +0 -1
- package/dist/ui/assets/DropdownMenu-D5fCzIrh.js +0 -1
- package/dist/ui/assets/Ds4Settings-CrUM_KGP.js +0 -1
- package/dist/ui/assets/EmbeddedChat-ue9ia-WY.js +0 -1
- package/dist/ui/assets/FileMapView-CxvfDLGA.js +0 -1
- package/dist/ui/assets/GezelDetail-DHuqBK55.js +0 -1
- package/dist/ui/assets/HandboekView-CPnnyj29.js +0 -1
- package/dist/ui/assets/HistoryView-B4VAfEMe.js +0 -1
- package/dist/ui/assets/HomeView-ccH60J6f.js +0 -1
- package/dist/ui/assets/KnowledgeCatalogsCard-Bi5Rx9Iz.js +0 -1
- package/dist/ui/assets/KnowledgeView-DAwjwLZo.js +0 -1
- package/dist/ui/assets/LlamaCppSettings-Ceyk9pDP.js +0 -1
- package/dist/ui/assets/MemoriesTree-BKZEPJpm.js +0 -1
- package/dist/ui/assets/MlxSettings-CG3wfuc3.js +0 -1
- package/dist/ui/assets/ModelPicker-CCBVjLMS.js +0 -1
- package/dist/ui/assets/NewPathDialog-D4jnNBfP.js +0 -1
- package/dist/ui/assets/NewTaskDialog-Ox9D612Z.js +0 -2
- package/dist/ui/assets/ProjectChat-DMwKnkW-.js +0 -5
- package/dist/ui/assets/ProjectGitStatusBar-C6bkCSby.js +0 -1
- package/dist/ui/assets/ProjectOverviewView-NNwXd_QQ.js +0 -1
- package/dist/ui/assets/ProjectsView-SBPgYOq8.js +0 -7
- package/dist/ui/assets/ScriptEditorTabs-paocQ6dj.js +0 -2
- package/dist/ui/assets/ScriptEditorView-N9zSLqqi.js +0 -5
- package/dist/ui/assets/SessionSwitcher-C8te7YSe.js +0 -1
- package/dist/ui/assets/SettingsView-Brl4JQkW.js +0 -3
- package/dist/ui/assets/Tabs-BAY1Q79B.js +0 -1
- package/dist/ui/assets/TaskTabContent-CNPJ4DQj.js +0 -1
- package/dist/ui/assets/TasksView-DuMjFS8S.js +0 -1
- package/dist/ui/assets/ToolsetsEditor-BdxHnIBj.js +0 -8
- package/dist/ui/assets/TransformToolbarButton-CVg5nz36.js +0 -5
- package/dist/ui/assets/UnrecognizedModels-Cw9Ku_bW.js +0 -1
- package/dist/ui/assets/chat-thread-memory-CZGcwgGo.js +0 -1
- package/dist/ui/assets/chunk-6ECMNUIP-C1kohb1U.js +0 -15
- package/dist/ui/assets/chunk-AONELFLA-Cv2nS9ga.js +0 -1
- package/dist/ui/assets/chunk-IIQYS2YH-Dxg6MAfT.js +0 -1
- package/dist/ui/assets/chunk-MIKKUKOD-XIkmalSN.js +0 -31
- package/dist/ui/assets/chunk-NNJLSQPW-DJA6camf.js +0 -5
- package/dist/ui/assets/chunk-S5PCVMKU-DbCZ5AUH.js +0 -6
- package/dist/ui/assets/csv-xmd1_Aqd.js +0 -4
- package/dist/ui/assets/dist-BPx-FyRH.js +0 -222
- package/dist/ui/assets/dist-Bvo52IGx.js +0 -1
- package/dist/ui/assets/dist-D5aoNQwk.js +0 -2
- package/dist/ui/assets/docx-Cj4A9MhC.js +0 -2
- package/dist/ui/assets/extract-UTAOG7LV-C4b7ycaL.js +0 -1
- package/dist/ui/assets/file-browser-80qWoVju.js +0 -5
- package/dist/ui/assets/html-C9TlzI57.js +0 -253
- package/dist/ui/assets/icons-C9dD-bDi.js +0 -1
- package/dist/ui/assets/images-ESPQKVTW-D7SgdVJ_.js +0 -1
- package/dist/ui/assets/index-D1m4Wx8V.css +0 -1
- package/dist/ui/assets/index-DXWR4qW1.js +0 -34
- package/dist/ui/assets/layouts-2A7QNF6Y-De2t-YXl.js +0 -1
- package/dist/ui/assets/markdown-baseline-HMqF2ChK.js +0 -1
- package/dist/ui/assets/outside-in-BFVUUcLa.js +0 -3
- package/dist/ui/assets/pptx-6ChgUEf4.js +0 -6
- package/dist/ui/assets/primitives-DEsn1shf.js +0 -41
- package/dist/ui/assets/run-export-BrYhHj1O.js +0 -23
- package/dist/ui/assets/standalone-source-D6mbpa3h.js +0 -11
- package/dist/ui/assets/storage-fn4FCEVK.js +0 -1
- package/dist/ui/assets/styles-C0EoNJbk.css +0 -1
- package/dist/ui/assets/styles-CKr_yrbn.js +0 -541
- package/dist/ui/assets/xlsx-DH7sTb3W.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-CEpd2cAX.js";import{
|
|
1
|
+
import{t as e}from"./jsx-runtime-CEpd2cAX.js";import{L as t}from"./dist-BqGwkOe5.js";var n=e(),r={llm:`Uses AI`,network:`Internet`,"workspace.read":`Reads project files`,"workspace.write":`Edits project files`,"artifacts.read":`Reads artifacts`,"artifacts.write":`Writes artifacts`,"documents.read":`Reads documents`,"documents.write":`Writes documents`,"tasks.read":`Reads tasks`,"tasks.write":`Updates tasks`,"memory.read":`Reads memory`,"memory.write":`Saves memory`,"index.read":`Reads the index`,"index.refresh":`Refreshes the index`};function i(e){let n=t(e);return n?`Uses ${n}`:r[e]??e}function a({requires:e}){return!e||e.length===0?null:(0,n.jsx)(`ul`,{className:`capability-pills`,children:e.map(e=>(0,n.jsx)(`li`,{className:`capability-pill`,title:e,children:i(e)},e))})}function o(e){let t={};for(let[n,r]of Object.entries(e.inputs??{})){let e=d(r);e!==void 0&&(t[n]=e)}return t}function s({inputs:e,values:t,onChange:r}){return(0,n.jsx)(n.Fragment,{children:Object.entries(e).map(([e,i])=>(0,n.jsx)(l,{name:e,field:i,value:t[e],onChange:n=>r({...t,[e]:n})},e))})}function c({result:e,meta:t}){return(0,n.jsxs)(`div`,{className:`script-run-result script-run-result--${e.status}`,children:[(0,n.jsxs)(`header`,{children:[(0,n.jsxs)(`strong`,{children:[`Run `,e.runId.slice(0,8)]}),` — `,e.status]}),e.error&&(0,n.jsx)(`p`,{className:`script-run-result__error`,children:e.error}),e.output!==void 0&&(0,n.jsxs)(`section`,{children:[(0,n.jsx)(`h4`,{children:`Output`}),t.outputs?(0,n.jsx)(`table`,{children:(0,n.jsx)(`tbody`,{children:Object.keys(t.outputs).map(t=>{let r=e.output?.[t];return(0,n.jsxs)(`tr`,{children:[(0,n.jsx)(`th`,{children:t}),(0,n.jsx)(`td`,{children:(0,n.jsx)(`code`,{children:u(r)})})]},t)})})}):(0,n.jsx)(`pre`,{children:JSON.stringify(e.output,null,2)})]}),e.callsSummary.length>0&&(0,n.jsxs)(`section`,{children:[(0,n.jsxs)(`h4`,{children:[`What it did (`,e.callsSummary.length,` calls)`]}),(0,n.jsx)(`ol`,{children:e.callsSummary.map((e,t)=>(0,n.jsxs)(`li`,{children:[(0,n.jsx)(`code`,{children:e.kind}),` · `,e.durationMs,`ms`,e.error?(0,n.jsxs)(`em`,{children:[` — `,e.error]}):null]},`${e.kind}-${t}`))})]})]})}function l({name:e,field:t,value:r,onChange:i}){let a=(0,n.jsxs)(`span`,{className:`script-input__label`,children:[e,t.required?(0,n.jsx)(`em`,{children:` *`}):null,` — `,(0,n.jsx)(`small`,{children:t.description})]});switch(t.type){case`string`:return t.multiline?(0,n.jsxs)(`label`,{children:[a,(0,n.jsx)(`textarea`,{value:typeof r==`string`?r:``,onChange:e=>i(e.target.value)})]}):(0,n.jsxs)(`label`,{children:[a,(0,n.jsx)(`input`,{type:`text`,value:typeof r==`string`?r:``,placeholder:t.pattern?`pattern: ${t.pattern}`:``,onChange:e=>i(e.target.value)})]});case`number`:return(0,n.jsxs)(`label`,{children:[a,(0,n.jsx)(`input`,{type:`number`,value:typeof r==`number`?r:``,min:t.min,max:t.max,step:t.integer?1:`any`,onChange:e=>{let t=Number(e.target.value);i(Number.isFinite(t)?t:void 0)}})]});case`boolean`:return(0,n.jsxs)(`label`,{className:`script-input__checkbox`,children:[(0,n.jsx)(`input`,{type:`checkbox`,checked:r===!0,onChange:e=>i(e.target.checked)}),a]});case`choice`:return(0,n.jsxs)(`label`,{children:[a,(0,n.jsxs)(`select`,{value:typeof r==`string`?r:``,onChange:e=>i(e.target.value),children:[(0,n.jsx)(`option`,{value:``,children:`— pick —`}),t.options.map(e=>(0,n.jsx)(`option`,{value:e.value,children:e.label??e.value},e.value))]})]});case`ref`:return(0,n.jsxs)(`label`,{children:[a,(0,n.jsx)(`input`,{type:`text`,placeholder:`${t.kind} id`,value:typeof r==`string`?r:``,onChange:e=>i(e.target.value)})]});case`json`:return(0,n.jsxs)(`label`,{children:[a,(0,n.jsx)(`textarea`,{value:r===void 0?``:JSON.stringify(r,null,2),onChange:e=>{let t=e.target.value;if(!t.trim()){i(void 0);return}try{i(JSON.parse(t))}catch{i(t)}}})]})}}function u(e){if(e===void 0)return`—`;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function d(e){switch(e.type){case`string`:case`number`:case`boolean`:case`choice`:case`json`:return e.default;case`ref`:return}}var f=new Map;function p(e,t){f.set(e,t)}function m(e){let t=f.get(e)??null;return f.delete(e),t}export{o as a,s as i,m as n,a as o,c as r,i as s,p as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t,t as n}from"./jsx-runtime-CEpd2cAX.js";import{d as r,h as i,n as a,on as o,p as s}from"./dist-BPx-FyRH.js";var c=e(t(),1);function l(e){let t=/^#([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let n=Number.parseInt(t[1],16);return[n>>16&255,n>>8&255,n&255]}function u(e){return`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`}function d(e,t,n){let r=l(e),i=l(t);if(!r||!i)return e;let a=Math.min(1,Math.max(0,n));return u([r[0]+(i[0]-r[0])*a,r[1]+(i[1]-r[1])*a,r[2]+(i[2]-r[2])*a])}function f(e,t){let n=l(e),r=l(t);return!n||!r?1/0:Math.hypot(n[0]-r[0],n[1]-r[1],n[2]-r[2])}var p=50;function m(e,t,n){let r=i.length,a=(e%r+r)%r;for(let e=0;e<r;e++){let o=i[(a+e)%r];if(Math.min(f(o.felt,t),f(o.felt,n))>=p)return o}return i[a]}function h(e){let t=96*e.bodyScale,n=160-t,r=n+t*.18,i=n+t*.42,a=n+t*.72,o=22*e.headScale,s=Math.max(4,o*.22);return{baseY:160,hipY:a,waistY:i,chestY:r,shoulderY:n,headR:o,headCY:n-o+s}}function g(e,t){let n=e=>40-e/2,r=e=>40+e/2,i=(e,t,n,r,i,a,o)=>{let s=e=>o===`L`?40-e/2:40+e/2,c=e+(n-e)*.55,l=n+(i-n)*.45;return`C ${s(r)} ${c}, ${s(r)} ${l}, ${s(a)} ${i}`},{baseW:a,hipW:o,waistW:s,chestW:c,shoulderW:l}=e,{baseY:u,hipY:d,waistY:f,chestY:p,shoulderY:m}=t,h=m+2.4,g=n(l),_=r(l);return[`M ${n(a)} ${u}`,i(u,a,d,o,f,s,`L`),i(f,s,p,c,h,l,`L`),`Q ${g} ${m+.2}, ${g+3.5} ${m-1.1}`,`C ${g+l*.24} ${m-2.4}, ${_-l*.24} ${m-2.4}, ${_-3.5} ${m-1.1}`,`Q ${_} ${m+.2}, ${_} ${h}`,i(h,l,p,c,f,s,`R`),i(f,s,d,o,u,a,`R`),`Z`].join(` `)}function _(e,t,n,r,i){let a=``;for(let o=0;o<=48;o++){let s=o/48*Math.PI*2,c=1+r*Math.sin(s*n+i)+r*.5*Math.sin(s*(n*2+1)-i*1.3),l=(Math.cos(s)*e*c).toFixed(2),u=(Math.sin(s)*t*c).toFixed(2);a+=`${o===0?`M`:`L`}${l},${u} `}return`${a}Z`}function ee(e){return a[e]??a.tapered}function te(e){let t=r[e]??r.adult;return{bodyScale:t.bodyScale,headScale:t.headScale}}var v=n(),y=`#d8b35a`,b=`#76521b`,x=`#251c15`,S=`#eee4cf`;function C(e,t){let{fv:n,hasHat:r,shirtAccent:i}=t,a=t.shirtAccentFill??i;return e===`goggles`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -21 ${n.eyeY-.8} Q 0 ${n.eyeY-4.2}, 21 ${n.eyeY-.8}`,fill:`none`,stroke:`#5c4938`,strokeWidth:2}),[-n.eyeGap,n.eyeGap].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:n.eyeY,r:5.2,fill:`rgba(174,204,205,0.38)`}),(0,v.jsx)(`circle`,{cx:e,cy:n.eyeY,r:5.2,fill:`none`,stroke:x,strokeWidth:1.7}),(0,v.jsx)(`path`,{d:`M ${e-2.8} ${n.eyeY-2.8} L ${e-.7} ${n.eyeY-3.7}`,stroke:`rgba(255,255,255,0.72)`,strokeWidth:1.1,strokeLinecap:`round`})]},e)),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap+5.1} ${n.eyeY} Q 0 ${n.eyeY-2.5}, ${n.eyeGap-5.1} ${n.eyeY}`,fill:`none`,stroke:x,strokeWidth:1.7})]}):e===`safety-glasses`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -18 ${n.eyeY-4.1} Q 0 ${n.eyeY-6}, 18 ${n.eyeY-4.1} L 15.8 ${n.eyeY+4.4} Q 0 ${n.eyeY+6.1}, -15.8 ${n.eyeY+4.4} Z`,fill:`rgba(190,225,229,0.45)`,stroke:`#536d72`,strokeWidth:.8}),(0,v.jsx)(`path`,{d:`M -15.5 ${n.eyeY-2.8} Q -7 ${n.eyeY-4.2}, -1.5 ${n.eyeY-3.2}`,fill:`none`,stroke:`rgba(255,255,255,0.78)`,strokeWidth:1.25,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M -21 ${n.eyeY-2.2} L -17.7 ${n.eyeY-2.2} M 17.7 ${n.eyeY-2.2} L 21 ${n.eyeY-2.2}`,stroke:`#536d72`,strokeWidth:1.2})]}):e===`pince-nez`?(0,v.jsxs)(`g`,{fill:`rgba(255,255,255,0.16)`,stroke:`#48382a`,strokeWidth:.8,children:[(0,v.jsx)(`ellipse`,{cx:-n.eyeGap,cy:n.eyeY+.4,rx:3.5,ry:2.8}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.4,rx:3.5,ry:2.8}),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap+3.4} ${n.eyeY+.2} Q 0 ${n.eyeY-2}, ${n.eyeGap-3.4} ${n.eyeY+.2}`,fill:`none`,strokeWidth:1.1}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+3.4} ${n.eyeY+1.2} Q ${n.eyeGap+6.2} ${n.eyeY+7}, ${n.eyeGap+4.8} ${n.eyeY+12}`,fill:`none`,strokeWidth:.45})]}):e===`headphones`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -20 -1 C -20 -24, -13 -29, 0 -29 C 13 -29, 20 -24, 20 -1`,fill:`none`,stroke:`#3d3733`,strokeWidth:2.6,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M -18 -3 C -18 -21, -11 -26, 0 -26 C 11 -26, 18 -21, 18 -3`,fill:`none`,stroke:`rgba(255,255,255,0.24)`,strokeWidth:.8}),[-20.5,20.5].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`rect`,{x:e-3.1,y:-4,width:6.2,height:13,rx:2.8,fill:`#49413b`}),(0,v.jsx)(`rect`,{x:e-2,y:-1.7,width:4,height:8.4,rx:1.7,fill:a,opacity:.88})]},e))]}):e===`hearing-aid`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M 20 -1 Q 24 -3, 24 1.5 Q 24 5, 21.5 7`,fill:`none`,stroke:`#a58263`,strokeWidth:1.35,strokeLinecap:`round`}),(0,v.jsx)(`rect`,{x:19.4,y:5.2,width:4.4,height:7.3,rx:2.1,fill:`#b9a18a`,stroke:`#6f5947`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:21.6,cy:7.3,r:.6,fill:`#76543b`}),(0,v.jsx)(`path`,{d:`M 20.5 12 Q 18.8 11, 18.7 8.8`,fill:`none`,stroke:`#8c745e`,strokeWidth:.55})]}):e===`nose-ring`?(0,v.jsxs)(`g`,{fill:`none`,stroke:y,strokeWidth:1.1,children:[(0,v.jsx)(`path`,{d:`M -2.6 6.4 A 2.7 2.7 0 1 0 2.6 6.4`}),(0,v.jsx)(`circle`,{cx:-2.45,cy:6.1,r:.65,fill:y,stroke:`none`}),(0,v.jsx)(`circle`,{cx:2.45,cy:6.1,r:.65,fill:y,stroke:`none`})]}):e===`hoop-earrings`?(0,v.jsxs)(`g`,{fill:`none`,stroke:y,strokeWidth:1.15,children:[(0,v.jsx)(`ellipse`,{cx:-20.5,cy:8.2,rx:3.1,ry:4.2}),(0,v.jsx)(`ellipse`,{cx:20.5,cy:8.2,rx:3.1,ry:4.2})]}):e===`drop-earrings`?(0,v.jsx)(`g`,{children:[-20,20].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:5.2,r:1.25,fill:y,stroke:b,strokeWidth:.35}),(0,v.jsx)(`path`,{d:`M ${e} 6.4 L ${e} 9.2`,stroke:b,strokeWidth:.65}),(0,v.jsx)(`path`,{d:`M ${e} 8.6 C ${e-2.4} 11.1, ${e-1.5} 14, ${e} 14.2 C ${e+1.5} 14, ${e+2.4} 11.1, ${e} 8.6 Z`,fill:a,stroke:b,strokeWidth:.4})]},e))}):e===`pearl-earrings`?(0,v.jsx)(v.Fragment,{children:[-20,20].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:6.4,r:2.2,fill:`#f3eee0`,stroke:`#8c806d`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:e-.65,cy:5.7,r:.65,fill:`rgba(255,255,255,0.9)`})]},e))}):e===`bandage`?(0,v.jsxs)(`g`,{transform:`translate(-8.5 6.2) rotate(-12)`,children:[(0,v.jsx)(`rect`,{x:-5.4,y:-1.9,width:10.8,height:3.8,rx:1.45,fill:S,stroke:`#8b7658`,strokeWidth:.45}),(0,v.jsx)(`rect`,{x:-1.8,y:-1.45,width:3.6,height:2.9,rx:.6,fill:`#d9c9aa`}),[-3.8,3.8].map(e=>(0,v.jsxs)(`g`,{fill:`#a99471`,children:[(0,v.jsx)(`circle`,{cx:e-.3,cy:-.55,r:.25}),(0,v.jsx)(`circle`,{cx:e+.35,cy:.5,r:.25})]},e))]}):e===`feather`&&!r?(0,v.jsxs)(`g`,{transform:`translate(16 -11) rotate(16)`,children:[(0,v.jsx)(`path`,{d:`M 0 10 C -5 3, -4 -8, 2 -16 C 8 -8, 7 2, 0 10 Z`,fill:a,stroke:`#56412a`,strokeWidth:.45}),(0,v.jsx)(`path`,{d:`M 0 12 Q 1 -2, 2 -15`,fill:`none`,stroke:`#705736`,strokeWidth:.7}),(0,v.jsx)(`g`,{stroke:`rgba(255,255,255,0.45)`,strokeWidth:.5,children:(0,v.jsx)(`path`,{d:`M 1 -9 L -2 -5 M 2 -6 L 6 -2 M 1 -2 L -3 2 M 1 2 L 5 5`})})]}):e===`pencil`&&!r?(0,v.jsxs)(`g`,{transform:`translate(17 -5) rotate(-22)`,children:[(0,v.jsx)(`rect`,{x:-1.7,y:-11,width:3.4,height:18,rx:.6,fill:`#dfa843`,stroke:`#74501e`,strokeWidth:.45}),(0,v.jsx)(`path`,{d:`M -1.7 -11 L 0 -15 L 1.7 -11 Z`,fill:`#d9b78d`,stroke:`#74501e`,strokeWidth:.4}),(0,v.jsx)(`path`,{d:`M -0.55 -13.7 L 0 -15 L 0.55 -13.7 Z`,fill:`#30251c`}),(0,v.jsx)(`rect`,{x:-1.7,y:5.4,width:3.4,height:2.8,rx:.45,fill:`#c77670`})]}):e===`ribbon`&&!r?(0,v.jsxs)(`g`,{transform:`translate(-15.5 -8.5)`,fill:a,stroke:`rgba(50,30,15,0.38)`,strokeWidth:.4,children:[(0,v.jsx)(`path`,{d:`M -1 0 C -8 -5, -9 3, -2 3.5 Z`}),(0,v.jsx)(`path`,{d:`M 1 0 C 8 -5, 9 3, 2 3.5 Z`}),(0,v.jsx)(`path`,{d:`M -1 2 L -4.8 9 L 0 6.5 L 4.8 9 L 1 2 Z`}),(0,v.jsx)(`circle`,{cx:0,cy:1.3,r:2.2})]}):e===`necktie`?(0,v.jsxs)(`g`,{fill:a,stroke:`rgba(45,30,20,0.4)`,strokeWidth:.45,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -3.4 21.3 L 0 18.8 L 3.4 21.3 L 1.8 25 L -1.8 25 Z`}),(0,v.jsx)(`path`,{d:`M -1.7 25 L 1.7 25 L 3 34 L 0 37 L -3 34 Z`}),(0,v.jsx)(`path`,{d:`M -0.9 26 L 0.7 26 L 1.5 33`,fill:`none`,stroke:`rgba(255,255,255,0.3)`})]}):e===`cravat`?(0,v.jsxs)(`g`,{fill:S,stroke:`#7f6a4d`,strokeWidth:.4,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -9 20 Q 0 17, 9 20 L 5 24 Q 0 22, -5 24 Z`}),(0,v.jsx)(`path`,{d:`M -5 23 Q 0 21, 5 23 L 3.8 28 Q 0 26, -3.8 28 Z`}),(0,v.jsx)(`path`,{d:`M -3.5 27 Q 0 25, 3.5 27 L 2 33 L 0 35 L -2 33 Z`}),(0,v.jsx)(`path`,{d:`M -5.5 22 Q 0 20.4, 5.5 22`,fill:`none`,stroke:`rgba(255,255,255,0.9)`})]}):e===`bolo-tie`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -11 20 Q -5 24, -2 31 M 11 20 Q 5 24, 2 31`,fill:`none`,stroke:`#4a3020`,strokeWidth:1.05}),(0,v.jsx)(`ellipse`,{cx:0,cy:27.5,rx:3.7,ry:4.4,fill:y,stroke:b,strokeWidth:.55}),(0,v.jsx)(`path`,{d:`M -1.8 26 Q 0 24.5, 1.8 26 Q 0 28.8, -1.8 26`,fill:a}),(0,v.jsx)(`path`,{d:`M -2 31 L -3.3 36 M 2 31 L 3.3 36`,stroke:`#4a3020`,strokeWidth:.8})]}):e===`lanyard`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -12 20 L -5 31 M 12 20 L 5 31`,fill:`none`,stroke:a,strokeWidth:1.25}),(0,v.jsx)(`circle`,{cx:0,cy:29.7,r:1.1,fill:`#554434`}),(0,v.jsx)(`rect`,{x:-4.4,y:31,width:8.8,height:6.3,rx:1.1,fill:`#e9e3d5`,stroke:`#66584a`,strokeWidth:.45}),(0,v.jsx)(`rect`,{x:-2.7,y:32.4,width:5.4,height:1.1,rx:.4,fill:a}),(0,v.jsx)(`path`,{d:`M -2.6 35.3 H 2.6`,stroke:`#9d9488`,strokeWidth:.55})]}):e===`medal`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -8 20 L -1.5 29 H 1.5 L 8 20`,fill:`none`,stroke:a,strokeWidth:2.1}),(0,v.jsx)(`circle`,{cx:0,cy:30.2,r:4,fill:y,stroke:b,strokeWidth:.6}),(0,v.jsx)(`path`,{d:`M 0 27.6 L 0.8 29.2 L 2.6 29.5 L 1.3 30.8 L 1.6 32.6 L 0 31.7 L -1.6 32.6 L -1.3 30.8 L -2.6 29.5 L -0.8 29.2 Z`,fill:`#f6df8d`})]}):e===`pocket-square`?(0,v.jsxs)(`g`,{transform:`translate(9.5 27)`,children:[(0,v.jsx)(`path`,{d:`M -4 1.5 L -3 -5 L 0 -2.4 L 2 -6 L 4 -2.1 L 4 1.5 Z`,fill:S,stroke:`#75634c`,strokeWidth:.45,strokeLinejoin:`round`}),(0,v.jsx)(`path`,{d:`M -4 1.5 H 4`,stroke:`#5a4737`,strokeWidth:.8}),(0,v.jsx)(`path`,{d:`M -1.2 -1.6 L 0 -2.4 L 1.4 -1.1`,fill:`none`,stroke:`rgba(255,255,255,0.8)`,strokeWidth:.5})]}):e===`tool-pendant`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -13 20.5 Q 0 28, 13 20.5`,fill:`none`,stroke:`#72583d`,strokeWidth:.65}),(0,v.jsxs)(`g`,{transform:`translate(0 29) rotate(-28)`,fill:y,stroke:b,strokeWidth:.4,children:[(0,v.jsx)(`rect`,{x:-1.1,y:-1,width:2.2,height:8,rx:.7}),(0,v.jsx)(`path`,{d:`M -4 -3 Q 0 -5, 4 -3 L 3.4 -0.8 Q 0 -2.3, -3.4 -0.8 Z`})]})]}):null}var w=e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:6,r:2.4,fill:`rgba(245,200,80,0.95)`}),(0,v.jsx)(`circle`,{cx:e-.6,cy:5.4,r:.7,fill:`rgba(255,235,170,0.9)`}),(0,v.jsx)(`circle`,{cx:e,cy:6,r:2.4,fill:`none`,stroke:`#5b3d10`,strokeWidth:.4})]},`stud${e}`);function ne(e,t){let{felt:n}=t,r=t.feltFill??n.felt,i=t.feltBandFill??n.band;return e===`cap`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -8 C -22 -23, -11 -29, 0 -29 C 11 -29, 22 -23, 22 -8 C 16 -11, 8 -13, 0 -13 C -8 -13, -16 -11, -22 -8 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M -16 -9.5 C -8 -13, 8 -13, 16 -9.5 C 13 -3.5, -13 -3.5, -16 -9.5 Z`,fill:i}),(0,v.jsx)(`path`,{d:`M -16 -9.5 C -8 -13, 8 -13, 16 -9.5`,fill:`none`,stroke:`rgba(0,0,0,0.25)`,strokeWidth:.5})]}):e===`beanie`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -7 C -22 -25, -12 -32, 0 -32 C 12 -32, 22 -25, 22 -7 C 16 -9, 8 -10, 0 -10 C -8 -10, -16 -9, -22 -7 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M -22 -8 C -17 -10, -9 -11, 0 -11 C 9 -11, 17 -10, 22 -8 C 18 -5, 9 -4, 0 -4 C -9 -4, -18 -5, -22 -8 Z`,fill:i}),(0,v.jsx)(`circle`,{cx:0,cy:-32.5,r:2.8,fill:`#e8dfc8`,opacity:.95})]}):e===`kerchief`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -9 C -22 -22, -11 -28, 0 -28 C 11 -28, 22 -22, 22 -9 L 18 -3 C 14 -7, 7 -9, 0 -9 C -7 -9, -14 -7, -18 -3 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M 19.5 -9 L 26.5 -10.5 L 23 -4.5 Z`,fill:i}),(0,v.jsx)(`path`,{d:`M 20 -7.5 L 27.5 -5 L 22.5 -2 Z`,fill:r}),(0,v.jsx)(`circle`,{cx:-6,cy:-18,r:1,fill:`rgba(255,255,255,0.25)`}),(0,v.jsx)(`circle`,{cx:6,cy:-16,r:1,fill:`rgba(255,255,255,0.25)`}),(0,v.jsx)(`circle`,{cx:0,cy:-22,r:1,fill:`rgba(255,255,255,0.25)`})]}):e===`straw`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`ellipse`,{cx:0,cy:-8.5,rx:29,ry:4.2,fill:`#b98942`}),(0,v.jsx)(`path`,{d:`M -18 -9 C -18 -23, -9 -29, 0 -29 C 9 -29, 18 -23, 18 -9 C 12 -11, 6 -12, 0 -12 C -6 -12, -12 -11, -18 -9 Z`,fill:`#cda75d`}),(0,v.jsx)(`ellipse`,{cx:0,cy:-10,rx:18,ry:1.25,fill:`#5b3518`,opacity:.5}),(0,v.jsxs)(`g`,{stroke:`#5b3518`,strokeWidth:.3,opacity:.26,children:[(0,v.jsx)(`line`,{x1:-27,y1:-8.5,x2:-19,y2:-9.5}),(0,v.jsx)(`line`,{x1:-23,y1:-6.5,x2:-16,y2:-8.8}),(0,v.jsx)(`line`,{x1:27,y1:-8.5,x2:19,y2:-9.5}),(0,v.jsx)(`line`,{x1:23,y1:-6.5,x2:16,y2:-8.8})]})]}):e===`newsboy`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -8 C -23 -21, -11 -28, 0 -28 C 11 -28, 23 -21, 22 -8 C 16 -11, 8 -13, 0 -13 C -8 -13, -16 -11, -22 -8 Z`,fill:r}),(0,v.jsx)(`circle`,{cx:0,cy:-25,r:1,fill:i}),(0,v.jsx)(`path`,{d:`M -13 -9 C -7 -7, 7 -7, 13 -9 C 16 -8, 16 -6, 13 -5.5 C 5 -4, -5 -4, -13 -5.5 C -16 -6, -16 -8, -13 -9 Z`,fill:`#2a2118`,opacity:.82})]}):null}function re(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -15 20
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t,t as n}from"./jsx-runtime-CEpd2cAX.js";import{f as r,g as i,m as a,n as o,un as s}from"./dist-BqGwkOe5.js";var c=e(t(),1);function l(e){let t=/^#([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let n=Number.parseInt(t[1],16);return[n>>16&255,n>>8&255,n&255]}function u(e){return`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`}function d(e,t,n){let r=l(e),i=l(t);if(!r||!i)return e;let a=Math.min(1,Math.max(0,n));return u([r[0]+(i[0]-r[0])*a,r[1]+(i[1]-r[1])*a,r[2]+(i[2]-r[2])*a])}function f(e,t){let n=l(e),r=l(t);return!n||!r?1/0:Math.hypot(n[0]-r[0],n[1]-r[1],n[2]-r[2])}var p=50;function m(e,t,n){let r=i.length,a=(e%r+r)%r;for(let e=0;e<r;e++){let o=i[(a+e)%r];if(Math.min(f(o.felt,t),f(o.felt,n))>=p)return o}return i[a]}function h(e){let t=96*e.bodyScale,n=160-t,r=n+t*.18,i=n+t*.42,a=n+t*.72,o=22*e.headScale,s=Math.max(4,o*.22);return{baseY:160,hipY:a,waistY:i,chestY:r,shoulderY:n,headR:o,headCY:n-o+s}}function g(e,t){let n=e=>40-e/2,r=e=>40+e/2,i=(e,t,n,r,i,a,o)=>{let s=e=>o===`L`?40-e/2:40+e/2,c=e+(n-e)*.55,l=n+(i-n)*.45;return`C ${s(r)} ${c}, ${s(r)} ${l}, ${s(a)} ${i}`},{baseW:a,hipW:o,waistW:s,chestW:c,shoulderW:l}=e,{baseY:u,hipY:d,waistY:f,chestY:p,shoulderY:m}=t,h=m+2.4,g=n(l),_=r(l);return[`M ${n(a)} ${u}`,i(u,a,d,o,f,s,`L`),i(f,s,p,c,h,l,`L`),`Q ${g} ${m+.2}, ${g+3.5} ${m-1.1}`,`C ${g+l*.24} ${m-2.4}, ${_-l*.24} ${m-2.4}, ${_-3.5} ${m-1.1}`,`Q ${_} ${m+.2}, ${_} ${h}`,i(h,l,p,c,f,s,`R`),i(f,s,d,o,u,a,`R`),`Z`].join(` `)}function _(e,t,n,r,i){let a=``;for(let o=0;o<=48;o++){let s=o/48*Math.PI*2,c=1+r*Math.sin(s*n+i)+r*.5*Math.sin(s*(n*2+1)-i*1.3),l=(Math.cos(s)*e*c).toFixed(2),u=(Math.sin(s)*t*c).toFixed(2);a+=`${o===0?`M`:`L`}${l},${u} `}return`${a}Z`}function ee(e){return o[e]??o.tapered}function te(e){let t=r[e]??r.adult;return{bodyScale:t.bodyScale,headScale:t.headScale}}var v=n(),y=`#d8b35a`,b=`#76521b`,x=`#251c15`,S=`#eee4cf`;function C(e,t){let{fv:n,hasHat:r,shirtAccent:i}=t,a=t.shirtAccentFill??i;return e===`goggles`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -21 ${n.eyeY-.8} Q 0 ${n.eyeY-4.2}, 21 ${n.eyeY-.8}`,fill:`none`,stroke:`#5c4938`,strokeWidth:2}),[-n.eyeGap,n.eyeGap].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:n.eyeY,r:5.2,fill:`rgba(174,204,205,0.38)`}),(0,v.jsx)(`circle`,{cx:e,cy:n.eyeY,r:5.2,fill:`none`,stroke:x,strokeWidth:1.7}),(0,v.jsx)(`path`,{d:`M ${e-2.8} ${n.eyeY-2.8} L ${e-.7} ${n.eyeY-3.7}`,stroke:`rgba(255,255,255,0.72)`,strokeWidth:1.1,strokeLinecap:`round`})]},e)),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap+5.1} ${n.eyeY} Q 0 ${n.eyeY-2.5}, ${n.eyeGap-5.1} ${n.eyeY}`,fill:`none`,stroke:x,strokeWidth:1.7})]}):e===`safety-glasses`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -18 ${n.eyeY-4.1} Q 0 ${n.eyeY-6}, 18 ${n.eyeY-4.1} L 15.8 ${n.eyeY+4.4} Q 0 ${n.eyeY+6.1}, -15.8 ${n.eyeY+4.4} Z`,fill:`rgba(190,225,229,0.45)`,stroke:`#536d72`,strokeWidth:.8}),(0,v.jsx)(`path`,{d:`M -15.5 ${n.eyeY-2.8} Q -7 ${n.eyeY-4.2}, -1.5 ${n.eyeY-3.2}`,fill:`none`,stroke:`rgba(255,255,255,0.78)`,strokeWidth:1.25,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M -21 ${n.eyeY-2.2} L -17.7 ${n.eyeY-2.2} M 17.7 ${n.eyeY-2.2} L 21 ${n.eyeY-2.2}`,stroke:`#536d72`,strokeWidth:1.2})]}):e===`pince-nez`?(0,v.jsxs)(`g`,{fill:`rgba(255,255,255,0.16)`,stroke:`#48382a`,strokeWidth:.8,children:[(0,v.jsx)(`ellipse`,{cx:-n.eyeGap,cy:n.eyeY+.4,rx:3.5,ry:2.8}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.4,rx:3.5,ry:2.8}),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap+3.4} ${n.eyeY+.2} Q 0 ${n.eyeY-2}, ${n.eyeGap-3.4} ${n.eyeY+.2}`,fill:`none`,strokeWidth:1.1}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+3.4} ${n.eyeY+1.2} Q ${n.eyeGap+6.2} ${n.eyeY+7}, ${n.eyeGap+4.8} ${n.eyeY+12}`,fill:`none`,strokeWidth:.45})]}):e===`headphones`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -20 -1 C -20 -24, -13 -29, 0 -29 C 13 -29, 20 -24, 20 -1`,fill:`none`,stroke:`#3d3733`,strokeWidth:2.6,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M -18 -3 C -18 -21, -11 -26, 0 -26 C 11 -26, 18 -21, 18 -3`,fill:`none`,stroke:`rgba(255,255,255,0.24)`,strokeWidth:.8}),[-20.5,20.5].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`rect`,{x:e-3.1,y:-4,width:6.2,height:13,rx:2.8,fill:`#49413b`}),(0,v.jsx)(`rect`,{x:e-2,y:-1.7,width:4,height:8.4,rx:1.7,fill:a,opacity:.88})]},e))]}):e===`hearing-aid`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M 20 -1 Q 24 -3, 24 1.5 Q 24 5, 21.5 7`,fill:`none`,stroke:`#a58263`,strokeWidth:1.35,strokeLinecap:`round`}),(0,v.jsx)(`rect`,{x:19.4,y:5.2,width:4.4,height:7.3,rx:2.1,fill:`#b9a18a`,stroke:`#6f5947`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:21.6,cy:7.3,r:.6,fill:`#76543b`}),(0,v.jsx)(`path`,{d:`M 20.5 12 Q 18.8 11, 18.7 8.8`,fill:`none`,stroke:`#8c745e`,strokeWidth:.55})]}):e===`nose-ring`?(0,v.jsxs)(`g`,{fill:`none`,stroke:y,strokeWidth:1.1,children:[(0,v.jsx)(`path`,{d:`M -2.6 6.4 A 2.7 2.7 0 1 0 2.6 6.4`}),(0,v.jsx)(`circle`,{cx:-2.45,cy:6.1,r:.65,fill:y,stroke:`none`}),(0,v.jsx)(`circle`,{cx:2.45,cy:6.1,r:.65,fill:y,stroke:`none`})]}):e===`hoop-earrings`?(0,v.jsxs)(`g`,{fill:`none`,stroke:y,strokeWidth:1.15,children:[(0,v.jsx)(`ellipse`,{cx:-20.5,cy:8.2,rx:3.1,ry:4.2}),(0,v.jsx)(`ellipse`,{cx:20.5,cy:8.2,rx:3.1,ry:4.2})]}):e===`drop-earrings`?(0,v.jsx)(`g`,{children:[-20,20].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:5.2,r:1.25,fill:y,stroke:b,strokeWidth:.35}),(0,v.jsx)(`path`,{d:`M ${e} 6.4 L ${e} 9.2`,stroke:b,strokeWidth:.65}),(0,v.jsx)(`path`,{d:`M ${e} 8.6 C ${e-2.4} 11.1, ${e-1.5} 14, ${e} 14.2 C ${e+1.5} 14, ${e+2.4} 11.1, ${e} 8.6 Z`,fill:a,stroke:b,strokeWidth:.4})]},e))}):e===`pearl-earrings`?(0,v.jsx)(v.Fragment,{children:[-20,20].map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:6.4,r:2.2,fill:`#f3eee0`,stroke:`#8c806d`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:e-.65,cy:5.7,r:.65,fill:`rgba(255,255,255,0.9)`})]},e))}):e===`bandage`?(0,v.jsxs)(`g`,{transform:`translate(-8.5 6.2) rotate(-12)`,children:[(0,v.jsx)(`rect`,{x:-5.4,y:-1.9,width:10.8,height:3.8,rx:1.45,fill:S,stroke:`#8b7658`,strokeWidth:.45}),(0,v.jsx)(`rect`,{x:-1.8,y:-1.45,width:3.6,height:2.9,rx:.6,fill:`#d9c9aa`}),[-3.8,3.8].map(e=>(0,v.jsxs)(`g`,{fill:`#a99471`,children:[(0,v.jsx)(`circle`,{cx:e-.3,cy:-.55,r:.25}),(0,v.jsx)(`circle`,{cx:e+.35,cy:.5,r:.25})]},e))]}):e===`feather`&&!r?(0,v.jsxs)(`g`,{transform:`translate(16 -11) rotate(16)`,children:[(0,v.jsx)(`path`,{d:`M 0 10 C -5 3, -4 -8, 2 -16 C 8 -8, 7 2, 0 10 Z`,fill:a,stroke:`#56412a`,strokeWidth:.45}),(0,v.jsx)(`path`,{d:`M 0 12 Q 1 -2, 2 -15`,fill:`none`,stroke:`#705736`,strokeWidth:.7}),(0,v.jsx)(`g`,{stroke:`rgba(255,255,255,0.45)`,strokeWidth:.5,children:(0,v.jsx)(`path`,{d:`M 1 -9 L -2 -5 M 2 -6 L 6 -2 M 1 -2 L -3 2 M 1 2 L 5 5`})})]}):e===`pencil`&&!r?(0,v.jsxs)(`g`,{transform:`translate(17 -5) rotate(-22)`,children:[(0,v.jsx)(`rect`,{x:-1.7,y:-11,width:3.4,height:18,rx:.6,fill:`#dfa843`,stroke:`#74501e`,strokeWidth:.45}),(0,v.jsx)(`path`,{d:`M -1.7 -11 L 0 -15 L 1.7 -11 Z`,fill:`#d9b78d`,stroke:`#74501e`,strokeWidth:.4}),(0,v.jsx)(`path`,{d:`M -0.55 -13.7 L 0 -15 L 0.55 -13.7 Z`,fill:`#30251c`}),(0,v.jsx)(`rect`,{x:-1.7,y:5.4,width:3.4,height:2.8,rx:.45,fill:`#c77670`})]}):e===`ribbon`&&!r?(0,v.jsxs)(`g`,{transform:`translate(-15.5 -8.5)`,fill:a,stroke:`rgba(50,30,15,0.38)`,strokeWidth:.4,children:[(0,v.jsx)(`path`,{d:`M -1 0 C -8 -5, -9 3, -2 3.5 Z`}),(0,v.jsx)(`path`,{d:`M 1 0 C 8 -5, 9 3, 2 3.5 Z`}),(0,v.jsx)(`path`,{d:`M -1 2 L -4.8 9 L 0 6.5 L 4.8 9 L 1 2 Z`}),(0,v.jsx)(`circle`,{cx:0,cy:1.3,r:2.2})]}):e===`necktie`?(0,v.jsxs)(`g`,{fill:a,stroke:`rgba(45,30,20,0.4)`,strokeWidth:.45,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -3.4 21.3 L 0 18.8 L 3.4 21.3 L 1.8 25 L -1.8 25 Z`}),(0,v.jsx)(`path`,{d:`M -1.7 25 L 1.7 25 L 3 34 L 0 37 L -3 34 Z`}),(0,v.jsx)(`path`,{d:`M -0.9 26 L 0.7 26 L 1.5 33`,fill:`none`,stroke:`rgba(255,255,255,0.3)`})]}):e===`cravat`?(0,v.jsxs)(`g`,{fill:S,stroke:`#7f6a4d`,strokeWidth:.4,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -9 20 Q 0 17, 9 20 L 5 24 Q 0 22, -5 24 Z`}),(0,v.jsx)(`path`,{d:`M -5 23 Q 0 21, 5 23 L 3.8 28 Q 0 26, -3.8 28 Z`}),(0,v.jsx)(`path`,{d:`M -3.5 27 Q 0 25, 3.5 27 L 2 33 L 0 35 L -2 33 Z`}),(0,v.jsx)(`path`,{d:`M -5.5 22 Q 0 20.4, 5.5 22`,fill:`none`,stroke:`rgba(255,255,255,0.9)`})]}):e===`bolo-tie`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -11 20 Q -5 24, -2 31 M 11 20 Q 5 24, 2 31`,fill:`none`,stroke:`#4a3020`,strokeWidth:1.05}),(0,v.jsx)(`ellipse`,{cx:0,cy:27.5,rx:3.7,ry:4.4,fill:y,stroke:b,strokeWidth:.55}),(0,v.jsx)(`path`,{d:`M -1.8 26 Q 0 24.5, 1.8 26 Q 0 28.8, -1.8 26`,fill:a}),(0,v.jsx)(`path`,{d:`M -2 31 L -3.3 36 M 2 31 L 3.3 36`,stroke:`#4a3020`,strokeWidth:.8})]}):e===`lanyard`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -12 20 L -5 31 M 12 20 L 5 31`,fill:`none`,stroke:a,strokeWidth:1.25}),(0,v.jsx)(`circle`,{cx:0,cy:29.7,r:1.1,fill:`#554434`}),(0,v.jsx)(`rect`,{x:-4.4,y:31,width:8.8,height:6.3,rx:1.1,fill:`#e9e3d5`,stroke:`#66584a`,strokeWidth:.45}),(0,v.jsx)(`rect`,{x:-2.7,y:32.4,width:5.4,height:1.1,rx:.4,fill:a}),(0,v.jsx)(`path`,{d:`M -2.6 35.3 H 2.6`,stroke:`#9d9488`,strokeWidth:.55})]}):e===`medal`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -8 20 L -1.5 29 H 1.5 L 8 20`,fill:`none`,stroke:a,strokeWidth:2.1}),(0,v.jsx)(`circle`,{cx:0,cy:30.2,r:4,fill:y,stroke:b,strokeWidth:.6}),(0,v.jsx)(`path`,{d:`M 0 27.6 L 0.8 29.2 L 2.6 29.5 L 1.3 30.8 L 1.6 32.6 L 0 31.7 L -1.6 32.6 L -1.3 30.8 L -2.6 29.5 L -0.8 29.2 Z`,fill:`#f6df8d`})]}):e===`pocket-square`?(0,v.jsxs)(`g`,{transform:`translate(9.5 27)`,children:[(0,v.jsx)(`path`,{d:`M -4 1.5 L -3 -5 L 0 -2.4 L 2 -6 L 4 -2.1 L 4 1.5 Z`,fill:S,stroke:`#75634c`,strokeWidth:.45,strokeLinejoin:`round`}),(0,v.jsx)(`path`,{d:`M -4 1.5 H 4`,stroke:`#5a4737`,strokeWidth:.8}),(0,v.jsx)(`path`,{d:`M -1.2 -1.6 L 0 -2.4 L 1.4 -1.1`,fill:`none`,stroke:`rgba(255,255,255,0.8)`,strokeWidth:.5})]}):e===`tool-pendant`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -13 20.5 Q 0 28, 13 20.5`,fill:`none`,stroke:`#72583d`,strokeWidth:.65}),(0,v.jsxs)(`g`,{transform:`translate(0 29) rotate(-28)`,fill:y,stroke:b,strokeWidth:.4,children:[(0,v.jsx)(`rect`,{x:-1.1,y:-1,width:2.2,height:8,rx:.7}),(0,v.jsx)(`path`,{d:`M -4 -3 Q 0 -5, 4 -3 L 3.4 -0.8 Q 0 -2.3, -3.4 -0.8 Z`})]})]}):null}var w=e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:e,cy:6,r:2.4,fill:`rgba(245,200,80,0.95)`}),(0,v.jsx)(`circle`,{cx:e-.6,cy:5.4,r:.7,fill:`rgba(255,235,170,0.9)`}),(0,v.jsx)(`circle`,{cx:e,cy:6,r:2.4,fill:`none`,stroke:`#5b3d10`,strokeWidth:.4})]},`stud${e}`);function ne(e,t){let{felt:n}=t,r=t.feltFill??n.felt,i=t.feltBandFill??n.band;return e===`cap`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -8 C -22 -23, -11 -29, 0 -29 C 11 -29, 22 -23, 22 -8 C 16 -11, 8 -13, 0 -13 C -8 -13, -16 -11, -22 -8 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M -16 -9.5 C -8 -13, 8 -13, 16 -9.5 C 13 -3.5, -13 -3.5, -16 -9.5 Z`,fill:i}),(0,v.jsx)(`path`,{d:`M -16 -9.5 C -8 -13, 8 -13, 16 -9.5`,fill:`none`,stroke:`rgba(0,0,0,0.25)`,strokeWidth:.5})]}):e===`beanie`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -7 C -22 -25, -12 -32, 0 -32 C 12 -32, 22 -25, 22 -7 C 16 -9, 8 -10, 0 -10 C -8 -10, -16 -9, -22 -7 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M -22 -8 C -17 -10, -9 -11, 0 -11 C 9 -11, 17 -10, 22 -8 C 18 -5, 9 -4, 0 -4 C -9 -4, -18 -5, -22 -8 Z`,fill:i}),(0,v.jsx)(`circle`,{cx:0,cy:-32.5,r:2.8,fill:`#e8dfc8`,opacity:.95})]}):e===`kerchief`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -9 C -22 -22, -11 -28, 0 -28 C 11 -28, 22 -22, 22 -9 L 18 -3 C 14 -7, 7 -9, 0 -9 C -7 -9, -14 -7, -18 -3 Z`,fill:r}),(0,v.jsx)(`path`,{d:`M 19.5 -9 L 26.5 -10.5 L 23 -4.5 Z`,fill:i}),(0,v.jsx)(`path`,{d:`M 20 -7.5 L 27.5 -5 L 22.5 -2 Z`,fill:r}),(0,v.jsx)(`circle`,{cx:-6,cy:-18,r:1,fill:`rgba(255,255,255,0.25)`}),(0,v.jsx)(`circle`,{cx:6,cy:-16,r:1,fill:`rgba(255,255,255,0.25)`}),(0,v.jsx)(`circle`,{cx:0,cy:-22,r:1,fill:`rgba(255,255,255,0.25)`})]}):e===`straw`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`ellipse`,{cx:0,cy:-8.5,rx:29,ry:4.2,fill:`#b98942`}),(0,v.jsx)(`path`,{d:`M -18 -9 C -18 -23, -9 -29, 0 -29 C 9 -29, 18 -23, 18 -9 C 12 -11, 6 -12, 0 -12 C -6 -12, -12 -11, -18 -9 Z`,fill:`#cda75d`}),(0,v.jsx)(`ellipse`,{cx:0,cy:-10,rx:18,ry:1.25,fill:`#5b3518`,opacity:.5}),(0,v.jsxs)(`g`,{stroke:`#5b3518`,strokeWidth:.3,opacity:.26,children:[(0,v.jsx)(`line`,{x1:-27,y1:-8.5,x2:-19,y2:-9.5}),(0,v.jsx)(`line`,{x1:-23,y1:-6.5,x2:-16,y2:-8.8}),(0,v.jsx)(`line`,{x1:27,y1:-8.5,x2:19,y2:-9.5}),(0,v.jsx)(`line`,{x1:23,y1:-6.5,x2:16,y2:-8.8})]})]}):e===`newsboy`?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -22 -8 C -23 -21, -11 -28, 0 -28 C 11 -28, 23 -21, 22 -8 C 16 -11, 8 -13, 0 -13 C -8 -13, -16 -11, -22 -8 Z`,fill:r}),(0,v.jsx)(`circle`,{cx:0,cy:-25,r:1,fill:i}),(0,v.jsx)(`path`,{d:`M -13 -9 C -7 -7, 7 -7, 13 -9 C 16 -8, 16 -6, 13 -5.5 C 5 -4, -5 -4, -13 -5.5 C -16 -6, -16 -8, -13 -9 Z`,fill:`#2a2118`,opacity:.82})]}):null}function re(e){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`path`,{d:`M -15 20
|
|
2
2
|
C -24 9, -26 -10, -24 -20
|
|
3
3
|
C -22 -28, -12 -31, 0 -31
|
|
4
4
|
C 12 -31, 22 -28, 24 -20
|
|
@@ -35,7 +35,7 @@ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t,t as n}from"./j
|
|
|
35
35
|
${40-r.waistW*.47} ${n.waistY} Z`,fill:`#e6dabb`}),(0,v.jsx)(`path`,{d:`M ${40+r.hipW*.12-3} ${n.hipY-3}
|
|
36
36
|
L ${40+r.hipW*.12-3} ${n.hipY+1}
|
|
37
37
|
Q ${40+r.hipW*.12} ${n.hipY+2.5}, ${40+r.hipW*.12+3} ${n.hipY+1}
|
|
38
|
-
L ${40+r.hipW*.12+3} ${n.hipY-3}`,fill:`#ddd0ad`}),(0,v.jsx)(`line`,{x1:40-r.waistW*.46,y1:n.waistY+.5,x2:40+r.waistW*.46,y2:n.waistY+.5,stroke:`#a48a5c`,strokeWidth:1.1})]}):e===`collar`?(0,v.jsxs)(`g`,{stroke:`rgba(60,40,15,0.4)`,strokeWidth:.45,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M 31 ${n.shoulderY+1} L 40 ${n.shoulderY+11} L 27 ${n.shoulderY+8.5} Z`,fill:`#f0e8d0`}),(0,v.jsx)(`path`,{d:`M 49 ${n.shoulderY+1} L 40 ${n.shoulderY+11} L 53 ${n.shoulderY+8.5} Z`,fill:`#f0e8d0`})]}):e===`turtleneck`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`ellipse`,{cx:40,cy:n.shoulderY-3,rx:19,ry:7,fill:t.shirtFill??a}),(0,v.jsx)(`ellipse`,{cx:40,cy:n.shoulderY-5.2,rx:16.5,ry:3.4,fill:`rgba(255,245,225,0.22)`}),(0,v.jsx)(`g`,{stroke:`rgba(0,0,0,0.2)`,strokeWidth:.55,children:[-17.5,-15,-12.5,12.5,15,17.5].map(e=>(0,v.jsx)(`line`,{x1:40+e,y1:n.shoulderY-7,x2:40+e,y2:n.shoulderY+1.5},e))})]}):null}function ae(e,t){let{fv:n,shirtAccent:r,hasHat:i}=t;return e===`glasses`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.9,fill:`none`,children:[(0,v.jsx)(`circle`,{cx:-n.eyeGap,cy:n.eyeY,r:4.2}),(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.2}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.2),y1:n.eyeY,x2:n.eyeGap-4.2,y2:n.eyeY})]}):e===`sunglasses`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`rect`,{x:-n.eyeGap-4.3,y:n.eyeY-3.4,width:8.6,height:6.9,rx:2.6,fill:`#241b12`}),(0,v.jsx)(`rect`,{x:n.eyeGap-4.3,y:n.eyeY-3.4,width:8.6,height:6.9,rx:2.6,fill:`#241b12`}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.3),y1:n.eyeY-1.6,x2:n.eyeGap-4.3,y2:n.eyeY-1.6,stroke:`#241b12`,strokeWidth:1.1}),(0,v.jsx)(`circle`,{cx:-n.eyeGap-1.4,cy:n.eyeY-1.5,r:.75,fill:`rgba(255,255,255,0.4)`}),(0,v.jsx)(`circle`,{cx:n.eyeGap-1.4,cy:n.eyeY-1.5,r:.75,fill:`rgba(255,255,255,0.4)`})]}):e===`cateye`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.95,fill:`none`,children:[(0,v.jsx)(`ellipse`,{cx:-n.eyeGap,cy:n.eyeY+.3,rx:4.2,ry:3.2}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.3,rx:4.2,ry:3.2}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.2),y1:n.eyeY-.4,x2:n.eyeGap-4.2,y2:n.eyeY-.4}),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap-3.1} ${n.eyeY-1.7} L ${-n.eyeGap-6} ${n.eyeY-4.3}`,strokeWidth:1.35,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+3.1} ${n.eyeY-1.7} L ${n.eyeGap+6} ${n.eyeY-4.3}`,strokeWidth:1.35,strokeLinecap:`round`})]}):e===`readers`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.85,fill:`none`,children:[(0,v.jsx)(`path`,{d:`M ${-n.eyeGap-3.7} ${n.eyeY+2.2} L ${-n.eyeGap+3.7} ${n.eyeY+2.2} A 3.7 3.4 0 0 1 ${-n.eyeGap-3.7} ${n.eyeY+2.2}`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap-3.7} ${n.eyeY+2.2} L ${n.eyeGap+3.7} ${n.eyeY+2.2} A 3.7 3.4 0 0 1 ${n.eyeGap-3.7} ${n.eyeY+2.2}`}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-3.7),y1:n.eyeY+2.2,x2:n.eyeGap-3.7,y2:n.eyeY+2.2})]}):e===`eyepatch`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -21.2 ${n.eyeY-2.8} L ${n.eyeGap-4.6} ${n.eyeY-3.4}`,stroke:`#241b12`,strokeWidth:1.1,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+4.5} ${n.eyeY-3.6} L 21.4 ${n.eyeY-4.2}`,stroke:`#241b12`,strokeWidth:1.1,strokeLinecap:`round`}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.2,rx:4.7,ry:4.3,fill:`#241b12`})]}):e===`monocle`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.4,fill:`rgba(255,255,255,0.12)`}),(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.4,stroke:`#1a1410`,strokeWidth:.95,fill:`none`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+4.2} ${n.eyeY+2.2} Q ${n.eyeGap+8} ${n.eyeY+8} ${n.eyeGap+6} ${n.eyeY+17}`,stroke:`#1a1410`,strokeWidth:.45,fill:`none`,strokeLinecap:`round`})]}):e===`facemask`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -9.2 7 Q -16 4.8, -20.4 5.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M -9 13.5 Q -16 11.5, -20.4 6.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M 9.2 7 Q 16 4.8, 20.4 5.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M 9 13.5 Q 16 11.5, 20.4 6.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M -9.4 6.2 Q 0 4.6, 9.4 6.2 L 9 13.8 Q 5 16.4, 0 16.6 Q -5 16.4, -9 13.8 Z`,fill:`#ebe5d6`,stroke:`rgba(80,55,20,0.3)`,strokeWidth:.45}),(0,v.jsxs)(`g`,{stroke:`rgba(80,55,20,0.16)`,strokeWidth:.5,fill:`none`,children:[(0,v.jsx)(`path`,{d:`M -7.8 8.6 Q 0 7.6, 7.8 8.6`}),(0,v.jsx)(`path`,{d:`M -8 11 Q 0 10.2, 8 11`}),(0,v.jsx)(`path`,{d:`M -7 13.4 Q 0 12.8, 7 13.4`})]})]}):e===`earrings`?(0,v.jsxs)(v.Fragment,{children:[w(-20),w(20)]}):e===`earring-left`?w(-20):e===`earring-right`?w(20):e===`flower`&&!i?(0,v.jsxs)(`g`,{children:[[0,72,144,216,288].map(e=>(0,v.jsx)(`ellipse`,{transform:`translate(-15.5 -9) rotate(${e})`,cx:0,cy:-2.2,rx:1.5,ry:2.1,fill:`#f3ecd8`,stroke:`rgba(60,40,15,0.3)`,strokeWidth:.3},e)),(0,v.jsx)(`circle`,{cx:-15.5,cy:-9,r:1.6,fill:`#d2a350`})]}):e===`hairclip`&&!i?(0,v.jsxs)(`g`,{transform:`translate(15.8 -8) rotate(-24)`,children:[(0,v.jsx)(`rect`,{x:-2.6,y:-1.7,width:5.2,height:1.15,rx:.55,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.3}),(0,v.jsx)(`rect`,{x:-2.6,y:.55,width:5.2,height:1.15,rx:.55,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.3})]}):e===`headband`&&!i?(0,v.jsx)(`path`,{d:`M -20.6 -4.2 Q 0 -9.4, 20.6 -4.2 L 20.6 -1.4 Q 0 -6.4, -20.6 -1.4 Z`,fill:t.shirtAccentFill??r,stroke:`rgba(0,0,0,0.2)`,strokeWidth:.4}):e===`bowtie`?(0,v.jsxs)(`g`,{stroke:`rgba(0,0,0,0.28)`,strokeWidth:.4,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -1.4 25 L -7 22 L -7 28 Z`,fill:t.shirtAccentFill??r}),(0,v.jsx)(`path`,{d:`M 1.4 25 L 7 22 L 7 28 Z`,fill:t.shirtAccentFill??r}),(0,v.jsx)(`rect`,{x:-1.6,y:23.4,width:3.2,height:3.2,rx:.8,fill:t.shirtAccentFill??r}),(0,v.jsx)(`rect`,{x:-1.6,y:23.4,width:3.2,height:3.2,rx:.8,fill:`rgba(0,0,0,0.18)`,stroke:`none`})]}):e===`necklace`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -13.5 20.5 Q 0 29.5, 13.5 20.5`,fill:`none`,stroke:`#9a7a30`,strokeWidth:.7}),(0,v.jsx)(`circle`,{cx:0,cy:26.8,r:1.9,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.4}),(0,v.jsx)(`circle`,{cx:-.5,cy:26.2,r:.6,fill:`rgba(255,240,200,0.9)`})]}):e===`brooch`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:-8.5,cy:24.5,r:2.3,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:-8.5,cy:24.5,r:.95,fill:`#f4e7c0`})]}):C(e,t)}function T(e,t,n){return e===`hat`?t===`hood`?re(n):ne(t,n):e===`dress`?ie(t,n):ae(t,n)}var E=`#c8956a`,D=`#b07e54`,oe=`#7a9aa6`,se=`#b0724c`,O=h(te(`adult`)),k=ee(`tapered`),ce={eyeGap:8,eyeY:1.5};function le(e){return{fv:ce,L:O,arch:k,felt:m(e.length*7,E,D),scarfFelt:m(e.length*7+23,E,D),shirt:oe,shirtAccent:se,hasHat:!1}}function ue({slot:e,option:t,size:n=56}){let r=(0,c.useRef)(null),[i,a]=(0,c.useState)(null),o=T(e,t,le(t));return(0,c.useLayoutEffect)(()=>{let e=r.current;if(e)try{let t=e.getBBox();if(t.width>0&&t.height>0){let e=2.5;a(`${t.x-e} ${t.y-e} ${t.width+e*2} ${t.height+e*2}`)}}catch{}},[e,t]),(0,v.jsx)(`svg`,{width:n,height:n,viewBox:i??`-30 -33 60 66`,preserveAspectRatio:`xMidYMid meet`,style:{display:`block`,overflow:`visible`,opacity:+!!i},"aria-hidden":`true`,children:(0,v.jsx)(`g`,{ref:r,children:o})})}var A=80,j=175,de={fine:{fiberFrequency:1.42,waveFrequency:1.18,displacement:.42,opacity:1.08,soften:.78},flowing:{fiberFrequency:.68,waveFrequency:.72,displacement:1.85,opacity:1.2,soften:1.08},cathedral:{fiberFrequency:.86,waveFrequency:.62,displacement:1.28,opacity:1.06,soften:.96},knotty:{fiberFrequency:1.02,waveFrequency:.9,displacement:1.05,opacity:1.08,soften:.9}};function fe(e){return e%4==0?`knotty`:[`fine`,`flowing`,`cathedral`][Math.floor(e/4)%3]}function pe({poppetje:e,variant:t=`full`,size:n=120,grainStyle:r=`wavy`,whorls:i,title:a,className:l,withShadow:u,withBase:f,svgId:p}){let y=(0,c.useId)(),b=`pop${(p??y).replace(/[^a-zA-Z0-9_-]/g,``)}`,x=ee(e.bodyShape),S=h(te(e.figureScale)),C=g(x,S),w=o(e.key),T=s[r]??s.wavy,E=fe(w),D=de[E],[oe=.12,se=.016]=(T.streakFreq??`0.12 0.016`).split(` `).map(Number),O=.86+w%9*.035,k=.9+w%7*.033,ce=.9+w%9*.025,le=.9+Math.floor(w/2)%7*.03,ue=.86+Math.floor(w/3)%8*.04,pe=`${(.022*k*D.waveFrequency).toFixed(4)} ${(.014/k).toFixed(4)}`,me=`${(oe*O*D.fiberFrequency).toFixed(4)} ${(se/O).toFixed(4)}`,M=(T.opacity??.12)*ce*D.opacity,he=(T.soften??.35)*le*D.soften,ge=(T.dispScale??0)*ue*D.displacement,N=!T.skip&&(t!==`icon`||n>=36),P=N?{filter:`url(#${b}-wood)`}:{},_e=N?{filter:`url(#${b}-woodsoft)`}:{},F=i===void 0?E===`knotty`?w%8==0?2:1:0:Math.max(0,Math.floor(i)),I=Math.min(.38,.17+M*.58),ve=Math.min(.12,.035+M*.24),L=e.hat??null,ye=e.dress??null,be=e.accessory??null,xe=e.facialHair??null,Se=e.mark??null,R=e.expression??`smile`,z=e.shirtPattern??`plain`,B=!L,{skin:V,skin2:H,shirt:U,shirtAccent:W}=e,Ce=d(U,`#fff2d4`,.14),we=d(U,W,.08),G=d(W,`#24160d`,.22),K=d(W,`#120c08`,.34),Te=d(V,`#fff1d8`,.2),Ee=d(V,H,.1),De=d(H,`#2b190f`,.18),Oe=d(H,`#130d09`,.32),ke=d(e.hair,`#f0cf9b`,.1),Ae=d(e.hair,`#090705`,.32),q=m(w+(L?L.length*7:0),V,H),J=m(w+23,V,H),je=d(q.felt,`#fff0cf`,.18),Me=d(q.felt,`#17100b`,.3),Ne=d(q.band,`#f3d39e`,.12),Pe=d(q.band,`#120c08`,.34),Fe=d(J.felt,`#fff0cf`,.16),Ie=d(J.felt,`#17100b`,.28),Le=d(J.band,`#f3d39e`,.1),Re=d(J.band,`#120c08`,.32),Y={eyeGap:7.4+w%5*.4,eyeY:1.2+Math.floor(w/2)%4*.5,eyeR:1.55+Math.floor(w/4)%4*.1,mouthDY:Math.floor(w/8)%3-1,mouthW:.92+Math.floor(w/16)%3*.09,blush:.12+Math.floor(w/2)%3*.04},X=10+Y.mouthDY,Z={fv:Y,L:S,arch:x,felt:q,scarfFelt:J,shirt:U,shirtAccent:W,feltFill:`url(#${b}-felt)`,feltBandFill:`url(#${b}-felt-band)`,scarfFill:`url(#${b}-scarf)`,scarfBandFill:`url(#${b}-scarf-band)`,shirtFill:`url(#${b}-body)`,shirtAccentFill:`url(#${b}-accent)`,hasHat:!!L},Q=S.headCY-S.headR,$=S.headR*2,ze=(S.baseY-S.shoulderY)*.35,Be=S.headR/22,Ve=L?30*Be:0,He=L?36*Be:0,Ue=Math.max(26,S.headR+4,Ve+1),We=S.headCY-Math.max(S.headR,He)-4,Ge=Q+$+4+ze,Ke=t===`icon`?`${40-S.headR-4} ${Q-4} ${$+8} ${$+8}`:t===`headshot`?`${40-Ue} ${We} ${Ue*2} ${Ge-We}`:`0 0 ${A} ${j}`,qe=Ke.split(` `).map(Number),Je=qe[2]??A,Ye=(qe[3]??j)/Je,Xe=n,Ze=n*Ye,Qe=u??t===`full`,$e=f??t===`full`;return(0,v.jsxs)(`svg`,{width:Xe,height:Ze,viewBox:Ke,style:{display:`block`,overflow:`visible`},role:a?`img`:void 0,"aria-label":a,className:l,"data-grain-character":N?E:void 0,"data-whorl-count":N?F:void 0,children:[(0,v.jsxs)(`defs`,{children:[(0,v.jsxs)(`linearGradient`,{id:`${b}-body`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:K}),(0,v.jsx)(`stop`,{offset:`0.08`,stopColor:G}),(0,v.jsx)(`stop`,{offset:`0.28`,stopColor:we}),(0,v.jsx)(`stop`,{offset:`0.43`,stopColor:Ce}),(0,v.jsx)(`stop`,{offset:`0.58`,stopColor:U}),(0,v.jsx)(`stop`,{offset:`0.82`,stopColor:we}),(0,v.jsx)(`stop`,{offset:`0.94`,stopColor:G}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:K})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-body-depth`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:`#fff1d2`,stopOpacity:`0.12`}),(0,v.jsx)(`stop`,{offset:`0.16`,stopColor:`#fff1d2`,stopOpacity:`0.035`}),(0,v.jsx)(`stop`,{offset:`0.62`,stopColor:`#2b180d`,stopOpacity:`0`}),(0,v.jsx)(`stop`,{offset:`0.88`,stopColor:`#2b180d`,stopOpacity:`0.08`}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:`#160e09`,stopOpacity:`0.2`})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-body-glaze`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:`#fff7e8`,stopOpacity:`0`}),(0,v.jsx)(`stop`,{offset:`0.24`,stopColor:`#fff7e8`,stopOpacity:`0.025`}),(0,v.jsx)(`stop`,{offset:`0.37`,stopColor:`#fff7e8`,stopOpacity:`0.07`}),(0,v.jsx)(`stop`,{offset:`0.49`,stopColor:`#fff7e8`,stopOpacity:`0.025`}),(0,v.jsx)(`stop`,{offset:`0.7`,stopColor:`#fff7e8`,stopOpacity:`0`})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-head`,cx:`0.31`,cy:`0.22`,r:`0.8`,fx:`0.27`,fy:`0.18`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Te}),(0,v.jsx)(`stop`,{offset:`0.3`,stopColor:Ee}),(0,v.jsx)(`stop`,{offset:`0.66`,stopColor:V}),(0,v.jsx)(`stop`,{offset:`0.88`,stopColor:De}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Oe})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-hair`,cx:`0.32`,cy:`0.18`,r:`0.86`,fx:`0.27`,fy:`0.13`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:ke}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:e.hair}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Ae})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-felt`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Me}),(0,v.jsx)(`stop`,{offset:`0.32`,stopColor:q.felt}),(0,v.jsx)(`stop`,{offset:`0.46`,stopColor:je}),(0,v.jsx)(`stop`,{offset:`0.72`,stopColor:q.felt}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Me})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-felt-band`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Pe}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Ne}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Pe})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-scarf`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Ie}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Fe}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Ie})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-scarf-band`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Re}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Le}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Re})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-accent`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:K}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:d(W,`#fff0d0`,.16)}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:G})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-whorl-patch`,cx:`0.5`,cy:`0.5`,r:`0.5`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:V,stopOpacity:`0.7`}),(0,v.jsx)(`stop`,{offset:`0.55`,stopColor:V,stopOpacity:`0.5`}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:V,stopOpacity:`0`})]}),(0,v.jsx)(`clipPath`,{id:`${b}-bodyclip`,children:(0,v.jsx)(`path`,{d:C})}),(0,v.jsx)(`clipPath`,{id:`${b}-headclip`,children:(0,v.jsx)(`ellipse`,{cx:0,cy:0,rx:21.4,ry:22.4})}),(0,v.jsx)(`filter`,{id:`${b}-blur`,x:`-20%`,y:`-20%`,width:`140%`,height:`140%`,children:(0,v.jsx)(`feGaussianBlur`,{stdDeviation:`0.75`})}),N&&[{suffix:`wood`,opacity:M,soften:he},{suffix:`woodsoft`,opacity:M*.55,soften:he+.18}].map(({suffix:e,opacity:t,soften:n})=>(0,v.jsxs)(`filter`,{id:`${b}-${e}`,x:`-4%`,y:`-4%`,width:`108%`,height:`108%`,colorInterpolationFilters:`sRGB`,children:[(0,v.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:pe,numOctaves:2,seed:w,stitchTiles:`stitch`,result:`waves`}),(0,v.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:me,numOctaves:2,seed:(w+9)%100,stitchTiles:`stitch`,result:`streaks`}),(0,v.jsx)(`feDisplacementMap`,{in:`streaks`,in2:`waves`,scale:ge,xChannelSelector:`R`,yChannelSelector:`G`,result:`wavyGrain`}),(0,v.jsx)(`feGaussianBlur`,{in:`wavyGrain`,stdDeviation:n,result:`paintSoftenedGrain`}),(0,v.jsxs)(`feComponentTransfer`,{in:`paintSoftenedGrain`,result:`fiberContrast`,children:[(0,v.jsx)(`feFuncR`,{type:`linear`,slope:2.4,intercept:-.7}),(0,v.jsx)(`feFuncG`,{type:`linear`,slope:2.4,intercept:-.7}),(0,v.jsx)(`feFuncB`,{type:`linear`,slope:2.4,intercept:-.7})]}),(0,v.jsx)(`feColorMatrix`,{in:`fiberContrast`,type:`matrix`,values:`0 0 0 0 0.30
|
|
38
|
+
L ${40+r.hipW*.12+3} ${n.hipY-3}`,fill:`#ddd0ad`}),(0,v.jsx)(`line`,{x1:40-r.waistW*.46,y1:n.waistY+.5,x2:40+r.waistW*.46,y2:n.waistY+.5,stroke:`#a48a5c`,strokeWidth:1.1})]}):e===`collar`?(0,v.jsxs)(`g`,{stroke:`rgba(60,40,15,0.4)`,strokeWidth:.45,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M 31 ${n.shoulderY+1} L 40 ${n.shoulderY+11} L 27 ${n.shoulderY+8.5} Z`,fill:`#f0e8d0`}),(0,v.jsx)(`path`,{d:`M 49 ${n.shoulderY+1} L 40 ${n.shoulderY+11} L 53 ${n.shoulderY+8.5} Z`,fill:`#f0e8d0`})]}):e===`turtleneck`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`ellipse`,{cx:40,cy:n.shoulderY-3,rx:19,ry:7,fill:t.shirtFill??a}),(0,v.jsx)(`ellipse`,{cx:40,cy:n.shoulderY-5.2,rx:16.5,ry:3.4,fill:`rgba(255,245,225,0.22)`}),(0,v.jsx)(`g`,{stroke:`rgba(0,0,0,0.2)`,strokeWidth:.55,children:[-17.5,-15,-12.5,12.5,15,17.5].map(e=>(0,v.jsx)(`line`,{x1:40+e,y1:n.shoulderY-7,x2:40+e,y2:n.shoulderY+1.5},e))})]}):null}function ae(e,t){let{fv:n,shirtAccent:r,hasHat:i}=t;return e===`glasses`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.9,fill:`none`,children:[(0,v.jsx)(`circle`,{cx:-n.eyeGap,cy:n.eyeY,r:4.2}),(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.2}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.2),y1:n.eyeY,x2:n.eyeGap-4.2,y2:n.eyeY})]}):e===`sunglasses`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`rect`,{x:-n.eyeGap-4.3,y:n.eyeY-3.4,width:8.6,height:6.9,rx:2.6,fill:`#241b12`}),(0,v.jsx)(`rect`,{x:n.eyeGap-4.3,y:n.eyeY-3.4,width:8.6,height:6.9,rx:2.6,fill:`#241b12`}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.3),y1:n.eyeY-1.6,x2:n.eyeGap-4.3,y2:n.eyeY-1.6,stroke:`#241b12`,strokeWidth:1.1}),(0,v.jsx)(`circle`,{cx:-n.eyeGap-1.4,cy:n.eyeY-1.5,r:.75,fill:`rgba(255,255,255,0.4)`}),(0,v.jsx)(`circle`,{cx:n.eyeGap-1.4,cy:n.eyeY-1.5,r:.75,fill:`rgba(255,255,255,0.4)`})]}):e===`cateye`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.95,fill:`none`,children:[(0,v.jsx)(`ellipse`,{cx:-n.eyeGap,cy:n.eyeY+.3,rx:4.2,ry:3.2}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.3,rx:4.2,ry:3.2}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-4.2),y1:n.eyeY-.4,x2:n.eyeGap-4.2,y2:n.eyeY-.4}),(0,v.jsx)(`path`,{d:`M ${-n.eyeGap-3.1} ${n.eyeY-1.7} L ${-n.eyeGap-6} ${n.eyeY-4.3}`,strokeWidth:1.35,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+3.1} ${n.eyeY-1.7} L ${n.eyeGap+6} ${n.eyeY-4.3}`,strokeWidth:1.35,strokeLinecap:`round`})]}):e===`readers`?(0,v.jsxs)(`g`,{stroke:`#1a1410`,strokeWidth:.85,fill:`none`,children:[(0,v.jsx)(`path`,{d:`M ${-n.eyeGap-3.7} ${n.eyeY+2.2} L ${-n.eyeGap+3.7} ${n.eyeY+2.2} A 3.7 3.4 0 0 1 ${-n.eyeGap-3.7} ${n.eyeY+2.2}`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap-3.7} ${n.eyeY+2.2} L ${n.eyeGap+3.7} ${n.eyeY+2.2} A 3.7 3.4 0 0 1 ${n.eyeGap-3.7} ${n.eyeY+2.2}`}),(0,v.jsx)(`line`,{x1:-(n.eyeGap-3.7),y1:n.eyeY+2.2,x2:n.eyeGap-3.7,y2:n.eyeY+2.2})]}):e===`eyepatch`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -21.2 ${n.eyeY-2.8} L ${n.eyeGap-4.6} ${n.eyeY-3.4}`,stroke:`#241b12`,strokeWidth:1.1,strokeLinecap:`round`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+4.5} ${n.eyeY-3.6} L 21.4 ${n.eyeY-4.2}`,stroke:`#241b12`,strokeWidth:1.1,strokeLinecap:`round`}),(0,v.jsx)(`ellipse`,{cx:n.eyeGap,cy:n.eyeY+.2,rx:4.7,ry:4.3,fill:`#241b12`})]}):e===`monocle`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.4,fill:`rgba(255,255,255,0.12)`}),(0,v.jsx)(`circle`,{cx:n.eyeGap,cy:n.eyeY,r:4.4,stroke:`#1a1410`,strokeWidth:.95,fill:`none`}),(0,v.jsx)(`path`,{d:`M ${n.eyeGap+4.2} ${n.eyeY+2.2} Q ${n.eyeGap+8} ${n.eyeY+8} ${n.eyeGap+6} ${n.eyeY+17}`,stroke:`#1a1410`,strokeWidth:.45,fill:`none`,strokeLinecap:`round`})]}):e===`facemask`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -9.2 7 Q -16 4.8, -20.4 5.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M -9 13.5 Q -16 11.5, -20.4 6.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M 9.2 7 Q 16 4.8, 20.4 5.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M 9 13.5 Q 16 11.5, 20.4 6.6`,stroke:`rgba(60,45,25,0.5)`,strokeWidth:.55,fill:`none`}),(0,v.jsx)(`path`,{d:`M -9.4 6.2 Q 0 4.6, 9.4 6.2 L 9 13.8 Q 5 16.4, 0 16.6 Q -5 16.4, -9 13.8 Z`,fill:`#ebe5d6`,stroke:`rgba(80,55,20,0.3)`,strokeWidth:.45}),(0,v.jsxs)(`g`,{stroke:`rgba(80,55,20,0.16)`,strokeWidth:.5,fill:`none`,children:[(0,v.jsx)(`path`,{d:`M -7.8 8.6 Q 0 7.6, 7.8 8.6`}),(0,v.jsx)(`path`,{d:`M -8 11 Q 0 10.2, 8 11`}),(0,v.jsx)(`path`,{d:`M -7 13.4 Q 0 12.8, 7 13.4`})]})]}):e===`earrings`?(0,v.jsxs)(v.Fragment,{children:[w(-20),w(20)]}):e===`earring-left`?w(-20):e===`earring-right`?w(20):e===`flower`&&!i?(0,v.jsxs)(`g`,{children:[[0,72,144,216,288].map(e=>(0,v.jsx)(`ellipse`,{transform:`translate(-15.5 -9) rotate(${e})`,cx:0,cy:-2.2,rx:1.5,ry:2.1,fill:`#f3ecd8`,stroke:`rgba(60,40,15,0.3)`,strokeWidth:.3},e)),(0,v.jsx)(`circle`,{cx:-15.5,cy:-9,r:1.6,fill:`#d2a350`})]}):e===`hairclip`&&!i?(0,v.jsxs)(`g`,{transform:`translate(15.8 -8) rotate(-24)`,children:[(0,v.jsx)(`rect`,{x:-2.6,y:-1.7,width:5.2,height:1.15,rx:.55,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.3}),(0,v.jsx)(`rect`,{x:-2.6,y:.55,width:5.2,height:1.15,rx:.55,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.3})]}):e===`headband`&&!i?(0,v.jsx)(`path`,{d:`M -20.6 -4.2 Q 0 -9.4, 20.6 -4.2 L 20.6 -1.4 Q 0 -6.4, -20.6 -1.4 Z`,fill:t.shirtAccentFill??r,stroke:`rgba(0,0,0,0.2)`,strokeWidth:.4}):e===`bowtie`?(0,v.jsxs)(`g`,{stroke:`rgba(0,0,0,0.28)`,strokeWidth:.4,strokeLinejoin:`round`,children:[(0,v.jsx)(`path`,{d:`M -1.4 25 L -7 22 L -7 28 Z`,fill:t.shirtAccentFill??r}),(0,v.jsx)(`path`,{d:`M 1.4 25 L 7 22 L 7 28 Z`,fill:t.shirtAccentFill??r}),(0,v.jsx)(`rect`,{x:-1.6,y:23.4,width:3.2,height:3.2,rx:.8,fill:t.shirtAccentFill??r}),(0,v.jsx)(`rect`,{x:-1.6,y:23.4,width:3.2,height:3.2,rx:.8,fill:`rgba(0,0,0,0.18)`,stroke:`none`})]}):e===`necklace`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`path`,{d:`M -13.5 20.5 Q 0 29.5, 13.5 20.5`,fill:`none`,stroke:`#9a7a30`,strokeWidth:.7}),(0,v.jsx)(`circle`,{cx:0,cy:26.8,r:1.9,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.4}),(0,v.jsx)(`circle`,{cx:-.5,cy:26.2,r:.6,fill:`rgba(255,240,200,0.9)`})]}):e===`brooch`?(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`circle`,{cx:-8.5,cy:24.5,r:2.3,fill:`#d8b35a`,stroke:`#7a5a18`,strokeWidth:.45}),(0,v.jsx)(`circle`,{cx:-8.5,cy:24.5,r:.95,fill:`#f4e7c0`})]}):C(e,t)}function T(e,t,n){return e===`hat`?t===`hood`?re(n):ne(t,n):e===`dress`?ie(t,n):ae(t,n)}var E=`#c8956a`,D=`#b07e54`,oe=`#7a9aa6`,se=`#b0724c`,O=h(te(`adult`)),k=ee(`tapered`),ce={eyeGap:8,eyeY:1.5};function le(e){return{fv:ce,L:O,arch:k,felt:m(e.length*7,E,D),scarfFelt:m(e.length*7+23,E,D),shirt:oe,shirtAccent:se,hasHat:!1}}function ue({slot:e,option:t,size:n=56}){let r=(0,c.useRef)(null),[i,a]=(0,c.useState)(null),o=T(e,t,le(t));return(0,c.useLayoutEffect)(()=>{let e=r.current;if(e)try{let t=e.getBBox();if(t.width>0&&t.height>0){let e=2.5;a(`${t.x-e} ${t.y-e} ${t.width+e*2} ${t.height+e*2}`)}}catch{}},[e,t]),(0,v.jsx)(`svg`,{width:n,height:n,viewBox:i??`-30 -33 60 66`,preserveAspectRatio:`xMidYMid meet`,style:{display:`block`,overflow:`visible`,opacity:+!!i},"aria-hidden":`true`,children:(0,v.jsx)(`g`,{ref:r,children:o})})}var A=80,j=175,de={fine:{fiberFrequency:1.42,waveFrequency:1.18,displacement:.42,opacity:1.08,soften:.78},flowing:{fiberFrequency:.68,waveFrequency:.72,displacement:1.85,opacity:1.2,soften:1.08},cathedral:{fiberFrequency:.86,waveFrequency:.62,displacement:1.28,opacity:1.06,soften:.96},knotty:{fiberFrequency:1.02,waveFrequency:.9,displacement:1.05,opacity:1.08,soften:.9}};function fe(e){return e%4==0?`knotty`:[`fine`,`flowing`,`cathedral`][Math.floor(e/4)%3]}function pe({poppetje:e,variant:t=`full`,size:n=120,grainStyle:r=`wavy`,whorls:i,title:o,className:l,withShadow:u,withBase:f,svgId:p}){let y=(0,c.useId)(),b=`pop${(p??y).replace(/[^a-zA-Z0-9_-]/g,``)}`,x=ee(e.bodyShape),S=h(te(e.figureScale)),C=g(x,S),w=s(e.key),T=a[r]??a.wavy,E=fe(w),D=de[E],[oe=.12,se=.016]=(T.streakFreq??`0.12 0.016`).split(` `).map(Number),O=.86+w%9*.035,k=.9+w%7*.033,ce=.9+w%9*.025,le=.9+Math.floor(w/2)%7*.03,ue=.86+Math.floor(w/3)%8*.04,pe=`${(.022*k*D.waveFrequency).toFixed(4)} ${(.014/k).toFixed(4)}`,me=`${(oe*O*D.fiberFrequency).toFixed(4)} ${(se/O).toFixed(4)}`,M=(T.opacity??.12)*ce*D.opacity,he=(T.soften??.35)*le*D.soften,ge=(T.dispScale??0)*ue*D.displacement,N=!T.skip&&(t!==`icon`||n>=36),P=N?{filter:`url(#${b}-wood)`}:{},_e=N?{filter:`url(#${b}-woodsoft)`}:{},F=i===void 0?E===`knotty`?w%8==0?2:1:0:Math.max(0,Math.floor(i)),I=Math.min(.38,.17+M*.58),ve=Math.min(.12,.035+M*.24),L=e.hat??null,ye=e.dress??null,be=e.accessory??null,xe=e.facialHair??null,Se=e.mark??null,R=e.expression??`smile`,z=e.shirtPattern??`plain`,B=!L,{skin:V,skin2:H,shirt:U,shirtAccent:W}=e,Ce=d(U,`#fff2d4`,.14),we=d(U,W,.08),G=d(W,`#24160d`,.22),K=d(W,`#120c08`,.34),Te=d(V,`#fff1d8`,.2),Ee=d(V,H,.1),De=d(H,`#2b190f`,.18),Oe=d(H,`#130d09`,.32),ke=d(e.hair,`#f0cf9b`,.1),Ae=d(e.hair,`#090705`,.32),q=m(w+(L?L.length*7:0),V,H),J=m(w+23,V,H),je=d(q.felt,`#fff0cf`,.18),Me=d(q.felt,`#17100b`,.3),Ne=d(q.band,`#f3d39e`,.12),Pe=d(q.band,`#120c08`,.34),Fe=d(J.felt,`#fff0cf`,.16),Ie=d(J.felt,`#17100b`,.28),Le=d(J.band,`#f3d39e`,.1),Re=d(J.band,`#120c08`,.32),Y={eyeGap:7.4+w%5*.4,eyeY:1.2+Math.floor(w/2)%4*.5,eyeR:1.55+Math.floor(w/4)%4*.1,mouthDY:Math.floor(w/8)%3-1,mouthW:.92+Math.floor(w/16)%3*.09,blush:.12+Math.floor(w/2)%3*.04},X=10+Y.mouthDY,Z={fv:Y,L:S,arch:x,felt:q,scarfFelt:J,shirt:U,shirtAccent:W,feltFill:`url(#${b}-felt)`,feltBandFill:`url(#${b}-felt-band)`,scarfFill:`url(#${b}-scarf)`,scarfBandFill:`url(#${b}-scarf-band)`,shirtFill:`url(#${b}-body)`,shirtAccentFill:`url(#${b}-accent)`,hasHat:!!L},Q=S.headCY-S.headR,$=S.headR*2,ze=(S.baseY-S.shoulderY)*.35,Be=S.headR/22,Ve=L?30*Be:0,He=L?36*Be:0,Ue=Math.max(26,S.headR+4,Ve+1),We=S.headCY-Math.max(S.headR,He)-4,Ge=Q+$+4+ze,Ke=t===`icon`?`${40-S.headR-4} ${Q-4} ${$+8} ${$+8}`:t===`headshot`?`${40-Ue} ${We} ${Ue*2} ${Ge-We}`:`0 0 ${A} ${j}`,qe=Ke.split(` `).map(Number),Je=qe[2]??A,Ye=(qe[3]??j)/Je,Xe=n,Ze=n*Ye,Qe=u??t===`full`,$e=f??t===`full`;return(0,v.jsxs)(`svg`,{width:Xe,height:Ze,viewBox:Ke,style:{display:`block`,overflow:`visible`},role:o?`img`:void 0,"aria-label":o,className:l,"data-grain-character":N?E:void 0,"data-whorl-count":N?F:void 0,children:[(0,v.jsxs)(`defs`,{children:[(0,v.jsxs)(`linearGradient`,{id:`${b}-body`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:K}),(0,v.jsx)(`stop`,{offset:`0.08`,stopColor:G}),(0,v.jsx)(`stop`,{offset:`0.28`,stopColor:we}),(0,v.jsx)(`stop`,{offset:`0.43`,stopColor:Ce}),(0,v.jsx)(`stop`,{offset:`0.58`,stopColor:U}),(0,v.jsx)(`stop`,{offset:`0.82`,stopColor:we}),(0,v.jsx)(`stop`,{offset:`0.94`,stopColor:G}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:K})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-body-depth`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:`#fff1d2`,stopOpacity:`0.12`}),(0,v.jsx)(`stop`,{offset:`0.16`,stopColor:`#fff1d2`,stopOpacity:`0.035`}),(0,v.jsx)(`stop`,{offset:`0.62`,stopColor:`#2b180d`,stopOpacity:`0`}),(0,v.jsx)(`stop`,{offset:`0.88`,stopColor:`#2b180d`,stopOpacity:`0.08`}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:`#160e09`,stopOpacity:`0.2`})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-body-glaze`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:`#fff7e8`,stopOpacity:`0`}),(0,v.jsx)(`stop`,{offset:`0.24`,stopColor:`#fff7e8`,stopOpacity:`0.025`}),(0,v.jsx)(`stop`,{offset:`0.37`,stopColor:`#fff7e8`,stopOpacity:`0.07`}),(0,v.jsx)(`stop`,{offset:`0.49`,stopColor:`#fff7e8`,stopOpacity:`0.025`}),(0,v.jsx)(`stop`,{offset:`0.7`,stopColor:`#fff7e8`,stopOpacity:`0`})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-head`,cx:`0.31`,cy:`0.22`,r:`0.8`,fx:`0.27`,fy:`0.18`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Te}),(0,v.jsx)(`stop`,{offset:`0.3`,stopColor:Ee}),(0,v.jsx)(`stop`,{offset:`0.66`,stopColor:V}),(0,v.jsx)(`stop`,{offset:`0.88`,stopColor:De}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Oe})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-hair`,cx:`0.32`,cy:`0.18`,r:`0.86`,fx:`0.27`,fy:`0.13`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:ke}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:e.hair}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Ae})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-felt`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Me}),(0,v.jsx)(`stop`,{offset:`0.32`,stopColor:q.felt}),(0,v.jsx)(`stop`,{offset:`0.46`,stopColor:je}),(0,v.jsx)(`stop`,{offset:`0.72`,stopColor:q.felt}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Me})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-felt-band`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Pe}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Ne}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Pe})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-scarf`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Ie}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Fe}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Ie})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-scarf-band`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:Re}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:Le}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:Re})]}),(0,v.jsxs)(`linearGradient`,{id:`${b}-accent`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:K}),(0,v.jsx)(`stop`,{offset:`0.42`,stopColor:d(W,`#fff0d0`,.16)}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:G})]}),(0,v.jsxs)(`radialGradient`,{id:`${b}-whorl-patch`,cx:`0.5`,cy:`0.5`,r:`0.5`,children:[(0,v.jsx)(`stop`,{offset:`0`,stopColor:V,stopOpacity:`0.7`}),(0,v.jsx)(`stop`,{offset:`0.55`,stopColor:V,stopOpacity:`0.5`}),(0,v.jsx)(`stop`,{offset:`1`,stopColor:V,stopOpacity:`0`})]}),(0,v.jsx)(`clipPath`,{id:`${b}-bodyclip`,children:(0,v.jsx)(`path`,{d:C})}),(0,v.jsx)(`clipPath`,{id:`${b}-headclip`,children:(0,v.jsx)(`ellipse`,{cx:0,cy:0,rx:21.4,ry:22.4})}),(0,v.jsx)(`filter`,{id:`${b}-blur`,x:`-20%`,y:`-20%`,width:`140%`,height:`140%`,children:(0,v.jsx)(`feGaussianBlur`,{stdDeviation:`0.75`})}),N&&[{suffix:`wood`,opacity:M,soften:he},{suffix:`woodsoft`,opacity:M*.55,soften:he+.18}].map(({suffix:e,opacity:t,soften:n})=>(0,v.jsxs)(`filter`,{id:`${b}-${e}`,x:`-4%`,y:`-4%`,width:`108%`,height:`108%`,colorInterpolationFilters:`sRGB`,children:[(0,v.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:pe,numOctaves:2,seed:w,stitchTiles:`stitch`,result:`waves`}),(0,v.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:me,numOctaves:2,seed:(w+9)%100,stitchTiles:`stitch`,result:`streaks`}),(0,v.jsx)(`feDisplacementMap`,{in:`streaks`,in2:`waves`,scale:ge,xChannelSelector:`R`,yChannelSelector:`G`,result:`wavyGrain`}),(0,v.jsx)(`feGaussianBlur`,{in:`wavyGrain`,stdDeviation:n,result:`paintSoftenedGrain`}),(0,v.jsxs)(`feComponentTransfer`,{in:`paintSoftenedGrain`,result:`fiberContrast`,children:[(0,v.jsx)(`feFuncR`,{type:`linear`,slope:2.4,intercept:-.7}),(0,v.jsx)(`feFuncG`,{type:`linear`,slope:2.4,intercept:-.7}),(0,v.jsx)(`feFuncB`,{type:`linear`,slope:2.4,intercept:-.7})]}),(0,v.jsx)(`feColorMatrix`,{in:`fiberContrast`,type:`matrix`,values:`0 0 0 0 0.30
|
|
39
39
|
0 0 0 0 0.20
|
|
40
40
|
0 0 0 0 0.11
|
|
41
41
|
${t} 0 0 0 0`,result:`grain`}),(0,v.jsx)(`feComposite`,{in:`grain`,in2:`SourceGraphic`,operator:`in`,result:`masked-grain`}),(0,v.jsx)(`feBlend`,{in:`masked-grain`,in2:`SourceGraphic`,mode:`multiply`})]},e))]}),Qe&&(0,v.jsx)(`ellipse`,{cx:40,cy:S.baseY+7,rx:x.baseW*.58,ry:3,fill:`rgba(0,0,0,0.16)`}),$e&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`ellipse`,{cx:40,cy:S.baseY+2.2,rx:x.baseW*.54,ry:3.8,fill:K,opacity:.82}),(0,v.jsx)(`ellipse`,{cx:39,cy:S.baseY+1.35,rx:x.baseW*.45,ry:1.15,fill:Ce,opacity:.18})]}),(0,v.jsxs)(`g`,{...P,children:[(0,v.jsx)(`path`,{d:C,fill:`url(#${b}-body)`}),(0,v.jsx)(`path`,{d:C,fill:`url(#${b}-body-depth)`}),(0,v.jsx)(`path`,{d:C,fill:`url(#${b}-body-glaze)`}),N&&E===`cathedral`&&(0,v.jsx)(`g`,{clipPath:`url(#${b}-bodyclip)`,fill:`none`,stroke:`#3a1d0d`,strokeWidth:.48,strokeLinecap:`round`,opacity:ve,transform:`translate(${(w%5-2)*1.4} 0)`,children:[0,1,2,3].map(e=>{let t=S.chestY+24-e*6,n=S.baseY-24+e*5,r=5+e*3.7,i=((w+e*3)%5-2)*.7;return(0,v.jsx)(`path`,{d:`M ${40+i-r*.45} ${n}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/extract-UTAOG7LV-4WDRw1o4.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/rolldown-runtime-aKtaBQYM.js","assets/jszip.min-DhiFe-R7.js","assets/chunk-S5PCVMKU-Df5XzhSE.js","assets/chunk-WATAOG4Y-C1EXVPmG.js","assets/mapTheme-4TWH25FT-C2uLgUhs.js","assets/chunk-2JJ5RFDZ-B2-BFNXu.js","assets/chunk-GAZKTT4R-BkP6-w3z.js","assets/chunk-BAOV476U-CEOFYt8X.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/schemas-JY4jmLbC.js","assets/layouts-2A7QNF6Y-CVwP7noP.js","assets/chunk-6N2J7C2B-CsppiLVr.js","assets/doc-Dr5K49bx.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-UBFT2CDQ-FexGDigd.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/chunk-7ZAAICW4-BsCpYJH6.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{I as e,Q as t,Z as n,f as r,ft as i,gt as a,h as o,st as s}from"./doc-Dr5K49bx.js";import{l as c}from"./chunk-O7JILDEF-CqcO1qaI.js";import{f as l,n as u,o as d}from"./chunk-BAOV476U-CEOFYt8X.js";import{O as f}from"./chunk-GAZKTT4R-BkP6-w3z.js";import{i as p}from"./chunk-7ZAAICW4-BsCpYJH6.js";import{l as m}from"./markdown-ryKA_OmY.js";import"./schemas-JY4jmLbC.js";import{t as h}from"./preload-helper-Czpn1I53.js";import"./inlineIconMarker-BQI2HLeD.js";import"./chunk-7AWFHP5U-MiVVPFTx.js";import{B as g,D as _,E as v,F as y,G as b,K as x,O as S,Q as C,T as w,U as T,V as ee,Y as te,Z as ne,at as re,d as ie,et as ae,f as oe,g as se,h as ce,it as le,k as E,m as ue,nt as de,p as fe,q as pe,rt as me,tt as he}from"./chunk-S5PCVMKU-Df5XzhSE.js";import{a as ge,n as D,r as _e,t as O}from"./chunk-JU2RHXUB-ClblWDJZ.js";import{a as ve,n as ye,o as k,r as A,t as be}from"./chunk-A6N6IN3I-ofeM4l8g.js";import{t as xe}from"./chunk-B7GEAZBI-Divd2h1k.js";import{t as Se}from"./chunk-ILCJ3WFD-CLZxw4Ge.js";import{t as Ce}from"./chunk-IIQYS2YH-DKZhWMpn.js";import{i as we,n as Te,r as Ee}from"./chunk-USU6HTKB-B_p-YcDp.js";import{r as De}from"./chunk-VPWPEMZJ-DRKoa_j0.js";import{n as Oe,t as ke}from"./chunk-6N2J7C2B-CsppiLVr.js";var j=12192e3,M=6858e3,Ae=457200,je=274638,Me=8229600,Ne=1143e3,N=457200,P=1600200,F=8229600,I=4525963,L=`Calibri`,Pe=`Calibri Light`,Fe=`Consolas`,Ie=4400,Le=1400,Re=`0563C1`;function ze(e,t,n,r,i=[]){let a=[];for(let n=0;n<e;n++)a.push(`<p:sldId id="${256+n}" r:id="${t[n]}"/>`);let o=i.length>0?`<p:embeddedFontLst>${i.map(({typeface:e,relId:t})=>`<p:embeddedFont><p:font typeface="${O(e)}" charset="0" pitchFamily="34"/><p:regular r:id="${O(t)}"/></p:embeddedFont>`).join(``)}</p:embeddedFontLst>`:``;return D()+`<p:presentation xmlns:a="${w}" xmlns:r="${E}" xmlns:p="${_}" saveSubsetFonts="1"><p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="${n}"/></p:sldMasterIdLst><p:sldIdLst>${a.join(``)}</p:sldIdLst><p:sldSz cx="${j}" cy="${M}" type="screen16x9"/><p:notesSz cx="${M}" cy="${j}"/>`+o+`</p:presentation>`}function Be(e){return D()+`<p:sldMaster xmlns:a="${w}" xmlns:r="${E}" xmlns:p="${_}"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr/></p:spTree></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:sldLayoutIdLst><p:sldLayoutId id="2147483649" r:id="${e}"/></p:sldLayoutIdLst></p:sldMaster>`}function Ve(e){return D()+`<p:sldLayout xmlns:a="${w}" xmlns:r="${E}" xmlns:p="${_}" type="obj" preserve="1"><p:cSld name="Title and Content"><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr/><p:sp><p:nvSpPr><p:cNvPr id="2" name="Title 1"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="title"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="${Ae}" y="${je}"/><a:ext cx="${Me}" cy="${Ne}"/></a:xfrm></p:spPr><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Content 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="${N}" y="${P}"/><a:ext cx="${F}" cy="${I}"/></a:xfrm></p:spPr><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree></p:cSld></p:sldLayout>`}function He(){return D()+`<a:theme xmlns:a="${w}" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>`}async function Ue(e,t={}){t.signal?.throwIfAborted();let n=Ke(t.themeId??c(e.frontmatter),t,e),r=Ye(e.children,t.slideBreak??`h2`,t.onWarning);r.length===0&&r.push({bodyNodes:[]});let i=[],a=[];for(let e=0;e<r.length;e++){e&31||t.signal?.throwIfAborted();let o=new Xe(n,t.images,e,t.allowRelativeHyperlinks??!1,t.signal),s=Ze(r[e],o);i.push(s),a.push(o)}return Vt(i,a,t)}function We(e){return(e.blocks??[]).some(e=>!!e.sourceHeading)}async function Ge(i,c={}){c.signal?.throwIfAborted();let f=!c.themeId&&i.themeId?{...c,themeId:i.themeId}:c,p=We(i)?r(i):i,m=s(p.blocks);if(!m.some(l))return Ue(o(i),f);let h=e(i,f.themeId,f.themeRegistry),g=qe(h,f),_=i.audio?.segments?.length?p.audio?.segments?.map(e=>({startTime:e.startTime,duration:e.duration})):void 0,v=a({persistentLayers:i.persistentLayers},h),y=t(m,{audioSegments:_,viewport:u.landscape,persistentLayers:v,theme:h,customTemplates:i.customTemplates,splitLongBlocks:!1,mergeShortBlocks:!1}),b=[];if(Je(i,f)&&i.startBlock){let e=d(h,0,Math.max(1,y.length+1),u.landscape);b.push({id:`cover-block`,startTime:-1,duration:0,audioSegment:-1,layers:n(i.startBlock,e)})}b.push(...y),b.length===0&&b.push({id:`empty-slide`,startTime:0,duration:0,audioSegment:0,layers:[]});let x=[],S=[];for(let e=0;e<b.length;e++){e&31||f.signal?.throwIfAborted();let t=new Xe(g,f.images,e,f.allowRelativeHyperlinks??!1,f.signal);x.push(Qe(b[e],t)),S.push(t)}return Vt(x,S,f)}function R(e,t){return f(e,t).split(`,`)[0]?.trim().replace(/^['"]|['"]$/g,``)||t}function Ke(t,n,r){return t?qe(e(r,t,n.themeRegistry),n):{background:`FFFFFF`,text:`333333`,titleColor:`333333`,mutedColor:`666666`,titleFont:n.defaultFont??Pe,bodyFont:n.defaultFont??L,codeFont:Fe,codeColor:`333333`,hasTheme:!1}}function qe(e,t){let n=e.colors;return{background:k(n.background,`FFFFFF`),text:k(n.text,`333333`),titleColor:k(n.highlight||n.secondary||n.text,`333333`),mutedColor:k(n.textMuted||n.text,`666666`),titleFont:R(e.typography?.titleFont,Pe),bodyFont:R(e.typography?.bodyFont,t.defaultFont||L),codeFont:R(e.typography?.monoFont,Fe),codeColor:k(n.textMuted||n.text,`333333`),hasTheme:!0}}function Je(e,t){if(t.includeCoverSlide!==void 0)return t.includeCoverSlide;let n=e.frontmatter?.[`squisq-cover-slide`]??e.frontmatter?.[`cover-slide`];if(typeof n==`boolean`)return n;if(typeof n==`string`){let e=n.trim().toLowerCase();if(e===`false`||e===`no`||e===`off`||e===`0`)return!1;if(e===`true`||e===`yes`||e===`on`||e===`1`)return!0}return!0}function Ye(e,t,n){let r=t===`h1`?1:t===`h2`?2:6,i=[],a,o=0;for(let t of e)if(t.type===`heading`&&t.depth<=r){if(a){for(;a.bodyNodes[a.bodyNodes.length-1]?.type===`thematicBreak`;)a.bodyNodes.pop(),o+=1;(a.title||a.bodyNodes.length>0)&&i.push(a)}a={title:t.children,titleDepth:t.depth,transition:t.attributes?.blockMeta?.transition,bodyNodes:[]}}else a||={bodyNodes:[]},a.bodyNodes.push(t);return a&&i.push(a),o>0&&n?.(`PPTX export removed ${o} redundant thematic break(s) immediately before slide headings. A heading already starts the next slide; omit --- unless a visible horizontal rule is intended.`),i}var Xe=class{constructor(e,t,n,r,i){this.relIds=new be,this.relationships=[],this.embeddedImages=[],this.nextShapeId=4,this.iconFamilies=new Set,this.style=e,this.images=t,this.slideIndex=n,this.allowRelativeHyperlinks=r,this.signal=i,this.relationships.push({id:this.allocRelId(),type:x,target:`../slideLayouts/slideLayout1.xml`})}allocRelId(){return this.relIds.alloc()}allocShapeId(){return this.nextShapeId++}addHyperlink(e){let t=ve(e,{allowRelative:this.allowRelativeHyperlinks});if(!t)return null;let n=this.allocRelId();return this.relationships.push({id:n,type:g,target:t,targetMode:`External`}),n}addImage(e,t,n){let r=this.allocRelId(),i=Ht(e),a=De(i),o=this.embeddedImages.length+1,s=`ppt/media/image_s${this.slideIndex}_${o}.${i}`;return this.embeddedImages.push({relId:r,mediaPath:s,data:t,contentType:a,alt:n}),this.relationships.push({id:r,type:ee,target:`../media/image_s${this.slideIndex}_${o}.${i}`}),r}};function Ze(e,t){let n=[];n.push(`<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr/>`),e.title?.length&&n.push(ht(e.title,t));let r=bt(e.bodyNodes,t),i=t.embeddedImages.length>0,a=r.length>0;if(a&&i){let e=Math.round(I*.45),i=P+e+91440,a=I-e-91440;n.push(yt(r,P,e,t.style)),n.push(X(t.embeddedImages[0],t.allocShapeId(),N,i,F,a))}else i&&!a?n.push(X(t.embeddedImages[0],t.allocShapeId(),N,P,F,I)):n.push(yt(r||`<a:p><a:endParaRPr lang="en-US"/></a:p>`,P,I,t.style));for(let e=1;e<t.embeddedImages.length;e++)n.push(X(t.embeddedImages[e],t.allocShapeId(),N,P,F,I));let o=t.style.hasTheme?`<p:bg><p:bgPr><a:solidFill><a:srgbClr val="${t.style.background}"/></a:solidFill><a:effectLst/></p:bgPr></p:bg>`:``,s=ut(e.transition),c=s.includes(`p14:`)?` xmlns:mc="${v}" xmlns:p14="${S}" mc:Ignorable="p14"`:``;return D()+`<p:sld xmlns:a="${w}" xmlns:r="${E}" xmlns:p="${_}"${c}><p:cSld>`+o+`<p:spTree>`+n.join(``)+`</p:spTree></p:cSld>`+s+`</p:sld>`}function Qe(e,t){let n=[`<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr/>`],r=(e.layers??[]).filter(e=>e.type===`text`).map(e=>z(e.position.y,1080));for(let n of e.layers??[])if(n.type===`text`)for(let e of p(n.content.text??``))e.type===`icon`&&t.iconFamilies.add(e.family);for(let i=0;i<(e.layers?.length??0);i++){i&31||t.signal?.throwIfAborted();let a=e.layers[i],o=a.type===`text`?z(a.position.y,1080):void 0,s=o===void 0?void 0:r.filter(e=>e>o+1).sort((e,t)=>e-t)[0];n.push(...$e(a,t,s===void 0||o===void 0?void 0:Math.max(o+1,s-8)))}let i=t.style.hasTheme?`<p:bg><p:bgPr><a:solidFill><a:srgbClr val="${t.style.background}"/></a:solidFill><a:effectLst/></p:bgPr></p:bg>`:``,a=ut(e.transition),o=a.includes(`p14:`)?` xmlns:mc="${v}" xmlns:p14="${S}" mc:Ignorable="p14"`:``;return D()+`<p:sld xmlns:a="${w}" xmlns:r="${E}" xmlns:p="${_}"${o}><p:cSld>${i}<p:spTree>${n.join(``)}</p:spTree></p:cSld>`+a+`</p:sld>`}function $e(e,t,n){switch(e.type){case`text`:return[H(e,t.allocShapeId(),n)];case`shape`:return[tt(e,t.allocShapeId())];case`image`:{let n=t.images?.get(e.content.src);if(n){let r=t.addImage(e.content.src,n,e.content.alt),i=V(B(e.position,1920,1080));return[X(t.embeddedImages.find(e=>e.relId===r),t.allocShapeId(),i.x,i.y,i.width,i.height)]}return[H(U(e.position,`[Image: ${e.content.alt||e.content.src}]`,t),t.allocShapeId())]}case`table`:return nt(e,t);case`tree`:return[H({...e,type:`text`,content:{text:rt(e.content.items),style:{fontSize:e.content.style.fontSize,fontFamily:e.content.style.fontFamily,color:e.content.style.rowColor,lineHeight:1.35}}},t.allocShapeId())];case`path`:return it(e,t);case`map`:{let n=e.content.staticSrc,r=n?t.images?.get(n):void 0;if(n&&r){let i=t.addImage(n,r,`Map`),a=t.embeddedImages.find(e=>e.relId===i),o=V(B(e.position,1920,1080));return[X(a,t.allocShapeId(),o.x,o.y,o.width,o.height)]}return[H(U(e.position,`Map: ${e.content.center.lat.toFixed(4)}, ${e.content.center.lng.toFixed(4)}`,t),t.allocShapeId())]}case`video`:{let n=e.content.posterSrc,r=n?t.images?.get(n):void 0;if(n&&r){let i=t.addImage(n,r,e.content.alt),a=t.embeddedImages.find(e=>e.relId===i),o=V(B(e.position,1920,1080));return[X(a,t.allocShapeId(),o.x,o.y,o.width,o.height)]}return[H(U(e.position,`[Video: ${e.content.alt||e.content.src}]`,t),t.allocShapeId())]}case`mermaid`:return[H(U(e.position,e.content.source,t),t.allocShapeId())]}}function z(e,t){if(typeof e==`number`)return e;if(typeof e==`string`){let n=e.trim();if(n.endsWith(`%`)){let e=Number.parseFloat(n);if(Number.isFinite(e))return e/100*t}let r=Number.parseFloat(n);if(Number.isFinite(r))return r}return 0}function B(e,t,n){let r=Math.max(1,e.width==null?t:z(e.width,1920)),i=Math.max(1,e.height==null?n:z(e.height,1080)),a=z(e.x,1920),o=z(e.y,1080),s=e.anchor??`top-left`;s===`center`?(a-=r/2,o-=i/2):(s.endsWith(`right`)&&(a-=r),s.startsWith(`bottom`)&&(o-=i));let c=Math.min(1919,Math.max(0,a)),l=Math.min(1079,Math.max(0,o));return{x:c,y:l,width:Math.max(1,Math.min(r-(c-a),1920-c)),height:Math.max(1,Math.min(i-(l-o),1080-l))}}function V(e){return{x:Math.round(e.x/1920*j),y:Math.round(e.y/1080*M),width:Math.max(1,Math.round(e.width/1920*j)),height:Math.max(1,Math.round(e.height/1080*M))}}function H(e,t,n){let r=e.content.text??``,i=p(r).map(e=>e.type===`text`?e.text:`M`).join(``),a=e.content.style,o=a.padding??0,s=i.split(`
|
|
3
|
+
`),c=Math.min(1920,Math.max(1,Math.max(...s.map(e=>e.length),1)*a.fontSize*.55)),l=e.position.width==null?c:z(e.position.width,1920),u=s.length===1&&a.fontSize>=80&&i.length>0?Math.min(a.fontSize,l/(i.length*.78)):a.fontSize,d=Math.max(1,Math.floor(l/Math.max(1,u*.58))),f=Math.max(1,s.reduce((e,t)=>e+Math.max(1,Math.ceil(t.length/d)),0)),m=u*.8,h=Math.max(u*(a.lineHeight??1.4)*f+m+o*2,u+m+o*2),g=B(e.position,l,h),_=Math.min(1060,n??1060),v={...g,y:Math.min(g.y,_-1),height:Math.max(1,Math.min(g.height,_-g.y))},y=Math.min(1,v.height/h),b=Math.max(1,u*y*(y<1?.9:1)),x=b===a.fontSize?a:{...a,fontSize:b},S=V(v),C=a.textAlign===`center`?`ctr`:a.textAlign===`right`?`r`:`l`,w=a.verticalAlign===`bottom`?`b`:a.verticalAlign===`middle`?`ctr`:`t`,T=Math.max(0,Math.round(o/1920*j)),ee=`<a:bodyPr wrap="square" anchor="${w}" vertOverflow="clip" horzOverflow="clip" lIns="${T}" rIns="${T}" tIns="${T}" bIns="${T}"><a:noAutofit/></a:bodyPr>`,te=r.split(`
|
|
4
|
+
`).map(e=>et(e,x,C)).join(``);return`<p:sp><p:nvSpPr><p:cNvPr id="${t}" name="${O(e.id)}"/><p:cNvSpPr txBox="1"/><p:nvPr/></p:nvSpPr><p:spPr><a:xfrm><a:off x="${S.x}" y="${S.y}"/><a:ext cx="${S.width}" cy="${S.height}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom>`+at(a.background,a.backgroundOpacity,a.backgroundGradient)+st(a.borderColor,a.borderWidth,a.borderStyle)+`</p:spPr><p:txBody>${ee}<a:lstStyle/>${te}</p:txBody></p:sp>`}function et(e,t,n){let r=Math.max(100,Math.round(t.fontSize*75)),i=W(t.color,`000000`),a=R(t.fontFamily,L),o=[`lang="en-US"`,`dirty="0"`,`sz="${r}"`,...t.fontWeight===`bold`?[`b="1"`]:[],...t.fontStyle===`italic`?[`i="1"`]:[]].join(` `),s=Math.max(1e4,Math.round((t.lineHeight??1.4)*1e5)),c=p(e).map(e=>{if(e.type===`text`)return e.text?`<a:r><a:rPr ${o}>${G(i)}<a:latin typeface="${O(a)}"/></a:rPr><a:t>${O(e.text)}</a:t></a:r>`:``;let t=we(e.family,e.name);if(!t)return``;let n=Te(e.family).typeface;return`<a:r><a:rPr lang="en-US" dirty="0" sz="${r}">${G(i)}<a:latin typeface="${O(n)}"/></a:rPr><a:t>${O(t)}</a:t></a:r>`}).join(``);return`<a:p><a:pPr algn="${n}"><a:lnSpc><a:spcPct val="${s}"/></a:lnSpc></a:pPr>`+(c||`<a:r><a:rPr ${o}>${G(i)}<a:latin typeface="${O(a)}"/></a:rPr><a:t> </a:t></a:r>`)+`</a:p>`}function tt(e,t){let n=V(B(e.position,100,100)),r=e.content.shape===`circle`?`ellipse`:e.content.shape===`line`?`line`:e.content.borderRadius?`roundRect`:`rect`,i=e.content.shape===`line`?`<a:noFill/>`:at(e.content.fill,e.content.fillOpacity,e.content.gradient),a=st(e.content.stroke??(e.content.shape===`line`?`#ffffff`:void 0),e.content.strokeWidth??(e.content.shape===`line`?2:void 0),e.content.borderStyle);return`<p:sp><p:nvSpPr><p:cNvPr id="${t}" name="${O(e.id)}"/><p:cNvSpPr/><p:nvPr/></p:nvSpPr><p:spPr><a:xfrm><a:off x="${n.x}" y="${n.y}"/><a:ext cx="${n.width}" cy="${n.height}"/></a:xfrm><a:prstGeom prst="${r}"><a:avLst/></a:prstGeom>`+i+a+`</p:spPr></p:sp>`}function nt(e,t){let n=[e.content.headers,...e.content.rows],r=Math.max(1,...n.map(e=>e.length)),i=Math.max(1,n.length),a=B(e.position,1920,1080),o=a.width/r,s=a.height/i,c=[];for(let i=0;i<n.length;i++)for(let l=0;l<r;l++){let r=i===0,u=n[i]?.[l]??``;c.push(H({id:`${e.id}-${i}-${l}`,type:`text`,position:{x:a.x+l*o,y:a.y+i*s,width:o,height:s},content:{text:u,style:{fontSize:e.content.style.fontSize,fontFamily:r?e.content.style.headerFontFamily??e.content.style.fontFamily:e.content.style.fontFamily,fontWeight:r?`bold`:`normal`,color:r?e.content.style.headerColor:e.content.style.cellColor,background:r?e.content.style.headerBackground:e.content.style.cellBackground,borderColor:e.content.style.borderColor,borderWidth:1,padding:Math.max(4,e.content.style.fontSize*.25),verticalAlign:`middle`,textAlign:e.content.align?.[l]??`left`,lineHeight:1.2}}},t.allocShapeId()))}return c}function rt(e,t=0){let n=[];for(let r of e)n.push(`${` `.repeat(t)}${r.isDir?`▾ `:`• `}${r.label}${r.comment?` \u2014 ${r.comment}`:``}`),r.children.length>0&&n.push(rt(r.children,t+1));return n.filter(Boolean).join(`
|
|
5
|
+
`)}function it(e,t){if(e.content.shapeKind)return[tt({id:e.id,type:`shape`,position:e.position,content:{shape:e.content.shapeKind===`circle`?`circle`:`rect`,fill:e.content.fill,fillOpacity:e.content.fillOpacity,gradient:e.content.gradient,stroke:e.content.stroke,strokeWidth:e.content.strokeWidth,borderStyle:e.content.borderStyle}},t.allocShapeId())];let n=e.content.d.match(/-?\d+(?:\.\d+)?/g)?.map(Number);if(!n||n.length<4)return[];let r=n[0],i=n[1],a=n[n.length-2],o=n[n.length-1],s=V({x:Math.min(r,a),y:Math.min(i,o),width:Math.max(1,Math.abs(a-r)),height:Math.max(1,Math.abs(o-i))}),c=a<r?` flipH="1"`:``,l=o<i?` flipV="1"`:``,u=W(e.content.stroke,`FFFFFF`),d=Math.max(1,Math.round((e.content.strokeWidth??2)*9525)),f=lt(`headEnd`,e.content.startMarker),p=lt(`tailEnd`,e.content.endMarker),m=ct(e.content.borderStyle,e.content.dasharray);return[`<p:sp><p:nvSpPr><p:cNvPr id="${t.allocShapeId()}" name="${O(e.id)}"/><p:cNvSpPr/><p:nvPr/></p:nvSpPr><p:spPr><a:xfrm${c}${l}><a:off x="${s.x}" y="${s.y}"/><a:ext cx="${s.width}" cy="${s.height}"/></a:xfrm><a:prstGeom prst="line"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="${d}">${G(u)}${m}${f}${p}</a:ln></p:spPr></p:sp>`]}function U(e,t,n){return{id:`placeholder-${n.allocShapeId()}`,type:`text`,position:e,content:{text:t,style:{fontSize:28,fontFamily:n.style.bodyFont,fontStyle:`italic`,color:`#${n.style.mutedColor}`,textAlign:`center`,verticalAlign:`middle`,padding:12}}}}function W(e,t){if(!e)return{hex:k(t),alpha:1e5};let n=e.trim();if(n===`transparent`||n===`none`)return{hex:`000000`,alpha:0};let r=/^#?([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(n);if(r){let e=r[1],t=e.length===3?e.split(``).map(e=>e+e).join(``):e,n=t.length===8?Math.round(Number.parseInt(t.slice(6,8),16)/255*1e5):1e5;return{hex:t.slice(0,6).toUpperCase(),alpha:n}}let i=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+))?\s*\)$/i.exec(n);if(i){let e=e=>Math.max(0,Math.min(255,Math.round(Number(e)))).toString(16).padStart(2,`0`),t=i[4]?Math.round(Math.max(0,Math.min(1,Number(i[4])))*1e5):1e5;return{hex:`${e(i[1])}${e(i[2])}${e(i[3])}`.toUpperCase(),alpha:t}}return{hex:{black:`000000`,white:`FFFFFF`,red:`FF0000`,blue:`0000FF`,green:`008000`,gray:`808080`,grey:`808080`}[n.toLowerCase()]??k(t),alpha:1e5}}function G(e){let t=e.alpha<1e5?`<a:alpha val="${e.alpha}"/>`:``;return`<a:solidFill><a:srgbClr val="${e.hex}">${t}</a:srgbClr></a:solidFill>`}function at(e,t,n){if(n)return ot(n.from,n.to,n.angle??0,t);if(!e||e===`none`||e===`transparent`)return`<a:noFill/>`;if(e.includes(`gradient(`)){let n=e.match(/#[0-9a-f]{3,8}|rgba?\([^)]*\)/gi)??[];if(n.length>=2){let r=Number.parseFloat(/(?:linear-gradient\()\s*([\d.-]+)deg/i.exec(e)?.[1]??`0`);return ot(n[0],n[n.length-1],r,t)}}let r=W(e,`000000`);return t!==void 0&&(r.alpha=Math.round(r.alpha*Math.max(0,Math.min(1,t)))),G(r)}function ot(e,t,n,r){let i=W(e,`000000`),a=W(t,i.hex);if(r!==void 0){let e=Math.max(0,Math.min(1,r));i.alpha=Math.round(i.alpha*e),a.alpha=Math.round(a.alpha*e)}let o=Math.round(((90-n)%360+360)%360*6e4);return`<a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:srgbClr val="${i.hex}">${i.alpha<1e5?`<a:alpha val="${i.alpha}"/>`:``}</a:srgbClr></a:gs><a:gs pos="100000"><a:srgbClr val="${a.hex}">${a.alpha<1e5?`<a:alpha val="${a.alpha}"/>`:``}</a:srgbClr></a:gs></a:gsLst><a:lin ang="${o}" scaled="1"/></a:gradFill>`}function st(e,t,n){return!e||!t||t<=0?`<a:ln><a:noFill/></a:ln>`:`<a:ln w="${Math.max(1,Math.round(t*9525))}">${G(W(e,`000000`))}${ct(n)}</a:ln>`}function ct(e,t){return e===`dashed`||t&&t!==`none`?`<a:prstDash val="dash"/>`:e===`dotted`?`<a:prstDash val="dot"/>`:``}function lt(e,t){return!t||t===`none`?``:`<a:${e} type="${t===`arrow`?`triangle`:t===`open`?`arrow`:t===`diamond`?`diamond`:t===`circle`?`oval`:`square`}" w="med" len="med"/>`}function ut(e){if(!e||e.type===`cut`)return``;let t=dt(e);return`<p:transition spd="${ft(e.duration)}">${t.xml}</p:transition>`}function dt(e){switch(e.type){case`fade`:case`morph`:return K(`fade`);case`dissolve`:return K(`dissolve`);case`push`:return K(`push`,` dir="${J(e.direction,`left`)}"`);case`slideLeft`:return K(`push`,` dir="l"`);case`slideRight`:return K(`push`,` dir="r"`);case`slideUp`:return K(`push`,` dir="u"`);case`slideDown`:return K(`push`,` dir="d"`);case`wipe`:return K(`wipe`,` dir="${J(e.direction,`left`)}"`);case`split`:return K(`split`,` orient="${Y(e.direction)}" dir="out"`);case`randomBars`:case`randomBar`:return K(`randomBar`,` dir="${Y(e.direction)}"`);case`shape`:case`circle`:return K(`circle`);case`diamond`:return K(`diamond`);case`plus`:return K(`plus`);case`uncover`:case`pull`:return K(`pull`,` dir="${J(e.direction,`left`)}"`);case`cover`:return K(`cover`,` dir="${J(e.direction,`left`)}"`);case`checkerboard`:case`checker`:return K(`checker`,` dir="${Y(e.direction)}"`);case`blinds`:return K(`blinds`,` dir="${Y(e.direction)}"`);case`comb`:return K(`comb`,` dir="${Y(e.direction)}"`);case`clock`:case`wheel`:return K(`wheel`,` spokes="4"`);case`wheelReverse`:return q(`wheelReverse`);case`newsflash`:return K(`newsflash`);case`random`:return K(`random`);case`strips`:return K(`strips`,` dir="${pt(e.direction)}"`);case`wedge`:return K(`wedge`);case`zoom`:case`box`:return K(`zoom`,` dir="${mt(e.direction,`in`)}"`);case`flash`:return q(`flash`);case`vortex`:case`orbit`:case`rotate`:return q(`vortex`);case`switch`:case`cube`:return q(`switch`);case`flip`:case`fallOver`:return q(`flip`);case`ripple`:return q(`ripple`);case`glitter`:case`prestige`:return q(`glitter`);case`honeycomb`:return q(`honeycomb`);case`prism`:return q(`prism`);case`doors`:case`drape`:case`curtains`:return q(`doors`);case`window`:return q(`window`);case`shred`:case`fracture`:case`crush`:return q(`shred`);case`ferris`:case`ferrisWheel`:return q(`ferris`);case`flythrough`:case`flyThrough`:case`airplane`:case`origami`:return q(`flythrough`);case`warp`:case`pageCurl`:case`pageCurlDouble`:case`pageCurlSingle`:case`peelOff`:return q(`warp`);case`gallery`:return q(`gallery`);case`conveyor`:return q(`conveyor`);case`pan`:case`wind`:return q(`pan`);case`reveal`:return q(`reveal`);default:return K(`fade`)}}function K(e,t=``){return{xml:`<p:${e}${t}/>`}}function q(e,t=``){return{xml:`<p14:${e}${t}/>`}}function ft(e){return e!=null&&e<=.5?`fast`:e!=null&&e>=1.2?`slow`:`med`}function J(e,t){switch(e??t){case`right`:return`r`;case`up`:return`u`;case`down`:return`d`;default:return`l`}}function pt(e){switch(e){case`right`:case`down`:return`rd`;case`up`:return`lu`;default:return`ld`}}function Y(e){return e===`vertical`||e===`up`||e===`down`?`vert`:`horz`}function mt(e,t){return e===`out`?`out`:e===`in`?`in`:t}function ht(e,t){let n=A(e,gt(t));return`<p:sp><p:nvSpPr><p:cNvPr id="2" name="Title"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="title"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="${Ae}" y="${je}"/><a:ext cx="${Me}" cy="${Ne}"/></a:xfrm></p:spPr><p:txBody><a:bodyPr/><a:lstStyle/><a:p>`+n+`</a:p></p:txBody></p:sp>`}function gt(e){let t={run:(t,n)=>_t(t,n,e.style),link:(e,n)=>A(e.children,t,n),image:(t,n)=>_t(t.alt??``,n,e.style),icon:(t,n)=>vt(t,n,e),lineBreak:()=>`<a:br/>`};return t}function _t(e,t,n){if(!e)return``;let r=[`lang="en-US"`,`dirty="0"`,`sz="${Ie}"`];t.bold&&r.push(`b="1"`),t.italic&&r.push(`i="1"`),t.strike&&r.push(`strike="sngStrike"`);let i=t.code?n.codeFont:n.titleFont;return`<a:r><a:rPr ${r.join(` `)}><a:solidFill><a:srgbClr val="${n.titleColor}"/></a:solidFill><a:latin typeface="${O(i)}"/></a:rPr><a:t>${O(e)}</a:t></a:r>`}function vt(e,t,n){let r=we(e.family,e.name);if(!r)return _t(`{[${e.token}]}`,t,n.style);let i=Te(e.family);n.iconFamilies.add(e.family);let a=[`lang="en-US"`,`dirty="0"`,`sz="${Ie}"`];return t.strike&&a.push(`strike="sngStrike"`),`<a:r><a:rPr ${a.join(` `)}><a:solidFill><a:srgbClr val="${n.style.titleColor}"/></a:solidFill><a:latin typeface="${O(i.typeface)}"/></a:rPr><a:t>${O(r)}</a:t></a:r>`}function yt(e,t,n,r){return`<p:sp><p:nvSpPr><p:cNvPr id="3" name="Content"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="${N}" y="${t}"/><a:ext cx="${F}" cy="${n}"/></a:xfrm></p:spPr><p:txBody><a:bodyPr/><a:lstStyle><a:lvl1pPr>${r.hasTheme?`<a:defRPr><a:solidFill><a:srgbClr val="${r.text}"/></a:solidFill><a:latin typeface="${O(r.bodyFont)}"/></a:defRPr>`:``}</a:lvl1pPr></a:lstStyle>`+e+`</p:txBody></p:sp>`}function X(e,t,n,r,i,a){return`<p:pic><p:nvPicPr><p:cNvPr id="${t}" name="${O(e.alt||`Picture`)}"/><p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${e.relId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr><a:xfrm><a:off x="${n}" y="${r}"/><a:ext cx="${i}" cy="${a}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr></p:pic>`}function bt(e,t){let n=[];for(let r of e)n.push(xt(r,t,0));return n.join(``)}function xt(e,t,n){switch(e.type){case`heading`:return St(e,t);case`paragraph`:return Tt(e,t);case`blockquote`:return Et(e,t);case`list`:return Dt(e,t,n);case`code`:return kt(e,t);case`table`:return At(e,t);case`thematicBreak`:return Mt(t);case`htmlBlock`:return Nt(e,t);case`math`:return Pt(e);default:return``}}function St(e,t){let n=Ct(e.depth),r=Z(e.children,t,{bold:!0});return`<a:p><a:pPr><a:spcBef><a:spcPts val="600"/></a:spcBef><a:defRPr sz="${n}" b="1"><a:solidFill><a:srgbClr val="${t.style.titleColor}"/></a:solidFill><a:latin typeface="${O(t.style.titleFont)}"/></a:defRPr></a:pPr>`+r+`</a:p>`}function Ct(e){return{1:3200,2:2800,3:2400,4:2e3,5:1800,6:1800}[e]??1800}function wt(e){return e.children.length===1&&e.children[0].type===`image`?e.children[0]:null}function Tt(e,t){let n=wt(e);if(n&&t.images){let e=t.images.get(n.url);if(e)return t.addImage(n.url,e,n.alt||``),``}return`<a:p>${Z(e.children,t)}</a:p>`}function Et(e,t){let n=[];for(let r of e.children)if(r.type===`paragraph`){let e=Z(r.children,t,{italic:!0});n.push(`<a:p><a:pPr marL="457200"><a:spcBef><a:spcPts val="200"/></a:spcBef></a:pPr>`+e+`</a:p>`)}else n.push(xt(r,t,0));return n.join(``)}function Dt(e,t,n){let r=[];for(let i of e.children)r.push(Ot(i,t,e.ordered??!1,n));return r.join(``)}function Ot(e,t,n,r){let i=[];for(let a of e.children)if(a.type===`paragraph`){let e=Z(a.children,t),o=n?`<a:buAutoNum type="arabicPeriod"/>`:`<a:buChar char="•"/>`,s=457200*(r+1);i.push(`<a:p><a:pPr lvl="${r}" marL="${s}" indent="-228600">`+o+`</a:pPr>`+e+`</a:p>`)}else a.type===`list`?i.push(Dt(a,t,r+1)):i.push(xt(a,t,r));return i.join(``)}function kt(e,t){let n=e.value.split(`
|
|
6
|
+
`),r=[];for(let e of n)r.push(`<a:p><a:r><a:rPr lang="en-US" sz="${Le}" dirty="0"><a:solidFill><a:srgbClr val="${t.style.codeColor}"/></a:solidFill><a:latin typeface="${O(t.style.codeFont)}"/></a:rPr><a:t>${O(e||` `)}</a:t></a:r></a:p>`);return r.join(``)}function At(e,t){let n=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];n.push(jt(i,t,r===0))}return n.join(``)}function jt(e,t,n){let r=[];for(let t of e.children)r.push(_e(t.children));return`<a:p>${Q(r.join(` | `),n?{bold:!0}:{},t.style)}</a:p>`}function Mt(e){return`<a:p><a:pPr algn="ctr"><a:spcBef><a:spcPts val="600"/></a:spcBef><a:spcAft><a:spcPts val="1200"/></a:spcAft><a:buNone/></a:pPr><a:r><a:rPr lang="en-US" sz="800"><a:solidFill><a:srgbClr val="${e.style.mutedColor}"/></a:solidFill></a:rPr><a:t>\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500</a:t></a:r><a:endParaRPr lang="en-US" sz="800"/></a:p>`}function Nt(e,t){let n=ge(e.rawHtml).trim();return n?`<a:p>${Q(n,{},t.style)}</a:p>`:``}function Pt(e){return`<a:p><a:pPr algn="ctr"/><a:r><a:rPr lang="en-US" i="1"><a:latin typeface="Cambria Math"/></a:rPr><a:t>${O(e.value)}</a:t></a:r></a:p>`}function Ft(e){return{run:(t,n)=>Q(t,n,e.style),link:(t,n)=>Rt(t,e,n),image:(t,n)=>Bt(t,n,e),icon:(t,n)=>Lt(t,n,e),lineBreak:()=>`<a:br/>`}}function Z(e,t,n={}){return A(e,Ft(t),n)}function It(e,t,n){return ye(e,Ft(t),n)}function Q(e,t,n){if(!e)return``;let r=[`lang="en-US"`,`dirty="0"`];t.bold&&r.push(`b="1"`),t.italic&&r.push(`i="1"`),t.strike&&r.push(`strike="sngStrike"`),t.vertAlign&&r.push(`baseline="${t.vertAlign===`superscript`?3e4:-25e3}"`);let i=``;return t.code?(i+=`<a:solidFill><a:srgbClr val="${n.codeColor}"/></a:solidFill>`,i+=`<a:latin typeface="${O(n.codeFont)}"/>`,r.push(`sz="${Le}"`)):n.hasTheme&&(i+=`<a:solidFill><a:srgbClr val="${n.text}"/></a:solidFill>`),`<a:r><a:rPr ${r.join(` `)}>${i}</a:rPr><a:t>${O(e)}</a:t></a:r>`}function Lt(e,t,n){let r=we(e.family,e.name);if(!r)return Q(`{[${e.token}]}`,t,n.style);let i=Te(e.family);n.iconFamilies.add(e.family);let a=[`lang="en-US"`,`dirty="0"`];t.strike&&a.push(`strike="sngStrike"`);let o=n.style.hasTheme?`<a:solidFill><a:srgbClr val="${n.style.text}"/></a:solidFill>`:``;return`<a:r><a:rPr ${a.join(` `)}>`+o+`<a:latin typeface="${O(i.typeface)}"/></a:rPr><a:t>${O(r)}</a:t></a:r>`}function Rt(e,t,n){let r=t.addHyperlink(e.url);if(!r)return Z(e.children,t,n);let i=[];for(let a of e.children)a.type===`text`?i.push(zt(a.value,r,n)):i.push(It(a,t,n));return i.join(``)}function zt(e,t,n){if(!e)return``;let r=[`lang="en-US"`,`dirty="0"`];return n.bold&&r.push(`b="1"`),n.italic&&r.push(`i="1"`),`<a:r><a:rPr ${r.join(` `)}><a:solidFill><a:srgbClr val="${Re}"/></a:solidFill><a:hlinkClick r:id="${t}"/></a:rPr><a:t>${O(e)}</a:t></a:r>`}function Bt(e,t,n){if(n.images){let t=n.images.get(e.url);if(t)return n.addImage(e.url,t,e.alt||``),``}return Q(`[Image: ${e.alt||e.url}]`,{...t,italic:!0},n.style)}async function Vt(e,t,n){let r=Se(),i=e.length,a=new be,o=`ppt/presentation.xml`,s=`ppt/slideMasters/slideMaster1.xml`,c=`ppt/slideLayouts/slideLayout1.xml`,l=[];for(let e=0;e<i;e++)l.push(a.alloc(o));let u=a.alloc(o),d=a.alloc(o),f=new Set;for(let e of t)for(let t of e.iconFamilies)f.add(t);let p=Ee(f).map(e=>({face:e,relId:a.alloc(o)})),m=ze(i,l,u,d,p.map(({face:e,relId:t})=>({typeface:e.typeface,relId:t})));r.addPart(`ppt/presentation.xml`,m,oe);for(let n=0;n<i;n++){let i=`ppt/slides/slide${n+1}.xml`;r.addPart(i,e[n],fe);let a=t[n];for(let e of a.relationships)r.addRelationship(i,{id:e.id,type:e.type,target:e.target,...e.targetMode?{targetMode:e.targetMode}:{}});for(let e of a.embeddedImages)r.addBinaryPart(e.mediaPath,e.data,e.contentType)}let h=a.alloc(c),g=Ve(h);r.addPart(c,g,ue),r.addRelationship(c,{id:h,type:pe,target:`../slideMasters/slideMaster1.xml`});let _=a.alloc(s),v=a.alloc(s),S=Be(_);r.addPart(s,S,ce),r.addRelationship(s,{id:_,type:x,target:`../slideLayouts/slideLayout1.xml`}),r.addRelationship(s,{id:v,type:te,target:`../theme/theme1.xml`});let C=He();r.addPart(`ppt/theme/theme1.xml`,C,se),r.addRelationship(``,{id:`rId1`,type:T,target:`ppt/presentation.xml`});for(let e=0;e<i;e++)r.addRelationship(`ppt/presentation.xml`,{id:l[e],type:b,target:`slides/slide${e+1}.xml`});r.addRelationship(`ppt/presentation.xml`,{id:u,type:pe,target:`slideMasters/slideMaster1.xml`}),r.addRelationship(`ppt/presentation.xml`,{id:d,type:te,target:`theme/theme1.xml`});for(let{face:e,relId:t}of p){let n=`${e.fileStem}.fntdata`;r.addBinaryPart(`ppt/fonts/${n}`,e.data,ie),r.addRelationship(`ppt/presentation.xml`,{id:t,type:y,target:`fonts/${n}`})}return(n.title||n.author||n.description)&&r.setCoreProperties({title:n.title,creator:n.author,description:n.description,created:new Date().toISOString(),modified:new Date().toISOString()}),r.toArrayBuffer()}function Ht(e){let t=e.lastIndexOf(`.`);return t===-1?`png`:e.substring(t+1).toLowerCase().split(`?`)[0]||`png`}var Ut=`ppt/presentation.xml`;async function Wt(e,t){let n=await de(e,t);if(!n)throw Error(`Invalid PPTX package: presentation part "${t}" could not be parsed.`);let r=await he(e,t),i=new Map(r.map(e=>[e.id,e.target])),a=[],o=n.getElementsByTagNameNS(_,`sldId`);for(let e=0;e<o.length;e++){let n=ne(o[e],E,`id`,`r:id`),r=n?i.get(n):void 0;r&&a.push(re(C(t),r))}return a}function Gt(e){let t=e.getElementsByTagNameNS(w,`t`),n=``;for(let e=0;e<t.length;e++)n+=t[e].textContent??``;return n.trim()}function Kt(e){let t=e.getElementsByTagNameNS(_,`ph`);if(!t.length)return!1;let n=t[0].getAttribute(`type`);return n===`title`||n===`ctrTitle`}function qt(e){let t=[],n=e.getElementsByTagNameNS(w,`tr`);for(let e=0;e<n.length;e++){let r=n[e].getElementsByTagNameNS(w,`tc`),i=[];for(let t=0;t<r.length;t++){let n=r[t].getElementsByTagNameNS(w,`p`),a=Array.from({length:n.length},(e,t)=>Gt(n[t])).filter(Boolean).join(` `);i.push({type:`tableCell`,...e===0?{isHeader:!0}:{},children:a?[{type:`text`,value:a}]:[]})}t.push({type:`tableRow`,children:i})}return{type:`table`,children:t}}async function Jt(e,t,n){let r=await he(n.pkg,t),i=new Map(r.map(e=>[e.id,e.target])),a=C(t),o=[],s=e.getElementsByTagNameNS(_,`pic`);for(let e=0;e<s.length;e++){let t=s[e],r=t.getElementsByTagNameNS(w,`blip`);if(!r.length)continue;let c=ne(r[0],E,`embed`,`r:embed`);if(!c)continue;let l=i.get(c);if(!l)continue;let u=re(a,l),d=await ae(n.pkg,u);if(!d)continue;let f=u.lastIndexOf(`.`),p=f===-1?`.png`:u.slice(f).toLowerCase(),m=xe(p);n.imageCounter++;let h=`images/image${n.imageCounter}${p}`;n.extractedImages.set(h,{data:d,mimeType:m});let g=t.getElementsByTagNameNS(_,`cNvPr`),v=(g.length?g[0].getAttribute(`descr`)||g[0].getAttribute(`name`):``)||`Image`;o.push({type:`image`,url:h,alt:v})}return o}function $(e){return e.replace(/\s+/g,` `).trim()}function Yt(e,t,n,r){let i=new Set;if(!e)return{omitted:i};let a=e.verdict;if(a.kind===`custom`)return r.usedCustomTemplates.set(a.def.name,a.def),{annotation:{template:a.def.name},omitted:i};if(a.kind!==`builtin`)return{omitted:i};switch(a.paramSpec){case`titleSubtitle`:{let e=t.find(e=>e.rawType===`subTitle`),n=e?$(e.texts.join(` `)):``;return e&&n&&i.add(e),{annotation:{template:a.template,...n?{params:{subtitle:n}}:{}},omitted:i}}case`comparisonPairs`:{if(!a.columns)return{omitted:i};let e=e=>e===void 0?[]:t.find(t=>t.idx===e)?.texts??[],n=t=>{let n=$(e(t[0])[0]??``),r=$(e(t[1])[0]??``);return n?r?`${n}|${r}`:n:``},r=n(a.columns.left),o=n(a.columns.right);return!r||!o?{omitted:i}:{annotation:{template:`twoColumn`,params:{left:r,right:o}},omitted:i}}case`featureImage`:{let e=n[0];if(!e)return{omitted:i};let t={imageSrc:e.url};return e.alt&&e.alt!==`Image`&&(t.imageAlt=$(e.alt)),{annotation:{template:a.template,params:t},omitted:i}}case`photoGridGate`:return n.length<2?{omitted:i}:{annotation:{template:`photoGrid`,params:{images:n.map(e=>e.url).join(`,`)}},omitted:i};default:return{annotation:{template:a.template},omitted:i}}}async function Xt(e,t,n){let r=n.pkg,i=await de(r,e);if(!i)return[];let a=[],o=``,s=[],c=i.getElementsByTagNameNS(_,`sp`);for(let e=0;e<c.length;e++){let t=c[e],n=t.getElementsByTagNameNS(_,`txBody`);if(!n.length)continue;let r=n[0].getElementsByTagNameNS(w,`p`),i=[];for(let e=0;e<r.length;e++){let t=Gt(r[e]);t&&i.push(t)}if(i.length===0)continue;if(Kt(t)&&!o){o=i.join(` `);continue}let a=t.getElementsByTagNameNS(_,`ph`),l=a.length?a[0].getAttribute(`type`)??``:``,u=a.length?a[0].getAttribute(`idx`):null,d=u&&parseInt(u,10)||0;s.push({rawType:l,idx:d,texts:i})}let l=n.extractImages?await Jt(i,e,n):[],u=n.inference?.layoutPathBySlide.get(e),{annotation:d,omitted:f}=Yt(u?n.inference?.byLayoutPath.get(u):void 0,s,l,n);a.push({type:`heading`,depth:2,children:[{type:`text`,value:o||`Slide ${t+1}`}],...d?{templateAnnotation:d}:{}});let p=s.filter(e=>!f.has(e)).flatMap(e=>e.texts);if(p.length>0){let e=p.map(e=>({type:`listItem`,children:[{type:`paragraph`,children:[{type:`text`,value:e}]}]}));a.push({type:`list`,ordered:!1,children:e})}for(let e of l)a.push({type:`paragraph`,children:[e]});let m=i.getElementsByTagNameNS(w,`tbl`);for(let e=0;e<m.length;e++)a.push(qt(m[e]));return a}function Zt(e,t){let n=t instanceof Error?t.message:String(t);console.warn(`pptx import: ${e} failed; importing without it \u2014 ${n}`)}async function Qt(e,t){let n={pkg:e,extractImages:t.extractImages??!1,extractedImages:new Map,imageCounter:0,usedCustomTemplates:new Map},r=t.inferTheme!==!1,i=t.inferLayouts!==!1,a=null;if(r||i)try{let{extractPptxTheme:t}=await h(async()=>{let{extractPptxTheme:e}=await import(`./extract-UTAOG7LV-4WDRw1o4.js`);return{extractPptxTheme:e}},__vite__mapDeps([0,1,2,3,4,5]));a=await t(e)}catch(e){Zt(`theme extraction`,e)}let o;if(r&&a)try{let{compileExtractedTheme:e}=await h(async()=>{let{compileExtractedTheme:e}=await import(`./mapTheme-4TWH25FT-C2uLgUhs.js`);return{compileExtractedTheme:e}},__vite__mapDeps([6,7,8,9,10,11]));o=e(a).theme}catch(e){Zt(`theme compilation`,e)}if(i)try{let{analyzePptxLayouts:t}=await h(async()=>{let{analyzePptxLayouts:e}=await import(`./layouts-2A7QNF6Y-CVwP7noP.js`);return{analyzePptxLayouts:e}},__vite__mapDeps([12,1,2,3,4,13])),{colorHintsFromExtraction:r}=await h(async()=>{let{colorHintsFromExtraction:e}=await import(`./mapTheme-4TWH25FT-C2uLgUhs.js`);return{colorHintsFromExtraction:e}},__vite__mapDeps([6,7,8,9,10,11]));n.inference=await t(e,{colors:a?r(a):{}})}catch(e){Zt(`layout inference`,e)}let s=await Wt(e,le(e,Ut,`PPTX`)),c=[];for(let e=0;e<s.length;e++)c.push(...await Xt(s[e],e,n));let l={type:`document`,children:c},u={};if(o||n.usedCustomTemplates.size>0){let{writeCustomThemesToFrontmatter:e,writeCustomTemplatesToFrontmatter:t,FRONTMATTER_CUSTOM_THEMES_KEY:r,FRONTMATTER_CUSTOM_TEMPLATES_KEY:i}=await h(async()=>{let{writeCustomThemesToFrontmatter:e,writeCustomTemplatesToFrontmatter:t,FRONTMATTER_CUSTOM_THEMES_KEY:n,FRONTMATTER_CUSTOM_TEMPLATES_KEY:r}=await import(`./doc-Dr5K49bx.js`).then(e=>e.t);return{writeCustomThemesToFrontmatter:e,writeCustomTemplatesToFrontmatter:t,FRONTMATTER_CUSTOM_THEMES_KEY:n,FRONTMATTER_CUSTOM_TEMPLATES_KEY:r}},__vite__mapDeps([14,2,15,9,10,8,16,17,18]));if(o){let t=e([o]);t&&(u[r]=t,u[`squisq-theme`]=o.id)}if(n.usedCustomTemplates.size>0){let e=t([...n.usedCustomTemplates.values()]);e&&(u[i]=e)}}return Object.keys(u).length>0&&(l.frontmatter=u),{doc:l,ctx:n}}async function $t(e,t={}){let{doc:n}=await Qt(await me(e,t),t);return n}async function en(e,t={}){let{doc:n,ctx:r}=await Qt(await me(e,t),{...t,extractImages:!0});return Ce(m(n),r.extractedImages)}async function tn(e,t){return i(await $t(e,t))}export{ke as analyzePptxLayouts,Ge as docToPptx,Oe as inspectPptxLayouts,Ue as markdownDocToPptx,en as pptxToContainer,tn as pptxToDoc,$t as pptxToMarkdownDoc};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t,t as n}from"./jsx-runtime-CEpd2cAX.js";import{t as r}from"./react-dom-OL4w_gzs.js";import{_ as i,b as a,c as o,d as s,f as c,g as l,h as u,l as d,m as f,p,u as m,v as h,x as g,y as _}from"./Tabs-jE0Z5Tzd.js";var v=e(t(),1),y=n(),b=Object.defineProperty,x=(e,t)=>b(e,`name`,{value:t,configurable:!0}),S=`dismissableLayer.update`,C=`dismissableLayer.pointerDownOutside`,w=`dismissableLayer.focusOutside`,T,E=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),D=v.forwardRef(x(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...f}=e,p=v.useContext(E),[m,h]=v.useState(null),_=m?.ownerDocument??globalThis?.document,[,b]=v.useState({}),C=a(t,h),w=Array.from(p.layers),[D]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),O=D?w.indexOf(D):-1,k=m?w.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,P=k>=O,F=v.useRef(!1),I=A(e=>{o?.(e),u?.(e),e.defaultPrevented||d?.()},{ownerDocument:_,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return P&&!t},[p.branches,P])}),L=j(e=>{if(r&&F.current)return;let t=e.target;[...p.branches].some(e=>e.contains(t))||(l?.(e),u?.(e),e.defaultPrevented||d?.())},_),R=m?k===w.length-1:!1,z=s(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return v.useEffect(()=>{if(R)return _.addEventListener(`keydown`,z,{capture:!0}),()=>_.removeEventListener(`keydown`,z,{capture:!0})},[_,R,z]),v.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(T=_.body.style.pointerEvents,_.body.style.pointerEvents=`none`),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),M(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(m),p.layersWithOutsidePointerEventsDisabled.size===0&&(_.body.style.pointerEvents=T))}},[m,_,n,p]),v.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),M())},[m,p]),v.useEffect(()=>{let e=x(()=>b({}),`handleUpdate`);return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,y.jsx)(c.div,{...f,ref:C,style:{pointerEvents:N?P?`auto`:`none`:void 0,...e.style},onFocusCapture:g(e.onFocusCapture,L.onFocusCapture),onBlurCapture:g(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:g(e.onPointerDownCapture,I.onPointerDownCapture)})},`DismissableLayer`));function O(){let e=v.useContext(E),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}x(O,`useDismissableLayerSurface`);var k=x(()=>!0,`IS_TRUE`);function A(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=k}=t,c=s(e),l=v.useRef(!1),u=v.useRef(!1),d=v.useRef(new Map),f=v.useRef(()=>{});return v.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}x(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}x(t,`isOutsideInteractionIntercepted`);function s(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}x(s,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}x(p,`handleInteractionBubble`);let m=x(a=>{if(a.target&&!l.current){let s=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||N(C,c,p,{discrete:!0})};if(x(s,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?s():(n.removeEventListener(`click`,f.current),f.current=s,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,s,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,s,!0),n.removeEventListener(e,p)}},[n,c,r,i,a,o]),{onPointerDownCapture:x(()=>l.current=!0,`onPointerDownCapture`)}}x(A,`usePointerDownOutside`);function j(e,t=globalThis?.document){let n=s(e),r=v.useRef(!1);return v.useEffect(()=>{let e=x(e=>{e.target&&!r.current&&N(w,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:x(()=>r.current=!0,`onFocusCapture`),onBlurCapture:x(()=>r.current=!1,`onBlurCapture`)}}x(j,`useFocusOutside`);function M(){let e=new CustomEvent(S);document.dispatchEvent(e)}x(M,`dispatchUpdate`);function N(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?p(i,a):i.dispatchEvent(a)}x(N,`handleAndDispatchCustomEvent`);var P=Object.defineProperty,F=(e,t)=>P(e,`name`,{value:t,configurable:!0}),I=`focusScope.autoFocusOnMount`,L=`focusScope.autoFocusOnUnmount`,R={bubbles:!1,cancelable:!0},z=v.forwardRef(F(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[u,d]=v.useState(null),f=s(i),p=s(o),m=v.useRef(null),h=a(t,d),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(g.paused||!u)return;let t=e.target;u.contains(t)?m.current=t:H(m.current,{select:!0})},t=function(e){if(g.paused||!u)return;let t=e.relatedTarget;t!==null&&(u.contains(t)||H(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&H(u)};F(e,`handleFocusIn`),F(t,`handleFocusOut`),F(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,u,g.paused]),v.useEffect(()=>{if(u){ie.add(g);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(I,R);u.addEventListener(I,f),u.dispatchEvent(t),t.defaultPrevented||(B(se(ee(u)),{select:!0}),document.activeElement===e&&H(u))}return()=>{u.removeEventListener(I,f),setTimeout(()=>{let t=new CustomEvent(L,R);u.addEventListener(L,p),u.dispatchEvent(t),t.defaultPrevented||H(e??document.body,{select:!0}),u.removeEventListener(L,p),ie.remove(g)},0)}}},[u,f,p,g]);let _=v.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=V(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&H(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&H(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,y.jsx)(c.div,{tabIndex:-1,...l,ref:h,onKeyDown:_})},`FocusScope`));function B(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}F(B,`focusFirst`);function V(e){let t=ee(e);return[te(t,e),te(t.reverse(),e)]}F(V,`getTabbableEdges`);function ee(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:F(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}F(ee,`getTabbableCandidates`);function te(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ne(r,{upTo:t})))return r}F(te,`findVisible`);function ne(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}F(ne,`isHidden`);function re(e){return e instanceof HTMLInputElement&&`select`in e}F(re,`isSelectableInput`);function H(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&re(e)&&t&&e.select()}}F(H,`focus`);var ie=ae();function ae(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=oe(e,t),e.unshift(t)},remove(t){e=oe(e,t),e[0]?.resume()}}}F(ae,`createFocusScopesStack`);function oe(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}F(oe,`arrayRemove`);function se(e){return e.filter(e=>e.tagName!==`A`)}F(se,`removeLinks`);var ce=e(r(),1),le=Object.defineProperty,ue=v.forwardRef(((e,t)=>le(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);h(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ce.createPortal((0,y.jsx)(c.div,{...r,ref:t}),o):null},`Portal`)),de=0,fe=null;function pe(){v.useEffect(()=>{fe||={start:me(),end:me()};let{start:e,end:t}=fe;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),de++,()=>{de===1&&(fe?.start.remove(),fe?.end.remove(),fe=null),de=Math.max(0,de-1)}},[])}function me(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)};function he(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ge(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var _e=`right-scroll-bar-position`,ve=`width-before-scroll-bar`,ye=`with-scroll-bars-hidden`,be=`--removed-body-scroll-bar-size`;function xe(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Se(e,t){var n=(0,v.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ce=typeof window<`u`?v.useLayoutEffect:v.useEffect,we=new WeakMap;function Te(e,t){var n=Se(t||null,function(t){return e.forEach(function(e){return xe(e,t)})});return Ce(function(){var t=we.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||xe(e,null)}),i.forEach(function(e){r.has(e)||xe(e,a)})}we.set(n,e)},[e]),n}function Ee(e){return e}function De(e,t){t===void 0&&(t=Ee);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Oe(e){e===void 0&&(e={});var t=De(null);return t.options=U({async:!0,ssr:!1},e),t}var ke=function(e){var t=e.sideCar,n=he(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return v.createElement(r,U({},n))};ke.isSideCarExport=!0;function Ae(e,t){return e.useMedium(t),ke}var je=Oe(),Me=function(){},Ne=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Me,onWheelCapture:Me,onTouchMoveCapture:Me}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,y=_===void 0?`div`:_,b=e.gapMode,x=he(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Te([n,t]),w=U(U({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:je,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),U(U({},w),{ref:C})):v.createElement(y,U({},w,{className:c,ref:C}),s))});Ne.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ne.classNames={fullWidth:ve,zeroRight:_e};var Pe,Fe=function(){if(Pe)return Pe;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ie(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Fe();return t&&e.setAttribute(`nonce`,t),e}function Le(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Re(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ze=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ie())&&(Le(t,n),Re(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Be=function(){var e=ze();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ve=function(){var e=Be();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},He={left:0,top:0,right:0,gap:0},Ue=function(e){return parseInt(e||``,10)||0},We=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Ue(n),Ue(r),Ue(i)]},Ge=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return He;var t=We(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ke=Ve(),qe=`data-scroll-locked`,Je=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
|
+
.${ye} {
|
|
3
|
+
overflow: hidden ${r};
|
|
4
|
+
padding-right: ${s}px ${r};
|
|
5
|
+
}
|
|
6
|
+
body[${qe}] {
|
|
7
|
+
overflow: hidden ${r};
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
10
|
+
padding-left: ${i}px;
|
|
11
|
+
padding-top: ${a}px;
|
|
12
|
+
padding-right: ${o}px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: ${s}px ${r};
|
|
16
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.${_e} {
|
|
20
|
+
right: ${s}px ${r};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.${ve} {
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.${_e} .${_e} {
|
|
28
|
+
right: 0 ${r};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${ve} .${ve} {
|
|
32
|
+
margin-right: 0 ${r};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[${qe}] {
|
|
36
|
+
${be}: ${s}px;
|
|
37
|
+
}
|
|
38
|
+
`},Ye=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Xe=function(){v.useEffect(function(){return document.body.setAttribute(qe,(Ye()+1).toString()),function(){var e=Ye()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},Ze=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Xe();var a=v.useMemo(function(){return Ge(i)},[i]);return v.createElement(Ke,{styles:Je(a,!t,i,n?``:`!important`)})},Qe=!1;if(typeof window<`u`)try{var $e=Object.defineProperty({},"passive",{get:function(){return Qe=!0,!0}});window.addEventListener(`test`,$e,$e),window.removeEventListener(`test`,$e,$e)}catch{Qe=!1}var et=Qe?{passive:!1}:!1,tt=function(e){return e.tagName===`TEXTAREA`},nt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!tt(e)&&n[t]===`visible`)},rt=function(e){return nt(e,`overflowY`)},it=function(e){return nt(e,`overflowX`)},at=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ct(e,r)){var i=lt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ot=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},st=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ct=function(e,t){return e===`v`?rt(t):it(t)},lt=function(e,t){return e===`v`?ot(t):st(t)},ut=function(e,t){return e===`h`&&t===`rtl`?-1:1},dt=function(e,t,n,r,i){var a=ut(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=lt(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ct(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},ft=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pt=function(e){return[e.deltaX,e.deltaY]},mt=function(e){return e&&`current`in e?e.current:e},ht=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gt=function(e){return`
|
|
39
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
+
`},_t=0,vt=[];function yt(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(_t++)[0],a=v.useState(Ve)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ge([e.lockRef.current],(e.shards||[]).map(mt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=ft(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=at(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=at(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return dt(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(!(!vt.length||vt[vt.length-1]!==a)){var r=`deltaY`in n?pt(n):ft(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ht(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(mt).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:bt(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=ft(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,pt(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,ft(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return vt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,et),document.addEventListener(`touchmove`,c,et),document.addEventListener(`touchstart`,u,et),function(){vt=vt.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,et),document.removeEventListener(`touchmove`,c,et),document.removeEventListener(`touchstart`,u,et)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:gt(i)}):null,p?v.createElement(Ze,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var xt=Ae(je,yt),St=v.forwardRef(function(e,t){return v.createElement(Ne,U({},e,{ref:t,sideCar:xt}))});St.classNames=Ne.classNames;var Ct=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},wt=new WeakMap,Tt=new WeakMap,Et={},Dt=0,Ot=function(e){return e&&(e.host||Ot(e.parentNode))},kt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ot(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},At=function(e,t,n,r){var i=kt(t,Array.isArray(e)?e:[e]);Et[n]||(Et[n]=new WeakMap);var a=Et[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(wt.get(e)||0)+1,l=(a.get(e)||0)+1;wt.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Tt.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Dt++,function(){o.forEach(function(e){var t=wt.get(e)-1,i=a.get(e)-1;wt.set(e,t),a.set(e,i),t||(Tt.has(e)||e.removeAttribute(r),Tt.delete(e)),i||e.removeAttribute(n)}),Dt--,Dt||(wt=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et={})}},jt=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ct(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),At(r,i,n,`aria-hidden`)):function(){return null}},Mt=Object.defineProperty,W=(e,t)=>Mt(e,`name`,{value:t,configurable:!0}),Nt=`Dialog`,[Pt,Ft]=_(Nt),[It,G]=Pt(Nt),Lt=W(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=v.useRef(null),u=v.useRef(null),[d,f]=l({prop:r,defaultProp:a??!1,onChange:o,caller:Nt}),[p,m]=v.useState(0),[h,g]=v.useState(0);return(0,y.jsx)(It,{scope:t,triggerRef:c,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:s,children:n})},`Dialog`),Rt=`DialogTrigger`,zt=v.forwardRef(W(function(e,t){let{__scopeDialog:n,...r}=e,i=G(Rt,n),o=a(t,i.triggerRef);return(0,y.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":on(i.open),...r,ref:o,onClick:g(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Bt=`DialogPortal`,[Vt,Ht]=Pt(Bt,{forceMount:void 0}),Ut=W(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=G(Bt,t);return(0,y.jsx)(Vt,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,y.jsx)(m,{present:n||a.open,children:(0,y.jsx)(ue,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Wt=`DialogOverlay`,Gt=v.forwardRef(W(function(e,t){let n=Ht(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=G(Wt,e.__scopeDialog);return a.modal?(0,y.jsx)(m,{present:r||a.open,children:(0,y.jsx)(qt,{...i,ref:t})}):null},`DialogOverlay`)),Kt=f(`DialogOverlay.RemoveScroll`),qt=v.forwardRef(W(function(e,t){let{__scopeDialog:n,...r}=e,i=G(Wt,n),o=a(t,O());return(0,y.jsx)(St,{as:Kt,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(c.div,{"data-state":on(i.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Jt=`DialogContent`,Yt=v.forwardRef(W(function(e,t){let n=Ht(Jt,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=G(Jt,e.__scopeDialog);return(0,y.jsx)(m,{present:r||a.open,children:a.modal?(0,y.jsx)(Xt,{...i,ref:t}):(0,y.jsx)(Zt,{...i,ref:t})})},`DialogContent`)),Xt=v.forwardRef(W(function(e,t){let n=G(Jt,e.__scopeDialog),r=v.useRef(null),i=a(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return jt(e)},[]),(0,y.jsx)(Qt,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:g(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:g(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:g(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Zt=v.forwardRef(W(function(e,t){let n=G(Jt,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(Qt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),Qt=v.forwardRef(W(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=G(Jt,n);return pe(),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(D,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":on(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),$t=`DialogTitle`,en=v.forwardRef(W(function(e,t){let{__scopeDialog:n,...r}=e,i=G($t,n),{setTitleCount:a}=i;return h(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,y.jsx)(c.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),tn=`DialogDescription`,nn=v.forwardRef(W(function(e,t){let{__scopeDialog:n,...r}=e,i=G(tn,n),{setDescriptionCount:a}=i;return h(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,y.jsx)(c.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),rn=`DialogClose`,an=v.forwardRef(W(function(e,t){let{__scopeDialog:n,...r}=e,i=G(rn,n);return(0,y.jsx)(c.button,{type:`button`,...r,ref:t,onClick:g(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function on(e){return e?`open`:`closed`}W(on,`getState`);var sn=Lt,cn=Ut,ln=an,un=en,dn=nn,fn=(0,v.forwardRef)(function({className:e,...t},n){return(0,y.jsx)(Gt,{...t,ref:n,className:e?`gz-overlay ${e}`:`gz-overlay`})});fn.displayName=Gt.displayName;var pn=(0,v.forwardRef)(function({className:e,...t},n){return(0,y.jsx)(Yt,{...t,ref:n,className:e?`gz-dialog ${e}`:`gz-dialog`})});pn.displayName=Yt.displayName;function mn({children:e}){return(0,y.jsx)(`div`,{className:`gz-dialog-actions`,children:e})}var hn=Object.defineProperty,gn=(e,t)=>hn(e,`name`,{value:t,configurable:!0}),[_n,vn]=_(`AlertDialog`,[Ft]),yn=Ft(),bn=gn(e=>{let{__scopeAlertDialog:t,...n}=e,r=yn(t);return(0,y.jsx)(Lt,{...r,...n,modal:!0})},`AlertDialog`);v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=yn(n);return(0,y.jsx)(zt,{...i,...r,ref:t})},`AlertDialogTrigger`));var xn=gn(e=>{let{__scopeAlertDialog:t,...n}=e,r=yn(t);return(0,y.jsx)(Ut,{...r,...n})},`AlertDialogPortal`),Sn=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=yn(n);return(0,y.jsx)(Gt,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Cn,wn]=_n(`AlertDialogContent`),Tn=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,o=yn(n),s=a(t,v.useRef(null)),c=v.useRef(null);return(0,y.jsx)(Cn,{scope:n,cancelRef:c,children:(0,y.jsx)(Yt,{role:`alertdialog`,...o,...i,ref:s,onOpenAutoFocus:g(i.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),En=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=yn(n);return(0,y.jsx)(en,{...i,...r,ref:t})},`AlertDialogTitle`)),Dn=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=yn(n);return(0,y.jsx)(nn,{...i,...r,ref:t})},`AlertDialogDescription`)),On=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=yn(n);return(0,y.jsx)(an,{...i,...r,ref:t})},`AlertDialogAction`)),kn=`AlertDialogCancel`,An=v.forwardRef(gn(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=wn(kn,n),o=yn(n),s=a(t,i);return(0,y.jsx)(an,{...o,...r,ref:s})},`AlertDialogCancel`)),jn=bn,Mn=xn,Nn=Sn,Pn=Tn,Fn=On,In=An,Ln=En,Rn=Dn,zn=jn,Bn=Mn,Vn=In,Hn=Fn,Un=Ln,Wn=Rn,Gn=(0,v.forwardRef)(function({className:e,...t},n){return(0,y.jsx)(Nn,{...t,ref:n,className:e?`gz-overlay ${e}`:`gz-overlay`})});Gn.displayName=Nn.displayName;var Kn=(0,v.forwardRef)(function({className:e,...t},n){return(0,y.jsx)(Pn,{...t,ref:n,className:e?`gz-dialog ${e}`:`gz-dialog`})});Kn.displayName=Pn.displayName;function qn({children:e}){return(0,y.jsx)(`div`,{className:`gz-dialog-actions`,children:e})}var Jn=[`top`,`right`,`bottom`,`left`],Yn=Math.min,Xn=Math.max,Zn=Math.round,Qn=Math.floor,K=e=>({x:e,y:e}),$n={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function er(e,t,n){return Xn(e,Yn(t,n))}function tr(e,t){return typeof e==`function`?e(t):e}function nr(e){return e.split(`-`)[0]}function rr(e){return e.split(`-`)[1]}function ir(e){return e===`x`?`y`:`x`}function ar(e){return e===`y`?`height`:`width`}function q(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function or(e){return ir(q(e))}function sr(e,t,n){n===void 0&&(n=!1);let r=rr(e),i=or(e),a=ar(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=gr(o)),[o,gr(o)]}function cr(e){let t=gr(e);return[lr(e),t,lr(t)]}function lr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ur=[`left`,`right`],dr=[`right`,`left`],fr=[`top`,`bottom`],pr=[`bottom`,`top`];function mr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?dr:ur:t?ur:dr;case`left`:case`right`:return t?fr:pr;default:return[]}}function hr(e,t,n,r){let i=rr(e),a=mr(nr(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(lr)))),a}function gr(e){let t=nr(e);return $n[t]+e.slice(t.length)}function _r(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function vr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:_r(e)}function yr(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function br(e,t,n){let{reference:r,floating:i}=e,a=q(t),o=or(t),s=ar(o),c=nr(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=rr(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function xr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=tr(t,e),p=vr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=yr(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=yr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Sr=50,Cr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:xr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=br(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Sr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=br(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},wr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=tr(e,t)||{};if(l==null)return{};let d=vr(u),f={x:n,y:r},p=or(i),m=ar(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Yn(d[_],T),D=Yn(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=er(E,k,O),j=!c.arrow&&rr(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Tr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=tr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=nr(r),_=q(o),v=nr(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[gr(o)]:cr(o)),x=p!==`none`;!d&&x&&b.push(...hr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=sr(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==q(t))||T.every(e=>q(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=q(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Er(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dr(e){return Jn.some(t=>e[t]>=0)}var Or=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=tr(e,t);switch(i){case`referenceHidden`:{let e=Er(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Dr(e)}}}case`escaped`:{let e=Er(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Dr(e)}}}default:return{}}}}},kr=new Set([`left`,`top`]);async function Ar(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=nr(n),s=rr(n),c=q(n)===`y`,l=kr.has(o)?-1:1,u=a&&c?-1:1,d=tr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var jr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ar(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Mr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=tr(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=q(i),p=ir(f),m=u[p],h=u[f],g=(e,t)=>er(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Nr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=tr(e,t),u={x:n,y:r},d=q(i),f=ir(d),p=u[f],m=u[d],h=tr(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=kr.has(nr(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Pr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=tr(e,t),c=await i.detectOverflow(t,s),l=nr(n),u=rr(n),d=q(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Yn(p-c[m],g),y=Yn(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Xn(c.left,c.right):S=p-2*Xn(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Fr(){return typeof window<`u`}function Ir(e){return Rr(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lr(e){return((Rr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Rr(e){return Fr()?e instanceof Node||e instanceof J(e).Node:!1}function Y(e){return Fr()?e instanceof Element||e instanceof J(e).Element:!1}function zr(e){return Fr()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function Br(e){return!Fr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function Vr(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Hr(e){return/^(table|td|th)$/.test(Ir(e))}function Ur(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wr=/transform|translate|scale|rotate|perspective|filter/,Gr=/paint|layout|strict|content/,Kr=e=>!!e&&e!==`none`,qr;function Jr(e){let t=Y(e)?X(e):e;return Kr(t.transform)||Kr(t.translate)||Kr(t.scale)||Kr(t.rotate)||Kr(t.perspective)||!Xr()&&(Kr(t.backdropFilter)||Kr(t.filter))||Wr.test(t.willChange||``)||Gr.test(t.contain||``)}function Yr(e){let t=$r(e);for(;zr(t)&&!Zr(t);){if(Jr(t))return t;if(Ur(t))return null;t=$r(t)}return null}function Xr(){return qr??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),qr}function Zr(e){return/^(html|body|#document)$/.test(Ir(e))}function X(e){return J(e).getComputedStyle(e)}function Qr(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(Ir(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Br(e)&&e.host||Lr(e);return Br(t)?t.host:t}function ei(e){let t=$r(e);return Zr(t)?(e.ownerDocument||e).body:zr(t)&&Vr(t)?t:ei(t)}function ti(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ei(e),i=r===e.ownerDocument?.body,a=J(r);if(i){let e=ni(a);return t.concat(a,a.visualViewport||[],Vr(r)?r:[],e&&n?ti(e):[])}else return t.concat(r,ti(r,[],n))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ri(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Zn(n)!==a||Zn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ii(e){return Y(e)?e:e.contextElement}function ai(e){let t=ii(e);if(!zr(t))return K(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ri(t),o=(a?Zn(n.width):n.width)/r,s=(a?Zn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var oi=K(0);function si(e){let t=J(e);return!Xr()||!t.visualViewport?oi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ci(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===J(e)}function li(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ii(e),o=K(1);t&&(r?Y(r)&&(o=ai(r)):o=ai(e));let s=ci(a,n,r)?si(a):K(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=J(a),t=Y(r)?J(r):r,n=e,i=ni(n);for(;i&&t!==n;){let e=ai(i),t=i.getBoundingClientRect(),r=X(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=J(i),i=ni(n)}}return yr({width:u,height:d,x:c,y:l})}function ui(e,t){let n=Qr(e).scrollLeft;return t?t.left+n:li(Lr(e)).left+n}function di(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ui(e,n),y:n.top+t.scrollTop}}function fi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Lr(r),s=t?Ur(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=K(1),u=K(0),d=zr(r);if((d||!a)&&((Ir(r)!==`body`||Vr(o))&&(c=Qr(r)),d)){let e=li(r);l=ai(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?di(o,c):K(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function pi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function mi(e){let t=Qr(e),n=e.ownerDocument.body,r=Xn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Xn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ui(e),o=-t.scrollTop;return X(n).direction===`rtl`&&(a+=Xn(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var hi=25;function gi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=J(e),a=Lr(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Xr()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(ui(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=hi&&(s-=o)}return{width:s,height:c,x:l,y:u}}function _i(e,t){let n=li(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ai(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function vi(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=gi(e,n,t);else if(t===`document`)r=mi(Lr(e));else if(Y(t))r=_i(t,n);else{let n=si(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return yr(r)}function yi(e,t){let n=t.get(e);if(n)return n;let r=ti(e,[],!1).filter(e=>Y(e)&&Ir(e)!==`body`),i=null,a=X(e).position===`fixed`,o=a?$r(e):e;for(;Y(o)&&!Zr(o);){let e=X(o),t=Jr(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=$r(o)}return t.set(e,r),r}function bi(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ur(t)?[]:yi(t,this._c):[].concat(n),r],o=vi(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=vi(t,a[e],i);s=Xn(n.top,s),c=Yn(n.right,c),l=Yn(n.bottom,l),u=Xn(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function xi(e){let{width:t,height:n}=ri(e);return{width:t,height:n}}function Si(e,t,n){let r=zr(t),i=Lr(t),a=n===`fixed`,o=li(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=K(0);if((r||!a)&&((Ir(t)!==`body`||Vr(i))&&(s=Qr(t)),r)){let e=li(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=ui(i));let l=i&&!r&&!a?di(i,s):K(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ci(e){return X(e).position===`static`}function wi(e,t){if(!zr(e)||X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Lr(e)===n&&(n=n.ownerDocument.body),n}function Ti(e,t){let n=J(e);if(Ur(e))return n;if(!zr(e)){let t=$r(e);for(;t&&!Zr(t);){if(Y(t)&&!Ci(t))return t;t=$r(t)}return n}let r=wi(e,t);for(;r&&Hr(r)&&Ci(r);)r=wi(r,t);return r&&Zr(r)&&Ci(r)&&!Jr(r)?n:r||Yr(e)||n}var Ei=async function(e){let t=this.getOffsetParent||Ti,n=this.getDimensions,r=await n(e.floating);return{reference:Si(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Di(e){return X(e).direction===`rtl`}var Oi={convertOffsetParentRelativeRectToViewportRelativeRect:fi,getDocumentElement:Lr,getClippingRect:bi,getOffsetParent:Ti,getElementRects:Ei,getClientRects:pi,getDimensions:xi,getScale:ai,isElement:Y,isRTL:Di};function ki(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ai(e,t,n){let r=null,i,a=Lr(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Qn(d),h=Qn(a.clientWidth-(u+f)),g=Qn(a.clientHeight-(d+p)),_=Qn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Xn(0,Yn(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ki(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=J(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ji(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ii(e),u=i||a?[...l?ti(l):[],...t?ti(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ai(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?li(e):null;c&&g();function g(){let t=li(e);h&&!ki(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Mi=jr,Ni=Mr,Pi=Tr,Fi=Pr,Ii=Or,Li=wr,Ri=Nr,zi=(e,t,n)=>{let r=new Map,i=n??{},a={...Oi,...i.platform,_c:r};return Cr(e,t,{...i,platform:a})},Bi=typeof document<`u`?v.useLayoutEffect:function(){};function Vi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Vi(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Vi(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Hi(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ui(e,t){let n=Hi(e);return Math.round(t*n)/n}function Wi(e){let t=v.useRef(e);return Bi(()=>{t.current=e}),t}function Gi(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Vi(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=Wi(c),O=Wi(i),k=Wi(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),zi(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Vi(T.current,t)&&(T.current=t,ce.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Bi(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);Bi(()=>(j.current=!0,()=>{j.current=!1}),[]),Bi(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),P=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Ui(N.floating,u.x),r=Ui(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Hi(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Ki=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Li({element:r.current,padding:i}).fn(n):r?Li({element:r,padding:i}).fn(n):{}}}},qi=(e,t)=>{let n=Mi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ji=(e,t)=>{let n=Ni(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yi=(e,t)=>({fn:Ri(e).fn,options:[e,t]}),Xi=(e,t)=>{let n=Pi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zi=(e,t)=>{let n=Fi(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qi=(e,t)=>{let n=Ii(e);return{name:n.name,fn:n.fn,options:[e,t]}},$i=(e,t)=>{let n=Ki(e);return{name:n.name,fn:n.fn,options:[e,t]}},ea=Object.defineProperty,ta=v.forwardRef(((e,t)=>ea(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,y.jsx)(c.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,y.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`));function na(e){let[t,n]=v.useState(void 0);return h(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ra=Object.defineProperty,ia=(e,t)=>ra(e,`name`,{value:t,configurable:!0}),aa=`Popper`,[oa,sa]=_(aa),[ca,la]=oa(aa),ua=ia(e=>{let{__scopePopper:t,children:n}=e,[r,i]=v.useState(null),[a,o]=v.useState(void 0);return(0,y.jsx)(ca,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),da=`PopperAnchor`,fa=v.forwardRef(ia(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,o=la(da,n),s=v.useRef(null),l=o.onAnchorChange,u=a(t,v.useCallback(e=>{s.current=e,e&&l(e)},[l])),d=v.useRef(null);v.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&l(d.current)});let f=o.placementState&&Sa(o.placementState),p=f?.[0],m=f?.[1];return r?null:(0,y.jsx)(c.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:u})},`PopperAnchor`)),pa=`PopperContent`,[ma,ha]=oa(pa),ga=v.forwardRef(ia(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:o=`center`,alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m=`partial`,hideWhenDetached:g=!1,updatePositionStrategy:_=`optimized`,onPlaced:b,...x}=e,S=la(pa,n),[C,w]=v.useState(null),T=a(t,w),[E,D]=v.useState(null),O=na(E),k=O?.width??0,A=O?.height??0,j=r+(o===`center`?``:`-`+o),M=typeof p==`number`?p:{top:0,right:0,bottom:0,left:0,...p},N=Array.isArray(f)?f:[f],P=N.length>0,F={padding:M,boundary:N.filter(ba),altBoundary:P},{refs:I,floatingStyles:L,placement:R,isPositioned:z,middlewareData:B}=Gi({strategy:`fixed`,placement:j,whileElementsMounted:ia((...e)=>ji(...e,{animationFrame:_===`always`}),`whileElementsMounted`),elements:{reference:S.anchor},middleware:[qi({mainAxis:i+A,alignmentAxis:l}),d&&Ji({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?Yi():void 0,...F}),d&&Xi({...F}),Zi({...F,apply:ia(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),E&&$i({element:E,padding:u}),xa({arrowWidth:k,arrowHeight:A}),g&&Qi({strategy:`referenceHidden`,...F,boundary:P?F.boundary:void 0})]}),V=S.setPlacementState;h(()=>(V(R),()=>{V(void 0)}),[R,V]);let[ee,te]=Sa(R),ne=s(b);h(()=>{z&&ne?.()},[z,ne]);let re=B.arrow?.x,H=B.arrow?.y,ie=B.arrow?.centerOffset!==0,[ae,oe]=v.useState();return h(()=>{C&&oe(window.getComputedStyle(C).zIndex)},[C]),(0,y.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...L,transform:z?L.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(` `),...B.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,y.jsx)(ma,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:D,arrowX:re,arrowY:H,shouldHideArrow:ie,children:(0,y.jsx)(c.div,{"data-side":ee,"data-align":te,...x,ref:T,style:{...x.style,animation:z?x.style?.animation:`none`}})})})},`PopperContent`)),_a=`PopperArrow`,va={top:`bottom`,right:`left`,bottom:`top`,left:`right`},ya=v.forwardRef(ia(function(e,t){let{__scopePopper:n,...r}=e,i=ha(_a,n),a=va[i.placedSide];return(0,y.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,y.jsx)(ta,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function ba(e){return e!==null}ia(ba,`isNotNull`);var xa=ia(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Sa(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Sa(e){let[t,n=`center`]=e.split(`-`);return[t,n]}ia(Sa,`getSideAndAlignFromPlacement`);var Ca=ua,wa=fa,Ta=ga,Ea=ya;function Da({className:e,...t}){return(0,y.jsx)(`svg`,{...t,className:e?`gz-dropdown-chevron ${e}`:`gz-dropdown-chevron`,width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:(0,y.jsx)(`path`,{d:`m2.25 4.25 3.75 3.5 3.75-3.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var Oa=Object.defineProperty,ka=(e,t)=>Oa(e,`name`,{value:t,configurable:!0}),Aa=`Popover`,[ja,Ma]=_(Aa,[sa]),Na=sa(),[Pa,Fa]=ja(Aa),Ia=ka(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,c=Na(t),u=v.useRef(null),[d,f]=v.useState(!1),[p,m]=l({prop:r,defaultProp:a??!1,onChange:o,caller:Aa});return(0,y.jsx)(Ca,{...c,children:(0,y.jsx)(Pa,{scope:t,contentId:i(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:v.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:v.useCallback(()=>f(!0),[]),onCustomAnchorRemove:v.useCallback(()=>f(!1),[]),modal:s,children:n})})},`Popover`),La=`PopoverAnchor`,Ra=v.forwardRef(ka(function(e,t){let{__scopePopover:n,...r}=e,i=Fa(La,n),a=Na(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return v.useEffect(()=>(o(),()=>s()),[o,s]),(0,y.jsx)(wa,{...a,...r,ref:t})},`PopoverAnchor`)),za=`PopoverTrigger`,Ba=v.forwardRef(ka(function(e,t){let{__scopePopover:n,...r}=e,i=Fa(za,n),o=Na(n),s=a(t,i.triggerRef),l=(0,y.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Za(i.open),...r,ref:s,onClick:g(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,y.jsx)(wa,{asChild:!0,...o,children:l})},`PopoverTrigger`)),Va=`PopoverPortal`,[Ha,Ua]=ja(Va,{forceMount:void 0}),Wa=ka(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Fa(Va,t);return(0,y.jsx)(Ha,{scope:t,forceMount:n,children:(0,y.jsx)(m,{present:n||a.open,children:(0,y.jsx)(ue,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),Ga=`PopoverContent`,Ka=v.forwardRef(ka(function(e,t){let n=Ua(Ga,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Fa(Ga,e.__scopePopover);return(0,y.jsx)(m,{present:r||a.open,children:a.modal?(0,y.jsx)(Ja,{...i,ref:t}):(0,y.jsx)(Ya,{...i,ref:t})})},`PopoverContent`)),qa=f(`PopoverContent.RemoveScroll`),Ja=v.forwardRef(ka(function(e,t){let n=Fa(Ga,e.__scopePopover),r=v.useRef(null),i=a(t,r),o=v.useRef(!1);return v.useEffect(()=>{let e=r.current;if(e)return jt(e)},[]),(0,y.jsx)(St,{as:qa,allowPinchZoom:!0,children:(0,y.jsx)(Xa,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:g(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:g(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Ya=v.forwardRef(ka(function(e,t){let n=Fa(Ga,e.__scopePopover),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(Xa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),Xa=v.forwardRef(ka(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Fa(Ga,n),p=Na(n);return pe(),(0,y.jsx)(z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(D,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,y.jsx)(Ta,{"data-state":Za(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function Za(e){return e?`open`:`closed`}ka(Za,`getState`);var Qa=Ia,$a=Ra,eo=Ba,to=Wa,no=Ka,ro=Qa,io=eo,ao=$a;function oo(e){let{className:t,sideOffset:n=6,...r}=e;return(0,y.jsx)(to,{children:(0,y.jsx)(no,{...r,sideOffset:n,className:t?`gz-popover ${t}`:`gz-popover`})})}function so(e,[t,n]){return Math.min(n,Math.max(t,e))}function co(e){let t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lo=Object.defineProperty,uo=(e,t)=>lo(e,`name`,{value:t,configurable:!0}),fo=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),po=v.forwardRef(uo(function(e,t){return(0,y.jsx)(c.span,{...e,ref:t,style:{...fo,...e.style}})},`VisuallyHidden`)),mo=Object.defineProperty,Z=(e,t)=>mo(e,`name`,{value:t,configurable:!0}),ho=[` `,`Enter`,`ArrowUp`,`ArrowDown`],go=[` `,`Enter`],_o=`Select`,[vo,yo,bo]=d(_o),[xo,So]=_(_o,[bo,sa]),Co=sa(),[wo,To]=xo(_o),[Eo,Do]=xo(_o);function Oo(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:c,defaultValue:u,onValueChange:d,dir:f,name:p,autoComplete:m,disabled:h,required:g,form:_,internal_do_not_use_render:b}=e,x=Co(t),[S,C]=v.useState(null),[w,T]=v.useState(null),[E,D]=v.useState(!1),O=o(f),[k,A]=l({prop:r,defaultProp:a??!1,onChange:s,caller:_o}),[j,M]=l({prop:c,defaultProp:u,onChange:d,caller:_o}),N=v.useRef(null),P=v.useRef(j);v.useEffect(()=>{let e=_?S?.ownerDocument.getElementById(_):S?.form;if(e instanceof HTMLFormElement){let t=Z(()=>M(P.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[_,S,M]);let F=!S||!!_||!!S.closest(`form`),[I,L]=v.useState(new Set),R=i(),z=Array.from(I).map(e=>e.props.value).join(`;`),B=v.useCallback(e=>{L(t=>new Set(t).add(e))},[]),V=v.useCallback(e=>{L(t=>{let n=new Set(t);return n.delete(e),n})},[]),ee={required:g,trigger:S,onTriggerChange:C,valueNode:w,onValueNodeChange:T,valueNodeHasChildren:E,onValueNodeHasChildrenChange:D,contentId:R,value:j,onValueChange:M,open:k,onOpenChange:A,dir:O,triggerPointerDownPosRef:N,disabled:h,name:p,autoComplete:m,form:_,nativeOptions:I,nativeSelectKey:z,isFormControl:F};return(0,y.jsx)(Ca,{...x,children:(0,y.jsx)(wo,{scope:t,...ee,children:(0,y.jsx)(vo.Provider,{scope:t,children:(0,y.jsx)(Eo,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:V,children:ds(b)?b(ee):n})})})})}Z(Oo,`SelectProvider`);var ko=Z(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,y.jsx)(Oo,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,y.jsxs)(y.Fragment,{children:[n,e?(0,y.jsx)(us,{__scopeSelect:t}):null]})})},`Select`),Ao=`SelectTrigger`,jo=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,o=Co(n),s=To(Ao,n),l=s.disabled||r,u=a(t,s.onTriggerChange),d=yo(n),f=v.useRef(`touch`),[p,m,h]=ps(e=>{let t=d().filter(e=>!e.disabled),n=ms(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),_=Z(e=>{l||(s.onOpenChange(!0),h()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,y.jsx)(wa,{asChild:!0,...o,children:(0,y.jsx)(c.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":fs(s.value)?``:void 0,...i,ref:u,onClick:g(i.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&_(e)}),onPointerDown:g(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:g(i.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&m(e.key),!(t&&e.key===` `)&&ho.includes(e.key)&&(_(),e.preventDefault())})})})},`SelectTrigger`)),Mo=`SelectValue`,No=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,className:r,style:i,children:o,placeholder:s=``,...l}=e,u=To(Mo,n),{onValueNodeHasChildrenChange:d}=u,f=o!==void 0,p=a(t,u.onValueNodeChange);h(()=>{d(f)},[d,f]);let m=fs(u.value);return(0,y.jsx)(c.span,{...l,asChild:!m&&l.asChild,ref:p,style:{pointerEvents:`none`},children:(0,y.jsx)(v.Fragment,{children:m?s:o},m?`placeholder`:`value`)})},`SelectValue`)),Po=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,y.jsx)(c.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Fo,Io]=xo(`SelectPortal`,{forceMount:void 0}),Lo=Z(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,y.jsx)(Fo,{scope:e.__scopeSelect,forceMount:n,children:(0,y.jsx)(ue,{asChild:!0,...r})})},`SelectPortal`),Ro=`SelectContent`,zo=v.forwardRef(Z(function(e,t){let n=Io(Ro,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=To(Ro,e.__scopeSelect),[o,s]=v.useState();return h(()=>{s(new DocumentFragment)},[]),(0,y.jsx)(m,{present:r||a.open,children:({present:e})=>e?(0,y.jsx)(Wo,{...i,ref:t}):(0,y.jsx)(Bo,{...i,fragment:o})})},`SelectContent`)),Bo=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ce.createPortal((0,y.jsx)(Vo,{scope:n,children:(0,y.jsx)(vo.Slot,{scope:n,children:(0,y.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Q=10,[Vo,Ho]=xo(Ro),Uo=f(`SelectContent.RemoveScroll`),Wo=v.forwardRef(Z(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:_,avoidCollisions:b,...x}=e,S=To(Ro,n),[C,w]=v.useState(null),[T,E]=v.useState(null),O=a(t,w),[k,A]=v.useState(null),[j,M]=v.useState(null),N=yo(n),[P,F]=v.useState(!1),I=v.useRef(!1);v.useEffect(()=>{if(C)return jt(C)},[C]),pe();let L=v.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),n?.focus(),document.activeElement!==i))return},[N,T]),R=v.useCallback(()=>L([k,C]),[L,k,C]);v.useEffect(()=>{P&&R()},[P,R]);let{onOpenChange:B,triggerPointerDownPosRef:V}=S;v.useEffect(()=>{if(C){let e={x:0,y:0},t=Z(t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},`handlePointerMove`),n=Z(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(C)||B(!1),document.removeEventListener(`pointermove`,t),V.current=null},`handlePointerUp`);return V.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[C,B,V]),v.useEffect(()=>{let e=Z(()=>B(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[B]);let[ee,te]=ps(e=>{let t=N().filter(e=>!e.disabled),n=ms(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=v.useCallback((e,t,n)=>{let r=!I.current&&!n;(S.value!==void 0&&S.value===t||r)&&(A(e),r&&(I.current=!0))},[S.value]),re=v.useCallback(()=>C?.focus(),[C]),H=v.useCallback((e,t,n)=>{let r=!I.current&&!n;(S.value!==void 0&&S.value===t||r)&&M(e)},[S.value]),ie=r===`popper`?Ko:Go,ae=ie===Ko?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,hideWhenDetached:_,avoidCollisions:b}:{};return(0,y.jsx)(Vo,{scope:n,content:C,viewport:T,onViewportChange:E,itemRefCallback:ne,selectedItem:k,onItemLeave:re,itemTextRefCallback:H,focusSelectedItem:R,selectedItemText:j,position:r,isPositioned:P,searchRef:ee,children:(0,y.jsx)(St,{as:Uo,allowPinchZoom:!0,children:(0,y.jsx)(z,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:g(i,e=>{S.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,y.jsx)(D,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,y.jsx)(ie,{role:`listbox`,id:S.contentId,"data-state":S.open?`open`:`closed`,dir:S.dir,onContextMenu:e=>e.preventDefault(),...x,...ae,onPlaced:()=>F(!0),ref:O,style:{display:`flex`,flexDirection:`column`,outline:`none`,...x.style},onKeyDown:g(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>L(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Go=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,o=To(Ro,n),s=Ho(Ro,n),[l,u]=v.useState(null),[d,f]=v.useState(null),p=a(t,f),m=yo(n),g=v.useRef(!1),_=v.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:S,focusSelectedItem:C}=s,w=v.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&d&&b&&x&&S){let e=o.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=S.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Q,d=so(a,[Q,Math.max(Q,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Q,d=so(a,[Q,Math.max(Q,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=m(),s=window.innerHeight-Q*2,c=b.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),h=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),v=f+p+c+_+h,y=Math.min(x.offsetHeight*5,v),C=window.getComputedStyle(b),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Q,D=s-E,O=x.offsetHeight/2,k=x.offsetTop+O,A=f+p+k,j=v-A;if(A<=E){let e=a.length>0&&x===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=d.clientHeight-b.offsetTop-b.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+h);l.style.height=n+`px`}else{let e=a.length>0&&x===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,f+b.offsetTop+(e?w:0)+O)+j;l.style.height=t+`px`,b.scrollTop=A-E+b.offsetTop}l.style.margin=`${Q}px 0`,l.style.minHeight=y+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[m,o.trigger,o.valueNode,l,d,b,x,S,o.dir,r]);h(()=>w(),[w]);let[T,E]=v.useState();return h(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]),(0,y.jsx)(qo,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:v.useCallback(e=>{e&&_.current===!0&&(w(),C?.(),_.current=!1)},[w,C]),children:(0,y.jsx)(`div`,{ref:u,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:T},children:(0,y.jsx)(c.div,{...i,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ko=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Q,...a}=e,o=Co(n);return(0,y.jsx)(Ta,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[qo,Jo]=xo(Ro,{}),Yo=`SelectViewport`,Xo=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,o=Ho(Yo,n),s=Jo(Yo,n),l=a(t,o.onViewportChange),u=v.useRef(0);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,y.jsx)(vo.Slot,{scope:n,children:(0,y.jsx)(c.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:g(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Q*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})},`SelectViewport`)),[Zo,Qo]=xo(`SelectGroup`),$o=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,...r}=e,a=i();return(0,y.jsx)(Zo,{scope:n,id:a,children:(0,y.jsx)(c.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})},`SelectGroup`)),es=`SelectLabel`,ts=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,...r}=e,i=Qo(es,n);return(0,y.jsx)(c.div,{id:i.id,...r,ref:t})},`SelectLabel`)),ns=`SelectItem`,[rs,is]=xo(ns),as=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...u}=e,d=To(ns,n),f=Ho(ns,n),p=d.value===r,[m,h]=v.useState(l??``),[_,b]=v.useState(!1),x=a(t,s(e=>f.itemRefCallback?.(e,r,o))),S=i(),C=v.useRef(`touch`),w=Z(()=>{o||(d.onValueChange(r),d.onOpenChange(!1))},`handleSelect`);return(0,y.jsx)(rs,{scope:n,value:r,disabled:o,textId:S,isSelected:p,onItemTextChange:v.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,y.jsx)(vo.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:(0,y.jsx)(c.div,{role:`option`,"aria-labelledby":S,"data-highlighted":_?``:void 0,"aria-selected":p&&_,"data-state":p?`checked`:`unchecked`,"aria-disabled":o||void 0,"data-disabled":o?``:void 0,tabIndex:o?void 0:-1,...u,ref:x,onFocus:g(u.onFocus,()=>b(!0)),onBlur:g(u.onBlur,()=>b(!1)),onClick:g(u.onClick,()=>{C.current!==`mouse`&&w()}),onPointerUp:g(u.onPointerUp,()=>{C.current===`mouse`&&w()}),onPointerDown:g(u.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:g(u.onPointerMove,e=>{C.current=e.pointerType,o?f.onItemLeave?.():C.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:g(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:g(u.onKeyDown,e=>{o||e.target!==e.currentTarget||f.searchRef?.current!==``&&e.key===` `||(go.includes(e.key)&&w(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),os=`SelectItemText`,ss=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,className:r,style:i,...o}=e,l=To(os,n),u=Ho(os,n),d=is(os,n),f=Do(os,n),[p,m]=v.useState(null),g=s(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),_=a(t,m,d.onItemTextChange,g),b=p?.textContent,x=v.useMemo(()=>(0,y.jsx)(`option`,{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=f;return h(()=>(S(x),()=>C(x)),[S,C,x]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.span,{id:d.textId,...o,ref:_}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!fs(l.value)?ce.createPortal(o.children,l.valueNode):null]})},`SelectItemText`)),cs=v.forwardRef(Z(function(e,t){let{__scopeSelect:n,...r}=e;return(0,y.jsx)(c.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),ls=`SelectBubbleInput`,us=v.forwardRef(Z(function({__scopeSelect:e,...t},n){let r=To(ls,e),{value:i,onValueChange:o,required:s,disabled:l,name:u,autoComplete:d,form:f}=r,{nativeOptions:p,nativeSelectKey:m}=r,h=v.useRef(null),g=a(n,h),_=i??``,b=co(_),x=Array.from(p).some(e=>(e.props.value??``)===``);return v.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(b!==_&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,_),e.dispatchEvent(t)}},[b,_]),(0,y.jsxs)(c.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:u,autoComplete:d,disabled:l,form:f,onChange:e=>o(e.target.value),...t,style:{...fo,...t.style},ref:g,defaultValue:_,children:[fs(i)&&!x?(0,y.jsx)(`option`,{value:``}):null,Array.from(p)]},m)},`SelectBubbleInput`));function ds(e){return typeof e==`function`}Z(ds,`isFunction`);function fs(e){return e===``||e===void 0}Z(fs,`shouldShowPlaceholder`);function ps(e){let t=s(e),n=v.useRef(``),r=v.useRef(0),i=v.useCallback(e=>{let i=n.current+e;t(i),Z((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=v.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Z(ps,`useTypeaheadSearch`);function ms(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=hs(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Z(ms,`findNextItem`);function hs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Z(hs,`wrapArray`);var gs=ko,_s=No,vs=$o;function ys(e){let{className:t,...n}=e;return(0,y.jsx)(ts,{...n,className:t?`gz-select-label ${t}`:`gz-select-label`})}function bs(e){let{className:t,...n}=e;return(0,y.jsx)(cs,{...n,className:t?`gz-select-separator ${t}`:`gz-select-separator`})}function xs(e){let{className:t,children:n,...r}=e;return(0,y.jsxs)(jo,{...r,className:t?`gz-select-trigger ${t}`:`gz-select-trigger`,children:[n,(0,y.jsx)(Po,{className:`gz-select-icon`,"aria-hidden":!0,children:(0,y.jsx)(Da,{})})]})}function Ss(e){let{className:t,children:n,position:r=`popper`,sideOffset:i=4,...a}=e;return(0,y.jsx)(Lo,{children:(0,y.jsx)(zo,{...a,position:r,sideOffset:i,className:t?`gz-select-content ${t}`:`gz-select-content`,children:(0,y.jsx)(Xo,{className:`gz-select-viewport`,children:n})})})}function Cs({value:e,children:t,disabled:n,style:r,textValue:i,trailing:a}){return(0,y.jsxs)(as,{value:e,disabled:n,className:`gz-select-item`,style:r,textValue:i,children:[(0,y.jsx)(ss,{children:t}),a]})}function ws({className:e,...t}){return(0,y.jsx)(`svg`,{...t,className:e?`gz-submit-arrow ${e}`:`gz-submit-arrow`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:(0,y.jsx)(`path`,{d:`M8 13V3.75M8 3.25 3.75 7.5M8 3.25 12.25 7.5`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var Ts=Object.defineProperty,$=(e,t)=>Ts(e,`name`,{value:t,configurable:!0}),[Es,Ds]=_(`Tooltip`,[sa]),Os=sa(),ks=`TooltipProvider`,As=700,js=`tooltip.open`,[Ms,Ns]=Es(ks),Ps=$(e=>{let{__scopeTooltip:t,delayDuration:n=As,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=v.useRef(!0),s=v.useRef(!1),c=v.useRef(0);return v.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,y.jsx)(Ms,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:v.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Fs=`Tooltip`,[Is,Ls]=Es(Fs),Rs=$(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,u=Ns(Fs,e.__scopeTooltip),d=Os(t),[f,p]=v.useState(null),[m,h]=v.useState(void 0),g=i(),_=v.useRef(0),b=s??u.disableHoverableContent,x=c??u.delayDuration,S=v.useRef(!1),[C,w]=l({prop:r,defaultProp:a??!1,onChange:$(e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(js))):u.onClose(),o?.(e)},`onChange`),caller:Fs}),T=v.useMemo(()=>C?S.current?`delayed-open`:`instant-open`:`closed`,[C]),E=v.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S.current=!1,w(!0)},[w]),D=v.useCallback(()=>{window.clearTimeout(_.current),_.current=0,w(!1)},[w]),O=v.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{S.current=!0,w(!0),_.current=0},x)},[x,w]);v.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let k=m??g;return(0,y.jsx)(Ca,{...d,children:(0,y.jsx)(Is,{scope:t,contentId:k,setContentId:h,open:C,stateAttribute:T,trigger:f,onTriggerChange:p,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayedRef.current?O():E()},[u.isOpenDelayedRef,O,E]),onTriggerLeave:v.useCallback(()=>{b?D():(window.clearTimeout(_.current),_.current=0)},[D,b]),onOpen:E,onClose:D,disableHoverableContent:b,children:n})})},`Tooltip`),zs=`TooltipTrigger`,Bs=v.forwardRef($(function(e,t){let{__scopeTooltip:n,...r}=e,i=Ls(zs,n),o=Ns(zs,n),s=Os(n),l=a(t,v.useRef(null),i.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),f=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,y.jsx)(wa,{asChild:!0,...s,children:(0,y.jsx)(c.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:g(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:g(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:g(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:g(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:g(e.onBlur,i.onClose),onClick:g(e.onClick,i.onClose)})})},`TooltipTrigger`)),Vs=`TooltipPortal`,[Hs,Us]=Es(Vs,{forceMount:void 0}),Ws=$(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Ls(Vs,t);return(0,y.jsx)(Hs,{scope:t,forceMount:n,children:(0,y.jsx)(m,{present:n||a.open,children:(0,y.jsx)(ue,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Gs=`TooltipContent`,Ks=v.forwardRef($(function(e,t){let n=Us(Gs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Ls(Gs,e.__scopeTooltip);return(0,y.jsx)(m,{present:r||o.open,children:o.disableHoverableContent?(0,y.jsx)(Ys,{side:i,...a,ref:t}):(0,y.jsx)(qs,{side:i,...a,ref:t})})},`TooltipContent`)),qs=v.forwardRef($(function(e,t){let n=Ls(Gs,e.__scopeTooltip),r=Ns(Gs,e.__scopeTooltip),i=v.useRef(null),o=a(t,i),[s,c]=v.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=v.useCallback(()=>{c(null),f(!1)},[f]),m=v.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Qs(r,Zs(r,n.getBoundingClientRect())),a=$s(t.getBoundingClientRect()),o=tc([...i,...a]);c(o),f(!0)},[f]);return v.useEffect(()=>()=>p(),[p]),v.useEffect(()=>{if(l&&d){let e=$(e=>m(e,d),`handleTriggerLeave`),t=$(e=>m(e,l),`handleContentLeave`);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),v.useEffect(()=>{if(s){let e=$(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!ec(n,s);r?p():i&&(p(),u())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,y.jsx)(Ys,{...e,ref:o})},`TooltipContentHoverable`)),Js=u(`TooltipContent`),Ys=v.forwardRef($(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Ls(Gs,n),u=Os(n),{onClose:d}=l;v.useEffect(()=>(document.addEventListener(js,d),()=>document.removeEventListener(js,d)),[d]),v.useEffect(()=>{if(l.trigger){let e=$(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return h(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,y.jsx)(D,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,y.jsxs)(Ta,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,y.jsx)(Js,{children:r}),i?(0,y.jsx)(po,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Xs=v.forwardRef($(function(e,t){let{__scopeTooltip:n,...r}=e,i=Os(n);return(0,y.jsx)(Ea,{...i,...r,ref:t})},`TooltipArrow`));function Zs(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}$(Zs,`getExitSideFromRect`);function Qs(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}$(Qs,`getPaddedExitPoints`);function $s(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}$($s,`getPointsFromRect`);function ec(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}$(ec,`isPointInPolygon`);function tc(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),nc(t)}$(tc,`getHull`);function nc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}$(nc,`getHullPresorted`);var rc=Ps,ic=Rs,ac=Bs,oc=Ws,sc=Ks,cc=Xs,lc=rc,uc=ic,dc=ac;function fc(e){return(0,y.jsx)(oc,{children:(0,y.jsxs)(sc,{className:`gz-tooltip-content`,side:e.side??`top`,sideOffset:6,children:[e.children,(0,y.jsx)(cc,{className:`gz-tooltip-arrow`})]})})}function pc({text:e,children:t,side:n,delay:r}){return(0,y.jsx)(rc,{delayDuration:r??200,children:(0,y.jsxs)(ic,{children:[(0,y.jsx)(ac,{asChild:!0,children:t}),(0,y.jsx)(fc,{side:n,children:e})]})})}export{ue as $,Zi as A,zn as B,sa as C,Yi as D,Qi as E,Vn as F,dn as G,mn as H,Kn as I,sn as J,fn as K,Wn as L,ji as M,Hn as N,qi as O,qn as P,pe as Q,Gn as R,Ca as S,Xi as T,ln as U,Un as V,pn as W,jt as X,un as Y,St as Z,ro as _,dc as a,wa as b,vs as c,gs as d,z as et,bs as f,oo as g,ao as h,uc as i,Gi as j,Ji as k,Cs as l,_s as m,pc as n,ws as o,xs as p,cn as q,lc as r,Ss as s,fc as t,D as tt,ys as u,io as v,$i as w,Ta as x,Da as y,Bn as z};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-sXa1Rf41.js","assets/doc-Dr5K49bx.js","assets/rolldown-runtime-aKtaBQYM.js","assets/chunk-O7JILDEF-CqcO1qaI.js","assets/chunk-BAOV476U-CEOFYt8X.js","assets/chunk-4VOD55SX-BFSSw0c8.js","assets/chunk-GAZKTT4R-BkP6-w3z.js","assets/chunk-UBFT2CDQ-FexGDigd.js","assets/chunk-XRW6P7IF-BeQQgMVK.js","assets/chunk-7ZAAICW4-BsCpYJH6.js","assets/markdown-ryKA_OmY.js","assets/schemas-JY4jmLbC.js","assets/chunk-7AWFHP5U-MiVVPFTx.js","assets/jszip.min-DhiFe-R7.js","assets/chunk-S5PCVMKU-Df5XzhSE.js","assets/chunk-JU2RHXUB-ClblWDJZ.js","assets/chunk-A6N6IN3I-ofeM4l8g.js","assets/chunk-B7GEAZBI-Divd2h1k.js","assets/chunk-ILCJ3WFD-CLZxw4Ge.js","assets/chunk-BXWNU4T5-CFA9w1DZ.js","assets/chunk-IIQYS2YH-DKZhWMpn.js","assets/index-C0DYtvfg.js","assets/jsx-runtime-CEpd2cAX.js","assets/react-dom-OL4w_gzs.js","assets/dist-BqGwkOe5.js","assets/dist-BaHut5iX.js","assets/api-BPraLwsh.js","assets/primitives-CWrGZpPI.js","assets/Tabs-jE0Z5Tzd.js","assets/document-companion-BQk2kS0F.js","assets/DropdownMenu-S4d9-3j3.js","assets/dist-pLLFUPO-.js","assets/relative-time-B2kBaekd.js","assets/FileTypeIcon-Cwzl1GkZ.js","assets/model-context-DBqdK0PS.js","assets/model-memory-copy-CeuXAj-T.js","assets/StorageCleanupDialog-OQlomMJD.js","assets/poppetje-DLB8uevw.js","assets/safe-svg-image-NbuPaBIv.js","assets/ConfirmDialog-Dt1ed4Fh.js","assets/model-inventory-ykSm_IT5.js","assets/preload-helper-Czpn1I53.js","assets/chunk-6ECMNUIP-DDVjPyfK.js","assets/inlineIconMarker-BQI2HLeD.js","assets/chunk-TT6ENR6T-CaYjVwjm.js","assets/chunk-DAMIRKTO-CGniCSiM.js","assets/new-project-meta-_f9sfcRX.js","assets/chunk-AE3IUKMM-mZjzzO8Z.js","assets/index-B8NcxqcR.css","assets/storage-D8pE2zg0.js","assets/chunk-USU6HTKB-B_p-YcDp.js","assets/icons-DWaUNQbT.js","assets/pdf-BOjVDlCK.js","assets/pptx-BuxyNxQh.js","assets/chunk-VPWPEMZJ-DRKoa_j0.js","assets/chunk-6N2J7C2B-CsppiLVr.js","assets/transform-CmAXy0Ck.js","assets/html-BGVOMhkv.js","assets/container-Ce94efbg.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./chunk-UBFT2CDQ-FexGDigd.js";import"./markdown-ryKA_OmY.js";import{t}from"./preload-helper-Czpn1I53.js";import{n,s as r}from"./export-options-f7PKjEBb.js";var i={docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,pdf:`application/pdf`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,md:`text/markdown`,html:`text/html`};function a(e,t){return e?((e.split(`/`).pop()??e).replace(/\.[^.]+$/,``)||`document`)+n[t]:`document${n[t]}`}async function o(n,o,c,l){let u=a(o,c.format),d=c.themeId===`standard`?void 0:c.themeId;if(c.format===`md`){r(new Blob([n],{type:i.md}),u);return}if(c.format===`html`){await s(n,u,c,l);return}let f=e(n);if(c.format===`docx`){let{markdownDocToDocx:e}=await t(async()=>{let{markdownDocToDocx:e}=await import(`./docx-sXa1Rf41.js`);return{markdownDocToDocx:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),n=await e(f,{themeId:d,images:l?await _(f,l):void 0});r(new Blob([n],{type:i.docx}),u);return}if(c.format===`pdf`){let{markdownDocToPdf:e}=await t(async()=>{let{markdownDocToPdf:e}=await import(`./pdf-BOjVDlCK.js`);return{markdownDocToPdf:e}},__vite__mapDeps([52,2,1,3,4,5,6,7,8,9,10,41,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,42,43,44,45,46,47,48,49,50,51])),n=await e(f,{themeId:d,pageSize:c.pageSize});r(new Blob([n],{type:i.pdf}),u);return}if(c.format===`pptx`){let[{docToPptx:e},{markdownToDoc:n},{applyTransform:a}]=await Promise.all([t(()=>import(`./pptx-BuxyNxQh.js`),__vite__mapDeps([53,1,2,3,4,5,6,7,8,9,10,11,41,43,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,45,46,47,48,49,50,51,54,55])),t(()=>import(`./doc-Dr5K49bx.js`).then(e=>e.t),__vite__mapDeps([1,2,3,4,5,6,7,8,9])),t(()=>import(`./transform-CmAXy0Ck.js`).then(e=>e.t),__vite__mapDeps([56,2,47,3,4,8]))]),o=a(n(f),c.transformStyle).doc;d&&(o.themeId=d);let s=await e(o,{themeId:d});r(new Blob([s],{type:i.pptx}),u);return}}async function s(n,a,o,s){let l=a.replace(/\.html$/,``),u=`${l}.zip`,d=o.themeId===`standard`?void 0:o.themeId;if(o.htmlStyle===`rendered`){let[c,{PLAYER_BUNDLE:f},{markdownToDoc:p}]=await Promise.all([t(()=>import(`./html-BGVOMhkv.js`).then(e=>e.t),__vite__mapDeps([57,2,1,3,4,5,6,7,8,9,10,11,13,19,54,17])),t(()=>import(`./standalone-source-q_Zzd1bd.js`),[]),t(()=>import(`./doc-Dr5K49bx.js`).then(e=>e.t),__vite__mapDeps([1,2,3,4,5,6,7,8,9]))]),{collectImagePaths:m,docToHtml:h,docToHtmlZip:g}=c,_=p(e(n));d&&(_.themeId=d);let y=s?await v(_,s,m):void 0;if(o.htmlBundle===`zip`){r(await g(_,{playerScript:f,images:y,mode:`static`,title:l}),u);return}let b=h(_,{playerScript:f,images:y,mode:`static`,title:l});r(new Blob([b],{type:i.html}),a);return}let f=e(n),p=g(f).filter(e=>!m(e));if(o.htmlBundle===`zip`&&s&&p.length>0){let[{containerToZip:e},{MemoryContentContainer:n}]=await Promise.all([t(()=>import(`./container-Ce94efbg.js`),__vite__mapDeps([58,2,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,1,3,4,5,6,7,8,9,10,11,41,42,43,44,45,46,47,48,13,12,49])),t(()=>import(`./storage-D8pE2zg0.js`).then(e=>e.t),__vite__mapDeps([49,2,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,1,3,4,5,6,7,8,9,10,11,41,42,43,44,45,46,47,48]))]),i=c(f,l,null),a=new n;await a.writeFile(`index.html`,new TextEncoder().encode(i));for(let e of p){let t=await s.readFile(e);if(!t)continue;let n=e.replace(/^\/+/,``);await a.writeFile(n,new Uint8Array(t))}r(await e(a),u);return}let _=new Map;if(s)for(let e of p){let t=await s.readFile(e);t&&_.set(e,h(t,e))}let y=c(f,l,_);r(new Blob([y],{type:i.html}),a)}function c(e,t,n){let r=e.children.map(e=>l(e,n)).join(`
|
|
3
|
+
`);return`<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="UTF-8">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
8
|
+
<title>${d(t)}</title>
|
|
9
|
+
<style>
|
|
10
|
+
body { font-family: system-ui, -apple-system, sans-serif; max-width: 800px; margin: 2em auto; padding: 0 1em; line-height: 1.6; color: #1f2937; }
|
|
11
|
+
h1, h2, h3, h4, h5, h6 { margin-top: 1.5em; margin-bottom: 0.5em; }
|
|
12
|
+
pre { background: #f3f4f6; padding: 1em; border-radius: 4px; overflow-x: auto; }
|
|
13
|
+
code { background: #f3f4f6; padding: 0.15em 0.3em; border-radius: 3px; font-size: 0.9em; }
|
|
14
|
+
pre code { background: none; padding: 0; }
|
|
15
|
+
blockquote { border-left: 3px solid #d1d5db; margin-left: 0; padding-left: 1em; color: #6b7280; }
|
|
16
|
+
img { max-width: 100%; }
|
|
17
|
+
a { color: #3b82f6; }
|
|
18
|
+
</style>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
${r}
|
|
22
|
+
</body>
|
|
23
|
+
</html>`}function l(e,t){if(!e)return``;switch(e.type){case`heading`:{let n=`h${e.depth??1}`;return`<${n}>${u(e,t)}</${n}>`}case`paragraph`:return`<p>${u(e,t)}</p>`;case`text`:return d(e.value??``);case`strong`:return`<strong>${u(e,t)}</strong>`;case`emphasis`:return`<em>${u(e,t)}</em>`;case`delete`:return`<del>${u(e,t)}</del>`;case`inlineCode`:return`<code>${d(e.value??``)}</code>`;case`code`:return`<pre><code>${d(e.value??``)}</code></pre>`;case`blockquote`:return`<blockquote>${u(e,t)}</blockquote>`;case`list`:{let n=e.ordered?`ol`:`ul`;return`<${n}>${u(e,t)}</${n}>`}case`listItem`:return`<li>${u(e,t)}</li>`;case`link`:return`<a href="${f(e.url??``)}">${u(e,t)}</a>`;case`image`:{let n=e.url??``;return`<img src="${f(t?.get(n)??n)}" alt="${f(e.alt??``)}" />`}case`thematicBreak`:return`<hr />`;default:return e.children?u(e,t):d(e.value??``)}}function u(e,t){return e.children?e.children.map(e=>l(e,t)).join(``):e.value?d(e.value):``}function d(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function f(e){return d(e).replace(/"/g,`"`)}var p={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,bmp:`image/bmp`,svg:`image/svg+xml`};function m(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`data:`)||e.startsWith(`blob:`)}function h(e,t){let n=p[t.slice(t.lastIndexOf(`.`)+1).toLowerCase()]??`application/octet-stream`,r=new Uint8Array(e),i=``,a=32768;for(let e=0;e<r.length;e+=a)i+=String.fromCharCode(...r.subarray(e,e+a));return`data:${n};base64,${btoa(i)}`}function g(e){let t=[];function n(e){for(let r of e)if(`children`in r&&Array.isArray(r.children))for(let e of r.children)e.type===`image`?t.push(e.url):`children`in e&&Array.isArray(e.children)&&n(e.children)}return n(e.children),Array.from(new Set(t))}async function _(e,t){let n=g(e),r=new Map;for(let e of n){if(r.has(e)||m(e))continue;let n=await t.readFile(e);if(!n)continue;let i=p[e.slice(e.lastIndexOf(`.`)+1).toLowerCase()]||`image/png`;r.set(e,{data:n,contentType:i})}return r}async function v(e,t,n){let r=n(e),i=new Map;for(let e of r){let n=await t.readFile(e);n&&i.set(e,n)}return i}export{o as runExport};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={};throw Error(`Could not resolve "hyparquet" imported by "@bendyline/squisq-formats". Is it installed?`);export{e as default};
|