@progress/telerik-jquery-report-viewer 29.26.424 → 30.26.520

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * TelerikReporting v20.0.26.424 (https://www.telerik.com/products/reporting.aspx)
2
+ * TelerikReporting v20.1.26.520 (https://www.telerik.com/products/reporting.aspx)
3
3
  * Copyright 2026 Progress Software EAD. All rights reserved.
4
4
  *
5
5
  * Telerik Reporting commercial licenses may be obtained at
@@ -13,7 +13,7 @@ var telerikReportViewer = (function (exports) {
13
13
 
14
14
  var dist = {exports: {}};
15
15
 
16
- /*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */
16
+ /*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
17
17
 
18
18
  var purify_cjs;
19
19
  var hasRequiredPurify_cjs;
@@ -69,13 +69,19 @@ var telerikReportViewer = (function (exports) {
69
69
  const arrayPop = unapply(Array.prototype.pop);
70
70
  const arrayPush = unapply(Array.prototype.push);
71
71
  const arraySplice = unapply(Array.prototype.splice);
72
+ const arrayIsArray = Array.isArray;
72
73
  const stringToLowerCase = unapply(String.prototype.toLowerCase);
73
74
  const stringToString = unapply(String.prototype.toString);
74
75
  const stringMatch = unapply(String.prototype.match);
75
76
  const stringReplace = unapply(String.prototype.replace);
76
77
  const stringIndexOf = unapply(String.prototype.indexOf);
77
78
  const stringTrim = unapply(String.prototype.trim);
79
+ const numberToString = unapply(Number.prototype.toString);
80
+ const booleanToString = unapply(Boolean.prototype.toString);
81
+ const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
82
+ const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
78
83
  const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
84
+ const objectToString = unapply(Object.prototype.toString);
79
85
  const regExpTest = unapply(RegExp.prototype.test);
80
86
  const typeErrorCreate = unconstruct(TypeError);
81
87
  /**
@@ -125,6 +131,9 @@ var telerikReportViewer = (function (exports) {
125
131
  // Prevent prototype setters from intercepting set as a this value.
126
132
  setPrototypeOf(set, null);
127
133
  }
134
+ if (!arrayIsArray(array)) {
135
+ return set;
136
+ }
128
137
  let l = array.length;
129
138
  while (l--) {
130
139
  let element = array[l];
@@ -168,7 +177,7 @@ var telerikReportViewer = (function (exports) {
168
177
  for (const [property, value] of entries(object)) {
169
178
  const isPropertyExist = objectHasOwnProperty(object, property);
170
179
  if (isPropertyExist) {
171
- if (Array.isArray(value)) {
180
+ if (arrayIsArray(value)) {
172
181
  newObject[property] = cleanArray(value);
173
182
  } else if (value && typeof value === 'object' && value.constructor === Object) {
174
183
  newObject[property] = clone(value);
@@ -179,6 +188,58 @@ var telerikReportViewer = (function (exports) {
179
188
  }
180
189
  return newObject;
181
190
  }
191
+ /**
192
+ * Convert non-node values into strings without depending on direct property access.
193
+ *
194
+ * @param value - The value to stringify.
195
+ * @returns A string representation of the provided value.
196
+ */
197
+ function stringifyValue(value) {
198
+ switch (typeof value) {
199
+ case 'string':
200
+ {
201
+ return value;
202
+ }
203
+ case 'number':
204
+ {
205
+ return numberToString(value);
206
+ }
207
+ case 'boolean':
208
+ {
209
+ return booleanToString(value);
210
+ }
211
+ case 'bigint':
212
+ {
213
+ return bigintToString ? bigintToString(value) : '0';
214
+ }
215
+ case 'symbol':
216
+ {
217
+ return symbolToString ? symbolToString(value) : 'Symbol()';
218
+ }
219
+ case 'undefined':
220
+ {
221
+ return objectToString(value);
222
+ }
223
+ case 'function':
224
+ case 'object':
225
+ {
226
+ if (value === null) {
227
+ return objectToString(value);
228
+ }
229
+ const valueAsRecord = value;
230
+ const valueToString = lookupGetter(valueAsRecord, 'toString');
231
+ if (typeof valueToString === 'function') {
232
+ const stringified = valueToString(valueAsRecord);
233
+ return typeof stringified === 'string' ? stringified : objectToString(stringified);
234
+ }
235
+ return objectToString(value);
236
+ }
237
+ default:
238
+ {
239
+ return objectToString(value);
240
+ }
241
+ }
242
+ }
182
243
  /**
183
244
  * This method automatically checks if the prop is function or getter and behaves accordingly.
184
245
  *
@@ -204,6 +265,14 @@ var telerikReportViewer = (function (exports) {
204
265
  }
205
266
  return fallbackValue;
206
267
  }
268
+ function isRegex(value) {
269
+ try {
270
+ regExpTest(value, '');
271
+ return true;
272
+ } catch (_unused) {
273
+ return false;
274
+ }
275
+ }
207
276
 
208
277
  const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
209
278
  const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
@@ -219,9 +288,9 @@ var telerikReportViewer = (function (exports) {
219
288
  const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
220
289
  const text = freeze(['#text']);
221
290
 
222
- const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
291
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
223
292
  const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', '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', 'exponent', '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', 'intercept', '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', 'mask-type', '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', 'slope', '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', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', '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']);
224
- const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
293
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
225
294
  const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
226
295
 
227
296
  // eslint-disable-next-line unicorn/better-regex
@@ -239,17 +308,17 @@ var telerikReportViewer = (function (exports) {
239
308
  const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
240
309
 
241
310
  var EXPRESSIONS = /*#__PURE__*/Object.freeze({
242
- __proto__: null,
243
- ARIA_ATTR: ARIA_ATTR,
244
- ATTR_WHITESPACE: ATTR_WHITESPACE,
245
- CUSTOM_ELEMENT: CUSTOM_ELEMENT,
246
- DATA_ATTR: DATA_ATTR,
247
- DOCTYPE_NAME: DOCTYPE_NAME,
248
- ERB_EXPR: ERB_EXPR,
249
- IS_ALLOWED_URI: IS_ALLOWED_URI,
250
- IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
251
- MUSTACHE_EXPR: MUSTACHE_EXPR,
252
- TMPLIT_EXPR: TMPLIT_EXPR
311
+ __proto__: null,
312
+ ARIA_ATTR: ARIA_ATTR,
313
+ ATTR_WHITESPACE: ATTR_WHITESPACE,
314
+ CUSTOM_ELEMENT: CUSTOM_ELEMENT,
315
+ DATA_ATTR: DATA_ATTR,
316
+ DOCTYPE_NAME: DOCTYPE_NAME,
317
+ ERB_EXPR: ERB_EXPR,
318
+ IS_ALLOWED_URI: IS_ALLOWED_URI,
319
+ IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
320
+ MUSTACHE_EXPR: MUSTACHE_EXPR,
321
+ TMPLIT_EXPR: TMPLIT_EXPR
253
322
  });
254
323
 
255
324
  /* eslint-disable @typescript-eslint/indent */
@@ -318,7 +387,7 @@ var telerikReportViewer = (function (exports) {
318
387
  function createDOMPurify() {
319
388
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
320
389
  const DOMPurify = root => createDOMPurify(root);
321
- DOMPurify.version = '3.3.2';
390
+ DOMPurify.version = '3.4.2';
322
391
  DOMPurify.removed = [];
323
392
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
324
393
  // Not running in a browser, provide a factory function
@@ -566,15 +635,15 @@ var telerikReportViewer = (function (exports) {
566
635
  // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
567
636
  transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
568
637
  /* Set configuration parameters */
569
- ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
570
- ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
571
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
572
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
573
- DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
574
- FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
575
- FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
576
- FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
577
- USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
638
+ ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
639
+ ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
640
+ ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
641
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
642
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
643
+ FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
644
+ FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
645
+ FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
646
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
578
647
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
579
648
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
580
649
  ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
@@ -590,19 +659,20 @@ var telerikReportViewer = (function (exports) {
590
659
  SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
591
660
  KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
592
661
  IN_PLACE = cfg.IN_PLACE || false; // Default false
593
- IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
594
- NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
595
- MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
596
- HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
597
- CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
598
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
599
- CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
662
+ IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
663
+ NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
664
+ MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); // Default built-in map
665
+ HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ['annotation-xml']); // Default built-in map
666
+ const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
667
+ CUSTOM_ELEMENT_HANDLING = create(null);
668
+ if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
669
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
600
670
  }
601
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
602
- CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
671
+ if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
672
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
603
673
  }
604
- if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
605
- CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
674
+ if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
675
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
606
676
  }
607
677
  if (SAFE_FOR_TEMPLATES) {
608
678
  ALLOW_DATA_ATTR = false;
@@ -634,44 +704,41 @@ var telerikReportViewer = (function (exports) {
634
704
  addToSet(ALLOWED_ATTR, xml);
635
705
  }
636
706
  }
637
- /* Prevent function-based ADD_ATTR / ADD_TAGS from leaking across calls */
638
- if (!objectHasOwnProperty(cfg, 'ADD_TAGS')) {
639
- EXTRA_ELEMENT_HANDLING.tagCheck = null;
640
- }
641
- if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
642
- EXTRA_ELEMENT_HANDLING.attributeCheck = null;
643
- }
707
+ /* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
708
+ * leaking across calls when switching from function to array config */
709
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
710
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
644
711
  /* Merge configuration parameters */
645
- if (cfg.ADD_TAGS) {
712
+ if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
646
713
  if (typeof cfg.ADD_TAGS === 'function') {
647
714
  EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
648
- } else {
715
+ } else if (arrayIsArray(cfg.ADD_TAGS)) {
649
716
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
650
717
  ALLOWED_TAGS = clone(ALLOWED_TAGS);
651
718
  }
652
719
  addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
653
720
  }
654
721
  }
655
- if (cfg.ADD_ATTR) {
722
+ if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
656
723
  if (typeof cfg.ADD_ATTR === 'function') {
657
724
  EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
658
- } else {
725
+ } else if (arrayIsArray(cfg.ADD_ATTR)) {
659
726
  if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
660
727
  ALLOWED_ATTR = clone(ALLOWED_ATTR);
661
728
  }
662
729
  addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
663
730
  }
664
731
  }
665
- if (cfg.ADD_URI_SAFE_ATTR) {
732
+ if (objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) {
666
733
  addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
667
734
  }
668
- if (cfg.FORBID_CONTENTS) {
735
+ if (objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS)) {
669
736
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
670
737
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
671
738
  }
672
739
  addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
673
740
  }
674
- if (cfg.ADD_FORBID_CONTENTS) {
741
+ if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
675
742
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
676
743
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
677
744
  }
@@ -963,6 +1030,11 @@ var telerikReportViewer = (function (exports) {
963
1030
  _forceRemove(currentNode);
964
1031
  return true;
965
1032
  }
1033
+ /* Remove risky CSS construction leading to mXSS */
1034
+ if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
1035
+ _forceRemove(currentNode);
1036
+ return true;
1037
+ }
966
1038
  /* Remove any occurrence of processing instructions */
967
1039
  if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
968
1040
  _forceRemove(currentNode);
@@ -974,7 +1046,7 @@ var telerikReportViewer = (function (exports) {
974
1046
  return true;
975
1047
  }
976
1048
  /* Remove element if anything forbids its presence */
977
- if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
1049
+ if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
978
1050
  /* Check if we have a custom element to handle */
979
1051
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
980
1052
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
@@ -992,7 +1064,6 @@ var telerikReportViewer = (function (exports) {
992
1064
  const childCount = childNodes.length;
993
1065
  for (let i = childCount - 1; i >= 0; --i) {
994
1066
  const childClone = cloneNode(childNodes[i], true);
995
- childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
996
1067
  parentNode.insertBefore(childClone, getNextSibling(currentNode));
997
1068
  }
998
1069
  }
@@ -1046,11 +1117,12 @@ var telerikReportViewer = (function (exports) {
1046
1117
  if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
1047
1118
  return false;
1048
1119
  }
1120
+ const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
1049
1121
  /* Allow valid data-* attributes: At least one character after "-"
1050
1122
  (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
1051
1123
  XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
1052
1124
  We don't need to check the value; it's always URI safe. */
1053
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1125
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!nameIsPermitted || FORBID_ATTR[lcName]) {
1054
1126
  if (
1055
1127
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1056
1128
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -1067,6 +1139,10 @@ var telerikReportViewer = (function (exports) {
1067
1139
  } else ;
1068
1140
  return true;
1069
1141
  };
1142
+ /* Names the HTML spec reserves from valid-custom-element-name; these must
1143
+ * never be treated as basic custom elements even when a permissive
1144
+ * CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
1145
+ const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
1070
1146
  /**
1071
1147
  * _isBasicCustomElement
1072
1148
  * checks if at least one dash is included in tagName, and it's not the first char
@@ -1076,7 +1152,7 @@ var telerikReportViewer = (function (exports) {
1076
1152
  * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1077
1153
  */
1078
1154
  const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1079
- return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
1155
+ return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT, tagName);
1080
1156
  };
1081
1157
  /**
1082
1158
  * _sanitizeAttributes
@@ -1127,12 +1203,14 @@ var telerikReportViewer = (function (exports) {
1127
1203
  /* Full DOM Clobbering protection via namespace isolation,
1128
1204
  * Prefix id and name attributes with `user-content-`
1129
1205
  */
1130
- if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
1206
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
1131
1207
  // Remove the attribute with this value
1132
1208
  _removeAttribute(name, currentNode);
1133
1209
  // Prefix the value and later re-create the attribute with the sanitized value
1134
1210
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
1135
1211
  }
1212
+ // Else: already prefixed, leave the attribute alone — the prefix is
1213
+ // itself the clobbering protection, and re-applying it is incorrect.
1136
1214
  /* Work around a security issue with comments inside attributes */
1137
1215
  if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1138
1216
  _removeAttribute(name, currentNode);
@@ -1213,7 +1291,7 @@ var telerikReportViewer = (function (exports) {
1213
1291
  *
1214
1292
  * @param fragment to iterate over recursively
1215
1293
  */
1216
- const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
1294
+ const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
1217
1295
  let shadowNode = null;
1218
1296
  const shadowIterator = _createNodeIterator(fragment);
1219
1297
  /* Execute a hook if present */
@@ -1227,7 +1305,7 @@ var telerikReportViewer = (function (exports) {
1227
1305
  _sanitizeAttributes(shadowNode);
1228
1306
  /* Deep shadow DOM detected */
1229
1307
  if (shadowNode.content instanceof DocumentFragment) {
1230
- _sanitizeShadowDOM(shadowNode.content);
1308
+ _sanitizeShadowDOM2(shadowNode.content);
1231
1309
  }
1232
1310
  }
1233
1311
  /* Execute a hook if present */
@@ -1249,13 +1327,9 @@ var telerikReportViewer = (function (exports) {
1249
1327
  }
1250
1328
  /* Stringify, in case dirty is an object */
1251
1329
  if (typeof dirty !== 'string' && !_isNode(dirty)) {
1252
- if (typeof dirty.toString === 'function') {
1253
- dirty = dirty.toString();
1254
- if (typeof dirty !== 'string') {
1255
- throw typeErrorCreate('dirty is not a string, aborting');
1256
- }
1257
- } else {
1258
- throw typeErrorCreate('toString is not a function');
1330
+ dirty = stringifyValue(dirty);
1331
+ if (typeof dirty !== 'string') {
1332
+ throw typeErrorCreate('dirty is not a string, aborting');
1259
1333
  }
1260
1334
  }
1261
1335
  /* Return dirty HTML if DOMPurify cannot run */
@@ -1274,8 +1348,9 @@ var telerikReportViewer = (function (exports) {
1274
1348
  }
1275
1349
  if (IN_PLACE) {
1276
1350
  /* Do some early pre-sanitization to avoid unsafe root nodes */
1277
- if (dirty.nodeName) {
1278
- const tagName = transformCaseFunc(dirty.nodeName);
1351
+ const nn = dirty.nodeName;
1352
+ if (typeof nn === 'string') {
1353
+ const tagName = transformCaseFunc(nn);
1279
1354
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1280
1355
  throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
1281
1356
  }
@@ -1322,7 +1397,7 @@ var telerikReportViewer = (function (exports) {
1322
1397
  _sanitizeAttributes(currentNode);
1323
1398
  /* Shadow DOM detected, sanitize it */
1324
1399
  if (currentNode.content instanceof DocumentFragment) {
1325
- _sanitizeShadowDOM(currentNode.content);
1400
+ _sanitizeShadowDOM2(currentNode.content);
1326
1401
  }
1327
1402
  }
1328
1403
  /* If we sanitized `dirty` in-place, return it. */
@@ -1331,6 +1406,14 @@ var telerikReportViewer = (function (exports) {
1331
1406
  }
1332
1407
  /* Return sanitized string or DOM */
1333
1408
  if (RETURN_DOM) {
1409
+ if (SAFE_FOR_TEMPLATES) {
1410
+ body.normalize();
1411
+ let html = body.innerHTML;
1412
+ arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
1413
+ html = stringReplace(html, expr, ' ');
1414
+ });
1415
+ body.innerHTML = html;
1416
+ }
1334
1417
  if (RETURN_DOM_FRAGMENT) {
1335
1418
  returnNode = createDocumentFragment.call(body.ownerDocument);
1336
1419
  while (body.firstChild) {
@@ -1487,16 +1570,26 @@ var telerikReportViewer = (function (exports) {
1487
1570
  }
1488
1571
  }
1489
1572
  class u {
1573
+ constructor(e2, t2) {
1574
+ this.handled = false, this.deviceInfo = e2, this.format = t2;
1575
+ }
1576
+ }
1577
+ class p extends r {
1578
+ constructor(e2, t2, i2) {
1579
+ super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
1580
+ }
1581
+ }
1582
+ class g {
1490
1583
  constructor(e2, t2) {
1491
1584
  this.page = e2, this.reportDocumentId = t2;
1492
1585
  }
1493
1586
  }
1494
- class p {
1587
+ class f {
1495
1588
  constructor(e2, t2, i2, n2 = null) {
1496
1589
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1497
1590
  }
1498
1591
  }
1499
- class g {
1592
+ class m {
1500
1593
  constructor(e2, t2) {
1501
1594
  this._responseText = e2, this._error = t2;
1502
1595
  try {
@@ -1519,14 +1612,14 @@ var telerikReportViewer = (function (exports) {
1519
1612
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1520
1613
  }
1521
1614
  }
1522
- function m(e2, t2 = false, i2 = false) {
1615
+ function v(e2, t2 = false, i2 = false) {
1523
1616
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1524
1617
  return t2 && (n2["Content-Type"] = i2 ? "application/x-www-form-urlencoded; charset=UTF-8" : "application/json; charset=UTF-8"), e2 && (n2.authorization = "Bearer " + e2), n2;
1525
1618
  }
1526
- function f(e2) {
1619
+ function P(e2) {
1527
1620
  return i(this, void 0, void 0, function* () {
1528
1621
  if (!e2.ok) {
1529
- let t2 = yield e2.text(), i2 = new g(t2, e2.statusText);
1622
+ let t2 = yield e2.text(), i2 = new m(t2, e2.statusText);
1530
1623
  return Promise.reject(i2);
1531
1624
  }
1532
1625
  if (204 == e2.status)
@@ -1534,15 +1627,15 @@ var telerikReportViewer = (function (exports) {
1534
1627
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1535
1628
  });
1536
1629
  }
1537
- function v(e2, t2 = {}, i2 = "", n2 = false) {
1538
- return fetch(e2, { method: "POST", headers: m(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(f);
1630
+ function C(e2, t2 = {}, i2 = "", n2 = false) {
1631
+ return fetch(e2, { method: "POST", headers: v(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(P);
1539
1632
  }
1540
- class P {
1633
+ class y {
1541
1634
  authenticatePromise() {
1542
1635
  return Promise.resolve("");
1543
1636
  }
1544
1637
  }
1545
- class C {
1638
+ class S {
1546
1639
  constructor(e2) {
1547
1640
  this.connectionConfig = e2;
1548
1641
  }
@@ -1550,59 +1643,59 @@ var telerikReportViewer = (function (exports) {
1550
1643
  var e2, t2;
1551
1644
  if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1552
1645
  let i2 = `grant_type=password&username=${encodeURIComponent((null === (e2 = this.connectionConfig) || void 0 === e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null === (t2 = this.connectionConfig) || void 0 === t2 ? void 0 : t2.password) || "")}`;
1553
- return v(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1646
+ return C(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1554
1647
  }
1555
1648
  return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
1556
1649
  }
1557
1650
  }
1558
- class y {
1651
+ class I {
1559
1652
  constructor(e2) {
1560
1653
  this.connectionConfig = e2;
1561
1654
  }
1562
1655
  authenticatePromise(e2, t2) {
1563
- return e2 ? v(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => v(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1656
+ return e2 ? C(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => C(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1564
1657
  }
1565
1658
  }
1566
- var S, I;
1567
- e.AuthType = void 0, (S = e.AuthType || (e.AuthType = {}))[S.None = 0] = "None", S[S.Basic = 1] = "Basic", S[S.PersonalToken = 2] = "PersonalToken";
1568
- class b {
1659
+ var b, w;
1660
+ e.AuthType = void 0, (b = e.AuthType || (e.AuthType = {}))[b.None = 0] = "None", b[b.Basic = 1] = "Basic", b[b.PersonalToken = 2] = "PersonalToken";
1661
+ class L {
1569
1662
  constructor(e2) {
1570
1663
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1571
1664
  }
1572
1665
  }
1573
- class w extends b {
1666
+ class T extends L {
1574
1667
  constructor(t2) {
1575
1668
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1576
1669
  }
1577
1670
  }
1578
- class T extends b {
1671
+ class A extends L {
1579
1672
  constructor(t2) {
1580
1673
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1581
1674
  }
1582
1675
  }
1583
- class A extends T {
1676
+ class R extends A {
1584
1677
  constructor(t2, i2, n2) {
1585
1678
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1586
1679
  }
1587
1680
  }
1588
- class R extends T {
1681
+ class E extends A {
1589
1682
  constructor(t2, i2) {
1590
1683
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1591
1684
  }
1592
1685
  }
1593
- function E() {
1594
- }
1595
1686
  function M() {
1596
- M.init.call(this);
1687
+ }
1688
+ function k() {
1689
+ k.init.call(this);
1597
1690
  }
1598
1691
  function x(e2) {
1599
- return void 0 === e2._maxListeners ? M.defaultMaxListeners : e2._maxListeners;
1692
+ return void 0 === e2._maxListeners ? k.defaultMaxListeners : e2._maxListeners;
1600
1693
  }
1601
- function k(e2, t2, i2, n2) {
1694
+ function N(e2, t2, i2, n2) {
1602
1695
  var r2, s2, o2, a2;
1603
1696
  if ("function" != typeof i2)
1604
1697
  throw new TypeError('"listener" argument must be a function');
1605
- if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new E(), e2._eventsCount = 0), o2) {
1698
+ if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new M(), e2._eventsCount = 0), o2) {
1606
1699
  if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = x(e2)) && r2 > 0 && o2.length > r2) {
1607
1700
  o2.warned = true;
1608
1701
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
@@ -1612,14 +1705,14 @@ var telerikReportViewer = (function (exports) {
1612
1705
  o2 = s2[t2] = i2, ++e2._eventsCount;
1613
1706
  return e2;
1614
1707
  }
1615
- function L(e2, t2, i2) {
1708
+ function D(e2, t2, i2) {
1616
1709
  var n2 = false;
1617
1710
  function r2() {
1618
1711
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
1619
1712
  }
1620
1713
  return r2.listener = i2, r2;
1621
1714
  }
1622
- function N(e2) {
1715
+ function F(e2) {
1623
1716
  var t2 = this._events;
1624
1717
  if (t2) {
1625
1718
  var i2 = t2[e2];
@@ -1630,20 +1723,20 @@ var telerikReportViewer = (function (exports) {
1630
1723
  }
1631
1724
  return 0;
1632
1725
  }
1633
- function D(e2, t2) {
1726
+ function V(e2, t2) {
1634
1727
  for (var i2 = new Array(t2); t2--; )
1635
1728
  i2[t2] = e2[t2];
1636
1729
  return i2;
1637
1730
  }
1638
- E.prototype = /* @__PURE__ */ Object.create(null), M.EventEmitter = M, M.usingDomains = false, M.prototype.domain = void 0, M.prototype._events = void 0, M.prototype._maxListeners = void 0, M.defaultMaxListeners = 10, M.init = function() {
1639
- this.domain = null, M.usingDomains && (!I.active || this instanceof I.Domain || (this.domain = I.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new E(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1640
- }, M.prototype.setMaxListeners = function(e2) {
1731
+ M.prototype = /* @__PURE__ */ Object.create(null), k.EventEmitter = k, k.usingDomains = false, k.prototype.domain = void 0, k.prototype._events = void 0, k.prototype._maxListeners = void 0, k.defaultMaxListeners = 10, k.init = function() {
1732
+ this.domain = null, k.usingDomains && (!w.active || this instanceof w.Domain || (this.domain = w.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1733
+ }, k.prototype.setMaxListeners = function(e2) {
1641
1734
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1642
1735
  throw new TypeError('"n" argument must be a positive number');
1643
1736
  return this._maxListeners = e2, this;
1644
- }, M.prototype.getMaxListeners = function() {
1737
+ }, k.prototype.getMaxListeners = function() {
1645
1738
  return x(this);
1646
- }, M.prototype.emit = function(e2) {
1739
+ }, k.prototype.emit = function(e2) {
1647
1740
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1648
1741
  if (o2 = this._events)
1649
1742
  l2 = l2 && null == o2.error;
@@ -1667,7 +1760,7 @@ var telerikReportViewer = (function (exports) {
1667
1760
  if (t3)
1668
1761
  e3.call(i3);
1669
1762
  else
1670
- for (var n3 = e3.length, r3 = D(e3, n3), s3 = 0; s3 < n3; ++s3)
1763
+ for (var n3 = e3.length, r3 = V(e3, n3), s3 = 0; s3 < n3; ++s3)
1671
1764
  r3[s3].call(i3);
1672
1765
  }(i2, c2, this);
1673
1766
  break;
@@ -1676,7 +1769,7 @@ var telerikReportViewer = (function (exports) {
1676
1769
  if (t3)
1677
1770
  e3.call(i3, n3);
1678
1771
  else
1679
- for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1772
+ for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1680
1773
  s3[o3].call(i3, n3);
1681
1774
  }(i2, c2, this, arguments[1]);
1682
1775
  break;
@@ -1685,7 +1778,7 @@ var telerikReportViewer = (function (exports) {
1685
1778
  if (t3)
1686
1779
  e3.call(i3, n3, r3);
1687
1780
  else
1688
- for (var s3 = e3.length, o3 = D(e3, s3), a3 = 0; a3 < s3; ++a3)
1781
+ for (var s3 = e3.length, o3 = V(e3, s3), a3 = 0; a3 < s3; ++a3)
1689
1782
  o3[a3].call(i3, n3, r3);
1690
1783
  }(i2, c2, this, arguments[1], arguments[2]);
1691
1784
  break;
@@ -1694,7 +1787,7 @@ var telerikReportViewer = (function (exports) {
1694
1787
  if (t3)
1695
1788
  e3.call(i3, n3, r3, s3);
1696
1789
  else
1697
- for (var o3 = e3.length, a3 = D(e3, o3), l3 = 0; l3 < o3; ++l3)
1790
+ for (var o3 = e3.length, a3 = V(e3, o3), l3 = 0; l3 < o3; ++l3)
1698
1791
  a3[l3].call(i3, n3, r3, s3);
1699
1792
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1700
1793
  break;
@@ -1705,24 +1798,24 @@ var telerikReportViewer = (function (exports) {
1705
1798
  if (t3)
1706
1799
  e3.apply(i3, n3);
1707
1800
  else
1708
- for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1801
+ for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1709
1802
  s3[o3].apply(i3, n3);
1710
1803
  }(i2, c2, this, r2);
1711
1804
  }
1712
1805
  return true;
1713
- }, M.prototype.addListener = function(e2, t2) {
1714
- return k(this, e2, t2, false);
1715
- }, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
1716
- return k(this, e2, t2, true);
1717
- }, M.prototype.once = function(e2, t2) {
1806
+ }, k.prototype.addListener = function(e2, t2) {
1807
+ return N(this, e2, t2, false);
1808
+ }, k.prototype.on = k.prototype.addListener, k.prototype.prependListener = function(e2, t2) {
1809
+ return N(this, e2, t2, true);
1810
+ }, k.prototype.once = function(e2, t2) {
1718
1811
  if ("function" != typeof t2)
1719
1812
  throw new TypeError('"listener" argument must be a function');
1720
- return this.on(e2, L(this, e2, t2)), this;
1721
- }, M.prototype.prependOnceListener = function(e2, t2) {
1813
+ return this.on(e2, D(this, e2, t2)), this;
1814
+ }, k.prototype.prependOnceListener = function(e2, t2) {
1722
1815
  if ("function" != typeof t2)
1723
1816
  throw new TypeError('"listener" argument must be a function');
1724
- return this.prependListener(e2, L(this, e2, t2)), this;
1725
- }, M.prototype.removeListener = function(e2, t2) {
1817
+ return this.prependListener(e2, D(this, e2, t2)), this;
1818
+ }, k.prototype.removeListener = function(e2, t2) {
1726
1819
  var i2, n2, r2, s2, o2;
1727
1820
  if ("function" != typeof t2)
1728
1821
  throw new TypeError('"listener" argument must be a function');
@@ -1731,7 +1824,7 @@ var telerikReportViewer = (function (exports) {
1731
1824
  if (!(i2 = n2[e2]))
1732
1825
  return this;
1733
1826
  if (i2 === t2 || i2.listener && i2.listener === t2)
1734
- 0 === --this._eventsCount ? this._events = new E() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1827
+ 0 === --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1735
1828
  else if ("function" != typeof i2) {
1736
1829
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1737
1830
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1742,7 +1835,7 @@ var telerikReportViewer = (function (exports) {
1742
1835
  return this;
1743
1836
  if (1 === i2.length) {
1744
1837
  if (i2[0] = void 0, 0 === --this._eventsCount)
1745
- return this._events = new E(), this;
1838
+ return this._events = new M(), this;
1746
1839
  delete n2[e2];
1747
1840
  } else
1748
1841
  !function(e3, t3) {
@@ -1753,18 +1846,18 @@ var telerikReportViewer = (function (exports) {
1753
1846
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1754
1847
  }
1755
1848
  return this;
1756
- }, M.prototype.off = function(e2, t2) {
1849
+ }, k.prototype.off = function(e2, t2) {
1757
1850
  return this.removeListener(e2, t2);
1758
- }, M.prototype.removeAllListeners = function(e2) {
1851
+ }, k.prototype.removeAllListeners = function(e2) {
1759
1852
  var t2, i2;
1760
1853
  if (!(i2 = this._events))
1761
1854
  return this;
1762
1855
  if (!i2.removeListener)
1763
- return 0 === arguments.length ? (this._events = new E(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new E() : delete i2[e2]), this;
1856
+ return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
1764
1857
  if (0 === arguments.length) {
1765
1858
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1766
1859
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1767
- return this.removeAllListeners("removeListener"), this._events = new E(), this._eventsCount = 0, this;
1860
+ return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
1768
1861
  }
1769
1862
  if ("function" == typeof (t2 = i2[e2]))
1770
1863
  this.removeListener(e2, t2);
@@ -1773,34 +1866,34 @@ var telerikReportViewer = (function (exports) {
1773
1866
  this.removeListener(e2, t2[t2.length - 1]);
1774
1867
  } while (t2[0]);
1775
1868
  return this;
1776
- }, M.prototype.listeners = function(e2) {
1869
+ }, k.prototype.listeners = function(e2) {
1777
1870
  var t2, i2 = this._events;
1778
1871
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1779
1872
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1780
1873
  t3[i3] = e3[i3].listener || e3[i3];
1781
1874
  return t3;
1782
1875
  }(t2) : [];
1783
- }, M.listenerCount = function(e2, t2) {
1784
- return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
1785
- }, M.prototype.listenerCount = N, M.prototype.eventNames = function() {
1876
+ }, k.listenerCount = function(e2, t2) {
1877
+ return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
1878
+ }, k.prototype.listenerCount = F, k.prototype.eventNames = function() {
1786
1879
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1787
1880
  };
1788
- const F = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1789
- function O(e2) {
1881
+ const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1882
+ function z(e2) {
1790
1883
  if ("string" != typeof e2 && "symbol" != typeof e2)
1791
1884
  throw new TypeError("type is not type of string or symbol!");
1792
1885
  }
1793
- function V(e2) {
1886
+ function _(e2) {
1794
1887
  if ("function" != typeof e2)
1795
1888
  throw new TypeError("fn is not type of Function!");
1796
1889
  }
1797
- function z(e2) {
1798
- return { [F]: "always", fn: e2 };
1890
+ function H(e2) {
1891
+ return { [O]: "always", fn: e2 };
1799
1892
  }
1800
- function _(e2) {
1801
- return { [F]: "once", fn: e2 };
1893
+ function U(e2) {
1894
+ return { [O]: "once", fn: e2 };
1802
1895
  }
1803
- class U {
1896
+ class $ {
1804
1897
  constructor() {
1805
1898
  this._events = {};
1806
1899
  }
@@ -1808,25 +1901,25 @@ var telerikReportViewer = (function (exports) {
1808
1901
  return this.on(e2, t2);
1809
1902
  }
1810
1903
  on(e2, t2) {
1811
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(z(t2)), this;
1904
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(H(t2)), this;
1812
1905
  }
1813
1906
  prependListener(e2, t2) {
1814
1907
  return this.prepend(e2, t2);
1815
1908
  }
1816
1909
  prepend(e2, t2) {
1817
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(z(t2)), this;
1910
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(H(t2)), this;
1818
1911
  }
1819
1912
  prependOnceListener(e2, t2) {
1820
1913
  return this.prependOnce(e2, t2);
1821
1914
  }
1822
1915
  prependOnce(e2, t2) {
1823
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
1916
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1824
1917
  }
1825
1918
  listeners(e2) {
1826
1919
  return (this._events[e2] || []).map((e3) => e3.fn);
1827
1920
  }
1828
1921
  once(e2, t2) {
1829
- return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
1922
+ return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1830
1923
  }
1831
1924
  removeAllListeners() {
1832
1925
  this._events = {};
@@ -1835,7 +1928,7 @@ var telerikReportViewer = (function (exports) {
1835
1928
  return this.removeListener(e2, t2);
1836
1929
  }
1837
1930
  removeListener(e2, t2) {
1838
- O(e2);
1931
+ z(e2);
1839
1932
  const i2 = this.listeners(e2);
1840
1933
  if ("function" == typeof t2) {
1841
1934
  let n2 = -1, r2 = false;
@@ -1847,12 +1940,12 @@ var telerikReportViewer = (function (exports) {
1847
1940
  }
1848
1941
  emit(e2, ...t2) {
1849
1942
  return i(this, void 0, void 0, function* () {
1850
- O(e2);
1943
+ z(e2);
1851
1944
  const i2 = this.listeners(e2), n2 = [];
1852
1945
  if (i2 && i2.length) {
1853
1946
  for (let r2 = 0; r2 < i2.length; r2++) {
1854
1947
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1855
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1948
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1856
1949
  }
1857
1950
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1858
1951
  }
@@ -1860,21 +1953,21 @@ var telerikReportViewer = (function (exports) {
1860
1953
  });
1861
1954
  }
1862
1955
  emitSync(e2, ...t2) {
1863
- O(e2);
1956
+ z(e2);
1864
1957
  const i2 = this.listeners(e2), n2 = [];
1865
1958
  if (i2 && i2.length) {
1866
1959
  for (let r2 = 0; r2 < i2.length; r2++) {
1867
1960
  const s2 = i2[r2];
1868
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1961
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1869
1962
  }
1870
1963
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1871
1964
  }
1872
1965
  return false;
1873
1966
  }
1874
1967
  }
1875
- class $ {
1968
+ class B {
1876
1969
  constructor() {
1877
- this.eventEmitter = new M(), this.awaitEventEmitter = new U();
1970
+ this.eventEmitter = new k(), this.awaitEventEmitter = new $();
1878
1971
  }
1879
1972
  on(e2, t2) {
1880
1973
  return this.eventEmitter.on(e2, t2), this;
@@ -1891,7 +1984,7 @@ var telerikReportViewer = (function (exports) {
1891
1984
  });
1892
1985
  }
1893
1986
  }
1894
- class H {
1987
+ class q {
1895
1988
  hasPdfPlugin() {
1896
1989
  let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1897
1990
  for (let t2 of e2)
@@ -1904,7 +1997,7 @@ var telerikReportViewer = (function (exports) {
1904
1997
  return false;
1905
1998
  }
1906
1999
  }
1907
- class B {
2000
+ class W {
1908
2001
  hasPdfPlugin() {
1909
2002
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
1910
2003
  if (null !== e2 && e2.length > 1) {
@@ -1919,7 +2012,7 @@ var telerikReportViewer = (function (exports) {
1919
2012
  return false;
1920
2013
  }
1921
2014
  }
1922
- class q {
2015
+ class Z {
1923
2016
  constructor(e2) {
1924
2017
  this.defaultPlugin = e2;
1925
2018
  }
@@ -1930,22 +2023,22 @@ var telerikReportViewer = (function (exports) {
1930
2023
  return false;
1931
2024
  }
1932
2025
  }
1933
- class W {
2026
+ class j {
1934
2027
  hasPdfPlugin() {
1935
2028
  return false;
1936
2029
  }
1937
2030
  }
1938
- function j() {
2031
+ function J() {
1939
2032
  return window.navigator && window.navigator.msSaveOrOpenBlob;
1940
2033
  }
1941
- class J {
2034
+ class G {
1942
2035
  constructor() {
1943
2036
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
1944
2037
  if (window.navigator) {
1945
2038
  let e2 = window.navigator.userAgent.toLowerCase();
1946
- return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new H() : e2.indexOf("firefox") > -1 ? new B() : e2.indexOf("edg/") > -1 ? new q("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new q("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new q("WebKit built-in PDF") : new W();
2039
+ return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new q() : e2.indexOf("firefox") > -1 ? new W() : e2.indexOf("edg/") > -1 ? new Z("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new Z("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new Z("WebKit built-in PDF") : new j();
1947
2040
  }
1948
- return new W();
2041
+ return new j();
1949
2042
  }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1950
2043
  }
1951
2044
  destroy() {
@@ -1963,13 +2056,13 @@ var telerikReportViewer = (function (exports) {
1963
2056
  }), function(e3) {
1964
2057
  let t3 = window.location, i3 = document.createElement("a");
1965
2058
  return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
1966
- }(e2) && j())
2059
+ }(e2) && J())
1967
2060
  return this.iframe.src = e2, void document.body.appendChild(this.iframe);
1968
2061
  let i2 = new XMLHttpRequest(), n2 = this;
1969
2062
  i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
1970
2063
  if (200 === this.status) {
1971
2064
  let e3 = new Blob([this.response], { type: "application/pdf" });
1972
- j() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
2065
+ J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1973
2066
  } else
1974
2067
  console.log("Could not retrieve remote PDF document.");
1975
2068
  }, i2.send();
@@ -1984,10 +2077,10 @@ var telerikReportViewer = (function (exports) {
1984
2077
  return this.hasPdfPlugin;
1985
2078
  }
1986
2079
  }
1987
- function G(e2) {
2080
+ function K(e2) {
1988
2081
  return 1e3 * e2;
1989
2082
  }
1990
- class Z {
2083
+ class X {
1991
2084
  constructor(e2, t2, i2) {
1992
2085
  if (this.pingMilliseconds = 0, !e2)
1993
2086
  throw "Error";
@@ -1996,7 +2089,7 @@ var telerikReportViewer = (function (exports) {
1996
2089
  initSessionTimeout(e2) {
1997
2090
  if (!isFinite(e2))
1998
2091
  throw "sessionTimeoutSeconds must be finite";
1999
- this.pingMilliseconds = e2 <= 120 ? G(e2) / 2 : G(e2 - 60);
2092
+ this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
2000
2093
  }
2001
2094
  start() {
2002
2095
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -2007,33 +2100,33 @@ var telerikReportViewer = (function (exports) {
2007
2100
  this.interval && (clearInterval(this.interval), this.interval = null);
2008
2101
  }
2009
2102
  }
2010
- var K, X, Y, Q, ee;
2011
- function te(e2, t2 = "", i2 = "") {
2103
+ var Y, Q, ee, te, ie;
2104
+ function ne(e2, t2 = "", i2 = "") {
2012
2105
  let n2 = document.createElement(e2);
2013
- return t2 && (n2.id = t2), ie(n2, i2), n2;
2106
+ return t2 && (n2.id = t2), re(n2, i2), n2;
2014
2107
  }
2015
- function ie(e2, t2) {
2108
+ function re(e2, t2) {
2016
2109
  if ("" === t2 || !e2)
2017
2110
  return;
2018
2111
  let i2 = t2.trim().split(" ");
2019
2112
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
2020
2113
  }
2021
- function ne(e2, t2) {
2114
+ function se(e2, t2) {
2022
2115
  if ("" === t2 || !e2)
2023
2116
  return;
2024
2117
  let i2 = t2.trim().split(" ");
2025
2118
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
2026
2119
  }
2027
- function re(e2, t2) {
2120
+ function oe(e2, t2) {
2028
2121
  return e2.classList.contains(t2);
2029
2122
  }
2030
- function se(e2) {
2123
+ function ae(e2) {
2031
2124
  return e2.offsetParent;
2032
2125
  }
2033
- function oe(e2) {
2126
+ function le(e2) {
2034
2127
  return parseInt(e2, 10) || 0;
2035
2128
  }
2036
- function ae(e2, t2, i2, n2 = 0, r2 = 0) {
2129
+ function he(e2, t2, i2, n2 = 0, r2 = 0) {
2037
2130
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
2038
2131
  !function(e3, t3) {
2039
2132
  e3.style.setProperty("transform", t3), e3.style.setProperty("-moz-transform", t3), e3.style.setProperty("-ms-transform", t3), e3.style.setProperty("-webkit-transform", t3), e3.style.setProperty("-o-transform", t3);
@@ -2041,11 +2134,11 @@ var telerikReportViewer = (function (exports) {
2041
2134
  e3.style.setProperty("transform-origin", t3), e3.style.setProperty("-moz-transform-origin", t3), e3.style.setProperty("-ms-transform-origin", t3), e3.style.setProperty("-webkit-transform-origin", t3), e3.style.setProperty("-o-transform-origin", t3);
2042
2135
  }(e2, s2);
2043
2136
  }
2044
- function le(e2) {
2045
- let t2 = te("div");
2137
+ function ce(e2) {
2138
+ let t2 = ne("div");
2046
2139
  return t2.textContent = e2, t2.innerHTML;
2047
2140
  }
2048
- function he(e2) {
2141
+ function de(e2) {
2049
2142
  if (e2 && e2.length < 6) {
2050
2143
  let t3 = 1, i2 = e2.split("");
2051
2144
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -2055,16 +2148,16 @@ var telerikReportViewer = (function (exports) {
2055
2148
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
2056
2149
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
2057
2150
  }
2058
- function ce(e2) {
2151
+ function ue(e2) {
2059
2152
  return !!e2 && e2.indexOf(",") > -1;
2060
2153
  }
2061
- function de(e2) {
2154
+ function pe(e2) {
2062
2155
  if ("transparent" === e2.toLowerCase())
2063
2156
  return 0;
2064
- if (!ce(e2))
2157
+ if (!ue(e2))
2065
2158
  return 1;
2066
2159
  if (-1 !== e2.indexOf("#")) {
2067
- let t3 = he(e2);
2160
+ let t3 = de(e2);
2068
2161
  if (null === t3)
2069
2162
  return 1;
2070
2163
  e2 = t3;
@@ -2074,34 +2167,34 @@ var telerikReportViewer = (function (exports) {
2074
2167
  });
2075
2168
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
2076
2169
  }
2077
- function ue(e2, t2) {
2078
- let i2 = te("div");
2170
+ function ge(e2, t2) {
2171
+ let i2 = ne("div");
2079
2172
  for (i2.innerHTML = t2; i2.childNodes.length; )
2080
2173
  e2.appendChild(i2.childNodes[0]);
2081
2174
  }
2082
- function pe(e2, t2) {
2083
- let i2 = te("div");
2175
+ function fe(e2, t2) {
2176
+ let i2 = ne("div");
2084
2177
  for (i2.innerHTML = t2; i2.childNodes.length; )
2085
2178
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
2086
2179
  }
2087
- function ge(e2, t2) {
2180
+ function me(e2, t2) {
2088
2181
  return e2 ? e2.querySelector(t2) : null;
2089
2182
  }
2090
- function me(e2, t2) {
2183
+ function ve(e2, t2) {
2091
2184
  var i2;
2092
2185
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
2093
2186
  }
2094
- function fe(e2) {
2187
+ function Pe(e2) {
2095
2188
  let t2 = e2.parentElement;
2096
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : fe(t2) : null;
2189
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : Pe(t2) : null;
2097
2190
  }
2098
- function ve(e2, t2 = 300) {
2191
+ function Ce(e2, t2 = 300) {
2099
2192
  let i2;
2100
2193
  return function(...n2) {
2101
2194
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
2102
2195
  };
2103
2196
  }
2104
- function Pe(e2, t2) {
2197
+ function ye(e2, t2) {
2105
2198
  let i2 = null;
2106
2199
  return function(n2, ...r2) {
2107
2200
  i2 || (i2 = setTimeout(function() {
@@ -2109,24 +2202,24 @@ var telerikReportViewer = (function (exports) {
2109
2202
  }, t2));
2110
2203
  };
2111
2204
  }
2112
- function Ce(e2, t2) {
2205
+ function Se(e2, t2) {
2113
2206
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
2114
2207
  }
2115
- function ye(e2) {
2116
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2208
+ function Ie(e2) {
2209
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2117
2210
  }
2118
- function Se(e2) {
2119
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2211
+ function be(e2) {
2212
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2120
2213
  }
2121
- function Ie(e2) {
2214
+ function we(e2) {
2122
2215
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2123
2216
  }
2124
- function be(e2, ...t2) {
2217
+ function Le(e2, ...t2) {
2125
2218
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2126
2219
  }
2127
- function we(e2, t2) {
2220
+ function Te(e2, t2) {
2128
2221
  let i2, n2;
2129
- if (Te(e2))
2222
+ if (Ae(e2))
2130
2223
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2131
2224
  ;
2132
2225
  else
@@ -2135,40 +2228,30 @@ var telerikReportViewer = (function (exports) {
2135
2228
  break;
2136
2229
  return e2;
2137
2230
  }
2138
- function Te(e2) {
2231
+ function Ae(e2) {
2139
2232
  if (Array.isArray(e2))
2140
2233
  return true;
2141
2234
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2142
2235
  }
2143
- function Ae(e2) {
2236
+ function Re(e2) {
2144
2237
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2145
2238
  }
2146
- function Re(e2) {
2239
+ function Ee(e2) {
2147
2240
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2148
2241
  }
2149
- function Ee(e2) {
2242
+ function Me(e2) {
2150
2243
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2151
2244
  }
2152
- e.PageMode = void 0, (K = e.PageMode || (e.PageMode = {}))[K.ContinuousScroll = 0] = "ContinuousScroll", K[K.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (X = e.PrintMode || (e.PrintMode = {}))[X.AutoSelect = 0] = "AutoSelect", X[X.ForcePDFPlugin = 1] = "ForcePDFPlugin", X[X.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Y = e.ScaleMode || (e.ScaleMode = {}))[Y.FitPageWidth = 0] = "FitPageWidth", Y[Y.FitPage = 1] = "FitPage", Y[Y.Specific = 2] = "Specific", e.ServiceType = void 0, (Q = e.ServiceType || (e.ServiceType = {}))[Q.REST = 0] = "REST", Q[Q.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ee = e.ViewMode || (e.ViewMode = {}))[ee.Interactive = 0] = "Interactive", ee[ee.PrintPreview = 1] = "PrintPreview";
2153
- class Me {
2154
- constructor(e2, t2) {
2155
- this.handled = false, this.deviceInfo = e2, this.format = t2;
2156
- }
2157
- }
2158
- class xe extends r {
2159
- constructor(e2, t2, i2) {
2160
- super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
2161
- }
2162
- }
2163
- const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2164
- var Oe = function() {
2245
+ e.PageMode = void 0, (Y = e.PageMode || (e.PageMode = {}))[Y.ContinuousScroll = 0] = "ContinuousScroll", Y[Y.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Q = e.PrintMode || (e.PrintMode = {}))[Q.AutoSelect = 0] = "AutoSelect", Q[Q.ForcePDFPlugin = 1] = "ForcePDFPlugin", Q[Q.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (ee = e.ScaleMode || (e.ScaleMode = {}))[ee.FitPageWidth = 0] = "FitPageWidth", ee[ee.FitPage = 1] = "FitPage", ee[ee.Specific = 2] = "Specific", e.ServiceType = void 0, (te = e.ServiceType || (e.ServiceType = {}))[te.REST = 0] = "REST", te[te.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ie = e.ViewMode || (e.ViewMode = {}))[ie.Interactive = 0] = "Interactive", ie[ie.PrintPreview = 1] = "PrintPreview";
2246
+ const ke = "System.Int64", xe = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2247
+ var Ve = function() {
2165
2248
  var e2 = {};
2166
2249
  function t2(e3, t3, i3, n2) {
2167
2250
  var r2 = [].concat(t3).map(function(t4) {
2168
2251
  return function(e4, t5, i4) {
2169
2252
  if (e4.availableValues) {
2170
2253
  var n3 = false;
2171
- if (we(e4.availableValues, function(e5, r3) {
2254
+ if (Te(e4.availableValues, function(e5, r3) {
2172
2255
  return !(n3 = i4(t5, r3.value));
2173
2256
  }), !n3) {
2174
2257
  if (e4.allowNull && !t5)
@@ -2205,9 +2288,9 @@ var telerikReportViewer = (function (exports) {
2205
2288
  }, function(e4, t3) {
2206
2289
  return e4 == t3;
2207
2290
  });
2208
- } }, e2[Le] = { validate: function(e3, n2) {
2291
+ } }, e2[xe] = { validate: function(e3, n2) {
2209
2292
  return t2(e3, n2, function(t3) {
2210
- var n3 = Re(t3);
2293
+ var n3 = Ee(t3);
2211
2294
  if (isNaN(n3)) {
2212
2295
  if (i2(e3, t3))
2213
2296
  return null;
@@ -2215,11 +2298,11 @@ var telerikReportViewer = (function (exports) {
2215
2298
  }
2216
2299
  return n3;
2217
2300
  }, function(e4, t3) {
2218
- return Re(e4) == Re(t3);
2301
+ return Ee(e4) == Ee(t3);
2219
2302
  });
2220
2303
  } }, e2[ke] = { validate: function(e3, n2) {
2221
2304
  return t2(e3, n2, function(t3) {
2222
- var n3 = Ae(t3);
2305
+ var n3 = Re(t3);
2223
2306
  if (isNaN(n3)) {
2224
2307
  if (i2(e3, t3))
2225
2308
  return null;
@@ -2227,17 +2310,17 @@ var telerikReportViewer = (function (exports) {
2227
2310
  }
2228
2311
  return n3;
2229
2312
  }, function(e4, t3) {
2230
- return Ae(e4) == Re(t3);
2313
+ return Re(e4) == Ee(t3);
2231
2314
  });
2232
2315
  } }, e2[De] = { validate: function(e3, i3) {
2233
2316
  return t2(e3, i3, function(t3) {
2234
2317
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2235
2318
  return null;
2236
2319
  if (!isNaN(Date.parse(t3)))
2237
- return e3.availableValues ? t3 : Ee(t3);
2320
+ return e3.availableValues ? t3 : Me(t3);
2238
2321
  throw "Please input a valid date.";
2239
2322
  }, function(e4, t3) {
2240
- return e4 = Ee(e4), t3 = Ee(t3), e4.getTime() == t3.getTime();
2323
+ return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2241
2324
  });
2242
2325
  } }, e2[Fe] = { validate: function(e3, n2) {
2243
2326
  return t2(e3, n2, function(t3) {
@@ -2252,11 +2335,11 @@ var telerikReportViewer = (function (exports) {
2252
2335
  } }, { validate: function(t3, i3) {
2253
2336
  var n2 = e2[t3.type];
2254
2337
  if (!n2)
2255
- throw be("Cannot validate parameter of type {type}.", t3);
2338
+ throw Le("Cannot validate parameter of type {type}.", t3);
2256
2339
  return n2.validate(t3, i3);
2257
2340
  } };
2258
2341
  }();
2259
- function Ve(e2, t2, i2) {
2342
+ function Oe(e2, t2, i2) {
2260
2343
  try {
2261
2344
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2262
2345
  if (!n2) {
@@ -2272,7 +2355,7 @@ var telerikReportViewer = (function (exports) {
2272
2355
  function ze(e2, t2, i2) {
2273
2356
  const n2 = [];
2274
2357
  for (let r2 in t2)
2275
- n2.push(Ve(e2, t2[r2], i2));
2358
+ n2.push(Oe(e2, t2[r2], i2));
2276
2359
  return n2;
2277
2360
  }
2278
2361
  class _e {
@@ -2280,7 +2363,7 @@ var telerikReportViewer = (function (exports) {
2280
2363
  this.report = e2, this.parameters = t2;
2281
2364
  }
2282
2365
  }
2283
- class Ue extends $ {
2366
+ class He extends B {
2284
2367
  constructor(e2) {
2285
2368
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2286
2369
  }
@@ -2288,7 +2371,7 @@ var telerikReportViewer = (function (exports) {
2288
2371
  this.destroyResizeObserver();
2289
2372
  }
2290
2373
  initResizeObserver() {
2291
- this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2374
+ this.debounceResize = Ce(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2292
2375
  }
2293
2376
  destroyResizeObserver() {
2294
2377
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2297,8 +2380,8 @@ var telerikReportViewer = (function (exports) {
2297
2380
  e2[0].target === this.element && this.emit("resize");
2298
2381
  }
2299
2382
  }
2300
- const $e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2301
- class He {
2383
+ const Ue = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2384
+ class $e {
2302
2385
  constructor(t2, i2, n2) {
2303
2386
  this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this)).on("pageLoaded", this.onPageLoaded.bind(this));
2304
2387
  }
@@ -2320,10 +2403,10 @@ var telerikReportViewer = (function (exports) {
2320
2403
  return this.enabled;
2321
2404
  }
2322
2405
  enable() {
2323
- this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
2406
+ this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
2324
2407
  }
2325
2408
  disable() {
2326
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, ne(this.placeholder, "scrollable"), this.unbind());
2409
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, se(this.placeholder, "scrollable"), this.unbind());
2327
2410
  }
2328
2411
  renderPage(e2) {
2329
2412
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2338,7 +2421,7 @@ var telerikReportViewer = (function (exports) {
2338
2421
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2339
2422
  }
2340
2423
  setCurrentPage(e2) {
2341
- e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (ne(this.findElement(".k-state-default"), "k-state-default"), ie(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2424
+ e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (se(this.findElement(".k-state-default"), "k-state-default"), re(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2342
2425
  }
2343
2426
  updatePageArea(e2) {
2344
2427
  var t2;
@@ -2363,18 +2446,18 @@ var telerikReportViewer = (function (exports) {
2363
2446
  return this.controller.getCurrentPageNumber();
2364
2447
  }
2365
2448
  isSkeletonScreen(e2, t2) {
2366
- return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
2449
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
2367
2450
  }
2368
2451
  addSkeletonScreen(e2, t2) {
2369
- let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = be($e, e2, r2, s2);
2370
- t2 ? pe(this.pageWrapper, o2) : ue(this.pageWrapper, o2);
2452
+ let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = ve(n2, "style"), s2 = ve(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = Le(Ue, e2, r2, s2);
2453
+ t2 ? fe(this.pageWrapper, o2) : ge(this.pageWrapper, o2);
2371
2454
  }
2372
2455
  generateSkeletonScreens(e2) {
2373
2456
  var t2;
2374
- let i2 = "", n2 = this.findPageElement(1), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2457
+ let i2 = "", n2 = this.findPageElement(1), r2 = ve(n2, "style"), s2 = ve(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2375
2458
  for (; a2 < e2; a2++)
2376
- i2 += be($e, a2, r2, s2);
2377
- ue(this.pageWrapper, i2);
2459
+ i2 += Le(Ue, a2, r2, s2);
2460
+ ge(this.pageWrapper, i2);
2378
2461
  }
2379
2462
  loadMorePages() {
2380
2463
  var e2;
@@ -2425,10 +2508,10 @@ var telerikReportViewer = (function (exports) {
2425
2508
  }
2426
2509
  }
2427
2510
  initEvents() {
2428
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
2511
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Ce(() => {
2429
2512
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2430
2513
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2431
- }, 250), this.throttleScroll = Pe(() => {
2514
+ }, 250), this.throttleScroll = ye(() => {
2432
2515
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2433
2516
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2434
2517
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2531,7 +2614,7 @@ var telerikReportViewer = (function (exports) {
2531
2614
  this.reset(e2), this.attachToScrollEvent();
2532
2615
  }
2533
2616
  reset(e2) {
2534
- this.placeholder = e2, this.scrollableContainer = ge(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2617
+ this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2535
2618
  }
2536
2619
  setScaleFactor(e2) {
2537
2620
  this.scaleFactor = e2;
@@ -2554,7 +2637,7 @@ var telerikReportViewer = (function (exports) {
2554
2637
  saveFreezeItemsInitialState(e2) {
2555
2638
  var t2, i2, n2;
2556
2639
  let r2 = null === (t2 = this.placeholder) || void 0 === t2 ? void 0 : t2.querySelectorAll("[data-sticky-direction][data-sticky-id='" + e2 + "']"), s2 = null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelectorAll("[data-reporting-action][data-sticky-id='" + e2 + "']"), o2 = null, a2 = null, l2 = null, h2 = null;
2557
- this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = ge(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2640
+ this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2558
2641
  var i3;
2559
2642
  let n3 = t3.dataset.stickyDirection, r3 = (null === (i3 = t3.dataset.id) || void 0 === i3 ? void 0 : i3.toString()) || "", s3 = t3.offsetLeft / this.scaleFactor, c2 = t3.offsetLeft + t3.offsetWidth * this.scaleFactor, d2 = t3.offsetTop / this.scaleFactor, u2 = t3.offsetTop + t3.offsetHeight * this.scaleFactor, p2 = (e3, t4) => null === e3 || t4 < e3 ? t4 : e3, g2 = (e3, t4) => null === e3 || t4 > e3 ? t4 : e3;
2560
2643
  switch (n3) {
@@ -2576,13 +2659,13 @@ var telerikReportViewer = (function (exports) {
2576
2659
  }
2577
2660
  updateFreezeItemsOnScroll(e2, t2, i2) {
2578
2661
  var n2, r2;
2579
- let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
2662
+ let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2580
2663
  if (!s2)
2581
2664
  return;
2582
2665
  let o2 = null === (n2 = this.placeholder) || void 0 === n2 ? void 0 : n2.querySelectorAll("[data-sticky-direction*='Horizontal'][data-sticky-id='" + e2 + "']"), a2 = null === (r2 = this.placeholder) || void 0 === r2 ? void 0 : r2.querySelectorAll("[data-sticky-direction*='Vertical'][data-sticky-id='" + e2 + "']");
2583
2666
  if (this.isInScrollVisibleArea(s2)) {
2584
- let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0, m2 = s2.offsetTop + ((null == n3 ? void 0 : n3.offsetTop) || 0) + l2 + h2 + d2, f2 = s2.offsetLeft + ((null == n3 ? void 0 : n3.offsetLeft) || 0) + c2 + u2, v2 = t2 - m2, P2 = i2 - f2;
2585
- g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor + m2 - this.yFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.vertical[e2] = true, this.updateUIElementsPosition(a2, "top", v2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.vertical[e2] && (delete this.currentlyFrozenContainer.vertical[e2], this.updateUIElementsPosition(a2, "top", -1, e2)), p2 && P2 > 0 ? i2 <= s2.offsetWidth * this.scaleFactor + f2 - this.xFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.horizontal[e2] = true, this.updateUIElementsPosition(o2, "left", P2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.horizontal[e2] && (delete this.currentlyFrozenContainer.horizontal[e2], this.updateUIElementsPosition(o2, "left", -1, e2));
2667
+ let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0, f2 = s2.offsetTop + ((null == n3 ? void 0 : n3.offsetTop) || 0) + l2 + h2 + d2, m2 = s2.offsetLeft + ((null == n3 ? void 0 : n3.offsetLeft) || 0) + c2 + u2, v2 = t2 - f2, P2 = i2 - m2;
2668
+ g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor + f2 - this.yFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.vertical[e2] = true, this.updateUIElementsPosition(a2, "top", v2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.vertical[e2] && (delete this.currentlyFrozenContainer.vertical[e2], this.updateUIElementsPosition(a2, "top", -1, e2)), p2 && P2 > 0 ? i2 <= s2.offsetWidth * this.scaleFactor + m2 - this.xFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.horizontal[e2] = true, this.updateUIElementsPosition(o2, "left", P2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.horizontal[e2] && (delete this.currentlyFrozenContainer.horizontal[e2], this.updateUIElementsPosition(o2, "left", -1, e2));
2586
2669
  } else
2587
2670
  (this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2]) && this.resetToDefaultPosition(e2, o2, a2);
2588
2671
  }
@@ -2601,7 +2684,7 @@ var telerikReportViewer = (function (exports) {
2601
2684
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2602
2685
  }
2603
2686
  hasSetBgColor(e2) {
2604
- return de(e2) > 0;
2687
+ return pe(e2) > 0;
2605
2688
  }
2606
2689
  isFrozen(e2) {
2607
2690
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2622,20 +2705,20 @@ var telerikReportViewer = (function (exports) {
2622
2705
  }
2623
2706
  }
2624
2707
  const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
2625
- function je(e2, t2) {
2708
+ function Ze(e2, t2) {
2626
2709
  let i2 = Array.isArray(t2);
2627
2710
  return e2 ? e2.replace(qe, function(e3, n2) {
2628
2711
  return t2[i2 ? parseInt(n2) : n2];
2629
2712
  }) : "";
2630
2713
  }
2631
- const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
2632
- e.BasicAuth = C, e.BookmarkNode = class {
2714
+ const je = "trv-search-dialog-shaded-result", Je = "trv-search-dialog-highlighted-result";
2715
+ e.BasicAuth = S, e.BookmarkNode = class {
2633
2716
  constructor() {
2634
2717
  this.id = "", this.text = "", this.page = 0, this.items = null;
2635
2718
  }
2636
- }, e.ConnectionConfig = b, e.ConnectionConfigNoAuth = w, e.ConnectionConfigServerCredentials = A, e.ConnectionConfigServerNoAuth = T, e.ConnectionConfigServerToken = R, e.ContentArea = class {
2719
+ }, e.ConnectionConfig = L, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
2637
2720
  constructor(e2, t2, i2, n2 = {}) {
2638
- this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new Ue(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2721
+ this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new $e(this.placeholder, this, t2), this.resizeService = new He(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2639
2722
  }
2640
2723
  destroy() {
2641
2724
  this.resizeService && this.resizeService.destroy();
@@ -2662,10 +2745,10 @@ var telerikReportViewer = (function (exports) {
2662
2745
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2663
2746
  }
2664
2747
  onReportLoadProgress(e2) {
2665
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2748
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2666
2749
  }
2667
2750
  onReportLoadComplete(t2) {
2668
- 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2751
+ 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2669
2752
  }
2670
2753
  onReportAutoRunOff() {
2671
2754
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2702,14 +2785,14 @@ var telerikReportViewer = (function (exports) {
2702
2785
  let t2 = this.controller.getScaleMode();
2703
2786
  return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
2704
2787
  }
2705
- onPrintStarted() {
2706
- this.showNotification(this.messages.ReportViewer_PreparingPrint);
2788
+ onPrintStarted(e2) {
2789
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
2707
2790
  }
2708
2791
  onPrintDocumentReady() {
2709
2792
  this.hideNotification();
2710
2793
  }
2711
- onExportStarted() {
2712
- this.showNotification(this.messages.ReportViewer_PreparingDownload);
2794
+ onExportStarted(e2) {
2795
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
2713
2796
  }
2714
2797
  onExportDocumentReady() {
2715
2798
  this.hideNotification();
@@ -2762,14 +2845,14 @@ var telerikReportViewer = (function (exports) {
2762
2845
  }
2763
2846
  let e3 = 0, i3 = 0;
2764
2847
  for (; n2 && n2 !== this.pageContainer; ) {
2765
- if (re(n2, "trv-page-wrapper")) {
2848
+ if (oe(n2, "trv-page-wrapper")) {
2766
2849
  let t3 = n2.dataset.pageScale;
2767
2850
  if ("string" == typeof t3) {
2768
2851
  let n3 = parseFloat(t3);
2769
2852
  e3 *= n3, i3 *= n3;
2770
2853
  }
2771
2854
  }
2772
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
2855
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
2773
2856
  }
2774
2857
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2775
2858
  } else
@@ -2783,7 +2866,7 @@ var telerikReportViewer = (function (exports) {
2783
2866
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2784
2867
  }
2785
2868
  disablePagesArea(e2) {
2786
- e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
2869
+ e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
2787
2870
  }
2788
2871
  disableParametersArea(e2) {
2789
2872
  var t2, i2;
@@ -2794,13 +2877,13 @@ var telerikReportViewer = (function (exports) {
2794
2877
  }
2795
2878
  showNotification(e2 = "", t2 = "info") {
2796
2879
  let i2 = this.notification.dataset.type;
2797
- i2 && ne(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2880
+ i2 && se(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2798
2881
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2799
- n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ie(this.notification, `k-notification-${t2}`), ne(this.notification, "k-hidden");
2882
+ n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", re(this.notification, `k-notification-${t2}`), se(this.notification, "k-hidden");
2800
2883
  }
2801
2884
  hideNotification() {
2802
2885
  let e2 = String(this.notification.dataset.type);
2803
- delete this.notification.dataset.type, ne(this.notification, `k-notification-${e2}`), ie(this.notification, "k-hidden");
2886
+ delete this.notification.dataset.type, se(this.notification, `k-notification-${e2}`), re(this.notification, "k-hidden");
2804
2887
  }
2805
2888
  pageNo(e2) {
2806
2889
  var t2;
@@ -2823,7 +2906,7 @@ var telerikReportViewer = (function (exports) {
2823
2906
  r2 = JSON.parse(n2.dataset.box);
2824
2907
  else {
2825
2908
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
2826
- r2 = { padLeft: oe(i3.marginLeft) + oe(e2.borderLeftWidth) + oe(e2.paddingLeft), padRight: oe(i3.marginRight) + oe(e2.borderRightWidth) + oe(e2.paddingRight), padTop: oe(i3.marginTop) + oe(e2.borderTopWidth) + oe(e2.paddingTop), padBottom: oe(i3.marginBottom) + oe(e2.borderBottomWidth) + oe(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2909
+ r2 = { padLeft: le(i3.marginLeft) + le(e2.borderLeftWidth) + le(e2.paddingLeft), padRight: le(i3.marginRight) + le(e2.borderRightWidth) + le(e2.paddingRight), padTop: le(i3.marginTop) + le(e2.borderTopWidth) + le(e2.paddingTop), padBottom: le(i3.marginBottom) + le(e2.borderBottomWidth) + le(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2827
2910
  }
2828
2911
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2829
2912
  if (0 === a2) {
@@ -2832,13 +2915,13 @@ var telerikReportViewer = (function (exports) {
2832
2915
  }
2833
2916
  const h2 = this.controller.getScaleMode(), c2 = l2 > a2 && h2 === e.ScaleMode.FitPageWidth ? 20 : 0, d2 = (this.pageContainer.clientWidth - c2 - r2.padLeft - r2.padRight) / a2, u2 = (this.pageContainer.clientHeight - 1 - r2.padTop - r2.padBottom) / l2;
2834
2917
  let p2 = this.controller.getScale();
2835
- h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || ae(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2918
+ h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || he(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2836
2919
  }
2837
2920
  enableInteractivity() {
2838
- this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
2921
+ this.disableInteractivity(), this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
2839
2922
  }
2840
2923
  disableInteractivity() {
2841
- this.pageContainer.removeEventListener("click", this.onClickHandler), this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler), this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler);
2924
+ this.onClickHandler && (this.pageContainer.removeEventListener("click", this.onClickHandler), this.onClickHandler = null), this.onMouseEnterHandler && (this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler, true), this.onMouseEnterHandler = null), this.onMouseLeaveHandler && (this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler, true), this.onMouseLeaveHandler = null);
2842
2925
  }
2843
2926
  onClick(e2) {
2844
2927
  let t2 = e2.target.closest("[data-reporting-action]");
@@ -2869,10 +2952,10 @@ var telerikReportViewer = (function (exports) {
2869
2952
  }
2870
2953
  onToolTipItemEnter(e2, t2) {
2871
2954
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2872
- (i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
2955
+ (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2873
2956
  }
2874
2957
  onToolTipItemLeave(e2) {
2875
- this.controller.reportTooltipClosing(new p(e2, "", "", null));
2958
+ this.controller.reportTooltipClosing(new f(e2, "", "", null));
2876
2959
  }
2877
2960
  getNavigateToPageOnDocReady(e2, t2) {
2878
2961
  var i2;
@@ -2890,7 +2973,7 @@ var telerikReportViewer = (function (exports) {
2890
2973
  var t2;
2891
2974
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2892
2975
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2893
- let n2 = te("style", i2);
2976
+ let n2 = ne("style", i2);
2894
2977
  n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2895
2978
  }
2896
2979
  setPageContent(e2) {
@@ -2902,26 +2985,26 @@ var telerikReportViewer = (function (exports) {
2902
2985
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2903
2986
  }
2904
2987
  renderPageElement(e2) {
2905
- let t2 = te("div");
2988
+ let t2 = ne("div");
2906
2989
  t2.innerHTML = e2.pageContent;
2907
2990
  let i2 = t2.querySelector("div.sheet");
2908
2991
  i2.style.margin = "0";
2909
- let n2 = te("div", "", "trv-report-page");
2910
- return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(te("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2992
+ let n2 = ne("div", "", "trv-report-page");
2993
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ne("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2911
2994
  }
2912
2995
  applyPlaceholderViewModeClass() {
2913
- this.controller.getViewMode() === e.ViewMode.Interactive ? (ne(this.placeholder, "printpreview"), ie(this.placeholder, "interactive")) : (ne(this.placeholder, "interactive"), ie(this.placeholder, "printpreview"));
2996
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (se(this.placeholder, "printpreview"), re(this.placeholder, "interactive")) : (se(this.placeholder, "interactive"), re(this.placeholder, "printpreview"));
2914
2997
  }
2915
2998
  setPageAreaImage() {
2916
2999
  this.clearPageAreaImage();
2917
- let e2 = te("style", We);
2918
- e2.innerHTML = je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
3000
+ let e2 = ne("style", We);
3001
+ e2.innerHTML = Ze('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2919
3002
  }
2920
3003
  clearPageAreaImage() {
2921
3004
  var e2;
2922
3005
  null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
2923
3006
  }
2924
- }, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
3007
+ }, e.CurrentPageChangedEventArgs = g, e.DeviceInfo = n, e.DocumentInfo = class {
2925
3008
  constructor() {
2926
3009
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
2927
3010
  }
@@ -2929,7 +3012,7 @@ var telerikReportViewer = (function (exports) {
2929
3012
  constructor() {
2930
3013
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
2931
3014
  }
2932
- }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = Z, e.NoAuth = P, e.PageAction = class {
3015
+ }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = X, e.NoAuth = y, e.PageAction = class {
2933
3016
  constructor() {
2934
3017
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
2935
3018
  }
@@ -2941,17 +3024,17 @@ var telerikReportViewer = (function (exports) {
2941
3024
  constructor() {
2942
3025
  this.name = "", this.type = "", this.text = "", this.multivalue = false, this.allowNull = false, this.allowBlank = false, this.isVisible = false, this.autoRefresh = false, this.hasChildParameters = false, this.childParameters = [], this.availableValues = [], this.value = "", this.id = "", this.label = "";
2943
3026
  }
2944
- }, e.ParameterValidators = Oe, e.ParameterValue = class {
3027
+ }, e.ParameterValidators = Ve, e.ParameterValue = class {
2945
3028
  constructor() {
2946
3029
  this.name = "", this.value = null;
2947
3030
  }
2948
- }, e.PersonalTokenAuth = y, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
3031
+ }, e.PersonalTokenAuth = I, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
2949
3032
  constructor() {
2950
3033
  this.name = "", this.localizedName = "";
2951
3034
  }
2952
- }, e.ReportController = class extends $ {
3035
+ }, e.ReportController = class extends B {
2953
3036
  constructor(e2, t2) {
2954
- super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new J(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
3037
+ super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
2955
3038
  }
2956
3039
  get autoRunEnabled() {
2957
3040
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -2995,7 +3078,7 @@ var telerikReportViewer = (function (exports) {
2995
3078
  let t2 = {}, i2 = [], n2 = false;
2996
3079
  for (let r2 of e2)
2997
3080
  try {
2998
- let e3 = Oe.validate(r2, r2.value);
3081
+ let e3 = Ve.validate(r2, r2.value);
2999
3082
  t2[r2.id] = e3;
3000
3083
  } catch (e3) {
3001
3084
  n2 = true, i2.push(r2);
@@ -3018,7 +3101,7 @@ var telerikReportViewer = (function (exports) {
3018
3101
  hasInvalidParameter(e2) {
3019
3102
  for (const t2 of e2)
3020
3103
  try {
3021
- Oe.validate(t2, t2.value);
3104
+ Ve.validate(t2, t2.value);
3022
3105
  } catch (e3) {
3023
3106
  return true;
3024
3107
  }
@@ -3095,7 +3178,7 @@ var telerikReportViewer = (function (exports) {
3095
3178
  return this.currentPageNumber;
3096
3179
  }
3097
3180
  setCurrentPageNumber(e2) {
3098
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new u(e2, this.documentId)));
3181
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new g(e2, this.documentId)));
3099
3182
  }
3100
3183
  getPageCount() {
3101
3184
  return this.pageCount;
@@ -3105,8 +3188,13 @@ var telerikReportViewer = (function (exports) {
3105
3188
  }
3106
3189
  executeReportAction(e2) {
3107
3190
  let t2 = e2.action;
3108
- window.setTimeout(() => {
3109
- if (this.emit("interactiveActionExecuting", e2), !e2.cancel)
3191
+ window.setTimeout(() => i(this, void 0, void 0, function* () {
3192
+ try {
3193
+ yield this.emitAsync("interactiveActionExecuting", e2), this.emit("interactiveActionExecuting", e2);
3194
+ } catch (e3) {
3195
+ return void this.raiseError(e3 instanceof Error ? e3.message : String(e3));
3196
+ }
3197
+ if (!e2.cancel)
3110
3198
  if ("navigateToReport" === t2.Type) {
3111
3199
  this.emit("serverActionStarted");
3112
3200
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
@@ -3123,7 +3211,7 @@ var telerikReportViewer = (function (exports) {
3123
3211
  window.open(e3.Url, e3.Target);
3124
3212
  } else
3125
3213
  t2.Type;
3126
- }, 0);
3214
+ }), 0);
3127
3215
  }
3128
3216
  reportActionEnter(e2) {
3129
3217
  this.emit("interactiveActionEnter", e2);
@@ -3132,7 +3220,13 @@ var telerikReportViewer = (function (exports) {
3132
3220
  this.emit("interactiveActionLeave", e2);
3133
3221
  }
3134
3222
  reportTooltipOpening(e2) {
3135
- this.emit("toolTipOpening", e2);
3223
+ return i(this, void 0, void 0, function* () {
3224
+ try {
3225
+ yield this.emitAsync("toolTipOpening", e2), this.emit("toolTipOpening", e2);
3226
+ } catch (e3) {
3227
+ this.raiseError(e3 instanceof Error ? e3.message : String(e3));
3228
+ }
3229
+ });
3136
3230
  }
3137
3231
  reportTooltipClosing(e2) {
3138
3232
  this.emit("toolTipClosing", e2);
@@ -3142,37 +3236,39 @@ var telerikReportViewer = (function (exports) {
3142
3236
  let e2 = this.createDeviceInfo();
3143
3237
  e2.ImmediatePrint = true;
3144
3238
  let t2 = new c(e2);
3145
- this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
3239
+ yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => i(this, void 0, void 0, function* () {
3146
3240
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3147
3241
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3148
3242
  let i2 = new d(t3);
3149
- this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3150
- }));
3243
+ yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3244
+ })));
3151
3245
  });
3152
3246
  }
3153
3247
  exportReport(e2) {
3154
3248
  return i(this, void 0, void 0, function* () {
3155
3249
  let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
3156
3250
  if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
3157
- let r2 = new l(t2, e2);
3158
- if (this.emit("exportStarted", r2), r2.handled)
3251
+ let t3 = new l(n2.deviceInfo, n2.format);
3252
+ if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled)
3159
3253
  return;
3160
- this.setUIState("ExportInProgress", true), this.exportAsync(e2, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
3161
- let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3254
+ this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => i(this, void 0, void 0, function* () {
3255
+ let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
3162
3256
  i2 += "?response-content-disposition=attachment";
3163
3257
  let n3 = new h(i2, e2, "_self");
3164
- yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
3258
+ yield this.emitAsync("exportEnd", n3), yield this.emitAsync("exportDocumentReady", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
3165
3259
  }));
3166
3260
  }
3167
3261
  });
3168
3262
  }
3169
3263
  sendReport(e2) {
3170
- let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
3171
- this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
3172
- let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
3173
- n2 += "?response-content-disposition=attachment";
3174
- let r2 = new xe(e2, t2, n2);
3175
- this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
3264
+ return i(this, void 0, void 0, function* () {
3265
+ let t2 = this.createDeviceInfo(), n2 = new u(t2, e2.format);
3266
+ yield this.emitAsync("sendEmailStarted", n2), this.emit("sendEmailStarted", n2), n2.handled || this.exportAsync(e2.format, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
3267
+ let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3268
+ i2 += "?response-content-disposition=attachment";
3269
+ let r2 = new p(e2, n2.deviceInfo, i2);
3270
+ yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
3271
+ }));
3176
3272
  });
3177
3273
  }
3178
3274
  getSearchResults(e2) {
@@ -3196,7 +3292,7 @@ var telerikReportViewer = (function (exports) {
3196
3292
  }
3197
3293
  sendDocumentAsync(e2, t2) {
3198
3294
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3199
- this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, le(this.getReport())));
3295
+ this.handleRequestError(e3, Le(this.options.messages.ReportViewer_ErrorSendingDocument, ce(this.getReport())));
3200
3296
  });
3201
3297
  }
3202
3298
  loadParameters(e2 = void 0) {
@@ -3209,7 +3305,7 @@ var telerikReportViewer = (function (exports) {
3209
3305
  }
3210
3306
  initializeAndStartSentinel() {
3211
3307
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3212
- this.keepClientAliveSentinel = new Z(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3308
+ this.keepClientAliveSentinel = new X(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3213
3309
  });
3214
3310
  }
3215
3311
  stopSentinel() {
@@ -3234,7 +3330,7 @@ var telerikReportViewer = (function (exports) {
3234
3330
  this.pageCount = 0, this.currentPageNumber = 0;
3235
3331
  }
3236
3332
  handleSearchRequestError(e2) {
3237
- if (!Ce(e2, "System.ArgumentException"))
3333
+ if (!Se(e2, "System.ArgumentException"))
3238
3334
  throw this.handleRequestError(e2, "", true), null;
3239
3335
  this.throwPromiseError(e2);
3240
3336
  }
@@ -3242,8 +3338,8 @@ var telerikReportViewer = (function (exports) {
3242
3338
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3243
3339
  }
3244
3340
  handleRequestError(e2, t2 = "", i2 = false) {
3245
- ye(e2) && this.onClientExpired();
3246
- let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3341
+ Ie(e2) && this.onClientExpired();
3342
+ let n2 = we(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3247
3343
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3248
3344
  }
3249
3345
  formatRequestError(e2, t2, i2) {
@@ -3251,14 +3347,14 @@ var telerikReportViewer = (function (exports) {
3251
3347
  if (n2) {
3252
3348
  if (401 == n2.status || 403 == n2.status)
3253
3349
  return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3254
- if (Se(e2))
3350
+ if (be(e2))
3255
3351
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3256
- r2 = le(n2.message);
3257
- let t3 = le(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3352
+ r2 = ce(n2.message);
3353
+ let t3 = ce(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3258
3354
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3259
3355
  } else
3260
- r2 = le(e2.responseText);
3261
- return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = le(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3356
+ r2 = ce(e2.responseText);
3357
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = ce(i2 || t2) + r2), Ie(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3262
3358
  }
3263
3359
  raiseError(e2, t2 = true) {
3264
3360
  this.emit("error", e2, t2);
@@ -3271,7 +3367,7 @@ var telerikReportViewer = (function (exports) {
3271
3367
  }
3272
3368
  initializeClient() {
3273
3369
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3274
- const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3370
+ const t2 = Le(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3275
3371
  this.handleRequestError(e2, t2);
3276
3372
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3277
3373
  }
@@ -3281,7 +3377,7 @@ var telerikReportViewer = (function (exports) {
3281
3377
  registerDocumentAsync(e2, t2, n2) {
3282
3378
  return i(this, arguments, void 0, function* (e3, t3, i2, n3 = "", r2 = "") {
3283
3379
  return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i2, n3, r2).catch((t4) => {
3284
- this.handleRequestError(t4, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, le(this.getReport()), le(e3)));
3380
+ this.handleRequestError(t4, Le(this.options.messages.ReportViewer_ErrorCreatingReportDocument, ce(this.getReport()), ce(e3)));
3285
3381
  })) || "";
3286
3382
  });
3287
3383
  }
@@ -3319,7 +3415,7 @@ var telerikReportViewer = (function (exports) {
3319
3415
  const e2 = {}, t2 = this.getProcessedParameterValues();
3320
3416
  for (let i2 in t2) {
3321
3417
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3322
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
3418
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Oe(n2, r2, i2) : e2[i2] = r2;
3323
3419
  }
3324
3420
  return e2;
3325
3421
  }
@@ -3440,6 +3536,19 @@ ${e3.text} (${e3.id})`;
3440
3536
  var e2, t2;
3441
3537
  return !(null === (t2 = null === (e2 = this.configurationInfo) || void 0 === e2 ? void 0 : e2.license) || void 0 === t2 ? void 0 : t2.isValid);
3442
3538
  }
3539
+ getBannerIconFromId(e2) {
3540
+ switch (e2) {
3541
+ case 0:
3542
+ default:
3543
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M22.702 2.1821C24.3149 2.51082 25.8077 3.27291 27.0199 4.38645C28.2321 5.49999 29.1179 6.92286 29.582 8.5021C30.012 9.9501 30.076 11.4821 29.768 12.9621C29.3228 14.9898 28.2025 16.8063 26.5904 18.1143C24.9783 19.4223 22.9699 20.1443 20.894 20.1621C20.018 20.1621 19.146 20.0361 18.308 19.7821L16.708 21.6581L15.95 22.0081H14V25.0081L13 26.0081H10V29.0081L9 30.0081H3L2 29.0081V24.3941L2.292 23.6881L12.24 13.7401C11.9577 12.8308 11.8226 11.8821 11.84 10.9301C11.8582 9.59817 12.1701 8.28666 12.7533 7.08907C13.3365 5.89147 14.1767 4.83728 15.214 4.00164C16.2514 3.166 17.4603 2.56949 18.7546 2.25464C20.0489 1.93978 21.3967 1.91633 22.702 2.1821ZM25.338 16.5821C26.5944 15.5647 27.4681 14.1509 27.816 12.5721L27.824 12.5821C28.0718 11.4277 28.0272 10.2297 27.6943 9.09691C27.3614 7.96412 26.7507 6.93248 25.9177 6.09572C25.0847 5.25896 24.0558 4.64361 22.9246 4.30557C21.7933 3.96753 20.5955 3.91753 19.44 4.1601C17.8816 4.506 16.4837 5.36334 15.4688 6.59561C14.454 7.82789 13.8806 9.36426 13.84 10.9601C13.82 11.8721 13.98 12.7761 14.318 13.6201L14.098 14.7061L4 24.8081V28.0081H8V25.0081L9 24.0081H12V21.0081L13 20.0081H15.49L17.242 17.9761L18.364 17.6961C19.1728 18.0121 20.0337 18.1736 20.902 18.1721C22.5181 18.1597 24.082 17.5991 25.338 16.5821ZM23.662 11.1181C23.8197 10.9002 23.9318 10.6527 23.9916 10.3905C24.0515 10.1283 24.0578 9.85665 24.0103 9.59192C23.9627 9.32718 23.8622 9.07476 23.7148 8.84975C23.5675 8.62474 23.3762 8.43177 23.1526 8.28238C22.9289 8.133 22.6774 8.03026 22.4131 7.98033C22.1488 7.93039 21.8771 7.93428 21.6144 7.99176C21.3516 8.04925 21.1031 8.15914 20.8838 8.31487C20.6645 8.4706 20.4789 8.66896 20.338 8.8981C20.067 9.33887 19.9774 9.86752 20.088 10.373C20.1985 10.8784 20.5007 11.3214 20.931 11.6087C21.3613 11.8961 21.8862 12.0055 22.3954 11.914C22.9047 11.8226 23.3587 11.5373 23.662 11.1181Z"\n fill="black"\n />\n <path\n d="M23.1299 16.0186L31.1387 31.0273L31.0068 31.25H14.9932L14.8604 31.0273L22.8955 16.0186H23.1299Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.5"\n />\n <rect x="22.25" y="21.2686" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28.2686C24 27.7163 23.5523 27.2686 23 27.2686C22.4479 27.2687 22 27.7164 22 28.2686C22 28.8207 22.4479 29.2684 23 29.2686C23.5523 29.2686 24 28.8208 24 28.2686Z"\n fill="black"\n />\n </svg>';
3544
+ case 1:
3545
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M18.5631 11.7812H10.4369L14.5 21.2619L18.5631 11.7812ZM18.5631 9.96875H10.4369L12.3788 5.4375H16.6212L18.5631 9.96875ZM20.5351 11.7812L17.2221 19.5116L23.9861 11.7812H20.5351ZM20.5351 9.96875L18.5931 5.4375H20.8437L24.2422 9.96875H20.5351ZM8.46492 9.96875L10.4069 5.4375H8.15625L4.75781 9.96875H8.46492ZM11.7779 19.5116L8.46492 11.7812H5.01386L11.7779 19.5116ZM27.1875 10.875L14.5 25.375L1.8125 10.875L7.25 3.625H21.75L27.1875 10.875Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
3546
+ case 2:
3547
+ return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M27.8295 9.38659C28.8049 12.1653 28.7404 15.1391 27.774 17.7996C26.8014 20.4767 24.9215 22.8356 22.2691 24.367C19.7765 25.8061 16.9908 26.2908 14.3393 25.9323C11.6293 25.5682 9.06228 24.3215 7.08577 22.3155L8.23679 21.1826C9.95578 22.9294 12.1925 24.0142 14.5527 24.333C16.8583 24.6438 19.2821 24.2206 21.457 22.965C23.7719 21.6284 25.4118 19.5739 26.2565 17.2495C27.0643 15.0253 27.1474 12.5486 26.3976 10.2107L24.951 11.0459L25.5942 7.15112L29.2888 8.54145L27.8284 9.38462L27.8295 9.38659Z"\n fill="black"\n />\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M16.3594 8.08301C17.1842 8.16959 17.8382 8.41741 18.3281 8.8252C18.8135 9.2331 19.1263 9.78023 19.2607 10.4639L17.2939 10.6875C17.1732 10.1497 16.8607 9.78518 16.3594 9.59375V12.2617C17.6035 12.5557 18.4514 12.9408 18.9004 13.4102C19.3516 13.8819 19.5771 14.4863 19.5771 15.2246C19.5771 16.0494 19.2949 16.7425 18.7275 17.3076C18.1601 17.8728 17.3712 18.2233 16.3594 18.3623V19.6387H15.2334V18.3779C14.3448 18.2822 13.6246 17.9934 13.0664 17.5059C12.5081 17.0182 12.155 16.3275 12 15.4365L14.0127 15.2266C14.0947 15.5912 14.2497 15.9036 14.4775 16.168C14.7053 16.4321 14.9555 16.6218 15.2334 16.7402V13.8799C14.2264 13.6247 13.4906 13.2395 13.0234 12.7246C12.554 12.2073 12.3164 11.5801 12.3164 10.8418C12.3165 10.0946 12.5834 9.46575 13.1143 8.95996C13.6452 8.45184 14.3516 8.16053 15.2334 8.08301V7C15.6731 7 15.9197 7 16.3594 7V8.08301ZM16.3574 16.8535H16.3594C16.7467 16.7783 17.0661 16.6149 17.3076 16.3643C17.5537 16.1113 17.6738 15.8147 17.6738 15.4707C17.6738 15.1677 17.5715 14.9033 17.3643 14.6846C17.1615 14.4636 16.8267 14.2943 16.3574 14.1758V16.8535ZM15.2334 9.56836C14.9304 9.66408 14.6911 9.82132 14.5156 10.04C14.3379 10.2588 14.252 10.5004 14.252 10.7646C14.252 11.0062 14.3314 11.2301 14.4932 11.4375C14.655 11.6424 14.9038 11.8113 15.2363 11.9365V9.56836H15.2334Z"\n fill="black"\n />\n <path\n d="M2.71127 18.5075L4.18352 17.6575C3.21672 14.9028 3.27173 11.9581 4.21167 9.31563C5.17535 6.60942 7.06671 4.22018 9.74281 2.67513C12.0972 1.31581 14.709 0.807832 17.2232 1.05612C19.8041 1.3106 22.2798 2.36266 24.2693 4.10853L23.7361 4.71636L23.2029 5.32418C23.1532 5.27918 23.1016 5.23531 23.0511 5.19342C21.3484 3.75295 19.2504 2.88549 17.0678 2.66937C14.8802 2.45355 12.6065 2.89529 10.5561 4.07914C8.2194 5.42821 6.56974 7.50687 5.7328 9.85834C4.94555 12.068 4.87307 14.5175 5.61235 16.8326L6.69304 16.2087L6.98491 16.4014L6.40585 19.8979L2.71127 18.5075Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
3548
+ case 3:
3549
+ return '<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clipPath="url(#clip0_1_5398)">\n <path\n d="M24.9056 7.60146L34.4998 10.1722L31.9299 19.7659L13.7653 30.2532L6.7419 18.0883L24.9056 7.60146Z"\n stroke="black"\n strokeWidth="1.75"\n />\n <path\n d="M13.0913 19.7635L15.4762 23.8942L14.6279 24.384L12.2431 20.2533L13.0913 19.7635ZM14.3623 19.0297L14.7473 19.6964L11.3769 21.6423L10.992 20.9756L14.3623 19.0297ZM14.8475 18.7496L16.388 17.8602C16.7038 17.6778 17.0025 17.5684 17.2841 17.532C17.5675 17.4944 17.8242 17.5328 18.0542 17.6472C18.2841 17.7616 18.4772 17.954 18.6333 18.2244C18.7611 18.4457 18.833 18.6576 18.8491 18.8602C18.866 19.0598 18.8369 19.2518 18.7619 19.4364C18.6876 19.6179 18.5778 19.7923 18.4322 19.9596L18.2446 20.257L16.9055 21.0301L16.5166 20.3695L17.5124 19.7946C17.6618 19.7083 17.7704 19.6103 17.8381 19.5006C17.9059 19.3909 17.9371 19.2745 17.9317 19.1516C17.9281 19.0275 17.8903 18.9031 17.8183 18.7782C17.7418 18.6458 17.6512 18.5456 17.5463 18.4775C17.4415 18.4095 17.3242 18.3788 17.1944 18.3857C17.0647 18.3925 16.9242 18.4395 16.7729 18.5269L16.0835 18.9249L18.0834 22.3889L17.2323 22.8803L14.8475 18.7496ZM19.5417 21.547L17.5367 20.2496L18.4328 19.7247L20.4294 20.9815L20.4523 21.0212L19.5417 21.547ZM19.4746 16.0781L21.8595 20.2088L21.0112 20.6986L18.6264 16.5679L19.4746 16.0781ZM22.4103 15.3251L23.2638 19.398L22.3588 19.9205L21.5088 14.9037L22.0847 14.5712L22.4103 15.3251ZM25.3207 18.2105L22.2174 15.4365L21.7187 14.7825L22.3003 14.4467L26.2285 17.6864L25.3207 18.2105ZM24.3818 16.7023L24.7668 17.369L22.5851 18.6286L22.2002 17.9619L24.3818 16.7023ZM28.8837 15.2683L29.267 15.9321L27.1874 17.1327L26.8041 16.4689L28.8837 15.2683ZM25.0778 12.8432L27.4626 16.9739L26.6115 17.4652L24.2267 13.3345L25.0778 12.8432Z"\n fill="black"\n />\n <circle cx="30.1049" cy="12.7084" r="1.12128" transform="rotate(15 30.1049 12.7084)" fill="black" />\n </g>\n <path\n d="M27.6201 19.7998L35.6016 34.7578L35.499 34.9316H19.542L19.4385 34.7578L27.4463 19.7998H27.6201Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="26.7705" y="25" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M28.5205 32C28.5205 31.4477 28.0728 31 27.5205 31C26.9684 31.0002 26.5205 31.4478 26.5205 32C26.5205 32.5522 26.9684 32.9998 27.5205 33C28.0728 33 28.5205 32.5523 28.5205 32Z"\n fill="black"\n />\n <defs>\n <clipPath id="clip0_1_5398">\n <rect width="30" height="31.1538" fill="white" transform="translate(8.06323) rotate(15)" />\n </clipPath>\n </defs>\n </svg>';
3550
+ }
3551
+ }
3443
3552
  saveToSessionStorage(e2, t2) {
3444
3553
  sessionStorage.setItem(e2, t2);
3445
3554
  }
@@ -3464,13 +3573,13 @@ ${e3.text} (${e3.id})`;
3464
3573
  constructor(e2, t2) {
3465
3574
  this.url = e2, this.getPersonalAccessToken = t2;
3466
3575
  }
3467
- }, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
3576
+ }, e.ReportSourceOptions = _e, e.RequestError = m, e.SearchInfo = class {
3468
3577
  constructor() {
3469
3578
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3470
3579
  }
3471
- }, e.SearchManager = class extends $ {
3580
+ }, e.SearchManager = class extends B {
3472
3581
  constructor(e2, t2) {
3473
- super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = ge(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3582
+ super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3474
3583
  }
3475
3584
  search(e2) {
3476
3585
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3479,15 +3588,15 @@ ${e3.text} (${e3.id})`;
3479
3588
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3480
3589
  }
3481
3590
  highlightSearchItem(t2) {
3482
- t2 && (this.currentHighlightedElement && (ne(this.currentHighlightedElement, Ge), ie(this.currentHighlightedElement, Je)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3591
+ t2 && (this.currentHighlightedElement && (se(this.currentHighlightedElement, Je), re(this.currentHighlightedElement, je)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3483
3592
  }
3484
3593
  navigateToPage(e2) {
3485
3594
  this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
3486
3595
  }
3487
3596
  colorPageElements(e2) {
3488
3597
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3489
- let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
3490
- t2 && (ie(t2, Je), this.highlightedElements.push(t2));
3598
+ let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
3599
+ t2 && (re(t2, je), this.highlightedElements.push(t2));
3491
3600
  }), this.highlightItem(this.pendingHighlightItem));
3492
3601
  }
3493
3602
  highlightItem(e2) {
@@ -3495,13 +3604,13 @@ ${e3.text} (${e3.id})`;
3495
3604
  let t2 = this.highlightedElements.find(function(t3) {
3496
3605
  return t3.dataset.searchId === e2.id;
3497
3606
  });
3498
- t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
3607
+ t2 && (this.currentHighlightedElement = t2, se(t2, je), re(t2, Je));
3499
3608
  }
3500
3609
  }
3501
3610
  clearColoredItems() {
3502
3611
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3503
- ne(e2, Je);
3504
- }), this.currentHighlightedElement && ne(this.currentHighlightedElement, Ge), this.highlightedElements = [], this.currentHighlightedElement = null;
3612
+ se(e2, je);
3613
+ }), this.currentHighlightedElement && se(this.currentHighlightedElement, Je), this.highlightedElements = [], this.currentHighlightedElement = null;
3505
3614
  }
3506
3615
  applySearchColors() {
3507
3616
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3513,23 +3622,23 @@ ${e3.text} (${e3.id})`;
3513
3622
  constructor() {
3514
3623
  this.description = "", this.id = "", this.page = 0;
3515
3624
  }
3516
- }, e.ServiceClient = class {
3625
+ }, e.SendEmailDocumentReadyEventArgs = p, e.SendEmailStartedEventArgs = u, e.ServiceClient = class {
3517
3626
  constructor(e2) {
3518
3627
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3519
3628
  }
3520
3629
  getConnectionConfig(e2) {
3521
- return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new A(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new R(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new T(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new R("", () => Promise.resolve(e2.serverShareToken)) : new w(e2.serviceUrl);
3630
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
3522
3631
  }
3523
3632
  getAuthStrategy(t2) {
3524
3633
  switch (t2.authType) {
3525
3634
  case e.AuthType.None:
3526
- return new P();
3635
+ return new y();
3527
3636
  case e.AuthType.Basic:
3528
- return new C(t2);
3637
+ return new S(t2);
3529
3638
  case e.AuthType.PersonalToken:
3530
- return new y(t2);
3639
+ return new I(t2);
3531
3640
  default:
3532
- return new P();
3641
+ return new y();
3533
3642
  }
3534
3643
  }
3535
3644
  validateClientID(e2) {
@@ -3538,15 +3647,15 @@ ${e3.text} (${e3.id})`;
3538
3647
  }
3539
3648
  authenticatedGet(e2) {
3540
3649
  return this.login().then((t2) => (null == t2 ? void 0 : t2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedGet(e2)) : function(e3, t3) {
3541
- return fetch(e3, { headers: m(t3) }).then(f);
3650
+ return fetch(e3, { headers: v(t3) }).then(P);
3542
3651
  }(e2, t2.access_token || t2.accessToken));
3543
3652
  }
3544
3653
  authenticatedPost(e2, t2) {
3545
- return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : v(e2, t2, i2.access_token || i2.accessToken));
3654
+ return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : C(e2, t2, i2.access_token || i2.accessToken));
3546
3655
  }
3547
3656
  authenticatedDelete(e2) {
3548
3657
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3549
- return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
3658
+ return fetch(e3, { method: "DELETE", headers: v(t3) }).then(P);
3550
3659
  }(e2, t2.access_token || t2.accessToken));
3551
3660
  }
3552
3661
  login() {
@@ -3630,15 +3739,15 @@ ${e3.text} (${e3.id})`;
3630
3739
  return e2.clientSessionTimeout;
3631
3740
  });
3632
3741
  }
3633
- }, e.TooltipEventArgs = p, e.addClass = ie, e.appendHtml = ue, e.createElement = te, e.debounce = ve, e.each = we, e.escapeHtml = le, e.findElement = ge, e.getColorAlphaValue = de, e.getElementAttributeValue = me, e.getElementScrollParent = fe, e.getOffsetParent = se, e.hasClass = re, e.isArray = Te, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = ce, e.keepElementInView = function(e2) {
3742
+ }, e.TooltipEventArgs = f, e.addClass = re, e.appendHtml = ge, e.createElement = ne, e.debounce = Ce, e.each = Te, e.escapeHtml = ce, e.findElement = me, e.getColorAlphaValue = pe, e.getElementAttributeValue = ve, e.getElementScrollParent = Pe, e.getOffsetParent = ae, e.hasClass = oe, e.isArray = Ae, e.isExceptionOfType = Se, e.isInternalServerError = we, e.isInvalidClientException = Ie, e.isInvalidParameterException = be, e.isRgbColor = ue, e.keepElementInView = function(e2) {
3634
3743
  if (!e2)
3635
3744
  return;
3636
- let t2 = fe(e2);
3745
+ let t2 = Pe(e2);
3637
3746
  if (!t2)
3638
3747
  return;
3639
3748
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3640
3749
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3641
- }, e.parseToLocalDate = Ee, e.prependHtml = pe, e.removeClass = ne, e.reportSourcesAreEqual = function(e2) {
3750
+ }, e.parseToLocalDate = Me, e.prependHtml = fe, e.removeClass = se, e.reportSourcesAreEqual = function(e2) {
3642
3751
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3643
3752
  if (t2 && i2 && t2.report === i2.report) {
3644
3753
  let e3 = "";
@@ -3647,7 +3756,7 @@ ${e3.text} (${e3.id})`;
3647
3756
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3648
3757
  }
3649
3758
  return false;
3650
- }, e.scaleElement = ae, e.stringFormat = be, e.throttle = Pe, e.toPixel = oe, e.toRgbColor = he, e.tryParseFloat = Re, e.tryParseInt = Ae;
3759
+ }, e.scaleElement = he, e.stringFormat = Le, e.throttle = ye, e.toPixel = le, e.toRgbColor = de, e.tryParseFloat = Ee, e.tryParseInt = Re;
3651
3760
  });
3652
3761
  })(dist, dist.exports);
3653
3762
  var distExports = dist.exports;
@@ -7281,11 +7390,11 @@ ${e3.text} (${e3.id})`;
7281
7390
  navigatable: true,
7282
7391
  dataSource: [],
7283
7392
  contentElement: "",
7284
- template: `
7393
+ template: (data) => `
7285
7394
  <div class="k-list-item !k-align-items-start">
7286
- <span class="k-list-item-text">#: description #</span>
7395
+ <span class="k-list-item-text">${kendo.htmlEncode(data.description)}</span>
7287
7396
  <span class="k-flex"></span>
7288
- <span class="k-flex-none">${stringResources.searchDialogPageText} #:page#</span>
7397
+ <span class="k-flex-none">${stringResources.searchDialogPageText} ${kendo.htmlEncode(data.page)}</span>
7289
7398
  </div>
7290
7399
  `.trim(),
7291
7400
  change: (event) => {
@@ -9092,7 +9201,7 @@ ${e3.text} (${e3.id})`;
9092
9201
  if (!validateOptions(options)) {
9093
9202
  return;
9094
9203
  }
9095
- var version = "20.0.26.424";
9204
+ var version = "20.1.26.520";
9096
9205
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
9097
9206
  settings = new ReportViewerSettings(
9098
9207
  persistanceKey,