jaxs 0.9.4 → 0.9.6

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.umd.cjs CHANGED
@@ -17,7 +17,7 @@
17
17
  },
18
18
  M = (e, t, s) => (e.splice(t, 0, s), e),
19
19
  k = (e, t) => (e.includes(t) || e.push(t), e),
20
- pt = {
20
+ ft = {
21
21
  remove: b,
22
22
  removeBy: O,
23
23
  insertAt: M,
@@ -29,7 +29,7 @@
29
29
  sortBy: (e, t) => e.sort(t),
30
30
  includes: (e, t) => e.includes(t),
31
31
  }
32
- class ft {
32
+ class mt {
33
33
  constructor(t) {
34
34
  this.store = t
35
35
  }
@@ -59,8 +59,8 @@
59
59
  return this.value === !1
60
60
  }
61
61
  }
62
- const v = (e) => new ft(e),
63
- mt = {
62
+ const v = (e) => new mt(e),
63
+ bt = {
64
64
  toggle: (e) => v(e).toggle(),
65
65
  setTrue: (e) => v(e).setTrue(),
66
66
  setFalse: (e) => v(e).setFalse(),
@@ -68,7 +68,7 @@
68
68
  isTrue: (e) => v(e).isTrue(),
69
69
  isFalse: (e) => v(e).isFalse(),
70
70
  }
71
- class bt {
71
+ class vt {
72
72
  constructor(t) {
73
73
  this.store = t
74
74
  }
@@ -131,8 +131,8 @@
131
131
  n !== -1 && ((r[n] = s), this.update(r))
132
132
  }
133
133
  }
134
- const m = (e) => new bt(e),
135
- vt = {
134
+ const m = (e) => new vt(e),
135
+ yt = {
136
136
  push: (e, t) => m(e).push(t),
137
137
  pop: (e) => m(e).pop(),
138
138
  unshift: (e, t) => m(e).unshift(t),
@@ -147,7 +147,7 @@
147
147
  findBy: (e, t) => m(e).findBy(t),
148
148
  replace: (e, t, s) => m(e).replace(t, s),
149
149
  }
150
- class yt {
150
+ class gt {
151
151
  constructor(t) {
152
152
  this.store = t
153
153
  }
@@ -186,22 +186,22 @@
186
186
  return !!this.value[t]
187
187
  }
188
188
  }
189
- const y = (e) => new yt(e),
190
- gt = {
189
+ const y = (e) => new gt(e),
190
+ Et = {
191
191
  reset: (e) => y(e).reset(),
192
192
  resetAttribute: (e, t) => y(e).resetAttribute(t),
193
193
  updateAttribute: (e, t, s) => y(e).updateAttribute(t, s),
194
194
  updateAttributes: (e, t) => y(e).updateAttributes(t),
195
195
  attributeTruthy: (e, t) => y(e).attributeTruthy(t),
196
196
  },
197
- Et = (e) => typeof e == 'boolean',
198
- At = (e) => typeof e == 'number',
197
+ At = (e) => typeof e == 'boolean',
198
+ wt = (e) => typeof e == 'number',
199
199
  $ = (e) => typeof e == 'string',
200
200
  g = (e) => Array.isArray(e),
201
201
  A = (e) => e !== null && !g(e) && typeof e == 'object',
202
- wt = { boolean: Et, number: At, string: $, array: g, object: A },
203
- Nt = (e, t) => t.createElement(e),
204
- St = (e, t) => {
202
+ Nt = { boolean: At, number: wt, string: $, array: g, object: A },
203
+ St = (e, t) => t.createElement(e),
204
+ _t = (e, t) => {
205
205
  for (const s in t) {
206
206
  if (s === '__self') continue
207
207
  const r = t[s].toString()
@@ -212,7 +212,7 @@
212
212
  $(r) && r.trim() === '' ? e.removeAttribute(s) : e.setAttribute(s, r)
213
213
  }
214
214
  },
215
- _t = (e, t, s) => {
215
+ xt = (e, t, s) => {
216
216
  const r = {}
217
217
  for (const n in t) {
218
218
  const i = t[n],
@@ -222,12 +222,12 @@
222
222
  }
223
223
  e.eventMaps = r
224
224
  },
225
- xt = (e, t, s, r) => {
226
- const n = Nt(e, r.document)
227
- return St(n, t), _t(n, s, r.publish), n
225
+ Tt = (e, t, s, r) => {
226
+ const n = St(e, r.document)
227
+ return _t(n, t), xt(n, s, r.publish), n
228
228
  },
229
229
  N = 'http://www.w3.org/2000/svg',
230
- Tt = {
230
+ jt = {
231
231
  animate: !0,
232
232
  animateMotion: !0,
233
233
  animateTransform: !0,
@@ -291,8 +291,8 @@
291
291
  use: !0,
292
292
  view: !0,
293
293
  },
294
- jt = (e, t) => !!(Tt[e] || (e === 'a' && t === N)),
295
- Ot = (e, t, s) => {
294
+ Ot = (e, t) => !!(jt[e] || (e === 'a' && t === N)),
295
+ Mt = (e, t, s) => {
296
296
  const r = s.createElementNS(N, e)
297
297
  for (const n in t)
298
298
  n === '__self' ||
@@ -300,24 +300,24 @@
300
300
  r.setAttributeNS(null, n, t[n].toString())
301
301
  return r
302
302
  },
303
- Mt = (e) => e.namespaceURI === N,
304
- kt = (e, t) => t.createTextNode(e)
305
- class $t {
303
+ kt = (e) => e.namespaceURI === N,
304
+ $t = (e, t) => t.createTextNode(e)
305
+ class Bt {
306
306
  constructor(t) {
307
307
  this.value = t.toString()
308
308
  }
309
309
  render(t) {
310
- const s = kt(this.value, t.document)
310
+ const s = $t(this.value, t.document)
311
311
  return (s.__jsx = 'TextNode'), [s]
312
312
  }
313
313
  }
314
- const Bt = (e) => typeof e == 'string' || typeof e == 'number',
315
- Dt = (e) => new $t(e),
316
- Pt = (e) => (Bt(e) ? Dt(e) : e),
317
- B = (e) => Ft(e).map(Pt).flat(),
318
- Ft = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
314
+ const Dt = (e) => typeof e == 'string' || typeof e == 'number',
315
+ Pt = (e) => new Bt(e),
316
+ Ft = (e) => (Dt(e) ? Pt(e) : e),
317
+ B = (e) => Vt(e).map(Ft).flat(),
318
+ Vt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
319
319
  D = (e, t = {}) => B(e || t.children || []),
320
- Vt = (e, t = '') => {
320
+ Lt = (e, t = '') => {
321
321
  const s = {},
322
322
  r = {}
323
323
  for (const n in e) {
@@ -327,19 +327,19 @@
327
327
  r[o] = i ? i.toString() : ''
328
328
  } else {
329
329
  if (i === !1) continue
330
- n === '__source' ? (s.__source = e.__source) : (s[n] = Lt(n, i, t))
330
+ n === '__source' ? (s.__source = e.__source) : (s[n] = zt(n, i, t))
331
331
  }
332
332
  }
333
333
  return { attributes: s, events: r }
334
334
  },
335
- Lt = (e, t, s = '') => (t == null ? s : t.toString()),
336
- zt = (e, t) => {
335
+ zt = (e, t, s = '') => (t == null ? s : t.toString()),
336
+ Kt = (e, t) => {
337
337
  const s = e || {},
338
338
  r = D(t, s)
339
339
  return (s.children = s.children || r), s
340
340
  },
341
- P = (e, t, s, r = []) => e.reduce(Kt(t, s), r).flat(),
342
- Kt = (e, t) => (s, r) =>
341
+ P = (e, t, s, r = []) => e.reduce(Rt(t, s), r).flat(),
342
+ Rt = (e, t) => (s, r) =>
343
343
  r
344
344
  ? Array.isArray(r)
345
345
  ? P(r, e, t, s)
@@ -363,7 +363,7 @@
363
363
  t.forEach((r) => s.appendChild(r))
364
364
  }
365
365
  }
366
- class Rt {
366
+ class Ut {
367
367
  constructor(t, s) {
368
368
  ;(this.type = t), (this.attributes = s)
369
369
  }
@@ -391,13 +391,13 @@
391
391
  return `${this.type}${t}${s}${r}`
392
392
  }
393
393
  }
394
- class Ut {
394
+ class qt {
395
395
  constructor(t, s, r = []) {
396
396
  this.type = t
397
- const { events: n, attributes: i } = Vt(s)
397
+ const { events: n, attributes: i } = Lt(s)
398
398
  ;(this.events = n),
399
399
  (this.attributes = i),
400
- (this.isSvg = jt(this.type, this.attributes.xmlns)),
400
+ (this.isSvg = Ot(this.type, this.attributes.xmlns)),
401
401
  (this.children = new F(r))
402
402
  }
403
403
  render(t) {
@@ -408,24 +408,24 @@
408
408
  return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t)
409
409
  }
410
410
  generateHtmlDom(t) {
411
- const s = xt(this.type, this.attributes, this.events, t)
411
+ const s = Tt(this.type, this.attributes, this.events, t)
412
412
  return (s.__jsx = this.jsxKey()), s
413
413
  }
414
414
  generateSvgDom(t) {
415
- const s = Ot(this.type, this.attributes, t.document)
415
+ const s = Mt(this.type, this.attributes, t.document)
416
416
  return (s.__jsx = this.jsxKey()), s
417
417
  }
418
418
  jsxKey() {
419
- return new Rt(this.type, this.attributes).generate()
419
+ return new Ut(this.type, this.attributes).generate()
420
420
  }
421
421
  }
422
422
  const V = (e, t, ...s) =>
423
- typeof e == 'string' ? new Ut(e, t, s) : e(zt(t, s))
423
+ typeof e == 'string' ? new qt(e, t, s) : e(Kt(t, s))
424
424
  V.fragment = (e, t) => {
425
425
  const s = D(t, e)
426
426
  return new F(s)
427
427
  }
428
- class qt {
428
+ class It {
429
429
  constructor(t, s, r) {
430
430
  ;(this.template = t),
431
431
  (this.selector = s),
@@ -450,15 +450,15 @@
450
450
  return this.renderKit.document.querySelector(this.selector)
451
451
  }
452
452
  }
453
- const It = (e, t, s) => {
454
- const r = new qt(e, t, s)
453
+ const Jt = (e, t, s) => {
454
+ const r = new It(e, t, s)
455
455
  return r.renderAndAttach(s), r
456
456
  },
457
457
  L = 'go-to-href',
458
458
  z = 'go-to',
459
459
  E = 'navigation:location-change',
460
460
  K = 'navigation:route-change',
461
- Jt = Object.freeze(
461
+ Ht = Object.freeze(
462
462
  Object.defineProperty(
463
463
  {
464
464
  __proto__: null,
@@ -522,7 +522,7 @@
522
522
  C = (e) => {
523
523
  G(e), H(e), W(e)
524
524
  },
525
- Ht = Object.freeze(
525
+ Gt = Object.freeze(
526
526
  Object.defineProperty(
527
527
  {
528
528
  __proto__: null,
@@ -555,14 +555,14 @@
555
555
  (this.roots = [])
556
556
  }
557
557
  render(t, s) {
558
- const r = It(t, s, this.renderKit)
558
+ const r = Jt(t, s, this.renderKit)
559
559
  return this.roots.push(r), r
560
560
  }
561
561
  startNavigation() {
562
562
  C(this)
563
563
  }
564
564
  }
565
- const Gt = Object.freeze(
565
+ const Wt = Object.freeze(
566
566
  Object.defineProperty({ __proto__: null, App: Q }, Symbol.toStringTag, {
567
567
  value: 'Module',
568
568
  }),
@@ -642,20 +642,20 @@
642
642
  ((this.callCount += 1), this.publish(this.event, this.payload))
643
643
  }
644
644
  }
645
- const Wt = (e) => (t, s) => {
645
+ const Ct = (e) => (t, s) => {
646
646
  const { offset: r, period: n, payload: i } = s,
647
647
  o = ({ callCount: u }) => (r && u == 0 ? r : n),
648
648
  c = new _({ payload: i, event: t, publish: e, timer: o })
649
649
  return c.start(), c.stop
650
650
  },
651
- Ct =
651
+ Qt =
652
652
  (e) =>
653
653
  (t, { timeout: s, payload: r }) => {
654
654
  const n = ({ callCount: o, stop: c }) => (o > 1 && c(), s),
655
655
  i = new _({ publish: e, event: t, payload: r, timer: n })
656
656
  return i.start(), i.stop
657
657
  },
658
- Qt = (e) => (t, s) => {
658
+ Xt = (e) => (t, s) => {
659
659
  const r = { ...s, event: t, publish: e },
660
660
  n = new _(r)
661
661
  return n.start(), n.stop
@@ -693,53 +693,58 @@
693
693
  return {
694
694
  eventName: t,
695
695
  ...this.options,
696
- publish: this.publish.bind(this),
696
+ publish: tt(this.publish.bind(this)),
697
697
  payload: s,
698
698
  }
699
699
  }
700
700
  }
701
- const tt = () => {
702
- const e = new Z(),
703
- t = (r, n) => e.publish(r, n)
701
+ const tt = (e) => {
702
+ const t = e
704
703
  return (
705
- (t.withTimeout = Ct(t)),
706
- (t.periodically = Wt(t)),
707
- (t.periodicallyWithCustomTimer = Qt(t)),
708
- { bus: e, publish: t, subscribe: (r, n) => e.subscribe(r, n) }
704
+ (t.withTimeout = Qt(e)),
705
+ (t.periodically = Ct(e)),
706
+ (t.periodicallyWithCustomTimer = Xt(e)),
707
+ t
709
708
  )
710
709
  },
711
- Xt = Object.freeze(
710
+ et = () => {
711
+ const e = new Z(),
712
+ t = (r, n) => e.publish(r, n),
713
+ s = (r, n) => e.subscribe(r, n)
714
+ return { bus: e, publish: tt(t), subscribe: s }
715
+ },
716
+ Yt = Object.freeze(
712
717
  Object.defineProperty(
713
718
  {
714
719
  __proto__: null,
715
720
  ExactSubscriptions: X,
716
721
  FuzzySubscriptions: Y,
717
722
  JaxsBus: Z,
718
- createBus: tt,
723
+ createBus: et,
719
724
  },
720
725
  Symbol.toStringTag,
721
726
  { value: 'Module' },
722
727
  ),
723
728
  ),
724
- Yt = (e, t) => e === t,
725
- Zt = (e, t) => Object.keys(e).length === Object.keys(t).length,
726
- et = (e, t) =>
727
- !(A(e) && A(t)) || !Zt(e, t)
729
+ Zt = (e, t) => e === t,
730
+ te = (e, t) => Object.keys(e).length === Object.keys(t).length,
731
+ st = (e, t) =>
732
+ !(A(e) && A(t)) || !te(e, t)
728
733
  ? !1
729
734
  : Object.keys(e).every((s) => {
730
735
  const r = e[s],
731
736
  n = t[s]
732
737
  return w(r, n)
733
738
  }),
734
- st = (e, t) =>
739
+ rt = (e, t) =>
735
740
  !(g(e) && g(t)) || e.length !== t.length
736
741
  ? !1
737
742
  : e.every((s, r) => {
738
743
  const n = t[r]
739
744
  return w(s, n)
740
745
  }),
741
- w = (e, t) => (A(e) ? et(e, t) : g(e) ? st(e, t) : Yt(e, t)),
742
- te = { objects: et, arrays: st, equal: w }
746
+ w = (e, t) => (A(e) ? st(e, t) : g(e) ? rt(e, t) : Zt(e, t)),
747
+ ee = { objects: st, arrays: rt, equal: w }
743
748
  class x {
744
749
  constructor(t) {
745
750
  ;(this.name = t.name),
@@ -770,7 +775,7 @@
770
775
  }
771
776
  }
772
777
  const T = 'state'
773
- class rt {
778
+ class nt {
774
779
  constructor(t) {
775
780
  ;(this.publisher = t),
776
781
  (this.stores = {}),
@@ -816,15 +821,15 @@
816
821
  return `${this.eventNamePrefix}:${t}`
817
822
  }
818
823
  }
819
- const nt = (e) => new rt(e),
820
- ee = Object.freeze(
824
+ const it = (e) => new nt(e),
825
+ se = Object.freeze(
821
826
  Object.defineProperty(
822
- { __proto__: null, State: rt, Store: x, createState: nt, eventName: T },
827
+ { __proto__: null, State: nt, Store: x, createState: it, eventName: T },
823
828
  Symbol.toStringTag,
824
829
  { value: 'Module' },
825
830
  ),
826
831
  )
827
- class se {
832
+ class re {
828
833
  constructor(t) {
829
834
  this.setupDomEnvironment(t)
830
835
  }
@@ -854,11 +859,11 @@
854
859
  : ((this.window = window), (this.document = document))
855
860
  }
856
861
  setupBus() {
857
- const { publish: t, subscribe: s, bus: r } = tt()
862
+ const { publish: t, subscribe: s, bus: r } = et()
858
863
  ;(this.publish = t), (this.subscribe = s), (this.bus = r)
859
864
  }
860
865
  setupState() {
861
- this.state = nt(this.publish)
866
+ this.state = it(this.publish)
862
867
  }
863
868
  addBusOptions() {
864
869
  this.bus.addListenerOptions({
@@ -877,8 +882,8 @@
877
882
  }
878
883
  }
879
884
  }
880
- const re = (e = {}) => {
881
- const s = new se(e).setup()
885
+ const ne = (e = {}) => {
886
+ const s = new re(e).setup()
882
887
  return s.startNavigation(), s
883
888
  }
884
889
  var a = ((e) => (
@@ -895,37 +900,37 @@
895
900
  (e[(e.changeText = 10)] = 'changeText'),
896
901
  e
897
902
  ))(a || {})
898
- const ne = Object.freeze(
903
+ const ie = Object.freeze(
899
904
  Object.defineProperty(
900
905
  { __proto__: null, ChangeInstructionTypes: a },
901
906
  Symbol.toStringTag,
902
907
  { value: 'Module' },
903
908
  ),
904
909
  ),
905
- ie = (e, t) => ({ source: e, target: t, type: a.changeText, data: {} }),
906
- oe = (e, t) => ({ source: e, target: t, type: a.replaceNode, data: {} }),
907
- ue = (e, t, s) => ({
910
+ oe = (e, t) => ({ source: e, target: t, type: a.changeText, data: {} }),
911
+ ue = (e, t) => ({ source: e, target: t, type: a.replaceNode, data: {} }),
912
+ ae = (e, t, s) => ({
908
913
  source: e,
909
914
  target: t,
910
915
  data: s,
911
916
  type: a.removeAttribute,
912
917
  }),
913
- ae = (e, t, s) => ({ source: e, target: t, data: s, type: a.addAttribute }),
914
- ce = (e, t, s) => ({
918
+ ce = (e, t, s) => ({ source: e, target: t, data: s, type: a.addAttribute }),
919
+ le = (e, t, s) => ({
915
920
  source: e,
916
921
  target: t,
917
922
  data: s,
918
923
  type: a.updateAttribute,
919
924
  }),
920
- le = (e, t, s) => ({ source: e, target: t, data: s, type: a.removeEvent }),
921
- he = (e, t, s) => ({ source: e, target: t, data: s, type: a.addEvent }),
922
- de = (e, t, s) => ({ source: e, target: t, data: s, type: a.updateEvent }),
923
- it = (e) => ({ source: e, target: e, type: a.removeNode, data: {} }),
925
+ he = (e, t, s) => ({ source: e, target: t, data: s, type: a.removeEvent }),
926
+ de = (e, t, s) => ({ source: e, target: t, data: s, type: a.addEvent }),
927
+ pe = (e, t, s) => ({ source: e, target: t, data: s, type: a.updateEvent }),
928
+ ot = (e) => ({ source: e, target: e, type: a.removeNode, data: {} }),
924
929
  j = (e, t) => ({ target: e, source: e, type: a.insertNode, data: t }),
925
- pe = (e, t, s) => ({ source: e, target: t, type: a.changeValue, data: s }),
926
- fe = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
927
- ot = { index: -1 }
928
- class me {
930
+ fe = (e, t, s) => ({ source: e, target: t, type: a.changeValue, data: s }),
931
+ me = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
932
+ ut = { index: -1 }
933
+ class be {
929
934
  constructor() {
930
935
  this.map = {}
931
936
  }
@@ -940,7 +945,7 @@
940
945
  pullMatch(t) {
941
946
  const s = t && t.__jsx
942
947
  return !s || !(this.map[s] && this.map[s].length)
943
- ? ot
948
+ ? ut
944
949
  : this.map[s].shift()
945
950
  }
946
951
  clear(t) {
@@ -957,11 +962,11 @@
957
962
  return Object.values(this.map).flat()
958
963
  }
959
964
  }
960
- const ut = (e) => {
961
- const t = new me()
965
+ const at = (e) => {
966
+ const t = new be()
962
967
  return t.populate(e), t
963
968
  },
964
- at = (e, t, s = !1) => {
969
+ ct = (e, t, s = !1) => {
965
970
  const r = [],
966
971
  n = e.attributes,
967
972
  i = n.length,
@@ -981,8 +986,8 @@
981
986
  }
982
987
  p
983
988
  ? h.value !== p.value &&
984
- r.push(ce(e, t, { name: h.name, value: p.value, isSvg: s }))
985
- : r.push(ue(e, t, { name: h.name, isSvg: s }))
989
+ r.push(le(e, t, { name: h.name, value: p.value, isSvg: s }))
990
+ : r.push(ae(e, t, { name: h.name, isSvg: s }))
986
991
  }
987
992
  }
988
993
  for (u = 0; u < c; u++) {
@@ -996,12 +1001,12 @@
996
1001
  break
997
1002
  }
998
1003
  }
999
- p || r.push(ae(e, t, { name: h.name, value: h.value, isSvg: s }))
1004
+ p || r.push(ce(e, t, { name: h.name, value: h.value, isSvg: s }))
1000
1005
  }
1001
1006
  }
1002
1007
  return r
1003
1008
  },
1004
- be = (e, t) => {
1009
+ ve = (e, t) => {
1005
1010
  const s = [],
1006
1011
  r = e.eventMaps,
1007
1012
  n = t.eventMaps,
@@ -1014,60 +1019,60 @@
1014
1019
  d
1015
1020
  ? d.busEvent !== u.busEvent &&
1016
1021
  s.push(
1017
- de(e, t, {
1022
+ pe(e, t, {
1018
1023
  name: c,
1019
1024
  targetValue: d.listener,
1020
1025
  sourceValue: u.listener,
1021
1026
  }),
1022
1027
  )
1023
- : s.push(le(e, t, { name: u.domEvent, value: u.listener }))
1028
+ : s.push(he(e, t, { name: u.domEvent, value: u.listener }))
1024
1029
  }),
1025
1030
  o.forEach((c) => {
1026
1031
  const u = r[c],
1027
1032
  d = n[c]
1028
- u || s.push(he(e, t, { name: d.domEvent, value: d.listener }))
1033
+ u || s.push(de(e, t, { name: d.domEvent, value: d.listener }))
1029
1034
  }),
1030
1035
  s
1031
1036
  )
1032
1037
  },
1033
- ve = (e) => e.tagName !== 'INPUT',
1034
- ye = (e, t) => e.value === t.value,
1035
- ge = (e, t) => {
1036
- if (ve(e) || ye(e, t)) return []
1038
+ ye = (e) => e.tagName !== 'INPUT',
1039
+ ge = (e, t) => e.value === t.value,
1040
+ Ee = (e, t) => {
1041
+ if (ye(e) || ge(e, t)) return []
1037
1042
  const s = e,
1038
1043
  r = t
1039
- return [pe(s, r, { name: 'value', value: r.value })]
1044
+ return [fe(s, r, { name: 'value', value: r.value })]
1040
1045
  },
1041
- Ee = (e, t) => {
1042
- const s = at(e, t),
1043
- r = be(e, t),
1044
- n = ge(e, t)
1046
+ Ae = (e, t) => {
1047
+ const s = ct(e, t),
1048
+ r = ve(e, t),
1049
+ n = Ee(e, t)
1045
1050
  return s.concat(r).concat(n)
1046
1051
  },
1047
- Ae = (e, t) => at(e, t, !0),
1048
- we = (e, t) => (e.textContent !== t.textContent ? [ie(e, t)] : []),
1049
- Ne = (e, t, s) => {
1052
+ we = (e, t) => ct(e, t, !0),
1053
+ Ne = (e, t) => (e.textContent !== t.textContent ? [oe(e, t)] : []),
1054
+ Se = (e, t, s) => {
1050
1055
  let r = []
1051
- if (e.nodeType === 1 && Mt(e)) {
1056
+ if (e.nodeType === 1 && kt(e)) {
1052
1057
  const n = e,
1053
1058
  i = t,
1054
- o = Ae(n, i),
1059
+ o = we(n, i),
1055
1060
  c = s(n.childNodes, i.childNodes, n)
1056
1061
  r = o.concat(c)
1057
1062
  } else if (e.nodeType === 1) {
1058
1063
  const n = e,
1059
1064
  i = t,
1060
- o = Ee(n, i),
1065
+ o = Ae(n, i),
1061
1066
  c = s(n.childNodes, i.childNodes, n)
1062
1067
  r = o.concat(c)
1063
- } else e.nodeType === 3 && (r = we(e, t))
1068
+ } else e.nodeType === 3 && (r = Ne(e, t))
1064
1069
  return r
1065
1070
  },
1066
- ct = (e, t, s) => {
1071
+ lt = (e, t, s) => {
1067
1072
  const r = [],
1068
- n = Se(e, t),
1069
- i = ut(e),
1070
- o = ut(t),
1073
+ n = _e(e, t),
1074
+ i = at(e),
1075
+ o = at(t),
1071
1076
  c = []
1072
1077
  let u = 0
1073
1078
  for (; u < n; u++) {
@@ -1082,136 +1087,136 @@
1082
1087
  : p
1083
1088
  ? o.check(p)
1084
1089
  ? r.push(j(h, { parent: s, index: u }))
1085
- : (i.clear(p), r.push(oe(p, h)))
1090
+ : (i.clear(p), r.push(ue(p, h)))
1086
1091
  : r.push(j(h, { parent: s, index: u }))
1087
- } else p && i.pullMatch(p).element && r.push(it(p))
1092
+ } else p && i.pullMatch(p).element && r.push(ot(p))
1088
1093
  }
1089
1094
  i.remaining().forEach(({ element: p }) => {
1090
- r.push(it(p))
1095
+ r.push(ot(p))
1091
1096
  })
1092
1097
  const d = c.reduce(
1093
- (p, { source: h, target: f }) => p.concat(Ne(h, f, ct)),
1098
+ (p, { source: h, target: f }) => p.concat(Se(h, f, lt)),
1094
1099
  [],
1095
1100
  )
1096
- return r.concat(d).sort(fe)
1101
+ return r.concat(d).sort(me)
1097
1102
  },
1098
- Se = (e, t) => {
1103
+ _e = (e, t) => {
1099
1104
  const s = e.length,
1100
1105
  r = t.length
1101
1106
  return s > r ? s : r
1102
1107
  },
1103
- _e = (e, t, s) => {
1104
- const r = ct(e, t, s)
1108
+ xe = (e, t, s) => {
1109
+ const r = lt(e, t, s)
1105
1110
  return (
1106
1111
  r.forEach((n) => {
1107
- xe(n)
1112
+ Te(n)
1108
1113
  }),
1109
1114
  r
1110
1115
  )
1111
1116
  },
1112
- xe = (e) => {
1113
- ;(Le[e.type] || Te)(e)
1117
+ Te = (e) => {
1118
+ ;(ze[e.type] || je)(e)
1114
1119
  },
1115
- Te = (e) => {},
1116
- je = (e) => {
1120
+ je = (e) => {},
1121
+ Oe = (e) => {
1117
1122
  const { source: t, target: s } = e
1118
1123
  t.nodeValue = s.textContent
1119
1124
  },
1120
- Oe = (e) => {
1125
+ Me = (e) => {
1121
1126
  const { source: t } = e
1122
1127
  t.remove()
1123
1128
  },
1124
- Me = (e) => {
1129
+ ke = (e) => {
1125
1130
  const { target: t, data: s } = e,
1126
1131
  { parent: r, index: n } = s,
1127
1132
  i = r.childNodes[n]
1128
1133
  i ? i && i !== t && r.insertBefore(t, i) : r.appendChild(t)
1129
1134
  },
1130
- ke = (e) => {
1135
+ $e = (e) => {
1131
1136
  const { source: t, target: s } = e
1132
1137
  t.replaceWith(s)
1133
1138
  },
1134
- $e = (e) => {
1139
+ Be = (e) => {
1135
1140
  const { source: t, data: s } = e,
1136
1141
  { name: r, isSvg: n } = s
1137
1142
  n ? t.removeAttributeNS(null, r) : t.removeAttribute(r)
1138
1143
  },
1139
- lt = (e) => {
1144
+ ht = (e) => {
1140
1145
  const { source: t, data: s } = e,
1141
1146
  { name: r, value: n, isSvg: i } = s
1142
1147
  i ? t.setAttributeNS(null, r, n) : t.setAttribute(r, n)
1143
1148
  },
1144
- Be = (e) => {
1145
- lt(e)
1146
- },
1147
1149
  De = (e) => {
1150
+ ht(e)
1151
+ },
1152
+ Pe = (e) => {
1148
1153
  const t = e.data,
1149
1154
  s = e.source,
1150
1155
  { name: r, value: n } = t
1151
1156
  s.removeEventListener(r, n)
1152
1157
  },
1153
- Pe = (e) => {
1158
+ Fe = (e) => {
1154
1159
  const t = e.data,
1155
1160
  s = e.source,
1156
1161
  { name: r, value: n } = t
1157
1162
  s.addEventListener(r, n)
1158
1163
  },
1159
- Fe = (e) => {
1164
+ Ve = (e) => {
1160
1165
  const t = e.data,
1161
1166
  s = e.source,
1162
1167
  { name: r, sourceValue: n, targetValue: i } = t
1163
1168
  s.removeEventListener(r, n), s.addEventListener(r, i)
1164
1169
  },
1165
- Ve = (e) => {
1170
+ Le = (e) => {
1166
1171
  const t = e.data,
1167
1172
  s = e.source,
1168
1173
  { value: r } = t
1169
1174
  s.value = r
1170
1175
  },
1171
- Le = {
1172
- [a.changeText]: je,
1173
- [a.removeNode]: Oe,
1174
- [a.insertNode]: Me,
1175
- [a.replaceNode]: ke,
1176
- [a.removeAttribute]: $e,
1177
- [a.addAttribute]: lt,
1178
- [a.updateAttribute]: Be,
1179
- [a.removeEvent]: De,
1180
- [a.addEvent]: Pe,
1181
- [a.updateEvent]: Fe,
1182
- [a.changeValue]: Ve,
1176
+ ze = {
1177
+ [a.changeText]: Oe,
1178
+ [a.removeNode]: Me,
1179
+ [a.insertNode]: ke,
1180
+ [a.replaceNode]: $e,
1181
+ [a.removeAttribute]: Be,
1182
+ [a.addAttribute]: ht,
1183
+ [a.updateAttribute]: De,
1184
+ [a.removeEvent]: Pe,
1185
+ [a.addEvent]: Fe,
1186
+ [a.updateEvent]: Ve,
1187
+ [a.changeValue]: Le,
1183
1188
  },
1184
- ze = (e, t, s) => {
1189
+ Ke = (e, t, s) => {
1185
1190
  const r = [...t]
1186
1191
  return (
1187
1192
  e.forEach((n) => {
1188
- Ke(n, r, s)
1193
+ Re(n, r, s)
1189
1194
  }),
1190
1195
  r
1191
1196
  )
1192
1197
  },
1193
- Ke = (e, t, s) => {
1194
- const r = Ie[e.type]
1198
+ Re = (e, t, s) => {
1199
+ const r = Je[e.type]
1195
1200
  r && r(e, t, s)
1196
1201
  },
1197
- Re = (e, t) => {
1202
+ Ue = (e, t) => {
1198
1203
  const { source: s } = e,
1199
1204
  r = t.indexOf(s)
1200
1205
  r >= 0 && t.splice(r, 1)
1201
1206
  },
1202
- Ue = (e, t, s) => {
1207
+ qe = (e, t, s) => {
1203
1208
  const { target: r } = e,
1204
1209
  n = e.data,
1205
1210
  { index: i, parent: o } = n
1206
1211
  s === o && t.splice(i, 0, r)
1207
1212
  },
1208
- qe = (e, t) => {
1213
+ Ie = (e, t) => {
1209
1214
  const { target: s, source: r } = e,
1210
1215
  n = t.indexOf(r)
1211
1216
  n >= 0 && (t[n] = s)
1212
1217
  },
1213
- Ie = { [a.removeNode]: Re, [a.insertNode]: Ue, [a.replaceNode]: qe }
1214
- class Je {
1218
+ Je = { [a.removeNode]: Ue, [a.insertNode]: qe, [a.replaceNode]: Ie }
1219
+ class He {
1215
1220
  constructor({
1216
1221
  Template: t,
1217
1222
  subscriptions: s,
@@ -1248,8 +1253,8 @@
1248
1253
  this.parentElement = r
1249
1254
  }
1250
1255
  const t = this.generateDom(this.renderKit),
1251
- s = _e(this.dom, t, this.parentElement)
1252
- this.dom = ze(s, this.dom, this.parentElement)
1256
+ s = xe(this.dom, t, this.parentElement)
1257
+ this.dom = Ke(s, this.dom, this.parentElement)
1253
1258
  }
1254
1259
  subscribeForRerender() {
1255
1260
  const { subscribe: t } = this.renderKit
@@ -1261,71 +1266,71 @@
1261
1266
  return `${T}:${t}`
1262
1267
  }
1263
1268
  }
1264
- const He = (e) => e,
1265
- ht = ({ Template: e, viewModel: t, subscriptions: s }) => (
1269
+ const Ge = (e) => e,
1270
+ dt = ({ Template: e, viewModel: t, subscriptions: s }) => (
1266
1271
  (s = s || []),
1267
- (t = t || He),
1272
+ (t = t || Ge),
1268
1273
  (r) =>
1269
- new Je({ Template: e, viewModel: t, subscriptions: s, attributes: r })
1274
+ new He({ Template: e, viewModel: t, subscriptions: s, attributes: r })
1270
1275
  ),
1271
- Ge =
1276
+ We =
1272
1277
  (e) =>
1273
1278
  ({ path: t }) =>
1274
1279
  t === e,
1275
- We = () => !0,
1276
- dt =
1280
+ Ce = () => !0,
1281
+ pt =
1277
1282
  (e) =>
1278
1283
  ({ route: t }) => {
1279
1284
  const s = e.find((r) => r.match(t))
1280
1285
  return s && s.Partial
1281
1286
  },
1282
- Ce = Object.freeze(
1287
+ Qe = Object.freeze(
1283
1288
  Object.defineProperty(
1284
- { __proto__: null, buildRouter: dt, catchAll: We, exactPathMatch: Ge },
1289
+ { __proto__: null, buildRouter: pt, catchAll: Ce, exactPathMatch: We },
1285
1290
  Symbol.toStringTag,
1286
1291
  { value: 'Module' },
1287
1292
  ),
1288
1293
  ),
1289
- Qe = () => ({ render: (e, t) => [] }),
1290
- Xe = (e) => {
1291
- const t = dt(e)
1292
- return ht({
1293
- Template: ({ route: r }) => (t({ route: r }) || Qe)(),
1294
+ Xe = () => ({ render: (e, t) => [] }),
1295
+ Ye = (e) => {
1296
+ const t = pt(e)
1297
+ return dt({
1298
+ Template: ({ route: r }) => (t({ route: r }) || Xe)(),
1294
1299
  subscriptions: ['route'],
1295
1300
  })
1296
1301
  },
1297
- Ye = Object.freeze(
1302
+ Ze = Object.freeze(
1298
1303
  Object.defineProperty(
1299
1304
  {
1300
1305
  __proto__: null,
1301
1306
  createRouteState: R,
1302
- events: Jt,
1307
+ events: Ht,
1303
1308
  extractQueryParams: I,
1304
1309
  findHref: U,
1305
1310
  navigate: S,
1306
1311
  onLinkClick: q,
1307
1312
  onLocationChange: J,
1308
- start: Ht,
1313
+ start: Gt,
1309
1314
  },
1310
1315
  Symbol.toStringTag,
1311
1316
  { value: 'Module' },
1312
1317
  ),
1313
1318
  )
1314
- ;(l.ArrayModifiers = pt),
1315
- (l.BooleanStore = mt),
1316
- (l.Equality = te),
1317
- (l.Is = wt),
1318
- (l.JaxsTypes = ne),
1319
- (l.ListStore = vt),
1320
- (l.RecordStore = gt),
1321
- (l.appBuilding = Gt),
1322
- (l.bind = ht),
1323
- (l.createApp = re),
1319
+ ;(l.ArrayModifiers = ft),
1320
+ (l.BooleanStore = bt),
1321
+ (l.Equality = ee),
1322
+ (l.Is = Nt),
1323
+ (l.JaxsTypes = ie),
1324
+ (l.ListStore = yt),
1325
+ (l.RecordStore = Et),
1326
+ (l.appBuilding = Wt),
1327
+ (l.bind = dt),
1328
+ (l.createApp = ne),
1324
1329
  (l.jsx = V),
1325
- (l.messageBus = Xt),
1326
- (l.navigation = Ye),
1327
- (l.routedView = Xe),
1328
- (l.routing = Ce),
1329
- (l.state = ee),
1330
+ (l.messageBus = Yt),
1331
+ (l.navigation = Ze),
1332
+ (l.routedView = Ye),
1333
+ (l.routing = Qe),
1334
+ (l.state = se),
1330
1335
  Object.defineProperty(l, Symbol.toStringTag, { value: 'Module' })
1331
1336
  })