dynamic-html-helpers 1.5.5 → 1.5.7

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.
@@ -22,7 +22,7 @@ var HTMLHelpers = (() => {
22
22
  // ../index.js
23
23
  var index_exports = {};
24
24
  __export(index_exports, {
25
- $: () => Sn,
25
+ $: () => En,
26
26
  $D: () => f,
27
27
  logFactory: () => logFactory,
28
28
  regexhelper: () => REHelper_default,
@@ -30,112 +30,116 @@ var HTMLHelpers = (() => {
30
30
  });
31
31
 
32
32
  // ../Resource/Externals/jqx.min.js
33
- var { IS: l, isOnly: Lr, maybe: O, $Wrap: Fr, isNothing: ut, addSymbolicExtensions: Ne, detectableProxy: _ } = ct({ useSymbolicExtensions: false });
34
- function ct(t = {}) {
35
- let { useSymbolicExtensions: e } = t, r = mt(), { shouldbeIsSingleObject: n, ISOneOf: o, isExcept: i, verifyNothingness: a, determineType: b, addSymbolicExtensions: p3, maybe: x2, $Wrap: d, detectableProxy: y } = ft(m, e);
36
- return e && p3(), { IS: m, isOnly: S2, maybe: x2, $Wrap: d, isNothing: a, addSymbolicExtensions: p3, detectableProxy: y };
37
- function m(f2, ...c) {
38
- let s = Object.getOwnPropertySymbols(f2 || {})?.some((h2) => h2 === Symbol.justME) && c.length > 0, u2 = f2?.[Symbol.justME], g2 = s ? u2 : typeof f2 == "symbol" ? Symbol.isSymbol : f2;
33
+ var F = Symbol.for("toa.symbols");
34
+ Object[F] = Object.create(null, {});
35
+ var { IS: c, isOnly: Fr, maybe: R, $Wrap: Tr, isNothing: ft, addSymbolicExtensions: He, proxyWrapper: G } = dt({ useSymbolicExtensions: false });
36
+ function dt(t = {}) {
37
+ let { useSymbolicExtensions: e } = t, r = pt(), { shouldbeIsSingleObject: n, ISOneOf: o, isExcept: i, verifyNothingness: a, determineType: h2, addSymbolicExtensions: p3, maybe: E2, $Wrap: f2, detectableProxy: y } = mt(m, e), g2 = y;
38
+ e && p3();
39
+ let S2 = Object[F];
40
+ return { IS: m, isOnly: u2, maybe: E2, $Wrap: f2, isNothing: a, addSymbolicExtensions: p3, proxyWrapper: g2 };
41
+ function m(l, ...s) {
42
+ let d = Object.getOwnPropertySymbols(l || {})?.some((w) => w === S2.justME) && s.length > 0, b = l?.[S2.justME], x2 = d ? b : typeof l == "symbol" ? S2.isSymbol : l;
39
43
  switch (true) {
40
- case s:
41
- return r(u2, ...c);
42
- case !!x2({ trial: (h2) => "isTypes" in (c?.[0] ?? {}) }):
43
- return n(f2, c[0]);
44
+ case d:
45
+ return r(b, ...s);
46
+ case !!E2({ trial: (w) => "isTypes" in (s?.[0] ?? {}) }):
47
+ return n(l, s[0]);
44
48
  default:
45
- return c.length > 1 ? o(g2, ...c) : b(f2, ...c);
49
+ return s.length > 1 ? o(x2, ...s) : h2(l, ...s);
46
50
  }
47
51
  }
48
- function S2(f2, ...c) {
49
- return m({ [Symbol.justME]: f2 }, ...c);
52
+ function u2(l, ...s) {
53
+ return m({ [S2.justME]: l }, ...s);
50
54
  }
51
55
  }
52
- function ft(t, e) {
53
- let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: o, verifyNothingness: i, determineType: a, detectableProxy: b } = dt(t, y), { addSymbolicExtensions: p3 } = r(t, y, e), [x2, d] = [n(), o(t, y)];
54
- return Object.freeze({ shouldbeIsSingleObject: m, ISOneOf: S2, isExcept: c, verifyNothingness: i, determineType: a, detectableProxy: b, addSymbolicExtensions: p3, maybe: x2, $Wrap: d });
55
- function y(s) {
56
- return s?.[Symbol.proxy] || t(s);
56
+ function mt(t, e) {
57
+ let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: o, verifyNothingness: i, determineType: a, detectableProxy: h2 } = gt(t, y), { addSymbolicExtensions: p3 } = r(t, y, e), [E2, f2] = [n(), o(t, y)];
58
+ return Object.freeze({ shouldbeIsSingleObject: g2, ISOneOf: S2, isExcept: u2, verifyNothingness: i, determineType: a, detectableProxy: h2, addSymbolicExtensions: p3, maybe: E2, $Wrap: f2 });
59
+ function y(l) {
60
+ return l?.[Object[F].proxy] || t(l);
57
61
  }
58
- function m(s, u2) {
62
+ function g2(l, s) {
59
63
  switch (true) {
60
- case "defaultValue" in u2:
61
- return f2(s, u2);
62
- case "notTypes" in u2:
63
- return c(s, u2);
64
+ case "defaultValue" in s:
65
+ return m(l, s);
66
+ case "notTypes" in s:
67
+ return u2(l, s);
64
68
  default:
65
- return t(s, ...[u2.isTypes].flat());
69
+ return t(l, ...[s.isTypes].flat());
66
70
  }
67
71
  }
68
- function S2(s, ...u2) {
69
- return u2.some((g2) => t(s, g2));
72
+ function S2(l, ...s) {
73
+ return s.some((d) => t(l, d));
70
74
  }
71
- function f2(s, { defaultValue: u2, isTypes: g2 = [void 0], notTypes: h2 } = {}) {
72
- return g2 = g2?.constructor !== Array ? [g2] : g2, h2 = h2 && h2?.constructor !== Array ? [h2] : [], h2.length < 1 ? t(s, ...g2) ? s : u2 : c(s, { isTypes: g2, notTypes: h2 }) ? s : u2;
75
+ function m(l, { defaultValue: s, isTypes: d = [void 0], notTypes: b } = {}) {
76
+ return d = d?.constructor !== Array ? [d] : d, b = b && b?.constructor !== Array ? [b] : [], b.length < 1 ? t(l, ...d) ? l : s : u2(l, { isTypes: d, notTypes: b }) ? l : s;
73
77
  }
74
- function c(s, { isTypes: u2 = [void 0], notTypes: g2 = [void 0] } = {}) {
75
- return u2 = u2?.constructor !== Array ? [u2] : u2, g2 = g2?.constructor !== Array ? [g2] : g2, t(s, ...u2) && !t(s, ...g2);
78
+ function u2(l, { isTypes: s = [void 0], notTypes: d = [void 0] } = {}) {
79
+ return s = s?.constructor !== Array ? [s] : s, d = d?.constructor !== Array ? [d] : d, t(l, ...s) && !t(l, ...d);
76
80
  }
77
81
  }
78
- function dt() {
79
- let t = { IS: "toa.is", TYPE: "toa.type", IS_SYMBOL: "toa.isASymbol", PROXY: "toa.proxyFor", TARGET: "toa.target" }, e = { NAN: "NaN", INFINITY: "Infinity", BOOLEAN: "Boolean", OBJECT: "Object", PROXY_PREFIX: "Proxy for", JUSTME: "justME" }, r = n();
80
- return Object.freeze({ SymbolAndCustomProxyFactory: i, maybeFactory: f2, WrapAnyFactory: S2, verifyNothingness: c, determineType: p3, detectableProxy: r });
81
- function n() {
82
- let s = (h2) => ({ get(w, A2) {
83
- return A2 === Symbol.proxy ? `Proxy for ${h2}` : A2 === Symbol.target ? w : Reflect.get(w, A2);
84
- }, has(w, A2) {
85
- return A2 === Symbol.proxy ? true : A2 in w;
82
+ function gt() {
83
+ let t = Object[F], e = { IS: "toa.is", TYPE: "toa.type", IS_SYMBOL: "toa.isASymbol", PROXY: "toa.proxyFor", TARGET: "toa.target", JUSTME: "toa.justME" }, r = { NAN: "NaN", INFINITY: "Infinity", BOOLEAN: "Boolean", OBJECT: "Object", PROXY_PREFIX: "Proxy for" }, n = o();
84
+ return Object.freeze({ SymbolAndCustomProxyFactory: a, maybeFactory: u2, WrapAnyFactory: m, verifyNothingness: l, determineType: E2, detectableProxy: n });
85
+ function o() {
86
+ let s = (x2) => ({ get(w, O3) {
87
+ return O3 === Object[F].proxy ? `Proxy for ${x2}` : O3 === Object[F].target ? w : Reflect.get(w, O3);
88
+ }, has(w, O3) {
89
+ return O3 === Object[F].proxy ? true : O3 in w;
86
90
  } });
87
- function u2(h2) {
88
- let w = h2.name || h2.constructor.name;
89
- return new Proxy(h2, s(w));
91
+ function d(x2) {
92
+ let w = x2.name || x2.constructor.name;
93
+ return new Proxy(x2, s(w));
90
94
  }
91
- function g2(h2, w) {
92
- return w = l(w, Object) ? w : {}, u2(new Proxy(h2, w));
95
+ function b(x2, w) {
96
+ return w = c(w, Object) ? w : {}, d(new Proxy(x2, w));
93
97
  }
94
- return { wrap: u2, create: g2 };
95
- }
96
- function o(s, u2) {
97
- Symbol.is || (Symbol.is = Symbol.for(t.IS), Symbol.type = Symbol.for(t.TYPE), Object.defineProperties(Object.prototype, { [Symbol.type]: { get() {
98
- return u2(this);
99
- }, enumerable: false, configurable: true }, [Symbol.is]: { value: function(...g2) {
100
- return s(this, ...g2);
101
- }, enumerable: false, configurable: false } }), Object.defineProperties(Object, { [Symbol.type]: { value(g2) {
102
- return u2(g2);
103
- }, enumerable: false, configurable: false }, [Symbol.is]: { value: function(g2, ...h2) {
104
- return s(g2, ...h2);
98
+ return { wrap: d, create: b };
99
+ }
100
+ function i(s, d) {
101
+ t.is || (t.is = Symbol(e.IS), t.type = Symbol(e.TYPE), Object.defineProperties(Object.prototype, { [t.type]: { get() {
102
+ return d(this);
103
+ }, enumerable: false, configurable: true }, [t.is]: { value: function(...b) {
104
+ return s(this, ...b);
105
+ }, enumerable: false, configurable: false } }), Object.defineProperties(Object, { [t.type]: { value(b) {
106
+ return d(b);
107
+ }, enumerable: false, configurable: false }, [t.is]: { value: function(b, ...x2) {
108
+ return s(b, ...x2);
105
109
  }, enumerable: false, configurable: false } }));
106
110
  }
107
- function i(s, u2, g2) {
108
- return Symbol.isSymbol || (Symbol.isSymbol = Symbol.for(t.IS_SYMBOL), Symbol.proxy = Symbol.for(t.PROXY), Symbol.target = Symbol.for(t.target), Symbol.justME = Symbol.for(t.JUSTME)), { addSymbolicExtensions: () => o(s, u2) };
111
+ function a(s, d, b) {
112
+ return t.isSymbol || (t.isSymbol = Symbol(e.IS_SYMBOL), t.proxy = Symbol(e.PROXY), t.target = Symbol(e.TARGET), t.justME = Symbol(e.JUSTME)), { addSymbolicExtensions: () => i(s, d) };
109
113
  }
110
- function a(s) {
111
- return (ut(s, true) ? { name: "unknown" } : Object.getPrototypeOf(s)?.constructor).name;
114
+ function h2(s) {
115
+ return (ft(s, true) ? { name: "unknown" } : Object.getPrototypeOf(s)?.constructor).name;
112
116
  }
113
- function b(s, ...u2) {
114
- let g2 = u2.length < 1, h2 = s == null;
115
- return { noInput: h2, noShouldbe: g2, compareTo: !g2 && u2[0], inputCTOR: !h2 && (s?.constructor || Object.getPrototypeOf(s)?.constructor), isNaN: Number.isNaN(s) || O({ trial: (w) => String(s) === e.NAN }), isInfinity: O({ trial: (w) => String(s) }) === e.INFINITY, shouldBeFirstElementIsNothing: !g2 && c(u2[0]) };
117
+ function p3(s, ...d) {
118
+ let b = d.length < 1, x2 = s == null;
119
+ return { noInput: x2, noShouldbe: b, compareTo: !b && d[0], inputCTOR: !x2 && (s?.constructor || Object.getPrototypeOf(s)?.constructor), isNaN: Number.isNaN(s) || R({ trial: (w) => String(s) === r.NAN }), isInfinity: R({ trial: (w) => String(s) }) === r.INFINITY, shouldBeFirstElementIsNothing: !b && l(d[0]) };
116
120
  }
117
- function p3(s, ...u2) {
118
- let { noInput: g2, noShouldbe: h2, compareTo: w, inputCTOR: A2, isNaN: st, isInfinity: at, shouldBeFirstElementIsNothing: lt } = b(s, ...u2);
119
- switch (u2 = u2.length && u2[0], true) {
120
- case lt:
121
+ function E2(s, ...d) {
122
+ let { noInput: b, noShouldbe: x2, compareTo: w, inputCTOR: O3, isNaN: ct, isInfinity: lt, shouldBeFirstElementIsNothing: ut } = p3(s, ...d);
123
+ switch (d = d.length && d[0], true) {
124
+ case ut:
121
125
  return String(s) === String(w);
122
- case (s?.[Symbol.proxy] && h2):
123
- return s[Symbol.proxy];
124
- case (s?.[Symbol.proxy] && typeof u2 == "string"):
125
- return s[Symbol.proxy].toLowerCase() === u2.toLowerCase();
126
- case st:
127
- return h2 ? e.NAN : String(w) === String(s);
128
- case at:
129
- return h2 ? e.INFINITY : String(w) === String(s);
130
- case g2:
131
- return h2 ? String(s) : String(w) === String(s);
132
- case A2 === Boolean:
133
- return h2 ? e.BOOLEAN : A2 === u2;
126
+ case (s?.[Object[F].proxy] && x2):
127
+ return s[Object[F].proxy];
128
+ case (s?.[Object[F].proxy] && typeof d == "string"):
129
+ return s[Object[F].proxy].toLowerCase() === d.toLowerCase();
130
+ case ct:
131
+ return x2 ? r.NAN : String(w) === String(s);
132
+ case lt:
133
+ return x2 ? r.INFINITY : String(w) === String(s);
134
+ case b:
135
+ return x2 ? String(s) : String(w) === String(s);
136
+ case O3 === Boolean:
137
+ return x2 ? r.BOOLEAN : O3 === d;
134
138
  default:
135
- return d(s, u2, h2, x2(s, A2));
139
+ return y(s, d, x2, f2(s, O3));
136
140
  }
137
141
  }
138
- function x2(s, u2) {
142
+ function f2(s, d) {
139
143
  switch (true) {
140
144
  case s === 0:
141
145
  return Number;
@@ -144,549 +148,553 @@ var HTMLHelpers = (() => {
144
148
  case !s:
145
149
  return { name: String(s) };
146
150
  default:
147
- return u2;
151
+ return d;
148
152
  }
149
153
  }
150
- function d(s, u2, g2, h2) {
154
+ function y(s, d, b, x2) {
151
155
  switch (true) {
152
- case (!g2 && u2 === s || s?.[Symbol.proxy] && u2 === Proxy):
156
+ case (!b && d === s || s?.[Object[F].proxy] && d === Proxy):
153
157
  return true;
154
- case String(u2) === e.NAN:
155
- return String(s) === e.NAN;
156
- case (s?.[Symbol.toStringTag] && typeof u2 == "string"):
157
- return String(u2) === s[Symbol.toStringTag];
158
+ case String(d) === r.NAN:
159
+ return String(s) === r.NAN;
160
+ case (s?.[Symbol.toStringTag] && typeof d == "string"):
161
+ return String(d) === s[Symbol.toStringTag];
158
162
  default:
159
- return u2 ? m(s, u2, h2) : y(s, h2);
163
+ return d ? S2(s, d, x2) : g2(s, x2);
160
164
  }
161
165
  }
162
- function y(s, u2) {
163
- return (s?.[Symbol.toStringTag] ?? s?.prototype?.[Symbol.toStringTag]) || u2?.name || String(u2);
166
+ function g2(s, d) {
167
+ return (s?.[Symbol.toStringTag] ?? s?.prototype?.[Symbol.toStringTag]) || d?.name || String(d);
164
168
  }
165
- function m(s, u2, g2) {
166
- return O({ trial: (h2) => s instanceof u2 }) || u2 === g2 || u2 === Object.getPrototypeOf(g2) || `${u2?.name}` === g2?.name;
169
+ function S2(s, d, b) {
170
+ return R({ trial: (x2) => s instanceof d }) || d === b || d === Object.getPrototypeOf(b) || `${d?.name}` === b?.name;
167
171
  }
168
- function S2(s, u2) {
169
- return function(g2) {
170
- let h2 = { get value() {
171
- return g2;
172
+ function m(s, d) {
173
+ return function(b) {
174
+ let x2 = { get value() {
175
+ return b;
172
176
  }, is(...w) {
173
- return s(g2, ...w);
177
+ return s(b, ...w);
174
178
  }, get type() {
175
- return u2(g2);
179
+ return d(b);
176
180
  } };
177
- return Object[Symbol.type] && Object.defineProperties(h2, { [Symbol.type]: { get() {
178
- return u2(g2);
179
- } }, [Symbol.is]: { value(...w) {
180
- return s(g2, ...w);
181
- } } }), Object.freeze(h2);
181
+ return Object[Object[F].type] && Object.defineProperties(x2, { [Object[F].type]: { get() {
182
+ return d(b);
183
+ } }, [Object[F].is]: { value(...w) {
184
+ return s(b, ...w);
185
+ } } }), Object.freeze(x2);
182
186
  };
183
187
  }
184
- function f2() {
185
- let s = (u2) => {
188
+ function u2() {
189
+ let s = (d) => {
186
190
  };
187
- return function({ trial: u2, whenError: g2 = s } = {}) {
191
+ return function({ trial: d, whenError: b = s } = {}) {
188
192
  try {
189
- return u2();
190
- } catch (h2) {
191
- return g2(h2);
193
+ return d();
194
+ } catch (x2) {
195
+ return b(x2);
192
196
  }
193
197
  };
194
198
  }
195
- function c(s, u2 = false) {
196
- let g2 = s == null;
197
- return g2 = u2 ? g2 || l(s, 1 / 0) || l(s, NaN) : g2, g2;
199
+ function l(s, d = false) {
200
+ let b = s == null;
201
+ return b = d ? b || c(s, 1 / 0) || c(s, NaN) : b, b;
198
202
  }
199
203
  }
200
- function mt() {
204
+ function pt() {
201
205
  let t = new Intl.Collator("en", { sensitivity: "base" }), e = (o) => typeof o?.constructor == "function" ? o?.name || o?.constructor?.name : typeof o == "string" ? o : typeof o, r = (o) => [null, void 0, 1 / 0, NaN].some((i) => i === o);
202
206
  function n(o, i) {
203
207
  if (i !== o && (r(o) || i === Number && (Number.isNaN(o) || !Number.isFinite(o)))) return false;
204
- let [a, b] = [e(o), e(i)];
205
- return o?.[Symbol.proxy] === i || i === o?.name || t.compare(a, b) === 0 || t.compare(o.constructor?.name, i?.name) === 0 || o.constructor?.name === i || a === i || t.compare(Object.prototype.toString.call(o), `[object ${b}]`) === 0;
208
+ let [a, h2] = [e(o), e(i)];
209
+ return o?.[Object[F].proxy] === i || i === o?.name || t.compare(a, h2) === 0 || t.compare(o.constructor?.name, i?.name) === 0 || o.constructor?.name === i || a === i || t.compare(Object.prototype.toString.call(o), `[object ${h2}]`) === 0;
206
210
  }
207
211
  return function(i, ...a) {
208
212
  if (Array.isArray(a) && a.length > 1) {
209
- for (let b of a) if (n(i, b)) return true;
213
+ for (let h2 of a) if (n(i, h2)) return true;
210
214
  return false;
211
215
  }
212
216
  return n(i, a?.[0]);
213
217
  };
214
218
  }
215
- var He = yt();
216
- var I = gt();
217
- var Q = pt();
218
- function gt() {
219
+ var Me = ht();
220
+ var J = yt();
221
+ var k = bt();
222
+ function yt() {
219
223
  return { html: Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")), svg: Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(",")) };
220
224
  }
221
- function pt() {
225
+ function bt() {
222
226
  return { a: true, area: true, audio: false, br: true, base: true, body: true, button: true, canvas: true, comment: true, dl: true, data: true, datalist: true, div: true, em: true, embed: false, fieldset: true, font: true, footer: true, form: false, hr: true, head: true, header: true, output: true, iframe: false, frameset: false, img: true, input: true, li: true, label: true, legend: true, link: true, map: true, mark: true, menu: true, media: true, meta: true, nav: true, meter: true, ol: true, object: false, optgroup: true, option: true, p: true, param: true, picture: true, pre: true, progress: false, quote: true, script: false, select: true, source: true, span: true, style: true, caption: true, td: true, col: true, table: true, tr: true, template: false, textarea: true, time: true, title: true, track: true, details: true, ul: true, video: true, del: true, ins: true, slot: true, blockquote: true, svg: true, dialog: true, summary: true, main: true, address: true, colgroup: true, tbody: true, tfoot: true, thead: true, th: true, dd: true, dt: true, figcaption: true, figure: true, i: true, b: true, code: true, h1: true, h2: true, h3: true, h4: true, abbr: true, bdo: true, dfn: true, kbd: true, q: true, rb: true, rp: true, rt: true, ruby: true, s: true, strike: true, samp: true, small: true, strong: true, sup: true, sub: true, u: true, var: true, wbr: true, nobr: true, tt: true, noscript: true };
223
227
  }
224
- function yt() {
225
- return ["::backdrop{background-color:grey;opacity:0.2;}", `#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`, "@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}", "@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}", "@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}", "@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"];
226
- }
227
- var Me = { html: "innerHTML", text: "textContent", class: "className" };
228
- var bt = Ot();
229
- var Y = Object.create(null, {});
230
- var G = Object.create(null, {});
231
- var J = Pt();
232
- var De = (t) => {
233
- console.error(`tinyDOM error: "${t}" is not a valid HTML tag`);
234
- };
235
- var j = ht();
236
228
  function ht() {
237
- return Object.seal(new Proxy(Y, Ie()));
229
+ return ["::backdrop{background-color:grey;opacity:0.2;}", `#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`, "@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}", "@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}", "@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}", "@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"];
238
230
  }
239
- function Ie() {
240
- return { get(t, e) {
241
- let r = String(e);
231
+ var Q = xt();
232
+ var St = Lt();
233
+ var Pe = { html: "innerHTML", text: "textContent", class: "className" };
234
+ function xt() {
235
+ let t = new Intl.Collator("en", { sensitivity: "base" }), e = (o) => typeof o?.constructor == "function" ? o?.name || o?.constructor?.name : typeof o == "string" ? o : typeof o, r = (o) => [null, void 0, 1 / 0, NaN].some((i) => i === o);
236
+ function n(o, i) {
242
237
  switch (true) {
243
- case r in t:
244
- return t[r];
245
- case Tt(r):
246
- return Oe({ tag: r, key: e });
238
+ case (i !== o && (r(o) || i === Number && (Number.isNaN(o) || !Number.isFinite(o)))):
239
+ return false;
247
240
  default:
248
- return Oe({ tag: r, key: e, isError: true });
241
+ let [a, h2] = [e(o), e(i)];
242
+ return o?.[Symbol.proxy] === i || i === o?.name || t.compare(a, h2) === 0 || t.compare(o.constructor?.name, i?.name) === 0 || o.constructor?.name === i || a === i || t.compare(Object.prototype.toString.call(o), `[object ${h2}]`) === 0;
249
243
  }
250
- }, set(t, e, r) {
251
- return e === "setError" && typeof r == "function" && (De = r), true;
252
- }, enumerable: false, configurable: false };
253
- }
254
- function Oe({ tag: t, key: e, custom: r, debug: n = false, isError: o = false } = {}) {
255
- let i = St();
256
- if (o) return Object.defineProperty(i, t, { get() {
257
- return (a) => De(e) ?? "";
258
- } }), Pe(i, t);
259
- if (t.includes("-")) {
260
- let [a, b] = t.includes("-") ? [t, Mt(t)] : [Ht(t), t];
261
- G[a] = a, G[b] = a, r = b;
262
244
  }
263
- return r && Object.defineProperty(i, r, { get() {
264
- return Re(t);
265
- } }), Object.defineProperty(i, t, { get() {
266
- return Re(t);
267
- } }), Pe(i, t);
268
- }
269
- function Pe(t, e) {
270
- return Y = Object.seal(new Proxy(t, Ie())), Y[e];
245
+ return function(i, ...a) {
246
+ if (Array.isArray(a) && a.length > 1) {
247
+ for (let h2 of a) if (n(i, h2)) return true;
248
+ return false;
249
+ }
250
+ return n(i, a?.[0]);
251
+ };
271
252
  }
272
- function St() {
273
- return Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(Y)));
253
+ function Et([t, ...e]) {
254
+ return `${t.toUpperCase()}${e.join("")}`;
274
255
  }
275
- function xt(t, e, r) {
276
- return e = e?.isJQx && e.node || (J(e, Number) ? String(e) : e), bt({ trial: (n) => Je(e) ? t.insertAdjacentHTML("beforeend", e) : t.append(e), whenError: (n) => console.info(`${r} not created, reason
277
- `, n) });
256
+ function wt(t) {
257
+ return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/^-|-$/, "");
278
258
  }
279
- function Et(t, e, ...r) {
280
- let n = wt(e, t);
281
- return r?.forEach((o) => xt(n, o, t)), n;
259
+ function vt(t) {
260
+ return Q(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${Et(e)}` || e).join("") : t;
282
261
  }
283
- function wt(t, e) {
284
- switch (t = ge(e) ? $t(t) : t?.isJQx ? t.node : t, true) {
285
- case J(t, String):
286
- return X(e, Je(t, e) ? { html: t } : { text: t });
287
- case t instanceof Node:
288
- return vt(e, t);
289
- default:
290
- return X(e, t);
291
- }
262
+ function Lt() {
263
+ let t = (e) => {
264
+ };
265
+ return function({ trial: e, whenError: r = t } = {}) {
266
+ try {
267
+ return e();
268
+ } catch (n) {
269
+ return r(n);
270
+ }
271
+ };
292
272
  }
293
- function vt(t, e) {
294
- let r = X(t);
295
- return r.append(e), r;
273
+ function At(t) {
274
+ return Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(t)));
296
275
  }
297
- function Lt(t) {
276
+ function Ft(t) {
298
277
  if (Object.keys(t).length < 1) return { assignable: {}, specials: [...Array(3)] };
299
- let e = Ft(t);
278
+ let e = Tt(t);
300
279
  return Object.keys(t).forEach((r) => {
301
280
  let n = r.toLowerCase();
302
- n in Me && (t[Me[n]] = t[r]) && delete t[r];
281
+ n in Pe && (t[Pe[n]] = t[r]) && delete t[r];
303
282
  }), { assignable: t, specials: e };
304
283
  }
305
- function Ft(t) {
306
- if (t = J(t, Object) && t || void 0, !t) return Array(3);
284
+ function Tt(t) {
285
+ if (t = Q(t, Object) && t || void 0, !t) return Array(3);
307
286
  let e = Object.entries(t.data ?? {}), r = Object.entries(t.attributes ?? {}), n = t.class?.split(/[ ,]/).map((o) => o.trim()).filter((o) => o.length > 1);
308
287
  return delete t.data, delete t.attributes, delete t.class, [e, r, n];
309
288
  }
310
- function At(t, e) {
311
- let [r, n, o] = t;
312
- r?.length && r.forEach(([i, a]) => e.dataset[i] = a), n?.length && n.forEach(([i, a]) => e.setAttribute(i, a)), o?.forEach((i) => e.classList.add(i));
313
- }
314
- function X(t, e) {
315
- e = e || {};
316
- let { assignable: r, specials: n } = Lt(e), o = Object.assign(ge(t) ? new Comment() : document.createElement(t), r);
317
- return At(n, o), o;
318
- }
319
289
  function $t(t) {
320
290
  return t?.constructor === Comment ? t?.textContent : String(t);
321
291
  }
322
- function Je(t, e) {
323
- return !ge(e) && J(t, String) && /<.*>|&[#|0-9a-z]+[^;];/i.test(t);
324
- }
325
- function ge(t) {
292
+ function ye(t) {
326
293
  return /comment/i.test(t);
327
294
  }
328
- function Tt(t) {
329
- return Ct(t) && (t in G || !J(X(t), HTMLUnknownElement));
295
+ function je(t, e) {
296
+ return !ye(e) && Q(t, String) && /<.*>|&[#|0-9a-z]+[^;];/i.test(t);
330
297
  }
331
- function Ct(t) {
298
+ function Ot(t) {
332
299
  return t = t.toLowerCase(), typeof t == "string" && t.length > 0 && /^[a-z]/.test(t) && /^[a-z0-9-]+$/gi.test(t);
333
300
  }
334
- function Re(t) {
335
- return t = G[t] ?? t, (e, ...r) => Et(t, e, ...r);
301
+ function Ct(t, e, r) {
302
+ return Ot(t) && (t in e || !Q(r(t), HTMLUnknownElement));
336
303
  }
337
- function Nt([t, ...e]) {
338
- return `${t.toUpperCase()}${e.join("")}`;
304
+ var X = Object.create(null, {});
305
+ var Z = Object.create(null, {});
306
+ var Je = (t) => {
307
+ console.error(`tinyDOM error: "${t}" is not a valid HTML tag`);
308
+ };
309
+ var z = Nt();
310
+ function Nt() {
311
+ return Object.seal(new Proxy(X, Qe()));
339
312
  }
340
- function Ht(t) {
341
- return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/^-|-$/, "");
313
+ function Qe() {
314
+ return { get(t, e) {
315
+ let r = String(e);
316
+ switch (true) {
317
+ case r in t:
318
+ return t[r];
319
+ case Ct(r, Z, K):
320
+ return Re({ tag: r, key: e });
321
+ default:
322
+ return Re({ tag: r, key: e, isError: true });
323
+ }
324
+ }, set(t, e, r) {
325
+ return e === "setError" && typeof r == "function" && (Je = r), true;
326
+ }, enumerable: false, configurable: false };
342
327
  }
343
- function Mt(t) {
344
- return J(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${Nt(e)}` || e).join("") : t;
328
+ function Re({ tag: t, key: e, custom: r, debug: n = false, isError: o = false } = {}) {
329
+ let i = At(X);
330
+ if (o) return Object.defineProperty(i, t, { get() {
331
+ return (a) => Je(e) ?? "";
332
+ } }), De(i, t);
333
+ if (t.includes("-")) {
334
+ let [a, h2] = t.includes("-") ? [t, vt(t)] : [wt(t), t];
335
+ Z[a] = a, Z[h2] = a, r = h2;
336
+ }
337
+ return r && Object.defineProperty(i, r, { get() {
338
+ return Ie(t);
339
+ } }), Object.defineProperty(i, t, { get() {
340
+ return Ie(t);
341
+ } }), De(i, t);
345
342
  }
346
- function Ot() {
347
- let t = (e) => {
348
- };
349
- return function({ trial: e, whenError: r = t } = {}) {
350
- try {
351
- return e();
352
- } catch (n) {
353
- return r(n);
354
- }
355
- };
343
+ function De(t, e) {
344
+ return X = Object.seal(new Proxy(t, Qe())), X[e];
356
345
  }
357
- function Pt() {
358
- let t = new Intl.Collator("en", { sensitivity: "base" }), e = (o) => typeof o?.constructor == "function" ? o?.name || o?.constructor?.name : typeof o == "string" ? o : typeof o, r = (o) => [null, void 0, 1 / 0, NaN].some((i) => i === o);
359
- function n(o, i) {
360
- if (i !== o && (r(o) || i === Number && (Number.isNaN(o) || !Number.isFinite(o)))) return false;
361
- let [a, b] = [e(o), e(i)];
362
- return o?.[Symbol.proxy] === i || i === o?.name || t.compare(a, b) === 0 || t.compare(o.constructor?.name, i?.name) === 0 || o.constructor?.name === i || a === i || t.compare(Object.prototype.toString.call(o), `[object ${b}]`) === 0;
346
+ function Ht(t, e, r) {
347
+ return e = e?.isJQx && e.node || (Q(e, Number) ? String(e) : e), St({ trial: (n) => je(e) ? t.insertAdjacentHTML("beforeend", e) : t.append(e), whenError: (n) => console.info(`${r} not created, reason
348
+ `, n) });
349
+ }
350
+ function Mt(t, e, ...r) {
351
+ let n = Pt(e, t);
352
+ return r?.forEach((o) => Ht(n, o, t)), n;
353
+ }
354
+ function Pt(t, e) {
355
+ switch (t = ye(e) ? $t(t) : t?.isJQx ? t.node : t, true) {
356
+ case Q(t, String):
357
+ return K(e, je(t, e) ? { html: t } : { text: t });
358
+ case t instanceof Node:
359
+ return Rt(e, t);
360
+ default:
361
+ return K(e, t);
363
362
  }
364
- return function(i, ...a) {
365
- if (Array.isArray(a) && a.length > 1) {
366
- for (let b of a) if (n(i, b)) return true;
367
- return false;
368
- }
369
- return n(i, a?.[0]);
370
- };
371
363
  }
372
- var k = Rt;
373
- function Rt({ styleSheet: t, createWithId: e } = {}) {
374
- let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: o, sheet: i, removeRules: a, consider: b, currentSheetID: p3 } = Dt({ styleSheet: t, createWithId: e });
375
- function x2(f2, c) {
376
- if (f2 && c.removeProperties) {
377
- Object.keys(c.removeProperties).forEach((s) => f2.style.removeProperty(Qe(s)));
364
+ function Rt(t, e) {
365
+ let r = K(t);
366
+ return r.append(e), r;
367
+ }
368
+ function Dt(t, e) {
369
+ let [r, n, o] = t;
370
+ r?.length && r.forEach(([i, a]) => e.dataset[i] = a), n?.length && n.forEach(([i, a]) => e.setAttribute(i, a)), o?.forEach((i) => e.classList.add(i));
371
+ }
372
+ function K(t, e) {
373
+ e = e || {};
374
+ let { assignable: r, specials: n } = Ft(e), o = Object.assign(ye(t) ? new Comment() : document.createElement(t), r);
375
+ return Dt(n, o), o;
376
+ }
377
+ function Ie(t) {
378
+ return t = Z[t] ?? t, (e, ...r) => Mt(t, e, ...r);
379
+ }
380
+ var W = It;
381
+ function It({ styleSheet: t, createWithId: e } = {}) {
382
+ let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: o, sheet: i, removeRules: a, consider: h2, currentSheetID: p3 } = jt({ styleSheet: t, createWithId: e });
383
+ function E2(m, u2) {
384
+ if (m && u2.removeProperties) {
385
+ Object.keys(u2.removeProperties).forEach((l) => m.style.removeProperty(ke(l)));
378
386
  return;
379
387
  }
380
- Object.entries(c).forEach(([s, u2]) => {
381
- s = Qe(s.trim()), u2 = u2.trim();
382
- let g2;
383
- if (/!important/.test(u2) && (u2 = u2.slice(0, u2.indexOf("!important")).trim(), g2 = "important"), !CSS.supports(s, u2)) return console.error(`StylingFactory ${p3} error: '${s}' with value '${u2}' not supported (yet)`);
384
- je(() => f2.style.setProperty(s, u2, g2), `StylingFactory ${p3} (setRule4Selector) failed`);
388
+ Object.entries(u2).forEach(([l, s]) => {
389
+ l = ke(l.trim()), s = s.trim();
390
+ let d;
391
+ if (/!important/.test(s) && (s = s.slice(0, s.indexOf("!important")).trim(), d = "important"), !CSS.supports(l, s)) return console.error(`StylingFactory ${p3} error: '${l}' with value '${s}' not supported (yet)`);
392
+ ze(() => m.style.setProperty(l, s, d), `StylingFactory ${p3} (setRule4Selector) failed`);
385
393
  });
386
394
  }
387
- function d(f2, c, s = i) {
388
- if (f2 = f2?.trim?.(), !l(f2, String) || !f2.length || /[;,]$/g.test(f2)) return console.error(`StylingFactory ${p3} (setRules): [${f2 || "[no selector given]"}] is not a valid selector`);
389
- if (c.removeRule) return a(f2);
390
- let u2 = n(f2, true), g2 = u2 || s.cssRules[s.insertRule(`${f2} {}`, s.cssRules.length || 0)];
391
- return b(() => x2(g2, c), f2, u2);
395
+ function f2(m, u2, l = i) {
396
+ if (m = m?.trim?.(), !c(m, String) || !m.length || /[;,]$/g.test(m)) return console.error(`StylingFactory ${p3} (setRules): [${m || "[no selector given]"}] is not a valid selector`);
397
+ if (u2.removeRule) return a(m);
398
+ let s = n(m, true), d = s || l.cssRules[l.insertRule(`${m} {}`, l.cssRules.length || 0)];
399
+ return h2(() => E2(d, u2), m, s);
392
400
  }
393
- function y(f2) {
394
- let c = f2.trim().split(/{/, 2), s = c.shift().trim();
395
- if (!l(s, String) || !s?.trim()?.length) return console.error(`StylingFactory ${p3} (doParse): no (valid) selector could be extracted from rule ${pe(f2)}`);
396
- let u2 = Wt(c.shift());
397
- return je(() => d(s, u2), `StylingFactory ${p3} (setRules) failed`);
401
+ function y(m) {
402
+ let u2 = m.trim().split(/{/, 2), l = u2.shift().trim();
403
+ if (!c(l, String) || !l?.trim()?.length) return console.error(`StylingFactory ${p3} (doParse): no (valid) selector could be extracted from rule ${be(m)}`);
404
+ let s = Ut(u2.shift());
405
+ return ze(() => f2(l, s), `StylingFactory ${p3} (setRules) failed`);
398
406
  }
399
- function m(f2) {
400
- let c = r(f2);
401
- return c.done ? c.existing : y(f2);
407
+ function g2(m) {
408
+ let u2 = r(m);
409
+ return u2.done ? u2.existing : y(m);
402
410
  }
403
- function S2(f2, c) {
404
- return f2.trim().startsWith("@media") ? m(It(f2, c)) : d(f2, c);
411
+ function S2(m, u2) {
412
+ return m.trim().startsWith("@media") ? g2(Jt(m, u2)) : f2(m, u2);
405
413
  }
406
- return function(f2, c = {}) {
407
- return o(f2, c) && (Object.keys(c).length ? S2(f2, c) : m(f2));
414
+ return function(m, u2 = {}) {
415
+ return o(m, u2) && (Object.keys(u2).length ? S2(m, u2) : g2(m));
408
416
  };
409
417
  }
410
- function Dt({ styleSheet: t, createWithId: e }) {
418
+ function jt({ styleSheet: t, createWithId: e }) {
411
419
  let r = "Note: The rule or some of its properties may not be supported by your browser (yet)", n = `for style#${e}`;
412
420
  t = e ? o(e) : t;
413
- function o(m) {
414
- let S2 = document.querySelector(`#${m}`)?.sheet;
421
+ function o(g2) {
422
+ let S2 = document.querySelector(`#${g2}`)?.sheet;
415
423
  if (S2) return S2;
416
- let f2 = Object.assign(document.createElement("style"), { id: m });
417
- return document.head.insertAdjacentElement("beforeend", f2), f2.sheet;
424
+ let m = Object.assign(document.createElement("style"), { id: g2 });
425
+ return document.head.insertAdjacentElement("beforeend", m), m.sheet;
418
426
  }
419
- function i(m) {
420
- return console.error(`StylingFactory ${n} [rule: ${m}]
427
+ function i(g2) {
428
+ return console.error(`StylingFactory ${n} [rule: ${g2}]
421
429
  => @charset, @namespace and @import are not supported here`), { done: true };
422
430
  }
423
- function a(m, S2) {
424
- return [...t.rules].find((f2) => S2 ? ke(f2.selectorText || "", m) : jt`${Qt(m)}${[..."gim"]}`.test(f2.cssText));
431
+ function a(g2, S2) {
432
+ return [...t.rules].find((m) => S2 ? We(m.selectorText || "", g2) : zt`${kt(g2)}${[..."gim"]}`.test(m.cssText));
425
433
  }
426
- function b(m) {
427
- return /^@charset|@import|namespace/i.test(m.trim()) ? i(m) : m.match(/}/g)?.length > 1 ? { existing: d(m, 1), done: true } : { done: false };
434
+ function h2(g2) {
435
+ return /^@charset|@import|namespace/i.test(g2.trim()) ? i(g2) : g2.match(/}/g)?.length > 1 ? { existing: f2(g2, 1), done: true } : { done: false };
428
436
  }
429
- function p3(m) {
430
- let S2 = [...t.cssRules].reduce((c, s, u2) => ke(s.selectorText || "", m) && c.concat(u2) || c, []), f2 = S2.length;
431
- return S2.forEach((c) => t.deleteRule(c)), f2 > 0 ? console.info(`\u2714 Removed ${f2} instance${f2 > 1 ? "s" : ""} of selector ${m} from ${n.slice(4)}`) : console.info(`\u2714 Remove rule: selector ${m} does not exist in ${n.slice(4)}`);
437
+ function p3(g2) {
438
+ let S2 = [...t.cssRules].reduce((u2, l, s) => We(l.selectorText || "", g2) && u2.concat(s) || u2, []), m = S2.length;
439
+ return S2.forEach((u2) => t.deleteRule(u2)), m > 0 ? console.info(`\u2714 Removed ${m} instance${m > 1 ? "s" : ""} of selector ${g2} from ${n.slice(4)}`) : console.info(`\u2714 Remove rule: selector ${g2} does not exist in ${n.slice(4)}`);
432
440
  }
433
- function x2(m, S2) {
434
- return m && l(m, String) && m.trim().length > 0 && l(S2, Object) || (console.error(`StylingFactory ${n} called with invalid parameters`), false);
441
+ function E2(g2, S2) {
442
+ return g2 && c(g2, String) && g2.trim().length > 0 && c(S2, Object) || (console.error(`StylingFactory ${n} called with invalid parameters`), false);
435
443
  }
436
- function d(m) {
437
- m = m.trim();
438
- let S2 = m.slice(0, m.indexOf("{")).trim(), f2 = !!a(S2);
444
+ function f2(g2) {
445
+ g2 = g2.trim();
446
+ let S2 = g2.slice(0, g2.indexOf("{")).trim(), m = !!a(S2);
439
447
  try {
440
- return t.insertRule(`${m}`, t.cssRules.length), f2;
441
- } catch (c) {
442
- return console.error(`StylingFactory ${n} (tryParse) ${c.name} Error:
443
- ${c.message}
444
- Rule: ${pe(m)}
445
- ${r}`), f2;
448
+ return t.insertRule(`${g2}`, t.cssRules.length), m;
449
+ } catch (u2) {
450
+ return console.error(`StylingFactory ${n} (tryParse) ${u2.name} Error:
451
+ ${u2.message}
452
+ Rule: ${be(g2)}
453
+ ${r}`), m;
446
454
  }
447
455
  }
448
- function y(m, S2, f2) {
456
+ function y(g2, S2, m) {
449
457
  try {
450
- return m(), f2;
451
- } catch (c) {
452
- return console.error(`StylingFactory ${n} (tryAddOrModify) ${c.name} Error:
453
- ${c.message}
454
- Rule: ${pe(S2)}
455
- ${r}`), f2;
458
+ return g2(), m;
459
+ } catch (u2) {
460
+ return console.error(`StylingFactory ${n} (tryAddOrModify) ${u2.name} Error:
461
+ ${u2.message}
462
+ Rule: ${be(S2)}
463
+ ${r}`), m;
456
464
  }
457
465
  }
458
- return { sheet: t, removeRules: p3, tryParseAtOrNestedRules: b, ruleExists: a, checkParams: x2, tryParse: d, consider: y, currentSheetID: n };
466
+ return { sheet: t, removeRules: p3, tryParseAtOrNestedRules: h2, ruleExists: a, checkParams: E2, tryParse: f2, consider: y, currentSheetID: n };
459
467
  }
460
- function It(t, e) {
461
- return `${t.trim()} ${Object.entries(e).map(([r, n]) => `${r}: { ${Jt(n)}`)}`;
468
+ function Jt(t, e) {
469
+ return `${t.trim()} ${Object.entries(e).map(([r, n]) => `${r}: { ${Qt(n)}`)}`;
462
470
  }
463
- function pe(t) {
471
+ function be(t) {
464
472
  let e = (t || "NO RULE").trim().slice(0, 50).replace(/\n/g, "\\n").replace(/\s{2,}/g, " ");
465
473
  return t.length > e.length ? `${e.trim()}...truncated` : e;
466
474
  }
467
- function Jt(t) {
475
+ function Qt(t) {
468
476
  return Object.entries(t).map(([e, r]) => `${e}: ${r.trim()}`).join(`;
469
477
  `);
470
478
  }
471
- function Qt(t) {
479
+ function kt(t) {
472
480
  return t.replace(/([*\[\]()-+{}.$?\\])/g, (e) => `\\${e}`);
473
481
  }
474
- function jt(t, ...e) {
482
+ function zt(t, ...e) {
475
483
  let r = e.length && Array.isArray(e.slice(-1)) ? e.pop().join("") : "";
476
484
  return new RegExp((e.length && t.raw.reduce((n, o, i) => n.concat(e[i - 1] || "").concat(o), "") || t.raw.join("")).split(`
477
485
  `).map((n) => n.replace(/\s|\/\/.*$/g, "").trim().replace(/(@s!)/g, " ")).join(""), r);
478
486
  }
479
- function Qe(t) {
487
+ function ke(t) {
480
488
  return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[^--]^-|-$/, "");
481
489
  }
482
- function je(t, e) {
490
+ function ze(t, e) {
483
491
  try {
484
492
  return t();
485
493
  } catch (r) {
486
494
  console.error(`${e || "an error occured"}: ${r.message}`);
487
495
  }
488
496
  }
489
- function kt(t) {
497
+ function Wt(t) {
490
498
  return t.replace(/\/\*.+?\*\//gm, "").replace(/[}{\r\n]/g, "").replace(/(data:.+?);/g, (e, r) => `${r}\\3b`).split(";").map((e) => e.trim()).join(`;
491
499
  `).replaceAll("\\3b", ";").split(`
492
500
  `);
493
501
  }
494
- function zt(t) {
502
+ function Bt(t) {
495
503
  return t.reduce((e, r) => {
496
504
  let [n, o] = [r.slice(0, r.indexOf(":")).trim(), r.slice(r.indexOf(":") + 1).trim().replace(/;$|;.+(?=\/*).+\/$/, "")];
497
505
  return n && o ? { ...e, [n]: o } : e;
498
506
  }, {});
499
507
  }
500
- function Wt(t) {
501
- return zt(kt(t));
508
+ function Ut(t) {
509
+ return Bt(Wt(t));
502
510
  }
503
- function ke(t, e) {
511
+ function We(t, e) {
504
512
  return t?.replace("::", ":") === e?.replace("::", ":");
505
513
  }
506
- var ye = false;
507
- var Bt = { on: () => ye = true, off: () => ye = false };
508
- var C = { tagsRaw: Q, allowUnknownHtmlTags: Bt, isAllowed(t) {
509
- if (ye) return true;
510
- let e = l(t, String) ? t.toLowerCase() : t?.nodeName.toLowerCase() || "none";
511
- return e === "#text" || !!Q[e];
512
- }, allowTag: (t) => Q[t.toLowerCase()] = true, prohibitTag: (t) => Q[t.toLowerCase()] = false };
513
- var Ut = true;
514
- var Z = { data: /data-[\-\w.\p{L}]/ui, validURL: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, whiteSpace: /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, notAllowedValues: /^javascript|injected|noreferrer|alert|DataURL/gi };
515
- function Vt(t) {
516
- if (Ut && Object.keys(t.removed).length) {
517
- let e = Object.entries(t.removed).reduce((r, [n, o]) => [...r, `${H(n)} => ${o}`], []).join("\\000A");
518
- v.error(`JQx: HTML creation error(s): ${e}`);
519
- }
520
- }
521
- function _t(t) {
514
+ var he = false;
515
+ var Vt = { on: () => he = true, off: () => he = false };
516
+ var N = { tagsRaw: k, allowUnknownHtmlTags: Vt, isAllowed(t) {
517
+ if (he) return true;
518
+ let e = c(t, String) ? t.toLowerCase() : t?.nodeName.toLowerCase() || "none";
519
+ return e === "#text" || !!k[e];
520
+ }, allowTag: (t) => k[t.toLowerCase()] = true, prohibitTag: (t) => k[t.toLowerCase()] = false };
521
+ var _t = true;
522
+ var q = { data: /data-[\-\w.\p{L}]/ui, validURL: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, whiteSpace: /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, notAllowedValues: /^javascript|injected|noreferrer|alert|DataURL/gi };
523
+ function Yt(t) {
524
+ if (_t && Object.keys(t.removed).length) {
525
+ let e = Object.entries(t.removed).reduce((r, [n, o]) => [...r, `${M(n)} => ${o}`], []).join("\\000A");
526
+ L.error(`JQx: HTML creation error(s): ${e}`);
527
+ }
528
+ }
529
+ function Gt(t) {
522
530
  let e = t.nodeName.toLowerCase(), r = ["annotation-xml", "color-profile", "font-face", "font-face-src", "font-face-uri", "font-face-format", "font-face-name", "missing-glyph"];
523
- return /-/.test(e) && !r.find((n) => n === e) || C.isAllowed(e);
531
+ return /-/.test(e) && !r.find((n) => n === e) || N.isAllowed(e);
524
532
  }
525
- function P(t) {
533
+ function D(t) {
526
534
  let e = { rawHTML: t?.parentElement?.getHTML() ?? "no html", removed: {} };
527
- return l(t, HTMLElement) && [...t.childNodes].forEach((r) => {
528
- if (r?.children?.length && P(r), r?.attributes) {
529
- let o = l(r, SVGElement) ? I.svg : I.html;
535
+ return c(t, HTMLElement) && [...t.childNodes].forEach((r) => {
536
+ if (r?.children?.length && D(r), r?.attributes) {
537
+ let o = c(r, SVGElement) ? J.svg : J.html;
530
538
  [...(r ?? { attributes: [] }).attributes].forEach((i) => {
531
- let a = i.name.trim().toLowerCase(), b = i.value.trim().toLowerCase().replace(Z.whiteSpace, ""), p3 = a === "href" ? !Z.validURL.test(b) : Z.notAllowedValues.test(b), x2 = a.startsWith("data") ? !Z.data.test(a) : !!o[a];
532
- if (p3 || x2) {
533
- let d = K(i.value || "none", 60);
534
- d += d.length === 60 ? "..." : "", e.removed[`${i.name}`] = `attribute/property/value not allowed, removed. Value: ${d}`, r.removeAttribute(i.name);
539
+ let a = i.name.trim().toLowerCase(), h2 = i.value.trim().toLowerCase().replace(q.whiteSpace, ""), p3 = a === "href" ? !q.validURL.test(h2) : q.notAllowedValues.test(h2), E2 = a.startsWith("data") ? !q.data.test(a) : !!o[a];
540
+ if (p3 || E2) {
541
+ let f2 = ee(i.value || "none", 60);
542
+ f2 += f2.length === 60 ? "..." : "", e.removed[`${i.name}`] = `attribute/property/value not allowed, removed. Value: ${f2}`, r.removeAttribute(i.name);
535
543
  }
536
544
  });
537
545
  }
538
- if (!(_t(r) || r.constructor === CharacterData || r.constructor === Comment)) {
539
- let o = (r?.outerHTML || r?.textContent).trim(), i = K(o, 60) ?? "EMPTY";
546
+ if (!(Gt(r) || r.constructor === CharacterData || r.constructor === Comment)) {
547
+ let o = (r?.outerHTML || r?.textContent).trim(), i = ee(o, 60) ?? "EMPTY";
540
548
  i += i.length === 60 ? "..." : "", e.removed[`<${r.nodeName?.toLowerCase()}>`] = `not allowed, not rendered. Value: ${i}`, r.remove();
541
549
  }
542
- }), Vt(e), t;
550
+ }), Yt(e), t;
543
551
  }
544
- function Yt(t) {
552
+ function Xt(t) {
545
553
  let e = document.createElement("div");
546
- return e.insertAdjacentHTML(F.end, t), e.childNodes.length ? P(e) : void 0;
554
+ return e.insertAdjacentHTML(T.end, t), e.childNodes.length ? D(e) : void 0;
547
555
  }
548
- function Gt(t, e, r) {
556
+ function Zt(t, e, r) {
549
557
  switch (true) {
550
- case l(t, Comment):
558
+ case c(t, Comment):
551
559
  return e.insertAdjacentHTML(r, `<!--${t.data}-->`);
552
- case l(t, Text):
560
+ case c(t, Text):
553
561
  return e.insertAdjacentText(r, t.data || t.textContent);
554
562
  default:
555
563
  return;
556
564
  }
557
565
  }
558
- function R(t = [], e = document.body, r = F.BeforeEnd) {
559
- return r = r || F.BeforeEnd, e = e?.isJQx ? e.node : e || document.body, t.reduce((n, o) => {
560
- let i = N(o) && Xt(o, e, r);
566
+ function I(t = [], e = document.body, r = T.BeforeEnd) {
567
+ return r = r || T.BeforeEnd, e = e?.isJQx ? e.node : e || document.body, t.reduce((n, o) => {
568
+ let i = H(o) && Kt(o, e, r);
561
569
  return i ? [...n, i] : n;
562
570
  }, []);
563
571
  }
564
- function Xt(t, e = document.body, r = F.BeforeEnd) {
565
- return r = r || F.BeforeEnd, e = e?.isJQx ? e?.[0] : e, l(t, Comment, Text) ? Gt(t, e, r) : l(t, HTMLElement) ? e.insertAdjacentElement(r, t) : void 0;
572
+ function Kt(t, e = document.body, r = T.BeforeEnd) {
573
+ return r = r || T.BeforeEnd, e = e?.isJQx ? e?.[0] : e, c(t, Comment, Text) ? Zt(t, e, r) : c(t, HTMLElement) ? e.insertAdjacentElement(r, t) : void 0;
566
574
  }
567
- function T(t) {
568
- if (l(t, Text, Comment)) return t;
575
+ function C(t) {
576
+ if (c(t, Text, Comment)) return t;
569
577
  let e = t?.trim(), r = e?.split(/<text>|<\/text>/i) ?? [];
570
578
  if (r?.length && (r = r.length > 1 ? r.filter((o) => o.length).shift() : void 0), e.startsWith("<!--") && e.endsWith("-->")) return document.createComment(t.replace(/<!--|-->$/g, ""));
571
- if (r || l(e, String) && !/^<(.+)[^>]+>/m.test(e)) return document.createTextNode(r ?? e);
572
- let n = Yt(t);
573
- return n.childNodes.length < 1 ? T(`<span data-jqxcreationerror="1">${q(t, 60)}</span>`) : n.children[0];
579
+ if (r || c(e, String) && !/^<(.+)[^>]+>/m.test(e)) return document.createTextNode(r ?? e);
580
+ let n = Xt(t);
581
+ return n.childNodes.length < 1 ? C(`<span data-jqxcreationerror="1">${te(t, 60)}</span>`) : n.children[0];
574
582
  }
575
- function ee(t) {
583
+ function re(t) {
576
584
  if (t.node("#jqxPopup")) return;
577
- t.logger.log("JQx: [JQx].Popup first call. Dialog element created."), t.dialog({ id: "jqxPopup" }, t.div({ id: "jqxPopupContent" })).render, t.editCssRules(...He);
585
+ t.logger.log("JQx: [JQx].Popup first call. Dialog element created."), t.dialog({ id: "jqxPopup" }, t.div({ id: "jqxPopupContent" })).render, t.editCssRules(...Me);
578
586
  let e = [], [r, n] = [t("#jqxPopupContent"), t.node("#jqxPopup")], o = {};
579
- return t.handle({ type: "click, cancel", handlers: m, name: "genericPopupCloseHandler", capture: true, about: "A generic handler for JQx popups" }), Object.freeze({ show: i, remove: a, removeModal: y });
580
- function i(c) {
587
+ return t.handle({ type: "click, cancel", handlers: g2, name: "genericPopupCloseHandler", capture: true, about: "A generic handler for JQx popups" }), Object.freeze({ show: i, remove: a, removeModal: y });
588
+ function i(u2) {
581
589
  if (n.open) switch (true) {
582
- case b(c):
590
+ case h2(u2):
583
591
  return;
584
592
  default:
585
- return a(), setTimeout(() => i(c), 200);
593
+ return a(), setTimeout(() => i(u2), 200);
586
594
  }
587
- o = { ...c };
588
- let { content: s } = o;
589
- return t.IS(s, String, HTMLElement) || s?.isJQx ? p3() : true;
595
+ o = { ...u2 };
596
+ let { content: l } = o;
597
+ return t.IS(l, String, HTMLElement) || l?.isJQx ? p3() : true;
590
598
  }
591
599
  function a() {
592
- return o.modal ? f2(o.warnMessage) : x2();
600
+ return o.modal ? m(o.warnMessage) : E2();
593
601
  }
594
- function b(c) {
595
- for (let [s, u2] of Object.entries(o)) if (u2 !== c[s]) return false;
602
+ function h2(u2) {
603
+ for (let [l, s] of Object.entries(o)) if (s !== u2[l]) return false;
596
604
  return true;
597
605
  }
598
606
  function p3() {
599
607
  r.clear();
600
- let { content: c, modal: s, closeAfter: u2 } = o;
601
- s = t.IS(s, Boolean) ? s : false;
602
- let g2 = s ? "" : t.div({ id: "closeHandleIcon" });
603
- r.append(g2, t.IS(c, String) ? t.div(c) : c), n.showModal(), !s && t.IS(u2, Number) && S2(a, u2);
608
+ let { content: u2, modal: l, closeAfter: s } = o;
609
+ l = t.IS(l, Boolean) ? l : false;
610
+ let d = l ? "" : t.div({ id: "closeHandleIcon" });
611
+ r.append(d, t.IS(u2, String) ? t.div(u2) : u2), n.showModal(), !l && t.IS(s, Number) && S2(a, s);
604
612
  }
605
- function x2() {
606
- if (n.close(o.returnValue), d(), t.IS(o.callback, Function)) return e.push(setTimeout(() => o.callback(o.returnValue), 200));
613
+ function E2() {
614
+ if (n.close(o.returnValue), f2(), t.IS(o.callback, Function)) return e.push(setTimeout(() => o.callback(o.returnValue), 200));
607
615
  o = {};
608
616
  }
609
- function d() {
610
- e.forEach((c) => clearTimeout(c)), e = [];
617
+ function f2() {
618
+ e.forEach((u2) => clearTimeout(u2)), e = [];
611
619
  }
612
- function y({ callback: c, value: s } = {}) {
613
- o.returnValue = s, o.modal = false, o.callback = c || o.callback, a();
620
+ function y({ callback: u2, value: l } = {}) {
621
+ o.returnValue = l, o.modal = false, o.callback = u2 || o.callback, a();
614
622
  }
615
- function m({ evt: c }) {
616
- if (!(Object.keys(o).length < 1 || !n.open) && (c.type === "cancel" && o.modal && c.preventDefault(), c.target.closest("#closeHandleIcon") || !c.target.closest("#jqxPopupContent"))) return o.activeTimer && clearTimeout(o.activeTimer), a();
623
+ function g2({ evt: u2 }) {
624
+ if (!(Object.keys(o).length < 1 || !n.open) && (u2.type === "cancel" && o.modal && u2.preventDefault(), u2.target.closest("#closeHandleIcon") || !u2.target.closest("#jqxPopupContent"))) return o.activeTimer && clearTimeout(o.activeTimer), a();
617
625
  }
618
- function S2(c, s) {
619
- t.IS(c, Function) && t.IS(s, Number) && s > 0 && (d(), e.push(setTimeout(c, s * 1e3)));
626
+ function S2(u2, l) {
627
+ t.IS(u2, Function) && t.IS(l, Number) && l > 0 && (f2(), e.push(setTimeout(u2, l * 1e3)));
620
628
  }
621
- function f2(c) {
622
- if (!t.IS(c, String, HTMLElement) && !c.isJQx) return;
623
- let s = r.find$(".warn");
629
+ function m(u2) {
630
+ if (!t.IS(u2, String, HTMLElement) && !u2.isJQx) return;
631
+ let l = r.find$(".warn");
624
632
  switch (true) {
625
- case s.is.empty:
626
- s = t.div({ class: "warn" }, c);
633
+ case l.is.empty:
634
+ l = t.div({ class: "warn" }, u2);
627
635
  default:
628
- r.append(s.addClass("active")), S2(() => r.find$(".warn").removeClass("active"), 2);
636
+ r.append(l.addClass("active")), S2(() => r.find$(".warn").removeClass("active"), 2);
629
637
  }
630
638
  }
631
639
  }
632
- function te(t) {
640
+ function ne(t) {
633
641
  let e = {}, r = "anonymous_";
634
- function n(d) {
635
- if (d) {
636
- let { handler: y, capture: m, type: S2 } = d;
637
- document.addEventListener(S2, y, { capture: m });
642
+ function n(f2) {
643
+ if (f2) {
644
+ let { handler: y, capture: g2, type: S2 } = f2;
645
+ document.addEventListener(S2, y, { capture: g2 });
638
646
  }
639
647
  }
640
- function o(d) {
641
- if (d) {
642
- let { type: y, handler: m, capture: S2 } = d;
643
- document.removeEventListener(y, m, { capture: S2 });
648
+ function o(f2) {
649
+ if (f2) {
650
+ let { type: y, handler: g2, capture: S2 } = f2;
651
+ document.removeEventListener(y, g2, { capture: S2 });
644
652
  }
645
653
  }
646
- function i(d, y, m, S2) {
647
- return function(f2) {
648
- if (!L(y)) return d({ evt: f2 });
649
- let c = f2.target.closest(y);
650
- if (c) {
651
- let s = t(c);
652
- d({ self: s, me: s, evt: f2 }), m && p3(f2.type, S2);
654
+ function i(f2, y, g2, S2) {
655
+ return function(m) {
656
+ if (!A(y)) return f2({ evt: m });
657
+ let u2 = m.target.closest(y);
658
+ if (u2) {
659
+ let l = t(u2);
660
+ f2({ self: l, me: l, evt: m }), g2 && p3(m.type, S2);
653
661
  }
654
662
  return true;
655
663
  };
656
664
  }
657
- function a(d) {
658
- return e[d] = e[d] || {}, e[d];
665
+ function a(f2) {
666
+ return e[f2] = e[f2] || {}, e[f2];
659
667
  }
660
- function b(d, y) {
661
- return Object.entries(a(d)).find(([m]) => m === y);
668
+ function h2(f2, y) {
669
+ return Object.entries(a(f2)).find(([g2]) => g2 === y);
662
670
  }
663
- function p3(d, y) {
664
- let m = b(d, y);
665
- m && (o(m[1]), delete e[d][y], delete re[y], v.warn(`Removed listener [${y}] for event type [${d}].`));
671
+ function p3(f2, y) {
672
+ let g2 = h2(f2, y);
673
+ g2 && (o(g2[1]), delete e[f2][y], delete oe[y], L.warn(`Removed listener [${y}] for event type [${f2}].`));
666
674
  }
667
- function x2(d) {
668
- let { type: y, handler: m, name: S2, capture: f2, once: c, selector: s, node: u2, about: g2 } = d;
675
+ function E2(f2) {
676
+ let { type: y, handler: g2, name: S2, capture: m, once: u2, selector: l, node: s, about: d } = f2;
669
677
  e[y] = e[y] || {};
670
- let h2 = be(S2 || m.name), w = m;
671
- if (u2 instanceof HTMLElement) {
672
- let A2 = u2.dataset.hid || h2;
673
- u2.dataset.hid = A2, s = `[data-hid=${A2}]`;
678
+ let b = Se(S2 || g2.name), x2 = g2;
679
+ if (s instanceof HTMLElement) {
680
+ let w = s.dataset.hid || b;
681
+ s.dataset.hid = w, l = `[data-hid=${w}]`;
674
682
  }
675
683
  switch (true) {
676
- case !e[y][h2]:
677
- return v.log(`JQx: created listener for event type ${y}, with handler name ${h2}`), e[y][h2] = { name: h2, handler: i(m, s, c, h2), capture: ze(y, f2), once: !!c, type: y, initialHandler: w, selector: !!s && s || false, about: !!g2 && g2 || false, unListen() {
678
- p3(y, h2);
679
- } }, e[y][h2];
684
+ case !e[y][b]:
685
+ return L.log(`JQx: created listener for event type ${y}, with handler name ${b}`), e[y][b] = { name: b, handler: i(g2, l, u2, b), capture: Be(y, m), once: !!u2, type: y, initialHandler: x2, selector: !!l && l || false, about: !!d && d || false, unListen() {
686
+ p3(y, b);
687
+ } }, e[y][b];
680
688
  default:
681
- return console.warn(`The listener [${h2}] for [${y}] exists, it is not re-assigned.`);
689
+ return console.warn(`The listener [${b}] for [${y}] exists, it is not re-assigned.`);
682
690
  }
683
691
  }
684
- return { remove(...d) {
685
- return p3(...d);
686
- }, listen: function(d) {
687
- let { type: y, handler: m } = d;
688
- if (!L(y) || !l(m, Function)) return;
689
- let S2 = x2(d);
692
+ return { remove(...f2) {
693
+ return p3(...f2);
694
+ }, listen: function(f2) {
695
+ let { type: y, handler: g2 } = f2;
696
+ if (!A(y) || !c(g2, Function)) return;
697
+ let S2 = E2(f2);
690
698
  if (S2) return n(S2), { type: y, name: S2.name, unListen() {
691
699
  p3(y, S2.name);
692
700
  } };
@@ -694,27 +702,27 @@ ${r}`), f2;
694
702
  return Object.freeze({ ...e });
695
703
  } };
696
704
  }
697
- Ne();
698
- var v = qt();
699
- var Zt = ["load", "unload", "scroll", "focus", "blur", "DOMNodeRemovedFromDocument", "DOMNodeInsertedIntoDocument", "loadstart", "progress", "error", "abort", "load", "loadend", "pointerenter", "pointerleave", "readystatechange"];
700
- var F = Object.freeze(new Proxy({ start: "afterbegin", afterbegin: "afterbegin", end: "beforeend", beforeend: "beforeend", before: "beforebegin", beforebegin: "beforebegin", after: "afterend", afterend: "afterend" }, { get(t, e) {
705
+ He();
706
+ var L = tr();
707
+ var qt = ["load", "unload", "scroll", "focus", "blur", "DOMNodeRemovedFromDocument", "DOMNodeInsertedIntoDocument", "loadstart", "progress", "error", "abort", "load", "loadend", "pointerenter", "pointerleave", "readystatechange"];
708
+ var T = Object.freeze(new Proxy({ start: "afterbegin", afterbegin: "afterbegin", end: "beforeend", beforeend: "beforeend", before: "beforebegin", beforebegin: "beforebegin", after: "afterend", afterend: "afterend" }, { get(t, e) {
701
709
  return t[String(e).toLowerCase()] ?? t[e];
702
710
  } }));
703
- var Kt = [...Array(26)].map((t, e) => String.fromCharCode(e + 65)).concat([...Array(26)].map((t, e) => String.fromCharCode(e + 97))).concat([...Array(10)].map((t, e) => `${e}`));
704
- var Se = Object.freeze({ get(t, e) {
705
- return t[B(e)] || t[e];
711
+ var er = [...Array(26)].map((t, e) => String.fromCharCode(e + 65)).concat([...Array(26)].map((t, e) => String.fromCharCode(e + 97))).concat([...Array(10)].map((t, e) => `${e}`));
712
+ var Ee = Object.freeze({ get(t, e) {
713
+ return t[V(e)] || t[e];
706
714
  }, enumerable: false, configurable: false });
707
- var re = {};
708
- function xe() {
715
+ var oe = {};
716
+ function we() {
709
717
  let t = setTimeout(() => {
710
718
  });
711
719
  for (; t >= 0; ) clearTimeout(t--);
712
720
  }
713
- function be(t) {
714
- return L(t) && !/^handler|handlers$/gi.test(t.trim()) ? t.trim() : We();
721
+ function Se(t) {
722
+ return A(t) && !/^handler|handlers$/gi.test(t.trim()) ? t.trim() : Ue();
715
723
  }
716
- function Ee(t) {
717
- let e = !!t.node && !l(t, Text, Comment);
724
+ function ve(t) {
725
+ let e = !!t.node && !c(t, Text, Comment);
718
726
  switch (true) {
719
727
  case e:
720
728
  let r = t.node.dataset ? Object.keys(t.node.dataset).map((i) => `[data-${i}]`) : [], o = [t.attr("id") && `#${t?.attr("id")}` || void 0, t.attr("class") && t?.attr("class").split(" ").map((i) => `.${i}`).join(", ") || void 0, r.length > 0 && r.join(", ") || void 0].filter((i) => !!i).join(", ") || [];
@@ -723,44 +731,44 @@ ${r}`), f2;
723
731
  return "";
724
732
  }
725
733
  }
726
- function We(t) {
734
+ function Ue(t) {
727
735
  let e = `anonymous_${Math.random().toString(36).slice(2)}`;
728
- return re[e] ? We() : (re[e] = e, e);
736
+ return oe[e] ? Ue() : (oe[e] = e, e);
729
737
  }
730
- function ze(t, e) {
731
- return !!Zt.find((r) => r === t) || !!e;
738
+ function Be(t, e) {
739
+ return !!qt.find((r) => r === t) || !!e;
732
740
  }
733
- function ie(t) {
734
- return t.startsWith("data") || I.html.find((e) => t.toLowerCase() === e);
741
+ function ae(t) {
742
+ return t.startsWith("data") || J.html.find((e) => t.toLowerCase() === e);
735
743
  }
736
- function se(t) {
744
+ function ce(t) {
737
745
  return t && (t.textContent = "");
738
746
  }
739
- function z(t, e = 0, r = true) {
740
- return t = t?.parentElement, e += t ? t[r ? "scrollTop" : "scrollLeft"] : 0, t ? z(t, e, r) : e;
747
+ function B(t, e = 0, r = true) {
748
+ return t = t?.parentElement, e += t ? t[r ? "scrollTop" : "scrollLeft"] : 0, t ? B(t, e, r) : e;
741
749
  }
742
- function L(t, e = 1) {
743
- return e = l(e, Number) && e || 1, l(t, String) && t.length >= e;
750
+ function A(t, e = 1) {
751
+ return e = c(e, Number) && e || 1, c(t, String) && t.length >= e;
744
752
  }
745
- function K(t, e = 120) {
746
- return q(t, e).replace(/&lt;/g, "<");
753
+ function ee(t, e = 120) {
754
+ return te(t, e).replace(/&lt;/g, "<");
747
755
  }
748
- function q(t, e = 120) {
756
+ function te(t, e = 120) {
749
757
  return `${t}`.trim().slice(0, e).replace(/>\s+</g, "><").replace(/</g, "&lt;").replace(/\s{2,}/g, " ").replace(/\n/g, "\\n") + (t.length > e ? " &hellip;" : "").trim();
750
758
  }
751
- function H(t) {
759
+ function M(t) {
752
760
  switch (true) {
753
- case l(t, String):
761
+ case c(t, String):
754
762
  let e = document.createElement("div");
755
763
  return e.append(t), e.innerHTML;
756
764
  default:
757
765
  return t;
758
766
  }
759
767
  }
760
- function he(t) {
761
- return l(t, String) && Object.assign(document.createElement("textarea"), { innerHTML: t }).textContent || t;
768
+ function xe(t) {
769
+ return c(t, String) && Object.assign(document.createElement("textarea"), { innerHTML: t }).textContent || t;
762
770
  }
763
- function qt() {
771
+ function tr() {
764
772
  let [t, e] = [false, true], r = [], n = { get on() {
765
773
  return t = true, n;
766
774
  }, get off() {
@@ -778,89 +786,89 @@ ${r}`), f2;
778
786
  function i() {
779
787
  e = false;
780
788
  }
781
- function a(...x2) {
782
- return r.unshift(...x2.map((d) => `${oe()} \u2A3B ${he(d)}`)), console.error(r.slice(0, x2.length).join(`
789
+ function a(...E2) {
790
+ return r.unshift(...E2.map((f2) => `${se()} \u2A3B ${xe(f2)}`)), console.error(r.slice(0, E2.length).join(`
783
791
  `)), n;
784
792
  }
785
- function b(...x2) {
786
- return r.unshift(...x2.map((d) => `${oe()} \u26A0 ${he(d)}`)), console.warn(r.slice(0, x2.length).join(`
793
+ function h2(...E2) {
794
+ return r.unshift(...E2.map((f2) => `${se()} \u26A0 ${xe(f2)}`)), console.warn(r.slice(0, E2.length).join(`
787
795
  `)), n;
788
796
  }
789
- function p3(...x2) {
790
- let d = x2.map((y) => `${oe()} \u2714 ${he(y)}`);
791
- switch (!e && r.unshift(...d), t) {
797
+ function p3(...E2) {
798
+ let f2 = E2.map((y) => `${se()} \u2714 ${xe(y)}`);
799
+ switch (!e && r.unshift(...f2), t) {
792
800
  case true:
793
- console.log(d.join(`
801
+ console.log(f2.join(`
794
802
  `));
795
803
  default:
796
804
  return n;
797
805
  }
798
806
  }
799
- return Object.defineProperties(n, { log: { value: p3, enumerable: false }, error: { value: a, enumerable: false }, warn: { value: b, enumerable: false } }), Object.freeze(n);
807
+ return Object.defineProperties(n, { log: { value: p3, enumerable: false }, error: { value: a, enumerable: false }, warn: { value: h2, enumerable: false } }), Object.freeze(n);
800
808
  }
801
- function oe() {
802
- return ((t) => `[${ne(t.getHours())}:${ne(t.getMinutes())}:${ne(t.getSeconds())}.${ne(t.getMilliseconds(), 3)}]`)(/* @__PURE__ */ new Date());
809
+ function se() {
810
+ return ((t) => `[${ie(t.getHours())}:${ie(t.getMinutes())}:${ie(t.getSeconds())}.${ie(t.getMilliseconds(), 3)}]`)(/* @__PURE__ */ new Date());
803
811
  }
804
- function we(t, e) {
812
+ function Le(t, e) {
805
813
  if (t) for (let [r, n] of Object.entries(e)) {
806
- if (r = $(r), r.startsWith("data")) return ae(t, n);
807
- l(n, String) && ie(r) && t.setAttribute(r, n.split(/[, ]/)?.join(" "));
814
+ if (r = $(r), r.startsWith("data")) return le(t, n);
815
+ c(n, String) && ae(r) && t.setAttribute(r, n.split(/[, ]/)?.join(" "));
808
816
  }
809
817
  }
810
- function ae(t, e) {
811
- if (t && l(e, Object)) for (let [r, n] of Object.entries(e)) t.setAttribute(`data-${$(r)}`, n);
818
+ function le(t, e) {
819
+ if (t && c(e, Object)) for (let [r, n] of Object.entries(e)) t.setAttribute(`data-${$(r)}`, n);
812
820
  }
813
- function le(t) {
814
- return t ? t.EL ? [t.EL] : l(t, NodeList) ? [...t] : N(t) ? [t] : V(t) ? t : t.isJQx ? t.collection : void 0 : [];
821
+ function ue(t) {
822
+ return t ? t.EL ? [t.EL] : c(t, NodeList) ? [...t] : H(t) ? [t] : Y(t) ? t : t.isJQx ? t.collection : void 0 : [];
815
823
  }
816
- function D(t, e, r = true, ...n) {
817
- if (t.is.empty) return v.log("[JQx instance].[before(Me) | after(Me) | andThen]: instance is empty."), t;
818
- if (n = n.map((i) => i.isJQx ? i.node : l(i, String) ? e(i).node ?? i : i), n.find((i) => !l(i, String, Element))) {
824
+ function j(t, e, r = true, ...n) {
825
+ if (t.is.empty) return L.log("[JQx instance].[before(Me) | after(Me) | andThen]: instance is empty."), t;
826
+ if (n = n.map((i) => i.isJQx ? i.node : c(i, String) ? e(i).node ?? i : i), n.find((i) => !c(i, String, Element))) {
819
827
  let i = r ? "after" : "before";
820
- return v.log(`[JQx instance].[${i}(Me)]: invalid/-sufficient input.`), t;
828
+ return L.log(`[JQx instance].[${i}(Me)]: invalid/-sufficient input.`), t;
821
829
  }
822
830
  return t.node[r ? "after" : "before"](...n), t;
823
831
  }
824
- function N(t) {
825
- return l(t, Text, HTMLElement, Comment);
832
+ function H(t) {
833
+ return c(t, Text, HTMLElement, Comment);
826
834
  }
827
- function W(t, e) {
828
- if (l(e, Object)) for (let [r, n] of Object.entries(e)) {
835
+ function U(t, e) {
836
+ if (c(e, Object)) for (let [r, n] of Object.entries(e)) {
829
837
  let o;
830
838
  /!important/i.test(n) && (n = n.slice(0, n.indexOf("!")).trim(), o = "important"), t.style.setProperty($(r), n, o);
831
839
  }
832
840
  }
833
- function M(t) {
841
+ function P(t) {
834
842
  let e = t.cloneNode(true);
835
843
  return e.removeAttribute && e.removeAttribute("id"), t.isConnected ? t.remove() : t = null, e;
836
844
  }
837
- function Be(t) {
838
- if (!l(t, HTMLElement)) return;
839
- let e = t.style, r = getComputedStyle(t), n = !![e.visibility, r.visibility].includes("hidden"), o = !![e.display, r.display].includes("none"), i = !!t.hidden, a = parseInt(r.height) < 1 || parseInt(r.width) < 1, b = t.offsetTop < 0 || t.offsetLeft + t.offsetWidth < 0 || t.offsetLeft > document.body.offsetWidth, p3 = +r.opacity == 0 || +(e.opacity || 1) == 0;
840
- return !(i || b || p3 || o || n || a);
845
+ function Ve(t) {
846
+ if (!c(t, HTMLElement)) return;
847
+ let e = t.style, r = getComputedStyle(t), n = !![e.visibility, r.visibility].includes("hidden"), o = !![e.display, r.display].includes("none"), i = !!t.hidden, a = parseInt(r.height) < 1 || parseInt(r.width) < 1, h2 = t.offsetTop < 0 || t.offsetLeft + t.offsetWidth < 0 || t.offsetLeft > document.body.offsetWidth, p3 = +r.opacity == 0 || +(e.opacity || 1) == 0;
848
+ return !(i || h2 || p3 || o || n || a);
841
849
  }
842
- function Ue(t) {
850
+ function _e(t) {
843
851
  return t?.isConnected ? !![...document.querySelectorAll(":is(:read-write)")].find((e) => e === t) : false;
844
852
  }
845
- function Ve(t) {
846
- return t?.filter((e) => e).reduce((e, r) => e.concat(Fe(r) ? `<!--${r.data}-->` : ce(r) ? r.textContent : r.outerHTML), "");
853
+ function Ye(t) {
854
+ return t?.filter((e) => e).reduce((e, r) => e.concat(Te(r) ? `<!--${r.data}-->` : de(r) ? r.textContent : r.outerHTML), "");
847
855
  }
848
- function ne(t, e = 2) {
856
+ function ie(t, e = 2) {
849
857
  return `${t}`.padStart(e, "0");
850
858
  }
851
- function _e(t, e = 0) {
859
+ function Ge(t, e = 0) {
852
860
  return [t, e] = [Math.floor(t), Math.ceil(e)], Math.floor([...crypto.getRandomValues(new Uint32Array(1))].shift() / 2 ** 32 * (t - e + 1) + e);
853
861
  }
854
- function ue() {
855
- return `_${er(Kt).slice(0, 8).join("")}`;
862
+ function fe() {
863
+ return `_${rr(er).slice(0, 8).join("")}`;
856
864
  }
857
- function ve(t) {
858
- return t = l(t, String) && /,/.test(t) ? t.split(",").map((e) => e.trim().toLowerCase()).filter((e) => e.length > 0) : t, l(t, Array) ? t : l(t, String) && t?.trim().toLowerCase() || "";
865
+ function Ae(t) {
866
+ return t = c(t, String) && /,/.test(t) ? t.split(",").map((e) => e.trim().toLowerCase()).filter((e) => e.length > 0) : t, c(t, Array) ? t : c(t, String) && t?.trim().toLowerCase() || "";
859
867
  }
860
- function Ye(t) {
868
+ function Xe(t) {
861
869
  return t?.isConnected ? !![...document.querySelectorAll(":is(:modal)")].find((e) => e === t) : false;
862
870
  }
863
- function Le(t, e) {
871
+ function Fe(t, e) {
864
872
  switch (t = String(t).trim(), true) {
865
873
  case /^(0|false|f)$/i.test(t):
866
874
  return false;
@@ -870,74 +878,74 @@ ${r}`), f2;
870
878
  return e;
871
879
  }
872
880
  }
873
- function er(t) {
881
+ function rr(t) {
874
882
  let e = t.length;
875
883
  for (; e--; ) {
876
- let r = _e(e);
884
+ let r = Ge(e);
877
885
  [t[e], t[r]] = [t[r], t[e]];
878
886
  }
879
887
  return t;
880
888
  }
881
- function B(t) {
882
- return l(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${tr(e)}` || e).join("") : t;
889
+ function V(t) {
890
+ return c(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${nr(e)}` || e).join("") : t;
883
891
  }
884
892
  function $(t) {
885
893
  return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/^-|-$/, "");
886
894
  }
887
- function tr([t, ...e]) {
895
+ function nr([t, ...e]) {
888
896
  return `${t.toUpperCase()}${e.join("")}`;
889
897
  }
890
- function ce(t) {
891
- return l(t, Comment, Text);
898
+ function de(t) {
899
+ return c(t, Comment, Text);
892
900
  }
893
- function Fe(t) {
894
- l(t, Comment);
901
+ function Te(t) {
902
+ c(t, Comment);
895
903
  }
896
- function Ge(t) {
897
- return l(t, Text);
904
+ function Ze(t) {
905
+ return c(t, Text);
898
906
  }
899
- function U(t) {
900
- return l(t, String) && /^<|>$/.test(`${t}`.trim());
907
+ function _(t) {
908
+ return c(t, String) && /^<|>$/.test(`${t}`.trim());
901
909
  }
902
- function V(t) {
903
- return l(t, Array) && !t?.find((e) => !N(e));
910
+ function Y(t) {
911
+ return c(t, Array) && !t?.find((e) => !H(e));
904
912
  }
905
- function fe(t) {
906
- return l(t, Array) && !t?.find((e) => !U(e));
913
+ function me(t) {
914
+ return c(t, Array) && !t?.find((e) => !_(e));
907
915
  }
908
- function E(t, e) {
909
- let r = t.collection.filter((n) => !ce(n));
916
+ function v(t, e) {
917
+ let r = t.collection.filter((n) => !de(n));
910
918
  for (let n = 0; n < r.length; n += 1) e(r[n], n);
911
919
  return t;
912
920
  }
913
- function Xe(t) {
914
- return t.node ? l(t.node, Comment) ? `<!--${t.node.textContent}-->` : t.HTML.get(1).split(">")[0] + ">..." : "";
921
+ function Ke(t) {
922
+ return t.node ? c(t.node, Comment) ? `<!--${t.node.textContent}-->` : t.HTML.get(1).split(">")[0] + ">..." : "";
915
923
  }
916
- function Ae(t, e, r) {
917
- let n = e !== document.body && l(t, String) && t.toLowerCase() !== "body" ? e : document;
918
- if (!(!l(t, String) || t.trim().length < 1)) try {
924
+ function $e(t, e, r) {
925
+ let n = e !== document.body && c(t, String) && t.toLowerCase() !== "body" ? e : document;
926
+ if (!(!c(t, String) || t.trim().length < 1)) try {
919
927
  r.collection = [...n.querySelectorAll(t)];
920
928
  } catch {
921
- v.warn(`JQx: Invalid CSS querySelector. [${l(t, String) ? t : "Not a string!"}]`);
929
+ L.warn(`JQx: Invalid CSS querySelector. [${c(t, String) ? t : "Not a string!"}]`);
922
930
  }
923
931
  }
924
- function Ze() {
925
- return { isCommentOrTextNode: ce, isNode: N, isComment: Fe, isText: Ge, isHtmlString: U, isArrayOfHtmlElements: V, isArrayOfHtmlStrings: fe, ElemArray2HtmlString: Ve, input2Collection: le, setCollectionFromCssSelector: Ae, cssRuleEdit: k({ createWithId: "JQxStylesheet" }) };
932
+ function qe() {
933
+ return { isCommentOrTextNode: de, isNode: H, isComment: Te, isText: Ze, isHtmlString: _, isArrayOfHtmlElements: Y, isArrayOfHtmlStrings: me, ElemArray2HtmlString: Ye, input2Collection: ue, setCollectionFromCssSelector: $e, cssRuleEdit: W({ createWithId: "JQxStylesheet" }) };
926
934
  }
927
- function Ke() {
935
+ function et() {
928
936
  let e = Object.freeze({ notInDOM: "n/a", writable: "n/a", modal: "n/a", empty: true, open: "n/a", visible: "n/a" });
929
937
  return (r) => {
930
938
  let n = r.node;
931
- return l(n, Node) ? Object.freeze({ get writable() {
932
- return Ue(n);
939
+ return c(n, Node) ? Object.freeze({ get writable() {
940
+ return _e(n);
933
941
  }, get modal() {
934
- return Ye(n);
942
+ return Xe(n);
935
943
  }, get inDOM() {
936
944
  return n.isConnected;
937
945
  }, get open() {
938
946
  return n.open ?? false;
939
947
  }, get visible() {
940
- return Be(n);
948
+ return Ve(n);
941
949
  }, get disabled() {
942
950
  return n.hasAttribute("readonly") || n.hasAttribute("disabled");
943
951
  }, get empty() {
@@ -947,54 +955,54 @@ ${r}`), f2;
947
955
  } }) : e;
948
956
  };
949
957
  }
950
- function qe(t, e, r, n) {
951
- r && l(e, String) && (e = { [e]: r === "-" ? "" : r });
958
+ function tt(t, e, r, n) {
959
+ r && c(e, String) && (e = { [e]: r === "-" ? "" : r });
952
960
  let o;
953
- e.className && (o = e.className, delete e.className), o = [...t.classList].find((a) => a.startsWith("JQxClass-") || o && a === o) || o || `JQxClass-${ue().slice(1)}`, n.editCssRule(`.${o}`, e), t.classList.add(o);
961
+ e.className && (o = e.className, delete e.className), o = [...t.classList].find((a) => a.startsWith("JQxClass-") || o && a === o) || o || `JQxClass-${fe().slice(1)}`, n.editCssRule(`.${o}`, e), t.classList.add(o);
954
962
  }
955
- var rr = Ke();
956
- function et(t) {
957
- return { factoryExtensions: nr(t), instanceExtensions: or(t) };
963
+ var or = et();
964
+ function rt(t) {
965
+ return { factoryExtensions: ir(t), instanceExtensions: sr(t) };
958
966
  }
959
- function nr(t) {
967
+ function ir(t) {
960
968
  return { data(e) {
961
969
  return { get all() {
962
- return new Proxy(e[0]?.dataset ?? {}, Se);
970
+ return new Proxy(e[0]?.dataset ?? {}, Ee);
963
971
  }, set(r = {}) {
964
- if (!e.is.empty && l(r, Object)) for (let [n, o] of Object.entries(r)) e.setData({ [n]: o });
972
+ if (!e.is.empty && c(r, Object)) for (let [n, o] of Object.entries(r)) e.setData({ [n]: o });
965
973
  return e;
966
974
  }, get(r, n) {
967
975
  return e.data.all[r] ?? n;
968
976
  }, add(r = {}) {
969
- if (!e.is.empty && l(r, Object)) for (let [n, o] of Object.entries(r)) e.setData({ [n]: o });
977
+ if (!e.is.empty && c(r, Object)) for (let [n, o] of Object.entries(r)) e.setData({ [n]: o });
970
978
  return e;
971
979
  }, remove(r) {
972
980
  return e[0]?.removeAttribute(`data-${$(r)}`), e;
973
981
  } };
974
982
  }, dimensions(e) {
975
- if (e.is.empty) return v.error("[JQx instance].dimensions called on empty instance"), { error: "[JQx instance].dimensions: NO ELEMENTS" };
983
+ if (e.is.empty) return L.error("[JQx instance].dimensions called on empty instance"), { error: "[JQx instance].dimensions: NO ELEMENTS" };
976
984
  let { node: r } = e, n = r.getBoundingClientRect().toJSON();
977
- return n.scrollTopDistance = z(r, 0), n.scrollLeftDistance = z(r, 0, false), n;
985
+ return n.scrollTopDistance = B(r, 0), n.scrollLeftDistance = B(r, 0, false), n;
978
986
  }, node(e) {
979
987
  return e[0];
980
988
  }, HTML(e) {
981
989
  return { get(r, n) {
982
990
  if (e.is.empty) return "NO ELEMENTS IN COLLECTION";
983
991
  let o = r ? e.outerHtml : e.html();
984
- return n ? H(o) : o;
992
+ return n ? M(o) : o;
985
993
  }, set(r, n = false, o = false) {
986
994
  r = r.isJQx ? r.HTML.get(1) : r;
987
- let i = l(r, String);
988
- return r = i && o ? H(r) : r, i && (r || "").trim().length && e.html(r, n), e;
995
+ let i = c(r, String);
996
+ return r = i && o ? M(r) : r, i && (r || "").trim().length && e.html(r, n), e;
989
997
  }, replace(r, n = false) {
990
998
  return e.HTML.set(r, false, n);
991
999
  }, append(r, n = false) {
992
- return r = l(r, HTMLElement) ? t(r).HTML.get(1) : r.isJQx ? r.HTML.get(1) : r, e.HTML.set(r, true, n);
1000
+ return r = c(r, HTMLElement) ? t(r).HTML.get(1) : r.isJQx ? r.HTML.get(1) : r, e.HTML.set(r, true, n);
993
1001
  }, insert(r, n = false) {
994
- return r = l(r, HTMLElement) ? t(r).HTML.get(1) : r.isJQx ? r.HTML.get(1) : r, e.HTML.set(r + e.HTML.get(), false, n);
1002
+ return r = c(r, HTMLElement) ? t(r).HTML.get(1) : r.isJQx ? r.HTML.get(1) : r, e.HTML.set(r + e.HTML.get(), false, n);
995
1003
  } };
996
1004
  }, is(e) {
997
- return rr(e);
1005
+ return or(e);
998
1006
  }, length(e) {
999
1007
  return e.collection.length;
1000
1008
  }, outerHtml(e) {
@@ -1021,68 +1029,68 @@ ${r}`), f2;
1021
1029
  }, nwRule(r) {
1022
1030
  return e.Style.byRule({ rules: r });
1023
1031
  }, byRule({ classes2Apply: r = [], rules: n = [] } = {}) {
1024
- let i = l(n, String) && !r.length ? n.split("{")[0].trim() : "";
1025
- if (n = n && l(n, String) ? [n] : n, r = r && l(r, String) ? [r] : r, (n?.length || r?.length) && (n?.length && t.editCssRules(...n), r)) for (let a of r) e.addClass(a);
1032
+ let i = c(n, String) && !r.length ? n.split("{")[0].trim() : "";
1033
+ if (n = n && c(n, String) ? [n] : n, r = r && c(r, String) ? [r] : r, (n?.length || r?.length) && (n?.length && t.editCssRules(...n), r)) for (let a of r) e.addClass(a);
1026
1034
  return i?.startsWith(".") && e.addClass(i.slice(1)), i?.startsWith("#") && !e.attr("id") && e.prop({ id: i.slice(1) }), e;
1027
1035
  } };
1028
1036
  } };
1029
1037
  }
1030
- function or(t) {
1038
+ function sr(t) {
1031
1039
  return { addClass(e, ...r) {
1032
- return E(e, (n) => n && r.forEach((o) => n.classList.add(o)));
1040
+ return v(e, (n) => n && r.forEach((o) => n.classList.add(o)));
1033
1041
  }, after(e, ...r) {
1034
- return D(e, t, true, ...r);
1042
+ return j(e, t, true, ...r);
1035
1043
  }, afterMe(e, ...r) {
1036
- return D(e, t, true, ...r);
1044
+ return j(e, t, true, ...r);
1037
1045
  }, andThen(e, ...r) {
1038
- return D(e, t, true, ...r);
1046
+ return j(e, t, true, ...r);
1039
1047
  }, append(e, ...r) {
1040
1048
  if (e.is.empty || r.length < 1) return e;
1041
1049
  let n = e.length === 1;
1042
1050
  for (let o of r) {
1043
- if (!o.isJQx && L(o)) {
1044
- let i = o.trim(), b = !/^<(.+)[^>]+>$/m.test(i) ? t.text(o) : T(o);
1045
- E(e, (p3) => p3.append(n ? b : M(b)));
1051
+ if (!o.isJQx && A(o)) {
1052
+ let i = o.trim(), h2 = !/^<(.+)[^>]+>$/m.test(i) ? t.text(o) : C(o);
1053
+ v(e, (p3) => p3.append(n ? h2 : P(h2)));
1046
1054
  }
1047
- N(o) && E(e, (i) => i.append(n ? o : M(o))), o.isJQx && !o.is.empty && E(e, (i) => o.collection.forEach((a) => i.append(n ? a : M(a))));
1055
+ H(o) && v(e, (i) => i.append(n ? o : P(o))), o.isJQx && !o.is.empty && v(e, (i) => o.collection.forEach((a) => i.append(n ? a : P(a))));
1048
1056
  }
1049
1057
  return e;
1050
1058
  }, appendTo(e, r) {
1051
1059
  switch (r = typeof r == "string" ? t(r) : r, true) {
1052
- case (!r?.isJQx && !l(r, HTMLElement) || r?.collection?.length < 1):
1060
+ case (!r?.isJQx && !c(r, HTMLElement) || r?.collection?.length < 1):
1053
1061
  return t.warn("[JQx instance].appendTo: invalid input"), e;
1054
1062
  default:
1055
1063
  return (r.isJQx ? r : t(r)).append(e), e;
1056
1064
  }
1057
1065
  }, attr(e, r, n) {
1058
- if (!e.node || l(e.node, Text, Comment)) return e;
1059
- if (!n && L(r)) return r = $(r), r === "class" ? [...e.node.classList].join(" ") : e.node.getAttribute(r);
1060
- if (L(r) && n) switch (r = $(r), true) {
1066
+ if (!e.node || c(e.node, Text, Comment)) return e;
1067
+ if (!n && A(r)) return r = $(r), r === "class" ? [...e.node.classList].join(" ") : e.node.getAttribute(r);
1068
+ if (A(r) && n) switch (r = $(r), true) {
1061
1069
  case r.startsWith("data-"):
1062
1070
  r = { data: { [r.replace("data-", "")]: n } };
1063
1071
  break;
1064
1072
  default:
1065
1073
  r = { [r]: n };
1066
1074
  }
1067
- return l(r, Object) && !e.is.empty && we(e.node, r), e;
1075
+ return c(r, Object) && !e.is.empty && Le(e.node, r), e;
1068
1076
  }, before(e, ...r) {
1069
- return D(e, t, false, ...r);
1077
+ return j(e, t, false, ...r);
1070
1078
  }, beforeMe(e, ...r) {
1071
- D(e, t, false, ...r);
1079
+ j(e, t, false, ...r);
1072
1080
  }, clear(e) {
1073
- return E(e, se);
1081
+ return v(e, ce);
1074
1082
  }, closest(e, r) {
1075
- let n = L(r) ? e.node?.closest(r) : void 0;
1083
+ let n = A(r) ? e.node?.closest(r) : void 0;
1076
1084
  return n ? t(n) : e;
1077
1085
  }, computedStyle(e, r) {
1078
1086
  let { node: n } = e;
1079
1087
  return n && getComputedStyle(n)[r];
1080
1088
  }, css(e, r, n) {
1081
- return E(e, (o) => qe(o, r, n, t));
1089
+ return v(e, (o) => tt(o, r, n, t));
1082
1090
  }, duplicate(e, r = false, n = document.body) {
1083
1091
  switch (true) {
1084
1092
  case e.is.empty:
1085
- return v.error("Duplicating an empty JQx instance is not possible"), e;
1093
+ return L.error("Duplicating an empty JQx instance is not possible"), e;
1086
1094
  default:
1087
1095
  let o = e.collection[0].cloneNode(true);
1088
1096
  return o.childNodes.forEach((i) => {
@@ -1090,9 +1098,9 @@ ${r}`), f2;
1090
1098
  }), r ? t(o).toDOM(n) : t.virtual(o);
1091
1099
  }
1092
1100
  }, each(e, r) {
1093
- return E(e, r);
1101
+ return v(e, r);
1094
1102
  }, empty(e) {
1095
- return E(e, se);
1103
+ return v(e, ce);
1096
1104
  }, find(e, r) {
1097
1105
  return e.collection.length > 0 ? [...e.first()?.querySelectorAll(r)] : [];
1098
1106
  }, find$(e, r) {
@@ -1106,24 +1114,24 @@ ${r}`), f2;
1106
1114
  }, hasClass(e, ...r) {
1107
1115
  return e.is.empty || !e.node.classList.length ? false : r.find((n) => e.node.classList.contains(n)) && true || false;
1108
1116
  }, hide(e) {
1109
- return E(e, (r) => W(r, { display: "none !important" }));
1117
+ return v(e, (r) => U(r, { display: "none !important" }));
1110
1118
  }, html(e, r, n) {
1111
1119
  switch (true) {
1112
- case (e.is.empty && !L(r)):
1120
+ case (e.is.empty && !A(r)):
1113
1121
  return "";
1114
- case !L(r):
1122
+ case !A(r):
1115
1123
  return e.node?.getHTML() ?? "";
1116
1124
  default:
1117
- let o = T(`<div>${r.isJQx ? r.HTML.get(true) : r}</div>`);
1118
- return E(e, (a) => (a.textContent = n ? a.textContent : "", a.insertAdjacentHTML(t.at.end, o.getHTML())));
1125
+ let o = C(`<div>${r.isJQx ? r.HTML.get(true) : r}</div>`);
1126
+ return v(e, (a) => (a.textContent = n ? a.textContent : "", a.insertAdjacentHTML(t.at.end, o.getHTML())));
1119
1127
  }
1120
1128
  }, htmlFor(e, r, n = "", o = false) {
1121
- if (e.is.empty || !L(r) || !L(n)) return e;
1129
+ if (e.is.empty || !A(r) || !A(n)) return e;
1122
1130
  let i = e.find$(r);
1123
1131
  if (i.length < 1) return e;
1124
- let a = T(`<span>${n}</span>`);
1125
- return i.each((b) => {
1126
- o || (b.textContent = ""), b.insertAdjacentHTML(t.at.end, a?.getHTML());
1132
+ let a = C(`<span>${n}</span>`);
1133
+ return i.each((h2) => {
1134
+ o || (h2.textContent = ""), h2.insertAdjacentHTML(t.at.end, a?.getHTML());
1127
1135
  }), e;
1128
1136
  }, isEmpty(e) {
1129
1137
  return !e.node;
@@ -1131,14 +1139,14 @@ ${r}`), f2;
1131
1139
  return e.single(r);
1132
1140
  }, on(e, r, ...n) {
1133
1141
  switch (true) {
1134
- case (e.is.empty || !l(r, String, Array) || !L(r) || n.length < 1):
1142
+ case (e.is.empty || !c(r, String, Array) || !A(r) || n.length < 1):
1135
1143
  return e;
1136
1144
  default:
1137
1145
  return t.handle({ type: r, node: e.node, handler: n }), e;
1138
1146
  }
1139
1147
  }, once(e, r, ...n) {
1140
1148
  switch (true) {
1141
- case (e.is.empty || !l(r, String, Array) || !L(r) || n.length < 1):
1149
+ case (e.is.empty || !c(r, String, Array) || !A(r) || n.length < 1):
1142
1150
  return e;
1143
1151
  default:
1144
1152
  return t.handle({ type: r, once: true, node: e.node, handler: n }), e;
@@ -1147,28 +1155,28 @@ ${r}`), f2;
1147
1155
  if (e.is.empty || !r) return;
1148
1156
  let n = e.length === 1;
1149
1157
  for (let o of r) {
1150
- if (L(o)) {
1158
+ if (A(o)) {
1151
1159
  o = o.trim();
1152
- let a = !/^<(.+)[^>]+>$/m.test(o) ? t.text(o) : T(o);
1153
- a = n ? a : M(a), E(e, (b) => b.prepend(a.cloneNode(true)));
1160
+ let a = !/^<(.+)[^>]+>$/m.test(o) ? t.text(o) : C(o);
1161
+ a = n ? a : P(a), v(e, (h2) => h2.prepend(a.cloneNode(true)));
1154
1162
  }
1155
- N(o) && E(e, (i) => i.prepend(n ? o : M(o))), o.isJQx && !o.is.empty && (o.collection.length > 1 && o.collection.reverse(), E(e, (i) => E(o, (a) => i.prepend(n ? a : M(a)))), o.collection.reverse());
1163
+ H(o) && v(e, (i) => i.prepend(n ? o : P(o))), o.isJQx && !o.is.empty && (o.collection.length > 1 && o.collection.reverse(), v(e, (i) => v(o, (a) => i.prepend(n ? a : P(a)))), o.collection.reverse());
1156
1164
  }
1157
1165
  return e;
1158
1166
  }, prependTo(e, r) {
1159
1167
  switch (r = typeof r == "string" ? t(r) : r, true) {
1160
- case (!r?.isJQx && !l(r, HTMLElement) || r?.collection?.length < 1):
1168
+ case (!r?.isJQx && !c(r, HTMLElement) || r?.collection?.length < 1):
1161
1169
  return t.warn("[JQx instance].appendTo: invalid input"), e;
1162
1170
  default:
1163
1171
  return (r.isJQx ? r : t(r)).prepend(e), e;
1164
1172
  }
1165
1173
  }, prop(e, r, n) {
1166
- if (l(r, String) && !n) return r.startsWith("data") ? e[0]?.dataset[r.slice(r.indexOf("-") + 1)] : e[0]?.[r];
1167
- let o = l(r, Object) ? r : { [r]: n };
1174
+ if (c(r, String) && !n) return r.startsWith("data") ? e[0]?.dataset[r.slice(r.indexOf("-") + 1)] : e[0]?.[r];
1175
+ let o = c(r, Object) ? r : { [r]: n };
1168
1176
  for (let [i, a] of Object.entries(o)) {
1169
- if (i = i.trim(), a && !ie(i) || !a) return false;
1177
+ if (i = i.trim(), a && !ae(i) || !a) return false;
1170
1178
  if (i.toLowerCase() === "id") return e[0].id = a;
1171
- E(e, (p3) => {
1179
+ v(e, (p3) => {
1172
1180
  if (i.startsWith("data")) return p3.dataset[i.slice(i.indexOf("-") + 1)] = a;
1173
1181
  p3[i] = a;
1174
1182
  });
@@ -1178,40 +1186,40 @@ ${r}`), f2;
1178
1186
  let n = (i) => i.remove(), o = () => e.collection = e.collection.filter((i) => document.documentElement.contains(i));
1179
1187
  if (r) {
1180
1188
  let i = e.find$(r);
1181
- return i.is.empty || (E(i, n), o()), e;
1189
+ return i.is.empty || (v(i, n), o()), e;
1182
1190
  }
1183
- return E(e, n), o(), e;
1191
+ return v(e, n), o(), e;
1184
1192
  }, rmAttr(e, ...r) {
1185
1193
  for (let n of r) e.node.removeAttribute(n);
1186
1194
  return e;
1187
1195
  }, removeClass(e, ...r) {
1188
- return E(e, (n) => {
1196
+ return v(e, (n) => {
1189
1197
  if (n) for (let o of r) n.classList.remove(o);
1190
1198
  });
1191
1199
  }, renderTo(e, r, n) {
1192
- return r = l(r, HTMLElement) || r.isJQx ? r : document.body, n = l(n, String) && t.at[n] ? n : t.at.end, e.first$().toDOM(r, n), e;
1200
+ return r = c(r, HTMLElement) || r.isJQx ? r : document.body, n = c(n, String) && t.at[n] ? n : t.at.end, e.first$().toDOM(r, n), e;
1193
1201
  }, replace(e, r, n) {
1194
1202
  let o = e.node;
1195
- return !r || !l(n, HTMLElement) && !n?.isJQx ? (t.logger.error("JQx replace: invalid replacement value"), e) : ((n.isJQx || l(n, NodeList)) && (n = n[0]), o && r && (r = l(r, String) ? o.querySelectorAll(r) : r.isJQx ? r.collection : r, l(r, HTMLElement, NodeList, Array) && l(n, HTMLElement) && (l(r, HTMLElement) ? [r] : [...r]).forEach((i) => i.replaceWith(n.cloneNode(true)))), e);
1203
+ return !r || !c(n, HTMLElement) && !n?.isJQx ? (t.logger.error("JQx replace: invalid replacement value"), e) : ((n.isJQx || c(n, NodeList)) && (n = n[0]), o && r && (r = c(r, String) ? o.querySelectorAll(r) : r.isJQx ? r.collection : r, c(r, HTMLElement, NodeList, Array) && c(n, HTMLElement) && (c(r, HTMLElement) ? [r] : [...r]).forEach((i) => i.replaceWith(n.cloneNode(true)))), e);
1196
1204
  }, replaceClass(e, r, ...n) {
1197
- return E(e, (o) => {
1205
+ return v(e, (o) => {
1198
1206
  o.classList.remove(r);
1199
1207
  for (let i of n) o.classList.add(i);
1200
1208
  });
1201
1209
  }, replaceMe(e, r) {
1202
1210
  return e.replaceWith(r);
1203
1211
  }, replaceWith(e, r) {
1204
- return r = l(r, Element) ? r : r.isJQx ? r[0] : void 0, r && (e[0].replaceWith(r), e = t.virtual(r)), e;
1212
+ return r = c(r, Element) ? r : r.isJQx ? r[0] : void 0, r && (e[0].replaceWith(r), e = t.virtual(r)), e;
1205
1213
  }, setData(e, r) {
1206
- return E(e, (n) => ae(n, r));
1214
+ return v(e, (n) => le(n, r));
1207
1215
  }, show(e) {
1208
- return E(e, (r) => W(r, { display: "revert-layer !important" }));
1216
+ return v(e, (r) => U(r, { display: "revert-layer !important" }));
1209
1217
  }, single(e, r) {
1210
1218
  let n = e.collection.length > 0;
1211
1219
  switch (r = r ?? 0, true) {
1212
- case (n && l(r, String)):
1220
+ case (n && c(r, String)):
1213
1221
  return e.find$(r);
1214
- case (n && l(r, Number)):
1222
+ case (n && c(r, Number)):
1215
1223
  return t(e.collection[r]);
1216
1224
  case n:
1217
1225
  return e.collection[0];
@@ -1219,51 +1227,51 @@ ${r}`), f2;
1219
1227
  return e;
1220
1228
  }
1221
1229
  }, style(e, r, n) {
1222
- return E(e, (i) => {
1223
- n && l(r, String) && (r = { [r]: n || "none" }), W(i, r);
1230
+ return v(e, (i) => {
1231
+ n && c(r, String) && (r = { [r]: n || "none" }), U(i, r);
1224
1232
  });
1225
1233
  }, text(e, r, n = false) {
1226
1234
  switch (true) {
1227
1235
  case e.isEmpty():
1228
1236
  return e;
1229
- case !l(r, String):
1237
+ case !c(r, String):
1230
1238
  return e.node.textContent;
1231
1239
  default:
1232
- return E(e, (o) => o.textContent = n ? o.textContent + r : r);
1240
+ return v(e, (o) => o.textContent = n ? o.textContent + r : r);
1233
1241
  }
1234
- }, toDOM(e, r = document.body, n = F.BeforeEnd) {
1235
- return e.isVirtual = false, R(e.collection, r, n), e;
1242
+ }, toDOM(e, r = document.body, n = T.BeforeEnd) {
1243
+ return e.isVirtual = false, I(e.collection, r, n), e;
1236
1244
  }, toggleClass(e, r) {
1237
- return E(e, (n) => n.classList.toggle(r));
1245
+ return v(e, (n) => n.classList.toggle(r));
1238
1246
  }, toNodeList(e) {
1239
1247
  return [...e.collection].map((r) => document.importNode(r, true));
1240
1248
  }, trigger(e, r, n, o) {
1241
- n = l(n, Function) ? n : Event, o = l(o, Object) ? { ...o, bubbles: o.bubbles ?? true } : { bubbles: true };
1249
+ n = c(n, Function) ? n : Event, o = c(o, Object) ? { ...o, bubbles: o.bubbles ?? true } : { bubbles: true };
1242
1250
  let i = new n(r, o);
1243
1251
  return e.is.empty || e.each((a) => a.dispatchEvent(i)), e;
1244
1252
  }, val(e, r) {
1245
1253
  switch (true) {
1246
- case (e.is.empty || !l(e.node, HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement)):
1254
+ case (e.is.empty || !c(e.node, HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement)):
1247
1255
  return e;
1248
- case !l(r, String):
1256
+ case !c(r, String):
1249
1257
  return e.node.value;
1250
1258
  default:
1251
- return e.node.value = l(r, String) ? r : "", e;
1259
+ return e.node.value = c(r, String) ? r : "", e;
1252
1260
  }
1253
1261
  } };
1254
1262
  }
1255
- var $e;
1256
- var de;
1257
- var { isComment: ln, isText: un, isHtmlString: cn, isArrayOfHtmlElements: fn, isArrayOfHtmlStrings: dn, ElemArray2HtmlString: mn, cssRuleEdit: Te, addFn: ir } = sr();
1258
- function sr() {
1259
- return { ...Ze(), addFn: ar };
1263
+ var Oe;
1264
+ var ge;
1265
+ var { isComment: un, isText: fn, isHtmlString: dn, isArrayOfHtmlElements: mn, isArrayOfHtmlStrings: gn, ElemArray2HtmlString: pn, cssRuleEdit: Ce, addFn: ar } = cr();
1266
+ function cr() {
1267
+ return { ...qe(), addFn: lr };
1260
1268
  }
1261
- function ar(t, e) {
1262
- return t = t?.trim(), !L(t) || !l(e, Function) ? v.error("JQx.fn: method invalid parameter(s)") : (de[t] = (r, ...n) => e(r, ...n), v.log(`JQx: added extension function [${t}]`));
1269
+ function lr(t, e) {
1270
+ return t = t?.trim(), !A(t) || !c(e, Function) ? L.error("JQx.fn: method invalid parameter(s)") : (ge[t] = (r, ...n) => e(r, ...n), L.log(`JQx: added extension function [${t}]`));
1263
1271
  }
1264
- function lr(t) {
1272
+ function ur(t) {
1265
1273
  return function(e, r, n) {
1266
- if (e = e?.trim(), !L(e) || !l(r, Function)) return t.error("JQx.staticFn: invalid parameter(s)");
1274
+ if (e = e?.trim(), !A(e) || !c(r, Function)) return t.error("JQx.staticFn: invalid parameter(s)");
1267
1275
  let o = n ? { get() {
1268
1276
  return r();
1269
1277
  } } : { value(...i) {
@@ -1274,67 +1282,67 @@ ${r}`), f2;
1274
1282
  } catch {
1275
1283
  return t.warn(`JQx.staticFn: extension [${e}] already exists`);
1276
1284
  }
1277
- return v.log(`JQx: added static extension function [${e}]`);
1285
+ return L.log(`JQx: added static extension function [${e}]`);
1278
1286
  };
1279
1287
  }
1280
- function me(t) {
1281
- return new Proxy(t, { get: (e, r) => cr(e, r, t) });
1288
+ function pe(t) {
1289
+ return new Proxy(t, { get: (e, r) => dr(e, r, t) });
1282
1290
  }
1283
- function tt(t, e, r = false) {
1284
- e = e[Symbol.proxy] ? e : me(e);
1291
+ function nt(t, e, r = false) {
1292
+ e = e[Symbol.proxy] ? e : pe(e);
1285
1293
  let n = function(...o) {
1286
1294
  return t(e, ...o);
1287
1295
  };
1288
1296
  return r ? n() : n;
1289
1297
  }
1290
- function ur(t) {
1298
+ function fr(t) {
1291
1299
  return `Proxy for JQx${t.collection.length < 1 ? " (empty)" : ""} instance`;
1292
1300
  }
1293
- function cr(t, e, r) {
1301
+ function dr(t, e, r) {
1294
1302
  switch (true) {
1295
1303
  case e === Symbol.proxy:
1296
- return ur(r);
1304
+ return fr(r);
1297
1305
  case typeof e == "symbol":
1298
- return O({ trial: () => t[e], whenError: () => t });
1306
+ return R({ trial: () => t[e], whenError: () => t });
1299
1307
  case (!Number.isNaN(+e) && typeof +e == "number"):
1300
1308
  return t.collection?.[e] || void 0;
1301
- case $e.hasOwnProperty(e):
1302
- return tt($e[e], r, true);
1303
- case de.hasOwnProperty(e):
1304
- return tt(de[e], r);
1309
+ case Oe.hasOwnProperty(e):
1310
+ return nt(Oe[e], r, true);
1311
+ case ge.hasOwnProperty(e):
1312
+ return nt(ge[e], r);
1305
1313
  default:
1306
1314
  return Reflect.get(t, e);
1307
1315
  }
1308
1316
  }
1309
- function ot(t) {
1310
- let e = pr(t);
1317
+ function st(t) {
1318
+ let e = br(t);
1311
1319
  for (let [r, n] of Object.entries(Object.getOwnPropertyDescriptors(e))) Object.defineProperty(t, r, n);
1312
1320
  return t;
1313
1321
  }
1314
- function fr(t) {
1322
+ function mr(t) {
1315
1323
  return { allow(e) {
1316
1324
  let r = /-/.test(e), n = r && e;
1317
- e = r ? B(e) : e.toLowerCase(), C.allowTag(e), Object.defineProperties(t, Ce(e, true, t, n));
1325
+ e = r ? V(e) : e.toLowerCase(), N.allowTag(e), Object.defineProperties(t, Ne(e, true, t, n));
1318
1326
  }, prohibit(e) {
1319
- e = e.toLowerCase(), C.prohibitTag(e), Object.defineProperties(t, Ce(e, false, t));
1327
+ e = e.toLowerCase(), N.prohibitTag(e), Object.defineProperties(t, Ne(e, false, t));
1320
1328
  } };
1321
1329
  }
1322
- function rt(...t) {
1330
+ function ot(...t) {
1323
1331
  if (t.length === 1) {
1324
1332
  let e = String(t.shift().trim());
1325
1333
  t = e.startsWith("!") ? [e.slice(1, -1)] : e.split(",").map((r) => r.trim());
1326
1334
  }
1327
- for (let e of t.map((r) => r.startsWith("!") ? r.slice(1, -1) : r)) Te(e, { removeRule: 1 });
1335
+ for (let e of t.map((r) => r.startsWith("!") ? r.slice(1, -1) : r)) Ce(e, { removeRule: 1 });
1328
1336
  }
1329
- function dr(t) {
1337
+ function gr(t) {
1330
1338
  return function(e, r, n) {
1331
- r = r?.isJQx ? r?.[0] : r, n = n && Object.values(F).find((i) => n === i);
1339
+ r = r?.isJQx ? r?.[0] : r, n = n && Object.values(T).find((i) => n === i);
1332
1340
  let o = t(e, document.createElement("br"));
1333
- if (r && !l(r, HTMLBRElement)) for (let i of o.collection) n ? r.insertAdjacentElement(n, i) : r.append(i);
1341
+ if (r && !c(r, HTMLBRElement)) for (let i of o.collection) n ? r.insertAdjacentElement(n, i) : r.append(i);
1334
1342
  return o;
1335
1343
  };
1336
1344
  }
1337
- function mr(...t) {
1345
+ function pr(...t) {
1338
1346
  let e = {};
1339
1347
  for (let r of t) {
1340
1348
  let n = Object.getOwnPropertyDescriptors(r);
@@ -1342,159 +1350,159 @@ ${r}`), f2;
1342
1350
  }
1343
1351
  return e;
1344
1352
  }
1345
- function gr(t, e, r, n) {
1353
+ function yr(t, e, r, n) {
1346
1354
  return t = $(n || t.toLowerCase()), { get() {
1347
1355
  return (...o) => {
1348
- let i = e && r.virtual(P(j[t](...o))) || void 0, b = !l(i?.node, Comment, Text, void 0) ? Ee(i) : "";
1349
- return v.log(e ? `JQx: created (virtual) instance from [JQx].${t} ${b}` : `JQx: ${t.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`), i;
1356
+ let i = e && r.virtual(D(z[t](...o))) || void 0, h2 = !c(i?.node, Comment, Text, void 0) ? ve(i) : "";
1357
+ return L.log(e ? `JQx: created (virtual) instance from [JQx].${t} ${h2}` : `JQx: ${t.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`), i;
1350
1358
  };
1351
1359
  }, enumerable: false, configurable: true };
1352
1360
  }
1353
- function Ce(t, e, r, n) {
1361
+ function Ne(t, e, r, n) {
1354
1362
  t = t.toLowerCase();
1355
- let o = gr(t, e, r, n);
1356
- return n ? { [n]: o, [B(n)]: o } : { [t]: o, [t.toUpperCase()]: o };
1363
+ let o = yr(t, e, r, n);
1364
+ return n ? { [n]: o, [V(n)]: o } : { [t]: o, [t.toUpperCase()]: o };
1357
1365
  }
1358
- function pr(t) {
1359
- return mr(Object.entries(C.tagsRaw).reduce(yr(t), {}), wr(t));
1366
+ function br(t) {
1367
+ return pr(Object.entries(N.tagsRaw).reduce(hr(t), {}), Lr(t));
1360
1368
  }
1361
- function yr(t) {
1369
+ function hr(t) {
1362
1370
  return function(e, [r, n]) {
1363
- return Object.defineProperties(e, Ce(r, n, t)), e;
1371
+ return Object.defineProperties(e, Ne(r, n, t)), e;
1364
1372
  };
1365
1373
  }
1366
- function br(t) {
1374
+ function Sr(t) {
1367
1375
  return function(e, r, ...n) {
1368
- l(r, Function) && (n.push(r), r = void 0), t({ type: e, selector: r, handlers: n });
1376
+ c(r, Function) && (n.push(r), r = void 0), t({ type: e, selector: r, handlers: n });
1369
1377
  };
1370
1378
  }
1371
- function hr(t) {
1379
+ function xr(t) {
1372
1380
  return function(e) {
1373
- let { type: r, types: n, origin: o, selector: i, handler: a, handlers: b, node: p3, name: x2, capture: d, once: y, about: m } = e;
1374
- a = b || a, r = n || r, i = o || i;
1375
- let S2 = ve(r), f2 = x2;
1376
- a = l(a, Function) ? [a] : a;
1377
- let c = { type: S2, selector: i || o, capture: d, name: f2, once: y, node: p3, about: m };
1381
+ let { type: r, types: n, origin: o, selector: i, handler: a, handlers: h2, node: p3, name: E2, capture: f2, once: y, about: g2 } = e;
1382
+ a = h2 || a, r = n || r, i = o || i;
1383
+ let S2 = Ae(r), m = E2;
1384
+ a = c(a, Function) ? [a] : a;
1385
+ let u2 = { type: S2, selector: i || o, capture: f2, name: m, once: y, node: p3, about: g2 };
1378
1386
  switch (true) {
1379
- case (l(S2, Array) && S2.length > 0):
1380
- for (let s of S2) c.type = s, nt(a, c, t);
1387
+ case (c(S2, Array) && S2.length > 0):
1388
+ for (let l of S2) u2.type = l, it(a, u2, t);
1381
1389
  break;
1382
1390
  default:
1383
- return nt(a, c, t);
1391
+ return it(a, u2, t);
1384
1392
  }
1385
1393
  };
1386
1394
  }
1387
- function nt(t, e, r) {
1395
+ function it(t, e, r) {
1388
1396
  for (let n of t) r.listen({ ...e, handler: n });
1389
1397
  }
1390
- function Sr(t) {
1398
+ function Er(t) {
1391
1399
  return function(e, r) {
1392
- return r = L(r) && r, e = L(e) && e, r && e && t.listenerStore[e][r];
1400
+ return r = A(r) && r, e = A(e) && e, r && e && t.listenerStore[e][r];
1393
1401
  };
1394
1402
  }
1395
- function xr(t) {
1396
- return t.activePopup || Object.defineProperty(t, "activePopup", { value: ee(t), enumerable: false }), t.activePopup;
1397
- }
1398
- function Er(t) {
1399
- let e = (d, y) => Te(d, y), r = function(d) {
1400
- return k({ createWithId: d || `jqx${ue()}` });
1401
- }, n = function(...d) {
1402
- for (let y of d) Te(y);
1403
- }, o = fr(t), i = te(t), a = hr(i);
1404
- return { editCssRule: e, createStyle: r, editCssRules: n, allowProhibit: o, handle: a, capturedHandling: a, log: (...d) => v.on.log(...d).off, warn: (...d) => v.on.warn(...d).off, error: (...d) => v.on.error(...d).off, handlerWrapper: i };
1405
- }
1406
1403
  function wr(t) {
1407
- let { factoryExtensions: e, instanceExtensions: r } = et(t);
1408
- $e = e, de = r;
1409
- let { editCssRule: n, createStyle: o, editCssRules: i, allowProhibit: a, handle: b, capturedHandling: p3, log: x2, warn: d, error: y, handlerWrapper: m } = Er(t), S2 = Sr(t), f2 = lr(t);
1410
- return j.setError = (c) => (y(`JQx direct element creation error: [${c}] is not a valid tag`), t.br()), { log: x2, warn: d, error: y, editCssRules: i, createStyle: o, editStylesheet: o, editCssRule: n, escHtml: H, logger: v, proxyWrapper: _, text(c, s = false) {
1411
- return s ? t.comment(c) : document.createTextNode(c);
1412
- }, node(c, s = document) {
1413
- return s.querySelector(c, s);
1414
- }, nodes(c, s = document) {
1415
- return [...s.querySelectorAll(c, s)];
1416
- }, clearAllTimers: xe, get staticFn() {
1417
- return function(c, s, u2) {
1418
- return f2(c, s, u2);
1404
+ return t.activePopup || Object.defineProperty(t, "activePopup", { value: re(t), enumerable: false }), t.activePopup;
1405
+ }
1406
+ function vr(t) {
1407
+ let e = (f2, y) => Ce(f2, y), r = function(f2) {
1408
+ return W({ createWithId: f2 || `jqx${fe()}` });
1409
+ }, n = function(...f2) {
1410
+ for (let y of f2) Ce(y);
1411
+ }, o = mr(t), i = ne(t), a = xr(i);
1412
+ return { editCssRule: e, createStyle: r, editCssRules: n, allowProhibit: o, handle: a, capturedHandling: a, log: (...f2) => L.on.log(...f2).off, warn: (...f2) => L.on.warn(...f2).off, error: (...f2) => L.on.error(...f2).off, handlerWrapper: i };
1413
+ }
1414
+ function Lr(t) {
1415
+ let { factoryExtensions: e, instanceExtensions: r } = rt(t);
1416
+ Oe = e, ge = r;
1417
+ let { editCssRule: n, createStyle: o, editCssRules: i, allowProhibit: a, handle: h2, capturedHandling: p3, log: E2, warn: f2, error: y, handlerWrapper: g2 } = vr(t), S2 = Er(t), m = ur(t);
1418
+ return z.setError = (u2) => (y(`JQx direct element creation error: [${u2}] is not a valid tag`), t.br()), { log: E2, warn: f2, error: y, editCssRules: i, createStyle: o, editStylesheet: o, editCssRule: n, escHtml: M, logger: L, proxyWrapper: G, text(u2, l = false) {
1419
+ return l ? t.comment(u2) : document.createTextNode(u2);
1420
+ }, node(u2, l = document) {
1421
+ return l.querySelector(u2, l);
1422
+ }, nodes(u2, l = document) {
1423
+ return [...l.querySelectorAll(u2, l)];
1424
+ }, clearAllTimers: we, get staticFn() {
1425
+ return function(u2, l, s) {
1426
+ return m(u2, l, s);
1419
1427
  };
1420
1428
  }, get toBool() {
1421
- return Le;
1429
+ return Fe;
1422
1430
  }, get getNamedListener() {
1423
1431
  return S2;
1424
1432
  }, get virtual() {
1425
- return dr(t);
1433
+ return gr(t);
1426
1434
  }, get allowTag() {
1427
1435
  return a.allow;
1428
1436
  }, get prohibitTag() {
1429
1437
  return a.prohibit;
1430
1438
  }, get removeCssRule() {
1431
- return rt;
1439
+ return ot;
1432
1440
  }, get removeCssRules() {
1433
- return rt;
1441
+ return ot;
1434
1442
  }, get delegate() {
1435
- return br(p3);
1443
+ return Sr(p3);
1436
1444
  }, get delegateCaptured() {
1437
1445
  return p3;
1438
1446
  }, get handle() {
1439
1447
  return p3;
1440
1448
  }, get listen() {
1441
- return m.listen;
1449
+ return g2.listen;
1442
1450
  }, get at() {
1443
- return F;
1451
+ return T;
1444
1452
  }, get setStyle() {
1445
1453
  return n;
1446
1454
  }, get fn() {
1447
- return ir;
1455
+ return ar;
1448
1456
  }, get lenient() {
1449
- return C.allowUnknownHtmlTags;
1457
+ return N.allowUnknownHtmlTags;
1450
1458
  }, get IS() {
1451
- return l;
1459
+ return c;
1452
1460
  }, get Popup() {
1453
- return xr(t);
1461
+ return wr(t);
1454
1462
  }, get listenerStore() {
1455
- return m.ListenerStore;
1463
+ return g2.ListenerStore;
1456
1464
  } };
1457
1465
  }
1458
- var it = vr();
1459
- function vr() {
1460
- return ot(function(e, r, n = F.BeforeEnd) {
1466
+ var at = Ar();
1467
+ function Ar() {
1468
+ return st(function(e, r, n = T.BeforeEnd) {
1461
1469
  if (e?.isJQx) return e;
1462
- let o = l(r, HTMLBRElement);
1463
- r = (!o && r && r.isJQx ? r[0] : r) || document.body, n = n && Object.values(F).find((d) => n === d) ? n : void 0;
1464
- let i = U(e), b = !i && fe(e) || i, p3 = { collection: le(e) ?? [], isVirtual: o, isJQx: true }, x2 = V(p3.collection);
1470
+ let o = c(r, HTMLBRElement);
1471
+ r = (!o && r && r.isJQx ? r[0] : r) || document.body, n = n && Object.values(T).find((f2) => n === f2) ? n : void 0;
1472
+ let i = _(e), h2 = !i && me(e) || i, p3 = { collection: ue(e) ?? [], isVirtual: o, isJQx: true }, E2 = Y(p3.collection);
1465
1473
  switch (true) {
1466
- case (p3.collection.length && x2 && !o):
1467
- for (let d of p3.collection) r.contains(d) || R([d], r, n);
1474
+ case (p3.collection.length && E2 && !o):
1475
+ for (let f2 of p3.collection) r.contains(f2) || I([f2], r, n);
1468
1476
  break;
1469
- case b:
1470
- for (let d of [e].flat()) p3.collection.push(T(d));
1477
+ case h2:
1478
+ for (let f2 of [e].flat()) p3.collection.push(C(f2));
1471
1479
  if (p3.collection.length > 0) {
1472
- let d = p3.collection.filter((f2) => f2?.dataset?.jqxcreationerror);
1473
- p3.collection = p3.collection.filter((f2) => !f2?.dataset?.jqxcreationerror);
1474
- let m = p3.collection.map((f2) => `${String(f2.constructor).split(/function|\(/)[1].trim()}`).length > 1;
1475
- p3 = me(p3);
1476
- let S2 = p3.collection.length > 0 ? Xe(p3) : "sanitized: no elements remaining";
1477
- v.log(`JQx: created ${p3.isVirtual ? "(virtual)" : ""} instance from ${m ? "array of " : ""}HTML string${m ? "s" : ""} ${S2}`), p3.isVirtual || R(p3.collection, r, n);
1480
+ let f2 = p3.collection.filter((m) => m?.dataset?.jqxcreationerror);
1481
+ p3.collection = p3.collection.filter((m) => !m?.dataset?.jqxcreationerror);
1482
+ let g2 = p3.collection.map((m) => `${String(m.constructor).split(/function|\(/)[1].trim()}`).length > 1;
1483
+ p3 = pe(p3);
1484
+ let S2 = p3.collection.length > 0 ? Ke(p3) : "sanitized: no elements remaining";
1485
+ L.log(`JQx: created ${p3.isVirtual ? "(virtual)" : ""} instance from ${g2 ? "array of " : ""}HTML string${g2 ? "s" : ""} ${S2}`), p3.isVirtual || I(p3.collection, r, n);
1478
1486
  }
1479
1487
  break;
1480
1488
  default:
1481
- Ae(e, r, p3);
1489
+ $e(e, r, p3);
1482
1490
  }
1483
- return me(p3);
1491
+ return pe(p3);
1484
1492
  });
1485
1493
  }
1486
- var Sn = it;
1494
+ var En = at;
1487
1495
 
1488
1496
  // ../Resource/Externals/ticktock.min.js
1489
1497
  var M2 = ke2();
1490
1498
  function ke2() {
1491
- let [e, r, n, t] = ["2-digit", "numeric", "long", "short"], a = { fixed: { MM: { month: n }, M: { month: t }, m: { month: r }, mm: { month: e }, yyyy: { year: r }, yy: { year: e }, WD: { weekday: n }, wd: { weekday: t }, d: { day: r }, dd: { day: e }, h: { hour: r }, hh: { hour: e }, mi: { minute: r }, mmi: { minute: e }, s: { second: r }, ss: { second: e }, ms: { fractionalSecondDigits: 3 }, tz: { timeZoneName: "shortOffset" }, dl: { locale: "default" }, h12: { hour12: false }, yn: { yearName: "" }, ry: { relatedYear: true }, msp: { fractionalSecond: true } }, dynamic: { tzn: (l2) => ({ timeZoneName: l2.slice(4) }), hrc: (l2) => ({ hourCycle: `h${l2.slice(4)}` }), ds: (l2) => ({ dateStyle: l2.slice(3) }), ts: (l2) => ({ timeStyle: l2.slice(3) }), tz: (l2) => ({ timeZone: l2.slice(3) }), e: (l2) => ({ era: l2.slice(2) }), l: (l2) => ({ locale: l2.slice(2) }) } }, o = { ...a, retrieveDyn(l2) {
1492
- let y = l2?.slice(0, l2.indexOf(":"));
1493
- return a.dynamic[y] && a.dynamic[y](l2);
1499
+ let [e, r, n, t] = ["2-digit", "numeric", "long", "short"], a = { fixed: { MM: { month: n }, M: { month: t }, m: { month: r }, mm: { month: e }, yyyy: { year: r }, yy: { year: e }, WD: { weekday: n }, wd: { weekday: t }, d: { day: r }, dd: { day: e }, h: { hour: r }, hh: { hour: e }, mi: { minute: r }, mmi: { minute: e }, s: { second: r }, ss: { second: e }, ms: { fractionalSecondDigits: 3 }, tz: { timeZoneName: "shortOffset" }, dl: { locale: "default" }, h12: { hour12: false }, yn: { yearName: "" }, ry: { relatedYear: true }, msp: { fractionalSecond: true } }, dynamic: { tzn: (l) => ({ timeZoneName: l.slice(4) }), hrc: (l) => ({ hourCycle: `h${l.slice(4)}` }), ds: (l) => ({ dateStyle: l.slice(3) }), ts: (l) => ({ timeStyle: l.slice(3) }), tz: (l) => ({ timeZone: l.slice(3) }), e: (l) => ({ era: l.slice(2) }), l: (l) => ({ locale: l.slice(2) }) } }, o = { ...a, retrieveDyn(l) {
1500
+ let y = l?.slice(0, l.indexOf(":"));
1501
+ return a.dynamic[y] && a.dynamic[y](l);
1494
1502
  }, get re() {
1495
1503
  return new RegExp(`\\b(${Object.keys(a.fixed).join("|")})\\b`, "g");
1496
- } }, s = (l2 = "dtf", y = 0) => {
1497
- let h2 = ` ${l2.replace(/(?<=\{)(.+?)(?=})/g, (d) => `[${y++}]`).replace(/[{}]/g, "").trim()} `, D2 = l2.match(/(?<=\{)(.+?)(?=})/g) || [];
1504
+ } }, s = (l = "dtf", y = 0) => {
1505
+ let h2 = ` ${l.replace(/(?<=\{)(.+?)(?=})/g, (d) => `[${y++}]`).replace(/[{}]/g, "").trim()} `, D2 = l.match(/(?<=\{)(.+?)(?=})/g) || [];
1498
1506
  return { get texts() {
1499
1507
  return D2;
1500
1508
  }, formatString(d) {
@@ -1508,44 +1516,44 @@ ${r}`), f2;
1508
1516
  }, finalize(d = "", Z2 = "", b = "", $2 = "") {
1509
1517
  return h2.replace(/~([\d+]?)/g, "$1").replace(/dtf/, d).replace(/era/, b).replace(/dp\b|~dp\b/, Z2).replace(/yn\b/, $2).replace(/\[(\d+?)]/g, (w, Fe2) => D2[Fe2].trim()).trim();
1510
1518
  } };
1511
- }, u2 = (l2) => l2.replace(/\s+/g, ""), c = (...l2) => l2?.reduce((y, h2) => ({ ...y, ...o.retrieveDyn(h2) || o.fixed[h2] }), o.fixed.dl), i = (l2, y, h2) => {
1512
- let D2 = c(...u2(h2).split(",")), d = Intl.DateTimeFormat(D2.locale, D2).format(l2);
1519
+ }, u2 = (l) => l.replace(/\s+/g, ""), c2 = (...l) => l?.reduce((y, h2) => ({ ...y, ...o.retrieveDyn(h2) || o.fixed[h2] }), o.fixed.dl), i = (l, y, h2) => {
1520
+ let D2 = c2(...u2(h2).split(",")), d = Intl.DateTimeFormat(D2.locale, D2).format(l);
1513
1521
  return y.finalize(d);
1514
- }, m = (l2, y, h2, D2) => l2.toLocaleString(y, { timeZone: h2, month: D2 ? t : n }), T2 = (l2, y, h2) => {
1515
- let D2 = c(...y.units.concat(u2(h2).split(",")).flat()), d = { ...o.fixed }, Z2 = ($2, w) => D2[$2] === "numeric" && w.startsWith("0") ? w.slice(1) : w, b = Intl.DateTimeFormat(D2.locale, D2).formatToParts(l2).reduce(($2, w) => w.type === "literal" && /[ ,/-]/.test(w.value) ? $2 : { ...$2, [w.type]: Z2(w.type, w.value) }, {});
1516
- return d.ms = D2.fractionalSecondDigits ? d.msp : d.ms, d.yyyy = b.relatedYear ? d.ry : d.yyyy, y.formatStr = y.formatStr.replace(o.re, ($2) => /^(M|MM)$/.test($2) ? m(l2, D2.locale, D2.timeZone, /^M$/.test($2)) : b[Object.keys(d[$2]).shift()] || $2), y.finalize(void 0, b.dayPeriod, b.era, b.yearName);
1522
+ }, m = (l, y, h2, D2) => l.toLocaleString(y, { timeZone: h2, month: D2 ? t : n }), T2 = (l, y, h2) => {
1523
+ let D2 = c2(...y.units.concat(u2(h2).split(",")).flat()), d = { ...o.fixed }, Z2 = ($2, w) => D2[$2] === "numeric" && w.startsWith("0") ? w.slice(1) : w, b = Intl.DateTimeFormat(D2.locale, D2).formatToParts(l).reduce(($2, w) => w.type === "literal" && /[ ,/-]/.test(w.value) ? $2 : { ...$2, [w.type]: Z2(w.type, w.value) }, {});
1524
+ return d.ms = D2.fractionalSecondDigits ? d.msp : d.ms, d.yyyy = b.relatedYear ? d.ry : d.yyyy, y.formatStr = y.formatStr.replace(o.re, ($2) => /^(M|MM)$/.test($2) ? m(l, D2.locale, D2.timeZone, /^M$/.test($2)) : b[Object.keys(d[$2]).shift()] || $2), y.finalize(void 0, b.dayPeriod, b.era, b.yearName);
1517
1525
  };
1518
- return (l2, y, h2 = "l:default") => /ds:|ts:/.test(h2) ? i(l2, s(void 0), h2) : T2(l2, s(y || void 0), h2);
1526
+ return (l, y, h2 = "l:default") => /ds:|ts:/.test(h2) ? i(l, s(void 0), h2) : T2(l, s(y || void 0), h2);
1519
1527
  }
1520
1528
  var le2 = Ce2;
1521
1529
  function Ce2() {
1522
1530
  let e = (t, a) => {
1523
1531
  let o = isNaN(new Date(t)), s = isNaN(new Date(a));
1524
1532
  if (s) {
1525
- let [u2, c, i] = Array(3).fill("end date not valid");
1526
- return { error: true, message: u2, full: c, clean: i };
1533
+ let [u2, c2, i] = Array(3).fill("end date not valid");
1534
+ return { error: true, message: u2, full: c2, clean: i };
1527
1535
  }
1528
1536
  if (o) {
1529
- let [u2, c, i] = Array(3).fill("start date not valid");
1530
- return { error: true, message: u2, full: c, clean: i };
1537
+ let [u2, c2, i] = Array(3).fill("start date not valid");
1538
+ return { error: true, message: u2, full: c2, clean: i };
1531
1539
  }
1532
1540
  if (o && !s) {
1533
- let [u2, c, i] = Array(3).fill("start- and/or end date are not valid");
1534
- return { error: true, message: u2, full: c, clean: i };
1541
+ let [u2, c2, i] = Array(3).fill("start- and/or end date are not valid");
1542
+ return { error: true, message: u2, full: c2, clean: i };
1535
1543
  }
1536
1544
  return { error: false };
1537
1545
  }, r = n();
1538
1546
  return function({ start: t, end: a, diffs: o = {} } = {}) {
1539
1547
  let s = e(t, a), u2 = a > t ? "+" : "-";
1540
1548
  if (s.error) return s;
1541
- let c = Math.abs(t - a), i = new Date(c), m = i.getUTCFullYear() - 1970, T2 = i.getUTCMonth(), l2 = i.getUTCDate() - 1, y = l2 % 7, h2 = Math.floor(l2 / 7), D2 = i.getUTCHours(), d = i.getUTCMinutes(), Z2 = i.getUTCSeconds(), b = i.getUTCMilliseconds(), $2 = Math.floor(c / 864e5);
1542
- o = { ...o, fromUTC: t, toUTC: a, sign: "", years: m, months: T2, days: l2, hours: D2, minutes: d, seconds: Z2, milliseconds: b, diffInDays: $2 }, o.full = r({ values: o, full: true }), o.clean = r({ values: o }), o.equalDates = o.clean === "Dates are equal";
1549
+ let c2 = Math.abs(t - a), i = new Date(c2), m = i.getUTCFullYear() - 1970, T2 = i.getUTCMonth(), l = i.getUTCDate() - 1, y = l % 7, h2 = Math.floor(l / 7), D2 = i.getUTCHours(), d = i.getUTCMinutes(), Z2 = i.getUTCSeconds(), b = i.getUTCMilliseconds(), $2 = Math.floor(c2 / 864e5);
1550
+ o = { ...o, fromUTC: t, toUTC: a, sign: "", years: m, months: T2, days: l, hours: D2, minutes: d, seconds: Z2, milliseconds: b, diffInDays: $2 }, o.full = r({ values: o, full: true }), o.clean = r({ values: o }), o.equalDates = o.clean === "Dates are equal";
1543
1551
  let w = D2 + d + Z2 > 0 ? "T" : "";
1544
- return o.clean !== "Dates are equal" && (o.sign = u2, o.jsPeriod = `${u2}P${m > 0 ? `${m}Y` : ""}${T2 > 0 ? `${T2}M` : ""}${h2 > 0 ? `${h2}W` : ""}${y > 0 ? `${y}D` : ""}${w}${D2 > 0 ? `${D2}H` : ""}${d > 0 ? `${d}M` : ""}${Z2 > 0 ? `${Z2}S` : ""}`, o.ISOPeriod = `P${m > 0 ? `${m}Y` : ""}${T2 > 0 ? `${T2}M` : ""}${l2 > 0 ? `${l2}D` : ""}${w}${D2 > 0 ? `${D2}H` : ""}${d > 0 ? `${d}M` : ""}${Z2 > 0 ? `${Z2}S` : ""}`), o;
1552
+ return o.clean !== "Dates are equal" && (o.sign = u2, o.jsPeriod = `${u2}P${m > 0 ? `${m}Y` : ""}${T2 > 0 ? `${T2}M` : ""}${h2 > 0 ? `${h2}W` : ""}${y > 0 ? `${y}D` : ""}${w}${D2 > 0 ? `${D2}H` : ""}${d > 0 ? `${d}M` : ""}${Z2 > 0 ? `${Z2}S` : ""}`, o.ISOPeriod = `P${m > 0 ? `${m}Y` : ""}${T2 > 0 ? `${T2}M` : ""}${l > 0 ? `${l}D` : ""}${w}${D2 > 0 ? `${D2}H` : ""}${d > 0 ? `${d}M` : ""}${Z2 > 0 ? `${Z2}S` : ""}`), o;
1545
1553
  };
1546
1554
  function n() {
1547
- let t = (...i) => (m) => i.reduce((T2, l2) => l2(T2), m), a = (i, m) => i === 1 ? m.slice(0, -1) : m;
1548
- return t(({ values: i, full: m }) => [Object.entries(i).filter(([T2]) => /^(years|month|days|hours|minutes|seconds)/i.test(T2)), m], ([i, m]) => m ? i : i.filter(([, T2]) => m ? +T2 : T2 > 0), (i) => i.reduce((m, [T2, l2]) => [...m, `${l2} ${a(l2, T2)}`], []), (i) => i.length < 1 ? "Dates are equal" : `${i.slice(0, -1).join(", ")}${i.length > 1 ? " and " : ""}${i.slice(-1).shift()}`);
1555
+ let t = (...i) => (m) => i.reduce((T2, l) => l(T2), m), a = (i, m) => i === 1 ? m.slice(0, -1) : m;
1556
+ return t(({ values: i, full: m }) => [Object.entries(i).filter(([T2]) => /^(years|month|days|hours|minutes|seconds)/i.test(T2)), m], ([i, m]) => m ? i : i.filter(([, T2]) => m ? +T2 : T2 > 0), (i) => i.reduce((m, [T2, l]) => [...m, `${l} ${a(l, T2)}`], []), (i) => i.length < 1 ? "Dates are equal" : `${i.slice(0, -1).join(", ")}${i.length > 1 ? " and " : ""}${i.slice(-1).shift()}`);
1549
1557
  }
1550
1558
  }
1551
1559
  var ie2 = Ae2;
@@ -1557,8 +1565,8 @@ ${r}`), f2;
1557
1565
  let s = o.toLowerCase().split(/ {1,}/);
1558
1566
  return s.length < 2 ? false : s.map((u2) => {
1559
1567
  u2 = `${u2}`.trim().replace(/[^a-z0-9-+]/g, "");
1560
- let c = parseInt(u2, 10);
1561
- return Number.isNaN(c) ? u2 : r ? -c : +c;
1568
+ let c2 = parseInt(u2, 10);
1569
+ return Number.isNaN(c2) ? u2 : r ? -c2 : +c2;
1562
1570
  });
1563
1571
  }).filter((o) => o);
1564
1572
  };
@@ -1636,12 +1644,12 @@ ${r}`), f2;
1636
1644
  }
1637
1645
  function xe2(e, r) {
1638
1646
  let n = e.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3) ?? "+0000", t = r.toString().match(/GMT([+-])\d+/)?.[0]?.slice(3) ?? "+0000";
1639
- return n = A(n.slice(0, 3) + ":" + n.slice(-2), true), t = A(t.slice(0, 3) + ":" + t.slice(-2), true), [-n[0] + t[0], -n[1] + t[1]].map((a) => n[0] < 0 ? -a : a);
1647
+ return n = A2(n.slice(0, 3) + ":" + n.slice(-2), true), t = A2(t.slice(0, 3) + ":" + t.slice(-2), true), [-n[0] + t[0], -n[1] + t[1]].map((a) => n[0] < 0 ? -a : a);
1640
1648
  }
1641
1649
  function R2({ start: e, end: r } = {}) {
1642
1650
  r || (r = e.clone), r?.clone || (r = f(r, { timeZone: e.timeZone })), e = f(fe2(e, e.timeZone), { timeZone: e.timeZone }), r = f(fe2(r, r.timeZone), { timeZone: r.timeZone });
1643
- let n = ge2({ start: e, end: r, diffs: { timeZoneStart: e.timeZone, timeZoneEnd: r.timeZone } }), t = xe2(r, e), a = n.sign.startsWith("-") ? "ahead of" : "behind", [o, s] = t.map((i) => Math.abs(i)), [u2, c] = [`${o} ${C2(o, "hour")}`, `${s} ${C2(s, "minute")}`];
1644
- return n.timeZonesOffsetDifference = n.sign.length < 1 || o + s === 0 ? `Offsets of ${e.timeZone} and ${r.timeZone} are equal` : `${e.timeZone} is ${u2}${s > 0 ? ` and ${c}` : ""} ${a} ${r.timeZone}`, n;
1651
+ let n = ge2({ start: e, end: r, diffs: { timeZoneStart: e.timeZone, timeZoneEnd: r.timeZone } }), t = xe2(r, e), a = n.sign.startsWith("-") ? "ahead of" : "behind", [o, s] = t.map((i) => Math.abs(i)), [u2, c2] = [`${o} ${C2(o, "hour")}`, `${s} ${C2(s, "minute")}`];
1652
+ return n.timeZonesOffsetDifference = n.sign.length < 1 || o + s === 0 ? `Offsets of ${e.timeZone} and ${r.timeZone} are equal` : `${e.timeZone} is ${u2}${s > 0 ? ` and ${c2}` : ""} ${a} ${r.timeZone}`, n;
1645
1653
  }
1646
1654
  function X2(e, r) {
1647
1655
  r = String(r).toLowerCase() === "utc" || r.timeZone === "UTC" ? e.clone.relocate({ timeZone: "UTC" }) : f(e.value, { timeZone: r.timeZone || g.timeZone });
@@ -1672,10 +1680,10 @@ ${r}`), f2;
1672
1680
  return ye2(n.format(e));
1673
1681
  }
1674
1682
  function $e2(e) {
1675
- let r = g, n = e.localeInfo, t = e.clone.relocate({ locale: r.locale, timeZone: r.timeZone }), a = e.offsetFrom(t), o = t.offsetFrom(e), s = r, u2 = n, c = e.format("hh:mmi:ss dp", `hrc:12,tz:${e.timeZone}`), i = t.format("hh:mmi:ss dp", `hrc:12,tz:${t.timeZone}`), m = { note: "'user' are values for your locale/timeZone, 'remote' (if applicable) idem for the instance", locales: { user: { locale: s.locale, timeZone: s.timeZone } }, dateTime: { user: { ...e.dateTime, monthName: t.monthName, weekdayNr: t.day, weekdayName: t.dayName, dayPeriodTime: i, hasDST: t.hasDST, DSTActive: t.DSTActive, offsetFromRemote: a.offset, string: t.toString() } }, offset: { fromUTC: e.UTC.offsetFrom(e).offsetText } };
1676
- return n.timeZone !== r.timeZone && (m.locales.remote = { locale: u2.locale, timeZone: u2.timeZone }, m.dateTime.remote = { ...e.zoneDateTime, monthName: e.zoneNames.monthName, weekdayNr: ee2(e, true), weekdayName: e.zoneNames.dayName, dayPeriodTime: c, hasDST: e.hasDST, DSTActive: e.DSTActive, offsetFromUser: o.offset, string: e.toString() }, m.offset.fromUserTime = o.offsetText), m;
1683
+ let r = g, n = e.localeInfo, t = e.clone.relocate({ locale: r.locale, timeZone: r.timeZone }), a = e.offsetFrom(t), o = t.offsetFrom(e), s = r, u2 = n, c2 = e.format("hh:mmi:ss dp", `hrc:12,tz:${e.timeZone}`), i = t.format("hh:mmi:ss dp", `hrc:12,tz:${t.timeZone}`), m = { note: "'user' are values for your locale/timeZone, 'remote' (if applicable) idem for the instance", locales: { user: { locale: s.locale, timeZone: s.timeZone } }, dateTime: { user: { ...e.dateTime, monthName: t.monthName, weekdayNr: t.day, weekdayName: t.dayName, dayPeriodTime: i, hasDST: t.hasDST, DSTActive: t.DSTActive, offsetFromRemote: a.offset, string: t.toString() } }, offset: { fromUTC: e.UTC.offsetFrom(e).offsetText } };
1684
+ return n.timeZone !== r.timeZone && (m.locales.remote = { locale: u2.locale, timeZone: u2.timeZone }, m.dateTime.remote = { ...e.zoneDateTime, monthName: e.zoneNames.monthName, weekdayNr: ee2(e, true), weekdayName: e.zoneNames.dayName, dayPeriodTime: c2, hasDST: e.hasDST, DSTActive: e.DSTActive, offsetFromUser: o.offset, string: e.toString() }, m.offset.fromUserTime = o.offsetText), m;
1677
1685
  }
1678
- function O2(e, r = true) {
1686
+ function O(e, r = true) {
1679
1687
  if (r) return [e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()];
1680
1688
  let n = e.format("yyyy-m-d-hh-mmi-ss", `${e.localeInfo.formatOptions},hrc23:true`).split(/-/).map(Number).concat(e.getMilliseconds());
1681
1689
  return n[1] -= 1, n;
@@ -1733,7 +1741,7 @@ ${r}`), f2;
1733
1741
  return r < 0 ? he2.indexOf(e) : r;
1734
1742
  };
1735
1743
  }
1736
- function A(e) {
1744
+ function A2(e) {
1737
1745
  let r = e.slice(1).split(/[-:]/).map(Number), n = e.startsWith("-");
1738
1746
  return r = r.map((t) => n ? -t : t), r;
1739
1747
  }
@@ -1782,7 +1790,7 @@ ${r}`), f2;
1782
1790
  let t = r.valueOf();
1783
1791
  return r.setMonth(0, 1), r.getDay() !== 4 && r.setMonth(0, 1 + (4 - r.getDay() + 7) % 7), 1 + Math.ceil((t - r) / 6048e5);
1784
1792
  }
1785
- var E2 = Ee2;
1793
+ var E = Ee2;
1786
1794
  function Ee2({ localeInfo: e, customMethods: r, dateValue: n } = {}) {
1787
1795
  let t, a = { add(...o) {
1788
1796
  return H2(t, ...o);
@@ -1814,18 +1822,18 @@ ${r}`), f2;
1814
1822
  return X2(t, o);
1815
1823
  }, previous(o, s) {
1816
1824
  return x(t, { day: o, next: false, preserveTodayWhenEqual: !!s });
1817
- }, relocate({ locale: o, timeZone: s, l: u2, tz: c } = {}) {
1818
- return Ze2(t, { locale: o, timeZone: s, l: u2, tz: c });
1825
+ }, relocate({ locale: o, timeZone: s, l: u2, tz: c2 } = {}) {
1826
+ return Ze2(t, { locale: o, timeZone: s, l: u2, tz: c2 });
1819
1827
  }, revalue(o) {
1820
1828
  return t = be2(t, o), t;
1821
1829
  }, setDateValues({ year: o, month: s, date: u2 } = {}) {
1822
1830
  return v2(t, { year: o, month: s, date: u2 });
1823
- }, setTimeValues({ hours: o, minutes: s, seconds: u2, milliseconds: c } = {}) {
1824
- return I2(t, { hours: o, minutes: s, seconds: u2, milliseconds: c });
1831
+ }, setTimeValues({ hours: o, minutes: s, seconds: u2, milliseconds: c2 } = {}) {
1832
+ return I2(t, { hours: o, minutes: s, seconds: u2, milliseconds: c2 });
1825
1833
  }, subtract(...o) {
1826
1834
  return H2(t, "subtract," + o.join(","));
1827
1835
  }, toArray(o = false) {
1828
- return O2(t, o);
1836
+ return O(t, o);
1829
1837
  }, toString({ template: o, formatOptions: s, local: u2 } = {}) {
1830
1838
  return pe2(t, { withFormat: o, withFormatOptions: s, local: u2 });
1831
1839
  }, values(o = false) {
@@ -1838,8 +1846,8 @@ ${r}`), f2;
1838
1846
  v2(t, { date: o });
1839
1847
  }, set hours(o) {
1840
1848
  I2(t, { hours: o });
1841
- }, set localeInfo({ locale: o, timeZone: s, l: u2, tz: c }) {
1842
- e = z2({ locale: o, timeZone: s, l: u2, tz: c });
1849
+ }, set localeInfo({ locale: o, timeZone: s, l: u2, tz: c2 }) {
1850
+ e = z2({ locale: o, timeZone: s, l: u2, tz: c2 });
1843
1851
  }, set milliseconds(o) {
1844
1852
  I2(t, { milliseconds: `${o}` });
1845
1853
  }, set minutes(o) {
@@ -1848,8 +1856,8 @@ ${r}`), f2;
1848
1856
  v2(t, { month: o });
1849
1857
  }, set seconds(o) {
1850
1858
  I2(t, { seconds: o });
1851
- }, set time({ hours: o, minutes: s, seconds: u2, milliseconds: c }) {
1852
- I2(t, { hours: o, minutes: s, seconds: u2, milliseconds: c });
1859
+ }, set time({ hours: o, minutes: s, seconds: u2, milliseconds: c2 }) {
1860
+ I2(t, { hours: o, minutes: s, seconds: u2, milliseconds: c2 });
1853
1861
  }, set year(o) {
1854
1862
  v2(t, { year: o });
1855
1863
  }, get age() {
@@ -1865,7 +1873,7 @@ ${r}`), f2;
1865
1873
  }, get dateTime() {
1866
1874
  return { ...t.date, ...t.time };
1867
1875
  }, get dateTimeValues() {
1868
- return O2(t, true);
1876
+ return O(t, true);
1869
1877
  }, get dateValues() {
1870
1878
  return K2(t, true);
1871
1879
  }, get day() {
@@ -1945,7 +1953,7 @@ ${r}`), f2;
1945
1953
  }, get zoneDateTime() {
1946
1954
  return { ...t.zoneDate, ...t.zoneTime };
1947
1955
  }, get zoneDateTimeValues() {
1948
- return O2(t, false);
1956
+ return O(t, false);
1949
1957
  }, get zoneDateValues() {
1950
1958
  return K2(t, false);
1951
1959
  }, get zoneDay() {
@@ -1973,7 +1981,7 @@ ${r}`), f2;
1973
1981
  }, get zoneValues() {
1974
1982
  return t.zoneDateTime;
1975
1983
  }, get zoneArray() {
1976
- return O2(t, false);
1984
+ return O(t, false);
1977
1985
  } };
1978
1986
  return !e && !n ? a : (a.localeInfo = e || z2(), t = new Proxy(n, Ve2(a)), Object.entries(Object.getOwnPropertyDescriptors(ue2(t, r))).forEach(([o, s]) => Object.defineProperty(a, o, s)), Object.freeze(t));
1979
1987
  }
@@ -2052,7 +2060,7 @@ ${r}`), f2;
2052
2060
  }
2053
2061
  }
2054
2062
  function Ge2({ timeZoneDate: e, timeZoneID: r, userTimeZoneID: n } = {}) {
2055
- let t = { timeZone: p({ timeZone: r }).timeZone }, a = { timeZone: p({ timeZone: n || "" }).timeZone }, o = f(e, t), s = f(e, a), u2 = s.differenceTo(o), c = o.offsetFrom(s).offset, [i, m] = A(c, true), T2 = s.clone.add(`${i} hours, ${m} minutes`), y = u2.equalDates ? "No difference" : `Time offset ${c}: ${a.timeZone} is ${u2.clean} ${i < 0 ? "behind" : "ahead of"} ${t.timeZone}`;
2063
+ let t = { timeZone: p({ timeZone: r }).timeZone }, a = { timeZone: p({ timeZone: n || "" }).timeZone }, o = f(e, t), s = f(e, a), u2 = s.differenceTo(o), c2 = o.offsetFrom(s).offset, [i, m] = A2(c2, true), T2 = s.clone.add(`${i} hours, ${m} minutes`), y = u2.equalDates ? "No difference" : `Time offset ${c2}: ${a.timeZone} is ${u2.clean} ${i < 0 ? "behind" : "ahead of"} ${t.timeZone}`;
2056
2064
  return { remoteTimezone: t.timeZone, userTimezone: a.timeZone, timeDifference: y, result: { [t.timeZone.replace(/\//, "_")]: f(e).toString({ template: "yyyy/mm/dd hh:mmi:ss", formatOptions: "hrc:23" }), [a.timeZone.replace(/\//, "_")]: T2.toString({ template: "yyyy/mm/dd hh:mmi:ss", formatOptions: "hrc:23" }) } };
2057
2065
  }
2058
2066
  function S(e) {
@@ -2139,7 +2147,7 @@ ${r}`), f2;
2139
2147
  return k2(n, 31);
2140
2148
  } }, keys: { get() {
2141
2149
  let n = Object.fromEntries(Object.entries(r).filter(([a, o]) => o.enumerable === true));
2142
- return [...Object.keys(E2()), ...Object.keys(ue2()), ...Object.keys(n)].sort((a, o) => a.localeCompare(o));
2150
+ return [...Object.keys(E()), ...Object.keys(ue2()), ...Object.keys(n)].sort((a, o) => a.localeCompare(o));
2143
2151
  } } }), e;
2144
2152
  }
2145
2153
  var Oe2 = {};
@@ -2147,7 +2155,7 @@ ${r}`), f2;
2147
2155
  function Je2(e, r) {
2148
2156
  if (e?.localeInfo) return e.clone;
2149
2157
  let n = e?.locale || e?.timeZone || e?.tz || e?.l;
2150
- return E2({ localeInfo: p(n ? e : r), dateValue: new Date(n ? Date.now() : ve2(e)), customMethods: Oe2 });
2158
+ return E({ localeInfo: p(n ? e : r), dateValue: new Date(n ? Date.now() : ve2(e)), customMethods: Oe2 });
2151
2159
  }
2152
2160
 
2153
2161
  // ../Resource/Externals/REHelper.js
@@ -2254,7 +2262,7 @@ ${r}`), f2;
2254
2262
  window.IS = u;
2255
2263
  function p2(r, f2 = {}) {
2256
2264
  let { useSymbolicExtensions: a } = f2;
2257
- return r = u(r, String, Number) ? String(r) : void 0, a && O3(), function(n, ...t) {
2265
+ return r = u(r, String, Number) ? String(r) : void 0, a && O2(), function(n, ...t) {
2258
2266
  return d(n, y(t));
2259
2267
  };
2260
2268
  function s(n, t) {
@@ -2266,17 +2274,17 @@ ${r}`), f2;
2266
2274
  }
2267
2275
  function o(n) {
2268
2276
  return (...t) => {
2269
- let i = t.find((c) => c.key);
2277
+ let i = t.find((c2) => c2.key);
2270
2278
  return e(i ? i.key : "_", n);
2271
2279
  };
2272
2280
  }
2273
- function l2(n, t) {
2281
+ function l(n, t) {
2274
2282
  return n.replace(/\{(?<key>[a-z_\d]+)}/gim, o(t));
2275
2283
  }
2276
2284
  function b(n) {
2277
2285
  let t = [];
2278
- return Object.entries(n).forEach(([i, c]) => {
2279
- c.forEach((m, S2) => (t[S2] ??= {}, t[S2][i] = m));
2286
+ return Object.entries(n).forEach(([i, c2]) => {
2287
+ c2.forEach((m, S2) => (t[S2] ??= {}, t[S2][i] = m));
2280
2288
  }), t;
2281
2289
  }
2282
2290
  function g2(n) {
@@ -2286,11 +2294,11 @@ ${r}`), f2;
2286
2294
  return g2(n) ? b(n[0]) : n;
2287
2295
  }
2288
2296
  function d(n, t) {
2289
- let i = t?.length ? t.filter((c) => u(c, Object)).map((c, m) => l2(n, { ...c, index: m + 1 })).join("") : n;
2297
+ let i = t?.length ? t.filter((c2) => u(c2, Object)).map((c2, m) => l(n, { ...c2, index: m + 1 })).join("") : n;
2290
2298
  return u(r, void 0) ? i : i.replace(/\{[a-z_\d].+\}/gim, String(r));
2291
2299
  }
2292
2300
  }
2293
- function O3() {
2301
+ function O2() {
2294
2302
  return String.prototype[Symbol.for("interpolate")] || Object.defineProperties(String.prototype, { [Symbol.for("interpolate")]: { value(...r) {
2295
2303
  return v3(this, ...r);
2296
2304
  } }, [Symbol.for("interpolate$")]: { value(...r) {
@@ -2304,7 +2312,7 @@ ${r}`), f2;
2304
2312
  }
2305
2313
  function s(e, ...o) {
2306
2314
  if (o.length > 1) {
2307
- for (let l2 of o) if (a(e, l2)) return true;
2315
+ for (let l of o) if (a(e, l)) return true;
2308
2316
  return false;
2309
2317
  }
2310
2318
  return a(e, o?.shift());
@@ -2315,7 +2323,7 @@ ${r}`), f2;
2315
2323
  // ../index.js
2316
2324
  setDefaultStyling();
2317
2325
  fixSBLinks2TopProblem();
2318
- var splatModule = { interpolate: v3, interpolateClear: N3, addSymbolicStringExtensions: O3 };
2326
+ var splatModule = { interpolate: v3, interpolateClear: N3, addSymbolicStringExtensions: O2 };
2319
2327
  function fixSBLinks2TopProblem() {
2320
2328
  /stackblitz/i.test(location.href) && console.info(`\u2714 Stackblitz rewrites links to _top. The 'stackblitzhelpers' module fixed it.`);
2321
2329
  document.addEventListener(`click`, (evt) => {
@@ -2329,20 +2337,20 @@ ${r}`), f2;
2329
2337
  });
2330
2338
  }
2331
2339
  function logFactory(formatJSON = true) {
2332
- const logContainer = Sn(`<ul id="log2screen">`).first();
2340
+ const logContainer = En(`<ul id="log2screen">`).first();
2333
2341
  function logItem(top2 = false) {
2334
- const where2PutIt = top2 ? Sn.at.start : Sn.at.end;
2342
+ const where2PutIt = top2 ? En.at.start : En.at.end;
2335
2343
  return (content) => {
2336
2344
  if (content?.isJQx) {
2337
- return Sn.li(
2345
+ return En.li(
2338
2346
  content.data.get(`header`) ? { class: `head` } : ``,
2339
2347
  content
2340
2348
  ).renderTo(logContainer, where2PutIt);
2341
2349
  }
2342
- content = !Sn.IS(content, String, Number, Symbol) ? tryJSON(content, formatJSON) : String(content);
2350
+ content = !En.IS(content, String, Number, Symbol) ? tryJSON(content, formatJSON) : String(content);
2343
2351
  const isHead = content.startsWith(`!!`);
2344
2352
  content = isHead ? content.slice(2) : content;
2345
- Sn.li(isHead ? { class: `head` } : ``, content).renderTo(logContainer, where2PutIt);
2353
+ En.li(isHead ? { class: `head` } : ``, content).renderTo(logContainer, where2PutIt);
2346
2354
  };
2347
2355
  }
2348
2356
  const [logLamda, logTopLambda] = [logItem(), logItem(true)];
@@ -2359,7 +2367,7 @@ ${r}`), f2;
2359
2367
  }
2360
2368
  }
2361
2369
  function setDefaultStyling() {
2362
- Sn.editCssRules(`li::marker{vertical-align:top;}`, `code{color:green;background-color:#eee;padding:2px;font-family:monospace;}`, `code.codeblock{display:block;padding:6px;border:1px solid #999;margin:0.5rem 0;background-color:#eee;white-space:pre-wrap;}`, `h3{marginTop:1.5rem;}`, `.thickBorder{border:5px solid green;borderWidth:5px;padding:0.5rem;display:inline-block;}`, `a.ExternalLink{text-decoration:none;color:rgb(0,0,238);background-color:#EEE;padding:3px;font-weight:bold;}`, `.cmmt{color:#888;}`, `.hidden{display:none;}`, `.attention{color:red; font-size:1.2em; font-weight:bold;}`, `#log2screen li{listStyle:'\\2713';paddingLeft:6px;margin:0.5rem 0 0 -1.2rem;font-family:monospace}`, `#log2screen li.head{list-style-type:none;font-weight:bold;margin-top:0.8rem;margin-bottom:-0.2rem;font-family:revert;}`, `.err{fontStyle:italic; color:red; }`, `a{text-decoration:none; font-weight:bold;}`, `a:hover{text-decoration:underline;}`, `a[target]:before,a.internalLink:before,a.externalLink:before{color:rgba(0,0,238,0.7);font-size:1.1rem;padding-right:2px;vertical-align:baseline;}`, `a[target="_blank"]:before,a.externalLink:before{content:'\\2197';}`, `a[data-top]:before,a.internalLink:before,a[target="_top"]:before{content:'\\21BA';}`);
2370
+ En.editCssRules(`li::marker{vertical-align:top;}`, `code{color:green;background-color:#eee;padding:2px;font-family:monospace;}`, `code.codeblock{display:block;padding:6px;border:1px solid #999;margin:0.5rem 0;background-color:#eee;white-space:pre-wrap;}`, `h3{marginTop:1.5rem;}`, `.thickBorder{border:5px solid green;borderWidth:5px;padding:0.5rem;display:inline-block;}`, `a.ExternalLink{text-decoration:none;color:rgb(0,0,238);background-color:#EEE;padding:3px;font-weight:bold;}`, `.cmmt{color:#888;}`, `.hidden{display:none;}`, `.attention{color:red; font-size:1.2em; font-weight:bold;}`, `#log2screen li{listStyle:'\\2713';paddingLeft:6px;margin:0.5rem 0 0 -1.2rem;font-family:monospace}`, `#log2screen li.head{list-style-type:none;font-weight:bold;margin-top:0.8rem;margin-bottom:-0.2rem;font-family:revert;}`, `.err{fontStyle:italic; color:red; }`, `a{text-decoration:none; font-weight:bold;}`, `a:hover{text-decoration:underline;}`, `a[target]:before,a.internalLink:before,a.externalLink:before{color:rgba(0,0,238,0.7);font-size:1.1rem;padding-right:2px;vertical-align:baseline;}`, `a[target="_blank"]:before,a.externalLink:before{content:'\\2197';}`, `a[data-top]:before,a.internalLink:before,a[target="_top"]:before{content:'\\21BA';}`);
2363
2371
  }
2364
2372
  return __toCommonJS(index_exports);
2365
2373
  })();