scatter_gather 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.cursor/rules/instructions.mdc +21 -0
  3. data/.github/dependabot.yml +12 -0
  4. data/.github/workflows/ci.yml +55 -0
  5. data/CHANGELOG.md +7 -0
  6. data/Gemfile +11 -0
  7. data/LICENSE.md +21 -0
  8. data/README.md +86 -0
  9. data/Rakefile +32 -0
  10. data/bin/console +11 -0
  11. data/bin/setup +8 -0
  12. data/bin/test +5 -0
  13. data/lib/generators/install_generator.rb +33 -0
  14. data/lib/generators/scatter_gather_migration_001.rb.erb +16 -0
  15. data/lib/scatter_gather/version.rb +5 -0
  16. data/lib/scatter_gather.rb +196 -0
  17. data/lib/tasks/scatter_gather_tasks.rake +8 -0
  18. data/rbi/scatter_gather.rbi +135 -0
  19. data/scatter_gather-0.1.19.gem +0 -0
  20. data/scatter_gather.gemspec +46 -0
  21. data/sig/scatter_gather.rbs +116 -0
  22. data/test/dummy/Rakefile +8 -0
  23. data/test/dummy/app/assets/stylesheets/application.css +1 -0
  24. data/test/dummy/app/controllers/application_controller.rb +6 -0
  25. data/test/dummy/app/helpers/application_helper.rb +4 -0
  26. data/test/dummy/app/jobs/application_job.rb +9 -0
  27. data/test/dummy/app/mailers/application_mailer.rb +6 -0
  28. data/test/dummy/app/models/application_record.rb +5 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +27 -0
  30. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  31. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  32. data/test/dummy/app/views/pwa/manifest.json.erb +22 -0
  33. data/test/dummy/app/views/pwa/service-worker.js +26 -0
  34. data/test/dummy/bin/dev +2 -0
  35. data/test/dummy/bin/rails +4 -0
  36. data/test/dummy/bin/rake +4 -0
  37. data/test/dummy/bin/setup +34 -0
  38. data/test/dummy/config/application.rb +28 -0
  39. data/test/dummy/config/boot.rb +7 -0
  40. data/test/dummy/config/cable.yml +10 -0
  41. data/test/dummy/config/database.sqlite3.yml +32 -0
  42. data/test/dummy/config/database.yml +32 -0
  43. data/test/dummy/config/environment.rb +7 -0
  44. data/test/dummy/config/environments/development.rb +71 -0
  45. data/test/dummy/config/environments/production.rb +91 -0
  46. data/test/dummy/config/environments/test.rb +55 -0
  47. data/test/dummy/config/initializers/content_security_policy.rb +27 -0
  48. data/test/dummy/config/initializers/filter_parameter_logging.rb +10 -0
  49. data/test/dummy/config/initializers/inflections.rb +18 -0
  50. data/test/dummy/config/locales/en.yml +31 -0
  51. data/test/dummy/config/puma.rb +40 -0
  52. data/test/dummy/config/routes.rb +16 -0
  53. data/test/dummy/config/storage.yml +34 -0
  54. data/test/dummy/config.ru +8 -0
  55. data/test/dummy/db/migrate/20250101000001_add_scatter_gather_completions.rb +16 -0
  56. data/test/dummy/db/schema.rb +23 -0
  57. data/test/dummy/public/400.html +114 -0
  58. data/test/dummy/public/404.html +114 -0
  59. data/test/dummy/public/406-unsupported-browser.html +114 -0
  60. data/test/dummy/public/422.html +114 -0
  61. data/test/dummy/public/500.html +114 -0
  62. data/test/dummy/public/icon.png +0 -0
  63. data/test/dummy/public/icon.svg +3 -0
  64. data/test/scatter_gather_test.rb +180 -0
  65. data/test/test_helper.rb +17 -0
  66. metadata +285 -0
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/core_ext/integer/time"
4
+
5
+ Rails.application.configure do
6
+ # Settings specified here will take precedence over those in config/application.rb.
7
+
8
+ # Make code changes take effect immediately without server restart.
9
+ config.enable_reloading = true
10
+
11
+ # Do not eager load code on boot.
12
+ config.eager_load = false
13
+
14
+ # Show full error reports.
15
+ config.consider_all_requests_local = true
16
+
17
+ # Enable server timing.
18
+ config.server_timing = true
19
+
20
+ # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
21
+ # Run rails dev:cache to toggle Action Controller caching.
22
+ if Rails.root.join("tmp/caching-dev.txt").exist?
23
+ config.action_controller.perform_caching = true
24
+ config.action_controller.enable_fragment_cache_logging = true
25
+ config.public_file_server.headers = {"cache-control" => "public, max-age=#{2.days.to_i}"}
26
+ else
27
+ config.action_controller.perform_caching = false
28
+ end
29
+
30
+ # Change to :null_store to avoid any caching.
31
+ config.cache_store = :memory_store
32
+
33
+ # Store uploaded files on the local file system (see config/storage.yml for options).
34
+ config.active_storage.service = :local
35
+
36
+ # Don't care if the mailer can't send.
37
+ config.action_mailer.raise_delivery_errors = false
38
+
39
+ # Make template changes take effect immediately.
40
+ config.action_mailer.perform_caching = false
41
+
42
+ # Set localhost to be used by links generated in mailer templates.
43
+ config.action_mailer.default_url_options = {host: "localhost", port: 3000}
44
+
45
+ # Print deprecation notices to the Rails logger.
46
+ config.active_support.deprecation = :log
47
+
48
+ # Raise an error on page load if there are pending migrations.
49
+ config.active_record.migration_error = :page_load
50
+
51
+ # Highlight code that triggered database queries in logs.
52
+ config.active_record.verbose_query_logs = true
53
+
54
+ # Append comments with runtime information tags to SQL queries in logs.
55
+ config.active_record.query_log_tags_enabled = true
56
+
57
+ # Highlight code that enqueued background job in logs.
58
+ config.active_job.verbose_enqueue_logs = true
59
+
60
+ # Raises error for missing translations.
61
+ # config.i18n.raise_on_missing_translations = true
62
+
63
+ # Annotate rendered view with file names.
64
+ config.action_view.annotate_rendered_view_with_filenames = true
65
+
66
+ # Uncomment if you wish to allow Action Cable access from any origin.
67
+ # config.action_cable.disable_request_forgery_protection = true
68
+
69
+ # Raise error when a before_action's only/except options reference missing actions.
70
+ config.action_controller.raise_on_missing_callback_actions = true
71
+ end
@@ -0,0 +1,91 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/core_ext/integer/time"
4
+
5
+ Rails.application.configure do
6
+ # Settings specified here will take precedence over those in config/application.rb.
7
+
8
+ # Code is not reloaded between requests.
9
+ config.enable_reloading = false
10
+
11
+ # Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
12
+ config.eager_load = true
13
+
14
+ # Full error reports are disabled.
15
+ config.consider_all_requests_local = false
16
+
17
+ # Turn on fragment caching in view templates.
18
+ config.action_controller.perform_caching = true
19
+
20
+ # Cache assets for far-future expiry since they are all digest stamped.
21
+ config.public_file_server.headers = {"cache-control" => "public, max-age=#{1.year.to_i}"}
22
+
23
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
24
+ # config.asset_host = "http://assets.example.com"
25
+
26
+ # Store uploaded files on the local file system (see config/storage.yml for options).
27
+ config.active_storage.service = :local
28
+
29
+ # Assume all access to the app is happening through a SSL-terminating reverse proxy.
30
+ config.assume_ssl = true
31
+
32
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
33
+ config.force_ssl = true
34
+
35
+ # Skip http-to-https redirect for the default health check endpoint.
36
+ # config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
37
+
38
+ # Log to STDOUT with the current request id as a default log tag.
39
+ config.log_tags = [:request_id]
40
+ config.logger = ActiveSupport::TaggedLogging.logger($stdout)
41
+
42
+ # Change to "debug" to log everything (including potentially personally-identifiable information!)
43
+ config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
44
+
45
+ # Prevent health checks from clogging up the logs.
46
+ config.silence_healthcheck_path = "/up"
47
+
48
+ # Don't log any deprecations.
49
+ config.active_support.report_deprecations = false
50
+
51
+ # Replace the default in-process memory cache store with a durable alternative.
52
+ # config.cache_store = :mem_cache_store
53
+
54
+ # Replace the default in-process and non-durable queuing backend for Active Job.
55
+ # config.active_job.queue_adapter = :resque
56
+
57
+ # Ignore bad email addresses and do not raise email delivery errors.
58
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
59
+ # config.action_mailer.raise_delivery_errors = false
60
+
61
+ # Set host to be used by links generated in mailer templates.
62
+ config.action_mailer.default_url_options = {host: "example.com"}
63
+
64
+ # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
65
+ # config.action_mailer.smtp_settings = {
66
+ # user_name: Rails.application.credentials.dig(:smtp, :user_name),
67
+ # password: Rails.application.credentials.dig(:smtp, :password),
68
+ # address: "smtp.example.com",
69
+ # port: 587,
70
+ # authentication: :plain
71
+ # }
72
+
73
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
74
+ # the I18n.default_locale when a translation cannot be found).
75
+ config.i18n.fallbacks = true
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+
80
+ # Only use :id for inspections in production.
81
+ config.active_record.attributes_for_inspect = [:id]
82
+
83
+ # Enable DNS rebinding protection and other `Host` header attacks.
84
+ # config.hosts = [
85
+ # "example.com", # Allow requests from example.com
86
+ # /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
87
+ # ]
88
+ #
89
+ # Skip DNS rebinding protection for the default health check endpoint.
90
+ # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
91
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+
8
+ Rails.application.configure do
9
+ # Settings specified here will take precedence over those in config/application.rb.
10
+
11
+ # While tests run files are not watched, reloading is not necessary.
12
+ config.enable_reloading = false
13
+
14
+ # Eager loading loads your entire application. When running a single test locally,
15
+ # this is usually not necessary, and can slow down your test suite. However, it's
16
+ # recommended that you enable it in continuous integration systems to ensure eager
17
+ # loading is working properly before deploying your code.
18
+ config.eager_load = ENV["CI"].present?
19
+
20
+ # Configure public file server for tests with cache-control for performance.
21
+ config.public_file_server.headers = {"cache-control" => "public, max-age=3600"}
22
+
23
+ # Show full error reports.
24
+ config.consider_all_requests_local = true
25
+ config.cache_store = :null_store
26
+
27
+ # Render exception templates for rescuable exceptions and raise for other exceptions.
28
+ config.action_dispatch.show_exceptions = :rescuable
29
+
30
+ # Disable request forgery protection in test environment.
31
+ config.action_controller.allow_forgery_protection = false
32
+
33
+ # Store uploaded files on the local file system in a temporary directory.
34
+ config.active_storage.service = :test
35
+
36
+ # Tell Action Mailer not to deliver emails to the real world.
37
+ # The :test delivery method accumulates sent emails in the
38
+ # ActionMailer::Base.deliveries array.
39
+ config.action_mailer.delivery_method = :test
40
+
41
+ # Set host to be used by links generated in mailer templates.
42
+ config.action_mailer.default_url_options = {host: "example.com"}
43
+
44
+ # Print deprecation notices to the stderr.
45
+ config.active_support.deprecation = :stderr
46
+
47
+ # Raises error for missing translations.
48
+ # config.i18n.raise_on_missing_translations = true
49
+
50
+ # Annotate rendered view with file names.
51
+ # config.action_view.annotate_rendered_view_with_filenames = true
52
+
53
+ # Raise error when a before_action's only/except options reference missing actions.
54
+ config.action_controller.raise_on_missing_callback_actions = true
55
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Define an application-wide content security policy.
6
+ # See the Securing Rails Applications Guide for more information:
7
+ # https://guides.rubyonrails.org/security.html#content-security-policy-header
8
+
9
+ # Rails.application.configure do
10
+ # config.content_security_policy do |policy|
11
+ # policy.default_src :self, :https
12
+ # policy.font_src :self, :https, :data
13
+ # policy.img_src :self, :https, :data
14
+ # policy.object_src :none
15
+ # policy.script_src :self, :https
16
+ # policy.style_src :self, :https
17
+ # # Specify URI for violation reports
18
+ # # policy.report_uri "/csp-violation-report-endpoint"
19
+ # end
20
+ #
21
+ # # Generate session nonces for permitted importmap, inline scripts, and inline styles.
22
+ # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
23
+ # config.content_security_policy_nonce_directives = %w(script-src style-src)
24
+ #
25
+ # # Report violations without enforcing the policy.
26
+ # # config.content_security_policy_report_only = true
27
+ # end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
6
+ # Use this to limit dissemination of sensitive information.
7
+ # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
8
+ Rails.application.config.filter_parameters += [
9
+ :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
10
+ ]
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Add new inflection rules using the following format. Inflections
6
+ # are locale specific, and you may define rules for as many different
7
+ # locales as you wish. All of these examples are active by default:
8
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
9
+ # inflect.plural /^(ox)$/i, "\\1en"
10
+ # inflect.singular /^(ox)en/i, "\\1"
11
+ # inflect.irregular "person", "people"
12
+ # inflect.uncountable %w( fish sheep )
13
+ # end
14
+
15
+ # These inflection rules are supported but not enabled by default:
16
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
17
+ # inflect.acronym "RESTful"
18
+ # end
@@ -0,0 +1,31 @@
1
+ # Files in the config/locales directory are used for internationalization and
2
+ # are automatically loaded by Rails. If you want to use locales other than
3
+ # English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t "hello"
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t("hello") %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more about the API, please read the Rails Internationalization guide
20
+ # at https://guides.rubyonrails.org/i18n.html.
21
+ #
22
+ # Be aware that YAML interprets the following case-insensitive strings as
23
+ # booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
24
+ # must be quoted to be interpreted as strings. For example:
25
+ #
26
+ # en:
27
+ # "yes": yup
28
+ # enabled: "ON"
29
+
30
+ en:
31
+ hello: "Hello world"
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This configuration file will be evaluated by Puma. The top-level methods that
4
+ # are invoked here are part of Puma's configuration DSL. For more information
5
+ # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
6
+ #
7
+ # Puma starts a configurable number of processes (workers) and each process
8
+ # serves each request in a thread from an internal thread pool.
9
+ #
10
+ # You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
11
+ # should only set this value when you want to run 2 or more workers. The
12
+ # default is already 1.
13
+ #
14
+ # The ideal number of threads per worker depends both on how much time the
15
+ # application spends waiting for IO operations and on how much you wish to
16
+ # prioritize throughput over latency.
17
+ #
18
+ # As a rule of thumb, increasing the number of threads will increase how much
19
+ # traffic a given process can handle (throughput), but due to CRuby's
20
+ # Global VM Lock (GVL) it has diminishing returns and will degrade the
21
+ # response time (latency) of the application.
22
+ #
23
+ # The default is set to 3 threads as it's deemed a decent compromise between
24
+ # throughput and latency for the average Rails application.
25
+ #
26
+ # Any libraries that use a connection pool or another resource pool should
27
+ # be configured to provide at least as many connections as the number of
28
+ # threads. This includes Active Record's `pool` parameter in `database.yml`.
29
+ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
30
+ threads threads_count, threads_count
31
+
32
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
33
+ port ENV.fetch("PORT", 3000)
34
+
35
+ # Allow puma to be restarted by `bin/rails restart` command.
36
+ plugin :tmp_restart
37
+
38
+ # Specify the PID file. Defaults to tmp/pids/server.pid in development.
39
+ # In other environments, only set the PID file if requested.
40
+ pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ Rails.application.routes.draw do
4
+ # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
5
+
6
+ # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
7
+ # Can be used by load balancers and uptime monitors to verify that the app is live.
8
+ get "up" => "rails/health#show", :as => :rails_health_check
9
+
10
+ # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
11
+ # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
12
+ # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
13
+
14
+ # Defines the root path route ("/")
15
+ # root "posts#index"
16
+ end
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket-<%= Rails.env %>
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket-<%= Rails.env %>
23
+
24
+ # Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name-<%= Rails.env %>
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is used by Rack-based servers to start the application.
4
+
5
+ require_relative "config/environment"
6
+
7
+ run Rails.application
8
+ Rails.application.load_server
@@ -0,0 +1,16 @@
1
+ class AddScatterGatherCompletions < ActiveRecord::Migration[7.2]
2
+ def up
3
+ create_table :scatter_gather_completions do |t|
4
+ t.string :active_job_id, null: false
5
+ t.string :active_job_class_name
6
+ t.string :status, default: "unknown"
7
+ t.timestamps
8
+ end
9
+ add_index :scatter_gather_completions, [:active_job_id], unique: true # For lookups
10
+ add_index :scatter_gather_completions, [:created_at] # For cleanup
11
+ end
12
+
13
+ def down
14
+ drop_table :scatter_gather_completions
15
+ end
16
+ end
@@ -0,0 +1,23 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is less error-prone than running all of your migrations from scratch.
8
+ # Old migrations may fail to apply correctly if those migrations used external
9
+ # dependencies or application code.
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema[7.2].define(version: 2025_01_01_000001) do
14
+ create_table "scatter_gather_completions", force: :cascade do |t|
15
+ t.string "active_job_id", null: false
16
+ t.string "active_job_class_name"
17
+ t.string "status", default: "unknown"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ t.index ["active_job_id"], name: "index_scatter_gather_completions_on_active_job_id", unique: true
21
+ t.index ["created_at"], name: "index_scatter_gather_completions_on_created_at"
22
+ end
23
+ end
@@ -0,0 +1,114 @@
1
+ <!doctype html>
2
+
3
+ <html lang="en">
4
+
5
+ <head>
6
+
7
+ <title>The server cannot process the request due to a client error (400 Bad Request)</title>
8
+
9
+ <meta charset="utf-8">
10
+ <meta name="viewport" content="initial-scale=1, width=device-width">
11
+ <meta name="robots" content="noindex, nofollow">
12
+
13
+ <style>
14
+
15
+ *, *::before, *::after {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ * {
20
+ margin: 0;
21
+ }
22
+
23
+ html {
24
+ font-size: 16px;
25
+ }
26
+
27
+ body {
28
+ background: #FFF;
29
+ color: #261B23;
30
+ display: grid;
31
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
32
+ font-size: clamp(1rem, 2.5vw, 2rem);
33
+ -webkit-font-smoothing: antialiased;
34
+ font-style: normal;
35
+ font-weight: 400;
36
+ letter-spacing: -0.0025em;
37
+ line-height: 1.4;
38
+ min-height: 100vh;
39
+ place-items: center;
40
+ text-rendering: optimizeLegibility;
41
+ -webkit-text-size-adjust: 100%;
42
+ }
43
+
44
+ a {
45
+ color: inherit;
46
+ font-weight: 700;
47
+ text-decoration: underline;
48
+ text-underline-offset: 0.0925em;
49
+ }
50
+
51
+ b, strong {
52
+ font-weight: 700;
53
+ }
54
+
55
+ i, em {
56
+ font-style: italic;
57
+ }
58
+
59
+ main {
60
+ display: grid;
61
+ gap: 1em;
62
+ padding: 2em;
63
+ place-items: center;
64
+ text-align: center;
65
+ }
66
+
67
+ main header {
68
+ width: min(100%, 12em);
69
+ }
70
+
71
+ main header svg {
72
+ height: auto;
73
+ max-width: 100%;
74
+ width: 100%;
75
+ }
76
+
77
+ main article {
78
+ width: min(100%, 30em);
79
+ }
80
+
81
+ main article p {
82
+ font-size: 75%;
83
+ }
84
+
85
+ main article br {
86
+
87
+ display: none;
88
+
89
+ @media(min-width: 48em) {
90
+ display: inline;
91
+ }
92
+
93
+ }
94
+
95
+ </style>
96
+
97
+ </head>
98
+
99
+ <body>
100
+
101
+ <!-- This file lives in public/400.html -->
102
+
103
+ <main>
104
+ <header>
105
+ <svg height="172" viewBox="0 0 480 172" width="480" xmlns="http://www.w3.org/2000/svg"><path d="m124.48 3.00509-45.6889 100.02991h26.2239v-28.1168h38.119v28.1168h21.628v35.145h-21.628v30.82h-37.308v-30.82h-72.1833v-31.901l50.2851-103.27391zm115.583 168.69891c-40.822 0-64.884-35.146-64.884-85.7015 0-50.5554 24.062-85.700907 64.884-85.700907 40.823 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.061 85.7015-64.884 85.7015zm0-133.2831c-17.572 0-22.709 21.8984-22.709 47.5816 0 25.6835 5.137 47.5815 22.709 47.5815 17.303 0 22.71-21.898 22.71-47.5815 0-25.6832-5.407-47.5816-22.71-47.5816zm140.456 133.2831c-40.823 0-64.884-35.146-64.884-85.7015 0-50.5554 24.061-85.700907 64.884-85.700907 40.822 0 64.884 35.145507 64.884 85.700907 0 50.5555-24.062 85.7015-64.884 85.7015zm0-133.2831c-17.573 0-22.71 21.8984-22.71 47.5816 0 25.6835 5.137 47.5815 22.71 47.5815 17.302 0 22.709-21.898 22.709-47.5815 0-25.6832-5.407-47.5816-22.709-47.5816z" fill="#f0eff0"/><path d="m123.606 85.4445c3.212 1.0523 5.538 4.2089 5.538 8.0301 0 6.1472-4.209 9.5254-11.298 9.5254h-15.617v-34.0033h14.565c7.089 0 11.353 3.1566 11.353 9.2484 0 3.6551-2.049 6.3134-4.541 7.1994zm-12.904-2.9905h5.095c2.603 0 3.988-.9968 3.988-3.1013 0-2.1044-1.385-3.0459-3.988-3.0459h-5.095zm0 6.6456v6.5902h5.981c2.492 0 3.877-1.3291 3.877-3.2674 0-2.049-1.385-3.3228-3.877-3.3228zm43.786 13.9004h-8.362v-1.274c-.831.831-3.323 1.717-5.981 1.717-4.929 0-9.083-2.769-9.083-8.0301 0-4.818 4.154-7.9193 9.581-7.9193 2.049 0 4.486.6646 5.483 1.3845v-1.606c0-1.606-.942-2.9905-3.046-2.9905-1.606 0-2.548.7199-2.935 1.8275h-8.197c.72-4.8181 4.985-8.6393 11.409-8.6393 7.088 0 11.131 3.7659 11.131 10.2453zm-8.362-6.9779v-1.4399c-.554-1.0522-2.049-1.7167-3.655-1.7167-1.717 0-3.434.7199-3.434 2.3813 0 1.7168 1.717 2.4367 3.434 2.4367 1.606 0 3.101-.6645 3.655-1.6614zm27.996 6.9779v-1.994c-1.163 1.329-3.599 2.548-6.147 2.548-7.199 0-11.131-5.8151-11.131-13.0145s3.932-13.0143 11.131-13.0143c2.548 0 4.984 1.2184 6.147 2.5475v-13.0697h8.695v35.997zm0-9.1931v-6.5902c-.664-1.3291-2.159-2.326-3.821-2.326-2.99 0-4.763 2.4368-4.763 5.6488s1.773 5.5934 4.763 5.5934c1.717 0 3.157-.9415 3.821-2.326zm35.471-2.049h-3.101v11.2421h-8.806v-34.0033h15.285c7.31 0 12.35 4.1535 12.35 11.5744 0 5.1503-2.603 8.6947-6.757 10.2453l7.975 12.1836h-9.858zm-3.101-15.2849v8.1962h5.538c3.156 0 4.596-1.606 4.596-4.0981s-1.44-4.0981-4.596-4.0981zm36.957 17.8323h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.515-13.0143 7.643 0 11.962 5.095 11.962 12.5159v2.1598h-16.115c.277 2.9905 1.827 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.822-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm30.98 27.5234v-10.799c-1.163 1.329-3.6 2.548-6.147 2.548-7.2 0-11.132-5.9259-11.132-13.0145 0-7.144 3.932-13.0143 11.132-13.0143 2.547 0 4.984 1.2184 6.147 2.5475v-1.9937h8.695v33.726zm0-17.9981v-6.5902c-.665-1.3291-2.105-2.326-3.821-2.326-2.991 0-4.763 2.4368-4.763 5.6488s1.772 5.5934 4.763 5.5934c1.661 0 3.156-.9415 3.821-2.326zm36.789-15.7279v24.921h-8.695v-2.16c-1.329 1.551-3.821 2.714-6.646 2.714-5.482 0-8.75-3.5999-8.75-9.1379v-16.3371h8.64v14.288c0 2.1045.996 3.5997 3.212 3.5997 1.606 0 3.101-1.0522 3.544-2.769v-15.1187zm19.084 16.2263h8.03c-.886 5.7597-5.206 9.2487-11.685 9.2487-7.643 0-12.682-5.2613-12.682-13.0145 0-7.6978 5.316-13.0143 12.515-13.0143 7.643 0 11.963 5.095 11.963 12.5159v2.1598h-16.116c.277 2.9905 1.828 4.5965 4.32 4.5965 1.772 0 3.156-.7753 3.655-2.4921zm-3.822-10.0237c-2.049 0-3.433 1.2737-3.987 3.5997h7.532c-.111-2.0491-1.385-3.5997-3.545-3.5997zm13.428 11.0206h8.474c.387 1.3845 1.606 2.1598 3.156 2.1598 1.44 0 2.548-.5538 2.548-1.7168 0-.9414-.72-1.2737-1.939-1.5506l-4.873-.9969c-4.154-.886-6.867-2.8797-6.867-7.2547 0-5.3165 4.762-8.4178 10.633-8.4178 6.812 0 10.522 3.1567 11.297 8.0855h-8.03c-.277-1.0522-1.052-1.9937-3.046-1.9937-1.273 0-2.326.5538-2.326 1.6614 0 .7753.554 1.163 1.717 1.3845l4.929 1.163c4.541 1.0522 6.978 3.4335 6.978 7.4763 0 5.3168-4.818 8.2518-10.91 8.2518-6.369 0-10.965-2.88-11.741-8.2518zm27.538-.8861v-9.5807h-3.655v-6.7564h3.655v-6.8671h8.584v6.8671h5.205v6.7564h-5.205v8.307c0 1.9383.941 2.769 2.658 2.769.941 0 1.993-.2216 2.769-.5538v7.3654c-.997.443-2.88.775-4.818.775-5.871 0-9.193-2.769-9.193-9.0819z" fill="#d30001"/></svg>
106
+ </header>
107
+ <article>
108
+ <p><strong>The server cannot process the request due to a client error.</strong> Please check the request and try again. If you’re the application owner check the logs for more information.</p>
109
+ </article>
110
+ </main>
111
+
112
+ </body>
113
+
114
+ </html>