@progress/telerik-jquery-report-viewer 29.26.402 → 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.402 (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) {
@@ -1440,6 +1523,7 @@ var telerikReportViewer = (function (exports) {
1440
1523
  l2((n2 = n2.apply(e2, t2 || [])).next());
1441
1524
  });
1442
1525
  }
1526
+ "function" == typeof SuppressedError && SuppressedError;
1443
1527
  class n {
1444
1528
  constructor() {
1445
1529
  this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
@@ -1486,16 +1570,26 @@ var telerikReportViewer = (function (exports) {
1486
1570
  }
1487
1571
  }
1488
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 {
1489
1583
  constructor(e2, t2) {
1490
1584
  this.page = e2, this.reportDocumentId = t2;
1491
1585
  }
1492
1586
  }
1493
- class p {
1587
+ class f {
1494
1588
  constructor(e2, t2, i2, n2 = null) {
1495
1589
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1496
1590
  }
1497
1591
  }
1498
- class g {
1592
+ class m {
1499
1593
  constructor(e2, t2) {
1500
1594
  this._responseText = e2, this._error = t2;
1501
1595
  try {
@@ -1518,14 +1612,14 @@ var telerikReportViewer = (function (exports) {
1518
1612
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1519
1613
  }
1520
1614
  }
1521
- function m(e2, t2 = false, i2 = false) {
1615
+ function v(e2, t2 = false, i2 = false) {
1522
1616
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1523
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;
1524
1618
  }
1525
- function f(e2) {
1619
+ function P(e2) {
1526
1620
  return i(this, void 0, void 0, function* () {
1527
1621
  if (!e2.ok) {
1528
- let t2 = yield e2.text(), i2 = new g(t2, e2.statusText);
1622
+ let t2 = yield e2.text(), i2 = new m(t2, e2.statusText);
1529
1623
  return Promise.reject(i2);
1530
1624
  }
1531
1625
  if (204 == e2.status)
@@ -1533,15 +1627,15 @@ var telerikReportViewer = (function (exports) {
1533
1627
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1534
1628
  });
1535
1629
  }
1536
- function v(e2, t2 = {}, i2 = "", n2 = false) {
1537
- 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);
1538
1632
  }
1539
- class P {
1633
+ class y {
1540
1634
  authenticatePromise() {
1541
1635
  return Promise.resolve("");
1542
1636
  }
1543
1637
  }
1544
- class C {
1638
+ class S {
1545
1639
  constructor(e2) {
1546
1640
  this.connectionConfig = e2;
1547
1641
  }
@@ -1549,59 +1643,59 @@ var telerikReportViewer = (function (exports) {
1549
1643
  var e2, t2;
1550
1644
  if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1551
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) || "")}`;
1552
- 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));
1553
1647
  }
1554
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?");
1555
1649
  }
1556
1650
  }
1557
- class y {
1651
+ class I {
1558
1652
  constructor(e2) {
1559
1653
  this.connectionConfig = e2;
1560
1654
  }
1561
1655
  authenticatePromise(e2, t2) {
1562
- 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?");
1563
1657
  }
1564
1658
  }
1565
- var S, I;
1566
- e.AuthType = void 0, (S = e.AuthType || (e.AuthType = {}))[S.None = 0] = "None", S[S.Basic = 1] = "Basic", S[S.PersonalToken = 2] = "PersonalToken";
1567
- 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 {
1568
1662
  constructor(e2) {
1569
1663
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1570
1664
  }
1571
1665
  }
1572
- class w extends b {
1666
+ class T extends L {
1573
1667
  constructor(t2) {
1574
1668
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1575
1669
  }
1576
1670
  }
1577
- class T extends b {
1671
+ class A extends L {
1578
1672
  constructor(t2) {
1579
1673
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1580
1674
  }
1581
1675
  }
1582
- class A extends T {
1676
+ class R extends A {
1583
1677
  constructor(t2, i2, n2) {
1584
1678
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1585
1679
  }
1586
1680
  }
1587
- class R extends T {
1681
+ class E extends A {
1588
1682
  constructor(t2, i2) {
1589
1683
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1590
1684
  }
1591
1685
  }
1592
- function E() {
1593
- }
1594
1686
  function M() {
1595
- M.init.call(this);
1687
+ }
1688
+ function k() {
1689
+ k.init.call(this);
1596
1690
  }
1597
1691
  function x(e2) {
1598
- return void 0 === e2._maxListeners ? M.defaultMaxListeners : e2._maxListeners;
1692
+ return void 0 === e2._maxListeners ? k.defaultMaxListeners : e2._maxListeners;
1599
1693
  }
1600
- function k(e2, t2, i2, n2) {
1694
+ function N(e2, t2, i2, n2) {
1601
1695
  var r2, s2, o2, a2;
1602
1696
  if ("function" != typeof i2)
1603
1697
  throw new TypeError('"listener" argument must be a function');
1604
- 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) {
1605
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) {
1606
1700
  o2.warned = true;
1607
1701
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
@@ -1611,14 +1705,14 @@ var telerikReportViewer = (function (exports) {
1611
1705
  o2 = s2[t2] = i2, ++e2._eventsCount;
1612
1706
  return e2;
1613
1707
  }
1614
- function L(e2, t2, i2) {
1708
+ function D(e2, t2, i2) {
1615
1709
  var n2 = false;
1616
1710
  function r2() {
1617
1711
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
1618
1712
  }
1619
1713
  return r2.listener = i2, r2;
1620
1714
  }
1621
- function N(e2) {
1715
+ function F(e2) {
1622
1716
  var t2 = this._events;
1623
1717
  if (t2) {
1624
1718
  var i2 = t2[e2];
@@ -1629,20 +1723,20 @@ var telerikReportViewer = (function (exports) {
1629
1723
  }
1630
1724
  return 0;
1631
1725
  }
1632
- function D(e2, t2) {
1726
+ function V(e2, t2) {
1633
1727
  for (var i2 = new Array(t2); t2--; )
1634
1728
  i2[t2] = e2[t2];
1635
1729
  return i2;
1636
1730
  }
1637
- 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() {
1638
- 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;
1639
- }, 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) {
1640
1734
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1641
1735
  throw new TypeError('"n" argument must be a positive number');
1642
1736
  return this._maxListeners = e2, this;
1643
- }, M.prototype.getMaxListeners = function() {
1737
+ }, k.prototype.getMaxListeners = function() {
1644
1738
  return x(this);
1645
- }, M.prototype.emit = function(e2) {
1739
+ }, k.prototype.emit = function(e2) {
1646
1740
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1647
1741
  if (o2 = this._events)
1648
1742
  l2 = l2 && null == o2.error;
@@ -1666,7 +1760,7 @@ var telerikReportViewer = (function (exports) {
1666
1760
  if (t3)
1667
1761
  e3.call(i3);
1668
1762
  else
1669
- 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)
1670
1764
  r3[s3].call(i3);
1671
1765
  }(i2, c2, this);
1672
1766
  break;
@@ -1675,7 +1769,7 @@ var telerikReportViewer = (function (exports) {
1675
1769
  if (t3)
1676
1770
  e3.call(i3, n3);
1677
1771
  else
1678
- 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)
1679
1773
  s3[o3].call(i3, n3);
1680
1774
  }(i2, c2, this, arguments[1]);
1681
1775
  break;
@@ -1684,7 +1778,7 @@ var telerikReportViewer = (function (exports) {
1684
1778
  if (t3)
1685
1779
  e3.call(i3, n3, r3);
1686
1780
  else
1687
- 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)
1688
1782
  o3[a3].call(i3, n3, r3);
1689
1783
  }(i2, c2, this, arguments[1], arguments[2]);
1690
1784
  break;
@@ -1693,7 +1787,7 @@ var telerikReportViewer = (function (exports) {
1693
1787
  if (t3)
1694
1788
  e3.call(i3, n3, r3, s3);
1695
1789
  else
1696
- 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)
1697
1791
  a3[l3].call(i3, n3, r3, s3);
1698
1792
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1699
1793
  break;
@@ -1704,24 +1798,24 @@ var telerikReportViewer = (function (exports) {
1704
1798
  if (t3)
1705
1799
  e3.apply(i3, n3);
1706
1800
  else
1707
- 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)
1708
1802
  s3[o3].apply(i3, n3);
1709
1803
  }(i2, c2, this, r2);
1710
1804
  }
1711
1805
  return true;
1712
- }, M.prototype.addListener = function(e2, t2) {
1713
- return k(this, e2, t2, false);
1714
- }, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
1715
- return k(this, e2, t2, true);
1716
- }, 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) {
1717
1811
  if ("function" != typeof t2)
1718
1812
  throw new TypeError('"listener" argument must be a function');
1719
- return this.on(e2, L(this, e2, t2)), this;
1720
- }, M.prototype.prependOnceListener = function(e2, t2) {
1813
+ return this.on(e2, D(this, e2, t2)), this;
1814
+ }, k.prototype.prependOnceListener = function(e2, t2) {
1721
1815
  if ("function" != typeof t2)
1722
1816
  throw new TypeError('"listener" argument must be a function');
1723
- return this.prependListener(e2, L(this, e2, t2)), this;
1724
- }, M.prototype.removeListener = function(e2, t2) {
1817
+ return this.prependListener(e2, D(this, e2, t2)), this;
1818
+ }, k.prototype.removeListener = function(e2, t2) {
1725
1819
  var i2, n2, r2, s2, o2;
1726
1820
  if ("function" != typeof t2)
1727
1821
  throw new TypeError('"listener" argument must be a function');
@@ -1730,7 +1824,7 @@ var telerikReportViewer = (function (exports) {
1730
1824
  if (!(i2 = n2[e2]))
1731
1825
  return this;
1732
1826
  if (i2 === t2 || i2.listener && i2.listener === t2)
1733
- 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));
1734
1828
  else if ("function" != typeof i2) {
1735
1829
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1736
1830
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1741,7 +1835,7 @@ var telerikReportViewer = (function (exports) {
1741
1835
  return this;
1742
1836
  if (1 === i2.length) {
1743
1837
  if (i2[0] = void 0, 0 === --this._eventsCount)
1744
- return this._events = new E(), this;
1838
+ return this._events = new M(), this;
1745
1839
  delete n2[e2];
1746
1840
  } else
1747
1841
  !function(e3, t3) {
@@ -1752,18 +1846,18 @@ var telerikReportViewer = (function (exports) {
1752
1846
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1753
1847
  }
1754
1848
  return this;
1755
- }, M.prototype.off = function(e2, t2) {
1849
+ }, k.prototype.off = function(e2, t2) {
1756
1850
  return this.removeListener(e2, t2);
1757
- }, M.prototype.removeAllListeners = function(e2) {
1851
+ }, k.prototype.removeAllListeners = function(e2) {
1758
1852
  var t2, i2;
1759
1853
  if (!(i2 = this._events))
1760
1854
  return this;
1761
1855
  if (!i2.removeListener)
1762
- 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;
1763
1857
  if (0 === arguments.length) {
1764
1858
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1765
1859
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1766
- 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;
1767
1861
  }
1768
1862
  if ("function" == typeof (t2 = i2[e2]))
1769
1863
  this.removeListener(e2, t2);
@@ -1772,34 +1866,34 @@ var telerikReportViewer = (function (exports) {
1772
1866
  this.removeListener(e2, t2[t2.length - 1]);
1773
1867
  } while (t2[0]);
1774
1868
  return this;
1775
- }, M.prototype.listeners = function(e2) {
1869
+ }, k.prototype.listeners = function(e2) {
1776
1870
  var t2, i2 = this._events;
1777
1871
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1778
1872
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1779
1873
  t3[i3] = e3[i3].listener || e3[i3];
1780
1874
  return t3;
1781
1875
  }(t2) : [];
1782
- }, M.listenerCount = function(e2, t2) {
1783
- return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
1784
- }, 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() {
1785
1879
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1786
1880
  };
1787
- const F = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1788
- function O(e2) {
1881
+ const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1882
+ function z(e2) {
1789
1883
  if ("string" != typeof e2 && "symbol" != typeof e2)
1790
1884
  throw new TypeError("type is not type of string or symbol!");
1791
1885
  }
1792
- function V(e2) {
1886
+ function _(e2) {
1793
1887
  if ("function" != typeof e2)
1794
1888
  throw new TypeError("fn is not type of Function!");
1795
1889
  }
1796
- function z(e2) {
1797
- return { [F]: "always", fn: e2 };
1890
+ function H(e2) {
1891
+ return { [O]: "always", fn: e2 };
1798
1892
  }
1799
- function _(e2) {
1800
- return { [F]: "once", fn: e2 };
1893
+ function U(e2) {
1894
+ return { [O]: "once", fn: e2 };
1801
1895
  }
1802
- class U {
1896
+ class $ {
1803
1897
  constructor() {
1804
1898
  this._events = {};
1805
1899
  }
@@ -1807,25 +1901,25 @@ var telerikReportViewer = (function (exports) {
1807
1901
  return this.on(e2, t2);
1808
1902
  }
1809
1903
  on(e2, t2) {
1810
- 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;
1811
1905
  }
1812
1906
  prependListener(e2, t2) {
1813
1907
  return this.prepend(e2, t2);
1814
1908
  }
1815
1909
  prepend(e2, t2) {
1816
- 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;
1817
1911
  }
1818
1912
  prependOnceListener(e2, t2) {
1819
1913
  return this.prependOnce(e2, t2);
1820
1914
  }
1821
1915
  prependOnce(e2, t2) {
1822
- 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;
1823
1917
  }
1824
1918
  listeners(e2) {
1825
1919
  return (this._events[e2] || []).map((e3) => e3.fn);
1826
1920
  }
1827
1921
  once(e2, t2) {
1828
- 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;
1829
1923
  }
1830
1924
  removeAllListeners() {
1831
1925
  this._events = {};
@@ -1834,7 +1928,7 @@ var telerikReportViewer = (function (exports) {
1834
1928
  return this.removeListener(e2, t2);
1835
1929
  }
1836
1930
  removeListener(e2, t2) {
1837
- O(e2);
1931
+ z(e2);
1838
1932
  const i2 = this.listeners(e2);
1839
1933
  if ("function" == typeof t2) {
1840
1934
  let n2 = -1, r2 = false;
@@ -1846,12 +1940,12 @@ var telerikReportViewer = (function (exports) {
1846
1940
  }
1847
1941
  emit(e2, ...t2) {
1848
1942
  return i(this, void 0, void 0, function* () {
1849
- O(e2);
1943
+ z(e2);
1850
1944
  const i2 = this.listeners(e2), n2 = [];
1851
1945
  if (i2 && i2.length) {
1852
1946
  for (let r2 = 0; r2 < i2.length; r2++) {
1853
1947
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1854
- 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);
1855
1949
  }
1856
1950
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1857
1951
  }
@@ -1859,21 +1953,21 @@ var telerikReportViewer = (function (exports) {
1859
1953
  });
1860
1954
  }
1861
1955
  emitSync(e2, ...t2) {
1862
- O(e2);
1956
+ z(e2);
1863
1957
  const i2 = this.listeners(e2), n2 = [];
1864
1958
  if (i2 && i2.length) {
1865
1959
  for (let r2 = 0; r2 < i2.length; r2++) {
1866
1960
  const s2 = i2[r2];
1867
- 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);
1868
1962
  }
1869
1963
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1870
1964
  }
1871
1965
  return false;
1872
1966
  }
1873
1967
  }
1874
- class $ {
1968
+ class B {
1875
1969
  constructor() {
1876
- this.eventEmitter = new M(), this.awaitEventEmitter = new U();
1970
+ this.eventEmitter = new k(), this.awaitEventEmitter = new $();
1877
1971
  }
1878
1972
  on(e2, t2) {
1879
1973
  return this.eventEmitter.on(e2, t2), this;
@@ -1890,7 +1984,7 @@ var telerikReportViewer = (function (exports) {
1890
1984
  });
1891
1985
  }
1892
1986
  }
1893
- class H {
1987
+ class q {
1894
1988
  hasPdfPlugin() {
1895
1989
  let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1896
1990
  for (let t2 of e2)
@@ -1903,7 +1997,7 @@ var telerikReportViewer = (function (exports) {
1903
1997
  return false;
1904
1998
  }
1905
1999
  }
1906
- class B {
2000
+ class W {
1907
2001
  hasPdfPlugin() {
1908
2002
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
1909
2003
  if (null !== e2 && e2.length > 1) {
@@ -1918,7 +2012,7 @@ var telerikReportViewer = (function (exports) {
1918
2012
  return false;
1919
2013
  }
1920
2014
  }
1921
- class q {
2015
+ class Z {
1922
2016
  constructor(e2) {
1923
2017
  this.defaultPlugin = e2;
1924
2018
  }
@@ -1929,22 +2023,22 @@ var telerikReportViewer = (function (exports) {
1929
2023
  return false;
1930
2024
  }
1931
2025
  }
1932
- class W {
2026
+ class j {
1933
2027
  hasPdfPlugin() {
1934
2028
  return false;
1935
2029
  }
1936
2030
  }
1937
- function j() {
2031
+ function J() {
1938
2032
  return window.navigator && window.navigator.msSaveOrOpenBlob;
1939
2033
  }
1940
- class J {
2034
+ class G {
1941
2035
  constructor() {
1942
2036
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
1943
2037
  if (window.navigator) {
1944
2038
  let e2 = window.navigator.userAgent.toLowerCase();
1945
- 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();
1946
2040
  }
1947
- return new W();
2041
+ return new j();
1948
2042
  }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1949
2043
  }
1950
2044
  destroy() {
@@ -1962,13 +2056,13 @@ var telerikReportViewer = (function (exports) {
1962
2056
  }), function(e3) {
1963
2057
  let t3 = window.location, i3 = document.createElement("a");
1964
2058
  return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
1965
- }(e2) && j())
2059
+ }(e2) && J())
1966
2060
  return this.iframe.src = e2, void document.body.appendChild(this.iframe);
1967
2061
  let i2 = new XMLHttpRequest(), n2 = this;
1968
2062
  i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
1969
2063
  if (200 === this.status) {
1970
2064
  let e3 = new Blob([this.response], { type: "application/pdf" });
1971
- 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)));
1972
2066
  } else
1973
2067
  console.log("Could not retrieve remote PDF document.");
1974
2068
  }, i2.send();
@@ -1983,10 +2077,10 @@ var telerikReportViewer = (function (exports) {
1983
2077
  return this.hasPdfPlugin;
1984
2078
  }
1985
2079
  }
1986
- function G(e2) {
2080
+ function K(e2) {
1987
2081
  return 1e3 * e2;
1988
2082
  }
1989
- class Z {
2083
+ class X {
1990
2084
  constructor(e2, t2, i2) {
1991
2085
  if (this.pingMilliseconds = 0, !e2)
1992
2086
  throw "Error";
@@ -1995,7 +2089,7 @@ var telerikReportViewer = (function (exports) {
1995
2089
  initSessionTimeout(e2) {
1996
2090
  if (!isFinite(e2))
1997
2091
  throw "sessionTimeoutSeconds must be finite";
1998
- this.pingMilliseconds = e2 <= 120 ? G(e2) / 2 : G(e2 - 60);
2092
+ this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
1999
2093
  }
2000
2094
  start() {
2001
2095
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -2006,33 +2100,33 @@ var telerikReportViewer = (function (exports) {
2006
2100
  this.interval && (clearInterval(this.interval), this.interval = null);
2007
2101
  }
2008
2102
  }
2009
- var K, X, Y, Q, ee;
2010
- function te(e2, t2 = "", i2 = "") {
2103
+ var Y, Q, ee, te, ie;
2104
+ function ne(e2, t2 = "", i2 = "") {
2011
2105
  let n2 = document.createElement(e2);
2012
- return t2 && (n2.id = t2), ie(n2, i2), n2;
2106
+ return t2 && (n2.id = t2), re(n2, i2), n2;
2013
2107
  }
2014
- function ie(e2, t2) {
2108
+ function re(e2, t2) {
2015
2109
  if ("" === t2 || !e2)
2016
2110
  return;
2017
2111
  let i2 = t2.trim().split(" ");
2018
2112
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
2019
2113
  }
2020
- function ne(e2, t2) {
2114
+ function se(e2, t2) {
2021
2115
  if ("" === t2 || !e2)
2022
2116
  return;
2023
2117
  let i2 = t2.trim().split(" ");
2024
2118
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
2025
2119
  }
2026
- function re(e2, t2) {
2120
+ function oe(e2, t2) {
2027
2121
  return e2.classList.contains(t2);
2028
2122
  }
2029
- function se(e2) {
2123
+ function ae(e2) {
2030
2124
  return e2.offsetParent;
2031
2125
  }
2032
- function oe(e2) {
2126
+ function le(e2) {
2033
2127
  return parseInt(e2, 10) || 0;
2034
2128
  }
2035
- function ae(e2, t2, i2, n2 = 0, r2 = 0) {
2129
+ function he(e2, t2, i2, n2 = 0, r2 = 0) {
2036
2130
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
2037
2131
  !function(e3, t3) {
2038
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);
@@ -2040,11 +2134,11 @@ var telerikReportViewer = (function (exports) {
2040
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);
2041
2135
  }(e2, s2);
2042
2136
  }
2043
- function le(e2) {
2044
- let t2 = te("div");
2137
+ function ce(e2) {
2138
+ let t2 = ne("div");
2045
2139
  return t2.textContent = e2, t2.innerHTML;
2046
2140
  }
2047
- function he(e2) {
2141
+ function de(e2) {
2048
2142
  if (e2 && e2.length < 6) {
2049
2143
  let t3 = 1, i2 = e2.split("");
2050
2144
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -2054,16 +2148,16 @@ var telerikReportViewer = (function (exports) {
2054
2148
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
2055
2149
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
2056
2150
  }
2057
- function ce(e2) {
2151
+ function ue(e2) {
2058
2152
  return !!e2 && e2.indexOf(",") > -1;
2059
2153
  }
2060
- function de(e2) {
2154
+ function pe(e2) {
2061
2155
  if ("transparent" === e2.toLowerCase())
2062
2156
  return 0;
2063
- if (!ce(e2))
2157
+ if (!ue(e2))
2064
2158
  return 1;
2065
2159
  if (-1 !== e2.indexOf("#")) {
2066
- let t3 = he(e2);
2160
+ let t3 = de(e2);
2067
2161
  if (null === t3)
2068
2162
  return 1;
2069
2163
  e2 = t3;
@@ -2073,34 +2167,34 @@ var telerikReportViewer = (function (exports) {
2073
2167
  });
2074
2168
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
2075
2169
  }
2076
- function ue(e2, t2) {
2077
- let i2 = te("div");
2170
+ function ge(e2, t2) {
2171
+ let i2 = ne("div");
2078
2172
  for (i2.innerHTML = t2; i2.childNodes.length; )
2079
2173
  e2.appendChild(i2.childNodes[0]);
2080
2174
  }
2081
- function pe(e2, t2) {
2082
- let i2 = te("div");
2175
+ function fe(e2, t2) {
2176
+ let i2 = ne("div");
2083
2177
  for (i2.innerHTML = t2; i2.childNodes.length; )
2084
2178
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
2085
2179
  }
2086
- function ge(e2, t2) {
2180
+ function me(e2, t2) {
2087
2181
  return e2 ? e2.querySelector(t2) : null;
2088
2182
  }
2089
- function me(e2, t2) {
2183
+ function ve(e2, t2) {
2090
2184
  var i2;
2091
2185
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
2092
2186
  }
2093
- function fe(e2) {
2187
+ function Pe(e2) {
2094
2188
  let t2 = e2.parentElement;
2095
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : fe(t2) : null;
2189
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : Pe(t2) : null;
2096
2190
  }
2097
- function ve(e2, t2 = 300) {
2191
+ function Ce(e2, t2 = 300) {
2098
2192
  let i2;
2099
2193
  return function(...n2) {
2100
2194
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
2101
2195
  };
2102
2196
  }
2103
- function Pe(e2, t2) {
2197
+ function ye(e2, t2) {
2104
2198
  let i2 = null;
2105
2199
  return function(n2, ...r2) {
2106
2200
  i2 || (i2 = setTimeout(function() {
@@ -2108,24 +2202,24 @@ var telerikReportViewer = (function (exports) {
2108
2202
  }, t2));
2109
2203
  };
2110
2204
  }
2111
- function Ce(e2, t2) {
2205
+ function Se(e2, t2) {
2112
2206
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
2113
2207
  }
2114
- function ye(e2) {
2115
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2208
+ function Ie(e2) {
2209
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2116
2210
  }
2117
- function Se(e2) {
2118
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2211
+ function be(e2) {
2212
+ return Se(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2119
2213
  }
2120
- function Ie(e2) {
2214
+ function we(e2) {
2121
2215
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2122
2216
  }
2123
- function be(e2, ...t2) {
2217
+ function Le(e2, ...t2) {
2124
2218
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2125
2219
  }
2126
- function we(e2, t2) {
2220
+ function Te(e2, t2) {
2127
2221
  let i2, n2;
2128
- if (Te(e2))
2222
+ if (Ae(e2))
2129
2223
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2130
2224
  ;
2131
2225
  else
@@ -2134,40 +2228,30 @@ var telerikReportViewer = (function (exports) {
2134
2228
  break;
2135
2229
  return e2;
2136
2230
  }
2137
- function Te(e2) {
2231
+ function Ae(e2) {
2138
2232
  if (Array.isArray(e2))
2139
2233
  return true;
2140
2234
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2141
2235
  }
2142
- function Ae(e2) {
2236
+ function Re(e2) {
2143
2237
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2144
2238
  }
2145
- function Re(e2) {
2239
+ function Ee(e2) {
2146
2240
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2147
2241
  }
2148
- function Ee(e2) {
2242
+ function Me(e2) {
2149
2243
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2150
2244
  }
2151
- 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";
2152
- class Me {
2153
- constructor(e2, t2) {
2154
- this.handled = false, this.deviceInfo = e2, this.format = t2;
2155
- }
2156
- }
2157
- class xe extends r {
2158
- constructor(e2, t2, i2) {
2159
- 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;
2160
- }
2161
- }
2162
- const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2163
- 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() {
2164
2248
  var e2 = {};
2165
2249
  function t2(e3, t3, i3, n2) {
2166
2250
  var r2 = [].concat(t3).map(function(t4) {
2167
2251
  return function(e4, t5, i4) {
2168
2252
  if (e4.availableValues) {
2169
2253
  var n3 = false;
2170
- if (we(e4.availableValues, function(e5, r3) {
2254
+ if (Te(e4.availableValues, function(e5, r3) {
2171
2255
  return !(n3 = i4(t5, r3.value));
2172
2256
  }), !n3) {
2173
2257
  if (e4.allowNull && !t5)
@@ -2204,9 +2288,9 @@ var telerikReportViewer = (function (exports) {
2204
2288
  }, function(e4, t3) {
2205
2289
  return e4 == t3;
2206
2290
  });
2207
- } }, e2[Le] = { validate: function(e3, n2) {
2291
+ } }, e2[xe] = { validate: function(e3, n2) {
2208
2292
  return t2(e3, n2, function(t3) {
2209
- var n3 = Re(t3);
2293
+ var n3 = Ee(t3);
2210
2294
  if (isNaN(n3)) {
2211
2295
  if (i2(e3, t3))
2212
2296
  return null;
@@ -2214,11 +2298,11 @@ var telerikReportViewer = (function (exports) {
2214
2298
  }
2215
2299
  return n3;
2216
2300
  }, function(e4, t3) {
2217
- return Re(e4) == Re(t3);
2301
+ return Ee(e4) == Ee(t3);
2218
2302
  });
2219
2303
  } }, e2[ke] = { validate: function(e3, n2) {
2220
2304
  return t2(e3, n2, function(t3) {
2221
- var n3 = Ae(t3);
2305
+ var n3 = Re(t3);
2222
2306
  if (isNaN(n3)) {
2223
2307
  if (i2(e3, t3))
2224
2308
  return null;
@@ -2226,17 +2310,17 @@ var telerikReportViewer = (function (exports) {
2226
2310
  }
2227
2311
  return n3;
2228
2312
  }, function(e4, t3) {
2229
- return Ae(e4) == Re(t3);
2313
+ return Re(e4) == Ee(t3);
2230
2314
  });
2231
2315
  } }, e2[De] = { validate: function(e3, i3) {
2232
2316
  return t2(e3, i3, function(t3) {
2233
2317
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2234
2318
  return null;
2235
2319
  if (!isNaN(Date.parse(t3)))
2236
- return e3.availableValues ? t3 : Ee(t3);
2320
+ return e3.availableValues ? t3 : Me(t3);
2237
2321
  throw "Please input a valid date.";
2238
2322
  }, function(e4, t3) {
2239
- return e4 = Ee(e4), t3 = Ee(t3), e4.getTime() == t3.getTime();
2323
+ return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2240
2324
  });
2241
2325
  } }, e2[Fe] = { validate: function(e3, n2) {
2242
2326
  return t2(e3, n2, function(t3) {
@@ -2251,11 +2335,11 @@ var telerikReportViewer = (function (exports) {
2251
2335
  } }, { validate: function(t3, i3) {
2252
2336
  var n2 = e2[t3.type];
2253
2337
  if (!n2)
2254
- throw be("Cannot validate parameter of type {type}.", t3);
2338
+ throw Le("Cannot validate parameter of type {type}.", t3);
2255
2339
  return n2.validate(t3, i3);
2256
2340
  } };
2257
2341
  }();
2258
- function Ve(e2, t2, i2) {
2342
+ function Oe(e2, t2, i2) {
2259
2343
  try {
2260
2344
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2261
2345
  if (!n2) {
@@ -2271,7 +2355,7 @@ var telerikReportViewer = (function (exports) {
2271
2355
  function ze(e2, t2, i2) {
2272
2356
  const n2 = [];
2273
2357
  for (let r2 in t2)
2274
- n2.push(Ve(e2, t2[r2], i2));
2358
+ n2.push(Oe(e2, t2[r2], i2));
2275
2359
  return n2;
2276
2360
  }
2277
2361
  class _e {
@@ -2279,7 +2363,7 @@ var telerikReportViewer = (function (exports) {
2279
2363
  this.report = e2, this.parameters = t2;
2280
2364
  }
2281
2365
  }
2282
- class Ue extends $ {
2366
+ class He extends B {
2283
2367
  constructor(e2) {
2284
2368
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2285
2369
  }
@@ -2287,7 +2371,7 @@ var telerikReportViewer = (function (exports) {
2287
2371
  this.destroyResizeObserver();
2288
2372
  }
2289
2373
  initResizeObserver() {
2290
- 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);
2291
2375
  }
2292
2376
  destroyResizeObserver() {
2293
2377
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2296,8 +2380,8 @@ var telerikReportViewer = (function (exports) {
2296
2380
  e2[0].target === this.element && this.emit("resize");
2297
2381
  }
2298
2382
  }
2299
- 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>';
2300
- 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 {
2301
2385
  constructor(t2, i2, n2) {
2302
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));
2303
2387
  }
@@ -2319,10 +2403,10 @@ var telerikReportViewer = (function (exports) {
2319
2403
  return this.enabled;
2320
2404
  }
2321
2405
  enable() {
2322
- this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
2406
+ this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
2323
2407
  }
2324
2408
  disable() {
2325
- 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());
2326
2410
  }
2327
2411
  renderPage(e2) {
2328
2412
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2337,7 +2421,7 @@ var telerikReportViewer = (function (exports) {
2337
2421
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2338
2422
  }
2339
2423
  setCurrentPage(e2) {
2340
- 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);
2341
2425
  }
2342
2426
  updatePageArea(e2) {
2343
2427
  var t2;
@@ -2362,18 +2446,18 @@ var telerikReportViewer = (function (exports) {
2362
2446
  return this.controller.getCurrentPageNumber();
2363
2447
  }
2364
2448
  isSkeletonScreen(e2, t2) {
2365
- return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
2449
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
2366
2450
  }
2367
2451
  addSkeletonScreen(e2, t2) {
2368
- 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);
2369
- 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);
2370
2454
  }
2371
2455
  generateSkeletonScreens(e2) {
2372
2456
  var t2;
2373
- 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;
2374
2458
  for (; a2 < e2; a2++)
2375
- i2 += be($e, a2, r2, s2);
2376
- ue(this.pageWrapper, i2);
2459
+ i2 += Le(Ue, a2, r2, s2);
2460
+ ge(this.pageWrapper, i2);
2377
2461
  }
2378
2462
  loadMorePages() {
2379
2463
  var e2;
@@ -2424,10 +2508,10 @@ var telerikReportViewer = (function (exports) {
2424
2508
  }
2425
2509
  }
2426
2510
  initEvents() {
2427
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
2511
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Ce(() => {
2428
2512
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2429
2513
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2430
- }, 250), this.throttleScroll = Pe(() => {
2514
+ }, 250), this.throttleScroll = ye(() => {
2431
2515
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2432
2516
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2433
2517
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2530,7 +2614,7 @@ var telerikReportViewer = (function (exports) {
2530
2614
  this.reset(e2), this.attachToScrollEvent();
2531
2615
  }
2532
2616
  reset(e2) {
2533
- 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: {} };
2534
2618
  }
2535
2619
  setScaleFactor(e2) {
2536
2620
  this.scaleFactor = e2;
@@ -2553,7 +2637,7 @@ var telerikReportViewer = (function (exports) {
2553
2637
  saveFreezeItemsInitialState(e2) {
2554
2638
  var t2, i2, n2;
2555
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;
2556
- 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) => {
2557
2641
  var i3;
2558
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;
2559
2643
  switch (n3) {
@@ -2575,13 +2659,13 @@ var telerikReportViewer = (function (exports) {
2575
2659
  }
2576
2660
  updateFreezeItemsOnScroll(e2, t2, i2) {
2577
2661
  var n2, r2;
2578
- let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
2662
+ let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2579
2663
  if (!s2)
2580
2664
  return;
2581
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 + "']");
2582
2666
  if (this.isInScrollVisibleArea(s2)) {
2583
- 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;
2584
- 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));
2585
2669
  } else
2586
2670
  (this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2]) && this.resetToDefaultPosition(e2, o2, a2);
2587
2671
  }
@@ -2600,7 +2684,7 @@ var telerikReportViewer = (function (exports) {
2600
2684
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2601
2685
  }
2602
2686
  hasSetBgColor(e2) {
2603
- return de(e2) > 0;
2687
+ return pe(e2) > 0;
2604
2688
  }
2605
2689
  isFrozen(e2) {
2606
2690
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2621,20 +2705,20 @@ var telerikReportViewer = (function (exports) {
2621
2705
  }
2622
2706
  }
2623
2707
  const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
2624
- function je(e2, t2) {
2708
+ function Ze(e2, t2) {
2625
2709
  let i2 = Array.isArray(t2);
2626
2710
  return e2 ? e2.replace(qe, function(e3, n2) {
2627
2711
  return t2[i2 ? parseInt(n2) : n2];
2628
2712
  }) : "";
2629
2713
  }
2630
- const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
2631
- 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 {
2632
2716
  constructor() {
2633
2717
  this.id = "", this.text = "", this.page = 0, this.items = null;
2634
2718
  }
2635
- }, 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 {
2636
2720
  constructor(e2, t2, i2, n2 = {}) {
2637
- 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 || "";
2638
2722
  }
2639
2723
  destroy() {
2640
2724
  this.resizeService && this.resizeService.destroy();
@@ -2661,10 +2745,10 @@ var telerikReportViewer = (function (exports) {
2661
2745
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2662
2746
  }
2663
2747
  onReportLoadProgress(e2) {
2664
- 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]));
2665
2749
  }
2666
2750
  onReportLoadComplete(t2) {
2667
- 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));
2668
2752
  }
2669
2753
  onReportAutoRunOff() {
2670
2754
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2701,14 +2785,14 @@ var telerikReportViewer = (function (exports) {
2701
2785
  let t2 = this.controller.getScaleMode();
2702
2786
  return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
2703
2787
  }
2704
- onPrintStarted() {
2705
- this.showNotification(this.messages.ReportViewer_PreparingPrint);
2788
+ onPrintStarted(e2) {
2789
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
2706
2790
  }
2707
2791
  onPrintDocumentReady() {
2708
2792
  this.hideNotification();
2709
2793
  }
2710
- onExportStarted() {
2711
- this.showNotification(this.messages.ReportViewer_PreparingDownload);
2794
+ onExportStarted(e2) {
2795
+ e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
2712
2796
  }
2713
2797
  onExportDocumentReady() {
2714
2798
  this.hideNotification();
@@ -2761,14 +2845,14 @@ var telerikReportViewer = (function (exports) {
2761
2845
  }
2762
2846
  let e3 = 0, i3 = 0;
2763
2847
  for (; n2 && n2 !== this.pageContainer; ) {
2764
- if (re(n2, "trv-page-wrapper")) {
2848
+ if (oe(n2, "trv-page-wrapper")) {
2765
2849
  let t3 = n2.dataset.pageScale;
2766
2850
  if ("string" == typeof t3) {
2767
2851
  let n3 = parseFloat(t3);
2768
2852
  e3 *= n3, i3 *= n3;
2769
2853
  }
2770
2854
  }
2771
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
2855
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
2772
2856
  }
2773
2857
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2774
2858
  } else
@@ -2782,7 +2866,7 @@ var telerikReportViewer = (function (exports) {
2782
2866
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2783
2867
  }
2784
2868
  disablePagesArea(e2) {
2785
- e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
2869
+ e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
2786
2870
  }
2787
2871
  disableParametersArea(e2) {
2788
2872
  var t2, i2;
@@ -2793,13 +2877,13 @@ var telerikReportViewer = (function (exports) {
2793
2877
  }
2794
2878
  showNotification(e2 = "", t2 = "info") {
2795
2879
  let i2 = this.notification.dataset.type;
2796
- 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;
2797
2881
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2798
- 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");
2799
2883
  }
2800
2884
  hideNotification() {
2801
2885
  let e2 = String(this.notification.dataset.type);
2802
- 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");
2803
2887
  }
2804
2888
  pageNo(e2) {
2805
2889
  var t2;
@@ -2822,7 +2906,7 @@ var telerikReportViewer = (function (exports) {
2822
2906
  r2 = JSON.parse(n2.dataset.box);
2823
2907
  else {
2824
2908
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
2825
- 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);
2826
2910
  }
2827
2911
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2828
2912
  if (0 === a2) {
@@ -2831,13 +2915,13 @@ var telerikReportViewer = (function (exports) {
2831
2915
  }
2832
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;
2833
2917
  let p2 = this.controller.getScale();
2834
- 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);
2835
2919
  }
2836
2920
  enableInteractivity() {
2837
- 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);
2838
2922
  }
2839
2923
  disableInteractivity() {
2840
- 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);
2841
2925
  }
2842
2926
  onClick(e2) {
2843
2927
  let t2 = e2.target.closest("[data-reporting-action]");
@@ -2868,10 +2952,10 @@ var telerikReportViewer = (function (exports) {
2868
2952
  }
2869
2953
  onToolTipItemEnter(e2, t2) {
2870
2954
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2871
- (i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
2955
+ (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2872
2956
  }
2873
2957
  onToolTipItemLeave(e2) {
2874
- this.controller.reportTooltipClosing(new p(e2, "", "", null));
2958
+ this.controller.reportTooltipClosing(new f(e2, "", "", null));
2875
2959
  }
2876
2960
  getNavigateToPageOnDocReady(e2, t2) {
2877
2961
  var i2;
@@ -2889,7 +2973,7 @@ var telerikReportViewer = (function (exports) {
2889
2973
  var t2;
2890
2974
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2891
2975
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2892
- let n2 = te("style", i2);
2976
+ let n2 = ne("style", i2);
2893
2977
  n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2894
2978
  }
2895
2979
  setPageContent(e2) {
@@ -2901,26 +2985,26 @@ var telerikReportViewer = (function (exports) {
2901
2985
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2902
2986
  }
2903
2987
  renderPageElement(e2) {
2904
- let t2 = te("div");
2988
+ let t2 = ne("div");
2905
2989
  t2.innerHTML = e2.pageContent;
2906
2990
  let i2 = t2.querySelector("div.sheet");
2907
2991
  i2.style.margin = "0";
2908
- let n2 = te("div", "", "trv-report-page");
2909
- 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;
2910
2994
  }
2911
2995
  applyPlaceholderViewModeClass() {
2912
- 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"));
2913
2997
  }
2914
2998
  setPageAreaImage() {
2915
2999
  this.clearPageAreaImage();
2916
- let e2 = te("style", We);
2917
- 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;
2918
3002
  }
2919
3003
  clearPageAreaImage() {
2920
3004
  var e2;
2921
3005
  null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
2922
3006
  }
2923
- }, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
3007
+ }, e.CurrentPageChangedEventArgs = g, e.DeviceInfo = n, e.DocumentInfo = class {
2924
3008
  constructor() {
2925
3009
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
2926
3010
  }
@@ -2928,7 +3012,7 @@ var telerikReportViewer = (function (exports) {
2928
3012
  constructor() {
2929
3013
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
2930
3014
  }
2931
- }, 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 {
2932
3016
  constructor() {
2933
3017
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
2934
3018
  }
@@ -2940,17 +3024,17 @@ var telerikReportViewer = (function (exports) {
2940
3024
  constructor() {
2941
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 = "";
2942
3026
  }
2943
- }, e.ParameterValidators = Oe, e.ParameterValue = class {
3027
+ }, e.ParameterValidators = Ve, e.ParameterValue = class {
2944
3028
  constructor() {
2945
3029
  this.name = "", this.value = null;
2946
3030
  }
2947
- }, 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 {
2948
3032
  constructor() {
2949
3033
  this.name = "", this.localizedName = "";
2950
3034
  }
2951
- }, e.ReportController = class extends $ {
3035
+ }, e.ReportController = class extends B {
2952
3036
  constructor(e2, t2) {
2953
- 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);
2954
3038
  }
2955
3039
  get autoRunEnabled() {
2956
3040
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -2994,7 +3078,7 @@ var telerikReportViewer = (function (exports) {
2994
3078
  let t2 = {}, i2 = [], n2 = false;
2995
3079
  for (let r2 of e2)
2996
3080
  try {
2997
- let e3 = Oe.validate(r2, r2.value);
3081
+ let e3 = Ve.validate(r2, r2.value);
2998
3082
  t2[r2.id] = e3;
2999
3083
  } catch (e3) {
3000
3084
  n2 = true, i2.push(r2);
@@ -3017,7 +3101,7 @@ var telerikReportViewer = (function (exports) {
3017
3101
  hasInvalidParameter(e2) {
3018
3102
  for (const t2 of e2)
3019
3103
  try {
3020
- Oe.validate(t2, t2.value);
3104
+ Ve.validate(t2, t2.value);
3021
3105
  } catch (e3) {
3022
3106
  return true;
3023
3107
  }
@@ -3094,7 +3178,7 @@ var telerikReportViewer = (function (exports) {
3094
3178
  return this.currentPageNumber;
3095
3179
  }
3096
3180
  setCurrentPageNumber(e2) {
3097
- 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)));
3098
3182
  }
3099
3183
  getPageCount() {
3100
3184
  return this.pageCount;
@@ -3104,8 +3188,13 @@ var telerikReportViewer = (function (exports) {
3104
3188
  }
3105
3189
  executeReportAction(e2) {
3106
3190
  let t2 = e2.action;
3107
- window.setTimeout(() => {
3108
- 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)
3109
3198
  if ("navigateToReport" === t2.Type) {
3110
3199
  this.emit("serverActionStarted");
3111
3200
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
@@ -3122,7 +3211,7 @@ var telerikReportViewer = (function (exports) {
3122
3211
  window.open(e3.Url, e3.Target);
3123
3212
  } else
3124
3213
  t2.Type;
3125
- }, 0);
3214
+ }), 0);
3126
3215
  }
3127
3216
  reportActionEnter(e2) {
3128
3217
  this.emit("interactiveActionEnter", e2);
@@ -3131,7 +3220,13 @@ var telerikReportViewer = (function (exports) {
3131
3220
  this.emit("interactiveActionLeave", e2);
3132
3221
  }
3133
3222
  reportTooltipOpening(e2) {
3134
- 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
+ });
3135
3230
  }
3136
3231
  reportTooltipClosing(e2) {
3137
3232
  this.emit("toolTipClosing", e2);
@@ -3141,37 +3236,39 @@ var telerikReportViewer = (function (exports) {
3141
3236
  let e2 = this.createDeviceInfo();
3142
3237
  e2.ImmediatePrint = true;
3143
3238
  let t2 = new c(e2);
3144
- 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* () {
3145
3240
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3146
3241
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3147
3242
  let i2 = new d(t3);
3148
- this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3149
- }));
3243
+ yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3244
+ })));
3150
3245
  });
3151
3246
  }
3152
3247
  exportReport(e2) {
3153
3248
  return i(this, void 0, void 0, function* () {
3154
3249
  let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
3155
3250
  if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
3156
- let r2 = new l(t2, e2);
3157
- 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)
3158
3253
  return;
3159
- this.setUIState("ExportInProgress", true), this.exportAsync(e2, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
3160
- 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);
3161
3256
  i2 += "?response-content-disposition=attachment";
3162
3257
  let n3 = new h(i2, e2, "_self");
3163
- 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);
3164
3259
  }));
3165
3260
  }
3166
3261
  });
3167
3262
  }
3168
3263
  sendReport(e2) {
3169
- let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
3170
- this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
3171
- let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
3172
- n2 += "?response-content-disposition=attachment";
3173
- let r2 = new xe(e2, t2, n2);
3174
- 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
+ }));
3175
3272
  });
3176
3273
  }
3177
3274
  getSearchResults(e2) {
@@ -3195,7 +3292,7 @@ var telerikReportViewer = (function (exports) {
3195
3292
  }
3196
3293
  sendDocumentAsync(e2, t2) {
3197
3294
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3198
- 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())));
3199
3296
  });
3200
3297
  }
3201
3298
  loadParameters(e2 = void 0) {
@@ -3208,7 +3305,7 @@ var telerikReportViewer = (function (exports) {
3208
3305
  }
3209
3306
  initializeAndStartSentinel() {
3210
3307
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3211
- 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();
3212
3309
  });
3213
3310
  }
3214
3311
  stopSentinel() {
@@ -3233,7 +3330,7 @@ var telerikReportViewer = (function (exports) {
3233
3330
  this.pageCount = 0, this.currentPageNumber = 0;
3234
3331
  }
3235
3332
  handleSearchRequestError(e2) {
3236
- if (!Ce(e2, "System.ArgumentException"))
3333
+ if (!Se(e2, "System.ArgumentException"))
3237
3334
  throw this.handleRequestError(e2, "", true), null;
3238
3335
  this.throwPromiseError(e2);
3239
3336
  }
@@ -3241,8 +3338,8 @@ var telerikReportViewer = (function (exports) {
3241
3338
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3242
3339
  }
3243
3340
  handleRequestError(e2, t2 = "", i2 = false) {
3244
- ye(e2) && this.onClientExpired();
3245
- 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);
3246
3343
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3247
3344
  }
3248
3345
  formatRequestError(e2, t2, i2) {
@@ -3250,14 +3347,14 @@ var telerikReportViewer = (function (exports) {
3250
3347
  if (n2) {
3251
3348
  if (401 == n2.status || 403 == n2.status)
3252
3349
  return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3253
- if (Se(e2))
3350
+ if (be(e2))
3254
3351
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3255
- r2 = le(n2.message);
3256
- 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);
3257
3354
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3258
3355
  } else
3259
- r2 = le(e2.responseText);
3260
- 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;
3261
3358
  }
3262
3359
  raiseError(e2, t2 = true) {
3263
3360
  this.emit("error", e2, t2);
@@ -3270,7 +3367,7 @@ var telerikReportViewer = (function (exports) {
3270
3367
  }
3271
3368
  initializeClient() {
3272
3369
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3273
- const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3370
+ const t2 = Le(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3274
3371
  this.handleRequestError(e2, t2);
3275
3372
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3276
3373
  }
@@ -3280,7 +3377,7 @@ var telerikReportViewer = (function (exports) {
3280
3377
  registerDocumentAsync(e2, t2, n2) {
3281
3378
  return i(this, arguments, void 0, function* (e3, t3, i2, n3 = "", r2 = "") {
3282
3379
  return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i2, n3, r2).catch((t4) => {
3283
- 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)));
3284
3381
  })) || "";
3285
3382
  });
3286
3383
  }
@@ -3318,7 +3415,7 @@ var telerikReportViewer = (function (exports) {
3318
3415
  const e2 = {}, t2 = this.getProcessedParameterValues();
3319
3416
  for (let i2 in t2) {
3320
3417
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3321
- 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;
3322
3419
  }
3323
3420
  return e2;
3324
3421
  }
@@ -3439,6 +3536,19 @@ ${e3.text} (${e3.id})`;
3439
3536
  var e2, t2;
3440
3537
  return !(null === (t2 = null === (e2 = this.configurationInfo) || void 0 === e2 ? void 0 : e2.license) || void 0 === t2 ? void 0 : t2.isValid);
3441
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
+ }
3442
3552
  saveToSessionStorage(e2, t2) {
3443
3553
  sessionStorage.setItem(e2, t2);
3444
3554
  }
@@ -3463,13 +3573,13 @@ ${e3.text} (${e3.id})`;
3463
3573
  constructor(e2, t2) {
3464
3574
  this.url = e2, this.getPersonalAccessToken = t2;
3465
3575
  }
3466
- }, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
3576
+ }, e.ReportSourceOptions = _e, e.RequestError = m, e.SearchInfo = class {
3467
3577
  constructor() {
3468
3578
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3469
3579
  }
3470
- }, e.SearchManager = class extends $ {
3580
+ }, e.SearchManager = class extends B {
3471
3581
  constructor(e2, t2) {
3472
- 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));
3473
3583
  }
3474
3584
  search(e2) {
3475
3585
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3478,15 +3588,15 @@ ${e3.text} (${e3.id})`;
3478
3588
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3479
3589
  }
3480
3590
  highlightSearchItem(t2) {
3481
- 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));
3482
3592
  }
3483
3593
  navigateToPage(e2) {
3484
3594
  this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
3485
3595
  }
3486
3596
  colorPageElements(e2) {
3487
3597
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3488
- let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
3489
- 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));
3490
3600
  }), this.highlightItem(this.pendingHighlightItem));
3491
3601
  }
3492
3602
  highlightItem(e2) {
@@ -3494,13 +3604,13 @@ ${e3.text} (${e3.id})`;
3494
3604
  let t2 = this.highlightedElements.find(function(t3) {
3495
3605
  return t3.dataset.searchId === e2.id;
3496
3606
  });
3497
- t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
3607
+ t2 && (this.currentHighlightedElement = t2, se(t2, je), re(t2, Je));
3498
3608
  }
3499
3609
  }
3500
3610
  clearColoredItems() {
3501
3611
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3502
- ne(e2, Je);
3503
- }), 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;
3504
3614
  }
3505
3615
  applySearchColors() {
3506
3616
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3512,23 +3622,23 @@ ${e3.text} (${e3.id})`;
3512
3622
  constructor() {
3513
3623
  this.description = "", this.id = "", this.page = 0;
3514
3624
  }
3515
- }, e.ServiceClient = class {
3625
+ }, e.SendEmailDocumentReadyEventArgs = p, e.SendEmailStartedEventArgs = u, e.ServiceClient = class {
3516
3626
  constructor(e2) {
3517
3627
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3518
3628
  }
3519
3629
  getConnectionConfig(e2) {
3520
- 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);
3521
3631
  }
3522
3632
  getAuthStrategy(t2) {
3523
3633
  switch (t2.authType) {
3524
3634
  case e.AuthType.None:
3525
- return new P();
3635
+ return new y();
3526
3636
  case e.AuthType.Basic:
3527
- return new C(t2);
3637
+ return new S(t2);
3528
3638
  case e.AuthType.PersonalToken:
3529
- return new y(t2);
3639
+ return new I(t2);
3530
3640
  default:
3531
- return new P();
3641
+ return new y();
3532
3642
  }
3533
3643
  }
3534
3644
  validateClientID(e2) {
@@ -3537,15 +3647,15 @@ ${e3.text} (${e3.id})`;
3537
3647
  }
3538
3648
  authenticatedGet(e2) {
3539
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) {
3540
- return fetch(e3, { headers: m(t3) }).then(f);
3650
+ return fetch(e3, { headers: v(t3) }).then(P);
3541
3651
  }(e2, t2.access_token || t2.accessToken));
3542
3652
  }
3543
3653
  authenticatedPost(e2, t2) {
3544
- 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));
3545
3655
  }
3546
3656
  authenticatedDelete(e2) {
3547
3657
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3548
- return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
3658
+ return fetch(e3, { method: "DELETE", headers: v(t3) }).then(P);
3549
3659
  }(e2, t2.access_token || t2.accessToken));
3550
3660
  }
3551
3661
  login() {
@@ -3629,15 +3739,15 @@ ${e3.text} (${e3.id})`;
3629
3739
  return e2.clientSessionTimeout;
3630
3740
  });
3631
3741
  }
3632
- }, 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) {
3633
3743
  if (!e2)
3634
3744
  return;
3635
- let t2 = fe(e2);
3745
+ let t2 = Pe(e2);
3636
3746
  if (!t2)
3637
3747
  return;
3638
3748
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3639
3749
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3640
- }, 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) {
3641
3751
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3642
3752
  if (t2 && i2 && t2.report === i2.report) {
3643
3753
  let e3 = "";
@@ -3646,7 +3756,7 @@ ${e3.text} (${e3.id})`;
3646
3756
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3647
3757
  }
3648
3758
  return false;
3649
- }, 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;
3650
3760
  });
3651
3761
  })(dist, dist.exports);
3652
3762
  var distExports = dist.exports;
@@ -4704,6 +4814,7 @@ ${e3.text} (${e3.id})`;
4704
4814
  ariaLabelDocumentMap: "Document map area",
4705
4815
  ariaLabelDocumentMapSplitter: "Document map area splitbar.",
4706
4816
  ariaLabelParametersAreaSplitter: "Parameters area splitbar.",
4817
+ ariaLabelParametersArea: "Parameters area. Contains {0} parameters.",
4707
4818
  ariaLabelPagesArea: "Report contents area",
4708
4819
  ariaLabelSearchDialogArea: "Search area",
4709
4820
  ariaLabelAiPromptDialogArea: "AI prompt area",
@@ -6686,7 +6797,8 @@ ${e3.text} (${e3.id})`;
6686
6797
  if (this.parameters.length > 0) {
6687
6798
  this._parametersWrapper.append(...$tempContainer.children().get());
6688
6799
  if (this.enableAccessibility) {
6689
- this._parametersWrapper.setAttribute("aria-label", "Parameters area. Contains " + this.parameters.length + " parameters.");
6800
+ var renderedCount = this._parametersWrapper.children.length;
6801
+ this._parametersWrapper.setAttribute("aria-label", stringFormat(stringResources.ariaLabelParametersArea, [renderedCount]));
6690
6802
  }
6691
6803
  }
6692
6804
  }
@@ -7278,11 +7390,11 @@ ${e3.text} (${e3.id})`;
7278
7390
  navigatable: true,
7279
7391
  dataSource: [],
7280
7392
  contentElement: "",
7281
- template: `
7393
+ template: (data) => `
7282
7394
  <div class="k-list-item !k-align-items-start">
7283
- <span class="k-list-item-text">#: description #</span>
7395
+ <span class="k-list-item-text">${kendo.htmlEncode(data.description)}</span>
7284
7396
  <span class="k-flex"></span>
7285
- <span class="k-flex-none">${stringResources.searchDialogPageText} #:page#</span>
7397
+ <span class="k-flex-none">${stringResources.searchDialogPageText} ${kendo.htmlEncode(data.page)}</span>
7286
7398
  </div>
7287
7399
  `.trim(),
7288
7400
  change: (event) => {
@@ -9089,7 +9201,7 @@ ${e3.text} (${e3.id})`;
9089
9201
  if (!validateOptions(options)) {
9090
9202
  return;
9091
9203
  }
9092
- var version = "20.0.26.402";
9204
+ var version = "20.1.26.520";
9093
9205
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
9094
9206
  settings = new ReportViewerSettings(
9095
9207
  persistanceKey,