internal.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import { r as root } from "./root.js";
  2. import "./environment.js";
  3. let public_env = {};
  4. function set_private_env(environment) {
  5. }
  6. function set_public_env(environment) {
  7. public_env = environment;
  8. }
  9. let read_implementation = null;
  10. function set_read_implementation(fn) {
  11. read_implementation = fn;
  12. }
  13. function set_manifest(_) {
  14. }
  15. const options = {
  16. app_template_contains_nonce: false,
  17. async: false,
  18. csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
  19. csrf_check_origin: true,
  20. csrf_trusted_origins: [],
  21. embedded: false,
  22. env_public_prefix: "PUBLIC_",
  23. env_private_prefix: "",
  24. hash_routing: false,
  25. hooks: null,
  26. // added lazily, via `get_hooks`
  27. preload_strategy: "modulepreload",
  28. root,
  29. service_worker: false,
  30. service_worker_options: void 0,
  31. server_error_boundaries: false,
  32. templates: {
  33. app: ({ head, body, assets, nonce, env }) => `<!doctype html>
  34. <html lang="en">
  35. <head>
  36. <meta charset="utf-8" />
  37. <meta name="viewport" content="width=device-width, initial-scale=1" />
  38. <meta name="description" content="KeystoneIntel — Premier data intelligence firm. Proprietary signals. Strategic advantage." />
  39. <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90' fill='%230ea5e9'>◆</text></svg>" />
  40. <link rel="preconnect" href="https://fonts.googleapis.com" />
  41. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  42. <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
  43. <title>KeystoneIntel — Data Intelligence & Signal Brokerage</title>
  44. ` + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
  45. error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
  46. <style>
  47. body {
  48. --bg: white;
  49. --fg: #222;
  50. --divider: #ccc;
  51. background: var(--bg);
  52. color: var(--fg);
  53. font-family:
  54. system-ui,
  55. -apple-system,
  56. BlinkMacSystemFont,
  57. 'Segoe UI',
  58. Roboto,
  59. Oxygen,
  60. Ubuntu,
  61. Cantarell,
  62. 'Open Sans',
  63. 'Helvetica Neue',
  64. sans-serif;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. height: 100vh;
  69. margin: 0;
  70. }
  71. .error {
  72. display: flex;
  73. align-items: center;
  74. max-width: 32rem;
  75. margin: 0 1rem;
  76. }
  77. .status {
  78. font-weight: 200;
  79. font-size: 3rem;
  80. line-height: 1;
  81. position: relative;
  82. top: -0.05rem;
  83. }
  84. .message {
  85. border-left: 1px solid var(--divider);
  86. padding: 0 0 0 1rem;
  87. margin: 0 0 0 1rem;
  88. min-height: 2.5rem;
  89. display: flex;
  90. align-items: center;
  91. }
  92. .message h1 {
  93. font-weight: 400;
  94. font-size: 1em;
  95. margin: 0;
  96. }
  97. @media (prefers-color-scheme: dark) {
  98. body {
  99. --bg: #222;
  100. --fg: #ddd;
  101. --divider: #666;
  102. }
  103. }
  104. </style>
  105. </head>
  106. <body>
  107. <div class="error">
  108. <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
  109. },
  110. version_hash: "1ylonqt"
  111. };
  112. async function get_hooks() {
  113. let handle;
  114. let handleFetch;
  115. let handleError;
  116. let handleValidationError;
  117. let init;
  118. let reroute;
  119. let transport;
  120. return {
  121. handle,
  122. handleFetch,
  123. handleError,
  124. handleValidationError,
  125. init,
  126. reroute,
  127. transport
  128. };
  129. }
  130. export {
  131. set_public_env as a,
  132. set_read_implementation as b,
  133. set_manifest as c,
  134. get_hooks as g,
  135. options as o,
  136. public_env as p,
  137. read_implementation as r,
  138. set_private_env as s
  139. };