@yaks/platform 0.0.0-stage → 0.2.36
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 +202 -0
- package/README.md +261 -2
- package/_client-blobs.js +7 -0
- package/_client-error.js +70 -0
- package/_client-modal.js +3 -0
- package/_client-replica.js +5 -0
- package/_client-review.js +1 -0
- package/_client-schema.js +1 -0
- package/_client-vault.js +31 -0
- package/_edit-query.js +1 -0
- package/_uploads.js +4 -0
- package/account-browser.js +67 -0
- package/account-browser.js.map +1 -0
- package/account-browser.ts +87 -0
- package/account-rows.js +130 -0
- package/account-rows.js.map +1 -0
- package/account-rows.ts +237 -0
- package/admin-visits-view.js +65 -0
- package/admin-visits-view.js.map +1 -0
- package/admin-visits-view.ts +120 -0
- package/admin-visits.js +143 -0
- package/admin-visits.js.map +1 -0
- package/admin-visits.ts +211 -0
- package/admit-graph.js +8 -0
- package/admit-graph.js.map +1 -0
- package/admit-graph.ts +10 -0
- package/agent-guide.js +368 -0
- package/agent-guide.js.map +1 -0
- package/agent-guide.ts +450 -0
- package/agents-browser.js +143 -0
- package/agents-browser.js.map +1 -0
- package/agents-browser.ts +141 -0
- package/agents-view.js +129 -0
- package/agents-view.js.map +1 -0
- package/agents-view.ts +236 -0
- package/agents.js +148 -0
- package/agents.js.map +1 -0
- package/agents.ts +150 -0
- package/app-actions.js +56 -0
- package/app-actions.js.map +1 -0
- package/app-actions.ts +61 -0
- package/app-authority.js +280 -0
- package/app-authority.js.map +1 -0
- package/app-authority.ts +356 -0
- package/app-canvas-browser.js +308 -0
- package/app-canvas-browser.js.map +1 -0
- package/app-canvas-browser.ts +377 -0
- package/app-canvas-view.js +244 -0
- package/app-canvas-view.js.map +1 -0
- package/app-canvas-view.ts +399 -0
- package/app-canvas.js +87 -0
- package/app-canvas.js.map +1 -0
- package/app-canvas.ts +170 -0
- package/app-client.js +521 -0
- package/app-client.js.map +1 -0
- package/app-client.ts +562 -0
- package/app-command.js +108 -0
- package/app-command.js.map +1 -0
- package/app-command.ts +155 -0
- package/app-commands.js +334 -0
- package/app-commands.js.map +1 -0
- package/app-commands.ts +379 -0
- package/app-decision.js +69 -0
- package/app-decision.js.map +1 -0
- package/app-decision.ts +61 -0
- package/app-effects.js +43 -0
- package/app-effects.js.map +1 -0
- package/app-effects.ts +53 -0
- package/app-file.js +252 -0
- package/app-file.js.map +1 -0
- package/app-file.ts +362 -0
- package/app-friends.js +60 -0
- package/app-friends.js.map +1 -0
- package/app-friends.ts +81 -0
- package/app-graph.js +9 -0
- package/app-graph.js.map +1 -0
- package/app-graph.ts +9 -0
- package/app-icon.js +59 -0
- package/app-icon.js.map +1 -0
- package/app-icon.ts +121 -0
- package/app-made.js +164 -0
- package/app-made.js.map +1 -0
- package/app-made.ts +306 -0
- package/app-outbound.js +72 -0
- package/app-outbound.js.map +1 -0
- package/app-outbound.ts +109 -0
- package/app-outbox.js +42 -0
- package/app-outbox.js.map +1 -0
- package/app-outbox.ts +46 -0
- package/app-patch.js +75 -0
- package/app-patch.js.map +1 -0
- package/app-patch.ts +106 -0
- package/app-read.js +101 -0
- package/app-read.js.map +1 -0
- package/app-read.ts +126 -0
- package/app-role-tools.js +232 -0
- package/app-role-tools.js.map +1 -0
- package/app-role-tools.ts +258 -0
- package/app-roles.js +91 -0
- package/app-roles.js.map +1 -0
- package/app-roles.ts +76 -0
- package/app-session-access.js +109 -0
- package/app-session-access.js.map +1 -0
- package/app-session-access.ts +145 -0
- package/app-starter.js +109 -0
- package/app-starter.js.map +1 -0
- package/app-starter.ts +123 -0
- package/app-storage.js +38 -0
- package/app-storage.js.map +1 -0
- package/app-storage.ts +54 -0
- package/app-style-guide.js +138 -0
- package/app-style-guide.js.map +1 -0
- package/app-style-guide.ts +195 -0
- package/app-subs.js +89 -0
- package/app-subs.js.map +1 -0
- package/app-subs.ts +110 -0
- package/app-tests.js +54 -0
- package/app-tests.js.map +1 -0
- package/app-tests.ts +56 -0
- package/app-tile.js +209 -0
- package/app-tile.js.map +1 -0
- package/app-tile.ts +227 -0
- package/app-transfer.js +188 -0
- package/app-transfer.js.map +1 -0
- package/app-transfer.ts +281 -0
- package/app-vocab.js +52 -0
- package/app-vocab.js.map +1 -0
- package/app-vocab.ts +43 -0
- package/app-words.js +55 -0
- package/app-words.js.map +1 -0
- package/app-words.ts +73 -0
- package/app-worker.js +28 -0
- package/app-worker.js.map +1 -0
- package/app-worker.ts +38 -0
- package/app-writes.js +132 -0
- package/app-writes.js.map +1 -0
- package/app-writes.ts +128 -0
- package/asset-bytes.js +57 -0
- package/asset-bytes.js.map +1 -0
- package/asset-bytes.ts +90 -0
- package/asset-response.js +28 -0
- package/asset-response.js.map +1 -0
- package/asset-response.ts +46 -0
- package/asset-url.js +556 -0
- package/asset-url.js.map +1 -0
- package/asset-url.ts +774 -0
- package/attribution-vocab.js +14 -0
- package/attribution-vocab.js.map +1 -0
- package/attribution-vocab.ts +11 -0
- package/authorship-graph.js +8 -0
- package/authorship-graph.js.map +1 -0
- package/authorship-graph.ts +10 -0
- package/badge.js +98 -0
- package/blob-images.js +206 -0
- package/blob-images.js.map +1 -0
- package/blob-images.ts +323 -0
- package/blob-posters.js +125 -0
- package/blob-posters.js.map +1 -0
- package/blob-posters.ts +207 -0
- package/blob-routes.js +14 -0
- package/blob-routes.js.map +1 -0
- package/blob-routes.ts +25 -0
- package/bots.js +77 -0
- package/bots.js.map +1 -0
- package/bots.ts +93 -0
- package/browser-mockup.js +81 -0
- package/browser-mockup.js.map +1 -0
- package/browser-mockup.ts +105 -0
- package/browser-record.js +55 -0
- package/browser-record.js.map +1 -0
- package/browser-record.ts +66 -0
- package/browser-scroll.js +90 -0
- package/browser-scroll.js.map +1 -0
- package/browser-scroll.ts +108 -0
- package/browser-stream.js +79 -0
- package/browser-stream.js.map +1 -0
- package/browser-stream.ts +84 -0
- package/browser-trace.js +252 -0
- package/browser-trace.js.map +1 -0
- package/browser-trace.ts +330 -0
- package/browser-viewer.js +236 -0
- package/browser-viewer.js.map +1 -0
- package/browser-viewer.ts +233 -0
- package/browser-visit.js +1522 -0
- package/browser-visit.js.map +1 -0
- package/browser-visit.ts +2179 -0
- package/browser-wire.js +242 -0
- package/browser-wire.js.map +1 -0
- package/browser-wire.ts +262 -0
- package/budget.js +17 -0
- package/budget.js.map +1 -0
- package/budget.ts +42 -0
- package/cli.js +52 -0
- package/cli.js.map +1 -0
- package/cli.ts +55 -0
- package/client-modules.js +24 -0
- package/client-modules.js.map +1 -0
- package/client-modules.ts +24 -0
- package/client-routes.js +83 -0
- package/client-routes.js.map +1 -0
- package/client-routes.ts +104 -0
- package/client-words.js +62 -0
- package/client-words.js.map +1 -0
- package/client-words.ts +77 -0
- package/client.js +709 -0
- package/comp.js +2 -0
- package/comp.js.map +1 -0
- package/comp.ts +15 -0
- package/config.js +497 -0
- package/config.js.map +1 -0
- package/config.ts +287 -0
- package/connect-parts.js +107 -0
- package/connect-parts.js.map +1 -0
- package/connect-parts.ts +165 -0
- package/connected-activity-browser.js +301 -0
- package/connected-activity-browser.js.map +1 -0
- package/connected-activity-browser.ts +341 -0
- package/connected-activity-view.js +55 -0
- package/connected-activity-view.js.map +1 -0
- package/connected-activity-view.ts +81 -0
- package/connected-activity-wire.js +165 -0
- package/connected-activity-wire.js.map +1 -0
- package/connected-activity-wire.ts +171 -0
- package/connected-activity.css +156 -0
- package/connected-activity.js +185 -0
- package/connected-activity.js.map +1 -0
- package/connected-activity.ts +278 -0
- package/connection-icon-browser.js +50 -0
- package/connection-icon-browser.js.map +1 -0
- package/connection-icon-browser.ts +52 -0
- package/connections-browser.js +393 -0
- package/connections-browser.js.map +1 -0
- package/connections-browser.ts +465 -0
- package/connections-page.js +178 -0
- package/connections-page.js.map +1 -0
- package/connections-page.ts +461 -0
- package/connections-view.js +1215 -0
- package/connections-view.js.map +1 -0
- package/connections-view.ts +2239 -0
- package/connector-upload.js +94 -0
- package/connector-upload.js.map +1 -0
- package/connector-upload.ts +146 -0
- package/consent.js +2 -0
- package/consent.js.map +1 -0
- package/consent.ts +3 -0
- package/cookie.js +53 -0
- package/cookie.js.map +1 -0
- package/cookie.ts +75 -0
- package/copy.js +104 -0
- package/corner.js +226 -0
- package/credential-draft-move.js +154 -0
- package/credential-draft-move.js.map +1 -0
- package/credential-draft-move.ts +197 -0
- package/credential-draft-place.js +2 -0
- package/credential-draft-place.js.map +1 -0
- package/credential-draft-place.ts +4 -0
- package/credential-drafts.js +66 -0
- package/credential-drafts.js.map +1 -0
- package/credential-drafts.ts +93 -0
- package/dashboard-browser.js +149 -0
- package/dashboard-browser.js.map +1 -0
- package/dashboard-browser.ts +184 -0
- package/dashboard-view.js +293 -0
- package/dashboard-view.js.map +1 -0
- package/dashboard-view.ts +423 -0
- package/dashboard.js +268 -0
- package/dashboard.js.map +1 -0
- package/dashboard.ts +436 -0
- package/deno.json +1 -0
- package/describe-graph.js +8 -0
- package/describe-graph.js.map +1 -0
- package/describe-graph.ts +7 -0
- package/directory-derived.js +142 -0
- package/directory-derived.js.map +1 -0
- package/directory-derived.ts +198 -0
- package/directory-index-move.js +77 -0
- package/directory-index-move.js.map +1 -0
- package/directory-index-move.ts +59 -0
- package/directory-index.js +382 -0
- package/directory-index.js.map +1 -0
- package/directory-index.ts +550 -0
- package/directory-pages.js +41 -0
- package/directory-pages.js.map +1 -0
- package/directory-pages.ts +71 -0
- package/directory-route.js +129 -0
- package/directory-route.js.map +1 -0
- package/directory-route.ts +189 -0
- package/directory-vocab.js +58 -0
- package/directory-vocab.js.map +1 -0
- package/directory-vocab.ts +46 -0
- package/document-graph.js +86 -0
- package/document-graph.js.map +1 -0
- package/document-graph.ts +93 -0
- package/document-ocr.js +146 -0
- package/document-ocr.js.map +1 -0
- package/document-ocr.ts +204 -0
- package/documents.js +50 -0
- package/documents.js.map +1 -0
- package/documents.ts +64 -0
- package/domain-pages.js +221 -0
- package/domain-pages.js.map +1 -0
- package/domain-pages.ts +586 -0
- package/domain-settings.js +88 -0
- package/domain-settings.js.map +1 -0
- package/domain-settings.ts +132 -0
- package/domain-transfer.js +138 -0
- package/domain-transfer.js.map +1 -0
- package/domain-transfer.ts +190 -0
- package/donation-loans.js +176 -0
- package/donation-loans.js.map +1 -0
- package/donation-loans.ts +271 -0
- package/draft-choice.js +136 -0
- package/draft-choice.js.map +1 -0
- package/draft-choice.ts +310 -0
- package/drawing.js +27 -0
- package/drawing.js.map +1 -0
- package/drawing.ts +40 -0
- package/early-report.js +18 -0
- package/early-report.js.map +1 -0
- package/early-report.ts +31 -0
- package/edit-client-path.js +2 -0
- package/edit-client-path.js.map +1 -0
- package/edit-client-path.ts +1 -0
- package/edit-mode.js +920 -0
- package/edit-mode.js.map +1 -0
- package/edit-mode.ts +1003 -0
- package/edit-sync.js +61 -0
- package/edit-sync.js.map +1 -0
- package/edit-sync.ts +83 -0
- package/edit.js +265 -0
- package/embed-graph.js +11 -0
- package/embed-graph.js.map +1 -0
- package/embed-graph.ts +8 -0
- package/embedded-payment.js +211 -0
- package/embedded-payment.js.map +1 -0
- package/embedded-payment.ts +290 -0
- package/entry-actions-browser.js +43 -0
- package/entry-actions-browser.js.map +1 -0
- package/entry-actions-browser.ts +64 -0
- package/entry-actions.js +56 -0
- package/entry-actions.js.map +1 -0
- package/entry-actions.ts +59 -0
- package/escape.js +14 -0
- package/escape.js.map +1 -0
- package/escape.ts +24 -0
- package/face-input.js +6 -0
- package/face-input.js.map +1 -0
- package/face-input.ts +14 -0
- package/facebook.js +370 -0
- package/facebook.js.map +1 -0
- package/facebook.ts +474 -0
- package/facets.js +142 -0
- package/facets.js.map +1 -0
- package/facets.ts +89 -0
- package/fee.js +45 -0
- package/fee.js.map +1 -0
- package/fee.ts +51 -0
- package/fence.js +164 -0
- package/fence.js.map +1 -0
- package/fence.ts +223 -0
- package/file-metadata.js +135 -0
- package/file-metadata.js.map +1 -0
- package/file-metadata.ts +177 -0
- package/file-operation.js +51 -0
- package/file-operation.js.map +1 -0
- package/file-operation.ts +32 -0
- package/file-redirects.js +72 -0
- package/file-redirects.js.map +1 -0
- package/file-redirects.ts +74 -0
- package/file-root.js +8 -0
- package/file-root.js.map +1 -0
- package/file-root.ts +24 -0
- package/files-routes.js +203 -0
- package/files-routes.js.map +1 -0
- package/files-routes.ts +282 -0
- package/files.js +369 -0
- package/files.js.map +1 -0
- package/files.ts +522 -0
- package/fingerprint.js +217 -0
- package/fingerprint.js.map +1 -0
- package/fingerprint.ts +314 -0
- package/firsts.js +335 -0
- package/firsts.js.map +1 -0
- package/firsts.ts +368 -0
- package/friends-at.js +78 -0
- package/friends-at.js.map +1 -0
- package/friends-at.ts +115 -0
- package/friends-browser.js +66 -0
- package/friends-browser.js.map +1 -0
- package/friends-browser.ts +77 -0
- package/friends-dock-browser.js +375 -0
- package/friends-dock-browser.js.map +1 -0
- package/friends-dock-browser.ts +408 -0
- package/friends-dock-view.js +363 -0
- package/friends-dock-view.js.map +1 -0
- package/friends-dock-view.ts +592 -0
- package/friends-view.js +33 -0
- package/friends-view.js.map +1 -0
- package/friends-view.ts +69 -0
- package/friends.js +153 -0
- package/friends.js.map +1 -0
- package/friends.ts +200 -0
- package/fundraising-orders.js +197 -0
- package/fundraising-orders.js.map +1 -0
- package/fundraising-orders.ts +283 -0
- package/fundraising.js +165 -0
- package/fundraising.js.map +1 -0
- package/fundraising.ts +215 -0
- package/funnel.js +141 -0
- package/funnel.js.map +1 -0
- package/funnel.ts +284 -0
- package/gift-savings.js +19 -0
- package/gift-savings.js.map +1 -0
- package/gift-savings.ts +29 -0
- package/git-history.js +331 -0
- package/git-history.js.map +1 -0
- package/git-history.ts +481 -0
- package/giving-browser.js +35 -0
- package/giving-browser.js.map +1 -0
- package/giving-browser.ts +40 -0
- package/giving-pages.js +284 -0
- package/giving-pages.js.map +1 -0
- package/giving-pages.ts +418 -0
- package/giving-view.js +244 -0
- package/giving-view.js.map +1 -0
- package/giving-view.ts +509 -0
- package/giving.js +198 -0
- package/giving.js.map +1 -0
- package/giving.ts +280 -0
- package/gmail-mailbox.js +52 -0
- package/gmail-mailbox.js.map +1 -0
- package/gmail-mailbox.ts +74 -0
- package/graves.js +136 -0
- package/graves.js.map +1 -0
- package/graves.ts +180 -0
- package/hashed.js +499 -0
- package/hashed.js.map +1 -0
- package/hashed.ts +676 -0
- package/home/assets.js +15 -0
- package/home/assets.js.map +1 -0
- package/home/assets.ts +16 -0
- package/home/brands/stripe.svg +12 -0
- package/home/brands/zoom.svg +34 -0
- package/home/demos.js +413 -0
- package/home/demos.js.map +1 -0
- package/home/demos.ts +431 -0
- package/home/games.js +112 -0
- package/home/games.js.map +1 -0
- package/home/games.ts +137 -0
- package/home/icons.js +41 -0
- package/home/icons.js.map +1 -0
- package/home/icons.ts +42 -0
- package/home/mascot/calculating.webp +0 -0
- package/home/mascot/flag.webp +0 -0
- package/home/mascot/letter.webp +0 -0
- package/home/mascot/plane.webp +0 -0
- package/home/mascot/plug.webp +0 -0
- package/home/mascot/thinking.webp +0 -0
- package/home/mascot/typing.webp +0 -0
- package/home/mascot/wave.webp +0 -0
- package/home/mod.tsx +517 -0
- package/home/parts.js +149 -0
- package/home/parts.js.map +1 -0
- package/home/parts.ts +45 -0
- package/home/phone.tsx +152 -0
- package/home/scenes.tsx +212 -0
- package/home/sky.js +930 -0
- package/home/sky.tsx +479 -0
- package/home/story.js +392 -0
- package/home/style.css +1304 -0
- package/home/words.js +2 -0
- package/home/words.js.map +1 -0
- package/home/words.ts +8 -0
- package/home/yak.js +146 -0
- package/home/yak_test.tsx +111 -0
- package/home-router.js +30 -0
- package/home-router.js.map +1 -0
- package/home-router.ts +41 -0
- package/host.js +58 -0
- package/host.js.map +1 -0
- package/host.ts +97 -0
- package/hosted-page.js +126 -0
- package/hosted-page.js.map +1 -0
- package/hosted-page.ts +295 -0
- package/install-browser.js +89 -0
- package/install-browser.js.map +1 -0
- package/install-browser.ts +99 -0
- package/install-icons.js +271 -0
- package/install-icons.js.map +1 -0
- package/install-icons.ts +366 -0
- package/installs.js +197 -0
- package/installs.js.map +1 -0
- package/installs.ts +270 -0
- package/instrument.js +50 -0
- package/instrument.js.map +1 -0
- package/instrument.ts +55 -0
- package/integration-icons.js +138 -0
- package/integration-icons.js.map +1 -0
- package/integration-icons.ts +198 -0
- package/interaction-browser.js +95 -0
- package/interaction-browser.js.map +1 -0
- package/interaction-browser.ts +107 -0
- package/interaction-report.js +399 -0
- package/interaction-report.js.map +1 -0
- package/interaction-report.ts +450 -0
- package/interaction.js +273 -0
- package/interaction.js.map +1 -0
- package/interaction.ts +290 -0
- package/invite-browser.js +98 -0
- package/invite-browser.js.map +1 -0
- package/invite-browser.ts +123 -0
- package/invite-view.js +100 -0
- package/invite-view.js.map +1 -0
- package/invite-view.ts +137 -0
- package/kept.js +520 -0
- package/kept.js.map +1 -0
- package/kept.ts +821 -0
- package/kills-graph.js +18 -0
- package/kills-graph.js.map +1 -0
- package/kills-graph.ts +16 -0
- package/ladder.js +418 -0
- package/ladder.js.map +1 -0
- package/ladder.ts +510 -0
- package/lenses-graph.js +24 -0
- package/lenses-graph.js.map +1 -0
- package/lenses-graph.ts +27 -0
- package/lenses.js +197 -0
- package/lenses.js.map +1 -0
- package/lenses.ts +204 -0
- package/lent.js +32 -0
- package/lent.js.map +1 -0
- package/lent.ts +95 -0
- package/letters.js +134 -0
- package/letters.js.map +1 -0
- package/letters.ts +251 -0
- package/lexicon-graph.js +11 -0
- package/lexicon-graph.js.map +1 -0
- package/lexicon-graph.ts +7 -0
- package/link-preview.js +111 -0
- package/link-preview.js.map +1 -0
- package/link-preview.ts +136 -0
- package/listing.js +262 -0
- package/listing.js.map +1 -0
- package/listing.ts +330 -0
- package/local-time.js +32 -0
- package/local-time.js.map +1 -0
- package/local-time.ts +41 -0
- package/located.js +380 -0
- package/located.js.map +1 -0
- package/located.ts +471 -0
- package/log-graph.js +7 -0
- package/log-graph.js.map +1 -0
- package/log-graph.ts +9 -0
- package/lower-graph.js +7 -0
- package/lower-graph.js.map +1 -0
- package/lower-graph.ts +9 -0
- package/mail-request.js +32 -0
- package/mail-request.js.map +1 -0
- package/mail-request.ts +29 -0
- package/mail-senders.js +40 -0
- package/mail-senders.js.map +1 -0
- package/mail-senders.ts +47 -0
- package/managed-browser-pilot.js +151 -0
- package/managed-browser-pilot.js.map +1 -0
- package/managed-browser-pilot.ts +230 -0
- package/managed-browser-sites.js +43 -0
- package/managed-browser-sites.js.map +1 -0
- package/managed-browser-sites.ts +41 -0
- package/managed-browser-wire.js +142 -0
- package/managed-browser-wire.js.map +1 -0
- package/managed-browser-wire.ts +140 -0
- package/managed-browser.js +529 -0
- package/managed-browser.js.map +1 -0
- package/managed-browser.ts +740 -0
- package/manifest.js +425 -0
- package/manifest.js.map +1 -0
- package/manifest.ts +468 -0
- package/metadata-effect.js +61 -0
- package/metadata-effect.js.map +1 -0
- package/metadata-effect.ts +59 -0
- package/meter-graph.js +205 -0
- package/meter-graph.js.map +1 -0
- package/meter-graph.ts +238 -0
- package/meter-vocab.js +8 -0
- package/meter-vocab.js.map +1 -0
- package/meter-vocab.ts +4 -0
- package/meter.js +402 -0
- package/meter.js.map +1 -0
- package/meter.ts +697 -0
- package/mod.js +14 -0
- package/mod.js.map +1 -0
- package/mod.ts +16 -0
- package/models-vocab.js +25 -0
- package/models-vocab.js.map +1 -0
- package/models-vocab.ts +15 -0
- package/monogram.js +32 -0
- package/monogram.js.map +1 -0
- package/monogram.ts +46 -0
- package/mover.js +6 -0
- package/mover.js.map +1 -0
- package/mover.ts +45 -0
- package/named.js +136 -0
- package/named.js.map +1 -0
- package/named.ts +169 -0
- package/names.js +196 -0
- package/names.js.map +1 -0
- package/names.ts +252 -0
- package/notices-vocab.js +20 -0
- package/notices-vocab.js.map +1 -0
- package/notices-vocab.ts +28 -0
- package/numbers.js +85 -0
- package/numbers.js.map +1 -0
- package/numbers.ts +97 -0
- package/object-hosts.js +137 -0
- package/object-hosts.js.map +1 -0
- package/object-hosts.ts +153 -0
- package/open-script.js +235 -0
- package/open-script.js.map +1 -0
- package/open-script.ts +253 -0
- package/opening.js +31 -0
- package/opening.js.map +1 -0
- package/opening.ts +28 -0
- package/operator-activity-view.js +82 -0
- package/operator-activity-view.js.map +1 -0
- package/operator-activity-view.ts +85 -0
- package/operator-activity.js +220 -0
- package/operator-activity.js.map +1 -0
- package/operator-activity.ts +293 -0
- package/operator-brief.js +36 -0
- package/operator-brief.js.map +1 -0
- package/operator-brief.ts +76 -0
- package/operator-copy-browser.js +67 -0
- package/operator-copy-browser.js.map +1 -0
- package/operator-copy-browser.ts +71 -0
- package/operator-corner.js +266 -0
- package/operator-corner.js.map +1 -0
- package/operator-corner.ts +300 -0
- package/operator-decisions.js +19 -0
- package/operator-decisions.js.map +1 -0
- package/operator-decisions.ts +18 -0
- package/operator-docs.js +152 -0
- package/operator-docs.js.map +1 -0
- package/operator-docs.ts +196 -0
- package/operator-door.js +10 -0
- package/operator-door.js.map +1 -0
- package/operator-door.ts +14 -0
- package/operator-drafts-browser.js +28 -0
- package/operator-drafts-browser.js.map +1 -0
- package/operator-drafts-browser.ts +32 -0
- package/operator-drafts.js +60 -0
- package/operator-drafts.js.map +1 -0
- package/operator-drafts.ts +80 -0
- package/operator-early-draft.js +110 -0
- package/operator-early-draft.js.map +1 -0
- package/operator-early-draft.ts +125 -0
- package/operator-go-browser.js +130 -0
- package/operator-go-browser.js.map +1 -0
- package/operator-go-browser.ts +182 -0
- package/operator-go-step.js +86 -0
- package/operator-go-step.js.map +1 -0
- package/operator-go-step.ts +92 -0
- package/operator-go-tool.js +49 -0
- package/operator-go-tool.js.map +1 -0
- package/operator-go-tool.ts +31 -0
- package/operator-go.js +68 -0
- package/operator-go.js.map +1 -0
- package/operator-go.ts +100 -0
- package/operator-graph.js +46 -0
- package/operator-graph.js.map +1 -0
- package/operator-graph.ts +60 -0
- package/operator-handoff.js +91 -0
- package/operator-handoff.js.map +1 -0
- package/operator-handoff.ts +104 -0
- package/operator-machine.js +136 -0
- package/operator-machine.js.map +1 -0
- package/operator-machine.ts +168 -0
- package/operator-matches-browser.js +155 -0
- package/operator-matches-browser.js.map +1 -0
- package/operator-matches-browser.ts +178 -0
- package/operator-matches-view.js +147 -0
- package/operator-matches-view.js.map +1 -0
- package/operator-matches-view.ts +224 -0
- package/operator-matches.js +65 -0
- package/operator-matches.js.map +1 -0
- package/operator-matches.ts +120 -0
- package/operator-memory.js +119 -0
- package/operator-memory.js.map +1 -0
- package/operator-memory.ts +122 -0
- package/operator-mic.ts +40 -0
- package/operator-model.js +144 -0
- package/operator-model.js.map +1 -0
- package/operator-model.ts +154 -0
- package/operator-notes.js +32 -0
- package/operator-notes.js.map +1 -0
- package/operator-notes.ts +40 -0
- package/operator-opening-browser.js +184 -0
- package/operator-opening-browser.js.map +1 -0
- package/operator-opening-browser.ts +195 -0
- package/operator-owner.js +391 -0
- package/operator-owner.js.map +1 -0
- package/operator-owner.ts +392 -0
- package/operator-page-context.js +121 -0
- package/operator-page-context.js.map +1 -0
- package/operator-page-context.ts +143 -0
- package/operator-page-image.js +38 -0
- package/operator-page-image.js.map +1 -0
- package/operator-page-image.ts +42 -0
- package/operator-panel-browser.js +601 -0
- package/operator-panel-browser.js.map +1 -0
- package/operator-panel-browser.ts +669 -0
- package/operator-panel-view.js +69 -0
- package/operator-panel-view.js.map +1 -0
- package/operator-panel-view.ts +100 -0
- package/operator-panel.js +131 -0
- package/operator-panel.js.map +1 -0
- package/operator-panel.ts +155 -0
- package/operator-push.tsx +112 -0
- package/operator-record.js +55 -0
- package/operator-record.js.map +1 -0
- package/operator-record.ts +92 -0
- package/operator-replies.js +240 -0
- package/operator-replies.js.map +1 -0
- package/operator-replies.ts +281 -0
- package/operator-reply-view.js +117 -0
- package/operator-reply-view.js.map +1 -0
- package/operator-reply-view.ts +185 -0
- package/operator-safety.js +30 -0
- package/operator-safety.js.map +1 -0
- package/operator-safety.ts +53 -0
- package/operator-settings-browser.js +257 -0
- package/operator-settings-browser.js.map +1 -0
- package/operator-settings-browser.ts +290 -0
- package/operator-settings-view.js +291 -0
- package/operator-settings-view.js.map +1 -0
- package/operator-settings-view.ts +588 -0
- package/operator-settings.js +79 -0
- package/operator-settings.js.map +1 -0
- package/operator-settings.ts +137 -0
- package/operator-source.js +43 -0
- package/operator-source.js.map +1 -0
- package/operator-source.ts +69 -0
- package/operator-talk-browser.js +94 -0
- package/operator-talk-browser.js.map +1 -0
- package/operator-talk-browser.ts +120 -0
- package/operator-talk.js +83 -0
- package/operator-talk.js.map +1 -0
- package/operator-talk.ts +127 -0
- package/operator-task-text.js +45 -0
- package/operator-task-text.js.map +1 -0
- package/operator-task-text.ts +49 -0
- package/operator-timing-browser.js +51 -0
- package/operator-timing-browser.js.map +1 -0
- package/operator-timing-browser.ts +68 -0
- package/operator-timing-view.js +48 -0
- package/operator-timing-view.js.map +1 -0
- package/operator-timing-view.ts +90 -0
- package/operator-timing.js +132 -0
- package/operator-timing.js.map +1 -0
- package/operator-timing.ts +170 -0
- package/operator-vocab.js +8 -0
- package/operator-vocab.js.map +1 -0
- package/operator-vocab.ts +7 -0
- package/operator-voice-audio.ts +84 -0
- package/operator-voice-browser.ts +237 -0
- package/operator-voice-feedback.js +108 -0
- package/operator-voice-feedback.js.map +1 -0
- package/operator-voice-feedback.ts +133 -0
- package/operator-voice-view.js +33 -0
- package/operator-voice-view.js.map +1 -0
- package/operator-voice-view.ts +43 -0
- package/operator-voice.css +38 -0
- package/operator-voice.js +35 -0
- package/operator-voice.js.map +1 -0
- package/operator-voice.ts +33 -0
- package/operator-wait.js +70 -0
- package/operator-wait.js.map +1 -0
- package/operator-wait.ts +79 -0
- package/operator-watches.js +126 -0
- package/operator-watches.js.map +1 -0
- package/operator-watches.ts +141 -0
- package/operator-words.js +94 -0
- package/operator-words.js.map +1 -0
- package/operator-words.ts +114 -0
- package/outreach-trial.js +103 -0
- package/outreach-trial.js.map +1 -0
- package/outreach-trial.ts +122 -0
- package/outreach-vocab.js +10 -0
- package/outreach-vocab.js.map +1 -0
- package/outreach-vocab.ts +7 -0
- package/outreach.js +162 -0
- package/outreach.js.map +1 -0
- package/outreach.ts +239 -0
- package/package.json +1131 -4
- package/packs.js +103 -0
- package/packs.js.map +1 -0
- package/packs.ts +119 -0
- package/page-copy.js +267 -0
- package/page-copy.js.map +1 -0
- package/page-copy.ts +362 -0
- package/page-graph.js +114 -0
- package/page-graph.js.map +1 -0
- package/page-graph.ts +151 -0
- package/page-links.js +78 -0
- package/page-links.js.map +1 -0
- package/page-links.ts +124 -0
- package/page-parts.js +236 -0
- package/page-parts.js.map +1 -0
- package/page-parts.ts +388 -0
- package/page-query.js +95 -0
- package/page-query.js.map +1 -0
- package/page-query.ts +120 -0
- package/page-script.js +183 -0
- package/page-script.js.map +1 -0
- package/page-script.ts +192 -0
- package/page-wire.js +93 -0
- package/page-wire.js.map +1 -0
- package/page-wire.ts +100 -0
- package/pages-vocab.js +9 -0
- package/pages-vocab.js.map +1 -0
- package/pages-vocab.ts +5 -0
- package/partials.js +21 -0
- package/partials.js.map +1 -0
- package/partials.ts +37 -0
- package/payment-browser.js +250 -0
- package/payment-browser.js.map +1 -0
- package/payment-browser.ts +298 -0
- package/payment-rows.js +117 -0
- package/payment-rows.js.map +1 -0
- package/payment-rows.ts +219 -0
- package/payment-view.js +397 -0
- package/payment-view.js.map +1 -0
- package/payment-view.ts +852 -0
- package/people-browser.js +186 -0
- package/people-browser.js.map +1 -0
- package/people-browser.ts +210 -0
- package/people-rows.js +192 -0
- package/people-rows.js.map +1 -0
- package/people-rows.ts +289 -0
- package/people-view.js +463 -0
- package/people-view.js.map +1 -0
- package/people-view.ts +804 -0
- package/person-lines.js +196 -0
- package/person-lines.js.map +1 -0
- package/person-lines.ts +256 -0
- package/place.js +30 -0
- package/place.js.map +1 -0
- package/place.ts +31 -0
- package/plan-details.js +39 -0
- package/plan-details.js.map +1 -0
- package/plan-details.ts +57 -0
- package/plan-trial-graph.js +63 -0
- package/plan-trial-graph.js.map +1 -0
- package/plan-trial-graph.ts +57 -0
- package/plans.js +223 -0
- package/plans.js.map +1 -0
- package/plans.ts +313 -0
- package/platform-credentials.js +136 -0
- package/platform-credentials.js.map +1 -0
- package/platform-credentials.ts +189 -0
- package/poster-backfill.js +72 -0
- package/poster-backfill.js.map +1 -0
- package/poster-backfill.ts +96 -0
- package/presence.js +57 -0
- package/presence.js.map +1 -0
- package/presence.ts +77 -0
- package/preview-audit.js +65 -0
- package/preview-audit.js.map +1 -0
- package/preview-audit.ts +126 -0
- package/preview-fit.js +62 -0
- package/preview-fit.js.map +1 -0
- package/preview-fit.ts +72 -0
- package/preview-html.js +96 -0
- package/preview-html.js.map +1 -0
- package/preview-html.ts +139 -0
- package/preview.js +317 -0
- package/preview.js.map +1 -0
- package/preview.ts +498 -0
- package/price.js +53 -0
- package/price.js.map +1 -0
- package/price.ts +85 -0
- package/profile-browser.js +117 -0
- package/profile-browser.js.map +1 -0
- package/profile-browser.ts +141 -0
- package/profile-view.js +96 -0
- package/profile-view.js.map +1 -0
- package/profile-view.ts +197 -0
- package/provider-credits.js +159 -0
- package/provider-credits.js.map +1 -0
- package/provider-credits.ts +174 -0
- package/public-site-choice.js +18 -0
- package/public-site-choice.js.map +1 -0
- package/public-site-choice.ts +21 -0
- package/public-site.js +151 -0
- package/public-site.js.map +1 -0
- package/public-site.ts +268 -0
- package/publishing-graph.js +136 -0
- package/publishing-graph.js.map +1 -0
- package/publishing-graph.ts +122 -0
- package/qr.js +32 -0
- package/qr.js.map +1 -0
- package/qr.ts +32 -0
- package/query-page.js +159 -0
- package/query-page.js.map +1 -0
- package/query-page.ts +249 -0
- package/query-refusal.js +174 -0
- package/query-refusal.js.map +1 -0
- package/query-refusal.ts +319 -0
- package/refusal-loop.js +71 -0
- package/refusal-loop.js.map +1 -0
- package/refusal-loop.ts +98 -0
- package/refusals-vocab.js +9 -0
- package/refusals-vocab.js.map +1 -0
- package/refusals-vocab.ts +5 -0
- package/refused-writes.js +119 -0
- package/refused-writes.js.map +1 -0
- package/refused-writes.ts +152 -0
- package/refused.js +67 -0
- package/refused.js.map +1 -0
- package/refused.ts +76 -0
- package/regional-route-storage.js +127 -0
- package/regional-route-storage.js.map +1 -0
- package/regional-route-storage.ts +94 -0
- package/regional-route.js +105 -0
- package/regional-route.js.map +1 -0
- package/regional-route.ts +158 -0
- package/regional-serving-copy.js +153 -0
- package/regional-serving-copy.js.map +1 -0
- package/regional-serving-copy.ts +200 -0
- package/release-asset.js +71 -0
- package/release-asset.js.map +1 -0
- package/release-asset.ts +121 -0
- package/release-browser.js +383 -0
- package/release-code.js +5 -0
- package/release-entry.js +3 -0
- package/release-file.js +169 -0
- package/release-file.js.map +1 -0
- package/release-file.ts +241 -0
- package/release-index.js +140 -0
- package/release-index.js.map +1 -0
- package/release-index.ts +161 -0
- package/release-page.js +227 -0
- package/release-reads.js +27 -0
- package/release-reads.js.map +1 -0
- package/release-reads.ts +56 -0
- package/release-sheets.js +76 -0
- package/release-state.js +181 -0
- package/release-update.js +22 -0
- package/release-update.js.map +1 -0
- package/release-update.ts +29 -0
- package/release.js +50 -0
- package/release.js.map +1 -0
- package/release.ts +72 -0
- package/released.js +263 -0
- package/released.js.map +1 -0
- package/released.ts +310 -0
- package/remake-graph.js +17 -0
- package/remake-graph.js.map +1 -0
- package/remake-graph.ts +15 -0
- package/rouse-graph.js +11 -0
- package/rouse-graph.js.map +1 -0
- package/rouse-graph.ts +8 -0
- package/route-memory.js +101 -0
- package/route-memory.js.map +1 -0
- package/route-memory.ts +132 -0
- package/routes.js +1143 -0
- package/routes.js.map +1 -0
- package/routes.ts +1502 -0
- package/sale-recovery.js +175 -0
- package/sale-recovery.js.map +1 -0
- package/sale-recovery.ts +156 -0
- package/sales.js +113 -0
- package/sales.js.map +1 -0
- package/sales.ts +150 -0
- package/schema.js +28 -0
- package/schema.js.map +1 -0
- package/schema.ts +13 -0
- package/serving-copy.js +161 -0
- package/serving-copy.js.map +1 -0
- package/serving-copy.ts +201 -0
- package/settings-drafts-browser.js +81 -0
- package/settings-drafts-browser.js.map +1 -0
- package/settings-drafts-browser.ts +95 -0
- package/settings-drafts.js +119 -0
- package/settings-drafts.js.map +1 -0
- package/settings-drafts.ts +136 -0
- package/shared-browser.js +61 -0
- package/shared-browser.js.map +1 -0
- package/shared-browser.ts +77 -0
- package/shared-view.js +29 -0
- package/shared-view.js.map +1 -0
- package/shared-view.ts +47 -0
- package/side-browser.js +164 -0
- package/side-browser.js.map +1 -0
- package/side-browser.ts +201 -0
- package/side-parts.js +258 -0
- package/side-parts.js.map +1 -0
- package/side-parts.ts +447 -0
- package/side-rows.js +64 -0
- package/side-rows.js.map +1 -0
- package/side-rows.ts +104 -0
- package/signed-in.js +37 -0
- package/signed-in.js.map +1 -0
- package/signed-in.ts +45 -0
- package/site-assets.js +8 -0
- package/site-assets.js.map +1 -0
- package/site-assets.ts +25 -0
- package/site-header.js +65 -0
- package/site-header.js.map +1 -0
- package/site-header.ts +71 -0
- package/site-nav.js +75 -0
- package/site-nav.js.map +1 -0
- package/site-nav.ts +82 -0
- package/site-validation.js +37 -0
- package/site-validation.js.map +1 -0
- package/site-validation.ts +47 -0
- package/space-apps-browser.js +107 -0
- package/space-apps-browser.js.map +1 -0
- package/space-apps-browser.ts +128 -0
- package/space-apps-view.js +222 -0
- package/space-apps-view.js.map +1 -0
- package/space-apps-view.ts +396 -0
- package/space-apps.js +88 -0
- package/space-apps.js.map +1 -0
- package/space-apps.ts +143 -0
- package/space-logo.js +82 -0
- package/space-logo.js.map +1 -0
- package/space-logo.ts +112 -0
- package/space-pages-browser.js +474 -0
- package/space-pages-browser.js.map +1 -0
- package/space-pages-browser.ts +463 -0
- package/space-pages-view.js +212 -0
- package/space-pages-view.js.map +1 -0
- package/space-pages-view.ts +460 -0
- package/space-pages.js +193 -0
- package/space-pages.js.map +1 -0
- package/space-pages.ts +282 -0
- package/space-switch.js +36 -0
- package/space-switch.js.map +1 -0
- package/space-switch.ts +64 -0
- package/splash.js +510 -0
- package/splash.js.map +1 -0
- package/splash.ts +525 -0
- package/standing.js +409 -0
- package/standing.js.map +1 -0
- package/standing.ts +746 -0
- package/still.js +63 -0
- package/still.js.map +1 -0
- package/still.ts +95 -0
- package/store-listing.js +107 -0
- package/store-listing.js.map +1 -0
- package/store-listing.ts +133 -0
- package/store-wake.js +65 -0
- package/store-wake.js.map +1 -0
- package/store-wake.ts +101 -0
- package/stream-posters.js +177 -0
- package/stream-posters.js.map +1 -0
- package/stream-posters.ts +297 -0
- package/support-contract-service.js +219 -0
- package/support-contract-service.js.map +1 -0
- package/support-contract-service.ts +307 -0
- package/support-contract-view.js +155 -0
- package/support-contract-view.js.map +1 -0
- package/support-contract-view.ts +265 -0
- package/support-contract.js +114 -0
- package/support-contract.js.map +1 -0
- package/support-contract.ts +157 -0
- package/sweep-vocab.js +10 -0
- package/sweep-vocab.js.map +1 -0
- package/sweep-vocab.ts +9 -0
- package/talk-views-browser.js +208 -0
- package/talk-views-browser.js.map +1 -0
- package/talk-views-browser.ts +232 -0
- package/talk-views.js +36 -0
- package/talk-views.js.map +1 -0
- package/talk-views.ts +64 -0
- package/task-rows.js +86 -0
- package/task-rows.js.map +1 -0
- package/task-rows.ts +96 -0
- package/tasks-view.js +111 -0
- package/tasks-view.js.map +1 -0
- package/tasks-view.ts +176 -0
- package/toast.ts +17 -0
- package/trash-graph.js +41 -0
- package/trash-graph.js.map +1 -0
- package/trash-graph.ts +27 -0
- package/trash-vocab.js +8 -0
- package/trash-vocab.js.map +1 -0
- package/trash-vocab.ts +4 -0
- package/trial.js +325 -0
- package/trial.js.map +1 -0
- package/trial.ts +451 -0
- package/update-rows.js +77 -0
- package/update-rows.js.map +1 -0
- package/update-rows.ts +171 -0
- package/update-waiting.js +131 -0
- package/update-waiting.js.map +1 -0
- package/update-waiting.ts +133 -0
- package/updates-browser.js +28 -0
- package/updates-browser.js.map +1 -0
- package/updates-browser.ts +33 -0
- package/updates-day-browser.js +77 -0
- package/updates-day-browser.js.map +1 -0
- package/updates-day-browser.ts +84 -0
- package/updates-day.js +60 -0
- package/updates-day.js.map +1 -0
- package/updates-day.ts +94 -0
- package/updates-list-browser.js +175 -0
- package/updates-list-browser.js.map +1 -0
- package/updates-list-browser.ts +198 -0
- package/updates-view.js +546 -0
- package/updates-view.js.map +1 -0
- package/updates-view.ts +814 -0
- package/upload-client-path.js +5 -0
- package/upload-client-path.js.map +1 -0
- package/upload-client-path.ts +4 -0
- package/uploads.js +290 -0
- package/uploads.js.map +1 -0
- package/uploads.ts +334 -0
- package/upstream.js +40 -0
- package/upstream.js.map +1 -0
- package/upstream.ts +57 -0
- package/version-view.js +57 -0
- package/version-view.js.map +1 -0
- package/version-view.ts +99 -0
- package/versions.js +231 -0
- package/versions.js.map +1 -0
- package/versions.ts +367 -0
- package/visit-counts.js +123 -0
- package/visit-counts.js.map +1 -0
- package/visit-counts.ts +162 -0
- package/visitor-location.js +33 -0
- package/visitor-location.js.map +1 -0
- package/visitor-location.ts +38 -0
- package/visitor.js +152 -0
- package/visitor.js.map +1 -0
- package/visitor.ts +228 -0
- package/visits-browser.js +71 -0
- package/visits-browser.js.map +1 -0
- package/visits-browser.ts +87 -0
- package/visits-view.js +88 -0
- package/visits-view.js.map +1 -0
- package/visits-view.ts +184 -0
- package/visits.js +428 -0
- package/visits.js.map +1 -0
- package/visits.ts +561 -0
- package/vocab/account.vocab.json +349 -0
- package/vocab/agents.vocab.json +64 -0
- package/vocab/app-canvas.vocab.json +137 -0
- package/vocab/app-friends.vocab.json +71 -0
- package/vocab/app-permissions.vocab.json +46 -0
- package/vocab/apps.vocab.json +553 -0
- package/vocab/attribution.vocab.json +32 -0
- package/vocab/builder-install.vocab.json +10 -0
- package/vocab/connections.vocab.json +128 -0
- package/vocab/dashboard.vocab.json +148 -0
- package/vocab/directory.vocab.json +2445 -0
- package/vocab/exception.vocab.json +18 -0
- package/vocab/fundraising.vocab.json +284 -0
- package/vocab/gmail-mailbox.vocab.json +73 -0
- package/vocab/kernel.vocab.json +420 -0
- package/vocab/mcp-retirement.vocab.json +66 -0
- package/vocab/meter.vocab.json +230 -0
- package/vocab/models-install.vocab.json +10 -0
- package/vocab/notices.vocab.json +88 -0
- package/vocab/operator-drafts.vocab.json +19 -0
- package/vocab/operator-matches.vocab.json +85 -0
- package/vocab/operator-settings.vocab.json +127 -0
- package/vocab/operator-talk.vocab.json +92 -0
- package/vocab/operator.vocab.json +1314 -0
- package/vocab/outreach.vocab.json +141 -0
- package/vocab/pages.vocab.json +38 -0
- package/vocab/payment.vocab.json +271 -0
- package/vocab/people.vocab.json +337 -0
- package/vocab/presence.vocab.json +19 -0
- package/vocab/preview.vocab.json +66 -0
- package/vocab/referenced.vocab.json +17 -0
- package/vocab/referral.vocab.json +272 -0
- package/vocab/refusals.vocab.json +16 -0
- package/vocab/registration.vocab.json +17 -0
- package/vocab/serving.vocab.json +103 -0
- package/vocab/side.vocab.json +97 -0
- package/vocab/space-apps.vocab.json +137 -0
- package/vocab/space-pages.vocab.json +416 -0
- package/vocab/sweep-install.vocab.json +10 -0
- package/vocab/sweep.vocab.json +125 -0
- package/vocab/trash.vocab.json +19 -0
- package/vocab/update.vocab.json +53 -0
- package/vocab/upload.vocab.json +69 -0
- package/vocab/use.vocab.json +93 -0
- package/vocab/visits.vocab.json +143 -0
- package/vocab/waiting.vocab.json +29 -0
- package/vocab.js +16 -0
- package/vocab.js.map +1 -0
- package/vocab.json +1703 -0
- package/vocab.ts +17 -0
- package/weigh-graph.js +12 -0
- package/weigh-graph.js.map +1 -0
- package/weigh-graph.ts +9 -0
- package/wire-news.js +30 -0
- package/wire-news.js.map +1 -0
- package/wire-news.ts +30 -0
- package/work-standing.js +64 -0
- package/work-standing.js.map +1 -0
- package/work-standing.ts +44 -0
- package/woven.js +435 -0
- package/woven.js.map +1 -0
- package/woven.ts +649 -0
- package/wrap-graph.js +17 -0
- package/wrap-graph.js.map +1 -0
- package/wrap-graph.ts +15 -0
- package/write-owner.js +11 -0
- package/write-owner.js.map +1 -0
- package/write-owner.ts +24 -0
package/home/sky.js
ADDED
|
@@ -0,0 +1,930 @@
|
|
|
1
|
+
// The sky behind the home page's hero (site/sky.tsx draws it, style.css
|
|
2
|
+
// `.Sky` lays it out).
|
|
3
|
+
//
|
|
4
|
+
// The scene is laid out from five lengths measured here and set on it: --u,
|
|
5
|
+
// a 128th of his slot; --x and --feet, the middle of his figure and the line
|
|
6
|
+
// he sits on, on the page (<.Sky data-sink> of his units above the bottom of
|
|
7
|
+
// his hooves); --rule and --rule2, the pencil lines above and below the
|
|
8
|
+
// section after the hero.
|
|
9
|
+
//
|
|
10
|
+
// As the page scrolls, each layer of the scene goes up the window, by less
|
|
11
|
+
// the farther back it is: a layer's <data-depth> is the share of the scroll
|
|
12
|
+
// it sinks by (sky.tsx `DEPTH`), set on it as --sink, in his units. So the
|
|
13
|
+
// hills go up a little slower than the line he sits on, the dusk sky and its
|
|
14
|
+
// sun slower still, and the hills rise over the sun; the night sky hardly
|
|
15
|
+
// moves at all. --dusk, set on the air, goes from 0 at the top of the page to
|
|
16
|
+
// 1 once the line he sits on reaches the top of the window, and the dusk
|
|
17
|
+
// turns from blue to orange with it. A sun or moon set in the page's words
|
|
18
|
+
// (<data-sun-at>, <data-moon-at>) goes down the one way across the sky
|
|
19
|
+
// (`arcOf`) as the page scrolls, and is under the line by then.
|
|
20
|
+
//
|
|
21
|
+
// At dusk, birds fly by now and then (<.Sky data-birds="most lo hi low
|
|
22
|
+
// high">: how many in a flock at most, the seconds between flocks, and how
|
|
23
|
+
// high they fly, in his units above the line). At night a shooting star
|
|
24
|
+
// crosses now and then (<.Sky data-shoot="lo hi">, the seconds between
|
|
25
|
+
// them). When he sits down out in the margin (wander.js `sat`) he holds up
|
|
26
|
+
// the Start Free button, slid along its post to stay in the window, and he
|
|
27
|
+
// lowers it as he gets up (`rise`), before he walks.
|
|
28
|
+
//
|
|
29
|
+
// A touch on the sky: a touch on the sun or the moon turns the sky once
|
|
30
|
+
// around, through the other scene and back to where it was (`spin`), the
|
|
31
|
+
// sun and the moon both going the one way across it, stars
|
|
32
|
+
// brighten as a pointer passes them, and a tap on the night sky sends a
|
|
33
|
+
// shooting star through it from beyond the window's edge. A touch on words
|
|
34
|
+
// or a control is the page's, not the sky's. For anyone who asks for less
|
|
35
|
+
// motion nothing in the sky moves or brightens: a few birds hang in the
|
|
36
|
+
// dusk, a touch on the sun or the moon fades to the other scene and back,
|
|
37
|
+
// and that is all. He sits as the logo then, with the button beside him.
|
|
38
|
+
{
|
|
39
|
+
let slot = document.querySelector('.Hello_Yak')
|
|
40
|
+
let after = document.querySelector('.Sky_End, .Yours')
|
|
41
|
+
let sky = document.querySelector('.Sky')
|
|
42
|
+
let active = () => sky?.isConnected && !sky.closest('[inert]')
|
|
43
|
+
let calm = matchMedia('(prefers-reduced-motion: reduce)')
|
|
44
|
+
let dark = matchMedia('(prefers-color-scheme: dark)')
|
|
45
|
+
let sink = Number(sky?.dataset.sink ?? 0)
|
|
46
|
+
|
|
47
|
+
let between = (lo, hi) => lo + Math.random() * (hi - lo)
|
|
48
|
+
let n1 = (v) => v.toFixed(1)
|
|
49
|
+
// `f` now and then: every `lo` to `hi` seconds, first after `wait`
|
|
50
|
+
let often = (f, lo, hi, wait = between(lo, hi)) =>
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
if (!sky?.isConnected) return
|
|
53
|
+
f()
|
|
54
|
+
often(f, lo, hi)
|
|
55
|
+
}, wait * 1000)
|
|
56
|
+
|
|
57
|
+
let layers = [...(sky?.querySelectorAll('[data-depth]') ?? [])].map(
|
|
58
|
+
(el) => ({ el, depth: Number(el.dataset.depth) }),
|
|
59
|
+
)
|
|
60
|
+
let air = sky?.querySelector('.Sky_Air')
|
|
61
|
+
let deep = sky?.querySelector('.Sky_Deep')
|
|
62
|
+
let sun = sky?.querySelector('.Sky_Sun')
|
|
63
|
+
let halo = sky?.querySelector('.Sky_Halo')
|
|
64
|
+
let sunAt = document.querySelector('[data-sun-at]')
|
|
65
|
+
let moonAt = document.querySelector('[data-moon-at]')
|
|
66
|
+
let lights = [
|
|
67
|
+
[sunAt, sky?.querySelector('.Sky_Sol'), sun],
|
|
68
|
+
[moonAt, sky?.querySelector('.Sky_Luna'), halo],
|
|
69
|
+
]
|
|
70
|
+
let center = (slot) => {
|
|
71
|
+
let { left, width, top, height } = slot.getBoundingClientRect()
|
|
72
|
+
return [left + width / 2, top + height / 2]
|
|
73
|
+
}
|
|
74
|
+
let u = 1, feet = 1
|
|
75
|
+
// how far the layer `el` is in has sunk, in his units
|
|
76
|
+
let sunk = (el) =>
|
|
77
|
+
calm.matches
|
|
78
|
+
? 0
|
|
79
|
+
: Number(el.closest('[data-depth]')?.dataset.depth ?? 0) * scrollY / u
|
|
80
|
+
// The one way the sun and the moon go across the sky, on the page: the
|
|
81
|
+
// circle about a point on the line he sits on through the moon's spot and
|
|
82
|
+
// the sun's, from where it comes into the sky, through the moon's spot and
|
|
83
|
+
// then the sun's, to where it has gone under the line, `under` below it.
|
|
84
|
+
// On a wheel the two ride round, half a turn apart, a point is `point(s)`
|
|
85
|
+
// (and whether it is in the sky) `s` of a turn on from the sun's spot: the
|
|
86
|
+
// moon's is at `m`, and the way comes into the sky at -`e` and goes out at
|
|
87
|
+
// `d`. Each light is in the sky for under half a turn, so the two are
|
|
88
|
+
// never in it at once. While one is in the sky it goes round the `hub` at
|
|
89
|
+
// `rate`, in turns of its angle (up and to the right) to the wheel's.
|
|
90
|
+
let arcOf = (moon, sun, line, under) => {
|
|
91
|
+
let h = ([, y]) => line - y
|
|
92
|
+
let c = (moon[0] ** 2 + h(moon) ** 2 - sun[0] ** 2 - h(sun) ** 2) /
|
|
93
|
+
(2 * (moon[0] - sun[0] || .01))
|
|
94
|
+
let r = Math.hypot(sun[0] - c, h(sun))
|
|
95
|
+
let angle = (p) => Math.atan2(h(p), p[0] - c)
|
|
96
|
+
let am = angle(moon), as = angle(sun), dir = as < am ? -1 : 1
|
|
97
|
+
let below = Math.asin(Math.min(1, under / r))
|
|
98
|
+
// the top of the sky, as far round as it reaches
|
|
99
|
+
let reach = (line + under) / r, top = reach < 1 && Math.asin(reach)
|
|
100
|
+
let rise = dir < 0
|
|
101
|
+
? top && am < top ? top : Math.PI + below
|
|
102
|
+
: top && am > Math.PI - top
|
|
103
|
+
? Math.PI - top
|
|
104
|
+
: -below
|
|
105
|
+
let set = dir < 0 ? -below : Math.PI + below
|
|
106
|
+
let span = Math.abs(set - rise), between = Math.abs(as - am) / span
|
|
107
|
+
let seen = .45 / (1 + between)
|
|
108
|
+
let e = seen * Math.abs(as - rise) / span,
|
|
109
|
+
d = seen * Math.abs(set - as) / span
|
|
110
|
+
let point = (s) => {
|
|
111
|
+
let on = ((s + e) % 1 + 1) % 1 - e, shown = on <= d
|
|
112
|
+
let a = shown
|
|
113
|
+
? as + dir * on / seen * span
|
|
114
|
+
: on < (d + 1 - e) / 2
|
|
115
|
+
? set
|
|
116
|
+
: rise
|
|
117
|
+
return [c + r * Math.cos(a), line - r * Math.sin(a), shown]
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
e,
|
|
121
|
+
d,
|
|
122
|
+
m: -seen * between,
|
|
123
|
+
point,
|
|
124
|
+
hub: [c, line],
|
|
125
|
+
rate: dir * span / seen,
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// where a light stands on the page: its spot in the page's words, or its
|
|
129
|
+
// circle in the sky
|
|
130
|
+
let spot = (slot, el) => {
|
|
131
|
+
let [x, y] = slot ? center(slot) : circle(el)
|
|
132
|
+
return [x + scrollX, y + scrollY]
|
|
133
|
+
}
|
|
134
|
+
// As the page scrolls, the light that is up goes down the way across the
|
|
135
|
+
// sky, and is under the line once the line reaches the top of the window
|
|
136
|
+
// (`hour` of the way there). Only the lights in the page's words go: the
|
|
137
|
+
// others are in the sky's layers, which the hills rise over.
|
|
138
|
+
let arc, hour = 0, drift = { sun: [0, 0], moon: [0, 0] }
|
|
139
|
+
let risen = ({ m, d }) => arc ? [hour * d, m + hour * (d - m)] : [0, m]
|
|
140
|
+
let scroll = () => {
|
|
141
|
+
// Reading the position after a layer changes can force layout again.
|
|
142
|
+
let y = scrollY, down = calm.matches ? 0 : y / u
|
|
143
|
+
for (let { el, depth } of layers) {
|
|
144
|
+
el.style.setProperty('--sink', n1(depth * down))
|
|
145
|
+
}
|
|
146
|
+
let dusk = Math.min(1, y / feet)
|
|
147
|
+
air?.style.setProperty('--dusk', dusk.toFixed(3))
|
|
148
|
+
hour = calm.matches ? 0 : dusk
|
|
149
|
+
if (ready && ready.hour !== hour) later()
|
|
150
|
+
if (!arc) return
|
|
151
|
+
let [sunQ, moonQ] = risen(arc)
|
|
152
|
+
for (
|
|
153
|
+
let [name, q, rest, group] of [
|
|
154
|
+
['sun', sunQ, 0, lights[0][1]],
|
|
155
|
+
['moon', moonQ, arc.m, lights[1][1]],
|
|
156
|
+
]
|
|
157
|
+
) {
|
|
158
|
+
let [x, y] = arc.point(q), [x0, y0] = arc.point(rest)
|
|
159
|
+
drift[name] = [x - x0, y - y0]
|
|
160
|
+
group.style.translate = `${n1((x - x0) / u)}px ${n1((y - y0) / u)}px`
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let place = () => {
|
|
164
|
+
if (!active()) return
|
|
165
|
+
let r = slot.getBoundingClientRect(), n = after.getBoundingClientRect()
|
|
166
|
+
if (!r.width) return
|
|
167
|
+
let set = (name, px) => sky.style.setProperty(name, px.toFixed(2) + 'px')
|
|
168
|
+
u = r.width / 128
|
|
169
|
+
feet = Math.max(1, r.top + scrollY + r.height * .89 - sink * u)
|
|
170
|
+
set('--u', u)
|
|
171
|
+
let x = r.left + scrollX + r.width * .52
|
|
172
|
+
set('--x', x)
|
|
173
|
+
set('--feet', feet)
|
|
174
|
+
for (let [slot, group, disk] of lights) {
|
|
175
|
+
if (!slot || !group || !disk) continue
|
|
176
|
+
let [px, py] = center(slot)
|
|
177
|
+
let cx = Number(disk.getAttribute('cx')),
|
|
178
|
+
cy = Number(disk.getAttribute('cy'))
|
|
179
|
+
group.setAttribute(
|
|
180
|
+
'transform',
|
|
181
|
+
`translate(${n1((px + scrollX - x) / u - cx)} ${
|
|
182
|
+
n1((py + scrollY - feet) / u - cy)
|
|
183
|
+
})`,
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
set('--rule', n.top + scrollY + 1)
|
|
187
|
+
set('--rule2', n.bottom + scrollY - .5)
|
|
188
|
+
let [sunSlot, sunGroup] = lights[0], [moonSlot, moonGroup] = lights[1]
|
|
189
|
+
arc = sunSlot && moonSlot && sunGroup && moonGroup
|
|
190
|
+
? arcOf(spot(moonSlot), spot(sunSlot), feet, 90 * u)
|
|
191
|
+
: null
|
|
192
|
+
face()
|
|
193
|
+
scroll()
|
|
194
|
+
ready = null
|
|
195
|
+
later()
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// The sky's things where they are in the window: `at(x, y)` is a point in
|
|
199
|
+
// his units, from the far scene's box, and `unit` the other way.
|
|
200
|
+
let far = sky?.querySelector('.Sky_Far')
|
|
201
|
+
let at = (x, y) => {
|
|
202
|
+
let b = far.getBoundingClientRect(), k = b.width / 6000
|
|
203
|
+
return [b.left + (x + 3000) * k, b.top + (y + 800) * k, k]
|
|
204
|
+
}
|
|
205
|
+
let unit = ([px, py]) => {
|
|
206
|
+
let b = far.getBoundingClientRect(), k = b.width / 6000
|
|
207
|
+
return [(px - b.left) / k - 3000, (py - b.top) / k - 800]
|
|
208
|
+
}
|
|
209
|
+
// a shape of the sky's, drawn into one of its groups
|
|
210
|
+
let draw = (name, attrs, into) => {
|
|
211
|
+
let el = document.createElementNS('http://www.w3.org/2000/svg', name)
|
|
212
|
+
for (let [k, v] of Object.entries(attrs)) el.setAttribute(k, v)
|
|
213
|
+
into.append(el)
|
|
214
|
+
return el
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// A bird is one filled shape, drawn again every frame from a small model
|
|
218
|
+
// of one seen from ahead of it and below: x along its body, y up, z along
|
|
219
|
+
// its wings toward us, in his units. `see` is where a point of it lands.
|
|
220
|
+
const YAW = .95, UNDER = .26
|
|
221
|
+
let see = ([x, y, z]) => {
|
|
222
|
+
let deep = x * Math.sin(YAW) + z * Math.cos(YAW)
|
|
223
|
+
return [x * Math.cos(YAW) - z * Math.sin(YAW), deep * Math.sin(UNDER) - y]
|
|
224
|
+
}
|
|
225
|
+
let pt = ([x, y]) => n1(x) + ' ' + n1(y)
|
|
226
|
+
// the curve from a to b that passes through m
|
|
227
|
+
let via = (a, m, b) =>
|
|
228
|
+
`Q${pt([0, 1].map((i) => 2 * m[i] - (a[i] + b[i]) / 2))} ${pt(b)}`
|
|
229
|
+
// a wing on side `s` (1 is the one nearer us), its arm raised `a` and its
|
|
230
|
+
// hand `b`: the leading edge out through the wrist to the tip, and the
|
|
231
|
+
// trailing edge back
|
|
232
|
+
let wing = (s, a, b) => {
|
|
233
|
+
let S = [1.2, .3, s * .6]
|
|
234
|
+
let W = [S[0] + .9, S[1] + 5 * Math.sin(a), S[2] + s * 5 * Math.cos(a)]
|
|
235
|
+
let T = [W[0] - 2.8, W[1] + 6.5 * Math.sin(b), W[2] + s * 6.5 * Math.cos(b)]
|
|
236
|
+
let [p, w, t, v, q] = [S, W, T, [W[0] - 2.6, W[1], W[2]], [
|
|
237
|
+
S[0] - 3.4,
|
|
238
|
+
S[1],
|
|
239
|
+
S[2],
|
|
240
|
+
]].map(see)
|
|
241
|
+
return `M${pt(p)}${via(p, w, t)}${via(t, v, q)}Z`
|
|
242
|
+
}
|
|
243
|
+
let [TAIL, HEAD] = [[-3.6, 0, 0], [3.8, 0, 0]].map(see)
|
|
244
|
+
let round = `A${
|
|
245
|
+
n1(Math.hypot(HEAD[0] - TAIL[0], HEAD[1] - TAIL[1]) / 2)
|
|
246
|
+
} 1.1 ${
|
|
247
|
+
n1(Math.atan2(HEAD[1] - TAIL[1], HEAD[0] - TAIL[0]) * 180 / Math.PI)
|
|
248
|
+
} 0 1 `
|
|
249
|
+
const BODY = `M${pt(TAIL)}${round}${pt(HEAD)}${round}${pt(TAIL)}Z`
|
|
250
|
+
|
|
251
|
+
// A bird beats its wings a few times and glides: how it holds its arm and
|
|
252
|
+
// its hand `t` seconds in, the hand a little behind the arm, and how far
|
|
253
|
+
// the beat has dropped its body.
|
|
254
|
+
let hold = (b, t) => {
|
|
255
|
+
let flap = b.beats * b.beat, at = (t + b.lead) % (flap + b.glide)
|
|
256
|
+
let e = at < flap
|
|
257
|
+
? Math.min(1, 2 * at / b.beat, 2 * (flap - at) / b.beat)
|
|
258
|
+
: 0
|
|
259
|
+
e *= e * (3 - 2 * e)
|
|
260
|
+
let turn = 2 * Math.PI * at / b.beat
|
|
261
|
+
let arm = .3 + e * .6 * Math.sin(turn)
|
|
262
|
+
return [
|
|
263
|
+
arm,
|
|
264
|
+
arm - .42 + e * .5 * Math.sin(turn - 1.1),
|
|
265
|
+
e * 1.2 * Math.sin(turn),
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
// the bird at (x, y), headed `dir` (1 to the right) with its nose `lean`
|
|
269
|
+
// degrees down
|
|
270
|
+
let pose = (b, t, x, y, dir = 1, lean = 0) => {
|
|
271
|
+
let [arm, hand, drop] = hold(b, t)
|
|
272
|
+
b.el.setAttribute('d', wing(-1, arm, hand) + BODY + wing(1, arm, hand))
|
|
273
|
+
b.el.setAttribute(
|
|
274
|
+
'transform',
|
|
275
|
+
`translate(${n1(x)} ${n1(y + drop)}) rotate(${n1(dir * lean)}) scale(${
|
|
276
|
+
n1(dir * b.size)
|
|
277
|
+
} ${n1(b.size)})`,
|
|
278
|
+
)
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// a loose V behind the first bird, each one farther back a little smaller,
|
|
282
|
+
// fainter and out of step
|
|
283
|
+
let roost = sky?.querySelector('.Sky_Birds')
|
|
284
|
+
let [most, lo, hi, low, high] = (sky?.dataset.birds ?? '').split(' ').map(
|
|
285
|
+
Number,
|
|
286
|
+
)
|
|
287
|
+
let flock = (n) =>
|
|
288
|
+
Array.from({ length: n }, (_, i) => {
|
|
289
|
+
let side = i % 2 ? 1 : -1, rank = Math.ceil(i / 2)
|
|
290
|
+
return {
|
|
291
|
+
el: draw('path', { class: 'Sky_Bird', opacity: 1 - .07 * rank }, roost),
|
|
292
|
+
back: rank * between(20, 27),
|
|
293
|
+
off: side * rank * between(8, 12),
|
|
294
|
+
size: (1.25 - .07 * i) * between(.9, 1.1),
|
|
295
|
+
beat: between(.42, .52),
|
|
296
|
+
beats: 3 + Math.floor(Math.random() * 4),
|
|
297
|
+
glide: between(.8, 2.2),
|
|
298
|
+
lead: between(0, 5),
|
|
299
|
+
sway: between(0, 6.3),
|
|
300
|
+
}
|
|
301
|
+
})
|
|
302
|
+
|
|
303
|
+
// A flock crosses the window along one long swell of a path, each bird
|
|
304
|
+
// following the first along it and wandering a little in its place.
|
|
305
|
+
let fly = () => {
|
|
306
|
+
let [x0, top] = unit([0, 0]), [x1, bottom] = unit([innerWidth, innerHeight])
|
|
307
|
+
let y0 = -between(low, high)
|
|
308
|
+
// only at dusk, while the sky is in view, and the tab is
|
|
309
|
+
if (document.hidden || dark.matches || y0 < top || y0 > bottom) return
|
|
310
|
+
let dir = Math.random() < .7 ? 1 : -1
|
|
311
|
+
let birds = flock(1 + Math.floor(Math.random() * most))
|
|
312
|
+
let from = dir > 0 ? x0 - 30 : x1 + 30, way = x1 - x0 + 160
|
|
313
|
+
let speed = between(46, 60), climb = between(-24, 16) / way
|
|
314
|
+
let swell = between(0, 6.3)
|
|
315
|
+
let t = 0, last
|
|
316
|
+
let frame = (now) => {
|
|
317
|
+
if (!roost.isConnected) return
|
|
318
|
+
t += Math.min(now - (last ?? now), 50) / 1000
|
|
319
|
+
last = now
|
|
320
|
+
if (speed * t > way) return birds.forEach((b) => b.el.remove())
|
|
321
|
+
for (let b of birds) {
|
|
322
|
+
let gone = speed * t - b.back + 3 * Math.sin(t / 1.3 + b.sway)
|
|
323
|
+
let wave = gone / 90 + swell
|
|
324
|
+
pose(
|
|
325
|
+
b,
|
|
326
|
+
t,
|
|
327
|
+
from + dir * gone,
|
|
328
|
+
y0 + b.off + climb * gone + 5 * Math.sin(wave) +
|
|
329
|
+
2 * Math.sin(t / 1.7 + 2 * b.sway),
|
|
330
|
+
dir,
|
|
331
|
+
Math.atan(climb + Math.cos(wave) / 18) * 180 / Math.PI,
|
|
332
|
+
)
|
|
333
|
+
}
|
|
334
|
+
requestAnimationFrame(frame)
|
|
335
|
+
}
|
|
336
|
+
requestAnimationFrame(frame)
|
|
337
|
+
}
|
|
338
|
+
if (slot && roost && most) {
|
|
339
|
+
// for anyone who asks for less motion, a few hang in the dusk instead
|
|
340
|
+
if (calm.matches) {
|
|
341
|
+
for (let b of flock(4)) pose(b, 0, 150 - b.back, -230 + b.off)
|
|
342
|
+
} else often(fly, lo, hi, between(3, 6))
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// the button: brought out when he sits in the margin, lowered when he
|
|
346
|
+
// gets up, and gone when he is home
|
|
347
|
+
let SIGN =
|
|
348
|
+
'<span class="Sign"><a href="/login" class="Surface_Press Button Button-go Sign_Button" data-cta="yak">Start Free</a></span>'
|
|
349
|
+
let EDGE = 8 // css px the button keeps from the window's sides
|
|
350
|
+
let sign
|
|
351
|
+
addEventListener('sat', (e) => {
|
|
352
|
+
if (!sign) {
|
|
353
|
+
let t = document.createElement('template')
|
|
354
|
+
t.innerHTML = SIGN
|
|
355
|
+
sign = t.content.firstChild
|
|
356
|
+
}
|
|
357
|
+
e.target.append(sign)
|
|
358
|
+
e.target.removeAttribute('aria-hidden')
|
|
359
|
+
delete sign.dataset.away
|
|
360
|
+
sign.dataset.out = ''
|
|
361
|
+
// it stands centred over him, slid along so all of it is in the window
|
|
362
|
+
// and clear of the words (e.detail, where they begin); where the margin
|
|
363
|
+
// is narrower than it, its words stack, Start over Free
|
|
364
|
+
let r = e.target.getBoundingClientRect(), mid = r.left + r.width / 2
|
|
365
|
+
let lo = EDGE, hi = Math.min(innerWidth, e.detail ?? innerWidth) - EDGE
|
|
366
|
+
delete sign.dataset.narrow
|
|
367
|
+
if (sign.offsetWidth > hi - lo) sign.dataset.narrow = ''
|
|
368
|
+
let w = sign.offsetWidth, at = mid - w / 2
|
|
369
|
+
let shift = Math.max(lo, Math.min(at, hi - w)) - at
|
|
370
|
+
sign.style.setProperty('--shift', `${shift.toFixed(1)}px`)
|
|
371
|
+
}, true)
|
|
372
|
+
// for anyone who asks for less motion he never walks: he sits as the logo
|
|
373
|
+
// with the button already beside him, where there is room for it
|
|
374
|
+
if (slot && calm.matches && matchMedia('(min-width: 40rem)').matches) {
|
|
375
|
+
let t = document.createElement('template')
|
|
376
|
+
t.innerHTML = SIGN
|
|
377
|
+
slot.append(t.content.firstChild)
|
|
378
|
+
}
|
|
379
|
+
let lower = () => {
|
|
380
|
+
if (sign?.dataset.out == null) return
|
|
381
|
+
delete sign.dataset.out
|
|
382
|
+
sign.dataset.away = ''
|
|
383
|
+
}
|
|
384
|
+
addEventListener('rise', lower, true)
|
|
385
|
+
addEventListener('home', () => {
|
|
386
|
+
if (sign) delete sign.dataset.out, delete sign.dataset.away
|
|
387
|
+
}, true)
|
|
388
|
+
|
|
389
|
+
// where a circle of the sky's is in the window, as far down as its layer
|
|
390
|
+
// has sunk
|
|
391
|
+
let circle = (el) =>
|
|
392
|
+
at(Number(el.getAttribute('cx')), Number(el.getAttribute('cy')) + sunk(el))
|
|
393
|
+
|
|
394
|
+
// what a touch at (px, py) lands on: the sun, the moon, or the sky; a
|
|
395
|
+
// touch within a finger's width of either counts
|
|
396
|
+
let moon = sky?.querySelector('.Sky_Moon')
|
|
397
|
+
let near = (el, r, px, py) => {
|
|
398
|
+
let [slot, name] = el === halo ? [moonAt, 'moon'] : [sunAt, 'sun']
|
|
399
|
+
let [x, y, k] = slot ? [...center(slot), u] : circle(el)
|
|
400
|
+
if (slot) x += drift[name][0], y += drift[name][1]
|
|
401
|
+
return Math.hypot(px - x, py - y) <= Math.max(r * k * 1.4, 22)
|
|
402
|
+
}
|
|
403
|
+
let over = (px, py) =>
|
|
404
|
+
dark.matches
|
|
405
|
+
? near(halo, 24, px, py) && 'moon'
|
|
406
|
+
: near(sun, Number(sun.getAttribute('r')), px, py) && 'sun'
|
|
407
|
+
|
|
408
|
+
// a touch is the sky's when it lands on nothing of the page's: no control,
|
|
409
|
+
// and no words of an element's own
|
|
410
|
+
let CONTROLS = 'a, button, input, textarea, select, label, summary, ' +
|
|
411
|
+
'[tabindex], [contenteditable], .Card, .Demo, .Wander, [data-wander]'
|
|
412
|
+
let worded = (el) =>
|
|
413
|
+
[...el.childNodes].some((n) => n.nodeType == 3 && n.data.trim())
|
|
414
|
+
let page = (el) => !el || el.closest?.(CONTROLS) || worded(el)
|
|
415
|
+
|
|
416
|
+
// a shooting star's tail, back from its head at the origin
|
|
417
|
+
const STREAK = 'M0 -1.3L-130 0L0 1.3Z'
|
|
418
|
+
// A shooting star from one point to another, in his units: its head runs
|
|
419
|
+
// the way, its tail growing behind it and drawn back in as it burns out.
|
|
420
|
+
// It is drawn into the night sky, so as far up as the sky has sunk.
|
|
421
|
+
let shoot = ([x, y], [x2, y2], size = 1) => {
|
|
422
|
+
let down = sunk(deep)
|
|
423
|
+
y -= down, y2 -= down
|
|
424
|
+
let way = Math.hypot(x2 - x, y2 - y) / size
|
|
425
|
+
let turn = Math.atan2(y2 - y, x2 - x) * 180 / Math.PI
|
|
426
|
+
let star = draw('g', {
|
|
427
|
+
class: 'Sky_Shoot',
|
|
428
|
+
transform: `translate(${n1(x)} ${n1(y)}) rotate(${n1(turn)}) scale(${
|
|
429
|
+
n1(size)
|
|
430
|
+
})`,
|
|
431
|
+
}, deep)
|
|
432
|
+
let run = draw('g', { class: 'Sky_Run' }, star)
|
|
433
|
+
let tail = draw('path', {
|
|
434
|
+
class: 'Sky_Tail',
|
|
435
|
+
fill: 'url(#Sky-tail)',
|
|
436
|
+
d: STREAK,
|
|
437
|
+
}, run)
|
|
438
|
+
draw('circle', { class: 'Sky_Flare', fill: 'url(#Sky-halo)', r: 8 }, run)
|
|
439
|
+
draw('circle', { class: 'Sky_Head', r: 1.5 }, run)
|
|
440
|
+
let duration = Math.min(Math.max(way / .85, 550), 1300)
|
|
441
|
+
tail.animate([
|
|
442
|
+
{ transform: 'scaleX(0)' },
|
|
443
|
+
{ transform: 'scaleX(1)', offset: .35 },
|
|
444
|
+
{ transform: 'scaleX(1)', offset: .65 },
|
|
445
|
+
{ transform: 'scaleX(0)' },
|
|
446
|
+
], duration)
|
|
447
|
+
run.animate([
|
|
448
|
+
{ opacity: 0, translate: '0 0' },
|
|
449
|
+
{ opacity: 1, offset: .12 },
|
|
450
|
+
{ opacity: 1, offset: .7 },
|
|
451
|
+
{ opacity: 0, translate: n1(way) + 'px 0' },
|
|
452
|
+
], { duration, easing: 'cubic-bezier(.25, .5, .45, 1)' }).onfinish = () =>
|
|
453
|
+
star.remove()
|
|
454
|
+
}
|
|
455
|
+
// one that falls through (px, py) in the window: from beyond the window's
|
|
456
|
+
// edge, through the point, and on a way
|
|
457
|
+
let through = (px, py) => {
|
|
458
|
+
let fall = between(.35, .8), dir = Math.random() < .5 ? 1 : -1
|
|
459
|
+
let dx = dir * Math.cos(fall), dy = Math.sin(fall)
|
|
460
|
+
let back = 30 +
|
|
461
|
+
Math.min(py / dy, (dir > 0 ? px : innerWidth - px) / Math.cos(fall))
|
|
462
|
+
let on = Math.max(back * between(.4, .7), 140)
|
|
463
|
+
shoot(
|
|
464
|
+
unit([px - dx * back, py - dy * back]),
|
|
465
|
+
unit([px + dx * on, py + dy * on]),
|
|
466
|
+
)
|
|
467
|
+
}
|
|
468
|
+
// one somewhere above the hills, while they are in view
|
|
469
|
+
let star = () => {
|
|
470
|
+
let [x0, top] = unit([0, 0]), [x1] = unit([innerWidth, 0])
|
|
471
|
+
if (top > -240) return
|
|
472
|
+
let fall = between(.3, .75), dir = Math.random() < .5 ? 1 : -1
|
|
473
|
+
let way = between(200, 420), wide = x1 - x0
|
|
474
|
+
let x = between(x0 + wide * .1, x1 - wide * .1)
|
|
475
|
+
let y = between(Math.max(top, -780) + 15, -200)
|
|
476
|
+
shoot(
|
|
477
|
+
[x, y],
|
|
478
|
+
[x + dir * way * Math.cos(fall), y + way * Math.sin(fall)],
|
|
479
|
+
between(.7, 1.1),
|
|
480
|
+
)
|
|
481
|
+
}
|
|
482
|
+
// and one of its own now and then, while the night sky is in view and the
|
|
483
|
+
// tab is
|
|
484
|
+
let wish = () => !document.hidden && dark.matches && star()
|
|
485
|
+
let [rare, rarer] = (sky?.dataset.shoot ?? '').split(' ').map(Number)
|
|
486
|
+
if (deep && far && rare && !calm.matches) {
|
|
487
|
+
often(wish, rare, rarer, between(5, 12))
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// One turn of the sky, from the scene it shows through the other and back.
|
|
491
|
+
// The sun and the moon go the one way across the sky (`arcOf`) and ride one
|
|
492
|
+
// wheel round, half a turn apart: from the day the sun sets, the moon comes
|
|
493
|
+
// down into its spot as the night is deepest, goes on and sets, and the sun
|
|
494
|
+
// comes back down to its own; from the night it is the same way round, the
|
|
495
|
+
// moon first. The light follows the sun: the day's things show as it is up
|
|
496
|
+
// and the night's as it is down, the twilight is clearest as it sets and as
|
|
497
|
+
// it comes back, and the hills, the grass, he and the words over them take
|
|
498
|
+
// the other scheme's colors as the night comes (or the day, from the
|
|
499
|
+
// night). Every move is drawn ahead as `STEPS` frames the browser plays,
|
|
500
|
+
// and all but the lights' once the page is idle (`prepare`), so a touch
|
|
501
|
+
// turns the sky at once. The stars ride the wheel too, streaked while it
|
|
502
|
+
// is fast (`wheel`). For anyone who asks for less motion nothing moves:
|
|
503
|
+
// the scene fades to the other and back.
|
|
504
|
+
const TURN = 3800, FADE = 1600, STEPS = 72, RAMP = .2
|
|
505
|
+
// what the light falls on, and what of it is painted otherwise in the other
|
|
506
|
+
// scheme
|
|
507
|
+
const LIT = '.Sky_Hills > path, [id^="Sky-hill-"] stop, .Sky_Turf0, .Sky_Line'
|
|
508
|
+
const PAINT = ['fill', 'stroke', 'stopColor']
|
|
509
|
+
// the words over the sky, the page's head and its hero, but not a
|
|
510
|
+
// control's, which keeps its own ground
|
|
511
|
+
const OWN = 'input, textarea, select, button, .Button, .Hello_Yak'
|
|
512
|
+
let inked = [...document.querySelectorAll('.Top, .Hello')]
|
|
513
|
+
let words = () =>
|
|
514
|
+
inked.flatMap((top) =>
|
|
515
|
+
[top, ...top.querySelectorAll('*')].filter((el) =>
|
|
516
|
+
!el.closest(OWN) && (el === top || worded(el))
|
|
517
|
+
)
|
|
518
|
+
)
|
|
519
|
+
// each of `sets` ([elements, properties]) painted otherwise in the other
|
|
520
|
+
// scheme, as [element, property, now, then]
|
|
521
|
+
let other = (sets) => {
|
|
522
|
+
let roots = [sky, ...inked]
|
|
523
|
+
let read = () =>
|
|
524
|
+
sets.map(([els, props]) =>
|
|
525
|
+
els.map((el) => {
|
|
526
|
+
let css = getComputedStyle(el)
|
|
527
|
+
return props.map((p) => css[p])
|
|
528
|
+
})
|
|
529
|
+
)
|
|
530
|
+
let now = read()
|
|
531
|
+
for (let r of roots) r.style.colorScheme = dark.matches ? 'light' : 'dark'
|
|
532
|
+
let then = read()
|
|
533
|
+
for (let r of roots) r.style.colorScheme = ''
|
|
534
|
+
return sets.flatMap(([els, props], k) =>
|
|
535
|
+
els.flatMap((el, i) =>
|
|
536
|
+
props.flatMap((p, j) => {
|
|
537
|
+
let a = now[k][i][j], b = then[k][i][j]
|
|
538
|
+
return a == b ? [] : [[el, p, a, b]]
|
|
539
|
+
})
|
|
540
|
+
)
|
|
541
|
+
)
|
|
542
|
+
}
|
|
543
|
+
let smooth = (lo, hi, v) => {
|
|
544
|
+
let t = Math.min(1, Math.max(0, (v - lo) / (hi - lo)))
|
|
545
|
+
return t * t * (3 - 2 * t)
|
|
546
|
+
}
|
|
547
|
+
// through each of `keys` ([at, value]) in turn, eased between them
|
|
548
|
+
let curve = (keys) => (at) => {
|
|
549
|
+
let i = keys.findIndex(([t]) => t >= at)
|
|
550
|
+
if (i <= 0) return keys[i < 0 ? keys.length - 1 : 0][1]
|
|
551
|
+
let [t0, v0] = keys[i - 1], [t1, v1] = keys[i]
|
|
552
|
+
return v0 + (v1 - v0) * smooth(t0, t1, at)
|
|
553
|
+
}
|
|
554
|
+
// the turn gathers speed over its first fifth and loses it over its last,
|
|
555
|
+
// and `pace` is how fast it goes, in turns to the turn
|
|
556
|
+
let ease = (s) => {
|
|
557
|
+
let v = 1 / (1 - RAMP)
|
|
558
|
+
return s < RAMP
|
|
559
|
+
? v * s * s / (2 * RAMP)
|
|
560
|
+
: s > 1 - RAMP
|
|
561
|
+
? 1 - v * (1 - s) ** 2 / (2 * RAMP)
|
|
562
|
+
: v * (s - RAMP / 2)
|
|
563
|
+
}
|
|
564
|
+
let pace = (s) => Math.min(1, s / RAMP, (1 - s) / RAMP) / (1 - RAMP)
|
|
565
|
+
// the way across the sky where the sun and the moon stand now
|
|
566
|
+
let across = () => {
|
|
567
|
+
let [, line, k] = at(0, 0)
|
|
568
|
+
return arc ??
|
|
569
|
+
arcOf(spot(null, halo), spot(null, sun), line + scrollY, 90 * k)
|
|
570
|
+
}
|
|
571
|
+
let glow = sky?.querySelector('.Sky_Glow')
|
|
572
|
+
// The moon is a crescent whose lit side faces where the sun went under
|
|
573
|
+
// the line (sky.tsx `moon`, lit to its left).
|
|
574
|
+
let face = () => {
|
|
575
|
+
let g = moon?.parentNode, { point, m, d } = across()
|
|
576
|
+
let [mx, my] = point(m), [sx, sy] = point(d)
|
|
577
|
+
let turn = n1(Math.atan2(my - sy, mx - sx) * 180 / Math.PI)
|
|
578
|
+
g?.setAttribute(
|
|
579
|
+
'transform',
|
|
580
|
+
g.getAttribute('transform').replace(/rotate\([^)]*\)/, `rotate(${turn})`),
|
|
581
|
+
)
|
|
582
|
+
}
|
|
583
|
+
let stars = [...(sky?.querySelectorAll('.Sky_Star') ?? [])]
|
|
584
|
+
|
|
585
|
+
// A turn, drawn for the scene the sky shows and staged to play: the light
|
|
586
|
+
// and its colors (`scene`), the lights from where they stand (`rides`,
|
|
587
|
+
// drawn again once the page has scrolled), and when the shooting stars go.
|
|
588
|
+
// Staging an animation reads its frames, which a phone takes a tenth of a
|
|
589
|
+
// second over, so it is done once the page is idle and not on a touch.
|
|
590
|
+
let stage = (el, frames, duration) =>
|
|
591
|
+
new Animation(
|
|
592
|
+
new KeyframeEffect(el, frames, {
|
|
593
|
+
duration,
|
|
594
|
+
easing: 'linear',
|
|
595
|
+
fill: 'forwards',
|
|
596
|
+
}),
|
|
597
|
+
)
|
|
598
|
+
let scene = (day, still) => {
|
|
599
|
+
// how light the sky is, 1 by day and 0 by night, as far round as the
|
|
600
|
+
// wheel has come: half the twilight as the sun goes under the line and
|
|
601
|
+
// as it comes back into the sky
|
|
602
|
+
let { d, e } = across()
|
|
603
|
+
let light = still
|
|
604
|
+
? (f) => (1 + (day ? 1 : -1) * Math.cos(2 * Math.PI * f)) / 2
|
|
605
|
+
: curve(
|
|
606
|
+
day
|
|
607
|
+
? [[0, 1], [d, .5], [.5, 0], [1 - e, .5], [1, 1]]
|
|
608
|
+
: [[0, 0], [.5 - e, .5], [.5, 1], [.5 + d, .5], [1, 0]],
|
|
609
|
+
)
|
|
610
|
+
let frames = Array.from({ length: STEPS + 1 }, (_, i) => {
|
|
611
|
+
let s = i / STEPS, f = still ? s : ease(s), l = light(f)
|
|
612
|
+
return { s, f, l, dusk: 4 * l * (1 - l) }
|
|
613
|
+
})
|
|
614
|
+
let runs = []
|
|
615
|
+
let play = (els, keys) => {
|
|
616
|
+
let all = frames.map(keys)
|
|
617
|
+
for (let el of els) if (el) runs.push(stage(el, all, still ? FADE : TURN))
|
|
618
|
+
}
|
|
619
|
+
let lights = '.Sky_Sol, .Sky_Luna'
|
|
620
|
+
let what = (name) =>
|
|
621
|
+
[...sky.querySelectorAll(name)].filter((el) =>
|
|
622
|
+
still || !el.matches(lights)
|
|
623
|
+
)
|
|
624
|
+
play(what('.Sky_Day'), (f) => ({ opacity: f.l }))
|
|
625
|
+
play(what('.Sky_Night'), (f) => ({ opacity: 1 - f.l }))
|
|
626
|
+
play([sky.querySelector('.Sky_Dark')], (f) => ({ opacity: 1 - f.l }))
|
|
627
|
+
if (!still) play([trails], (f) => ({ opacity: 1 - f.l }))
|
|
628
|
+
play(
|
|
629
|
+
[sky.querySelector('.Sky_Twilight')],
|
|
630
|
+
(f) => ({ opacity: .9 * f.dusk }),
|
|
631
|
+
)
|
|
632
|
+
// the other scheme's paint comes as its hour does, and the words' as
|
|
633
|
+
// the sky behind them goes from light to dark, the twilight darkening
|
|
634
|
+
// it too, so they stay clear of it
|
|
635
|
+
let from = day ? 1 : 0
|
|
636
|
+
let lit = [[[...sky.querySelectorAll(LIT)], PAINT], [words(), ['color']]]
|
|
637
|
+
for (let [el, p, now, then] of other(lit)) {
|
|
638
|
+
let part = (f) =>
|
|
639
|
+
p == 'color'
|
|
640
|
+
? Math.abs(1 - from - smooth(.35, .55, 1 - f.l + .5 * f.dusk))
|
|
641
|
+
: Math.abs(f.l - from)
|
|
642
|
+
play([el], (f) => ({
|
|
643
|
+
[p]: `color-mix(in srgb, ${now}, ${then} ${n1(100 * part(f))}%)`,
|
|
644
|
+
}))
|
|
645
|
+
}
|
|
646
|
+
// and he is in shadow while it is darker than the page
|
|
647
|
+
if (day) {
|
|
648
|
+
play(document.querySelectorAll('.Wander_Image'), (f) => ({
|
|
649
|
+
filter: `brightness(${(.7 + .3 * f.l).toFixed(3)})`,
|
|
650
|
+
}))
|
|
651
|
+
}
|
|
652
|
+
// a few shooting stars cross the deepest of the night
|
|
653
|
+
let starry = frames.filter((f) => f.l < .15)
|
|
654
|
+
let shots = still ? [] : [1, 3, 5, 7]
|
|
655
|
+
.map((q) => starry[Math.floor(starry.length * q / 8)])
|
|
656
|
+
.filter(Boolean)
|
|
657
|
+
return { day, still, runs, shots }
|
|
658
|
+
}
|
|
659
|
+
// each light from where it stands, the one not in the sky half a turn
|
|
660
|
+
// round, and the wheel turned once
|
|
661
|
+
let rides = (day) => {
|
|
662
|
+
let path = across(), k = at(0, 0)[2], [sunQ, moonQ] = risen(path)
|
|
663
|
+
let off = (v) => (Math.round(v / k * 10) / 10 + 0).toFixed(1)
|
|
664
|
+
let ride = (els, q, start) => {
|
|
665
|
+
let [x0, y0] = path.point(q)
|
|
666
|
+
let frames = Array.from({ length: STEPS + 1 }, (_, i) => {
|
|
667
|
+
let [x, y, shown] = path.point(start + ease(i / STEPS))
|
|
668
|
+
return {
|
|
669
|
+
translate: `${off(x - x0)}px ${off(y - y0)}px`,
|
|
670
|
+
opacity: shown ? 1 : 0,
|
|
671
|
+
}
|
|
672
|
+
})
|
|
673
|
+
return els.filter(Boolean).map((el) => stage(el, frames, TURN))
|
|
674
|
+
}
|
|
675
|
+
let sunlit = glow?.getAttribute('cy') == sun.getAttribute('cy')
|
|
676
|
+
return [
|
|
677
|
+
...ride([sun, sunlit && glow], sunQ, sunQ + (day ? 0 : .5)),
|
|
678
|
+
...ride([moon.parentNode, halo], moonQ, moonQ + (day ? .5 : 0)),
|
|
679
|
+
]
|
|
680
|
+
}
|
|
681
|
+
// The stars on the wheel: they go round its hub at the lights' rate and
|
|
682
|
+
// are where the page drew them as the night is deepest, so they set and
|
|
683
|
+
// rise as the lights do. While the sky turns they are drawn on a canvas
|
|
684
|
+
// of their own under the scene (`trails`, the size of the window), as
|
|
685
|
+
// turning them in the scene would draw all of it again every frame,
|
|
686
|
+
// which a phone cannot keep up with. Each is streaked back along its way
|
|
687
|
+
// as far as it went in the last `BLUR` seconds, up to `LONG` times as
|
|
688
|
+
// long as it is wide, with a shooting star's tail (`STREAK`, drawn once
|
|
689
|
+
// and laid along each), so the streaks grow as the turn gathers speed and
|
|
690
|
+
// draw back into points as it slows. The stars are drawn in `GLOWS` sets, each as bright as its
|
|
691
|
+
// stars are on average. `wheel` is what draws the turn `s` of the way
|
|
692
|
+
// round.
|
|
693
|
+
const BLUR = 1 / 60, LONG = 8, GLOWS = 3
|
|
694
|
+
let trails = sky?.querySelector('.Sky_Trails')
|
|
695
|
+
// the tail drawn 256 by 16, its end at the left and the star at the right
|
|
696
|
+
let tailed = () => {
|
|
697
|
+
let el = document.createElement('canvas'), pen = el.getContext('2d')
|
|
698
|
+
el.width = 256, el.height = 16
|
|
699
|
+
let fade = (into, el) => {
|
|
700
|
+
let css = getComputedStyle(el)
|
|
701
|
+
into.addColorStop(
|
|
702
|
+
Number(el.getAttribute('offset') ?? 0),
|
|
703
|
+
css.stopColor,
|
|
704
|
+
)
|
|
705
|
+
return Number(css.stopOpacity ?? 1)
|
|
706
|
+
}
|
|
707
|
+
let paint = pen.createLinearGradient(-130, 0, 0, 0)
|
|
708
|
+
let [from, to] = ['.Sky_Tail0', '.Sky_Tail1'].map((c) =>
|
|
709
|
+
fade(paint, sky.querySelector(c))
|
|
710
|
+
)
|
|
711
|
+
pen.setTransform(256 / 130, 0, 0, 8 / 1.3, 256, 8)
|
|
712
|
+
pen.fillStyle = paint
|
|
713
|
+
pen.fill(new Path2D(STREAK))
|
|
714
|
+
// and as clear as the tail is along its way
|
|
715
|
+
let clear = pen.createLinearGradient(0, 0, 256, 0)
|
|
716
|
+
clear.addColorStop(0, `rgba(0,0,0,${from})`)
|
|
717
|
+
clear.addColorStop(1, `rgba(0,0,0,${to})`)
|
|
718
|
+
pen.setTransform(1, 0, 0, 1, 0, 0)
|
|
719
|
+
pen.globalCompositeOperation = 'destination-in'
|
|
720
|
+
pen.fillStyle = clear
|
|
721
|
+
pen.fillRect(0, 0, 256, 16)
|
|
722
|
+
return el
|
|
723
|
+
}
|
|
724
|
+
let wheel = (day) => {
|
|
725
|
+
let pen = trails?.getContext?.('2d')
|
|
726
|
+
if (!pen || !stars.length) return
|
|
727
|
+
let { hub: [hx, hy], rate } = across()
|
|
728
|
+
let b = far.getBoundingClientRect(), k = b.width / 6000
|
|
729
|
+
let ox = b.left + scrollX + 3000 * k, oy = b.top + scrollY + 800 * k
|
|
730
|
+
let depth = Number(deep.dataset.depth)
|
|
731
|
+
// each star where the page draws it with the sky unsunk, and its size,
|
|
732
|
+
// in sets by how bright they are
|
|
733
|
+
let all = stars.map((s) =>
|
|
734
|
+
['cx', 'cy', 'r', 'opacity'].map((a) => Number(s.getAttribute(a)))
|
|
735
|
+
)
|
|
736
|
+
let [lo, hi] = [Math.min, Math.max].map((f) => f(...all.map((s) => s[3])))
|
|
737
|
+
let sets = Array.from({ length: GLOWS }, () => [])
|
|
738
|
+
for (let [x, y, r, o] of all) {
|
|
739
|
+
let i = Math.round((GLOWS - 1) * (o - lo) / (hi - lo || 1))
|
|
740
|
+
sets[i].push([ox + x * k, oy + y * k, r * k, o])
|
|
741
|
+
}
|
|
742
|
+
sets = sets.filter((set) => set.length).map((set) => ({
|
|
743
|
+
stars: set,
|
|
744
|
+
glow: set.reduce((sum, s) => sum + s[3], 0) / set.length,
|
|
745
|
+
}))
|
|
746
|
+
let light = getComputedStyle(stars[0]).fill, tail = tailed()
|
|
747
|
+
let home = day ? .5 : 0, spun = Math.sign(rate)
|
|
748
|
+
let w = 0, h = 0, x0, y0, px = devicePixelRatio > 1 ? 2 : 1
|
|
749
|
+
let seen = []
|
|
750
|
+
return (s) => {
|
|
751
|
+
if (w != innerWidth || h != innerHeight) {
|
|
752
|
+
w = innerWidth, h = innerHeight
|
|
753
|
+
trails.width = w * px, trails.height = h * px
|
|
754
|
+
trails.style.width = w + 'px', trails.style.height = h + 'px'
|
|
755
|
+
}
|
|
756
|
+
if (x0 != scrollX || y0 != scrollY) {
|
|
757
|
+
x0 = scrollX, y0 = scrollY
|
|
758
|
+
trails.style.translate = `${x0}px ${y0}px`
|
|
759
|
+
}
|
|
760
|
+
let sunk = depth * y0
|
|
761
|
+
pen.setTransform(px, 0, 0, px, 0, 0)
|
|
762
|
+
pen.clearRect(0, 0, w, h)
|
|
763
|
+
// how far round the stars are, and were BLUR seconds ago, the turn
|
|
764
|
+
// half a wheel from the deepest night drawn the other way round, at
|
|
765
|
+
// the height of the day, when none show
|
|
766
|
+
let at = rate * (((ease(s) - home) % 1 + 1.5) % 1 - .5)
|
|
767
|
+
let back = at - spun *
|
|
768
|
+
Math.min(.5, Math.abs(rate) * pace(s) * BLUR * 1000 / TURN)
|
|
769
|
+
let [c, n, cb, nb] = [at, back].flatMap((a) => [Math.cos(a), Math.sin(a)])
|
|
770
|
+
for (let { stars, glow } of sets) {
|
|
771
|
+
pen.globalAlpha = glow
|
|
772
|
+
// each tail, from where its star was to where it is
|
|
773
|
+
seen.length = 0
|
|
774
|
+
for (let [x, y, r] of stars) {
|
|
775
|
+
// none under the line or out of the window is seen
|
|
776
|
+
let dx = x - hx, dy = hy - y - sunk, up = dx * n + dy * c
|
|
777
|
+
let ex = hx + dx * c - dy * n - x0, ey = hy - up - y0
|
|
778
|
+
if (up < 0 || ex < -r - 60 || ex > w + 60 || ey < -60) continue
|
|
779
|
+
seen.push(ex, ey, r)
|
|
780
|
+
let tx = hx + dx * cb - dy * nb - x0, ty = hy - dx * nb - dy * cb - y0
|
|
781
|
+
let long = Math.hypot(ex - tx, ey - ty)
|
|
782
|
+
if (long <= 2 * r) continue
|
|
783
|
+
if (long > 2 * LONG * r) {
|
|
784
|
+
let cut = 2 * LONG * r / long
|
|
785
|
+
tx = ex + (tx - ex) * cut, ty = ey + (ty - ey) * cut, long *= cut
|
|
786
|
+
}
|
|
787
|
+
let side = px * r / 8 / long
|
|
788
|
+
pen.setTransform(
|
|
789
|
+
px * (ex - tx) / 256,
|
|
790
|
+
px * (ey - ty) / 256,
|
|
791
|
+
(ty - ey) * side,
|
|
792
|
+
(ex - tx) * side,
|
|
793
|
+
px * tx - 8 * (ty - ey) * side,
|
|
794
|
+
px * ty - 8 * (ex - tx) * side,
|
|
795
|
+
)
|
|
796
|
+
pen.drawImage(tail, 0, 0)
|
|
797
|
+
}
|
|
798
|
+
// and the stars over them
|
|
799
|
+
pen.setTransform(px, 0, 0, px, 0, 0)
|
|
800
|
+
pen.fillStyle = light
|
|
801
|
+
pen.beginPath()
|
|
802
|
+
for (let i = 0; i < seen.length; i += 3) {
|
|
803
|
+
let [ex, ey, r] = [seen[i], seen[i + 1], seen[i + 2]]
|
|
804
|
+
pen.moveTo(ex + r, ey)
|
|
805
|
+
pen.arc(ex, ey, r, 0, 2 * Math.PI)
|
|
806
|
+
}
|
|
807
|
+
pen.fill()
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
let ready, soon
|
|
812
|
+
let prepare = () => {
|
|
813
|
+
soon = null
|
|
814
|
+
let day = !dark.matches, still = calm.matches
|
|
815
|
+
if (ready?.day !== day || ready.still !== still) ready = scene(day, still)
|
|
816
|
+
if (ready.hour !== hour) {
|
|
817
|
+
ready.hour = hour
|
|
818
|
+
ready.rides = still ? [] : rides(day)
|
|
819
|
+
ready.wheel = still ? null : wheel(day)
|
|
820
|
+
}
|
|
821
|
+
return ready
|
|
822
|
+
}
|
|
823
|
+
// staged again once the page is idle, and not while the sky turns, when
|
|
824
|
+
// what it reads is the turn's
|
|
825
|
+
let later = () => {
|
|
826
|
+
if (soon || turning) return
|
|
827
|
+
soon = self.requestIdleCallback
|
|
828
|
+
? requestIdleCallback(prepare, { timeout: 3000 })
|
|
829
|
+
: setTimeout(prepare, 500)
|
|
830
|
+
}
|
|
831
|
+
dark.addEventListener?.('change', later)
|
|
832
|
+
calm.addEventListener?.('change', later)
|
|
833
|
+
|
|
834
|
+
let turning
|
|
835
|
+
let spin = () => {
|
|
836
|
+
if (turning) return
|
|
837
|
+
let { runs, rides, shots, wheel } = prepare()
|
|
838
|
+
runs = [...runs, ...rides]
|
|
839
|
+
for (let run of runs) run.play()
|
|
840
|
+
for (let f of shots) setTimeout(star, f.s * TURN)
|
|
841
|
+
delete sky.dataset.over
|
|
842
|
+
sky.dataset.turn = wheel ? 'wheel' : ''
|
|
843
|
+
turning = true
|
|
844
|
+
// the stars drawn where the turn has brought them, frame by frame
|
|
845
|
+
let orbit = () => {
|
|
846
|
+
if (!turning) return
|
|
847
|
+
wheel(Math.min(1, (runs[0].currentTime ?? 0) / TURN))
|
|
848
|
+
requestAnimationFrame(orbit)
|
|
849
|
+
}
|
|
850
|
+
if (wheel) orbit()
|
|
851
|
+
runs[0].onfinish = () => {
|
|
852
|
+
for (let run of runs) run.cancel()
|
|
853
|
+
delete sky.dataset.turn
|
|
854
|
+
turning = null
|
|
855
|
+
if (ready?.hour !== hour) later()
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
// the stars a pointer passes brighten, and dim again once it has gone
|
|
860
|
+
let lit = new Map()
|
|
861
|
+
let pass = (px, py) => {
|
|
862
|
+
let now = performance.now()
|
|
863
|
+
for (let s of stars) {
|
|
864
|
+
let [x, y] = circle(s)
|
|
865
|
+
if (Math.hypot(px - x, py - y) > 48) continue
|
|
866
|
+
if (!lit.has(s)) s.classList.add('Sky_Star-near')
|
|
867
|
+
lit.set(s, now)
|
|
868
|
+
}
|
|
869
|
+
for (let [s, t] of lit) {
|
|
870
|
+
if (now - t > 600) lit.delete(s), s.classList.remove('Sky_Star-near')
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
let dim
|
|
874
|
+
let brighten = (px, py) => {
|
|
875
|
+
pass(px, py)
|
|
876
|
+
clearTimeout(dim)
|
|
877
|
+
dim = setTimeout(() => pass(-1e4, -1e4), 700)
|
|
878
|
+
}
|
|
879
|
+
// Own the input whose next frame the sky draws. Its ambient changes
|
|
880
|
+
// also run while a finger taps the background without asking for anything.
|
|
881
|
+
let drawInput = (input, change) => {
|
|
882
|
+
let pressed
|
|
883
|
+
document.dispatchEvent(
|
|
884
|
+
new document.defaultView.CustomEvent('yak-interaction-result', {
|
|
885
|
+
detail: { input, take: (own) => pressed = own },
|
|
886
|
+
}),
|
|
887
|
+
)
|
|
888
|
+
change()
|
|
889
|
+
pressed?.drawn()
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (slot && after && sky) {
|
|
893
|
+
place()
|
|
894
|
+
new ResizeObserver(place).observe(document.body)
|
|
895
|
+
document.fonts?.ready.then(place)
|
|
896
|
+
addEventListener('load', place)
|
|
897
|
+
addEventListener('scroll', scroll, { passive: true })
|
|
898
|
+
}
|
|
899
|
+
if (sky && sun && moon && halo && far) {
|
|
900
|
+
let frame = 0
|
|
901
|
+
addEventListener('pointermove', (e) => {
|
|
902
|
+
if (!active() || frame) return
|
|
903
|
+
frame = requestAnimationFrame(() => {
|
|
904
|
+
frame = 0
|
|
905
|
+
if (!active()) return
|
|
906
|
+
// the sun and the moon show they answer a touch to a mouse only
|
|
907
|
+
let on = e.pointerType == 'mouse' && !turning && !page(e.target) &&
|
|
908
|
+
over(e.clientX, e.clientY)
|
|
909
|
+
if (on) sky.dataset.over = on
|
|
910
|
+
else delete sky.dataset.over
|
|
911
|
+
if (dark.matches && !calm.matches) brighten(e.clientX, e.clientY)
|
|
912
|
+
})
|
|
913
|
+
}, { passive: true })
|
|
914
|
+
addEventListener('click', (e) => {
|
|
915
|
+
if (!active() || page(e.target) || getSelection()?.toString()) return
|
|
916
|
+
if (over(e.clientX, e.clientY)) {
|
|
917
|
+
if (!turning) drawInput(e, spin)
|
|
918
|
+
return
|
|
919
|
+
}
|
|
920
|
+
if (calm.matches) return
|
|
921
|
+
let [, y] = unit([e.clientX, e.clientY])
|
|
922
|
+
if (dark.matches && y < -40 && y > -700) {
|
|
923
|
+
drawInput(e, () => {
|
|
924
|
+
brighten(e.clientX, e.clientY)
|
|
925
|
+
through(e.clientX, e.clientY)
|
|
926
|
+
})
|
|
927
|
+
}
|
|
928
|
+
})
|
|
929
|
+
}
|
|
930
|
+
}
|