buzzcasting-utils 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -140,6 +140,7 @@ export declare enum EVENTS {
140
140
  APP_READY = "appReady",
141
141
  API_UPDATE = "apiUpdate",
142
142
  BACKGROUND_UPDATE = "backgroundUpdate",
143
+ COMPONENT_UPDATE = "componentUpdate",
143
144
  WS_API_REQUEST = "wsApiRequest",
144
145
  WS_API_RESPONSE = "wsApiResponse",
145
146
  WS_API_UPDATE = "wsApiRUpdate",
@@ -155,6 +156,7 @@ export declare enum EVENTS {
155
156
  CSS_STORE = "storeCss",
156
157
  DASHBOARD_LOAD = "loadDashboard",
157
158
  DASHBOARD_STORE = "storeDashboard",
159
+ DASHBOARD_UPDATED = "dashboardUpdated",
158
160
  ERROR = "error",
159
161
  HIDE_MESSAGE = "hideMessage",
160
162
  HIDE_LABELS = "hideLabels",
@@ -169,10 +171,13 @@ export declare enum EVENTS {
169
171
  NEXT_SLIDE = "nextSlide",
170
172
  PREFERENCE_LOAD = "loadPreference",
171
173
  PREFERENCE_STORE = "storePreference",
174
+ PREFEENCE_UPDATED = "preferenceUpdated",
172
175
  PAUSE_PRESENTATION = "pausePresentation",
173
176
  PRESENTATION_READY = "presentationReady",
174
177
  PRESENTATION_LOAD = "loadPresentation",
175
178
  PRESENTATION_STORE = "storePresentation",
179
+ PRESENTATION_UPDATED = "presentationUpdated",
180
+ ROW_COL_UPDATE = "rowcolupdate",
176
181
  SCREENSHOT_TAKE = "takeScreenshot",
177
182
  SCREENSHOT_STORE = "storeScreenshot",
178
183
  SECTION_UPDATE = "sectionUpdate",
@@ -189,6 +194,7 @@ export declare enum EVENTS {
189
194
  SLIDE_STORE = "storeSlide",
190
195
  SLIDE_STORED = "slideStored",
191
196
  SLIDE_TRANSITIONER = "slideTransitioner",
197
+ SLIDE_UPDATED = "slideUpdated",
192
198
  START_TRANSITIONER = "startTransitioner",
193
199
  STORAGE_INIT = "storageInit",
194
200
  SUBSCRIBE = "subscribe",
@@ -199,6 +205,7 @@ export declare enum EVENTS {
199
205
  UPLOAD_COMPLETED = "uploadCompleted",
200
206
  VERSION = "version",
201
207
  WIDGETS_CLEAR = "widgetsClear",
208
+ WIDGET_DID_LOAD = "widgetDidLoad",
202
209
  WIDGET_DID_UPDATE = "widgetDidUpdate",
203
210
  WIDGET_LOAD = "widgetLoad",
204
211
  WIDGET_STORE = "widgetStore",
@@ -1105,6 +1112,7 @@ export declare interface IShow {
1105
1112
  sender?: boolean;
1106
1113
  star?: boolean;
1107
1114
  visible?: boolean;
1115
+ debug?: boolean;
1108
1116
  }
1109
1117
 
1110
1118
  export declare interface ISlides {
@@ -1,4 +1,4 @@
1
- var h = /* @__PURE__ */ ((e) => (e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), m = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(m || {}), L = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e))(L || {}), D = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(D || {}), v = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(v || {});
1
+ var h = /* @__PURE__ */ ((e) => (e.CLOUD = "cloud", e.DASHBOARD = "dashboard", e.DASHBOARDS = "dashboards", e.IMAGES = "images", e.MESSAGES = "messages", e.PREFERENCE = "preference", e.PREFERENCES = "preferences", e.PRESENTATION = "presentation", e.PRESENTATIONS = "presentations", e.SERIES = "series", e.SLIDE = "slide", e.SLIDES = "slides", e.TOPICS = "topics", e.WIDGET = "widget", e.WIDGETS = "widgets", e))(h || {}), m = /* @__PURE__ */ ((e) => (e.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", e.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", e.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", e.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", e.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", e.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", e.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", e.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", e.NONE = "color:transparent;background-color:transparent;", e.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", e.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", e.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", e.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", e.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", e.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", e.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", e.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", e))(m || {}), L = /* @__PURE__ */ ((e) => (e.ADD_SLIDE = "addSlide", e.APP_READY = "appReady", e.API_UPDATE = "apiUpdate", e.BACKGROUND_UPDATE = "backgroundUpdate", e.COMPONENT_UPDATE = "componentUpdate", e.WS_API_REQUEST = "wsApiRequest", e.WS_API_RESPONSE = "wsApiResponse", e.WS_API_UPDATE = "wsApiRUpdate", e.APPROVE_MESSAGE = "approveMessage", e.CHANNEL = "channel", e.CLEAN_MESSAGES = "cleanMessages", e.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", e.CLOSE_BUILDER_MODAL = "closeBuilderModal", e.CLOSE_MODAL = "closeModal", e.COLOR_UPDATE = "colorUpdate", e.COMPONENT_INDEX = "componentIndex", e.CSS_SET = "setCss", e.CSS_STORE = "storeCss", e.DASHBOARD_LOAD = "loadDashboard", e.DASHBOARD_STORE = "storeDashboard", e.DASHBOARD_UPDATED = "dashboardUpdated", e.ERROR = "error", e.HIDE_MESSAGE = "hideMessage", e.HIDE_LABELS = "hideLabels", e.IMAGE_GET = "getImage", e.IMAGE_SET = "setImage", e.IMAGE_STORED = "imageStored", e.LAUPPUT_UPDATE = "layoutUpdate", e.PREV_SLIDE = "prevSlide", e.RELOAD_PRESENTATION = "reloadPresentation", e.STAR_MESSAGE = "starMessage", e.GOTO_SLIDE = "gotoSlide", e.NEXT_SLIDE = "nextSlide", e.PREFERENCE_LOAD = "loadPreference", e.PREFERENCE_STORE = "storePreference", e.PREFEENCE_UPDATED = "preferenceUpdated", e.PAUSE_PRESENTATION = "pausePresentation", e.PRESENTATION_READY = "presentationReady", e.PRESENTATION_LOAD = "loadPresentation", e.PRESENTATION_STORE = "storePresentation", e.PRESENTATION_UPDATED = "presentationUpdated", e.ROW_COL_UPDATE = "rowcolupdate", e.SCREENSHOT_TAKE = "takeScreenshot", e.SCREENSHOT_STORE = "storeScreenshot", e.SECTION_UPDATE = "sectionUpdate", e.SHOW_BUILDER_DIALOG = "showBuilderDialog", e.SHOW_BUILDER_MODAL = "showBuilderModal", e.SHOW_MODAL = "showModal", e.SLIDE_DID_LOAD = "slideDidLoad", e.SLIDE_GET = "getSlide", e.SLIDE_GOTO = "slideGoto", e.SLIDE_LOAD = "loadSlide", e.SLIDE_READY = "slideReady", e.SLIDE_SAVED = "slideSaved", e.SLIDE_SET = "setSlide", e.SLIDE_STORE = "storeSlide", e.SLIDE_STORED = "slideStored", e.SLIDE_TRANSITIONER = "slideTransitioner", e.SLIDE_UPDATED = "slideUpdated", e.START_TRANSITIONER = "startTransitioner", e.STORAGE_INIT = "storageInit", e.SUBSCRIBE = "subscribe", e.SUSPEND_ACCOUNT = "suspendAccount", e.SWITCH_PRESENTATION = "switchPresentation", e.REMOVE_CLOUD = "removeCloud", e.UPDATE = "update", e.UPLOAD_COMPLETED = "uploadCompleted", e.VERSION = "version", e.WIDGETS_CLEAR = "widgetsClear", e.WIDGET_DID_LOAD = "widgetDidLoad", e.WIDGET_DID_UPDATE = "widgetDidUpdate", e.WIDGET_LOAD = "widgetLoad", e.WIDGET_STORE = "widgetStore", e.WIDGET_UPDATE = "widgetUpdate", e))(L || {}), D = /* @__PURE__ */ ((e) => (e.APPROVED = "approved", e.BEFORE = "before", e.DELAYED = "delayed", e.NONE = "none", e.REALTIME = "realtime", e))(D || {}), P = /* @__PURE__ */ ((e) => (e.KEYVAL = "keyval", e.LOCAL = "local", e.SESSION = "session", e.DEXIE = "dexie", e.WINDOW = "window", e))(P || {});
2
2
  function J(e) {
3
3
  const t = e.toUpperCase().split(/[\s_-]+/);
4
4
  return t.length > 0 ? (t.forEach((r, n) => {
@@ -39,7 +39,7 @@ function V(e) {
39
39
  const t = {};
40
40
  for (let r = 0; r < e.length; r++) {
41
41
  const n = e[r];
42
- n.name !== "class" && (t[n.name] = P(n.value));
42
+ n.name !== "class" && (t[n.name] = v(n.value));
43
43
  }
44
44
  return t;
45
45
  }
@@ -98,7 +98,7 @@ function te(e, t) {
98
98
  function re(e) {
99
99
  return e.replace(/^\w|[A-Z]|\b\w/g, (t, r) => r === 0 ? t.toLowerCase() : t.toUpperCase()).replace(/\s+/g, "");
100
100
  }
101
- function P(e) {
101
+ function v(e) {
102
102
  return e.toLowerCase().split("-").reduce((t, r) => t + (r.charAt(0).toUpperCase() + r.slice(1)));
103
103
  }
104
104
  const ne = (e) => e.charAt(0).toUpperCase() + e.slice(1);
@@ -133,11 +133,11 @@ function E(e) {
133
133
  );
134
134
  }
135
135
  const de = (e) => [...new Set(e)], ue = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
136
- function fe(e, t = "font-bold") {
136
+ function pe(e, t = "font-bold") {
137
137
  return `${e?.title !== null ? `<div class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
138
138
  `).replace(/\n/g, "<br/>") : ""}`;
139
139
  }
140
- const pe = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
140
+ const fe = () => [b(2), b(1), b(1), b(1), b(3)].join("-"), b = (e) => {
141
141
  let t = "";
142
142
  for (let r = 0; r < e; r++)
143
143
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
@@ -148,7 +148,7 @@ function k(e, t) {
148
148
  e = `0${e}`;
149
149
  return e;
150
150
  }
151
- function f(e, t) {
151
+ function p(e, t) {
152
152
  let r, n, o;
153
153
  if (t.length === 0)
154
154
  return e;
@@ -163,25 +163,25 @@ function y(e, t, r) {
163
163
  }
164
164
  }
165
165
  function I(e, t, r, n) {
166
- const o = f(f(f(e, r), M(t)), typeof t);
166
+ const o = p(p(p(e, r), M(t)), typeof t);
167
167
  if (t === null)
168
- return f(o, "null");
168
+ return p(o, "null");
169
169
  if (t === void 0)
170
- return f(o, "undefined");
170
+ return p(o, "undefined");
171
171
  if (typeof t == "object" || typeof t == "function") {
172
172
  if (n.includes(t))
173
- return f(o, `[Circular]${r}`);
173
+ return p(o, `[Circular]${r}`);
174
174
  n.push(t);
175
175
  const a = y(o, t, n);
176
176
  if (!("valueOf" in t) || typeof t.valueOf != "function")
177
177
  return a;
178
178
  try {
179
- return f(a, String(t.valueOf()));
179
+ return p(a, String(t.valueOf()));
180
180
  } catch (l) {
181
- return f(a, `[valueOf exception]${l.stack || l.message}`);
181
+ return p(a, `[valueOf exception]${l.stack || l.message}`);
182
182
  }
183
183
  }
184
- return f(o, t.toString());
184
+ return p(o, t.toString());
185
185
  }
186
186
  function M(e) {
187
187
  return Object.prototype.toString.call(e);
@@ -191,7 +191,7 @@ function ge(e) {
191
191
  }
192
192
  const be = (e) => {
193
193
  let t = "";
194
- return A(e, {
194
+ return x(e, {
195
195
  start: function(r, n, o) {
196
196
  t += "<" + r;
197
197
  for (let a = 0; a < n.length; a++)
@@ -218,7 +218,7 @@ const be = (e) => {
218
218
  }(), t.getElementsByTagName)
219
219
  for (let i in r) r[i] = t.getElementsByTagName(i)[0];
220
220
  let l = r.body;
221
- return A(e, {
221
+ return x(e, {
222
222
  start: function(i, u, c) {
223
223
  if (r[i]) {
224
224
  l = r[i], c || o.push(l);
@@ -242,15 +242,15 @@ const be = (e) => {
242
242
  let t = {}, r = e.split(",");
243
243
  for (let n = 0; n < r.length; n++) t[r[n]] = !0;
244
244
  return t;
245
- }, _ = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, R = /^<\/([-A-Za-z0-9_]+)[^>]*>/, $ = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, S = g(
245
+ }, w = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, R = /^<\/([-A-Za-z0-9_]+)[^>]*>/, U = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, $ = g(
246
246
  "area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"
247
247
  ), C = g(
248
248
  "a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"
249
- ), U = g(
249
+ ), S = g(
250
250
  "abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"
251
251
  ), G = g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), B = g(
252
252
  "checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"
253
- ), T = g("script,style"), A = (e, t) => {
253
+ ), T = g("script,style"), x = (e, t) => {
254
254
  let r, n, o, a = [], l = e;
255
255
  const i = (c, s) => {
256
256
  let d;
@@ -259,14 +259,14 @@ const be = (e) => {
259
259
  for (d = a.length - 1; d >= 0 && a[d] != s; d--)
260
260
  ;
261
261
  if (d >= 0) {
262
- for (let p = a.length - 1; p >= d; p--)
263
- t.end && t.end(a[p]);
262
+ for (let f = a.length - 1; f >= d; f--)
263
+ t.end && t.end(a[f]);
264
264
  a.length = d;
265
265
  }
266
266
  };
267
267
  for (; e; ) {
268
268
  if (n = !0, !a.at(-1) || !T[a.at(-1)]) {
269
- if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (o = e.match(R), o && (e = e.substring(o[0].length), o[0].replace(R, i), n = !1)) : e.indexOf("<") == 0 && (o = e.match(_), o && (e = e.substring(o[0].length), o[0].replace(_, u), n = !1)), n) {
269
+ if (e.indexOf("<!--") == 0 ? (r = e.indexOf("-->"), r >= 0 && (t.comment && t.comment(e.substring(4, r)), e = e.substring(r + 3), n = !1)) : e.indexOf("</") == 0 ? (o = e.match(R), o && (e = e.substring(o[0].length), o[0].replace(R, i), n = !1)) : e.indexOf("<") == 0 && (o = e.match(w), o && (e = e.substring(o[0].length), o[0].replace(w, u), n = !1)), n) {
270
270
  r = e.indexOf("<");
271
271
  let c = r < 0 ? e : e.substring(0, r);
272
272
  e = r < 0 ? "" : e.substring(r), t.chars && t.chars(c);
@@ -286,21 +286,21 @@ const be = (e) => {
286
286
  l = e;
287
287
  }
288
288
  i();
289
- function u(c, s, d, p) {
289
+ function u(c, s, d, f) {
290
290
  if (s = s.toLowerCase(), C[s])
291
- for (; a.at(-1) && U[a.at(-1)]; )
291
+ for (; a.at(-1) && S[a.at(-1)]; )
292
292
  i("", a.at(-1));
293
- if (G[s] && a.at(-1) == s && i("", s), p = S[s] || !!p, p || a.push(s), t.start) {
293
+ if (G[s] && a.at(-1) == s && i("", s), f = $[s] || !!f, f || a.push(s), t.start) {
294
294
  const O = [];
295
- d.replace($, function(Q, x) {
296
- let w = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[x] ? x : "";
295
+ d.replace(U, function(Q, A) {
296
+ let _ = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : B[A] ? A : "";
297
297
  O.push({
298
- name: x,
299
- value: w,
300
- escaped: w.replace(/(^|[^\\])"/g, '$1\\"')
298
+ name: A,
299
+ value: _,
300
+ escaped: _.replace(/(^|[^\\])"/g, '$1\\"')
301
301
  //"
302
302
  });
303
- }), t.start && t.start(s, O, p);
303
+ }), t.start && t.start(s, O, f);
304
304
  }
305
305
  }
306
306
  };
@@ -316,7 +316,7 @@ const he = (e) => {
316
316
  node: "root",
317
317
  child: []
318
318
  };
319
- return A(e, {
319
+ return x(e, {
320
320
  start: function(n, o, a) {
321
321
  let l = {
322
322
  node: "element",
@@ -406,7 +406,7 @@ const he = (e) => {
406
406
  return n !== null ? (n.moveTo(0, 0), n.lineTo(120, 121), n.stroke(), n.getImageData(0, 0, 200, 200).data.join()) : null;
407
407
  };
408
408
  return e(!0) !== e(!1);
409
- }, xe = (e, t = 0, r = !0, n = "en") => {
409
+ }, Ae = (e, t = 0, r = !0, n = "en") => {
410
410
  if (e === void 0) return "";
411
411
  if (e = typeof e == "string" || e instanceof String ? parseFloat(e.replace(/[^0-9.]/g, "")) : e, r === !1)
412
412
  return e.toLocaleString(n);
@@ -424,7 +424,7 @@ const he = (e) => {
424
424
  for (a = o.length - 1; a > 0 && !(e >= o[a].v); a--)
425
425
  ;
426
426
  return (e / o[a].v).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/, "$1") + o[a].s;
427
- }, Ae = (e) => Object.keys(e).length === 0, Oe = (e = 0, t) => {
427
+ }, xe = (e) => Object.keys(e).length === 0, Oe = (e = 0, t) => {
428
428
  switch (!0) {
429
429
  case e > 3:
430
430
  console.debug(...t);
@@ -439,7 +439,7 @@ const he = (e) => {
439
439
  console.error(...t);
440
440
  break;
441
441
  }
442
- }, we = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), _e = (e) => e.replace(/\>\</g, `>
442
+ }, _e = (e) => e.replace(/\<\!--\s*?[^\s?\[][\s\S]*?--\>/g, "").replace(/\>\s*\</g, "><").replace(/\t/g, ""), we = (e) => e.replace(/\>\</g, `>
443
443
  <`), Re = (e) => e.replace(/\/\*.*\*\/|\/\*[\s\S]*?\*\/|\n|\t|\v|\s{2,}/g, "").replace(/\s*\{\s*/g, "{").replace(/\s*\}\s*/g, "}").replace(/\s*\:\s*/g, ":").replace(/\s*\;\s*/g, ";").replace(/\s*\,\s*/g, ",").replace(/\s*\~\s*/g, "~").replace(/\s*\>\s*/g, ">").replace(/\s*\+\s*/g, "+").replace(/\s*\!\s*/g, "!"), Ie = (e) => e.replace(/\,/g, ", ").replace(/\{/g, ` {
444
444
  `).replace(/\}/g, `}
445
445
  `).replace(/\;/g, `;
@@ -459,11 +459,11 @@ function Le(e, t) {
459
459
  ;
460
460
  return (e / r[o].value).toFixed(t).replace(n, "$1") + r[o].symbol;
461
461
  }
462
- function ve(e) {
462
+ function Pe(e) {
463
463
  const t = RegExp(`[?&]${e}=([^&]*)`).exec(window.location.search);
464
464
  return t && decodeURIComponent(t[1].replace(/\+/g, " ")) || null;
465
465
  }
466
- const Pe = (e) => new Proxy(new URLSearchParams(window.location.search), {
466
+ const ve = (e) => new Proxy(new URLSearchParams(window.location.search), {
467
467
  // @ts-ignore
468
468
  get: (r, n) => r.get(n)
469
469
  })[e];
@@ -527,7 +527,7 @@ function Me(e, t, r, n) {
527
527
  props: { data: r, options: n }
528
528
  });
529
529
  }
530
- function $e(e) {
530
+ function Ue(e) {
531
531
  const t = [...e];
532
532
  for (let r = t.length - 1; r > 0; r--) {
533
533
  const n = Math.floor(Math.random() * (r + 1));
@@ -535,7 +535,7 @@ function $e(e) {
535
535
  }
536
536
  return t;
537
537
  }
538
- function Se() {
538
+ function $e() {
539
539
  let e = "";
540
540
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
541
541
  for (let r = 0; r < 7; r++) e += t.charAt(Math.floor(Math.random() * t.length));
@@ -554,7 +554,7 @@ const Ce = (e) => {
554
554
  }
555
555
  }, K = (e = 6) => Math.random().toString(36).substring(2, e + 2), Y = (e, t = []) => !t.find(function(n) {
556
556
  return n === e;
557
- }), Ue = (e, t = []) => {
557
+ }), Se = (e, t = []) => {
558
558
  let n = 0, o = "";
559
559
  for (; o == "" && n < 100; )
560
560
  o = K(e), Y(o, t) || (o = "", n++);
@@ -602,12 +602,12 @@ export {
602
602
  h as API,
603
603
  m as CSS,
604
604
  L as EVENTS,
605
- A as HTMLParser,
605
+ x as HTMLParser,
606
606
  me as HTMLtoDOM,
607
607
  be as HTMLtoXML,
608
608
  D as MODERATION,
609
609
  ce as RGBAchangeA,
610
- v as STORAGE,
610
+ P as STORAGE,
611
611
  j as ShapeType,
612
612
  X as Type,
613
613
  J as anonymize,
@@ -615,7 +615,7 @@ export {
615
615
  q as attrs,
616
616
  ee as awaitElement,
617
617
  te as brandLogo,
618
- P as camelCase,
618
+ v as camelCase,
619
619
  V as camelCasedProps,
620
620
  re as camelize,
621
621
  ne as capitalizeFirstLetter,
@@ -623,22 +623,22 @@ export {
623
623
  E as deepMerge,
624
624
  ue as escape,
625
625
  N as filterAttributes,
626
- fe as formatContent,
627
- pe as getGuid,
626
+ pe as formatContent,
627
+ fe as getGuid,
628
628
  Te as getKey,
629
- ve as getParameterByName,
630
- Pe as getQueryParam,
629
+ Pe as getParameterByName,
630
+ ve as getQueryParam,
631
631
  De as hasHWA,
632
632
  ge as hashSum,
633
633
  he as html2json,
634
- xe as intToString,
635
- Ae as isEmpty,
634
+ Ae as intToString,
635
+ xe as isEmpty,
636
636
  F as json2html,
637
637
  Oe as log,
638
638
  Ie as maxifyCss,
639
- _e as maxifyHtml,
639
+ we as maxifyHtml,
640
640
  Re as minifyCss,
641
- we as minifyHtml,
641
+ _e as minifyHtml,
642
642
  We as moderation,
643
643
  Le as numberFormatter,
644
644
  ae as randomColor,
@@ -649,10 +649,10 @@ export {
649
649
  ke as rtl,
650
650
  ye as sanitize,
651
651
  Me as showModal,
652
- $e as shuffleMessages,
653
- Se as stringGen,
652
+ Ue as shuffleMessages,
653
+ $e as stringGen,
654
654
  Ce as typeCss,
655
- Ue as uniq,
655
+ Se as uniq,
656
656
  de as unique,
657
657
  Ge as upDownColor,
658
658
  He as widgetParams,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-utils",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.8.1",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",