acsi-core 0.9.9 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
2
 
3
+ var history = require('history');
4
+ var Cookies = _interopDefault(require('js-cookie'));
5
+ var dompurify = _interopDefault(require('dompurify'));
3
6
  var toolkit = require('@reduxjs/toolkit');
4
7
  var React = require('react');
5
8
  var React__default = _interopDefault(React);
@@ -11,11 +14,12 @@ var reactstrap = require('reactstrap');
11
14
  var ReactSelect = require('react-select');
12
15
  var ReactSelect__default = _interopDefault(ReactSelect);
13
16
  var ReactMarkdown = _interopDefault(require('react-markdown'));
17
+ var remarkGfm = _interopDefault(require('remark-gfm'));
14
18
  var remarkMath = _interopDefault(require('remark-math'));
15
19
  var rehypeKatex = _interopDefault(require('rehype-katex'));
20
+ var remarkRehype = _interopDefault(require('remark-rehype'));
16
21
  var rehypeRaw = _interopDefault(require('rehype-raw'));
17
22
  require('katex/dist/katex.min.css');
18
- var Cookies = _interopDefault(require('js-cookie'));
19
23
  var moment = _interopDefault(require('moment'));
20
24
  var reactToastify = require('react-toastify');
21
25
  var reactGoogleLogin = require('@leecheuk/react-google-login');
@@ -26,592 +30,6 @@ var Sentry = require('@sentry/react');
26
30
  var fa = require('react-icons/fa');
27
31
  var CreatableSelect = _interopDefault(require('react-select/creatable'));
28
32
 
29
- function _extends() {
30
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
31
- for (var e = 1; e < arguments.length; e++) {
32
- var t = arguments[e];
33
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
34
- }
35
- return n;
36
- }, _extends.apply(null, arguments);
37
- }
38
-
39
- function isAbsolute(pathname) {
40
- return pathname.charAt(0) === '/';
41
- }
42
-
43
- // About 1.5x faster than the two-arg version of Array#splice()
44
- function spliceOne(list, index) {
45
- for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
46
- list[i] = list[k];
47
- }
48
-
49
- list.pop();
50
- }
51
-
52
- // This implementation is based heavily on node's url.parse
53
- function resolvePathname(to, from) {
54
- if (from === undefined) from = '';
55
-
56
- var toParts = (to && to.split('/')) || [];
57
- var fromParts = (from && from.split('/')) || [];
58
-
59
- var isToAbs = to && isAbsolute(to);
60
- var isFromAbs = from && isAbsolute(from);
61
- var mustEndAbs = isToAbs || isFromAbs;
62
-
63
- if (to && isAbsolute(to)) {
64
- // to is absolute
65
- fromParts = toParts;
66
- } else if (toParts.length) {
67
- // to is relative, drop the filename
68
- fromParts.pop();
69
- fromParts = fromParts.concat(toParts);
70
- }
71
-
72
- if (!fromParts.length) return '/';
73
-
74
- var hasTrailingSlash;
75
- if (fromParts.length) {
76
- var last = fromParts[fromParts.length - 1];
77
- hasTrailingSlash = last === '.' || last === '..' || last === '';
78
- } else {
79
- hasTrailingSlash = false;
80
- }
81
-
82
- var up = 0;
83
- for (var i = fromParts.length; i >= 0; i--) {
84
- var part = fromParts[i];
85
-
86
- if (part === '.') {
87
- spliceOne(fromParts, i);
88
- } else if (part === '..') {
89
- spliceOne(fromParts, i);
90
- up++;
91
- } else if (up) {
92
- spliceOne(fromParts, i);
93
- up--;
94
- }
95
- }
96
-
97
- if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
98
-
99
- if (
100
- mustEndAbs &&
101
- fromParts[0] !== '' &&
102
- (!fromParts[0] || !isAbsolute(fromParts[0]))
103
- )
104
- fromParts.unshift('');
105
-
106
- var result = fromParts.join('/');
107
-
108
- if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
109
-
110
- return result;
111
- }
112
-
113
- var isProduction = process.env.NODE_ENV === 'production';
114
- function warning(condition, message) {
115
- if (!isProduction) {
116
- if (condition) {
117
- return;
118
- }
119
-
120
- var text = "Warning: " + message;
121
-
122
- if (typeof console !== 'undefined') {
123
- console.warn(text);
124
- }
125
-
126
- try {
127
- throw Error(text);
128
- } catch (x) {}
129
- }
130
- }
131
-
132
- var isProduction$1 = process.env.NODE_ENV === 'production';
133
- var prefix = 'Invariant failed';
134
- function invariant(condition, message) {
135
- if (condition) {
136
- return;
137
- }
138
- if (isProduction$1) {
139
- throw new Error(prefix);
140
- }
141
- var provided = typeof message === 'function' ? message() : message;
142
- var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
143
- throw new Error(value);
144
- }
145
-
146
- function addLeadingSlash(path) {
147
- return path.charAt(0) === '/' ? path : '/' + path;
148
- }
149
- function hasBasename(path, prefix) {
150
- return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
151
- }
152
- function stripBasename(path, prefix) {
153
- return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
154
- }
155
- function stripTrailingSlash(path) {
156
- return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
157
- }
158
- function parsePath(path) {
159
- var pathname = path || '/';
160
- var search = '';
161
- var hash = '';
162
- var hashIndex = pathname.indexOf('#');
163
-
164
- if (hashIndex !== -1) {
165
- hash = pathname.substr(hashIndex);
166
- pathname = pathname.substr(0, hashIndex);
167
- }
168
-
169
- var searchIndex = pathname.indexOf('?');
170
-
171
- if (searchIndex !== -1) {
172
- search = pathname.substr(searchIndex);
173
- pathname = pathname.substr(0, searchIndex);
174
- }
175
-
176
- return {
177
- pathname: pathname,
178
- search: search === '?' ? '' : search,
179
- hash: hash === '#' ? '' : hash
180
- };
181
- }
182
- function createPath(location) {
183
- var pathname = location.pathname,
184
- search = location.search,
185
- hash = location.hash;
186
- var path = pathname || '/';
187
- if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
188
- if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
189
- return path;
190
- }
191
-
192
- function createLocation(path, state, key, currentLocation) {
193
- var location;
194
-
195
- if (typeof path === 'string') {
196
- // Two-arg form: push(path, state)
197
- location = parsePath(path);
198
- location.state = state;
199
- } else {
200
- // One-arg form: push(location)
201
- location = _extends({}, path);
202
- if (location.pathname === undefined) location.pathname = '';
203
-
204
- if (location.search) {
205
- if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
206
- } else {
207
- location.search = '';
208
- }
209
-
210
- if (location.hash) {
211
- if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
212
- } else {
213
- location.hash = '';
214
- }
215
-
216
- if (state !== undefined && location.state === undefined) location.state = state;
217
- }
218
-
219
- try {
220
- location.pathname = decodeURI(location.pathname);
221
- } catch (e) {
222
- if (e instanceof URIError) {
223
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
224
- } else {
225
- throw e;
226
- }
227
- }
228
-
229
- if (key) location.key = key;
230
-
231
- if (currentLocation) {
232
- // Resolve incomplete/relative pathname relative to current location.
233
- if (!location.pathname) {
234
- location.pathname = currentLocation.pathname;
235
- } else if (location.pathname.charAt(0) !== '/') {
236
- location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
237
- }
238
- } else {
239
- // When there is no prior location and pathname is empty, set it to /
240
- if (!location.pathname) {
241
- location.pathname = '/';
242
- }
243
- }
244
-
245
- return location;
246
- }
247
-
248
- function createTransitionManager() {
249
- var prompt = null;
250
-
251
- function setPrompt(nextPrompt) {
252
- process.env.NODE_ENV !== "production" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;
253
- prompt = nextPrompt;
254
- return function () {
255
- if (prompt === nextPrompt) prompt = null;
256
- };
257
- }
258
-
259
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
260
- // TODO: If another transition starts while we're still confirming
261
- // the previous one, we may end up in a weird state. Figure out the
262
- // best way to handle this.
263
- if (prompt != null) {
264
- var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
265
-
266
- if (typeof result === 'string') {
267
- if (typeof getUserConfirmation === 'function') {
268
- getUserConfirmation(result, callback);
269
- } else {
270
- process.env.NODE_ENV !== "production" ? warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
271
- callback(true);
272
- }
273
- } else {
274
- // Return false from a transition hook to cancel the transition.
275
- callback(result !== false);
276
- }
277
- } else {
278
- callback(true);
279
- }
280
- }
281
-
282
- var listeners = [];
283
-
284
- function appendListener(fn) {
285
- var isActive = true;
286
-
287
- function listener() {
288
- if (isActive) fn.apply(void 0, arguments);
289
- }
290
-
291
- listeners.push(listener);
292
- return function () {
293
- isActive = false;
294
- listeners = listeners.filter(function (item) {
295
- return item !== listener;
296
- });
297
- };
298
- }
299
-
300
- function notifyListeners() {
301
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
302
- args[_key] = arguments[_key];
303
- }
304
-
305
- listeners.forEach(function (listener) {
306
- return listener.apply(void 0, args);
307
- });
308
- }
309
-
310
- return {
311
- setPrompt: setPrompt,
312
- confirmTransitionTo: confirmTransitionTo,
313
- appendListener: appendListener,
314
- notifyListeners: notifyListeners
315
- };
316
- }
317
-
318
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
319
- function getConfirmation(message, callback) {
320
- callback(window.confirm(message)); // eslint-disable-line no-alert
321
- }
322
- /**
323
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
324
- *
325
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
326
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
327
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
328
- */
329
-
330
- function supportsHistory() {
331
- var ua = window.navigator.userAgent;
332
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
333
- return window.history && 'pushState' in window.history;
334
- }
335
- /**
336
- * Returns true if browser fires popstate on hash change.
337
- * IE10 and IE11 do not.
338
- */
339
-
340
- function supportsPopStateOnHashChange() {
341
- return window.navigator.userAgent.indexOf('Trident') === -1;
342
- }
343
- /**
344
- * Returns true if a given popstate event is an extraneous WebKit event.
345
- * Accounts for the fact that Chrome on iOS fires real popstate events
346
- * containing undefined state when pressing the back button.
347
- */
348
-
349
- function isExtraneousPopstateEvent(event) {
350
- return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
351
- }
352
-
353
- var PopStateEvent = 'popstate';
354
- var HashChangeEvent = 'hashchange';
355
-
356
- function getHistoryState() {
357
- try {
358
- return window.history.state || {};
359
- } catch (e) {
360
- // IE 11 sometimes throws when accessing window.history.state
361
- // See https://github.com/ReactTraining/history/pull/289
362
- return {};
363
- }
364
- }
365
- /**
366
- * Creates a history object that uses the HTML5 history API including
367
- * pushState, replaceState, and the popstate event.
368
- */
369
-
370
-
371
- function createBrowserHistory(props) {
372
- if (props === void 0) {
373
- props = {};
374
- }
375
-
376
- !canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, 'Browser history needs a DOM') : invariant(false) : void 0;
377
- var globalHistory = window.history;
378
- var canUseHistory = supportsHistory();
379
- var needsHashChangeListener = !supportsPopStateOnHashChange();
380
- var _props = props,
381
- _props$forceRefresh = _props.forceRefresh,
382
- forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
383
- _props$getUserConfirm = _props.getUserConfirmation,
384
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
385
- _props$keyLength = _props.keyLength,
386
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
387
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
388
-
389
- function getDOMLocation(historyState) {
390
- var _ref = historyState || {},
391
- key = _ref.key,
392
- state = _ref.state;
393
-
394
- var _window$location = window.location,
395
- pathname = _window$location.pathname,
396
- search = _window$location.search,
397
- hash = _window$location.hash;
398
- var path = pathname + search + hash;
399
- process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
400
- if (basename) path = stripBasename(path, basename);
401
- return createLocation(path, state, key);
402
- }
403
-
404
- function createKey() {
405
- return Math.random().toString(36).substr(2, keyLength);
406
- }
407
-
408
- var transitionManager = createTransitionManager();
409
-
410
- function setState(nextState) {
411
- _extends(history, nextState);
412
-
413
- history.length = globalHistory.length;
414
- transitionManager.notifyListeners(history.location, history.action);
415
- }
416
-
417
- function handlePopState(event) {
418
- // Ignore extraneous popstate events in WebKit.
419
- if (isExtraneousPopstateEvent(event)) return;
420
- handlePop(getDOMLocation(event.state));
421
- }
422
-
423
- function handleHashChange() {
424
- handlePop(getDOMLocation(getHistoryState()));
425
- }
426
-
427
- var forceNextPop = false;
428
-
429
- function handlePop(location) {
430
- if (forceNextPop) {
431
- forceNextPop = false;
432
- setState();
433
- } else {
434
- var action = 'POP';
435
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
436
- if (ok) {
437
- setState({
438
- action: action,
439
- location: location
440
- });
441
- } else {
442
- revertPop(location);
443
- }
444
- });
445
- }
446
- }
447
-
448
- function revertPop(fromLocation) {
449
- var toLocation = history.location; // TODO: We could probably make this more reliable by
450
- // keeping a list of keys we've seen in sessionStorage.
451
- // Instead, we just default to 0 for keys we don't know.
452
-
453
- var toIndex = allKeys.indexOf(toLocation.key);
454
- if (toIndex === -1) toIndex = 0;
455
- var fromIndex = allKeys.indexOf(fromLocation.key);
456
- if (fromIndex === -1) fromIndex = 0;
457
- var delta = toIndex - fromIndex;
458
-
459
- if (delta) {
460
- forceNextPop = true;
461
- go(delta);
462
- }
463
- }
464
-
465
- var initialLocation = getDOMLocation(getHistoryState());
466
- var allKeys = [initialLocation.key]; // Public interface
467
-
468
- function createHref(location) {
469
- return basename + createPath(location);
470
- }
471
-
472
- function push(path, state) {
473
- process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
474
- var action = 'PUSH';
475
- var location = createLocation(path, state, createKey(), history.location);
476
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
477
- if (!ok) return;
478
- var href = createHref(location);
479
- var key = location.key,
480
- state = location.state;
481
-
482
- if (canUseHistory) {
483
- globalHistory.pushState({
484
- key: key,
485
- state: state
486
- }, null, href);
487
-
488
- if (forceRefresh) {
489
- window.location.href = href;
490
- } else {
491
- var prevIndex = allKeys.indexOf(history.location.key);
492
- var nextKeys = allKeys.slice(0, prevIndex + 1);
493
- nextKeys.push(location.key);
494
- allKeys = nextKeys;
495
- setState({
496
- action: action,
497
- location: location
498
- });
499
- }
500
- } else {
501
- process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
502
- window.location.href = href;
503
- }
504
- });
505
- }
506
-
507
- function replace(path, state) {
508
- process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
509
- var action = 'REPLACE';
510
- var location = createLocation(path, state, createKey(), history.location);
511
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
512
- if (!ok) return;
513
- var href = createHref(location);
514
- var key = location.key,
515
- state = location.state;
516
-
517
- if (canUseHistory) {
518
- globalHistory.replaceState({
519
- key: key,
520
- state: state
521
- }, null, href);
522
-
523
- if (forceRefresh) {
524
- window.location.replace(href);
525
- } else {
526
- var prevIndex = allKeys.indexOf(history.location.key);
527
- if (prevIndex !== -1) allKeys[prevIndex] = location.key;
528
- setState({
529
- action: action,
530
- location: location
531
- });
532
- }
533
- } else {
534
- process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
535
- window.location.replace(href);
536
- }
537
- });
538
- }
539
-
540
- function go(n) {
541
- globalHistory.go(n);
542
- }
543
-
544
- function goBack() {
545
- go(-1);
546
- }
547
-
548
- function goForward() {
549
- go(1);
550
- }
551
-
552
- var listenerCount = 0;
553
-
554
- function checkDOMListeners(delta) {
555
- listenerCount += delta;
556
-
557
- if (listenerCount === 1 && delta === 1) {
558
- window.addEventListener(PopStateEvent, handlePopState);
559
- if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
560
- } else if (listenerCount === 0) {
561
- window.removeEventListener(PopStateEvent, handlePopState);
562
- if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
563
- }
564
- }
565
-
566
- var isBlocked = false;
567
-
568
- function block(prompt) {
569
- if (prompt === void 0) {
570
- prompt = false;
571
- }
572
-
573
- var unblock = transitionManager.setPrompt(prompt);
574
-
575
- if (!isBlocked) {
576
- checkDOMListeners(1);
577
- isBlocked = true;
578
- }
579
-
580
- return function () {
581
- if (isBlocked) {
582
- isBlocked = false;
583
- checkDOMListeners(-1);
584
- }
585
-
586
- return unblock();
587
- };
588
- }
589
-
590
- function listen(listener) {
591
- var unlisten = transitionManager.appendListener(listener);
592
- checkDOMListeners(1);
593
- return function () {
594
- checkDOMListeners(-1);
595
- unlisten();
596
- };
597
- }
598
-
599
- var history = {
600
- length: globalHistory.length,
601
- action: 'POP',
602
- location: initialLocation,
603
- createHref: createHref,
604
- push: push,
605
- replace: replace,
606
- go: go,
607
- goBack: goBack,
608
- goForward: goForward,
609
- block: block,
610
- listen: listen
611
- };
612
- return history;
613
- }
614
-
615
33
  var setLoading = toolkit.createAction("common/setLoading");
616
34
  var setLoadingPage = toolkit.createAction("common/setLoadingPage");
617
35
  var setAlert = toolkit.createAction("common/setAlert");
@@ -711,14 +129,14 @@ function _createForOfIteratorHelperLoose(r, e) {
711
129
  }
712
130
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
713
131
  }
714
- function _extends$1() {
715
- return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
132
+ function _extends() {
133
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
716
134
  for (var e = 1; e < arguments.length; e++) {
717
135
  var t = arguments[e];
718
136
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
719
137
  }
720
138
  return n;
721
- }, _extends$1.apply(null, arguments);
139
+ }, _extends.apply(null, arguments);
722
140
  }
723
141
  function _objectWithoutPropertiesLoose(r, e) {
724
142
  if (null == r) return {};
@@ -864,7 +282,7 @@ var CoreSelect = function CoreSelect(props) {
864
282
  onChange(name, newValue);
865
283
  };
866
284
  var controlStyle = function controlStyle(base, state) {
867
- var styles = _extends$1({}, base, {
285
+ var styles = _extends({}, base, {
868
286
  fontSize: "14px",
869
287
  fontWeight: "400",
870
288
  padding: "0 4px",
@@ -893,7 +311,7 @@ var CoreSelect = function CoreSelect(props) {
893
311
  return styles;
894
312
  };
895
313
  var inputStyles = function inputStyles(base) {
896
- var styles = _extends$1({}, base, {
314
+ var styles = _extends({}, base, {
897
315
  margin: "0",
898
316
  padding: "0",
899
317
  color: "inherit"
@@ -901,13 +319,13 @@ var CoreSelect = function CoreSelect(props) {
901
319
  return styles;
902
320
  };
903
321
  var placeholderStyles = function placeholderStyles(base) {
904
- var styles = _extends$1({}, base, {
322
+ var styles = _extends({}, base, {
905
323
  color: COLORS.lightGray
906
324
  });
907
325
  return styles;
908
326
  };
909
327
  var dropdownIndicatorStyles = function dropdownIndicatorStyles(base) {
910
- var styles = _extends$1({}, base, {
328
+ var styles = _extends({}, base, {
911
329
  position: "relative",
912
330
  top: "-4px",
913
331
  padding: "8px 0"
@@ -915,7 +333,7 @@ var CoreSelect = function CoreSelect(props) {
915
333
  return styles;
916
334
  };
917
335
  var valueContainerStyles = function valueContainerStyles(base) {
918
- var styles = _extends$1({}, base, {
336
+ var styles = _extends({}, base, {
919
337
  height: isMulti ? undefined : "32px",
920
338
  position: "relative",
921
339
  top: "-3px"
@@ -923,11 +341,11 @@ var CoreSelect = function CoreSelect(props) {
923
341
  return styles;
924
342
  };
925
343
  var singleValueStyles = function singleValueStyles(base) {
926
- var styles = _extends$1({}, base);
344
+ var styles = _extends({}, base);
927
345
  return styles;
928
346
  };
929
347
  var optionStyles = function optionStyles(base, state) {
930
- var styles = _extends$1({}, base, {
348
+ var styles = _extends({}, base, {
931
349
  padding: "8px",
932
350
  borderRadius: "8px",
933
351
  cursor: "pointer",
@@ -941,13 +359,13 @@ var CoreSelect = function CoreSelect(props) {
941
359
  return styles;
942
360
  };
943
361
  var indicatorsContainerStyles = function indicatorsContainerStyles(base) {
944
- var styles = _extends$1({}, base, {
362
+ var styles = _extends({}, base, {
945
363
  display: type === "no-outline" ? "none" : "block"
946
364
  });
947
365
  return styles;
948
366
  };
949
367
  var multiValueStyles = function multiValueStyles(base) {
950
- var styles = _extends$1({}, base, {
368
+ var styles = _extends({}, base, {
951
369
  backgroundColor: COLORS.lightBlue,
952
370
  borderRadius: "4px",
953
371
  padding: "2px 8px",
@@ -959,14 +377,14 @@ var CoreSelect = function CoreSelect(props) {
959
377
  return styles;
960
378
  };
961
379
  var multiValueRemoveStyles = function multiValueRemoveStyles(base) {
962
- var styles = _extends$1({}, base, {
380
+ var styles = _extends({}, base, {
963
381
  color: COLORS.lightGray,
964
382
  cursor: "pointer"
965
383
  });
966
384
  return styles;
967
385
  };
968
386
  var multiValueLabelStyles = function multiValueLabelStyles(base) {
969
- var styles = _extends$1({}, base, {
387
+ var styles = _extends({}, base, {
970
388
  color: COLORS.blackText,
971
389
  fontWeight: "400",
972
390
  fontSize: "13px",
@@ -1405,7 +823,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1405
823
  onChange(name, newValue);
1406
824
  };
1407
825
  var controlStyle = function controlStyle(base, state) {
1408
- var styles = _extends$1({}, base, {
826
+ var styles = _extends({}, base, {
1409
827
  fontSize: "14px",
1410
828
  fontWeight: "400",
1411
829
  backgroundColor: state.isDisabled ? "transparent" : error ? COLORS.lightYellow : COLORS.white,
@@ -1426,7 +844,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1426
844
  return styles;
1427
845
  };
1428
846
  var inputStyles = function inputStyles(base) {
1429
- var styles = _extends$1({}, base, {
847
+ var styles = _extends({}, base, {
1430
848
  margin: "0",
1431
849
  padding: "0",
1432
850
  color: "inherit",
@@ -1436,37 +854,37 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1436
854
  return styles;
1437
855
  };
1438
856
  var placeholderStyles = function placeholderStyles(base) {
1439
- var styles = _extends$1({}, base, {
857
+ var styles = _extends({}, base, {
1440
858
  color: COLORS.lightGray
1441
859
  });
1442
860
  return styles;
1443
861
  };
1444
862
  var dropdownIndicatorStyles = function dropdownIndicatorStyles(base) {
1445
- var styles = _extends$1({}, base, {
863
+ var styles = _extends({}, base, {
1446
864
  position: "relative",
1447
865
  padding: "2px 0"
1448
866
  });
1449
867
  return styles;
1450
868
  };
1451
869
  var indicatorsContainerStyles = function indicatorsContainerStyles(base) {
1452
- var styles = _extends$1({}, base, {
870
+ var styles = _extends({}, base, {
1453
871
  display: isShowDropdown && !isMulti ? "block" : "none"
1454
872
  });
1455
873
  return styles;
1456
874
  };
1457
875
  var valueContainerStyles = function valueContainerStyles(base) {
1458
- var styles = _extends$1({}, base, {
876
+ var styles = _extends({}, base, {
1459
877
  height: isMulti ? undefined : "26px",
1460
878
  position: "relative"
1461
879
  });
1462
880
  return styles;
1463
881
  };
1464
882
  var singleValueStyles = function singleValueStyles(base) {
1465
- var styles = _extends$1({}, base);
883
+ var styles = _extends({}, base);
1466
884
  return styles;
1467
885
  };
1468
886
  var optionStyles = function optionStyles(base, state) {
1469
- var styles = _extends$1({}, base, {
887
+ var styles = _extends({}, base, {
1470
888
  padding: "8px",
1471
889
  borderRadius: "8px",
1472
890
  cursor: "pointer",
@@ -1481,7 +899,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1481
899
  return styles;
1482
900
  };
1483
901
  var multiValueStyles = function multiValueStyles(base) {
1484
- var styles = _extends$1({}, base, {
902
+ var styles = _extends({}, base, {
1485
903
  backgroundColor: COLORS.lightBlue,
1486
904
  borderRadius: "4px",
1487
905
  padding: "0 4px",
@@ -1493,14 +911,14 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1493
911
  return styles;
1494
912
  };
1495
913
  var multiValueRemoveStyles = function multiValueRemoveStyles(base) {
1496
- var styles = _extends$1({}, base, {
914
+ var styles = _extends({}, base, {
1497
915
  color: COLORS.lightGray,
1498
916
  cursor: "pointer"
1499
917
  });
1500
918
  return styles;
1501
919
  };
1502
920
  var multiValueLabelStyles = function multiValueLabelStyles(base) {
1503
- var styles = _extends$1({}, base, {
921
+ var styles = _extends({}, base, {
1504
922
  color: COLORS.blackText,
1505
923
  fontWeight: "400",
1506
924
  fontSize: "13px",
@@ -2074,33 +1492,40 @@ var LatexExtractor = /*#__PURE__*/function () {
2074
1492
  LatexExtractor.LATEX_COMMANDS = ['\\frac', '\\sqrt', '\\sum', '\\prod', '\\int', '\\oint', '\\lim', '\\sin', '\\cos', '\\tan', '\\log', '\\ln', '\\exp', '\\alpha', '\\beta', '\\gamma', '\\delta', '\\epsilon', '\\varepsilon', '\\zeta', '\\eta', '\\theta', '\\vartheta', '\\iota', '\\kappa', '\\lambda', '\\mu', '\\nu', '\\xi', '\\pi', '\\varpi', '\\rho', '\\varrho', '\\sigma', '\\varsigma', '\\tau', "\\upsilon", '\\phi', '\\varphi', '\\chi', '\\psi', '\\omega', '\\Gamma', '\\Delta', '\\Theta', '\\Lambda', '\\Xi', '\\Pi', '\\Sigma', "\\Upsilon", '\\Phi', '\\Psi', '\\Omega', '\\to', '\\gets', '\\mapsto', '\\implies', '\\iff', '\\leftrightarrow', '\\longleftarrow', '\\longrightarrow', '\\longleftrightarrow', '\\Leftarrow', '\\Rightarrow', '\\Leftrightarrow', '\\le', '\\ge', '\\leq', '\\geq', '\\lt', '\\gt', '\\neq', '\\approx', '\\equiv', '\\sim', '\\cong', '\\leqslant', '\\geqslant', '\\parallel', '\\perp', '\\in', '\\notin', '\\subset', '\\subseteq', '\\cup', '\\cap', '\\emptyset', '\\forall', '\\exists', '\\nexists', '\\wedge', '\\vee', '\\neg', '\\partial', '\\nabla', '\\infty', '\\pm', '\\mp', '\\vec', '\\overrightarrow', "\\underrightarrow", '\\overline', "\\underline", '\\widehat', '\\widetilde', '\\overbrace', "\\underbrace", '\\mathbb', '\\mathrm', '\\mathcal', '\\mathfrak', '\\mathscr', '\\text', '\\textbf', '\\textit', '\\left', '\\right', '\\lfloor', '\\rfloor', '\\lceil', '\\rceil', '\\langle', '\\rangle', '\\cdot', '\\times', '\\div', '\\parallel', '\\angle', '\\bot', '\\newline', '\\ldots', '\\cdots', '\\vdots', '\\ddots'];
2075
1493
  LatexExtractor.LATEX_PATTERNS = [/[a-zA-Z0-9]_\{[^}]*\}/g, /[a-zA-Z0-9]\^\{[^}]*\}/g, /\\[a-zA-Z]+\s*\{[^}]*\}(?:\s*\{[^}]*\})*/g, /\\[a-zA-Z]+(?![a-zA-Z])/g, /\\frac\s*\{[^}]*\}\s*\{[^}]*\}/g, /\\sqrt(?:\[[^\]]*\])?\s*\{[^}]*\}/g, /\\vec\s*\{[^}]*\}/g, /\\(?:alpha|beta|gamma|delta|epsilon|varepsilon|zeta|eta|theta|vartheta|iota|kappa|lambda|mu|nu|xi|pi|varpi|rho|varrho|sigma|varsigma|tau|upsilon|phi|varphi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?![a-zA-Z])/g, /[a-zA-Z0-9_{}\\]+\s*=\s*[a-zA-Z0-9_{}\\+\-*/^().\s]+/g, /\\Delta\s*[a-zA-Z]/g, /[a-zA-Z]+_\{[a-zA-Z0-9]+\}/g, /[a-zA-Z0-9_{}\\]+\s*[+\-*/]\s*[a-zA-Z0-9_{}\\().\s]+/g, /,\s*([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^]\s*[a-zA-Z0-9_{}\\().\s]*)*)/g, /([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^]\s*[a-zA-Z0-9_{}\\().\s]*)*)\s*,/g, /\bto\s+([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^~≈]\s*[a-zA-Z0-9_{}\\().\s]*)*)/g, /([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^~≈]\s*[a-zA-Z0-9_{}\\().\s]*)*)\s+to\b/g];
2076
1494
 
1495
+ var _excluded$3 = ["node"];
2077
1496
  var MarkdownRenderer = function MarkdownRenderer(_ref) {
2078
1497
  var content = _ref.content;
2079
1498
  var formattedContent = formatContent(content);
2080
1499
  return React__default.createElement("span", null, React__default.createElement(ReactMarkdown, {
2081
- remarkPlugins: [remarkMath],
2082
- rehypePlugins: [rehypeKatex, rehypeRaw]
1500
+ remarkPlugins: [remarkMath, remarkGfm, remarkRehype],
1501
+ rehypePlugins: [rehypeKatex, rehypeRaw],
1502
+ components: {
1503
+ p: function p(_ref2) {
1504
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
1505
+ return React__default.createElement("span", Object.assign({}, props));
1506
+ }
1507
+ }
2083
1508
  }, formattedContent));
2084
1509
  };
2085
1510
  function formatContent(content) {
2086
1511
  if (!content || content.trim() === "") {
2087
1512
  return content;
2088
1513
  }
2089
- var processedContent = content.replace(/\s*\\\\\s*/g, '\n');
1514
+ var processedContent = content.replace(/\s*\\\\\s*/g, "\n");
2090
1515
  var lines = processedContent.split("\n");
2091
1516
  var result = [];
2092
1517
  var i = 0;
2093
1518
  while (i < lines.length) {
2094
1519
  var line = lines[i].trim();
2095
- if (line === '') {
2096
- result.push('');
1520
+ if (line === "") {
1521
+ result.push("");
2097
1522
  i++;
2098
1523
  continue;
2099
1524
  }
2100
1525
  var isEquationLabel = /\\textit\{.*(?:Relevant|Derived).*equation.*\}/i.test(line) || /^(?:Relevant|Derived)\s+equation:\s*$/i.test(line);
2101
1526
  if (isEquationLabel) {
2102
1527
  var processedLabel = line;
2103
- if (line.includes('\\textit{') && !line.startsWith('$')) {
1528
+ if (line.includes("\\textit{") && !line.startsWith("$")) {
2104
1529
  processedLabel = "$" + line + "$";
2105
1530
  }
2106
1531
  result.push(processedLabel);
@@ -3013,7 +2438,7 @@ function kindOf(val) {
3013
2438
  }
3014
2439
 
3015
2440
  // src/utils/warning.ts
3016
- function warning$1(message) {
2441
+ function warning(message) {
3017
2442
  if (typeof console !== "undefined" && typeof console.error === "function") {
3018
2443
  console.error(message);
3019
2444
  }
@@ -3066,7 +2491,7 @@ function combineReducers(reducers) {
3066
2491
  const key = reducerKeys[i];
3067
2492
  if (process.env.NODE_ENV !== "production") {
3068
2493
  if (typeof reducers[key] === "undefined") {
3069
- warning$1(`No reducer provided for key "${key}"`);
2494
+ warning(`No reducer provided for key "${key}"`);
3070
2495
  }
3071
2496
  }
3072
2497
  if (typeof reducers[key] === "function") {
@@ -3091,7 +2516,7 @@ function combineReducers(reducers) {
3091
2516
  if (process.env.NODE_ENV !== "production") {
3092
2517
  const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
3093
2518
  if (warningMessage) {
3094
- warning$1(warningMessage);
2519
+ warning(warningMessage);
3095
2520
  }
3096
2521
  }
3097
2522
  let hasChanged = false;
@@ -3470,7 +2895,7 @@ var useAmplitude = function useAmplitude() {
3470
2895
  var savedUserProperties = React.useRef({});
3471
2896
  var hasTrackedInitialSession = React.useRef(false);
3472
2897
  var setUserProperties = React.useCallback(function (properties) {
3473
- savedUserProperties.current = _extends$1({}, savedUserProperties.current, properties);
2898
+ savedUserProperties.current = _extends({}, savedUserProperties.current, properties);
3474
2899
  var identify = new amplitude.Identify();
3475
2900
  Object.entries(properties).forEach(function (_ref) {
3476
2901
  var key = _ref[0],
@@ -3482,7 +2907,7 @@ var useAmplitude = function useAmplitude() {
3482
2907
  var trackEvent = React.useCallback(function (_ref2) {
3483
2908
  var eventName = _ref2.eventName,
3484
2909
  eventProperties = _ref2.eventProperties;
3485
- amplitude.track(eventName, _extends$1({}, savedUserProperties.current, eventProperties, {
2910
+ amplitude.track(eventName, _extends({}, savedUserProperties.current, eventProperties, {
3486
2911
  timestamp: new Date().toISOString()
3487
2912
  }));
3488
2913
  }, []);
@@ -3669,7 +3094,7 @@ var getErrorMessage = function getErrorMessage(error, defaultErrorMessage) {
3669
3094
 
3670
3095
  var customStyles = {
3671
3096
  control: function control(baseStyles, state) {
3672
- return _extends$1({}, baseStyles, {
3097
+ return _extends({}, baseStyles, {
3673
3098
  fontSize: "14px",
3674
3099
  fontWeight: 700,
3675
3100
  color: styleGlobal.darker,
@@ -3684,21 +3109,21 @@ var customStyles = {
3684
3109
  });
3685
3110
  },
3686
3111
  input: function input(baseStyles, _) {
3687
- return _extends$1({}, baseStyles, {
3112
+ return _extends({}, baseStyles, {
3688
3113
  fontSize: "14px",
3689
3114
  fontWeight: 700,
3690
3115
  color: styleGlobal.darker
3691
3116
  });
3692
3117
  },
3693
3118
  singleValue: function singleValue(baseStyles) {
3694
- return _extends$1({}, baseStyles, {
3119
+ return _extends({}, baseStyles, {
3695
3120
  fontSize: "14px",
3696
3121
  fontWeight: 700,
3697
3122
  color: styleGlobal.darker
3698
3123
  });
3699
3124
  },
3700
3125
  option: function option(baseStyles, state) {
3701
- return _extends$1({}, baseStyles, {
3126
+ return _extends({}, baseStyles, {
3702
3127
  backgroundColor: state.isSelected ? styleGlobal.dark : state.isFocused ? styleGlobal.light : 'white',
3703
3128
  "&:active": {
3704
3129
  backgroundColor: state.isSelected ? styleGlobal.dark : state.isFocused ? styleGlobal.less_dark : baseStyles.backgroundColor
@@ -3722,7 +3147,7 @@ var CustomOption = function CustomOption(props) {
3722
3147
  }, props.data.label));
3723
3148
  };
3724
3149
 
3725
- var _excluded$3 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3150
+ var _excluded$4 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3726
3151
  var CustomSelect = function CustomSelect(_ref) {
3727
3152
  var isDefault = _ref.isDefault,
3728
3153
  options = _ref.options,
@@ -3730,7 +3155,7 @@ var CustomSelect = function CustomSelect(_ref) {
3730
3155
  scrollBottom = _ref.scrollBottom,
3731
3156
  value = _ref.value,
3732
3157
  isMulti = _ref.isMulti,
3733
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3158
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3734
3159
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
3735
3160
  return value.includes(i.value);
3736
3161
  }) : isMulti ? options === null || options === void 0 ? void 0 : options.filter(function (i) {
@@ -3757,7 +3182,7 @@ var CustomSelect = function CustomSelect(_ref) {
3757
3182
  }, rest));
3758
3183
  };
3759
3184
 
3760
- var _excluded$4 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3185
+ var _excluded$5 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3761
3186
  var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
3762
3187
  var isDefault = _ref.isDefault,
3763
3188
  options = _ref.options,
@@ -3765,7 +3190,7 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
3765
3190
  scrollBottom = _ref.scrollBottom,
3766
3191
  value = _ref.value,
3767
3192
  isMulti = _ref.isMulti,
3768
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3193
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3769
3194
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
3770
3195
  return value.includes(i.value);
3771
3196
  }) : isMulti ? options.filter(function (i) {
@@ -3792,14 +3217,14 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
3792
3217
  }, rest));
3793
3218
  };
3794
3219
 
3795
- var _excluded$5 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3220
+ var _excluded$6 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3796
3221
  var CustomCreatable = function CustomCreatable(_ref) {
3797
3222
  var options = _ref.options,
3798
3223
  isDisabled = _ref.isDisabled,
3799
3224
  scrollBottom = _ref.scrollBottom,
3800
3225
  value = _ref.value,
3801
3226
  isMulti = _ref.isMulti,
3802
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3227
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3803
3228
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
3804
3229
  return value.includes(i.value);
3805
3230
  }) : isMulti ? options.filter(function (i) {
@@ -3826,7 +3251,7 @@ var CustomCreatable = function CustomCreatable(_ref) {
3826
3251
  }, rest));
3827
3252
  };
3828
3253
 
3829
- var _excluded$6 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3254
+ var _excluded$7 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
3830
3255
  var CustomSelectOption = function CustomSelectOption(_ref) {
3831
3256
  var defaultValue = _ref.defaultValue,
3832
3257
  options = _ref.options,
@@ -3834,7 +3259,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
3834
3259
  scrollBottom = _ref.scrollBottom,
3835
3260
  value = _ref.value,
3836
3261
  isMulti = _ref.isMulti,
3837
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3262
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3838
3263
  var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
3839
3264
  return option.value === defaultValue;
3840
3265
  }) || null : null;
@@ -3866,26 +3291,71 @@ var utcToLocalTime = (function (time, FORMAT) {
3866
3291
  }
3867
3292
  });
3868
3293
 
3869
- var historyCore = createBrowserHistory();
3294
+ var sanitizeSrc = function sanitizeSrc(url) {
3295
+ if (!url || typeof url !== 'string') {
3296
+ return null;
3297
+ }
3298
+ url = url.trim().replace(/[\s\n\r\t]+/g, '');
3299
+ if (url.length > 2048) {
3300
+ return null;
3301
+ }
3302
+ var dangerousProtocols = ['javascript:', 'data:text/html', 'vbscript:', 'file:', 'about:', 'blob:'];
3303
+ var lowerUrl = url.toLowerCase();
3304
+ for (var _i = 0, _dangerousProtocols = dangerousProtocols; _i < _dangerousProtocols.length; _i++) {
3305
+ var protocol = _dangerousProtocols[_i];
3306
+ if (lowerUrl.startsWith(protocol)) {
3307
+ return null;
3308
+ }
3309
+ }
3310
+ var decoded = decodeURIComponent(url);
3311
+ var decodedLower = decoded.toLowerCase();
3312
+ for (var _i2 = 0, _dangerousProtocols2 = dangerousProtocols; _i2 < _dangerousProtocols2.length; _i2++) {
3313
+ var _protocol = _dangerousProtocols2[_i2];
3314
+ if (decodedLower.includes(_protocol)) {
3315
+ return null;
3316
+ }
3317
+ }
3318
+ try {
3319
+ if (url.startsWith('data:')) {
3320
+ if (/^data:image\/(png|jpeg|jpg|gif|webp|bmp|ico);base64,[A-Za-z0-9+/]+=*$/.test(url)) {
3321
+ return url;
3322
+ }
3323
+ return null;
3324
+ }
3325
+ var parsed = new URL(url, window.location.origin);
3326
+ if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
3327
+ return null;
3328
+ }
3329
+ if (parsed.username || parsed.password) {
3330
+ return null;
3331
+ }
3332
+ return parsed.href;
3333
+ } catch (error) {
3334
+ return null;
3335
+ }
3336
+ };
3870
3337
 
3338
+ var historyCore = history.createBrowserHistory();
3339
+
3340
+ exports.Cookies = Cookies;
3341
+ exports.DOMPurify = dompurify;
3871
3342
  Object.defineProperty(exports, 'GoogleOAuthProvider', {
3872
- enumerable: true,
3873
- get: function () {
3874
- return google.GoogleOAuthProvider;
3875
- }
3343
+ enumerable: true,
3344
+ get: function () {
3345
+ return google.GoogleOAuthProvider;
3346
+ }
3876
3347
  });
3877
- exports.Cookies = Cookies;
3878
3348
  Object.defineProperty(exports, 'ToastContainer', {
3879
- enumerable: true,
3880
- get: function () {
3881
- return reactToastify.ToastContainer;
3882
- }
3349
+ enumerable: true,
3350
+ get: function () {
3351
+ return reactToastify.ToastContainer;
3352
+ }
3883
3353
  });
3884
3354
  Object.defineProperty(exports, 'toast', {
3885
- enumerable: true,
3886
- get: function () {
3887
- return reactToastify.toast;
3888
- }
3355
+ enumerable: true,
3356
+ get: function () {
3357
+ return reactToastify.toast;
3358
+ }
3889
3359
  });
3890
3360
  exports.ACCESS_TOKEN = ACCESS_TOKEN;
3891
3361
  exports.BASE_URL = BASE_URL;
@@ -3928,6 +3398,7 @@ exports.getImageUrl = getImageUrl;
3928
3398
  exports.historyCore = historyCore;
3929
3399
  exports.initSentry = initSentry;
3930
3400
  exports.initializeAmplitude = initializeAmplitude;
3401
+ exports.sanitizeSrc = sanitizeSrc;
3931
3402
  exports.setAddTenant = setAddTenant;
3932
3403
  exports.setAlert = setAlert;
3933
3404
  exports.setIsRefetchSidebar = setIsRefetchSidebar;