jaxs 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jaxs.js CHANGED
@@ -1,742 +1,643 @@
1
- const Z = (e, t) => t.createElement(e),
2
- tt = (e, t) => {
3
- for (const s in t) {
4
- if (s === '__self') continue
5
- const n = t[s].toString()
6
- if (s === 'value') {
7
- const r = e
8
- r.value !== n && (r.value = n)
9
- } else e.setAttribute(s, n)
10
- }
11
- },
12
- et = (e, t, s) => {
13
- const n = {}
14
- for (const r in t) {
15
- const o = t[r],
16
- a = (l) => s(o, l)
17
- e.addEventListener(r, a),
18
- (n[r] = {
19
- domEvent: r,
20
- busEvent: o,
21
- listener: a,
22
- })
23
- }
24
- e.eventMaps = n
25
- },
26
- st = (e, t, s, n) => {
27
- const r = Z(e, n.document)
28
- return tt(r, t), et(r, s, n.publish), r
29
- },
30
- y = 'http://www.w3.org/2000/svg',
31
- nt = {
32
- animate: !0,
33
- animateMotion: !0,
34
- animateTransform: !0,
35
- circle: !0,
36
- clipPath: !0,
37
- defs: !0,
38
- desc: !0,
39
- ellipse: !0,
40
- feBlend: !0,
41
- feColorMatrix: !0,
42
- feComponentTransfer: !0,
43
- feComposite: !0,
44
- feConvolveMatrix: !0,
45
- feDiffuseLighting: !0,
46
- feDisplacementMap: !0,
47
- feDistantLight: !0,
48
- feDropShadow: !0,
49
- feFlood: !0,
50
- feFuncA: !0,
51
- feFuncB: !0,
52
- feFuncG: !0,
53
- feFuncR: !0,
54
- feGaussianBlur: !0,
55
- feImage: !0,
56
- feMerge: !0,
57
- feMergeNode: !0,
58
- feMorphology: !0,
59
- feOffset: !0,
60
- fePointLight: !0,
61
- feSpecularLighting: !0,
62
- feSpotLight: !0,
63
- feTile: !0,
64
- feTurbulence: !0,
65
- filter: !0,
66
- foreignObject: !0,
67
- g: !0,
68
- image: !0,
69
- line: !0,
70
- linearGradient: !0,
71
- marker: !0,
72
- mask: !0,
73
- metadata: !0,
74
- mpath: !0,
75
- path: !0,
76
- pattern: !0,
77
- polygon: !0,
78
- polyline: !0,
79
- radialGradient: !0,
80
- rect: !0,
81
- script: !0,
82
- set: !0,
83
- stop: !0,
84
- style: !0,
85
- svg: !0,
86
- switch: !0,
87
- symbol: !0,
88
- text: !0,
89
- textPath: !0,
90
- title: !0,
91
- tspan: !0,
92
- use: !0,
93
- view: !0,
94
- },
95
- rt = (e, t) => !!(nt[e] || (e === 'a' && t === y)),
96
- ot = (e, t, s) => {
97
- const n = s.createElementNS(y, e)
98
- for (const r in t)
99
- r === '__self' ||
100
- r === 'xmlns' ||
101
- n.setAttributeNS(null, r, t[r].toString())
102
- return n
103
- },
104
- it = (e) => e.namespaceURI === y,
105
- ut = (e, t) => t.createTextNode(e)
1
+ const Z = (e, t) => t.createElement(e), tt = (e, t) => {
2
+ for (const s in t) {
3
+ if (s === "__self") continue;
4
+ const r = t[s].toString();
5
+ if (s === "value") {
6
+ const n = e;
7
+ n.value !== r && (n.value = r);
8
+ } else
9
+ e.setAttribute(s, r);
10
+ }
11
+ }, et = (e, t, s) => {
12
+ const r = {};
13
+ for (const n in t) {
14
+ const i = t[n], a = (l) => s(i, l);
15
+ e.addEventListener(n, a), r[n] = {
16
+ domEvent: n,
17
+ busEvent: i,
18
+ listener: a
19
+ };
20
+ }
21
+ e.eventMaps = r;
22
+ }, st = (e, t, s, r) => {
23
+ const n = Z(e, r.document);
24
+ return tt(n, t), et(n, s, r.publish), n;
25
+ }, y = "http://www.w3.org/2000/svg", rt = {
26
+ animate: !0,
27
+ animateMotion: !0,
28
+ animateTransform: !0,
29
+ circle: !0,
30
+ clipPath: !0,
31
+ defs: !0,
32
+ desc: !0,
33
+ ellipse: !0,
34
+ feBlend: !0,
35
+ feColorMatrix: !0,
36
+ feComponentTransfer: !0,
37
+ feComposite: !0,
38
+ feConvolveMatrix: !0,
39
+ feDiffuseLighting: !0,
40
+ feDisplacementMap: !0,
41
+ feDistantLight: !0,
42
+ feDropShadow: !0,
43
+ feFlood: !0,
44
+ feFuncA: !0,
45
+ feFuncB: !0,
46
+ feFuncG: !0,
47
+ feFuncR: !0,
48
+ feGaussianBlur: !0,
49
+ feImage: !0,
50
+ feMerge: !0,
51
+ feMergeNode: !0,
52
+ feMorphology: !0,
53
+ feOffset: !0,
54
+ fePointLight: !0,
55
+ feSpecularLighting: !0,
56
+ feSpotLight: !0,
57
+ feTile: !0,
58
+ feTurbulence: !0,
59
+ filter: !0,
60
+ foreignObject: !0,
61
+ g: !0,
62
+ image: !0,
63
+ line: !0,
64
+ linearGradient: !0,
65
+ marker: !0,
66
+ mask: !0,
67
+ metadata: !0,
68
+ mpath: !0,
69
+ path: !0,
70
+ pattern: !0,
71
+ polygon: !0,
72
+ polyline: !0,
73
+ radialGradient: !0,
74
+ rect: !0,
75
+ script: !0,
76
+ set: !0,
77
+ stop: !0,
78
+ style: !0,
79
+ svg: !0,
80
+ switch: !0,
81
+ symbol: !0,
82
+ text: !0,
83
+ textPath: !0,
84
+ title: !0,
85
+ tspan: !0,
86
+ use: !0,
87
+ view: !0
88
+ }, nt = (e, t) => !!(rt[e] || e === "a" && t === y), it = (e, t, s) => {
89
+ const r = s.createElementNS(y, e);
90
+ for (const n in t)
91
+ n === "__self" || n === "xmlns" || r.setAttributeNS(null, n, t[n].toString());
92
+ return r;
93
+ }, ot = (e) => e.namespaceURI === y, ut = (e, t) => t.createTextNode(e);
106
94
  class at {
107
95
  constructor(t) {
108
- this.value = t.toString()
96
+ this.value = t.toString();
109
97
  }
110
98
  render(t) {
111
- const s = ut(this.value, t.document)
112
- return (s.__jsx = 'TextNode'), [s]
99
+ const s = ut(this.value, t.document);
100
+ return s.__jsx = "TextNode", [s];
113
101
  }
114
102
  }
115
- const ct = (e) => typeof e == 'string' || typeof e == 'number',
116
- lt = (e) => new at(e),
117
- ht = (e) => (ct(e) ? lt(e) : e),
118
- dt = (e) => pt(e).map(ht).flat(),
119
- pt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
120
- j = (e, t = {}) => e || t.children || [],
121
- mt = (e, t = '') => {
122
- const s = {},
123
- n = {}
124
- for (const r in e) {
125
- const o = e[r]
126
- if (r.match(/^on.+/i)) {
127
- const a = r.slice(2).toLowerCase()
128
- n[a] = o ? o.toString() : ''
129
- } else {
130
- if (o === !1) continue
131
- r === '__source' ? (s.__source = e.__source) : (s[r] = ft(r, o, t))
132
- }
103
+ const ct = (e) => typeof e == "string" || typeof e == "number", lt = (e) => new at(e), ht = (e) => ct(e) ? lt(e) : e, dt = (e) => pt(e).map(ht).flat(), pt = (e) => Array.isArray(e) ? e.flat() : e ? [e] : [], T = (e, t = {}) => e || t.children || [], mt = (e, t = "") => {
104
+ const s = {}, r = {};
105
+ for (const n in e) {
106
+ const i = e[n];
107
+ if (n.match(/^on.+/i)) {
108
+ const a = n.slice(2).toLowerCase();
109
+ r[a] = i ? i.toString() : "";
110
+ } else {
111
+ if (i === !1) continue;
112
+ n === "__source" ? s.__source = e.__source : s[n] = ft(n, i, t);
133
113
  }
134
- return {
135
- attributes: s,
136
- events: n,
137
- }
138
- },
139
- ft = (e, t, s = '') => (t == null ? s : t.toString()),
140
- bt = (e, t) => {
141
- const s = e || {},
142
- n = j(t, s)
143
- return (s.children = s.children || n), s
144
- },
145
- O = (e, t, s, n = []) => e.reduce(vt(t, s), n).flat(),
146
- vt = (e, t) => (s, n) =>
147
- n
148
- ? Array.isArray(n)
149
- ? O(n, e, t, s)
150
- : (n.render(e, t).forEach((r) => s.push(r)), s)
151
- : s
152
- class M {
114
+ }
115
+ return {
116
+ attributes: s,
117
+ events: r
118
+ };
119
+ }, ft = (e, t, s = "") => t == null ? s : t.toString(), bt = (e, t) => {
120
+ const s = e || {}, r = T(t, s);
121
+ return s.children = s.children || r, s;
122
+ }, j = (e, t, s, r = []) => e.reduce(vt(t, s), r).flat(), vt = (e, t) => (s, r) => r ? Array.isArray(r) ? j(
123
+ r,
124
+ e,
125
+ t,
126
+ s
127
+ ) : (r.render(e, t).forEach((n) => s.push(n)), s) : s;
128
+ class O {
153
129
  constructor(t) {
154
- this.collection = dt(t)
130
+ this.collection = dt(t);
155
131
  }
156
132
  render(t, s) {
157
- this.parentElement = s
158
- const n = this.generateDom(t)
159
- return this.attachToParent(n), n
133
+ this.parentElement = s;
134
+ const r = this.generateDom(t);
135
+ return this.attachToParent(r), r;
160
136
  }
161
137
  generateDom(t) {
162
- return O(this.collection, t, this.parentElement)
138
+ return j(this.collection, t, this.parentElement);
163
139
  }
164
140
  attachToParent(t) {
165
- if (this.parentElement === void 0) return
166
- const s = this.parentElement
167
- t.forEach((n) => s.appendChild(n))
141
+ if (this.parentElement === void 0) return;
142
+ const s = this.parentElement;
143
+ t.forEach((r) => s.appendChild(r));
168
144
  }
169
145
  }
170
146
  class gt {
171
147
  constructor(t, s) {
172
- ;(this.type = t), (this.attributes = s)
148
+ this.type = t, this.attributes = s;
173
149
  }
174
150
  generate() {
175
- return (
176
- this.attributes.key || this.sourceKey() || this.createKeyFromAttributes()
177
- )
151
+ return this.attributes.key || this.sourceKey() || this.createKeyFromAttributes();
178
152
  }
179
153
  sourceKey() {
180
154
  if (this.attributes.__source) {
181
- const {
182
- fileName: t,
183
- lineNumber: s,
184
- columnNumber: n,
185
- } = this.attributes.__source
186
- return `${t}:${s}:${n}`
155
+ const { fileName: t, lineNumber: s, columnNumber: r } = this.attributes.__source;
156
+ return `${t}:${s}:${r}`;
187
157
  }
188
158
  }
189
159
  createKeyFromAttributes() {
190
- const t = this.attributes.id ? `#${this.attributes.id}` : '',
191
- s = this.attributes.type ? `[type=${this.attributes.type}]` : '',
192
- n = this.attributes.name ? `[name=${this.attributes.name}]` : ''
193
- return `${this.type}${t}${s}${n}`
160
+ const t = this.attributes.id ? `#${this.attributes.id}` : "", s = this.attributes.type ? `[type=${this.attributes.type}]` : "", r = this.attributes.name ? `[name=${this.attributes.name}]` : "";
161
+ return `${this.type}${t}${s}${r}`;
194
162
  }
195
163
  }
196
164
  class yt {
197
- constructor(t, s, n = []) {
198
- this.type = t
199
- const { events: r, attributes: o } = mt(s)
200
- ;(this.events = r),
201
- (this.attributes = o),
202
- (this.isSvg = rt(this.type, this.attributes.xmlns)),
203
- (this.children = new M(n))
165
+ constructor(t, s, r = []) {
166
+ this.type = t;
167
+ const { events: n, attributes: i } = mt(s);
168
+ this.events = n, this.attributes = i, this.isSvg = nt(this.type, this.attributes.xmlns), this.children = new O(r);
204
169
  }
205
170
  render(t) {
206
- const s = this.generateDom(t)
207
- return s ? (this.children.render(t, s), [s]) : []
171
+ const s = this.generateDom(t);
172
+ return s ? (this.children.render(t, s), [s]) : [];
208
173
  }
209
174
  generateDom(t) {
210
- return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t)
175
+ return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t);
211
176
  }
212
177
  generateHtmlDom(t) {
213
- const s = st(this.type, this.attributes, this.events, t)
214
- return (s.__jsx = this.jsxKey()), s
178
+ const s = st(
179
+ this.type,
180
+ this.attributes,
181
+ this.events,
182
+ t
183
+ );
184
+ return s.__jsx = this.jsxKey(), s;
215
185
  }
216
186
  generateSvgDom(t) {
217
- const s = ot(this.type, this.attributes, t.document)
218
- return (s.__jsx = this.jsxKey()), s
187
+ const s = it(this.type, this.attributes, t.document);
188
+ return s.__jsx = this.jsxKey(), s;
219
189
  }
220
190
  jsxKey() {
221
- return new gt(this.type, this.attributes).generate()
191
+ return new gt(this.type, this.attributes).generate();
222
192
  }
223
193
  }
224
- const Et = (e, t, ...s) =>
225
- typeof e == 'string' ? new yt(e, t, s) : e(bt(t, s))
194
+ const Et = (e, t, ...s) => typeof e == "string" ? new yt(e, t, s) : e(bt(t, s));
226
195
  Et.fragment = (e, t) => {
227
- const s = j(t, e)
228
- return new M(s)
229
- }
196
+ const s = T(t, e);
197
+ return new O(s);
198
+ };
230
199
  class xt {
231
- constructor(t, s, n) {
232
- ;(this.template = t),
233
- (this.selector = s),
234
- (this.renderKit = n),
235
- (this.dom = [])
200
+ constructor(t, s, r) {
201
+ this.template = t, this.selector = s, this.renderKit = r, this.dom = [];
236
202
  }
237
203
  renderAndAttach(t) {
238
- ;(this.parentElement = this.getParentElement()),
239
- (this.dom = this.render({ ...t, parent: this.parentElement })),
240
- this.parentElement && this.attach()
204
+ this.parentElement = this.getParentElement(), this.dom = this.render({ ...t, parent: this.parentElement }), this.parentElement && this.attach();
241
205
  }
242
206
  render(t) {
243
- return this.template.render(t)
207
+ return this.template.render(t);
244
208
  }
245
209
  attach() {
246
- this.parentElement && (this.parentElement.innerHTML = ''),
247
- this.dom.forEach((t) => {
248
- this.parentElement && this.parentElement.appendChild(t)
249
- })
210
+ this.parentElement && (this.parentElement.innerHTML = ""), this.dom.forEach((t) => {
211
+ this.parentElement && this.parentElement.appendChild(t);
212
+ });
250
213
  }
251
214
  getParentElement() {
252
- return this.renderKit.document.querySelector(this.selector)
215
+ return this.renderKit.document.querySelector(this.selector);
253
216
  }
254
217
  }
255
218
  const At = (e, t, s) => {
256
- const n = new xt(e, t, s)
257
- return n.renderAndAttach(s), n
258
- },
259
- k = 'go-to-href',
260
- T = 'go-to',
261
- m = 'navigation:location-change',
262
- $ = 'navigation:route-change',
263
- _t = /* @__PURE__ */ Object.freeze(
264
- /* @__PURE__ */ Object.defineProperty(
265
- {
266
- __proto__: null,
267
- linkNavigationEvent: k,
268
- locationChangeEvent: m,
269
- navigationEvent: T,
270
- routeChangeEvent: $,
271
- },
272
- Symbol.toStringTag,
273
- { value: 'Module' },
274
- ),
275
- ),
276
- D = (e) => {
277
- e.create('route', {
278
- host: '',
279
- path: '',
280
- query: {},
281
- })
282
- },
283
- P = (e) => {
284
- const t = e.closest('[href]')
285
- return (t && t.getAttribute('href')) || ''
286
- },
287
- E = (e, { publish: t, window: s }) => {
288
- s.history.pushState(null, '', e), t(m, null)
289
- },
290
- F = (e, t) => {
291
- if (!e || !e.target) return
292
- e.preventDefault()
293
- const s = P(e.target)
294
- E(s, t)
295
- },
296
- L = (e) =>
297
- e
298
- .replace(/^\?/, '')
299
- .split('&')
300
- .reduce((t, s) => {
301
- if (!s) return t
302
- const n = s.split('=')
303
- return (t[n[0]] = n[1]), t
304
- }, {}),
305
- z = (e, t) => {
306
- const { state: s, publish: n, window: r } = t,
307
- { host: o, pathname: a, search: l } = r.location,
308
- u = a,
309
- d = L(l),
310
- c = {
311
- host: o,
312
- path: u,
313
- query: d,
314
- }
315
- s.store('route').update(c), n($, c)
316
- },
317
- B = (e) => {
318
- const { subscribe: t } = e
319
- t(k, F),
320
- t(T, (s, n) => {
321
- E(s, n)
322
- })
323
- },
324
- V = (e) => {
325
- const { publish: t, subscribe: s, state: n, window: r } = e
326
- D(n), r.addEventListener('popstate', () => t(m, null)), s(m, z)
327
- },
328
- K = (e) => {
329
- setTimeout(() => e.publish(m, null), 0)
330
- },
331
- R = (e) => {
332
- V(e), B(e), K(e)
333
- },
334
- wt = /* @__PURE__ */ Object.freeze(
335
- /* @__PURE__ */ Object.defineProperty(
336
- {
337
- __proto__: null,
338
- publishLocation: K,
339
- startNavigation: R,
340
- subscribeToHistoryChange: V,
341
- subscribeToNavigation: B,
342
- },
343
- Symbol.toStringTag,
344
- { value: 'Module' },
345
- ),
346
- )
219
+ const r = new xt(e, t, s);
220
+ return r.renderAndAttach(s), r;
221
+ }, M = "go-to-href", k = "go-to", m = "navigation:location-change", $ = "navigation:route-change", wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
222
+ __proto__: null,
223
+ linkNavigationEvent: M,
224
+ locationChangeEvent: m,
225
+ navigationEvent: k,
226
+ routeChangeEvent: $
227
+ }, Symbol.toStringTag, { value: "Module" })), D = (e) => {
228
+ e.create("route", {
229
+ host: "",
230
+ path: "",
231
+ query: {}
232
+ });
233
+ }, P = (e) => {
234
+ const t = e.closest("[href]");
235
+ return t && t.getAttribute("href") || "";
236
+ }, E = (e, { publish: t, window: s }) => {
237
+ s.history.pushState(null, "", e), t(m, null);
238
+ }, V = (e, t) => {
239
+ if (!e || !e.target) return;
240
+ e.preventDefault();
241
+ const s = P(e.target);
242
+ E(s, t);
243
+ }, F = (e) => e.replace(/^\?/, "").split("&").reduce((t, s) => {
244
+ if (!s) return t;
245
+ const r = s.split("=");
246
+ return t[r[0]] = r[1], t;
247
+ }, {}), L = (e, t) => {
248
+ const { state: s, publish: r, window: n } = t, { host: i, pathname: a, search: l } = n.location, u = a, d = F(l), c = {
249
+ host: i,
250
+ path: u,
251
+ query: d
252
+ };
253
+ s.store("route").update(c), r($, c);
254
+ }, z = (e) => {
255
+ const { subscribe: t } = e;
256
+ t(M, V), t(k, (s, r) => {
257
+ E(s, r);
258
+ });
259
+ }, B = (e) => {
260
+ const { publish: t, subscribe: s, state: r, window: n } = e;
261
+ D(r), n.addEventListener("popstate", () => t(m, null)), s(m, L);
262
+ }, K = (e) => {
263
+ setTimeout(() => e.publish(m, null), 0);
264
+ }, R = (e) => {
265
+ B(e), z(e), K(e);
266
+ }, Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
267
+ __proto__: null,
268
+ publishLocation: K,
269
+ startNavigation: R,
270
+ subscribeToHistoryChange: B,
271
+ subscribeToNavigation: z
272
+ }, Symbol.toStringTag, { value: "Module" }));
347
273
  class U {
348
- constructor({
349
- window: t,
350
- document: s,
351
- publish: n,
352
- subscribe: r,
353
- bus: o,
354
- state: a,
355
- renderKit: l,
356
- }) {
357
- ;(this.window = t),
358
- (this.document = s),
359
- (this.publish = n),
360
- (this.subscribe = r),
361
- (this.bus = o),
362
- (this.state = a),
363
- (this.renderKit = l),
364
- (this.roots = [])
274
+ constructor({ window: t, document: s, publish: r, subscribe: n, bus: i, state: a, renderKit: l }) {
275
+ this.window = t, this.document = s, this.publish = r, this.subscribe = n, this.bus = i, this.state = a, this.renderKit = l, this.roots = [];
365
276
  }
366
277
  render(t, s) {
367
- const n = At(t, s, this.renderKit)
368
- return this.roots.push(n), n
278
+ const r = At(t, s, this.renderKit);
279
+ return this.roots.push(r), r;
369
280
  }
370
281
  startNavigation() {
371
- R(this)
282
+ R(this);
372
283
  }
373
284
  }
374
- const Me = /* @__PURE__ */ Object.freeze(
375
- /* @__PURE__ */ Object.defineProperty(
376
- {
377
- __proto__: null,
378
- App: U,
379
- },
380
- Symbol.toStringTag,
381
- { value: 'Module' },
382
- ),
383
- )
384
- class q {
285
+ const $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
286
+ __proto__: null,
287
+ App: U
288
+ }, Symbol.toStringTag, { value: "Module" }));
289
+ class C {
385
290
  constructor() {
386
- this.lookup = {}
291
+ this.lookup = {};
387
292
  }
388
- add(t, s, n) {
389
- this.ensureArrayFor(t)
390
- const r = {
293
+ add(t, s, r) {
294
+ this.ensureArrayFor(t);
295
+ const n = {
391
296
  listener: s,
392
- index: n,
393
- matcher: t,
394
- }
395
- return this.lookup[t].push(r), () => this.remove(r)
297
+ index: r,
298
+ matcher: t
299
+ };
300
+ return this.lookup[t].push(n), () => this.remove(n);
396
301
  }
397
302
  remove(t) {
398
- this.lookup[t.matcher] &&
399
- (this.lookup[t.matcher] = this.lookup[t.matcher].reduce(
400
- (s, n) => (n !== t && s.push(n), s),
401
- [],
402
- ))
303
+ this.lookup[t.matcher] && (this.lookup[t.matcher] = this.lookup[t.matcher].reduce((s, r) => (r !== t && s.push(r), s), []));
403
304
  }
404
305
  matches(t) {
405
- return this.lookup[t] || []
306
+ return this.lookup[t] || [];
406
307
  }
407
308
  ensureArrayFor(t) {
408
- this.lookup[t] || (this.lookup[t] = [])
309
+ this.lookup[t] || (this.lookup[t] = []);
409
310
  }
410
311
  }
411
312
  class I {
412
313
  constructor() {
413
- this.lookup = []
314
+ this.lookup = [];
414
315
  }
415
- add(t, s, n) {
416
- const r = {
316
+ add(t, s, r) {
317
+ const n = {
417
318
  listener: s,
418
- index: n,
419
- matcher: t,
420
- }
421
- return this.lookup.push(r), () => this.remove(r)
319
+ index: r,
320
+ matcher: t
321
+ };
322
+ return this.lookup.push(n), () => this.remove(n);
422
323
  }
423
324
  remove(t) {
424
- this.lookup = this.lookup.reduce((s, n) => (n !== t && s.push(n), s), [])
325
+ this.lookup = this.lookup.reduce((s, r) => (r !== t && s.push(r), s), []);
425
326
  }
426
327
  matches(t) {
427
- return this.lookup.filter((s) => s.matcher.test(t))
328
+ return this.lookup.filter(
329
+ (s) => s.matcher.test(t)
330
+ );
428
331
  }
429
332
  }
430
- class J {
333
+ class _t {
334
+ constructor({
335
+ publish: t,
336
+ event: s,
337
+ payload: r,
338
+ timer: n
339
+ }) {
340
+ this.setNewTimeout = () => {
341
+ this.stopped || setTimeout(() => {
342
+ this.publishEvent(), this.setNewTimeout();
343
+ }, this.calculateNextTime());
344
+ }, this.calculateNextTime = () => this.timer({
345
+ timeDiff: this.diff(),
346
+ callCount: this.callCount,
347
+ stop: this.stop
348
+ }), this.publish = t, this.event = s, this.payload = r || null, this.stop = this.stopTimeout.bind(this), this.stopped = !1, this.timer = n, this.startedAt = (/* @__PURE__ */ new Date()).getTime(), this.callCount = 0;
349
+ }
350
+ start() {
351
+ this.setNewTimeout();
352
+ }
353
+ diff() {
354
+ return (/* @__PURE__ */ new Date()).getTime() - this.startedAt;
355
+ }
356
+ stopTimeout() {
357
+ this.stopped = !0, this.timeoutId && clearTimeout(this.timeoutId);
358
+ }
359
+ publishEvent() {
360
+ this.stopped || (this.callCount += 1, this.publish(this.event, this.payload));
361
+ }
362
+ }
363
+ const St = (e) => {
364
+ const { offset: t, period: s } = e, r = ({ callCount: n }) => t && n == 0 ? t : s;
365
+ return {
366
+ event: e.event,
367
+ publish: e.publish,
368
+ payload: e.payload,
369
+ timer: r
370
+ };
371
+ }, Tt = (e) => {
372
+ let t;
373
+ "timer" in e ? t = e : t = St(
374
+ e
375
+ );
376
+ const s = new _t(t);
377
+ return s.start(), s.stop;
378
+ };
379
+ class q {
431
380
  constructor() {
432
- ;(this.exactSubscriptions = new q()),
433
- (this.fuzzySubscriptions = new I()),
434
- (this.currentIndex = 0)
381
+ this.exactSubscriptions = new C(), this.fuzzySubscriptions = new I(), this.currentIndex = 0;
435
382
  }
436
383
  subscribe(t, s) {
437
- let n
438
- return (
439
- typeof t == 'string'
440
- ? (n = this.exactSubscriptions.add(t, s, this.currentIndex))
441
- : (n = this.fuzzySubscriptions.add(t, s, this.currentIndex)),
442
- (this.currentIndex += 1),
443
- n
444
- )
384
+ let r;
385
+ return typeof t == "string" ? r = this.exactSubscriptions.add(
386
+ t,
387
+ s,
388
+ this.currentIndex
389
+ ) : r = this.fuzzySubscriptions.add(
390
+ t,
391
+ s,
392
+ this.currentIndex
393
+ ), this.currentIndex += 1, r;
445
394
  }
446
395
  publish(t, s) {
447
- ;[
396
+ [
448
397
  ...this.exactSubscriptions.matches(t),
449
- ...this.fuzzySubscriptions.matches(t),
450
- ]
451
- .sort((r, o) => r.index - o.index)
452
- .forEach((r) => {
453
- r.listener(s, this.listenerOptions(t))
454
- })
398
+ ...this.fuzzySubscriptions.matches(t)
399
+ ].sort((n, i) => n.index - i.index).forEach((n) => {
400
+ n.listener(s, this.listenerOptions(t));
401
+ });
455
402
  }
456
403
  addListenerOptions(t) {
457
- this.options = t
404
+ this.options = t;
458
405
  }
459
406
  listenerOptions(t) {
460
407
  return {
461
408
  eventName: t,
462
409
  ...this.options,
463
- publish: this.publish.bind(this),
464
- }
410
+ publish: this.publish.bind(this)
411
+ };
465
412
  }
466
413
  }
467
- const H = () => {
468
- const e = new J()
469
- return {
470
- bus: e,
471
- publish: (n, r) => e.publish(n, r),
472
- subscribe: (n, r) => e.subscribe(n, r),
473
- }
474
- },
475
- ke = /* @__PURE__ */ Object.freeze(
476
- /* @__PURE__ */ Object.defineProperty(
477
- {
478
- __proto__: null,
479
- ExactSubscriptions: q,
480
- FuzzySubscriptions: I,
481
- JaxsBus: J,
482
- createBus: H,
483
- },
484
- Symbol.toStringTag,
485
- { value: 'Module' },
486
- ),
487
- ),
488
- f = (e) => Array.isArray(e),
489
- v = (e) => e !== null && !f(e) && typeof e == 'object',
490
- Nt = (e, t) => e === t,
491
- St = (e, t) => Object.keys(e).length === Object.keys(t).length,
492
- jt = (e, t) =>
493
- !(v(e) && v(t)) || !St(e, t)
494
- ? !1
495
- : Object.keys(e).every((s) => {
496
- const n = e[s],
497
- r = t[s]
498
- return x(n, r)
499
- }),
500
- Ot = (e, t) =>
501
- !(f(e) && f(t)) || e.length !== t.length
502
- ? !1
503
- : e.every((s, n) => {
504
- const r = t[n]
505
- return x(s, r)
506
- }),
507
- x = (e, t) => (v(e) ? jt(e, t) : f(e) ? Ot(e, t) : Nt(e, t))
414
+ const J = () => {
415
+ const e = new q();
416
+ return {
417
+ bus: e,
418
+ publish: (r, n) => e.publish(r, n),
419
+ subscribe: (r, n) => e.subscribe(r, n)
420
+ };
421
+ }, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
422
+ __proto__: null,
423
+ ExactSubscriptions: C,
424
+ FuzzySubscriptions: I,
425
+ JaxsBus: q,
426
+ createBus: J,
427
+ publishPeriodically: Tt
428
+ }, Symbol.toStringTag, { value: "Module" })), f = (e) => Array.isArray(e), v = (e) => e !== null && !f(e) && typeof e == "object", jt = (e, t) => e === t, Ot = (e, t) => Object.keys(e).length === Object.keys(t).length, Mt = (e, t) => !(v(e) && v(t)) || !Ot(e, t) ? !1 : Object.keys(e).every((s) => {
429
+ const r = e[s], n = t[s];
430
+ return x(r, n);
431
+ }), kt = (e, t) => !(f(e) && f(t)) || e.length !== t.length ? !1 : e.every((s, r) => {
432
+ const n = t[r];
433
+ return x(s, n);
434
+ }), x = (e, t) => v(e) ? Mt(e, t) : f(e) ? kt(e, t) : jt(e, t);
508
435
  class g {
509
436
  constructor(t) {
510
- ;(this.name = t.name),
511
- (this.parent = t.parent),
512
- (this._value = t.value),
513
- (this.initialValue = structuredClone(t.value))
437
+ this.name = t.name, this.parent = t.parent, this._value = t.value, this.initialValue = structuredClone(t.value);
514
438
  }
515
439
  get value() {
516
- return this._value
440
+ return this._value;
517
441
  }
518
442
  set value(t) {
519
- throw new Error('Cannot set value directly. Use an updater!')
443
+ throw new Error("Cannot set value directly. Use an updater!");
520
444
  }
521
445
  reset() {
522
- this._value = this.initialValue
446
+ this._value = this.initialValue;
523
447
  }
524
448
  update(t) {
525
- if (typeof t == 'function') {
526
- const s = this.getUpdatedValue(t)
527
- this.updateValue(s)
528
- } else this.updateValue(t)
449
+ if (typeof t == "function") {
450
+ const s = this.getUpdatedValue(t);
451
+ this.updateValue(s);
452
+ } else
453
+ this.updateValue(t);
529
454
  }
530
455
  updateValue(t) {
531
- x(this._value, t) || ((this._value = t), this.parent.notify(this.name))
456
+ x(this._value, t) || (this._value = t, this.parent.notify(this.name));
532
457
  }
533
458
  getUpdatedValue(t) {
534
- return t(this.value)
459
+ return t(this.value);
535
460
  }
536
461
  }
537
462
  class A {
538
463
  constructor(t) {
539
- this.store = t
464
+ this.store = t;
540
465
  }
541
466
  update(t) {
542
- this.store.update(t)
467
+ this.store.update(t);
543
468
  }
544
469
  reset() {
545
- this.store.update(this.store.initialValue)
470
+ this.store.update(this.store.initialValue);
546
471
  }
547
472
  get value() {
548
- return this.store.value
473
+ return this.store.value;
549
474
  }
550
475
  }
551
- class Mt extends A {
476
+ class $t extends A {
552
477
  updateAttribute(t, s) {
553
- const n = { ...this.value }
554
- ;(n[t] = s), this.update(n)
478
+ const r = { ...this.value };
479
+ r[t] = s, this.update(r);
480
+ }
481
+ updateDynamicAttribute(t, s) {
482
+ this.isKey(t) && this.isValueType(t, s) && this.updateAttribute(t, s);
483
+ }
484
+ isKey(t) {
485
+ return t in this.store.initialValue;
486
+ }
487
+ isValueType(t, s) {
488
+ return typeof this.store.initialValue[t] == typeof s;
555
489
  }
556
490
  resetAttribute(t) {
557
- const s = { ...this.value },
558
- n = this.store.initialValue[t]
559
- ;(s[t] = n), this.update(s)
491
+ const s = { ...this.value }, r = this.store.initialValue[t];
492
+ s[t] = r, this.update(s);
560
493
  }
561
494
  }
562
- const kt = (e) => new Mt(e)
563
- class Tt extends A {
495
+ const Dt = (e) => new $t(e);
496
+ class Pt extends A {
564
497
  push(t) {
565
- const s = [...this.value, t]
566
- this.update(s)
498
+ const s = [...this.value, t];
499
+ this.update(s);
567
500
  }
568
501
  pop() {
569
- const t = [...this.value],
570
- s = t.pop()
571
- return this.update(t), s
502
+ const t = [...this.value], s = t.pop();
503
+ return this.update(t), s;
572
504
  }
573
505
  unshift(t) {
574
- const s = [t, ...this.value]
575
- this.update(s)
506
+ const s = [t, ...this.value];
507
+ this.update(s);
576
508
  }
577
509
  shift() {
578
- const t = [...this.value],
579
- s = t.shift()
580
- return this.update(t), s
510
+ const t = [...this.value], s = t.shift();
511
+ return this.update(t), s;
581
512
  }
582
513
  addSorter(t, s) {
583
514
  this[t] = () => {
584
- this.sortBy(s)
585
- }
515
+ this.sortBy(s);
516
+ };
586
517
  }
587
518
  sortBy(t) {
588
- const s = [...this.value]
589
- s.sort(t), this.update(s)
519
+ const s = [...this.value];
520
+ s.sort(t), this.update(s);
590
521
  }
591
522
  insertAt(t, s) {
592
- const n = [...this.value]
593
- n.splice(t, 0, s), this.update(n)
523
+ const r = [...this.value];
524
+ r.splice(t, 0, s), this.update(r);
594
525
  }
595
526
  remove(t) {
596
- const s = this.value.reduce((n, r) => (r !== t && n.push(r), n), [])
597
- this.update(s)
527
+ const s = this.value.reduce((r, n) => (n !== t && r.push(n), r), []);
528
+ this.update(s);
598
529
  }
599
530
  removeBy(t) {
600
- const s = this.value.reduce((n, r) => (t(r) || n.push(r), n), [])
601
- this.update(s)
531
+ const s = this.value.reduce((r, n) => (t(n) || r.push(n), r), []);
532
+ this.update(s);
602
533
  }
603
534
  }
604
- const $t = (e) => new Tt(e)
605
- class Dt extends A {
535
+ const Vt = (e) => new Pt(e);
536
+ class Ft extends A {
606
537
  toggle() {
607
- const t = !this.value
608
- this.update(t)
538
+ const t = !this.value;
539
+ this.update(t);
609
540
  }
610
541
  setTrue() {
611
- this.update(!0)
542
+ this.update(!0);
612
543
  }
613
544
  setFalse() {
614
- this.update(!1)
545
+ this.update(!1);
615
546
  }
616
547
  }
617
- const Pt = (e) => new Dt(e),
618
- Ft = {
619
- object: kt,
620
- list: $t,
621
- boolean: Pt,
622
- },
623
- _ = 'state'
548
+ const Lt = (e) => new Ft(e), zt = {
549
+ object: Dt,
550
+ list: Vt,
551
+ boolean: Lt
552
+ }, w = "state";
624
553
  class G {
625
554
  constructor(t) {
626
- ;(this.publisher = t),
627
- (this.stores = {}),
628
- (this.eventNamePrefix = _),
629
- (this.notifications = /* @__PURE__ */ new Set()),
630
- (this.inTransaction = !1)
555
+ this.publisher = t, this.stores = {}, this.eventNamePrefix = w, this.notifications = /* @__PURE__ */ new Set(), this.inTransaction = !1;
631
556
  }
632
557
  create(t, s) {
633
- const n = new g({
558
+ const r = new g({
634
559
  name: t,
635
560
  parent: this,
636
- value: s,
637
- })
638
- return (this.stores[t] = n), n
561
+ value: s
562
+ });
563
+ return this.stores[t] = r, r;
639
564
  }
640
565
  store(t) {
641
- return (
642
- this.stores[t] ||
643
- new g({
644
- name: t,
645
- parent: this,
646
- value: void 0,
647
- })
648
- )
566
+ return this.stores[t] || new g({
567
+ name: t,
568
+ parent: this,
569
+ value: void 0
570
+ });
649
571
  }
650
572
  get(t) {
651
- return this.store(t).value
573
+ return this.store(t).value;
652
574
  }
653
575
  getAll(t) {
654
- return t.reduce((s, n) => ((s[n] = this.get(n)), s), {})
576
+ return t.reduce((s, r) => (s[r] = this.get(r), s), {});
655
577
  }
656
578
  notify(t) {
657
- this.inTransaction ? this.notifications.add(t) : this.publish(t)
579
+ this.inTransaction ? this.notifications.add(t) : this.publish(t);
658
580
  }
659
581
  update(t, s) {
660
- this.store(t).update(s)
582
+ this.store(t).update(s);
661
583
  }
662
584
  transaction(t) {
663
- ;(this.inTransaction = !0),
664
- t(this.stores),
665
- (this.inTransaction = !1),
666
- this.publishAll()
585
+ this.inTransaction = !0, t(this.stores), this.inTransaction = !1, this.publishAll();
667
586
  }
668
587
  publishAll() {
669
588
  this.notifications.forEach((t) => {
670
- this.publish(t)
671
- }),
672
- this.notifications.clear()
589
+ this.publish(t);
590
+ }), this.notifications.clear();
673
591
  }
674
592
  publish(t) {
675
593
  this.publisher(this.event(t), {
676
594
  state: this,
677
- store: this.store(t),
678
- })
595
+ store: this.store(t)
596
+ });
679
597
  }
680
598
  event(t) {
681
- return `${this.eventNamePrefix}:${t}`
599
+ return `${this.eventNamePrefix}:${t}`;
682
600
  }
683
601
  }
684
- const C = (e) => new G(e),
685
- Te = /* @__PURE__ */ Object.freeze(
686
- /* @__PURE__ */ Object.defineProperty(
687
- {
688
- __proto__: null,
689
- State: G,
690
- Store: g,
691
- createState: C,
692
- eventName: _,
693
- updaters: Ft,
694
- },
695
- Symbol.toStringTag,
696
- { value: 'Module' },
697
- ),
698
- )
699
- class Lt {
602
+ const H = (e) => new G(e), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
603
+ __proto__: null,
604
+ State: G,
605
+ Store: g,
606
+ createState: H,
607
+ eventName: w,
608
+ updaters: zt
609
+ }, Symbol.toStringTag, { value: "Module" }));
610
+ class Bt {
700
611
  constructor(t) {
701
- this.setupDomEnvironment(t)
612
+ this.setupDomEnvironment(t);
702
613
  }
703
614
  setup() {
704
- return (
705
- this.setupBus(),
706
- this.setupState(),
707
- this.addBusOptions(),
708
- this.setRenderKit(),
709
- new U({
710
- window: this.window,
711
- document: this.document,
712
- publish: this.publish,
713
- subscribe: this.subscribe,
714
- bus: this.bus,
715
- state: this.state,
716
- renderKit: this.renderKit,
717
- })
718
- )
615
+ return this.setupBus(), this.setupState(), this.addBusOptions(), this.setRenderKit(), new U({
616
+ window: this.window,
617
+ document: this.document,
618
+ publish: this.publish,
619
+ subscribe: this.subscribe,
620
+ bus: this.bus,
621
+ state: this.state,
622
+ renderKit: this.renderKit
623
+ });
719
624
  }
720
625
  setupDomEnvironment(t) {
721
- t.window
722
- ? ((this.window = t.window), (this.document = this.window.document))
723
- : t.document
724
- ? ((this.window = t.document.defaultView), (this.document = t.document))
725
- : ((this.window = window), (this.document = document))
626
+ t.window ? (this.window = t.window, this.document = this.window.document) : t.document ? (this.window = t.document.defaultView, this.document = t.document) : (this.window = window, this.document = document);
726
627
  }
727
628
  setupBus() {
728
- const { publish: t, subscribe: s, bus: n } = H()
729
- ;(this.publish = t), (this.subscribe = s), (this.bus = n)
629
+ const { publish: t, subscribe: s, bus: r } = J();
630
+ this.publish = t, this.subscribe = s, this.bus = r;
730
631
  }
731
632
  setupState() {
732
- this.state = C(this.publish)
633
+ this.state = H(this.publish);
733
634
  }
734
635
  addBusOptions() {
735
636
  this.bus.addListenerOptions({
736
637
  state: this.state,
737
638
  document: this.document,
738
- window: this.window,
739
- })
639
+ window: this.window
640
+ });
740
641
  }
741
642
  setRenderKit() {
742
643
  this.renderKit = {
@@ -744,543 +645,397 @@ class Lt {
744
645
  subscribe: this.subscribe,
745
646
  state: this.state,
746
647
  document: this.document,
747
- window: this.window,
748
- }
648
+ window: this.window
649
+ };
749
650
  }
750
651
  }
751
- const $e = (e = {}) => {
752
- const s = new Lt(e).setup()
753
- return s.startNavigation(), s
754
- }
755
- var i = /* @__PURE__ */ ((e) => (
756
- (e[(e.removeNode = 0)] = 'removeNode'),
757
- (e[(e.insertNode = 1)] = 'insertNode'),
758
- (e[(e.replaceNode = 2)] = 'replaceNode'),
759
- (e[(e.removeAttribute = 3)] = 'removeAttribute'),
760
- (e[(e.addAttribute = 4)] = 'addAttribute'),
761
- (e[(e.updateAttribute = 5)] = 'updateAttribute'),
762
- (e[(e.removeEvent = 6)] = 'removeEvent'),
763
- (e[(e.addEvent = 7)] = 'addEvent'),
764
- (e[(e.updateEvent = 8)] = 'updateEvent'),
765
- (e[(e.changeValue = 9)] = 'changeValue'),
766
- (e[(e.changeText = 10)] = 'changeText'),
767
- e
768
- ))(i || {})
769
- const De = /* @__PURE__ */ Object.freeze(
770
- /* @__PURE__ */ Object.defineProperty(
771
- {
772
- __proto__: null,
773
- ChangeInstructionTypes: i,
774
- },
775
- Symbol.toStringTag,
776
- { value: 'Module' },
777
- ),
778
- ),
779
- zt = (e, t) => ({
780
- source: e,
781
- target: t,
782
- type: i.changeText,
783
- data: {},
784
- }),
785
- Bt = (e, t) => ({
786
- source: e,
787
- target: t,
788
- type: i.replaceNode,
789
- data: {},
790
- }),
791
- Vt = (e, t, s) => ({
792
- source: e,
793
- target: t,
794
- data: s,
795
- type: i.removeAttribute,
796
- }),
797
- Kt = (e, t, s) => ({
798
- source: e,
799
- target: t,
800
- data: s,
801
- type: i.addAttribute,
802
- }),
803
- Rt = (e, t, s) => ({
804
- source: e,
805
- target: t,
806
- data: s,
807
- type: i.updateAttribute,
808
- }),
809
- Ut = (e, t, s) => ({
810
- source: e,
811
- target: t,
812
- data: s,
813
- type: i.removeEvent,
814
- }),
815
- qt = (e, t, s) => ({
816
- source: e,
817
- target: t,
818
- data: s,
819
- type: i.addEvent,
820
- }),
821
- It = (e, t, s) => ({
822
- source: e,
823
- target: t,
824
- data: s,
825
- type: i.updateEvent,
826
- }),
827
- w = (e) => ({
828
- source: e,
829
- target: e,
830
- // for type crap only
831
- type: i.removeNode,
832
- data: {},
833
- }),
834
- b = (e, t) => ({
835
- target: e,
836
- source: e,
837
- // for type crap only
838
- type: i.insertNode,
839
- data: t,
840
- }),
841
- Jt = (e, t, s) => ({
842
- source: e,
843
- target: t,
844
- type: i.changeValue,
845
- data: s,
846
- }),
847
- Ht = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
848
- N = { index: -1 }
849
- class Gt {
652
+ const Ve = (e = {}) => {
653
+ const s = new Bt(e).setup();
654
+ return s.startNavigation(), s;
655
+ };
656
+ var o = /* @__PURE__ */ ((e) => (e[e.removeNode = 0] = "removeNode", e[e.insertNode = 1] = "insertNode", e[e.replaceNode = 2] = "replaceNode", e[e.removeAttribute = 3] = "removeAttribute", e[e.addAttribute = 4] = "addAttribute", e[e.updateAttribute = 5] = "updateAttribute", e[e.removeEvent = 6] = "removeEvent", e[e.addEvent = 7] = "addEvent", e[e.updateEvent = 8] = "updateEvent", e[e.changeValue = 9] = "changeValue", e[e.changeText = 10] = "changeText", e))(o || {});
657
+ const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
658
+ __proto__: null,
659
+ ChangeInstructionTypes: o
660
+ }, Symbol.toStringTag, { value: "Module" })), Kt = (e, t) => ({
661
+ source: e,
662
+ target: t,
663
+ type: o.changeText,
664
+ data: {}
665
+ }), Rt = (e, t) => ({
666
+ source: e,
667
+ target: t,
668
+ type: o.replaceNode,
669
+ data: {}
670
+ }), Ut = (e, t, s) => ({
671
+ source: e,
672
+ target: t,
673
+ data: s,
674
+ type: o.removeAttribute
675
+ }), Ct = (e, t, s) => ({
676
+ source: e,
677
+ target: t,
678
+ data: s,
679
+ type: o.addAttribute
680
+ }), It = (e, t, s) => ({
681
+ source: e,
682
+ target: t,
683
+ data: s,
684
+ type: o.updateAttribute
685
+ }), qt = (e, t, s) => ({
686
+ source: e,
687
+ target: t,
688
+ data: s,
689
+ type: o.removeEvent
690
+ }), Jt = (e, t, s) => ({
691
+ source: e,
692
+ target: t,
693
+ data: s,
694
+ type: o.addEvent
695
+ }), Gt = (e, t, s) => ({
696
+ source: e,
697
+ target: t,
698
+ data: s,
699
+ type: o.updateEvent
700
+ }), N = (e) => ({
701
+ source: e,
702
+ target: e,
703
+ // for type crap only
704
+ type: o.removeNode,
705
+ data: {}
706
+ }), b = (e, t) => ({
707
+ target: e,
708
+ source: e,
709
+ // for type crap only
710
+ type: o.insertNode,
711
+ data: t
712
+ }), Ht = (e, t, s) => ({
713
+ source: e,
714
+ target: t,
715
+ type: o.changeValue,
716
+ data: s
717
+ }), Qt = (e, t) => e.type > t.type ? 1 : e.type < t.type ? -1 : 0, _ = { index: -1 };
718
+ class Wt {
850
719
  constructor() {
851
- this.map = {}
720
+ this.map = {};
852
721
  }
853
722
  populate(t) {
854
- t.forEach((s, n) => {
855
- const r = s.__jsx
856
- r &&
857
- ((this.map[r] = this.map[r] || []),
858
- this.map[r].push({
859
- element: s,
860
- index: n,
861
- }))
862
- })
723
+ t.forEach((s, r) => {
724
+ const n = s.__jsx;
725
+ n && (this.map[n] = this.map[n] || [], this.map[n].push({
726
+ element: s,
727
+ index: r
728
+ }));
729
+ });
863
730
  }
864
731
  pullMatch(t) {
865
- const s = t && t.__jsx
866
- return !s || !(this.map[s] && this.map[s].length) ? N : this.map[s].shift()
732
+ const s = t && t.__jsx;
733
+ return !s || !(this.map[s] && this.map[s].length) ? _ : this.map[s].shift();
867
734
  }
868
735
  clear(t) {
869
- const s = t && t.__jsx
870
- if (!(s && this.map[s] && this.map[s].length)) return
871
- const n = this.map[s]
872
- this.map[s] = n.reduce((r, o) => (o.element !== t && r.push(o), r), [])
736
+ const s = t && t.__jsx;
737
+ if (!(s && this.map[s] && this.map[s].length)) return;
738
+ const r = this.map[s];
739
+ this.map[s] = r.reduce((n, i) => (i.element !== t && n.push(i), n), []);
873
740
  }
874
741
  check(t) {
875
- const s = t && t.__jsx
876
- return s && this.map[s] ? this.map[s].length > 0 : !1
742
+ const s = t && t.__jsx;
743
+ return s && this.map[s] ? this.map[s].length > 0 : !1;
877
744
  }
878
745
  remaining() {
879
- return Object.values(this.map).flat()
746
+ return Object.values(this.map).flat();
880
747
  }
881
748
  }
882
749
  const S = (e) => {
883
- const t = new Gt()
884
- return t.populate(e), t
885
- },
886
- Q = (e, t, s = !1) => {
887
- const n = [],
888
- r = e.attributes,
889
- o = r.length,
890
- a = t.attributes,
891
- l = a.length
892
- let u, d, c
893
- for (u = 0; u < o; u++) {
894
- c = null
895
- const h = r.item(u)
896
- if (h) {
897
- for (d = 0; d < l; d++) {
898
- const p = a.item(d)
899
- if (p && h.name == p.name) {
900
- c = p
901
- break
902
- }
750
+ const t = new Wt();
751
+ return t.populate(e), t;
752
+ }, Q = (e, t, s = !1) => {
753
+ const r = [], n = e.attributes, i = n.length, a = t.attributes, l = a.length;
754
+ let u, d, c;
755
+ for (u = 0; u < i; u++) {
756
+ c = null;
757
+ const h = n.item(u);
758
+ if (h) {
759
+ for (d = 0; d < l; d++) {
760
+ const p = a.item(d);
761
+ if (p && h.name == p.name) {
762
+ c = p;
763
+ break;
903
764
  }
904
- c
905
- ? h.value !== c.value &&
906
- n.push(
907
- Rt(e, t, {
908
- name: h.name,
909
- value: c.value,
910
- isSvg: s,
911
- }),
912
- )
913
- : n.push(Vt(e, t, { name: h.name, isSvg: s }))
914
765
  }
766
+ c ? h.value !== c.value && r.push(
767
+ It(e, t, {
768
+ name: h.name,
769
+ value: c.value,
770
+ isSvg: s
771
+ })
772
+ ) : r.push(
773
+ Ut(e, t, { name: h.name, isSvg: s })
774
+ );
915
775
  }
916
- for (u = 0; u < l; u++) {
917
- c = null
918
- const h = a.item(u)
919
- if (h) {
920
- for (d = 0; d < o; d++) {
921
- const p = r.item(d)
922
- if (p && p.name == h.name) {
923
- c = p
924
- break
925
- }
776
+ }
777
+ for (u = 0; u < l; u++) {
778
+ c = null;
779
+ const h = a.item(u);
780
+ if (h) {
781
+ for (d = 0; d < i; d++) {
782
+ const p = n.item(d);
783
+ if (p && p.name == h.name) {
784
+ c = p;
785
+ break;
926
786
  }
927
- c ||
928
- n.push(
929
- Kt(e, t, {
930
- name: h.name,
931
- value: h.value,
932
- isSvg: s,
933
- }),
934
- )
935
787
  }
788
+ c || r.push(
789
+ Ct(e, t, {
790
+ name: h.name,
791
+ value: h.value,
792
+ isSvg: s
793
+ })
794
+ );
936
795
  }
937
- return n
938
- },
939
- Ct = (e, t) => {
940
- const s = [],
941
- n = e.eventMaps,
942
- r = t.eventMaps,
943
- o = Object.keys(n),
944
- a = Object.keys(r)
945
- return (
946
- o.forEach((l) => {
947
- const u = n[l],
948
- d = r[l]
949
- d
950
- ? d.busEvent !== u.busEvent &&
951
- s.push(
952
- It(e, t, {
953
- name: l,
954
- targetValue: d.listener,
955
- sourceValue: u.listener,
956
- }),
957
- )
958
- : s.push(
959
- Ut(e, t, {
960
- name: u.domEvent,
961
- value: u.listener,
962
- }),
963
- )
964
- }),
965
- a.forEach((l) => {
966
- const u = n[l],
967
- d = r[l]
968
- u ||
969
- s.push(
970
- qt(e, t, {
971
- name: d.domEvent,
972
- value: d.listener,
973
- }),
974
- )
975
- }),
976
- s
977
- )
978
- },
979
- Qt = (e) => e.tagName !== 'INPUT',
980
- Wt = (e, t) => e.value === t.value,
981
- Xt = (e, t) => {
982
- if (Qt(e) || Wt(e, t)) return []
983
- const s = e,
984
- n = t
985
- return [Jt(s, n, { name: 'value', value: n.value })]
986
- },
987
- Yt = (e, t) => {
988
- const s = Q(e, t),
989
- n = Ct(e, t),
990
- r = Xt(e, t)
991
- return s.concat(n).concat(r)
992
- },
993
- Zt = (e, t) => Q(e, t, !0),
994
- te = (e, t) => (e.textContent !== t.textContent ? [zt(e, t)] : []),
995
- ee = (e, t, s) => {
996
- let n = []
997
- if (e.nodeType === 1 && it(e)) {
998
- const r = e,
999
- o = t,
1000
- a = Zt(r, o),
1001
- l = s(r.childNodes, o.childNodes, r)
1002
- n = a.concat(l)
1003
- } else if (e.nodeType === 1) {
1004
- const r = e,
1005
- o = t,
1006
- a = Yt(r, o),
1007
- l = s(r.childNodes, o.childNodes, r)
1008
- n = a.concat(l)
1009
- } else e.nodeType === 3 && (n = te(e, t))
1010
- return n
1011
- },
1012
- W = (e, t, s) => {
1013
- const n = [],
1014
- r = se(e, t),
1015
- o = S(e),
1016
- a = S(t),
1017
- l = []
1018
- let u = 0
1019
- for (; u < r; u++) {
1020
- const c = e[u],
1021
- h = t[u]
1022
- if (h && a.check(h)) {
1023
- const p = o.pullMatch(h)
1024
- a.clear(h),
1025
- p.element
1026
- ? (p.index !== u &&
1027
- n.push(
1028
- b(p.element, {
1029
- parent: s,
1030
- index: u,
1031
- }),
1032
- ),
1033
- l.push({
1034
- source: p.element,
1035
- target: h,
1036
- }))
1037
- : c
1038
- ? a.check(c)
1039
- ? n.push(b(h, { parent: s, index: u }))
1040
- : (o.clear(c), n.push(Bt(c, h)))
1041
- : n.push(b(h, { parent: s, index: u }))
1042
- } else c && o.pullMatch(c).element && n.push(w(c))
1043
- }
1044
- o.remaining().forEach(({ element: c }) => {
1045
- n.push(w(c))
1046
- })
1047
- const d = l.reduce(
1048
- (c, { source: h, target: p }) => c.concat(ee(h, p, W)),
1049
- [],
1050
- )
1051
- return n.concat(d).sort(Ht)
1052
- },
1053
- se = (e, t) => {
1054
- const s = e.length,
1055
- n = t.length
1056
- return s > n ? s : n
1057
- },
1058
- ne = (e, t, s) => {
1059
- const n = W(e, t, s)
1060
- return (
1061
- n.forEach((r) => {
1062
- re(r)
1063
- }),
796
+ }
797
+ return r;
798
+ }, Xt = (e, t) => {
799
+ const s = [], r = e.eventMaps, n = t.eventMaps, i = Object.keys(r), a = Object.keys(n);
800
+ return i.forEach((l) => {
801
+ const u = r[l], d = n[l];
802
+ d ? d.busEvent !== u.busEvent && s.push(
803
+ Gt(e, t, {
804
+ name: l,
805
+ targetValue: d.listener,
806
+ sourceValue: u.listener
807
+ })
808
+ ) : s.push(
809
+ qt(e, t, {
810
+ name: u.domEvent,
811
+ value: u.listener
812
+ })
813
+ );
814
+ }), a.forEach((l) => {
815
+ const u = r[l], d = n[l];
816
+ u || s.push(
817
+ Jt(e, t, {
818
+ name: d.domEvent,
819
+ value: d.listener
820
+ })
821
+ );
822
+ }), s;
823
+ }, Yt = (e) => e.tagName !== "INPUT", Zt = (e, t) => e.value === t.value, te = (e, t) => {
824
+ if (Yt(e) || Zt(e, t))
825
+ return [];
826
+ const s = e, r = t;
827
+ return [Ht(s, r, { name: "value", value: r.value })];
828
+ }, ee = (e, t) => {
829
+ const s = Q(e, t), r = Xt(e, t), n = te(e, t);
830
+ return s.concat(r).concat(n);
831
+ }, se = (e, t) => Q(e, t, !0), re = (e, t) => e.textContent !== t.textContent ? [Kt(e, t)] : [], ne = (e, t, s) => {
832
+ let r = [];
833
+ if (e.nodeType === 1 && ot(e)) {
834
+ const n = e, i = t, a = se(n, i), l = s(
835
+ n.childNodes,
836
+ i.childNodes,
1064
837
  n
1065
- )
1066
- },
1067
- re = (e) => {
1068
- ;(be[e.type] || oe)(e)
1069
- },
1070
- oe = (e) => {},
1071
- ie = (e) => {
1072
- const { source: t, target: s } = e
1073
- t.nodeValue = s.textContent
1074
- },
1075
- ue = (e) => {
1076
- const { source: t } = e
1077
- t.remove()
1078
- },
1079
- ae = (e) => {
1080
- const { target: t, data: s } = e,
1081
- { parent: n, index: r } = s,
1082
- o = n.childNodes[r]
1083
- o ? o && o !== t && n.insertBefore(t, o) : n.appendChild(t)
1084
- },
1085
- ce = (e) => {
1086
- const { source: t, target: s } = e
1087
- t.replaceWith(s)
1088
- },
1089
- le = (e) => {
1090
- const { source: t, data: s } = e,
1091
- { name: n, isSvg: r } = s
1092
- r ? t.removeAttributeNS(null, n) : t.removeAttribute(n)
1093
- },
1094
- X = (e) => {
1095
- const { source: t, data: s } = e,
1096
- { name: n, value: r, isSvg: o } = s
1097
- o ? t.setAttributeNS(null, n, r) : t.setAttribute(n, r)
1098
- },
1099
- he = (e) => {
1100
- X(e)
1101
- },
1102
- de = (e) => {
1103
- const t = e.data,
1104
- s = e.source,
1105
- { name: n, value: r } = t
1106
- s.removeEventListener(n, r)
1107
- },
1108
- pe = (e) => {
1109
- const t = e.data,
1110
- s = e.source,
1111
- { name: n, value: r } = t
1112
- s.addEventListener(n, r)
1113
- },
1114
- me = (e) => {
1115
- const t = e.data,
1116
- s = e.source,
1117
- { name: n, sourceValue: r, targetValue: o } = t
1118
- s.removeEventListener(n, r), s.addEventListener(n, o)
1119
- },
1120
- fe = (e) => {
1121
- const t = e.data,
1122
- s = e.source,
1123
- { value: n } = t
1124
- s.value = n
1125
- },
1126
- be = {
1127
- [i.changeText]: ie,
1128
- [i.removeNode]: ue,
1129
- [i.insertNode]: ae,
1130
- [i.replaceNode]: ce,
1131
- [i.removeAttribute]: le,
1132
- [i.addAttribute]: X,
1133
- [i.updateAttribute]: he,
1134
- [i.removeEvent]: de,
1135
- [i.addEvent]: pe,
1136
- [i.updateEvent]: me,
1137
- [i.changeValue]: fe,
1138
- },
1139
- ve = (e, t, s) => {
1140
- const n = [...t]
1141
- return (
1142
- e.forEach((r) => {
1143
- ge(r, n, s)
1144
- }),
838
+ );
839
+ r = a.concat(l);
840
+ } else if (e.nodeType === 1) {
841
+ const n = e, i = t, a = ee(n, i), l = s(
842
+ n.childNodes,
843
+ i.childNodes,
1145
844
  n
1146
- )
1147
- },
1148
- ge = (e, t, s) => {
1149
- const n = Ae[e.type]
1150
- n && n(e, t, s)
1151
- },
1152
- ye = (e, t) => {
1153
- const { source: s } = e,
1154
- n = t.indexOf(s)
1155
- n >= 0 && t.splice(n, 1)
1156
- },
1157
- Ee = (e, t, s) => {
1158
- const { target: n } = e,
1159
- r = e.data,
1160
- { index: o, parent: a } = r
1161
- s === a && t.splice(o, 0, n)
1162
- },
1163
- xe = (e, t) => {
1164
- const { target: s, source: n } = e,
1165
- r = t.indexOf(n)
1166
- r >= 0 && (t[r] = s)
1167
- },
1168
- Ae = {
1169
- [i.removeNode]: ye,
1170
- [i.insertNode]: Ee,
1171
- [i.replaceNode]: xe,
1172
- }
1173
- class _e {
1174
- constructor({ Template: t, subscriptions: s, attributes: n, viewModel: r }) {
1175
- ;(this.Template = t),
1176
- (this.viewModel = r),
1177
- (this.attributes = n),
1178
- (this.subscriptions = s),
1179
- (this.dom = []),
1180
- (this.parentElement = null)
845
+ );
846
+ r = a.concat(l);
847
+ } else e.nodeType === 3 && (r = re(e, t));
848
+ return r;
849
+ }, W = (e, t, s) => {
850
+ const r = [], n = ie(e, t), i = S(e), a = S(t), l = [];
851
+ let u = 0;
852
+ for (; u < n; u++) {
853
+ const c = e[u], h = t[u];
854
+ if (h && a.check(h)) {
855
+ const p = i.pullMatch(h);
856
+ a.clear(h), p.element ? (p.index !== u && r.push(
857
+ b(p.element, {
858
+ parent: s,
859
+ index: u
860
+ })
861
+ ), l.push({
862
+ source: p.element,
863
+ target: h
864
+ })) : c ? a.check(c) ? r.push(
865
+ b(h, { parent: s, index: u })
866
+ ) : (i.clear(c), r.push(
867
+ Rt(c, h)
868
+ )) : r.push(
869
+ b(h, { parent: s, index: u })
870
+ );
871
+ } else c && i.pullMatch(c).element && r.push(N(c));
872
+ }
873
+ i.remaining().forEach(({ element: c }) => {
874
+ r.push(N(c));
875
+ });
876
+ const d = l.reduce(
877
+ (c, { source: h, target: p }) => c.concat(
878
+ ne(h, p, W)
879
+ ),
880
+ []
881
+ );
882
+ return r.concat(d).sort(Qt);
883
+ }, ie = (e, t) => {
884
+ const s = e.length, r = t.length;
885
+ return s > r ? s : r;
886
+ }, oe = (e, t, s) => {
887
+ const r = W(e, t, s);
888
+ return r.forEach((n) => {
889
+ ue(n);
890
+ }), r;
891
+ }, ue = (e) => {
892
+ (ye[e.type] || ae)(e);
893
+ }, ae = (e) => {
894
+ }, ce = (e) => {
895
+ const { source: t, target: s } = e;
896
+ t.nodeValue = s.textContent;
897
+ }, le = (e) => {
898
+ const { source: t } = e;
899
+ t.remove();
900
+ }, he = (e) => {
901
+ const { target: t, data: s } = e, { parent: r, index: n } = s, i = r.childNodes[n];
902
+ i ? i && i !== t && r.insertBefore(t, i) : r.appendChild(t);
903
+ }, de = (e) => {
904
+ const { source: t, target: s } = e;
905
+ t.replaceWith(s);
906
+ }, pe = (e) => {
907
+ const { source: t, data: s } = e, { name: r, isSvg: n } = s;
908
+ n ? t.removeAttributeNS(null, r) : t.removeAttribute(r);
909
+ }, X = (e) => {
910
+ const { source: t, data: s } = e, { name: r, value: n, isSvg: i } = s;
911
+ i ? t.setAttributeNS(null, r, n) : t.setAttribute(r, n);
912
+ }, me = (e) => {
913
+ X(e);
914
+ }, fe = (e) => {
915
+ const t = e.data, s = e.source, { name: r, value: n } = t;
916
+ s.removeEventListener(r, n);
917
+ }, be = (e) => {
918
+ const t = e.data, s = e.source, { name: r, value: n } = t;
919
+ s.addEventListener(r, n);
920
+ }, ve = (e) => {
921
+ const t = e.data, s = e.source, { name: r, sourceValue: n, targetValue: i } = t;
922
+ s.removeEventListener(r, n), s.addEventListener(r, i);
923
+ }, ge = (e) => {
924
+ const t = e.data, s = e.source, { value: r } = t;
925
+ s.value = r;
926
+ }, ye = {
927
+ [o.changeText]: ce,
928
+ [o.removeNode]: le,
929
+ [o.insertNode]: he,
930
+ [o.replaceNode]: de,
931
+ [o.removeAttribute]: pe,
932
+ [o.addAttribute]: X,
933
+ [o.updateAttribute]: me,
934
+ [o.removeEvent]: fe,
935
+ [o.addEvent]: be,
936
+ [o.updateEvent]: ve,
937
+ [o.changeValue]: ge
938
+ }, Ee = (e, t, s) => {
939
+ const r = [...t];
940
+ return e.forEach((n) => {
941
+ xe(n, r, s);
942
+ }), r;
943
+ }, xe = (e, t, s) => {
944
+ const r = _e[e.type];
945
+ r && r(e, t, s);
946
+ }, Ae = (e, t) => {
947
+ const { source: s } = e, r = t.indexOf(s);
948
+ r >= 0 && t.splice(r, 1);
949
+ }, we = (e, t, s) => {
950
+ const { target: r } = e, n = e.data, { index: i, parent: a } = n;
951
+ s === a && t.splice(i, 0, r);
952
+ }, Ne = (e, t) => {
953
+ const { target: s, source: r } = e, n = t.indexOf(r);
954
+ n >= 0 && (t[n] = s);
955
+ }, _e = {
956
+ [o.removeNode]: Ae,
957
+ [o.insertNode]: we,
958
+ [o.replaceNode]: Ne
959
+ };
960
+ class Se {
961
+ constructor({ Template: t, subscriptions: s, attributes: r, viewModel: n }) {
962
+ this.Template = t, this.viewModel = n, this.attributes = r, this.subscriptions = s, this.dom = [], this.parentElement = null;
1181
963
  }
1182
964
  render(t) {
1183
- return (
1184
- (this.parentElement = t.parent),
1185
- (this.renderKit = t),
1186
- this.subscribeForRerender(),
1187
- (this.dom = this.generateDom(t)),
1188
- this.dom
1189
- )
965
+ return this.parentElement = t.parent, this.renderKit = t, this.subscribeForRerender(), this.dom = this.generateDom(t), this.dom;
1190
966
  }
1191
967
  generateDom(t) {
1192
968
  const s = {
1193
- ...this.attributes,
1194
- ...this.viewModel(t.state.getAll(this.subscriptions)),
1195
- },
1196
- n = this.Template(s)
1197
- return n ? n.render(t) : []
969
+ ...this.attributes,
970
+ ...this.viewModel(
971
+ t.state.getAll(this.subscriptions)
972
+ )
973
+ }, r = this.Template(s);
974
+ return r ? r.render(t) : [];
1198
975
  }
1199
976
  rerender() {
1200
977
  if (!this.parentElement && this.dom[0]) {
1201
- const n = this.dom[0].parentElement
1202
- this.parentElement = n
978
+ const r = this.dom[0].parentElement;
979
+ this.parentElement = r;
1203
980
  }
1204
- const t = this.generateDom(this.renderKit),
1205
- s = ne(this.dom, t, this.parentElement)
1206
- this.dom = ve(s, this.dom, this.parentElement)
981
+ const t = this.generateDom(this.renderKit), s = oe(
982
+ this.dom,
983
+ t,
984
+ this.parentElement
985
+ );
986
+ this.dom = Ee(
987
+ s,
988
+ this.dom,
989
+ this.parentElement
990
+ );
1207
991
  }
1208
992
  subscribeForRerender() {
1209
- const { subscribe: t } = this.renderKit
993
+ const { subscribe: t } = this.renderKit;
1210
994
  this.subscriptions.forEach((s) => {
1211
- t(this.eventName(s), () => this.rerender())
1212
- })
995
+ t(this.eventName(s), () => this.rerender());
996
+ });
1213
997
  }
1214
998
  eventName(t) {
1215
- return `${_}:${t}`
999
+ return `${w}:${t}`;
1216
1000
  }
1217
1001
  }
1218
- const we = (e) => e,
1219
- Ne = ({ Template: e, viewModel: t, subscriptions: s }) => (
1220
- (s = s || []),
1221
- (t = t || we),
1222
- (n) =>
1223
- new _e({ Template: e, viewModel: t, subscriptions: s, attributes: n })
1224
- ),
1225
- Pe = /* @__PURE__ */ Object.freeze(
1226
- /* @__PURE__ */ Object.defineProperty(
1227
- {
1228
- __proto__: null,
1229
- createRouteState: D,
1230
- events: _t,
1231
- extractQueryParams: L,
1232
- findHref: P,
1233
- navigate: E,
1234
- onLinkClick: F,
1235
- onLocationChange: z,
1236
- start: wt,
1237
- },
1238
- Symbol.toStringTag,
1239
- { value: 'Module' },
1240
- ),
1241
- ),
1242
- Se =
1243
- (e) =>
1244
- ({ path: t }) =>
1245
- t === e,
1246
- je = () => !0,
1247
- Y =
1248
- (e) =>
1249
- ({ route: t }) => {
1250
- const s = e.find((n) => n.match(t))
1251
- return s && s.Partial
1252
- },
1253
- Fe = /* @__PURE__ */ Object.freeze(
1254
- /* @__PURE__ */ Object.defineProperty(
1255
- {
1256
- __proto__: null,
1257
- buildRouter: Y,
1258
- catchAll: je,
1259
- exactPathMatch: Se,
1260
- },
1261
- Symbol.toStringTag,
1262
- { value: 'Module' },
1263
- ),
1264
- ),
1265
- Oe = () => ({
1266
- render: (e, t) => [],
1267
- }),
1268
- Le = (e) => {
1269
- const t = Y(e)
1270
- return Ne({
1271
- Template: ({ route: n }) => (t({ route: n }) || Oe)(),
1272
- subscriptions: ['route'],
1273
- })
1274
- }
1002
+ const Te = (e) => e, je = ({
1003
+ Template: e,
1004
+ viewModel: t,
1005
+ subscriptions: s
1006
+ }) => (s = s || [], t = t || Te, (r) => new Se({ Template: e, viewModel: t, subscriptions: s, attributes: r })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1007
+ __proto__: null,
1008
+ createRouteState: D,
1009
+ events: wt,
1010
+ extractQueryParams: F,
1011
+ findHref: P,
1012
+ navigate: E,
1013
+ onLinkClick: V,
1014
+ onLocationChange: L,
1015
+ start: Nt
1016
+ }, Symbol.toStringTag, { value: "Module" })), Oe = (e) => ({ path: t }) => t === e, Me = () => !0, Y = (e) => ({ route: t }) => {
1017
+ const s = e.find((r) => r.match(t));
1018
+ return s && s.Partial;
1019
+ }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1020
+ __proto__: null,
1021
+ buildRouter: Y,
1022
+ catchAll: Me,
1023
+ exactPathMatch: Oe
1024
+ }, Symbol.toStringTag, { value: "Module" })), ke = () => ({
1025
+ render: (e, t) => []
1026
+ }), Be = (e) => {
1027
+ const t = Y(e);
1028
+ return je({ Template: ({ route: r }) => (t({ route: r }) || ke)(), subscriptions: ["route"] });
1029
+ };
1275
1030
  export {
1276
- De as JaxsTypes,
1277
- Me as appBuilding,
1278
- Ne as bind,
1279
- $e as createApp,
1031
+ Fe as JaxsTypes,
1032
+ $e as appBuilding,
1033
+ je as bind,
1034
+ Ve as createApp,
1280
1035
  Et as jsx,
1281
- ke as messageBus,
1282
- Pe as navigation,
1283
- Le as routedView,
1284
- Fe as routing,
1285
- Te as state,
1286
- }
1036
+ De as messageBus,
1037
+ Le as navigation,
1038
+ Be as routedView,
1039
+ ze as routing,
1040
+ Pe as state
1041
+ };