From 2fa895dff097f19b341fc115294beb921fcd67a5 Mon Sep 17 00:00:00 2001 From: Shahak Yosef Date: Tue, 14 Jul 2020 14:45:26 +0000 Subject: [PATCH] Merged PR 99756: Release version 2.13.0 This PR contains: - Version bump for the latest models versoin (1.4.0) - Version bump for the javascript sdk - Fix broken playground (mirror gh-pages changes) - Remove survey banner as the survey ended. --- demo/v2-demo/sample.html | 21 +---- demo/v2-demo/scripts/report.js | 3 - demo/v2-demo/scripts/session_utils.js | 32 +++---- demo/v2-demo/style/style.css | 52 ----------- dist/powerbi-client.d.ts | 2 +- dist/powerbi.js | 124 +++++++++++++++++++++++++- dist/powerbi.min.js | 15 ++-- package.json | 4 +- src/config.ts | 2 +- 9 files changed, 149 insertions(+), 106 deletions(-) diff --git a/demo/v2-demo/sample.html b/demo/v2-demo/sample.html index a9d0589e..a1cbd5b8 100644 --- a/demo/v2-demo/sample.html +++ b/demo/v2-demo/sample.html @@ -1,7 +1,3 @@ -
-

Help us learn about your Power BI Embedded experience. 

Take our survey now!

- -
    @@ -32,19 +28,4 @@
-
- - \ No newline at end of file +
\ No newline at end of file diff --git a/demo/v2-demo/scripts/report.js b/demo/v2-demo/scripts/report.js index e2f92fa8..6eb488a9 100644 --- a/demo/v2-demo/scripts/report.js +++ b/demo/v2-demo/scripts/report.js @@ -30,9 +30,6 @@ function OpenSamplesStep() { $("#embed-and-interact-steps-wrapper").hide(); $("#welcome-text").show(); - - if (window.innerWidth > 540) - $("#playground-banner").show(); trackEvent(TelemetryEventName.InnerSectionOpen, { section: TelemetryInnerSection.Sample, src: TelemetryEventSource.UserClick }); } diff --git a/demo/v2-demo/scripts/session_utils.js b/demo/v2-demo/scripts/session_utils.js index 28648197..43dbfcb2 100644 --- a/demo/v2-demo/scripts/session_utils.js +++ b/demo/v2-demo/scripts/session_utils.js @@ -1,13 +1,13 @@ -const reportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/SampleReport'; -const datasetUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/SampleCreate'; -const dashboardUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Dashboards/SampleDashboard'; -const tileUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Tiles/SampleTile'; -const qnaUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Datasets/SampleQna'; -const paginatedReportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/SampleRdlReport'; -const layoutShowcaseReportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/LayoutDemoReport'; -const insightToActionShowcaseReportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/InsightToActionReport'; -const themesShowcaseReportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/ThemesReport'; -const quickVisualCreatorShowcaseReportUrl = 'https://powerbiplaygroundbe.azurewebsites.net/api/Reports/EmptyReport'; +const reportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/SampleReport'; +const datasetUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/SampleCreate'; +const dashboardUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Dashboards/SampleDashboard'; +const tileUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Tiles/SampleTile'; +const qnaUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Datasets/SampleQna'; +const paginatedReportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/SampleRdlReport'; +const layoutShowcaseReportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/LayoutDemoReport'; +const insightToActionShowcaseReportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/InsightToActionReport'; +const themesShowcaseReportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/ThemesReport'; +const quickVisualCreatorShowcaseReportUrl = 'https://playgroundbe-bck-1.azurewebsites.net/Reports/EmptyReport'; var LastReportSampleUrl = null; var ReportRefreshTokenTimer = 0; @@ -194,21 +194,21 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector function FetchUrlIntoSession(url, updateCurrentToken) { return $.getJSON(url, function (embedConfig) { - setSession(embedConfig.embedToken.token, embedConfig.embedUrl, embedConfig.id, embedConfig.dashboardId); - SetSession(SessionKeys.SampleId, embedConfig.id); + setSession(embedConfig.EmbedToken.Token, embedConfig.EmbedUrl, embedConfig.Id, embedConfig.DashboardId); + SetSession(SessionKeys.SampleId, embedConfig.Id); if (updateCurrentToken) { - let embedContainerId = getEmbedContainerID(capitalizeFirstLetter(embedConfig.type)); + let embedContainerId = getEmbedContainerID(capitalizeFirstLetter(embedConfig.Type)); let embedContainer = powerbi.embeds.filter(function(embedElement) { return embedElement.element.id === embedContainerId; })[0]; if (embedContainer) { - embedContainer.setAccessToken(embedConfig.embedToken.token); + embedContainer.setAccessToken(embedConfig.EmbedToken.Token); } } - if (embedConfig.type === "report" || embedConfig.type === "visual") + if (embedConfig.Type === "report" || embedConfig.Type === "visual") { // Set single visual embed sample details. SetSession(SessionKeys.PageName, "ReportSectioneb8c865100f8508cc533"); @@ -217,7 +217,7 @@ function FetchUrlIntoSession(url, updateCurrentToken) { LastReportSampleUrl = url; } - TokenExpirationRefreshListener(embedConfig.minutesToExpiration, capitalizeFirstLetter(embedConfig.type)); + TokenExpirationRefreshListener(embedConfig.MinutesToExpiration, capitalizeFirstLetter(embedConfig.Type)); }); } diff --git a/demo/v2-demo/style/style.css b/demo/v2-demo/style/style.css index 3b8bc210..48cfd283 100644 --- a/demo/v2-demo/style/style.css +++ b/demo/v2-demo/style/style.css @@ -1863,55 +1863,3 @@ input:checked + .slider.round { position: absolute; font-size: 14px; } - -/* Playground Banner */ - -#playground-banner { - height: 48px; - text-align: center; - color: #000000; - background-color: #FBEEB5; - padding: 12px; - border-bottom: solid 1px #F1F1F1; - cursor: pointer; -} - -#playground-banner:hover { - background-color: #F7DE6D; -} - -#playground-banner-text, #playground-banner-text-underlined { - font-size: 16px; - font-weight: 400; - display: inline-block; -} - -#playground-banner-text-underlined { - text-decoration: underline; - font-weight: 600; -} - -#playground-banner-close { - float: right; - margin-top: 4px; - margin-right: 8px; -} - -@media only screen and (max-width: 675px) { - #playground-banner-text-underlined { - display: none; - } -} - - -@media only screen and (max-width: 605px) { - #playground-banner-text { - font-size: 14px; - } -} - -@media only screen and (max-width: 540px) { - #playground-banner { - display: none; - } -} \ No newline at end of file diff --git a/dist/powerbi-client.d.ts b/dist/powerbi-client.d.ts index da32545e..fe05930d 100644 --- a/dist/powerbi-client.d.ts +++ b/dist/powerbi-client.d.ts @@ -1,4 +1,4 @@ -/*! powerbi-client v2.12.2 | (c) 2016 Microsoft Corporation MIT */ +/*! powerbi-client v2.13.0 | (c) 2016 Microsoft Corporation MIT */ declare module "util" { import { HttpPostMessage } from 'http-post-message'; /** diff --git a/dist/powerbi.js b/dist/powerbi.js index 586d20e4..0926e4e6 100644 --- a/dist/powerbi.js +++ b/dist/powerbi.js @@ -1,4 +1,4 @@ -/*! powerbi-client v2.12.2 | (c) 2016 Microsoft Corporation MIT */ +/*! powerbi-client v2.13.0 | (c) 2016 Microsoft Corporation MIT */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); @@ -1276,7 +1276,7 @@ return /******/ (function(modules) { // webpackBootstrap /** @ignore */ /** */ var config = { - version: '2.12.2', + version: '2.13.0', type: 'js' }; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1287,7 +1287,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 5 */ /***/ (function(module, exports, __webpack_require__) { - /*! powerbi-models v1.3.4 | (c) 2016 Microsoft Corporation MIT */ + /*! powerbi-models v1.4.0 | (c) 2016 Microsoft Corporation MIT */ (function webpackUniversalModuleDefinition(root, factory) { if(true) module.exports = factory(); @@ -1402,6 +1402,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.validateCustomTheme = exports.validateCommandsSettings = exports.validateVisualSettings = exports.validateVisualHeader = exports.validateExportDataRequest = exports.validateQnaInterpretInputData = exports.validateLoadQnaConfiguration = exports.validateSaveAsParameters = exports.validateFilter = exports.validatePage = exports.validateTileLoad = exports.validateDashboardLoad = exports.validateCreateReport = exports.validateReportLoad = exports.validateExtension = exports.validateCustomPageSize = exports.validateVisualizationsPane = exports.validateSyncSlicersPane = exports.validateSelectionPane = exports.validatePageNavigationPane = exports.validateFieldsPane = exports.validateFiltersPane = exports.validateBookmarksPane = exports.validatePanes = exports.validateSettings = exports.validateApplyBookmarkStateRequest = exports.validateApplyBookmarkByNameRequest = exports.validateAddBookmarkRequest = exports.validatePlayBookmarkRequest = exports.validateSlicerState = exports.validateSlicer = exports.validateVisualSelector = exports.VisualDataRoleKindPreference = exports.VisualDataRoleKind = exports.CommandDisplayOption = exports.SlicerTargetSelector = exports.VisualTypeSelector = exports.VisualSelector = exports.PageSelector = exports.Selector = exports.SortDirection = exports.LegendPosition = exports.TextAlignment = exports.CommonErrorCodes = exports.BookmarksPlayMode = exports.ExportDataType = exports.QnaMode = exports.isColumnAggr = exports.isHierarchyLevelAggr = exports.isHierarchyLevel = exports.isColumn = exports.isMeasure = exports.getFilterType = exports.isBasicFilterWithKeys = exports.isFilterKeyColumnsTarget = exports.AdvancedFilter = exports.TupleFilter = exports.BasicFilterWithKeys = exports.BasicFilter = exports.RelativeTimeFilter = exports.RelativeDateFilter = exports.TopNFilter = exports.IncludeExcludeFilter = exports.NotSupportedFilter = exports.Filter = exports.RelativeDateOperators = exports.RelativeDateFilterTimeUnit = exports.FilterType = exports.FiltersLevel = exports.MenuLocation = exports.ContrastMode = exports.TokenType = exports.ViewMode = exports.Permissions = exports.SectionVisibility = exports.HyperlinkClickBehavior = exports.LayoutType = exports.VisualContainerDisplayMode = exports.BackgroundType = exports.DisplayOption = exports.PageSizeType = exports.TraceType = exports.Validators = void 0; exports.Validators = __webpack_require__(1).Validators; var TraceType; (function (TraceType) { @@ -2151,6 +2152,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); + exports.Validators = void 0; var typeValidator_1 = __webpack_require__(2); var extensionsValidator_1 = __webpack_require__(3); var settingsValidator_1 = __webpack_require__(5); @@ -2175,6 +2177,7 @@ return /******/ (function(modules) { // webpackBootstrap var customThemeValidator_1 = __webpack_require__(24); var datasetBindingValidator_1 = __webpack_require__(25); var panesValidator_1 = __webpack_require__(26); + var barsValidator_1 = __webpack_require__(27); exports.Validators = { addBookmarkRequestValidator: new bookmarkValidator_1.AddBookmarkRequestValidator(), advancedFilterTypeValidator: new typeValidator_1.EnumValidator([0]), @@ -2182,6 +2185,7 @@ return /******/ (function(modules) { // webpackBootstrap anyArrayValidator: new typeValidator_1.ArrayValidator([new anyOfValidator_1.AnyOfValidator([new typeValidator_1.StringValidator(), new typeValidator_1.NumberValidator(), new typeValidator_1.BooleanValidator()])]), anyFilterValidator: new anyOfValidator_1.AnyOfValidator([new filtersValidator_1.BasicFilterValidator(), new filtersValidator_1.AdvancedFilterValidator(), new filtersValidator_1.IncludeExcludeFilterValidator(), new filtersValidator_1.NotSupportedFilterValidator(), new filtersValidator_1.RelativeDateFilterValidator(), new filtersValidator_1.TopNFilterValidator(), new filtersValidator_1.RelativeTimeFilterValidator()]), anyValueValidator: new anyOfValidator_1.AnyOfValidator([new typeValidator_1.StringValidator(), new typeValidator_1.NumberValidator(), new typeValidator_1.BooleanValidator()]), + actionBarValidator: new barsValidator_1.ActionBarValidator(), applyBookmarkByNameRequestValidator: new bookmarkValidator_1.ApplyBookmarkByNameRequestValidator(), applyBookmarkStateRequestValidator: new bookmarkValidator_1.ApplyBookmarkStateRequestValidator(), applyBookmarkValidator: new anyOfValidator_1.AnyOfValidator([new bookmarkValidator_1.ApplyBookmarkByNameRequestValidator(), new bookmarkValidator_1.ApplyBookmarkStateRequestValidator()]), @@ -2217,7 +2221,7 @@ return /******/ (function(modules) { // webpackBootstrap filterHierarchyTargetValidator: new filtersValidator_1.FilterHierarchyTargetValidator(), filterMeasureTargetValidator: new filtersValidator_1.FilterMeasureTargetValidator(), filterTargetValidator: new anyOfValidator_1.AnyOfValidator([new filtersValidator_1.FilterColumnTargetValidator(), new filtersValidator_1.FilterHierarchyTargetValidator(), new filtersValidator_1.FilterMeasureTargetValidator()]), - filtersArrayValidator: new typeValidator_1.ArrayValidator([new anyOfValidator_1.AnyOfValidator([new filtersValidator_1.BasicFilterValidator(), new filtersValidator_1.AdvancedFilterValidator(), new filtersValidator_1.RelativeDateFilterValidator()])]), + filtersArrayValidator: new typeValidator_1.ArrayValidator([new anyOfValidator_1.AnyOfValidator([new filtersValidator_1.BasicFilterValidator(), new filtersValidator_1.AdvancedFilterValidator(), new filtersValidator_1.RelativeDateFilterValidator(), new filtersValidator_1.RelativeTimeFilterValidator()])]), filtersValidator: new filtersValidator_1.FilterValidator(), filtersPaneValidator: new panesValidator_1.FiltersPaneValidator(), hyperlinkClickBehaviorValidator: new typeValidator_1.EnumValidator([0, 1, 2]), @@ -2238,6 +2242,7 @@ return /******/ (function(modules) { // webpackBootstrap pageValidator: new pageValidator_1.PageValidator(), pageViewFieldValidator: new pageValidator_1.PageViewFieldValidator(), pagesLayoutValidator: new mapValidator_1.MapValidator([new typeValidator_1.StringValidator()], [new layoutValidator_1.PageLayoutValidator()]), + reportBarsValidator: new barsValidator_1.ReportBarsValidator(), reportPanesValidator: new panesValidator_1.ReportPanesValidator(), permissionsValidator: new typeValidator_1.EnumValidator([0, 1, 2, 4, 7]), playBookmarkRequestValidator: new bookmarkValidator_1.PlayBookmarkRequestValidator(), @@ -2299,6 +2304,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.NumberArrayValidator = exports.BooleanArrayValidator = exports.StringArrayValidator = exports.EnumValidator = exports.SchemaValidator = exports.ValueValidator = exports.NumberValidator = exports.BooleanValidator = exports.StringValidator = exports.TypeValidator = exports.ArrayValidator = exports.ObjectValidator = void 0; var ObjectValidator = /** @class */ (function () { function ObjectValidator() { } @@ -2527,6 +2533,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ExtensionValidator = exports.CommandExtensionValidator = exports.ExtensionItemValidator = exports.ExtensionPointsValidator = exports.MenuExtensionValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -2686,6 +2693,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { value: true }); + exports.MultipleFieldsValidator = void 0; var MultipleFieldsValidator = /** @class */ (function () { function MultipleFieldsValidator(fieldValidatorsPairs) { this.fieldValidatorsPairs = fieldValidatorsPairs; @@ -2730,6 +2738,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.SettingsValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -2795,9 +2804,21 @@ return /******/ (function(modules) { // webpackBootstrap field: "hyperlinkClickBehavior", validators: [validator_1.Validators.hyperlinkClickBehaviorValidator] }, + { + field: "bars", + validators: [validator_1.Validators.reportBarsValidator] + }, { field: "panes", validators: [validator_1.Validators.reportPanesValidator] + }, + { + field: "persistentFiltersEnabled", + validators: [validator_1.Validators.booleanValidator] + }, + { + field: "visualRenderedEvents", + validators: [validator_1.Validators.booleanValidator] } ]; var multipleFieldsValidator = new multipleFieldsValidator_1.MultipleFieldsValidator(fields); @@ -2826,6 +2847,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ApplyBookmarkStateRequestValidator = exports.ApplyBookmarkByNameRequestValidator = exports.AddBookmarkRequestValidator = exports.PlayBookmarkRequestValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -2957,6 +2979,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ConditionItemValidator = exports.FilterValidator = exports.IncludeExcludeFilterValidator = exports.NotSupportedFilterValidator = exports.TopNFilterValidator = exports.RelativeTimeFilterValidator = exports.RelativeDateFilterValidator = exports.AdvancedFilterValidator = exports.BasicFilterValidator = exports.FilterMeasureTargetValidator = exports.FilterKeyHierarchyTargetValidator = exports.FilterHierarchyTargetValidator = exports.FilterKeyColumnsTargetValidator = exports.FilterColumnTargetValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3430,6 +3453,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { value: true }); + exports.FieldRequiredValidator = void 0; var FieldRequiredValidator = /** @class */ (function () { function FieldRequiredValidator() { } @@ -3453,6 +3477,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { value: true }); + exports.AnyOfValidator = void 0; var AnyOfValidator = /** @class */ (function () { function AnyOfValidator(validators) { this.validators = validators; @@ -3502,6 +3527,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ReportLoadValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3602,6 +3628,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ReportCreateValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3666,6 +3693,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.DashboardLoadValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3734,6 +3762,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.TileLoadValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3810,6 +3839,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.PageViewFieldValidator = exports.PageValidator = exports.CustomPageSizeValidator = exports.PageSizeValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -3936,6 +3966,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.QnaInterpretInputDataValidator = exports.QnaSettingsValidator = exports.LoadQnaValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4066,6 +4097,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.SaveAsParametersValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4114,6 +4146,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.MapValidator = void 0; var typeValidator_1 = __webpack_require__(2); var MapValidator = /** @class */ (function (_super) { __extends(MapValidator, _super); @@ -4175,6 +4208,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.PageLayoutValidator = exports.DisplayStateValidator = exports.VisualLayoutValidator = exports.CustomLayoutValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4330,6 +4364,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.ExportDataRequestValidator = void 0; var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); var ExportDataRequestValidator = /** @class */ (function (_super) { @@ -4381,6 +4416,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.SlicerTargetSelectorValidator = exports.VisualTypeSelectorValidator = exports.VisualSelectorValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4493,6 +4529,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.SlicerStateValidator = exports.SlicerValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4570,6 +4607,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.VisualHeaderValidator = exports.VisualHeaderSettingsValidator = exports.VisualSettingsValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4672,6 +4710,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.SingleCommandSettingsValidator = exports.CommandsSettingsValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4789,6 +4828,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.CustomThemeValidator = void 0; var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); var CustomThemeValidator = /** @class */ (function (_super) { @@ -4836,6 +4876,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.DatasetBindingValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -4884,6 +4925,7 @@ return /******/ (function(modules) { // webpackBootstrap }; })(); Object.defineProperty(exports, "__esModule", { value: true }); + exports.VisualizationsPaneValidator = exports.SyncSlicersPaneValidator = exports.SelectionPaneValidator = exports.PageNavigationPaneValidator = exports.FiltersPaneValidator = exports.FieldsPaneValidator = exports.BookmarksPaneValidator = exports.ReportPanesValidator = void 0; var validator_1 = __webpack_require__(1); var multipleFieldsValidator_1 = __webpack_require__(4); var typeValidator_1 = __webpack_require__(2); @@ -5117,6 +5159,80 @@ return /******/ (function(modules) { // webpackBootstrap exports.VisualizationsPaneValidator = VisualizationsPaneValidator; + /***/ }), + /* 27 */ + /***/ (function(module, exports, __webpack_require__) { + + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })(); + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ActionBarValidator = exports.ReportBarsValidator = void 0; + var validator_1 = __webpack_require__(1); + var multipleFieldsValidator_1 = __webpack_require__(4); + var typeValidator_1 = __webpack_require__(2); + var ReportBarsValidator = /** @class */ (function (_super) { + __extends(ReportBarsValidator, _super); + function ReportBarsValidator() { + return _super !== null && _super.apply(this, arguments) || this; + } + ReportBarsValidator.prototype.validate = function (input, path, field) { + if (input == null) { + return null; + } + var errors = _super.prototype.validate.call(this, input, path, field); + if (errors) { + return errors; + } + var fields = [ + { + field: "actionBar", + validators: [validator_1.Validators.actionBarValidator] + } + ]; + var multipleFieldsValidator = new multipleFieldsValidator_1.MultipleFieldsValidator(fields); + return multipleFieldsValidator.validate(input, path, field); + }; + return ReportBarsValidator; + }(typeValidator_1.ObjectValidator)); + exports.ReportBarsValidator = ReportBarsValidator; + var ActionBarValidator = /** @class */ (function (_super) { + __extends(ActionBarValidator, _super); + function ActionBarValidator() { + return _super !== null && _super.apply(this, arguments) || this; + } + ActionBarValidator.prototype.validate = function (input, path, field) { + if (input == null) { + return null; + } + var errors = _super.prototype.validate.call(this, input, path, field); + if (errors) { + return errors; + } + var fields = [ + { + field: "visible", + validators: [validator_1.Validators.booleanValidator] + }, + ]; + var multipleFieldsValidator = new multipleFieldsValidator_1.MultipleFieldsValidator(fields); + return multipleFieldsValidator.validate(input, path, field); + }; + return ActionBarValidator; + }(typeValidator_1.ObjectValidator)); + exports.ActionBarValidator = ActionBarValidator; + + /***/ }) /******/ ]); }); diff --git a/dist/powerbi.min.js b/dist/powerbi.min.js index 99bc2c47..42c656db 100644 --- a/dist/powerbi.min.js +++ b/dist/powerbi.min.js @@ -1,8 +1,9 @@ -/*! powerbi-client v2.12.2 | (c) 2016 Microsoft Corporation MIT */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["powerbi-client"]=e():t["powerbi-client"]=e()}(this,function(){return function(t){function e(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){var a=r(1);e.service=a;var i=r(17);e.factories=i;var o=r(5);e.models=o;var n=r(7);e.Report=n.Report;var l=r(13);e.Dashboard=l.Dashboard;var s=r(14);e.Tile=s.Tile;var d=r(2);e.Embed=d.Embed;var u=r(8);e.Page=u.Page;var p=r(15);e.Qna=p.Qna;var c=r(16);e.Visual=c.Visual;var f=r(9);e.VisualDescriptor=f.VisualDescriptor;var h=new a.Service(i.hpmFactory,i.wpmpFactory,i.routerFactory);window.powerbi=h},function(t,e,r){var a=r(2),i=r(7),o=r(12),n=r(13),l=r(14),s=r(8),d=r(15),u=r(16),p=r(3),c=function(){function t(e,r,a,i){var o=this;void 0===i&&(i={}),this.wpmp=r(i.wpmpName,i.logMessages),this.hpm=e(this.wpmp,null,i.version,i.type),this.router=a(this.wpmp),this.uniqueSessionId=p.generateUUID(),this.router.post("/reports/:uniqueId/events/:eventName",function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/reports/:uniqueId/pages/:pageName/events/:eventName",function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/reports/:uniqueId/pages/:pageName/visuals/:visualName/events/:eventName",function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/dashboards/:uniqueId/events/:eventName",function(t,e){var r={type:"dashboard",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/tile/:uniqueId/events/:eventName",function(t,e){var r={type:"tile",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/qna/:uniqueId/events/:eventName",function(t,e){var r={type:"qna",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)}),this.router.post("/ready/:uniqueId",function(t,e){var r={type:"report",id:t.params.uniqueId,name:"ready",value:t.body};o.handleEvent(r)}),this.embeds=[],this.config=p.assign({},t.defaultConfig,i),this.config.autoEmbedOnContentLoaded&&this.enableAutoEmbed()}return t.prototype.createReport=function(t,e){e.type="create";var r=t,a=new o.Create(this,r,e);return r.powerBiEmbed=a,this.addOrOverwriteEmbed(a,t),a},t.prototype.init=function(t,e){var r=this;void 0===e&&(e=void 0),t=t&&t instanceof HTMLElement?t:document.body;var i=Array.prototype.slice.call(t.querySelectorAll("["+a.Embed.embedUrlAttribute+"]"));return i.map(function(t){return r.embed(t,e)})},t.prototype.embed=function(t,e){return void 0===e&&(e={}),this.embedInternal(t,e)},t.prototype.load=function(t,e){return void 0===e&&(e={}),this.embedInternal(t,e,!0,!1)},t.prototype.bootstrap=function(t,e){return this.embedInternal(t,e,!1,!0)},t.prototype.embedInternal=function(t,e,r,a){void 0===e&&(e={});var i,o=t;if(o.powerBiEmbed){if(a)throw new Error("Attempted to bootstrap element "+t.outerHTML+", but the element is already a powerbi element.");i=this.embedExisting(o,e,r)}else i=this.embedNew(o,e,r,a);return i},t.prototype.getNumberOfComponents=function(){return this.embeds?this.embeds.length:0},t.prototype.getSdkSessionId=function(){return this.uniqueSessionId},t.prototype.embedNew=function(e,r,o,n){var l=r.type||e.getAttribute(a.Embed.typeAttribute);if(!l)throw new Error("Attempted to embed using config "+JSON.stringify(r)+" on element "+e.outerHTML+", but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as '"+a.Embed.typeAttribute+'="'+i.Report.type.toLowerCase()+"\"'.");r.type=l;var s=p.find(function(t){return l===t.type.toLowerCase()},t.components);if(!s)throw new Error("Attempted to embed component of type: "+l+" but did not find any matching component. Please verify the type you specified is intended.");var d=new s(this,e,r,o,n);return e.powerBiEmbed=d,this.addOrOverwriteEmbed(d,e),d},t.prototype.embedExisting=function(t,e,r){var a=p.find(function(e){return e.element===t},this.embeds);if(!a)throw new Error("Attempted to embed using config "+JSON.stringify(e)+" on element "+t.outerHTML+" which already has embedded comopnent associated, but could not find the existing comopnent in the list of active components. This could indicate the embeds list is out of sync with the DOM, or the component is referencing the incorrect HTML element.");if(e.type&&"qna"===e.type.toLowerCase())return this.embedNew(t,e);if("string"==typeof e.type&&e.type!==a.config.type){if("report"===e.type&&"create"===a.config.type){var o=new i.Report(this,t,e,(!1),(!1),t.powerBiEmbed.iframe);return o.load(e),t.powerBiEmbed=o,this.addOrOverwriteEmbed(a,t),o}throw new Error("Embedding on an existing element with a different type than the previous embed object is not supported. Attempted to embed using config "+JSON.stringify(e)+" on element "+t.outerHTML+", but the existing element contains an embed of type: "+this.config.type+" which does not match the new type: "+e.type)}return a.populateConfig(e,!1),a.load(a.config,r),a},t.prototype.enableAutoEmbed=function(){var t=this;window.addEventListener("DOMContentLoaded",function(e){return t.init(document.body)},!1)},t.prototype.get=function(t){var e=t;if(!e.powerBiEmbed)throw new Error("You attempted to get an instance of powerbi component associated with element: "+t.outerHTML+" but there was no associated instance.");return e.powerBiEmbed},t.prototype.find=function(t){return p.find(function(e){return e.config.uniqueId===t},this.embeds)},t.prototype.addOrOverwriteEmbed=function(t,e){this.embeds=this.embeds.filter(function(t){return t.element!==e}),this.embeds.push(t)},t.prototype.reset=function(t){var e=t;if(e.powerBiEmbed){var r=e.powerBiEmbed;r.frontLoadHandler&&r.element.removeEventListener("ready",r.frontLoadHandler,!1),p.remove(function(t){return t===e.powerBiEmbed},this.embeds),delete e.powerBiEmbed;var a=t.querySelector("iframe");a&&(void 0!==a.remove?a.remove():a.parentElement.removeChild(a))}},t.prototype.handleTileEvents=function(t){"tile"===t.type&&this.handleEvent(t)},t.prototype.handleEvent=function(t){var e=p.find(function(e){return e.config.uniqueId===t.id},this.embeds);if(e){var r=t.value;if("pageChanged"===t.name){var a="newPage",i=r[a];if(!i)throw new Error("Page model not found at 'event.value."+a+"'.");r[a]=new s.Page(e,i.name,i.displayName,(!0))}p.raiseCustomEvent(e.element,t.name,r)}},t.prototype.preload=function(t,e){var r=document.createElement("iframe");r.setAttribute("style","display:none;"),r.setAttribute("src",t.embedUrl),r.setAttribute("scrolling","no"),r.setAttribute("allowfullscreen","false");var a=e;return a||(a=document.getElementsByTagName("body")[0]),a.appendChild(r),r.onload=function(){p.raiseCustomEvent(r,"preloaded",{})},r},t.components=[l.Tile,i.Report,n.Dashboard,d.Qna,u.Visual],t.defaultConfig={autoEmbedOnContentLoaded:!1,onError:function(){for(var t=[],e=0;e>=4,r.toString(16)})}function d(t,e,r){var a=t.indexOf("?")>0?"&":"?";return t+=a+e+"="+r}function u(t,e,r){return t.get("/report/hasUnsavedChanges",{uid:e},r).then(function(t){return!t.body},function(t){throw t.body})}function p(t){return t.toLowerCase().indexOf("/rdlembed?")>=0}function c(t){return t&&decodeURIComponent(t).toLowerCase().indexOf("autoauth=true")>=0}function f(){var t=window.crypto||window.msCrypto,e=new Uint32Array(1);return t.getRandomValues(e),e[0]}e.raiseCustomEvent=r,e.findIndex=a,e.find=i,e.remove=o,e.assign=n,e.createRandomString=l,e.generateUUID=s,e.addParamToUrl=d,e.isSavedInternal=u,e.isRDLEmbed=p,e.autoAuthInEmbedUrl=c,e.getRandomValue=f},function(t,e){var r={version:"2.12.2",type:"js"};Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=r},function(t,e,r){/*! powerbi-models v1.3.4 | (c) 2016 Microsoft Corporation MIT */ -!function(e,r){t.exports=r()}(window,function(){return function(t){function e(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,a){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(a,i,function(e){return t[e]}.bind(null,i));return a},e.n=function(t){var r=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){function a(t){return l(t)&&!!t.keys}function i(t){return o(t)===ot.Basic&&!!t.keyValues}function o(t){if(t.filterType)return t.filterType;var e=t,r=t;return"string"==typeof e.operator&&Array.isArray(e.values)?ot.Basic:"string"==typeof r.logicalOperator&&Array.isArray(r.conditions)?ot.Advanced:ot.Unknown}function n(t){return void 0!==t.table&&void 0!==t.measure}function l(t){return!(!t.table||!t.column||t.aggregationFunction)}function s(t){return!(!(t.table&&t.hierarchy&&t.hierarchyLevel)||t.aggregationFunction)}function d(t){return!!(t.table&&t.hierarchy&&t.hierarchyLevel&&t.aggregationFunction)}function u(t){return!!(t.table&&t.column&&t.aggregationFunction)}function p(t){var e=t.message;return e||(e=t.path+" is invalid. Not meeting "+t.keyword+" constraint"),{message:e}}function c(t){var r=e.Validators.visualSelectorValidator.validate(t);return r?r.map(p):void 0}function f(t){var r=e.Validators.slicerValidator.validate(t);return r?r.map(p):void 0}function h(t){var r=e.Validators.slicerStateValidator.validate(t);return r?r.map(p):void 0}function v(t){var r=e.Validators.playBookmarkRequestValidator.validate(t);return r?r.map(p):void 0}function y(t){var r=e.Validators.addBookmarkRequestValidator.validate(t);return r?r.map(p):void 0}function m(t){var r=e.Validators.applyBookmarkByNameRequestValidator.validate(t);return r?r.map(p):void 0}function V(t){var r=e.Validators.applyBookmarkStateRequestValidator.validate(t);return r?r.map(p):void 0}function g(t){var r=e.Validators.settingsValidator.validate(t);return r?r.map(p):void 0}function w(t){var r=e.Validators.reportPanesValidator.validate(t);return r?r.map(p):void 0}function b(t){var r=e.Validators.bookmarksPaneValidator.validate(t);return r?r.map(p):void 0}function P(t){var r=e.Validators.filtersPanesValidator.validate(t);return r?r.map(p):void 0}function E(t){var r=e.Validators.fieldsPanesValidator.validate(t);return r?r.map(p):void 0}function S(t){var r=e.Validators.pageNavigationPaneValidator.validate(t);return r?r.map(p):void 0}function T(t){var r=e.Validators.selectionPaneValidator.validate(t);return r?r.map(p):void 0}function O(t){var r=e.Validators.syncSlicersPaneValidator.validate(t);return r?r.map(p):void 0}function _(t){var r=e.Validators.visualizationsPanesValidator.validate(t);return r?r.map(p):void 0}function R(t){var r=e.Validators.customPageSizeValidator.validate(t);return r?r.map(p):void 0}function F(t){var r=e.Validators.extensionValidator.validate(t);return r?r.map(p):void 0}function A(t){var r=e.Validators.reportLoadValidator.validate(t);return r?r.map(p):void 0}function k(t){var r=e.Validators.reportCreateValidator.validate(t);return r?r.map(p):void 0}function C(t){var r=e.Validators.dashboardLoadValidator.validate(t);return r?r.map(p):void 0}function x(t){var r=e.Validators.tileLoadValidator.validate(t);return r?r.map(p):void 0}function M(t){var r=e.Validators.pageValidator.validate(t);return r?r.map(p):void 0}function I(t){var r=e.Validators.filtersValidator.validate(t);return r?r.map(p):void 0}function q(t){var r=e.Validators.saveAsParametersValidator.validate(t);return r?r.map(p):void 0}function j(t){var r=e.Validators.loadQnaValidator.validate(t);return r?r.map(p):void 0}function L(t){var r=e.Validators.qnaInterpretInputDataValidator.validate(t);return r?r.map(p):void 0}function N(t){var r=e.Validators.exportDataRequestValidator.validate(t);return r?r.map(p):void 0}function U(t){var r=e.Validators.visualHeaderValidator.validate(t);return r?r.map(p):void 0}function D(t){var r=e.Validators.visualSettingsValidator.validate(t);return r?r.map(p):void 0}function B(t){var r=e.Validators.commandsSettingsValidator.validate(t);return r?r.map(p):void 0}function W(t){var r=e.Validators.customThemeValidator.validate(t);return r?r.map(p):void 0}var H=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=r(1).Validators;var z;!function(t){t[t.Information=0]="Information",t[t.Verbose=1]="Verbose",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.ExpectedError=4]="ExpectedError",t[t.UnexpectedError=5]="UnexpectedError",t[t.Fatal=6]="Fatal"}(z=e.TraceType||(e.TraceType={}));var J;!function(t){t[t.Widescreen=0]="Widescreen",t[t.Standard=1]="Standard",t[t.Cortana=2]="Cortana",t[t.Letter=3]="Letter",t[t.Custom=4]="Custom"}(J=e.PageSizeType||(e.PageSizeType={}));var Y;!function(t){t[t.FitToPage=0]="FitToPage",t[t.FitToWidth=1]="FitToWidth",t[t.ActualSize=2]="ActualSize"}(Y=e.DisplayOption||(e.DisplayOption={}));var Q;!function(t){t[t.Default=0]="Default",t[t.Transparent=1]="Transparent"}(Q=e.BackgroundType||(e.BackgroundType={}));var G;!function(t){t[t.Visible=0]="Visible",t[t.Hidden=1]="Hidden"}(G=e.VisualContainerDisplayMode||(e.VisualContainerDisplayMode={}));var $;!function(t){t[t.Master=0]="Master",t[t.Custom=1]="Custom",t[t.MobilePortrait=2]="MobilePortrait",t[t.MobileLandscape=3]="MobileLandscape"}($=e.LayoutType||(e.LayoutType={}));var K;!function(t){t[t.Navigate=0]="Navigate",t[t.NavigateAndRaiseEvent=1]="NavigateAndRaiseEvent",t[t.RaiseEvent=2]="RaiseEvent"}(K=e.HyperlinkClickBehavior||(e.HyperlinkClickBehavior={}));var X;!function(t){t[t.AlwaysVisible=0]="AlwaysVisible",t[t.HiddenInViewMode=1]="HiddenInViewMode"}(X=e.SectionVisibility||(e.SectionVisibility={}));var Z;!function(t){t[t.Read=0]="Read",t[t.ReadWrite=1]="ReadWrite",t[t.Copy=2]="Copy",t[t.Create=4]="Create",t[t.All=7]="All"}(Z=e.Permissions||(e.Permissions={}));var tt;!function(t){t[t.View=0]="View",t[t.Edit=1]="Edit"}(tt=e.ViewMode||(e.ViewMode={}));var et;!function(t){t[t.Aad=0]="Aad",t[t.Embed=1]="Embed"}(et=e.TokenType||(e.TokenType={}));var rt;!function(t){t[t.None=0]="None",t[t.HighContrast1=1]="HighContrast1",t[t.HighContrast2=2]="HighContrast2",t[t.HighContrastBlack=3]="HighContrastBlack",t[t.HighContrastWhite=4]="HighContrastWhite"}(rt=e.ContrastMode||(e.ContrastMode={}));var at;!function(t){t[t.Bottom=0]="Bottom",t[t.Top=1]="Top"}(at=e.MenuLocation||(e.MenuLocation={}));var it;!function(t){t[t.Report=0]="Report",t[t.Page=1]="Page",t[t.Visual=2]="Visual"}(it=e.FiltersLevel||(e.FiltersLevel={}));var ot;!function(t){t[t.Advanced=0]="Advanced",t[t.Basic=1]="Basic",t[t.Unknown=2]="Unknown",t[t.IncludeExclude=3]="IncludeExclude",t[t.RelativeDate=4]="RelativeDate",t[t.TopN=5]="TopN",t[t.Tuple=6]="Tuple",t[t.RelativeTime=7]="RelativeTime"}(ot=e.FilterType||(e.FilterType={}));var nt;!function(t){t[t.Days=0]="Days",t[t.Weeks=1]="Weeks",t[t.CalendarWeeks=2]="CalendarWeeks",t[t.Months=3]="Months",t[t.CalendarMonths=4]="CalendarMonths",t[t.Years=5]="Years",t[t.CalendarYears=6]="CalendarYears",t[t.Minutes=7]="Minutes",t[t.Hours=8]="Hours"}(nt=e.RelativeDateFilterTimeUnit||(e.RelativeDateFilterTimeUnit={}));var lt;!function(t){t[t.InLast=0]="InLast",t[t.InThis=1]="InThis",t[t.InNext=2]="InNext"}(lt=e.RelativeDateOperators||(e.RelativeDateOperators={}));var st=function(){function t(t,e){this.target=t,this.filterType=e}return t.prototype.toJSON=function(){var t={$schema:this.schemaUrl,target:this.target,filterType:this.filterType};return void 0!==this.displaySettings&&(t.displaySettings=this.displaySettings),t},t}();e.Filter=st;var dt=function(t){function e(r,a,i){var o=t.call(this,r,ot.Unknown)||this;return o.message=a,o.notSupportedTypeName=i,o.schemaUrl=e.schemaUrl,o}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.message=this.message,e.notSupportedTypeName=this.notSupportedTypeName,e},e.schemaUrl="http://powerbi.com/product/schema#notSupported",e}(st);e.NotSupportedFilter=dt;var ut=function(t){function e(r,a,i){var o=t.call(this,r,ot.IncludeExclude)||this;return o.values=i,o.isExclude=a,o.schemaUrl=e.schemaUrl,o}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.isExclude=this.isExclude,e.values=this.values,e},e.schemaUrl="http://powerbi.com/product/schema#includeExclude",e}(st);e.IncludeExcludeFilter=ut;var pt=function(t){function e(r,a,i,o){var n=t.call(this,r,ot.TopN)||this;return n.operator=a,n.itemCount=i,n.schemaUrl=e.schemaUrl,n.orderBy=o,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.itemCount=this.itemCount,e.orderBy=this.orderBy,e},e.schemaUrl="http://powerbi.com/product/schema#topN",e}(st);e.TopNFilter=pt;var ct=function(t){function e(r,a,i,o,n){var l=t.call(this,r,ot.RelativeDate)||this;return l.operator=a,l.timeUnitsCount=i,l.timeUnitType=o,l.includeToday=n,l.schemaUrl=e.schemaUrl,l}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.timeUnitsCount=this.timeUnitsCount,e.timeUnitType=this.timeUnitType,e.includeToday=this.includeToday,e},e.schemaUrl="http://powerbi.com/product/schema#relativeDate",e}(st);e.RelativeDateFilter=ct;var ft=function(t){function e(r,a,i,o){var n=t.call(this,r,ot.RelativeTime)||this;return n.operator=a,n.timeUnitsCount=i,n.timeUnitType=o,n.schemaUrl=e.schemaUrl,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.timeUnitsCount=this.timeUnitsCount,e.timeUnitType=this.timeUnitType,e},e.schemaUrl="http://powerbi.com/product/schema#relativeTime",e}(st);e.RelativeTimeFilter=ft;var ht=function(t){function e(r,a){for(var i=[],o=2;o0&&!i)throw new Error("You should pass the values to be filtered for each key. You passed: no values and "+n+" keys");if(0===n&&i&&i.length>0)throw new Error("You passed key values but your target object doesn't contain the keys to be filtered");for(var l=0;l2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: "+i.length);if(1===l.length&&"And"!==a)throw new Error('Logical Operator must be "And" when there is only one condition provided');return n.conditions=l,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.logicalOperator=this.logicalOperator,e.conditions=this.conditions,e},e.schemaUrl="http://powerbi.com/product/schema#advanced",e}(st);e.AdvancedFilter=mt,e.isFilterKeyColumnsTarget=a,e.isBasicFilterWithKeys=i,e.getFilterType=o,e.isMeasure=n,e.isColumn=l,e.isHierarchyLevel=s,e.isHierarchyLevelAggr=d,e.isColumnAggr=u;var Vt;!function(t){t[t.Interactive=0]="Interactive",t[t.ResultOnly=1]="ResultOnly"}(Vt=e.QnaMode||(e.QnaMode={}));var gt;!function(t){t[t.Summarized=0]="Summarized",t[t.Underlying=1]="Underlying"}(gt=e.ExportDataType||(e.ExportDataType={}));var wt;!function(t){t[t.Off=0]="Off",t[t.Presentation=1]="Presentation"}(wt=e.BookmarksPlayMode||(e.BookmarksPlayMode={})),e.CommonErrorCodes={TokenExpired:"TokenExpired",NotFound:"PowerBIEntityNotFound",InvalidParameters:"Invalid parameters",LoadReportFailed:"LoadReportFailed",NotAuthorized:"PowerBINotAuthorizedException",FailedToLoadModel:"ExplorationContainer_FailedToLoadModel_DefaultDetails"},e.TextAlignment={Left:"left",Center:"center",Right:"right"},e.LegendPosition={Top:"Top",Bottom:"Bottom",Right:"Right",Left:"Left",TopCenter:"TopCenter",BottomCenter:"BottomCenter",RightCenter:"RightCenter",LeftCenter:"LeftCenter"};var bt;!function(t){t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"}(bt=e.SortDirection||(e.SortDirection={}));var Pt=function(){function t(t){this.$schema=t}return t.prototype.toJSON=function(){return{$schema:this.$schema}},t}();e.Selector=Pt;var Et=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.pageName=r,a}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.pageName=this.pageName,e},e.schemaUrl="http://powerbi.com/product/schema#pageSelector",e}(Pt);e.PageSelector=Et;var St=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.visualName=r,a}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.visualName=this.visualName,e},e.schemaUrl="http://powerbi.com/product/schema#visualSelector",e}(Pt);e.VisualSelector=St;var Tt=function(t){function e(e){var r=t.call(this,St.schemaUrl)||this;return r.visualType=e,r}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.visualType=this.visualType,e},e.schemaUrl="http://powerbi.com/product/schema#visualTypeSelector",e}(Pt);e.VisualTypeSelector=Tt;var Ot=function(t){function e(e){var r=t.call(this,St.schemaUrl)||this;return r.target=e,r}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.target=this.target,e},e.schemaUrl="http://powerbi.com/product/schema#slicerTargetSelector",e}(Pt);e.SlicerTargetSelector=Ot;var _t;!function(t){t[t.Enabled=0]="Enabled",t[t.Disabled=1]="Disabled",t[t.Hidden=2]="Hidden"}(_t=e.CommandDisplayOption||(e.CommandDisplayOption={}));var Rt;!function(t){t[t.Grouping=0]="Grouping",t[t.Measure=1]="Measure",t[t.GroupingOrMeasure=2]="GroupingOrMeasure"}(Rt=e.VisualDataRoleKind||(e.VisualDataRoleKind={}));var Ft;!function(t){t[t.Measure=0]="Measure",t[t.Grouping=1]="Grouping"}(Ft=e.VisualDataRoleKindPreference||(e.VisualDataRoleKindPreference={})),e.validateVisualSelector=c,e.validateSlicer=f,e.validateSlicerState=h,e.validatePlayBookmarkRequest=v,e.validateAddBookmarkRequest=y,e.validateApplyBookmarkByNameRequest=m,e.validateApplyBookmarkStateRequest=V,e.validateSettings=g,e.validatePanes=w,e.validateBookmarksPane=b,e.validateFiltersPane=P,e.validateFieldsPane=E,e.validatePageNavigationPane=S,e.validateSelectionPane=T,e.validateSyncSlicersPane=O,e.validateVisualizationsPane=_,e.validateCustomPageSize=R,e.validateExtension=F,e.validateReportLoad=A,e.validateCreateReport=k,e.validateDashboardLoad=C,e.validateTileLoad=x,e.validatePage=M,e.validateFilter=I,e.validateSaveAsParameters=q,e.validateLoadQnaConfiguration=j,e.validateQnaInterpretInputData=L,e.validateExportDataRequest=N,e.validateVisualHeader=U,e.validateVisualSettings=D,e.validateCommandsSettings=B,e.validateCustomTheme=W},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});var a=r(2),i=r(3),o=r(5),n=r(6),l=r(7),s=r(8),d=r(9),u=r(10),p=r(11),c=r(12),f=r(13),h=r(14),v=r(15),y=r(16),m=r(17),V=r(18),g=r(19),w=r(20),b=r(21),P=r(22),E=r(23),S=r(24),T=r(25),O=r(26);e.Validators={addBookmarkRequestValidator:new n.AddBookmarkRequestValidator,advancedFilterTypeValidator:new a.EnumValidator([0]),advancedFilterValidator:new l.AdvancedFilterValidator,anyArrayValidator:new a.ArrayValidator([new d.AnyOfValidator([new a.StringValidator,new a.NumberValidator,new a.BooleanValidator])]),anyFilterValidator:new d.AnyOfValidator([new l.BasicFilterValidator,new l.AdvancedFilterValidator,new l.IncludeExcludeFilterValidator,new l.NotSupportedFilterValidator,new l.RelativeDateFilterValidator,new l.TopNFilterValidator,new l.RelativeTimeFilterValidator]),anyValueValidator:new d.AnyOfValidator([new a.StringValidator,new a.NumberValidator,new a.BooleanValidator]),applyBookmarkByNameRequestValidator:new n.ApplyBookmarkByNameRequestValidator,applyBookmarkStateRequestValidator:new n.ApplyBookmarkStateRequestValidator,applyBookmarkValidator:new d.AnyOfValidator([new n.ApplyBookmarkByNameRequestValidator,new n.ApplyBookmarkStateRequestValidator]),backgroundValidator:new a.EnumValidator([0,1]),basicFilterTypeValidator:new a.EnumValidator([1]),basicFilterValidator:new l.BasicFilterValidator,booleanArrayValidator:new a.BooleanArrayValidator,booleanValidator:new a.BooleanValidator,bookmarksPaneValidator:new O.BookmarksPaneValidator,commandDisplayOptionValidator:new a.EnumValidator([0,1,2]),commandExtensionSelectorValidator:new d.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),commandExtensionValidator:new i.CommandExtensionValidator,commandsSettingsArrayValidator:new a.ArrayValidator([new E.CommandsSettingsValidator]),commandsSettingsValidator:new E.CommandsSettingsValidator,conditionItemValidator:new l.ConditionItemValidator,contrastModeValidator:new a.EnumValidator([0,1,2,3,4]),customLayoutDisplayOptionValidator:new a.EnumValidator([0,1,2]),customLayoutValidator:new V.CustomLayoutValidator,customPageSizeValidator:new h.CustomPageSizeValidator,customThemeValidator:new S.CustomThemeValidator,dashboardLoadValidator:new c.DashboardLoadValidator,datasetBindingValidator:new T.DatasetBindingValidator,displayStateModeValidator:new a.EnumValidator([0,1]),displayStateValidator:new V.DisplayStateValidator,exportDataRequestValidator:new g.ExportDataRequestValidator,extensionArrayValidator:new a.ArrayValidator([new i.ExtensionValidator]),extensionPointsValidator:new i.ExtensionPointsValidator,extensionValidator:new i.ExtensionValidator,fieldRequiredValidator:new s.FieldRequiredValidator,fieldsPaneValidator:new O.FieldsPaneValidator,filterColumnTargetValidator:new l.FilterColumnTargetValidator,filterConditionsValidator:new a.ArrayValidator([new l.ConditionItemValidator]),filterHierarchyTargetValidator:new l.FilterHierarchyTargetValidator,filterMeasureTargetValidator:new l.FilterMeasureTargetValidator,filterTargetValidator:new d.AnyOfValidator([new l.FilterColumnTargetValidator,new l.FilterHierarchyTargetValidator,new l.FilterMeasureTargetValidator]),filtersArrayValidator:new a.ArrayValidator([new d.AnyOfValidator([new l.BasicFilterValidator,new l.AdvancedFilterValidator,new l.RelativeDateFilterValidator])]),filtersValidator:new l.FilterValidator,filtersPaneValidator:new O.FiltersPaneValidator,hyperlinkClickBehaviorValidator:new a.EnumValidator([0,1,2]),includeExcludeFilterValidator:new l.IncludeExcludeFilterValidator,includeExludeFilterTypeValidator:new a.EnumValidator([3]),layoutTypeValidator:new a.EnumValidator([0,1,2,3]),loadQnaValidator:new v.LoadQnaValidator,menuExtensionValidator:new i.MenuExtensionValidator,menuLocationValidator:new a.EnumValidator([0,1]),notSupportedFilterTypeValidator:new a.EnumValidator([2]),notSupportedFilterValidator:new l.NotSupportedFilterValidator,numberArrayValidator:new a.NumberArrayValidator,numberValidator:new a.NumberValidator,pageLayoutValidator:new m.MapValidator([new a.StringValidator],[new V.VisualLayoutValidator]),pageNavigationPaneValidator:new O.PageNavigationPaneValidator,pageSizeTypeValidator:new a.EnumValidator([0,1,2,3,4,5]),pageSizeValidator:new h.PageSizeValidator,pageValidator:new h.PageValidator,pageViewFieldValidator:new h.PageViewFieldValidator,pagesLayoutValidator:new m.MapValidator([new a.StringValidator],[new V.PageLayoutValidator]),reportPanesValidator:new O.ReportPanesValidator,permissionsValidator:new a.EnumValidator([0,1,2,4,7]),playBookmarkRequestValidator:new n.PlayBookmarkRequestValidator,qnaInterpretInputDataValidator:new v.QnaInterpretInputDataValidator,qnaSettingValidator:new v.QnaSettingsValidator,relativeDateFilterOperatorValidator:new a.EnumValidator([0,1,2]),relativeDateFilterTimeUnitTypeValidator:new a.EnumValidator([0,1,2,3,4,5,6]),relativeDateFilterTypeValidator:new a.EnumValidator([4]),relativeDateFilterValidator:new l.RelativeDateFilterValidator,relativeTimeFilterTimeUnitTypeValidator:new a.EnumValidator([7,8]),relativeTimeFilterTypeValidator:new a.EnumValidator([7]),relativeTimeFilterValidator:new l.RelativeTimeFilterValidator,reportCreateValidator:new p.ReportCreateValidator,reportLoadValidator:new u.ReportLoadValidator,saveAsParametersValidator:new y.SaveAsParametersValidator,selectionPaneValidator:new O.SelectionPaneValidator,settingsValidator:new o.SettingsValidator,singleCommandSettingsValidator:new E.SingleCommandSettingsValidator,slicerSelectorValidator:new d.AnyOfValidator([new w.VisualSelectorValidator,new w.SlicerTargetSelectorValidator]),slicerStateValidator:new b.SlicerStateValidator,slicerTargetValidator:new d.AnyOfValidator([new l.FilterColumnTargetValidator,new l.FilterHierarchyTargetValidator,new l.FilterMeasureTargetValidator,new l.FilterKeyColumnsTargetValidator,new l.FilterKeyHierarchyTargetValidator]),slicerValidator:new b.SlicerValidator,stringArrayValidator:new a.StringArrayValidator,stringValidator:new a.StringValidator,syncSlicersPaneValidator:new O.SyncSlicersPaneValidator,tileLoadValidator:new f.TileLoadValidator,tokenTypeValidator:new a.EnumValidator([0,1]),topNFilterTypeValidator:new a.EnumValidator([5]),topNFilterValidator:new l.TopNFilterValidator,viewModeValidator:new a.EnumValidator([0,1]),visualCommandSelectorValidator:new d.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),visualHeaderSelectorValidator:new d.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),visualHeaderSettingsValidator:new P.VisualHeaderSettingsValidator,visualHeaderValidator:new P.VisualHeaderValidator,visualHeadersValidator:new a.ArrayValidator([new P.VisualHeaderValidator]),visualizationsPaneValidator:new O.VisualizationsPaneValidator,visualLayoutValidator:new V.VisualLayoutValidator,visualSelectorValidator:new w.VisualSelectorValidator,visualSettingsValidator:new P.VisualSettingsValidator,visualTypeSelectorValidator:new w.VisualTypeSelectorValidator}},function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(){}return t.prototype.validate=function(t,e,r){return null==t?null:"object"!=typeof t||Array.isArray(t)?[{message:void 0!==r?r+" must be an object":"input must be an object",path:e,keyword:"type"}]:null},t}();e.ObjectValidator=a;var i=function(){function t(t){this.itemValidators=t}return t.prototype.validate=function(t,e,r){if(null==t)return null;if(!Array.isArray(t))return[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"type"}];for(var a=0;a>=4,r.toString(16)})}function s(t,e,r){var a=t.indexOf("?")>0?"&":"?";return t+=a+e+"="+r}function u(t,e,r){return t.get("/report/hasUnsavedChanges",{uid:e},r).then(function(t){return!t.body},function(t){throw t.body})}function p(t){return t.toLowerCase().indexOf("/rdlembed?")>=0}function c(t){return t&&decodeURIComponent(t).toLowerCase().indexOf("autoauth=true")>=0}function f(){var t=window.crypto||window.msCrypto,e=new Uint32Array(1);return t.getRandomValues(e),e[0]}e.raiseCustomEvent=r,e.findIndex=a,e.find=i,e.remove=o,e.assign=n,e.createRandomString=l,e.generateUUID=d,e.addParamToUrl=s,e.isSavedInternal=u,e.isRDLEmbed=p,e.autoAuthInEmbedUrl=c,e.getRandomValue=f},function(t,e){var r={version:"2.13.0",type:"js"};Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=r},function(t,e,r){/*! powerbi-models v1.4.0 | (c) 2016 Microsoft Corporation MIT */ +!function(e,r){t.exports=r()}(window,function(){return function(t){function e(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,a){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)e.d(a,i,function(e){return t[e]}.bind(null,i));return a},e.n=function(t){var r=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){function a(t){return l(t)&&!!t.keys}function i(t){return o(t)===ot.Basic&&!!t.keyValues}function o(t){if(t.filterType)return t.filterType;var e=t,r=t;return"string"==typeof e.operator&&Array.isArray(e.values)?ot.Basic:"string"==typeof r.logicalOperator&&Array.isArray(r.conditions)?ot.Advanced:ot.Unknown}function n(t){return void 0!==t.table&&void 0!==t.measure}function l(t){return!(!t.table||!t.column||t.aggregationFunction)}function d(t){return!(!(t.table&&t.hierarchy&&t.hierarchyLevel)||t.aggregationFunction)}function s(t){return!!(t.table&&t.hierarchy&&t.hierarchyLevel&&t.aggregationFunction)}function u(t){return!!(t.table&&t.column&&t.aggregationFunction)}function p(t){var e=t.message;return e||(e=t.path+" is invalid. Not meeting "+t.keyword+" constraint"),{message:e}}function c(t){var r=e.Validators.visualSelectorValidator.validate(t);return r?r.map(p):void 0}function f(t){var r=e.Validators.slicerValidator.validate(t);return r?r.map(p):void 0}function v(t){var r=e.Validators.slicerStateValidator.validate(t);return r?r.map(p):void 0}function h(t){var r=e.Validators.playBookmarkRequestValidator.validate(t);return r?r.map(p):void 0}function y(t){var r=e.Validators.addBookmarkRequestValidator.validate(t);return r?r.map(p):void 0}function m(t){var r=e.Validators.applyBookmarkByNameRequestValidator.validate(t);return r?r.map(p):void 0}function V(t){var r=e.Validators.applyBookmarkStateRequestValidator.validate(t);return r?r.map(p):void 0}function g(t){var r=e.Validators.settingsValidator.validate(t);return r?r.map(p):void 0}function w(t){var r=e.Validators.reportPanesValidator.validate(t);return r?r.map(p):void 0}function b(t){var r=e.Validators.bookmarksPaneValidator.validate(t);return r?r.map(p):void 0}function P(t){var r=e.Validators.filtersPanesValidator.validate(t);return r?r.map(p):void 0}function S(t){var r=e.Validators.fieldsPanesValidator.validate(t);return r?r.map(p):void 0}function E(t){var r=e.Validators.pageNavigationPaneValidator.validate(t);return r?r.map(p):void 0}function T(t){var r=e.Validators.selectionPaneValidator.validate(t);return r?r.map(p):void 0}function O(t){var r=e.Validators.syncSlicersPaneValidator.validate(t);return r?r.map(p):void 0}function _(t){var r=e.Validators.visualizationsPanesValidator.validate(t);return r?r.map(p):void 0}function F(t){var r=e.Validators.customPageSizeValidator.validate(t);return r?r.map(p):void 0}function R(t){var r=e.Validators.extensionValidator.validate(t);return r?r.map(p):void 0}function A(t){var r=e.Validators.reportLoadValidator.validate(t);return r?r.map(p):void 0}function k(t){var r=e.Validators.reportCreateValidator.validate(t);return r?r.map(p):void 0}function C(t){var r=e.Validators.dashboardLoadValidator.validate(t);return r?r.map(p):void 0}function x(t){var r=e.Validators.tileLoadValidator.validate(t);return r?r.map(p):void 0}function M(t){var r=e.Validators.pageValidator.validate(t);return r?r.map(p):void 0}function I(t){var r=e.Validators.filtersValidator.validate(t);return r?r.map(p):void 0}function q(t){var r=e.Validators.saveAsParametersValidator.validate(t);return r?r.map(p):void 0}function L(t){var r=e.Validators.loadQnaValidator.validate(t);return r?r.map(p):void 0}function j(t){var r=e.Validators.qnaInterpretInputDataValidator.validate(t);return r?r.map(p):void 0}function N(t){var r=e.Validators.exportDataRequestValidator.validate(t);return r?r.map(p):void 0}function D(t){var r=e.Validators.visualHeaderValidator.validate(t);return r?r.map(p):void 0}function U(t){var r=e.Validators.visualSettingsValidator.validate(t);return r?r.map(p):void 0}function B(t){var r=e.Validators.commandsSettingsValidator.validate(t);return r?r.map(p):void 0}function W(t){var r=e.Validators.customThemeValidator.validate(t);return r?r.map(p):void 0}var H=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.validateCustomTheme=e.validateCommandsSettings=e.validateVisualSettings=e.validateVisualHeader=e.validateExportDataRequest=e.validateQnaInterpretInputData=e.validateLoadQnaConfiguration=e.validateSaveAsParameters=e.validateFilter=e.validatePage=e.validateTileLoad=e.validateDashboardLoad=e.validateCreateReport=e.validateReportLoad=e.validateExtension=e.validateCustomPageSize=e.validateVisualizationsPane=e.validateSyncSlicersPane=e.validateSelectionPane=e.validatePageNavigationPane=e.validateFieldsPane=e.validateFiltersPane=e.validateBookmarksPane=e.validatePanes=e.validateSettings=e.validateApplyBookmarkStateRequest=e.validateApplyBookmarkByNameRequest=e.validateAddBookmarkRequest=e.validatePlayBookmarkRequest=e.validateSlicerState=e.validateSlicer=e.validateVisualSelector=e.VisualDataRoleKindPreference=e.VisualDataRoleKind=e.CommandDisplayOption=e.SlicerTargetSelector=e.VisualTypeSelector=e.VisualSelector=e.PageSelector=e.Selector=e.SortDirection=e.LegendPosition=e.TextAlignment=e.CommonErrorCodes=e.BookmarksPlayMode=e.ExportDataType=e.QnaMode=e.isColumnAggr=e.isHierarchyLevelAggr=e.isHierarchyLevel=e.isColumn=e.isMeasure=e.getFilterType=e.isBasicFilterWithKeys=e.isFilterKeyColumnsTarget=e.AdvancedFilter=e.TupleFilter=e.BasicFilterWithKeys=e.BasicFilter=e.RelativeTimeFilter=e.RelativeDateFilter=e.TopNFilter=e.IncludeExcludeFilter=e.NotSupportedFilter=e.Filter=e.RelativeDateOperators=e.RelativeDateFilterTimeUnit=e.FilterType=e.FiltersLevel=e.MenuLocation=e.ContrastMode=e.TokenType=e.ViewMode=e.Permissions=e.SectionVisibility=e.HyperlinkClickBehavior=e.LayoutType=e.VisualContainerDisplayMode=e.BackgroundType=e.DisplayOption=e.PageSizeType=e.TraceType=e.Validators=void 0,e.Validators=r(1).Validators;var z;!function(t){t[t.Information=0]="Information",t[t.Verbose=1]="Verbose",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.ExpectedError=4]="ExpectedError",t[t.UnexpectedError=5]="UnexpectedError",t[t.Fatal=6]="Fatal"}(z=e.TraceType||(e.TraceType={}));var J;!function(t){t[t.Widescreen=0]="Widescreen",t[t.Standard=1]="Standard",t[t.Cortana=2]="Cortana",t[t.Letter=3]="Letter",t[t.Custom=4]="Custom"}(J=e.PageSizeType||(e.PageSizeType={}));var Q;!function(t){t[t.FitToPage=0]="FitToPage",t[t.FitToWidth=1]="FitToWidth",t[t.ActualSize=2]="ActualSize"}(Q=e.DisplayOption||(e.DisplayOption={}));var Y;!function(t){t[t.Default=0]="Default",t[t.Transparent=1]="Transparent"}(Y=e.BackgroundType||(e.BackgroundType={}));var G;!function(t){t[t.Visible=0]="Visible",t[t.Hidden=1]="Hidden"}(G=e.VisualContainerDisplayMode||(e.VisualContainerDisplayMode={}));var K;!function(t){t[t.Master=0]="Master",t[t.Custom=1]="Custom",t[t.MobilePortrait=2]="MobilePortrait",t[t.MobileLandscape=3]="MobileLandscape"}(K=e.LayoutType||(e.LayoutType={}));var $;!function(t){t[t.Navigate=0]="Navigate",t[t.NavigateAndRaiseEvent=1]="NavigateAndRaiseEvent",t[t.RaiseEvent=2]="RaiseEvent"}($=e.HyperlinkClickBehavior||(e.HyperlinkClickBehavior={}));var X;!function(t){t[t.AlwaysVisible=0]="AlwaysVisible",t[t.HiddenInViewMode=1]="HiddenInViewMode"}(X=e.SectionVisibility||(e.SectionVisibility={}));var Z;!function(t){t[t.Read=0]="Read",t[t.ReadWrite=1]="ReadWrite",t[t.Copy=2]="Copy",t[t.Create=4]="Create",t[t.All=7]="All"}(Z=e.Permissions||(e.Permissions={}));var tt;!function(t){t[t.View=0]="View",t[t.Edit=1]="Edit"}(tt=e.ViewMode||(e.ViewMode={}));var et;!function(t){t[t.Aad=0]="Aad",t[t.Embed=1]="Embed"}(et=e.TokenType||(e.TokenType={}));var rt;!function(t){t[t.None=0]="None",t[t.HighContrast1=1]="HighContrast1",t[t.HighContrast2=2]="HighContrast2",t[t.HighContrastBlack=3]="HighContrastBlack",t[t.HighContrastWhite=4]="HighContrastWhite"}(rt=e.ContrastMode||(e.ContrastMode={}));var at;!function(t){t[t.Bottom=0]="Bottom",t[t.Top=1]="Top"}(at=e.MenuLocation||(e.MenuLocation={}));var it;!function(t){t[t.Report=0]="Report",t[t.Page=1]="Page",t[t.Visual=2]="Visual"}(it=e.FiltersLevel||(e.FiltersLevel={}));var ot;!function(t){t[t.Advanced=0]="Advanced",t[t.Basic=1]="Basic",t[t.Unknown=2]="Unknown",t[t.IncludeExclude=3]="IncludeExclude",t[t.RelativeDate=4]="RelativeDate",t[t.TopN=5]="TopN",t[t.Tuple=6]="Tuple",t[t.RelativeTime=7]="RelativeTime"}(ot=e.FilterType||(e.FilterType={}));var nt;!function(t){t[t.Days=0]="Days",t[t.Weeks=1]="Weeks",t[t.CalendarWeeks=2]="CalendarWeeks",t[t.Months=3]="Months",t[t.CalendarMonths=4]="CalendarMonths",t[t.Years=5]="Years",t[t.CalendarYears=6]="CalendarYears",t[t.Minutes=7]="Minutes",t[t.Hours=8]="Hours"}(nt=e.RelativeDateFilterTimeUnit||(e.RelativeDateFilterTimeUnit={}));var lt;!function(t){t[t.InLast=0]="InLast",t[t.InThis=1]="InThis",t[t.InNext=2]="InNext"}(lt=e.RelativeDateOperators||(e.RelativeDateOperators={}));var dt=function(){function t(t,e){this.target=t,this.filterType=e}return t.prototype.toJSON=function(){var t={$schema:this.schemaUrl,target:this.target,filterType:this.filterType};return void 0!==this.displaySettings&&(t.displaySettings=this.displaySettings),t},t}();e.Filter=dt;var st=function(t){function e(r,a,i){var o=t.call(this,r,ot.Unknown)||this;return o.message=a,o.notSupportedTypeName=i,o.schemaUrl=e.schemaUrl,o}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.message=this.message,e.notSupportedTypeName=this.notSupportedTypeName,e},e.schemaUrl="http://powerbi.com/product/schema#notSupported",e}(dt);e.NotSupportedFilter=st;var ut=function(t){function e(r,a,i){var o=t.call(this,r,ot.IncludeExclude)||this;return o.values=i,o.isExclude=a,o.schemaUrl=e.schemaUrl,o}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.isExclude=this.isExclude,e.values=this.values,e},e.schemaUrl="http://powerbi.com/product/schema#includeExclude",e}(dt);e.IncludeExcludeFilter=ut;var pt=function(t){function e(r,a,i,o){var n=t.call(this,r,ot.TopN)||this;return n.operator=a,n.itemCount=i,n.schemaUrl=e.schemaUrl,n.orderBy=o,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.itemCount=this.itemCount,e.orderBy=this.orderBy,e},e.schemaUrl="http://powerbi.com/product/schema#topN",e}(dt);e.TopNFilter=pt;var ct=function(t){function e(r,a,i,o,n){var l=t.call(this,r,ot.RelativeDate)||this;return l.operator=a,l.timeUnitsCount=i,l.timeUnitType=o,l.includeToday=n,l.schemaUrl=e.schemaUrl,l}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.timeUnitsCount=this.timeUnitsCount,e.timeUnitType=this.timeUnitType,e.includeToday=this.includeToday,e},e.schemaUrl="http://powerbi.com/product/schema#relativeDate",e}(dt);e.RelativeDateFilter=ct;var ft=function(t){function e(r,a,i,o){var n=t.call(this,r,ot.RelativeTime)||this;return n.operator=a,n.timeUnitsCount=i,n.timeUnitType=o,n.schemaUrl=e.schemaUrl,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.timeUnitsCount=this.timeUnitsCount,e.timeUnitType=this.timeUnitType,e},e.schemaUrl="http://powerbi.com/product/schema#relativeTime",e}(dt);e.RelativeTimeFilter=ft;var vt=function(t){function e(r,a){for(var i=[],o=2;o0&&!i)throw new Error("You should pass the values to be filtered for each key. You passed: no values and "+n+" keys");if(0===n&&i&&i.length>0)throw new Error("You passed key values but your target object doesn't contain the keys to be filtered");for(var l=0;l2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: "+i.length);if(1===l.length&&"And"!==a)throw new Error('Logical Operator must be "And" when there is only one condition provided');return n.conditions=l,n}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.logicalOperator=this.logicalOperator,e.conditions=this.conditions,e},e.schemaUrl="http://powerbi.com/product/schema#advanced",e}(dt);e.AdvancedFilter=mt,e.isFilterKeyColumnsTarget=a,e.isBasicFilterWithKeys=i,e.getFilterType=o,e.isMeasure=n,e.isColumn=l,e.isHierarchyLevel=d,e.isHierarchyLevelAggr=s,e.isColumnAggr=u;var Vt;!function(t){t[t.Interactive=0]="Interactive",t[t.ResultOnly=1]="ResultOnly"}(Vt=e.QnaMode||(e.QnaMode={}));var gt;!function(t){t[t.Summarized=0]="Summarized",t[t.Underlying=1]="Underlying"}(gt=e.ExportDataType||(e.ExportDataType={}));var wt;!function(t){t[t.Off=0]="Off",t[t.Presentation=1]="Presentation"}(wt=e.BookmarksPlayMode||(e.BookmarksPlayMode={})),e.CommonErrorCodes={TokenExpired:"TokenExpired",NotFound:"PowerBIEntityNotFound",InvalidParameters:"Invalid parameters",LoadReportFailed:"LoadReportFailed",NotAuthorized:"PowerBINotAuthorizedException",FailedToLoadModel:"ExplorationContainer_FailedToLoadModel_DefaultDetails"},e.TextAlignment={Left:"left",Center:"center",Right:"right"},e.LegendPosition={Top:"Top",Bottom:"Bottom",Right:"Right",Left:"Left",TopCenter:"TopCenter",BottomCenter:"BottomCenter",RightCenter:"RightCenter",LeftCenter:"LeftCenter"};var bt;!function(t){t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"}(bt=e.SortDirection||(e.SortDirection={}));var Pt=function(){function t(t){this.$schema=t}return t.prototype.toJSON=function(){return{$schema:this.$schema}},t}();e.Selector=Pt;var St=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.pageName=r,a}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.pageName=this.pageName,e},e.schemaUrl="http://powerbi.com/product/schema#pageSelector",e}(Pt);e.PageSelector=St;var Et=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.visualName=r,a}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.visualName=this.visualName,e},e.schemaUrl="http://powerbi.com/product/schema#visualSelector",e}(Pt);e.VisualSelector=Et;var Tt=function(t){function e(e){var r=t.call(this,Et.schemaUrl)||this;return r.visualType=e,r}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.visualType=this.visualType,e},e.schemaUrl="http://powerbi.com/product/schema#visualTypeSelector",e}(Pt);e.VisualTypeSelector=Tt;var Ot=function(t){function e(e){var r=t.call(this,Et.schemaUrl)||this;return r.target=e,r}return H(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.target=this.target,e},e.schemaUrl="http://powerbi.com/product/schema#slicerTargetSelector",e}(Pt);e.SlicerTargetSelector=Ot;var _t;!function(t){t[t.Enabled=0]="Enabled",t[t.Disabled=1]="Disabled",t[t.Hidden=2]="Hidden"}(_t=e.CommandDisplayOption||(e.CommandDisplayOption={}));var Ft;!function(t){t[t.Grouping=0]="Grouping",t[t.Measure=1]="Measure",t[t.GroupingOrMeasure=2]="GroupingOrMeasure"}(Ft=e.VisualDataRoleKind||(e.VisualDataRoleKind={}));var Rt;!function(t){t[t.Measure=0]="Measure",t[t.Grouping=1]="Grouping"}(Rt=e.VisualDataRoleKindPreference||(e.VisualDataRoleKindPreference={})),e.validateVisualSelector=c,e.validateSlicer=f,e.validateSlicerState=v,e.validatePlayBookmarkRequest=h,e.validateAddBookmarkRequest=y,e.validateApplyBookmarkByNameRequest=m,e.validateApplyBookmarkStateRequest=V,e.validateSettings=g,e.validatePanes=w,e.validateBookmarksPane=b,e.validateFiltersPane=P,e.validateFieldsPane=S,e.validatePageNavigationPane=E,e.validateSelectionPane=T,e.validateSyncSlicersPane=O,e.validateVisualizationsPane=_,e.validateCustomPageSize=F,e.validateExtension=R,e.validateReportLoad=A,e.validateCreateReport=k,e.validateDashboardLoad=C,e.validateTileLoad=x,e.validatePage=M,e.validateFilter=I,e.validateSaveAsParameters=q,e.validateLoadQnaConfiguration=L,e.validateQnaInterpretInputData=j,e.validateExportDataRequest=N,e.validateVisualHeader=D,e.validateVisualSettings=U,e.validateCommandsSettings=B,e.validateCustomTheme=W},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var a=r(2),i=r(3),o=r(5),n=r(6),l=r(7),d=r(8),s=r(9),u=r(10),p=r(11),c=r(12),f=r(13),v=r(14),h=r(15),y=r(16),m=r(17),V=r(18),g=r(19),w=r(20),b=r(21),P=r(22),S=r(23),E=r(24),T=r(25),O=r(26),_=r(27);e.Validators={addBookmarkRequestValidator:new n.AddBookmarkRequestValidator,advancedFilterTypeValidator:new a.EnumValidator([0]),advancedFilterValidator:new l.AdvancedFilterValidator,anyArrayValidator:new a.ArrayValidator([new s.AnyOfValidator([new a.StringValidator,new a.NumberValidator,new a.BooleanValidator])]),anyFilterValidator:new s.AnyOfValidator([new l.BasicFilterValidator,new l.AdvancedFilterValidator,new l.IncludeExcludeFilterValidator,new l.NotSupportedFilterValidator,new l.RelativeDateFilterValidator,new l.TopNFilterValidator,new l.RelativeTimeFilterValidator]),anyValueValidator:new s.AnyOfValidator([new a.StringValidator,new a.NumberValidator,new a.BooleanValidator]),actionBarValidator:new _.ActionBarValidator,applyBookmarkByNameRequestValidator:new n.ApplyBookmarkByNameRequestValidator,applyBookmarkStateRequestValidator:new n.ApplyBookmarkStateRequestValidator,applyBookmarkValidator:new s.AnyOfValidator([new n.ApplyBookmarkByNameRequestValidator,new n.ApplyBookmarkStateRequestValidator]),backgroundValidator:new a.EnumValidator([0,1]),basicFilterTypeValidator:new a.EnumValidator([1]),basicFilterValidator:new l.BasicFilterValidator,booleanArrayValidator:new a.BooleanArrayValidator,booleanValidator:new a.BooleanValidator,bookmarksPaneValidator:new O.BookmarksPaneValidator,commandDisplayOptionValidator:new a.EnumValidator([0,1,2]),commandExtensionSelectorValidator:new s.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),commandExtensionValidator:new i.CommandExtensionValidator,commandsSettingsArrayValidator:new a.ArrayValidator([new S.CommandsSettingsValidator]),commandsSettingsValidator:new S.CommandsSettingsValidator,conditionItemValidator:new l.ConditionItemValidator,contrastModeValidator:new a.EnumValidator([0,1,2,3,4]),customLayoutDisplayOptionValidator:new a.EnumValidator([0,1,2]),customLayoutValidator:new V.CustomLayoutValidator,customPageSizeValidator:new v.CustomPageSizeValidator,customThemeValidator:new E.CustomThemeValidator,dashboardLoadValidator:new c.DashboardLoadValidator,datasetBindingValidator:new T.DatasetBindingValidator,displayStateModeValidator:new a.EnumValidator([0,1]),displayStateValidator:new V.DisplayStateValidator,exportDataRequestValidator:new g.ExportDataRequestValidator,extensionArrayValidator:new a.ArrayValidator([new i.ExtensionValidator]),extensionPointsValidator:new i.ExtensionPointsValidator,extensionValidator:new i.ExtensionValidator,fieldRequiredValidator:new d.FieldRequiredValidator,fieldsPaneValidator:new O.FieldsPaneValidator,filterColumnTargetValidator:new l.FilterColumnTargetValidator,filterConditionsValidator:new a.ArrayValidator([new l.ConditionItemValidator]),filterHierarchyTargetValidator:new l.FilterHierarchyTargetValidator,filterMeasureTargetValidator:new l.FilterMeasureTargetValidator,filterTargetValidator:new s.AnyOfValidator([new l.FilterColumnTargetValidator,new l.FilterHierarchyTargetValidator,new l.FilterMeasureTargetValidator]),filtersArrayValidator:new a.ArrayValidator([new s.AnyOfValidator([new l.BasicFilterValidator,new l.AdvancedFilterValidator,new l.RelativeDateFilterValidator,new l.RelativeTimeFilterValidator])]),filtersValidator:new l.FilterValidator,filtersPaneValidator:new O.FiltersPaneValidator,hyperlinkClickBehaviorValidator:new a.EnumValidator([0,1,2]),includeExcludeFilterValidator:new l.IncludeExcludeFilterValidator,includeExludeFilterTypeValidator:new a.EnumValidator([3]),layoutTypeValidator:new a.EnumValidator([0,1,2,3]),loadQnaValidator:new h.LoadQnaValidator,menuExtensionValidator:new i.MenuExtensionValidator,menuLocationValidator:new a.EnumValidator([0,1]),notSupportedFilterTypeValidator:new a.EnumValidator([2]),notSupportedFilterValidator:new l.NotSupportedFilterValidator,numberArrayValidator:new a.NumberArrayValidator,numberValidator:new a.NumberValidator,pageLayoutValidator:new m.MapValidator([new a.StringValidator],[new V.VisualLayoutValidator]),pageNavigationPaneValidator:new O.PageNavigationPaneValidator,pageSizeTypeValidator:new a.EnumValidator([0,1,2,3,4,5]),pageSizeValidator:new v.PageSizeValidator,pageValidator:new v.PageValidator,pageViewFieldValidator:new v.PageViewFieldValidator,pagesLayoutValidator:new m.MapValidator([new a.StringValidator],[new V.PageLayoutValidator]),reportBarsValidator:new _.ReportBarsValidator,reportPanesValidator:new O.ReportPanesValidator,permissionsValidator:new a.EnumValidator([0,1,2,4,7]),playBookmarkRequestValidator:new n.PlayBookmarkRequestValidator,qnaInterpretInputDataValidator:new h.QnaInterpretInputDataValidator,qnaSettingValidator:new h.QnaSettingsValidator,relativeDateFilterOperatorValidator:new a.EnumValidator([0,1,2]),relativeDateFilterTimeUnitTypeValidator:new a.EnumValidator([0,1,2,3,4,5,6]),relativeDateFilterTypeValidator:new a.EnumValidator([4]),relativeDateFilterValidator:new l.RelativeDateFilterValidator,relativeTimeFilterTimeUnitTypeValidator:new a.EnumValidator([7,8]),relativeTimeFilterTypeValidator:new a.EnumValidator([7]),relativeTimeFilterValidator:new l.RelativeTimeFilterValidator,reportCreateValidator:new p.ReportCreateValidator,reportLoadValidator:new u.ReportLoadValidator,saveAsParametersValidator:new y.SaveAsParametersValidator,selectionPaneValidator:new O.SelectionPaneValidator,settingsValidator:new o.SettingsValidator,singleCommandSettingsValidator:new S.SingleCommandSettingsValidator,slicerSelectorValidator:new s.AnyOfValidator([new w.VisualSelectorValidator,new w.SlicerTargetSelectorValidator]),slicerStateValidator:new b.SlicerStateValidator,slicerTargetValidator:new s.AnyOfValidator([new l.FilterColumnTargetValidator,new l.FilterHierarchyTargetValidator,new l.FilterMeasureTargetValidator,new l.FilterKeyColumnsTargetValidator,new l.FilterKeyHierarchyTargetValidator]),slicerValidator:new b.SlicerValidator,stringArrayValidator:new a.StringArrayValidator,stringValidator:new a.StringValidator,syncSlicersPaneValidator:new O.SyncSlicersPaneValidator,tileLoadValidator:new f.TileLoadValidator,tokenTypeValidator:new a.EnumValidator([0,1]),topNFilterTypeValidator:new a.EnumValidator([5]),topNFilterValidator:new l.TopNFilterValidator,viewModeValidator:new a.EnumValidator([0,1]),visualCommandSelectorValidator:new s.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),visualHeaderSelectorValidator:new s.AnyOfValidator([new w.VisualSelectorValidator,new w.VisualTypeSelectorValidator]),visualHeaderSettingsValidator:new P.VisualHeaderSettingsValidator,visualHeaderValidator:new P.VisualHeaderValidator,visualHeadersValidator:new a.ArrayValidator([new P.VisualHeaderValidator]),visualizationsPaneValidator:new O.VisualizationsPaneValidator,visualLayoutValidator:new V.VisualLayoutValidator,visualSelectorValidator:new w.VisualSelectorValidator,visualSettingsValidator:new P.VisualSettingsValidator,visualTypeSelectorValidator:new w.VisualTypeSelectorValidator}},function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.NumberArrayValidator=e.BooleanArrayValidator=e.StringArrayValidator=e.EnumValidator=e.SchemaValidator=e.ValueValidator=e.NumberValidator=e.BooleanValidator=e.StringValidator=e.TypeValidator=e.ArrayValidator=e.ObjectValidator=void 0;var a=function(){function t(){}return t.prototype.validate=function(t,e,r){return null==t?null:"object"!=typeof t||Array.isArray(t)?[{message:void 0!==r?r+" must be an object":"input must be an object",path:e,keyword:"type"}]:null},t}();e.ObjectValidator=a;var i=function(){function t(t){this.itemValidators=t}return t.prototype.validate=function(t,e,r){if(null==t)return null;if(!Array.isArray(t))return[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"type"}];for(var a=0;a2&&"[]"===n.slice(l-2)&&(s=!0,n=n.slice(0,l-2),r[n]||(r[n]=[])),i=o[1]?w(o[1]):""),s?r[n].push(i):r[n]=i}return r},recognize:function(t){var e,r,a,i=[this.rootState],o={},n=!1;if(a=t.indexOf("?"),a!==-1){var l=t.substr(a+1,t.length);t=t.substr(0,a),o=this.parseQueryString(l)}for(t=decodeURI(t),"/"!==t.charAt(0)&&(t="/"+t),e=t.length,e>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),n=!0),r=0;r2&&"[]"===n.slice(l-2)&&(d=!0,n=n.slice(0,l-2),r[n]||(r[n]=[])),i=o[1]?w(o[1]):""),d?r[n].push(i):r[n]=i}return r},recognize:function(t){var e,r,a,i=[this.rootState],o={},n=!1;if(a=t.indexOf("?"),a!==-1){var l=t.substr(a+1,t.length);t=t.substr(0,a),o=this.parseQueryString(l)}for(t=decodeURI(t),"/"!==t.charAt(0)&&(t="/"+t),e=t.length,e>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),n=!0),r=0;r