@zortexhq/indra-v2.5 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/box-level1-setup.js +1 -1
- package/dist/calcom-level1-setup.js +1 -1
- package/dist/cli-run.js +1 -1
- package/dist/connector-worker.js +1 -1
- package/dist/discord-level1-setup.js +1 -1
- package/dist/dropbox-level1-setup.js +1 -1
- package/dist/figma-level1-setup.js +1 -1
- package/dist/freshdesk-level1-setup.js +1 -1
- package/dist/freshrss-level1-setup.js +1 -1
- package/dist/front-level1-setup.js +1 -1
- package/dist/gateway.js +1 -1
- package/dist/google-chat-level1-setup.js +1 -1
- package/dist/google-contacts-level1-setup.js +1 -1
- package/dist/hubspot-level1-setup.js +1 -1
- package/dist/joplin-selection.js +1 -1
- package/dist/local-cloud.js +1 -1
- package/dist/mattermost-level1-setup.js +1 -1
- package/dist/mcp.js +2 -2
- package/dist/measurement-context.js +1 -1
- package/dist/miniflux-level1-setup.js +1 -1
- package/dist/nextcloud-level1-setup.js +1 -1
- package/dist/operation-telemetry.js +1 -0
- package/dist/prepared-level1-setup.js +1 -0
- package/dist/product-feedback.js +2 -2
- package/dist/profile.js +1 -1
- package/dist/proton-mail-level1-setup.js +1 -1
- package/dist/recovery-launch.js +10 -0
- package/dist/recovery-support.js +1 -1
- package/dist/recovery-surface.js +1 -0
- package/dist/recovery.js +1 -1
- package/dist/resident-host.js +2 -2
- package/dist/resident-jobs.js +1 -1
- package/dist/resident-platform.js +1 -1
- package/dist/resident-telemetry.js +1 -0
- package/dist/resource-telemetry.js +1 -0
- package/dist/salesforce-level1-setup.js +1 -1
- package/dist/smartsheet-level1-setup.js +1 -1
- package/dist/startup.js +2 -2
- package/dist/thunderbird-level1-setup.js +1 -1
- package/dist/wakatime-level1-setup.js +1 -1
- package/dist/wallabag-level1-setup.js +1 -1
- package/dist/web.js +2 -2
- package/dist/zendesk-level1-setup.js +1 -1
- package/dist/zoom-level1-setup.js +1 -1
- package/dist/zulip-level1-setup.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/hub.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/operational-hub.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/chatgpt.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/mcp-feedback.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/operational-client.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-level1/dist/shallow.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/package.json +2 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/galaxy-text.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/localizer.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/routes.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/dist/server.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/account.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-i18n-twin.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-i18n.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-model.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-text.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app.html +98 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-client.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-forms.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-panel.js +1 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/galaxy-renderer.js +13 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/galaxy.html +141 -0
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/live-model.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/live-state.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/panels-live.js +3 -3
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/product.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/shell.css +12 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/shell.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/original/fonts/LICENSE.txt +92 -0
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/feedback.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-bridge.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-actions.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/driver.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/operational-browser.js +1 -0
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/session-routes.js +1 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/shared-session.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/activity.js +1 -0
- package/node_modules/@zortexhq/plugin-posthog/dist/collection-status.js +1 -0
- package/node_modules/@zortexhq/plugin-posthog/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/indra.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/local-cloud.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/northstar.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/observations.js +1 -1
- package/node_modules/@zortexhq/plugin-posthog/dist/operational.js +1 -0
- package/node_modules/@zortexhq/plugin-posthog/dist/resources.js +1 -0
- package/node_modules/@zortexhq/plugin-posthog/dist/source-ids.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/dist/api/resources.js +1 -0
- package/node_modules/@zortexhq/plugin-process-local/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/dist/resource-sampler.js +1 -0
- package/node_modules/@zortexhq/plugin-process-local/dist/runner.js +1 -1
- package/node_modules/@zortexhq/plugin-process-local/package.json +3 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/collection.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/measurement.js +1 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/observations.js +1 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/operational.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/resources.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/source-ids.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/telemetry.js +1 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/tool-call.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/tool-methods.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/upstream-tools.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/device-identity.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-telemetry/dist/resources.js +1 -0
- package/node_modules/@zortexhq/plugin-telemetry/package.json +3 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/api/storage-metadata.js +1 -0
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/storage-metadata.js +1 -0
- package/package.json +6 -6
- package/profiles/core.yml +1 -0
- package/release-provenance.json +26 -26
- package/update-manifest.json +419 -197
- package/dist/recovery-page.js +0 -215
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const APP_TEXT={"Skip to content":["\u8DF3\u5230\u6B63\u6587","\u8DF3\u81F3\u5167\u5BB9"],"Close navigation":["\u5173\u95ED\u5BFC\u822A","\u95DC\u9589\u5C0E\u89BD"],"Open navigation":["\u6253\u5F00\u5BFC\u822A","\u958B\u555F\u5C0E\u89BD"],"Main navigation":["\u4E3B\u5BFC\u822A","\u4E3B\u8981\u5C0E\u89BD"],"Zortex home":["Zortex \u9996\u9875","Zortex \u9996\u9801"],"Workspace":["\u5DE5\u4F5C\u7A7A\u95F4","\u5DE5\u4F5C\u7A7A\u9593"],"Overview":["\u6982\u89C8","\u6982\u89BD"],"Mods":["\u6269\u5C55","\u64F4\u5145\u529F\u80FD"],"Your context.":["\u4F60\u7684\u4FE1\u606F\u3002","\u4F60\u7684\u8CC7\u8A0A\u3002"],"Your possibilities.":["\u66F4\u591A\u53EF\u80FD\u3002","\u66F4\u591A\u53EF\u80FD\u3002"],"Guide":["\u4F7F\u7528\u6307\u5357","\u4F7F\u7528\u6307\u5357"],"Your workspace":["\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4","\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593"],"YOUR WORKSPACE":["\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4","\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593"],"Connected computer":["\u5DF2\u8FDE\u63A5\u7684\u7535\u8111","\u5DF2\u9023\u63A5\u7684\u96FB\u8166"],"On this computer":["\u5728\u8FD9\u53F0\u7535\u8111\u4E0A","\u5728\u9019\u53F0\u96FB\u8166\u4E0A"],"Refresh app status":["\u5237\u65B0\u5E94\u7528\u72B6\u6001","\u91CD\u65B0\u6574\u7406\u61C9\u7528\u7A0B\u5F0F\u72C0\u614B"],"Everything you use, a little more connected.":["\u8BA9\u4F60\u5E38\u7528\u7684\u5E94\u7528\uFF0C\u8FDE\u63A5\u5F97\u66F4\u7D27\u5BC6\u3002","\u8B93\u4F60\u5E38\u7528\u7684\u61C9\u7528\u7A0B\u5F0F\uFF0C\u9023\u63A5\u5F97\u66F4\u7DCA\u5BC6\u3002"],"Loading apps":["\u6B63\u5728\u52A0\u8F7D\u5E94\u7528","\u6B63\u5728\u8F09\u5165\u61C9\u7528\u7A0B\u5F0F"],"Your account":["\u4F60\u7684\u8D26\u6237","\u4F60\u7684\u5E33\u6236"],"Close account settings":["\u5173\u95ED\u8D26\u6237\u8BBE\u7F6E","\u95DC\u9589\u5E33\u6236\u8A2D\u5B9A"],"Email address":["\u7535\u5B50\u90AE\u7BB1","\u96FB\u5B50\u90F5\u4EF6\u5730\u5740"],"Send sign-in code":["\u53D1\u9001\u767B\u5F55\u9A8C\u8BC1\u7801","\u50B3\u9001\u767B\u5165\u9A57\u8B49\u78BC"],"Eight-digit code":["\u516B\u4F4D\u9A8C\u8BC1\u7801","\u516B\u4F4D\u9A57\u8B49\u78BC"],"Not available":["\u6682\u65E0\u6570\u636E","\u66AB\u7121\u8CC7\u6599"],"Working\u2026":["\u6B63\u5728\u5904\u7406\u2026","\u6B63\u5728\u8655\u7406\u2026"],"View setup":["\u67E5\u770B\u8BBE\u7F6E","\u67E5\u770B\u8A2D\u5B9A"],"All apps":["\u5168\u90E8\u5E94\u7528","\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F"],"Filter apps":["\u7B5B\u9009\u5E94\u7528","\u7BE9\u9078\u61C9\u7528\u7A0B\u5F0F"],"Needs attention":["\u9700\u8981\u5904\u7406","\u9700\u8981\u8655\u7406"],"Need attention":["\u9700\u8981\u5904\u7406","\u9700\u8981\u8655\u7406"],"{0} matching apps":["{0} \u4E2A\u5339\u914D\u5E94\u7528","{0} \u500B\u7B26\u5408\u7684\u61C9\u7528\u7A0B\u5F0F"],"Your connected apps":["\u4F60\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528","\u4F60\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F"],"Your first connection starts here":["\u4ECE\u8FD9\u91CC\u5F00\u59CB\u7B2C\u4E00\u4E2A\u8FDE\u63A5","\u5F9E\u9019\u88E1\u958B\u59CB\u7B2C\u4E00\u500B\u9023\u63A5"],"Choose an app to bring its information and supported actions into your workspace.":["\u9009\u62E9\u4E00\u4E2A\u5E94\u7528\uFF0C\u5C06\u5176\u4FE1\u606F\u548C\u652F\u6301\u7684\u64CD\u4F5C\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u9078\u64C7\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u5C07\u5176\u8CC7\u8A0A\u548C\u652F\u63F4\u7684\u64CD\u4F5C\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"A little attention goes a long way":["\u7EE7\u7EED\u5B8C\u6210\u8FD9\u4E9B\u8FDE\u63A5","\u7E7C\u7E8C\u5B8C\u6210\u9019\u4E9B\u9023\u63A5"],"Find your next connection":["\u53D1\u73B0\u4E0B\u4E00\u4E2A\u8FDE\u63A5","\u63A2\u7D22\u4E0B\u4E00\u500B\u9023\u63A5"],"No apps found":["\u6CA1\u6709\u627E\u5230\u5E94\u7528","\u627E\u4E0D\u5230\u61C9\u7528\u7A0B\u5F0F"],"Try another name or clear your filters.":["\u8BD5\u8BD5\u5176\u4ED6\u540D\u79F0\uFF0C\u6216\u6E05\u9664\u7B5B\u9009\u6761\u4EF6\u3002","\u8A66\u8A66\u5176\u4ED6\u540D\u7A31\uFF0C\u6216\u6E05\u9664\u7BE9\u9078\u689D\u4EF6\u3002"],"Connect your first app to bring its context into your workspace.":["\u8FDE\u63A5\u7B2C\u4E00\u4E2A\u5E94\u7528\uFF0C\u628A\u76F8\u5173\u4FE1\u606F\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u9023\u63A5\u7B2C\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u628A\u76F8\u95DC\u8CC7\u8A0A\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Your apps don\u2019t need any attention right now.":["\u76EE\u524D\u6CA1\u6709\u9700\u8981\u5904\u7406\u7684\u5E94\u7528\u3002","\u76EE\u524D\u6C92\u6709\u9700\u8981\u8655\u7406\u7684\u61C9\u7528\u7A0B\u5F0F\u3002"],"The app catalog is unavailable. Refresh to try again.":["\u5E94\u7528\u76EE\u5F55\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","\u61C9\u7528\u7A0B\u5F0F\u76EE\u9304\u66AB\u6642\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"Show all apps":["\u663E\u793A\u5168\u90E8\u5E94\u7528","\u986F\u793A\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F"],"Not checked yet":["\u5C1A\u672A\u68C0\u67E5","\u5C1A\u672A\u6AA2\u67E5"],"Succeeded \xB7 no items returned":["\u68C0\u67E5\u6210\u529F \xB7 \u6CA1\u6709\u8FD4\u56DE\u5185\u5BB9","\u6AA2\u67E5\u6210\u529F \xB7 \u672A\u50B3\u56DE\u5167\u5BB9"],"Succeeded \xB7 {0} items returned":["\u68C0\u67E5\u6210\u529F \xB7 \u8FD4\u56DE {0} \u9879","\u6AA2\u67E5\u6210\u529F \xB7 \u50B3\u56DE {0} \u9805"],"Action succeeded":["\u64CD\u4F5C\u6210\u529F","\u64CD\u4F5C\u6210\u529F"],"Needs another check":["\u9700\u8981\u518D\u6B21\u68C0\u67E5","\u9700\u8981\u518D\u6B21\u6AA2\u67E5"],"Saved records":["\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55","\u5DF2\u5132\u5B58\u7684\u8A18\u9304"],"Available actions":["\u53EF\u7528\u64CD\u4F5C","\u53EF\u7528\u64CD\u4F5C"],"Latest check":["\u6700\u8FD1\u4E00\u6B21\u68C0\u67E5","\u6700\u8FD1\u4E00\u6B21\u6AA2\u67E5"],"This app has no manual setup form available on this computer.":["\u6B64\u5E94\u7528\u76EE\u524D\u6CA1\u6709\u9002\u7528\u4E8E\u8FD9\u53F0\u7535\u8111\u7684\u624B\u52A8\u8BBE\u7F6E\u8868\u5355\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u76EE\u524D\u6C92\u6709\u9069\u7528\u65BC\u9019\u53F0\u96FB\u8166\u7684\u624B\u52D5\u8A2D\u5B9A\u8868\u55AE\u3002"],"Sign-in details are entered in the app\u2019s secure authorization page after setup.":["\u5B8C\u6210\u8BBE\u7F6E\u540E\uFF0C\u8BF7\u5728\u5E94\u7528\u7684\u5B89\u5168\u6388\u6743\u9875\u9762\u8F93\u5165\u767B\u5F55\u8D44\u6599\u3002","\u5B8C\u6210\u8A2D\u5B9A\u5F8C\uFF0C\u8ACB\u5728\u61C9\u7528\u7A0B\u5F0F\u7684\u5B89\u5168\u6388\u6B0A\u9801\u9762\u8F38\u5165\u767B\u5165\u8CC7\u6599\u3002"],"Save and continue":["\u4FDD\u5B58\u5E76\u7EE7\u7EED","\u5132\u5B58\u4E26\u7E7C\u7E8C"],"Find my vaults":["\u67E5\u627E\u6211\u7684\u7B14\u8BB0\u5E93","\u5C0B\u627E\u6211\u7684\u7B46\u8A18\u5EAB"],"Open the Indra plugin in Joplin, then start pairing here. Both apps will show a fingerprint for you to compare.":["\u5728 Joplin \u4E2D\u6253\u5F00 Indra \u63D2\u4EF6\uFF0C\u7136\u540E\u5728\u8FD9\u91CC\u5F00\u59CB\u914D\u5BF9\u3002\u4E24\u4E2A\u5E94\u7528\u4F1A\u663E\u793A\u6307\u7EB9\u4F9B\u4F60\u6838\u5BF9\u3002","\u5728 Joplin \u4E2D\u958B\u555F Indra \u5916\u639B\uFF0C\u7136\u5F8C\u5728\u9019\u88E1\u958B\u59CB\u914D\u5C0D\u3002\u5169\u500B\u61C9\u7528\u7A0B\u5F0F\u6703\u986F\u793A\u6307\u7D0B\u4F9B\u4F60\u6838\u5C0D\u3002"],"Start pairing":["\u5F00\u59CB\u914D\u5BF9","\u958B\u59CB\u914D\u5C0D"],"This pairing code expired. Start again to get a fresh code.":["\u914D\u5BF9\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u83B7\u53D6\u65B0\u7801\u3002","\u914D\u5C0D\u78BC\u5DF2\u904E\u671F\uFF0C\u8ACB\u91CD\u65B0\u958B\u59CB\u53D6\u5F97\u65B0\u78BC\u3002"],"Joplin is paired. Continue to verify the connection.":["Joplin \u5DF2\u914D\u5BF9\uFF0C\u8BF7\u7EE7\u7EED\u9A8C\u8BC1\u8FDE\u63A5\u3002","Joplin \u5DF2\u914D\u5C0D\uFF0C\u8ACB\u7E7C\u7E8C\u9A57\u8B49\u9023\u63A5\u3002"],"Verify note access":["\u9A8C\u8BC1\u7B14\u8BB0\u8BBF\u95EE\u6743\u9650","\u9A57\u8B49\u7B46\u8A18\u5B58\u53D6\u6B0A\u9650"],"Paste this public key into the Indra plugin in Joplin.":["\u5C06\u6B64\u516C\u94A5\u7C98\u8D34\u5230 Joplin \u7684 Indra \u63D2\u4EF6\u4E2D\u3002","\u5C07\u6B64\u516C\u958B\u91D1\u9470\u8CBC\u5230 Joplin \u7684 Indra \u5916\u639B\u4E2D\u3002"],"Compare this fingerprint with Joplin. Continue only when both match.":["\u4E0E Joplin \u4E2D\u7684\u6307\u7EB9\u6838\u5BF9\uFF0C\u4EC5\u5728\u4E24\u8005\u4E00\u81F4\u65F6\u7EE7\u7EED\u3002","\u8207 Joplin \u4E2D\u7684\u6307\u7D0B\u6838\u5C0D\uFF0C\u50C5\u5728\u5169\u8005\u4E00\u81F4\u6642\u7E7C\u7E8C\u3002"],"Joplin port":["Joplin \u7AEF\u53E3","Joplin \u9023\u63A5\u57E0"],"Fingerprints match \xB7 Pair":["\u6307\u7EB9\u4E00\u81F4 \xB7 \u914D\u5BF9","\u6307\u7D0B\u4E00\u81F4 \xB7 \u914D\u5C0D"],"Cancel pairing":["\u53D6\u6D88\u914D\u5BF9","\u53D6\u6D88\u914D\u5C0D"],"Public key from Joplin":["Joplin \u63D0\u4F9B\u7684\u516C\u94A5","Joplin \u63D0\u4F9B\u7684\u516C\u958B\u91D1\u9470"],"Compare fingerprints":["\u6838\u5BF9\u6307\u7EB9","\u6838\u5C0D\u6307\u7D0B"],"Scan this QR code to connect {0}":["\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u4EE5\u8FDE\u63A5 {0}","\u6383\u63CF\u6B64 QR \u78BC\u4EE5\u9023\u63A5 {0}"],"Preparing your code\u2026":["\u6B63\u5728\u51C6\u5907\u4E8C\u7EF4\u7801\u2026","\u6B63\u5728\u6E96\u5099 QR \u78BC\u2026"],"Open WhatsApp on your phone.":["\u5728\u624B\u673A\u4E0A\u6253\u5F00 WhatsApp\u3002","\u5728\u624B\u6A5F\u4E0A\u958B\u555F WhatsApp\u3002"],"Go to":["\u524D\u5F80","\u524D\u5F80"],"Settings \u2192 Linked devices":["\u8BBE\u7F6E \u2192 \u5DF2\u5173\u8054\u7684\u8BBE\u5907","\u8A2D\u5B9A \u2192 \u5DF2\u9023\u7D50\u7684\u88DD\u7F6E"],"Tap":["\u70B9\u51FB","\u9EDE\u9078"],"Link a device":["\u5173\u8054\u8BBE\u5907","\u9023\u7D50\u88DD\u7F6E"],"and scan this code.":["\u5E76\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u3002","\u4E26\u6383\u63CF\u6B64 QR \u78BC\u3002"],"Device sign-in code":["\u8BBE\u5907\u767B\u5F55\u7801","\u88DD\u7F6E\u767B\u5165\u78BC"],"Continue in {0}":["\u5728 {0} \u4E2D\u7EE7\u7EED","\u5728 {0} \u4E2D\u7E7C\u7E8C"],"Check connection":["\u68C0\u67E5\u8FDE\u63A5","\u6AA2\u67E5\u9023\u63A5"],"Finish sign-in in the window that opened. You can return here at any time to check progress.":["\u5728\u5DF2\u6253\u5F00\u7684\u7A97\u53E3\u4E2D\u5B8C\u6210\u767B\u5F55\uFF0C\u4F60\u53EF\u4EE5\u968F\u65F6\u56DE\u5230\u8FD9\u91CC\u67E5\u770B\u8FDB\u5EA6\u3002","\u5728\u5DF2\u958B\u555F\u7684\u8996\u7A97\u4E2D\u5B8C\u6210\u767B\u5165\uFF0C\u4F60\u53EF\u4EE5\u96A8\u6642\u56DE\u5230\u9019\u88E1\u67E5\u770B\u9032\u5EA6\u3002"],"Cancel connection":["\u53D6\u6D88\u8FDE\u63A5","\u53D6\u6D88\u9023\u63A5"],"Get a new code":["\u83B7\u53D6\u65B0\u7801","\u53D6\u5F97\u65B0\u78BC"],"{0} is connected":["{0} \u5DF2\u8FDE\u63A5","{0} \u5DF2\u9023\u63A5"],"This connection needs the app on your computer. Open Zortex there and choose Apps \u2192 {0}. Your existing data remains available here.":["\u6B64\u8FDE\u63A5\u9700\u8981\u7535\u8111\u4E0A\u7684\u5E94\u7528\u3002\u8BF7\u5728\u7535\u8111\u4E0A\u6253\u5F00 Zortex\uFF0C\u9009\u62E9\u5E94\u7528 \u2192 {0}\u3002\u5DF2\u6709\u6570\u636E\u4ECD\u53EF\u5728\u8FD9\u91CC\u4F7F\u7528\u3002","\u6B64\u9023\u63A5\u9700\u8981\u96FB\u8166\u4E0A\u7684\u61C9\u7528\u7A0B\u5F0F\u3002\u8ACB\u5728\u96FB\u8166\u4E0A\u958B\u555F Zortex\uFF0C\u9078\u64C7\u61C9\u7528\u7A0B\u5F0F \u2192 {0}\u3002\u65E2\u6709\u8CC7\u6599\u4ECD\u53EF\u5728\u9019\u88E1\u4F7F\u7528\u3002"],"Check progress":["\u67E5\u770B\u8FDB\u5EA6","\u67E5\u770B\u9032\u5EA6"],"Connect manually instead":["\u6539\u4E3A\u624B\u52A8\u8FDE\u63A5","\u6539\u70BA\u624B\u52D5\u9023\u63A5"],"Browse apps":["\u6D4F\u89C8\u5E94\u7528","\u700F\u89BD\u61C9\u7528\u7A0B\u5F0F"],"Refresh status":["\u5237\u65B0\u72B6\u6001","\u91CD\u65B0\u6574\u7406\u72C0\u614B"],"Use the actions this app makes available to your connected AI.":["\u8BA9\u5DF2\u8FDE\u63A5\u7684 AI \u4F7F\u7528\u6B64\u5E94\u7528\u63D0\u4F9B\u7684\u64CD\u4F5C\u3002","\u8B93\u5DF2\u9023\u63A5\u7684 AI \u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u63D0\u4F9B\u7684\u64CD\u4F5C\u3002"],"Read connected information through your AI.":["\u901A\u8FC7\u4F60\u7684 AI \u8BFB\u53D6\u5DF2\u8FDE\u63A5\u7684\u4FE1\u606F\u3002","\u900F\u904E\u4F60\u7684 AI \u8B80\u53D6\u5DF2\u9023\u63A5\u7684\u8CC7\u8A0A\u3002"],"Connect this app to make supported information and actions available to your AI.":["\u8FDE\u63A5\u6B64\u5E94\u7528\uFF0C\u8BA9\u4F60\u7684 AI \u4F7F\u7528\u5176\u652F\u6301\u7684\u4FE1\u606F\u548C\u64CD\u4F5C\u3002","\u9023\u63A5\u6B64\u61C9\u7528\u7A0B\u5F0F\uFF0C\u8B93\u4F60\u7684 AI \u4F7F\u7528\u5176\u652F\u63F4\u7684\u8CC7\u8A0A\u548C\u64CD\u4F5C\u3002"],"Reconnect or choose an account":["\u91CD\u65B0\u8FDE\u63A5\u6216\u9009\u62E9\u8D26\u6237","\u91CD\u65B0\u9023\u63A5\u6216\u9078\u64C7\u5E33\u6236"],"Connection settings":["\u8FDE\u63A5\u8BBE\u7F6E","\u9023\u63A5\u8A2D\u5B9A"],"Enable Gmail write access":["\u542F\u7528 Gmail \u5199\u5165\u6743\u9650","\u555F\u7528 Gmail \u5BEB\u5165\u6B0A\u9650"],"Enable Readwise write access":["\u542F\u7528 Readwise \u5199\u5165\u6743\u9650","\u555F\u7528 Readwise \u5BEB\u5165\u6B0A\u9650"],"Reconnect saved account":["\u91CD\u65B0\u8FDE\u63A5\u5DF2\u4FDD\u5B58\u7684\u8D26\u6237","\u91CD\u65B0\u9023\u63A5\u5DF2\u5132\u5B58\u7684\u5E33\u6236"],"Manage connection":["\u7BA1\u7406\u8FDE\u63A5","\u7BA1\u7406\u9023\u63A5"],"Connection status":["\u8FDE\u63A5\u72B6\u6001","\u9023\u63A5\u72C0\u614B"],"The connection worked. An empty result means this check returned no items; it doesn\u2019t require signing in again.":["\u8FDE\u63A5\u5DF2\u6210\u529F\u3002\u7A7A\u7ED3\u679C\u8868\u793A\u672C\u6B21\u68C0\u67E5\u6CA1\u6709\u8FD4\u56DE\u5185\u5BB9\uFF0C\u65E0\u9700\u518D\u6B21\u767B\u5F55\u3002","\u9023\u63A5\u5DF2\u6210\u529F\u3002\u7A7A\u7D50\u679C\u8868\u793A\u672C\u6B21\u6AA2\u67E5\u672A\u50B3\u56DE\u5167\u5BB9\uFF0C\u7121\u9700\u518D\u6B21\u767B\u5165\u3002"],"Connection details":["\u8FDE\u63A5\u8BE6\u60C5","\u9023\u63A5\u8A73\u60C5"],"Preview a state":["\u9884\u89C8\u8FDE\u63A5\u72B6\u6001","\u9810\u89BD\u9023\u63A5\u72C0\u614B"],"Connected, no items":["\u5DF2\u8FDE\u63A5\uFF0C\u6682\u65E0\u5185\u5BB9","\u5DF2\u9023\u63A5\uFF0C\u66AB\u7121\u5167\u5BB9"],"Actions ready":["\u64CD\u4F5C\u5DF2\u5C31\u7EEA","\u64CD\u4F5C\u5DF2\u5C31\u7DD2"],"Automatic setup failed":["\u81EA\u52A8\u8BBE\u7F6E\u5931\u8D25","\u81EA\u52D5\u8A2D\u5B9A\u5931\u6557"],"QR code":["\u4E8C\u7EF4\u7801","QR \u78BC"],"QR expired":["\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","QR \u78BC\u5DF2\u904E\u671F"],"Waiting for sign-in":["\u7B49\u5F85\u767B\u5F55","\u7B49\u5F85\u767B\u5165"],"Temporary failure":["\u6682\u65F6\u5931\u8D25","\u66AB\u6642\u5931\u6557"],"Manual setup":["\u624B\u52A8\u8BBE\u7F6E","\u624B\u52D5\u8A2D\u5B9A"],"Requires desktop":["\u9700\u8981\u684C\u9762\u5E94\u7528","\u9700\u8981\u684C\u9762\u61C9\u7528\u7A0B\u5F0F"],"Make it part of your day":["\u878D\u5165\u4F60\u7684\u65E5\u5E38\u5DE5\u4F5C","\u878D\u5165\u4F60\u7684\u65E5\u5E38\u5DE5\u4F5C"],"Keep this app\u2019s context close.":["\u968F\u65F6\u4F7F\u7528\u6B64\u5E94\u7528\u7684\u4FE1\u606F\u3002","\u96A8\u6642\u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u7684\u8CC7\u8A0A\u3002"],"Check connection status here.":["\u5728\u8FD9\u91CC\u67E5\u770B\u8FDE\u63A5\u72B6\u6001\u3002","\u5728\u9019\u88E1\u67E5\u770B\u9023\u63A5\u72C0\u614B\u3002"],"Continue setup whenever you need.":["\u968F\u65F6\u7EE7\u7EED\u5B8C\u6210\u8BBE\u7F6E\u3002","\u96A8\u6642\u7E7C\u7E8C\u5B8C\u6210\u8A2D\u5B9A\u3002"],"Your account, your control":["\u4F60\u7684\u8D26\u6237\uFF0C\u7531\u4F60\u638C\u63A7","\u4F60\u7684\u5E33\u6236\uFF0C\u7531\u4F60\u638C\u63A7"],"Review the permissions on the provider\u2019s sign-in page. Only the account you authorize is connected.":["\u5728\u670D\u52A1\u63D0\u4F9B\u65B9\u7684\u767B\u5F55\u9875\u9762\u67E5\u770B\u6743\u9650\u3002\u4EC5\u8FDE\u63A5\u4F60\u6388\u6743\u7684\u8D26\u6237\u3002","\u5728\u670D\u52D9\u63D0\u4F9B\u8005\u7684\u767B\u5165\u9801\u9762\u67E5\u770B\u6B0A\u9650\u3002\u50C5\u9023\u63A5\u4F60\u6388\u6B0A\u7684\u5E33\u6236\u3002"],"Connection guide \u2197":["\u8FDE\u63A5\u6307\u5357 \u2197","\u9023\u63A5\u6307\u5357 \u2197"],"Connection guide":["\u8FDE\u63A5\u6307\u5357","\u9023\u63A5\u6307\u5357"],"A little more connected.":["\u8BA9\u8FDE\u63A5\u66F4\u8FDB\u4E00\u6B65\u3002","\u8B93\u9023\u63A5\u66F4\u9032\u4E00\u6B65\u3002"],"Your workspace, together.":["\u628A\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u8FDE\u63A5\u8D77\u6765\u3002","\u628A\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u9023\u63A5\u8D77\u4F86\u3002"],"Bring your apps together and keep your connections in view.":["\u6C47\u805A\u5E38\u7528\u5E94\u7528\uFF0C\u968F\u65F6\u638C\u63E1\u8FDE\u63A5\u72B6\u6001\u3002","\u532F\u805A\u5E38\u7528\u61C9\u7528\u7A0B\u5F0F\uFF0C\u96A8\u6642\u638C\u63E1\u9023\u63A5\u72C0\u614B\u3002"],"BUILT AROUND YOU":["\u56F4\u7ED5\u4F60\u7684\u5DE5\u4F5C","\u570D\u7E5E\u4F60\u7684\u5DE5\u4F5C"],"Your everyday tools.":["\u4F60\u6BCF\u5929\u4F7F\u7528\u7684\u5DE5\u5177\u3002","\u4F60\u6BCF\u5929\u4F7F\u7528\u7684\u5DE5\u5177\u3002"],"One connected workspace.":["\u4E00\u4E2A\u4E92\u901A\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u4E00\u500B\u4E92\u901A\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect the apps you know. Give your AI the context to help with the work ahead.":["\u8FDE\u63A5\u4F60\u719F\u6089\u7684\u5E94\u7528\uFF0C\u4E3A AI \u63D0\u4F9B\u5B8C\u6210\u5DE5\u4F5C\u6240\u9700\u7684\u4FE1\u606F\u3002","\u9023\u63A5\u4F60\u719F\u6089\u7684\u61C9\u7528\u7A0B\u5F0F\uFF0C\u70BA AI \u63D0\u4F9B\u5B8C\u6210\u5DE5\u4F5C\u6240\u9700\u7684\u8CC7\u8A0A\u3002"],"Explore apps":["\u63A2\u7D22\u5E94\u7528","\u63A2\u7D22\u61C9\u7528\u7A0B\u5F0F"],"Connected apps":["\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528","\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F"],"Pick up where you left off":["\u4ECE\u4E0A\u6B21\u505C\u4E0B\u7684\u5730\u65B9\u7EE7\u7EED","\u5F9E\u4E0A\u6B21\u505C\u4E0B\u7684\u5730\u65B9\u7E7C\u7E8C"],"View all apps \u2192":["\u67E5\u770B\u5168\u90E8\u5E94\u7528 \u2192","\u67E5\u770B\u5168\u90E8\u61C9\u7528\u7A0B\u5F0F \u2192"],"Manage apps \u2192":["\u7BA1\u7406\u5E94\u7528 \u2192","\u7BA1\u7406\u61C9\u7528\u7A0B\u5F0F \u2192"],"Mod not found":["\u6CA1\u6709\u627E\u5230\u6269\u5C55","\u627E\u4E0D\u5230\u64F4\u5145\u529F\u80FD"],"This mod is not available in this workspace.":["\u6B64\u6269\u5C55\u5728\u5F53\u524D\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4E0D\u53EF\u7528\u3002","\u6B64\u64F4\u5145\u529F\u80FD\u5728\u76EE\u524D\u7684\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u7121\u6CD5\u4F7F\u7528\u3002"],"View mods":["\u67E5\u770B\u6269\u5C55","\u67E5\u770B\u64F4\u5145\u529F\u80FD"],"All mods":["\u5168\u90E8\u6269\u5C55","\u5168\u90E8\u64F4\u5145\u529F\u80FD"],"Included":["\u5DF2\u5305\u542B","\u5DF2\u5305\u542B"],"A different view of your context.":["\u6362\u4E2A\u89D2\u5EA6\u770B\u4F60\u7684\u4FE1\u606F\u3002","\u63DB\u500B\u89D2\u5EA6\u770B\u4F60\u7684\u8CC7\u8A0A\u3002"],"Galaxy brings your saved records into a visual map. It uses the information already in your workspace.":["Galaxy \u5C06\u5DF2\u4FDD\u5B58\u7684\u8BB0\u5F55\u7ED8\u6210\u53EF\u89C6\u5316\u5730\u56FE\uFF0C\u4F7F\u7528\u7684\u4FE1\u606F\u90FD\u6765\u81EA\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","Galaxy \u5C07\u5DF2\u5132\u5B58\u7684\u8A18\u9304\u7E6A\u6210\u8996\u89BA\u5316\u5730\u5716\uFF0C\u4F7F\u7528\u7684\u8CC7\u8A0A\u90FD\u4F86\u81EA\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Open Galaxy":["\u6253\u5F00 Galaxy","\u958B\u555F Galaxy"],"A few more possibilities for your workspace.":["\u4E3A\u5DE5\u4F5C\u7A7A\u95F4\u589E\u6DFB\u66F4\u591A\u53EF\u80FD\u3002","\u70BA\u5DE5\u4F5C\u7A7A\u9593\u589E\u6DFB\u66F4\u591A\u53EF\u80FD\u3002"],"Made by Zortex":["\u7531 Zortex \u5F00\u53D1","\u7531 Zortex \u958B\u767C"],"Open mod":["\u6253\u5F00\u6269\u5C55","\u958B\u555F\u64F4\u5145\u529F\u80FD"],"Galaxy is included in this version. More mods will appear here when they are available.":["\u6B64\u7248\u672C\u5DF2\u5305\u542B Galaxy\u3002\u66F4\u591A\u6269\u5C55\u53EF\u7528\u65F6\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","\u6B64\u7248\u672C\u5DF2\u5305\u542B Galaxy\u3002\u66F4\u591A\u64F4\u5145\u529F\u80FD\u53EF\u7528\u6642\u6703\u51FA\u73FE\u5728\u9019\u88E1\u3002"],"See the shape of your connected context.":["\u770B\u89C1\u5DF2\u8FDE\u63A5\u4FE1\u606F\u7684\u5168\u8C8C\u3002","\u770B\u898B\u5DF2\u9023\u63A5\u8CC7\u8A0A\u7684\u5168\u8C8C\u3002"],"Your context, seen from a different angle.":["\u4ECE\u53E6\u4E00\u4E2A\u89D2\u5EA6\u770B\u4F60\u7684\u4FE1\u606F\u3002","\u5F9E\u53E6\u4E00\u500B\u89D2\u5EA6\u770B\u4F60\u7684\u8CC7\u8A0A\u3002"],"YOUR CONNECTED CONTEXT":["\u4F60\u5DF2\u8FDE\u63A5\u7684\u4FE1\u606F","\u4F60\u5DF2\u9023\u63A5\u7684\u8CC7\u8A0A"],"There\u2019s a whole world":["\u4F60\u7684\u77E5\u8BC6\u4E2D","\u4F60\u7684\u77E5\u8B58\u4E2D"],"in what you know.":["\u85CF\u7740\u4E00\u4E2A\u5B8C\u6574\u7684\u4E16\u754C\u3002","\u85CF\u8457\u4E00\u500B\u5B8C\u6574\u7684\u4E16\u754C\u3002"],"Your real Galaxy starts with your apps":["\u8FDE\u63A5\u5E94\u7528\uFF0C\u5F00\u542F\u4F60\u7684 Galaxy","\u9023\u63A5\u61C9\u7528\u7A0B\u5F0F\uFF0C\u958B\u555F\u4F60\u7684 Galaxy"],"Connect an app on your computer to begin building your own record map.":["\u5728\u7535\u8111\u4E0A\u8FDE\u63A5\u4E00\u4E2A\u5E94\u7528\uFF0C\u5F00\u59CB\u5EFA\u7ACB\u4F60\u7684\u8BB0\u5F55\u5730\u56FE\u3002","\u5728\u96FB\u8166\u4E0A\u9023\u63A5\u4E00\u500B\u61C9\u7528\u7A0B\u5F0F\uFF0C\u958B\u59CB\u5EFA\u7ACB\u4F60\u7684\u8A18\u9304\u5730\u5716\u3002"],"Get Zortex":["\u83B7\u53D6 Zortex","\u53D6\u5F97 Zortex"],"A map of the context saved in your workspace.":["\u5C06\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4FDD\u5B58\u7684\u4FE1\u606F\u7ED8\u6210\u5730\u56FE\u3002","\u5C07\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u5132\u5B58\u7684\u8CC7\u8A0A\u7E6A\u6210\u5730\u5716\u3002"],"Your Galaxy record map":["\u4F60\u7684 Galaxy \u8BB0\u5F55\u5730\u56FE","\u4F60\u7684 Galaxy \u8A18\u9304\u5730\u5716"],"Make this workspace yours.":["\u8BA9\u5DE5\u4F5C\u7A7A\u95F4\u9002\u5408\u4F60\u3002","\u8B93\u5DE5\u4F5C\u7A7A\u9593\u9069\u5408\u4F60\u3002"],"Appearance":["\u5916\u89C2","\u5916\u89C0"],"A familiar workspace in every light.":["\u65E0\u8BBA\u660E\u6697\uFF0C\u90FD\u6709\u719F\u6089\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u7121\u8AD6\u660E\u6697\uFF0C\u90FD\u6709\u719F\u6089\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"System":["\u8DDF\u968F\u7CFB\u7EDF","\u8DDF\u96A8\u7CFB\u7D71"],"Light":["\u6D45\u8272","\u6DFA\u8272"],"Dark":["\u6DF1\u8272","\u6DF1\u8272"],"Sign in to your Zortex account.":["\u767B\u5F55\u4F60\u7684 Zortex \u8D26\u6237\u3002","\u767B\u5165\u4F60\u7684 Zortex \u5E33\u6236\u3002"],"Manage":["\u7BA1\u7406","\u7BA1\u7406"],"Connected to your computer.":["\u5DF2\u8FDE\u63A5\u5230\u4F60\u7684\u7535\u8111\u3002","\u5DF2\u9023\u63A5\u5230\u4F60\u7684\u96FB\u8166\u3002"],"Running on this computer.":["\u6B63\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD0\u884C\u3002","\u6B63\u5728\u9019\u53F0\u96FB\u8166\u4E0A\u57F7\u884C\u3002"],"Using Zortex with your AI":["\u8BA9\u4F60\u7684 AI \u4F7F\u7528 Zortex","\u8B93\u4F60\u7684 AI \u4F7F\u7528 Zortex"],"Connect Zortex to a supported AI, then ask it to work with your connected apps.":["\u5C06 Zortex \u8FDE\u63A5\u5230\u652F\u6301\u7684 AI\uFF0C\u7136\u540E\u8BA9\u5B83\u4F7F\u7528\u4F60\u5DF2\u8FDE\u63A5\u7684\u5E94\u7528\u3002","\u5C07 Zortex \u9023\u63A5\u5230\u652F\u63F4\u7684 AI\uFF0C\u7136\u5F8C\u8B93\u5B83\u4F7F\u7528\u4F60\u5DF2\u9023\u63A5\u7684\u61C9\u7528\u7A0B\u5F0F\u3002"],"Open the guide \u2197":["\u6253\u5F00\u6307\u5357 \u2197","\u958B\u555F\u6307\u5357 \u2197"],"Open the guide":["\u6253\u5F00\u6307\u5357","\u958B\u555F\u6307\u5357"],"App not found":["\u6CA1\u6709\u627E\u5230\u5E94\u7528","\u627E\u4E0D\u5230\u61C9\u7528\u7A0B\u5F0F"],"This app is not in the current catalog.":["\u6B64\u5E94\u7528\u4E0D\u5728\u5F53\u524D\u76EE\u5F55\u4E2D\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u4E0D\u5728\u76EE\u524D\u7684\u76EE\u9304\u4E2D\u3002"],"This workspace is unavailable. Please refresh to try again.":["\u5DE5\u4F5C\u7A7A\u95F4\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","\u5DE5\u4F5C\u7A7A\u9593\u66AB\u6642\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"We couldn\u2019t refresh part of your workspace. Last displayed information may be out of date.":["\u5DE5\u4F5C\u7A7A\u95F4\u7684\u90E8\u5206\u5185\u5BB9\u672A\u80FD\u5237\u65B0\uFF0C\u5F53\u524D\u663E\u793A\u7684\u4FE1\u606F\u53EF\u80FD\u5DF2\u8FC7\u65F6\u3002","\u5DE5\u4F5C\u7A7A\u9593\u7684\u90E8\u5206\u5167\u5BB9\u672A\u80FD\u91CD\u65B0\u6574\u7406\uFF0C\u76EE\u524D\u986F\u793A\u7684\u8CC7\u8A0A\u53EF\u80FD\u5DF2\u904E\u6642\u3002"],"We couldn\u2019t refresh your workspace. Your existing connections are safe.":["\u672A\u80FD\u5237\u65B0\u5DE5\u4F5C\u7A7A\u95F4\uFF0C\u5DF2\u6709\u8FDE\u63A5\u4E0D\u53D7\u5F71\u54CD\u3002","\u672A\u80FD\u91CD\u65B0\u6574\u7406\u5DE5\u4F5C\u7A7A\u9593\uFF0C\u65E2\u6709\u9023\u63A5\u4E0D\u53D7\u5F71\u97FF\u3002"],"Setup submitted. Follow the connection progress here.":["\u8BBE\u7F6E\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u5728\u8FD9\u91CC\u67E5\u770B\u8FDE\u63A5\u8FDB\u5EA6\u3002","\u8A2D\u5B9A\u5DF2\u63D0\u4EA4\uFF0C\u8ACB\u5728\u9019\u88E1\u67E5\u770B\u9023\u63A5\u9032\u5EA6\u3002"],"Found a notes folder. Review it before saving.":["\u627E\u5230\u4E00\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\uFF0C\u8BF7\u786E\u8BA4\u540E\u518D\u4FDD\u5B58\u3002","\u627E\u5230\u4E00\u500B\u7B46\u8A18\u8CC7\u6599\u593E\uFF0C\u8ACB\u78BA\u8A8D\u5F8C\u518D\u5132\u5B58\u3002"],"No folder was found. Enter your folder path to continue.":["\u6CA1\u6709\u627E\u5230\u6587\u4EF6\u5939\uFF0C\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u8DEF\u5F84\u4EE5\u7EE7\u7EED\u3002","\u6C92\u6709\u627E\u5230\u8CC7\u6599\u593E\uFF0C\u8ACB\u8F38\u5165\u8CC7\u6599\u593E\u8DEF\u5F91\u4EE5\u7E7C\u7E8C\u3002"],"This step could not finish. Please try again.":["\u6B64\u6B65\u9AA4\u672A\u80FD\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002","\u6B64\u6B65\u9A5F\u672A\u80FD\u5B8C\u6210\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002"],"Sign-in could not finish. Please try again.":["\u767B\u5F55\u672A\u80FD\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002","\u767B\u5165\u672A\u80FD\u5B8C\u6210\uFF0C\u8ACB\u518D\u8A66\u4E00\u6B21\u3002"],"Your Zortex account":["\u4F60\u7684 Zortex \u8D26\u6237","\u4F60\u7684 Zortex \u5E33\u6236"],"Sign in to Zortex":["\u767B\u5F55 Zortex","\u767B\u5165 Zortex"],"Use the same account across your devices.":["\u5728\u4E0D\u540C\u8BBE\u5907\u4E0A\u4F7F\u7528\u540C\u4E00\u4E2A\u8D26\u6237\u3002","\u5728\u4E0D\u540C\u88DD\u7F6E\u4E0A\u4F7F\u7528\u540C\u4E00\u500B\u5E33\u6236\u3002"],"Code sent. Check your email and enter the eight digits.":["\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u68C0\u67E5\u90AE\u7BB1\u5E76\u8F93\u5165\u516B\u4F4D\u9A8C\u8BC1\u7801\u3002","\u9A57\u8B49\u78BC\u5DF2\u50B3\u9001\uFF0C\u8ACB\u6AA2\u67E5\u96FB\u5B50\u90F5\u4EF6\u4E26\u8F38\u5165\u516B\u4F4D\u9A57\u8B49\u78BC\u3002"],"Request a code, then enter its eight digits.":["\u8BF7\u5148\u83B7\u53D6\u9A8C\u8BC1\u7801\uFF0C\u518D\u8F93\u5165\u516B\u4F4D\u6570\u5B57\u3002","\u8ACB\u5148\u53D6\u5F97\u9A57\u8B49\u78BC\uFF0C\u518D\u8F38\u5165\u516B\u4F4D\u6578\u5B57\u3002"],"You\u2019re signed in.":["\u4F60\u5DF2\u767B\u5F55\u3002","\u4F60\u5DF2\u767B\u5165\u3002"],"You\u2019re signed out.":["\u4F60\u5DF2\u9000\u51FA\u767B\u5F55\u3002","\u4F60\u5DF2\u767B\u51FA\u3002"],"Your workspace couldn\u2019t open":["\u672A\u80FD\u6253\u5F00\u5DE5\u4F5C\u7A7A\u95F4","\u672A\u80FD\u958B\u555F\u5DE5\u4F5C\u7A7A\u9593"],"Refresh workspace":["\u5237\u65B0\u5DE5\u4F5C\u7A7A\u95F4","\u91CD\u65B0\u6574\u7406\u5DE5\u4F5C\u7A7A\u9593"],"Bring this app into your workspace":["\u5C06\u6B64\u5E94\u7528\u52A0\u5165\u5DE5\u4F5C\u7A7A\u95F4","\u5C07\u6B64\u61C9\u7528\u7A0B\u5F0F\u52A0\u5165\u5DE5\u4F5C\u7A7A\u9593"],"Connect your account to make this app available to your AI.":["\u8FDE\u63A5\u8D26\u6237\uFF0C\u8BA9\u4F60\u7684 AI \u4F7F\u7528\u6B64\u5E94\u7528\u3002","\u9023\u63A5\u5E33\u6236\uFF0C\u8B93\u4F60\u7684 AI \u4F7F\u7528\u6B64\u61C9\u7528\u7A0B\u5F0F\u3002"],"QR code expired":["\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","QR \u78BC\u5DF2\u904E\u671F"],"Sign-in expired":["\u767B\u5F55\u5DF2\u8FC7\u671F","\u767B\u5165\u5DF2\u904E\u671F"],"Your QR code expired":["\u4F60\u7684\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","\u4F60\u7684 QR \u78BC\u5DF2\u904E\u671F"],"This sign-in link expired":["\u6B64\u767B\u5F55\u94FE\u63A5\u5DF2\u8FC7\u671F","\u6B64\u767B\u5165\u9023\u7D50\u5DF2\u904E\u671F"],"Get a fresh code, then scan it to continue connecting.":["\u83B7\u53D6\u65B0\u7801\uFF0C\u518D\u626B\u63CF\u4EE5\u7EE7\u7EED\u8FDE\u63A5\u3002","\u53D6\u5F97\u65B0\u78BC\uFF0C\u518D\u6383\u63CF\u4EE5\u7E7C\u7E8C\u9023\u63A5\u3002"],"Start sign-in again to get a fresh authorization link.":["\u91CD\u65B0\u5F00\u59CB\u767B\u5F55\u4EE5\u83B7\u53D6\u65B0\u7684\u6388\u6743\u94FE\u63A5\u3002","\u91CD\u65B0\u958B\u59CB\u767B\u5165\u4EE5\u53D6\u5F97\u65B0\u7684\u6388\u6B0A\u9023\u7D50\u3002"],"Restart sign-in":["\u91CD\u65B0\u767B\u5F55","\u91CD\u65B0\u767B\u5165"],"Scan QR code":["\u626B\u63CF\u4E8C\u7EF4\u7801","\u6383\u63CF QR \u78BC"],"Finish connecting":["\u5B8C\u6210\u8FDE\u63A5","\u5B8C\u6210\u9023\u63A5"],"Link your WhatsApp account":["\u5173\u8054\u4F60\u7684 WhatsApp \u8D26\u6237","\u9023\u7D50\u4F60\u7684 WhatsApp \u5E33\u6236"],"One more step to connect":["\u518D\u5B8C\u6210\u4E00\u6B65\u5373\u53EF\u8FDE\u63A5","\u518D\u5B8C\u6210\u4E00\u6B65\u5373\u53EF\u9023\u63A5"],"Scan this code from WhatsApp on your phone.":["\u4F7F\u7528\u624B\u673A\u4E0A\u7684 WhatsApp \u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u3002","\u4F7F\u7528\u624B\u6A5F\u4E0A\u7684 WhatsApp \u6383\u63CF\u6B64 QR \u78BC\u3002"],"Finish authorization, then return here. We\u2019ll check the connection automatically.":["\u5B8C\u6210\u6388\u6743\u540E\u56DE\u5230\u8FD9\u91CC\uFF0C\u6211\u4EEC\u4F1A\u81EA\u52A8\u68C0\u67E5\u8FDE\u63A5\u3002","\u5B8C\u6210\u6388\u6B0A\u5F8C\u56DE\u5230\u9019\u88E1\uFF0C\u6211\u5011\u6703\u81EA\u52D5\u6AA2\u67E5\u9023\u63A5\u3002"],"Continue connection":["\u7EE7\u7EED\u8FDE\u63A5","\u7E7C\u7E8C\u9023\u63A5"],"Checking connection":["\u6B63\u5728\u68C0\u67E5\u8FDE\u63A5","\u6B63\u5728\u6AA2\u67E5\u9023\u63A5"],"Checking your connection":["\u6B63\u5728\u68C0\u67E5\u4F60\u7684\u8FDE\u63A5","\u6B63\u5728\u6AA2\u67E5\u4F60\u7684\u9023\u63A5"],"Connecting your app":["\u6B63\u5728\u8FDE\u63A5\u5E94\u7528","\u6B63\u5728\u9023\u63A5\u61C9\u7528\u7A0B\u5F0F"],"You can keep browsing. Your connection progress stays here.":["\u4F60\u53EF\u4EE5\u7EE7\u7EED\u6D4F\u89C8\uFF0C\u8FDE\u63A5\u8FDB\u5EA6\u4F1A\u4FDD\u7559\u5728\u8FD9\u91CC\u3002","\u4F60\u53EF\u4EE5\u7E7C\u7E8C\u700F\u89BD\uFF0C\u9023\u63A5\u9032\u5EA6\u6703\u4FDD\u7559\u5728\u9019\u88E1\u3002"],"View progress":["\u67E5\u770B\u8FDB\u5EA6","\u67E5\u770B\u9032\u5EA6"],"Restart needed":["\u9700\u8981\u91CD\u542F","\u9700\u8981\u91CD\u65B0\u555F\u52D5"],"Settings saved":["\u8BBE\u7F6E\u5DF2\u4FDD\u5B58","\u8A2D\u5B9A\u5DF2\u5132\u5B58"],"Restart Zortex, then check this app again to finish connecting.":["\u91CD\u542F Zortex\uFF0C\u518D\u6B21\u68C0\u67E5\u6B64\u5E94\u7528\u4EE5\u5B8C\u6210\u8FDE\u63A5\u3002","\u91CD\u65B0\u555F\u52D5 Zortex\uFF0C\u518D\u6B21\u6AA2\u67E5\u6B64\u61C9\u7528\u7A0B\u5F0F\u4EE5\u5B8C\u6210\u9023\u63A5\u3002"],"Reconnect needed":["\u9700\u8981\u91CD\u65B0\u8FDE\u63A5","\u9700\u8981\u91CD\u65B0\u9023\u63A5"],"Your app needs you to sign in again":["\u6B64\u5E94\u7528\u9700\u8981\u4F60\u91CD\u65B0\u767B\u5F55","\u6B64\u61C9\u7528\u7A0B\u5F0F\u9700\u8981\u4F60\u91CD\u65B0\u767B\u5165"],"Reconnect to restore access. Previously saved records are kept.":["\u91CD\u65B0\u8FDE\u63A5\u4EE5\u6062\u590D\u8BBF\u95EE\uFF0C\u4E4B\u524D\u4FDD\u5B58\u7684\u8BB0\u5F55\u4F1A\u4FDD\u7559\u3002","\u91CD\u65B0\u9023\u63A5\u4EE5\u6062\u5FA9\u5B58\u53D6\uFF0C\u5148\u524D\u5132\u5B58\u7684\u8A18\u9304\u6703\u4FDD\u7559\u3002"],"Connected, with one thing to check":["\u5DF2\u8FDE\u63A5\uFF0C\u8FD8\u6709\u4E00\u9879\u9700\u8981\u68C0\u67E5","\u5DF2\u9023\u63A5\uFF0C\u9084\u6709\u4E00\u9805\u9700\u8981\u6AA2\u67E5"],"Let\u2019s finish connecting this app":["\u7EE7\u7EED\u5B8C\u6210\u6B64\u5E94\u7528\u7684\u8FDE\u63A5","\u7E7C\u7E8C\u5B8C\u6210\u6B64\u61C9\u7528\u7A0B\u5F0F\u7684\u9023\u63A5"],"Your connection is saved. The latest check did not finish.":["\u8FDE\u63A5\u5DF2\u4FDD\u5B58\uFF0C\u6700\u8FD1\u4E00\u6B21\u68C0\u67E5\u5C1A\u672A\u5B8C\u6210\u3002","\u9023\u63A5\u5DF2\u5132\u5B58\uFF0C\u6700\u8FD1\u4E00\u6B21\u6AA2\u67E5\u5C1A\u672A\u5B8C\u6210\u3002"],"Automatic setup could not finish. You can continue here with a manual connection.":["\u81EA\u52A8\u8BBE\u7F6E\u672A\u80FD\u5B8C\u6210\uFF0C\u4F60\u53EF\u4EE5\u5728\u8FD9\u91CC\u7EE7\u7EED\u624B\u52A8\u8FDE\u63A5\u3002","\u81EA\u52D5\u8A2D\u5B9A\u672A\u80FD\u5B8C\u6210\uFF0C\u4F60\u53EF\u4EE5\u5728\u9019\u88E1\u7E7C\u7E8C\u624B\u52D5\u9023\u63A5\u3002"],"Connect manually":["\u624B\u52A8\u8FDE\u63A5","\u624B\u52D5\u9023\u63A5"],"Connected. Ready when you are.":["\u5DF2\u8FDE\u63A5\uFF0C\u968F\u65F6\u53EF\u7528\u3002","\u5DF2\u9023\u63A5\uFF0C\u96A8\u6642\u53EF\u7528\u3002"],"You\u2019re connected":["\u4F60\u5DF2\u8FDE\u63A5","\u4F60\u5DF2\u9023\u63A5"],"The connection check succeeded. There are no items to show yet.":["\u8FDE\u63A5\u68C0\u67E5\u5DF2\u6210\u529F\uFF0C\u76EE\u524D\u6CA1\u6709\u53EF\u663E\u793A\u7684\u5185\u5BB9\u3002","\u9023\u63A5\u6AA2\u67E5\u5DF2\u6210\u529F\uFF0C\u76EE\u524D\u6C92\u6709\u53EF\u986F\u793A\u7684\u5167\u5BB9\u3002"],"This app is connected and available in your workspace.":["\u6B64\u5E94\u7528\u5DF2\u8FDE\u63A5\uFF0C\u53EF\u5728\u5DE5\u4F5C\u7A7A\u95F4\u4E2D\u4F7F\u7528\u3002","\u6B64\u61C9\u7528\u7A0B\u5F0F\u5DF2\u9023\u63A5\uFF0C\u53EF\u5728\u5DE5\u4F5C\u7A7A\u9593\u4E2D\u4F7F\u7528\u3002"],"Open app":["\u6253\u5F00\u5E94\u7528","\u958B\u555F\u61C9\u7528\u7A0B\u5F0F"],"Setup needed":["\u9700\u8981\u8BBE\u7F6E","\u9700\u8981\u8A2D\u5B9A"],"Set up your connection":["\u8BBE\u7F6E\u8FDE\u63A5","\u8A2D\u5B9A\u9023\u63A5"],"Add the settings this app needs, then connect your account.":["\u586B\u5199\u6B64\u5E94\u7528\u6240\u9700\u7684\u8BBE\u7F6E\uFF0C\u7136\u540E\u8FDE\u63A5\u8D26\u6237\u3002","\u586B\u5BEB\u6B64\u61C9\u7528\u7A0B\u5F0F\u6240\u9700\u7684\u8A2D\u5B9A\uFF0C\u7136\u5F8C\u9023\u63A5\u5E33\u6236\u3002"],"Set up":["\u8BBE\u7F6E","\u8A2D\u5B9A"],"Unavailable here":["\u6B64\u5904\u4E0D\u53EF\u7528","\u6B64\u8655\u7121\u6CD5\u4F7F\u7528"],"We couldn\u2019t check this app":["\u672A\u80FD\u68C0\u67E5\u6B64\u5E94\u7528","\u672A\u80FD\u6AA2\u67E5\u6B64\u61C9\u7528\u7A0B\u5F0F"],"This app needs a different setup":["\u6B64\u5E94\u7528\u9700\u8981\u5176\u4ED6\u8BBE\u7F6E","\u6B64\u61C9\u7528\u7A0B\u5F0F\u9700\u8981\u5176\u4ED6\u8A2D\u5B9A"],"Connection status is unavailable right now. Try refreshing in a moment.":["\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\u8FDE\u63A5\u72B6\u6001\uFF0C\u8BF7\u7A0D\u540E\u5237\u65B0\u91CD\u8BD5\u3002","\u66AB\u6642\u7121\u6CD5\u53D6\u5F97\u9023\u63A5\u72C0\u614B\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u65B0\u6574\u7406\u518D\u8A66\u3002"],"Local port":["\u672C\u673A\u7AEF\u53E3","\u672C\u6A5F\u9023\u63A5\u57E0"],"Use the port shown by the app on this computer.":["\u4F7F\u7528\u6B64\u7535\u8111\u4E0A\u5E94\u7528\u663E\u793A\u7684\u7AEF\u53E3\u3002","\u4F7F\u7528\u6B64\u96FB\u8166\u4E0A\u61C9\u7528\u7A0B\u5F0F\u986F\u793A\u7684\u9023\u63A5\u57E0\u3002"],"Server address":["\u670D\u52A1\u5668\u5730\u5740","\u4F3A\u670D\u5668\u4F4D\u5740"],"Use the HTTPS address of your own server.":["\u4F7F\u7528\u4F60\u81EA\u5DF1\u670D\u52A1\u5668\u7684 HTTPS \u5730\u5740\u3002","\u4F7F\u7528\u4F60\u81EA\u5DF1\u4F3A\u670D\u5668\u7684 HTTPS \u4F4D\u5740\u3002"],"Username":["\u7528\u6237\u540D","\u4F7F\u7528\u8005\u540D\u7A31"],"Your username":["\u4F60\u7684\u7528\u6237\u540D","\u4F60\u7684\u4F7F\u7528\u8005\u540D\u7A31"],"Client ID":["\u5BA2\u6237\u7AEF ID","\u7528\u6236\u7AEF ID"],"Your app\u2019s client ID":["\u4F60\u7684\u5E94\u7528\u7684\u5BA2\u6237\u7AEF ID","\u4F60\u7684\u61C9\u7528\u7A0B\u5F0F\u7684\u7528\u6236\u7AEF ID"],"Callback port":["\u56DE\u8C03\u7AEF\u53E3","\u56DE\u547C\u9023\u63A5\u57E0"],"Folder to connect":["\u8981\u8FDE\u63A5\u7684\u6587\u4EF6\u5939","\u8981\u9023\u63A5\u7684\u8CC7\u6599\u593E"],"Choose one absolute folder path on the connected computer. Only this folder will be selected.":["\u9009\u62E9\u5DF2\u8FDE\u63A5\u7535\u8111\u4E0A\u7684\u4E00\u4E2A\u6587\u4EF6\u5939\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u4EC5\u9009\u4E2D\u6B64\u6587\u4EF6\u5939\u3002","\u9078\u64C7\u5DF2\u9023\u63A5\u96FB\u8166\u4E0A\u7684\u4E00\u500B\u8CC7\u6599\u593E\u7D55\u5C0D\u8DEF\u5F91\uFF0C\u50C5\u9078\u53D6\u6B64\u8CC7\u6599\u593E\u3002"],"Library ID":["\u6587\u732E\u5E93 ID","\u6587\u737B\u5EAB ID"],"Use 0 for your personal library, or the numeric group library ID.":["\u4E2A\u4EBA\u6587\u732E\u5E93\u8BF7\u8F93\u5165 0\uFF0C\u7FA4\u7EC4\u6587\u732E\u5E93\u8BF7\u8F93\u5165\u5176\u6570\u5B57 ID\u3002","\u500B\u4EBA\u6587\u737B\u5EAB\u8ACB\u8F38\u5165 0\uFF0C\u7FA4\u7D44\u6587\u737B\u5EAB\u8ACB\u8F38\u5165\u5176\u6578\u5B57 ID\u3002"],"Library type":["\u6587\u732E\u5E93\u7C7B\u578B","\u6587\u737B\u5EAB\u985E\u578B"],"Personal library":["\u4E2A\u4EBA\u6587\u732E\u5E93","\u500B\u4EBA\u6587\u737B\u5EAB"],"Group library":["\u7FA4\u7EC4\u6587\u732E\u5E93","\u7FA4\u7D44\u6587\u737B\u5EAB"],"CopyQ executable":["CopyQ \u53EF\u6267\u884C\u6587\u4EF6","CopyQ \u57F7\u884C\u6A94"],"Session name":["\u4F1A\u8BDD\u540D\u79F0","\u5DE5\u4F5C\u968E\u6BB5\u540D\u7A31"],"Default session":["\u9ED8\u8BA4\u4F1A\u8BDD","\u9810\u8A2D\u5DE5\u4F5C\u968E\u6BB5"],"Leave blank to use the default CopyQ session.":["\u7559\u7A7A\u4EE5\u4F7F\u7528\u9ED8\u8BA4\u7684 CopyQ \u4F1A\u8BDD\u3002","\u7559\u7A7A\u4EE5\u4F7F\u7528\u9810\u8A2D\u7684 CopyQ \u5DE5\u4F5C\u968E\u6BB5\u3002"],"Workspace subdomain":["\u5DE5\u4F5C\u7A7A\u95F4\u5B50\u57DF\u540D","\u5DE5\u4F5C\u7A7A\u9593\u5B50\u7DB2\u57DF"],"The name before .freshdesk.com.":[".freshdesk.com \u524D\u9762\u7684\u540D\u79F0\u3002",".freshdesk.com \u524D\u9762\u7684\u540D\u7A31\u3002"],"Region":["\u533A\u57DF","\u5340\u57DF"],"United States":["\u7F8E\u56FD","\u7F8E\u570B"],"Europe":["\u6B27\u6D32","\u6B50\u6D32"],"Australia":["\u6FB3\u5927\u5229\u4E9A","\u6FB3\u6D32"],"Connection method":["\u8FDE\u63A5\u65B9\u5F0F","\u9023\u63A5\u65B9\u5F0F"],"Personal access token":["\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C","\u500B\u4EBA\u5B58\u53D6\u6B0A\u6756"],"Account environment":["\u8D26\u6237\u73AF\u5883","\u5E33\u6236\u74B0\u5883"],"Production":["\u6B63\u5F0F\u73AF\u5883","\u6B63\u5F0F\u74B0\u5883"],"Sandbox":["\u6C99\u76D2\u73AF\u5883","\u6C99\u76D2\u74B0\u5883"],"Your Discord user ID":["\u4F60\u7684 Discord \u7528\u6237 ID","\u4F60\u7684 Discord \u4F7F\u7528\u8005 ID"],"User ID":["\u7528\u6237 ID","\u4F7F\u7528\u8005 ID"],"Local Discord connection path":["\u672C\u673A Discord \u8FDE\u63A5\u8DEF\u5F84","\u672C\u6A5F Discord \u9023\u63A5\u8DEF\u5F91"],"Path shown by the Discord setup":["Discord \u8BBE\u7F6E\u4E2D\u663E\u793A\u7684\u8DEF\u5F84","Discord \u8A2D\u5B9A\u4E2D\u986F\u793A\u7684\u8DEF\u5F91"],"Channel IDs":["\u9891\u9053 ID","\u983B\u9053 ID"],"One ID per line":["\u6BCF\u884C\u4E00\u4E2A ID","\u6BCF\u884C\u4E00\u500B ID"],"Add up to 50 channel IDs, separated by commas or new lines.":["\u6700\u591A\u6DFB\u52A0 50 \u4E2A\u9891\u9053 ID\uFF0C\u4EE5\u9017\u53F7\u6216\u6362\u884C\u5206\u9694\u3002","\u6700\u591A\u65B0\u589E 50 \u500B\u983B\u9053 ID\uFF0C\u4EE5\u9017\u865F\u6216\u63DB\u884C\u5206\u9694\u3002"],"Email":["\u90AE\u4EF6","\u96FB\u5B50\u90F5\u4EF6"],"Messaging":["\u6D88\u606F","\u901A\u8A0A"],"Productivity":["\u6548\u7387\u5DE5\u5177","\u751F\u7522\u529B\u5DE5\u5177"],"PRODUCTIVITY":["\u6548\u7387\u5DE5\u5177","\u751F\u7522\u529B\u5DE5\u5177"],"MESSAGING":["\u6D88\u606F","\u901A\u8A0A"],"Developer tools":["\u5F00\u53D1\u5DE5\u5177","\u958B\u767C\u5DE5\u5177"],"Design":["\u8BBE\u8BA1","\u8A2D\u8A08"],"On your computer":["\u5728\u4F60\u7684\u7535\u8111\u4E0A","\u5728\u4F60\u7684\u96FB\u8166\u4E0A"],"Media":["\u5A92\u4F53","\u5A92\u9AD4"],"More apps":["\u66F4\u591A\u5E94\u7528","\u66F4\u591A\u61C9\u7528\u7A0B\u5F0F"],"Connect {0} to your workspace.":["\u5C06 {0} \u8FDE\u63A5\u5230\u4F60\u7684\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07 {0} \u9023\u63A5\u5230\u4F60\u7684\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Email, conversations, and the context behind them.":["\u90AE\u4EF6\u3001\u5BF9\u8BDD\uFF0C\u4EE5\u53CA\u5176\u4E2D\u7684\u4FE1\u606F\u3002","\u96FB\u5B50\u90F5\u4EF6\u3001\u5C0D\u8A71\uFF0C\u4EE5\u53CA\u5176\u4E2D\u7684\u8CC7\u8A0A\u3002"],"Keep your files and documents within reach.":["\u8BA9\u6587\u4EF6\u548C\u6587\u6863\u968F\u624B\u53EF\u5F97\u3002","\u8B93\u6A94\u6848\u548C\u6587\u4EF6\u96A8\u624B\u53EF\u5F97\u3002"],"Make room for what\u2019s next.":["\u4E3A\u63A5\u4E0B\u6765\u7684\u5B89\u6392\u7559\u51FA\u7A7A\u95F4\u3002","\u70BA\u63A5\u4E0B\u4F86\u7684\u5B89\u6392\u7559\u51FA\u7A7A\u9593\u3002"],"Bring your team\u2019s conversations together.":["\u6C47\u805A\u56E2\u961F\u7684\u5BF9\u8BDD\u3002","\u532F\u805A\u5718\u968A\u7684\u5C0D\u8A71\u3002"],"Your notes, projects, and knowledge in one place.":["\u7B14\u8BB0\u3001\u9879\u76EE\u548C\u77E5\u8BC6\uFF0C\u6C47\u805A\u4E00\u5904\u3002","\u7B46\u8A18\u3001\u5C08\u6848\u548C\u77E5\u8B58\uFF0C\u532F\u805A\u4E00\u8655\u3002"],"Connect the conversations that matter to you.":["\u8FDE\u63A5\u5BF9\u4F60\u91CD\u8981\u7684\u5BF9\u8BDD\u3002","\u9023\u63A5\u5C0D\u4F60\u91CD\u8981\u7684\u5C0D\u8A71\u3002"],"Keep your code and project context close.":["\u968F\u65F6\u638C\u63E1\u4EE3\u7801\u548C\u9879\u76EE\u4FE1\u606F\u3002","\u96A8\u6642\u638C\u63E1\u7A0B\u5F0F\u78BC\u548C\u5C08\u6848\u8CC7\u8A0A\u3002"],"A clear view of your team\u2019s projects.":["\u6E05\u6670\u638C\u63E1\u56E2\u961F\u9879\u76EE\u3002","\u6E05\u6670\u638C\u63E1\u5718\u968A\u5C08\u6848\u3002"],"Bring design context into your workspace.":["\u5C06\u8BBE\u8BA1\u4FE1\u606F\u5E26\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07\u8A2D\u8A08\u8CC7\u8A0A\u5E36\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect your browsing history from this computer.":["\u8FDE\u63A5\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u6D4F\u89C8\u8BB0\u5F55\u3002","\u9023\u63A5\u9019\u53F0\u96FB\u8166\u4E0A\u7684\u700F\u89BD\u8A18\u9304\u3002"],"Give your local notes a place in your workspace.":["\u5C06\u672C\u5730\u7B14\u8BB0\u52A0\u5165\u5DE5\u4F5C\u7A7A\u95F4\u3002","\u5C07\u672C\u6A5F\u7B46\u8A18\u52A0\u5165\u5DE5\u4F5C\u7A7A\u9593\u3002"],"Connect the folders you choose.":["\u8FDE\u63A5\u4F60\u9009\u62E9\u7684\u6587\u4EF6\u5939\u3002","\u9023\u63A5\u4F60\u9078\u64C7\u7684\u8CC7\u6599\u593E\u3002"],"Your email and everyday work, connected.":["\u8BA9\u90AE\u4EF6\u4E0E\u65E5\u5E38\u5DE5\u4F5C\u4E92\u901A\u3002","\u8B93\u96FB\u5B50\u90F5\u4EF6\u8207\u65E5\u5E38\u5DE5\u4F5C\u4E92\u901A\u3002"],"Make your saved thoughts easy to find.":["\u8F7B\u677E\u627E\u5230\u8BB0\u5F55\u4E0B\u7684\u60F3\u6CD5\u3002","\u8F15\u9B06\u627E\u5230\u8A18\u9304\u4E0B\u7684\u60F3\u6CD5\u3002"],"Bring your AI conversations into one place.":["\u5C06 AI \u5BF9\u8BDD\u6C47\u805A\u4E00\u5904\u3002","\u5C07 AI \u5C0D\u8A71\u532F\u805A\u4E00\u8655\u3002"],"Connect the people in your address book.":["\u8FDE\u63A5\u901A\u8BAF\u5F55\u4E2D\u7684\u8054\u7CFB\u4EBA\u3002","\u9023\u63A5\u901A\u8A0A\u9304\u4E2D\u7684\u806F\u7D61\u4EBA\u3002"],"Keep up with your team\u2019s conversations.":["\u968F\u65F6\u638C\u63E1\u56E2\u961F\u5BF9\u8BDD\u3002","\u96A8\u6642\u638C\u63E1\u5718\u968A\u5C0D\u8A71\u3002"],"Bring your video activity into view.":["\u67E5\u770B\u4F60\u7684\u89C6\u9891\u6D3B\u52A8\u3002","\u67E5\u770B\u4F60\u7684\u5F71\u7247\u6D3B\u52D5\u3002"],"Connect the music in your day.":["\u8FDE\u63A5\u4F60\u65E5\u5E38\u8046\u542C\u7684\u97F3\u4E50\u3002","\u9023\u63A5\u4F60\u65E5\u5E38\u8046\u807D\u7684\u97F3\u6A02\u3002"],"Connect your communities and conversations.":["\u8FDE\u63A5\u4F60\u7684\u793E\u7FA4\u548C\u5BF9\u8BDD\u3002","\u9023\u63A5\u4F60\u7684\u793E\u7FA4\u548C\u5C0D\u8A71\u3002"],"Keep your conversations connected.":["\u8BA9\u4F60\u7684\u5BF9\u8BDD\u4FDD\u6301\u4E92\u901A\u3002","\u8B93\u4F60\u7684\u5C0D\u8A71\u4FDD\u6301\u4E92\u901A\u3002"],"Connect your notes with a secure local pairing.":["\u901A\u8FC7\u5B89\u5168\u7684\u672C\u5730\u914D\u5BF9\u8FDE\u63A5\u7B14\u8BB0\u3002","\u900F\u904E\u5B89\u5168\u7684\u672C\u6A5F\u914D\u5C0D\u9023\u63A5\u7B46\u8A18\u3002"],"Bring your research library together.":["\u6C47\u805A\u4F60\u7684\u7814\u7A76\u6587\u732E\u5E93\u3002","\u532F\u805A\u4F60\u7684\u7814\u7A76\u6587\u737B\u5EAB\u3002"],"Keep your files connected to your work.":["\u8BA9\u6587\u4EF6\u4E0E\u4F60\u7684\u5DE5\u4F5C\u4E92\u901A\u3002","\u8B93\u6A94\u6848\u8207\u4F60\u7684\u5DE5\u4F5C\u4E92\u901A\u3002"],"Bring your shared files into view.":["\u67E5\u770B\u4F60\u7684\u5171\u4EAB\u6587\u4EF6\u3002","\u67E5\u770B\u4F60\u7684\u5171\u7528\u6A94\u6848\u3002"],"Connect your own cloud.":["\u8FDE\u63A5\u4F60\u81EA\u5DF1\u7684\u4E91\u7AEF\u670D\u52A1\u3002","\u9023\u63A5\u4F60\u81EA\u5DF1\u7684\u96F2\u7AEF\u670D\u52D9\u3002"],"Connect your personal conversations.":["\u8FDE\u63A5\u4F60\u7684\u4E2A\u4EBA\u5BF9\u8BDD\u3002","\u9023\u63A5\u4F60\u7684\u500B\u4EBA\u5C0D\u8A71\u3002"],"Connect mail through your local Bridge.":["\u901A\u8FC7\u672C\u5730 Bridge \u8FDE\u63A5\u90AE\u4EF6\u3002","\u900F\u904E\u672C\u6A5F Bridge \u9023\u63A5\u96FB\u5B50\u90F5\u4EF6\u3002"],"Connect mail from your computer.":["\u8FDE\u63A5\u7535\u8111\u4E0A\u7684\u90AE\u4EF6\u3002","\u9023\u63A5\u96FB\u8166\u4E0A\u7684\u96FB\u5B50\u90F5\u4EF6\u3002"],"Bring your team\u2019s work together.":["\u6C47\u805A\u56E2\u961F\u7684\u5DE5\u4F5C\u3002","\u532F\u805A\u5718\u968A\u7684\u5DE5\u4F5C\u3002"],"Account and sign out":["\u8D26\u53F7\u4E0E\u9000\u51FA\u767B\u5F55","\u5E33\u865F\u8207\u767B\u51FA"],"Zortex account":["Zortex \u8D26\u53F7","Zortex \u5E33\u865F"],"Connection details":["\u8FDE\u63A5\u8BE6\u60C5","\u9023\u63A5\u8A73\u7D30\u8CC7\u8A0A"],"View connection":["\u67E5\u770B\u8FDE\u63A5","\u67E5\u770B\u9023\u63A5"],"Connection controls and progress stay in this app.":["\u8FDE\u63A5\u64CD\u4F5C\u548C\u8FDB\u5EA6\u5747\u663E\u793A\u5728\u6B64\u5E94\u7528\u4E2D\u3002","\u9023\u63A5\u64CD\u4F5C\u8207\u9032\u5EA6\u5747\u986F\u793A\u5728\u6B64\u61C9\u7528\u7A0B\u5F0F\u4E2D\u3002"],"Available here":["\u53EF\u5728\u6B64\u8FDE\u63A5","\u53EF\u5728\u6B64\u9023\u63A5"],"Setup required here":["\u9700\u8981\u5728\u6B64\u8BBE\u7F6E","\u9700\u8981\u5728\u6B64\u8A2D\u5B9A"],"Setup required in this app":["\u9700\u8981\u5728\u6B64\u5E94\u7528\u4E2D\u8BBE\u7F6E","\u9700\u8981\u5728\u6B64\u61C9\u7528\u7A0B\u5F0F\u4E2D\u8A2D\u5B9A"],"Reconnect or choose an account":["\u91CD\u65B0\u8FDE\u63A5\u6216\u9009\u62E9\u8D26\u53F7","\u91CD\u65B0\u9023\u63A5\u6216\u9078\u64C7\u5E33\u865F"],"Connection settings":["\u8FDE\u63A5\u8BBE\u7F6E","\u9023\u63A5\u8A2D\u5B9A"],"Enable Gmail write access":["\u542F\u7528 Gmail \u5199\u5165\u6743\u9650","\u555F\u7528 Gmail \u5BEB\u5165\u6B0A\u9650"],"Enable Readwise write access":["\u542F\u7528 Readwise \u5199\u5165\u6743\u9650","\u555F\u7528 Readwise \u5BEB\u5165\u6B0A\u9650"],"Reconnect saved account":["\u91CD\u65B0\u8FDE\u63A5\u5DF2\u4FDD\u5B58\u7684\u8D26\u53F7","\u91CD\u65B0\u9023\u63A5\u5DF2\u5132\u5B58\u7684\u5E33\u865F"],"Refresh status":["\u5237\u65B0\u72B6\u6001","\u91CD\u65B0\u6574\u7406\u72C0\u614B"],"Check progress":["\u68C0\u67E5\u8FDB\u5EA6","\u6AA2\u67E5\u9032\u5EA6"],"Save and continue":["\u4FDD\u5B58\u5E76\u7EE7\u7EED","\u5132\u5B58\u4E26\u7E7C\u7E8C"],"The marketplace is not available in this build.":["\u6B64\u7248\u672C\u6682\u672A\u5F00\u653E\u5546\u5E97\u3002","\u6B64\u7248\u672C\u66AB\u672A\u958B\u653E\u5546\u5E97\u3002"],"Connected AI status is not available yet.":["\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\u5DF2\u8FDE\u63A5 AI \u7684\u72B6\u6001\u3002","\u76EE\u524D\u7121\u6CD5\u53D6\u5F97\u5DF2\u9023\u63A5 AI \u7684\u72C0\u614B\u3002"],"Mapped records":["\u5730\u56FE\u4E2D\u7684\u8BB0\u5F55","\u5730\u5716\u4E2D\u7684\u8A18\u9304"],"Mapped records: {0}. Stored counts include revisions and provider cache entries.":["\u5730\u56FE\u4E2D\u7684\u8BB0\u5F55\uFF1A{0}\u3002\u5DF2\u5B58\u50A8\u6570\u91CF\u5305\u62EC\u4FEE\u8BA2\u7248\u672C\u548C\u670D\u52A1\u5546\u7F13\u5B58\u6761\u76EE\u3002","\u5730\u5716\u4E2D\u7684\u8A18\u9304\uFF1A{0}\u3002\u5DF2\u5132\u5B58\u6578\u91CF\u5305\u62EC\u4FEE\u8A02\u7248\u672C\u548C\u670D\u52D9\u5546\u5FEB\u53D6\u9805\u76EE\u3002"],"The map displays {0} records. The full stored count includes revisions and provider cache entries.":["\u5730\u56FE\u663E\u793A {0} \u6761\u8BB0\u5F55\u3002\u5B8C\u6574\u5B58\u50A8\u6570\u91CF\u5305\u62EC\u4FEE\u8BA2\u7248\u672C\u548C\u670D\u52A1\u5546\u7F13\u5B58\u6761\u76EE\u3002","\u5730\u5716\u986F\u793A {0} \u7B46\u8A18\u9304\u3002\u5B8C\u6574\u5132\u5B58\u6578\u91CF\u5305\u62EC\u4FEE\u8A02\u7248\u672C\u548C\u670D\u52D9\u5546\u5FEB\u53D6\u9805\u76EE\u3002"],"Workspace unavailable. Please refresh or sign in again.":["\u5DE5\u4F5C\u533A\u6682\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u6216\u91CD\u65B0\u767B\u5F55\u3002","\u5DE5\u4F5C\u5340\u66AB\u6642\u7121\u6CD5\u4F7F\u7528\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u6216\u518D\u6B21\u767B\u5165\u3002"],"Vault records":["Vault \u8BB0\u5F55","Vault \u8A18\u9304"],"Connection status and local records are separate evidence. Sources without a registered status remain unverified.":["\u8FDE\u63A5\u72B6\u6001\u548C\u672C\u5730\u8BB0\u5F55\u662F\u4E24\u9879\u72EC\u7ACB\u7684\u8BC1\u636E\u3002\u6CA1\u6709\u767B\u8BB0\u72B6\u6001\u7684\u6765\u6E90\u4FDD\u6301\u672A\u9A8C\u8BC1\u3002","\u9023\u63A5\u72C0\u614B\u548C\u672C\u6A5F\u8A18\u9304\u662F\u5169\u9805\u7368\u7ACB\u7684\u8B49\u64DA\u3002\u6C92\u6709\u767B\u8A18\u72C0\u614B\u7684\u4F86\u6E90\u4FDD\u6301\u672A\u9A57\u8B49\u3002"],"Vault data could not be read. Please refresh to try again.":["\u65E0\u6CD5\u8BFB\u53D6 Vault \u6570\u636E\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","\u7121\u6CD5\u8B80\u53D6 Vault \u8CC7\u6599\uFF0C\u8ACB\u91CD\u65B0\u6574\u7406\u5F8C\u518D\u8A66\u3002"],"Stored records unverified":["\u5DF2\u5B58\u50A8\u8BB0\u5F55\u672A\u9A8C\u8BC1","\u5DF2\u5132\u5B58\u8A18\u9304\u672A\u9A57\u8B49"],"Choose Settings \u2192 Linked devices.":["\u9009\u62E9\u201C\u8BBE\u7F6E\u201D\u2192\u201C\u5DF2\u5173\u8054\u8BBE\u5907\u201D\u3002","\u9078\u64C7\u300C\u8A2D\u5B9A\u300D\u2192\u300C\u5DF2\u9023\u7D50\u88DD\u7F6E\u300D\u3002"],"Tap Link a device and scan this code.":["\u70B9\u51FB\u201C\u5173\u8054\u8BBE\u5907\u201D\u5E76\u626B\u63CF\u6B64\u4E8C\u7EF4\u7801\u3002","\u9EDE\u9078\u300C\u9023\u7D50\u88DD\u7F6E\u300D\u4E26\u6383\u63CF\u6B64 QR \u78BC\u3002"],"Your map includes {0} saved items, together with contacts and conversations spanning a year.":["\u4F60\u7684\u5730\u56FE\u5305\u542B {0} \u4E2A\u5DF2\u4FDD\u5B58\u9879\u76EE\uFF0C\u5E76\u6C47\u96C6\u4E86\u4E00\u5E74\u95F4\u7684\u8054\u7CFB\u4EBA\u548C\u5BF9\u8BDD\u3002","\u4F60\u7684\u5730\u5716\u5305\u542B {0} \u500B\u5DF2\u5132\u5B58\u9805\u76EE\uFF0C\u4E26\u5F59\u96C6\u4E86\u4E00\u5E74\u9593\u7684\u806F\u7D61\u4EBA\u8207\u5C0D\u8A71\u3002"]};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
6
|
+
<title>Zortex</title>
|
|
7
|
+
<script src="look.js"></script>
|
|
8
|
+
<link rel="stylesheet" href="zx-tokens.css">
|
|
9
|
+
<link rel="stylesheet" href="app.css">
|
|
10
|
+
<link rel="stylesheet" href="shell.css"><link rel="stylesheet" href="account.css"></head>
|
|
11
|
+
<body>
|
|
12
|
+
<!-- The window's drag strip comes first: the Mac builds its drag area in page order, so everything after it that is
|
|
13
|
+
marked no-drag (the sidebar button, the sidebar) stays clickable. -->
|
|
14
|
+
<div id="titlebar" aria-hidden="true"></div>
|
|
15
|
+
<!-- Zortex without DSH: the same views as one local page. The twin is the home; everything else floats over it. -->
|
|
16
|
+
<iframe id="twin" title="Your digital twin" src="star-graph.html"></iframe>
|
|
17
|
+
<main id="chat" aria-label="Chat" hidden><div id="messages"></div></main>
|
|
18
|
+
<iframe id="view" title="Mods" hidden></iframe>
|
|
19
|
+
|
|
20
|
+
<!-- The Super Engine: Super Heavy's 33 engines fire for your first 33 apps that are on. The small one sits near the corner of the twin;
|
|
21
|
+
clicking it opens the engine page, where you manage your apps (engine-view.js). -->
|
|
22
|
+
<button id="engine-corner" class="engine-corner" type="button" aria-label="Manage connectors"><span id="engine-mini" class="engine-mini"></span></button>
|
|
23
|
+
<section id="engine" class="engine-page" aria-labelledby="engine-title" hidden>
|
|
24
|
+
<header class="engine-head">
|
|
25
|
+
<div><h1 id="engine-title">Super Engine</h1><p id="engine-sub" class="engine-sub"></p></div>
|
|
26
|
+
<button id="engine-close" class="round-button" type="button" aria-label="Close"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7 7 10 10M17 7 7 17"/></svg></button>
|
|
27
|
+
</header>
|
|
28
|
+
<div class="engine-body">
|
|
29
|
+
<div class="engine-left">
|
|
30
|
+
<div id="engine-big" class="engine-big"></div>
|
|
31
|
+
<p class="engine-sync"><span id="engine-sync"></span><button id="engine-sync-now" class="text-button" type="button">Sync Now</button></p>
|
|
32
|
+
<div id="engine-card" class="engine-card" hidden>
|
|
33
|
+
<div class="card-top">
|
|
34
|
+
<span id="card-icon" class="card-icon"></span>
|
|
35
|
+
<div class="card-words"><h2 id="card-name"></h2><p id="card-line" class="card-line"></p></div>
|
|
36
|
+
<button id="card-close" class="round-button" type="button" aria-label="Deselect"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7 7 10 10M17 7 7 17"/></svg></button>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="card-actions"><button id="card-toggle" class="ink-pill" type="button"></button><button id="card-settings" class="text-button" type="button">Settings</button></div>
|
|
39
|
+
</div>
|
|
40
|
+
<p id="engine-status" class="sr-only" role="status"></p>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="engine-side">
|
|
43
|
+
<label class="engine-search"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="6.5"/><path d="m16 16 4 4"/></svg><input id="engine-q" type="search" placeholder="Search apps" aria-label="Search your apps" autocomplete="off" spellcheck="false"></label>
|
|
44
|
+
<ul id="connector-list" class="connector-list" aria-label="Your apps"></ul>
|
|
45
|
+
<p id="engine-empty" class="engine-empty" hidden>No matching apps.</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</section>
|
|
49
|
+
|
|
50
|
+
<button id="sidebar-show" class="round-glass" type="button" aria-label="Show sidebar" title="Show sidebar · ⌘\" aria-controls="sidebar" aria-expanded="false">
|
|
51
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="5" width="17" height="14" rx="3.5"/><path d="M9.5 5v14"/></svg>
|
|
52
|
+
</button>
|
|
53
|
+
<!-- The sidebar, as in Apple Maps: a glass panel over the twin. The button (or ⌘\) shows it, and it stays until the
|
|
54
|
+
button is pressed again. Connected AIs, Apps and Mods each open in the panel beside it (panels.js). -->
|
|
55
|
+
<aside id="sidebar" aria-label="Zortex" inert>
|
|
56
|
+
<div class="side-top">
|
|
57
|
+
<button id="sidebar-hide" type="button" aria-label="Hide sidebar" title="Hide sidebar · ⌘\"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="5" width="17" height="14" rx="3.5"/><path d="M9.5 5v14"/></svg></button>
|
|
58
|
+
</div>
|
|
59
|
+
<button class="side-new" type="button" data-go="home" data-zx-new-chat><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5H7.5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5V12"/><path d="m10 14 .6-2.8 7.2-7.2a1.6 1.6 0 0 1 2.2 2.2l-7.2 7.2z"/></svg>New chat</button>
|
|
60
|
+
<nav class="side-nav" aria-label="Your twin">
|
|
61
|
+
<button type="button" data-go="ais" id="zx-ais-link"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="4" width="7" height="7" rx="2.2"/><rect x="14" y="13" width="7" height="7" rx="2.2"/><path d="M10 7.5h5.5a2 2 0 0 1 2 2V13M6.5 11v3.5a2 2 0 0 0 2 2H14"/></svg>Connected AIs</button>
|
|
62
|
+
<button type="button" data-go="apps"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="7" height="7" rx="2"/><rect x="13" y="4" width="7" height="7" rx="2"/><rect x="4" y="13" width="7" height="7" rx="2"/><rect x="13" y="13" width="7" height="7" rx="2"/></svg>Apps</button>
|
|
63
|
+
<button type="button" data-go="mods"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M10 4.5a1.75 1.75 0 0 1 3.5 0V6H17a1.5 1.5 0 0 1 1.5 1.5V11H20a1.75 1.75 0 0 1 0 3.5h-1.5V18a1.5 1.5 0 0 1-1.5 1.5h-3.5V18a1.75 1.75 0 0 0-3.5 0v1.5H6.5A1.5 1.5 0 0 1 5 18v-3.5h1.5a1.75 1.75 0 0 0 0-3.5H5V7.5A1.5 1.5 0 0 1 6.5 6H10z"/></svg>Mods</button>
|
|
64
|
+
</nav>
|
|
65
|
+
<p class="side-head" id="chats-head" hidden>Chats</p>
|
|
66
|
+
<div class="side-chats" id="chats"></div>
|
|
67
|
+
<!-- The account. Its menu is where setup lives now (also ⇧⌘S): out of the way once it is done. -->
|
|
68
|
+
<button class="side-foot" id="account" type="button" aria-haspopup="menu" aria-expanded="false" aria-controls="account-menu"><span class="avatar" id="avatar"></span><span id="account-name"></span></button>
|
|
69
|
+
</aside>
|
|
70
|
+
<div id="account-menu" class="menu" role="menu" aria-label="Account" hidden>
|
|
71
|
+
<button id="setup-again" type="button" role="menuitem">Set Up Again<kbd>⇧⌘S</kbd></button>
|
|
72
|
+
</div>
|
|
73
|
+
<!-- The panel beside the sidebar, like Saved Places or Guides in Apple Maps: a title, a round close button, cards, and
|
|
74
|
+
a small tool capsule at the bottom. panels.js fills it. -->
|
|
75
|
+
<section id="panel" class="panel" aria-labelledby="panel-title" hidden>
|
|
76
|
+
<header class="panel-head">
|
|
77
|
+
<button id="panel-back" class="round-button" type="button" aria-label="Back" hidden><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m14 6.5-5.5 5.5 5.5 5.5"/></svg></button>
|
|
78
|
+
<h1 id="panel-title" tabindex="-1"></h1>
|
|
79
|
+
<button id="panel-close" class="round-button" type="button" aria-label="Close"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7 7 10 10M17 7 7 17"/></svg></button>
|
|
80
|
+
</header>
|
|
81
|
+
<div id="panel-body" class="panel-body"></div>
|
|
82
|
+
<div id="panel-tools" class="panel-tools" hidden></div>
|
|
83
|
+
<p id="panel-status" class="sr-only" role="status"></p>
|
|
84
|
+
</section>
|
|
85
|
+
|
|
86
|
+
<form id="composer" class="composer" autocomplete="off">
|
|
87
|
+
<div class="bar">
|
|
88
|
+
<textarea id="input" rows="1" aria-label="Ask Zortex, or give it a task" spellcheck="true"></textarea>
|
|
89
|
+
<span class="ghost" id="ghost" aria-hidden="true"></span>
|
|
90
|
+
<button class="tab" id="tab" type="button" aria-label="Use suggested question" title="Tab to use this suggestion" hidden>Tab</button>
|
|
91
|
+
<button class="send" id="send" type="submit" aria-label="Send message" hidden><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 15.5v-11M5.5 9 10 4.5 14.5 9"/></svg></button>
|
|
92
|
+
</div>
|
|
93
|
+
</form>
|
|
94
|
+
<iframe id="setup" title="Set up Zortex" hidden></iframe>
|
|
95
|
+
<script src="vendor/engine.js"></script>
|
|
96
|
+
<script type="module" src="app.js"></script>
|
|
97
|
+
<script src="account.js" defer></script><script src="app-i18n.js"></script></body>
|
|
98
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createConnectionClient({token,fetcher=fetch}){return async(input,{signal}={})=>{const response=await fetcher("connections",{method:"POST",headers:{"Content-Type":"application/json","X-Zortex-Galaxy":token||""},body:JSON.stringify(input),cache:"no-store",signal});let body;try{body=await response.json()}catch{throw Error("The connection service is unavailable. Please try again.")}if(!response.ok){const error=new Error(body.error==="connection_in_progress"?"Another connection is still running. You can continue it or cancel it before starting this one.":body.error==="session_expired"?"Your connection session expired. Please try again.":"We couldn\u2019t complete that step. Your existing connections are safe. Try again.");error.code=body.error;error.activeSource=body.activeSource;throw error}return body}}export async function runConnectionAction(request,input,options={}){if(!["manual","restart"].includes(input.action))return request(input,options);try{await request({action:"cancel",source:input.source},options)}catch(error){if(error.code!=="verification_not_active"||error.activeSource&&error.activeSource!==input.source)throw error}return request({action:"connect",source:input.source},options)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const text=(name,label,placeholder="",extra={})=>({name,label,placeholder,type:"text",...extra});const port=(value=41184)=>({name:"port",label:"Local port",type:"number",min:1024,max:65535,value,help:"Use the port shown by the app on this computer."});const choice=(name,label,options)=>({name,label,type:"select",options});const instance=text("instanceUrl","Server address","https://your-server.example",{type:"url",help:"Use the HTTPS address of your own server."});const username=text("username","Username","Your username");const client=[text("clientId","Client ID","Your app\u2019s client ID"),{...port(53682),name:"loopbackPort",label:"Callback port"}];const forms={"native-files":{flag:"setupAvailable",fields:[text("roots","Folder to connect","/Users/you/Documents",{help:"Choose one absolute folder path on the connected computer. Only this folder will be selected.",maxLength:512})]},zotero:{fields:[text("libraryId","Library ID","0",{help:"Use 0 for your personal library, or the numeric group library ID."}),choice("libraryType","Library type",[["user","Personal library"],["group","Group library"]])]},owntracks:{fields:[port(8083)]},wechat:{fields:[port(5030)]},thunderbird:{fields:[port(8765)]},"proton-mail":{fields:[port(1143)]},copyq:{fields:[text("executable","CopyQ executable","/usr/local/bin/copyq"),text("session","Session name","Default session",{required:false,pattern:"[\\p{L}\\p{N}_\\-]{0,16}",maxLength:16,help:"Leave blank to use the default CopyQ session."})]},freshdesk:{fields:[text("subdomain","Workspace subdomain","your-team",{help:"The name before .freshdesk.com."})]},smartsheet:{fields:[choice("region","Region",[["us","United States"],["eu","Europe"],["au","Australia"]])]},figma:{scalar:true,fields:[choice("selection","Connection method",[["fields","Personal access token"],["oauth","OAuth"]])]},nextcloud:{fields:[instance]},zulip:{nested:true,fields:[instance,{...username,label:"Email address",type:"email"}]},freshrss:{nested:true,fields:[instance,username]},miniflux:{nested:true,fields:[instance,username]},mattermost:{nested:true,fields:[instance,username]},wallabag:{nested:true,fields:[instance,username]},calcom:{nested:true,fields:[username]},wakatime:{nested:true,fields:[username]},dropbox:{nested:true,fields:client},box:{nested:true,fields:client},front:{nested:true,fields:client},hubspot:{nested:true,fields:client},"google-contacts":{nested:true,fields:client},"google-chat":{nested:true,fields:client},salesforce:{nested:true,fields:[...client,choice("environment","Account environment",[["production","Production"],["sandbox","Sandbox"]])]},zendesk:{nested:true,fields:[...client,text("subdomain","Workspace subdomain","your-team")]},zoom:{nested:true,fields:[client[0]]},discord:{nested:true,fields:[client[0],text("expectedSubject","Your Discord user ID","User ID"),text("ipcPath","Local Discord connection path","Path shown by the Discord setup"),text("channelIds","Channel IDs","One ID per line",{type:"textarea",help:"Add up to 50 channel IDs, separated by commas or new lines."})]},joplin:{pairing:true,fields:[]}};function flagFor(id){return id.replace(/-([a-z])/g,(_,letter)=>letter.toUpperCase())+"SetupAvailable"}export function setupFor(source,report){const requested=Object.entries(forms).find(([id2,definition2])=>report?.[definition2.flag||flagFor(id2)]===true);if(!requested)return null;const[id,definition]=requested;return{...definition,id,source,action:"configure-"+id}}export function setupRequest(definition,values){const fields={};for(const field of definition.fields){const raw=String(values[field.name]??"").trim();if(!raw&&field.required!==false)throw Error(`Enter ${field.label.toLowerCase()}.`);fields[field.name]=field.type==="number"?Number(raw):field.name==="roots"?[raw]:field.name==="channelIds"?raw.split(/[\n,]+/).map(v=>v.trim()).filter(Boolean):raw}return{action:definition.action,source:definition.source,...definition.nested?{selection:fields}:fields}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{connectionView,safeAuthorizationUrl,safeAuthorizationImage}from"./app-model.js";import{createConnectionClient,runConnectionAction}from"./connection-client.js";import{setupFor,setupRequest}from"./connection-forms.js";const esc=value=>String(value??"").replace(/[&<>"']/g,c=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[c]);export function createConnectionPanel({runtime={},token,onChange=()=>{}}={}){const request=createConnectionClient({token}),lifetime=new AbortController;const busy=new Set,errors=new Map,editing=new Set,collapsedSetup=new Set,drafts=new Map,pairings=new Map,notices=new Map;let report=null,refreshing=null,revision=0,mounted=null,disposed=false,expiryTimer;const sourceReport=source=>[...report?.sources||[],...report?.others||[]].find(row=>row.source===source);const view=(source,coverage={})=>connectionView({...coverage,source},sourceReport(source));const accept=result=>{if(Array.isArray(result?.sources)){report=result;return true}return false};const button=(source,label,action)=>'<button type="button" class="p-pill" data-connection-action="'+esc(action)+'"'+(busy.has(source)?' disabled aria-busy="true"':"")+">"+esc(label)+"</button>";const actions=html2=>'<div class="p-actions">'+html2+"</div>";const note=text=>text?'<p class="p-note">'+esc(text)+"</p>":"";async function refresh(){if(disposed||!runtime.canConnect)return report;if(refreshing)return refreshing;const current=revision;refreshing=request({action:"status"},{signal:lifetime.signal}).then(result=>{if(!disposed&¤t===revision)accept(result);return report}).finally(()=>{refreshing=null});return refreshing}async function changed(){if(disposed)return;try{await onChange()}catch{}repaint()}async function perform(source,action,extra={}){if(disposed||busy.has(source)||!runtime.canConnect)return;busy.add(source);errors.delete(source);notices.delete(source);revision++;repaint();let result;try{result=await runConnectionAction(request,{...extra,action,source},{signal:lifetime.signal});if(disposed)return;revision++;accept(result);if(result?.pairing){if(result.pairing.state==="cancelled"){pairings.delete(source);drafts.delete(source)}else pairings.set(source,result.pairing)}if(action.startsWith("configure-")&&!result?.pairing){editing.delete(source);collapsedSetup.delete(source);drafts.delete(source)}if(action==="read"&&pairings.get(source)?.state==="configured"){editing.delete(source);pairings.delete(source);drafts.delete(source)}if(action==="discover-native-vault"){const first=(result.candidates||[]).find(item=>typeof item==="string"||typeof item?.path==="string");if(first){drafts.set(source,{...drafts.get(source)||{},roots:typeof first==="string"?first:first.path});notices.set(source,"Found a notes folder. Review it before saving.")}else notices.set(source,"No folder was found. Enter the folder path to continue.")}const current=revision;try{const latest=await request({action:"status"},{signal:lifetime.signal});if(!disposed&¤t===revision)accept(latest)}catch{if(!disposed)notices.set(source,"The action was sent. Refresh to check its latest status.")}}catch(error){if(!disposed)errors.set(source,error.message||"This step could not finish. Please try again.")}finally{busy.delete(source);if(!disposed)await changed()}return result}async function check(source){errors.delete(source);try{await refresh()}catch(error){if(!disposed)errors.set(source,error.message||"Connection status is unavailable. Try again.")}await changed()}async function primary(source,coverage={}){if(disposed)return;if(!report&&runtime.canConnect){try{await refresh()}catch(error){errors.set(source,error.message||"Connection status is unavailable.");repaint();return}}const current=view(source,coverage);if(current.action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(["open","continue"].includes(current.action)||!runtime.canConnect){repaint();return}if(current.action==="refresh"){await check(source);return}await perform(source,current.action)}function fields(source,definition){const values=drafts.get(source)||{};return definition.fields.map(field=>{const value=values[field.name]??field.value??"",id="connection-"+source+"-"+field.name;const attrs=' id="'+esc(id)+'" name="'+esc(field.name)+'"'+(field.required===false?"":" required")+(field.maxLength?' maxlength="'+field.maxLength+'"':"")+(field.pattern?' pattern="'+esc(field.pattern)+'"':"")+(busy.has(source)?" disabled":"");const input=field.type==="select"?"<select"+attrs+">"+field.options.map(([key,label])=>'<option value="'+esc(key)+'"'+(String(value)===key?" selected":"")+">"+esc(label)+"</option>").join("")+"</select>":field.type==="textarea"?"<textarea"+attrs+' placeholder="'+esc(field.placeholder||"")+'">'+esc(value)+"</textarea>":"<input"+attrs+' type="'+esc(field.type)+'" placeholder="'+esc(field.placeholder||"")+'" value="'+esc(value)+'"'+(field.min!=null?' min="'+field.min+'" max="'+field.max+'"':"")+">";return'<label class="p-row" for="'+esc(id)+'"><span class="grow">'+esc(field.label)+(field.help?"<small>"+esc(field.help)+"</small>":"")+"</span>"+input+"</label>"}).join("")}function pairing(source){const pair=pairings.get(source),draft=drafts.get(source)||{};if(!pair)return note("Open the Zortex plugin in Joplin, then start pairing. Both apps will show a fingerprint for you to compare.")+actions(button(source,"Start pairing","pair-start"));if(pair.state==="configured")return note(pair.reloadRequired?"Pairing saved. Restart Zortex before checking note access.":"Joplin is paired. Check note access to verify the connection.")+actions(button(source,pair.reloadRequired?"Check again":"Verify note access",pair.reloadRequired?"refresh":"read"));if(pair.expiresAt&&Date.now()>=pair.expiresAt)return note("This pairing code expired. Start again to get a fresh code.")+actions(button(source,"Start again","pair-start"));if(!["pairing","confirm-required"].includes(pair.state)||!pair.pairingId)return note(pair.next||"Pairing could not finish. Keep Joplin open and try again.")+actions(button(source,"Start again","pair-start"));const key=pair.zortexPublicKey?note("Paste this public key into the Zortex plugin in Joplin.")+'<p class="p-note"><code data-no-translate>'+esc(pair.zortexPublicKey)+"</code></p>":"";const confirm=pair.state==="confirm-required"&&pair.fingerprint;return key+(confirm?note("Compare this fingerprint with Joplin. Continue only when both match.")+'<p class="p-note"><code data-no-translate>'+esc(pair.fingerprint)+"</code></p>":"")+'<form data-connection-form="'+(confirm?"pair-confirm":"pair-inspect")+'"><div class="p-group">'+(confirm?'<label class="p-row"><span class="grow">Joplin port</span><input name="port" type="number" min="1024" max="65535" value="'+esc(draft.port||41184)+'" required></label>':'<label class="p-row"><span class="grow">Public key from Joplin</span><input name="pluginPublicKey" value="'+esc(draft.pluginPublicKey||"")+'" required pattern="[a-fA-F0-9]{88}" maxlength="88" autocomplete="off"></label>')+"</div>"+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">"+(confirm?"Fingerprints match \xB7 Pair":"Compare fingerprints")+"</button>"+button(source,"Cancel pairing","pair-cancel"))+"</form>"}function setup(source,definition,current){if(!definition)return note(current.report?.support?.nextStep||"This app has no manual settings available on this computer.")+actions(button(source,"Check again","refresh"));if(definition.pairing)return pairing(source);return'<form data-connection-form="setup"><div class="p-group">'+fields(source,definition)+"</div>"+note("Sign-in details are entered in the app\u2019s authorization page after setup.")+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">Save and continue</button>"+button(source,"Cancel","hide-setup")+(source==="obsidian"?button(source,"Find my vaults","discover-native-vault"):""))+"</form>"}function waiting(source,current){const row=current.report||{},url=safeAuthorizationUrl(row.authorizationUrl||row.signInUrl,source),image=safeAuthorizationImage(row.authorizationImage),qr=current.kind==="qr";let html2="";if(qr)html2+=(image?'<p><img src="'+esc(image)+'" width="208" height="208" alt="'+esc("Scan this QR code to connect "+(row.label||source))+'"></p>':note("Preparing your QR code\u2026"))+"<ol><li>Open WhatsApp on your phone.</li><li>Choose Settings \u2192 Linked devices.</li><li>Tap Link a device and scan this code.</li></ol>";if(row.deviceUserCode)html2+='<p class="p-note">Sign-in code: <code data-no-translate>'+esc(row.deviceUserCode)+"</code></p>";const instructions=row.browserContinuation?"Continue sign-in in the browser window that opened, then return here. Your connection will be verified automatically.":row.authorizationInstructions||row.nextStep;if(instructions)html2+=note(instructions);else if(!qr&&!url)html2+=note("Finish sign-in in the window that opened, then return here to check progress.");return html2+actions((url?'<a class="p-pill" href="'+esc(url)+'" target="_blank" rel="noopener noreferrer">Continue sign-in</a>':"")+button(source,"Check connection",runtime.mode==="mock"?"read":"refresh")+button(source,"Cancel connection","cancel")+(qr?button(source,"Get a new code","restart"):""))}function html(source,coverage){const current=view(source,coverage),row=current.report||{},definition=setupFor(source,row);let controls;if(!runtime.canConnect)controls=note("Open Zortex on your connected computer to change this connection. Your saved information remains available here.")+actions(button(source,"Refresh status","refresh"));else if((editing.has(source)||current.kind==="setup"&&!collapsedSetup.has(source))&¤t.kind!=="working")controls=setup(source,definition,current);else if(["qr","waiting"].includes(current.kind))controls=waiting(source,current);else if(current.kind==="working")controls=actions(button(source,"Check progress","refresh")+button(source,"Connect manually instead","manual")+button(source,"Cancel connection","cancel"));else if(current.connected&&!current.attention)controls=actions(button(source,"Check connection","read"));else controls=actions(button(source,current.actionLabel,current.action)+(current.kind==="attention"?button(source,"Refresh status","refresh"):""));const extra=["setup","reload","attention","working","unavailable"].includes(current.kind)?[row.message,row.nextStep||row.support?.nextStep].filter((text,index,all)=>typeof text==="string"&&text.trim()&&text!==current.description&&all.indexOf(text)===index).map(note).join(""):"";let manage="";if(runtime.canConnect){if(row.authorizationAvailable===true)manage+=button(source,"Reconnect or choose an account","authorize");if(definition&&!editing.has(source)&¤t.kind!=="setup")manage+=button(source,"Connection settings","show-setup");if(row.gmailWriteAvailable===true)manage+=button(source,"Enable Gmail write access","authorize-gmail-write");if(row.readwiseMcpWriteAvailable===true)manage+=button(source,"Enable Readwise write access","authorize-readwise-mcp");if(row.reconnectSavedAvailable===true)manage+=button(source,"Reconnect saved account","reconnect-saved")}return'<div class="p-callout" data-connection-state="'+esc(current.kind)+'"'+(busy.has(source)?' aria-busy="true"':"")+"><b>"+esc(current.title)+"</b><p>"+esc(current.description)+"</p>"+extra+controls+(errors.has(source)?'<p class="p-note" role="alert">'+esc(errors.get(source))+"</p>":"")+note(notices.get(source))+"</div>"+(manage?actions(manage):"")}function repaint(){clearTimeout(expiryTimer);if(disposed||!mounted)return;const{container,source,coverage}=mounted,active=container.contains(document.activeElement)?document.activeElement:null;const id=active?.id,action=active?.dataset?.connectionAction;container.innerHTML=html(source,coverage);const next=id?container.querySelector('[id="'+CSS.escape(id)+'"]'):action?container.querySelector('[data-connection-action="'+CSS.escape(action)+'"]'):null;next?.focus({preventScroll:true});const row=sourceReport(source),expiry=row?.state==="waiting-user"?Date.parse(row.authorizationExpiresAt):NaN;const pairExpiry=pairings.get(source)?.state!=="configured"?pairings.get(source)?.expiresAt:NaN;const nextExpiry=Math.min(...[expiry,pairExpiry].filter(value=>Number.isFinite(value)&&value>Date.now()));if(Number.isFinite(nextExpiry))expiryTimer=setTimeout(repaint,Math.min(2147483647,Math.max(1,nextExpiry-Date.now()+10)))}function unmount(){clearTimeout(expiryTimer);if(!mounted)return;const{container,click,submit,input}=mounted;container.removeEventListener("click",click);container.removeEventListener("submit",submit);container.removeEventListener("input",input);container.removeEventListener("change",input);mounted=null}function mount(container,source,coverage={}){unmount();if(disposed||!container)return;container.dataset.connectionPanel=source;const click=event=>{const target=event.target.closest("[data-connection-action]");if(!target||target.disabled||!container.contains(target))return;event.preventDefault();event.stopPropagation();const action=target.dataset.connectionAction;if(action==="show-setup"||action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(action==="hide-setup"){editing.delete(source);collapsedSetup.add(source);drafts.delete(source);repaint();return}if(action==="open"||action==="continue"){repaint();return}if(action==="refresh"){void check(source);return}if(action==="pair-start"){void perform(source,"configure-joplin",{selection:{phase:"start"}});return}if(action==="pair-cancel"){const pair=pairings.get(source);if(pair?.pairingId)void perform(source,"configure-joplin",{selection:{phase:"cancel",pairingId:pair.pairingId}});return}void perform(source,action)};const input=event=>{const form=event.target.closest("form[data-connection-form]");if(form&&container.contains(form))drafts.set(source,Object.fromEntries(new FormData(form)))};const submit=event=>{const form=event.target;if(!form.matches("form[data-connection-form]"))return;event.preventDefault();event.stopPropagation();if(busy.has(source)||!runtime.canConnect)return;const values=Object.fromEntries(new FormData(form));drafts.set(source,values);try{if(form.dataset.connectionForm==="setup"){const definition=setupFor(source,sourceReport(source));if(!definition)return;const body=setupRequest(definition,values);void perform(source,body.action,body)}else{const pair=pairings.get(source);if(!pair?.pairingId)return;const selection=form.dataset.connectionForm==="pair-inspect"?{phase:"inspect",pairingId:pair.pairingId,pluginPublicKey:String(values.pluginPublicKey).toLowerCase()}:{phase:"confirm",pairingId:pair.pairingId,port:Number(values.port),fingerprint:pair.fingerprint};void perform(source,"configure-joplin",{selection})}}catch(error){errors.set(source,error.message);repaint()}};mounted={container,source,coverage,click,submit,input};container.addEventListener("click",click);container.addEventListener("submit",submit);container.addEventListener("input",input);container.addEventListener("change",input);repaint()}return{refresh,getReport:()=>report,view,primary,mount,dispose(){if(disposed)return;disposed=true;revision++;lifetime.abort();unmount();busy.clear();errors.clear();editing.clear();collapsedSetup.clear();drafts.clear();pairings.clear();notices.clear();report=null}}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{graphFacts}from"./product-model.js";import{esc}from"./setup-model.js";import{mountNodes}from"./star-graph-nodes.js";import{mountTopics}from"./star-graph-topics.js";import{sourceBands,mountSourcesBig,totalGraph}from"./star-graph-sources.js";import{mountLinks}from"./star-graph-links.js";import{mountFogLinks}from"./star-graph-fog-links.js";import{readViewState,writeViewState,timelineIndex,cameraSnapshot,restoreCamera}from"./star-graph-view-state.js";import{loadTwinCPU}from"./star-graph-cpu.js";import{timelinePainter}from"./star-graph-timeline-paint.js";(async()=>{const params=new URLSearchParams(location.search),$=id=>document.getElementById(id);const demo=params.get("demo")==="1",compact=params.get("compact")==="1";const message=$("graph-message");try{const response=await fetch(demo?"demo-profile.json":"star-graph-data.json");if(!response.ok)throw new Error("Personal graph data unavailable");window.GALAXY_ROWS=await response.json();if(window.ZX_LOOK!=="plain")await loadTwinCPU();await new Promise((resolve,reject)=>{const script=document.createElement("script");script.src=window.ZX_LOOK==="plain"?"star-graph-plain.gen.js":"star-graph-twin.gen.js";script.onload=resolve;script.onerror=reject;document.body.appendChild(script)});if(!window.galaxy?.ready||!window.__portrait)throw new Error("Personal graph unavailable");if(!compact)await home();requestAnimationFrame(()=>$("universe").classList.add("ready"));if(demo&¶ms.get("forming")==="1"){const[{loadDemo},{progress},catalogue]=await Promise.all([import("./demo-state.js"),import("./setup-model.js"),fetch("abilities.json").then(r=>r.json())]);const idle=Number(params.get("idle"))||0;let forming,sent=null,away=false;try{away=parent!==window&&parent.location.origin!==location.origin}catch{away=true}addEventListener("message",e=>{if(e.source===parent&&e.data?.type==="zortex-demo"&&e.data.state){sent=e.data.state;update()}});const update=()=>{const state=sent??(away?null:loadDemo());if(!state)return;const p=state.run?progress(state,catalogue.apps):idle?{percent:0,done:false}:{percent:100,done:true};window.galaxy.setForm(Math.max(idle||.08,p.percent/100));if(p.done)clearInterval(forming)};forming=setInterval(update,300);update();if(away)parent.postMessage({type:"zortex-demo-ask"},"*");addEventListener("pagehide",()=>clearInterval(forming))}}catch{window.galaxy?.stop();$("universe").hidden=true;message.hidden=false;message.textContent="Your twin isn\u2019t available yet."}async function home(){const galaxy=window.galaxy,rows=window.GALAXY_ROWS;let shown=rows,facts=graphFacts(rows);const panel=$("world"),toggle=$("world-toggle");const VIEW_KEY=demo?null:"zx-twin-view-v1";let viewStorage=null;try{viewStorage=sessionStorage}catch{}const previousView=readViewState(viewStorage,VIEW_KEY);let restoringView=true,saveViewTimer=0,selectedPerson=null;function persistView(){clearTimeout(saveViewTimer);if(restoringView)return;const snapshots=history?.snapshots;const position=want==null?at:want;writeViewState(viewStorage,VIEW_KEY,{version:1,mode,person:selectedPerson,date:mode==="time"&&snapshots?.length?position===snapshots.length-1?"today":snapshots[position]?.as_of:null,playing:!!playing,panel:panel.hidden?null:view,scroll:panel.scrollTop,camera:cameraSnapshot(galaxy.state,inset,galaxy.viewScale())})}function rememberView(){if(restoringView)return;clearTimeout(saveViewTimer);saveViewTimer=setTimeout(persistView,120)}$("controls").hidden=false;const ask=text=>parent.postMessage({type:"zortex-compose",text},"*");let nodes=null,nodesData=null;if(!demo){const data=nodesData=await fetch("star-graph-nodes.json").then(r=>r.ok?r.json():null).catch(()=>null);try{if(data)nodes=mountNodes({galaxy,data,canvas:$("universe"),overlay:$("nodes"),card:$("node-card"),onAsk:ask})}catch(error){console.error("Could not place the real things on the twin",error)}}const sources=data=>new Set([...(data?.things||[]).map(t=>t.label),...(data?.people||[]).map(p=>p.via)]).size;const links=galaxy.live&&rows.mode!=="record-map"?mountLinks({galaxy,canvas:$("links"),sources:nodesData?sources(nodesData):3}):null;window.zxLinks=links;window.zxNodes=nodes;const unlit=[];unlit.push=function(x){if(this.length>500)this.shift();return Array.prototype.push.call(this,x)};window.zxUnlit=()=>unlit.splice(0);let feedHover=()=>{},streaming=false,resumable=false,step=[],flying=[],waiting=[],ended=false;if(nodes){const queue=[];feedHover=list=>{if(mode!=="time"||!playing)return;const now=performance.now();for(const a of list)if(a.related.length)queue.push({...a,at:now});queue.sort((x,y)=>y.weight-x.weight);queue.length=Math.min(queue.length,8)};nodes.onArrive=list=>feedHover(list);window.zxWaiting=()=>waiting.length;window.zxFlying=()=>flying.length;window.zxLanes=()=>step.map(x=>x&&[x.phase,Math.round(performance.now()-x.at),+(galaxy.gap?.(x.a.star)??-1).toFixed(3)]);setInterval(()=>{if(mode!=="time"||!playing){queue.length=0;return}if(streaming){queue.length=0;if(nodes.auto!=null)nodes.auto=null;return}const now=performance.now();while(queue.length&&now-queue[0].at>1500)queue.shift();const a=queue.shift();if(!a)return;nodes.auto=a.node;if(!streaming)galaxy.bring?.(a.star,a.related)},220)}let fogLinks=null;if(galaxy.linkDots&&galaxy.layers){fogLinks=mountFogLinks({galaxy});window.zxFogLinks=fogLinks}const count=n=>new Intl.NumberFormat("en").format(n),plural=(n,one,many=one+"s")=>`${count(n)} ${n===1?one:many}`;if(nodes){const n=nodes.counts,f=x=>x.toLocaleString("en");$("world-note").textContent=`Zoom in and every point is something real: one of the ${f(n.things)} things in your vault (the ${f(n.made)} you made shine brighter than the ${f(n.kept)} you keep), or one of your ${f(n.people)} people. Around the twin is what a thing is about; out from the centre is when it came. Your people are the small companions.`}$("modes-foot").textContent=nodes?`${count(nodes.counts.things+nodes.counts.people)} things and people, from your vault`:demo?"An example twin, made up":"Drawn from your vault";const day=iso=>new Intl.DateTimeFormat("en",{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(new Date(iso));let pendingFacts=null;function fill(r,when,force=false){shown=r;facts=graphFacts(r);pendingFacts={r,when};$("facts-count").textContent=plural(facts.length,"measurement");if(!force&&(panel.hidden||panel.dataset.view!=="facts"))return;pendingFacts=null;$("world-sub").textContent=r.mode==="record-map"?`${when}. Real record map; semantic portrait has not been calculated. Geometry is layout only.`:r.evidence?.semantic==="measured-subset"?`${when}. Measured from an authored subset with existing vectors. Unknown dimensions use layout defaults; see coverage.`:`${when}. Each part of it comes from one of these measurements.`;$("world-facts").innerHTML=facts.map((f,i)=>`<article class="fact">
|
|
2
|
+
<p class="fact-name">${esc(f.name)}</p>
|
|
3
|
+
<p class="fact-figure"><strong>${esc(f.figure)}</strong>${esc(f.unit)}</p>
|
|
4
|
+
${f.sentence?`<p class="fact-sentence">${esc(f.sentence)}</p>`:""}
|
|
5
|
+
${picture(f.visual)}
|
|
6
|
+
<p class="fact-twin"><b>In the twin: ${esc(f.shape.toLowerCase())}</b>${esc(f.description)}</p>
|
|
7
|
+
<button class="fact-ask" type="button" data-ask="${i}">Ask Zortex about this \u203A</button>
|
|
8
|
+
</article>`).join("")}const yours=demo?"An example twin":`Your twin on ${day(rows.as_of)}`;fill(rows,yours);$("world-facts").onclick=e=>{const fact=facts[e.target.closest("[data-ask]")?.dataset.ask];if(!fact)return;ask(`Explain this part of my twin in plain language. ${demo||shown.as_of==="example"?"Fictional example":`Snapshot ${shown.as_of}`}: ${fact.name} \u2014 ${fact.value}. ${fact.detail} In the twin it is ${fact.shape.toLowerCase()}. What does this tell me, and what are its limits?`)};let view="modes";function setView(v){view=v;panel.dataset.view=v;panel.querySelectorAll(".view").forEach(el=>{el.hidden=el.dataset.for!==v});panel.setAttribute("aria-labelledby",{modes:"modes-title",facts:"world-title",play:"play-title"}[v]);panel.scrollTop=0;if(v==="modes")thumbs();if(v==="facts"&&pendingFacts)fill(pendingFacts.r,pendingFacts.when,true);rememberView()}function setPanel(open,v=mode==="play"?"play":"modes"){if(open)setView(v);panel.hidden=!open;toggle.setAttribute("aria-expanded",String(open));if(mode==="time"){$("settings-btn").setAttribute("aria-expanded",String(open&&v==="play"))}document.body.toggleAttribute("data-play-open",open&&v==="play"&&mode==="time");if(open)panel.querySelector(`.view[data-for="${v}"] :is([data-close], .done)`)?.focus({preventScroll:true});rememberView()}toggle.onclick=()=>setPanel(panel.hidden);new MutationObserver(()=>{$("time-side").hidden=$("time").hidden}).observe($("time"),{attributes:true,attributeFilter:["hidden"]});let downAt=null;addEventListener("pointerdown",e=>{downAt=[e.clientX,e.clientY]},true);addEventListener("click",e=>{if(!downAt||Math.hypot(e.clientX-downAt[0],e.clientY-downAt[1])>6)return;if(mode!=="time"||panel.hidden||view!=="play"||panel.contains(e.target)||e.target.closest?.("#settings-btn"))return;setPanel(false)},true);panel.addEventListener("click",e=>{if(e.target.closest("[data-close]")){setPanel(false);toggle.focus();return}const to=e.target.closest("button[data-view]")?.dataset.view;if(to)setView(to)});$("universe").addEventListener("pointerdown",()=>{if(!panel.hidden&&view!=="play")setPanel(false)});const tiles=[...panel.querySelectorAll(".mode")];if(!galaxy.reshape)tiles.forEach(t=>{if(t.dataset.mode!=="twin")t.hidden=true});const check=m=>{tiles.forEach(t=>t.setAttribute("aria-checked",String(t.dataset.mode===({time:"play"}[m]||m||"twin"))));parent.postMessage({type:"zortex-twin-mode",mode:m||"twin"},"*");document.body.dataset.mode=m||"twin"};$("modes").onclick=e=>{const m=e.target.closest(".mode")?.dataset.mode;if(!m)return;if(m==="twin")backToYou();else openMode(m==="play"?"time":m);setPanel(false)};const time=$("time"),others=$("others"),month=iso=>new Intl.DateTimeFormat("en",{month:"short",year:"numeric",timeZone:"UTC"}).format(new Date(iso));let mode=null,history=null,people=null,at=0,want=null,playing=null,backTimer,modeRun=0;let other=false,lit=1,past=null;const id=who=>who?`rows:example:${who}`:void 0;const theirs=p=>p&&{...p.rows,anchor:rows};const loadPeople=async()=>people||=await fetch("star-graph-others.json").then(r=>r.ok?r.json():null).catch(()=>null);const thingsBack=ms=>{clearTimeout(backTimer);backTimer=setTimeout(()=>{if(nodes&&!other&&lit>=1)nodes.away=false},ms+50)};function whole(ms){if(lit<1||galaxy.state.form<1){lit=1;galaxy.growTo(1,ms)}}function endGrowth(){visualActive=null;visualClosing=false;galaxy.presentation?.(false);if(resumable){resumable=false;knob=null;nodes?.streamEnd()}galaxy.still?.(false)}function leaving(){endGrowth();if(mode==="play")leavePlay();if(mode==="insights")topics?.shut(true);if(mode==="time"){feedClear();past=null;nodes?.timeline(null,700);if(nodes)nodes.marks="names";if(!panel.hidden&&view==="play")setPanel(false);leavePlay();axis(true);fullScreen(false)}}function draw(r,ms,who,flow){clearTimeout(backTimer);if(nodes)nodes.away=true;whole(ms);other=true;galaxy.reshape(r,ms,id(who),flow)}function backToYou(){modeRun++;selectedPerson=null;stop();leaving();mode=null;check(null);time.hidden=others.hidden=true;galaxy.spinClose?.(false);rememberView();if(shown===rows&&!other&&lit>=1)return;whole(800);if(other){galaxy.reshape(rows,800);other=false}if(shown!==rows)fill(rows,yours);thingsBack(800)}async function openMode(which,resume=null){if(mode===which)return;const mine=++modeRun;stop();leaving();mode=which;selectedPerson=null;check(which);galaxy.spinClose?.(true);time.hidden=which!=="time";others.hidden=which!=="others";if(which==="time"){if(nodes)nodes.marks=marksAt;entry={tilt:galaxy.state.targetTilt,speed:galaxy.state.speed,paused:galaxy.state.paused};galaxy.setPaused(true);if(pg.who!==-1){pg={who:-1,set:Object.fromEntries(Object.entries(pg.set).filter(([k])=>!/^(f|c)\./.test(k)))};save()}base=galaxy.featuresOf(rows);applyNow();history||=await fetch("star-graph-history.json").then(r=>r.ok?r.json():null).catch(()=>null);if(mine!==modeRun)return;const snaps=history?.snapshots||[];if(!snaps.length){$("time-date").textContent="No history yet";$("time-line").textContent="Your twin over time needs a saved history from this Mac.";return}years(snaps);at=resume?timelineIndex(snaps,resume.date):nodes?.streamFrom?0:snaps.length-1;if(resume&&at<snaps.length-1&&!nodes?.streamFrom)await readyShape(at);if(mine!==modeRun)return;showAt(at,0);if(!resume||resume.playing&&at<snaps.length-1)play()}else if(which==="insights"){if(shown!==rows||lit<1||other){whole(800);if(other){galaxy.reshape(rows,800);other=false}fill(rows,yours);thingsBack(800)}history||=await fetch("star-graph-history.json").then(r=>r.ok?r.json():null).catch(()=>null);if(mine!==modeRun||!nodes?.topicCountsAt)return;const snaps=history?.snapshots||[],from=snaps.length?Date.parse(snaps[0].as_of):void 0,to=snaps.length?Date.parse(snaps[snaps.length-1].as_of):void 0;mountAnalytics();topics.draw(to,from,to);if(nodes.sourceSeries)topics.sources.set(sourceBands(nodes.sourceSeries(120,from,to)));topics.open()}else{if(shown!==rows||lit<1||other){whole(800);if(other){galaxy.reshape(rows,800);other=false}fill(rows,yours);thingsBack(800)}await loadPeople();if(mine!==modeRun)return;$("others-title").textContent="Other people\u2019s twins";$("others-line").textContent="Made-up people, drawn by the same rules as yours.";$("others-list").innerHTML=[{name:"You"},...people?.people||[]].map((p,i)=>`<button type="button" data-person="${i-1}" aria-pressed="${i===0}">${esc(p.name)}</button>`).join("")}rememberView()}const ownFeatures=galaxy.featuresOf?.(rows)||{};const historyFamily=Object.freeze({old:ownFeatures.age>.65,edge:ownFeatures.night>.65,ring:ownFeatures.ring>.65&&ownFeatures.night<=.65,twin:ownFeatures.merger>.5,irregular:ownFeatures.irregular>.45});const spread=r=>{const snaps=history.snapshots,end=snaps[snaps.length-1],prev=snaps[snaps.length-2]||end,m=r.mass;if(r===end||!end.mass.undated||m.things==null||!prev.mass.things)return m;const folk=Math.max(0,Math.min(end.mass.undated,end.mass.people-prev.mass.people)),things=end.mass.undated-folk;return{...m,things:Math.round(m.things*(1+things/prev.mass.things)),people:Math.round((m.people||0)*(1+folk/Math.max(1,prev.mass.people||0)))}};const historyRows=r=>({...r,mass:spread(r),family:historyFamily,growthTotal:held(history.snapshots[history.snapshots.length-1])});const held=r=>r.mass.things==null?r.mass.items:r.mass.things+(r.mass.people||0);const heldThen=r=>held({mass:spread(r)});const dayOf=t=>new Date(t).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"});let feedLast=null,feedNames=true,feedTimer=0;const BANDS=[[160,185,255],[240,228,205],[214,190,148],[165,198,178],[150,152,162],[186,168,228]];let growth=null,growthT=null,growthTimer=0;const growthAt=t=>{growthT=t;growthTimer||=setTimeout(growthDraw,100)};let topics=null;const mountAnalytics=()=>topics||=mountTopics({nodes,explore:$("topic-explore"),sources:mountSourcesBig,onClose:()=>{if(mode==="insights")backToYou()}});let totalDraw=null;function growthDraw(){growthTimer=0;if(!nodes?.births)return;const snaps=history?.snapshots;if(!snaps?.length)return;totalDraw||=totalGraph($("time-growth"),$("time-total"));totalDraw(nodes.births(Date.parse(snaps[0].as_of),Date.parse(snaps[snaps.length-1].as_of)),growthT)}$("time-growth").onclick=()=>openMode("insights");const feedDraw=()=>{feedTimer=0;const box=$("feed"),e=feedLast;if(!e||mode!=="time"){box.hidden=true;return}const pic=nodes.logoTile(e.app,14);let ico;if(pic){ico=document.createElement("canvas");ico.width=pic.width;ico.height=pic.height;ico.getContext("2d").drawImage(pic,0,0)}else{ico=document.createElement("span");ico.className="no-ico"}const app=document.createElement("span"),what=document.createElement("span"),verb=document.createElement("span");app.className="app";app.textContent=e.appName;what.className="what";what.textContent=feedNames?e.name||e.type:e.type;verb.className="verb";verb.textContent=e.verb;box.replaceChildren(ico,app,what,verb);box.hidden=false};const feedAdd=list=>{if(!list.length)return;feedLast=list[list.length-1];feedTimer||=setTimeout(feedDraw,100)};const feedClear=()=>{feedLast=null;clearTimeout(feedTimer);feedTimer=0;$("feed").hidden=true};function showAt(i,ms=600,flow=false){const snaps=history.snapshots,r=snaps[i],last=i===snaps.length-1,was=past?heldThen(past):held(rows);if(last&&mode==="time"&&nodes?.visualToday){showVisualToday(i,ms);return}if(!last&&nodes?.streamFrom){grownAt(i,ms);return}at=i;endGrowth();feedClear();clearTimeout(backTimer);whole(ms);if(!last||other||shown!==rows||galaxy.state.form<1)galaxy.reshape(last?rows:historyRows(r),ms,void 0,flow);other=!last;past=last?null:r;const from=Date.parse(snaps[0].as_of),to=Date.parse(snaps[snaps.length-1].as_of);const m=r.mass,tell=d=>{const things=d?d.things:m.things,folk=d?d.people:m.people,undated=d?d.undated:m.undated;const line=things==null?plural(m.items,"thing"):`${plural(things,"thing")} \xB7 ${plural(folk,"person","people")}`;$("time-line").textContent=undated?`${line} \xB7 ${count(undated)} ${d?"undated, spread over the years":"with no date"}`:r.circle.weekly?`${line} \xB7 ${count(r.circle.weekly)} in touch every week`:line};if(nodes){nodes.away=false;nodes.timeline(last?null:Date.parse(r.as_of)+864e5,ms,{from,to,tick:tell,visualToday:last})}else tell(null);if(last&&mode==="time")applyShape(ms);if(last){if(shown!==rows)fill(rows,yours)}else fill(r,`Your twin at the end of ${month(r.as_of)}`);$("time-date").textContent=last?"Today":month(r.as_of);growthAt(last?null:Date.parse(r.as_of)+864e5);$("time-track").setAttribute("aria-valuemax",String(snaps.length-1));$("time-track").setAttribute("aria-valuenow",String(i));$("time-track").setAttribute("aria-valuetext",last?"Today":month(r.as_of));bars();yearNow();rememberView()}function showVisualToday(i,ms){const snaps=history.snapshots,from=Date.parse(snaps[0].as_of),to=Date.parse(snaps[snaps.length-1].as_of);const mine=++stillRun;visualActive=null;visualClosing=false;resumable=false;at=i;knob=null;past=null;feedClear();clearTimeout(backTimer);galaxy.presentation(true);nodes.away=false;if(other)galaxy.reshape(rows,Math.max(1,ms));other=false;whole(Math.max(1,ms));const settle=()=>{if(mine!==stillRun||mode!=="time")return;if(galaxy.morphing?.()){setTimeout(settle,30);return}galaxy.still(true);nodes.visualToday(from,to);if(shown!==rows)fill(rows,yours);$("time-date").textContent="Today";const c=nodes.counted;$("time-line").textContent=`${plural(c.things,"thing")} \xB7 ${plural(c.people,"person","people")}`;$("time-track").setAttribute("aria-valuemax",String(snaps.length-1));$("time-track").setAttribute("aria-valuenow",String(i));$("time-track").setAttribute("aria-valuetext","Today");growthAt(null);bars();yearNow();rememberView()};settle()}const GLOW=200;let stillRun=0;function grownAt(i,ms){const snaps=history.snapshots,r=snaps[i],from=Date.parse(snaps[0].as_of),to=Date.parse(snaps[snaps.length-1].as_of);at=i;knob=null;clearTimeout(backTimer);other=false;past=null;nodes.away=false;feedClear();visualActive=null;visualClosing=false;step=[];flying=[];waiting=[];ended=false;galaxy.presentation?.(true);galaxy.reshape(rows,1);const mine=++stillRun,settle=()=>{if(mine!==stillRun||mode!=="time")return;if(galaxy.morphing?.())setTimeout(settle,40);else{galaxy.still?.(true);nodes.lay?.()}};nodes.growth=spawnAt;nodes.streamFrom(i===0?-Infinity:Date.parse(r.as_of)+864e5,from,to);settle();resumable=true;const c=nodes.counted,total=nodes.counts.things+nodes.counts.people;galaxy.growTo(galaxy.formAt(Math.max(0,(c.things+c.people-GLOW)/Math.max(1,total-GLOW))),Math.max(1,ms));if(shown!==r)fill(r,`Your twin at the end of ${month(r.as_of)}`);$("time-date").textContent=i===0?`Before ${dayOf(nodes.nextBorn??from)}`:month(r.as_of);growthAt(i===0?nodes.streamAt:Date.parse(r.as_of)+864e5);$("time-line").textContent=`${plural(c.things,"thing")} \xB7 ${plural(c.people,"person","people")}`;$("time-track").setAttribute("aria-valuemax",String(snaps.length-1));$("time-track").setAttribute("aria-valuenow",String(i));$("time-track").setAttribute("aria-valuetext",$("time-date").textContent);bars();yearNow();rememberView()}let knob=null;function bars(){const canvas=$("time-bars"),snaps=history.snapshots,dpr=devicePixelRatio||1;const w=canvas.clientWidth,h=canvas.clientHeight,ctx=canvas.getContext("2d");canvas.width=Math.round(w*dpr);canvas.height=Math.round(h*dpr);ctx.setTransform(dpr,0,0,dpr,0,0);const y=h/2,x=(knob??at+.5)/snaps.length*w,r=6;ctx.clearRect(0,0,w,h);ctx.fillStyle="rgba(245,245,247,.18)";ctx.beginPath();ctx.roundRect(0,y-2,w,4,2);ctx.fill();ctx.fillStyle="#f5f5f7";ctx.beginPath();ctx.roundRect(0,y-2,Math.max(4,x),4,2);ctx.fill();ctx.beginPath();ctx.arc(Math.min(w-r,Math.max(r,x)),y,r,0,Math.PI*2);ctx.fill()}function years(snaps){const n=snaps.length;$("time-years").innerHTML=snaps.map((r,i)=>{const at2=(i+.5)/n;if(i===n-1||r.as_of.slice(5,7)!=="01")return"";return`<button type="button" data-at="${i}" style="left:${at2*100}%" aria-label="Go to ${r.as_of.slice(0,4)}">${r.as_of.slice(0,4)}</button>`}).join("")+`<button type="button" class="now" data-at="${n-1}">Today</button>`;const box=$("time-years"),now=box.querySelector(".now").getBoundingClientRect();box.querySelectorAll("button:not(.now)").forEach(s=>{if(s.getBoundingClientRect().right>now.left-8)s.remove()});yearNow()}function yearNow(){const snaps=history?.snapshots;if(!snaps?.length)return;const y=at===snaps.length-1?null:snaps[at].as_of.slice(0,4);$("time-years").querySelectorAll("button").forEach(b=>b.setAttribute("aria-current",String(b.classList.contains("now")?y==null:snaps[+b.dataset.at].as_of.slice(0,4)===y)))}$("time-years").onclick=e=>{const b=e.target.closest("button[data-at]"),snaps=history?.snapshots;if(!b||!snaps?.length)return;const i=+b.dataset.at;stop();if(i!==at||i===0)showAt(i,700)};let speed=1;try{speed=[1,2,4,8,16,32,64,128,256,512,1024].includes(+localStorage.getItem("zx-timeline-speed"))?+localStorage.getItem("zx-timeline-speed"):1}catch{}const showSpeed=()=>{$("time-speed").textContent=`${speed}\xD7`;$("time-speed").setAttribute("aria-label",`Speed ${speed}\xD7, click to change`)};showSpeed();$("time-speed").onclick=()=>{speed=speed>=1024?1:speed*2;showSpeed();try{localStorage.setItem("zx-timeline-speed",String(speed))}catch{}};let run=0;const readyShape=i=>new Promise((resolve,reject)=>{const timer=setTimeout(()=>reject(new Error("Twin shape did not arrive within 5 seconds")),5e3);Promise.resolve(i===history.snapshots.length-1?null:galaxy.shapeOf(historyRows(history.snapshots[i]))).then(v=>{clearTimeout(timer);resolve(v)},e=>{clearTimeout(timer);reject(e)})});async function play(){window.__zxPlaying=true;const snaps=history?.snapshots;if(!snaps?.length)return;if(playing){stop();return}const mine=++run;playing=-1;galaxy.setPaused(entry?.paused??false);rememberView();$("time-play").setAttribute("aria-label","Pause");$("time-play").classList.add("on");const failed=error=>{if(mine!==run)return;stop();console.error("Twin timeline:",error);$("time-line").textContent="Could not prepare this timeline. Try again.";$("time-date").textContent="Could not prepare this timeline. Try again."};try{if(at>=snaps.length-1){if(!nodes?.streamFrom)await readyShape(0);if(mine!==run)return;showAt(0,0)}if(nodes?.streamFrom){stream(mine,snaps,failed);return}const every=()=>Math.max(1,Math.round(snaps.length*speed/320));const stepMs=()=>9700*8/speed/Math.max(1,Math.ceil((snaps.length-1)/every()));const after=i=>Math.min(snaps.length-1,i+every());const prefetch=i=>{if(i<snaps.length-1)galaxy.prepare(historyRows(snaps[i]))};const next=async()=>{try{if(mine!==run)return;if(at>=snaps.length-1){stop();return}const i=after(at);await readyShape(i);if(mine!==run)return;const STEP=stepMs();showAt(i,STEP,true);if(i<snaps.length-1)prefetch(after(i));playing=setTimeout(next,STEP+(i===snaps.length-1?2e3:0))}catch(error){failed(error)}};prefetch(after(at));playing=setTimeout(next,300)}catch(error){failed(error)}}const PER_DAY=5;const lanes=()=>PER_DAY;let dynamicPace=true,paceFrom=0;const pace=()=>{if(!dynamicPace||window.zxPileCheck||speed<=1||!nodes)return speed;const c=nodes.counted,ramp=2**Math.max(0,(performance.now()-paceFrom-4e3)/1500);return Math.min(speed,Math.max(ramp,(c.things+c.people)/64))};let batchEnd=-Infinity,batchFrame=-1;const frameNo=()=>window.zxFrameNo||0;if(!window.zxFrameNo)(function count2(){window.zxFrameNo=(window.zxFrameNo||0)+1;requestAnimationFrame(count2)})();window.zxLanes2=()=>({speed,lanes:lanes()});let spawnAt="place";const SPAWNS={place:"A \xB7 edge, its side",link:"B \xB7 edge, its link\u2019s side",pool:"C \xB7 fed from one side"};try{const v=localStorage.getItem("zx-timeline-growth");if(SPAWNS[v])spawnAt=v}catch{}const showSpawn=()=>{$("time-spawn").textContent=SPAWNS[spawnAt];if(nodes)nodes.growth=spawnAt};showSpawn();let marksAt="logos";const MARKS={logos:"App logos",names:"Names"};try{const v=localStorage.getItem("zx-timeline-marks");if(MARKS[v])marksAt=v}catch{}const showMarks=()=>{$("time-marks").textContent=MARKS[marksAt];$("time-marks").setAttribute("aria-label",`Below the dots: ${MARKS[marksAt]}, click to change`);if(nodes&&mode==="time")nodes.marks=marksAt};showMarks();$("time-marks").onclick=()=>{marksAt=marksAt==="logos"?"names":"logos";showMarks();try{localStorage.setItem("zx-timeline-marks",marksAt)}catch{}};$("time-spawn").onclick=()=>{spawnAt={place:"link",link:"pool",pool:"place"}[spawnAt];showSpawn();try{localStorage.setItem("zx-timeline-growth",spawnAt)}catch{}};const VISUAL_DAY_MAX=400;let visualActive=null,visualClosing=false;function visualStream(mine,snaps,failed){const from=Date.parse(snaps[0].as_of),to=Date.parse(snaps[snaps.length-1].as_of);const fresh=!resumable;if(fresh){nodes.streamFrom(at===0||at===snaps.length-1?-Infinity:Date.parse(snaps[at].as_of)+864e5,from,to);visualActive=null;visualClosing=false;other=false;past=null;galaxy.growTo(0,1);if(shown!==rows||galaxy.state.form<1)galaxy.reshape(rows,1)}if(visualActive&&visualActive.epoch!==nodes.streamEpoch)visualActive=null;if(typeof galaxy.frameNumber!=="function"||typeof galaxy.presentation!=="function")throw new Error("Timeline renderer is stale: rebuild the current source");resumable=false;streaming=true;window.__zxPlaying=true;galaxy.presentation(true);let prepared=false,previousDay=-Infinity,lastUI=0;const paintUI=(final=false)=>{const c=nodes.counted,t=nodes.streamAt;$("time-date").textContent=final?"Today":dayOf(t);$("time-line").textContent=`${plural(c.things,"thing")} \xB7 ${plural(c.people,"person","people")}`;knob=final?null:Math.max(0,Math.min(snaps.length,(t-from)/Math.max(1,to-from)*(snaps.length-1)+.5));if(final)at=snaps.length-1;else{let i=at;while(i<snaps.length-1&&t>Date.parse(snaps[i].as_of)+864e5)i++;at=i}$("time-track").setAttribute("aria-valuenow",String(at));$("time-track").setAttribute("aria-valuetext",final?"Today":$("time-date").textContent);growthAt(final?null:t);bars();yearNow()};const completeToday=()=>{streaming=false;window.__zxPlaying=false;knob=null;nodes.streamEnd({preserveGeometry:true});past=null;other=false;fill(rows,yours);lit=1;paintUI(true);rememberView();stop()};const tick=()=>{try{if(mine!==run)return;const now=performance.now();if(!prepared){if(galaxy.morphing?.()){playing=setTimeout(tick,30);return}galaxy.still?.(true);nodes.pushesHeld=true;prepared=true}const k=pace();galaxy.pace?.(k);nodes.visualPace=k;if(visualActive){const batch=visualActive.items;for(const state of batch){if(state.done)continue;const a=state.a;if(state.phase==="link"&&(nodes.visualReceipt(a.node)?.brightUntil??Infinity)<=now){if(nodes.inPool?.(a.node))nodes.leavePool(a.node);const[x,y]=nodes.visualTarget(a.node);galaxy.aim?.(a.star,x,y);state.phase="move"}if(nodes.visualLinkDone(a.node,frameNo())){nodes.landed?.(a.node,a.b);state.done=true}}if(batch.every(s=>s.done))visualActive=null}if(!visualActive&&!visualClosing){const next=nodes.nextBorn;if(next==null){visualClosing=true;galaxy.growTo(1,850)}else{const d=Math.floor(next/864e5);if(nodes.visualLinkProgress().unfinished.length)throw new Error("Next day admitted before its required links and geometry settled");const got=nodes.spawnDay(VISUAL_DAY_MAX);if(!got){visualClosing=true;galaxy.growTo(1,850)}else{const items=[];for(const a of got){if(a.x==null)throw new Error("A visual arrival has no edge spawn coordinate");galaxy.attach?.(a.star,-1,a.x,a.y,0);nodes.link(a);items.push({a,phase:"link",at:now})}visualActive=items.length?{items,epoch:nodes.streamEpoch}:null;previousDay=d;const c=nodes.counted,total=nodes.counts.things+nodes.counts.people;const share=(c.things+c.people)/Math.max(1,total);galaxy.growTo(Math.min(1,Math.pow(share,.58)),230)}}}if(visualClosing&&!visualActive&&galaxy.state.form>=1&&nodes.visualEndReady()){const p=nodes.visualLinkProgress();if(p.unfinished.length||p.arrived!==p.finished)throw new Error("End reached with unfinished synthetic links");completeToday();return}if(now-lastUI>100){paintUI();lastUI=now}const latest=nodes.feedLatest(nodes.streamAt);if(latest)feedAdd([nodes.feedRow(latest)]);playing=setTimeout(tick,16)}catch(error){failed(error)}};playing=setTimeout(tick,16)}function stream(mine,snaps,failed){if(nodes?.visualLinkDone){visualStream(mine,snaps,failed);return}const ends=snaps.map(r=>Date.parse(r.as_of)+864e5),from=Date.parse(snaps[0].as_of),to=Date.parse(snaps[snaps.length-1].as_of);const total=nodes.counts.things+nodes.counts.people;const fresh=!resumable;if(!resumable){nodes.growth=spawnAt;nodes.streamFrom(at===0||at===snaps.length-1?-Infinity:ends[at],from,to);clearTimeout(backTimer);other=false;past=null;galaxy.growTo(0,1);if(shown!==rows||galaxy.state.form<1)galaxy.reshape(rows,1)}resumable=false;streaming=true;window.__zxPlaying=true;paceFrom=performance.now();let cur=at,stillAt=0,acc=0,day2=null,last=performance.now(),grewAt=0,laidAt=-1;if(fresh){step=[];flying=[];waiting=[];ended=false;feedClear()}const enter=i=>{at=i};const drawTimelineUI=()=>{const t=nodes.streamAt,c=nodes.counted;$("time-date").textContent=dayOf(t);growthAt(t);$("time-line").textContent=`${plural(c.things,"thing")} \xB7 ${plural(c.people,"person","people")}`;knob=Math.max(0,Math.min(snaps.length,(t-from)/Math.max(1,to-from)*(snaps.length-1)+.5));bars();yearNow()};const ui=timelinePainter(requestAnimationFrame,cancelAnimationFrame,()=>{if(mine===run&&streaming&&mode==="time")drawTimelineUI()});const tell=()=>speed>=64?ui.queue():ui.now();const tick=()=>{try{if(mine!==run)return;const now=performance.now(),speed2=pace();if(!stillAt){if(galaxy.morphing?.()){last=now;playing=setTimeout(tick,40);return}stillAt=now;galaxy.still?.(true);if(fresh)nodes.lay?.();laidAt=frameNo()}if(nodes.pushesHeld===false){if((frameNo()<laidAt+3||window.zxField?.backlog>0)&&now-stillAt<2e3){last=now;playing=setTimeout(tick,40);return}nodes.pushesHeld=true}if(frameNo()-grewAt>=3){grewAt=frameNo();nodes.grow?.()}const NEAR=.3;const k=speed2,LINK=200/k,PAUSE=100/k,STOP=180/k;const TURN=5e3/(8*k);galaxy.pace?.(k);const advance=st=>{if(st.phase==="link"&&now-st.at>=LINK+PAUSE){const s=galaxy.live?.(),b=st.a.to;let spot=null;if(nodes.inPool?.(st.a.node))nodes.leavePool(st.a.node);if(st.a.b>=0&&nodes.inPool?.(st.a.b)){spot=nodes.leavePool(st.a.b);if(spot)galaxy.aim?.(b,spot[0],spot[1])}const own=galaxy.stars;if(galaxy.aim&&s&&own&&b>=0&&st.a.x!=null){const o=st.a.star*9;if(nodes.growth==="pool"){st.a.x=s[o];st.a.y=s[o+1]}const[tx,ty]=nodes.landing?nodes.landing(st.a.node):[own[o],own[o+1]];st.a.tx=tx;st.a.ty=ty;const ex=tx-st.a.x,ey=ty-st.a.y,side=(Math.random()<.5?-1:1)*(.15+.2*Math.random());galaxy.aim(st.a.star,st.a.x+ex*(.4+.2*Math.random())-ey*side,st.a.y+ey*(.4+.2*Math.random())+ex*side);st.phase="stop";st.at=st.movedAt=now}else{galaxy.attach?.(st.a.star,st.a.to,st.a.x,st.a.y,st.a.d);st.phase="move";st.at=st.movedAt=now}}else if(st.phase==="stop"&&(galaxy.gap?.(st.a.star)<.03||now-st.at>3e3/k)){st.phase="rest";st.at=now}else if(st.phase==="rest"&&now-st.at>=STOP){if(nodes.landing)[st.a.tx,st.a.ty]=nodes.landing(st.a.node);galaxy.aim(st.a.star,st.a.tx,st.a.ty);st.phase="move";st.at=now}else if(st.phase==="move"&&(galaxy.gap?.(st.a.star)<.02||st.stalled||now-st.at>4e3/k)){nodes.landed?.(st.a.node,st.a.b);return true}if(k>=2&&now-st.born>TURN&&st.phase!=="link"){if(nodes.landing)[st.a.tx,st.a.ty]=nodes.landing(st.a.node);if(st.a.tx!=null)galaxy.attach?.(st.a.star,-1,st.a.tx,st.a.ty,0);nodes.landed?.(st.a.node,st.a.b);return true}if(st.phase==="move"){const g=galaxy.gap?.(st.a.star)??0;if(st.g==null||now-st.gAt>=150/k){const why=g<NEAR?"near":st.g!=null&&now-st.at>300/k&&st.g-g<.15?"stalled":null;if(st.g!=null&&now-st.at>300/k&&st.g-g<.03)st.stalled=true;st.g=g;st.gAt=now;if(why&&!st.dark){st.dark=true;nodes.unlight?.(st.a.node);unlit.push([why,Math.round(now-st.movedAt),+g.toFixed(2)])}}else if(g<NEAR&&!st.dark){st.dark=true;nodes.unlight?.(st.a.node);unlit.push(["near",Math.round(now-st.movedAt),+g.toFixed(2)])}}return false};step=step.filter(st=>st&&!advance(st));acc+=(now-last)/1e3*8*speed2;last=now;const n=Math.min(Math.max(6,speed2/2),Math.floor(acc));let made=0;for(;made<n&&!ended;made++){if(step.length>=lanes())break;if(speed2>=64&&performance.now()-now>10)break;const next=nodes.nextBorn;if(next==null){ended=true;break}const d=Math.floor(next/864e5);if(d!==day2&&step.length)break;if(speed2>=64&&(d>=batchEnd||d<batchEnd-speed2/32)){if(step.length||batchFrame===frameNo())break;batchEnd=d+speed2/32;batchFrame=frameNo()}day2=d;if(speed2>=64)batchFrame=frameNo();const got=nodes.spawn(1);if(!got){ended=true;break}const fast=speed2>=64;if(!fast){const c=nodes.counted;galaxy.growTo(galaxy.formAt(Math.max(0,(c.things+c.people-GLOW)/Math.max(1,total-GLOW))),400)}for(const a of got){if(a.x==null)continue;if(fast){const[x,y]=nodes.landing?nodes.landing(a.node):[a.x,a.y];galaxy.attach?.(a.star,-1,x,y,0);if(a.to>=0)nodes.link(a);nodes.landed?.(a.node,a.b);continue}galaxy.attach?.(a.star,-1,a.x,a.y,0);if(a.to>=0){step.push({a,phase:"link",at:now,born:now});nodes.link(a)}}const t=nodes.streamAt;let i=cur;while(i<snaps.length-1&&t>ends[i])i++;if(i!==cur){cur=i;enter(i)}if(!fast)tell()}if(made&&speed2>=64){const c=nodes.counted;galaxy.growTo(galaxy.formAt(Math.max(0,(c.things+c.people-GLOW)/Math.max(1,total-GLOW))),400);tell()}acc-=made;if(made<n)acc=Math.min(acc,1);{const latest=nodes.feedLatest(nodes.streamAt);if(latest)feedAdd([nodes.feedRow(latest)])}flying=flying.filter(st=>!advance(st));if(ended&&step.every(x=>!x)&&!flying.length&&!waiting.length){ui.cancel();streaming=false;window.__zxPlaying=false;knob=null;nodes.streamEnd();requestAnimationFrame(()=>{if(mode!=="time")return;showAt(snaps.length-1,1500,true);requestAnimationFrame(()=>{if(mode!=="time")return;stop();endShot()})});return}playing=setTimeout(tick,speed2>=64?4:16)}catch(error){failed(error)}};window.__zxPlaying=true;playing=setTimeout(tick,300)}function endShot(){if(!following)galaxy.look?.(0,0,43)}let following=false,camTimer=0,heldAt=0,shot=null;function camFollow(on){if(on===following)return;following=on;clearInterval(camTimer);shot=null;if(on)camTimer=setInterval(()=>{if(mode!=="time"||window.zxPileCheck||!nodes?.spread||!streaming){shot=null;return}const st=galaxy.state,now=performance.now();if(now-heldAt<5e3){shot=null;return}const r=nodes.reach90?nodes.reach90():nodes.spread().things[1];if(!(r>0))return;const fits=Math.min(65,Math.max(2.5,r*3.2));if(!shot)shot={goal:fits*1.35,cur:st.targetDistance,at:now,n:1};const dt=Math.min(.5,(now-shot.at)/1e3);shot.at=now;if(fits>shot.goal*.9||fits<shot.goal*.45){shot.goal=Math.min(65,fits*1.35);shot.n++}else if(Math.abs(shot.goal-shot.cur)<shot.goal*.02)shot.goal=Math.max(fits*1.1,shot.goal*(1-.01*dt));shot.cur+=(shot.goal-shot.cur)*(1-Math.exp(-dt/1.1));st.targetDistance=shot.cur;const k=1-Math.exp(-dt/2);st.targetPanX-=st.targetPanX*k;st.targetPanY-=st.targetPanY*k},100)}window.zxCam=()=>({following,shot,held:performance.now()-heldAt<5e3});for(const ev of["pointerdown","wheel"])$("universe").addEventListener(ev,()=>{heldAt=performance.now()},{passive:true});let clipping=false;async function recordClip(by="month"){const snaps=history?.snapshots;if(clipping||typeof MediaRecorder==="undefined"||!snaps?.length||mode!=="time")return;clipping=true;setPanel(false);const src=$("universe"),W=Math.min(1920,src.width),H=Math.round(W*src.height/src.width),k=W/innerWidth;const out=document.createElement("canvas");out.width=W;out.height=H;const g=out.getContext("2d");const paint=()=>{g.fillStyle="#000";g.fillRect(0,0,W,H);for(const id2 of["universe","links","nodes"]){const c=$(id2);if(c?.width)g.drawImage(c,0,0,W,H)}const gc=$("time-growth"),x=20*k,y=H-24*k;g.globalAlpha=.85;g.fillStyle="#f5f5f7";g.font=`600 ${15*k}px Inter, system-ui`;g.fillText($("time-date").textContent,x,y-64*k);if(gc.width)g.drawImage(gc,x,y-gc.clientHeight*k,gc.clientWidth*k,gc.clientHeight*k);g.globalAlpha=1};const was=galaxy.onframe;galaxy.onframe=()=>{was?.();paint()};if(nodes){nodes.logos={say:"none",forming:"logo"};nodes.marks="logos"}const type=["video/mp4;codecs=avc1","video/webm;codecs=vp9","video/webm"].find(t=>MediaRecorder.isTypeSupported(t));const rec=new MediaRecorder(out.captureStream(30),{mimeType:type,videoBitsPerSecond:12e6}),parts=[];rec.ondataavailable=e=>{if(e.data.size)parts.push(e.data)};const done=new Promise(ok=>{rec.onstop=ok});const wait=ms=>new Promise(ok=>setTimeout(ok,ms)),last=snaps.length-1;const steps=by==="year"?[0,...snaps.map((r,i)=>i).filter(i=>i>0&&i<last&&r0(i)),last]:snaps.map((r,i)=>i);function r0(i){return snaps[i].as_of.slice(5,7)==="01"}const hold=by==="year"?1200:300;stop();paint();rec.start(500);for(const i of steps){if(i===last)showAt(last,1);else grownAt(i,1);while(galaxy.morphing?.())await wait(40);await wait(i===last?2e3:hold)}rec.stop();await done;galaxy.onframe=was;if(nodes){logoNow();if(mode==="time")nodes.marks=marksAt}clipping=false;const a=document.createElement("a"),ext=type.startsWith("video/mp4")?"mp4":"webm";a.href=URL.createObjectURL(new Blob(parts,{type}));a.download=`zortex-twin-by-${by}-${new Date().toISOString().slice(0,10)}.${ext}`;document.body.append(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(a.href),6e4)}function stop(){run++;window.__zxPlaying=false;galaxy.pace?.(1);clearTimeout(playing);playing=null;if(nodes)nodes.auto=null;if(streaming){streaming=false;resumable=true}$("time-play").setAttribute("aria-label","Play");$("time-play").classList.remove("on");if(mode==="time")galaxy.setPaused(true);rememberView()}function scrubTo(x){const r=$("time-track").getBoundingClientRect(),snaps=history?.snapshots;if(!snaps?.length)return;const i=Math.max(0,Math.min(snaps.length-1,Math.floor((x-r.left)/r.width*snaps.length)));if(i===at&&want==null)return;stop();if(want==null)requestAnimationFrame(()=>{const i2=want;want=null;if(i2!==at)showAt(i2,420)});want=i}$("others-close").onclick=backToYou;$("play-clip").onclick=()=>recordClip("month");$("play-clip-year").onclick=()=>recordClip("year");$("time-play").onclick=play;const track=$("time-track");track.addEventListener("pointerdown",e=>{track.setPointerCapture(e.pointerId);scrubTo(e.clientX)});track.addEventListener("pointermove",e=>{if(track.hasPointerCapture(e.pointerId))scrubTo(e.clientX)});track.addEventListener("keydown",e=>{const snaps=history?.snapshots;if(!snaps?.length)return;const d={ArrowLeft:-1,ArrowRight:1,Home:-at,End:snaps.length-1-at}[e.key];if(d==null)return;e.preventDefault();e.stopPropagation();stop();showAt(Math.max(0,Math.min(snaps.length-1,at+d)),420)});addEventListener("resize",()=>{if(mode==="time"&&history){bars();years(history.snapshots)}});function showPerson(i,ms=900){const p=people?.people?.[i];selectedPerson=p?.name||null;$("others-list").querySelectorAll("[data-person]").forEach(x=>x.setAttribute("aria-pressed",String(+x.dataset.person===(p?i:-1))));$("others-title").textContent=p?`${p.name}, made up`:"You";$("others-line").textContent=p?p.about:"Your twin today, from your vault.";rememberView();if(!p){if(other){galaxy.reshape(rows,ms);other=false}if(shown!==rows)fill(rows,yours);thingsBack(ms);return}draw(theirs(p),ms,p.name);fill(p.rows,`${p.name}\u2019s twin, made up`)}$("others-list").onclick=e=>{const b=e.target.closest("[data-person]");if(b)showPerson(+b.dataset.person)};let pictured=false;async function thumbs(){if(pictured||!galaxy.shapeOf)return;pictured=true;const canvases=Object.fromEntries(tiles.map(t=>[t.dataset.mode,t.querySelector("canvas")]));const mine=await galaxy.shapeOf(rows);if(!mine){pictured=false;return}const frame=()=>new Promise(requestAnimationFrame);sketch(canvases.twin,[{g:mine}]);history||=await fetch("star-graph-history.json").then(r=>r.ok?r.json():null).catch(()=>null);const snaps=history?.snapshots||[],young=snaps.find(r=>galaxy.growthOf(historyRows(r))>=.12);const early=young?await galaxy.shapeOf(historyRows(young)):null;await frame();sketch(canvases.time,[{g:early||mine,until:early?2:galaxy.formAt(.28),scale:early?1:.62}]);await frame();sketch(canvases.play,[{g:mine,tint:[1.25,.92,.62],wind:.5,x:.6,scale:.9}],true);await loadPeople();const pick=["Mira","Theo","Lu"].map(n=>people?.people?.find(p=>p.name===n)).filter(Boolean);const shapes=await Promise.all(pick.map(p=>galaxy.shapeOf(theirs(p),id(p.name))));await frame();sketch(canvases.others,shapes.map((g,i)=>g&&{g,x:(i+.5)/shapes.length,scale:.42}).filter(Boolean));if(canvases.insights)analyticsThumb(canvases.insights)}function analyticsThumb(cv){const dpr=Math.min(2,devicePixelRatio||1),w=cv.clientWidth||140,h=cv.clientHeight||88,g=cv.getContext("2d");cv.width=Math.round(w*dpr);cv.height=Math.round(h*dpr);g.scale(dpr,dpr);g.fillStyle="#000";g.fillRect(0,0,w,h);const cols=["#3987e5","#d95926","#199e70","#c98500","#9085e9"],n=24,x0=w*.12,x1=w*.88,yb=h*.8,top=h*.22;const run2=cols.map((_,j)=>Array.from({length:n},(_2,i)=>Math.pow(i/(n-1),1.6+j*.35)*(1-j*.14)));const sum=run2.reduce((t,a)=>t+a[n-1],0),X=i=>x0+i/(n-1)*(x1-x0),Y=v=>yb-v/sum*(yb-top),below=new Array(n).fill(0);run2.forEach((a,j)=>{g.beginPath();for(let i=0;i<n;i++)g.lineTo(X(i),Y(below[i]+a[i]));for(let i=n-1;i>=0;i--)g.lineTo(X(i),Y(below[i]));g.closePath();g.globalAlpha=.35;g.fillStyle=cols[j];g.fill();g.globalAlpha=1;g.beginPath();for(let i=0;i<n;i++)g.lineTo(X(i),Y(below[i]+a[i]));g.strokeStyle=cols[j];g.lineWidth=1;g.stroke();for(let i=0;i<n;i++)below[i]+=a[i]})}function sketch(canvas,parts,sliders=false){const dpr=Math.min(2,devicePixelRatio||1),w=canvas.clientWidth||140,h=canvas.clientHeight||88;const W=canvas.width=Math.round(w*dpr),H=canvas.height=Math.round(h*dpr),acc=new Float32Array(W*H*3);const tilt=1.02,roll=-.34,ct=Math.cos(tilt),st=Math.sin(tilt),cr=Math.cos(roll),sr=Math.sin(roll);const add=(px2,py,r,g,b,rad)=>{const x0=Math.round(px2),y0=Math.round(py),n=Math.ceil(rad);for(let dy=-n;dy<=n;dy++)for(let dx=-n;dx<=n;dx++){const x=x0+dx,y=y0+dy;if(x<0||y<0||x>=W||y>=H)continue;const k=rad?Math.exp(-(dx*dx+dy*dy)/(rad*rad*.5)):1,o=(y*W+x)*3;acc[o]+=r*k;acc[o+1]+=g*k;acc[o+2]+=b*k}};for(const{g,until=2,scale=1,x:at2=.5,tint=[1,1,1],wind=0}of parts){const k=H*.04*scale,cx=W*at2,cy=H*.5;const each=(a,e,step2,gain,rad)=>{for(let i=0;i<a.length;i+=9*step2){if(e[i/9*4]>until)continue;let x=a[i],y=a[i+1];const z=a[i+2],yaw=.3+wind*Math.hypot(x,y)*.02,c=Math.cos(yaw),n2=Math.sin(yaw);[x,y]=[c*x-n2*y,n2*x+c*y];const y2=ct*y-st*z,x3=cr*x-sr*y2,y3=sr*x+cr*y2,l=a[i+7]*gain;add(cx+x3*k,cy-y3*k,a[i+3]*tint[0]*l,a[i+4]*tint[1]*l,a[i+5]*tint[2]*l,rad)}};each(g.clouds.a,g.clouds.e,7,.03,(1.6*scale+.6)*dpr);const n=g.stars.a.length/9;each(g.stars.a,g.stars.e,Math.max(1,Math.round(n/(6500*scale))),1,0)}const ctx=canvas.getContext("2d"),img=ctx.createImageData(W,H),px=img.data;for(let i=0,j=0;i<acc.length;i+=3,j+=4){px[j]=255*(1-Math.exp(-1.5*acc[i]));px[j+1]=255*(1-Math.exp(-1.5*acc[i+1]));px[j+2]=255*(1-Math.exp(-1.5*acc[i+2]));px[j+3]=255}ctx.putImageData(img,0,0);if(sliders){ctx.setTransform(dpr,0,0,dpr,0,0);ctx.lineCap="round";[[.3,.62],[.5,.3],[.7,.78]].forEach(([y,v])=>{const x0=w*.08,x1=w*.3;ctx.strokeStyle="rgba(255,255,255,.28)";ctx.lineWidth=2;ctx.beginPath();ctx.moveTo(x0,h*y);ctx.lineTo(x1,h*y);ctx.stroke();ctx.fillStyle="#f5f5f7";ctx.beginPath();ctx.arc(x0+(x1-x0)*v,h*y,3.6,0,Math.PI*2);ctx.fill()})}}const pct=v=>`${Math.round(v*100)}%`,times=v=>`${v.toFixed(2).replace(/\.?0+$/,"")}\xD7`,num=d=>v=>v.toFixed(d);const R=16,PULL=links?.options.pull??1;const GROUPS=[{name:"Shape",note:"From your measurements: size from what you hold, arms from your fields, companions from your weekly people.",controls:[{id:"f.growth",label:"Size",min:.002,max:1,step:.002,fmt:pct},{id:"f.arms",label:"Arms",min:1,max:6,step:.05,fmt:num(1)},{id:"f.bar",label:"Bar",min:0,max:1,step:.01,fmt:pct},{id:"f.pitch",label:"Arm angle",min:8,max:45,step:.5,fmt:v=>`${Math.round(v)}\xB0`},{id:"f.bulge",label:"Core",min:.04,max:.7,step:.01,fmt:num(2)},{id:"f.clumps",label:"Clumps",min:.05,max:.95,step:.01,fmt:pct},{id:"f.coherence",label:"Neat arms",min:.2,max:1,step:.01,fmt:pct},{id:"f.satellites",label:"Companions",min:0,max:6,step:1,fmt:num(0)},{id:"f.shells",label:"Layers",min:0,max:9,step:1,fmt:num(0)},{id:"f.merger",label:"Second body",min:0,max:1,step:.01,fmt:pct},{id:"f.breadth",label:"Halo reach",min:0,max:1,step:.01,fmt:pct}]},{name:"3D",note:"Thicken the disc and tilt it to see its depth. With \u201CDrag turns the twin\u201D, a drag turns it in space.",controls:[{id:"f.thickness",label:"Disc thickness",min:R*.004,max:R*.045,step:R*.001,fmt:num(2)},{id:"t.depth",label:"Depth",min:.3,max:2.5,step:.05,fmt:times,def:1},{id:"cam.tilt",label:"Tilt",min:0,max:1.45,step:.01,fmt:v=>`${Math.round(v*180/Math.PI)}\xB0`},{id:"cam.turns",label:"Drag turns the twin",toggle:true,def:false}]},{name:"Colour",controls:[{id:"c.warmth",label:"Warmth",min:0,max:1,step:.01,fmt:pct},{id:"f.young",label:"Blue edge",min:0,max:1,step:.01,fmt:pct},{id:"f.clock",label:"Night blue",min:0,max:1,step:.01,fmt:pct},{id:"c.rose",label:"Pink knots",min:0,max:1,step:.01,fmt:pct},{id:"c.violet",label:"Violet",min:0,max:1,step:.01,fmt:pct},{id:"t.sat",label:"Colour strength",min:0,max:2.5,step:.05,fmt:times,def:1}]},{name:"Light",controls:[{id:"e.stars",label:"Disc stars",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"e.core",label:"Core",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"e.companions",label:"Companions",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"e.halo",label:"Halo",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"e.gas",label:"Fog",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"e.dust",label:"Dust lanes",min:0,max:2.5,step:.05,fmt:times,def:1},{id:"t.size",label:"Star size",min:.4,max:2.5,step:.05,fmt:times,def:1},{id:"sky",label:"Mist behind the twin",toggle:true,def:true}]},...nodes?[{name:"Things",note:"Your real things sit on your own shape. Change the shape, or start from someone else, and they step aside.",controls:[{id:"v.made",label:"Things you made",toggle:true,def:true},{id:"v.kept",label:"Things you keep",toggle:true,def:true},{id:"v.people",label:"People",toggle:true,def:true},{id:"v.docs",label:"Documents",toggle:true,def:true},{id:"v.thoughts",label:"Thoughts",toggle:true,def:true},{id:"v.names",label:"Names when close",toggle:true,def:true},{id:"v.links",label:"Links on hover",toggle:true,def:true},{id:"v.open",label:"Open on click",toggle:true,def:false},{id:"v.blend",label:"Blend in with the stars",toggle:true,def:true}]},{name:"App logos",note:"The app each thing came from, in place of its name (the button on the timeline chooses logos or names).",controls:[{id:"g.size",label:"Logo size",min:8,max:40,step:1,fmt:v=>`${Math.round(v)} px`,def:14},{id:"g.from",label:"Show from",min:9,max:80,step:1,fmt:v=>`${Math.round(v)}`,def:26},{id:"g.many",label:"How many",min:.25,max:4,step:.05,fmt:times,def:1},{id:"g.onDot",label:"Logo is the dot",toggle:true,def:false},{id:"g.say",label:"Names show as",choice:[["name","Its name"],["app","App and number"],["type","Type and number"],["all","Logo, number and type"],["safe","Safe to share"],["none","Nothing"]],def:"name"},{id:"g.forming",label:"As links form",choice:[["names","Names"],["logo","App logo"],["both","Logo and name"],["off","Nothing"]],def:"names"}]},{name:"While links form",note:"On the timeline, as each link forms: the dots not on it darken as they do when you point at one, and the galaxy can darken too, or go, leaving only the dots.",controls:[{id:"q.linkDensity",label:"Presentation links",choice:[["single","One clear link"],["branched","Branching"],["rich","Connected"]],def:"branched"},{id:"w.dim",label:"Darken the other dots",toggle:true,def:true},{id:"w.galaxy",label:"Galaxy",min:0,max:1,step:.01,fmt:pct,def:1}]},{name:"What is coming in",note:"As the timeline plays, at the bottom left: the app and the document being taken in now, and whether it was received, created or edited.",controls:[{id:"q.names",label:"Names",toggle:true,def:true}]},{name:"Camera and pace",note:"Cinematic camera: on the timeline the camera holds a still shot of everything that has come, and moves out slowly only when it is outgrown. Drag or zoom and it waits 5 seconds. Dynamic speed: the first things come slowly, then faster as more has come, up to the speed you chose.",controls:[{id:"q.follow",label:"Cinematic camera",toggle:true,def:true},{id:"q.dynamic",label:"Dynamic speed",toggle:true,def:true}]}]:[],{name:"Galaxy layers",note:"Each part of the galaxy on or off; your dots stay. The mist behind it is under Light.",controls:[{id:"y.fog",label:"Fog",toggle:true,def:true},{id:"y.stars",label:"Stars",toggle:true,def:true},{id:"y.dust",label:"Dust lanes",toggle:true,def:true},{id:"y.glow",label:"Glow",toggle:true,def:true}]},{name:"Experiments",note:"Obsidian graph: each of your things joined to the things nearest it in meaning. Fog made of links: the galaxy\u2019s fog drawn as made-up links between its dots; the same from afar, lines close in.",controls:[...nodes?[{id:"v.edges",label:"Obsidian graph",toggle:true,def:false}]:[],...fogLinks?[{id:"x.foglinks",label:"Fog made of links",toggle:true,def:false},{id:"x.foglight",label:"Link light",min:0,max:4,step:.05,fmt:times,def:1}]:[],{id:"x.bg",label:"Background",min:0,max:1,step:.01,fmt:pct,def:0}]},{name:"Links",note:"The twin at work: links forming one at a time and pulling it together, things arriving and staying, now and then a run of links like lightning that lights the core.",controls:[{id:"l.rate",label:"Links forming",min:0,max:4,step:.05,fmt:times,def:0},{id:"l.lightning",label:"Lightning",toggle:true,def:false},{id:"l.pull",label:"Links pull",min:0,max:4,step:.05,fmt:times,def:PULL},{id:"l.core",label:"Core glow from links",min:0,max:4,step:.05,fmt:times,def:1},{id:"l.stay",label:"New things stay",toggle:true,def:true},{id:"l.web",label:"Light from links",toggle:true,def:false}]},{name:"Motion",note:"Still stops everything: turning, links, the fog.",controls:[{id:"m.still",label:"Still",toggle:true,def:false},{id:"m.speed",label:"Speed",min:0,max:4,step:.05,fmt:times,def:1},{id:"m.turning",label:"Turning",toggle:true,def:true},{id:"m.fog",label:"Fog drifts",min:0,max:4,step:.05,fmt:times,def:1}]}];const CONTROLS=GROUPS.flatMap(g=>g.controls),byId=Object.fromEntries(CONTROLS.map(c=>[c.id,c]));const STORE="zx-twin-playground";let pg={who:-1,set:{}},base=null,entry=null,tuneTimer=0,tuned=0;try{const saved2=JSON.parse(localStorage.getItem(STORE)||"null");if(saved2?.set)pg={who:saved2.who??-1,set:saved2.set}}catch{}const save=()=>{try{localStorage.setItem(STORE,JSON.stringify(pg))}catch{}};if(Object.keys(pg.set).some(k=>/^(f|c|e|t)\./.test(k)&&!byId[k])){pg.set=Object.fromEntries(Object.entries(pg.set).filter(([k])=>!/^(f|c|e|t)\./.test(k)||byId[k]));save()}const startRows=()=>pg.who<0?rows:theirs(people?.people?.[pg.who])||rows;const startName=()=>pg.who<0?null:people?.people?.[pg.who]?.name||null;const defOf=c=>c.def??(c.id==="cam.tilt"?entry?.tilt??1.02:base?.[c.id.slice(2)]??0);const valueOf=c=>pg.set[c.id]??defOf(c);const GRAPH=/^(f|c|e|t)\./;const logoNow=()=>{if(nodes)nodes.logos={size:valueOf(byId["g.size"]),from:valueOf(byId["g.from"]),many:valueOf(byId["g.many"]),onDot:valueOf(byId["g.onDot"]),say:valueOf(byId["g.say"]),forming:valueOf(byId["g.forming"])}};if(byId["g.size"])logoNow();const back=c=>`<button type="button" class="one-back" data-back="${c.id}" aria-label="Put ${esc(c.label)} back" title="Put back">\u21BA</button>`;const openGroups=new Set;function buildPlay(){const who=startName();$("play-presets").innerHTML=[{name:"You"},...people?.people||[]].map((p,i)=>`<button type="button" role="radio" data-who="${i-1}" aria-checked="${i-1===pg.who}">${esc(p.name)}</button>`).join("");$("play-groups").innerHTML=GROUPS.map((g,gi)=>`<details class="group"${gi===0||g.name==="Experiments"||openGroups.has(g.name)?" open":""} data-group="${esc(g.name)}"><summary>${esc(g.name)}<svg viewBox="0 0 20 20" aria-hidden="true"><path d="m6 8 4 4 4-4"/></svg></summary>
|
|
9
|
+
${g.note?`<p class="group-note">${esc(g.note)}</p>`:""}
|
|
10
|
+
${g.controls.map(c=>c.choice?`<div class="ctl choice-row" data-id="${c.id}"><label for="pg-${c.id}">${esc(c.label)}</label><select id="pg-${c.id}" data-id="${c.id}">${c.choice.map(([v,l])=>`<option value="${v}">${esc(l)}</option>`).join("")}</select>${back(c)}</div>`:c.toggle?`<div class="ctl switch-row" data-id="${c.id}"><label><span>${esc(c.label)}</span><input type="checkbox" role="switch" data-id="${c.id}"><i class="switch" aria-hidden="true"></i></label>${back(c)}</div>`:`<div class="ctl" data-id="${c.id}"><label for="pg-${c.id}" title="Double-click to put back">${esc(c.label)}</label>
|
|
11
|
+
<div class="range"><input type="range" id="pg-${c.id}" data-id="${c.id}" min="${c.min}" max="${c.max}" step="${c.step}"><i class="mine" title="${who?`${esc(who)}\u2019s`:"Yours"}"></i></div><output id="pgo-${c.id}"></output>${back(c)}</div>`).join("")}
|
|
12
|
+
</details>`).join("");sync()}function sync(){for(const c of CONTROLS){const v=valueOf(c),el=$("play-groups").querySelector(`[data-id="${c.id}"]:is(input, select)`);if(!el)continue;if(c.choice){el.value=v;el.closest(".ctl").classList.toggle("moved",c.id in pg.set);continue}if(c.toggle){el.checked=!!v;el.closest(".ctl").classList.toggle("moved",c.id in pg.set);continue}el.value=v;$(`pgo-${c.id}`).textContent=c.fmt(+v);const d=defOf(c),mine=el.parentElement.querySelector(".mine");mine.style.left=`calc(1px + (100% - 2px) * ${Math.max(0,Math.min(1,(d-c.min)/(c.max-c.min)))})`;el.style.setProperty("--fill",`${Math.max(0,Math.min(1,(v-c.min)/(c.max-c.min)))*100}%`);el.closest(".ctl").classList.toggle("moved",c.id in pg.set)}$("play-presets").querySelectorAll("[data-who]").forEach(b=>b.setAttribute("aria-checked",String(+b.dataset.who===pg.who)));showSaved()}const SAVED="zx-twin-playground-saved";let saved=[],pair=[];try{saved=JSON.parse(localStorage.getItem(SAVED)||"[]").filter(x=>x?.set&&x.name)}catch{}const keepSaved=()=>{try{localStorage.setItem(SAVED,JSON.stringify(saved))}catch{}};const flat=set=>JSON.stringify(Object.entries(set).sort(([a],[b])=>a<b?-1:1));const same=(a,b)=>a.who===b.who&&flat(a.set)===flat(b.set);const chose=i=>{if(pair[pair.length-1]!==i)pair=[pair[pair.length-1],i].filter(v=>v!=null)};function showSaved(){const at2=saved.findIndex(x=>same(x,pg)),time2=t=>new Date(t).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});$("play-saved").innerHTML=saved.map((x,i)=>`<span class="chip"><button type="button" role="radio" data-slot="${i}" aria-checked="${i===at2}" title="From ${esc(x.start)}, saved at ${time2(x.at)}">${esc(x.name)}</button><button type="button" class="drop" data-drop="${i}" aria-label="Forget ${esc(x.name)}">\xD7</button></span>`).join("");$("play-saved").hidden=!saved.length;$("play-flip").disabled=pair.filter(i=>saved[i]).length<2}function useSaved(i){const x=saved[i];if(!x)return;const who=pg.who;pg={who:x.who,set:{...x.set}};save();chose(i);if(x.who!==who){base=galaxy.featuresOf(startRows());buildPlay()}else sync();applyNow();applyShape(600)}$("play-save").onclick=()=>{let at2=saved.findIndex(x=>same(x,pg));if(at2<0){const taken=new Set(saved.map(x=>x.name)),name=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"].find(c=>!taken.has(c))||`${saved.length+1}`;saved.push({name,who:pg.who,start:startName()||"You",set:{...pg.set},at:Date.now()});keepSaved();at2=saved.length-1;chose(at2)}showSaved();const b=$("play-save");b.textContent=`Saved as ${saved[at2].name}`;setTimeout(()=>{b.textContent="Save"},1400)};$("play-flip").onclick=()=>{const p=pair.filter(i=>saved[i]);if(p.length===2)useSaved(p[0])};$("play-saved").onclick=e=>{const d=e.target.closest("[data-drop]");if(d){const i=+d.dataset.drop;saved.splice(i,1);pair=pair.filter(v=>v!==i).map(v=>v>i?v-1:v);keepSaved();showSaved();return}const b=e.target.closest("[data-slot]");if(b)useSaved(+b.dataset.slot)};function applyNow(){const still=valueOf(byId["m.still"]);galaxy.sky(valueOf(byId.sky));galaxy.state.speed=valueOf(byId["m.speed"]);galaxy.setPaused(still||!valueOf(byId["m.turning"]));galaxy.dragTurns(valueOf(byId["cam.turns"]));galaxy.state.targetTilt=valueOf(byId["cam.tilt"]);galaxy.life?.({fog:valueOf(byId["m.fog"]),core:valueOf(byId["l.core"]),stay:valueOf(byId["l.stay"])});if(byId["x.bg"])background(valueOf(byId["x.bg"]));if(fogLinks)fogLinks.options={on:valueOf(byId["x.foglinks"]),light:valueOf(byId["x.foglight"])};if(nodes)nodes.view=Object.fromEntries(["made","kept","people","docs","thoughts","names","links","open","blend","edges"].map(k=>[k,valueOf(byId[`v.${k}`])]));if(nodes)logoNow();galaxy.galaxyLook?.({fog:valueOf(byId["y.fog"]),stars:valueOf(byId["y.stars"]),dust:valueOf(byId["y.dust"]),glow:valueOf(byId["y.glow"])});if(nodes)nodes.linkLook={dim:valueOf(byId["w.dim"]),galaxy:valueOf(byId["w.galaxy"])};if(nodes&&byId["q.linkDensity"])nodes.visualDensity=valueOf(byId["q.linkDensity"]);camFollow(byId["q.follow"]?valueOf(byId["q.follow"]):pg.set["q.follow"]??true);dynamicPace=byId["q.dynamic"]?valueOf(byId["q.dynamic"]):pg.set["q.dynamic"]??true;if(byId["q.names"]&&feedNames!==valueOf(byId["q.names"])){feedNames=valueOf(byId["q.names"]);if(feedLast)feedDraw()}if(links)links.options={rate:still?0:valueOf(byId["l.rate"]),lightning:!still&&valueOf(byId["l.lightning"]),web:valueOf(byId["l.web"]),pull:valueOf(byId["l.pull"])}}function applyShape(ms=450){clearTimeout(tuneTimer);if(mode==="time"&&(past||playing||resumable))return;tuneTimer=setTimeout(()=>{const start=startRows(),who=startName(),tune={f:{},e:{}};let any=false;for(const[k,v]of Object.entries(pg.set)){if(!GRAPH.test(k)||!byId[k])continue;any=true;const[kind,key]=k.split(".");if(kind==="f")tune.f[key]=v;else if(kind==="e")tune.e[key]=v;else tune[key]=v}const moved=who!=null||Object.keys(tune.f).some(k=>!["young","clock"].includes(k))||tune.depth!=null;if(nodes)nodes.away=moved;if(!any&&who==null){if(other){galaxy.reshape(rows,ms);other=false}return}other=true;galaxy.reshape(any?{...start,as_of:`${start.as_of}~${++tuned}`,tune}:start,ms,id(who))},90)}$("settings-btn").onclick=()=>{if(!panel.hidden&&view==="play"){setPanel(false);return}buildPlay();setPanel(true,"play")};function sideAside(){const by=0;document.body.style.setProperty("--strip-aside",`${by}px`)}addEventListener("resize",sideAside);function axis(show){document.body.toggleAttribute("data-axis-hidden",!show);$("time-shown").hidden=show||mode!=="time"}$("time-hide").onclick=()=>axis(false);$("time-unhide").onclick=()=>axis(true);$("time-today").onclick=()=>{stop();const n=history?.snapshots?.length;if(n)showAt(n-1)};let full=false,fullOpen=false,hintTimer=0;function fullScreen(on){if(full===on)return;full=on;document.body.toggleAttribute("data-full",on);parent.postMessage({type:"zortex-twin-full",on},"*");if(on){fullOpen=!panel.hidden&&view==="play";if(!panel.hidden)setPanel(false);hint()}else{document.body.removeAttribute("data-full-hint");if(fullOpen&&mode==="time")setPanel(true,"play")}}function hint(){if(!full)return;document.body.setAttribute("data-full-hint","");clearTimeout(hintTimer);hintTimer=setTimeout(()=>document.body.removeAttribute("data-full-hint"),2200)}addEventListener("pointermove",hint,{passive:true});$("full-btn").onclick=()=>fullScreen(true);$("full-exit").onclick=()=>fullScreen(false);async function openPlay(){if(mode==="play"){setPanel(true,"play");return}const mine=++modeRun;stop();time.hidden=others.hidden=true;if(mode){leaving();mode=null;whole(600);if(other){galaxy.reshape(rows,600);other=false}if(shown!==rows)fill(rows,yours)}mode="play";check("play");entry={tilt:galaxy.state.targetTilt,speed:galaxy.state.speed,paused:galaxy.state.paused};await loadPeople();if(mine!==modeRun)return;base=galaxy.featuresOf(startRows());buildPlay();setPanel(true,"play");applyNow();applyShape(700);aside(true);rememberView()}let inset=0;const shift=on=>((on&&innerWidth>=900?panel.offsetWidth+82:0)-inset)/2;function aside(on){const st=galaxy.state,k=st.targetDistance/galaxy.viewScale(),phone=innerWidth<=600;st.targetPanX=shift(on)*k;st.targetPanY=on&&phone?-innerHeight*.22*k:0}function background(v){const g=Math.round(v*46),canvas=$("universe");document.body.style.backgroundColor=v>0?`rgb(${g},${g},${g+3})`:"";canvas.style.mixBlendMode=v>0?"screen":""}function leavePlay(){clearTimeout(tuneTimer);galaxy.sky(true);galaxy.dragTurns(false);aside(false);if(entry){galaxy.state.targetTilt=entry.tilt;galaxy.state.speed=entry.speed;galaxy.setPaused(entry.paused)}if(nodes){nodes.view={made:true,kept:true,people:true,docs:true,thoughts:true,names:true,links:true,open:false,blend:true,edges:false};nodes.marks="names"}background(0);if(fogLinks)fogLinks.options={on:false};if(links)links.options={rate:0,lightning:false,web:false,pull:PULL};galaxy.life?.({fog:1,core:1,stay:true});if(other){galaxy.reshape(rows,700);other=false}thingsBack(700);if(!panel.hidden&&view==="play")setView("modes")}const changed=c=>{save();sync();if(GRAPH.test(c.id))applyShape();else applyNow()};$("play-groups").addEventListener("input",e=>{const c=byId[e.target.dataset.id];if(!c)return;pg.set[c.id]=c.toggle?e.target.checked:c.choice?e.target.value:+e.target.value;if(c.toggle||c.choice?pg.set[c.id]===defOf(c):Math.abs(pg.set[c.id]-defOf(c))<c.step/2)delete pg.set[c.id];changed(c)});$("play-groups").addEventListener("toggle",e=>{const g=e.target.dataset?.group;if(g)e.target.open?openGroups.add(g):openGroups.delete(g)},true);$("play-groups").addEventListener("click",e=>{const id2=e.target.closest("[data-back]")?.dataset.back,c=byId[id2];if(!c||!(c.id in pg.set))return;e.preventDefault();delete pg.set[c.id];changed(c)});$("play-groups").addEventListener("dblclick",e=>{const c=byId[e.target.closest(".ctl:not(.switch-row)")?.dataset.id];if(!c||!(c.id in pg.set))return;delete pg.set[c.id];changed(c)});$("play-presets").onclick=e=>{const b=e.target.closest("[data-who]");if(!b)return;pg={who:+b.dataset.who,set:Object.fromEntries(Object.entries(pg.set).filter(([k])=>!/^(f|c)\./.test(k)))};base=galaxy.featuresOf(startRows());save();buildPlay();applyShape(800)};$("play-reset").onclick=()=>{pg={who:pg.who,set:{}};save();sync();applyNow();applyShape(700)};$("play-shuffle").onclick=()=>{for(const c of CONTROLS)if(/^(f|c)\./.test(c.id)&&c.id!=="f.growth"){const v=c.min+Math.random()*(c.max-c.min);pg.set[c.id]=Math.round(v/c.step)*c.step}save();sync();applyShape(900)};$("play-copy").onclick=async()=>{const text=JSON.stringify({start:startName()||"You",...Object.fromEntries(Object.entries(pg.set).map(([k,v])=>[k,typeof v==="number"?+v.toFixed(3):v]))},null,1);let ok=false;try{await navigator.clipboard.writeText(text);ok=true}catch{const t=document.createElement("textarea");t.value=text;document.body.appendChild(t);t.select();try{ok=document.execCommand("copy")}catch{}t.remove()}const b=$("play-copy");b.textContent=ok?"Copied":"Couldn\u2019t copy";setTimeout(()=>{b.textContent="Copy settings"},1600)};$("play-done").onclick=()=>{if(mode==="time"){setPanel(false);return}backToYou();setPanel(false);toggle.focus()};const zoom=f=>galaxy.zoomAt(f,innerWidth/2-shift(mode==="play"),innerHeight/2);$("zoom-in").onclick=()=>zoom(1/1.3);$("zoom-out").onclick=()=>zoom(1.3);$("recenter").onclick=()=>{galaxy.reset();aside(mode==="play");if(mode==="play")galaxy.state.targetTilt=valueOf(byId["cam.tilt"])};addEventListener("keydown",e=>{if(e.key==="Escape"&&full){e.preventDefault();fullScreen(false);return}if(e.key==="Escape"&&nodes?.open){e.preventDefault();nodes.close();return}if(e.key==="Escape"&&!panel.hidden){e.preventDefault();if(view==="facts")setView("modes");else{setPanel(false);toggle.focus()}return}if(e.key==="Escape"&&mode){e.preventDefault();backToYou();return}if(e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||e.target.closest?.("button,input,textarea,select,a,label"))return;e.preventDefault();e.stopImmediatePropagation();if(e.key!==" ")parent.postMessage({type:"zortex-key",key:e.key},"*")},true);addEventListener("message",e=>{if(e.source!==parent||e.data?.type!=="zortex-twin")return;const left=e.data.inset;if(Number.isFinite(left)&&left!==inset){galaxy.state.targetPanX-=(left-inset)/2*galaxy.state.targetDistance/galaxy.viewScale();inset=left}document.body.classList.toggle("resting",!e.data.visible);if(!e.data.visible){if(mode==="play"||full)backToYou();galaxy.stop();setPanel(false);return}const paused=galaxy.state.paused;galaxy.play();if(paused)galaxy.setPaused(true)});async function restoreView(){if(!previousView||!galaxy.reshape)return;if(previousView.mode==="time")await openMode("time",previousView);else if(previousView.mode==="others"){await openMode("others");const i=people?.people?.findIndex(p=>p.name===previousView.person)??-1;if(i>=0)await galaxy.shapeOf(theirs(people.people[i]),id(people.people[i].name));if(mode==="others")showPerson(i,0)}else if(previousView.mode==="play")await openMode("time");restoreCamera(galaxy.state,previousView.camera,inset,galaxy.viewScale());galaxy.setPaused(galaxy.state.paused);if(previousView.panel&&previousView.panel!=="play")setPanel(true,previousView.panel);panel.scrollTop=previousView.scroll}try{await restoreView()}catch(error){console.warn("Could not restore the twin view:",error)}restoringView=false;for(const event of["pointerup","pointercancel","wheel","keyup","input","change"])addEventListener(event,rememberView,{passive:true});panel.addEventListener("scroll",rememberView,{passive:true});addEventListener("pagehide",persistView);document.addEventListener("visibilitychange",()=>{if(document.hidden)persistView()});parent.postMessage({type:"zortex-twin-ready"},"*")}function picture(v){if(!v)return"";const pct=x=>`${Math.round(x*100)}%`;if(v.kind==="share")return`<div class="viz"><div class="viz-track"><i style="width:${pct(v.value)}"></i></div><div class="viz-label"><span>${esc(v.label)}</span></div></div>`;if(v.kind==="parts")return`<div class="viz"><div class="viz-parts">${v.values.map((x,i)=>`<i style="flex:${x};--a:${(.85-i*.55/Math.max(1,v.values.length-1)).toFixed(2)}"></i>`).join("")}</div>
|
|
13
|
+
<div class="viz-parts-label">${v.values.map(x=>`<span style="flex:${x}">${pct(x)}</span>`).join("")}</div></div>`;if(v.kind==="bars"){const top=Math.max(...v.values);return`<div class="viz"><div class="viz-bars">${v.values.map(x=>`<i style="height:${Math.max(4,x/top*100)}%" title="${x} days"></i>`).join("")}</div><div class="viz-label"><span>${esc(v.label)}</span><span>${top} days at most</span></div></div>`}if(v.kind==="scale")return`<div class="viz"><div class="viz-scale"><i style="left:${(v.value+1)/2*100}%"></i></div><div class="viz-label"><span>${esc(v.from)}</span><span>${esc(v.to)}</span></div></div>`;if(v.kind==="timeline")return`<div class="viz"><div class="viz-time">${"<i></i>".repeat(Math.min(v.ticks+1,60))}</div><div class="viz-label"><span>${esc(v.from)}</span><span>${esc(v.to)}</span></div></div>`;return""}})();
|