@phtngyn/cms 0.2.0-beta.8 → 0.3.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/LICENSE +18 -10
- package/README.md +59 -404
- package/drizzle/20261003215543_initial/migration.sql +251 -0
- package/drizzle/20261003215543_initial/snapshot.json +1941 -0
- package/package.json +75 -71
- package/src/Authoring.d.ts +41 -49
- package/src/Authoring.js +1 -1
- package/src/Blocks-BrxSemnd.js +40 -0
- package/src/Client.d.ts +8186 -0
- package/src/Client.js +41 -0
- package/src/Collections.d.ts +142 -0
- package/src/Collections.js +142 -0
- package/src/Config-CMiwciub.js +130 -0
- package/src/Config.d.ts +172 -0
- package/src/Config.js +2 -0
- package/src/Configuration-Dk2k3OIc.js +73 -0
- package/src/DataTransfer-BmECvPHB.js +488 -0
- package/src/Database-DSsNCGft.d.ts +3 -0
- package/src/Delivery.d.ts +28 -0
- package/src/Delivery.js +7 -0
- package/src/Document-CKXMSEf1.js +293 -0
- package/src/Document-TgwYKJZM.d.ts +220 -0
- package/src/DocumentRenderer-Wz2xaNyf.js +394 -0
- package/src/EditorSchema-wrDv-id6.js +296 -0
- package/src/Fields-BegSgYhj.d.ts +166 -0
- package/src/Fields-ioGaMEh9.js +130 -0
- package/src/Forms-BuKAXQxr.d.ts +203 -0
- package/src/Forms.d.ts +48 -11
- package/src/Forms.js +342 -7
- package/src/I18n-Ckf9h0rC.js +154 -0
- package/src/I18n.d.ts +45 -2
- package/src/I18n.js +2 -1
- package/src/Image-CJWPLnhP.js +110 -0
- package/src/Links-CJYyy7rC.js +28 -0
- package/src/Links-Dx1yOni8.d.ts +28 -0
- package/src/Locales-Ch7a5xuA.js +67 -0
- package/src/Locales-jwbmJaOp.d.ts +43 -0
- package/src/Locales.d.ts +3 -0
- package/src/Locales.js +3 -0
- package/src/Media-BQ0uL4w7.d.ts +15 -0
- package/src/Media-DSyvd14o.js +87 -0
- package/src/Module.d.ts +2 -10
- package/src/Module.js +1040 -152
- package/src/Operations.d.ts +57 -0
- package/src/Operations.js +263 -0
- package/src/People-DvNZauWw.js +69 -0
- package/src/PreviewFocus-C_EelZO5.js +104 -0
- package/src/Query-C0kGJF5_.d.ts +261 -0
- package/src/RevisionPreview-IVwbJ9Wy.js +133 -0
- package/src/Routes-BaZvm2LE.js +126 -0
- package/src/Routes-DM1rRp3r.d.ts +15 -0
- package/src/S3MediaObjects-y-WacEi9.js +193 -0
- package/src/Seo-BcpqxoAs.d.ts +57 -0
- package/src/Seo-CjNUtUkj.js +254 -0
- package/src/StudioApi-CXLwwocX.js +833 -0
- package/src/StudioErrors-T5zLGQ1M.js +117 -0
- package/src/StudioErrors-kq-E44lQ.d.ts +104 -0
- package/src/StudioServer.d.ts +20 -0
- package/src/StudioServer.js +34 -0
- package/src/answers-DcTg0Xv2.js +41 -0
- package/src/cli.js +681 -187
- package/src/contracts-rprW3ZOB.js +130 -0
- package/src/forms-3xuf0Ym7.d.ts +206 -0
- package/src/localeConfiguration-BPbkLi7-.js +32 -0
- package/src/localeContext-DhF3SPvM.js +59 -0
- package/src/locales-6OD4XGIZ.js +12 -0
- package/src/nuxtDelivery-BYX_Cddb.js +466 -0
- package/src/plugin-DTYuDaQu.js +7171 -0
- package/src/previewContext-dt3ZUh-w.js +4 -0
- package/src/previewRegions-CXjk5cbP.js +145 -0
- package/src/previewSource-fb-q3ESM.js +144 -0
- package/src/rendering-D9LVeEKX.js +47 -0
- package/src/rolldown-runtime-8H4AJuhK.js +14 -0
- package/src/runtime/CmsImage.js +38 -0
- package/src/runtime/DocumentPage.vue +10 -0
- package/src/runtime/DocumentPageContent.js +48 -0
- package/src/runtime/DocumentRenderer.d.ts +129 -0
- package/src/runtime/DocumentRenderer.js +2 -0
- package/src/runtime/api.js +48 -6
- package/src/runtime/delivery/useCmsDocument.js +2 -0
- package/src/runtime/delivery/useCmsDocumentQuery.js +2 -0
- package/src/runtime/delivery/useCmsDocumentSeo.js +2 -114
- package/src/runtime/delivery/useCmsLocale.js +10 -0
- package/src/runtime/plugin.js +2 -40
- package/src/runtime/preview.css +85 -0
- package/src/runtime/preview.js +277 -0
- package/src/runtime/previewSource.js +82 -0
- package/src/runtime/revisionPrivacy.js +13 -0
- package/src/runtime/studio.js +10 -0
- package/src/runtime/studioIcons.js +36 -0
- package/src/validation-3pggwcnm.js +396 -0
- package/src/validation-DpUwPC8Y.js +224 -0
- package/studio/THIRD-PARTY-LICENSES.md +2406 -0
- package/studio/chunks/AccountPage-DL3DitDM.js +288 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.br +0 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.gz +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js +584 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.br +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.gz +0 -0
- package/studio/chunks/Alert-D0D24z_a.js +335 -0
- package/studio/chunks/Alert-D0D24z_a.js.br +0 -0
- package/studio/chunks/Alert-D0D24z_a.js.gz +0 -0
- package/studio/chunks/Badge-BBFs88TI.js +346 -0
- package/studio/chunks/Badge-BBFs88TI.js.br +0 -0
- package/studio/chunks/Badge-BBFs88TI.js.gz +0 -0
- package/studio/chunks/Button-BT3ztSPx.js +14319 -0
- package/studio/chunks/Button-BT3ztSPx.js.br +0 -0
- package/studio/chunks/Button-BT3ztSPx.js.gz +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js +246 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.br +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.gz +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js +1745 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.br +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.gz +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js +18 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.br +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.gz +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js +2413 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.br +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.gz +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js +26063 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.br +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.gz +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js +4400 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.br +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.gz +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js +7799 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.br +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.gz +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js +198 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.br +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.gz +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js +552 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.br +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.gz +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js +271 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.br +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.gz +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js +101 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.br +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.gz +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js +923 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.br +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.gz +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js +837 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.br +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.gz +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js +1173 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.br +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.gz +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js +265 -0
- package/studio/chunks/Modal-D6hSvxHd.js.br +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js.gz +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js +277 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.br +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.gz +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js +573 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.br +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.gz +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js +783 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.br +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.gz +0 -0
- package/studio/chunks/Popover-B63bkTMS.js +128 -0
- package/studio/chunks/Popover-B63bkTMS.js.br +0 -0
- package/studio/chunks/Popover-B63bkTMS.js.gz +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js +255 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.br +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.gz +0 -0
- package/studio/chunks/Routes-DLYHmulE.js +102 -0
- package/studio/chunks/Routes-DLYHmulE.js.br +0 -0
- package/studio/chunks/Routes-DLYHmulE.js.gz +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js +95 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.br +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.gz +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js +332 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.br +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.gz +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js +14646 -0
- package/studio/chunks/Search-BEgCe9Aj.js.br +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js.gz +0 -0
- package/studio/chunks/Select-B50WZMW-.js +2145 -0
- package/studio/chunks/Select-B50WZMW-.js.br +0 -0
- package/studio/chunks/Select-B50WZMW-.js.gz +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js +2109 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.br +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.gz +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js +846 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.br +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.gz +0 -0
- package/studio/chunks/Skeleton-COz8dcrw.js +39 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.br +2 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.gz +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js +289 -0
- package/studio/chunks/Slideover-QMMHAAys.js.br +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js.gz +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js +80 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.br +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.gz +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js +2524 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.br +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.gz +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js +484 -0
- package/studio/chunks/Switch-qKl1aDn7.js.br +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js.gz +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js +29 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.br +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.gz +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js +693 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.br +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.gz +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js +12 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.br +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.gz +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js +2349 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.br +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.gz +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js +113 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.br +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.gz +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js +10 -0
- package/studio/chunks/arrays-CUJkmV4I.js.br +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js.gz +0 -0
- package/studio/chunks/base-DkTekJe8.js +213 -0
- package/studio/chunks/base-DkTekJe8.js.br +0 -0
- package/studio/chunks/base-DkTekJe8.js.gz +0 -0
- package/studio/chunks/content-DUGl3N4d.js +6012 -0
- package/studio/chunks/content-DUGl3N4d.js.br +0 -0
- package/studio/chunks/content-DUGl3N4d.js.gz +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js +227 -0
- package/studio/chunks/destinations-DPIQVQa6.js.br +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js.gz +0 -0
- package/studio/chunks/en-073cjKW4.js +152 -0
- package/studio/chunks/en-073cjKW4.js.br +0 -0
- package/studio/chunks/en-073cjKW4.js.gz +0 -0
- package/studio/chunks/en-Bn8mxPuf.js +134 -0
- package/studio/chunks/en-Bn8mxPuf.js.br +0 -0
- package/studio/chunks/en-Bn8mxPuf.js.gz +0 -0
- package/studio/chunks/en-C9OiaUDZ.js +251 -0
- package/studio/chunks/en-C9OiaUDZ.js.br +0 -0
- package/studio/chunks/en-C9OiaUDZ.js.gz +0 -0
- package/studio/chunks/en-CHAR6jzx.js +147 -0
- package/studio/chunks/en-CHAR6jzx.js.br +0 -0
- package/studio/chunks/en-CHAR6jzx.js.gz +0 -0
- package/studio/chunks/en-Cq4N1vEF.js +93 -0
- package/studio/chunks/en-Cq4N1vEF.js.br +2 -0
- package/studio/chunks/en-Cq4N1vEF.js.gz +0 -0
- package/studio/chunks/en-D2hRqlse.js +140 -0
- package/studio/chunks/en-D2hRqlse.js.br +0 -0
- package/studio/chunks/en-D2hRqlse.js.gz +0 -0
- package/studio/chunks/en-DiUC3-j6.js +144 -0
- package/studio/chunks/en-DiUC3-j6.js.br +0 -0
- package/studio/chunks/en-DiUC3-j6.js.gz +0 -0
- package/studio/chunks/english-Cs_Adu-u.js +8 -0
- package/studio/chunks/english-Cs_Adu-u.js.br +0 -0
- package/studio/chunks/english-Cs_Adu-u.js.gz +0 -0
- package/studio/chunks/esm-D6DqSiL1.js +752 -0
- package/studio/chunks/esm-D6DqSiL1.js.br +0 -0
- package/studio/chunks/esm-D6DqSiL1.js.gz +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js +23 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.br +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.gz +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js +1007 -0
- package/studio/chunks/iconify-DR9ryCPv.js.br +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js.gz +0 -0
- package/studio/chunks/icons-D2MsAaXq.js +183 -0
- package/studio/chunks/icons-D2MsAaXq.js.br +0 -0
- package/studio/chunks/icons-D2MsAaXq.js.gz +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js +26 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.br +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.gz +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js +238 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.br +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.gz +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js +17 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.br +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.gz +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js +77 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.br +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.gz +0 -0
- package/studio/chunks/notifications-OKOLc40v.js +110 -0
- package/studio/chunks/notifications-OKOLc40v.js.br +0 -0
- package/studio/chunks/notifications-OKOLc40v.js.gz +0 -0
- package/studio/chunks/operations-CjNHyrEX.js +57 -0
- package/studio/chunks/operations-CjNHyrEX.js.br +0 -0
- package/studio/chunks/operations-CjNHyrEX.js.gz +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js +1733 -0
- package/studio/chunks/overlay-DnqFLZTc.js.br +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js.gz +0 -0
- package/studio/chunks/presentation-DF83w0hE.js +57 -0
- package/studio/chunks/presentation-DF83w0hE.js.br +0 -0
- package/studio/chunks/presentation-DF83w0hE.js.gz +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js +4557 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.br +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.gz +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js +76 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.br +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.gz +0 -0
- package/studio/chunks/status-DQv6ihkU.js +38 -0
- package/studio/chunks/status-DQv6ihkU.js.br +0 -0
- package/studio/chunks/status-DQv6ihkU.js.gz +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js +4953 -0
- package/studio/chunks/studioContext-I8HozGU1.js.br +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js.gz +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js +73 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.br +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.gz +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js +1095 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.br +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.gz +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js +62 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.br +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.gz +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js +189 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.br +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.gz +0 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js +16 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.br +3 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.gz +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js +87 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.br +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.gz +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js +8 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.br +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.gz +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js +154 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.br +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.gz +0 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js +44 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.br +8 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.gz +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js +35 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.br +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.gz +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js +16 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.br +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.gz +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js +298 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.br +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.gz +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js +79 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.br +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.gz +0 -0
- package/studio/chunks/utils-mdScC0v0.js +59 -0
- package/studio/chunks/utils-mdScC0v0.js.br +0 -0
- package/studio/chunks/utils-mdScC0v0.js.gz +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js +781 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.br +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.gz +0 -0
- package/studio/help/64f767fe29c2-save-and-publish.svg +7 -0
- package/studio/host.css +1 -1
- package/studio/host.css.br +0 -0
- package/studio/host.css.gz +0 -0
- package/studio/host.js +8793 -39395
- package/studio/host.js.br +0 -0
- package/studio/host.js.gz +0 -0
- package/CHANGELOG.md +0 -14
- package/bin/cms.mjs +0 -2
- package/src/ApplicationTypes.d.ts +0 -84
- package/src/ApplicationTypes.js +0 -1
- package/src/Configuration-CMweD9bn.js +0 -1191
- package/src/Configuration-CMweD9bn.js.map +0 -1
- package/src/Configuration.d.ts +0 -82
- package/src/Configuration.js +0 -8
- package/src/Configuration.js.map +0 -1
- package/src/Content.d.ts +0 -68
- package/src/Content.js +0 -373
- package/src/Content.js.map +0 -1
- package/src/ContentTransfer-BxwswWn3.js +0 -86
- package/src/ContentTransfer-BxwswWn3.js.map +0 -1
- package/src/ContentTransfer-Z9FHyLez.d.ts +0 -72
- package/src/DocumentEngine-tYtwbBjr.js +0 -978
- package/src/DocumentEngine-tYtwbBjr.js.map +0 -1
- package/src/DocumentModel.d.ts +0 -52
- package/src/DocumentModel.js +0 -66
- package/src/DocumentModel.js.map +0 -1
- package/src/Forms-CX-hwmJF.js +0 -391
- package/src/Forms-CX-hwmJF.js.map +0 -1
- package/src/Forms-CfNPTiCr.js +0 -110
- package/src/Forms-CfNPTiCr.js.map +0 -1
- package/src/Forms-R0HoTR-o.d.ts +0 -92
- package/src/Forms.js.map +0 -1
- package/src/HttpPaths-Be3vshPJ.js +0 -20
- package/src/HttpPaths-Be3vshPJ.js.map +0 -1
- package/src/I18n-wxswIRyY.d.ts +0 -30
- package/src/Media-j1bTritO.js +0 -112
- package/src/Media-j1bTritO.js.map +0 -1
- package/src/Module.js.map +0 -1
- package/src/References-CCPDAPve.js +0 -45
- package/src/References-CCPDAPve.js.map +0 -1
- package/src/S3MediaObjects-BXfjaZOu.js +0 -2756
- package/src/S3MediaObjects-BXfjaZOu.js.map +0 -1
- package/src/Seo-402YumpT.d.ts +0 -198
- package/src/cli/content.js +0 -101
- package/src/cli/content.js.map +0 -1
- package/src/cli.js.map +0 -1
- package/src/connection-BP80q4d-.js +0 -92
- package/src/connection-BP80q4d-.js.map +0 -1
- package/src/dev-lifecycle-3I_pozUl.js +0 -535
- package/src/dev-lifecycle-3I_pozUl.js.map +0 -1
- package/src/installation-DxqSSVbH.js +0 -9105
- package/src/installation-DxqSSVbH.js.map +0 -1
- package/src/internal/application-types.js +0 -43
- package/src/internal/application-types.js.map +0 -1
- package/src/internal/authoring-catalog.js +0 -158
- package/src/internal/authoring-catalog.js.map +0 -1
- package/src/internal/authoring-compiler.js +0 -146
- package/src/internal/authoring-compiler.js.map +0 -1
- package/src/internal/authoring-metadata.js +0 -191
- package/src/internal/authoring-metadata.js.map +0 -1
- package/src/internal/cms-config.js +0 -45
- package/src/internal/cms-config.js.map +0 -1
- package/src/internal/configuration.js +0 -228
- package/src/internal/configuration.js.map +0 -1
- package/src/internal/dev-lifecycle.js +0 -3
- package/src/internal/diagnostics.js +0 -47
- package/src/internal/diagnostics.js.map +0 -1
- package/src/internal/document-model.js +0 -376
- package/src/internal/document-model.js.map +0 -1
- package/src/internal/field-metadata.js +0 -7
- package/src/internal/field-metadata.js.map +0 -1
- package/src/internal/form-capabilities.js +0 -12
- package/src/internal/form-capabilities.js.map +0 -1
- package/src/internal/i18n.js +0 -73
- package/src/internal/i18n.js.map +0 -1
- package/src/internal/studio-app.js +0 -68
- package/src/internal/studio-app.js.map +0 -1
- package/src/location-CMNGO3lU.js +0 -35
- package/src/location-CMNGO3lU.js.map +0 -1
- package/src/metadata-DN9_K6Yl.js +0 -201
- package/src/metadata-DN9_K6Yl.js.map +0 -1
- package/src/models-5j67LMqW.js +0 -131
- package/src/models-5j67LMqW.js.map +0 -1
- package/src/models-VmGmG19-.js +0 -628
- package/src/models-VmGmG19-.js.map +0 -1
- package/src/runtime/api.js.map +0 -1
- package/src/runtime/blocks.js +0 -30
- package/src/runtime/blocks.js.map +0 -1
- package/src/runtime/collaboration.js +0 -45
- package/src/runtime/collaboration.js.map +0 -1
- package/src/runtime/delivery/DocumentField.js +0 -23
- package/src/runtime/delivery/DocumentField.js.map +0 -1
- package/src/runtime/delivery/DocumentRenderer.js +0 -61
- package/src/runtime/delivery/DocumentRenderer.js.map +0 -1
- package/src/runtime/delivery/DocumentScope.js +0 -41
- package/src/runtime/delivery/DocumentScope.js.map +0 -1
- package/src/runtime/delivery/blocks.js +0 -8
- package/src/runtime/delivery/blocks.js.map +0 -1
- package/src/runtime/delivery/context.js +0 -12
- package/src/runtime/delivery/context.js.map +0 -1
- package/src/runtime/delivery/document-page.js +0 -21
- package/src/runtime/delivery/document-page.js.map +0 -1
- package/src/runtime/delivery/document.js +0 -43
- package/src/runtime/delivery/document.js.map +0 -1
- package/src/runtime/delivery/error.js +0 -11
- package/src/runtime/delivery/error.js.map +0 -1
- package/src/runtime/delivery/plugin.js +0 -104
- package/src/runtime/delivery/plugin.js.map +0 -1
- package/src/runtime/delivery/preview.d.ts +0 -11
- package/src/runtime/delivery/preview.js +0 -6
- package/src/runtime/delivery/preview.js.map +0 -1
- package/src/runtime/delivery/types.d.ts +0 -2
- package/src/runtime/delivery/types.js +0 -1
- package/src/runtime/delivery/useCmsDocumentSeo.d.ts +0 -67
- package/src/runtime/delivery/useCmsDocumentSeo.js.map +0 -1
- package/src/runtime/delivery/useDocument.d.ts +0 -6
- package/src/runtime/delivery/useDocument.js +0 -23
- package/src/runtime/delivery/useDocument.js.map +0 -1
- package/src/runtime/delivery/useDocumentQuery.d.ts +0 -7
- package/src/runtime/delivery/useDocumentQuery.js +0 -29
- package/src/runtime/delivery/useDocumentQuery.js.map +0 -1
- package/src/runtime/forms/document.js +0 -38
- package/src/runtime/forms/document.js.map +0 -1
- package/src/runtime/forms/useCmsForm.js +0 -257
- package/src/runtime/forms/useCmsForm.js.map +0 -1
- package/src/runtime/i18n/translator.js +0 -58
- package/src/runtime/i18n/translator.js.map +0 -1
- package/src/runtime/i18n/useCmsI18n.d.ts +0 -13
- package/src/runtime/i18n/useCmsI18n.js +0 -38
- package/src/runtime/i18n/useCmsI18n.js.map +0 -1
- package/src/runtime/installation.js +0 -3
- package/src/runtime/plugin.js.map +0 -1
- package/src/runtime/preview/CmsStudioPreviewMarker.js +0 -29
- package/src/runtime/preview/CmsStudioPreviewMarker.js.map +0 -1
- package/src/runtime/preview/comark-document.js +0 -37
- package/src/runtime/preview/comark-document.js.map +0 -1
- package/src/runtime/preview/connection.js +0 -3
- package/src/runtime/preview/controller.js +0 -265
- package/src/runtime/preview/controller.js.map +0 -1
- package/src/runtime/preview/crypto.js +0 -16
- package/src/runtime/preview/crypto.js.map +0 -1
- package/src/runtime/preview/overlay.js +0 -122
- package/src/runtime/preview/overlay.js.map +0 -1
- package/src/runtime/preview/plugin.client.js +0 -68
- package/src/runtime/preview/plugin.client.js.map +0 -1
- package/src/runtime/preview/preview.css +0 -91
- package/src/runtime/preview/protocol.d.ts +0 -16
- package/src/runtime/preview/protocol.js +0 -23
- package/src/runtime/preview/protocol.js.map +0 -1
- package/src/runtime/preview/regions.js +0 -142
- package/src/runtime/preview/regions.js.map +0 -1
- package/src/runtime/preview/store.js +0 -4
- package/src/runtime/sitemap-entries.js +0 -17
- package/src/runtime/sitemap-entries.js.map +0 -1
- package/src/runtime/sitemap.js +0 -23
- package/src/runtime/sitemap.js.map +0 -1
- package/src/runtime/studio-app.js +0 -17
- package/src/runtime/studio-app.js.map +0 -1
- package/src/runtime/studio-document.js +0 -46
- package/src/runtime/studio-document.js.map +0 -1
- package/src/runtime/studio-entry.js +0 -19
- package/src/runtime/studio-entry.js.map +0 -1
- package/src/runtime/studio-navigation.js +0 -11
- package/src/runtime/studio-navigation.js.map +0 -1
- package/src/scalars-CA6kyipS.d.ts +0 -7
- package/src/scalars-CVZqT3L0.js +0 -22
- package/src/scalars-CVZqT3L0.js.map +0 -1
- package/src/store-X1e1o_MF.js +0 -209
- package/src/store-X1e1o_MF.js.map +0 -1
- package/src/types-DZ0IV-Ow.d.ts +0 -101
- package/studio/CreateDocumentDialog-C4_JBo1w.js +0 -335
- package/studio/SelectMenu-wXqxymUw.js +0 -34045
- package/studio/collaboration-DcK2F6v9.js +0 -4566
- package/studio/editor-P2rB7Csp.js +0 -30128
- package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
|
@@ -0,0 +1,1007 @@
|
|
|
1
|
+
import { Cr as e, K as t, en as n, ii as r, mn as i, mt as a, ui as o, un as s } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@iconify+vue@5.0.3_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/@iconify/vue/dist/iconify.mjs
|
|
3
|
+
var c = /^[a-z0-9]+(-[a-z0-9]+)*$/, l = (e, t, n, r = "") => {
|
|
4
|
+
let i = e.split(":");
|
|
5
|
+
if (e.slice(0, 1) === "@") {
|
|
6
|
+
if (i.length < 2 || i.length > 3) return null;
|
|
7
|
+
r = i.shift().slice(1);
|
|
8
|
+
}
|
|
9
|
+
if (i.length > 3 || !i.length) return null;
|
|
10
|
+
if (i.length > 1) {
|
|
11
|
+
let e = i.pop(), n = i.pop(), a = {
|
|
12
|
+
provider: i.length > 0 ? i[0] : r,
|
|
13
|
+
prefix: n,
|
|
14
|
+
name: e
|
|
15
|
+
};
|
|
16
|
+
return t && !u(a) ? null : a;
|
|
17
|
+
}
|
|
18
|
+
let a = i[0], o = a.split("-");
|
|
19
|
+
if (o.length > 1) {
|
|
20
|
+
let e = {
|
|
21
|
+
provider: r,
|
|
22
|
+
prefix: o.shift(),
|
|
23
|
+
name: o.join("-")
|
|
24
|
+
};
|
|
25
|
+
return t && !u(e) ? null : e;
|
|
26
|
+
}
|
|
27
|
+
if (n && r === "") {
|
|
28
|
+
let e = {
|
|
29
|
+
provider: r,
|
|
30
|
+
prefix: "",
|
|
31
|
+
name: a
|
|
32
|
+
};
|
|
33
|
+
return t && !u(e, n) ? null : e;
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}, u = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
37
|
+
function d(e, t) {
|
|
38
|
+
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
39
|
+
function a(e) {
|
|
40
|
+
if (n[e]) return i[e] = [];
|
|
41
|
+
if (!(e in i)) {
|
|
42
|
+
i[e] = null;
|
|
43
|
+
let t = r[e] && r[e].parent, n = t && a(t);
|
|
44
|
+
n && (i[e] = [t].concat(n));
|
|
45
|
+
}
|
|
46
|
+
return i[e];
|
|
47
|
+
}
|
|
48
|
+
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
49
|
+
}
|
|
50
|
+
var f = Object.freeze({
|
|
51
|
+
left: 0,
|
|
52
|
+
top: 0,
|
|
53
|
+
width: 16,
|
|
54
|
+
height: 16
|
|
55
|
+
}), p = Object.freeze({
|
|
56
|
+
rotate: 0,
|
|
57
|
+
vFlip: !1,
|
|
58
|
+
hFlip: !1
|
|
59
|
+
}), m = Object.freeze({
|
|
60
|
+
...f,
|
|
61
|
+
...p
|
|
62
|
+
}), h = Object.freeze({
|
|
63
|
+
...m,
|
|
64
|
+
body: "",
|
|
65
|
+
hidden: !1
|
|
66
|
+
});
|
|
67
|
+
function g(e, t) {
|
|
68
|
+
let n = {};
|
|
69
|
+
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
70
|
+
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
71
|
+
return r && (n.rotate = r), n;
|
|
72
|
+
}
|
|
73
|
+
function _(e, t) {
|
|
74
|
+
let n = g(e, t);
|
|
75
|
+
for (let r in h) r in p ? r in e && !(r in n) && (n[r] = p[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
function v(e, t, n) {
|
|
79
|
+
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
80
|
+
function o(e) {
|
|
81
|
+
a = _(r[e] || i[e], a);
|
|
82
|
+
}
|
|
83
|
+
return o(t), n.forEach(o), _(e, a);
|
|
84
|
+
}
|
|
85
|
+
function y(e, t) {
|
|
86
|
+
let n = [];
|
|
87
|
+
if (typeof e != "object" || typeof e.icons != "object") return n;
|
|
88
|
+
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
89
|
+
t(e, null), n.push(e);
|
|
90
|
+
});
|
|
91
|
+
let r = d(e);
|
|
92
|
+
for (let i in r) {
|
|
93
|
+
let a = r[i];
|
|
94
|
+
a && (t(i, v(e, i, a)), n.push(i));
|
|
95
|
+
}
|
|
96
|
+
return n;
|
|
97
|
+
}
|
|
98
|
+
var ee = {
|
|
99
|
+
provider: "",
|
|
100
|
+
aliases: {},
|
|
101
|
+
not_found: {},
|
|
102
|
+
...f
|
|
103
|
+
};
|
|
104
|
+
function b(e, t) {
|
|
105
|
+
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
106
|
+
return !0;
|
|
107
|
+
}
|
|
108
|
+
function x(e) {
|
|
109
|
+
if (typeof e != "object" || !e) return null;
|
|
110
|
+
let t = e;
|
|
111
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !b(e, ee)) return null;
|
|
112
|
+
let n = t.icons;
|
|
113
|
+
for (let e in n) {
|
|
114
|
+
let t = n[e];
|
|
115
|
+
if (!e || typeof t.body != "string" || !b(t, h)) return null;
|
|
116
|
+
}
|
|
117
|
+
let r = t.aliases || Object.create(null);
|
|
118
|
+
for (let e in r) {
|
|
119
|
+
let t = r[e], i = t.parent;
|
|
120
|
+
if (!e || typeof i != "string" || !n[i] && !r[i] || !b(t, h)) return null;
|
|
121
|
+
}
|
|
122
|
+
return t;
|
|
123
|
+
}
|
|
124
|
+
var S = Object.create(null);
|
|
125
|
+
function te(e, t) {
|
|
126
|
+
return {
|
|
127
|
+
provider: e,
|
|
128
|
+
prefix: t,
|
|
129
|
+
icons: Object.create(null),
|
|
130
|
+
missing: /* @__PURE__ */ new Set()
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function C(e, t) {
|
|
134
|
+
let n = S[e] || (S[e] = Object.create(null));
|
|
135
|
+
return n[t] || (n[t] = te(e, t));
|
|
136
|
+
}
|
|
137
|
+
function w(e, t) {
|
|
138
|
+
return x(t) ? y(t, (t, n) => {
|
|
139
|
+
n ? e.icons[t] = n : e.missing.add(t);
|
|
140
|
+
}) : [];
|
|
141
|
+
}
|
|
142
|
+
function ne(e, t, n) {
|
|
143
|
+
try {
|
|
144
|
+
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
145
|
+
} catch {}
|
|
146
|
+
return !1;
|
|
147
|
+
}
|
|
148
|
+
var T = !1;
|
|
149
|
+
function E(e) {
|
|
150
|
+
return typeof e == "boolean" && (T = e), T;
|
|
151
|
+
}
|
|
152
|
+
function D(e) {
|
|
153
|
+
let t = typeof e == "string" ? l(e, !0, T) : e;
|
|
154
|
+
if (t) {
|
|
155
|
+
let e = C(t.provider, t.prefix), n = t.name;
|
|
156
|
+
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function O(e, t) {
|
|
160
|
+
let n = l(e, !0, T);
|
|
161
|
+
if (!n) return !1;
|
|
162
|
+
let r = C(n.provider, n.prefix);
|
|
163
|
+
return t ? ne(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
164
|
+
}
|
|
165
|
+
function k(e, t) {
|
|
166
|
+
if (typeof e != "object") return !1;
|
|
167
|
+
if (typeof t != "string" && (t = e.provider || ""), T && !t && !e.prefix) {
|
|
168
|
+
let t = !1;
|
|
169
|
+
return x(e) && (e.prefix = "", y(e, (e, n) => {
|
|
170
|
+
O(e, n) && (t = !0);
|
|
171
|
+
})), t;
|
|
172
|
+
}
|
|
173
|
+
let n = e.prefix;
|
|
174
|
+
return u({
|
|
175
|
+
prefix: n,
|
|
176
|
+
name: "a"
|
|
177
|
+
}) ? !!w(C(t, n), e) : !1;
|
|
178
|
+
}
|
|
179
|
+
function re(e) {
|
|
180
|
+
return !!D(e);
|
|
181
|
+
}
|
|
182
|
+
var A = Object.freeze({
|
|
183
|
+
width: null,
|
|
184
|
+
height: null
|
|
185
|
+
}), j = Object.freeze({
|
|
186
|
+
...A,
|
|
187
|
+
...p
|
|
188
|
+
}), ie = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ae = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
189
|
+
function M(e, t, n) {
|
|
190
|
+
if (t === 1) return e;
|
|
191
|
+
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
192
|
+
if (typeof e != "string") return e;
|
|
193
|
+
let r = e.split(ie);
|
|
194
|
+
if (r === null || !r.length) return e;
|
|
195
|
+
let i = [], a = r.shift(), o = ae.test(a);
|
|
196
|
+
for (;;) {
|
|
197
|
+
if (o) {
|
|
198
|
+
let e = parseFloat(a);
|
|
199
|
+
isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
|
|
200
|
+
} else i.push(a);
|
|
201
|
+
if (a = r.shift(), a === void 0) return i.join("");
|
|
202
|
+
o = !o;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function oe(e, t = "defs") {
|
|
206
|
+
let n = "", r = e.indexOf("<" + t);
|
|
207
|
+
for (; r >= 0;) {
|
|
208
|
+
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
209
|
+
if (i === -1 || a === -1) break;
|
|
210
|
+
let o = e.indexOf(">", a);
|
|
211
|
+
if (o === -1) break;
|
|
212
|
+
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
defs: n,
|
|
216
|
+
content: e
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function se(e, t) {
|
|
220
|
+
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
221
|
+
}
|
|
222
|
+
function ce(e, t, n) {
|
|
223
|
+
let r = oe(e);
|
|
224
|
+
return se(r.defs, t + r.content + n);
|
|
225
|
+
}
|
|
226
|
+
var le = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
227
|
+
function ue(e, t) {
|
|
228
|
+
let n = {
|
|
229
|
+
...m,
|
|
230
|
+
...e
|
|
231
|
+
}, r = {
|
|
232
|
+
...j,
|
|
233
|
+
...t
|
|
234
|
+
}, i = {
|
|
235
|
+
left: n.left,
|
|
236
|
+
top: n.top,
|
|
237
|
+
width: n.width,
|
|
238
|
+
height: n.height
|
|
239
|
+
}, a = n.body;
|
|
240
|
+
[n, r].forEach((e) => {
|
|
241
|
+
let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
|
|
242
|
+
n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
|
|
243
|
+
let s;
|
|
244
|
+
switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
|
|
245
|
+
case 1:
|
|
246
|
+
s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
247
|
+
break;
|
|
248
|
+
case 2:
|
|
249
|
+
t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
|
|
250
|
+
break;
|
|
251
|
+
case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
252
|
+
}
|
|
253
|
+
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ce(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
254
|
+
});
|
|
255
|
+
let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
|
|
256
|
+
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = M(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? M(u, l / c) : s === "auto" ? l : s);
|
|
257
|
+
let f = {}, p = (e, t) => {
|
|
258
|
+
le(t) || (f[e] = t.toString());
|
|
259
|
+
};
|
|
260
|
+
p("width", u), p("height", d);
|
|
261
|
+
let h = [
|
|
262
|
+
i.left,
|
|
263
|
+
i.top,
|
|
264
|
+
c,
|
|
265
|
+
l
|
|
266
|
+
];
|
|
267
|
+
return f.viewBox = h.join(" "), {
|
|
268
|
+
attributes: f,
|
|
269
|
+
viewBox: h,
|
|
270
|
+
body: a
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
var de = /\sid="(\S+)"/g, N = /* @__PURE__ */ new Map();
|
|
274
|
+
function fe(e) {
|
|
275
|
+
e = e.replace(/[0-9]+$/, "") || "a";
|
|
276
|
+
let t = N.get(e) || 0;
|
|
277
|
+
return N.set(e, t + 1), t ? `${e}${t}` : e;
|
|
278
|
+
}
|
|
279
|
+
function pe(e) {
|
|
280
|
+
let t = [], n;
|
|
281
|
+
for (; n = de.exec(e);) t.push(n[1]);
|
|
282
|
+
if (!t.length) return e;
|
|
283
|
+
let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
284
|
+
return t.forEach((t) => {
|
|
285
|
+
let n = fe(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
286
|
+
e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
|
|
287
|
+
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
288
|
+
}
|
|
289
|
+
var P = Object.create(null);
|
|
290
|
+
function me(e, t) {
|
|
291
|
+
P[e] = t;
|
|
292
|
+
}
|
|
293
|
+
function F(e) {
|
|
294
|
+
return P[e] || P[""];
|
|
295
|
+
}
|
|
296
|
+
function I(e) {
|
|
297
|
+
let t;
|
|
298
|
+
if (typeof e.resources == "string") t = [e.resources];
|
|
299
|
+
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
300
|
+
return {
|
|
301
|
+
resources: t,
|
|
302
|
+
path: e.path || "/",
|
|
303
|
+
maxURL: e.maxURL || 500,
|
|
304
|
+
rotate: e.rotate || 750,
|
|
305
|
+
timeout: e.timeout || 5e3,
|
|
306
|
+
random: e.random === !0,
|
|
307
|
+
index: e.index || 0,
|
|
308
|
+
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
for (var L = Object.create(null), R = ["https://api.simplesvg.com", "https://api.unisvg.com"], z = []; R.length > 0;) R.length === 1 || Math.random() > .5 ? z.push(R.shift()) : z.push(R.pop());
|
|
312
|
+
L[""] = I({ resources: ["https://api.iconify.design"].concat(z) });
|
|
313
|
+
function he(e, t) {
|
|
314
|
+
let n = I(t);
|
|
315
|
+
return n !== null && (L[e] = n, !0);
|
|
316
|
+
}
|
|
317
|
+
function B(e) {
|
|
318
|
+
return L[e];
|
|
319
|
+
}
|
|
320
|
+
var V = (() => {
|
|
321
|
+
let e;
|
|
322
|
+
try {
|
|
323
|
+
if (e = fetch, typeof e == "function") return e;
|
|
324
|
+
} catch {}
|
|
325
|
+
})();
|
|
326
|
+
function ge(e, t) {
|
|
327
|
+
let n = B(e);
|
|
328
|
+
if (!n) return 0;
|
|
329
|
+
let r;
|
|
330
|
+
if (!n.maxURL) r = 0;
|
|
331
|
+
else {
|
|
332
|
+
let e = 0;
|
|
333
|
+
n.resources.forEach((t) => {
|
|
334
|
+
e = Math.max(e, t.length);
|
|
335
|
+
});
|
|
336
|
+
let i = t + ".json?icons=";
|
|
337
|
+
r = n.maxURL - e - n.path.length - i.length;
|
|
338
|
+
}
|
|
339
|
+
return r;
|
|
340
|
+
}
|
|
341
|
+
function _e(e) {
|
|
342
|
+
return e === 404;
|
|
343
|
+
}
|
|
344
|
+
var ve = (e, t, n) => {
|
|
345
|
+
let r = [], i = ge(e, t), a = "icons", o = {
|
|
346
|
+
type: a,
|
|
347
|
+
provider: e,
|
|
348
|
+
prefix: t,
|
|
349
|
+
icons: []
|
|
350
|
+
}, s = 0;
|
|
351
|
+
return n.forEach((n, c) => {
|
|
352
|
+
s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
|
|
353
|
+
type: a,
|
|
354
|
+
provider: e,
|
|
355
|
+
prefix: t,
|
|
356
|
+
icons: []
|
|
357
|
+
}, s = n.length), o.icons.push(n);
|
|
358
|
+
}), r.push(o), r;
|
|
359
|
+
};
|
|
360
|
+
function ye(e) {
|
|
361
|
+
if (typeof e == "string") {
|
|
362
|
+
let t = B(e);
|
|
363
|
+
if (t) return t.path;
|
|
364
|
+
}
|
|
365
|
+
return "/";
|
|
366
|
+
}
|
|
367
|
+
var be = {
|
|
368
|
+
prepare: ve,
|
|
369
|
+
send: (e, t, n) => {
|
|
370
|
+
if (!V) {
|
|
371
|
+
n("abort", 424);
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
let r = ye(t.provider);
|
|
375
|
+
switch (t.type) {
|
|
376
|
+
case "icons": {
|
|
377
|
+
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
378
|
+
r += e + ".json?" + i.toString();
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
case "custom": {
|
|
382
|
+
let e = t.uri;
|
|
383
|
+
r += e.slice(0, 1) === "/" ? e.slice(1) : e;
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
default:
|
|
387
|
+
n("abort", 400);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
let i = 503;
|
|
391
|
+
V(e + r).then((e) => {
|
|
392
|
+
let t = e.status;
|
|
393
|
+
if (t !== 200) {
|
|
394
|
+
setTimeout(() => {
|
|
395
|
+
n(_e(t) ? "abort" : "next", t);
|
|
396
|
+
});
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
return i = 501, e.json();
|
|
400
|
+
}).then((e) => {
|
|
401
|
+
if (typeof e != "object" || !e) {
|
|
402
|
+
setTimeout(() => {
|
|
403
|
+
e === 404 ? n("abort", e) : n("next", i);
|
|
404
|
+
});
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
setTimeout(() => {
|
|
408
|
+
n("success", e);
|
|
409
|
+
});
|
|
410
|
+
}).catch(() => {
|
|
411
|
+
n("next", i);
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
function H(e, t) {
|
|
416
|
+
e.forEach((e) => {
|
|
417
|
+
let n = e.loaderCallbacks;
|
|
418
|
+
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
function xe(e) {
|
|
422
|
+
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
423
|
+
e.pendingCallbacksFlag = !1;
|
|
424
|
+
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
425
|
+
if (!t.length) return;
|
|
426
|
+
let n = !1, r = e.provider, i = e.prefix;
|
|
427
|
+
t.forEach((t) => {
|
|
428
|
+
let a = t.icons, o = a.pending.length;
|
|
429
|
+
a.pending = a.pending.filter((t) => {
|
|
430
|
+
if (t.prefix !== i) return !0;
|
|
431
|
+
let o = t.name;
|
|
432
|
+
if (e.icons[o]) a.loaded.push({
|
|
433
|
+
provider: r,
|
|
434
|
+
prefix: i,
|
|
435
|
+
name: o
|
|
436
|
+
});
|
|
437
|
+
else if (e.missing.has(o)) a.missing.push({
|
|
438
|
+
provider: r,
|
|
439
|
+
prefix: i,
|
|
440
|
+
name: o
|
|
441
|
+
});
|
|
442
|
+
else return n = !0, !0;
|
|
443
|
+
return !1;
|
|
444
|
+
}), a.pending.length !== o && (n || H([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
445
|
+
});
|
|
446
|
+
}));
|
|
447
|
+
}
|
|
448
|
+
var Se = 0;
|
|
449
|
+
function Ce(e, t, n) {
|
|
450
|
+
let r = Se++, i = H.bind(null, n, r);
|
|
451
|
+
if (!t.pending.length) return i;
|
|
452
|
+
let a = {
|
|
453
|
+
id: r,
|
|
454
|
+
icons: t,
|
|
455
|
+
callback: e,
|
|
456
|
+
abort: i
|
|
457
|
+
};
|
|
458
|
+
return n.forEach((e) => {
|
|
459
|
+
(e.loaderCallbacks ||= []).push(a);
|
|
460
|
+
}), i;
|
|
461
|
+
}
|
|
462
|
+
function we(e) {
|
|
463
|
+
let t = {
|
|
464
|
+
loaded: [],
|
|
465
|
+
missing: [],
|
|
466
|
+
pending: []
|
|
467
|
+
}, n = Object.create(null);
|
|
468
|
+
e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
|
|
469
|
+
let r = {
|
|
470
|
+
provider: "",
|
|
471
|
+
prefix: "",
|
|
472
|
+
name: ""
|
|
473
|
+
};
|
|
474
|
+
return e.forEach((e) => {
|
|
475
|
+
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
476
|
+
r = e;
|
|
477
|
+
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = C(i, a)), l;
|
|
478
|
+
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
|
|
479
|
+
let u = {
|
|
480
|
+
provider: i,
|
|
481
|
+
prefix: a,
|
|
482
|
+
name: o
|
|
483
|
+
};
|
|
484
|
+
l.push(u);
|
|
485
|
+
}), t;
|
|
486
|
+
}
|
|
487
|
+
function Te(e, t = !0, n = !1) {
|
|
488
|
+
let r = [];
|
|
489
|
+
return e.forEach((e) => {
|
|
490
|
+
let i = typeof e == "string" ? l(e, t, n) : e;
|
|
491
|
+
i && r.push(i);
|
|
492
|
+
}), r;
|
|
493
|
+
}
|
|
494
|
+
var Ee = {
|
|
495
|
+
resources: [],
|
|
496
|
+
index: 0,
|
|
497
|
+
timeout: 2e3,
|
|
498
|
+
rotate: 750,
|
|
499
|
+
random: !1,
|
|
500
|
+
dataAfterTimeout: !1
|
|
501
|
+
};
|
|
502
|
+
function De(e, t, n, r) {
|
|
503
|
+
let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
|
|
504
|
+
if (e.random) {
|
|
505
|
+
let t = e.resources.slice(0);
|
|
506
|
+
for (o = []; t.length > 1;) {
|
|
507
|
+
let e = Math.floor(Math.random() * t.length);
|
|
508
|
+
o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
|
|
509
|
+
}
|
|
510
|
+
o = o.concat(t);
|
|
511
|
+
} else o = e.resources.slice(a).concat(e.resources.slice(0, a));
|
|
512
|
+
let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
|
|
513
|
+
typeof r == "function" && p.push(r);
|
|
514
|
+
function m() {
|
|
515
|
+
d &&= (clearTimeout(d), null);
|
|
516
|
+
}
|
|
517
|
+
function h() {
|
|
518
|
+
c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
|
|
519
|
+
e.status === "pending" && (e.status = "aborted");
|
|
520
|
+
}), f = [];
|
|
521
|
+
}
|
|
522
|
+
function g(e, t) {
|
|
523
|
+
t && (p = []), typeof e == "function" && p.push(e);
|
|
524
|
+
}
|
|
525
|
+
function _() {
|
|
526
|
+
return {
|
|
527
|
+
startTime: s,
|
|
528
|
+
payload: t,
|
|
529
|
+
status: c,
|
|
530
|
+
queriesSent: l,
|
|
531
|
+
queriesPending: f.length,
|
|
532
|
+
subscribe: g,
|
|
533
|
+
abort: h
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
function v() {
|
|
537
|
+
c = "failed", p.forEach((e) => {
|
|
538
|
+
e(void 0, u);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function y() {
|
|
542
|
+
f.forEach((e) => {
|
|
543
|
+
e.status === "pending" && (e.status = "aborted");
|
|
544
|
+
}), f = [];
|
|
545
|
+
}
|
|
546
|
+
function ee(t, n, r) {
|
|
547
|
+
let i = n !== "success";
|
|
548
|
+
switch (f = f.filter((e) => e !== t), c) {
|
|
549
|
+
case "pending": break;
|
|
550
|
+
case "failed":
|
|
551
|
+
if (i || !e.dataAfterTimeout) return;
|
|
552
|
+
break;
|
|
553
|
+
default: return;
|
|
554
|
+
}
|
|
555
|
+
if (n === "abort") {
|
|
556
|
+
u = r, v();
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
if (i) {
|
|
560
|
+
u = r, f.length || (o.length ? b() : v());
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
if (m(), y(), !e.random) {
|
|
564
|
+
let n = e.resources.indexOf(t.resource);
|
|
565
|
+
n !== -1 && n !== e.index && (e.index = n);
|
|
566
|
+
}
|
|
567
|
+
c = "completed", p.forEach((e) => {
|
|
568
|
+
e(r);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
function b() {
|
|
572
|
+
if (c !== "pending") return;
|
|
573
|
+
m();
|
|
574
|
+
let r = o.shift();
|
|
575
|
+
if (r === void 0) {
|
|
576
|
+
if (f.length) {
|
|
577
|
+
d = setTimeout(() => {
|
|
578
|
+
m(), c === "pending" && (y(), v());
|
|
579
|
+
}, e.timeout);
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
v();
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
let i = {
|
|
586
|
+
status: "pending",
|
|
587
|
+
resource: r,
|
|
588
|
+
callback: (e, t) => {
|
|
589
|
+
ee(i, e, t);
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
f.push(i), l++, d = setTimeout(b, e.rotate), n(r, t, i.callback);
|
|
593
|
+
}
|
|
594
|
+
return setTimeout(b), _;
|
|
595
|
+
}
|
|
596
|
+
function U(e) {
|
|
597
|
+
let t = {
|
|
598
|
+
...Ee,
|
|
599
|
+
...e
|
|
600
|
+
}, n = [];
|
|
601
|
+
function r() {
|
|
602
|
+
n = n.filter((e) => e().status === "pending");
|
|
603
|
+
}
|
|
604
|
+
function i(e, i, a) {
|
|
605
|
+
let o = De(t, e, i, (e, t) => {
|
|
606
|
+
r(), a && a(e, t);
|
|
607
|
+
});
|
|
608
|
+
return n.push(o), o;
|
|
609
|
+
}
|
|
610
|
+
function a(e) {
|
|
611
|
+
return n.find((t) => e(t)) || null;
|
|
612
|
+
}
|
|
613
|
+
return {
|
|
614
|
+
query: i,
|
|
615
|
+
find: a,
|
|
616
|
+
setIndex: (e) => {
|
|
617
|
+
t.index = e;
|
|
618
|
+
},
|
|
619
|
+
getIndex: () => t.index,
|
|
620
|
+
cleanup: r
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function W() {}
|
|
624
|
+
var G = Object.create(null);
|
|
625
|
+
function Oe(e) {
|
|
626
|
+
if (!G[e]) {
|
|
627
|
+
let t = B(e);
|
|
628
|
+
if (!t) return;
|
|
629
|
+
G[e] = {
|
|
630
|
+
config: t,
|
|
631
|
+
redundancy: U(t)
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
return G[e];
|
|
635
|
+
}
|
|
636
|
+
function ke(e, t, n) {
|
|
637
|
+
let r, i;
|
|
638
|
+
if (typeof e == "string") {
|
|
639
|
+
let t = F(e);
|
|
640
|
+
if (!t) return n(void 0, 424), W;
|
|
641
|
+
i = t.send;
|
|
642
|
+
let a = Oe(e);
|
|
643
|
+
a && (r = a.redundancy);
|
|
644
|
+
} else {
|
|
645
|
+
let t = I(e);
|
|
646
|
+
if (t) {
|
|
647
|
+
r = U(t);
|
|
648
|
+
let n = F(e.resources ? e.resources[0] : "");
|
|
649
|
+
n && (i = n.send);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return !r || !i ? (n(void 0, 424), W) : r.query(t, i, n)().abort;
|
|
653
|
+
}
|
|
654
|
+
function K() {}
|
|
655
|
+
function Ae(e) {
|
|
656
|
+
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
657
|
+
e.iconsLoaderFlag = !1, xe(e);
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
function je(e) {
|
|
661
|
+
let t = [], n = [];
|
|
662
|
+
return e.forEach((e) => {
|
|
663
|
+
(e.match(c) ? t : n).push(e);
|
|
664
|
+
}), {
|
|
665
|
+
valid: t,
|
|
666
|
+
invalid: n
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
function q(e, t, n) {
|
|
670
|
+
function r() {
|
|
671
|
+
let n = e.pendingIcons;
|
|
672
|
+
t.forEach((t) => {
|
|
673
|
+
n && n.delete(t), e.icons[t] || e.missing.add(t);
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
if (n && typeof n == "object") try {
|
|
677
|
+
if (!w(e, n).length) {
|
|
678
|
+
r();
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
} catch (e) {
|
|
682
|
+
console.error(e);
|
|
683
|
+
}
|
|
684
|
+
r(), Ae(e);
|
|
685
|
+
}
|
|
686
|
+
function J(e, t) {
|
|
687
|
+
e instanceof Promise ? e.then((e) => {
|
|
688
|
+
t(e);
|
|
689
|
+
}).catch(() => {
|
|
690
|
+
t(null);
|
|
691
|
+
}) : t(e);
|
|
692
|
+
}
|
|
693
|
+
function Me(e, t) {
|
|
694
|
+
e.iconsToLoad = e.iconsToLoad ? e.iconsToLoad.concat(t).sort() : t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
695
|
+
e.iconsQueueFlag = !1;
|
|
696
|
+
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
697
|
+
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
698
|
+
let i = e.loadIcon;
|
|
699
|
+
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
700
|
+
J(e.loadIcons(r, n, t), (t) => {
|
|
701
|
+
q(e, r, t);
|
|
702
|
+
});
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
if (i) {
|
|
706
|
+
r.forEach((r) => {
|
|
707
|
+
J(i(r, n, t), (t) => {
|
|
708
|
+
q(e, [r], t ? {
|
|
709
|
+
prefix: n,
|
|
710
|
+
icons: { [r]: t }
|
|
711
|
+
} : null);
|
|
712
|
+
});
|
|
713
|
+
});
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
let { valid: a, invalid: o } = je(r);
|
|
717
|
+
if (o.length && q(e, o, null), !a.length) return;
|
|
718
|
+
let s = n.match(c) ? F(t) : null;
|
|
719
|
+
if (!s) {
|
|
720
|
+
q(e, a, null);
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
s.prepare(t, n, a).forEach((n) => {
|
|
724
|
+
ke(t, n, (t) => {
|
|
725
|
+
q(e, n.icons, t);
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
}));
|
|
729
|
+
}
|
|
730
|
+
var Ne = (e, t) => {
|
|
731
|
+
let n = we(Te(e, !0, E()));
|
|
732
|
+
if (!n.pending.length) {
|
|
733
|
+
let e = !0;
|
|
734
|
+
return t && setTimeout(() => {
|
|
735
|
+
e && t(n.loaded, n.missing, n.pending, K);
|
|
736
|
+
}), () => {
|
|
737
|
+
e = !1;
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
let r = Object.create(null), i = [], a, o;
|
|
741
|
+
return n.pending.forEach((e) => {
|
|
742
|
+
let { provider: t, prefix: n } = e;
|
|
743
|
+
if (n === o && t === a) return;
|
|
744
|
+
a = t, o = n, i.push(C(t, n));
|
|
745
|
+
let s = r[t] || (r[t] = Object.create(null));
|
|
746
|
+
s[n] || (s[n] = []);
|
|
747
|
+
}), n.pending.forEach((e) => {
|
|
748
|
+
let { provider: t, prefix: n, name: i } = e, a = C(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
749
|
+
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
750
|
+
}), i.forEach((e) => {
|
|
751
|
+
let t = r[e.provider][e.prefix];
|
|
752
|
+
t.length && Me(e, t);
|
|
753
|
+
}), t ? Ce(t, n, i) : K;
|
|
754
|
+
};
|
|
755
|
+
function Pe(e, t) {
|
|
756
|
+
let n = { ...e };
|
|
757
|
+
for (let e in t) {
|
|
758
|
+
let r = t[e], i = typeof r;
|
|
759
|
+
e in A ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
760
|
+
}
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
var Fe = /[\s,]+/;
|
|
764
|
+
function Ie(e, t) {
|
|
765
|
+
t.split(Fe).forEach((t) => {
|
|
766
|
+
switch (t.trim()) {
|
|
767
|
+
case "horizontal":
|
|
768
|
+
e.hFlip = !0;
|
|
769
|
+
break;
|
|
770
|
+
case "vertical": e.vFlip = !0;
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
function Le(e, t = 0) {
|
|
775
|
+
let n = e.replace(/^-?[0-9.]*/, "");
|
|
776
|
+
function r(e) {
|
|
777
|
+
for (; e < 0;) e += 4;
|
|
778
|
+
return e % 4;
|
|
779
|
+
}
|
|
780
|
+
if (n === "") {
|
|
781
|
+
let t = parseInt(e);
|
|
782
|
+
return isNaN(t) ? 0 : r(t);
|
|
783
|
+
}
|
|
784
|
+
if (n !== e) {
|
|
785
|
+
let t = 0;
|
|
786
|
+
switch (n) {
|
|
787
|
+
case "%":
|
|
788
|
+
t = 25;
|
|
789
|
+
break;
|
|
790
|
+
case "deg": t = 90;
|
|
791
|
+
}
|
|
792
|
+
if (t) {
|
|
793
|
+
let i = parseFloat(e.slice(0, e.length - n.length));
|
|
794
|
+
return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
return t;
|
|
798
|
+
}
|
|
799
|
+
function Re(e, t) {
|
|
800
|
+
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
801
|
+
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
802
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
803
|
+
}
|
|
804
|
+
function ze(e) {
|
|
805
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ").replace(/:/g, "%3A").replace(/\//g, "%2F");
|
|
806
|
+
}
|
|
807
|
+
function Be(e) {
|
|
808
|
+
return "data:image/svg+xml," + ze(e);
|
|
809
|
+
}
|
|
810
|
+
function Ve(e) {
|
|
811
|
+
return "url(\"" + Be(e) + "\")";
|
|
812
|
+
}
|
|
813
|
+
var Y = {
|
|
814
|
+
...j,
|
|
815
|
+
inline: !1
|
|
816
|
+
}, He = {
|
|
817
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
818
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
819
|
+
"aria-hidden": !0,
|
|
820
|
+
role: "img"
|
|
821
|
+
}, Ue = { display: "inline-block" }, X = { backgroundColor: "currentColor" }, Z = { backgroundColor: "transparent" }, We = {
|
|
822
|
+
Image: "var(--svg)",
|
|
823
|
+
Repeat: "no-repeat",
|
|
824
|
+
Size: "100% 100%"
|
|
825
|
+
}, Ge = {
|
|
826
|
+
webkitMask: X,
|
|
827
|
+
mask: X,
|
|
828
|
+
background: Z
|
|
829
|
+
};
|
|
830
|
+
for (let e in Ge) {
|
|
831
|
+
let t = Ge[e];
|
|
832
|
+
for (let n in We) t[e + n] = We[n];
|
|
833
|
+
}
|
|
834
|
+
var Q = {};
|
|
835
|
+
["horizontal", "vertical"].forEach((e) => {
|
|
836
|
+
let t = e.slice(0, 1) + "Flip";
|
|
837
|
+
Q[e + "-flip"] = t, Q[e.slice(0, 1) + "-flip"] = t, Q[e + "Flip"] = t;
|
|
838
|
+
});
|
|
839
|
+
function Ke(e) {
|
|
840
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
841
|
+
}
|
|
842
|
+
var $ = (e, t) => {
|
|
843
|
+
let n = Pe(Y, t), r = { ...He }, i = t.mode || "svg", o = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
844
|
+
for (let e in t) {
|
|
845
|
+
let i = t[e];
|
|
846
|
+
if (i !== void 0) switch (e) {
|
|
847
|
+
case "icon":
|
|
848
|
+
case "style":
|
|
849
|
+
case "onLoad":
|
|
850
|
+
case "mode":
|
|
851
|
+
case "ssr":
|
|
852
|
+
case "customise": break;
|
|
853
|
+
case "inline":
|
|
854
|
+
case "hFlip":
|
|
855
|
+
case "vFlip":
|
|
856
|
+
n[e] = i === !0 || i === "true" || i === 1;
|
|
857
|
+
break;
|
|
858
|
+
case "flip": break;
|
|
859
|
+
case "color":
|
|
860
|
+
o.color = i;
|
|
861
|
+
break;
|
|
862
|
+
case "rotate":
|
|
863
|
+
typeof i == "string" ? n[e] = Le(i) : typeof i == "number" && (n[e] = i);
|
|
864
|
+
break;
|
|
865
|
+
case "ariaHidden":
|
|
866
|
+
case "aria-hidden":
|
|
867
|
+
i !== !0 && i !== "true" && delete r["aria-hidden"];
|
|
868
|
+
break;
|
|
869
|
+
default: {
|
|
870
|
+
let t = Q[e];
|
|
871
|
+
t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : Y[e] === void 0 && (r[e] = i);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
typeof t.flip == "string" && Ie(n, t.flip);
|
|
876
|
+
let l = ue(e, n), u = l.attributes;
|
|
877
|
+
if (n.inline && (o.verticalAlign = "-0.125em"), i === "svg") return r.style = {
|
|
878
|
+
...o,
|
|
879
|
+
...c
|
|
880
|
+
}, Object.assign(r, u), r.innerHTML = pe(l.body), a("svg", r);
|
|
881
|
+
let { body: d, width: f, height: p } = e, m = i === "mask" || i !== "bg" && d.indexOf("currentColor") !== -1, h = Re(d, {
|
|
882
|
+
...u,
|
|
883
|
+
width: f + "",
|
|
884
|
+
height: p + ""
|
|
885
|
+
});
|
|
886
|
+
return r.style = {
|
|
887
|
+
...o,
|
|
888
|
+
"--svg": Ve(h),
|
|
889
|
+
width: Ke(u.width),
|
|
890
|
+
height: Ke(u.height),
|
|
891
|
+
...Ue,
|
|
892
|
+
...m ? X : Z,
|
|
893
|
+
...c
|
|
894
|
+
}, a("span", r);
|
|
895
|
+
};
|
|
896
|
+
if (E(!0), me("", be), typeof document < "u" && typeof window < "u") {
|
|
897
|
+
let e = window;
|
|
898
|
+
if (e.IconifyPreload !== void 0) {
|
|
899
|
+
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
900
|
+
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
901
|
+
try {
|
|
902
|
+
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !k(e)) && console.error(n);
|
|
903
|
+
} catch {
|
|
904
|
+
console.error(n);
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
if (e.IconifyProviders !== void 0) {
|
|
909
|
+
let t = e.IconifyProviders;
|
|
910
|
+
if (typeof t == "object" && t) for (let e in t) {
|
|
911
|
+
let n = "IconifyProviders[" + e + "] is invalid.";
|
|
912
|
+
try {
|
|
913
|
+
let r = t[e];
|
|
914
|
+
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
915
|
+
he(e, r) || console.error(n);
|
|
916
|
+
} catch {
|
|
917
|
+
console.error(n);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
var qe = {
|
|
923
|
+
...m,
|
|
924
|
+
body: ""
|
|
925
|
+
}, Je = t((t, { emit: a }) => {
|
|
926
|
+
let c = r(null);
|
|
927
|
+
function u() {
|
|
928
|
+
c.value &&= (c.value.abort?.(), null);
|
|
929
|
+
}
|
|
930
|
+
let d = r(!!t.ssr), f = r(""), p = o(null);
|
|
931
|
+
function h() {
|
|
932
|
+
let e = t.icon;
|
|
933
|
+
if (typeof e == "object" && e && typeof e.body == "string") return f.value = "", { data: e };
|
|
934
|
+
let r;
|
|
935
|
+
if (typeof e != "string" || (r = l(e, !1, !0)) === null) return null;
|
|
936
|
+
let i = D(r);
|
|
937
|
+
if (!i) {
|
|
938
|
+
let t = c.value;
|
|
939
|
+
return (!t || t.name !== e) && (i === null ? c.value = { name: e } : c.value = {
|
|
940
|
+
name: e,
|
|
941
|
+
abort: Ne([r], g)
|
|
942
|
+
}), null;
|
|
943
|
+
}
|
|
944
|
+
u(), f.value !== e && (f.value = e, n(() => {
|
|
945
|
+
a("load", e);
|
|
946
|
+
}));
|
|
947
|
+
let o = t.customise;
|
|
948
|
+
if (o) {
|
|
949
|
+
i = Object.assign({}, i);
|
|
950
|
+
let e = o(i.body, r.name, r.prefix, r.provider);
|
|
951
|
+
typeof e == "string" && (i.body = e);
|
|
952
|
+
}
|
|
953
|
+
let s = ["iconify"];
|
|
954
|
+
return r.prefix !== "" && s.push("iconify--" + r.prefix), r.provider !== "" && s.push("iconify--" + r.provider), {
|
|
955
|
+
data: i,
|
|
956
|
+
classes: s
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
function g() {
|
|
960
|
+
let e = h();
|
|
961
|
+
e ? e.data !== p.value?.data && (p.value = e) : p.value = null;
|
|
962
|
+
}
|
|
963
|
+
return d.value ? g() : s(() => {
|
|
964
|
+
d.value = !0, g();
|
|
965
|
+
}), e(() => t.icon, g), i(u), () => {
|
|
966
|
+
let e = p.value;
|
|
967
|
+
if (!e) return $(qe, t);
|
|
968
|
+
let n = t;
|
|
969
|
+
return e.classes && (n = {
|
|
970
|
+
...t,
|
|
971
|
+
class: e.classes.join(" ")
|
|
972
|
+
}), $({
|
|
973
|
+
...m,
|
|
974
|
+
...e.data
|
|
975
|
+
}, n);
|
|
976
|
+
};
|
|
977
|
+
}, {
|
|
978
|
+
props: {
|
|
979
|
+
icon: {
|
|
980
|
+
type: [String, Object],
|
|
981
|
+
required: !0
|
|
982
|
+
},
|
|
983
|
+
mode: { type: String },
|
|
984
|
+
ssr: { type: Boolean },
|
|
985
|
+
width: { type: [String, Number] },
|
|
986
|
+
height: { type: [String, Number] },
|
|
987
|
+
style: { type: [String, Object] },
|
|
988
|
+
color: { type: String },
|
|
989
|
+
inline: { type: Boolean },
|
|
990
|
+
rotate: { type: [Number, String] },
|
|
991
|
+
hFlip: { type: Boolean },
|
|
992
|
+
horizontalFlip: { type: Boolean },
|
|
993
|
+
vFlip: { type: Boolean },
|
|
994
|
+
verticalFlip: { type: Boolean },
|
|
995
|
+
flip: { type: String },
|
|
996
|
+
id: { type: String },
|
|
997
|
+
ariaHidden: {
|
|
998
|
+
type: [Boolean, String],
|
|
999
|
+
default: void 0
|
|
1000
|
+
},
|
|
1001
|
+
customise: { type: Function },
|
|
1002
|
+
title: { type: String }
|
|
1003
|
+
},
|
|
1004
|
+
emits: ["load"]
|
|
1005
|
+
});
|
|
1006
|
+
//#endregion
|
|
1007
|
+
export { re as i, k as n, O as r, Je as t };
|