ruby_event_store-browser 2.3.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_event_store/browser/app.rb +119 -78
- data/lib/ruby_event_store/browser/get_event.rb +28 -0
- data/lib/ruby_event_store/browser/get_events_from_stream.rb +39 -40
- data/lib/ruby_event_store/browser/get_stream.rb +5 -6
- data/lib/ruby_event_store/browser/json_api_event.rb +4 -3
- data/lib/ruby_event_store/browser/router.rb +60 -0
- data/lib/ruby_event_store/browser/urls.rb +64 -0
- data/lib/ruby_event_store/browser/version.rb +1 -1
- data/lib/ruby_event_store/browser.rb +3 -2
- data/public/bootstrap.js +3 -0
- data/public/ruby_event_store_browser.css +1 -5
- data/public/ruby_event_store_browser.js +1 -8
- metadata +12 -12
- data/lib/ruby_event_store/browser/event.rb +0 -34
- data/lib/ruby_event_store/browser/routing.rb +0 -48
- data/lib/ruby_event_store/browser/stream.rb +0 -113
- data/public/ruby_event_store_browser.css.map +0 -1
- data/public/ruby_event_store_browser.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2593c678fcd6240bb75582f44cdcec7b3f34b67a0c64340677a24eff75ecdc37
|
4
|
+
data.tar.gz: 34cc3a6f626035b142b240e55df3671e10ef019b2df5ce5da1e5523fa149acbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d59bf1dcdc540583ce18115ef0ae1f0089f5f56c8542235d01f91311938d731c631e099ce0035ff22edf8d6bac14c481562566a4b04b408e1b7f5c4db495a99
|
7
|
+
data.tar.gz: 1b3181199b695e282c8505dbda4e442377a54858e4ca061bcd9431564dc9615455caab804754aa77bbc628d157b5ac69c38cabb48b94fba47e5518b7baea89d0
|
@@ -1,103 +1,144 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../browser"
|
4
|
-
require "
|
4
|
+
require "rack"
|
5
|
+
require "erb"
|
6
|
+
require "json"
|
5
7
|
|
6
8
|
module RubyEventStore
|
7
9
|
module Browser
|
8
|
-
class App
|
9
|
-
def self.for(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
10
|
+
class App
|
11
|
+
def self.for(
|
12
|
+
event_store_locator:,
|
13
|
+
host: nil,
|
14
|
+
path: nil,
|
15
|
+
api_url: nil,
|
16
|
+
environment: nil,
|
17
|
+
related_streams_query: DEFAULT_RELATED_STREAMS_QUERY
|
18
|
+
)
|
19
|
+
warn(<<~WARN) if environment
|
20
|
+
Passing :environment to RubyEventStore::Browser::App.for is deprecated.
|
21
|
+
|
22
|
+
This option is no-op, has no effect and will be removed in next major release.
|
23
|
+
WARN
|
24
|
+
warn(<<~WARN) if host
|
25
|
+
Passing :host to RubyEventStore::Browser::App.for is deprecated.
|
26
|
+
|
27
|
+
This option will be removed in next major release.
|
28
|
+
|
29
|
+
Host and mount points are correctly recognized from Rack environment
|
30
|
+
and this option is redundant.
|
31
|
+
WARN
|
32
|
+
warn(<<~WARN) if path
|
33
|
+
Passing :path to RubyEventStore::Browser::App.for is deprecated.
|
34
|
+
|
35
|
+
This option will be removed in next major release.
|
36
|
+
|
37
|
+
Host and mount points are correctly recognized from Rack environment
|
38
|
+
and this option is redundant.
|
39
|
+
WARN
|
40
|
+
|
41
|
+
Rack::Builder.new do
|
42
|
+
use Rack::Static,
|
43
|
+
urls: {
|
44
|
+
"/ruby_event_store_browser.js" => "ruby_event_store_browser.js",
|
45
|
+
"/ruby_event_store_browser.css" => "ruby_event_store_browser.css",
|
46
|
+
"/bootstrap.js" => "bootstrap.js"
|
47
|
+
},
|
48
|
+
root: "#{__dir__}/../../../public"
|
49
|
+
run App.new(
|
50
|
+
event_store_locator: event_store_locator,
|
51
|
+
related_streams_query: related_streams_query,
|
52
|
+
host: host,
|
53
|
+
root_path: path,
|
54
|
+
api_url: api_url
|
55
|
+
)
|
20
56
|
end
|
21
57
|
end
|
22
58
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
set :event_store_locator, -> {}
|
28
|
-
set :related_streams_query, nil
|
29
|
-
set :protection, except: :path_traversal
|
30
|
-
|
31
|
-
mime_type :json, "application/vnd.api+json"
|
59
|
+
def initialize(event_store_locator:, related_streams_query:, host:, root_path:, api_url:)
|
60
|
+
@event_store_locator = event_store_locator
|
61
|
+
@related_streams_query = related_streams_query
|
62
|
+
@routing = Urls.from_configuration(host, root_path, api_url)
|
32
63
|
end
|
33
64
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
65
|
+
def call(env)
|
66
|
+
router = Router.new(routing)
|
67
|
+
router.add_route("GET", "/api/events/:event_id") do |params|
|
68
|
+
json GetEvent.new(event_store: event_store, event_id: params.fetch("event_id"))
|
69
|
+
end
|
70
|
+
router.add_route("GET", "/api/streams/:stream_name") do |params, urls|
|
71
|
+
json GetStream.new(
|
72
|
+
stream_name: params.fetch("stream_name"),
|
73
|
+
routing: urls,
|
74
|
+
related_streams_query: related_streams_query
|
75
|
+
)
|
76
|
+
end
|
77
|
+
router.add_route("GET", "/api/streams/:stream_name/relationships/events") do |params, urls|
|
78
|
+
json GetEventsFromStream.new(
|
79
|
+
event_store: event_store,
|
80
|
+
routing: urls,
|
81
|
+
stream_name: params.fetch("stream_name"),
|
82
|
+
page: params["page"]
|
83
|
+
)
|
42
84
|
end
|
85
|
+
%w[/ /events/:event_id /streams/:stream_name].each do |starting_route|
|
86
|
+
router.add_route("GET", starting_route) do |_, urls|
|
87
|
+
erb bootstrap_html,
|
88
|
+
browser_js_src: urls.browser_js_url,
|
89
|
+
browser_css_src: urls.browser_css_url,
|
90
|
+
bootstrap_js_src: urls.bootstrap_js_url,
|
91
|
+
initial_data: {
|
92
|
+
rootUrl: urls.app_url,
|
93
|
+
apiUrl: urls.api_url,
|
94
|
+
resVersion: res_version
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
router.handle(Rack::Request.new(env))
|
99
|
+
rescue EventNotFound, Router::NoMatch
|
100
|
+
not_found
|
43
101
|
end
|
44
102
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
103
|
+
private
|
104
|
+
|
105
|
+
attr_reader :event_store_locator, :related_streams_query, :routing
|
106
|
+
|
107
|
+
def event_store
|
108
|
+
event_store_locator.call
|
51
109
|
end
|
52
110
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
111
|
+
def bootstrap_html
|
112
|
+
<<~HTML
|
113
|
+
<!DOCTYPE html>
|
114
|
+
<html>
|
115
|
+
<head>
|
116
|
+
<title>RubyEventStore::Browser</title>
|
117
|
+
<link type="text/css" rel="stylesheet" href="<%= browser_css_src %>">
|
118
|
+
<meta name="ruby-event-store-browser-settings" content="<%= Rack::Utils.escape_html(JSON.dump(initial_data)) %>">
|
119
|
+
</head>
|
120
|
+
<body>
|
121
|
+
<script type="text/javascript" src="<%= browser_js_src %>"></script>
|
122
|
+
<script type="text/javascript" src="<%= bootstrap_js_src %>"></script>
|
123
|
+
</body>
|
124
|
+
</html>
|
125
|
+
HTML
|
59
126
|
end
|
60
127
|
|
61
|
-
|
62
|
-
|
63
|
-
<!DOCTYPE html>
|
64
|
-
<html>
|
65
|
-
<head>
|
66
|
-
<title>RubyEventStore::Browser</title>
|
67
|
-
<link type="text/css" rel="stylesheet" href="<%= path %>/ruby_event_store_browser.css">
|
68
|
-
</head>
|
69
|
-
<body>
|
70
|
-
<script type="text/javascript" src="<%= path %>/ruby_event_store_browser.js"></script>
|
71
|
-
<script type="text/javascript">
|
72
|
-
RubyEventStore.Browser.Elm.Main.init({
|
73
|
-
flags: {
|
74
|
-
rootUrl: "<%= routing.root_url %>",
|
75
|
-
apiUrl: "<%= api_url %>",
|
76
|
-
resVersion: "<%= RubyEventStore::VERSION %>"
|
77
|
-
}
|
78
|
-
});
|
79
|
-
</script>
|
80
|
-
</body>
|
81
|
-
</html>
|
82
|
-
}, locals: { path: settings.root_path || request.script_name, api_url: settings.api_url || routing.api_url }
|
128
|
+
def not_found
|
129
|
+
[404, {}, []]
|
83
130
|
end
|
84
131
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
end
|
132
|
+
def json(body)
|
133
|
+
[200, { "Content-Type" => "application/vnd.api+json" }, [JSON.dump(body.to_h)]]
|
134
|
+
end
|
89
135
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
settings.root_path || request.script_name
|
94
|
-
)
|
95
|
-
end
|
136
|
+
def erb(template, **locals)
|
137
|
+
[200, { "Content-Type" => "text/html;charset=utf-8" }, [ERB.new(template).result_with_hash(locals)]]
|
138
|
+
end
|
96
139
|
|
97
|
-
|
98
|
-
|
99
|
-
JSON.dump data.as_json
|
100
|
-
end
|
140
|
+
def res_version
|
141
|
+
RubyEventStore::VERSION
|
101
142
|
end
|
102
143
|
end
|
103
144
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RubyEventStore
|
4
|
+
module Browser
|
5
|
+
class GetEvent
|
6
|
+
def initialize(event_store:, event_id:)
|
7
|
+
@event_store = event_store
|
8
|
+
@event_id = event_id
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_h
|
12
|
+
{ data: JsonApiEvent.new(event, parent_event_id).to_h }
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
attr_reader :event_store, :event_id
|
18
|
+
|
19
|
+
def event
|
20
|
+
@event ||= event_store.read.event!(event_id)
|
21
|
+
end
|
22
|
+
|
23
|
+
def parent_event_id
|
24
|
+
event_store.read.event(event.metadata.fetch(:causation_id))&.event_id if event.metadata.has_key?(:causation_id)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -5,55 +5,57 @@ module RubyEventStore
|
|
5
5
|
class GetEventsFromStream
|
6
6
|
HEAD = Object.new
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
def initialize(event_store:, params:, routing:)
|
8
|
+
def initialize(event_store:, routing:, stream_name:, page:)
|
11
9
|
@event_store = event_store
|
12
|
-
@params = params
|
13
10
|
@routing = routing
|
11
|
+
@stream_name = stream_name
|
12
|
+
@page = page || {}
|
14
13
|
end
|
15
14
|
|
16
|
-
def
|
17
|
-
{
|
18
|
-
data: events.map { |e| JsonApiEvent.new(e, nil).to_h },
|
19
|
-
links: links
|
20
|
-
}
|
15
|
+
def to_h
|
16
|
+
{ data: events.map { |e| JsonApiEvent.new(e, nil).to_h }, links: links }
|
21
17
|
end
|
22
18
|
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_reader :event_store, :routing, :stream_name, :page
|
22
|
+
|
23
23
|
def events
|
24
|
-
@events ||=
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
@events ||=
|
25
|
+
case direction
|
26
|
+
when :forward
|
27
|
+
events_forward(position).reverse
|
28
|
+
when :backward
|
29
|
+
events_backward(position)
|
30
|
+
end
|
30
31
|
end
|
31
32
|
|
32
33
|
def links
|
33
|
-
@links ||=
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
@links ||=
|
35
|
+
{}.tap do |h|
|
36
|
+
if prev_event?
|
37
|
+
h[:prev] = prev_page_link(events.first.event_id)
|
38
|
+
h[:first] = first_page_link
|
39
|
+
end
|
40
|
+
|
41
|
+
if next_event?
|
42
|
+
h[:next] = next_page_link(events.last.event_id)
|
43
|
+
h[:last] = last_page_link
|
44
|
+
end
|
42
45
|
end
|
43
|
-
end
|
44
46
|
end
|
45
47
|
|
46
48
|
def events_forward(position)
|
47
49
|
spec = event_store.read.limit(count)
|
48
50
|
spec = spec.stream(stream_name) unless stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
|
49
|
-
spec = spec.from(position)
|
51
|
+
spec = spec.from(position) unless position.equal?(HEAD)
|
50
52
|
spec.to_a
|
51
53
|
end
|
52
54
|
|
53
55
|
def events_backward(position)
|
54
56
|
spec = event_store.read.limit(count).backward
|
55
57
|
spec = spec.stream(stream_name) unless stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
|
56
|
-
spec = spec.from(position)
|
58
|
+
spec = spec.from(position) unless position.equal?(HEAD)
|
57
59
|
spec.to_a
|
58
60
|
end
|
59
61
|
|
@@ -72,7 +74,12 @@ module RubyEventStore
|
|
72
74
|
end
|
73
75
|
|
74
76
|
def next_page_link(event_id)
|
75
|
-
routing.paginated_events_from_stream_url(
|
77
|
+
routing.paginated_events_from_stream_url(
|
78
|
+
id: stream_name,
|
79
|
+
position: event_id,
|
80
|
+
direction: :backward,
|
81
|
+
count: count
|
82
|
+
)
|
76
83
|
end
|
77
84
|
|
78
85
|
def first_page_link
|
@@ -84,11 +91,11 @@ module RubyEventStore
|
|
84
91
|
end
|
85
92
|
|
86
93
|
def count
|
87
|
-
Integer(
|
94
|
+
Integer(page["count"] || PAGE_SIZE)
|
88
95
|
end
|
89
96
|
|
90
97
|
def direction
|
91
|
-
case
|
98
|
+
case page["direction"]
|
92
99
|
when "forward"
|
93
100
|
:forward
|
94
101
|
else
|
@@ -97,21 +104,13 @@ module RubyEventStore
|
|
97
104
|
end
|
98
105
|
|
99
106
|
def position
|
100
|
-
case
|
107
|
+
case page["position"]
|
101
108
|
when "head", nil
|
102
109
|
HEAD
|
103
110
|
else
|
104
|
-
|
111
|
+
page.fetch("position")
|
105
112
|
end
|
106
113
|
end
|
107
|
-
|
108
|
-
def stream_name
|
109
|
-
params.fetch(:id)
|
110
|
-
end
|
111
|
-
|
112
|
-
def pagination_param
|
113
|
-
params[:page] || {}
|
114
|
-
end
|
115
114
|
end
|
116
115
|
end
|
117
116
|
end
|
@@ -7,18 +7,18 @@ module RubyEventStore
|
|
7
7
|
@related_streams_query = related_streams_query
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def to_h
|
11
11
|
{
|
12
12
|
data: {
|
13
13
|
id: stream_name,
|
14
14
|
type: "streams",
|
15
15
|
attributes: {
|
16
|
-
related_streams: related_streams
|
16
|
+
related_streams: related_streams
|
17
17
|
},
|
18
18
|
relationships: {
|
19
19
|
events: {
|
20
20
|
links: {
|
21
|
-
self: routing.paginated_events_from_stream_url(id: stream_name)
|
21
|
+
self: routing.paginated_events_from_stream_url(id: stream_name)
|
22
22
|
}
|
23
23
|
}
|
24
24
|
}
|
@@ -27,12 +27,11 @@ module RubyEventStore
|
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
30
|
+
|
30
31
|
attr_reader :stream_name, :routing, :related_streams_query
|
31
32
|
|
32
33
|
def related_streams
|
33
|
-
unless related_streams_query.equal?(DEFAULT_RELATED_STREAMS_QUERY)
|
34
|
-
related_streams_query.call(stream_name)
|
35
|
-
end
|
34
|
+
related_streams_query.call(stream_name) unless related_streams_query.equal?(DEFAULT_RELATED_STREAMS_QUERY)
|
36
35
|
end
|
37
36
|
end
|
38
37
|
end
|
@@ -19,18 +19,19 @@ module RubyEventStore
|
|
19
19
|
correlation_stream_name: correlation_stream_name,
|
20
20
|
causation_stream_name: causation_stream_name,
|
21
21
|
type_stream_name: type_stream_name,
|
22
|
-
parent_event_id: parent_event_id
|
23
|
-
}
|
22
|
+
parent_event_id: parent_event_id
|
23
|
+
}
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
28
|
+
|
28
29
|
attr_reader :event, :parent_event_id
|
29
30
|
|
30
31
|
def metadata
|
31
32
|
event.metadata.to_h.tap do |m|
|
32
33
|
m[:timestamp] = event.metadata.fetch(:timestamp).iso8601(TIMESTAMP_PRECISION)
|
33
|
-
m[:valid_at]
|
34
|
+
m[:valid_at] = event.metadata.fetch(:valid_at).iso8601(TIMESTAMP_PRECISION)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RubyEventStore
|
4
|
+
module Browser
|
5
|
+
class Router
|
6
|
+
NoMatch = Class.new(StandardError)
|
7
|
+
|
8
|
+
class Route
|
9
|
+
NAMED_SEGMENTS_PATTERN = %r{\/([^\/]*):([^:$\/]+)}.freeze
|
10
|
+
private_constant :NAMED_SEGMENTS_PATTERN
|
11
|
+
|
12
|
+
def initialize(request_method, pattern, &block)
|
13
|
+
@request_method = request_method
|
14
|
+
@pattern = pattern
|
15
|
+
@handler = block
|
16
|
+
end
|
17
|
+
|
18
|
+
def match(request)
|
19
|
+
return unless request.request_method.eql?(request_method)
|
20
|
+
|
21
|
+
match_data = regexp.match(File.join("/", request.path_info))
|
22
|
+
match_data.named_captures.transform_values { |v| Rack::Utils.unescape(v) } if match_data
|
23
|
+
end
|
24
|
+
|
25
|
+
def call(params, urls)
|
26
|
+
handler[params, urls]
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def regexp
|
32
|
+
/\A#{pattern.gsub(NAMED_SEGMENTS_PATTERN, '/\1(?<\2>[^$/]+)')}\Z/
|
33
|
+
end
|
34
|
+
|
35
|
+
attr_reader :request_method, :pattern, :handler
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(urls = Urls.initial)
|
39
|
+
@routes = Array.new
|
40
|
+
@urls = urls
|
41
|
+
end
|
42
|
+
|
43
|
+
def add_route(request_method, pattern, &block)
|
44
|
+
routes << Route.new(request_method, pattern, &block)
|
45
|
+
end
|
46
|
+
|
47
|
+
def handle(request)
|
48
|
+
routes.each do |route|
|
49
|
+
route_params = route.match(request)
|
50
|
+
return route.call(request.params.merge(route_params), urls.with_request(request)) if route_params
|
51
|
+
end
|
52
|
+
raise NoMatch
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
attr_reader :routes, :urls
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module RubyEventStore
|
2
|
+
module Browser
|
3
|
+
class Urls
|
4
|
+
def self.from_configuration(host, root_path, api_url = nil)
|
5
|
+
new(host, root_path, api_url)
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.initial
|
9
|
+
new(nil, nil, nil)
|
10
|
+
end
|
11
|
+
|
12
|
+
def with_request(request)
|
13
|
+
Urls.new(host || request.base_url, root_path || request.script_name, api_url)
|
14
|
+
end
|
15
|
+
|
16
|
+
attr_reader :app_url, :api_url, :host, :root_path
|
17
|
+
|
18
|
+
def initialize(host, root_path, api_url)
|
19
|
+
@host = host
|
20
|
+
@root_path = root_path
|
21
|
+
@app_url = [host, root_path].compact.reduce(:+)
|
22
|
+
@api_url = api_url || ("#{app_url}/api" if app_url)
|
23
|
+
end
|
24
|
+
|
25
|
+
def events_url
|
26
|
+
"#{api_url}/events"
|
27
|
+
end
|
28
|
+
|
29
|
+
def streams_url
|
30
|
+
"#{api_url}/streams"
|
31
|
+
end
|
32
|
+
|
33
|
+
def paginated_events_from_stream_url(id:, position: nil, direction: nil, count: nil)
|
34
|
+
stream_name = Rack::Utils.escape(id)
|
35
|
+
query_string =
|
36
|
+
URI.encode_www_form(
|
37
|
+
{ "page[position]" => position, "page[direction]" => direction, "page[count]" => count }.compact
|
38
|
+
)
|
39
|
+
|
40
|
+
if query_string.empty?
|
41
|
+
"#{api_url}/streams/#{stream_name}/relationships/events"
|
42
|
+
else
|
43
|
+
"#{api_url}/streams/#{stream_name}/relationships/events?#{query_string}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def browser_js_url
|
48
|
+
"#{app_url}/ruby_event_store_browser.js"
|
49
|
+
end
|
50
|
+
|
51
|
+
def browser_css_url
|
52
|
+
"#{app_url}/ruby_event_store_browser.css"
|
53
|
+
end
|
54
|
+
|
55
|
+
def bootstrap_js_url
|
56
|
+
"#{app_url}/bootstrap.js"
|
57
|
+
end
|
58
|
+
|
59
|
+
def ==(o)
|
60
|
+
self.class.eql?(o.class) && app_url.eql?(o.app_url) && api_url.eql?(o.api_url)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -8,8 +8,9 @@ module RubyEventStore
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
require_relative "browser/
|
11
|
+
require_relative "browser/get_event"
|
12
12
|
require_relative "browser/json_api_event"
|
13
13
|
require_relative "browser/get_events_from_stream"
|
14
14
|
require_relative "browser/get_stream"
|
15
|
-
require_relative "browser/
|
15
|
+
require_relative "browser/urls"
|
16
|
+
require_relative "browser/router"
|
data/public/bootstrap.js
ADDED
@@ -1,5 +1 @@
|
|
1
|
-
/*! tailwindcss
|
2
|
-
|
3
|
-
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{font-family:inherit;line-height:inherit}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgba(185,28,28,var(--tw-bg-opacity))}.border-collapse{border-collapse:collapse}.border-gray-400{--tw-border-opacity:1;border-color:rgba(156,163,175,var(--tw-border-opacity))}.border-red-700{--tw-border-opacity:1;border-color:rgba(185,28,28,var(--tw-border-opacity))}.rounded{border-radius:.25rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.items-center{align-items:center}.justify-center{justify-content:center}.flex-1{flex:1 1 0%}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-16{height:4rem}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.list-disc{list-style-type:disc}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mr-1{margin-right:.25rem}.ml-4{margin-left:1rem}.mt-8{margin-top:2rem}.min-h-screen{min-height:100vh}.disabled\:opacity-50:disabled{opacity:.5}.p-0{padding:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-24{padding-top:6rem;padding-bottom:6rem}.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.absolute{position:absolute}*{--tw-shadow:0 0 transparent;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.table-fixed{table-layout:fixed}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-gray-100{--tw-text-opacity:1;color:rgba(243,244,246,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgba(31,41,55,var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgba(185,28,28,var(--tw-text-opacity))}.uppercase{text-transform:uppercase}.no-underline{text-decoration:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.align-top{vertical-align:top}.align-bottom{vertical-align:bottom}.w-full{width:100%}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.lds-dual-ring{display:inline-block;width:80px;height:80px}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border-color:#fdd transparent;border-style:solid;border-width:6px;-webkit-animation:lds-dual-ring 1.2s linear infinite;animation:lds-dual-ring 1.2s linear infinite}@-webkit-keyframes lds-dual-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
4
|
-
|
5
|
-
/*# sourceMappingURL=ruby_event_store_browser.css.map */
|
1
|
+
/*! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.ml-4{margin-left:1rem}.mt-8{margin-top:2rem}.mr-1{margin-right:.25rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.h-16{height:4rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.flex-1{flex:1 1 0%}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.list-disc{list-style-type:disc}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded{border-radius:.25rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.border-red-700{--tw-border-opacity:1;border-color:rgb(185 28 28/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.p-0{padding:0}.px-8{padding-left:2rem;padding-right:2rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pt-2{padding-top:.5rem}.pl-8{padding-left:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-bottom{vertical-align:bottom}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-semibold{font-weight:600}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-red-700\/50:disabled{border-color:#b91c1c80}.disabled\:text-red-700\/50:disabled{color:#b91c1c80}
|
@@ -1,8 +1 @@
|
|
1
|
-
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"P4Zx":[function(require,module,exports) {
|
2
|
-
|
3
|
-
},{}],"asWa":[function(require,module,exports) {
|
4
|
-
!function(n){"use strict";function r(n,r,t){return t.a=n,t.f=r,t}function t(n){return r(2,n,function(r){return function(t){return n(r,t)}})}function e(n){return r(3,n,function(r){return function(t){return function(e){return n(r,t,e)}}})}function u(n){return r(4,n,function(r){return function(t){return function(e){return function(u){return n(r,t,e,u)}}}})}function a(n){return r(5,n,function(r){return function(t){return function(e){return function(u){return function(a){return n(r,t,e,u,a)}}}}})}function c(n){return r(6,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(c){return n(r,t,e,u,a,c)}}}}}})}function i(n){return r(7,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(c){return function(i){return n(r,t,e,u,a,c,i)}}}}}}})}function o(n){return r(9,n,function(r){return function(t){return function(e){return function(u){return function(a){return function(c){return function(i){return function(o){return function(f){return n(r,t,e,u,a,c,i,o,f)}}}}}}}}})}function f(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function s(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function b(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function v(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function d(n,r,t,e,u,a,c){return 6===n.a?n.f(r,t,e,u,a,c):n(r)(t)(e)(u)(a)(c)}function l(n,r,t,e,u,a,c,i){return 7===n.a?n.f(r,t,e,u,a,c,i):n(r)(t)(e)(u)(a)(c)(i)}var $=e(function(n,r,t){for(var e=[],u=0;n>u;u++)e[u]=t(r+u);return e}),p=t(function(n,r){for(var t=[],e=0;n>e&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,w(t,r)});function h(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function g(n,r){for(var t,e=[],u=m(n,r,0,e);u&&(t=e.pop());u=m(t.a,t.b,0,e));return u}function m(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&h(5),!1;if(t>100)return e.push(w(n,r)),!0;for(var u in 0>n.$&&(n=Tr(n),r=Tr(r)),n)if(!m(n[u],r[u],t+1,e))return!1;return!0}function x(n,r,t){if("object"!=typeof n)return n===r?0:r>n?-1:1;if(void 0===n.$)return(t=x(n.a,r.a))?t:(t=x(n.b,r.b))?t:x(n.c,r.c);for(;n.b&&r.b&&!(t=x(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}var y=t(function(n,r){var t=x(n,r);return 0>t?zr:t?Sr:Ur});function w(n,r){return{a:n,b:r}}function k(n,r,t){return{a:n,b:r,c:t}}function A(n){return n}function E(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t}function j(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=C(n.a,r);n=n.b;for(var e=t;n.b;n=n.b)e=e.b=C(n.a,r);return t}var _={$:0};function C(n,r){return{$:1,a:n,b:r}}var N=t(C);function R(n){for(var r=_,t=n.length;t--;)r=C(n[t],r);return r}var L=e(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(f(n,r.a,t.a));return R(e)}),O=t(function(n,r){return n+r}),T=t(function(n,r){var t=r%n;return 0===n?h(11):t>0&&0>n||0>t&&n>0?t+n:t}),U=Math.ceil,S=Math.floor,z=Math.round,D=Math.log,P=t(function(n,r){return n+r}),X=t(function(n,r){return r.split(n)}),M=t(function(n,r){return r.join(n)}),F=e(function(n,r,t){return t.slice(n,r)}),J=t(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(56320>u||u>57343||(e=r[--t]+e),!n(A(e)))return!1}return!0}),H=t(function(n,r){return r.indexOf(n)>-1}),I=t(function(n,r){return 0===r.indexOf(n)}),q=t(function(n,r){var t=n.length;if(1>t)return _;for(var e=0,u=[];(e=r.indexOf(n,e))>-1;)u.push(e),e+=t;return R(u)});function B(n){return n+""}function Y(n){return{$:2,b:n}}Y(function(n){return"number"!=typeof n?sn("an INT",n):n>-2147483647&&2147483647>n&&(0|n)===n?Fr(n):!isFinite(n)||n%1?sn("an INT",n):Fr(n)});var G=Y(function(n){return"boolean"==typeof n?Fr(n):sn("a BOOL",n)}),K=Y(function(n){return"number"==typeof n?Fr(n):sn("a FLOAT",n)}),Q=Y(function(n){return Fr(ln(n))}),W=Y(function(n){return"string"==typeof n?Fr(n):n instanceof String?Fr(n+""):sn("a STRING",n)}),V=t(function(n,r){return{$:6,d:n,b:r}});function Z(n,r){return{$:9,f:n,g:r}}var nn=t(function(n,r){return{$:10,b:r,h:n}}),rn=t(function(n,r){return Z(n,[r])}),tn=e(function(n,r,t){return Z(n,[r,t])}),en=t(function(n,r){try{return an(n,JSON.parse(r))}catch(n){return Dr(f(Pr,"This is not valid JSON! "+n.message,ln(r)))}}),un=t(function(n,r){return an(n,$n(r))});function an(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?Fr(n.c):sn("null",r);case 3:return on(r)?cn(n.b,r,R):sn("a LIST",r);case 4:return on(r)?cn(n.b,r,fn):sn("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return sn("an OBJECT with a field named `"+t+"`",r);var e=an(n.b,r[t]);return Ot(e)?e:Dr(f(Xr,t,e.a));case 7:var u=n.e;return on(r)?r.length>u?(e=an(n.b,r[u]),Ot(e)?e:Dr(f(Mr,u,e.a))):sn("a LONGER array. Need index "+u+" but only see "+r.length+" entries",r):sn("an ARRAY",r);case 8:if("object"!=typeof r||null===r||on(r))return sn("an OBJECT",r);var a=_;for(var c in r)if(r.hasOwnProperty(c)){if(e=an(n.b,r[c]),!Ot(e))return Dr(f(Xr,c,e.a));a=C(w(c,e.a),a)}return Fr(st(a));case 9:for(var i=n.f,o=n.g,s=0;o.length>s;s++){if(e=an(o[s],r),!Ot(e))return e;i=i(e.a)}return Fr(i);case 10:return e=an(n.b,r),Ot(e)?an(n.h(e.a),r):e;case 11:for(var b=_,v=n.g;v.b;v=v.b){if(e=an(v.a,r),Ot(e))return e;b=C(e.a,b)}return Dr(Jr(st(b)));case 1:return Dr(f(Pr,n.a,ln(r)));case 0:return Fr(n.a)}}function cn(n,r,t){for(var e=r.length,u=[],a=0;e>a;a++){var c=an(n,r[a]);if(!Ot(c))return Dr(f(Mr,a,c.a));u[a]=c.a}return Fr(t(u))}function on(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function fn(n){return f(Lt,n.length,function(r){return n[r]})}function sn(n,r){return Dr(f(Pr,"Expecting "+n,ln(r)))}function bn(n,r){if(n===r)return!0;if(n.$!==r.$)return!1;switch(n.$){case 0:case 1:return n.a===r.a;case 2:return n.b===r.b;case 5:return n.c===r.c;case 3:case 4:case 8:return bn(n.b,r.b);case 6:return n.d===r.d&&bn(n.b,r.b);case 7:return n.e===r.e&&bn(n.b,r.b);case 9:return n.f===r.f&&vn(n.g,r.g);case 10:return n.h===r.h&&bn(n.b,r.b);case 11:return vn(n.g,r.g)}}function vn(n,r){var t=n.length;if(t!==r.length)return!1;for(var e=0;t>e;e++)if(!bn(n[e],r[e]))return!1;return!0}var dn=t(function(n,r){return JSON.stringify($n(r),null,n)+""});function ln(n){return n}function $n(n){return n}function pn(n){return{$:0,a:n}}function hn(n){return{$:2,b:n,c:null}}ln(null);var gn=t(function(n,r){return{$:3,b:n,d:r}}),mn=0;function xn(n){var r={$:0,e:mn++,f:n,g:null,h:[]};return jn(r),r}function yn(n){return hn(function(r){r(pn(xn(n)))})}function wn(n,r){n.h.push(r),jn(n)}var kn=t(function(n,r){return hn(function(t){wn(n,r),t(pn(0))})}),An=!1,En=[];function jn(n){if(En.push(n),!An){for(An=!0;n=En.shift();)_n(n);An=!1}}function _n(n){for(;n.f;){var r=n.f.$;if(0===r||1===r){for(;n.g&&n.g.$!==r;)n.g=n.g.i;if(!n.g)return;n.f=n.g.b(n.f.a),n.g=n.g.i}else{if(2===r)return void(n.f.c=n.f.b(function(r){n.f=r,jn(n)}));if(5===r){if(0===n.h.length)return;n.f=n.f.b(n.h.shift())}else n.g={$:3===r?0:1,b:n.f.b,i:n.g},n.f=n.f.d}}}var Cn={};function Nn(n,r,t,e,u){return{b:n,c:r,d:t,e:e,f:u}}function Rn(n,r){var t={g:r,h:void 0},e=n.c,u=n.d,a=n.e,c=n.f;function i(n){return f(gn,i,{$:5,b:function(r){var i=r.a;return 0===r.$?s(u,t,i,n):a&&c?b(e,t,i.i,i.j,n):s(e,t,a?i.i:i.j,n)}})}return t.h=xn(f(gn,i,n.b))}var Ln=t(function(n,r){return hn(function(t){n.g(r),t(pn(0))})}),On=t(function(n,r){return f(kn,n.h,{$:0,a:r})});function Tn(n){return function(r){return{$:1,k:n,l:r}}}function Un(n){return{$:2,m:n}}var Sn,zn=t(function(n,r){return{$:3,n:n,o:r}}),Dn=[],Pn=!1;function Xn(n,r,t){if(Dn.push({p:n,q:r,r:t}),!Pn){Pn=!0;for(var e;e=Dn.shift();)Mn(e.p,e.q,e.r);Pn=!1}}function Mn(n,r,t){var e={};for(var u in Fn(!0,r,e,null),Fn(!1,t,e,null),n)wn(n[u],{$:"fx",a:e[u]||{i:_,j:_}})}function Fn(n,r,t,e){switch(r.$){case 1:var u=r.k,a=function(n,t,e){function u(n){for(var r=e;r;r=r.t)n=r.s(n);return n}return f(n?Cn[t].e:Cn[t].f,u,r.l)}(n,u,e);return void(t[u]=function(n,r,t){return t=t||{i:_,j:_},n?t.i=C(r,t.i):t.j=C(r,t.j),t}(n,a,t[u]));case 2:for(var c=r.m;c.b;c=c.b)Fn(n,c.a,t,e);return;case 3:return void Fn(n,r.o,t,{s:r.n,t:e})}}var Jn="undefined"!=typeof document?document:{};function Hn(n,r){n.appendChild(r)}function In(n){return{$:0,a:n}}var qn=t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var c=e.a;a+=c.b||0,u.push(c)}return a+=u.length,{$:1,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);t(function(n,r){return t(function(t,e){for(var u=[],a=0;e.b;e=e.b){var c=e.a;a+=c.b.b||0,u.push(c)}return a+=u.length,{$:2,c:r,d:Vn(t),e:u,f:n,b:a}})})(void 0);var Bn,Yn=t(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}}),Gn=t(function(n,r){return{$:"a0",n:n,o:r}}),Kn=t(function(n,r){return{$:"a1",n:n,o:r}}),Qn=t(function(n,r){return{$:"a2",n:n,o:r}}),Wn=t(function(n,r){return{$:"a3",n:n,o:r}});function Vn(n){for(var r={};n.b;n=n.b){var t=n.a,e=t.$,u=t.n,a=t.o;if("a2"!==e){var c=r[e]||(r[e]={});"a3"===e&&"class"===u?Zn(c,u,a):c[u]=a}else"className"===u?Zn(r,u,$n(a)):r[u]=$n(a)}return r}function Zn(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function nr(n,r){var t=n.$;if(5===t)return nr(n.k||(n.k=n.m()),r);if(0===t)return Jn.createTextNode(n.a);if(4===t){for(var e=n.k,u=n.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:r};return(c=nr(e,a)).elm_event_node_ref=a,c}if(3===t)return rr(c=n.h(n.g),r,n.d),c;var c=n.f?Jn.createElementNS(n.f,n.c):Jn.createElement(n.c);Sn&&"a"==n.c&&c.addEventListener("click",Sn(c)),rr(c,r,n.d);for(var i=n.e,o=0;i.length>o;o++)Hn(c,nr(1===t?i[o]:i[o].b,r));return c}function rr(n,r,t){for(var e in t){var u=t[e];"a1"===e?tr(n,u):"a0"===e?ar(n,r,u):"a3"===e?er(n,u):"a4"===e?ur(n,u):("value"!==e&&"checked"!==e||n[e]!==u)&&(n[e]=u)}}function tr(n,r){var t=n.style;for(var e in r)t[e]=r[e]}function er(n,r){for(var t in r){var e=r[t];void 0!==e?n.setAttribute(t,e):n.removeAttribute(t)}}function ur(n,r){for(var t in r){var e=r[t],u=e.f,a=e.o;void 0!==a?n.setAttributeNS(u,t,a):n.removeAttributeNS(u,t)}}function ar(n,r,t){var e=n.elmFs||(n.elmFs={});for(var u in t){var a=t[u],c=e[u];if(a){if(c){if(c.q.$===a.$){c.q=a;continue}n.removeEventListener(u,c)}c=cr(r,a),n.addEventListener(u,c,Bn&&{passive:2>Dt(a)}),e[u]=c}else n.removeEventListener(u,c),e[u]=void 0}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){Bn=!0}}))}catch(n){}function cr(n,r){function t(r){var e=t.q,u=an(e.a,r);if(Ot(u)){for(var a,c=Dt(e),i=u.a,o=c?3>c?i.a:i.B:i,f=1==c?i.b:3==c&&i.aL,s=(f&&r.stopPropagation(),(2==c?i.b:3==c&&i.ay)&&r.preventDefault(),n);a=s.j;){if("function"==typeof a)o=a(o);else for(var b=a.length;b--;)o=a[b](o);s=s.p}s(o,f)}}return t.q=r,t}function ir(n,r){return n.$==r.$&&bn(n.a,r.a)}function or(n,r,t,e){var u={$:r,r:t,s:e,t:void 0,u:void 0};return n.push(u),u}function fr(n,r,t,e){if(n!==r){var u=n.$,a=r.$;if(u!==a){if(1!==u||2!==a)return void or(t,0,e,r);r=function(n){for(var r=n.e,t=r.length,e=[],u=0;t>u;u++)e[u]=r[u].b;return{$:1,c:n.c,d:n.d,e:e,f:n.f,b:n.b}}(r),a=1}switch(a){case 5:for(var c=n.l,i=r.l,o=c.length,f=o===i.length;f&&o--;)f=c[o]===i[o];if(f)return void(r.k=n.k);r.k=r.m();var s=[];return fr(n.k,r.k,s,0),void(s.length>0&&or(t,1,e,s));case 4:for(var b=n.j,v=r.j,d=!1,l=n.k;4===l.$;)d=!0,"object"!=typeof b?b=[b,l.j]:b.push(l.j),l=l.k;for(var $=r.k;4===$.$;)d=!0,"object"!=typeof v?v=[v,$.j]:v.push($.j),$=$.k;return d&&b.length!==v.length?void or(t,0,e,r):((d?function(n,r){for(var t=0;n.length>t;t++)if(n[t]!==r[t])return!1;return!0}(b,v):b===v)||or(t,2,e,v),void fr(l,$,t,e+1));case 0:return void(n.a!==r.a&&or(t,3,e,r.a));case 1:return void sr(n,r,t,e,vr);case 2:return void sr(n,r,t,e,dr);case 3:if(n.h!==r.h)return void or(t,0,e,r);var p=br(n.d,r.d);p&&or(t,4,e,p);var h=r.i(n.g,r.g);return void(h&&or(t,5,e,h))}}}function sr(n,r,t,e,u){if(n.c===r.c&&n.f===r.f){var a=br(n.d,r.d);a&&or(t,4,e,a),u(n,r,t,e)}else or(t,0,e,r)}function br(n,r,t){var e;for(var u in n)if("a1"!==u&&"a0"!==u&&"a3"!==u&&"a4"!==u)if(u in r){var a=n[u],c=r[u];a===c&&"value"!==u&&"checked"!==u||"a0"===t&&ir(a,c)||((e=e||{})[u]=c)}else(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[u].f,o:void 0}:"string"==typeof n[u]?"":null;else{var i=br(n[u],r[u]||{},u);i&&((e=e||{})[u]=i)}for(var o in r)o in n||((e=e||{})[o]=r[o]);return e}function vr(n,r,t,e){var u=n.e,a=r.e,c=u.length,i=a.length;c>i?or(t,6,e,{v:i,i:c-i}):i>c&&or(t,7,e,{v:c,e:a});for(var o=i>c?c:i,f=0;o>f;f++){var s=u[f];fr(s,a[f],t,++e),e+=s.b||0}}function dr(n,r,t,e){for(var u=[],a={},c=[],i=n.e,o=r.e,f=i.length,s=o.length,b=0,v=0,d=e;f>b&&s>v;){var l=(j=i[b]).a,$=(_=o[v]).a,p=j.b,h=_.b,g=void 0,m=void 0;if(l!==$){var x=i[b+1],y=o[v+1];if(x){var w=x.a,k=x.b;m=$===w}if(y){var A=y.a,E=y.b;g=l===A}if(g&&m)fr(p,E,u,++d),$r(a,u,l,h,v,c),d+=p.b||0,pr(a,u,l,k,++d),d+=k.b||0,b+=2,v+=2;else if(g)d++,$r(a,u,$,h,v,c),fr(p,E,u,d),d+=p.b||0,b+=1,v+=2;else if(m)pr(a,u,l,p,++d),d+=p.b||0,fr(k,h,u,++d),d+=k.b||0,b+=2,v+=1;else{if(!x||w!==A)break;pr(a,u,l,p,++d),$r(a,u,$,h,v,c),d+=p.b||0,fr(k,E,u,++d),d+=k.b||0,b+=2,v+=2}}else fr(p,h,u,++d),d+=p.b||0,b++,v++}for(;f>b;){var j;pr(a,u,(j=i[b]).a,p=j.b,++d),d+=p.b||0,b++}for(;s>v;){var _,C=C||[];$r(a,u,(_=o[v]).a,_.b,void 0,C),v++}(u.length>0||c.length>0||C)&&or(t,8,e,{w:u,x:c,y:C})}var lr="_elmW6BL";function $r(n,r,t,e,u,a){var c=n[t];if(!c)return a.push({r:u,A:c={c:0,z:e,r:u,s:void 0}}),void(n[t]=c);if(1===c.c){a.push({r:u,A:c}),c.c=2;var i=[];return fr(c.z,e,i,c.r),c.r=u,void(c.s.s={w:i,A:c})}$r(n,r,t+lr,e,u,a)}function pr(n,r,t,e,u){var a=n[t];if(a){if(0===a.c){a.c=2;var c=[];return fr(e,a.z,c,u),void or(r,9,u,{w:c,A:a})}pr(n,r,t+lr,e,u)}else{var i=or(r,9,u,void 0);n[t]={c:1,z:e,r:u,s:i}}}function hr(n,r,t,e){return 0===t.length?n:(function n(r,t,e,u){!function r(t,e,u,a,c,i,o){for(var f=u[a],s=f.r;s===c;){var b=f.$;if(1===b)n(t,e.k,f.s,o);else if(8===b)f.t=t,f.u=o,(v=f.s.w).length>0&&r(t,e,v,0,c,i,o);else if(9===b){f.t=t,f.u=o;var v,d=f.s;d&&(d.A.s=t,(v=d.w).length>0&&r(t,e,v,0,c,i,o))}else f.t=t,f.u=o;if(!(f=u[++a])||(s=f.r)>i)return a}var l=e.$;if(4===l){for(var $=e.k;4===$.$;)$=$.k;return r(t,$,u,a,c+1,i,t.elm_event_node_ref)}for(var p=e.e,h=t.childNodes,g=0;p.length>g;g++){var m=1===l?p[g]:p[g].b,x=++c+(m.b||0);if(!(c>s||s>x||(f=u[a=r(h[g],m,u,a,c,x,o)])&&(s=f.r)<=i))return a;c=x}return a}(r,t,e,0,0,t.b,u)}(n,r,t,e),gr(n,t))}function gr(n,r){for(var t=0;r.length>t;t++){var e=r[t],u=e.t,a=mr(u,e);u===n&&(n=a)}return n}function mr(n,r){switch(r.$){case 0:return function(n){var t=n.parentNode,e=nr(r.s,r.u);return e.elm_event_node_ref||(e.elm_event_node_ref=n.elm_event_node_ref),t&&e!==n&&t.replaceChild(e,n),e}(n);case 4:return rr(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return gr(n,r.s);case 2:return n.elm_event_node_ref?n.elm_event_node_ref.j=r.s:n.elm_event_node_ref={j:r.s,p:r.u},n;case 6:for(var t=r.s,e=0;t.i>e;e++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var u=(t=r.s).e,a=n.childNodes[e=t.v];u.length>e;e++)n.insertBefore(nr(u[e],r.u),a);return n;case 9:if(!(t=r.s))return n.parentNode.removeChild(n),n;var c=t.A;return void 0!==c.r&&n.parentNode.removeChild(n),c.s=gr(n,t.w),n;case 8:return function(n,r){var t=r.s,e=function(n,r){if(n){for(var t=Jn.createDocumentFragment(),e=0;n.length>e;e++){var u=n[e].A;Hn(t,2===u.c?u.s:nr(u.z,r.u))}return t}}(t.y,r);n=gr(n,t.w);for(var u=t.x,a=0;u.length>a;a++){var c=u[a],i=c.A,o=2===i.c?i.s:nr(i.z,r.u);n.insertBefore(o,n.childNodes[c.r])}return e&&Hn(n,e),n}(n,r);case 5:return r.s(n);default:h(10)}}var xr=u(function(n,r,t,e){return function(n,r,t,e,u,a){var c=f(un,n,ln(r?r.flags:void 0));Ot(c)||h(2);var i={},o=t(c.a),s=o.a,b=a(d,s),v=function(n,r){var t;for(var e in Cn){var u=Cn[e];u.a&&((t=t||{})[e]=u.a(e,r)),n[e]=Rn(u,r)}return t}(i,d);function d(n,r){var t=f(e,n,s);b(s=t.a,r),Xn(i,t.b,u(s))}return Xn(i,o.b,u(s)),v?{ports:v}:{}}(r,e,n.ci,n.cX,n.cM,function(r,t){var e=n.aD&&n.aD(r),u=n.cY,a=Jn.title,c=Jn.body,i=function n(r){if(3===r.nodeType)return In(r.textContent);if(1!==r.nodeType)return In("");for(var t=_,e=r.attributes,u=e.length;u--;){var a=e[u];t=C(f(Wn,a.name,a.value),t)}var c=r.tagName.toLowerCase(),i=_,o=r.childNodes;for(u=o.length;u--;)i=C(n(o[u]),i);return s(qn,c,t,i)}(c);return function(n,r){r(n);var t=0;function e(){t=1===t?0:(yr(e),r(n),1)}return function(u,a){n=u,a?(r(n),2===t&&(t=1)):(0===t&&yr(e),t=2)}}(t,function(n){Sn=e;var t=u(n),o=qn("body")(_)(t.aU),f=function(n,r){var t=[];return fr(n,r,t,0),t}(i,o);c=hr(c,i,f,r),i=o,Sn=0,a!==t.bN&&(Jn.title=a=t.bN)})})}),yr=("undefined"!=typeof cancelAnimationFrame&&cancelAnimationFrame,"undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)});function wr(){return Zt(Jn.location.href).a||h(1)}var kr=t(function(n,r){return f(he,ne,hn(function(){history.pushState({},"",r),n()}))}),Ar=("undefined"!=typeof document&&document,"undefined"!=typeof window?window:{addEventListener:function(){},removeEventListener:function(){}}),Er=a(function(n,r,t,e,u){for(var a=n.length,c=u.length>=r+a,i=0;c&&a>i;){var o=u.charCodeAt(r);c=n[i++]===u[r++]&&(10===o?(t++,e=1):(e++,55296==(63488&o)?n[i++]===u[r++]:1))}return k(c?r:-1,t,e)}),jr=e(function(n,r,t){return t.length>r?55296==(63488&t.charCodeAt(r))?n(A(t.substr(r,2)))?r+2:-1:n(A(t[r]))?"\n"===t[r]?-2:r+1:-1:-1}),_r=e(function(n,r,t){return hn(function(e){function u(n){e(r(t.am.a(n)))}var a=new XMLHttpRequest;a.addEventListener("error",function(){u(Ta)}),a.addEventListener("timeout",function(){u(za)}),a.addEventListener("load",function(){u(function(n,r){return f(r.status>=200&&300>r.status?Oa:Ra,function(n){return{aP:n.responseURL,cK:n.status,cL:n.statusText,a6:Cr(n.getAllResponseHeaders())}}(r),n(r.response))}(t.am.b,a))}),Da(t.bO)&&function(n,r,t){r.upload.addEventListener("progress",function(e){r.c||xn(f(Pa,n,w(t,Sa({cJ:e.loaded,bG:e.total}))))}),r.addEventListener("progress",function(e){r.c||xn(f(Pa,n,w(t,Ua({cF:e.loaded,bG:e.lengthComputable?Ir(e.total):qr}))))})}(n,a,t.bO.a);try{a.open(t.cm,t.aP,!0)}catch(n){return u(La(t.aP))}return function(n,r){for(var t=r.a6;t.b;t=t.b)n.setRequestHeader(t.a.a,t.a.b);n.timeout=r.cP.a||0,n.responseType=r.am.d,n.withCredentials=r.bX}(a,t),t.aU.a&&a.setRequestHeader("Content-Type",t.aU.a),a.send(t.aU.b),function(){a.c=!0,a.abort()}})});function Cr(n){if(!n)return Be;for(var r=Be,t=n.split("\r\n"),e=t.length;e--;){var u=t[e],a=u.indexOf(": ");if(a>0){var c=u.substring(0,a),i=u.substring(a+2);r=s(Ie,c,function(n){return Ir(Da(n)?i+", "+n.a:i)},r)}}return r}var Nr=e(function(n,r,t){return{$:0,d:n,b:r,a:t}}),Rr=t(function(n,r){return{$:0,d:r.d,b:r.b,a:function(t){return n(r.a(t))}}}),Lr=N,Or=e(function(n,r,t){for(;;){if(-2===t.$)return r;var e=t.d,u=n,a=s(n,t.b,t.c,s(Or,n,r,t.e));n=u,r=a,t=e}}),Tr=function(n){return s(Or,e(function(n,r,t){return f(Lr,w(n,r),t)}),_,n)},Ur=1,Sr=2,zr=0,Dr=function(n){return{$:1,a:n}},Pr=t(function(n,r){return{$:3,a:n,b:r}}),Xr=t(function(n,r){return{$:0,a:n,b:r}}),Mr=t(function(n,r){return{$:1,a:n,b:r}}),Fr=function(n){return{$:0,a:n}},Jr=function(n){return{$:2,a:n}},Hr=O,Ir=function(n){return{$:0,a:n}},qr={$:1},Br=J,Yr=dn,Gr=B,Kr=t(function(n,r){return f(M,n,function(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}(r))}),Qr=t(function(n,r){return R(f(X,n,r))}),Wr=function(n){return f(Kr,"\n ",f(Qr,"\n",n))},Vr=e(function(n,r,t){for(;;){if(!t.b)return r;var e=t.b,u=n,a=f(n,t.a,r);n=u,r=a,t=e}}),Zr=function(n){return s(Vr,t(function(n,r){return r+1}),0,n)},nt=L,rt=e(function(n,r,t){for(;;){if(x(n,r)>=1)return t;var e=n,u=r-1,a=f(Lr,r,t);n=e,r=u,t=a}}),tt=t(function(n,r){return s(rt,n,r,_)}),et=t(function(n,r){return s(nt,n,f(tt,0,Zr(r)-1),r)}),ut=function(n){var r=n.charCodeAt(0);return 55296>r||r>56319?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},at=function(n){var r=ut(n);return r>=97&&122>=r},ct=function(n){var r=ut(n);return 90>=r&&r>=65},it=function(n){return at(n)||ct(n)},ot=function(n){var r=ut(n);return 57>=r&&r>=48},ft=function(n){return at(n)||ct(n)||ot(n)},st=function(n){return s(Vr,Lr,_,n)},bt=t(function(n,r){return"\n\n("+Gr(n+1)+") "+Wr(vt(r))}),vt=function(n){return f(dt,n,_)},dt=t(function(n,r){n:for(;;)switch(n.$){case 0:var t=n.a,e=n.b,u=function(){var n,r,e=(r=(n=t).charCodeAt(0),isNaN(r)?qr:Ir(55296>r||r>56319?w(A(n[0]),n.slice(1)):w(A(n[0]+n[1]),n.slice(2))));if(1===e.$)return!1;var u=e.a,a=u.b;return it(u.a)&&f(Br,ft,a)}();n=e,r=f(Lr,u?"."+t:"['"+t+"']",r);continue n;case 1:e=n.b;var a="["+Gr(n.a)+"]";n=e,r=f(Lr,a,r);continue n;case 2:var c=n.a;if(c.b){if(c.b.b){var i=(r.b?"The Json.Decode.oneOf at json"+f(Kr,"",st(r)):"Json.Decode.oneOf")+" failed in the following "+Gr(Zr(c))+" ways:";return f(Kr,"\n\n",f(Lr,i,f(et,bt,c)))}n=e=c.a,r=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+f(Kr,"",st(r)):"!");default:var o=n.a,s=n.b;return(i=r.b?"Problem with the value at json"+f(Kr,"",st(r))+":\n\n ":"Problem with the given value:\n\n")+Wr(f(Yr,4,s))+"\n\n"+o}}),lt=u(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),$t=[],pt=U,ht=t(function(n,r){return D(r)/D(n)}),gt=pt(f(ht,2,32)),mt=b(lt,0,gt,$t,$t),xt=$,yt=t(function(n,r){return n(r)}),wt=t(function(n,r){return r(n)}),kt=S,At=function(n){return n.length},Et=t(function(n,r){return x(n,r)>0?n:r}),jt=p,_t=t(function(n,r){for(;;){var t=f(jt,32,n),e=t.b,u=f(Lr,{$:0,a:t.a},r);if(!e.b)return st(u);n=e,r=u}}),Ct=t(function(n,r){for(;;){var t=pt(r/32);if(1===t)return f(jt,32,n).a;n=f(_t,n,_),r=t}}),Nt=t(function(n,r){if(r.f){var t=32*r.f,e=kt(f(ht,32,t-1)),u=n?st(r.i):r.i,a=f(Ct,u,r.f);return b(lt,At(r.h)+t,f(Et,5,e*gt),a,r.h)}return b(lt,At(r.h),gt,$t,r.h)}),Rt=a(function(n,r,t,e,u){for(;;){if(0>r)return f(Nt,!1,{i:e,f:t/32|0,h:u});var a={$:1,a:s(xt,32,r,n)};n=n,r-=32,t=t,e=f(Lr,a,e),u=u}}),Lt=t(function(n,r){if(n>0){var t=n%32;return v(Rt,r,n-t-32,n,_,s(xt,t,n-t,r))}return mt}),Ot=function(n){return!n.$},Tt=nn,Ut=rn,St=tn,zt=function(n){return{$:0,a:n}},Dt=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Pt=function(n){return n},Xt=c(function(n,r,t,e,u,a){return{a3:a,a9:r,ah:e,bp:t,bt:n,bu:u}}),Mt=H,Ft=function(n){return n.length},Jt=F,Ht=t(function(n,r){return 1>n?r:s(Jt,n,Ft(r),r)}),It=q,qt=function(n){return""===n},Bt=t(function(n,r){return 1>n?"":s(Jt,0,n,r)}),Yt=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;n.length>u;++u){var a=n.charCodeAt(u);if(48>a||a>57)return qr;r=10*r+a-48}return u==e?qr:Ir(45==t?-r:r)},Gt=a(function(n,r,t,e,u){if(qt(u)||f(Mt,"@",u))return qr;var a=f(It,":",u);if(a.b){if(a.b.b)return qr;var c=a.a,i=Yt(f(Ht,c+1,u));if(1===i.$)return qr;var o=i;return Ir(d(Xt,n,f(Bt,c,u),o,r,t,e))}return Ir(d(Xt,n,u,qr,r,t,e))}),Kt=u(function(n,r,t,e){if(qt(e))return qr;var u=f(It,"/",e);if(u.b){var a=u.a;return v(Gt,n,f(Ht,a,e),r,t,f(Bt,a,e))}return v(Gt,n,"/",r,t,e)}),Qt=e(function(n,r,t){if(qt(t))return qr;var e=f(It,"?",t);if(e.b){var u=e.a;return b(Kt,n,Ir(f(Ht,u+1,t)),r,f(Bt,u,t))}return b(Kt,n,qr,r,t)}),Wt=t(function(n,r){if(qt(r))return qr;var t=f(It,"#",r);if(t.b){var e=t.a;return s(Qt,n,Ir(f(Ht,e+1,r)),f(Bt,e,r))}return s(Qt,n,qr,r)}),Vt=I,Zt=function(n){return f(Vt,"http://",n)?f(Wt,0,f(Ht,7,n)):f(Vt,"https://",n)?f(Wt,1,f(Ht,8,n)):qr},ne=function(n){for(;;)n=n},re=pn,te=re(0),ee=u(function(n,r,t,e){if(e.b){var u=e.a,a=e.b;if(a.b){var c=a.a,i=a.b;if(i.b){var o=i.a,v=i.b;if(v.b){var d=v.b;return f(n,u,f(n,c,f(n,o,f(n,v.a,t>500?s(Vr,n,r,st(d)):b(ee,n,r,t+1,d)))))}return f(n,u,f(n,c,f(n,o,r)))}return f(n,u,f(n,c,r))}return f(n,u,r)}return r}),ue=e(function(n,r,t){return b(ee,n,r,0,t)}),ae=t(function(n,r){return s(ue,t(function(r,t){return f(Lr,n(r),t)}),_,r)}),ce=gn,ie=t(function(n,r){return f(ce,function(r){return re(n(r))},r)}),oe=e(function(n,r,t){return f(ce,function(r){return f(ce,function(t){return re(f(n,r,t))},t)},r)}),fe=function(n){return s(ue,oe(Lr),re(_),n)},se=Ln,be=t(function(n,r){var t=r;return yn(f(ce,se(n),t))});Cn.Task=Nn(te,e(function(n,r){return f(ie,function(){return 0},fe(f(ae,be(n),r)))}),e(function(){return re(0)}),t(function(n,r){return f(ie,n,r)}));var ve,de,le,$e,pe=Tn("Task"),he=t(function(n,r){return pe(f(ie,n,r))}),ge={$:0},me=e(function(n,r,t){return{aR:r,az:t,aC:n}}),xe=u(function(n,r,t,e){return 1===r.$?qr:1===t.$?qr:1===e.$?qr:Ir(s(n,r.a,t.a,e.a))}),ye={L:""},we=function(n){return{$:3,a:n}},ke=function(n){return{$:4,a:n}},Ae=function(n){return{$:1,a:n}},Ee=function(n){return{$:2,a:n}},je=a(function(n,r,t,e,u){return{E:e,F:t,D:r,z:u,H:n}}),_e=function(n){return n.b&&(""!==n.a||n.b.b)?f(Lr,n.a,_e(n.b)):_},Ce=t(function(n,r){return Ir(1===r.$?R([n]):f(Lr,n,r.a))}),Ne=function(n){try{return Ir(decodeURIComponent(n))}catch(n){return qr}},Re=y,Le=t(function(n,r){n:for(;;){if(-2===r.$)return qr;var t=r.c,e=r.d,u=r.e;switch(f(Re,n,r.b)){case 0:n=n,r=e;continue n;case 1:return Ir(t);default:n=n,r=u;continue n}}}),Oe=a(function(n,r,t,e,u){return{$:-1,a:n,b:r,c:t,d:e,e:u}}),Te={$:-2},Ue=a(function(n,r,t,e,u){if(-1!==u.$||u.a){if(-1!==e.$||e.a||-1!==e.d.$||e.d.a)return v(Oe,n,r,t,e,u);var a=e.d;return c=e.e,v(Oe,0,e.b,e.c,v(Oe,1,a.b,a.c,a.d,a.e),v(Oe,1,r,t,c,u))}var c,i=u.b,o=u.c,f=u.d,s=u.e;return-1!==e.$||e.a?v(Oe,n,i,o,v(Oe,0,r,t,e,f),s):v(Oe,0,r,t,v(Oe,1,e.b,e.c,e.d,c=e.e),v(Oe,1,i,o,f,s))}),Se=e(function(n,r,t){if(-2===t.$)return v(Oe,0,n,r,Te,Te);var e=t.a,u=t.b,a=t.c,c=t.d,i=t.e;switch(f(Re,n,u)){case 0:return v(Ue,e,u,a,s(Se,n,r,c),i);case 1:return v(Oe,e,u,r,c,i);default:return v(Ue,e,u,a,c,s(Se,n,r,i))}}),ze=e(function(n,r,t){var e=s(Se,n,r,t);return-1!==e.$||e.a?e:v(Oe,1,e.b,e.c,e.d,e.e)}),De=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.e.d.$||n.e.d.a){var r=n.d,t=n.e;return c=t.b,i=t.c,e=t.d,s=t.e,v(Oe,1,n.b,n.c,v(Oe,0,r.b,r.c,r.d,r.e),v(Oe,0,c,i,e,s))}var e,u=n.d,a=n.e,c=a.b,i=a.c,o=(e=a.d).d,f=e.e,s=a.e;return v(Oe,0,e.b,e.c,v(Oe,1,n.b,n.c,v(Oe,0,u.b,u.c,u.d,u.e),o),v(Oe,1,c,i,f,s))}return n},Pe=function(n){if(-1===n.$&&-1===n.d.$&&-1===n.e.$){if(-1!==n.d.d.$||n.d.d.a){var r=n.d,t=n.e;return f=t.b,s=t.c,b=t.d,d=t.e,v(Oe,1,e=n.b,u=n.c,v(Oe,0,r.b,r.c,r.d,i=r.e),v(Oe,0,f,s,b,d))}var e=n.b,u=n.c,a=n.d,c=a.d,i=a.e,o=n.e,f=o.b,s=o.c,b=o.d,d=o.e;return v(Oe,0,a.b,a.c,v(Oe,1,c.b,c.c,c.d,c.e),v(Oe,1,e,u,i,v(Oe,0,f,s,b,d)))}return n},Xe=i(function(n,r,t,e,u,a,c){if(-1!==a.$||a.a){n:for(;;){if(-1===c.$&&1===c.a){if(-1===c.d.$){if(1===c.d.a)return Pe(r);break n}return Pe(r)}break n}return r}return v(Oe,t,a.b,a.c,a.d,v(Oe,0,e,u,a.e,c))}),Me=function(n){if(-1===n.$&&-1===n.d.$){var r=n.a,t=n.b,e=n.c,u=n.d,a=u.d,c=n.e;if(1===u.a){if(-1!==a.$||a.a){var i=De(n);if(-1===i.$){var o=i.e;return v(Ue,i.a,i.b,i.c,Me(i.d),o)}return Te}return v(Oe,r,t,e,Me(u),c)}return v(Oe,r,t,e,Me(u),c)}return Te},Fe=t(function(n,r){if(-2===r.$)return Te;var t=r.a,e=r.b,u=r.c,a=r.d,c=r.e;if(0>x(n,e)){if(-1===a.$&&1===a.a){var i=a.d;if(-1!==i.$||i.a){var o=De(r);if(-1===o.$){var s=o.e;return v(Ue,o.a,o.b,o.c,f(Fe,n,o.d),s)}return Te}return v(Oe,t,e,u,f(Fe,n,a),c)}return v(Oe,t,e,u,f(Fe,n,a),c)}return f(Je,n,l(Xe,n,r,t,e,u,a,c))}),Je=t(function(n,r){if(-1===r.$){var t=r.a,e=r.b,u=r.c,a=r.d,c=r.e;if(g(n,e)){var i=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(c);return-1===i.$?v(Ue,t,i.b,i.c,a,Me(c)):Te}return v(Ue,t,e,u,a,f(Fe,n,c))}return Te}),He=t(function(n,r){var t=f(Fe,n,r);return-1!==t.$||t.a?t:v(Oe,1,t.b,t.c,t.d,t.e)}),Ie=e(function(n,r,t){var e=r(f(Le,n,t));return e.$?f(He,n,t):s(ze,n,e.a,t)}),qe=t(function(n,r){var t=f(Qr,"=",n);if(t.b&&t.b.b&&!t.b.b.b){var e=t.b.a,u=Ne(t.a);if(1===u.$)return r;var a=u.a,c=Ne(e);return 1===c.$?r:s(Ie,a,Ce(c.a),r)}return r}),Be=Te,Ye=t(function(n,r){var t;return function(n){n:for(;;){if(n.b){var r=n.a,t=r.D;if(t.b){if(""!==t.a||t.b.b){n=n.b;continue n}return Ir(r.z)}return Ir(r.z)}return qr}}(n(v(je,_,function(){var n=f(Qr,"/",r.ah);return _e(n.b&&""===n.a?n.b:n)}(),1===(t=r.bu).$?Be:s(ue,qe,Be,f(Qr,"&",t.a)),r.a3,Pt)))}),Ge=function(n){return{$:0,a:n}},Ke=function(n){return{$:1,a:n}},Qe=t(function(n,r){return v(je,r.H,r.D,r.F,r.E,n(r.z))}),We=t(function(n,r){var t=r;return function(r){var e=r.H,u=r.D,a=r.F,c=r.E;return f(ae,Qe(r.z),t(v(je,e,u,a,c,n)))}}),Ve=t(function(n,r){return r.b?s(ue,Lr,r,n):n}),Ze=t(function(n,r){return s(ue,Ve,_,f(ae,n,r))}),nu=function(n){return function(r){var t=r.H,e=r.D,u=r.F,a=r.E,c=r.z;if(e.b){var i=e.a,o=e.b;return g(i,n)?R([v(je,f(Lr,i,t),o,u,a,c)]):_}return _}},ru=t(function(n,r){var t=n,e=r;return function(n){return f(Ze,e,t(n))}}),tu=f(t(function(n,r){return function(n){var t=n.H,e=n.D,u=n.F,a=n.E,c=n.z;if(e.b){var i=e.a,o=e.b,s=r(i);if(s.$)return _;var b=s.a;return R([v(je,f(Lr,i,t),o,u,a,c(b))])}return _}}),"STRING",Ir),eu=function(n){return R([n])},uu=(ve=R([f(We,Ge("all"),eu),f(We,Ge,f(ru,nu("streams"),tu)),f(We,Ke,f(ru,nu("events"),tu))]),function(n){return f(Ze,function(r){return r(n)},ve)}),au=t(function(n,r){return E(r,{ah:f(Ht,Ft(n.ah),r.ah)})}),cu=t(function(n,r){return f(Ye,uu,f(au,n,r))}),iu=function(n){return{$:2,a:n}},ou=o(function(n,r,t,e,u,a,c,i,o){return{b_:c,b3:a,b4:t,b8:r,b9:n,cC:o,cD:e,cE:u,cW:i}}),fu=function(n){return function(n){switch(n.$){case 0:return"expecting '"+n.a+"'";case 1:return"expecting int";case 2:return"expecting hex";case 3:return"expecting octal";case 4:return"expecting binary";case 5:return"expecting float";case 6:return"expecting number";case 7:return"expecting variable";case 8:return"expecting symbol '"+n.a+"'";case 9:return"expecting keyword '"+n.a+"'";case 10:return"expecting end";case 11:return"unexpected char";case 12:return"problem "+n.a;default:return"bad repeat"}}(n.br)+" at row "+Gr(n.bA)+", col "+Gr(n.aX)},su=t(function(n,r){if(r.b){var e=r.b;return f(Lr,r.a,s(ue,t(function(r,t){return f(Lr,n,f(Lr,r,t))}),_,e))}return _}),bu=function(n){return{$:1,a:n}},vu=W,du=t(function(n,r){return{$:1,a:n,b:r}}),lu=e(function(n,r,t){return{$:0,a:n,b:r,c:t}}),$u=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(du,e.a,e.b);var u=e.a,a=e.c,c=n(e.b)(a);if(1===c.$){var i=c.a;return f(du,u||i,c.b)}return i=c.a,s(lu,u||i,c.b,c.c)}}),pu=t(function(n,r){return{$:1,a:n,b:r}}),hu=u(function(n,r,t,e){return{aX:r,b2:e,br:t,bA:n}}),gu={$:0},mu=t(function(n,r){return f(pu,gu,b(hu,n.bA,n.aX,r,n.c))}),xu=(de={$:10},function(n){return g(Ft(n.a),n.b)?s(lu,!1,0,n):f(du,!1,f(mu,n,de))}),yu=jr,wu=a(function(n,r,t,e,u){for(;;){var a=s(yu,n,r,u.a);if(g(a,-1))return s(lu,0>x(u.b,r),0,{aX:e,c:u.c,d:u.d,b:r,bA:t,a:u.a});g(a,-2)?(n=n,r+=1,t+=1,e=1,u=u):(n=n,r=a,t=t,e+=1,u=u)}}),ku=t(function(n){return n}),Au=t(function(n,r){var t=r;return function(r){var e=t(r);if(1===e.$)return f(du,e.a,e.b);var u=e.b,a=e.c;return s(lu,e.a,f(n,s(Jt,r.b,a.b,r.a),u),a)}}),Eu=function(n){return f(Au,ku,n)},ju=function(n){return r={$:12,a:n},function(n){return f(du,!1,f(mu,n,r))};var r},_u=z,Cu=function(n){return function(r){return s(lu,!1,n,r)}},Nu=f($u,function(n){if(Ft(n)>9)return ju("Expected at most 9 digits, but got "+Gr(Ft(n)));var r=function(n){if(0===n.length||/[\sxbo]/.test(n))return qr;var r=+n;return r==r?Ir(r):qr}("0."+n);return r.$?ju('Invalid float: "'+n+'"'):Cu(_u(1e3*r.a))},Eu(($e=ot,function(n){return v(wu,$e,n.b,n.bA,n.aX,n)}))),Ru=Pt,Lu=c(function(n,r,t,e,u,a){return Ru(n+60*r*60*1e3+60*(t-a)*1e3+1e3*e+u)}),Ou=e(function(n,r,t){var e=r,u=t;return function(r){var t=e(r);if(1===t.$)return f(du,t.a,t.b);var a=t.a,c=t.b,i=u(t.c);if(1===i.$){var o=i.a;return f(du,a||o,i.b)}o=i.a;var b=i.c;return s(lu,a||o,f(n,c,i.b),b)}}),Tu=t(function(n,r){return s(Ou,ku,n,r)}),Uu=t(function(n,r){return s(Ou,yt,n,r)}),Su=t(function(n,r){return{$:2,a:n,b:r}}),zu=e(function(n,r,t){n:for(;;){if(t.b){var e=t.b,u=(0,t.a)(n);if(u.$){var a;if((a=u).a)return a;n=n,r=f(Su,r,a.b),t=e;continue n}return u}return f(du,!1,r)}}),Du=function(n){return function(r){return s(zu,r,gu,n)}},Pu=function(n){return{$:1,a:n}},Xu=P,Mu={$:11},Fu=t(function(n,r){return function(t){var e=s(yu,n,t.b,t.a);return g(e,-1)?f(du,!1,f(mu,t,r)):g(e,-2)?s(lu,!0,0,{aX:1,c:t.c,d:t.d,b:t.b+1,bA:t.bA+1,a:t.a}):s(lu,!0,0,{aX:t.aX+1,c:t.c,d:t.d,b:e,bA:t.bA,a:t.a})}}),Ju=u(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$)return a=u.a,f(du,n||a,u.b);var a=u.a,c=u.b,i=u.c;if(c.$)return s(lu,n||a,c.a,i);n=n||a,r=c.a,t=t,e=i}}),Hu=t(function(n,r){return function(t){return b(Ju,!1,n,r,t)}}),Iu=t(function(n,r){var t=r;return function(r){var e=t(r);if(e.$)return f(du,e.a,e.b);var u=e.c;return s(lu,e.a,n(e.b),u)}}),qu=function(n){return n.$?{$:1,a:n.a}:{$:0,a:n.a}},Bu=t(function(n,r){return f(Hu,n,function(n){return f(Iu,qu,r(n))})}),Yu=function(n){return f(Bu,"",function(r){if(g(Ft(r),n)){var t=Yt(r);return t.$?ju('Invalid integer: "'+r+'"'):f(Iu,Pu,Cu(t.a))}return f(Iu,function(n){return{$:0,a:f(Xu,r,n)}},Eu(f(Fu,ot,Mu)))})},Gu=t(function(n,r){return{$:0,a:n,b:r}}),Ku=Er,Qu=function(n){return function(n){var r=n.a,t=n.b,e=!qt(r);return function(n){var u=v(Ku,r,n.b,n.bA,n.aX,n.a),a=u.a,c=u.b,i=u.c;return g(a,-1)?f(du,!1,f(mu,n,t)):s(lu,e,0,{aX:i,c:n.c,d:n.d,b:a,bA:c,a:n.a})}}(f(Gu,n,{$:8,a:n}))},Wu=function(n){return ju("Invalid day: "+Gr(n))},Vu=T,Zu=function(n){return!(f(Vu,4,n)||!f(Vu,100,n)&&f(Vu,400,n))},na=function(n){var r=n-1;return(r/4|0)-(r/100|0)+(r/400|0)},ra=f($u,function(n){var r=n.a,t=n.b,e=n.c;if(0>e)return Wu(e);var u=function(n){var u=31536e6*(r-1970),a=864e5*((3>t||!Zu(r)?e-1:e)+(na(r)-na(1970)));return Cu(n+u+a)};switch(t){case 1:return e>31?Wu(e):u(0);case 2:return e>29||29===e&&!Zu(r)?Wu(e):u(26784e5);case 3:return e>31?Wu(e):u(50976e5);case 4:return e>30?Wu(e):u(7776e6);case 5:return e>31?Wu(e):u(10368e6);case 6:return e>30?Wu(e):u(130464e5);case 7:return e>31?Wu(e):u(156384e5);case 8:return e>31?Wu(e):u(183168e5);case 9:return e>30?Wu(e):u(209952e5);case 10:return e>31?Wu(e):u(235872e5);case 11:return e>30?Wu(e):u(262656e5);case 12:return e>31?Wu(e):u(288576e5);default:return ju('Invalid month: "'+Gr(t)+'"')}},f(Uu,f(Uu,f(Uu,Cu(e(function(n,r,t){return k(n,r,t)})),Yu(4)),Du(R([f(Uu,f(Tu,Cu(Pt),Qu("-")),Yu(2)),Yu(2)]))),Du(R([f(Uu,f(Tu,Cu(Pt),Qu("-")),Yu(2)),Yu(2)])))),ta=(le=e(function(n,r,t){return n*(60*r)+t}),f(Uu,Cu(Pt),Du(R([f(Iu,function(){return 0},Qu("Z")),f(Uu,f(Uu,f(Uu,Cu(le),Du(R([f(Iu,function(){return 1},Qu("+")),f(Iu,function(){return-1},Qu("-"))]))),Yu(2)),Du(R([f(Uu,f(Tu,Cu(Pt),Qu(":")),Yu(2)),Yu(2),Cu(0)]))),f(Tu,Cu(0),xu)])))),ea=f($u,function(n){return Du(R([f(Uu,f(Uu,f(Uu,f(Uu,f(Uu,f(Tu,Cu(Lu(n)),Qu("T")),Yu(2)),Du(R([f(Uu,f(Tu,Cu(Pt),Qu(":")),Yu(2)),Yu(2)]))),Du(R([f(Uu,f(Tu,Cu(Pt),Qu(":")),Yu(2)),Yu(2),Cu(0)]))),Du(R([f(Uu,f(Tu,Cu(Pt),Qu(".")),Nu),Cu(0)]))),f(Tu,ta,xu)),f(Tu,Cu(d(Lu,n,0,0,0,0,0)),xu)]))},ra),ua=e(function(n,r,t){return{aX:r,br:t,bA:n}}),aa=function(n){return s(ua,n.bA,n.aX,n.br)},ca=t(function(n,r){n:for(;;)switch(n.$){case 0:return r;case 1:var t=n.b;n=n.a,r=f(Lr,t,r);continue n;default:var e=n.b;n=n.a,r=f(ca,e,r);continue n}}),ia=t(function(n,r){var t=n({aX:1,c:_,d:1,b:0,bA:1,a:r});return t.$?Dr(f(ca,t.b,_)):Fr(t.b)}),oa=t(function(n,r){var t=f(ia,n,r);return t.$?Dr(f(ae,aa,t.a)):Fr(t.a)}),fa=f(Tt,function(n){var r=function(n){return f(oa,ea,n)}(n);return 1===r.$?bu(function(n){return f(Kr,"",f(su,"; ",f(ae,fu,n)))}(r.a)):zt(r.a)},vu),sa=function(n){return{$:11,g:n}},ba=function(n){return sa(R([f(Ut,Ir,n),zt(qr)]))},va=V,da=t(function(n,r){return s(ue,va,r,n)}),la=St(wt),$a=un,pa=function(n){return{$:5,c:n}},ha=Q,ga=e(function(n,r,t){return f(Tt,function(e){var u=f($a,n,e);if(u.$)return zt(t);var a=u.a,c=f($a,sa(R([r,pa(t)])),a);return c.$?bu(vt(c.a)):zt(c.a)},ha)}),ma=u(function(n,r,t,e){return f(la,s(ga,f(da,n,ha),r,t),e)}),xa=e(function(n,r,t){return f(la,f(da,n,r),t)}),ya=b(ma,R(["attributes","parent_event_id"]),ba(vu),qr,s(xa,R(["attributes","type_stream_name"]),vu,b(ma,R(["attributes","causation_stream_name"]),ba(vu),qr,b(ma,R(["attributes","correlation_stream_name"]),ba(vu),qr,s(xa,R(["attributes","metadata"]),f(Ut,Yr(2),ha),s(xa,R(["attributes","data"]),f(Ut,Yr(2),ha),s(xa,R(["attributes","metadata","timestamp"]),fa,s(xa,R(["id"]),vu,s(xa,R(["attributes","event_type"]),vu,zt(ou)))))))))),wa=f(va,"data",ya),ka=function(n){return encodeURIComponent(n)},Aa=t(function(n,r){return n+"/"+ka(r)}),Ea=t(function(n,r){return 1===n.$?r:r+":"+Gr(n.a)}),ja=e(function(n,r,t){return 1===r.$?t:j(t,j(n,r.a))}),_a=function(n){return s(ja,"#",n.a3,s(ja,"?",n.bu,j(f(Ea,n.bp,j(n.bt?"https://":"http://",n.a9)),n.ah)))},Ca=t(function(n,r){return f(Aa,_a(n.aR)+"/events",r)}),Na=en,Ra=t(function(n,r){return{$:3,a:n,b:r}}),La=function(n){return{$:0,a:n}},Oa=t(function(n,r){return{$:4,a:n,b:r}}),Ta={$:2},Ua=function(n){return{$:1,a:n}},Sa=function(n){return{$:0,a:n}},za={$:1},Da=function(n){return!n.$},Pa=On,Xa=e(function(n,r,t){return r(n(t))}),Ma=t(function(n,r){return s(Nr,"",Pt,f(Xa,r,n))}),Fa=t(function(n,r){return r.$?Dr(n(r.a)):Fr(r.a)}),Ja=function(n){return{$:4,a:n}},Ha={$:2},Ia={$:1},qa=t(function(n,r){switch(r.$){case 0:return Dr({$:0,a:r.a});case 1:return Dr(Ia);case 2:return Dr(Ha);case 3:return Dr({$:3,a:r.a.cK});default:return f(Fa,Ja,n(r.b))}}),Ba=t(function(n,r){return f(Ma,n,qa(function(n){return f(Fa,vt,f(Na,r,n))}))}),Ya={$:0},Ga=function(n){return{$:1,a:n}},Ka=t(function(n,r){return{bw:n,bL:r}}),Qa=re(f(Ka,Be,_)),Wa=function(n){return hn(function(r){var t=n.f;2===t.$&&t.c&&t.c(),n.f=null,r(pn(0))})},Va=yn,Za=e(function(n,r,t){n:for(;;){if(r.b){var e=r.a,u=r.b;if(e.$){var a=e.a;return f(ce,function(r){var e=a.bO;return s(Za,n,u,1===e.$?t:s(ze,e.a,r,t))},Va(s(_r,n,se(n),a)))}var c=e.a,i=f(Le,c,t);if(1===i.$){n=n,r=u,t=t;continue n}return f(ce,function(){return s(Za,n,u,f(He,c,t))},Wa(i.a))}return re(t)}}),nc=u(function(n,r,t,e){return f(ce,function(n){return re(f(Ka,n,t))},s(Za,n,r,e.bw))}),rc=e(function(n,r,t){var e=n(r);return e.$?t:f(Lr,e.a,t)}),tc=t(function(n,r){return s(ue,rc(n),_,r)}),ec=u(function(n,r,t,e){var u=e.b;return g(r,e.a)?Ir(f(se,n,u(t))):qr}),uc=e(function(n,r,t){return f(ce,function(){return re(t)},fe(f(tc,s(ec,n,r.a,r.b),t.bL)))}),ac=t(function(n,r){if(r.$){var t=r.a;return Ga({bX:t.bX,aU:t.aU,am:f(Rr,n,t.am),a6:t.a6,cm:t.cm,cP:t.cP,bO:t.bO,aP:t.aP})}return{$:0,a:r.a}}),cc=t(function(n,r){return{$:0,a:n,b:r}});Cn.Http=Nn(Qa,nc,uc,ac,t(function(n,r){return f(cc,r.a,f(Xa,r.b,n))}));var ic=Tn("Http"),oc=(Tn("Http"),function(n){return function(n){return ic(Ga({bX:!1,aU:n.aU,am:n.am,a6:n.a6,cm:n.cm,cP:n.cP,bO:n.bO,aP:n.aP}))}({aU:Ya,am:n.am,a6:_,cm:"GET",cP:qr,bO:qr,aP:n.aP})}),fc=e(function(n,r,t){return oc({am:f(Ba,n,wa),aP:f(Ca,r,t)})}),sc=t(function(n,r){return s(fc,iu,n,r)}),bc=t(function(n,r){return f(sc,n,r)}),vc=function(n){return{$:2,a:n}},dc=t(function(n,r){return{cb:n,cH:r}}),lc=function(n){return{$:3,b:n}},$c=b(ma,R(["attributes","related_streams"]),ba(lc(vu)),qr,s(xa,R(["relationships","events","links","self"]),vu,zt(dc))),pc=f(va,"data",$c),hc=t(function(n,r){return f(Aa,_a(n.aR)+"/streams",r)}),gc=e(function(n,r,t){return oc({am:f(Ba,n,pc),aP:f(hc,r,t)})}),mc=t(function(n,r){return s(gc,vc,n,r)}),xc={$:0},yc=t(function(n,r){return{J:xc,u:xc,b8:r,ao:n}}),wc=t(function(n,r){return{ca:n,cl:r}}),kc=f(wc,_,{a1:qr,bh:qr,bl:qr,bq:qr}),Ac=t(function(n,r){return{ca:kc,ao:n,Y:_,cH:qr,aM:r}}),Ec=zn,jc=Un(_),_c=t(function(n,r){var t=n.ao;if(1===t.$)return w(n,jc);var e=t.a,u=f(cu,e.aC,r);if(u.$)return w(E(n,{x:ge}),jc);if(u.a.$){var a=Ne(u.a.a);if(a.$)return w(E(n,{x:ge}),jc);var c=a.a;return w(E(n,{x:Ae(f(yc,e,c))}),f(Ec,we,f(bc,e,c)))}var i=Ne(u.a.a);if(i.$)return w(E(n,{x:ge}),jc);var o=i.a;return w(E(n,{x:Ee(f(Ac,e,o))}),f(Ec,ke,f(mc,e,o)))}),Cc=e(function(n,r,t){var e,u,a,c={ao:(e=n,u=e.aR,a=e.az,b(xe,me,Zt(e.aC),Zt(u),Ir(a))),ck:t,U:ye,x:ge};return f(_c,c,r)}),Nc=Un(_),Rc=function(n){return{$:2,a:n}},Lc=function(n){return f(he,ne,hn(function(){try{Ar.location=n}catch(n){Jn.location.reload(!1)}}))},Oc=kr,Tc=function(n){return n.a+"="+n.b},Uc=t(function(n,r){return"/"+(f(Kr,"/",n)+function(n){return n.b?"?"+f(Kr,"&",f(ae,Tc,n)):""}(r))}),Sc=t(function(n,r){return s(ue,t(function(r,t){return n(r)?f(Lr,r,t):t}),_,r)}),zc=t(function(n,r){return f(Uc,j(function(n){return f(Sc,function(n){return""!==n},f(Qr,"/",n.ah))}(n),r),_)}),Dc=t(function(n,r){return f(zc,n,R(["streams",ka(r)]))}),Pc=t(function(n,r){return n.$?w({L:n.a},jc):w({L:""},f(Oc,r.ck,f(Dc,r.ao.aC,r.bd.L)))}),Xc=function(n){return{$:3,a:n}},Mc={$:3},Fc=function(n){return{$:1,a:n}},Jc={$:2},Hc=Be,Ic=t(function(n,r){return s(ze,n,0,r)}),qc=s(Vr,Ic,Hc,_),Bc=function(n){return{$:4,a:n}},Yc=t(function(n,r){var t=r.b_;return t.$?jc:s(gc,Bc,n,t.a)}),Gc=u(function(n,r,t,e){return{a1:t,bh:e,bl:n,bq:r}}),Kc=u(function(n,r,t,e){return f(la,s(ga,f(va,n,ha),r,t),e)}),Qc=b(Kc,"last",ba(vu),qr,b(Kc,"first",ba(vu),qr,b(Kc,"prev",ba(vu),qr,b(Kc,"next",ba(vu),qr,zt(Gc))))),Wc=e(function(n,r,t){return f(la,f(va,n,r),t)}),Vc=s(Wc,"links",Qc,s(Wc,"data",lc(ya),zt(wc))),Zc=t(function(n,r){return oc({am:f(Ba,n,Vc),aP:r})}),ni=t(function(n,r){switch(n.$){case 0:var t=n.a,e=r.u;return w(1===e.$?E(r,{u:Fc(E(a=e.a,{ac:t}))}):r,jc);case 1:t=n.a;var u=r.u;return w(1===u.$?E(r,{u:Fc(E(a=u.a,{af:t}))}):r,jc);case 2:if(n.a.$)return w(E(r,3===n.a.a.$&&404===n.a.a.a?{u:Jc}:{u:Mc}),jc);var a={b_:(c=n.a.a).b_,b3:c.b3,ac:qc,b8:c.b8,b9:c.b9,af:qc,cC:c.cC,cD:c.cD,cE:c.cE,cW:c.cW};return w(E(r,{u:Fc(a)}),f(Yc,r.ao,a));case 4:return n.a.$?w(E(r,{J:Mc}),jc):w(r,f(Zc,Xc,n.a.a.cb));default:return w(E(r,n.a.$?{J:Mc}:{J:Fc(n.a.a.ca)}),jc)}var c}),ri=function(n){return{$:1,a:n}},ti=t(function(n,r){switch(n.$){case 0:return w(r,f(Zc,ri,n.a));case 1:return w(E(r,n.a.$?{Y:R(["Server error, please check backend logs for details"])}:{ca:n.a.a}),jc);default:if(n.a.$)return w(E(r,{Y:R(["Server error, please check backend logs for details"])}),jc);var t=n.a.a;return w(E(r,{cH:t.cH}),f(Zc,ri,t.cb))}}),ei=u(function(n,r,t,e){var u=e.b;return w(E(t,{x:n(e.a)}),f(Ec,r,u))}),ui=e(function(n,r,t){return{ao:t,bd:r,ck:n.ck}}),ai=t(function(n,r){var t=w(n,r.x);n:for(;;)switch(t.a.$){case 0:return f(_c,r,t.a.a);case 1:var e=t.a.a;return w(r,e.$?Lc(e.a):f(Oc,r.ck,_a(e.a)));case 4:if(2===t.b.$)return b(ei,Ee,ke,r,f(ti,t.a.a,t.b.a));break n;case 3:if(1===t.b.$)return b(ei,Ae,we,r,f(ni,t.a.a,t.b.a));break n;default:var u=t.a.a,a=r.ao;if(1===a.$)return w(r,jc);var c=f(Pc,u,s(ui,r,r.U,a.a)),i=c.b;return w(E(r,{U:c.a}),f(Ec,Rc,i))}return w(r,jc)}),ci=function(n){return n.$?"RubyEventStore::Browser":"RubyEventStore::Browser - "+n.a},ii=qn("a"),oi=ln,fi=t(function(n,r){return f(Qn,n,oi(r))}),si=fi("className"),bi=qn("div"),vi=qn("footer"),di=function(n){return f(fi,"href",/^javascript:/i.test((r=n).replace(/\s/g,""))?"":r);var r},li=qn("span"),$i=In,pi={$:0},hi=function(n){return{$:1,a:n}},gi=qn("form"),mi=qn("input"),xi=qn("nav"),yi=function(n){return w(n,!0)},wi=Gn,ki=t(function(n,r){return f(wi,n,{$:1,a:r})}),Ai=f(da,R(["target","value"]),vu),Ei=function(n){return w(n,!0)},ji=t(function(n,r){return f(wi,n,{$:2,a:r})}),_i=fi("placeholder"),Ci=fi("value"),Ni=function(n){return f(xi,R([si("flex bg-red-700 px-8 h-16")]),R([f(bi,R([si("flex items-center")]),R([f(ii,R([di(_a(n.ao.aC)),si("text-gray-100 font-semibold")]),R([$i("Ruby Event Store")]))])),f(bi,R([si("flex-1")]),_),f(bi,R([si("flex items-center")]),R([f(gi,R([(t=pi,f(ji,"submit",f(Ut,Ei,zt(t))))]),R([f(mi,R([si("rounded px-4 py-2"),Ci(n.bd.L),(r=hi,f(ki,"input",f(Ut,yi,f(Ut,r,Ai)))),_i("Go to stream...")]),_)]))]))]));var r,t},Ri=qn("header"),Li=qn("main"),Oi=Yn,Ti=e(function(n,r,t){return f(bi,R([si("bg-gray-100 min-h-screen w-full text-gray-800 font-sans leading-relaxed antialiased")]),R([f(Ri,_,R([f(Oi,n,Ni(r))])),f(Li,R([si("bg-white")]),R([t])),f(vi,_,R([f(Oi,n,(e=r.ao,f(vi,R([si("border-gray-400 border-t py-4")]),R([f(bi,R([si("flex justify-center text-gray-500 text-sm")]),R([$i("RubyEventStore v"+e.az),f(li,R([si("font-bold text-gray-400 inline-block ml-4")]),R([$i("•")])),f(ii,R([di("https://railseventstore.org/docs/install/"),si("text-gray-500 ml-4")]),R([$i("Documentation")])),f(li,R([si("font-bold text-gray-400 inline-block ml-4")]),R([$i("•")])),f(ii,R([di("https://railseventstore.org/support/"),si("text-gray-500 ml-4")]),R([$i("Support")]))]))]))))]))]));var e}),Ui=qn("h1"),Si=f(Ui,_,R([$i("Incorrect RES Browser config")])),zi=f(bi,R([si("lds-dual-ring")]),_),Di=f(bi,R([si("flex items-center justify-center")]),R([zi])),Pi=qn("h2"),Xi=qn("li"),Mi=t(function(n,r){return r.$?qr:Ir(n(r.a))}),Fi=t(function(n,r){return f(ii,R([si("text-red-700 no-underline"),di(f(Dc,n,r))]),R([$i(r)]))}),Ji=t(function(n,r){return f(Mi,function(r){return f(Xi,_,R([$i("Causation stream: "),f(Fi,n,r)]))},r.b_)}),Hi=t(function(n,r){return f(Mi,function(r){return f(Xi,_,R([$i("Correlation stream: "),f(Fi,n,r)]))},r.b3)}),Ii=t(function(n,r){return f(zc,n,R(["events",ka(r)]))}),qi=t(function(n,r){return f(ii,R([si("text-red-700 no-underline"),di(f(Ii,n,r))]),R([$i(r)]))}),Bi=t(function(n,r){return f(Mi,function(r){return f(Xi,_,R([$i("Parent event: "),f(qi,n,r)]))},r.cC)}),Yi=t(function(n,r){return f(Xi,_,R([$i("Type stream: "),f(Fi,n,r.cW)]))}),Gi=f(ue,t(function(n,r){return n.$?r:f(Lr,n.a,r)}),_),Ki=t(function(n,r){return Gi(R([f(Bi,n,r),Ir(f(Yi,n,r)),f(Hi,n,r),f(Ji,n,r)]))}),Qi=qn("ul"),Wi=t(function(n,r){return g(f(Ki,n,r),_)?$i(""):f(bi,R([si("px-8")]),R([f(Pi,R([si("font-bold text-xl")]),R([$i("Related streams / events:")])),f(Qi,R([si("list-disc pl-8")]),f(Ki,n,r))]))}),Vi=qn("p"),Zi=qn("td"),no=qn("tr"),ro=t(function(n,r){var t=r.b9,e=r.b8;return f(no,_,R([f(Zi,R([si("p-0 pt-2")]),R([f(ii,R([si("text-red-700 no-underline"),di(f(Ii,n,e))]),R([$i(t)]))])),f(Zi,R([si("p-0 pt-2")]),R([$i(e)]))]))}),to=qn("table"),eo=qn("tbody"),uo=qn("tfoot"),ao=qn("th"),co=qn("thead"),io=t(function(n,r){return r.b?f(to,R([si("my-10 w-full text-left table-fixed border-collapse ")]),R([f(co,R([si("align-bottom leading-tight")]),R([f(no,_,R([f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Event name")])),f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Event id")]))]))])),f(eo,R([si("align-top")]),f(ae,ro(n),r)),f(uo,_,R([f(no,_,R([f(Zi,R([si("text-gray-500 p-0 pb-4 text-xs"),(2,f(Wn,"colspan",Gr(2)))]),R([20===Zr(r)?$i("The results may be truncated, check stream for full information."):$i("")]))]))]))])):f(Vi,R([si("flex items-center justify-center py-24")]),R([$i("No items")]))}),oo={I:"firebrick",M:"gray",N:"blue",O:"#fafad2",Q:"green"},fo=t(function(n,r){return r.$?Dr(r.a):Fr(n(r.a))}),so=t(function(n,r){return r.$?Dr(r.a):n(r.a)}),bo=function(n){return{$:4,a:n}},vo=function(n){return{$:3,a:n}},lo=t(function(n,r){if(-2===r.$)return Te;var t=r.b,e=r.d,u=r.e;return v(Oe,r.a,t,f(n,t,r.c),f(lo,n,e),f(lo,n,u))}),$o=t(function(n,r){var e=t(function(r,t){return f($o,n+"["+Gr(r)+"]",t)}),u=t(function(r,t){return f($o,n+"."+r,t)}),a=r.z;switch(a.$){case 0:case 1:case 2:case 5:return E(r,{l:n});case 3:return E(r,{l:n,z:vo(f(et,e,a.a))});default:return E(r,{l:n,z:bo(f(lo,u,a.a))})}}),po=function(n){return{$:2,a:n}},ho=function(n){return{$:1,a:n}},go={$:5},mo=function(n){return{$:0,a:n}},xo=G,yo=e(function(n,r,t){return n(r(t))}),wo=function(n){return s(Vr,t(function(n,r){return s(ze,n.a,n.b,r)}),Be,n)},ko=function(n){return f(Ut,wo,function(n){return{$:8,b:n}}(n))},Ao=K,Eo=function(n){return f(Tt,n,zt(0))};function jo(){var n=function(n){return{l:"",z:n}};return sa(R([f(Ut,f(yo,n,mo),vu),f(Ut,f(yo,n,ho),Ao),f(Ut,f(yo,n,po),xo),f(Ut,f(yo,n,vo),lc(Eo(function(){return jo()}))),f(Ut,f(yo,n,bo),ko(Eo(function(){return jo()}))),pa(n(go))]))}var _o=jo();jo=function(){return _o};var Co,No,Ro,Lo,Oo,To=function(n){var r=f(Ut,$o(""),_o);return f($a,r,n)},Uo=qn("pre"),So={I:function(n){return R([w("color",n.I)])},ak:R([w("position","absolute"),w("cursor","pointer"),w("top","1px"),w("left","-15px")]),an:R([w("font-weight","bold")]),ad:R([w("position","relative")]),M:function(n){return R([w("color",n.M)])},N:function(n){return R([w("color",n.N)])},aB:R([w("font-family","monospace"),w("white-space","pre")]),O:function(n){return R([w("background-color",n.O),w("cursor","pointer")])},Q:function(n){return R([w("color",n.Q)])},aj:R([w("list-style-type","none"),w("margin-left","26px"),w("padding-left","0px")])},zo=function(n){return qn(function(n){return"script"==n?"p":n}(n))},Do=Kn,Po=function(n){return f(ae,function(n){return f(Do,n.a,n.b)},n)},Xo=B,Mo=t(function(n,r){return!f(Le,n,r).$}),Fo=t(function(n,r){return f(Mo,n,r)}),Jo=t(function(n,r){return f(Fo,n,r)}),Ho=t(function(n,r){return f(Ic,n,r)}),Io=t(function(n,r){return f(wi,n,{$:0,a:r})}),qo=t(function(n,r){return f(Io,"click",f(Ut,f(Xa,function(n){return n(0)},r),zt(n)))}),Bo=u(function(n,r,t,e){return n?f(li,f(Lr,f(qo,t,r.cT),Po(So.ak)),R([$i(e)])):$i("")}),Yo=u(function(n,r,t,e){return b(Bo,n,t,function(){return f(Ho,r,e)},"-")}),Go=t(function(n,r){return f(He,n,r)}),Ko=t(function(n,r){return f(Go,n,r)}),Qo=u(function(n,r,t,e){return b(Bo,n,t,function(){return f(Ko,r,e)},"+")}),Wo=fi("id"),Vo=function(n){return f(Io,"click",zt(n))},Zo=u(function(n,r,t,e){return u=f(li,j(R([Wo(t.l)]),j(Po(n),(a=e.cx).$?_:R([Vo((0,a.a)(t.l)),si("selectableJsonTreeNode")]))),R([$i(r)])),R([u]);var u,a}),nf=a(function(n,r,t,e,u){var a=function(r){return f(Xi,Po(So.ad),f(Ve,b(tf,n+1,e,r,u),R([$i(",")])))},c=r.b?R(f(Jo,t,u)?[b(Qo,n,t,e,u),$i("…")]:[b(Yo,n,t,e,u),f(Qi,Po(So.aj),f(ae,a,r))]):_;return j(R([$i("[")]),j(c,R([$i("]")])))}),rf=a(function(n,r,t,e,u){var a=function(r){var t=r.a,a=r.b;return f(Xi,Po(So.ad),j(R([f(li,Po(So.an),R([$i(t)])),$i(": ")]),j(b(tf,n+1,e,a,u),R([$i(",")]))))},c=function(n){return-2===n.$}(r)?_:R(f(Jo,t,u)?[b(Qo,n,t,e,u),$i("…")]:[b(Yo,n,t,e,u),f(Qi,Po(So.aj),f(ae,a,Tr(r)))]);return j(R([$i("{")]),j(c,R([$i("}")])))}),tf=u(function(n,r,t,e){var u=r.b1,a=t.z;switch(a.$){case 0:var c=a.a;return b(Zo,So.Q(u),'"'+c+'"',t,r);case 1:var i=a.a;return b(Zo,So.N(u),Xo(i),t,r);case 2:var o=a.a;return b(Zo,So.I(u),function(n){return n?"true":"false"}(o),t,r);case 5:return b(Zo,So.M(u),"null",t,r);case 3:return v(nf,n,a.a,t.l,r,e);default:return v(rf,n,a.a,t.l,r,e)}}),ef=e(function(n,r,t){return f(bi,Po(So.aB),f(Lr,function(n){var r=f(Kr,"\n",f(ae,function(n){return n.a+": "+n.b+";"},So.O(n.b1)));return s(zo,"style",_,R([$i(".selectableJsonTreeNode:hover {\n"+r+"\n}\n")]))}(r),b(tf,0,r,n,t)))}),uf=t(function(n,r){return r.$?n:r.a}),af=e(function(n,r,t){return f(uf,f(Uo,_,R([$i(n)])),f(fo,function(n){return s(ef,n,{b1:oo,cx:qr,cT:t},r)},f(so,To,f(Na,ha,n))))}),cf=e(function(n,r,t){return f(bi,R([si("py-12")]),R([f(Ui,R([si("font-bold px-8 text-2xl")]),R([$i(r.b9)])),f(bi,R([si("px-8")]),R([f(to,R([si("my-10 w-full text-left table-fixed border-collapse")]),R([f(co,R([si("align-bottom leading-tight")]),R([f(no,_,R([f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Event id")])),f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Raw Data")])),f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Raw Metadata")]))]))])),f(eo,R([si("align-top")]),R([f(no,_,R([f(Zi,R([si("p-0 pt-2")]),R([$i(r.b8)])),f(Zi,R([si("p-0 pt-2")]),R([s(af,r.cD,r.ac,function(n){return{$:0,a:n}})])),f(Zi,R([si("p-0 pt-2")]),R([s(af,r.cE,r.af,function(n){return{$:1,a:n}})]))]))]))]))])),f(Wi,n,r),function(){switch(t.$){case 0:return f(bi,R([si("px-8 mt-8")]),R([f(Pi,R([si("font-bold text-xl")]),R([$i("Events caused by this event:")])),$i("Loading...")]));case 1:var r=t.a;return f(bi,R([si("px-8 mt-8")]),R(r.b?[f(Pi,R([si("font-bold text-xl")]),R([$i("Events caused by this event:")])),f(io,n,r)]:[f(Pi,R([si("font-bold text-xl")]),R([$i("Events caused by this event: none")]))]));default:return $i("")}}()]))}),of=function(n){return w("Event "+n.b8,function(n){var r=n.u;switch(r.$){case 2:return f(bi,R([si("py-12")]),R([f(Ui,R([si("font-bold px-8 text-2xl")]),R([$i("There's no event with given ID")]))]));case 0:return Di;case 1:return s(cf,n.ao.aC,r.a,n.J);default:return f(bi,R([si("py-12")]),R([f(Ui,R([si("font-bold px-8 text-2xl")]),R([$i("Unexpected request failure happened when fetching the event")]))]))}}(n))},ff=qn("button"),sf=ln,bf=t(function(n,r){return f(Qn,n,sf(r))})("disabled"),vf=function(n){if(n.$)return R([bf(!0)]);var r,t=n.a;return R([di(t),Vo((r=t,{$:0,a:r}))])},df=function(n){return f(ff,j(R([si("text-center text-sm border-red-700 text-red-700 border rounded px-2 py-1 mr-1 disabled:opacity-50 disabled:cursor-not-allowed")]),vf(n)),R([$i("last")]))},lf=function(n){return f(ff,j(R([si("text-center text-sm border-red-700 text-red-700 border rounded px-2 py-1 mr-1 disabled:opacity-50 disabled:cursor-not-allowed")]),vf(n)),R([$i("next")]))},$f=function(n){return f(ff,j(R([si("text-center text-sm border-red-700 text-red-700 border rounded px-2 py-1 mr-1 disabled:opacity-50 disabled:cursor-not-allowed")]),vf(n)),R([$i("previous")]))},pf=function(n){var r,t=n.a1,e=n.bh,u=n.bl,a=n.bq;return f(Qi,R([si("flex")]),R([f(Xi,_,R([(r=t,f(ff,j(R([si("text-center text-sm border-red-700 text-red-700 border rounded px-2 py-1 mr-1 disabled:opacity-50 disabled:cursor-not-allowed")]),vf(r)),R([$i("first")])))])),f(Xi,_,R([$f(a)])),f(Xi,_,R([lf(u)])),f(Xi,_,R([df(e)]))]))},hf=$i(""),gf=t(function(n,r){return f(ii,R([si("text-red-700 no-underline"),di(f(Dc,n,r))]),R([$i(r)]))}),mf=t(function(n,r){if(r.$)return hf;var t=r.a;return f(bi,R([si("px-8")]),R([f(Pi,R([si("font-bold text-xl")]),R([$i("Related streams:")])),f(Qi,R([si("list-disc pl-8")]),f(ae,function(r){return f(Xi,_,R([f(gf,n,r)]))},t))]))}),xf={$:7},yf=function(n){return n>11?"pm":"am"},wf=function(n){switch(n){case 0:return"January";case 1:return"February";case 2:return"March";case 3:return"April";case 4:return"May";case 5:return"June";case 6:return"July";case 7:return"August";case 8:return"September";case 9:return"October";case 10:return"November";default:return"December"}},kf=function(n){switch(f(Vu,100,n)){case 11:case 12:case 13:return"th";default:switch(f(Vu,10,n)){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}},Af=function(n){switch(n){case 0:return"Monday";case 1:return"Tuesday";case 2:return"Wednesday";case 3:return"Thursday";case 4:return"Friday";case 5:return"Saturday";default:return"Sunday"}},Ef=d(c(function(n,r,t,e,u,a){return{cQ:u,cR:r,cS:n,R:a,cU:e,cV:t}}),wf,f(Xa,wf,Bt(3)),Af,f(Xa,Af,Bt(3)),yf,kf),jf=t(function(n,r){return kt(n/r)}),_f=function(n){return n},Cf=e(function(n,r,t){for(;;){if(!t.b)return r+n;var e=t.a,u=t.b;if(0>x(e.aK,r))return r+e.b;n=n,r=r,t=u}}),Nf=t(function(n,r){var t=n.b;return s(Cf,n.a,f(jf,_f(r),6e4),t)}),Rf=t(function(n,r){return f(Vu,24,f(jf,f(Nf,n,r),60))}),Lf=e(function(n,r,t){return n.cQ(f(Rf,r,t))}),Of=function(n){var r=f(jf,n,1440)+719468,t=(0>r?r-146096:r)/146097|0,e=r-146097*t,u=(e-(e/1460|0)+(e/36524|0)-(e/146096|0))/365|0,a=e-(365*u+(u/4|0)-(u/100|0)),c=(5*a+2)/153|0,i=c+(10>c?3:-9);return{aY:a-((153*c+2)/5|0)+1,bj:i,bU:u+400*t+(i>2?0:1)}},Tf=t(function(n,r){return Of(f(Nf,n,r)).aY}),Uf=R([6,0,1,2,3,4,5]),Sf=function(n){return n.b?Ir(n.a):qr},zf=t(function(n,r){switch(f(Vu,7,f(jf,f(Nf,n,r),1440))){case 0:return 3;case 1:return 4;case 2:return 5;case 3:return 6;case 4:return 0;case 5:return 1;default:return 2}}),Df=t(function(n,r){return r.$?n:r.a}),Pf=t(function(n,r){return f(Df,w(0,6),Sf(f(Sc,function(t){return g(t.b,f(zf,n,r))},f(et,t(function(n,r){return w(n,r)}),Uf)))).a}),Xf=t(function(n,r){switch(r){case 0:return 31;case 1:return function(n){return!(f(Vu,4,n)||!f(Vu,100,n)&&f(Vu,400,n))}(n)?29:28;case 2:return 31;case 3:return 30;case 4:return 31;case 5:return 30;case 6:case 7:return 31;case 8:return 30;case 9:return 31;case 10:return 30;default:return 31}}),Mf=R([0,1,2,3,4,5,6,7,8,9,10,11]),Ff=t(function(n,r){switch(Of(f(Nf,n,r)).bj){case 1:return 0;case 2:return 1;case 3:return 2;case 4:return 3;case 5:return 4;case 6:return 5;case 7:return 6;case 8:return 7;case 9:return 8;case 10:return 9;case 11:return 10;default:return 11}}),Jf=t(function(n,r){return f(Df,w(0,0),Sf(f(Sc,function(t){return g(t.b,f(Ff,n,r))},f(et,t(function(n,r){return w(n,r)}),Mf))))}),Hf=t(function(n,r){return 1+f(Jf,n,r).a}),If=e(function(n,r,t){n:for(;;){if(n>0){if(r.b){var e=r.a;n-=1,r=r.b,t=f(Lr,e,t);continue n}return t}return t}}),qf=t(function(n,r){return st(s(If,n,r,_))}),Bf=e(function(n,r,t){if(r>0){var e=w(r,t);n:for(;;){r:for(;;){if(!e.b.b)return t;if(!e.b.b.b){if(1===e.a)break n;break r}switch(e.a){case 1:break n;case 2:var u=e.b;return R([u.a,u.b.a]);case 3:if(e.b.b.b.b){var a=e.b,c=a.b;return R([a.a,c.a,c.b.a])}break r;default:if(e.b.b.b.b&&e.b.b.b.b.b){var i=e.b,o=i.b,b=o.b,v=b.b,d=v.b;return f(Lr,i.a,f(Lr,o.a,f(Lr,b.a,f(Lr,v.a,n>1e3?f(qf,r-4,d):s(Bf,n+1,r-4,d)))))}break r}}return t}return R([e.b.a])}return _}),Yf=t(function(n,r){return s(Bf,0,n,r)}),Gf=t(function(n,r){return Of(f(Nf,n,r)).bU}),Kf=t(function(n,r){var t,e=f(Yf,f(Hf,n,r)-1,Mf);return t=f(ae,Xf(f(Gf,n,r)),e),s(Vr,Hr,0,t)+f(Tf,n,r)}),Qf=t(function(n,r){return f(Hf,n,r)/4|0}),Wf=t(function(n,r){return 1>n?"":s(Jt,-n,Ft(r),r)}),Vf=t(function(n,r){var t=Gr(r),e=n-Ft(t);return j(f(Kr,"",f(ae,function(){return"0"},f(tt,1,e))),t)}),Zf=t(function(n,r){return f(Vu,1e3,_f(r))}),ns=t(function(n,r){return f(Vu,60,f(Nf,n,r))}),rs=function(n){return n?n>12?n-12:n:12},ts=t(function(n,r){return f(Vu,60,f(jf,_f(r),1e3))}),es=_u(315576e5),us=t(function(n,r){return Ru(es*f(Gf,n,r))}),as=t(function(n,r){var t=f(Pf,n,f(us,n,r));return 1+((f(Kf,n,r)+t)/7|0)}),cs=t(function(n,r){return Gr(f(Gf,n,r))}),is=u(function(n,r,t,e){switch(e.$){case 0:return Gr(f(Hf,r,t));case 1:return j(Gr(u=f(Hf,r,t)),n.R(u));case 2:return f(Vf,2,f(Hf,r,t));case 3:return n.cR(f(Ff,r,t));case 4:return n.cS(f(Ff,r,t));case 17:return Gr(1+f(Qf,r,t));case 18:return function(r){return j(Gr(r),n.R(r))}(1+f(Qf,r,t));case 5:return Gr(f(Tf,r,t));case 6:return function(r){return j(Gr(r),n.R(r))}(f(Tf,r,t));case 7:return f(Vf,2,f(Tf,r,t));case 8:return Gr(f(Kf,r,t));case 9:return function(r){return j(Gr(r),n.R(r))}(f(Kf,r,t));case 10:return f(Vf,3,f(Kf,r,t));case 11:return Gr(f(Pf,r,t));case 12:return function(r){return j(Gr(r),n.R(r))}(f(Pf,r,t));case 13:return n.cU(f(zf,r,t));case 14:return n.cV(f(zf,r,t));case 19:return Gr(f(as,r,t));case 20:return function(r){return j(Gr(r),n.R(r))}(f(as,r,t));case 21:return f(Vf,2,f(as,r,t));case 15:return f(Wf,2,f(cs,r,t));case 16:return f(cs,r,t);case 22:return s(Lf,n,r,t).toUpperCase();case 23:return function(n){return n.toLowerCase()}(s(Lf,n,r,t));case 24:return Gr(f(Rf,r,t));case 25:return f(Vf,2,f(Rf,r,t));case 26:return Gr(rs(f(Rf,r,t)));case 27:return f(Vf,2,rs(f(Rf,r,t)));case 28:return Gr(1+f(Rf,r,t));case 29:return f(Vf,2,1+f(Rf,r,t));case 30:return Gr(f(ns,r,t));case 31:return f(Vf,2,f(ns,r,t));case 32:return Gr(f(ts,r,t));case 33:return f(Vf,2,f(ts,r,t));case 34:return Gr(f(Zf,r,t));case 35:return f(Vf,3,f(Zf,r,t));default:return e.a}var u}),os=u(function(n,r,t,e){return f(Kr,"",f(ae,s(is,n,t,e),r))})(Ef),fs={$:25},ss={$:35},bs={$:31},vs={$:2},ds={$:33},ls=function(n){return{$:36,a:n}},$s=f(t(function(n,r){return{$:0,a:n,b:r}}),0,_),ps={$:16},hs=t(function(n,r){var t,e=r.b9,u=r.b4,a=r.b8;return f(no,_,R([f(Zi,R([si("p-0 pt-2")]),R([f(ii,R([si("text-red-700 no-underline"),di(f(Ii,n,a))]),R([$i(e)]))])),f(Zi,R([si("p-0 pt-2")]),R([$i(a)])),f(Zi,R([si("p-0 pt-2 text-right")]),R([$i((t=u,s(os,R([xf,ls("."),vs,ls("."),ps,ls(", "),fs,ls(":"),bs,ls(":"),ds,ls("."),ss]),$s,t)))]))]))}),gs=t(function(n,r){return r.b?f(to,R([si("my-10 w-full text-left table-fixed border-collapse")]),R([f(co,R([si("align-bottom leading-tight")]),R([f(no,_,R([f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Event name")])),f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),R([$i("Event id")])),f(ao,R([si("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs text-right")]),R([$i("Created at")]))]))])),f(eo,R([si("align-top")]),f(ae,hs(n),r))])):f(Vi,R([si("flex items-center justify-center py-24")]),R([$i("No items")]))}),ms=u(function(n,r,t,e){var u=t.cl,a=t.ca;return f(bi,R([si("py-8")]),R([f(Ui,R([si("font-bold px-8 text-2xl")]),R([$i(r)])),f(bi,R([si("px-8")]),R([pf(u)])),f(bi,R([si("px-8")]),R([f(gs,n,a)])),f(bi,_,R([f(mf,n,e)]))]))}),xs=function(n){return f(Xi,_,R([$i(n)]))},ys=function(n){var r=n.aM,t=n.ca,e=n.cH,u=n.Y,a=n.ao,c="Events in "+r;return w("Stream "+r,u.b?f(bi,R([si("py-8")]),R([f(bi,R([si("px-8")]),R([f(Qi,R([si("flex items-center justify-center py-24")]),f(ae,xs,u))]))])):b(ms,a.aC,c,t,e))},ws=f(Ui,_,R([$i("404")])),ks=e(function(n,r,t){var e=r(t),u=e.b;return w(Ir(e.a),f(Oi,n,u))});Co={Main:{init:(Ro=(No={ci:Cc,cy:function(n){return{$:0,a:n}},cz:function(n){return{$:1,a:n}},cM:function(){return Nc},cX:ai,cY:function(n){var r=n.ao;if(1===r.$)return{aU:R([Si]),bN:ci(qr)};var t=r.a,e=function(n){switch(n.$){case 2:return s(ks,ke,ys,n.a);case 1:return s(ks,we,of,n.a);default:return w(qr,ws)}}(n.x),u=e.a,a=e.b;return{aU:R([s(Ti,Rc,s(ui,n,n.U,t),a)]),bN:ci(u)}}}).cy,Lo=No.cz,Oo=function(){Oo.a(Ro(wr()))},xr({aD:function(n){return Oo.a=n,Ar.addEventListener("popstate",Oo),0>Ar.navigator.userAgent.indexOf("Trident")||Ar.addEventListener("hashchange",Oo),t(function(r,t){if(!(t.ctrlKey||t.metaKey||t.shiftKey||t.button>=1||r.target||r.hasAttribute("download"))){t.preventDefault();var e=r.href,u=wr(),a=Zt(e).a;n(Lo(a&&u.bt===a.bt&&u.a9===a.a9&&u.bp.a===a.bp.a?{$:0,a:a}:function(n){return{$:1,a:n}}(e)))}})},ci:function(n){return s(No.ci,n,wr(),Oo)},cY:No.cY,cX:No.cX,cM:No.cM}))(f(Tt,function(n){return f(Tt,function(r){return f(Tt,function(t){return zt({aR:t,az:r,aC:n})},f(va,"apiUrl",vu))},f(va,"resVersion",vu))},f(va,"rootUrl",vu)))(0)}},n.Elm?function n(r,t){for(var e in t)e in r?"init"==e?h(6):n(r[e],t[e]):r[e]=t[e]}(n.Elm,Co):n.Elm=Co}(this);
|
5
|
-
},{}],"Focm":[function(require,module,exports) {
|
6
|
-
require("./style/style.css"),window.RubyEventStore={},window.RubyEventStore.Browser=require("./Main.elm");
|
7
|
-
},{"./style/style.css":"P4Zx","./Main.elm":"asWa"}]},{},["Focm"], null)
|
8
|
-
//# sourceMappingURL=ruby_event_store_browser.js.map
|
1
|
+
!function(M){"use strict";function Z(n,r,t){return t.a=n,t.f=r,t}function o(t){return Z(2,t,function(r){return function(n){return t(r,n)}})}function r(e){return Z(3,e,function(t){return function(r){return function(n){return e(t,r,n)}}})}function n(u){return Z(4,u,function(e){return function(t){return function(r){return function(n){return u(e,t,r,n)}}}})}function F(a){return Z(5,a,function(u){return function(e){return function(t){return function(r){return function(n){return a(u,e,t,r,n)}}}}})}function q(c){return Z(6,c,function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return c(a,u,e,t,r,n)}}}}}})}function J(o){return Z(7,o,function(c){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return o(c,a,u,e,t,r,n)}}}}}}})}function K(f){return Z(9,f,function(i){return function(o){return function(c){return function(a){return function(u){return function(e){return function(t){return function(r){return function(n){return f(i,o,c,a,u,e,t,r,n)}}}}}}}}})}function s(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function b(n,r,t,e){return 3===n.a?n.f(r,t,e):n(r)(t)(e)}function d(n,r,t,e,u){return 4===n.a?n.f(r,t,e,u):n(r)(t)(e)(u)}function l(n,r,t,e,u,a){return 5===n.a?n.f(r,t,e,u,a):n(r)(t)(e)(u)(a)}function U(n,r,t,e,u,a,c){return 6===n.a?n.f(r,t,e,u,a,c):n(r)(t)(e)(u)(a)(c)}function z(n,r,t,e,u,a,c,o){return 7===n.a?n.f(r,t,e,u,a,c,o):n(r)(t)(e)(u)(a)(c)(o)}var B=r(function(n,r,t){for(var e=Array(n),u=0;u<n;u++)e[u]=t(r+u);return e}),D=o(function(n,r){for(var t=Array(n),e=0;e<n&&r.b;e++)t[e]=r.a,r=r.b;return t.length=e,{a:t,b:r}});function W(n){throw Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}function i(n,r){for(var t,e=[],u=P(n,r,0,e);u&&(t=e.pop());u=P(t.a,t.b,0,e));return u}function P(n,r,t,e){if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&W(5),!1;if(100<t)return e.push({a:n,b:r}),!0;for(var u in n.$<0&&(n=Ft(n),r=Ft(r)),n)if(!P(n[u],r[u],t+1,e))return!1;return!0}function G(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=G(n.a,r.a))||(t=G(n.b,r.b))?t:G(n.c,r.c);for(;n.b&&r.b&&!(t=G(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}var V=o(function(n,r){n=G(n,r);return n<0?Kt:n?Jt:qt}),Q=0;function c(n,r){var t,e={};for(t in n)e[t]=n[t];for(t in r)e[t]=r[t];return e}function f(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t={$:1,a:n.a,b:r};n=n.b;for(var e=t;n.b;n=n.b)e=e.b={$:1,a:n.a,b:r};return t}var v={$:0};function H(n,r){return{$:1,a:n,b:r}}var X=o(H);function $(n){for(var r=v,t=n.length;t--;)r={$:1,a:n[t],b:r};return r}function Y(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var nn=r(function(n,r,t){for(var e=[];r.b&&t.b;r=r.b,t=t.b)e.push(s(n,r.a,t.a));return $(e)}),rn=o(function(n,r){return n+r}),tn=o(function(n,r){r%=n;return 0===n?W(11):0<r&&n<0||r<0&&0<n?r+n:r});var en=Math.ceil,un=Math.floor,an=Math.round,cn=Math.log;var on=o(function(n,r){return n+r});var fn=o(function(n,r){return r.split(n)}),bn=o(function(n,r){return r.join(n)}),sn=r(function(n,r,t){return t.slice(n,r)});var dn=o(function(n,r){for(var t=r.length;t--;){var e=r[t],u=r.charCodeAt(t);if(!n(e=u<56320||57343<u?e:r[--t]+e))return!1}return!0}),ln=o(function(n,r){return!!~r.indexOf(n)}),vn=o(function(n,r){return 0==r.indexOf(n)}),$n=o(function(n,r){var t=n.length;if(t<1)return v;for(var e=0,u=[];-1<(e=r.indexOf(n,e));)u.push(e),e+=t;return $(u)});function pn(n){return n+""}var hn={$:2,b:function(n){return"boolean"==typeof n?x(n):Rn("a BOOL",n)}},gn={$:2,b:function(n){return"number"==typeof n?x(n):Rn("a FLOAT",n)}},yn={$:2,b:function(n){return x(n)}},xn={$:2,b:function(n){return"string"==typeof n?x(n):n instanceof String?x(n+""):Rn("a STRING",n)}};var mn=o(function(n,r){return{$:6,d:n,b:r}});var wn=o(function(n,r){return{$:10,b:r,h:n}});var An=o(function(n,r){return{$:9,f:n,g:[r]}}),kn=r(function(n,r,t){return{$:9,f:n,g:[r,t]}}),jn=o(function(n,r){try{return _n(n,JSON.parse(r))}catch(n){return y(s(Ut,"This is not valid JSON! "+n.message,r))}}),En=o(_n);function _n(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?x(n.c):Rn("null",r);case 3:return Tn(r)?Ln(n.b,r,$):Rn("a LIST",r);case 4:return Tn(r)?Ln(n.b,r,Cn):Rn("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return Rn("an OBJECT with a field named `"+t+"`",r);var e=_n(n.b,r[t]);return je(e)?e:y(s(zt,t,e.a));case 7:t=n.e;if(!Tn(r))return Rn("an ARRAY",r);if(r.length<=t)return Rn("a LONGER array. Need index "+t+" but only see "+r.length+" entries",r);e=_n(n.b,r[t]);return je(e)?e:y(s(Bt,t,e.a));case 8:if("object"!=typeof r||null===r||Tn(r))return Rn("an OBJECT",r);var u,a=v;for(u in r)if(r.hasOwnProperty(u)){e=_n(n.b,r[u]);if(!je(e))return y(s(zt,u,e.a));a={$:1,a:{a:u,b:e.a},b:a}}return x(ee(a));case 9:for(var c=n.f,o=n.g,i=0;i<o.length;i++){e=_n(o[i],r);if(!je(e))return e;c=c(e.a)}return x(c);case 10:e=_n(n.b,r);return je(e)?_n(n.h(e.a),r):e;case 11:for(var f=v,b=n.g;b.b;b=b.b){e=_n(b.a,r);if(je(e))return e;f={$:1,a:e.a,b:f}}return y(Dt(ee(f)));case 1:return y(s(Ut,n.a,r));case 0:return x(n.a)}}function Ln(n,r,t){for(var e=r.length,u=Array(e),a=0;a<e;a++){var c=_n(n,r[a]);if(!je(c))return y(s(Bt,a,c.a));u[a]=c.a}return x(t(u))}function Tn(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function Cn(r){return s(ke,r.length,function(n){return r[n]})}function Rn(n,r){return y(s(Ut,"Expecting "+n,r))}function Nn(n,r){if(n===r)return!0;if(n.$!==r.$)return!1;switch(n.$){case 0:case 1:return n.a===r.a;case 2:return n.b===r.b;case 5:return n.c===r.c;case 3:case 4:case 8:return Nn(n.b,r.b);case 6:return n.d===r.d&&Nn(n.b,r.b);case 7:return n.e===r.e&&Nn(n.b,r.b);case 9:return n.f===r.f&&Sn(n.g,r.g);case 10:return n.h===r.h&&Nn(n.b,r.b);case 11:return Sn(n.g,r.g)}}function Sn(n,r){var t=n.length;if(t!==r.length)return!1;for(var e=0;e<t;e++)if(!Nn(n[e],r[e]))return!1;return!0}var On=o(function(n,r){return JSON.stringify(r,null,n)+""});function In(n){return n}function Mn(n){return{$:0,a:n}}var Zn=o(function(n,r){return{$:3,b:n,d:r}});var Fn=0;function qn(n){n={$:0,e:Fn++,f:n,g:null,h:[]};return Dn(n),n}function Jn(r){return{$:2,b:function(n){n({$:0,a:qn(r)})},c:null}}function Kn(n,r){n.h.push(r),Dn(n)}var Un=o(function(r,t){return{$:2,b:function(n){Kn(r,t),n({$:0,a:Q})},c:null}});var zn=!1,Bn=[];function Dn(n){if(Bn.push(n),!zn){for(zn=!0;n=Bn.shift();)!function(r){for(;r.f;){var n=r.f.$;if(0===n||1===n){for(;r.g&&r.g.$!==n;)r.g=r.g.i;if(!r.g)return;r.f=r.g.b(r.f.a),r.g=r.g.i}else{if(2===n)return r.f.c=r.f.b(function(n){r.f=n,Dn(r)});if(5===n){if(0===r.h.length)return;r.f=r.f.b(r.h.shift())}else r.g={$:3===n?0:1,b:r.f.b,i:r.g},r.f=r.f.d}}}(n);zn=!1}}function Wn(n,r,t,e,u,a){var n=s(En,n,r?r.flags:void 0),c=(je(n)||W(2),{}),r=t(n.a),o=r.a,i=a(f,o),t=function(n,r){var t,e;for(e in Pn){var u=Pn[e];u.a&&((t=t||{})[e]=u.a(e,r)),n[e]=function(n,r){var e={g:r,h:void 0},u=n.c,a=n.d,c=n.e,o=n.f;function i(t){return s(Zn,i,{$:5,b:function(n){var r=n.a;return 0===n.$?b(a,e,r,t):c&&o?d(u,e,r.i,r.j,t):b(u,e,c?r.i:r.j,t)}})}return e.h=qn(s(Zn,i,n.b))}(u,r)}return t}(c,f);function f(n,r){n=s(e,n,o);i(o=n.a,r),rr(c,n.b,u(o))}return rr(c,r.b,u(o)),t?{ports:t}:{}}var Pn={};var Gn=o(function(r,t){return{$:2,b:function(n){r.g(t),n({$:0,a:Q})},c:null}}),Vn=o(function(n,r){return s(Un,n.h,{$:0,a:r})});function Qn(r){return function(n){return{$:1,k:r,l:n}}}function Hn(n){return{$:2,m:n}}var Xn=o(function(n,r){return{$:3,n:n,o:r}}),Yn=[],nr=!1;function rr(n,r,t){if(Yn.push({p:n,q:r,r:t}),!nr){nr=!0;for(var e;e=Yn.shift();)!function(n,r,t){var e,u={};for(e in tr(!0,r,u,null),tr(!1,t,u,null),n)Kn(n[e],{$:"fx",a:u[e]||{i:v,j:v}})}(e.p,e.q,e.r);nr=!1}}function tr(n,r,t,e){switch(r.$){case 1:var u=r.k,a=function(n,r,t,e){function u(n){for(var r=t;r;r=r.t)n=r.s(n);return n}return s(n?Pn[r].e:Pn[r].f,u,e)}(n,u,e,r.l);return void(t[u]=function(n,r,t){return t=t||{i:v,j:v},n?t.i={$:1,a:r,b:t.i}:t.j={$:1,a:r,b:t.j},t}(n,a,t[u]));case 2:for(var c=r.m;c.b;c=c.b)tr(n,c.a,t,e);return;case 3:tr(n,r.o,t,{s:r.n,t:e})}}var er;var ur="undefined"!=typeof document?document:{};function ar(n){return{$:0,a:n}}var p=o(function(a,c){return o(function(n,r){for(var t=[],e=0;r.b;r=r.b){var u=r.a;e+=u.b||0,t.push(u)}return e+=t.length,{$:1,c:c,d:dr(n),e:t,f:a,b:e}})})(void 0);o(function(a,c){return o(function(n,r){for(var t=[],e=0;r.b;r=r.b){var u=r.a;e+=u.b.b||0,t.push(u)}return e+=t.length,{$:2,c:c,d:dr(n),e:t,f:a,b:e}})})(void 0);var cr=o(function(n,r){return{$:4,j:n,k:r,b:1+(r.b||0)}});var or=o(function(n,r){return{$:"a0",n:n,o:r}}),ir=o(function(n,r){return{$:"a1",n:n,o:r}}),fr=o(function(n,r){return{$:"a2",n:n,o:r}}),br=o(function(n,r){return{$:"a3",n:n,o:r}});var sr;function dr(n){for(var r={};n.b;n=n.b){var t,e=n.a,u=e.$,a=e.n,e=e.o;"a2"===u?"className"===a?lr(r,a,e):r[a]=e:(t=r[u]||(r[u]={}),"a3"===u&&"class"===a?lr(t,a,e):t[a]=e)}return r}function lr(n,r,t){var e=n[r];n[r]=e?e+" "+t:t}function vr(n,r){var t=n.$;if(5===t)return vr(n.k||(n.k=n.m()),r);if(0===t)return ur.createTextNode(n.a);if(4===t){for(var e=n.k,u=n.j;4===e.$;)"object"!=typeof u?u=[u,e.j]:u.push(e.j),e=e.k;var a={j:u,p:r};return(c=vr(e,a)).elm_event_node_ref=a,c}if(3===t)return $r(c=n.h(n.g),r,n.d),c;var c=n.f?ur.createElementNS(n.f,n.c):ur.createElement(n.c);er&&"a"==n.c&&c.addEventListener("click",er(c)),$r(c,r,n.d);for(var o=n.e,i=0;i<o.length;i++)c.appendChild(vr(1===t?o[i]:o[i].b,r));return c}function $r(n,r,t){for(var e in t){var u=t[e];"a1"===e?function(n,r){var t,e=n.style;for(t in r)e[t]=r[t]}(n,u):"a0"===e?function(n,r,t){var e,u=n.elmFs||(n.elmFs={});for(e in t){var a=t[e],c=u[e];if(a){if(c){if(c.q.$===a.$){c.q=a;continue}n.removeEventListener(e,c)}c=function(i,n){function f(n){var r=f.q,t=_n(r.a,n);if(je(t)){for(var e,r=Le(r),t=t.a,u=r?r<3?t.a:t.C:t,a=1==r?t.b:3==r&&t.a4,c=(a&&n.stopPropagation(),(2==r?t.b:3==r&&t.aO)&&n.preventDefault(),i);e=c.j;){if("function"==typeof e)u=e(u);else for(var o=e.length;o--;)u=e[o](u);c=c.p}c(u,a)}}return f.q=n,f}(r,a),n.addEventListener(e,c,sr&&{passive:Le(a)<2}),u[e]=c}else n.removeEventListener(e,c),u[e]=void 0}}(n,r,u):"a3"===e?function(n,r){for(var t in r){var e=r[t];void 0!==e?n.setAttribute(t,e):n.removeAttribute(t)}}(n,u):"a4"===e?function(n,r){for(var t in r){var e=r[t],u=e.f,e=e.o;void 0!==e?n.setAttributeNS(u,t,e):n.removeAttributeNS(u,t)}}(n,u):("value"!==e&&"checked"!==e||n[e]!==u)&&(n[e]=u)}}try{window.addEventListener("t",null,Object.defineProperty({},"passive",{get:function(){sr=!0}}))}catch(n){}function pr(n,r){var t=[];return hr(n,r,t,0),t}function T(n,r,t,e){r={$:r,r:t,s:e,t:void 0,u:void 0};return n.push(r),r}function hr(n,r,t,e){if(n!==r){var u=n.$,a=r.$;if(u!==a){if(1!==u||2!==a)return void T(t,0,e,r);r=function(n){for(var r=n.e,t=r.length,e=Array(t),u=0;u<t;u++)e[u]=r[u].b;return{$:1,c:n.c,d:n.d,e:e,f:n.f,b:n.b}}(r),a=1}switch(a){case 5:for(var c=n.l,o=r.l,i=c.length,f=i===o.length;f&&i--;)f=c[i]===o[i];if(f)return void(r.k=n.k);r.k=r.m();var b=[];return hr(n.k,r.k,b,0),void(0<b.length&&T(t,1,e,b));case 4:for(var s=n.j,d=r.j,l=!1,v=n.k;4===v.$;)l=!0,"object"!=typeof s?s=[s,v.j]:s.push(v.j),v=v.k;for(var $=r.k;4===$.$;)l=!0,"object"!=typeof d?d=[d,$.j]:d.push($.j),$=$.k;return l&&s.length!==d.length?void T(t,0,e,r):((l?function(n,r){for(var t=0;t<n.length;t++)if(n[t]!==r[t])return;return 1}(s,d):s===d)||T(t,2,e,d),void hr(v,$,t,e+1));case 0:return void(n.a!==r.a&&T(t,3,e,r.a));case 1:return void gr(n,r,t,e,xr);case 2:return void gr(n,r,t,e,mr);case 3:if(n.h!==r.h)return void T(t,0,e,r);b=yr(n.d,r.d),b=(b&&T(t,4,e,b),r.i(n.g,r.g));b&&T(t,5,e,b)}}}function gr(n,r,t,e,u){var a;n.c!==r.c||n.f!==r.f?T(t,0,e,r):((a=yr(n.d,r.d))&&T(t,4,e,a),u(n,r,t,e))}function yr(n,r,t){var e,u,a,c,o;for(u in n)"a1"===u||"a0"===u||"a3"===u||"a4"===u?(a=yr(n[u],r[u]||{},u))&&((e=e||{})[u]=a):u in r?(a=n[u])===(c=r[u])&&"value"!==u&&"checked"!==u||"a0"===t&&function(n,r){return n.$==r.$&&Nn(n.a,r.a)}(a,c)||((e=e||{})[u]=c):(e=e||{})[u]=t?"a1"===t?"":"a0"===t||"a3"===t?void 0:{f:n[u].f,o:void 0}:"string"==typeof n[u]?"":null;for(o in r)o in n||((e=e||{})[o]=r[o]);return e}function xr(n,r,t,e){var u=n.e,a=r.e,n=u.length,r=a.length;r<n?T(t,6,e,{v:r,i:n-r}):n<r&&T(t,7,e,{v:n,e:a});for(var c=n<r?n:r,o=0;o<c;o++){var i=u[o];hr(i,a[o],t,++e),e+=i.b||0}}function mr(n,r,t,e){for(var u=[],a={},c=[],o=n.e,i=r.e,f=o.length,b=i.length,s=0,d=0,l=e;s<f&&d<b;){var v=o[s],$=i[d],p=v.a,h=$.a,g=v.b,y=$.b,x=void 0,m=void 0;if(p===h)hr(g,y,u,++l),l+=g.b||0,s++,d++;else{var w,A,k,j,E=o[s+1],_=i[d+1];if(E&&(A=E.b,m=h===(w=E.a)),_&&(j=_.b,x=p===(k=_.a)),x&&m)hr(g,j,u,++l),Ar(a,u,p,y,d,c),l+=g.b||0,kr(a,u,p,A,++l),l+=A.b||0,s+=2,d+=2;else if(x)l++,Ar(a,u,h,y,d,c),hr(g,j,u,l),l+=g.b||0,s+=1,d+=2;else if(m)kr(a,u,p,g,++l),l+=g.b||0,hr(A,y,u,++l),l+=A.b||0,s+=2,d+=1;else{if(!E||w!==k)break;kr(a,u,p,g,++l),Ar(a,u,h,y,d,c),l+=g.b||0,hr(A,j,u,++l),l+=A.b||0,s+=2,d+=2}}}for(;s<f;){g=(v=o[s]).b;kr(a,u,v.a,g,++l),l+=g.b||0,s++}for(;d<b;){var L=L||[];Ar(a,u,($=i[d]).a,$.b,void 0,L),d++}(0<u.length||0<c.length||L)&&T(t,8,e,{w:u,x:c,y:L})}var wr="_elmW6BL";function Ar(n,r,t,e,u,a){var c,o=n[t];if(o)return 1===o.c?(a.push({r:u,A:o}),o.c=2,hr(o.z,e,c=[],o.r),o.r=u,void(o.s.s={w:c,A:o})):void Ar(n,r,t+wr,e,u,a);a.push({r:u,A:o={c:0,z:e,r:u,s:void 0}}),n[t]=o}function kr(n,r,t,e,u){var a,c=n[t];if(c)return 0===c.c?(c.c=2,hr(e,c.z,a=[],u),void T(r,9,u,{w:a,A:c})):void kr(n,r,t+wr,e,u);a=T(r,9,u,void 0),n[t]={c:1,z:e,r:u,s:a}}function jr(n,r,t,e){!function n(r,t,e,u,a,c,o){var i=e[u];var f=i.r;for(;f===a;){var b,s=i.$;if(1===s?jr(r,t.k,i.s,o):8===s?(i.t=r,i.u=o,0<(b=i.s.w).length&&n(r,t,b,0,a,c,o)):9===s?(i.t=r,i.u=o,(s=i.s)&&(s.A.s=r,0<(b=s.w).length&&n(r,t,b,0,a,c,o))):(i.t=r,i.u=o),!(i=e[++u])||(f=i.r)>c)return u}var d=t.$;if(4===d){for(var l=t.k;4===l.$;)l=l.k;return n(r,l,e,u,a+1,c,r.elm_event_node_ref)}var v=t.e;var $=r.childNodes;for(var p=0;p<v.length;p++){var h=1===d?v[p]:v[p].b,g=++a+(h.b||0);if(a<=f&&f<=g&&(u=n($[p],h,e,u,a,g,o),!(i=e[u])||(f=i.r)>c))return u;a=g}return u}(n,r,t,0,0,r.b,e)}function Er(n,r,t,e){return 0===t.length?n:(jr(n,r,t,e),_r(n,t))}function _r(n,r){for(var t=0;t<r.length;t++){var e=r[t],u=e.t,e=function(n,r){switch(r.$){case 0:return function(n,r,t){var e=n.parentNode,r=vr(r,t);r.elm_event_node_ref||(r.elm_event_node_ref=n.elm_event_node_ref);e&&r!==n&&e.replaceChild(r,n);return r}(n,r.s,r.u);case 4:return $r(n,r.u,r.s),n;case 3:return n.replaceData(0,n.length,r.s),n;case 1:return _r(n,r.s);case 2:return n.elm_event_node_ref?n.elm_event_node_ref.j=r.s:n.elm_event_node_ref={j:r.s,p:r.u},n;case 6:for(var t=r.s,e=0;e<t.i;e++)n.removeChild(n.childNodes[t.v]);return n;case 7:for(var u=(t=r.s).e,e=t.v,a=n.childNodes[e];e<u.length;e++)n.insertBefore(vr(u[e],r.u),a);return n;case 9:if(!(t=r.s))return n.parentNode.removeChild(n),n;var c=t.A;return void 0!==c.r&&n.parentNode.removeChild(n),c.s=_r(n,t.w),n;case 8:return function(n,r){for(var t=r.s,e=function(n,r){if(n){for(var t=ur.createDocumentFragment(),e=0;e<n.length;e++){var u=n[e].A;t.appendChild(2===u.c?u.s:vr(u.z,r.u))}return t}}(t.y,r),u=(n=_r(n,t.w),t.x),a=0;a<u.length;a++){var c=u[a],o=c.A,o=2===o.c?o.s:vr(o.z,r.u);n.insertBefore(o,n.childNodes[c.r])}e&&n.appendChild(e);return n}(n,r);case 5:return r.s(n);default:W(10)}}(u,e);u===n&&(n=e)}return n}function Lr(n){if(3===n.nodeType)return{$:0,a:n.textContent};if(1!==n.nodeType)return{$:0,a:""};for(var r=v,t=n.attributes,e=t.length;e--;)var u=t[e],r={$:1,a:s(br,u.name,u.value),b:r};for(var a=n.tagName.toLowerCase(),c=v,o=n.childNodes,e=o.length;e--;)c={$:1,a:Lr(o[e]),b:c};return b(p,a,r,c)}var Tr=n(function(r,n,t,e){return Wn(n,e,r.cI,r.dl,r.da,function(e,n){var u=r.aX&&r.aX(e),a=r.dm,c=ur.title,o=ur.body,i=Lr(o);return Nr(n,function(n){er=u;var n=a(n),r=p("body")(v)(n.bg),t=pr(i,r);o=Er(o,i,t,e),i=r,er=0,c!==n.cb&&(ur.title=c=n.cb)})})}),Cr="undefined"!=typeof cancelAnimationFrame?cancelAnimationFrame:function(n){clearTimeout(n)},Rr="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:function(n){return setTimeout(n,1e3/60)};function Nr(t,e){e(t);var u=0;function a(){u=1===u?0:(Rr(a),e(t),1)}return function(n,r){t=n,r?(e(t),2===u&&(u=1)):(0===u&&Rr(a),u=2)}}function Sr(){return Ue(ur.location.href).a||W(1)}var Or=o(function(n,r){return s(Xe,ze,{$:2,b:function(){history.pushState({},"",r),n()},c:null})}),Ir={addEventListener:function(){},removeEventListener:function(){}},Mr="undefined"!=typeof window?window:Ir;var Ir=F(function(n,r,t,e,u){for(var a=n.length,c=r+a<=u.length,o=0;c&&o<a;)var i=u.charCodeAt(r),c=n[o++]===u[r++]&&(10==i?(t++,e=1):(e++,55296==(63488&i)?n[o++]===u[r++]:1));return{a:c?r:-1,b:t,c:e}}),Zr=r(function(n,r,t){return r<t.length?55296==(63488&t.charCodeAt(r))?n(t.substr(r,2))?r+2:-1:n(t[r])?"\n"===t[r]?-2:r+1:-1:-1}),Fr=r(function(e,u,a){return{$:2,b:function(r){function t(n){r(u(a.ay.a(n)))}var n=new XMLHttpRequest;n.addEventListener("error",function(){t(Sa)}),n.addEventListener("timeout",function(){t(Ma)}),n.addEventListener("load",function(){t(function(n,r){return s(200<=r.status&&r.status<300?Na:Ca,function(n){return{bb:n.responseURL,c8:n.status,c9:n.statusText,bu:function(n){if(!n)return mu;for(var r=mu,t=n.split("\r\n"),e=t.length;e--;){var u,a,c=t[e],o=c.indexOf(": ");0<o&&(u=c.substring(0,o),a=c.substring(2+o),r=b(yu,u,function(n){return m(Za(n)?a+", "+n.a:a)},r))}return r}(n.getAllResponseHeaders())}}(r),n(r.response))}(a.ay.b,n))}),Za(a.cc)&&function(r,t,e){t.upload.addEventListener("progress",function(n){t.c||qn(s(Fa,r,{a:e,b:Ia({c7:n.loaded,b4:n.total})}))}),t.addEventListener("progress",function(n){t.c||qn(s(Fa,r,{a:e,b:Oa({c3:n.loaded,b4:n.lengthComputable?m(n.total):w})}))})}(e,n,a.cc.a);try{n.open(a.cM,a.bb,!0)}catch(n){return t(Ra(a.bb))}return function(n,r){for(var t=r.bu;t.b;t=t.b)n.setRequestHeader(t.a.a,t.a.b);n.timeout=r.dd.a||0,n.responseType=r.ay.d,n.withCredentials=r.ck}(n,a),a.bg.a&&n.setRequestHeader("Content-Type",a.bg.a),n.send(a.bg.b),function(){n.c=!0,n.abort()}},c:null}});var qr=r(function(n,r,t){return{$:0,d:n,b:r,a:t}}),Jr=o(function(r,t){return{$:0,d:t.d,b:t.b,a:function(n){return r(t.a(n))}}});function Kr(n){return s(Vt,"\n ",s(Qt,"\n",n))}function Ur(n){return b(Ht,o(function(n,r){return r+1}),0,n)}function zr(n){return 97<=(n=te(n))&&n<=122}function Br(n){return(n=te(n))<=90&&65<=n}function Dr(n){return(n=te(n))<=57&&48<=n}function Wr(n){return zr(n)||Br(n)||Dr(n)}function Pr(n){return n}function Gr(n){return n}function Vr(n){return b(We,Ge(g),Be(v),n)}function Qr(n){return{$:1,a:n}}function Hr(n){return{$:2,a:n}}function Xr(n){var r,t,e,u,a,c,o,i;return-1===n.$&&-1===n.d.$&&-1===n.e.$?-1!==n.e.d.$||n.e.d.a?(e=(i=n.e).b,u=i.c,a=i.d,i=i.e,l(E,1,n.b,n.c,l(E,0,(r=n.d).b,r.c,r.d,r.e),l(E,0,e,u,a,i))):(e=(t=n.e).b,u=t.c,c=(a=t.d).d,o=a.e,i=t.e,l(E,0,a.b,a.c,l(E,1,n.b,n.c,l(E,0,(r=n.d).b,r.c,r.d,r.e),c),l(E,1,e,u,o,i))):n}function Yr(n){var r,t,e,u,a,c,o,i,f;return-1===n.$&&-1===n.d.$&&-1===n.e.$?-1!==n.d.d.$||n.d.d.a?(c=(f=n.e).b,o=f.c,i=f.d,f=f.e,l(E,1,r=n.b,t=n.c,l(E,0,(u=n.d).b,u.c,u.d,u=u.e),l(E,0,c,o,i,f))):(r=n.b,t=n.c,u=(e=n.d).e,c=(a=n.e).b,o=a.c,i=a.d,f=a.e,l(E,0,e.b,e.c,l(E,1,(a=e.d).b,a.c,a.d,a.e),l(E,1,r,t,u,l(E,0,c,o,i,f)))):n}function nt(n){var r,t,e,u,a,c;return-1===n.$&&-1===n.d.$?(r=n.a,t=n.b,e=n.c,c=(u=n.d).d,a=n.e,1===u.a?-1!==c.$||c.a?-1===(c=Xr(n)).$?(n=c.e,l(du,c.a,c.b,c.c,nt(c.d),n)):su:l(E,r,t,e,nt(u),a):l(E,r,t,e,nt(u),a)):su}function rt(n){return{$:0,a:n}}function tt(n){return{$:1,a:n}}function et(c){return function(n){var r,t=n.I,e=n.E,u=n.G,a=n.F,n=n.A;return e.b?(r=e.b,i(e=e.a,c)?$([l(au,s(g,e,t),r,u,a,n)]):v):v}}function ut(r){return s(ju,function(n){return n(r)},It)}function at(n){return{$:2,a:n}}function ct(n){return s(Vt,"",n)}function ot(n){return Lu(n.bQ)+(" at row "+A(n.bZ)+(", col "+A(n.bj)))}function it(n){return i(Re(n.a),n.b)?b(Nu,!1,0,n):s(Ru,!1,s(Mu,n,Mt))}function ft(n){return{$:1,a:n}}function bt(n){return n.$?{$:1,a:n.a}:{$:0,a:n.a}}function t(t){return s(aa,"",function(r){var n;return i(Re(r),t)?(n=Me(r)).$?Uu('Invalid integer: "'+r+'"'):s(ua,ft,_(n.a)):s(ua,function(n){return{$:0,a:s(Yu,r,n)}},Ku(s(ra,Dr,na)))})}function st(n){return ia(s(ca,n,{$:8,a:n}))}function h(n){return Uu("Invalid day: "+A(n))}function dt(n){return!(s(L,4,n)||!s(L,100,n)&&s(L,400,n))}function lt(n){return((n-=1)/4|0)-(n/100|0)+(n/400|0)}function vt(n){return b(sa,n.bZ,n.bj,n.bQ)}function $t(n){return $a($([s(e,m,n),_e(w)]))}function pt(n){return b(_a,"#",n.br,b(_a,"?",n.bT,f(s(Ea,n.bO,f(n.bS?"https://":"http://",n.bw)),n.ao)))}function ht(n){return{$:4,a:n}}function gt(n){return function(n){return tc(Pa({ck:!1,bg:n.bg,ay:n.ay,bu:n.bu,cM:n.cM,dd:n.dd,cc:n.cc,bb:n.bb}))}({bg:Wa,ay:n.ay,bu:v,cM:"GET",dd:w,cc:w,bb:n.bb})}function yt(n){return{$:2,a:n}}function xt(n){return{$:2,a:n}}function mt(n){return n.a+"="+n.b}function wt(n){return{$:3,a:n}}function At(n){return{$:4,a:n}}function kt(n){return{$:1,a:n}}function jt(n){return n.$?"RubyEventStore::Browser":"RubyEventStore::Browser - "+n.a}function Et(n){return s(Vc,"href",/^javascript:/i.test((n=n).replace(/\s/g,""))?"":n)}function _t(n){return{$:1,a:n}}function Lt(n){return s(ro,$([N("flex bg-red-700 px-8 h-16")]),$([s(R,$([N("flex items-center")]),$([s(Pc,$([Et(pt(n.aA.aU)),N("text-gray-100 font-semibold")]),$([S("Ruby Event Store")]))])),s(R,$([N("flex-1")]),v),s(R,$([N("flex items-center")]),$([s(Yc,$([s(oo,"submit",s(e,co,_e(Xc)))]),$([s(no,$([N("rounded px-4 py-2"),fo(n.bB.O),s(uo,"input",s(e,to,s(e,_t,ao))),io("Go to stream...")]),v)]))]))]))}function Tt(n){return{$:4,a:n}}function Ct(n){return{$:3,a:n}}function Rt(n){return{$:2,a:n}}function Nt(n){return{$:1,a:n}}function St(n){return{$:0,a:n}}function Ot(n){return s(Ee,n,_e(0))}var It,Mt,g=X,Zt=r(function(n,r,t){for(;;){if(-2===t.$)return r;var e=t.d,u=n,a=b(n,t.b,t.c,b(Zt,n,r,t.e));n=u,r=a,t=e}}),Ft=function(n){return b(Zt,r(function(n,r,t){return s(g,{a:n,b:r},t)}),v,n)},qt=1,Jt=2,Kt=0,y=function(n){return{$:1,a:n}},Ut=o(function(n,r){return{$:3,a:n,b:r}}),zt=o(function(n,r){return{$:0,a:n,b:r}}),Bt=o(function(n,r){return{$:1,a:n,b:r}}),x=function(n){return{$:0,a:n}},Dt=function(n){return{$:2,a:n}},Wt=rn,m=function(n){return{$:0,a:n}},w={$:1},Pt=dn,Gt=On,A=pn,Vt=o(function(n,r){return s(bn,n,Y(r))}),Qt=o(function(n,r){return $(s(fn,n,r))}),Ht=r(function(n,r,t){for(;;){if(!t.b)return r;var e=t.b,u=n,a=s(n,t.a,r);n=u,r=a,t=e}}),Xt=nn,Yt=r(function(n,r,t){for(;;){if(G(n,r)>=1)return t;var e=n,u=r-1,a=s(g,r,t);n=e,r=u,t=a}}),ne=o(function(n,r){return b(Yt,n,r,v)}),re=o(function(n,r){return b(Xt,n,s(ne,0,Ur(r)-1),r)}),te=function(n){var r=n.charCodeAt(0);return r<55296||56319<r?r:1024*(r-55296)+n.charCodeAt(1)-56320+65536},ee=function(n){return b(Ht,g,v,n)},ue=function(n){var r=n.charCodeAt(0);return isNaN(r)?w:m(r<55296||56319<r?{a:n[0],b:n.slice(1)}:{a:n[0]+n[1],b:n.slice(2)})},ae=o(function(n,r){return"\n\n("+A(n+1)+(") "+Kr(ce(r)))}),ce=function(n){return s(oe,n,v)},oe=o(function(n,r){for(;;)switch(n.$){case 0:var t=n.a,e=n.b,u=(u=a=void 0,1!==(u=ue(t)).$&&(a=(u=u.a).b,function(n){return zr(n)||Br(n)}(u.a)&&s(Pt,Wr,a)));n=e,r=s(g,u?"."+t:"['"+t+"']",r);continue;case 1:var e=n.b,a="["+A(n.a)+"]";n=e,r=s(g,a,r);continue;case 2:u=n.a;if(u.b){if(u.b.b)return c=(r.b?"The Json.Decode.oneOf at json"+s(Vt,"",ee(r)):"Json.Decode.oneOf")+" failed in the following "+A(Ur(u))+" ways:",s(Vt,"\n\n",s(g,c,s(re,ae,u)));n=e=u.a,r=r;continue}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+s(Vt,"",ee(r)):"!");default:var c,t=n.a,o=n.b;return(c=r.b?"Problem with the value at json"+s(Vt,"",ee(r))+":\n\n ":"Problem with the given value:\n\n")+(Kr(s(Gt,4,o))+"\n\n")+t}var a,u}),ie=n(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),fe=[],be=en,se=o(function(n,r){return cn(r)/cn(n)}),de=be(s(se,2,32)),le=d(ie,0,de,fe,fe),ve=B,$e=o(function(n,r){return n(r)}),X=o(function(n,r){return r(n)}),pe=un,he=function(n){return n.length},ge=o(function(n,r){return 0<G(n,r)?n:r}),ye=D,xe=o(function(n,r){for(;;){var t=s(ye,32,n),e=t.b,t=s(g,{$:0,a:t.a},r);if(!e.b)return ee(t);n=e,r=t}}),me=o(function(n,r){for(;;){var t=be(r/32);if(1===t)return s(ye,32,n).a;n=s(xe,n,v),r=t}}),we=o(function(n,r){var t,e;return r.f?(e=pe(s(se,32,(t=32*r.f)-1)),n=n?ee(r.i):r.i,n=s(me,n,r.f),d(ie,he(r.h)+t,s(ge,5,e*de),n,r.h)):d(ie,he(r.h),de,fe,r.h)}),Ae=F(function(n,r,t,e,u){for(;;){if(r<0)return s(we,!1,{i:e,f:t/32|0,h:u});var a={$:1,a:b(ve,32,r,n)};n=n,r=r-32,t=t,e=s(g,a,e),u=u}}),ke=o(function(n,r){var t;return 0<n?l(Ae,r,n-(t=n%32)-32,n,v,b(ve,t,n-t,r)):le}),je=function(n){return!n.$},Ee=wn,e=An,rn=kn,_e=function(n){return{$:0,a:n}},Le=function(n){switch(n.$){case 0:return 0;case 1:return 1;case 2:return 2;default:return 3}},Te=q(function(n,r,t,e,u,a){return{br:a,bw:r,ao:e,bO:t,bS:n,bT:u}}),Ce=ln,Re=function(n){return n.length},Ne=sn,Se=o(function(n,r){return n<1?r:b(Ne,n,Re(r),r)}),Oe=$n,Ie=o(function(n,r){return n<1?"":b(Ne,0,n,r)}),Me=function(n){for(var r=0,t=n.charCodeAt(0),e=43==t||45==t?1:0,u=e;u<n.length;++u){var a=n.charCodeAt(u);if(a<48||57<a)return w;r=10*r+a-48}return u==e?w:m(45==t?-r:r)},Ze=F(function(n,r,t,e,u){var a,c;return""===u||s(Ce,"@",u)?w:(a=s(Oe,":",u)).b?a.b.b||1===(c=Me(s(Se,(a=a.a)+1,u))).$?w:(c=c,m(U(Te,n,s(Ie,a,u),c,r,t,e))):m(U(Te,n,u,w,r,t,e))}),Fe=n(function(n,r,t,e){var u;return""===e?w:(u=s(Oe,"/",e)).b?l(Ze,n,s(Se,u=u.a,e),r,t,s(Ie,u,e)):l(Ze,n,"/",r,t,e)}),qe=r(function(n,r,t){var e;return""===t?w:(e=s(Oe,"?",t)).b?d(Fe,n,m(s(Se,(e=e.a)+1,t)),r,s(Ie,e,t)):d(Fe,n,w,r,t)}),Je=o(function(n,r){var t;return""===r?w:(t=s(Oe,"#",r)).b?b(qe,n,m(s(Se,(t=t.a)+1,r)),s(Ie,t,r)):b(qe,n,w,r)}),Ke=vn,Ue=function(n){return s(Ke,"http://",n)?s(Je,0,s(Se,7,n)):s(Ke,"https://",n)?s(Je,1,s(Se,8,n)):w},ze=function(n){for(;;)0},Be=Mn,dn=Be(0),De=n(function(n,r,t,e){var u,a,c,o;return e.b?(u=e.a,(e=e.b).b?(a=e.a,(e=e.b).b?(c=e.a,(e=e.b).b?(o=e.b,s(n,u,s(n,a,s(n,c,s(n,e.a,500<t?b(Ht,n,r,ee(o)):d(De,n,r,t+1,o)))))):s(n,u,s(n,a,s(n,c,r)))):s(n,u,s(n,a,r))):s(n,u,r)):r}),We=r(function(n,r,t){return d(De,n,r,0,t)}),k=o(function(t,n){return b(We,o(function(n,r){return s(g,t(n),r)}),v,n)}),j=Zn,Pe=o(function(r,n){return s(j,function(n){return Be(r(n))},n)}),Ge=r(function(t,n,e){return s(j,function(r){return s(j,function(n){return Be(s(t,r,n))},e)},n)}),Ve=Gn,Qe=o(function(n,r){return Jn(s(j,Ve(n),r))}),He=(Pn.Task={b:dn,c:r(function(n,r,t){return s(Pe,function(n){return 0},Vr(s(k,Qe(n),r)))}),d:r(function(n,r,t){return Be(0)}),e:o(function(n,r){return s(Pe,n,r)}),f:void 0},Qn("Task")),Xe=o(function(n,r){return He(s(Pe,n,r))}),On=function(r){function t(){t.a(n(Sr()))}var n=r.cY,u=r.cZ;return Tr({aX:function(e){return t.a=e,Mr.addEventListener("popstate",t),~Mr.navigator.userAgent.indexOf("Trident")&&Mr.addEventListener("hashchange",t),o(function(n,r){var t;r.ctrlKey||r.metaKey||r.shiftKey||1<=r.button||n.target||n.hasAttribute("download")||(r.preventDefault(),r=n.href,n=Sr(),t=Ue(r).a,e(u(t&&n.bS===t.bS&&n.bw===t.bw&&n.bO.a===t.bO.a?{$:0,a:t}:{$:1,a:r})))})},cI:function(n){return b(r.cI,n,Sr(),t)},dm:r.dm,dl:r.dl,da:r.da})},Ye={$:0},nu=r(function(n,r,t){return{bd:r,aR:t,aU:n}}),ru=n(function(n,r,t,e){return 1===r.$||1===t.$||1===e.$?w:m(b(n,r.a,t.a,e.a))}),tu={O:""},eu=function(n){return{$:3,a:n}},uu=function(n){return{$:4,a:n}},au=F(function(n,r,t,e,u){return{F:e,G:t,E:r,A:u,I:n}}),cu=function(n){return n.b&&(""!==n.a||n.b.b)?s(g,n.a,cu(n.b)):v},ou=o(function(n,r){return m(1===r.$?$([n]):s(g,n,r.a))}),iu=function(n){try{return m(decodeURIComponent(n))}catch(n){return w}},fu=V,bu=o(function(n,r){for(;;){if(-2===r.$)return w;var t=r.c,e=r.d,u=r.e;switch(s(fu,n,r.b)){case 0:n=n,r=e;continue;case 1:return m(t);default:n=n,r=u;continue}}}),E=F(function(n,r,t,e,u){return{$:-1,a:n,b:r,c:t,d:e,e:u}}),su={$:-2},du=F(function(n,r,t,e,u){var a,c,o,i;return-1!==u.$||u.a?-1!==e.$||e.a||-1!==e.d.$||e.d.a?l(E,n,r,t,e,u):(a=e.d,i=e.e,l(E,0,e.b,e.c,l(E,1,a.b,a.c,a.d,a.e),l(E,1,r,t,i,u))):(a=u.b,c=u.c,o=u.d,u=u.e,-1!==e.$||e.a?l(E,n,a,c,l(E,0,r,t,e,o),u):l(E,0,r,t,l(E,1,e.b,e.c,e.d,i=e.e),l(E,1,a,c,o,u)))}),lu=r(function(n,r,t){if(-2===t.$)return l(E,0,n,r,su,su);var e=t.a,u=t.b,a=t.c,c=t.d,o=t.e;switch(s(fu,n,u)){case 0:return l(du,e,u,a,b(lu,n,r,c),o);case 1:return l(E,e,u,r,c,o);default:return l(du,e,u,a,c,b(lu,n,r,o))}}),vu=r(function(n,r,t){n=b(lu,n,r,t);return-1!==n.$||n.a?n:l(E,1,n.b,n.c,n.d,n.e)}),$u=J(function(n,r,t,e,u,a,c){if(-1!==a.$||a.a){for(;;){if(-1!==c.$||1!==c.a)break;if(-1!==c.d.$)return Yr(r);if(1===c.d.a)return Yr(r);break}return r}return l(E,t,a.b,a.c,a.d,l(E,0,e,u,a.e,c))}),pu=o(function(n,r){var t,e,u,a,c,o,i;return-2===r.$?su:(t=r.a,u=r.c,a=r.d,c=r.e,G(n,e=r.b)<0?-1===a.$&&1===a.a?-1!==(o=a.d).$||o.a?-1===(o=Xr(r)).$?(i=o.e,l(du,o.a,o.b,o.c,s(pu,n,o.d),i)):su:l(E,t,e,u,s(pu,n,a),c):l(E,t,e,u,s(pu,n,a),c):s(hu,n,z($u,n,r,t,e,u,a,c)))}),hu=o(function(n,r){var t,e,u,a,c;return-1===r.$?(t=r.a,e=r.c,u=r.d,a=r.e,i(n,r=r.b)?-1===(c=function(n){for(;;){if(-1!==n.$||-1!==n.d.$)return n;n=n.d}}(a)).$?l(du,t,c.b,c.c,u,nt(a)):su:l(du,t,r,e,u,s(pu,n,a))):su}),gu=o(function(n,r){n=s(pu,n,r);return-1!==n.$||n.a?n:l(E,1,n.b,n.c,n.d,n.e)}),yu=r(function(n,r,t){r=r(s(bu,n,t));return r.$?s(gu,n,t):b(vu,n,r.a,t)}),xu=o(function(n,r){var t,n=s(Qt,"=",n);return n.b&&n.b.b&&!n.b.b.b?(t=n.b.a,1===(n=iu(n.a)).$?r:(n=n.a,1===(t=iu(t)).$?r:b(yu,n,ou(t.a),r))):r}),mu=su,wu=o(function(n,r){for(var t=n(l(au,v,function(n){n=s(Qt,"/",n);return cu(n.b&&""===n.a?n.b:n)}(r.ao),1===(n=r.bT).$?mu:b(We,xu,mu,s(Qt,"&",n.a)),r.br,Gr));;){if(!t.b)return w;var e=t.a,u=t.b,a=e.E;if(!a.b)return m(e.A);if(""===a.a&&!a.b.b)return m(e.A);t=u}}),Au=o(function(n,r){return l(au,r.I,r.E,r.G,r.F,n(r.A))}),nn=o(function(a,n){var c=n;return function(n){var r=n.I,t=n.E,e=n.G,u=n.F;return s(k,Au(n.A),c(l(au,r,t,e,u,a)))}}),ku=o(function(n,r){return r.b?b(We,g,r,n):n}),ju=o(function(n,r){return b(We,ku,v,s(k,n,r))}),en=o(function(n,r){var t=n,e=r;return function(n){return s(ju,e,t(n))}}),B=s(o(function(n,o){return function(n){var r,t,e=n.I,u=n.E,a=n.G,c=n.F,n=n.A;return u.b?(r=u.b,(t=o(u=u.a)).$?v:(t=t.a,$([l(au,s(g,u,e),r,a,c,n(t))]))):v}}),"STRING",m),Eu=(It=$([s(nn,{$:0,a:"all"},function(n){return $([n])}),s(nn,rt,s(en,et("streams"),B)),s(nn,tt,s(en,et("events"),B))]),o(function(n,r){return c(r,{ao:s(Se,Re(n.ao),r.ao)})})),_u=o(function(n,r){return s(wu,ut,s(Eu,n,r))}),un=K(function(n,r,t,e,u,a,c,o,i){return{cn:c,cs:a,ct:t,cx:r,cy:n,c0:i,c1:e,c2:u,dk:o}}),Lu=function(n){switch(n.$){case 0:return"expecting '"+n.a+"'";case 1:return"expecting int";case 2:return"expecting hex";case 3:return"expecting octal";case 4:return"expecting binary";case 5:return"expecting float";case 6:return"expecting number";case 7:return"expecting variable";case 8:return"expecting symbol '"+n.a+"'";case 9:return"expecting keyword '"+n.a+"'";case 10:return"expecting end";case 11:return"unexpected char";case 12:return"problem "+n.a;default:return"bad repeat"}},Tu=o(function(t,n){var r;return n.b?(r=n.b,s(g,n.a,b(We,o(function(n,r){return s(g,t,s(g,n,r))}),v,r))):v}),Cu=function(n){return{$:1,a:n}},u=xn,Ru=o(function(n,r){return{$:1,a:n,b:r}}),Nu=r(function(n,r,t){return{$:0,a:n,b:r,c:t}}),D=o(function(u,n){var a=n;return function(n){var r,t,e,n=a(n);return 1===n.$?s(Ru,n.a,n.b):(r=n.a,t=n.c,1===(n=u(n.b)(t)).$?(e=n.a,s(Ru,r||e,n.b)):(e=n.a,b(Nu,r||e,n.b,n.c)))}}),Su=o(function(n,r){return{$:1,a:n,b:r}}),Ou=n(function(n,r,t,e){return{bj:r,cr:e,bQ:t,bZ:n}}),Iu={$:0},Mu=o(function(n,r){return s(Su,Iu,d(Ou,n.bZ,n.bj,r,n.c))}),Zu=(Mt={$:10},Zr),Fu=F(function(n,r,t,e,u){for(;;){var a=b(Zu,n,r,u.a);if(i(a,-1))return b(Nu,G(u.b,r)<0,0,{bj:e,c:u.c,d:u.d,b:r,bZ:t,a:u.a});u=(e=i(a,-2)?(n=n,r=r+1,t=t+1,1):(n=n,r=a,t=t,e+1),u)}}),wn=function(r){return function(n){return l(Fu,r,n.b,n.bZ,n.bj,n)}},qu=o(function(n,r){return n}),Ju=o(function(e,n){var u=n;return function(n){var r,t=u(n);return 1===t.$?s(Ru,t.a,t.b):(r=t.b,b(Nu,t.a,s(e,b(Ne,n.b,(t=t.c).b,n.a),r),t))}}),Ku=function(n){return s(Ju,qu,n)},Uu=function(n){return r={$:12,a:n},function(n){return s(Ru,!1,s(Mu,n,r))};var r},zu=an,_=function(r){return function(n){return b(Nu,!1,r,n)}},Bu=function(n){return 0!==n.length&&!/[\sxbo]/.test(n)&&(n=+n)==n?m(n):w},Du=s(D,function(n){var r;return 9<Re(n)?Uu("Expected at most 9 digits, but got "+A(Re(n))):(r=Bu("0."+n)).$?Uu('Invalid float: "'+n+'"'):_(zu(1e3*r.a))},Ku(wn(Dr))),Wu=Gr,Pu=q(function(n,r,t,e,u,a){return Wu(n+60*r*60*1e3+60*(t-a)*1e3+1e3*e+u)}),Gu=r(function(a,n,r){var c=n,o=r;return function(n){var r,t,e,u,n=c(n);return 1===n.$?s(Ru,n.a,n.b):(r=n.a,t=n.b,1===(n=o(n.c)).$?(e=n.a,s(Ru,r||e,n.b)):(e=n.a,u=n.c,b(Nu,r||e,s(a,t,n.b),u)))}}),Vu=o(function(n,r){return b(Gu,qu,n,r)}),a=o(function(n,r){return b(Gu,$e,n,r)}),Qu=o(function(n,r){return{$:2,a:n,b:r}}),Hu=r(function(n,r,t){for(;;){if(!t.b)return s(Ru,!1,r);var e,u=t.a,a=t.b,u=u(n);if(!u.$)return e=u;if((e=u).a)return e;n=n,r=s(Qu,r,e.b),t=a}}),Xu=function(r){return function(n){return b(Hu,n,Iu,r)}},Yu=on,na={$:11},ra=o(function(t,e){return function(n){var r=b(Zu,t,n.b,n.a);return i(r,-1)?s(Ru,!1,s(Mu,n,e)):i(r,-2)?b(Nu,!0,0,{bj:1,c:n.c,d:n.d,b:n.b+1,bZ:n.bZ+1,a:n.a}):b(Nu,!0,0,{bj:n.bj+1,c:n.c,d:n.d,b:r,bZ:n.bZ,a:n.a})}}),ta=n(function(n,r,t,e){for(;;){var u=t(r)(e);if(u.$)return a=u.a,s(Ru,n||a,u.b);var a=u.a,c=u.b,u=u.c;if(c.$)return b(Nu,n||a,c.a,u);n=n||a,r=c.a,t=t,e=u}}),ea=o(function(r,t){return function(n){return d(ta,!1,r,t,n)}}),ua=o(function(t,n){var e=n;return function(n){var r,n=e(n);return n.$?s(Ru,n.a,n.b):(r=n.c,b(Nu,n.a,t(n.b),r))}}),aa=o(function(n,r){return s(ea,n,function(n){return s(ua,bt,r(n))})}),ca=o(function(n,r){return{$:0,a:n,b:r}}),oa=Ir,ia=function(n){var u=n.a,a=n.b,c=!(""===u);return function(n){var r=l(oa,u,n.b,n.bZ,n.bj,n.a),t=r.a,e=r.b,r=r.c;return i(t,-1)?s(Ru,!1,s(Mu,n,a)):b(Nu,c,0,{bj:r,c:n.c,d:n.d,b:t,bZ:e,a:n.a})}},L=tn,An=s(D,function(n){var e=n.a,u=n.b,a=n.c;if(a<0)return h(a);function r(n){var r=31536e6*(e-1970),t=864e5*((u<3||!dt(e)?a-1:a)+(lt(e)-lt(1970)));return _(n+r+t)}switch(u){case 1:return 31<a?h(a):r(0);case 2:return 29<a||29===a&&!dt(e)?h(a):r(26784e5);case 3:return 31<a?h(a):r(50976e5);case 4:return 30<a?h(a):r(7776e6);case 5:return 31<a?h(a):r(10368e6);case 6:return 30<a?h(a):r(130464e5);case 7:return 31<a?h(a):r(156384e5);case 8:return 31<a?h(a):r(183168e5);case 9:return 30<a?h(a):r(209952e5);case 10:return 31<a?h(a):r(235872e5);case 11:return 30<a?h(a):r(262656e5);case 12:return 31<a?h(a):r(288576e5);default:return Uu('Invalid month: "'+A(u)+'"')}},s(a,s(a,s(a,_(r(function(n,r,t){return{a:n,b:r,c:t}})),t(4)),Xu($([s(a,s(Vu,_(Gr),st("-")),t(2)),t(2)]))),Xu($([s(a,s(Vu,_(Gr),st("-")),t(2)),t(2)])))),fa=(kn=r(function(n,r,t){return n*(60*r)+t}),s(a,_(Gr),Xu($([s(ua,function(n){return 0},st("Z")),s(a,s(a,s(a,_(kn),Xu($([s(ua,function(n){return 1},st("+")),s(ua,function(n){return-1},st("-"))]))),t(2)),Xu($([s(a,s(Vu,_(Gr),st(":")),t(2)),t(2),_(0)]))),s(Vu,_(0),it)])))),ba=s(D,function(n){return Xu($([s(a,s(a,s(a,s(a,s(a,s(Vu,_(Pu(n)),st("T")),t(2)),Xu($([s(a,s(Vu,_(Gr),st(":")),t(2)),t(2)]))),Xu($([s(a,s(Vu,_(Gr),st(":")),t(2)),t(2),_(0)]))),Xu($([s(a,s(Vu,_(Gr),st(".")),Du),_(0)]))),s(Vu,fa,it)),s(Vu,_(U(Pu,n,0,0,0,0,0)),it)]))},An),sa=r(function(n,r,t){return{bj:r,bQ:t,bZ:n}}),da=o(function(n,r){for(;;)switch(n.$){case 0:return r;case 1:var t=n.a,e=n.b;n=t,r=s(g,e,r);continue;default:t=n.a,e=n.b;n=t,r=s(da,e,r);continue}}),la=o(function(n,r){n=n({bj:1,c:v,d:1,b:0,bZ:1,a:r});return n.$?y(s(da,n.b,v)):x(n.b)}),va=o(function(n,r){n=s(la,n,r);return n.$?y(s(k,vt,n.a)):x(n.a)}),ln=s(Ee,function(n){n=s(va,ba,n);return 1===n.$?Cu(function(n){return ct(s(Tu,"; ",s(k,ot,n)))}(n.a)):_e(n.a)},u),$a=function(n){return{$:11,g:n}},pa=rn(X),ha=mn,ga=o(function(n,r){return b(We,ha,r,n)}),ya=En,xa=function(n){return{$:5,c:n}},ma=yn,wa=r(function(r,t,e){function u(n){return $a($([n,xa(e)]))}return s(Ee,function(n){var n=s(ya,s(ga,r,ma),n);return n.$?_e(e):(n=n.a,(n=s(ya,u(t),n)).$?s(ga,r,u(t)):_e(n.a))},ma)}),sn=n(function(n,r,t,e){return s(pa,b(wa,n,r,t),e)}),$n=r(function(n,r,t){return s(pa,s(ga,n,r),t)}),vn=d(sn,$(["attributes","parent_event_id"]),$t(u),w,b($n,$(["attributes","type_stream_name"]),u,d(sn,$(["attributes","causation_stream_name"]),$t(u),w,d(sn,$(["attributes","correlation_stream_name"]),$t(u),w,b($n,$(["attributes","metadata"]),s(e,Gt(2),ma),b($n,$(["attributes","data"]),s(e,Gt(2),ma),b($n,$(["attributes","metadata","timestamp"]),ln,b($n,$(["id"]),u,b($n,$(["attributes","event_type"]),u,_e(un)))))))))),Aa=s(ha,"data",vn),ka=function(n){return encodeURIComponent(n)},ja=o(function(n,r){return n+("/"+ka(r))}),Ea=o(function(n,r){return 1===n.$?r:r+(":"+A(n.a))}),_a=r(function(n,r,t){return 1===r.$?t:f(t,f(n,r.a))}),La=o(function(n,r){return s(ja,pt(n.bd)+"/events",r)}),Ta=jn,Ca=o(function(n,r){return{$:3,a:n,b:r}}),Ra=function(n){return{$:0,a:n}},Na=o(function(n,r){return{$:4,a:n,b:r}}),Sa={$:2},Oa=function(n){return{$:1,a:n}},Ia=function(n){return{$:0,a:n}},Ma={$:1},Za=function(n){return!n.$},Fa=Vn,qa=r(function(n,r,t){return r(n(t))}),Ja=o(function(n,r){return b(qr,"",Gr,s(qa,r,n))}),Ka=o(function(n,r){return r.$?y(n(r.a)):x(r.a)}),Ua={$:2},za={$:1},Ba=o(function(n,r){switch(r.$){case 0:return y({$:0,a:r.a});case 1:return y(za);case 2:return y(Ua);case 3:return y({$:3,a:r.a.c8});default:return s(Ka,ht,n(r.b))}}),Da=o(function(n,r){return s(Ja,n,Ba(function(n){return s(Ka,ce,s(Ta,r,n))}))}),Wa={$:0},Pa=function(n){return{$:1,a:n}},Ga=o(function(n,r){return{bV:n,b9:r}}),Gn=Be(s(Ga,mu,v)),Va=function(t){return{$:2,b:function(n){var r=t.f;2===r.$&&r.c&&r.c(),t.f=null,n({$:0,a:Q})},c:null}},Qa=Jn,Ha=r(function(t,n,e){for(;;){if(!n.b)return Be(e);var u,r=n.a,a=n.b;if(r.$)return u=r.a,s(j,function(n){var r=u.cc;return b(Ha,t,a,1===r.$?e:b(vu,r.a,n,e))},Qa(b(Fr,t,Ve(t),u)));var c=r.a,r=s(bu,c,e);if(1!==r.$)return s(j,function(n){return b(Ha,t,a,s(gu,c,e))},Va(r.a));t=t,n=a,e=e}}),dn=n(function(n,r,t,e){return s(j,function(n){return Be(s(Ga,n,t))},b(Ha,n,r,e.bV))}),Xa=r(function(n,r,t){n=n(r);return n.$?t:s(g,n.a,t)}),Ya=o(function(n,r){return b(We,Xa(n),v,r)}),nc=n(function(n,r,t,e){var u=e.b;return i(r,e.a)?m(s(Ve,n,u(t))):w}),V=r(function(n,r,t){return s(j,function(n){return Be(t)},Vr(s(Ya,b(nc,n,r.a,r.b),t.b9)))}),nn=o(function(n,r){var t;return r.$?Pa({ck:(t=r.a).ck,bg:t.bg,ay:s(Jr,n,t.ay),bu:t.bu,cM:t.cM,dd:t.dd,cc:t.cc,bb:t.bb}):{$:0,a:r.a}}),rc=o(function(n,r){return{$:0,a:n,b:r}}),tc=(Pn.Http={b:Gn,c:dn,d:V,e:nn,f:o(function(n,r){return s(rc,r.a,s(qa,r.b,n))})},Qn("Http")),ec=(Qn("Http"),r(function(n,r,t){return gt({ay:s(Da,n,Aa),bb:s(La,r,t)})})),uc=o(function(n,r){return b(ec,at,n,r)}),ac=o(function(n,r){return s(uc,n,r)}),en=o(function(n,r){return{cA:n,c5:r}}),cc=function(n){return{$:3,b:n}},B=d(sn,$(["attributes","related_streams"]),$t(cc(u)),w,b($n,$(["relationships","events","links","self"]),u,_e(en))),oc=s(ha,"data",B),ic=o(function(n,r){return s(ja,pt(n.bd)+"/streams",r)}),fc=r(function(n,r,t){return gt({ay:s(Da,n,oc),bb:s(ic,r,t)})}),bc=o(function(n,r){return b(fc,yt,n,r)}),sc={$:0},dc=Wu(0),lc=o(function(n,r){return{L:sc,v:sc,cx:r,aA:n,ad:dc}}),xn=o(function(n,r){return{cz:n,cL:r}}),vc=s(xn,v,{bp:w,bF:w,bK:w,bP:w}),$c=o(function(n,r){return{cz:vc,aA:n,ac:v,c5:w,a5:r}}),pc=Xn,C=Hn(v),hc=o(function(n,r){var t,e=n.aA;return 1===e.$?{a:n,b:C}:(r=s(_u,(e=e.a).aU,r)).$?{a:c(n,{u:Ye}),b:C}:r.a.$?(t=iu(r.a.a)).$?{a:c(n,{u:Ye}),b:C}:{a:c(n,{u:{$:1,a:s(lc,e,t=t.a)}}),b:s(pc,eu,s(ac,e,t))}:(t=iu(r.a.a)).$?{a:c(n,{u:Ye}),b:C}:{a:c(n,{u:{$:2,a:s($c,e,r=t.a)}}),b:s(pc,uu,s(bc,e,r))}}),Zr=r(function(n,r,t){var e,u,n={aA:(e=n.bd,u=n.aR,d(ru,nu,Ue(n.aU),Ue(e),m(u))),cK:t,Z:tu,u:Ye};return s(hc,n,r)}),gc=Xn,yc=Hn(v),xc=function(n){return{$:5,a:n}},mc=r(function(n,r,t){return{aM:t,bW:r,b9:n}}),wc=Be(b(mc,v,w,0)),Ac={$:2,b:function(n){n({$:0,a:Date.now()})},c:null},kc={$:2,b:function(n){var r=Rr(function(){n({$:0,a:Date.now()})});return function(){Cr(r)}},c:null},an=r(function(n,t,r){var e=r.bW,r=r.aM,u={a:e,b:t};return 1===u.a.$?u.b.b?s(j,function(r){return s(j,function(n){return Be(b(mc,t,m(r),n))},Ac)},Qa(s(j,Fa(n),kc))):wc:u.b.b?Be(b(mc,t,e,r)):s(j,function(n){return wc},Va(u.a.a))}),wn=r(function(r,t,n){function e(n){return s(Ve,r,n.$?(0,n.a)(t-a):(0,n.a)(Wu(t)))}var u=n.b9,a=n.aM;return s(j,function(r){return s(j,function(n){return Be(b(mc,u,m(r),t))},Vr(s(k,e,u)))},Qa(s(j,Fa(r),kc)))}),jc=r(function(n,r,t){return n(r(t))}),Ec=(Pn["Browser.AnimationManager"]={b:wc,c:an,d:wn,e:0,f:o(function(n,r){return r.$?{$:1,a:s(jc,n,r.a)}:{$:0,a:s(jc,n,r.a)}})},Qn("Browser.AnimationManager")),_c=function(n){return Ec({$:0,a:n})}(function(n){return{$:1,a:n}}),Lc=function(r){return s(Xe,ze,{$:2,b:function(n){try{Mr.location=r}catch(n){ur.location.reload(!1)}},c:null})},Tc=Or,Cc=o(function(n,r){return"/"+(s(Vt,"/",n)+function(n){return n.b?"?"+s(Vt,"&",s(k,mt,n)):""}(r))}),Rc=o(function(t,n){return b(We,o(function(n,r){return t(n)?s(g,n,r):r}),v,n)}),Nc=o(function(n,r){return s(Cc,f(function(n){return s(Rc,function(n){return""!==n},s(Qt,"/",n.ao))}(n),r),v)}),Sc=o(function(n,r){return s(Nc,n,$(["streams",ka(r)]))}),Oc=o(function(n,r){return n.$?{a:{O:n.a},b:C}:{a:{O:""},b:s(Tc,r.cK,s(Sc,r.aA.aU,r.bB.O))}}),Ic={$:3},Mc={$:2},on=mu,Zc=o(function(n,r){return b(vu,n,0,r)}),Fc=b(Ht,Zc,on,v),qc=o(function(n,r){r=r.cn;return r.$?C:b(fc,At,n,r.a)}),Ir=n(function(n,r,t,e){return{bp:t,bF:e,bK:n,bP:r}}),tn=n(function(n,r,t,e){return s(pa,b(wa,$([n]),r,t),e)}),kn=d(tn,"last",$t(u),w,d(tn,"first",$t(u),w,d(tn,"prev",$t(u),w,d(tn,"next",$t(u),w,_e(Ir))))),D=r(function(n,r,t){return s(pa,s(ha,n,r),t)}),Jc=b(D,"links",kn,b(D,"data",cc(vn),_e(xn))),Kc=o(function(n,r){return gt({ay:s(Da,n,Jc),bb:r})}),Uc=o(function(n,r){return n.$?n.a:r}),zc=o(function(n,r){switch(n.$){case 0:var t=n.a,e=r.v;return 1===e.$?{a:c(r,{v:{$:1,a:c(u=e.a,{aj:t})}}),b:C}:{a:r,b:C};case 1:t=n.a,e=r.v;return 1===e.$?{a:c(r,{v:{$:1,a:c(u=e.a,{am:t})}}),b:C}:{a:r,b:C};case 2:var u;return n.a.$?3===n.a.a.$&&404===n.a.a.a?{a:c(r,{v:Mc}),b:C}:{a:c(r,{v:Ic}),b:C}:{a:c(r,{v:{$:1,a:u={cn:(a=n.a.a).cn,cs:a.cs,aj:Fc,cx:a.cx,cy:a.cy,am:Fc,c0:a.c0,c1:a.c1,c2:a.c2,dk:a.dk}}}),b:s(qc,r.aA,u)};case 4:return n.a.$?{a:c(r,{L:Ic}),b:C}:{a:r,b:s(Kc,wt,n.a.a.cA)};case 3:var a;return n.a.$?{a:c(r,{L:Ic}),b:C}:{a:c(r,{L:{$:1,a:(a=n.a.a).cz}}),b:C};default:return{a:c(r,{ad:s(Uc,n.a,r.ad)}),b:C}}}),Bc=o(function(n,r){switch(n.$){case 0:return{a:r,b:s(Kc,kt,n.a)};case 1:return n.a.$?{a:c(r,{ac:$(["Server error, please check backend logs for details"])}),b:C}:{a:c(r,{cz:n.a.a}),b:C};default:var t;return n.a.$?{a:c(r,{ac:$(["Server error, please check backend logs for details"])}),b:C}:{a:c(r,{c5:(t=n.a.a).c5}),b:s(Kc,kt,t.cA)}}}),Dc=n(function(n,r,t,e){var u=e.b;return{a:c(t,{u:n(e.a)}),b:s(pc,r,u)}}),Wc=r(function(n,r,t){return{aA:t,bB:r,cK:n.cK}}),An=o(function(n,r){var t={a:n,b:r.u};n:for(;;)switch(t.a.$){case 0:return s(hc,r,t.a.a);case 1:var e=t.a.a;return e.$?{a:r,b:Lc(e.a)}:{a:r,b:s(Tc,r.cK,pt(e.a))};case 4:if(2===t.b.$)return d(Dc,Hr,uu,r,s(Bc,t.a.a,t.b.a));break n;case 3:if(1===t.b.$)return d(Dc,Qr,eu,r,s(zc,t.a.a,t.b.a));break n;default:var u,a,e=r.aA;return 1===e.$?{a:r,b:C}:(a=(u=s(Oc,t.a.a,b(Wc,r,r.Z,e.a))).b,{a:c(r,{Z:u.a}),b:s(pc,xt,a)})}return{a:r,b:C}}),R=p("div"),Pc=p("a"),Gc=In,Vc=o(function(n,r){return s(fr,n,Gc(r))}),N=Vc("className"),Qc=p("footer"),Hc=p("span"),S=ar,Xc={$:0},Yc=p("form"),no=p("input"),ro=p("nav"),to=function(n){return{a:n,b:!0}},eo=or,uo=o(function(n,r){return s(eo,n,{$:1,a:r})}),ao=s(ga,$(["target","value"]),u),co=function(n){return{a:n,b:!0}},oo=o(function(n,r){return s(eo,n,{$:2,a:r})}),io=Vc("placeholder"),fo=Vc("value"),bo=p("header"),so=p("main"),lo=cr,vo=r(function(n,r,t){return s(R,$([N("bg-gray-100 min-h-screen w-full text-gray-800 font-sans leading-relaxed antialiased")]),$([s(bo,v,$([s(lo,n,Lt(r))])),s(so,$([N("bg-white")]),$([t])),s(Qc,v,$([s(lo,n,(t=r.aA,s(Qc,$([N("border-gray-400 border-t py-4")]),$([s(R,$([N("flex justify-center text-gray-500 text-sm")]),$([S("RubyEventStore v"+t.aR),s(Hc,$([N("font-bold text-gray-400 inline-block ml-4")]),$([S("•")])),s(Pc,$([Et("https://railseventstore.org/docs/install/"),N("text-gray-500 ml-4")]),$([S("Documentation")])),s(Hc,$([N("font-bold text-gray-400 inline-block ml-4")]),$([S("•")])),s(Pc,$([Et("https://railseventstore.org/support/"),N("text-gray-800 ml-4")]),$([S("Support")]))]))]))))]))]))}),$o=p("h1"),po=s($o,v,$([S("Incorrect RES Browser config")])),ho={au:qu(d(n(function(n,r,t,e){return{$:0,a:n,b:r,c:t,d:e}}),1,1,1,1)),av:1,ax:0,aC:!1,aJ:28,y:13,aN:.25,aP:42,aV:0,aW:1,aq:!0,a2:1,a8:60,a9:50,ba:50,ai:14},go=p("h2"),yo=p("li"),xo=o(function(n,r){return r.$?w:m(n(r.a))}),mo=o(function(n,r){return s(Pc,$([N("text-red-700 no-underline"),Et(s(Sc,n,r))]),$([S(r)]))}),wo=o(function(r,n){return s(xo,function(n){return s(yo,v,$([S("Causation stream: "),s(mo,r,n)]))},n.cn)}),Ao=o(function(r,n){return s(xo,function(n){return s(yo,v,$([S("Correlation stream: "),s(mo,r,n)]))},n.cs)}),ko=o(function(n,r){return s(Nc,n,$(["events",ka(r)]))}),jo=o(function(n,r){return s(Pc,$([N("text-red-700 no-underline"),Et(s(ko,n,r))]),$([S(r)]))}),Eo=o(function(r,n){return s(xo,function(n){return s(yo,v,$([S("Parent event: "),s(jo,r,n)]))},n.c0)}),_o=o(function(n,r){return s(yo,v,$([S("Type stream: "),s(mo,n,r.dk)]))}),Lo=s(We,o(function(n,r){return n.$?r:s(g,n.a,r)}),v),To=o(function(n,r){return Lo($([s(Eo,n,r),m(s(_o,n,r)),s(Ao,n,r),s(wo,n,r)]))}),Co=p("ul"),Ro=o(function(n,r){return i(s(To,n,r),v)?S(""):s(R,$([N("px-8")]),$([s(go,$([N("font-bold text-xl")]),$([S("Related streams / events:")])),s(Co,$([N("list-disc pl-8")]),s(To,n,r))]))}),No=p("p"),So=p("td"),Oo=p("tr"),Io=o(function(n,r){var t=r.cy,r=r.cx;return s(Oo,v,$([s(So,$([N("p-0 pt-2")]),$([s(Pc,$([N("text-red-700 no-underline"),Et(s(ko,n,r))]),$([S(t)]))])),s(So,$([N("p-0 pt-2")]),$([S(r)]))]))}),Mo=p("table"),Zo=p("tbody"),Fo=p("tfoot"),qo=p("th"),Jo=p("thead"),Ko=o(function(n,r){return r.b?s(Mo,$([N("my-10 w-full text-left table-fixed border-collapse")]),$([s(Jo,$([N("align-bottom leading-tight")]),$([s(Oo,v,$([s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Event name")])),s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Event id")]))]))])),s(Zo,$([N("align-top")]),s(k,Io(n),r)),s(Fo,v,$([s(Oo,v,$([s(So,$([N("text-gray-500 p-0 pb-4 text-xs"),s(br,"colspan",A(2))]),$([20===Ur(r)?S("The results may be truncated, check stream for full information."):S("")]))]))]))])):s(No,$([N("flex items-center justify-center py-24")]),$([S("No items")]))}),Uo={K:"firebrick",Q:"gray",R:"blue",S:"#fafad2",V:"green"},zo=o(function(n,r){return r.$?y(r.a):x(n(r.a))}),Bo=o(function(n,r){return(r.$?y:n)(r.a)}),Do=o(function(n,r){var t,e,u;return-2===r.$?su:(e=r.d,u=r.e,l(E,r.a,t=r.b,s(n,t,r.c),s(Do,n,e),s(Do,n,u)))}),Wo=o(function(t,n){var r=o(function(n,r){return s(Wo,t+("["+A(n))+"]",r)}),e=o(function(n,r){return s(Wo,t+"."+n,r)}),u=n.A;switch(u.$){case 0:case 1:case 2:case 5:return c(n,{l:t});case 3:return c(n,{l:t,A:{$:3,a:s(re,r,u.a)}});default:return c(n,{l:t,A:{$:4,a:s(Do,e,u.a)}})}}),Po={$:5},Go=hn,Vo=function(n){return b(Ht,o(function(n,r){return b(vu,n.a,n.b,r)}),mu,n)},Qo=function(n){return{$:8,b:n}},Ho=gn;function Xo(){function n(n){return{l:"",A:n}}var r;return $a($([s(e,s(jc,n,St),u),s(e,s(jc,n,Nt),Ho),s(e,s(jc,n,Rt),Go),s(e,s(jc,n,Ct),cc(Ot(function(n){return Xo()}))),s(e,s(jc,n,Tt),(r=Ot(function(n){return Xo()}),s(e,Vo,Qo(r)))),xa({l:"",A:Po})]))}function Yo(n){var r=s(e,Wo(""),li);return s(ya,r,n)}function ni(n){return p(function(n){return"script"==n?"p":n}(n))}function ri(n){return s(k,function(n){return s(O,n.a,n.b)},n)}function ti(n){return s(xi,"click",_e(n))}function ei(n){return n}function ui(n){var r=n.bp,t=n.bF,e=n.bK,n=n.bP;return s(Co,$([N("flex")]),$([s(yo,v,$([(r=r,s(qi,s(g,N(zi),Ui(r)),$([S("first")])))])),s(yo,v,$([function(n){return s(qi,s(g,N(zi),Ui(n)),$([S("previous")]))}(n)])),s(yo,v,$([function(n){return s(qi,s(g,N(zi),Ui(n)),$([S("next")]))}(e)])),s(yo,v,$([function(n){return s(qi,s(g,N(zi),Ui(n)),$([S("last")]))}(t)]))]))}function ai(n){return 11<n?"pm":"am"}function ci(n){switch(n){case 0:return"January";case 1:return"February";case 2:return"March";case 3:return"April";case 4:return"May";case 5:return"June";case 6:return"July";case 7:return"August";case 8:return"September";case 9:return"October";case 10:return"November";default:return"December"}}function oi(n){switch(s(L,100,n)){case 11:case 12:case 13:return"th";default:switch(s(L,10,n)){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}}function ii(n){switch(n){case 0:return"Monday";case 1:return"Tuesday";case 2:return"Wednesday";case 3:return"Thursday";case 4:return"Friday";case 5:return"Saturday";default:return"Sunday"}}function fi(n){var r=((n=s(Gi,n,1440)+719468)<0?n-146096:n)/146097|0,t=((n=n-146097*r)-(n/1460|0)+(n/36524|0)-(n/146096|0))/365|0,e=(5*(n=n-(365*t+(t/4|0)-(t/100|0)))+2)/153|0,u=e+(e<10?3:-9);return{bk:n-((153*e+2)/5|0)+1,bI:u,ch:t+400*r+(2<u?0:1)}}function bi(n){return n.b?m(n.a):w}function si(n){return n?12<n?n-12:n:12}function di(n){return s(yo,v,$([S(n)]))}var li=Xo(),vi=(Xo=function(){return li},p("pre")),$i={K:function(n){return $([{a:"color",b:n.K}])},at:$([{a:"position",b:"absolute"},{a:"cursor",b:"pointer"},{a:"top",b:"1px"},{a:"left",b:"-15px"}]),az:$([{a:"font-weight",b:"bold"}]),ak:$([{a:"position",b:"relative"}]),Q:function(n){return $([{a:"color",b:n.Q}])},R:function(n){return $([{a:"color",b:n.R}])},aT:$([{a:"font-family",b:"monospace"},{a:"white-space",b:"pre"}]),S:function(n){return $([{a:"background-color",b:n.S},{a:"cursor",b:"pointer"}])},V:function(n){return $([{a:"color",b:n.V}])},ar:$([{a:"list-style-type",b:"none"},{a:"margin-left",b:"26px"},{a:"padding-left",b:"0px"}])},O=ir,I=pn,pi=o(function(n,r){return!s(bu,n,r).$}),hi=o(function(n,r){return s(pi,n,r)}),gi=o(function(n,r){return s(hi,n,r)}),yi=o(function(n,r){return s(Zc,n,r)}),xi=o(function(n,r){return s(eo,n,{$:0,a:r})}),mi=o(function(n,r){return s(xi,"click",s(e,s(qa,function(n){return n(0)},r),_e(n)))}),wi=n(function(n,r,t,e){return n?s(Hc,s(g,s(mi,t,r.dh),ri($i.at)),$([S(e)])):S("")}),Ai=n(function(n,r,t,e){return d(wi,n,t,function(n){return s(yi,r,e)},"-")}),ki=o(function(n,r){return s(gu,n,r)}),ji=o(function(n,r){return s(ki,n,r)}),Ei=n(function(n,r,t,e){return d(wi,n,t,function(n){return s(ji,r,e)},"+")}),_i=Vc("id"),Li=n(function(n,r,t,e){return e=s(Hc,f($([_i(t.l)]),f(ri(n),(n=e.cX).$?v:$([ti((0,n.a)(t.l)),N("selectableJsonTreeNode")]))),$([S(r)])),$([e])}),Ti=F(function(r,n,t,e,u){function a(n){return s(yo,ri($i.ak),s(ku,d(Ri,r+1,e,n,u),$([S(",")])))}t=n.b?$(s(gi,t,u)?[d(Ei,r,t,e,u),S("…")]:[d(Ai,r,t,e,u),s(Co,ri($i.ar),s(k,a,n))]):v;return f($([S("[")]),f(t,$([S("]")])))}),Ci=F(function(t,n,r,e,u){function a(n){var r=n.a,n=n.b;return s(yo,ri($i.ak),f($([s(Hc,ri($i.az),$([S(r)])),S(": ")]),f(d(Ri,t+1,e,n,u),$([S(",")]))))}r=-2===n.$?v:$(s(gi,r,u)?[d(Ei,t,r,e,u),S("…")]:[d(Ai,t,r,e,u),s(Co,ri($i.ar),s(k,a,Ft(n)))]);return f($([S("{")]),f(r,$([S("}")])))}),Ri=n(function(n,r,t,e){var u=r.cq,a=t.A;switch(a.$){case 0:var c=a.a;return d(Li,$i.V(u),'"'+c+'"',t,r);case 1:c=a.a;return d(Li,$i.R(u),I(c),t,r);case 2:c=a.a;return d(Li,$i.K(u),c?"true":"false",t,r);case 5:return d(Li,$i.Q(u),"null",t,r);case 3:return l(Ti,n,a.a,t.l,r,e);default:return l(Ci,n,a.a,t.l,r,e)}}),Ni=r(function(n,r,t){return s(R,ri($i.aT),s(g,function(n){n=s(Vt,"\n",s(k,function(n){return n.a+": "+n.b+";"},$i.S(n.cq)));return b(ni,"style",v,$([S(".selectableJsonTreeNode:hover {\n"+n+"\n}\n")]))}(r),d(Ri,0,r,n,t)))}),Si=o(function(n,r){return r.$?n:r.a}),Oi=r(function(n,r,t){return s(Si,s(vi,v,$([S(n)])),s(zo,function(n){return b(Ni,n,{cq:Uo,cX:w,dh:t},r)},s(Bo,Yo,s(Ta,ma,n))))}),Ii=r(function(r,n,t){return s(R,$([N("py-12")]),$([s($o,$([N("font-bold px-8 text-2xl")]),$([S(n.cy)])),s(R,$([N("px-8")]),$([s(Mo,$([N("my-10 w-full text-left table-fixed border-collapse")]),$([s(Jo,$([N("align-bottom leading-tight")]),$([s(Oo,v,$([s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Event id")])),s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Raw Data")])),s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Raw Metadata")]))]))])),s(Zo,$([N("align-top")]),$([s(Oo,v,$([s(So,$([N("p-0 pt-2")]),$([S(n.cx)])),s(So,$([N("p-0 pt-2")]),$([b(Oi,n.c1,n.aj,function(n){return{$:0,a:n}})])),s(So,$([N("p-0 pt-2")]),$([b(Oi,n.c2,n.am,function(n){return{$:1,a:n}})]))]))]))]))])),s(Ro,r,n),function(){switch(t.$){case 0:return s(R,$([N("px-8 mt-8")]),$([s(go,$([N("font-bold text-xl")]),$([S("Events caused by this event:")])),S("Loading...")]));case 1:var n=t.a;return s(R,$([N("px-8 mt-8")]),$(n.b?[s(go,$([N("font-bold text-xl")]),$([S("Events caused by this event:")])),s(Ko,r,n)]:[s(go,$([N("font-bold text-xl")]),$([S("Events caused by this event: none")]))]));default:return S("")}}()]))}),Mi=r(function(n,r,t){var e,u,a,c=be(n.y*n.a8/100),o=1e3/n.a2,r=s(L,0|o,1e3-((0|r)+(t/n.y*o|0)))/1e3,o=s(ge,0,n.y*r-(n.y-c))/c,r=I(360/n.y*(n.ax?t:n.y-t)+n.aV),c=n.av*n.ai/2,o=I(s(ge,n.aN,o));return $([s(O,"background",(t=n.au(t),e=t.b,u=t.c,a=t.d,ct($(["rgba(",I(i(t.a)),"%,",I(i(e)),"%,",I(i(u)),"%,",I(zu(1e3*a)/1e3),")"])))),s(O,"height",I(n.ai)+"px"),s(O,"width",I(n.aJ+n.ai)+"px"),s(O,"position","absolute"),s(O,"transform-origin","left"),s(O,"transform","rotate("+r+("deg) translate("+I(n.aP))+"px, 0px)"),s(O,"border-radius",I(c)+"px"),s(O,"opacity",o),s(O,"box-shadow",n.aq?"0 0 4px #000":"none"),s(O,"-webkit-box-shadow",n.aq?"0 0 4px #000":"none")]);function i(n){return zu(1e4*n)/100}}),Zi=o(function(r,n){var t=s(k,Pr,s(ne,0,pe(r.y)-1)),e=ei(n);return s(R,v,s(k,function(n){return s(R,function(n){return $([s(O,"position","absolute"),s(O,"top","calc("+I(n.ba)+"%)"),s(O,"left",I(n.a9)+"%"),s(O,"transform","scale("+I(n.aW)+")"+(n.aC?" translate3d(0px, 0px, 0px)":""))])}(r),$([s(R,b(Mi,r,e,n),v)]))},t))}),Fi=function(n){return{a:"Event "+n.cx,b:function(n){var r=n.v;switch(r.$){case 2:return s(R,$([N("py-12")]),$([s($o,$([N("font-bold px-8 text-2xl")]),$([S("There's no event with given ID")]))]));case 0:return s(R,$([N("min-h-screen")]),$([s(Zi,ho,n.ad)]));case 1:return b(Ii,n.aA.aU,r.a,n.L);default:return s(R,$([N("py-12")]),$([s($o,$([N("font-bold px-8 text-2xl")]),$([S("Unexpected request failure happened when fetching the event")]))]))}}(n)}},qi=p("button"),Ji=In,Ki=o(function(n,r){return s(fr,n,Ji(r))})("disabled"),Ui=function(n){return $(n.$?[Ki(!0)]:[Et(n=n.a),ti({$:0,a:n})])},zi="text-center text-sm border-red-700 text-red-700 border rounded px-2 py-1 mr-1 disabled:text-red-700/50 disabled:border-red-700/50 disabled:cursor-not-allowed",Bi=S(""),Di=o(function(n,r){return s(Pc,$([N("text-red-700 no-underline"),Et(s(Sc,n,r))]),$([S(r)]))}),Wi=o(function(r,n){return n.$?Bi:(n=n.a,s(R,$([N("px-8")]),$([s(go,$([N("font-bold text-xl")]),$([S("Related streams:")])),s(Co,$([N("list-disc pl-8")]),s(k,function(n){return s(yo,v,$([s(Di,r,n)]))},n))])))}),Pi={$:7},rn=U(q(function(n,r,t,e,u,a){return{de:u,df:r,dg:n,W:a,di:e,dj:t}}),ci,s(qa,ci,Ie(3)),ii,s(qa,ii,Ie(3)),ai,oi),Gi=o(function(n,r){return pe(n/r)}),Vi=r(function(n,r,t){for(;;){if(!t.b)return r+n;var e=t.a,u=t.b;if(G(e.a3,r)<0)return r+e.b;n=n,r=r,t=u}}),Qi=o(function(n,r){var t=n.b;return b(Vi,n.a,s(Gi,ei(r),6e4),t)}),Hi=o(function(n,r){return s(L,24,s(Gi,s(Qi,n,r),60))}),Xi=r(function(n,r,t){return n.de(s(Hi,r,t))}),Yi=o(function(n,r){return fi(s(Qi,n,r)).bk}),nf=$([6,0,1,2,3,4,5]),rf=o(function(n,r){switch(s(L,7,s(Gi,s(Qi,n,r),1440))){case 0:return 3;case 1:return 4;case 2:return 5;case 3:return 6;case 4:return 0;case 5:return 1;default:return 2}}),tf=o(function(n,r){return r.$?n:r.a}),ef=o(function(r,t){return s(tf,{a:0,b:6},bi(s(Rc,function(n){return i(n.b,s(rf,r,t))},s(re,o(function(n,r){return{a:n,b:r}}),nf)))).a}),uf=o(function(n,r){switch(r){case 0:return 31;case 1:return function(n){return!s(L,4,n)&&(!!s(L,100,n)||!s(L,400,n))}(n)?29:28;case 2:return 31;case 3:return 30;case 4:return 31;case 5:return 30;case 6:case 7:return 31;case 8:return 30;case 9:return 31;case 10:return 30;default:return 31}}),af=$([0,1,2,3,4,5,6,7,8,9,10,11]),cf=o(function(n,r){switch(fi(s(Qi,n,r)).bI){case 1:return 0;case 2:return 1;case 3:return 2;case 4:return 3;case 5:return 4;case 6:return 5;case 7:return 6;case 8:return 7;case 9:return 8;case 10:return 9;case 11:return 10;default:return 11}}),of=o(function(r,t){return s(tf,{a:0,b:0},bi(s(Rc,function(n){return i(n.b,s(cf,r,t))},s(re,o(function(n,r){return{a:n,b:r}}),af))))}),ff=o(function(n,r){return 1+s(of,n,r).a}),bf=r(function(n,r,t){for(;;){if(n<=0)return t;if(!r.b)return t;var e=r.a;n=n-1,r=r.b,t=s(g,e,t)}}),sf=o(function(n,r){return ee(b(bf,n,r,v))}),df=r(function(n,r,t){if(0<r){var e,u,a,c,o,i={a:r,b:t};n:for(;;){r:for(;;){if(!i.b.b)return t;if(!i.b.b.b){if(1===i.a)break n;break}switch(i.a){case 1:break n;case 2:var f=i.b;return $([f.a,f.b.a]);case 3:if(i.b.b.b.b)return $([(f=i.b).a,(e=f.b).a,e.b.a]);break r;default:if(i.b.b.b.b&&i.b.b.b.b.b)return o=(c=(a=(u=(e=i.b).b).b).b).b,s(g,e.a,s(g,u.a,s(g,a.a,s(g,c.a,1e3<n?s(sf,r-4,o):b(df,n+1,r-4,o)))));break r}}return t}return $([i.b.a])}return v}),lf=o(function(n,r){return b(df,0,n,r)}),vf=o(function(n,r){return fi(s(Qi,n,r)).ch}),$f=o(function(n,r){var t=s(lf,s(ff,n,r)-1,af);return t=s(k,uf(s(vf,n,r)),t),b(Ht,Wt,0,t)+s(Yi,n,r)}),pf=o(function(n,r){return s(ff,n,r)/4|0}),hf=o(function(n,r){return n<1?"":b(Ne,-n,Re(r),r)}),gf=o(function(n,r){r=A(r),n-=Re(r);return f(s(Vt,"",s(k,function(n){return"0"},s(ne,1,n))),r)}),yf=function(n){return n.toLowerCase()},xf=o(function(n,r){return s(L,1e3,ei(r))}),mf=o(function(n,r){return s(L,60,s(Qi,n,r))}),wf=o(function(n,r){return s(L,60,s(Gi,ei(r),1e3))}),Af=function(n){return n.toUpperCase()},kf=zu(315576e5),jf=o(function(n,r){return Wu(kf*s(vf,n,r))}),Ef=o(function(n,r){var t=s(ef,n,s(jf,n,r));return 1+((s($f,n,r)+t)/7|0)}),_f=o(function(n,r){return A(s(vf,n,r))}),Lf=n(function(r,n,t,e){switch(e.$){case 0:return A(s(ff,n,t));case 1:return f(A(u=s(ff,n,t)),r.W(u));case 2:return s(gf,2,s(ff,n,t));case 3:return r.df(s(cf,n,t));case 4:return r.dg(s(cf,n,t));case 17:return A(1+s(pf,n,t));case 18:return function(n){return f(A(n),r.W(n))}(1+s(pf,n,t));case 5:return A(s(Yi,n,t));case 6:return function(n){return f(A(n),r.W(n))}(s(Yi,n,t));case 7:return s(gf,2,s(Yi,n,t));case 8:return A(s($f,n,t));case 9:return function(n){return f(A(n),r.W(n))}(s($f,n,t));case 10:return s(gf,3,s($f,n,t));case 11:return A(s(ef,n,t));case 12:return function(n){return f(A(n),r.W(n))}(s(ef,n,t));case 13:return r.di(s(rf,n,t));case 14:return r.dj(s(rf,n,t));case 19:return A(s(Ef,n,t));case 20:return function(n){return f(A(n),r.W(n))}(s(Ef,n,t));case 21:return s(gf,2,s(Ef,n,t));case 15:return s(hf,2,s(_f,n,t));case 16:return s(_f,n,t);case 22:return Af(b(Xi,r,n,t));case 23:return yf(b(Xi,r,n,t));case 24:return A(s(Hi,n,t));case 25:return s(gf,2,s(Hi,n,t));case 26:return A(si(s(Hi,n,t)));case 27:return s(gf,2,si(s(Hi,n,t)));case 28:return A(1+s(Hi,n,t));case 29:return s(gf,2,1+s(Hi,n,t));case 30:return A(s(mf,n,t));case 31:return s(gf,2,s(mf,n,t));case 32:return A(s(wf,n,t));case 33:return s(gf,2,s(wf,n,t));case 34:return A(s(xf,n,t));case 35:return s(gf,3,s(xf,n,t));default:return e.a}var u}),Tf=n(function(n,r,t,e){return s(Vt,"",s(k,b(Lf,n,t,e),r))})(rn),Cf={$:25},Rf={$:35},Nf={$:31},Sf={$:2},Of={$:33},If=function(n){return{$:36,a:n}},Mf=s(o(function(n,r){return{$:0,a:n,b:r}}),0,v),Zf={$:16},Ff=o(function(n,r){var t=r.cy,e=r.ct,r=r.cx;return s(Oo,v,$([s(So,$([N("p-0 pt-2")]),$([s(Pc,$([N("text-red-700 no-underline"),Et(s(ko,n,r))]),$([S(t)]))])),s(So,$([N("p-0 pt-2")]),$([S(r)])),s(So,$([N("p-0 pt-2 text-right")]),$([S((n=e,b(Tf,$([Pi,If("."),Sf,If("."),Zf,If(", "),Cf,If(":"),Nf,If(":"),Of,If("."),Rf]),Mf,n)))]))]))}),qf=o(function(n,r){return r.b?s(Mo,$([N("my-10 w-full text-left table-fixed border-collapse")]),$([s(Jo,$([N("align-bottom leading-tight")]),$([s(Oo,v,$([s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase pb-4 p-0 text-xs")]),$([S("Event name")])),s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs")]),$([S("Event id")])),s(qo,$([N("border-gray-400 border-b text-gray-500 uppercase p-0 pb-4 text-xs text-right")]),$([S("Created at")]))]))])),s(Zo,$([N("align-top")]),s(k,Ff(n),r))])):s(No,$([N("flex items-center justify-center py-24")]),$([S("No items")]))}),Jf=n(function(n,r,t,e){var u=t.cL,t=t.cz;return s(R,$([N("py-8")]),$([s(R,$([N("flex px-8 justify-between")]),$([s($o,$([N("font-bold text-2xl")]),$([S(r)])),s(R,v,$([ui(u)]))])),s(R,$([N("px-8")]),$([s(qf,n,t)])),s(R,v,$([s(Wi,n,e)]))]))}),Kf=function(n){var r=n.a5,t=n.cz,e=n.c5,u=n.ac,n=n.aA,a="Stream "+r,r="Events in "+r;return u.b?{a:a,b:s(R,$([N("py-8")]),$([s(R,$([N("px-8")]),$([s(Co,$([N("flex items-center justify-center py-24")]),s(k,di,u))]))]))}:{a:a,b:d(Jf,n.aU,r,t,e)}},Uf=s($o,v,$([S("404")])),zf=r(function(n,r,t){r=r(t),t=r.b;return{a:m(r.a),b:s(lo,n,t)}}),X=On({cI:Zr,cY:function(n){return{$:0,a:n}},cZ:function(n){return{$:1,a:n}},da:function(n){n=n.u;return 1===n.$?s(gc,eu,s(gc,xc,_c)):yc},dl:An,dm:function(n){var r,t,e=n.aA;return 1===e.$?{bg:$([s(R,v,$([po]))]),cb:jt(w)}:(e=e.a,r=(t=function(n){switch(n.$){case 2:return b(zf,uu,Kf,n.a);case 1:return b(zf,eu,Fi,n.a);default:return{a:w,b:Uf}}}(n.u)).a,t=t.b,{bg:$([s(R,v,$([b(vo,xt,b(Wc,n,n.Z,e),t)]))]),cb:jt(r)})}});mn={Main:{init:X(s(Ee,function(t){return s(Ee,function(r){return s(Ee,function(n){return _e({bd:n,aR:r,aU:t})},s(ha,"apiUrl",u))},s(ha,"resVersion",u))},s(ha,"rootUrl",u)))(0)}},M.Elm?function n(r,t){for(var e in t)e in r?"init"==e?W(6):n(r[e],t[e]):r[e]=t[e]}(M.Elm,mn):M.Elm=mn}(this);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store-browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_event_store
|
@@ -16,16 +16,16 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -49,17 +49,16 @@ files:
|
|
49
49
|
- README.md
|
50
50
|
- lib/ruby_event_store/browser.rb
|
51
51
|
- lib/ruby_event_store/browser/app.rb
|
52
|
-
- lib/ruby_event_store/browser/
|
52
|
+
- lib/ruby_event_store/browser/get_event.rb
|
53
53
|
- lib/ruby_event_store/browser/get_events_from_stream.rb
|
54
54
|
- lib/ruby_event_store/browser/get_stream.rb
|
55
55
|
- lib/ruby_event_store/browser/json_api_event.rb
|
56
|
-
- lib/ruby_event_store/browser/
|
57
|
-
- lib/ruby_event_store/browser/
|
56
|
+
- lib/ruby_event_store/browser/router.rb
|
57
|
+
- lib/ruby_event_store/browser/urls.rb
|
58
58
|
- lib/ruby_event_store/browser/version.rb
|
59
|
+
- public/bootstrap.js
|
59
60
|
- public/ruby_event_store_browser.css
|
60
|
-
- public/ruby_event_store_browser.css.map
|
61
61
|
- public/ruby_event_store_browser.js
|
62
|
-
- public/ruby_event_store_browser.js.map
|
63
62
|
homepage: https://railseventstore.org
|
64
63
|
licenses:
|
65
64
|
- MIT
|
@@ -68,6 +67,7 @@ metadata:
|
|
68
67
|
changelog_uri: https://github.com/RailsEventStore/rails_event_store/releases
|
69
68
|
source_code_uri: https://github.com/RailsEventStore/rails_event_store
|
70
69
|
bug_tracker_uri: https://github.com/RailsEventStore/rails_event_store/issues
|
70
|
+
rubygems_mfa_required: 'true'
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
@@ -76,14 +76,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '2.
|
79
|
+
version: '2.7'
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.3.11
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Event browser companion application for RubyEventStore
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyEventStore
|
4
|
-
module Browser
|
5
|
-
class Event
|
6
|
-
attr_reader :event_store, :params
|
7
|
-
|
8
|
-
def initialize(event_store:, params:)
|
9
|
-
@event_store = event_store
|
10
|
-
@params = params
|
11
|
-
end
|
12
|
-
|
13
|
-
def as_json
|
14
|
-
{
|
15
|
-
data: JsonApiEvent.new(event, parent_event_id).to_h,
|
16
|
-
}
|
17
|
-
end
|
18
|
-
|
19
|
-
def event
|
20
|
-
@event ||= event_store.read.event!(event_id)
|
21
|
-
end
|
22
|
-
|
23
|
-
def parent_event_id
|
24
|
-
if event.metadata.has_key?(:causation_id)
|
25
|
-
event_store.read.event(event.metadata.fetch(:causation_id))&.event_id
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def event_id
|
30
|
-
params.fetch(:id)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module RubyEventStore
|
2
|
-
module Browser
|
3
|
-
class Routing
|
4
|
-
def initialize(host, root_path)
|
5
|
-
@host = host
|
6
|
-
@root_path = root_path
|
7
|
-
end
|
8
|
-
|
9
|
-
def root_url
|
10
|
-
base_url
|
11
|
-
end
|
12
|
-
|
13
|
-
def events_url
|
14
|
-
"#{api_url}/events"
|
15
|
-
end
|
16
|
-
|
17
|
-
def api_url
|
18
|
-
"#{base_url}/api"
|
19
|
-
end
|
20
|
-
|
21
|
-
def streams_url
|
22
|
-
"#{api_url}/streams"
|
23
|
-
end
|
24
|
-
|
25
|
-
def paginated_events_from_stream_url(id:, position: nil, direction: nil, count: nil)
|
26
|
-
stream_name = Rack::Utils.escape(id)
|
27
|
-
query_string = URI.encode_www_form({
|
28
|
-
"page[position]" => position,
|
29
|
-
"page[direction]" => direction,
|
30
|
-
"page[count]" => count,
|
31
|
-
}.compact)
|
32
|
-
|
33
|
-
if query_string.empty?
|
34
|
-
"#{api_url}/streams/#{stream_name}/relationships/events"
|
35
|
-
else
|
36
|
-
"#{api_url}/streams/#{stream_name}/relationships/events?#{query_string}"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
private
|
41
|
-
attr_reader :host, :root_path
|
42
|
-
|
43
|
-
def base_url
|
44
|
-
[host, root_path].join
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,113 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RubyEventStore
|
4
|
-
module Browser
|
5
|
-
class GetEventsFromStream
|
6
|
-
HEAD = Object.new
|
7
|
-
|
8
|
-
attr_reader :event_store, :params, :routing
|
9
|
-
|
10
|
-
def initialize(event_store:, params:, routing:)
|
11
|
-
@event_store = event_store
|
12
|
-
@params = params
|
13
|
-
@routing = routing
|
14
|
-
end
|
15
|
-
|
16
|
-
def as_json
|
17
|
-
{
|
18
|
-
data: events.map { |e| JsonApiEvent.new(e, nil).to_h },
|
19
|
-
links: links
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
def events
|
24
|
-
@events ||= case direction
|
25
|
-
when :forward
|
26
|
-
events_forward(position).reverse
|
27
|
-
when :backward
|
28
|
-
events_backward(position)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def links
|
33
|
-
@links ||= {}.tap do |h|
|
34
|
-
if prev_event?
|
35
|
-
h[:prev] = prev_page_link(events.first.event_id)
|
36
|
-
h[:first] = first_page_link
|
37
|
-
end
|
38
|
-
|
39
|
-
if next_event?
|
40
|
-
h[:next] = next_page_link(events.last.event_id)
|
41
|
-
h[:last] = last_page_link
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def events_forward(position)
|
47
|
-
spec = event_store.read.limit(count)
|
48
|
-
spec = spec.stream(stream_name) unless stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
|
49
|
-
spec = spec.from(position) unless position.equal?(HEAD)
|
50
|
-
spec.to_a
|
51
|
-
end
|
52
|
-
|
53
|
-
def events_backward(position)
|
54
|
-
spec = event_store.read.limit(count).backward
|
55
|
-
spec = spec.stream(stream_name) unless stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
|
56
|
-
spec = spec.from(position) unless position.equal?(HEAD)
|
57
|
-
spec.to_a
|
58
|
-
end
|
59
|
-
|
60
|
-
def next_event?
|
61
|
-
return if events.empty?
|
62
|
-
events_backward(events.last.event_id).any?
|
63
|
-
end
|
64
|
-
|
65
|
-
def prev_event?
|
66
|
-
return if events.empty?
|
67
|
-
events_forward(events.first.event_id).any?
|
68
|
-
end
|
69
|
-
|
70
|
-
def prev_page_link(event_id)
|
71
|
-
routing.paginated_events_from_stream_url(id: stream_name, position: event_id, direction: :forward, count: count)
|
72
|
-
end
|
73
|
-
|
74
|
-
def next_page_link(event_id)
|
75
|
-
routing.paginated_events_from_stream_url(id: stream_name, position: event_id, direction: :backward, count: count)
|
76
|
-
end
|
77
|
-
|
78
|
-
def first_page_link
|
79
|
-
routing.paginated_events_from_stream_url(id: stream_name, position: :head, direction: :backward, count: count)
|
80
|
-
end
|
81
|
-
|
82
|
-
def last_page_link
|
83
|
-
routing.paginated_events_from_stream_url(id: stream_name, position: :head, direction: :forward, count: count)
|
84
|
-
end
|
85
|
-
|
86
|
-
def count
|
87
|
-
Integer(params.fetch(:count, PAGE_SIZE))
|
88
|
-
end
|
89
|
-
|
90
|
-
def direction
|
91
|
-
case params[:direction]
|
92
|
-
when "forward"
|
93
|
-
:forward
|
94
|
-
else
|
95
|
-
:backward
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
def position
|
100
|
-
case params[:position]
|
101
|
-
when "head", nil
|
102
|
-
HEAD
|
103
|
-
else
|
104
|
-
params.fetch(:position)
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
def stream_name
|
109
|
-
params.fetch(:id)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,+DAAc;;AAAd,8FAAc,CAAd,KAAA,eAAc,CAAd,aAAc,CAAd,UAAc,CAAd,gBAAc,CAAd,6BAAc,CAAd,KAAA,QAAc,CAAd,+GAAc,CAAd,GAAA,QAAc,CAAd,aAAc,CAAd,YAAA,wCAAc,CAAd,gCAAc,CAAd,SAAA,kBAAc,CAAd,kBAAA,gFAAc,CAAd,aAAc,CAAd,MAAA,aAAc,CAAd,QAAA,aAAc,CAAd,aAAc,CAAd,iBAAc,CAAd,uBAAc,CAAd,IAAA,aAAc,CAAd,IAAA,SAAc,CAAd,MAAA,aAAc,CAAd,oBAAc,CAAd,sCAAA,mBAAc,CAAd,cAAc,CAAd,gBAAc,CAAd,QAAc,CAAd,cAAA,mBAAc,CAAd,qBAAA,yBAAc,CAAd,OAAA,SAAc,CAAd,SAAA,uBAAc,CAAd,QAAA,iBAAc,CAAd,mDAAA,QAAc,CAAd,OAAA,4BAAc,CAAd,qBAAc,CAAd,aAAA,kBAAc,CAAd,yCAAc,CAAd,eAAA,QAAc,CAAd,SAAc,CAAd,MAAA,eAAc,CAAd,KAAA,gMAAc,CAAd,eAAc,CAAd,KAAA,mBAAc,CAAd,mBAAc,CAAd,iBAAA,qBAAc,CAAd,sBAAc,CAAd,GAAA,oBAAc,CAAd,IAAA,kBAAc,CAAd,SAAA,eAAc,CAAd,mDAAA,SAAc,CAAd,aAAc,CAAd,2DAAA,SAAc,CAAd,aAAc,CAAd,yCAAA,SAAc,CAAd,aAAc,CAAd,OAAA,cAAc,CAAd,MAAA,wBAAc,CAAd,kBAAA,iBAAc,CAAd,mBAAc,CAAd,EAAA,aAAc,CAAd,uBAAc,CAAd,sCAAA,SAAc,CAAd,mBAAc,CAAd,aAAc,CAAd,kBAAA,mGAAc,CAAd,+CAAA,aAAc,CAAd,qBAAc,CAAd,UAAA,cAAc,CAAd,WAAc,CAEd,UAAA,iBAAmB,CAAnB,uDAAmB,CAAnB,aAAA,iBAAmB,CAAnB,uDAAmB,CAAnB,YAAA,iBAAmB,CAAnB,qDAAmB,CAAnB,iBAAA,wBAAmB,CAAnB,iBAAA,qBAAmB,CAAnB,uDAAmB,CAAnB,gBAAA,qBAAmB,CAAnB,qDAAmB,CAAnB,SAAA,oBAAmB,CAAnB,QAAA,gBAAmB,CAAnB,UAAA,oBAAmB,CAAnB,UAAA,uBAAmB,CAAnB,uCAAA,kBAAmB,CAAnB,cAAA,oBAAmB,CAAnB,MAAA,YAAmB,CAAnB,OAAA,aAAmB,CAAnB,cAAA,kBAAmB,CAAnB,gBAAA,sBAAmB,CAAnB,QAAA,WAAmB,CAAnB,WAAA,gMAAmB,CAAnB,eAAA,eAAmB,CAAnB,WAAA,eAAmB,CAAnB,MAAA,WAAmB,CAAnB,SAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,SAAA,iBAAmB,CAAnB,mBAAmB,CAAnB,SAAA,iBAAmB,CAAnB,mBAAmB,CAAnB,UAAA,gBAAmB,CAAnB,gBAAmB,CAAnB,eAAA,gBAAmB,CAAnB,iBAAA,iBAAmB,CAAnB,WAAA,oBAAmB,CAAnB,OAAA,iBAAmB,CAAnB,oBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,gBAAmB,CAAnB,MAAA,eAAmB,CAAnB,cAAA,gBAAmB,CAAnB,+BAAA,UAAmB,CAAnB,KAAA,SAAmB,CAAnB,MAAA,kBAAmB,CAAnB,qBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,oBAAmB,CAAnB,MAAA,kBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,gBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,kBAAmB,CAAnB,MAAA,gBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,kBAAmB,CAAnB,OAAA,gBAAmB,CAAnB,mBAAmB,CAAnB,OAAA,gBAAmB,CAAnB,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,MAAA,mBAAmB,CAAnB,MAAA,iBAAmB,CAAnB,UAAA,iBAAmB,CAAnB,EAAA,2BAAmB,CAAnB,2CAAmB,CAAnB,0BAAmB,CAAnB,2BAAmB,CAAnB,oCAAmB,CAAnB,uCAAmB,CAAnB,gCAAmB,CAAnB,aAAA,kBAAmB,CAAnB,WAAA,eAAmB,CAAnB,aAAA,iBAAmB,CAAnB,YAAA,gBAAmB,CAAnB,eAAA,mBAAmB,CAAnB,8CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,8CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,8CAAmB,CAAnB,eAAA,mBAAmB,CAAnB,2CAAmB,CAAnB,cAAA,mBAAmB,CAAnB,4CAAmB,CAAnB,WAAA,wBAAmB,CAAnB,cAAA,oBAAmB,CAAnB,aAAA,kCAAmB,CAAnB,iCAAmB,CAAnB,WAAA,kBAAmB,CAAnB,cAAA,qBAAmB,CAAnB,QAAA,UAAmB,CAAnB,WAAA,kBAAmB,CAAnB,kBAAmB,CAAnB,aAAmB,CAAnB,aAAmB,CAAnB,aAAmB,CAAnB,cAAmB,CAAnB,cAAmB,CAAnB,0MAAmB,CAAnB,wBAAA,GAAA,uBAAmB,CAAA,CAAnB,gBAAA,GAAA,uBAAmB,CAAA,CAAnB,wBAAA,OAAA,kBAAmB,CAAnB,SAAmB,CAAA,CAAnB,gBAAA,OAAA,kBAAmB,CAAnB,SAAmB,CAAA,CAAnB,yBAAA,IAAA,UAAmB,CAAA,CAAnB,iBAAA,IAAA,UAAmB,CAAA,CAAnB,0BAAA,MAAA,0BAAmB,CAAnB,wDAAmB,CAAnB,gDAAmB,CAAnB,IAAA,cAAmB,CAAnB,wDAAmB,CAAnB,gDAAmB,CAAA,CAAnB,kBAAA,MAAA,0BAAmB,CAAnB,wDAAmB,CAAnB,gDAAmB,CAAnB,IAAA,cAAmB,CAAnB,wDAAmB,CAAnB,gDAAmB,CAAA,CAAnB,QAAA,qCAAmB,CAAnB,2CAAmB,CAAnB,yCAAmB,CAAnB,0CAAmB,CAAnB,2CAAmB,CAAnB,uCAAmB,CAAnB,yCAAmB,CAAnB,sCAAmB,CAAnB,4CAAmB,CAAnB,gLAAmB,CAMlB,eACC,oBAAqB,CACrB,UAAW,CACX,WACF,CAEA,qBACE,WAAY,CACZ,aAAc,CACd,UAAW,CACX,WAAY,CACZ,UAAW,CACX,iBAAkB,CAElB,6BAA+C,CAA/C,kBAA+C,CAA/C,gBAA+C,CAC/C,oDAA6C,CAA7C,4CACF,CAEA,iCACE,GACE,sBACF,CACA,GACE,uBACF,CACF,CAPA,yBACE,GACE,sBACF,CACA,GACE,uBACF,CACF","file":"ruby_event_store_browser.css","sourceRoot":"../elm/src","sourcesContent":["@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n/*\n * CC0 license: https://loading.io/css/\n */\n\n .lds-dual-ring {\n display: inline-block;\n width: 80px;\n height: 80px;\n}\n\n.lds-dual-ring:after {\n content: \" \";\n display: block;\n width: 64px;\n height: 64px;\n margin: 8px;\n border-radius: 50%;\n border: 6px solid #fdd;\n border-color: #fdd transparent #fdd transparent;\n animation: lds-dual-ring 1.2s linear infinite;\n}\n\n@keyframes lds-dual-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"names":["require","window","RubyEventStore","Browser"],"mappings":";;;;;AAAAA,QAAQ,qBAERC,OAAOC,eAAiB,GACxBD,OAAOC,eAAeC,QAAUH,QAAQ","file":"ruby_event_store_browser.js","sourceRoot":"../elm/src","sourcesContent":["require(\"./style/style.css\");\n\nwindow.RubyEventStore = {};\nwindow.RubyEventStore.Browser = require(\"./Main.elm\");\n"]}
|