@progress/telerik-jquery-report-viewer 30.26.615 → 30.26.707

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.
Files changed (51) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/accessibility.js +2 -0
  3. package/dist/cjs/aiPrompt.js +2 -0
  4. package/dist/cjs/banner.js +2 -0
  5. package/dist/cjs/base-component.js +2 -0
  6. package/dist/cjs/binder.js +2 -0
  7. package/dist/cjs/command.js +2 -0
  8. package/dist/cjs/commandSet.js +6 -3
  9. package/dist/cjs/components/button.js +2 -0
  10. package/dist/cjs/components/toggle-button.js +2 -0
  11. package/dist/cjs/constants.js +2 -0
  12. package/dist/cjs/documentMapArea.js +2 -0
  13. package/dist/cjs/domUtils.js +2 -0
  14. package/dist/cjs/enums.js +2 -0
  15. package/dist/cjs/event-emitter.js +2 -0
  16. package/dist/cjs/events.js +2 -0
  17. package/dist/cjs/globalSettings.js +2 -0
  18. package/dist/cjs/history.js +2 -0
  19. package/dist/cjs/index.js +2 -0
  20. package/dist/cjs/mainMenu.js +2 -0
  21. package/dist/cjs/mem-storage.js +2 -0
  22. package/dist/cjs/notificationService.js +2 -0
  23. package/dist/cjs/parameterValidators.js +2 -0
  24. package/dist/cjs/parameters.js +5 -3
  25. package/dist/cjs/parametersArea.js +2 -0
  26. package/dist/cjs/perspectives.js +2 -0
  27. package/dist/cjs/report-viewer/report-viewer-settings.js +2 -0
  28. package/dist/cjs/reportViewer.js +12 -4
  29. package/dist/cjs/search.js +6 -3
  30. package/dist/cjs/sendEmail.js +9 -2
  31. package/dist/cjs/service-client-sentinel.js +2 -0
  32. package/dist/cjs/sideMenu.js +2 -0
  33. package/dist/cjs/stringResources.js +2 -0
  34. package/dist/cjs/template-cache.js +2 -0
  35. package/dist/cjs/toolbar/button.js +2 -0
  36. package/dist/cjs/toolbar/link-button.js +2 -0
  37. package/dist/cjs/toolbar/page-count-label.js +2 -0
  38. package/dist/cjs/toolbar/page-number-input.js +2 -0
  39. package/dist/cjs/toolbar.js +2 -0
  40. package/dist/cjs/touch.js +2 -0
  41. package/dist/cjs/uiController.js +6 -3
  42. package/dist/cjs/utils.js +6 -4
  43. package/dist/font/font-icons.css +4 -10
  44. package/dist/font/font-icons.min.css +3 -3
  45. package/dist/js/telerikReportViewer.js +382 -372
  46. package/dist/js/telerikReportViewer.min.js +1 -1
  47. package/dist/styles/telerikReportViewer.css +3 -3
  48. package/dist/styles/telerikReportViewer.min.css +3 -3
  49. package/dist/templates/telerikReportViewerTemplate.html +3 -3
  50. package/package.json +7 -7
  51. /package/dist/font/{ReportingIcons-20.1.26.615.ttf → ReportingIcons-20.1.26.707.ttf} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * TelerikReporting v20.1.26.615 (https://www.telerik.com/products/reporting.aspx)
2
+ * TelerikReporting v20.1.26.707 (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
@@ -1494,11 +1494,16 @@ var telerikReportViewer = (function (exports) {
1494
1494
  return purify_cjs;
1495
1495
  }
1496
1496
 
1497
- (function(module, exports$1) {
1497
+ dist.exports;
1498
+ (function(module, exports) {
1498
1499
  !function(e, t) {
1499
- t(exports$1, requirePurify_cjs()) ;
1500
+ t(exports, requirePurify_cjs()) ;
1500
1501
  }(commonjsGlobal, function(e, t) {
1501
- function i(e2, t2, i2, n2) {
1502
+ function i(e2) {
1503
+ return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
1504
+ }
1505
+ var n, r = i(t);
1506
+ function s(e2, t2, i2, n2) {
1502
1507
  return new (i2 || (i2 = Promise))(function(r2, s2) {
1503
1508
  function o2(e3) {
1504
1509
  try {
@@ -1524,72 +1529,72 @@ var telerikReportViewer = (function (exports) {
1524
1529
  });
1525
1530
  }
1526
1531
  "function" == typeof SuppressedError && SuppressedError;
1527
- class n {
1532
+ class o {
1528
1533
  constructor() {
1529
1534
  this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
1530
1535
  }
1531
1536
  }
1532
- class r {
1537
+ class a {
1533
1538
  constructor() {
1534
1539
  this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
1535
1540
  }
1536
1541
  }
1537
- class s {
1542
+ class l {
1538
1543
  constructor(e2, t2) {
1539
1544
  this.cancel = false, this.element = e2, this.action = t2;
1540
1545
  }
1541
1546
  }
1542
- class o {
1547
+ class h {
1543
1548
  constructor(e2, t2) {
1544
1549
  this.id = "", this.type = "", this.id = e2, this.type = t2;
1545
1550
  }
1546
1551
  }
1547
- class a {
1552
+ class c {
1548
1553
  constructor(e2, t2) {
1549
1554
  this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
1550
1555
  }
1551
1556
  }
1552
- class l {
1557
+ class d {
1553
1558
  constructor(e2, t2) {
1554
1559
  this.handled = false, this.deviceInfo = e2, this.format = t2;
1555
1560
  }
1556
1561
  }
1557
- class h {
1562
+ class u {
1558
1563
  constructor(e2, t2, i2) {
1559
1564
  this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
1560
1565
  }
1561
1566
  }
1562
- class c {
1567
+ class p {
1563
1568
  constructor(e2) {
1564
1569
  this.handled = false, this.deviceInfo = e2;
1565
1570
  }
1566
1571
  }
1567
- class d {
1572
+ class g {
1568
1573
  constructor(e2) {
1569
1574
  this.handled = false, this.url = e2;
1570
1575
  }
1571
1576
  }
1572
- class u {
1577
+ class f {
1573
1578
  constructor(e2, t2) {
1574
1579
  this.handled = false, this.deviceInfo = e2, this.format = t2;
1575
1580
  }
1576
1581
  }
1577
- class p extends r {
1582
+ class m extends a {
1578
1583
  constructor(e2, t2, i2) {
1579
1584
  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
1585
  }
1581
1586
  }
1582
- class g {
1587
+ class v {
1583
1588
  constructor(e2, t2) {
1584
1589
  this.page = e2, this.reportDocumentId = t2;
1585
1590
  }
1586
1591
  }
1587
- class f {
1592
+ class P {
1588
1593
  constructor(e2, t2, i2, n2 = null) {
1589
1594
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1590
1595
  }
1591
1596
  }
1592
- class m {
1597
+ class C {
1593
1598
  constructor(e2, t2) {
1594
1599
  this._responseText = e2, this._error = t2;
1595
1600
  try {
@@ -1612,14 +1617,14 @@ var telerikReportViewer = (function (exports) {
1612
1617
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1613
1618
  }
1614
1619
  }
1615
- function v(e2, t2 = false, i2 = false) {
1620
+ function y(e2, t2 = false, i2 = false) {
1616
1621
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1617
1622
  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;
1618
1623
  }
1619
- function P(e2) {
1620
- return i(this, void 0, void 0, function* () {
1624
+ function S(e2) {
1625
+ return s(this, void 0, void 0, function* () {
1621
1626
  if (!e2.ok) {
1622
- let t2 = yield e2.text(), i2 = new m(t2, e2.statusText);
1627
+ let t2 = yield e2.text(), i2 = new C(t2, e2.statusText);
1623
1628
  return Promise.reject(i2);
1624
1629
  }
1625
1630
  if (204 == e2.status)
@@ -1627,15 +1632,15 @@ var telerikReportViewer = (function (exports) {
1627
1632
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1628
1633
  });
1629
1634
  }
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);
1635
+ function I(e2, t2 = {}, i2 = "", n2 = false) {
1636
+ return fetch(e2, { method: "POST", headers: y(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(S);
1632
1637
  }
1633
- class y {
1638
+ class b {
1634
1639
  authenticatePromise() {
1635
1640
  return Promise.resolve("");
1636
1641
  }
1637
1642
  }
1638
- class S {
1643
+ class w {
1639
1644
  constructor(e2) {
1640
1645
  this.connectionConfig = e2;
1641
1646
  }
@@ -1643,60 +1648,59 @@ var telerikReportViewer = (function (exports) {
1643
1648
  var e2, t2;
1644
1649
  if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1645
1650
  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) || "")}`;
1646
- return C(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1651
+ return I(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1647
1652
  }
1648
1653
  return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
1649
1654
  }
1650
1655
  }
1651
- class I {
1656
+ class L {
1652
1657
  constructor(e2) {
1653
1658
  this.connectionConfig = e2;
1654
1659
  }
1655
1660
  authenticatePromise(e2, t2) {
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?");
1661
+ return e2 ? I(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) => I(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?");
1657
1662
  }
1658
1663
  }
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 {
1664
+ e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
1665
+ class T {
1662
1666
  constructor(e2) {
1663
1667
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1664
1668
  }
1665
1669
  }
1666
- class T extends L {
1670
+ class R extends T {
1667
1671
  constructor(t2) {
1668
1672
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1669
1673
  }
1670
1674
  }
1671
- class A extends L {
1675
+ class A extends T {
1672
1676
  constructor(t2) {
1673
1677
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1674
1678
  }
1675
1679
  }
1676
- class R extends A {
1680
+ class E extends A {
1677
1681
  constructor(t2, i2, n2) {
1678
1682
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1679
1683
  }
1680
1684
  }
1681
- class E extends A {
1685
+ class M extends A {
1682
1686
  constructor(t2, i2) {
1683
1687
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1684
1688
  }
1685
1689
  }
1686
- function M() {
1687
- }
1688
1690
  function k() {
1689
- k.init.call(this);
1690
1691
  }
1691
- function x(e2) {
1692
- return void 0 === e2._maxListeners ? k.defaultMaxListeners : e2._maxListeners;
1692
+ function x() {
1693
+ x.init.call(this);
1693
1694
  }
1694
- function N(e2, t2, i2, n2) {
1695
+ function N(e2) {
1696
+ return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
1697
+ }
1698
+ function D(e2, t2, i2, n2) {
1695
1699
  var r2, s2, o2, a2;
1696
1700
  if ("function" != typeof i2)
1697
1701
  throw new TypeError('"listener" argument must be a function');
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) {
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) {
1702
+ 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 k(), e2._eventsCount = 0), o2) {
1703
+ if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = N(e2)) && r2 > 0 && o2.length > r2) {
1700
1704
  o2.warned = true;
1701
1705
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
1702
1706
  l2.name = "MaxListenersExceededWarning", l2.emitter = e2, l2.type = t2, l2.count = o2.length, a2 = l2, "function" == typeof console.warn ? console.warn(a2) : console.log(a2);
@@ -1705,7 +1709,7 @@ var telerikReportViewer = (function (exports) {
1705
1709
  o2 = s2[t2] = i2, ++e2._eventsCount;
1706
1710
  return e2;
1707
1711
  }
1708
- function D(e2, t2, i2) {
1712
+ function V(e2, t2, i2) {
1709
1713
  var n2 = false;
1710
1714
  function r2() {
1711
1715
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
@@ -1723,20 +1727,20 @@ var telerikReportViewer = (function (exports) {
1723
1727
  }
1724
1728
  return 0;
1725
1729
  }
1726
- function V(e2, t2) {
1730
+ function O(e2, t2) {
1727
1731
  for (var i2 = new Array(t2); t2--; )
1728
1732
  i2[t2] = e2[t2];
1729
1733
  return i2;
1730
1734
  }
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) {
1735
+ k.prototype = /* @__PURE__ */ Object.create(null), x.EventEmitter = x, x.usingDomains = false, x.prototype.domain = void 0, x.prototype._events = void 0, x.prototype._maxListeners = void 0, x.defaultMaxListeners = 10, x.init = function() {
1736
+ this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new k(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1737
+ }, x.prototype.setMaxListeners = function(e2) {
1734
1738
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1735
1739
  throw new TypeError('"n" argument must be a positive number');
1736
1740
  return this._maxListeners = e2, this;
1737
- }, k.prototype.getMaxListeners = function() {
1738
- return x(this);
1739
- }, k.prototype.emit = function(e2) {
1741
+ }, x.prototype.getMaxListeners = function() {
1742
+ return N(this);
1743
+ }, x.prototype.emit = function(e2) {
1740
1744
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1741
1745
  if (o2 = this._events)
1742
1746
  l2 = l2 && null == o2.error;
@@ -1760,7 +1764,7 @@ var telerikReportViewer = (function (exports) {
1760
1764
  if (t3)
1761
1765
  e3.call(i3);
1762
1766
  else
1763
- for (var n3 = e3.length, r3 = V(e3, n3), s3 = 0; s3 < n3; ++s3)
1767
+ for (var n3 = e3.length, r3 = O(e3, n3), s3 = 0; s3 < n3; ++s3)
1764
1768
  r3[s3].call(i3);
1765
1769
  }(i2, c2, this);
1766
1770
  break;
@@ -1769,7 +1773,7 @@ var telerikReportViewer = (function (exports) {
1769
1773
  if (t3)
1770
1774
  e3.call(i3, n3);
1771
1775
  else
1772
- for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1776
+ for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3)
1773
1777
  s3[o3].call(i3, n3);
1774
1778
  }(i2, c2, this, arguments[1]);
1775
1779
  break;
@@ -1778,7 +1782,7 @@ var telerikReportViewer = (function (exports) {
1778
1782
  if (t3)
1779
1783
  e3.call(i3, n3, r3);
1780
1784
  else
1781
- for (var s3 = e3.length, o3 = V(e3, s3), a3 = 0; a3 < s3; ++a3)
1785
+ for (var s3 = e3.length, o3 = O(e3, s3), a3 = 0; a3 < s3; ++a3)
1782
1786
  o3[a3].call(i3, n3, r3);
1783
1787
  }(i2, c2, this, arguments[1], arguments[2]);
1784
1788
  break;
@@ -1787,7 +1791,7 @@ var telerikReportViewer = (function (exports) {
1787
1791
  if (t3)
1788
1792
  e3.call(i3, n3, r3, s3);
1789
1793
  else
1790
- for (var o3 = e3.length, a3 = V(e3, o3), l3 = 0; l3 < o3; ++l3)
1794
+ for (var o3 = e3.length, a3 = O(e3, o3), l3 = 0; l3 < o3; ++l3)
1791
1795
  a3[l3].call(i3, n3, r3, s3);
1792
1796
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1793
1797
  break;
@@ -1798,24 +1802,24 @@ var telerikReportViewer = (function (exports) {
1798
1802
  if (t3)
1799
1803
  e3.apply(i3, n3);
1800
1804
  else
1801
- for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
1805
+ for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3)
1802
1806
  s3[o3].apply(i3, n3);
1803
1807
  }(i2, c2, this, r2);
1804
1808
  }
1805
1809
  return true;
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) {
1810
+ }, x.prototype.addListener = function(e2, t2) {
1811
+ return D(this, e2, t2, false);
1812
+ }, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
1813
+ return D(this, e2, t2, true);
1814
+ }, x.prototype.once = function(e2, t2) {
1811
1815
  if ("function" != typeof t2)
1812
1816
  throw new TypeError('"listener" argument must be a function');
1813
- return this.on(e2, D(this, e2, t2)), this;
1814
- }, k.prototype.prependOnceListener = function(e2, t2) {
1817
+ return this.on(e2, V(this, e2, t2)), this;
1818
+ }, x.prototype.prependOnceListener = function(e2, t2) {
1815
1819
  if ("function" != typeof t2)
1816
1820
  throw new TypeError('"listener" argument must be a function');
1817
- return this.prependListener(e2, D(this, e2, t2)), this;
1818
- }, k.prototype.removeListener = function(e2, t2) {
1821
+ return this.prependListener(e2, V(this, e2, t2)), this;
1822
+ }, x.prototype.removeListener = function(e2, t2) {
1819
1823
  var i2, n2, r2, s2, o2;
1820
1824
  if ("function" != typeof t2)
1821
1825
  throw new TypeError('"listener" argument must be a function');
@@ -1824,7 +1828,7 @@ var telerikReportViewer = (function (exports) {
1824
1828
  if (!(i2 = n2[e2]))
1825
1829
  return this;
1826
1830
  if (i2 === t2 || i2.listener && i2.listener === t2)
1827
- 0 === --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1831
+ 0 === --this._eventsCount ? this._events = new k() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1828
1832
  else if ("function" != typeof i2) {
1829
1833
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1830
1834
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1835,7 +1839,7 @@ var telerikReportViewer = (function (exports) {
1835
1839
  return this;
1836
1840
  if (1 === i2.length) {
1837
1841
  if (i2[0] = void 0, 0 === --this._eventsCount)
1838
- return this._events = new M(), this;
1842
+ return this._events = new k(), this;
1839
1843
  delete n2[e2];
1840
1844
  } else
1841
1845
  !function(e3, t3) {
@@ -1846,18 +1850,18 @@ var telerikReportViewer = (function (exports) {
1846
1850
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1847
1851
  }
1848
1852
  return this;
1849
- }, k.prototype.off = function(e2, t2) {
1853
+ }, x.prototype.off = function(e2, t2) {
1850
1854
  return this.removeListener(e2, t2);
1851
- }, k.prototype.removeAllListeners = function(e2) {
1855
+ }, x.prototype.removeAllListeners = function(e2) {
1852
1856
  var t2, i2;
1853
1857
  if (!(i2 = this._events))
1854
1858
  return this;
1855
1859
  if (!i2.removeListener)
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;
1860
+ return 0 === arguments.length ? (this._events = new k(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new k() : delete i2[e2]), this;
1857
1861
  if (0 === arguments.length) {
1858
1862
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1859
1863
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1860
- return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
1864
+ return this.removeAllListeners("removeListener"), this._events = new k(), this._eventsCount = 0, this;
1861
1865
  }
1862
1866
  if ("function" == typeof (t2 = i2[e2]))
1863
1867
  this.removeListener(e2, t2);
@@ -1866,34 +1870,34 @@ var telerikReportViewer = (function (exports) {
1866
1870
  this.removeListener(e2, t2[t2.length - 1]);
1867
1871
  } while (t2[0]);
1868
1872
  return this;
1869
- }, k.prototype.listeners = function(e2) {
1873
+ }, x.prototype.listeners = function(e2) {
1870
1874
  var t2, i2 = this._events;
1871
1875
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1872
1876
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1873
1877
  t3[i3] = e3[i3].listener || e3[i3];
1874
1878
  return t3;
1875
1879
  }(t2) : [];
1876
- }, k.listenerCount = function(e2, t2) {
1880
+ }, x.listenerCount = function(e2, t2) {
1877
1881
  return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
1878
- }, k.prototype.listenerCount = F, k.prototype.eventNames = function() {
1882
+ }, x.prototype.listenerCount = F, x.prototype.eventNames = function() {
1879
1883
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1880
1884
  };
1881
- const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1882
- function z(e2) {
1885
+ const z = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1886
+ function _(e2) {
1883
1887
  if ("string" != typeof e2 && "symbol" != typeof e2)
1884
1888
  throw new TypeError("type is not type of string or symbol!");
1885
1889
  }
1886
- function _(e2) {
1890
+ function H(e2) {
1887
1891
  if ("function" != typeof e2)
1888
1892
  throw new TypeError("fn is not type of Function!");
1889
1893
  }
1890
- function H(e2) {
1891
- return { [O]: "always", fn: e2 };
1892
- }
1893
1894
  function U(e2) {
1894
- return { [O]: "once", fn: e2 };
1895
+ return { [z]: "always", fn: e2 };
1896
+ }
1897
+ function $(e2) {
1898
+ return { [z]: "once", fn: e2 };
1895
1899
  }
1896
- class $ {
1900
+ class B {
1897
1901
  constructor() {
1898
1902
  this._events = {};
1899
1903
  }
@@ -1901,25 +1905,25 @@ var telerikReportViewer = (function (exports) {
1901
1905
  return this.on(e2, t2);
1902
1906
  }
1903
1907
  on(e2, t2) {
1904
- return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(H(t2)), this;
1908
+ return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1905
1909
  }
1906
1910
  prependListener(e2, t2) {
1907
1911
  return this.prepend(e2, t2);
1908
1912
  }
1909
1913
  prepend(e2, t2) {
1910
- return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(H(t2)), this;
1914
+ return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1911
1915
  }
1912
1916
  prependOnceListener(e2, t2) {
1913
1917
  return this.prependOnce(e2, t2);
1914
1918
  }
1915
1919
  prependOnce(e2, t2) {
1916
- return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1920
+ return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift($(t2)), this;
1917
1921
  }
1918
1922
  listeners(e2) {
1919
1923
  return (this._events[e2] || []).map((e3) => e3.fn);
1920
1924
  }
1921
1925
  once(e2, t2) {
1922
- return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1926
+ return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push($(t2)), this;
1923
1927
  }
1924
1928
  removeAllListeners() {
1925
1929
  this._events = {};
@@ -1928,7 +1932,7 @@ var telerikReportViewer = (function (exports) {
1928
1932
  return this.removeListener(e2, t2);
1929
1933
  }
1930
1934
  removeListener(e2, t2) {
1931
- z(e2);
1935
+ _(e2);
1932
1936
  const i2 = this.listeners(e2);
1933
1937
  if ("function" == typeof t2) {
1934
1938
  let n2 = -1, r2 = false;
@@ -1939,13 +1943,13 @@ var telerikReportViewer = (function (exports) {
1939
1943
  return delete this._events[e2];
1940
1944
  }
1941
1945
  emit(e2, ...t2) {
1942
- return i(this, void 0, void 0, function* () {
1943
- z(e2);
1946
+ return s(this, void 0, void 0, function* () {
1947
+ _(e2);
1944
1948
  const i2 = this.listeners(e2), n2 = [];
1945
1949
  if (i2 && i2.length) {
1946
1950
  for (let r2 = 0; r2 < i2.length; r2++) {
1947
1951
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1948
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1952
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
1949
1953
  }
1950
1954
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1951
1955
  }
@@ -1953,21 +1957,21 @@ var telerikReportViewer = (function (exports) {
1953
1957
  });
1954
1958
  }
1955
1959
  emitSync(e2, ...t2) {
1956
- z(e2);
1960
+ _(e2);
1957
1961
  const i2 = this.listeners(e2), n2 = [];
1958
1962
  if (i2 && i2.length) {
1959
1963
  for (let r2 = 0; r2 < i2.length; r2++) {
1960
1964
  const s2 = i2[r2];
1961
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1965
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
1962
1966
  }
1963
1967
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1964
1968
  }
1965
1969
  return false;
1966
1970
  }
1967
1971
  }
1968
- class B {
1972
+ class q {
1969
1973
  constructor() {
1970
- this.eventEmitter = new k(), this.awaitEventEmitter = new $();
1974
+ this.eventEmitter = new x(), this.awaitEventEmitter = new B();
1971
1975
  }
1972
1976
  on(e2, t2) {
1973
1977
  return this.eventEmitter.on(e2, t2), this;
@@ -1979,24 +1983,11 @@ var telerikReportViewer = (function (exports) {
1979
1983
  return this.awaitEventEmitter.on(e2, t2), this;
1980
1984
  }
1981
1985
  emitAsync(e2, ...t2) {
1982
- return i(this, void 0, void 0, function* () {
1986
+ return s(this, void 0, void 0, function* () {
1983
1987
  yield this.awaitEventEmitter.emit(e2, ...t2);
1984
1988
  });
1985
1989
  }
1986
1990
  }
1987
- class q {
1988
- hasPdfPlugin() {
1989
- let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1990
- for (let t2 of e2)
1991
- try {
1992
- let e3 = new ActiveXObject(t2);
1993
- if (e3)
1994
- return null !== e3;
1995
- } catch (e3) {
1996
- }
1997
- return false;
1998
- }
1999
- }
2000
1991
  class W {
2001
1992
  hasPdfPlugin() {
2002
1993
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
@@ -2028,59 +2019,63 @@ var telerikReportViewer = (function (exports) {
2028
2019
  return false;
2029
2020
  }
2030
2021
  }
2031
- function J() {
2032
- return window.navigator && window.navigator.msSaveOrOpenBlob;
2033
- }
2034
2022
  class G {
2035
2023
  constructor() {
2036
- this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
2024
+ this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = this.detectPdfSupport(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2025
+ }
2026
+ detectPdfSupport() {
2027
+ return "boolean" == typeof navigator.pdfViewerEnabled ? navigator.pdfViewerEnabled : function() {
2037
2028
  if (window.navigator) {
2038
2029
  let e2 = window.navigator.userAgent.toLowerCase();
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();
2030
+ return 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();
2040
2031
  }
2041
2032
  return new j();
2042
- }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2033
+ }().hasPdfPlugin();
2043
2034
  }
2044
2035
  destroy() {
2045
2036
  this.iframe = null;
2046
2037
  }
2047
- printDesktop(e2) {
2048
- let t2 = null;
2049
- if (this.iframe || (this.iframe = document.createElement("iframe"), this.iframe.style.display = "none", this.iframe.onload = () => {
2050
- var e3, i3;
2038
+ printDesktop(e2, t2) {
2039
+ if (!this.hasPdfPlugin)
2040
+ return console.warn("Direct printing is not supported in this browser. The PDF document will be downloaded instead."), void this.printViaDownload(e2, t2);
2041
+ let i2 = null;
2042
+ this.iframe || (this.iframe = document.createElement("iframe"), this.iframe.style.display = "none", this.iframe.onload = () => {
2043
+ var e3, t3;
2051
2044
  try {
2052
- null === (i3 = null === (e3 = this.iframe) || void 0 === e3 ? void 0 : e3.contentDocument) || void 0 === i3 || i3.execCommand("print", true);
2045
+ null === (t3 = null === (e3 = this.iframe) || void 0 === e3 ? void 0 : e3.contentDocument) || void 0 === t3 || t3.execCommand("print", true);
2053
2046
  } finally {
2054
- t2 && (window.URL || window.webkitURL).revokeObjectURL(t2);
2047
+ i2 && URL.revokeObjectURL(i2);
2055
2048
  }
2056
- }), function(e3) {
2057
- let t3 = window.location, i3 = document.createElement("a");
2058
- return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
2059
- }(e2) && J())
2060
- return this.iframe.src = e2, void document.body.appendChild(this.iframe);
2061
- let i2 = new XMLHttpRequest(), n2 = this;
2062
- i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
2063
- if (200 === this.status) {
2064
- let e3 = new Blob([this.response], { type: "application/pdf" });
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)));
2049
+ });
2050
+ let n2 = new XMLHttpRequest();
2051
+ n2.open("GET", e2, true), n2.responseType = "arraybuffer", n2.onload = () => {
2052
+ 200 === n2.status ? (i2 = URL.createObjectURL(new Blob([n2.response], { type: "application/pdf" })), null != this.iframe && (this.iframe.src = i2, document.body.appendChild(this.iframe))) : console.log("Could not retrieve remote PDF document.");
2053
+ }, n2.send();
2054
+ }
2055
+ printViaDownload(e2, t2) {
2056
+ let i2 = new XMLHttpRequest();
2057
+ i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = () => {
2058
+ if (200 === i2.status) {
2059
+ let e3 = URL.createObjectURL(new Blob([i2.response], { type: "application/pdf" })), n2 = document.createElement("a");
2060
+ n2.href = e3, n2.download = `${t2}.pdf`, n2.click(), URL.revokeObjectURL(e3);
2066
2061
  } else
2067
- console.log("Could not retrieve remote PDF document.");
2062
+ console.log("Could not retrieve PDF document for printing.");
2068
2063
  }, i2.send();
2069
2064
  }
2070
2065
  printMobile(e2) {
2071
2066
  window.open(e2, "_self");
2072
2067
  }
2073
- print(e2) {
2074
- this.isMobile ? this.printMobile(e2) : this.printDesktop(e2);
2068
+ print(e2, t2) {
2069
+ this.isMobile ? this.printMobile(e2) : this.printDesktop(e2, t2);
2075
2070
  }
2076
2071
  getDirectPrintState() {
2077
2072
  return this.hasPdfPlugin;
2078
2073
  }
2079
2074
  }
2080
- function K(e2) {
2075
+ function J(e2) {
2081
2076
  return 1e3 * e2;
2082
2077
  }
2083
- class X {
2078
+ class K {
2084
2079
  constructor(e2, t2, i2) {
2085
2080
  if (this.pingMilliseconds = 0, !e2)
2086
2081
  throw "Error";
@@ -2089,7 +2084,7 @@ var telerikReportViewer = (function (exports) {
2089
2084
  initSessionTimeout(e2) {
2090
2085
  if (!isFinite(e2))
2091
2086
  throw "sessionTimeoutSeconds must be finite";
2092
- this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
2087
+ this.pingMilliseconds = e2 <= 120 ? J(e2) / 2 : J(e2 - 60);
2093
2088
  }
2094
2089
  start() {
2095
2090
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -2100,33 +2095,33 @@ var telerikReportViewer = (function (exports) {
2100
2095
  this.interval && (clearInterval(this.interval), this.interval = null);
2101
2096
  }
2102
2097
  }
2103
- var Y, Q, ee, te, ie;
2104
- function ne(e2, t2 = "", i2 = "") {
2098
+ var X, Y, Q, ee, te;
2099
+ function ie(e2, t2 = "", i2 = "") {
2105
2100
  let n2 = document.createElement(e2);
2106
- return t2 && (n2.id = t2), re(n2, i2), n2;
2101
+ return t2 && (n2.id = t2), ne(n2, i2), n2;
2107
2102
  }
2108
- function re(e2, t2) {
2103
+ function ne(e2, t2) {
2109
2104
  if ("" === t2 || !e2)
2110
2105
  return;
2111
2106
  let i2 = t2.trim().split(" ");
2112
2107
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
2113
2108
  }
2114
- function se(e2, t2) {
2109
+ function re(e2, t2) {
2115
2110
  if ("" === t2 || !e2)
2116
2111
  return;
2117
2112
  let i2 = t2.trim().split(" ");
2118
2113
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
2119
2114
  }
2120
- function oe(e2, t2) {
2115
+ function se(e2, t2) {
2121
2116
  return e2.classList.contains(t2);
2122
2117
  }
2123
- function ae(e2) {
2118
+ function oe(e2) {
2124
2119
  return e2.offsetParent;
2125
2120
  }
2126
- function le(e2) {
2121
+ function ae(e2) {
2127
2122
  return parseInt(e2, 10) || 0;
2128
2123
  }
2129
- function he(e2, t2, i2, n2 = 0, r2 = 0) {
2124
+ function le(e2, t2, i2, n2 = 0, r2 = 0) {
2130
2125
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
2131
2126
  !function(e3, t3) {
2132
2127
  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);
@@ -2134,11 +2129,11 @@ var telerikReportViewer = (function (exports) {
2134
2129
  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);
2135
2130
  }(e2, s2);
2136
2131
  }
2137
- function ce(e2) {
2138
- let t2 = ne("div");
2132
+ function he(e2) {
2133
+ let t2 = ie("div");
2139
2134
  return t2.textContent = e2, t2.innerHTML;
2140
2135
  }
2141
- function de(e2) {
2136
+ function ce(e2) {
2142
2137
  if (e2 && e2.length < 6) {
2143
2138
  let t3 = 1, i2 = e2.split("");
2144
2139
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -2148,16 +2143,16 @@ var telerikReportViewer = (function (exports) {
2148
2143
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
2149
2144
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
2150
2145
  }
2151
- function ue(e2) {
2146
+ function de(e2) {
2152
2147
  return !!e2 && e2.indexOf(",") > -1;
2153
2148
  }
2154
- function pe(e2) {
2149
+ function ue(e2) {
2155
2150
  if ("transparent" === e2.toLowerCase())
2156
2151
  return 0;
2157
- if (!ue(e2))
2152
+ if (!de(e2))
2158
2153
  return 1;
2159
2154
  if (-1 !== e2.indexOf("#")) {
2160
- let t3 = de(e2);
2155
+ let t3 = ce(e2);
2161
2156
  if (null === t3)
2162
2157
  return 1;
2163
2158
  e2 = t3;
@@ -2167,34 +2162,30 @@ var telerikReportViewer = (function (exports) {
2167
2162
  });
2168
2163
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
2169
2164
  }
2170
- function ge(e2, t2) {
2171
- let i2 = ne("div");
2165
+ function pe(e2, t2) {
2166
+ let i2 = ie("div");
2172
2167
  for (i2.innerHTML = t2; i2.childNodes.length; )
2173
2168
  e2.appendChild(i2.childNodes[0]);
2174
2169
  }
2175
- function fe(e2, t2) {
2176
- let i2 = ne("div");
2170
+ function ge(e2, t2) {
2171
+ let i2 = ie("div");
2177
2172
  for (i2.innerHTML = t2; i2.childNodes.length; )
2178
2173
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
2179
2174
  }
2180
- function me(e2, t2) {
2175
+ function fe(e2, t2) {
2181
2176
  return e2 ? e2.querySelector(t2) : null;
2182
2177
  }
2183
- function ve(e2, t2) {
2184
- var i2;
2185
- return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
2186
- }
2187
- function Pe(e2) {
2178
+ function me(e2) {
2188
2179
  let t2 = e2.parentElement;
2189
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : Pe(t2) : null;
2180
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : me(t2) : null;
2190
2181
  }
2191
- function Ce(e2, t2 = 300) {
2182
+ function ve(e2, t2 = 300) {
2192
2183
  let i2;
2193
2184
  return function(...n2) {
2194
2185
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
2195
2186
  };
2196
2187
  }
2197
- function ye(e2, t2) {
2188
+ function Pe(e2, t2) {
2198
2189
  let i2 = null;
2199
2190
  return function(n2, ...r2) {
2200
2191
  i2 || (i2 = setTimeout(function() {
@@ -2202,24 +2193,24 @@ var telerikReportViewer = (function (exports) {
2202
2193
  }, t2));
2203
2194
  };
2204
2195
  }
2205
- function Se(e2, t2) {
2196
+ function Ce(e2, t2) {
2206
2197
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
2207
2198
  }
2208
- function Ie(e2) {
2209
- return Se(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2199
+ function ye(e2) {
2200
+ return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2210
2201
  }
2211
- function be(e2) {
2212
- return Se(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2202
+ function Se(e2) {
2203
+ return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2213
2204
  }
2214
- function we(e2) {
2205
+ function Ie(e2) {
2215
2206
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2216
2207
  }
2217
- function Le(e2, ...t2) {
2208
+ function be(e2, ...t2) {
2218
2209
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2219
2210
  }
2220
- function Te(e2, t2) {
2211
+ function we(e2, t2) {
2221
2212
  let i2, n2;
2222
- if (Ae(e2))
2213
+ if (Le(e2))
2223
2214
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2224
2215
  ;
2225
2216
  else
@@ -2228,30 +2219,30 @@ var telerikReportViewer = (function (exports) {
2228
2219
  break;
2229
2220
  return e2;
2230
2221
  }
2231
- function Ae(e2) {
2222
+ function Le(e2) {
2232
2223
  if (Array.isArray(e2))
2233
2224
  return true;
2234
2225
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2235
2226
  }
2236
- function Re(e2) {
2227
+ function Te(e2) {
2237
2228
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2238
2229
  }
2239
- function Ee(e2) {
2230
+ function Re(e2) {
2240
2231
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2241
2232
  }
2242
- function Me(e2) {
2233
+ function Ae(e2) {
2243
2234
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2244
2235
  }
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() {
2236
+ e.PageMode = void 0, (X = e.PageMode || (e.PageMode = {}))[X.ContinuousScroll = 0] = "ContinuousScroll", X[X.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Y = e.PrintMode || (e.PrintMode = {}))[Y.AutoSelect = 0] = "AutoSelect", Y[Y.ForcePDFPlugin = 1] = "ForcePDFPlugin", Y[Y.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Q = e.ScaleMode || (e.ScaleMode = {}))[Q.FitPageWidth = 0] = "FitPageWidth", Q[Q.FitPage = 1] = "FitPage", Q[Q.Specific = 2] = "Specific", e.ServiceType = void 0, (ee = e.ServiceType || (e.ServiceType = {}))[ee.REST = 0] = "REST", ee[ee.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (te = e.ViewMode || (e.ViewMode = {}))[te.Interactive = 0] = "Interactive", te[te.PrintPreview = 1] = "PrintPreview";
2237
+ const Ee = "System.Int64", Me = "System.Double", ke = "System.String", xe = "System.DateTime", Ne = "System.Boolean";
2238
+ var De = function() {
2248
2239
  var e2 = {};
2249
2240
  function t2(e3, t3, i3, n2) {
2250
2241
  var r2 = [].concat(t3).map(function(t4) {
2251
2242
  return function(e4, t5, i4) {
2252
2243
  if (e4.availableValues) {
2253
2244
  var n3 = false;
2254
- if (Te(e4.availableValues, function(e5, r3) {
2245
+ if (we(e4.availableValues, function(e5, r3) {
2255
2246
  return !(n3 = i4(t5, r3.value));
2256
2247
  }), !n3) {
2257
2248
  if (e4.allowNull && !t5)
@@ -2275,7 +2266,7 @@ var telerikReportViewer = (function (exports) {
2275
2266
  function i2(e3, t3) {
2276
2267
  return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
2277
2268
  }
2278
- return e2[Ne] = { validate: function(e3, i3) {
2269
+ return e2[ke] = { validate: function(e3, i3) {
2279
2270
  return t2(e3, i3, function(t3) {
2280
2271
  if (!t3) {
2281
2272
  if (e3.allowNull)
@@ -2288,9 +2279,9 @@ var telerikReportViewer = (function (exports) {
2288
2279
  }, function(e4, t3) {
2289
2280
  return e4 == t3;
2290
2281
  });
2291
- } }, e2[xe] = { validate: function(e3, n2) {
2282
+ } }, e2[Me] = { validate: function(e3, n2) {
2292
2283
  return t2(e3, n2, function(t3) {
2293
- var n3 = Ee(t3);
2284
+ var n3 = Re(t3);
2294
2285
  if (isNaN(n3)) {
2295
2286
  if (i2(e3, t3))
2296
2287
  return null;
@@ -2298,11 +2289,11 @@ var telerikReportViewer = (function (exports) {
2298
2289
  }
2299
2290
  return n3;
2300
2291
  }, function(e4, t3) {
2301
- return Ee(e4) == Ee(t3);
2292
+ return Re(e4) == Re(t3);
2302
2293
  });
2303
- } }, e2[ke] = { validate: function(e3, n2) {
2294
+ } }, e2[Ee] = { validate: function(e3, n2) {
2304
2295
  return t2(e3, n2, function(t3) {
2305
- var n3 = Re(t3);
2296
+ var n3 = Te(t3);
2306
2297
  if (isNaN(n3)) {
2307
2298
  if (i2(e3, t3))
2308
2299
  return null;
@@ -2310,19 +2301,19 @@ var telerikReportViewer = (function (exports) {
2310
2301
  }
2311
2302
  return n3;
2312
2303
  }, function(e4, t3) {
2313
- return Re(e4) == Ee(t3);
2304
+ return Te(e4) == Re(t3);
2314
2305
  });
2315
- } }, e2[De] = { validate: function(e3, i3) {
2306
+ } }, e2[xe] = { validate: function(e3, i3) {
2316
2307
  return t2(e3, i3, function(t3) {
2317
2308
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2318
2309
  return null;
2319
2310
  if (!isNaN(Date.parse(t3)))
2320
- return e3.availableValues ? t3 : Me(t3);
2311
+ return e3.availableValues ? t3 : Ae(t3);
2321
2312
  throw "Please input a valid date.";
2322
2313
  }, function(e4, t3) {
2323
- return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2314
+ return e4 = Ae(e4), t3 = Ae(t3), e4.getTime() == t3.getTime();
2324
2315
  });
2325
- } }, e2[Fe] = { validate: function(e3, n2) {
2316
+ } }, e2[Ne] = { validate: function(e3, n2) {
2326
2317
  return t2(e3, n2, function(t3) {
2327
2318
  if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
2328
2319
  return Boolean(t3);
@@ -2335,11 +2326,11 @@ var telerikReportViewer = (function (exports) {
2335
2326
  } }, { validate: function(t3, i3) {
2336
2327
  var n2 = e2[t3.type];
2337
2328
  if (!n2)
2338
- throw Le("Cannot validate parameter of type {type}.", t3);
2329
+ throw be("Cannot validate parameter of type {type}.", t3);
2339
2330
  return n2.validate(t3, i3);
2340
2331
  } };
2341
2332
  }();
2342
- function Oe(e2, t2, i2) {
2333
+ function Ve(e2, t2, i2) {
2343
2334
  try {
2344
2335
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2345
2336
  if (!n2) {
@@ -2352,18 +2343,18 @@ var telerikReportViewer = (function (exports) {
2352
2343
  return;
2353
2344
  }
2354
2345
  }
2355
- function ze(e2, t2, i2) {
2346
+ function Fe(e2, t2, i2) {
2356
2347
  const n2 = [];
2357
2348
  for (let r2 in t2)
2358
- n2.push(Oe(e2, t2[r2], i2));
2349
+ n2.push(Ve(e2, t2[r2], i2));
2359
2350
  return n2;
2360
2351
  }
2361
- class _e {
2352
+ class Oe {
2362
2353
  constructor(e2 = "", t2 = {}) {
2363
2354
  this.report = e2, this.parameters = t2;
2364
2355
  }
2365
2356
  }
2366
- class He extends B {
2357
+ class ze extends q {
2367
2358
  constructor(e2) {
2368
2359
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2369
2360
  }
@@ -2371,7 +2362,7 @@ var telerikReportViewer = (function (exports) {
2371
2362
  this.destroyResizeObserver();
2372
2363
  }
2373
2364
  initResizeObserver() {
2374
- this.debounceResize = Ce(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2365
+ this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2375
2366
  }
2376
2367
  destroyResizeObserver() {
2377
2368
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2380,8 +2371,8 @@ var telerikReportViewer = (function (exports) {
2380
2371
  e2[0].target === this.element && this.emit("resize");
2381
2372
  }
2382
2373
  }
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 {
2374
+ const _e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" data-page="{0}"><div class="trv-skeleton-wrapper"></div></div>';
2375
+ class He {
2385
2376
  constructor(t2, i2, n2) {
2386
2377
  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));
2387
2378
  }
@@ -2403,10 +2394,10 @@ var telerikReportViewer = (function (exports) {
2403
2394
  return this.enabled;
2404
2395
  }
2405
2396
  enable() {
2406
- this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
2397
+ this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
2407
2398
  }
2408
2399
  disable() {
2409
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, se(this.placeholder, "scrollable"), this.unbind());
2400
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
2410
2401
  }
2411
2402
  renderPage(e2) {
2412
2403
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2421,7 +2412,7 @@ var telerikReportViewer = (function (exports) {
2421
2412
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2422
2413
  }
2423
2414
  setCurrentPage(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);
2415
+ e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (re(this.findElement(".k-state-default"), "k-state-default"), ne(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2425
2416
  }
2426
2417
  updatePageArea(e2) {
2427
2418
  var t2;
@@ -2446,18 +2437,18 @@ var telerikReportViewer = (function (exports) {
2446
2437
  return this.controller.getCurrentPageNumber();
2447
2438
  }
2448
2439
  isSkeletonScreen(e2, t2) {
2449
- return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
2440
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
2450
2441
  }
2451
2442
  addSkeletonScreen(e2, t2) {
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);
2443
+ let i2 = be(_e, e2);
2444
+ t2 ? ge(this.pageWrapper, i2) : pe(this.pageWrapper, i2);
2454
2445
  }
2455
2446
  generateSkeletonScreens(e2) {
2456
2447
  var t2;
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;
2458
- for (; a2 < e2; a2++)
2459
- i2 += Le(Ue, a2, r2, s2);
2460
- ge(this.pageWrapper, i2);
2448
+ let i2 = "", n2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, r2 = n2 ? parseInt(n2) + 1 : 1;
2449
+ for (; r2 < e2; r2++)
2450
+ i2 += be(_e, r2);
2451
+ pe(this.pageWrapper, i2);
2461
2452
  }
2462
2453
  loadMorePages() {
2463
2454
  var e2;
@@ -2508,10 +2499,10 @@ var telerikReportViewer = (function (exports) {
2508
2499
  }
2509
2500
  }
2510
2501
  initEvents() {
2511
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Ce(() => {
2502
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
2512
2503
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2513
2504
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2514
- }, 250), this.throttleScroll = ye(() => {
2505
+ }, 250), this.throttleScroll = Pe(() => {
2515
2506
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2516
2507
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2517
2508
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2606,7 +2597,7 @@ var telerikReportViewer = (function (exports) {
2606
2597
  return i2 && i2.length ? i2[i2.length - 1] : null;
2607
2598
  }
2608
2599
  }
2609
- class Be {
2600
+ class Ue {
2610
2601
  constructor() {
2611
2602
  this.scaleFactor = 0, this.placeholder = null, this.scrollableContainer = null, this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.freezeMaxZIndex = {}, this.freezeBGColor = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} }, this.zIndex = 1;
2612
2603
  }
@@ -2614,7 +2605,7 @@ var telerikReportViewer = (function (exports) {
2614
2605
  this.reset(e2), this.attachToScrollEvent();
2615
2606
  }
2616
2607
  reset(e2) {
2617
- this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2608
+ this.placeholder = e2, this.scrollableContainer = fe(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2618
2609
  }
2619
2610
  setScaleFactor(e2) {
2620
2611
  this.scaleFactor = e2;
@@ -2637,7 +2628,7 @@ var telerikReportViewer = (function (exports) {
2637
2628
  saveFreezeItemsInitialState(e2) {
2638
2629
  var t2, i2, n2;
2639
2630
  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;
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) => {
2631
+ this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = fe(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2641
2632
  var i3;
2642
2633
  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;
2643
2634
  switch (n3) {
@@ -2659,7 +2650,7 @@ var telerikReportViewer = (function (exports) {
2659
2650
  }
2660
2651
  updateFreezeItemsOnScroll(e2, t2, i2) {
2661
2652
  var n2, r2;
2662
- let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2653
+ let s2 = fe(this.placeholder, "div[data-id='" + e2 + "']");
2663
2654
  if (!s2)
2664
2655
  return;
2665
2656
  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 + "']");
@@ -2684,7 +2675,7 @@ var telerikReportViewer = (function (exports) {
2684
2675
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2685
2676
  }
2686
2677
  hasSetBgColor(e2) {
2687
- return pe(e2) > 0;
2678
+ return ue(e2) > 0;
2688
2679
  }
2689
2680
  isFrozen(e2) {
2690
2681
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2704,21 +2695,21 @@ var telerikReportViewer = (function (exports) {
2704
2695
  return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
2705
2696
  }
2706
2697
  }
2707
- const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
2708
- function Ze(e2, t2) {
2698
+ const $e = /{(\w+?)}/g, Be = "trv-initial-image-styles";
2699
+ function qe(e2, t2) {
2709
2700
  let i2 = Array.isArray(t2);
2710
- return e2 ? e2.replace(qe, function(e3, n2) {
2701
+ return e2 ? e2.replace($e, function(e3, n2) {
2711
2702
  return t2[i2 ? parseInt(n2) : n2];
2712
2703
  }) : "";
2713
2704
  }
2714
- const je = "trv-search-dialog-shaded-result", Je = "trv-search-dialog-highlighted-result";
2715
- e.BasicAuth = S, e.BookmarkNode = class {
2705
+ const We = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
2706
+ e.BasicAuth = w, e.BookmarkNode = class {
2716
2707
  constructor() {
2717
2708
  this.id = "", this.text = "", this.page = 0, this.items = null;
2718
2709
  }
2719
- }, e.ConnectionConfig = L, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
2710
+ }, e.ConnectionConfig = T, e.ConnectionConfigNoAuth = R, e.ConnectionConfigServerCredentials = E, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = M, e.ContentArea = class {
2720
2711
  constructor(e2, t2, i2, n2 = {}) {
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 || "";
2712
+ 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 ze(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("printDocumentReady", this.onPrintDocumentReady.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 || "";
2722
2713
  }
2723
2714
  destroy() {
2724
2715
  this.resizeService && this.resizeService.destroy();
@@ -2745,10 +2736,10 @@ var telerikReportViewer = (function (exports) {
2745
2736
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2746
2737
  }
2747
2738
  onReportLoadProgress(e2) {
2748
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2739
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(qe(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2749
2740
  }
2750
2741
  onReportLoadComplete(t2) {
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));
2742
+ 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(qe(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 Ue(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2752
2743
  }
2753
2744
  onReportAutoRunOff() {
2754
2745
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2785,15 +2776,9 @@ var telerikReportViewer = (function (exports) {
2785
2776
  let t2 = this.controller.getScaleMode();
2786
2777
  return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
2787
2778
  }
2788
- onPrintStarted(e2) {
2789
- e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
2790
- }
2791
2779
  onPrintDocumentReady() {
2792
2780
  this.hideNotification();
2793
2781
  }
2794
- onExportStarted(e2) {
2795
- e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
2796
- }
2797
2782
  onExportDocumentReady() {
2798
2783
  this.hideNotification();
2799
2784
  }
@@ -2845,14 +2830,14 @@ var telerikReportViewer = (function (exports) {
2845
2830
  }
2846
2831
  let e3 = 0, i3 = 0;
2847
2832
  for (; n2 && n2 !== this.pageContainer; ) {
2848
- if (oe(n2, "trv-page-wrapper")) {
2833
+ if (se(n2, "trv-page-wrapper")) {
2849
2834
  let t3 = n2.dataset.pageScale;
2850
2835
  if ("string" == typeof t3) {
2851
2836
  let n3 = parseFloat(t3);
2852
2837
  e3 *= n3, i3 *= n3;
2853
2838
  }
2854
2839
  }
2855
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
2840
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
2856
2841
  }
2857
2842
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2858
2843
  } else
@@ -2866,7 +2851,7 @@ var telerikReportViewer = (function (exports) {
2866
2851
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2867
2852
  }
2868
2853
  disablePagesArea(e2) {
2869
- e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
2854
+ e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
2870
2855
  }
2871
2856
  disableParametersArea(e2) {
2872
2857
  var t2, i2;
@@ -2877,13 +2862,13 @@ var telerikReportViewer = (function (exports) {
2877
2862
  }
2878
2863
  showNotification(e2 = "", t2 = "info") {
2879
2864
  let i2 = this.notification.dataset.type;
2880
- i2 && se(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2865
+ i2 && re(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2881
2866
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2882
- n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", re(this.notification, `k-notification-${t2}`), se(this.notification, "k-hidden");
2867
+ n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
2883
2868
  }
2884
2869
  hideNotification() {
2885
2870
  let e2 = String(this.notification.dataset.type);
2886
- delete this.notification.dataset.type, se(this.notification, `k-notification-${e2}`), re(this.notification, "k-hidden");
2871
+ delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
2887
2872
  }
2888
2873
  pageNo(e2) {
2889
2874
  var t2;
@@ -2906,7 +2891,7 @@ var telerikReportViewer = (function (exports) {
2906
2891
  r2 = JSON.parse(n2.dataset.box);
2907
2892
  else {
2908
2893
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
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);
2894
+ r2 = { padLeft: ae(i3.marginLeft) + ae(e2.borderLeftWidth) + ae(e2.paddingLeft), padRight: ae(i3.marginRight) + ae(e2.borderRightWidth) + ae(e2.paddingRight), padTop: ae(i3.marginTop) + ae(e2.borderTopWidth) + ae(e2.paddingTop), padBottom: ae(i3.marginBottom) + ae(e2.borderBottomWidth) + ae(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2910
2895
  }
2911
2896
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2912
2897
  if (0 === a2) {
@@ -2915,7 +2900,7 @@ var telerikReportViewer = (function (exports) {
2915
2900
  }
2916
2901
  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;
2917
2902
  let p2 = this.controller.getScale();
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);
2903
+ 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 || le(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2919
2904
  }
2920
2905
  enableInteractivity() {
2921
2906
  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);
@@ -2938,24 +2923,24 @@ var telerikReportViewer = (function (exports) {
2938
2923
  onInteractiveItemClick(e2, t2) {
2939
2924
  var i2;
2940
2925
  let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
2941
- r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new s(e2, r2))), t2.stopPropagation();
2926
+ r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
2942
2927
  }
2943
2928
  onInteractiveItemEnter(e2) {
2944
2929
  var t2;
2945
2930
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2946
- n2 && this.controller.reportActionEnter(new s(e2, n2));
2931
+ n2 && this.controller.reportActionEnter(new l(e2, n2));
2947
2932
  }
2948
2933
  onInteractiveItemLeave(e2) {
2949
2934
  var t2;
2950
2935
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2951
- n2 && this.controller.reportActionLeave(new s(e2, n2));
2936
+ n2 && this.controller.reportActionLeave(new l(e2, n2));
2952
2937
  }
2953
2938
  onToolTipItemEnter(e2, t2) {
2954
2939
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2955
- (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2940
+ (i2 || n2) && this.controller.reportTooltipOpening(new P(e2, n2 || "", i2 || "", t2));
2956
2941
  }
2957
2942
  onToolTipItemLeave(e2) {
2958
- this.controller.reportTooltipClosing(new f(e2, "", "", null));
2943
+ this.controller.reportTooltipClosing(new P(e2, "", "", null));
2959
2944
  }
2960
2945
  getNavigateToPageOnDocReady(e2, t2) {
2961
2946
  var i2;
@@ -2973,8 +2958,8 @@ var telerikReportViewer = (function (exports) {
2973
2958
  var t2;
2974
2959
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2975
2960
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2976
- let n2 = ne("style", i2);
2977
- n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2961
+ let n2 = ie("style", i2);
2962
+ this.applyNonce(n2), n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2978
2963
  }
2979
2964
  setPageContent(e2) {
2980
2965
  this.actions = e2.pageActions, this.updatePageStyle(e2);
@@ -2985,26 +2970,30 @@ var telerikReportViewer = (function (exports) {
2985
2970
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2986
2971
  }
2987
2972
  renderPageElement(e2) {
2988
- let t2 = ne("div");
2973
+ let t2 = ie("div");
2989
2974
  t2.innerHTML = e2.pageContent;
2990
2975
  let i2 = t2.querySelector("div.sheet");
2991
2976
  i2.style.margin = "0";
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;
2977
+ let n2 = ie("div", "", "trv-report-page");
2978
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2994
2979
  }
2995
2980
  applyPlaceholderViewModeClass() {
2996
- this.controller.getViewMode() === e.ViewMode.Interactive ? (se(this.placeholder, "printpreview"), re(this.placeholder, "interactive")) : (se(this.placeholder, "interactive"), re(this.placeholder, "printpreview"));
2981
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
2982
+ }
2983
+ applyNonce(e2) {
2984
+ const t2 = this.controller.getNonce();
2985
+ t2 && e2.setAttribute("nonce", t2);
2997
2986
  }
2998
2987
  setPageAreaImage() {
2999
2988
  this.clearPageAreaImage();
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;
2989
+ let e2 = ie("style", Be);
2990
+ this.applyNonce(e2), e2.innerHTML = qe('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
3002
2991
  }
3003
2992
  clearPageAreaImage() {
3004
2993
  var e2;
3005
- null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
2994
+ null === (e2 = document.getElementById(Be)) || void 0 === e2 || e2.remove();
3006
2995
  }
3007
- }, e.CurrentPageChangedEventArgs = g, e.DeviceInfo = n, e.DocumentInfo = class {
2996
+ }, e.CurrentPageChangedEventArgs = v, e.DeviceInfo = o, e.DocumentInfo = class {
3008
2997
  constructor() {
3009
2998
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
3010
2999
  }
@@ -3012,27 +3001,27 @@ var telerikReportViewer = (function (exports) {
3012
3001
  constructor() {
3013
3002
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
3014
3003
  }
3015
- }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = X, e.NoAuth = y, e.PageAction = class {
3004
+ }, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = b, e.PageAction = class {
3016
3005
  constructor() {
3017
3006
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
3018
3007
  }
3019
- }, e.PageActionEventArgs = s, e.PageInfo = class {
3008
+ }, e.PageActionEventArgs = l, e.PageInfo = class {
3020
3009
  constructor() {
3021
3010
  this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
3022
3011
  }
3023
- }, e.PageTargetElement = o, e.ParameterInfo = class {
3012
+ }, e.PageTargetElement = h, e.ParameterInfo = class {
3024
3013
  constructor() {
3025
3014
  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 = "";
3026
3015
  }
3027
- }, e.ParameterValidators = Ve, e.ParameterValue = class {
3016
+ }, e.ParameterValidators = De, e.ParameterValue = class {
3028
3017
  constructor() {
3029
3018
  this.name = "", this.value = null;
3030
3019
  }
3031
- }, e.PersonalTokenAuth = I, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
3020
+ }, e.PersonalTokenAuth = L, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
3032
3021
  constructor() {
3033
3022
  this.name = "", this.localizedName = "";
3034
3023
  }
3035
- }, e.ReportController = class extends B {
3024
+ }, e.ReportController = class extends q {
3036
3025
  constructor(e2, t2) {
3037
3026
  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);
3038
3027
  }
@@ -3049,6 +3038,9 @@ var telerikReportViewer = (function (exports) {
3049
3038
  setAuthenticationToken(e2) {
3050
3039
  this.serviceClient.setAccessToken(e2);
3051
3040
  }
3041
+ getNonce() {
3042
+ return this.options.nonce;
3043
+ }
3052
3044
  init() {
3053
3045
  this.refreshReport(true, "");
3054
3046
  }
@@ -3078,7 +3070,7 @@ var telerikReportViewer = (function (exports) {
3078
3070
  let t2 = {}, i2 = [], n2 = false;
3079
3071
  for (let r2 of e2)
3080
3072
  try {
3081
- let e3 = Ve.validate(r2, r2.value);
3073
+ let e3 = De.validate(r2, r2.value);
3082
3074
  t2[r2.id] = e3;
3083
3075
  } catch (e3) {
3084
3076
  n2 = true, i2.push(r2);
@@ -3101,7 +3093,7 @@ var telerikReportViewer = (function (exports) {
3101
3093
  hasInvalidParameter(e2) {
3102
3094
  for (const t2 of e2)
3103
3095
  try {
3104
- Ve.validate(t2, t2.value);
3096
+ De.validate(t2, t2.value);
3105
3097
  } catch (e3) {
3106
3098
  return true;
3107
3099
  }
@@ -3133,7 +3125,7 @@ var telerikReportViewer = (function (exports) {
3133
3125
  }
3134
3126
  getReportSource() {
3135
3127
  var e2;
3136
- return new _e(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
3128
+ return new Oe(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
3137
3129
  }
3138
3130
  setReportSource(e2) {
3139
3131
  this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
@@ -3178,7 +3170,7 @@ var telerikReportViewer = (function (exports) {
3178
3170
  return this.currentPageNumber;
3179
3171
  }
3180
3172
  setCurrentPageNumber(e2) {
3181
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new g(e2, this.documentId)));
3173
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new v(e2, this.documentId)));
3182
3174
  }
3183
3175
  getPageCount() {
3184
3176
  return this.pageCount;
@@ -3188,7 +3180,7 @@ var telerikReportViewer = (function (exports) {
3188
3180
  }
3189
3181
  executeReportAction(e2) {
3190
3182
  let t2 = e2.action;
3191
- window.setTimeout(() => i(this, void 0, void 0, function* () {
3183
+ window.setTimeout(() => s(this, void 0, void 0, function* () {
3192
3184
  try {
3193
3185
  yield this.emitAsync("interactiveActionExecuting", e2), this.emit("interactiveActionExecuting", e2);
3194
3186
  } catch (e3) {
@@ -3198,9 +3190,9 @@ var telerikReportViewer = (function (exports) {
3198
3190
  if ("navigateToReport" === t2.Type) {
3199
3191
  this.emit("serverActionStarted");
3200
3192
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
3201
- this.respectAutoRun = true, this.emit("navigateToReport", new _e(e3.Report, i2));
3193
+ this.respectAutoRun = true, this.emit("navigateToReport", new Oe(e3.Report, i2));
3202
3194
  } else if ("navigateToBookmark" === t2.Type) {
3203
- let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new o(t2.Value, "bookmark");
3195
+ let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
3204
3196
  this.navigateToPage(e3, i2);
3205
3197
  } else if ("sorting" === t2.Type)
3206
3198
  this.execServerAction(t2.Id);
@@ -3220,7 +3212,7 @@ var telerikReportViewer = (function (exports) {
3220
3212
  this.emit("interactiveActionLeave", e2);
3221
3213
  }
3222
3214
  reportTooltipOpening(e2) {
3223
- return i(this, void 0, void 0, function* () {
3215
+ return s(this, void 0, void 0, function* () {
3224
3216
  try {
3225
3217
  yield this.emitAsync("toolTipOpening", e2), this.emit("toolTipOpening", e2);
3226
3218
  } catch (e3) {
@@ -3232,41 +3224,41 @@ var telerikReportViewer = (function (exports) {
3232
3224
  this.emit("toolTipClosing", e2);
3233
3225
  }
3234
3226
  printReport() {
3235
- return i(this, void 0, void 0, function* () {
3227
+ return s(this, void 0, void 0, function* () {
3236
3228
  let e2 = this.createDeviceInfo();
3237
3229
  e2.ImmediatePrint = true;
3238
- let t2 = new c(e2);
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* () {
3230
+ let t2 = new p(e2);
3231
+ yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.showNotification(this.options.messages.ReportViewer_PreparingPrint), this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => s(this, void 0, void 0, function* () {
3240
3232
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3241
3233
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3242
- let i2 = new d(t3);
3243
- yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3234
+ let i2 = new g(t3);
3235
+ yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3, this.getReportFileName());
3244
3236
  })));
3245
3237
  });
3246
3238
  }
3247
3239
  exportReport(e2) {
3248
- return i(this, void 0, void 0, function* () {
3249
- let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
3250
- if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
3251
- let t3 = new l(n2.deviceInfo, n2.format);
3240
+ return s(this, void 0, void 0, function* () {
3241
+ let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
3242
+ if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
3243
+ let t3 = new d(i2.deviceInfo, i2.format);
3252
3244
  if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled)
3253
3245
  return;
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);
3256
- i2 += "?response-content-disposition=attachment";
3257
- let n3 = new h(i2, e2, "_self");
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);
3246
+ this.showNotification(this.options.messages.ReportViewer_PreparingDownload), this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => s(this, void 0, void 0, function* () {
3247
+ let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
3248
+ i3 += "?response-content-disposition=attachment";
3249
+ let n2 = new u(i3, e2, "_self");
3250
+ yield this.emitAsync("exportEnd", n2), yield this.emitAsync("exportDocumentReady", n2), this.emit("exportDocumentReady", n2), this.setUIState("ExportInProgress", false), n2.handled || window.open(i3, n2.windowOpenTarget);
3259
3251
  }));
3260
3252
  }
3261
3253
  });
3262
3254
  }
3263
3255
  sendReport(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);
3256
+ return s(this, void 0, void 0, function* () {
3257
+ let t2 = this.createDeviceInfo(), i2 = new f(t2, e2.format);
3258
+ yield this.emitAsync("sendEmailStarted", i2), this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
3259
+ let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3260
+ n2 += "?response-content-disposition=attachment";
3261
+ let r2 = new m(e2, i2.deviceInfo, n2);
3270
3262
  yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
3271
3263
  }));
3272
3264
  });
@@ -3276,9 +3268,9 @@ var telerikReportViewer = (function (exports) {
3276
3268
  }
3277
3269
  createAIThread() {
3278
3270
  return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
3279
- if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = t.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3280
- for (let i2 = 0; i2 < e2.predefinedPrompts.length; i2++)
3281
- e2.predefinedPrompts[i2] = t.sanitize(e2.predefinedPrompts[i2], { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3271
+ if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = r.default.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3272
+ for (let t2 = 0; t2 < e2.predefinedPrompts.length; t2++)
3273
+ e2.predefinedPrompts[t2] = r.default.sanitize(e2.predefinedPrompts[t2], { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3282
3274
  return e2;
3283
3275
  });
3284
3276
  }
@@ -3286,13 +3278,13 @@ var telerikReportViewer = (function (exports) {
3286
3278
  return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
3287
3279
  }
3288
3280
  exportAsync(e2, t2) {
3289
- return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => i(this, void 0, void 0, function* () {
3281
+ return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => s(this, void 0, void 0, function* () {
3290
3282
  return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
3291
3283
  }));
3292
3284
  }
3293
3285
  sendDocumentAsync(e2, t2) {
3294
3286
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3295
- this.handleRequestError(e3, Le(this.options.messages.ReportViewer_ErrorSendingDocument, ce(this.getReport())));
3287
+ this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
3296
3288
  });
3297
3289
  }
3298
3290
  loadParameters(e2 = void 0) {
@@ -3305,7 +3297,7 @@ var telerikReportViewer = (function (exports) {
3305
3297
  }
3306
3298
  initializeAndStartSentinel() {
3307
3299
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3308
- this.keepClientAliveSentinel = new X(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3300
+ this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3309
3301
  });
3310
3302
  }
3311
3303
  stopSentinel() {
@@ -3330,7 +3322,7 @@ var telerikReportViewer = (function (exports) {
3330
3322
  this.pageCount = 0, this.currentPageNumber = 0;
3331
3323
  }
3332
3324
  handleSearchRequestError(e2) {
3333
- if (!Se(e2, "System.ArgumentException"))
3325
+ if (!Ce(e2, "System.ArgumentException"))
3334
3326
  throw this.handleRequestError(e2, "", true), null;
3335
3327
  this.throwPromiseError(e2);
3336
3328
  }
@@ -3338,8 +3330,8 @@ var telerikReportViewer = (function (exports) {
3338
3330
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3339
3331
  }
3340
3332
  handleRequestError(e2, t2 = "", i2 = false) {
3341
- Ie(e2) && this.onClientExpired();
3342
- let n2 = we(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3333
+ ye(e2) && this.onClientExpired();
3334
+ let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3343
3335
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3344
3336
  }
3345
3337
  formatRequestError(e2, t2, i2) {
@@ -3347,14 +3339,14 @@ var telerikReportViewer = (function (exports) {
3347
3339
  if (n2) {
3348
3340
  if (401 == n2.status || 403 == n2.status)
3349
3341
  return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3350
- if (be(e2))
3342
+ if (Se(e2))
3351
3343
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3352
- r2 = ce(n2.message);
3353
- let t3 = ce(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3344
+ r2 = he(n2.message);
3345
+ let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3354
3346
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3355
3347
  } else
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;
3348
+ r2 = he(e2.responseText);
3349
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3358
3350
  }
3359
3351
  raiseError(e2, t2 = true) {
3360
3352
  this.emit("error", e2, t2);
@@ -3367,17 +3359,17 @@ var telerikReportViewer = (function (exports) {
3367
3359
  }
3368
3360
  initializeClient() {
3369
3361
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3370
- const t2 = Le(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3362
+ const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3371
3363
  this.handleRequestError(e2, t2);
3372
3364
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3373
3365
  }
3374
3366
  registerInstance() {
3375
3367
  return this.registerInstancePromise || (this.registerInstancePromise = this.serviceClient.createReportInstance(this.clientId, this.getReport(), this.parameterValues).then(this.setReportInstanceId.bind(this)).catch(this.clearReportInstanceId.bind(this))), this.registerInstancePromise;
3376
3368
  }
3377
- registerDocumentAsync(e2, t2, n2) {
3378
- return i(this, arguments, void 0, function* (e3, t3, i2, n3 = "", r2 = "") {
3379
- return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i2, n3, r2).catch((t4) => {
3380
- this.handleRequestError(t4, Le(this.options.messages.ReportViewer_ErrorCreatingReportDocument, ce(this.getReport()), ce(e3)));
3369
+ registerDocumentAsync(e2, t2, i2) {
3370
+ return s(this, arguments, void 0, function* (e3, t3, i3, n2 = "", r2 = "") {
3371
+ return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i3, n2, r2).catch((t4) => {
3372
+ this.handleRequestError(t4, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e3)));
3381
3373
  })) || "";
3382
3374
  });
3383
3375
  }
@@ -3394,12 +3386,17 @@ var telerikReportViewer = (function (exports) {
3394
3386
  return this.printManager.getDirectPrintState();
3395
3387
  }
3396
3388
  }
3389
+ getReportFileName() {
3390
+ var e2, t2, i2, n2;
3391
+ const r2 = (null !== (i2 = (null !== (t2 = null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report) && void 0 !== t2 ? t2 : "").split(",")[0].trim().split(/[/\\]/).pop()) && void 0 !== i2 ? i2 : "").replace(/\.(trdp|trdx|trl)$/i, "");
3392
+ return (r2.includes(".") && null !== (n2 = r2.split(".").pop()) && void 0 !== n2 ? n2 : r2) || "report";
3393
+ }
3397
3394
  createPreviewDeviceInfo() {
3398
3395
  let e2 = this.createDeviceInfo();
3399
3396
  return e2.ContentOnly = true, e2.UseSVG = true, e2;
3400
3397
  }
3401
3398
  createDeviceInfo() {
3402
- let e2 = new n();
3399
+ let e2 = new o();
3403
3400
  this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
3404
3401
  let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
3405
3402
  return e2.enableSearch = !i2 || t2, e2;
@@ -3415,7 +3412,7 @@ var telerikReportViewer = (function (exports) {
3415
3412
  const e2 = {}, t2 = this.getProcessedParameterValues();
3416
3413
  for (let i2 in t2) {
3417
3414
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3418
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Oe(n2, r2, i2) : e2[i2] = r2;
3415
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = Fe(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
3419
3416
  }
3420
3417
  return e2;
3421
3418
  }
@@ -3425,11 +3422,11 @@ var telerikReportViewer = (function (exports) {
3425
3422
  getProcessedParameterValues() {
3426
3423
  return this.processedParameterValues;
3427
3424
  }
3428
- getDocumentInfo(t2, n2) {
3429
- return t2 && this.emit("beginLoadReport"), new Promise((r2, s2) => {
3430
- let o2 = () => i(this, void 0, void 0, function* () {
3431
- this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, n2).then((i2) => {
3432
- i2 && i2.documentReady ? r2(i2) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i2.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i2.pageCount, this.emit("reportLoadProgress", i2)), window.setTimeout(o2, 500));
3425
+ getDocumentInfo(t2, i2) {
3426
+ return t2 && this.emit("beginLoadReport"), new Promise((n2, r2) => {
3427
+ let o2 = () => s(this, void 0, void 0, function* () {
3428
+ this.cancelLoad ? r2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
3429
+ i3 && i3.documentReady ? n2(i3) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i3.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i3.pageCount, this.emit("reportLoadProgress", i3)), window.setTimeout(o2, 500));
3433
3430
  }).catch((e2) => {
3434
3431
  "InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
3435
3432
  }));
@@ -3562,8 +3559,8 @@ ${e3.text} (${e3.id})`;
3562
3559
  sessionStorage.clear();
3563
3560
  }
3564
3561
  }, e.ReportControllerOptions = class {
3565
- constructor(e2, t2, i2, n2, r2, s2, o2, a2, l2, h2 = false, c2 = false) {
3566
- this.keepClientAlive = false, this.keepClientAlive = e2, this.authenticationToken = t2, this.reportSource = i2, this.printMode = n2, this.pageMode = r2, this.viewMode = s2, this.scaleMode = o2, this.scale = a2, this.messages = l2, this.enableAccessibility = h2, this.searchMetadataOnDemand = c2;
3562
+ constructor(e2, t2, i2, n2, r2, s2, o2, a2, l2, h2, c2 = false, d2 = false) {
3563
+ this.keepClientAlive = false, this.keepClientAlive = e2, this.authenticationToken = t2, this.nonce = i2, this.reportSource = n2, this.printMode = r2, this.pageMode = s2, this.viewMode = o2, this.scaleMode = a2, this.scale = l2, this.messages = h2, this.enableAccessibility = c2, this.searchMetadataOnDemand = d2;
3567
3564
  }
3568
3565
  }, e.ReportServerSettings = class {
3569
3566
  constructor(e2, t2, i2) {
@@ -3573,13 +3570,13 @@ ${e3.text} (${e3.id})`;
3573
3570
  constructor(e2, t2) {
3574
3571
  this.url = e2, this.getPersonalAccessToken = t2;
3575
3572
  }
3576
- }, e.ReportSourceOptions = _e, e.RequestError = m, e.SearchInfo = class {
3573
+ }, e.ReportSourceOptions = Oe, e.RequestError = C, e.SearchInfo = class {
3577
3574
  constructor() {
3578
3575
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3579
3576
  }
3580
- }, e.SearchManager = class extends B {
3577
+ }, e.SearchManager = class extends q {
3581
3578
  constructor(e2, t2) {
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));
3579
+ super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = fe(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3583
3580
  }
3584
3581
  search(e2) {
3585
3582
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3588,15 +3585,15 @@ ${e3.text} (${e3.id})`;
3588
3585
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3589
3586
  }
3590
3587
  highlightSearchItem(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));
3588
+ t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(this.currentHighlightedElement, We)), 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));
3592
3589
  }
3593
3590
  navigateToPage(e2) {
3594
- this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
3591
+ this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
3595
3592
  }
3596
3593
  colorPageElements(e2) {
3597
3594
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3598
- let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
3599
- t2 && (re(t2, je), this.highlightedElements.push(t2));
3595
+ let t2 = fe(this.pageContainer, "[data-search-id=" + e3.id + "]");
3596
+ t2 && (ne(t2, We), this.highlightedElements.push(t2));
3600
3597
  }), this.highlightItem(this.pendingHighlightItem));
3601
3598
  }
3602
3599
  highlightItem(e2) {
@@ -3604,13 +3601,13 @@ ${e3.text} (${e3.id})`;
3604
3601
  let t2 = this.highlightedElements.find(function(t3) {
3605
3602
  return t3.dataset.searchId === e2.id;
3606
3603
  });
3607
- t2 && (this.currentHighlightedElement = t2, se(t2, je), re(t2, Je));
3604
+ t2 && (this.currentHighlightedElement = t2, re(t2, We), ne(t2, Ze));
3608
3605
  }
3609
3606
  }
3610
3607
  clearColoredItems() {
3611
3608
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3612
- se(e2, je);
3613
- }), this.currentHighlightedElement && se(this.currentHighlightedElement, Je), this.highlightedElements = [], this.currentHighlightedElement = null;
3609
+ re(e2, We);
3610
+ }), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
3614
3611
  }
3615
3612
  applySearchColors() {
3616
3613
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3622,23 +3619,23 @@ ${e3.text} (${e3.id})`;
3622
3619
  constructor() {
3623
3620
  this.description = "", this.id = "", this.page = 0;
3624
3621
  }
3625
- }, e.SendEmailDocumentReadyEventArgs = p, e.SendEmailStartedEventArgs = u, e.ServiceClient = class {
3622
+ }, e.SendEmailDocumentReadyEventArgs = m, e.SendEmailStartedEventArgs = f, e.ServiceClient = class {
3626
3623
  constructor(e2) {
3627
3624
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3628
3625
  }
3629
3626
  getConnectionConfig(e2) {
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);
3627
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new E(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new M(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new M("", () => Promise.resolve(e2.serverShareToken)) : new R(e2.serviceUrl);
3631
3628
  }
3632
3629
  getAuthStrategy(t2) {
3633
3630
  switch (t2.authType) {
3634
3631
  case e.AuthType.None:
3635
- return new y();
3632
+ return new b();
3636
3633
  case e.AuthType.Basic:
3637
- return new S(t2);
3634
+ return new w(t2);
3638
3635
  case e.AuthType.PersonalToken:
3639
- return new I(t2);
3636
+ return new L(t2);
3640
3637
  default:
3641
- return new y();
3638
+ return new b();
3642
3639
  }
3643
3640
  }
3644
3641
  validateClientID(e2) {
@@ -3647,15 +3644,15 @@ ${e3.text} (${e3.id})`;
3647
3644
  }
3648
3645
  authenticatedGet(e2) {
3649
3646
  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) {
3650
- return fetch(e3, { headers: v(t3) }).then(P);
3647
+ return fetch(e3, { headers: y(t3) }).then(S);
3651
3648
  }(e2, t2.access_token || t2.accessToken));
3652
3649
  }
3653
3650
  authenticatedPost(e2, t2) {
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));
3651
+ 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)) : I(e2, t2, i2.access_token || i2.accessToken));
3655
3652
  }
3656
3653
  authenticatedDelete(e2) {
3657
3654
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3658
- return fetch(e3, { method: "DELETE", headers: v(t3) }).then(P);
3655
+ return fetch(e3, { method: "DELETE", headers: y(t3) }).then(S);
3659
3656
  }(e2, t2.access_token || t2.accessToken));
3660
3657
  }
3661
3658
  login() {
@@ -3739,15 +3736,18 @@ ${e3.text} (${e3.id})`;
3739
3736
  return e2.clientSessionTimeout;
3740
3737
  });
3741
3738
  }
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) {
3739
+ }, e.TooltipEventArgs = P, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = ve, e.each = we, e.escapeHtml = he, e.findElement = fe, e.getColorAlphaValue = ue, e.getElementAttributeValue = function(e2, t2) {
3740
+ var i2;
3741
+ return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
3742
+ }, e.getElementScrollParent = me, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Le, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = de, e.keepElementInView = function(e2) {
3743
3743
  if (!e2)
3744
3744
  return;
3745
- let t2 = Pe(e2);
3745
+ let t2 = me(e2);
3746
3746
  if (!t2)
3747
3747
  return;
3748
3748
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3749
3749
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3750
- }, e.parseToLocalDate = Me, e.prependHtml = fe, e.removeClass = se, e.reportSourcesAreEqual = function(e2) {
3750
+ }, e.parseToLocalDate = Ae, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
3751
3751
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3752
3752
  if (t2 && i2 && t2.report === i2.report) {
3753
3753
  let e3 = "";
@@ -3756,7 +3756,7 @@ ${e3.text} (${e3.id})`;
3756
3756
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3757
3757
  }
3758
3758
  return false;
3759
- }, e.scaleElement = he, e.stringFormat = Le, e.throttle = ye, e.toPixel = le, e.toRgbColor = de, e.tryParseFloat = Ee, e.tryParseInt = Re;
3759
+ }, e.scaleElement = le, e.stringFormat = be, e.throttle = Pe, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Re, e.tryParseInt = Te, Object.defineProperty(e, "__esModule", { value: true });
3760
3760
  });
3761
3761
  })(dist, dist.exports);
3762
3762
  var distExports = dist.exports;
@@ -3995,33 +3995,33 @@ ${e3.text} (${e3.id})`;
3995
3995
 
3996
3996
  const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3997
3997
  __proto__: null,
3998
+ isSpecialKey,
3999
+ rectangle,
4000
+ generateGuidString,
4001
+ trim,
4002
+ replaceAll,
4003
+ lTrim,
4004
+ rTrim,
4005
+ stringFormat,
4006
+ escapeHtml,
3998
4007
  adjustTimezone,
4008
+ unadjustTimezone,
3999
4009
  areEqual,
4000
4010
  areEqualArrays,
4001
- escapeHtml,
4002
- exceptionTypeNamesMatch,
4003
- filterUniqueLastOccurrence,
4004
- generateGuidString,
4005
- getColorAlphaValue,
4006
- getExceptionInstance,
4007
4011
  isApplicationException,
4008
4012
  isApplicationExceptionInstance,
4009
- isRgbColor,
4010
- isSpecialKey,
4011
- lTrim,
4012
- logError,
4013
+ exceptionTypeNamesMatch,
4013
4014
  parseJSON,
4014
- parseToLocalDate: distExports.parseToLocalDate,
4015
- rTrim,
4016
- rectangle,
4017
- replaceAll,
4018
- reportSourcesAreEqual: distExports.reportSourcesAreEqual,
4019
- stringFormat,
4015
+ getExceptionInstance,
4016
+ filterUniqueLastOccurrence,
4017
+ logError,
4020
4018
  toRgbColor,
4021
- trim,
4022
- tryParseFloat: distExports.tryParseFloat,
4019
+ isRgbColor,
4020
+ getColorAlphaValue,
4023
4021
  tryParseInt: distExports.tryParseInt,
4024
- unadjustTimezone
4022
+ tryParseFloat: distExports.tryParseFloat,
4023
+ parseToLocalDate: distExports.parseToLocalDate,
4024
+ reportSourcesAreEqual: distExports.reportSourcesAreEqual
4025
4025
  }, Symbol.toStringTag, { value: 'Module' }));
4026
4026
 
4027
4027
  function toPixels(value) {
@@ -4066,9 +4066,9 @@ ${e3.text} (${e3.id})`;
4066
4066
 
4067
4067
  const domUtils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
4068
4068
  __proto__: null,
4069
- getBorderWidth,
4070
4069
  getMargins,
4071
4070
  getPadding,
4071
+ getBorderWidth,
4072
4072
  scale
4073
4073
  }, Symbol.toStringTag, { value: 'Module' }));
4074
4074
 
@@ -5226,7 +5226,7 @@ ${e3.text} (${e3.id})`;
5226
5226
  parameter = param;
5227
5227
  try {
5228
5228
  listView = $list.kendoListView({
5229
- template: kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),
5229
+ template: ({ name }) => `<div class="trv-listviewitem multiselect-template">${kendo.htmlEncode(name)}</div>`,
5230
5230
  dataSource: { data: parameter.availableValues },
5231
5231
  selectable: "MULTIPLE",
5232
5232
  navigatable: navigatableEnabledForList(options.enableAccessibility),
@@ -5466,7 +5466,7 @@ ${e3.text} (${e3.id})`;
5466
5466
  parameter = param;
5467
5467
  try {
5468
5468
  listView = $list.kendoListView({
5469
- template: '<div class="trv-listviewitem">${name}</div>',
5469
+ template: ({ name }) => `<div class="trv-listviewitem">${kendo.htmlEncode(name)}</div>`,
5470
5470
  dataSource: { data: parameter.availableValues },
5471
5471
  selectable: true,
5472
5472
  navigatable: navigatableEnabledForList(options.enableAccessibility)
@@ -5563,7 +5563,7 @@ ${e3.text} (${e3.id})`;
5563
5563
  parameter = param;
5564
5564
  try {
5565
5565
  editor = $editorDom.kendoComboBox({
5566
- template: '<div class="trv-editoritem">${name}</div>',
5566
+ template: ({ name }) => `<div class="trv-editoritem">${kendo.htmlEncode(name)}</div>`,
5567
5567
  dataSource: parameter.availableValues,
5568
5568
  dataTextField: "name",
5569
5569
  dataValueField: "value",
@@ -6408,7 +6408,7 @@ ${e3.text} (${e3.id})`;
6408
6408
  // #endregion
6409
6409
  }
6410
6410
 
6411
- let EventEmitter$1 = class EventEmitter extends EventTarget {
6411
+ class EventEmitter$1 extends EventTarget {
6412
6412
  _events;
6413
6413
  _eventsCount;
6414
6414
  constructor() {
@@ -6526,7 +6526,7 @@ ${e3.text} (${e3.id})`;
6526
6526
  }
6527
6527
  return this.removeListener(type, listener);
6528
6528
  }
6529
- };
6529
+ }
6530
6530
 
6531
6531
  var defaultOptions$3 = {};
6532
6532
  var Events = {
@@ -7728,7 +7728,7 @@ ${e3.text} (${e3.id})`;
7728
7728
  event.sender.trigger("change");
7729
7729
  }
7730
7730
  });
7731
- this.bodyEditor = new kendo.ui.Editor(this.element.querySelector(`[name="${prefix}-emailBody"]`), {
7731
+ var editorOptions = {
7732
7732
  tools: [
7733
7733
  "bold",
7734
7734
  "italic",
@@ -7753,7 +7753,12 @@ ${e3.text} (${e3.id})`;
7753
7753
  "subscript",
7754
7754
  "superscript"
7755
7755
  ]
7756
- });
7756
+ };
7757
+ if (this.viewerOptions.nonce) {
7758
+ editorOptions.nonce = this.viewerOptions.nonce;
7759
+ editorOptions.unsafeInline = false;
7760
+ }
7761
+ this.bodyEditor = new kendo.ui.Editor(this.element.querySelector(`[name="${prefix}-emailBody"]`), editorOptions);
7757
7762
  this.setDefaultValues(this.viewerOptions.sendEmail);
7758
7763
  this.kendoValidator = new kendo.ui.Validator(this.element.querySelector(".trv-send-email-fields"), {});
7759
7764
  }
@@ -9144,6 +9149,7 @@ ${e3.text} (${e3.id})`;
9144
9149
  reportSource: null,
9145
9150
  reportServer: null,
9146
9151
  authenticationToken: null,
9152
+ nonce: null,
9147
9153
  sendEmail: null,
9148
9154
  scale: 1,
9149
9155
  scaleMode: ScaleModes.SPECIFIC,
@@ -9201,7 +9207,7 @@ ${e3.text} (${e3.id})`;
9201
9207
  if (!validateOptions(options)) {
9202
9208
  return;
9203
9209
  }
9204
- var version = "20.1.26.615";
9210
+ var version = "20.1.26.707";
9205
9211
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
9206
9212
  settings = new ReportViewerSettings(
9207
9213
  persistanceKey,
@@ -9225,6 +9231,7 @@ ${e3.text} (${e3.id})`;
9225
9231
  controllerOptions = new distExports.ReportControllerOptions(
9226
9232
  options.keepClientAlive,
9227
9233
  options.authenticationToken,
9234
+ options.nonce,
9228
9235
  options.reportSource,
9229
9236
  printModeMap[options.printMode],
9230
9237
  pageModeMap[options.pageMode],
@@ -10068,6 +10075,9 @@ ${e3.text} (${e3.id})`;
10068
10075
  return response.text();
10069
10076
  }).then((kendoScript) => {
10070
10077
  const scriptElement = document.createElement("script");
10078
+ if (options.nonce) {
10079
+ scriptElement.setAttribute("nonce", options.nonce);
10080
+ }
10071
10081
  scriptElement.textContent = kendoScript;
10072
10082
  document.head.appendChild(scriptElement);
10073
10083
  }).catch((errorData) => {
@@ -10209,7 +10219,7 @@ ${e3.text} (${e3.id})`;
10209
10219
  exports.parameterEditorsMatch = parameterEditorsMatch;
10210
10220
  exports.utils = utils;
10211
10221
 
10212
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10222
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
10213
10223
 
10214
10224
  return exports;
10215
10225