diff --git a/.config/merlinbot/nudge.yaml b/.config/merlinbot/nudge.yaml deleted file mode 100644 index 9287fbeb..00000000 --- a/.config/merlinbot/nudge.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# To enable or disable -enabled: true -# How many reviewers to Nudge in comment? -maxReviewersToNudge: 3 -# Do not nudge users that are included in the following list -excludeUsers: - - neryac@microsoft.com -# - user2@microsoft.com -# Do not nudge PRs authored by users that are included in the following list -# excludePrsFromAuthors: -# To enable or disable early nudge on pull requests -enableEarlyNudge: false -# Number of days to wait after a pull request is created, to analyze it for an early nudge -earlyNudgeThresholdDays: 1 \ No newline at end of file diff --git a/.config/merlinbot/reviewerrecommender.yaml b/.config/merlinbot/reviewerrecommender.yaml deleted file mode 100644 index 5c5199d9..00000000 --- a/.config/merlinbot/reviewerrecommender.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# Enable/Disable recommender -enabled: true -# How many reviewers to add? -maxReviewers: 2 -# Exclude files/paths in PR to be considered for recommendation -# Please note, these have to specified as a valid GIT based path regex -#excludedPaths: -# - ^/private/Product/PowerBI/IntegrationNuGetPackages/ -# - ^/private/Product/PowerBI/NuGetPackages/ -# Do not make recommendations for reviewers that are included in the following list -excludedReviewers: - - neryac@microsoft.com \ No newline at end of file diff --git a/.gitignore b/.gitignore index 47ea4ce3..72118ebe 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,6 @@ dist/powerbi.js.map package-lock.json demo/package-lock.json .vscode -dist/powerbi.js.LICENSE.min.txt \ No newline at end of file +owners.txt +test/util.spec.ts +.config/tsaoptions.json diff --git a/.npmrc b/.npmrc deleted file mode 100644 index c7c77b63..00000000 --- a/.npmrc +++ /dev/null @@ -1,4 +0,0 @@ -# Auto generated file from Gardener Plugin CentralFeedServiceAdoptionPlugin -registry=https://pkgs.dev.azure.com/powerbi/embedded/_packaging/embedded_PublicPackages/npm/registry/ - -always-auth=true diff --git a/.pipelines/OneBranch.Buddy.yml b/.pipelines/OneBranch.Buddy.yml deleted file mode 100644 index 6c37a0d9..00000000 --- a/.pipelines/OneBranch.Buddy.yml +++ /dev/null @@ -1,189 +0,0 @@ -schedules: -- cron: "0 0 * * SATURDAY" - displayName: CodeQL weekly scan - branches: - include: - - master -################################################################################# -# Onebranch Pipelines - Buddy MSBuild (CDPXMigrated) # -# This pipeline was created by EasyStart from a sample located at: # -# https://aka.ms/obpipelines/easystart/samples # -# Documentation: https://aka.ms/obpipelines # -# Yaml Schema: https://aka.ms/obpipelines/yaml/schema # -# Retail Tasks: https://aka.ms/obpipelines/tasks # -# Support: https://aka.ms/onebranchsup # -################################################################################# - -trigger: none # https://aka.ms/obpipelines/triggers - -parameters: # parameters are shown up in ADO UI in a build queue time -- name: 'debug' - displayName: 'Enable debug output' - type: boolean - default: false - -variables: - system.debug: ${{ parameters.debug }} - ENABLE_PRS_DELAYSIGN: 1 - ROOT: $(Build.SourcesDirectory) - REPOROOT: $(Build.SourcesDirectory) - OUTPUTROOT: $(REPOROOT)\out - NUGET_XMLDOC_MODE: skip - - WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest' # Docker image which is used to build the project https://aka.ms/obpipelines/containers - -resources: - repositories: - - repository: templates - type: git - name: OneBranch.Pipelines/GovernedTemplates - ref: refs/heads/main - -extends: - template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates - parameters: - globalSdl: # https://aka.ms/obpipelines/sdl - tsa: - enabled: false # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode. - cg: - failOnAlert: false - - stages: - - stage: build - jobs: - - job: main - pool: - type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs - - variables: # More settings at https://aka.ms/obpipelines/yaml/jobs - ob_outputDirectory: '$(OUTPUTROOT)' # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts - ob_sdl_binskim_break: true # https://aka.ms/obpipelines/sdl - ob_artifactBaseName: 'drop' - ob_sdl_cg_failOnAlert: false - ob_sdl_codeSignValidation_excludes: 'regex|.+(?:exe|dll)$;-|*.nd.dll;-|.gdn\**' - - steps: - # Custom Versioning - we will build the version using package.json in versioning commands. - - task: PowerShell@2 - displayName: 'Set Version' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\version.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - # Add the versioning task after running Version script - - task: onebranch.pipeline.version@1 - inputs: - system: 'Custom' - customVersion: '$(CustomBuildNumber)' - - - task: NodeTool@0 - displayName: 'Install Node.js' - inputs: - versionSpec: '16.x' - - - task: npmAuthenticate@0 - displayName: 'NPM Authenticate' - inputs: - workingFile: '$(Build.SourcesDirectory)/.npmrc' - - - task: PowerShell@2 - displayName: 'Restore' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\restore.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: PowerShell@2 - displayName: 'Build' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\build.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: onebranch.pipeline.signing@1 - displayName: 'Sign binaries' - inputs: - command: 'sign' - signing_environment: 'azure-ado' - signing_profile: 'internal_azure_service' - files_to_sign: 'dist\**\*' - search_root: '$(Build.SourcesDirectory)' - - - task: PowerShell@2 - displayName: 'Package' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\package.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: NuGetToolInstaller@1 - displayName: 'Install Nuget' - inputs: - versionSpec: '*' - checkLatest: true - - - task: PowerShell@2 - displayName: 'Nuget Package' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\nuget_pack.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - # Copying build artifacts to the Output folder - - task: CopyFiles@2 - displayName: 'Copy Dist to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - dist\**\* - LICENSE.txt - package.json - README.md - TargetFolder: '$(OUTPUTROOT)\outputs\build\build_artifacts' - - # Copying source artifacts to the Output folder - - task: CopyFiles@2 - displayName: 'Copy source to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - **\* - !**\.pipelines\**\* - !**\.vscode\**\* - !**\test\**\*.* - !**\demo\**\* - !**\dist\**\* - !**\out\**\* - !**\*.tgz - !**\**.nupkg - !**\node_modules\**\* - TargetFolder: '$(OUTPUTROOT)\outputs\build\source' - - # Copying tgz package to the Output folder - - task: CopyFiles@2 - displayName: 'Copy tgz-package to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - *.tgz - TargetFolder: '$(OUTPUTROOT)\outputs\package\tgz-package' - - # Copying nuget pack to the Output folder - - task: CopyFiles@2 - displayName: 'Copy nuget pack to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - Microsoft.PowerBI.JavaScript.*.nupkg - TargetFolder: '$(OUTPUTROOT)\outputs\package\Release' - - # Signing the files created by the build and packaging script - - task: onebranch.pipeline.signing@1 - displayName: 'Sign binaries' - inputs: - command: 'sign' - signing_environment: 'azure-ado' - signing_profile: 'internal_azure_service' - files_to_sign: '**' - search_root: '$(OUTPUTROOT)' diff --git a/.pipelines/OneBranch.Official.yml b/.pipelines/OneBranch.Official.yml deleted file mode 100644 index 0e254b5b..00000000 --- a/.pipelines/OneBranch.Official.yml +++ /dev/null @@ -1,195 +0,0 @@ -schedules: -- cron: "0 0 * * SATURDAY" - displayName: CodeQL weekly scan - branches: - include: - - master -################################################################################# -# Onebranch Pipelines - Official MSBuild (CDPXMigrated) # -# This pipeline was created by EasyStart from a sample located at: # -# https://aka.ms/obpipelines/easystart/samples # -# Documentation: https://aka.ms/obpipelines # -# Yaml Schema: https://aka.ms/obpipelines/yaml/schema # -# Retail Tasks: https://aka.ms/obpipelines/tasks # -# Support: https://aka.ms/onebranchsup # -################################################################################# - -trigger: none # https://aka.ms/obpipelines/triggers - -parameters: # parameters are shown up in ADO UI in a build queue time -- name: 'debug' - displayName: 'Enable debug output' - type: boolean - default: false - -variables: - system.debug: ${{ parameters.debug }} - ENABLE_PRS_DELAYSIGN: 1 - ROOT: $(Build.SourcesDirectory) - REPOROOT: $(Build.SourcesDirectory) - OUTPUTROOT: $(REPOROOT)\out - NUGET_XMLDOC_MODE: skip - ${{ if eq(variables['Build.DefinitionName'], 'powerbi-javascript-Official') }}: - obpTemplate: v2/OneBranch.Official.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates - ${{ else }}: - obpTemplate: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates - WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest' # Docker image which is used to build the project https://aka.ms/obpipelines/containers - -resources: - repositories: - - repository: templates - type: git - name: OneBranch.Pipelines/GovernedTemplates - ref: refs/heads/main - -extends: - template: ${{ variables.obpTemplate }} - parameters: - globalSdl: # https://aka.ms/obpipelines/sdl - tsa: - enabled: true - codeql: - compiled: - enabled: true - cg: - failOnAlert: false - - stages: - - stage: build - jobs: - - job: main - pool: - type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs - - variables: - ob_outputDirectory: '$(OUTPUTROOT)' # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts - ob_sdl_binskim_break: true # https://aka.ms/obpipelines/sdl - ob_artifactBaseName: 'drop' - ob_sdl_cg_failOnAlert: false - ob_sdl_codeSignValidation_excludes: 'regex|.+(?:exe|dll)$;-|*.nd.dll;-|.gdn\**' - - steps: - # Custom Versioning - we will build the version using package.json in versioning commands. - - task: PowerShell@2 - displayName: 'Set Version' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\version.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - # Add the versioning task after running Version script - - task: onebranch.pipeline.version@1 - inputs: - system: 'Custom' - customVersion: '$(CustomBuildNumber)' - - - task: NodeTool@0 - displayName: 'Install Node.js' - inputs: - versionSpec: '16.x' - - - task: npmAuthenticate@0 - displayName: 'NPM Authenticate' - inputs: - workingFile: '$(Build.SourcesDirectory)/.npmrc' - - - task: PowerShell@2 - displayName: 'Restore' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\restore.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: PowerShell@2 - displayName: 'Build' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\build.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: onebranch.pipeline.signing@1 - displayName: 'Sign binaries' - inputs: - command: 'sign' - signing_environment: 'azure-ado' - signing_profile: 'internal_azure_service' - files_to_sign: 'dist\**\*' - search_root: '$(Build.SourcesDirectory)' - - - task: PowerShell@2 - displayName: 'Package' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\package.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - - task: NuGetToolInstaller@1 - displayName: 'Install Nuget' - inputs: - versionSpec: '*' - checkLatest: true - - - task: PowerShell@2 - displayName: 'Nuget Package' - inputs: - targetType: 'filePath' - filePath: '$(Build.SourcesDirectory)\.pipelines\nuget_pack.ps1' - workingDirectory: '$(Build.SourcesDirectory)' - - # Copying build artifacts to the Output folder - - task: CopyFiles@2 - displayName: 'Copy Dist to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - dist\**\* - LICENSE.txt - package.json - README.md - TargetFolder: '$(OUTPUTROOT)\outputs\build\build_artifacts' - - # Copying source artifacts to the Output folder - - task: CopyFiles@2 - displayName: 'Copy source to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - **\* - !.pipelines\**\* - !.vscode\**\* - !demo\**\* - !dist\**\* - !node_modules\**\* - !**\out\**\* - !**\test\**\*.* - !**\*.tgz - !**\**.nupkg - TargetFolder: '$(OUTPUTROOT)\outputs\build\source' - - # Copying tgz package to the Output folder. - - task: CopyFiles@2 - displayName: 'Copy tgz-package to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - *.tgz - TargetFolder: '$(OUTPUTROOT)\outputs\package\tgz-package' - - # Copying nuget pack to the Output folder - - task: CopyFiles@2 - displayName: 'Copy nuget pack to Output folder' - inputs: - SourceFolder: $(Build.SourcesDirectory) - Contents: | - Microsoft.PowerBI.JavaScript.*.nupkg - TargetFolder: '$(OUTPUTROOT)\outputs\package\Release' - - # Signing the files created by the build and packaging script - - task: onebranch.pipeline.signing@1 - displayName: 'Sign binaries' - inputs: - command: 'sign' - signing_environment: 'azure-ado' - signing_profile: 'internal_azure_service' - files_to_sign: '**' - search_root: '$(OUTPUTROOT)' \ No newline at end of file diff --git a/.pipelines/build.ps1 b/.pipelines/build.ps1 deleted file mode 100644 index a32fe43d..00000000 --- a/.pipelines/build.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -$exitCode = 0; - -Write-Host "start: npm run build" -& npm run build -Write-Host "done: npm run build" - -$exitCode += $LASTEXITCODE; - -Write-Host "start: Get dist folder files" -& dir "dist" -Write-Host "Done: Get dist folder files" - -exit $exitCode \ No newline at end of file diff --git a/.pipelines/nuget_pack.ps1 b/.pipelines/nuget_pack.ps1 deleted file mode 100644 index bb2a7021..00000000 --- a/.pipelines/nuget_pack.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -Write-Host "Start running nuget_pack.ps1" - -$versionNumber = (Get-Content "package.json") -join "`n" | ConvertFrom-Json | Select -ExpandProperty "version" -$exitCode = 0; - -Write-Host "Nuget Pack PowerBI.JavaScript.nuspec -Version "$versionNumber -& nuget pack "PowerBI.JavaScript.nuspec" -Version $versionNumber - -$exitCode += $LASTEXITCODE; - -exit $exitCode \ No newline at end of file diff --git a/.pipelines/package.ps1 b/.pipelines/package.ps1 deleted file mode 100644 index 54401656..00000000 --- a/.pipelines/package.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -$exitCode = 0; - -Write-Host "start: npm pack" -& npm pack -Write-Host "done: npm pack" - -$exitCode += $LASTEXITCODE; - -Write-Host "start: Get content of current folder" -& dir -Write-Host "done: Get content of current folder" - -exit $exitCode \ No newline at end of file diff --git a/.pipelines/restore.ps1 b/.pipelines/restore.ps1 deleted file mode 100644 index 3aa88f61..00000000 --- a/.pipelines/restore.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -Write-Host "Start build ..." -Write-Host "Global node/npm paths ..." -& where.exe npm -& where.exe node - -Write-Host "Global node version" -& node -v - -Write-Host "Global npm version" -& npm -v - -$exitCode = 0; - -Write-Host "start: try install latest npm version" -& npm install npm@latest -g -Write-Host "done: try install latest npm version" - -# Do not update $exitCode because we do not want to fail if install latest npm version fails. - -Write-Host "start: npm install" -& npm install --no-audit --no-save -Write-Host "done: npm install" -$exitCode += $LASTEXITCODE; - -exit $exitCode \ No newline at end of file diff --git a/.pipelines/test.ps1 b/.pipelines/test.ps1 deleted file mode 100644 index 625ca890..00000000 --- a/.pipelines/test.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -$exitCode = 0; - -Write-Host "start: npm run test" -& npm run test -Write-Host "done: npm run test" - -$exitCode += $LASTEXITCODE; - -exit $exitCode; \ No newline at end of file diff --git a/.pipelines/version.ps1 b/.pipelines/version.ps1 deleted file mode 100644 index 505b262c..00000000 --- a/.pipelines/version.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -try { - # package.json is in root folder, while version.ps1 runs in .pipelines folder. - $version = (Get-Content "package.json") -join "`n" | ConvertFrom-Json | Select -ExpandProperty "version" - $buildNumber = "$version" - - Write-Host "Build Number is" $buildNumber - - Write-Host "##vso[task.setvariable variable=CustomBuildNumber]${buildNumber}" # This will allow you to use it from env var in later steps of the same phase -} -catch { - Write-Error $_.Exception - exit 1; -} diff --git a/README.md b/README.md index 54b20c16..4460a688 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # powerbi-client -JavaScript library for embedding Power BI into your apps. +A client side library for embedding Power BI using JavaScript or TypeScript into your apps. [![Build Status](https://img.shields.io/travis/Microsoft/PowerBI-JavaScript/master.svg)](https://travis-ci.org/Microsoft/PowerBI-JavaScript) [![NPM Version](https://img.shields.io/npm/v/powerbi-client.svg)](https://www.npmjs.com/package/powerbi-client) @@ -9,14 +9,14 @@ JavaScript library for embedding Power BI into your apps. [![GitHub tag](https://img.shields.io/github/tag/microsoft/powerbi-javascript.svg)](https://github.com/Microsoft/PowerBI-JavaScript/tags) [![Gitter](https://img.shields.io/gitter/room/Microsoft/PowerBI-JavaScript.svg)](https://gitter.im/Microsoft/PowerBI-JavaScript) -## Wiki -See the [wiki](https://github.com/Microsoft/PowerBI-JavaScript/wiki) for more details about embedding, service configuration, setting a default page, page navigation, dynamically applying filters, and more. +## Documentation +See the [Power BI embedded analytics Client APIs documentation](https://docs.microsoft.com/javascript/api/overview/powerbi/) to learn how to embed a Power BI report in your application and how to use the client APIs. -## Code Docs -See the [code docs](https://microsoft.github.io/PowerBI-JavaScript) for detailed information about classes, interfaces, types, etc. +## Reference +See the [library reference](https://docs.microsoft.com/en-us/javascript/api/powerbi/powerbi-client/) for detailed information about classes, interfaces, types, etc. -## Demo -New [live demo](https://microsoft.github.io/PowerBI-JavaScript/demo) for a sample application using the `powerbi-client` library in scenarios such as page navigation, applying filters, updating settings, and more. +## Playground +The [playground](https://aka.ms/pbieplayground) is the home for Power BI embedded analytics, where you can get hands-on coding experience, embed your own reports, and interact with our client APIs to see instant results. In addition, you’ll find there our interactive showcases to get inspiration regarding how you can apply these features in your applications. Lastly, we’ve created a new learning center to help you find all the relevant samples, tutorials, and documentation you’ll need for a successful integration. ## Installation @@ -55,4 +55,4 @@ This project welcomes contributions and suggestions. Most contributions require When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments \ No newline at end of file +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments diff --git a/demo/.npmrc b/demo/.npmrc deleted file mode 100644 index c7c77b63..00000000 --- a/demo/.npmrc +++ /dev/null @@ -1,4 +0,0 @@ -# Auto generated file from Gardener Plugin CentralFeedServiceAdoptionPlugin -registry=https://pkgs.dev.azure.com/powerbi/embedded/_packaging/embedded_PublicPackages/npm/registry/ - -always-auth=true diff --git a/dist/powerbi.min.js b/dist/powerbi.min.js index a81d41d4..702ca6f2 100644 --- a/dist/powerbi.min.js +++ b/dist/powerbi.min.js @@ -2,4 +2,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /*! For license information please see powerbi.js.LICENSE.txt */ -!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,(()=>(()=>{var t={319:t=>{var e;self,e=()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.HttpPostMessage=void 0;var r=function(){function t(t,e,r){void 0===e&&(e={}),this.defaultHeaders=e,this.defaultTargetWindow=r,this.windowPostMessageProxy=t}return t.addTrackingProperties=function(t,e){return t.headers=t.headers||{},e&&e.id&&(t.headers.id=e.id),t},t.getTrackingProperties=function(t){return{id:t.headers&&t.headers.id}},t.isErrorMessage=function(t){return"number"==typeof(t&&t.statusCode)&&!(200<=t.statusCode&&t.statusCode<300)},t.prototype.get=function(t,e,r,i){return void 0===e&&(e={}),void 0===r&&(r=this.defaultTargetWindow),this.send({method:"GET",url:t,headers:e},r,i)},t.prototype.post=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"POST",url:t,headers:r,body:e},i,a)},t.prototype.put=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"PUT",url:t,headers:r,body:e},i,a)},t.prototype.patch=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"PATCH",url:t,headers:r,body:e},i,a)},t.prototype.delete=function(t,e,r,i,a){return void 0===e&&(e=null),void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"DELETE",url:t,headers:r,body:e},i,a)},t.prototype.send=function(t,e,r){if(void 0===e&&(e=this.defaultTargetWindow),t.headers=this.assign({},this.defaultHeaders,t.headers),!e)throw new Error("target window is not provided. You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class.");return this.windowPostMessageProxy.postMessage(e,t,r)},t.prototype.assign=function(t){for(var e=[],r=1;r(()=>{var t=[function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.TextAlignment=e.CommonErrorCodes=e.BookmarksPlayMode=e.ExportDataType=e.QnaMode=e.PageNavigationPosition=e.BrowserPrintAdjustmentsMode=e.AggregateFunction=e.DataCacheMode=e.CredentialType=e.isPercentOfGrandTotal=e.isColumnAggr=e.isHierarchyLevelAggr=e.isHierarchyLevel=e.isColumn=e.isMeasure=e.getFilterType=e.isBasicFilterWithKeys=e.isFilterKeyColumnsTarget=e.HierarchyFilter=e.AdvancedFilter=e.TupleFilter=e.IdentityFilter=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.FiltersOperations=e.MenuLocation=e.ContrastMode=e.TokenType=e.ViewMode=e.Permissions=e.SectionVisibility=e.ReportAlignment=e.HyperlinkClickBehavior=e.LayoutType=e.VisualContainerDisplayMode=e.BackgroundType=e.DisplayOption=e.PageSizeType=e.TraceType=void 0,e.validateVisualHeader=e.validateExportDataRequest=e.validateQnaInterpretInputData=e.validateLoadQnaConfiguration=e.validateSaveAsParameters=e.validateUpdateFiltersRequest=e.validateFilter=e.validatePage=e.validateTileLoad=e.validateDashboardLoad=e.validateQuickCreate=e.validateCreateReport=e.validatePaginatedReportLoad=e.validateReportLoad=e.validateMenuGroupExtension=e.validateExtension=e.validateCustomPageSize=e.validateVisualizationsPane=e.validateSyncSlicersPane=e.validateSelectionPane=e.validatePageNavigationPane=e.validateFieldsPane=e.validateFiltersPane=e.validateBookmarksPane=e.validatePanes=e.validateSettings=e.validateCaptureBookmarkRequest=e.validateApplyBookmarkStateRequest=e.validateApplyBookmarkByNameRequest=e.validateAddBookmarkRequest=e.validatePlayBookmarkRequest=e.validateSlicerState=e.validateSlicer=e.validateVisualSelector=e.isIExtensionArray=e.isIExtensions=e.isGroupedMenuExtension=e.isFlatMenuExtension=e.isReportFiltersArray=e.isOnLoadFilters=e.VisualDataRoleKindPreference=e.VisualDataRoleKind=e.CommandDisplayOption=e.SlicerTargetSelector=e.VisualTypeSelector=e.VisualSelector=e.PageSelector=e.Selector=e.SortDirection=e.LegendPosition=void 0,e.validatePrintSettings=e.validateZoomLevel=e.validateCustomTheme=e.validateCommandsSettings=e.validateVisualSettings=void 0;var o,n,l,s,u,d,c,p,f,h,v,y,m,V,g,b,w,P,S,O=r(1);(S=e.TraceType||(e.TraceType={}))[S.Information=0]="Information",S[S.Verbose=1]="Verbose",S[S.Warning=2]="Warning",S[S.Error=3]="Error",S[S.ExpectedError=4]="ExpectedError",S[S.UnexpectedError=5]="UnexpectedError",S[S.Fatal=6]="Fatal",(P=e.PageSizeType||(e.PageSizeType={}))[P.Widescreen=0]="Widescreen",P[P.Standard=1]="Standard",P[P.Cortana=2]="Cortana",P[P.Letter=3]="Letter",P[P.Custom=4]="Custom",P[P.Mobile=5]="Mobile",(w=e.DisplayOption||(e.DisplayOption={}))[w.FitToPage=0]="FitToPage",w[w.FitToWidth=1]="FitToWidth",w[w.ActualSize=2]="ActualSize",(b=e.BackgroundType||(e.BackgroundType={}))[b.Default=0]="Default",b[b.Transparent=1]="Transparent",(g=e.VisualContainerDisplayMode||(e.VisualContainerDisplayMode={}))[g.Visible=0]="Visible",g[g.Hidden=1]="Hidden",(V=e.LayoutType||(e.LayoutType={}))[V.Master=0]="Master",V[V.Custom=1]="Custom",V[V.MobilePortrait=2]="MobilePortrait",V[V.MobileLandscape=3]="MobileLandscape",(m=e.HyperlinkClickBehavior||(e.HyperlinkClickBehavior={}))[m.Navigate=0]="Navigate",m[m.NavigateAndRaiseEvent=1]="NavigateAndRaiseEvent",m[m.RaiseEvent=2]="RaiseEvent",(y=e.ReportAlignment||(e.ReportAlignment={}))[y.Left=0]="Left",y[y.Center=1]="Center",y[y.Right=2]="Right",y[y.None=3]="None",(v=e.SectionVisibility||(e.SectionVisibility={}))[v.AlwaysVisible=0]="AlwaysVisible",v[v.HiddenInViewMode=1]="HiddenInViewMode",(h=e.Permissions||(e.Permissions={}))[h.Read=0]="Read",h[h.ReadWrite=1]="ReadWrite",h[h.Copy=2]="Copy",h[h.Create=4]="Create",h[h.All=7]="All",(f=e.ViewMode||(e.ViewMode={}))[f.View=0]="View",f[f.Edit=1]="Edit",(p=e.TokenType||(e.TokenType={}))[p.Aad=0]="Aad",p[p.Embed=1]="Embed",(c=e.ContrastMode||(e.ContrastMode={}))[c.None=0]="None",c[c.HighContrast1=1]="HighContrast1",c[c.HighContrast2=2]="HighContrast2",c[c.HighContrastBlack=3]="HighContrastBlack",c[c.HighContrastWhite=4]="HighContrastWhite",(d=e.MenuLocation||(e.MenuLocation={}))[d.Bottom=0]="Bottom",d[d.Top=1]="Top",(u=e.FiltersOperations||(e.FiltersOperations={}))[u.RemoveAll=0]="RemoveAll",u[u.ReplaceAll=1]="ReplaceAll",u[u.Add=2]="Add",u[u.Replace=3]="Replace",(s=e.FiltersLevel||(e.FiltersLevel={}))[s.Report=0]="Report",s[s.Page=1]="Page",s[s.Visual=2]="Visual",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",t[t.Identity=8]="Identity",t[t.Hierarchy=9]="Hierarchy"}(o=e.FilterType||(e.FilterType={})),(l=e.RelativeDateFilterTimeUnit||(e.RelativeDateFilterTimeUnit={}))[l.Days=0]="Days",l[l.Weeks=1]="Weeks",l[l.CalendarWeeks=2]="CalendarWeeks",l[l.Months=3]="Months",l[l.CalendarMonths=4]="CalendarMonths",l[l.Years=5]="Years",l[l.CalendarYears=6]="CalendarYears",l[l.Minutes=7]="Minutes",l[l.Hours=8]="Hours",(n=e.RelativeDateOperators||(e.RelativeDateOperators={}))[n.InLast=0]="InLast",n[n.InThis=1]="InThis",n[n.InNext=2]="InNext";var _=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=_;var E=function(t){function e(r,i,a){var n=t.call(this,r,o.Unknown)||this;return n.message=i,n.notSupportedTypeName=a,n.schemaUrl=e.schemaUrl,n}return a(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}(_);e.NotSupportedFilter=E;var T=function(t){function e(r,i,a){var n=t.call(this,r,o.IncludeExclude)||this;return n.values=a,n.isExclude=i,n.schemaUrl=e.schemaUrl,n}return a(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}(_);e.IncludeExcludeFilter=T;var F=function(t){function e(r,i,a,n){var l=t.call(this,r,o.TopN)||this;return l.operator=i,l.itemCount=a,l.schemaUrl=e.schemaUrl,l.orderBy=n,l}return a(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}(_);e.TopNFilter=F;var C=function(t){function e(r,i,a,n,l){var s=t.call(this,r,o.RelativeDate)||this;return s.operator=i,s.timeUnitsCount=a,s.timeUnitType=n,s.includeToday=l,s.schemaUrl=e.schemaUrl,s}return a(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}(_);e.RelativeDateFilter=C;var R=function(t){function e(r,i,a,n){var l=t.call(this,r,o.RelativeTime)||this;return l.operator=i,l.timeUnitsCount=a,l.timeUnitType=n,l.schemaUrl=e.schemaUrl,l}return a(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}(_);e.RelativeTimeFilter=R;var k=function(t){function e(r,i){for(var a=[],n=2;n0&&!a)throw new Error("You should pass the values to be filtered for each key. You passed: no values and ".concat(n," keys"));if(0===n&&a&&a.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,s=o.keyValues;l2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: ".concat(a.length));if(1===l.length&&"And"!==i)throw new Error('Logical Operator must be "And" when there is only one condition provided');return s.conditions=l,s}return a(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}(_);e.AdvancedFilter=M;var I,L,q,D,N,B,U,H,W,z=function(t){function e(r,i){var a=t.call(this,r,o.Hierarchy)||this;return a.schemaUrl=e.schemaUrl,a.hierarchyData=i,a}return a(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.hierarchyData=this.hierarchyData,e.target=this.target,e},e.schemaUrl="http://powerbi.com/product/schema#hierarchy",e}(_);function Q(t){if(t.filterType)return t.filterType;var e=t,r=t;return"string"==typeof e.operator&&Array.isArray(e.values)?o.Basic:"string"==typeof r.logicalOperator&&Array.isArray(r.conditions)?o.Advanced:o.Unknown}function G(t){return!(!t.table||!t.column||t.aggregationFunction)}e.HierarchyFilter=z,e.isFilterKeyColumnsTarget=function(t){return G(t)&&!!t.keys},e.isBasicFilterWithKeys=function(t){return Q(t)===o.Basic&&!!t.keyValues},e.getFilterType=Q,e.isMeasure=function(t){return void 0!==t.table&&void 0!==t.measure},e.isColumn=G,e.isHierarchyLevel=function(t){return!(!(t.table&&t.hierarchy&&t.hierarchyLevel)||t.aggregationFunction)},e.isHierarchyLevelAggr=function(t){return!!(t.table&&t.hierarchy&&t.hierarchyLevel&&t.aggregationFunction)},e.isColumnAggr=function(t){return!!(t.table&&t.column&&t.aggregationFunction)},e.isPercentOfGrandTotal=function(t){return!!t.percentOfGrandTotal},(W=e.CredentialType||(e.CredentialType={}))[W.NoConnection=0]="NoConnection",W[W.OnBehalfOf=1]="OnBehalfOf",W[W.Anonymous=2]="Anonymous",(H=e.DataCacheMode||(e.DataCacheMode={}))[H.Import=0]="Import",H[H.DirectQuery=1]="DirectQuery",(U=e.AggregateFunction||(e.AggregateFunction={}))[U.Default=1]="Default",U[U.None=2]="None",U[U.Sum=3]="Sum",U[U.Min=4]="Min",U[U.Max=5]="Max",U[U.Count=6]="Count",U[U.Average=7]="Average",U[U.DistinctCount=8]="DistinctCount",(B=e.BrowserPrintAdjustmentsMode||(e.BrowserPrintAdjustmentsMode={}))[B.Default=0]="Default",B[B.NoAdjustments=1]="NoAdjustments",(N=e.PageNavigationPosition||(e.PageNavigationPosition={}))[N.Bottom=0]="Bottom",N[N.Left=1]="Left",(D=e.QnaMode||(e.QnaMode={}))[D.Interactive=0]="Interactive",D[D.ResultOnly=1]="ResultOnly",(q=e.ExportDataType||(e.ExportDataType={}))[q.Summarized=0]="Summarized",q[q.Underlying=1]="Underlying",(L=e.BookmarksPlayMode||(e.BookmarksPlayMode={}))[L.Off=0]="Off",L[L.Presentation=1]="Presentation",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"},(I=e.SortDirection||(e.SortDirection={}))[I.Ascending=1]="Ascending",I[I.Descending=2]="Descending";var J=function(){function t(t){this.$schema=t}return t.prototype.toJSON=function(){return{$schema:this.$schema}},t}();e.Selector=J;var K=function(t){function e(r){var i=t.call(this,e.schemaUrl)||this;return i.pageName=r,i}return a(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}(J);e.PageSelector=K;var Y=function(t){function e(r){var i=t.call(this,e.schemaUrl)||this;return i.visualName=r,i}return a(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}(J);e.VisualSelector=Y;var $=function(t){function e(e){var r=t.call(this,Y.schemaUrl)||this;return r.visualType=e,r}return a(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}(J);e.VisualTypeSelector=$;var Z,X,tt,et=function(t){function e(e){var r=t.call(this,Y.schemaUrl)||this;return r.target=e,r}return a(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}(J);function rt(t){return Array.isArray(t)}function it(t){return t&&!!t.groupName}function at(t){return Array.isArray(t)}function ot(t){var e=t.message;return e||(e="".concat(t.path," is invalid. Not meeting ").concat(t.keyword," constraint")),{message:e}}e.SlicerTargetSelector=et,(tt=e.CommandDisplayOption||(e.CommandDisplayOption={}))[tt.Enabled=0]="Enabled",tt[tt.Disabled=1]="Disabled",tt[tt.Hidden=2]="Hidden",(X=e.VisualDataRoleKind||(e.VisualDataRoleKind={}))[X.Grouping=0]="Grouping",X[X.Measure=1]="Measure",X[X.GroupingOrMeasure=2]="GroupingOrMeasure",(Z=e.VisualDataRoleKindPreference||(e.VisualDataRoleKindPreference={}))[Z.Measure=0]="Measure",Z[Z.Grouping=1]="Grouping",e.isOnLoadFilters=function(t){return t&&!rt(t)},e.isReportFiltersArray=rt,e.isFlatMenuExtension=function(t){return t&&!it(t)},e.isGroupedMenuExtension=it,e.isIExtensions=function(t){return t&&!at(t)},e.isIExtensionArray=at,e.validateVisualSelector=function(t){var e=O.Validators.visualSelectorValidator.validate(t);return e?e.map(ot):void 0},e.validateSlicer=function(t){var e=O.Validators.slicerValidator.validate(t);return e?e.map(ot):void 0},e.validateSlicerState=function(t){var e=O.Validators.slicerStateValidator.validate(t);return e?e.map(ot):void 0},e.validatePlayBookmarkRequest=function(t){var e=O.Validators.playBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateAddBookmarkRequest=function(t){var e=O.Validators.addBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateApplyBookmarkByNameRequest=function(t){var e=O.Validators.applyBookmarkByNameRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateApplyBookmarkStateRequest=function(t){var e=O.Validators.applyBookmarkStateRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateCaptureBookmarkRequest=function(t){var e=O.Validators.captureBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateSettings=function(t){var e=O.Validators.settingsValidator.validate(t);return e?e.map(ot):void 0},e.validatePanes=function(t){var e=O.Validators.reportPanesValidator.validate(t);return e?e.map(ot):void 0},e.validateBookmarksPane=function(t){var e=O.Validators.bookmarksPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateFiltersPane=function(t){var e=O.Validators.filtersPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateFieldsPane=function(t){var e=O.Validators.fieldsPaneValidator.validate(t);return e?e.map(ot):void 0},e.validatePageNavigationPane=function(t){var e=O.Validators.pageNavigationPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateSelectionPane=function(t){var e=O.Validators.selectionPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateSyncSlicersPane=function(t){var e=O.Validators.syncSlicersPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualizationsPane=function(t){var e=O.Validators.visualizationsPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateCustomPageSize=function(t){var e=O.Validators.customPageSizeValidator.validate(t);return e?e.map(ot):void 0},e.validateExtension=function(t){var e=O.Validators.extensionValidator.validate(t);return e?e.map(ot):void 0},e.validateMenuGroupExtension=function(t){var e=O.Validators.menuGroupExtensionValidator.validate(t);return e?e.map(ot):void 0},e.validateReportLoad=function(t){var e=O.Validators.reportLoadValidator.validate(t);return e?e.map(ot):void 0},e.validatePaginatedReportLoad=function(t){var e=O.Validators.paginatedReportLoadValidator.validate(t);return e?e.map(ot):void 0},e.validateCreateReport=function(t){var e=O.Validators.reportCreateValidator.validate(t);return e?e.map(ot):void 0},e.validateQuickCreate=function(t){var e=O.Validators.quickCreateValidator.validate(t);return e?e.map(ot):void 0},e.validateDashboardLoad=function(t){var e=O.Validators.dashboardLoadValidator.validate(t);return e?e.map(ot):void 0},e.validateTileLoad=function(t){var e=O.Validators.tileLoadValidator.validate(t);return e?e.map(ot):void 0},e.validatePage=function(t){var e=O.Validators.pageValidator.validate(t);return e?e.map(ot):void 0},e.validateFilter=function(t){var e=O.Validators.filterValidator.validate(t);return e?e.map(ot):void 0},e.validateUpdateFiltersRequest=function(t){var e=O.Validators.updateFiltersRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateSaveAsParameters=function(t){var e=O.Validators.saveAsParametersValidator.validate(t);return e?e.map(ot):void 0},e.validateLoadQnaConfiguration=function(t){var e=O.Validators.loadQnaValidator.validate(t);return e?e.map(ot):void 0},e.validateQnaInterpretInputData=function(t){var e=O.Validators.qnaInterpretInputDataValidator.validate(t);return e?e.map(ot):void 0},e.validateExportDataRequest=function(t){var e=O.Validators.exportDataRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualHeader=function(t){var e=O.Validators.visualHeaderValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualSettings=function(t){var e=O.Validators.visualSettingsValidator.validate(t);return e?e.map(ot):void 0},e.validateCommandsSettings=function(t){var e=O.Validators.commandsSettingsValidator.validate(t);return e?e.map(ot):void 0},e.validateCustomTheme=function(t){var e=O.Validators.customThemeValidator.validate(t);return e?e.map(ot):void 0},e.validateZoomLevel=function(t){var e=O.Validators.zoomLevelValidator.validate(t);return e?e.map(ot):void 0},e.validatePrintSettings=function(t){var e=O.Validators.printSettingsValidator.validate(t);return e?e.map(ot):void 0}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var i=r(2),a=r(5),o=r(6),n=r(7),l=r(8),s=r(9),u=r(10),d=r(11),c=r(12),p=r(13),f=r(14),h=r(15),v=r(16),y=r(17),m=r(18),V=r(19),g=r(20),b=r(21),w=r(22),P=r(23),S=r(24),O=r(25),_=r(26),E=r(27),T=r(28),F=r(29),C=r(4),R=r(30),k=r(31),x=r(32),A=r(33),j=r(34);e.Validators={addBookmarkRequestValidator:new a.AddBookmarkRequestValidator,advancedFilterTypeValidator:new C.EnumValidator([0]),advancedFilterValidator:new c.AdvancedFilterValidator,anyArrayValidator:new C.ArrayValidator([new _.AnyOfValidator([new C.StringValidator,new C.NumberValidator,new C.BooleanValidator])]),anyFilterValidator:new _.AnyOfValidator([new c.BasicFilterValidator,new c.AdvancedFilterValidator,new c.IncludeExcludeFilterValidator,new c.NotSupportedFilterValidator,new c.RelativeDateFilterValidator,new c.TopNFilterValidator,new c.RelativeTimeFilterValidator,new c.HierarchyFilterValidator]),anyValueValidator:new _.AnyOfValidator([new C.StringValidator,new C.NumberValidator,new C.BooleanValidator]),actionBarValidator:new i.ActionBarValidator,statusBarValidator:new i.StatusBarValidator,applyBookmarkByNameRequestValidator:new a.ApplyBookmarkByNameRequestValidator,applyBookmarkStateRequestValidator:new a.ApplyBookmarkStateRequestValidator,applyBookmarkValidator:new _.AnyOfValidator([new a.ApplyBookmarkByNameRequestValidator,new a.ApplyBookmarkStateRequestValidator]),backgroundValidator:new C.EnumValidator([0,1]),basicFilterTypeValidator:new C.EnumValidator([1]),basicFilterValidator:new c.BasicFilterValidator,booleanArrayValidator:new C.BooleanArrayValidator,booleanValidator:new C.BooleanValidator,bookmarksPaneValidator:new h.BookmarksPaneValidator,captureBookmarkOptionsValidator:new a.CaptureBookmarkOptionsValidator,captureBookmarkRequestValidator:new a.CaptureBookmarkRequestValidator,columnSchemaArrayValidator:new C.ArrayValidator([new k.ColumnSchemaValidator]),commandDisplayOptionValidator:new C.EnumValidator([0,1,2]),commandExtensionSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),commandExtensionArrayValidator:new C.ArrayValidator([new d.CommandExtensionValidator]),commandExtensionValidator:new d.CommandExtensionValidator,commandsSettingsArrayValidator:new C.ArrayValidator([new o.CommandsSettingsValidator]),commandsSettingsValidator:new o.CommandsSettingsValidator,conditionItemValidator:new c.ConditionItemValidator,contrastModeValidator:new C.EnumValidator([0,1,2,3,4]),credentialDetailsValidator:new F.MapValidator([new C.StringValidator],[new C.StringValidator]),credentialsValidator:new k.CredentialsValidator,credentialTypeValidator:new C.EnumValidator([0,1,2]),customLayoutDisplayOptionValidator:new C.EnumValidator([0,1,2]),customLayoutValidator:new p.CustomLayoutValidator,customPageSizeValidator:new f.CustomPageSizeValidator,customThemeValidator:new n.CustomThemeValidator,dashboardLoadValidator:new l.DashboardLoadValidator,dataCacheModeValidator:new C.EnumValidator([0,1]),datasetBindingValidator:new s.DatasetBindingValidator,datasetCreateConfigValidator:new k.DatasetCreateConfigValidator,datasourceConnectionConfigValidator:new k.DatasourceConnectionConfigValidator,displayStateModeValidator:new C.EnumValidator([0,1]),displayStateValidator:new p.DisplayStateValidator,exportDataRequestValidator:new u.ExportDataRequestValidator,extensionArrayValidator:new C.ArrayValidator([new d.ExtensionValidator]),extensionsValidator:new _.AnyOfValidator([new C.ArrayValidator([new d.ExtensionValidator]),new d.ExtensionsValidator]),extensionPointsValidator:new d.ExtensionPointsValidator,extensionValidator:new d.ExtensionValidator,fieldForbiddenValidator:new E.FieldForbiddenValidator,fieldRequiredValidator:new T.FieldRequiredValidator,fieldsPaneValidator:new h.FieldsPaneValidator,filterColumnTargetValidator:new c.FilterColumnTargetValidator,filterDisplaySettingsValidator:new c.FilterDisplaySettingsValidator,filterConditionsValidator:new C.ArrayValidator([new c.ConditionItemValidator]),filterHierarchyTargetValidator:new c.FilterHierarchyTargetValidator,filterMeasureTargetValidator:new c.FilterMeasureTargetValidator,filterTargetValidator:new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new C.ArrayValidator([new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new c.FilterKeyColumnsTargetValidator,new c.FilterKeyHierarchyTargetValidator])])]),filterValidator:new c.FilterValidator,filterTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6,7,9]),filtersArrayValidator:new C.ArrayValidator([new c.FilterValidator]),filtersOperationsUpdateValidator:new C.EnumValidator([1,2,3]),filtersOperationsRemoveAllValidator:new C.EnumValidator([0]),filtersPaneValidator:new h.FiltersPaneValidator,hyperlinkClickBehaviorValidator:new C.EnumValidator([0,1,2]),includeExcludeFilterValidator:new c.IncludeExcludeFilterValidator,includeExludeFilterTypeValidator:new C.EnumValidator([3]),hierarchyFilterTypeValidator:new C.EnumValidator([9]),hierarchyFilterValuesValidator:new C.ArrayValidator([new c.HierarchyFilterNodeValidator]),layoutTypeValidator:new C.EnumValidator([0,1,2,3]),loadQnaValidator:new v.LoadQnaValidator,menuExtensionValidator:new _.AnyOfValidator([new d.FlatMenuExtensionValidator,new d.GroupedMenuExtensionValidator]),menuGroupExtensionArrayValidator:new C.ArrayValidator([new d.MenuGroupExtensionValidator]),menuGroupExtensionValidator:new d.MenuGroupExtensionValidator,menuLocationValidator:new C.EnumValidator([0,1]),notSupportedFilterTypeValidator:new C.EnumValidator([2]),notSupportedFilterValidator:new c.NotSupportedFilterValidator,numberArrayValidator:new C.NumberArrayValidator,numberValidator:new C.NumberValidator,onLoadFiltersBaseValidator:new _.AnyOfValidator([new c.OnLoadFiltersBaseValidator,new c.OnLoadFiltersBaseRemoveOperationValidator]),pageLayoutValidator:new F.MapValidator([new C.StringValidator],[new p.VisualLayoutValidator]),pageNavigationPaneValidator:new h.PageNavigationPaneValidator,pageNavigationPositionValidator:new C.EnumValidator([0,1]),pageSizeTypeValidator:new C.EnumValidator([0,1,2,3,4,5]),pageSizeValidator:new f.PageSizeValidator,pageValidator:new f.PageValidator,pageViewFieldValidator:new f.PageViewFieldValidator,pagesLayoutValidator:new F.MapValidator([new C.StringValidator],[new p.PageLayoutValidator]),paginatedReportCommandsValidator:new o.PaginatedReportCommandsValidator,paginatedReportDatasetBindingArrayValidator:new C.ArrayValidator([new j.PaginatedReportDatasetBindingValidator]),paginatedReportLoadValidator:new V.PaginatedReportLoadValidator,paginatedReportsettingsValidator:new w.PaginatedReportSettingsValidator,parameterValuesArrayValidator:new C.ArrayValidator([new V.ReportParameterFieldsValidator]),parametersPanelValidator:new R.ParametersPanelValidator,permissionsValidator:new C.EnumValidator([0,1,2,4,7]),playBookmarkRequestValidator:new a.PlayBookmarkRequestValidator,printSettingsValidator:new A.PrintSettingsValidator,qnaInterpretInputDataValidator:new v.QnaInterpretInputDataValidator,qnaPanesValidator:new h.QnaPanesValidator,qnaSettingValidator:new v.QnaSettingsValidator,quickCreateValidator:new x.QuickCreateValidator,rawDataValidator:new C.ArrayValidator([new C.ArrayValidator([new C.StringValidator])]),relativeDateFilterOperatorValidator:new C.EnumValidator([0,1,2]),relativeDateFilterTimeUnitTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6]),relativeDateFilterTypeValidator:new C.EnumValidator([4]),relativeDateFilterValidator:new c.RelativeDateFilterValidator,relativeDateTimeFilterTypeValidator:new C.EnumValidator([4,7]),relativeDateTimeFilterUnitTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6,7,8]),relativeTimeFilterTimeUnitTypeValidator:new C.EnumValidator([7,8]),relativeTimeFilterTypeValidator:new C.EnumValidator([7]),relativeTimeFilterValidator:new c.RelativeTimeFilterValidator,reportBarsValidator:new i.ReportBarsValidator,reportCreateValidator:new y.ReportCreateValidator,reportLoadFiltersValidator:new _.AnyOfValidator([new C.ArrayValidator([new c.FilterValidator]),new c.OnLoadFiltersValidator]),reportLoadValidator:new m.ReportLoadValidator,reportPanesValidator:new h.ReportPanesValidator,saveAsParametersValidator:new g.SaveAsParametersValidator,selectionPaneValidator:new h.SelectionPaneValidator,settingsValidator:new w.SettingsValidator,singleCommandSettingsValidator:new o.SingleCommandSettingsValidator,slicerSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.SlicerTargetSelectorValidator]),slicerStateValidator:new P.SlicerStateValidator,slicerTargetValidator:new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new c.FilterKeyColumnsTargetValidator,new c.FilterKeyHierarchyTargetValidator]),slicerValidator:new P.SlicerValidator,stringArrayValidator:new C.StringArrayValidator,stringValidator:new C.StringValidator,syncSlicersPaneValidator:new h.SyncSlicersPaneValidator,tableDataArrayValidator:new C.ArrayValidator([new k.TableDataValidator]),tableSchemaListValidator:new C.ArrayValidator([new k.TableSchemaValidator]),tileLoadValidator:new S.TileLoadValidator,tokenTypeValidator:new C.EnumValidator([0,1]),topNFilterTypeValidator:new C.EnumValidator([5]),topNFilterValidator:new c.TopNFilterValidator,updateFiltersRequestValidator:new _.AnyOfValidator([new c.UpdateFiltersRequestValidator,new c.RemoveFiltersRequestValidator]),viewModeValidator:new C.EnumValidator([0,1]),visualCommandSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),visualHeaderSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),visualHeaderSettingsValidator:new O.VisualHeaderSettingsValidator,visualHeaderValidator:new O.VisualHeaderValidator,visualHeadersValidator:new C.ArrayValidator([new O.VisualHeaderValidator]),visualizationsPaneValidator:new h.VisualizationsPaneValidator,visualLayoutValidator:new p.VisualLayoutValidator,visualSelectorValidator:new b.VisualSelectorValidator,visualSettingsValidator:new O.VisualSettingsValidator,visualTypeSelectorValidator:new b.VisualTypeSelectorValidator,zoomLevelValidator:new C.RangeValidator(.25,4)}},function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.StatusBarValidator=e.ActionBarValidator=e.ReportBarsValidator=void 0;var o=r(3),n=r(4),l=r(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"actionBar",validators:[l.Validators.actionBarValidator]},{field:"statusBar",validators:[l.Validators.statusBarValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.ReportBarsValidator=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.ActionBarValidator=u;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.StatusBarValidator=d},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MultipleFieldsValidator=void 0;var r=function(){function t(t){this.fieldValidatorsPairs=t}return t.prototype.validate=function(t,e,r){if(!this.fieldValidatorsPairs)return null;for(var i=e?e+"."+r:r,a=0,o=this.fieldValidatorsPairs;athis.maxValue||e{Object.defineProperty(e,"__esModule",{value:!0}),e.AnyOfValidator=void 0;var r=function(){function t(t){this.validators=t}return t.prototype.validate=function(t,e,r){if(null==t)return null;for(var i=!1,a=0,o=this.validators;a{Object.defineProperty(e,"__esModule",{value:!0}),e.FieldForbiddenValidator=void 0;var r=function(){function t(){}return t.prototype.validate=function(t,e,r){return void 0!==t?[{message:r+" is forbidden",path:(e?e+".":"")+r,keyword:"forbidden"}]:null},t}();e.FieldForbiddenValidator=r},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FieldRequiredValidator=void 0;var r=function(){function t(){}return t.prototype.validate=function(t,e,r){return null==t?[{message:r+" is required",path:(e?e+".":"")+r,keyword:"required"}]:null},t}();e.FieldRequiredValidator=r},function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MapValidator=void 0;var o=function(t){function e(e,r){var i=t.call(this)||this;return i.keyValidators=e,i.valueValidators=r,i}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;for(var o in e)if(e.hasOwnProperty(o)){for(var n=(r?r+".":"")+i+"."+o,l=0,s=this.keyValidators;l2&&"[]"===n.slice(l-2)&&(s=!0,r[n=n.slice(0,l-2)]||(r[n]=[])),a=o[1]?g(o[1]):""),s?r[n].push(a):r[n]=a}return r},recognize:function(t){var e,r,i,a=[this.rootState],o={},n=!1;if(-1!==(i=t.indexOf("?"))){var l=t.substr(i+1,t.length);t=t.substr(0,i),o=this.parseQueryString(l)}for("/"!==(t=decodeURI(t)).charAt(0)&&(t="/"+t),(e=t.length)>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),n=!0),r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.FilterBuilder=void 0;var r=function(){function t(){}return t.prototype.withTargetObject=function(t){return this.target=t,this},t.prototype.withColumnTarget=function(t,e){return this.target={table:t,column:e},this},t.prototype.withMeasureTarget=function(t,e){return this.target={table:t,measure:e},this},t.prototype.withHierarchyLevelTarget=function(t,e,r){return this.target={table:t,hierarchy:e,hierarchyLevel:r},this},t.prototype.withColumnAggregation=function(t,e,r){return this.target={table:t,column:e,aggregationFunction:r},this},t.prototype.withHierarchyLevelAggregationTarget=function(t,e,r,i){return this.target={table:t,hierarchy:e,hierarchyLevel:r,aggregationFunction:i},this},t}();e.FilterBuilder=r},567:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeTimeFilterBuilder=e.RelativeDateFilterBuilder=e.TopNFilterBuilder=e.AdvancedFilterBuilder=e.BasicFilterBuilder=void 0;var i=r(153);Object.defineProperty(e,"BasicFilterBuilder",{enumerable:!0,get:function(){return i.BasicFilterBuilder}});var a=r(674);Object.defineProperty(e,"AdvancedFilterBuilder",{enumerable:!0,get:function(){return a.AdvancedFilterBuilder}});var o=r(664);Object.defineProperty(e,"TopNFilterBuilder",{enumerable:!0,get:function(){return o.TopNFilterBuilder}});var n=r(844);Object.defineProperty(e,"RelativeDateFilterBuilder",{enumerable:!0,get:function(){return n.RelativeDateFilterBuilder}});var l=r(275);Object.defineProperty(e,"RelativeTimeFilterBuilder",{enumerable:!0,get:function(){return l.RelativeTimeFilterBuilder}})},844:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeDateFilterBuilder=void 0;var o=r(149),n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isTodayIncluded=!0,e}return a(e,t),e.prototype.inLast=function(t,e){return this.operator=o.RelativeDateOperators.InLast,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inThis=function(t,e){return this.operator=o.RelativeDateOperators.InThis,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inNext=function(t,e){return this.operator=o.RelativeDateOperators.InNext,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.includeToday=function(t){return this.isTodayIncluded=t,this},e.prototype.build=function(){return new o.RelativeDateFilter(this.target,this.operator,this.timeUnitsCount,this.timeUnitType,this.isTodayIncluded)},e}(r(277).FilterBuilder);e.RelativeDateFilterBuilder=n},275:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeTimeFilterBuilder=void 0;var o=r(149),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.inLast=function(t,e){return this.operator=o.RelativeDateOperators.InLast,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inThis=function(t,e){return this.operator=o.RelativeDateOperators.InThis,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inNext=function(t,e){return this.operator=o.RelativeDateOperators.InNext,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.build=function(){return new o.RelativeTimeFilter(this.target,this.operator,this.timeUnitsCount,this.timeUnitType)},e}(r(277).FilterBuilder);e.RelativeTimeFilterBuilder=n},664:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.TopNFilterBuilder=void 0;var o=r(149),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.top=function(t){return this.operator="Top",this.itemCount=t,this},e.prototype.bottom=function(t){return this.operator="Bottom",this.itemCount=t,this},e.prototype.orderByTarget=function(t){return this.orderByTargetValue=t,this},e.prototype.build=function(){return new o.TopNFilter(this.target,this.operator,this.itemCount,this.orderByTargetValue)},e}(r(277).FilterBuilder);e.TopNFilterBuilder=n},460:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.default={version:"2.23.1",type:"js"}},536:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.invalidEmbedUrlErrorMessage=e.EmbedUrlNotSupported=e.APINotSupportedForRDLError=void 0,e.APINotSupportedForRDLError="This API is currently not supported for RDL reports",e.EmbedUrlNotSupported="Embed URL is invalid for this scenario. Please use Power BI REST APIs to get the valid URL",e.invalidEmbedUrlErrorMessage="Invalid embed URL detected. Either URL hostname or protocol are invalid. Please use Power BI REST APIs to get the valid URL"},357:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.routerFactory=e.wpmpFactory=e.hpmFactory=void 0;var i=r(960),a=r(319),o=r(891),n=r(913);e.hpmFactory=function(t,e,r,i,o){return void 0===r&&(r=n.default.version),void 0===i&&(i=n.default.type),new a.HttpPostMessage(t,{"x-sdk-type":i,"x-sdk-version":r,"x-sdk-wrapper-version":o},e)},e.wpmpFactory=function(t,e,r){return new i.WindowPostMessageProxy({processTrackingProperties:{addTrackingProperties:a.HttpPostMessage.addTrackingProperties,getTrackingProperties:a.HttpPostMessage.getTrackingProperties},isErrorMessage:a.HttpPostMessage.isErrorMessage,suppressWarnings:!0,name:t,logMessages:e,eventSourceOverrideWindow:r})},e.routerFactory=function(t){return new o.Router(t)}},220:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0?"&":"?";return t+(i+e+"=")+r},e.isSavedInternal=function(t,e,a){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.get("/report/hasUnsavedChanges",{uid:e},a)];case 1:return[2,!r.sent().body];case 2:throw r.sent().body;case 3:return[2]}}))}))},e.isRDLEmbed=function(t){return t&&t.toLowerCase().indexOf("/rdlembed?")>=0},e.autoAuthInEmbedUrl=function(t){return t&&decodeURIComponent(t).toLowerCase().indexOf("autoauth=true")>=0},e.getRandomValue=l,e.getTimeDiffInMilliseconds=function(t,e){return Math.abs(t.getTime()-e.getTime())},e.isCreate=function(t){return"create"===t||"quickcreate"===t},e.validateEmbedUrl=function(t){if(t){var e=void 0;try{e=new URL(t.toLowerCase())}catch(t){return!1}return"https:"===e.protocol&&(a.test(e.hostname)||o.test(e.hostname))}}},23:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{var e;self,e=()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPostMessageProxy=void 0;var r=function(){function t(e){void 0===e&&(e={processTrackingProperties:{addTrackingProperties:t.defaultAddTrackingProperties,getTrackingProperties:t.defaultGetTrackingProperties},isErrorMessage:t.defaultIsErrorMessage,receiveWindow:window,name:t.createRandomString()});var r=this;this.pendingRequestPromises={},this.addTrackingProperties=e.processTrackingProperties&&e.processTrackingProperties.addTrackingProperties||t.defaultAddTrackingProperties,this.getTrackingProperties=e.processTrackingProperties&&e.processTrackingProperties.getTrackingProperties||t.defaultGetTrackingProperties,this.isErrorMessage=e.isErrorMessage||t.defaultIsErrorMessage,this.receiveWindow=e.receiveWindow||window,this.name=e.name||t.createRandomString(),this.logMessages=e.logMessages||!1,this.eventSourceOverrideWindow=e.eventSourceOverrideWindow,this.suppressWarnings=e.suppressWarnings||!1,this.logMessages&&console.log("new WindowPostMessageProxy created with name: ".concat(this.name," receiving on window: ").concat(this.receiveWindow.document.title)),this.handlers=[],this.windowMessageHandler=function(t){return r.onMessageReceived(t)},this.start()}return t.defaultAddTrackingProperties=function(e,r){return e[t.messagePropertyName]=r,e},t.defaultGetTrackingProperties=function(e){return e[t.messagePropertyName]},t.defaultIsErrorMessage=function(t){return!!t.error},t.createDeferred=function(){var t={resolve:null,reject:null,promise:null},e=new Promise((function(e,r){t.resolve=e,t.reject=r}));return t.promise=e,t},t.createRandomString=function(){var t=window.crypto||window.msCrypto,e=new Uint32Array(1);return t.getRandomValues(e),e[0].toString(36).substring(1)},t.prototype.addHandler=function(t){this.handlers.push(t)},t.prototype.removeHandler=function(t){var e=this.handlers.indexOf(t);if(-1===e)throw new Error("You attempted to remove a handler but no matching handler was found.");this.handlers.splice(e,1)},t.prototype.start=function(){this.receiveWindow.addEventListener("message",this.windowMessageHandler)},t.prototype.stop=function(){this.receiveWindow.removeEventListener("message",this.windowMessageHandler)},t.prototype.postMessage=function(e,r,i){var a={id:t.createRandomString()};this.addTrackingProperties(r,a),console.log("".concat(this.name," Posting message:")),console.log(JSON.stringify(r,null," ")),console.log("target origin: ".concat(i)),e.postMessage(r,null!=i?i:"*");var o=t.createDeferred();return this.pendingRequestPromises[a.id]=o,o.promise},t.prototype.sendResponse=function(t,e,r,i){this.addTrackingProperties(e,r),this.logMessages&&(console.log("".concat(this.name," Sending response:")),console.log(JSON.stringify(e,null," "))),t.postMessage(e,null!=i?i:"*")},t.prototype.onMessageReceived=function(t){var e=this;this.logMessages&&(console.log("".concat(this.name," Received message:")),console.log("type: ".concat(t.type)),console.log(JSON.stringify(t.data,null," ")));var r=this.eventSourceOverrideWindow||t.source;if(r){var i=t.data;if("object"==typeof i){var a,o;try{a=this.getTrackingProperties(i)}catch(t){this.suppressWarnings||console.warn("Proxy(".concat(this.name,"): Error occurred when attempting to get tracking properties from incoming message:"),JSON.stringify(i,null," "),"Error: ",t)}if(a&&(o=this.pendingRequestPromises[a.id]),o){var n=!0;try{n=this.isErrorMessage(i)}catch(t){console.warn("Proxy(".concat(this.name,") Error occurred when trying to determine if message is consider an error response. Message: "),JSON.stringify(i,null,""),"Error: ",t)}n?o.reject(i):o.resolve(i),delete this.pendingRequestPromises[a.id]}else this.handlers.some((function(t){var o=!1;try{o=t.test(i)}catch(t){e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): Error occurred when handler was testing incoming message:"),JSON.stringify(i,null," "),"Error: ",t)}if(o){var n=void 0;try{n=Promise.resolve(t.handle(i))}catch(t){e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): Error occurred when handler was processing incoming message:"),JSON.stringify(i,null," "),"Error: ",t),n=Promise.resolve()}return n.then((function(t){if(!t){var o="Handler for message: ".concat(JSON.stringify(i,null," ")," did not return a response message. The default response message will be returned instead.");e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): ").concat(o)),t={warning:o}}e.sendResponse(r,t,a)})),!0}}))||this.suppressWarnings||console.warn("Proxy(".concat(this.name,") did not handle message. Handlers: ").concat(this.handlers.length," Message: ").concat(JSON.stringify(i,null,""),"."))}else this.suppressWarnings||console.warn("Proxy(".concat(this.name,"): Received message that was not an object. Discarding message"))}},t.messagePropertyName="windowPostMessageProxy",t}();e.WindowPostMessageProxy=r})(),t})(),t.exports=e()}},e={};function r(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,r),o.exports}var i={};return(()=>{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeTimeFilterBuilder=t.RelativeDateFilterBuilder=t.TopNFilterBuilder=t.AdvancedFilterBuilder=t.BasicFilterBuilder=t.Create=t.QuickCreate=t.VisualDescriptor=t.Visual=t.Qna=t.Page=t.Embed=t.Tile=t.Dashboard=t.Report=t.models=t.factories=t.service=void 0;var e=r(149);t.models=e;var a=r(562);t.service=a;var o=r(357);t.factories=o;var n=r(125);Object.defineProperty(t,"Report",{enumerable:!0,get:function(){return n.Report}});var l=r(365);Object.defineProperty(t,"Dashboard",{enumerable:!0,get:function(){return l.Dashboard}});var s=r(43);Object.defineProperty(t,"Tile",{enumerable:!0,get:function(){return s.Tile}});var u=r(932);Object.defineProperty(t,"Embed",{enumerable:!0,get:function(){return u.Embed}});var d=r(220);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return d.Page}});var c=r(148);Object.defineProperty(t,"Qna",{enumerable:!0,get:function(){return c.Qna}});var p=r(23);Object.defineProperty(t,"Visual",{enumerable:!0,get:function(){return p.Visual}});var f=r(558);Object.defineProperty(t,"VisualDescriptor",{enumerable:!0,get:function(){return f.VisualDescriptor}});var h=r(714);Object.defineProperty(t,"QuickCreate",{enumerable:!0,get:function(){return h.QuickCreate}});var v=r(536);Object.defineProperty(t,"Create",{enumerable:!0,get:function(){return v.Create}});var y=r(567);Object.defineProperty(t,"BasicFilterBuilder",{enumerable:!0,get:function(){return y.BasicFilterBuilder}}),Object.defineProperty(t,"AdvancedFilterBuilder",{enumerable:!0,get:function(){return y.AdvancedFilterBuilder}}),Object.defineProperty(t,"TopNFilterBuilder",{enumerable:!0,get:function(){return y.TopNFilterBuilder}}),Object.defineProperty(t,"RelativeDateFilterBuilder",{enumerable:!0,get:function(){return y.RelativeDateFilterBuilder}}),Object.defineProperty(t,"RelativeTimeFilterBuilder",{enumerable:!0,get:function(){return y.RelativeTimeFilterBuilder}});var m=new a.Service(o.hpmFactory,o.wpmpFactory,o.routerFactory);window.powerbi&&window.powerBISDKGlobalServiceInstanceName?window[window.powerBISDKGlobalServiceInstanceName]=m:window.powerbi=m})(),i})())); \ No newline at end of file +!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,(()=>(()=>{var t={319:t=>{var e;self,e=()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.HttpPostMessage=void 0;var r=function(){function t(t,e,r){void 0===e&&(e={}),this.defaultHeaders=e,this.defaultTargetWindow=r,this.windowPostMessageProxy=t}return t.addTrackingProperties=function(t,e){return t.headers=t.headers||{},e&&e.id&&(t.headers.id=e.id),t},t.getTrackingProperties=function(t){return{id:t.headers&&t.headers.id}},t.isErrorMessage=function(t){return"number"==typeof(t&&t.statusCode)&&!(200<=t.statusCode&&t.statusCode<300)},t.prototype.get=function(t,e,r,i){return void 0===e&&(e={}),void 0===r&&(r=this.defaultTargetWindow),this.send({method:"GET",url:t,headers:e},r,i)},t.prototype.post=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"POST",url:t,headers:r,body:e},i,a)},t.prototype.put=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"PUT",url:t,headers:r,body:e},i,a)},t.prototype.patch=function(t,e,r,i,a){return void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"PATCH",url:t,headers:r,body:e},i,a)},t.prototype.delete=function(t,e,r,i,a){return void 0===e&&(e=null),void 0===r&&(r={}),void 0===i&&(i=this.defaultTargetWindow),this.send({method:"DELETE",url:t,headers:r,body:e},i,a)},t.prototype.send=function(t,e,r){if(void 0===e&&(e=this.defaultTargetWindow),t.headers=this.assign({},this.defaultHeaders,t.headers),!e)throw new Error("target window is not provided. You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class.");return this.windowPostMessageProxy.postMessage(e,t,r)},t.prototype.assign=function(t){for(var e=[],r=1;r(()=>{var t=[function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.TextAlignment=e.CommonErrorCodes=e.BookmarksPlayMode=e.ExportDataType=e.QnaMode=e.PageNavigationPosition=e.BrowserPrintAdjustmentsMode=e.AggregateFunction=e.DataCacheMode=e.CredentialType=e.isPercentOfGrandTotal=e.isColumnAggr=e.isHierarchyLevelAggr=e.isHierarchyLevel=e.isColumn=e.isMeasure=e.getFilterType=e.isBasicFilterWithKeys=e.isFilterKeyColumnsTarget=e.HierarchyFilter=e.AdvancedFilter=e.TupleFilter=e.IdentityFilter=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.FiltersOperations=e.MenuLocation=e.ContrastMode=e.TokenType=e.ViewMode=e.Permissions=e.SectionVisibility=e.ReportAlignment=e.HyperlinkClickBehavior=e.LayoutType=e.VisualContainerDisplayMode=e.BackgroundType=e.DisplayOption=e.PageSizeType=e.TraceType=void 0,e.validateVisualHeader=e.validateExportDataRequest=e.validateQnaInterpretInputData=e.validateLoadQnaConfiguration=e.validateSaveAsParameters=e.validateUpdateFiltersRequest=e.validateFilter=e.validatePage=e.validateTileLoad=e.validateDashboardLoad=e.validateQuickCreate=e.validateCreateReport=e.validatePaginatedReportLoad=e.validateReportLoad=e.validateMenuGroupExtension=e.validateExtension=e.validateCustomPageSize=e.validateVisualizationsPane=e.validateSyncSlicersPane=e.validateSelectionPane=e.validatePageNavigationPane=e.validateFieldsPane=e.validateFiltersPane=e.validateBookmarksPane=e.validatePanes=e.validateSettings=e.validateCaptureBookmarkRequest=e.validateApplyBookmarkStateRequest=e.validateApplyBookmarkByNameRequest=e.validateAddBookmarkRequest=e.validatePlayBookmarkRequest=e.validateSlicerState=e.validateSlicer=e.validateVisualSelector=e.isIExtensionArray=e.isIExtensions=e.isGroupedMenuExtension=e.isFlatMenuExtension=e.isReportFiltersArray=e.isOnLoadFilters=e.VisualDataRoleKindPreference=e.VisualDataRoleKind=e.CommandDisplayOption=e.SlicerTargetSelector=e.VisualTypeSelector=e.VisualSelector=e.PageSelector=e.Selector=e.SortDirection=e.LegendPosition=void 0,e.validatePrintSettings=e.validateZoomLevel=e.validateCustomTheme=e.validateCommandsSettings=e.validateVisualSettings=void 0;var o,n,l,s,u,d,c,p,f,h,v,y,m,V,g,b,w,P,S,O=r(1);(S=e.TraceType||(e.TraceType={}))[S.Information=0]="Information",S[S.Verbose=1]="Verbose",S[S.Warning=2]="Warning",S[S.Error=3]="Error",S[S.ExpectedError=4]="ExpectedError",S[S.UnexpectedError=5]="UnexpectedError",S[S.Fatal=6]="Fatal",(P=e.PageSizeType||(e.PageSizeType={}))[P.Widescreen=0]="Widescreen",P[P.Standard=1]="Standard",P[P.Cortana=2]="Cortana",P[P.Letter=3]="Letter",P[P.Custom=4]="Custom",P[P.Mobile=5]="Mobile",(w=e.DisplayOption||(e.DisplayOption={}))[w.FitToPage=0]="FitToPage",w[w.FitToWidth=1]="FitToWidth",w[w.ActualSize=2]="ActualSize",(b=e.BackgroundType||(e.BackgroundType={}))[b.Default=0]="Default",b[b.Transparent=1]="Transparent",(g=e.VisualContainerDisplayMode||(e.VisualContainerDisplayMode={}))[g.Visible=0]="Visible",g[g.Hidden=1]="Hidden",(V=e.LayoutType||(e.LayoutType={}))[V.Master=0]="Master",V[V.Custom=1]="Custom",V[V.MobilePortrait=2]="MobilePortrait",V[V.MobileLandscape=3]="MobileLandscape",(m=e.HyperlinkClickBehavior||(e.HyperlinkClickBehavior={}))[m.Navigate=0]="Navigate",m[m.NavigateAndRaiseEvent=1]="NavigateAndRaiseEvent",m[m.RaiseEvent=2]="RaiseEvent",(y=e.ReportAlignment||(e.ReportAlignment={}))[y.Left=0]="Left",y[y.Center=1]="Center",y[y.Right=2]="Right",y[y.None=3]="None",(v=e.SectionVisibility||(e.SectionVisibility={}))[v.AlwaysVisible=0]="AlwaysVisible",v[v.HiddenInViewMode=1]="HiddenInViewMode",(h=e.Permissions||(e.Permissions={}))[h.Read=0]="Read",h[h.ReadWrite=1]="ReadWrite",h[h.Copy=2]="Copy",h[h.Create=4]="Create",h[h.All=7]="All",(f=e.ViewMode||(e.ViewMode={}))[f.View=0]="View",f[f.Edit=1]="Edit",(p=e.TokenType||(e.TokenType={}))[p.Aad=0]="Aad",p[p.Embed=1]="Embed",(c=e.ContrastMode||(e.ContrastMode={}))[c.None=0]="None",c[c.HighContrast1=1]="HighContrast1",c[c.HighContrast2=2]="HighContrast2",c[c.HighContrastBlack=3]="HighContrastBlack",c[c.HighContrastWhite=4]="HighContrastWhite",(d=e.MenuLocation||(e.MenuLocation={}))[d.Bottom=0]="Bottom",d[d.Top=1]="Top",(u=e.FiltersOperations||(e.FiltersOperations={}))[u.RemoveAll=0]="RemoveAll",u[u.ReplaceAll=1]="ReplaceAll",u[u.Add=2]="Add",u[u.Replace=3]="Replace",(s=e.FiltersLevel||(e.FiltersLevel={}))[s.Report=0]="Report",s[s.Page=1]="Page",s[s.Visual=2]="Visual",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",t[t.Identity=8]="Identity",t[t.Hierarchy=9]="Hierarchy"}(o=e.FilterType||(e.FilterType={})),(l=e.RelativeDateFilterTimeUnit||(e.RelativeDateFilterTimeUnit={}))[l.Days=0]="Days",l[l.Weeks=1]="Weeks",l[l.CalendarWeeks=2]="CalendarWeeks",l[l.Months=3]="Months",l[l.CalendarMonths=4]="CalendarMonths",l[l.Years=5]="Years",l[l.CalendarYears=6]="CalendarYears",l[l.Minutes=7]="Minutes",l[l.Hours=8]="Hours",(n=e.RelativeDateOperators||(e.RelativeDateOperators={}))[n.InLast=0]="InLast",n[n.InThis=1]="InThis",n[n.InNext=2]="InNext";var _=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=_;var E=function(t){function e(r,i,a){var n=t.call(this,r,o.Unknown)||this;return n.message=i,n.notSupportedTypeName=a,n.schemaUrl=e.schemaUrl,n}return a(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}(_);e.NotSupportedFilter=E;var T=function(t){function e(r,i,a){var n=t.call(this,r,o.IncludeExclude)||this;return n.values=a,n.isExclude=i,n.schemaUrl=e.schemaUrl,n}return a(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}(_);e.IncludeExcludeFilter=T;var F=function(t){function e(r,i,a,n){var l=t.call(this,r,o.TopN)||this;return l.operator=i,l.itemCount=a,l.schemaUrl=e.schemaUrl,l.orderBy=n,l}return a(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}(_);e.TopNFilter=F;var C=function(t){function e(r,i,a,n,l){var s=t.call(this,r,o.RelativeDate)||this;return s.operator=i,s.timeUnitsCount=a,s.timeUnitType=n,s.includeToday=l,s.schemaUrl=e.schemaUrl,s}return a(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}(_);e.RelativeDateFilter=C;var R=function(t){function e(r,i,a,n){var l=t.call(this,r,o.RelativeTime)||this;return l.operator=i,l.timeUnitsCount=a,l.timeUnitType=n,l.schemaUrl=e.schemaUrl,l}return a(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}(_);e.RelativeTimeFilter=R;var k=function(t){function e(r,i){for(var a=[],n=2;n0&&!a)throw new Error("You should pass the values to be filtered for each key. You passed: no values and ".concat(n," keys"));if(0===n&&a&&a.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,s=o.keyValues;l2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: ".concat(a.length));if(1===l.length&&"And"!==i)throw new Error('Logical Operator must be "And" when there is only one condition provided');return s.conditions=l,s}return a(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}(_);e.AdvancedFilter=M;var I,L,q,D,N,B,U,H,W,z=function(t){function e(r,i){var a=t.call(this,r,o.Hierarchy)||this;return a.schemaUrl=e.schemaUrl,a.hierarchyData=i,a}return a(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.hierarchyData=this.hierarchyData,e.target=this.target,e},e.schemaUrl="http://powerbi.com/product/schema#hierarchy",e}(_);function Q(t){if(t.filterType)return t.filterType;var e=t,r=t;return"string"==typeof e.operator&&Array.isArray(e.values)?o.Basic:"string"==typeof r.logicalOperator&&Array.isArray(r.conditions)?o.Advanced:o.Unknown}function G(t){return!(!t.table||!t.column||t.aggregationFunction)}e.HierarchyFilter=z,e.isFilterKeyColumnsTarget=function(t){return G(t)&&!!t.keys},e.isBasicFilterWithKeys=function(t){return Q(t)===o.Basic&&!!t.keyValues},e.getFilterType=Q,e.isMeasure=function(t){return void 0!==t.table&&void 0!==t.measure},e.isColumn=G,e.isHierarchyLevel=function(t){return!(!(t.table&&t.hierarchy&&t.hierarchyLevel)||t.aggregationFunction)},e.isHierarchyLevelAggr=function(t){return!!(t.table&&t.hierarchy&&t.hierarchyLevel&&t.aggregationFunction)},e.isColumnAggr=function(t){return!!(t.table&&t.column&&t.aggregationFunction)},e.isPercentOfGrandTotal=function(t){return!!t.percentOfGrandTotal},(W=e.CredentialType||(e.CredentialType={}))[W.NoConnection=0]="NoConnection",W[W.OnBehalfOf=1]="OnBehalfOf",W[W.Anonymous=2]="Anonymous",(H=e.DataCacheMode||(e.DataCacheMode={}))[H.Import=0]="Import",H[H.DirectQuery=1]="DirectQuery",(U=e.AggregateFunction||(e.AggregateFunction={}))[U.Default=1]="Default",U[U.None=2]="None",U[U.Sum=3]="Sum",U[U.Min=4]="Min",U[U.Max=5]="Max",U[U.Count=6]="Count",U[U.Average=7]="Average",U[U.DistinctCount=8]="DistinctCount",(B=e.BrowserPrintAdjustmentsMode||(e.BrowserPrintAdjustmentsMode={}))[B.Default=0]="Default",B[B.NoAdjustments=1]="NoAdjustments",(N=e.PageNavigationPosition||(e.PageNavigationPosition={}))[N.Bottom=0]="Bottom",N[N.Left=1]="Left",(D=e.QnaMode||(e.QnaMode={}))[D.Interactive=0]="Interactive",D[D.ResultOnly=1]="ResultOnly",(q=e.ExportDataType||(e.ExportDataType={}))[q.Summarized=0]="Summarized",q[q.Underlying=1]="Underlying",(L=e.BookmarksPlayMode||(e.BookmarksPlayMode={}))[L.Off=0]="Off",L[L.Presentation=1]="Presentation",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"},(I=e.SortDirection||(e.SortDirection={}))[I.Ascending=1]="Ascending",I[I.Descending=2]="Descending";var J=function(){function t(t){this.$schema=t}return t.prototype.toJSON=function(){return{$schema:this.$schema}},t}();e.Selector=J;var K=function(t){function e(r){var i=t.call(this,e.schemaUrl)||this;return i.pageName=r,i}return a(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}(J);e.PageSelector=K;var Y=function(t){function e(r){var i=t.call(this,e.schemaUrl)||this;return i.visualName=r,i}return a(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}(J);e.VisualSelector=Y;var $=function(t){function e(e){var r=t.call(this,Y.schemaUrl)||this;return r.visualType=e,r}return a(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}(J);e.VisualTypeSelector=$;var Z,X,tt,et=function(t){function e(e){var r=t.call(this,Y.schemaUrl)||this;return r.target=e,r}return a(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}(J);function rt(t){return Array.isArray(t)}function it(t){return t&&!!t.groupName}function at(t){return Array.isArray(t)}function ot(t){var e=t.message;return e||(e="".concat(t.path," is invalid. Not meeting ").concat(t.keyword," constraint")),{message:e}}e.SlicerTargetSelector=et,(tt=e.CommandDisplayOption||(e.CommandDisplayOption={}))[tt.Enabled=0]="Enabled",tt[tt.Disabled=1]="Disabled",tt[tt.Hidden=2]="Hidden",(X=e.VisualDataRoleKind||(e.VisualDataRoleKind={}))[X.Grouping=0]="Grouping",X[X.Measure=1]="Measure",X[X.GroupingOrMeasure=2]="GroupingOrMeasure",(Z=e.VisualDataRoleKindPreference||(e.VisualDataRoleKindPreference={}))[Z.Measure=0]="Measure",Z[Z.Grouping=1]="Grouping",e.isOnLoadFilters=function(t){return t&&!rt(t)},e.isReportFiltersArray=rt,e.isFlatMenuExtension=function(t){return t&&!it(t)},e.isGroupedMenuExtension=it,e.isIExtensions=function(t){return t&&!at(t)},e.isIExtensionArray=at,e.validateVisualSelector=function(t){var e=O.Validators.visualSelectorValidator.validate(t);return e?e.map(ot):void 0},e.validateSlicer=function(t){var e=O.Validators.slicerValidator.validate(t);return e?e.map(ot):void 0},e.validateSlicerState=function(t){var e=O.Validators.slicerStateValidator.validate(t);return e?e.map(ot):void 0},e.validatePlayBookmarkRequest=function(t){var e=O.Validators.playBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateAddBookmarkRequest=function(t){var e=O.Validators.addBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateApplyBookmarkByNameRequest=function(t){var e=O.Validators.applyBookmarkByNameRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateApplyBookmarkStateRequest=function(t){var e=O.Validators.applyBookmarkStateRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateCaptureBookmarkRequest=function(t){var e=O.Validators.captureBookmarkRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateSettings=function(t){var e=O.Validators.settingsValidator.validate(t);return e?e.map(ot):void 0},e.validatePanes=function(t){var e=O.Validators.reportPanesValidator.validate(t);return e?e.map(ot):void 0},e.validateBookmarksPane=function(t){var e=O.Validators.bookmarksPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateFiltersPane=function(t){var e=O.Validators.filtersPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateFieldsPane=function(t){var e=O.Validators.fieldsPaneValidator.validate(t);return e?e.map(ot):void 0},e.validatePageNavigationPane=function(t){var e=O.Validators.pageNavigationPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateSelectionPane=function(t){var e=O.Validators.selectionPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateSyncSlicersPane=function(t){var e=O.Validators.syncSlicersPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualizationsPane=function(t){var e=O.Validators.visualizationsPaneValidator.validate(t);return e?e.map(ot):void 0},e.validateCustomPageSize=function(t){var e=O.Validators.customPageSizeValidator.validate(t);return e?e.map(ot):void 0},e.validateExtension=function(t){var e=O.Validators.extensionValidator.validate(t);return e?e.map(ot):void 0},e.validateMenuGroupExtension=function(t){var e=O.Validators.menuGroupExtensionValidator.validate(t);return e?e.map(ot):void 0},e.validateReportLoad=function(t){var e=O.Validators.reportLoadValidator.validate(t);return e?e.map(ot):void 0},e.validatePaginatedReportLoad=function(t){var e=O.Validators.paginatedReportLoadValidator.validate(t);return e?e.map(ot):void 0},e.validateCreateReport=function(t){var e=O.Validators.reportCreateValidator.validate(t);return e?e.map(ot):void 0},e.validateQuickCreate=function(t){var e=O.Validators.quickCreateValidator.validate(t);return e?e.map(ot):void 0},e.validateDashboardLoad=function(t){var e=O.Validators.dashboardLoadValidator.validate(t);return e?e.map(ot):void 0},e.validateTileLoad=function(t){var e=O.Validators.tileLoadValidator.validate(t);return e?e.map(ot):void 0},e.validatePage=function(t){var e=O.Validators.pageValidator.validate(t);return e?e.map(ot):void 0},e.validateFilter=function(t){var e=O.Validators.filterValidator.validate(t);return e?e.map(ot):void 0},e.validateUpdateFiltersRequest=function(t){var e=O.Validators.updateFiltersRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateSaveAsParameters=function(t){var e=O.Validators.saveAsParametersValidator.validate(t);return e?e.map(ot):void 0},e.validateLoadQnaConfiguration=function(t){var e=O.Validators.loadQnaValidator.validate(t);return e?e.map(ot):void 0},e.validateQnaInterpretInputData=function(t){var e=O.Validators.qnaInterpretInputDataValidator.validate(t);return e?e.map(ot):void 0},e.validateExportDataRequest=function(t){var e=O.Validators.exportDataRequestValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualHeader=function(t){var e=O.Validators.visualHeaderValidator.validate(t);return e?e.map(ot):void 0},e.validateVisualSettings=function(t){var e=O.Validators.visualSettingsValidator.validate(t);return e?e.map(ot):void 0},e.validateCommandsSettings=function(t){var e=O.Validators.commandsSettingsValidator.validate(t);return e?e.map(ot):void 0},e.validateCustomTheme=function(t){var e=O.Validators.customThemeValidator.validate(t);return e?e.map(ot):void 0},e.validateZoomLevel=function(t){var e=O.Validators.zoomLevelValidator.validate(t);return e?e.map(ot):void 0},e.validatePrintSettings=function(t){var e=O.Validators.printSettingsValidator.validate(t);return e?e.map(ot):void 0}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var i=r(2),a=r(5),o=r(6),n=r(7),l=r(8),s=r(9),u=r(10),d=r(11),c=r(12),p=r(13),f=r(14),h=r(15),v=r(16),y=r(17),m=r(18),V=r(19),g=r(20),b=r(21),w=r(22),P=r(23),S=r(24),O=r(25),_=r(26),E=r(27),T=r(28),F=r(29),C=r(4),R=r(30),k=r(31),x=r(32),A=r(33),j=r(34);e.Validators={addBookmarkRequestValidator:new a.AddBookmarkRequestValidator,advancedFilterTypeValidator:new C.EnumValidator([0]),advancedFilterValidator:new c.AdvancedFilterValidator,anyArrayValidator:new C.ArrayValidator([new _.AnyOfValidator([new C.StringValidator,new C.NumberValidator,new C.BooleanValidator])]),anyFilterValidator:new _.AnyOfValidator([new c.BasicFilterValidator,new c.AdvancedFilterValidator,new c.IncludeExcludeFilterValidator,new c.NotSupportedFilterValidator,new c.RelativeDateFilterValidator,new c.TopNFilterValidator,new c.RelativeTimeFilterValidator,new c.HierarchyFilterValidator]),anyValueValidator:new _.AnyOfValidator([new C.StringValidator,new C.NumberValidator,new C.BooleanValidator]),actionBarValidator:new i.ActionBarValidator,statusBarValidator:new i.StatusBarValidator,applyBookmarkByNameRequestValidator:new a.ApplyBookmarkByNameRequestValidator,applyBookmarkStateRequestValidator:new a.ApplyBookmarkStateRequestValidator,applyBookmarkValidator:new _.AnyOfValidator([new a.ApplyBookmarkByNameRequestValidator,new a.ApplyBookmarkStateRequestValidator]),backgroundValidator:new C.EnumValidator([0,1]),basicFilterTypeValidator:new C.EnumValidator([1]),basicFilterValidator:new c.BasicFilterValidator,booleanArrayValidator:new C.BooleanArrayValidator,booleanValidator:new C.BooleanValidator,bookmarksPaneValidator:new h.BookmarksPaneValidator,captureBookmarkOptionsValidator:new a.CaptureBookmarkOptionsValidator,captureBookmarkRequestValidator:new a.CaptureBookmarkRequestValidator,columnSchemaArrayValidator:new C.ArrayValidator([new k.ColumnSchemaValidator]),commandDisplayOptionValidator:new C.EnumValidator([0,1,2]),commandExtensionSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),commandExtensionArrayValidator:new C.ArrayValidator([new d.CommandExtensionValidator]),commandExtensionValidator:new d.CommandExtensionValidator,commandsSettingsArrayValidator:new C.ArrayValidator([new o.CommandsSettingsValidator]),commandsSettingsValidator:new o.CommandsSettingsValidator,conditionItemValidator:new c.ConditionItemValidator,contrastModeValidator:new C.EnumValidator([0,1,2,3,4]),credentialDetailsValidator:new F.MapValidator([new C.StringValidator],[new C.StringValidator]),credentialsValidator:new k.CredentialsValidator,credentialTypeValidator:new C.EnumValidator([0,1,2]),customLayoutDisplayOptionValidator:new C.EnumValidator([0,1,2]),customLayoutValidator:new p.CustomLayoutValidator,customPageSizeValidator:new f.CustomPageSizeValidator,customThemeValidator:new n.CustomThemeValidator,dashboardLoadValidator:new l.DashboardLoadValidator,dataCacheModeValidator:new C.EnumValidator([0,1]),datasetBindingValidator:new s.DatasetBindingValidator,datasetCreateConfigValidator:new k.DatasetCreateConfigValidator,datasourceConnectionConfigValidator:new k.DatasourceConnectionConfigValidator,displayStateModeValidator:new C.EnumValidator([0,1]),displayStateValidator:new p.DisplayStateValidator,exportDataRequestValidator:new u.ExportDataRequestValidator,extensionArrayValidator:new C.ArrayValidator([new d.ExtensionValidator]),extensionsValidator:new _.AnyOfValidator([new C.ArrayValidator([new d.ExtensionValidator]),new d.ExtensionsValidator]),extensionPointsValidator:new d.ExtensionPointsValidator,extensionValidator:new d.ExtensionValidator,fieldForbiddenValidator:new E.FieldForbiddenValidator,fieldRequiredValidator:new T.FieldRequiredValidator,fieldsPaneValidator:new h.FieldsPaneValidator,filterColumnTargetValidator:new c.FilterColumnTargetValidator,filterDisplaySettingsValidator:new c.FilterDisplaySettingsValidator,filterConditionsValidator:new C.ArrayValidator([new c.ConditionItemValidator]),filterHierarchyTargetValidator:new c.FilterHierarchyTargetValidator,filterMeasureTargetValidator:new c.FilterMeasureTargetValidator,filterTargetValidator:new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new C.ArrayValidator([new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new c.FilterKeyColumnsTargetValidator,new c.FilterKeyHierarchyTargetValidator])])]),filterValidator:new c.FilterValidator,filterTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6,7,9]),filtersArrayValidator:new C.ArrayValidator([new c.FilterValidator]),filtersOperationsUpdateValidator:new C.EnumValidator([1,2,3]),filtersOperationsRemoveAllValidator:new C.EnumValidator([0]),filtersPaneValidator:new h.FiltersPaneValidator,hyperlinkClickBehaviorValidator:new C.EnumValidator([0,1,2]),includeExcludeFilterValidator:new c.IncludeExcludeFilterValidator,includeExludeFilterTypeValidator:new C.EnumValidator([3]),hierarchyFilterTypeValidator:new C.EnumValidator([9]),hierarchyFilterValuesValidator:new C.ArrayValidator([new c.HierarchyFilterNodeValidator]),layoutTypeValidator:new C.EnumValidator([0,1,2,3]),loadQnaValidator:new v.LoadQnaValidator,menuExtensionValidator:new _.AnyOfValidator([new d.FlatMenuExtensionValidator,new d.GroupedMenuExtensionValidator]),menuGroupExtensionArrayValidator:new C.ArrayValidator([new d.MenuGroupExtensionValidator]),menuGroupExtensionValidator:new d.MenuGroupExtensionValidator,menuLocationValidator:new C.EnumValidator([0,1]),notSupportedFilterTypeValidator:new C.EnumValidator([2]),notSupportedFilterValidator:new c.NotSupportedFilterValidator,numberArrayValidator:new C.NumberArrayValidator,numberValidator:new C.NumberValidator,onLoadFiltersBaseValidator:new _.AnyOfValidator([new c.OnLoadFiltersBaseValidator,new c.OnLoadFiltersBaseRemoveOperationValidator]),pageLayoutValidator:new F.MapValidator([new C.StringValidator],[new p.VisualLayoutValidator]),pageNavigationPaneValidator:new h.PageNavigationPaneValidator,pageNavigationPositionValidator:new C.EnumValidator([0,1]),pageSizeTypeValidator:new C.EnumValidator([0,1,2,3,4,5]),pageSizeValidator:new f.PageSizeValidator,pageValidator:new f.PageValidator,pageViewFieldValidator:new f.PageViewFieldValidator,pagesLayoutValidator:new F.MapValidator([new C.StringValidator],[new p.PageLayoutValidator]),paginatedReportCommandsValidator:new o.PaginatedReportCommandsValidator,paginatedReportDatasetBindingArrayValidator:new C.ArrayValidator([new j.PaginatedReportDatasetBindingValidator]),paginatedReportLoadValidator:new V.PaginatedReportLoadValidator,paginatedReportsettingsValidator:new w.PaginatedReportSettingsValidator,parameterValuesArrayValidator:new C.ArrayValidator([new V.ReportParameterFieldsValidator]),parametersPanelValidator:new R.ParametersPanelValidator,permissionsValidator:new C.EnumValidator([0,1,2,4,7]),playBookmarkRequestValidator:new a.PlayBookmarkRequestValidator,printSettingsValidator:new A.PrintSettingsValidator,qnaInterpretInputDataValidator:new v.QnaInterpretInputDataValidator,qnaPanesValidator:new h.QnaPanesValidator,qnaSettingValidator:new v.QnaSettingsValidator,quickCreateValidator:new x.QuickCreateValidator,rawDataValidator:new C.ArrayValidator([new C.ArrayValidator([new C.StringValidator])]),relativeDateFilterOperatorValidator:new C.EnumValidator([0,1,2]),relativeDateFilterTimeUnitTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6]),relativeDateFilterTypeValidator:new C.EnumValidator([4]),relativeDateFilterValidator:new c.RelativeDateFilterValidator,relativeDateTimeFilterTypeValidator:new C.EnumValidator([4,7]),relativeDateTimeFilterUnitTypeValidator:new C.EnumValidator([0,1,2,3,4,5,6,7,8]),relativeTimeFilterTimeUnitTypeValidator:new C.EnumValidator([7,8]),relativeTimeFilterTypeValidator:new C.EnumValidator([7]),relativeTimeFilterValidator:new c.RelativeTimeFilterValidator,reportBarsValidator:new i.ReportBarsValidator,reportCreateValidator:new y.ReportCreateValidator,reportLoadFiltersValidator:new _.AnyOfValidator([new C.ArrayValidator([new c.FilterValidator]),new c.OnLoadFiltersValidator]),reportLoadValidator:new m.ReportLoadValidator,reportPanesValidator:new h.ReportPanesValidator,saveAsParametersValidator:new g.SaveAsParametersValidator,selectionPaneValidator:new h.SelectionPaneValidator,settingsValidator:new w.SettingsValidator,singleCommandSettingsValidator:new o.SingleCommandSettingsValidator,slicerSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.SlicerTargetSelectorValidator]),slicerStateValidator:new P.SlicerStateValidator,slicerTargetValidator:new _.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new c.FilterKeyColumnsTargetValidator,new c.FilterKeyHierarchyTargetValidator]),slicerValidator:new P.SlicerValidator,stringArrayValidator:new C.StringArrayValidator,stringValidator:new C.StringValidator,syncSlicersPaneValidator:new h.SyncSlicersPaneValidator,tableDataArrayValidator:new C.ArrayValidator([new k.TableDataValidator]),tableSchemaListValidator:new C.ArrayValidator([new k.TableSchemaValidator]),tileLoadValidator:new S.TileLoadValidator,tokenTypeValidator:new C.EnumValidator([0,1]),topNFilterTypeValidator:new C.EnumValidator([5]),topNFilterValidator:new c.TopNFilterValidator,updateFiltersRequestValidator:new _.AnyOfValidator([new c.UpdateFiltersRequestValidator,new c.RemoveFiltersRequestValidator]),viewModeValidator:new C.EnumValidator([0,1]),visualCommandSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),visualHeaderSelectorValidator:new _.AnyOfValidator([new b.VisualSelectorValidator,new b.VisualTypeSelectorValidator]),visualHeaderSettingsValidator:new O.VisualHeaderSettingsValidator,visualHeaderValidator:new O.VisualHeaderValidator,visualHeadersValidator:new C.ArrayValidator([new O.VisualHeaderValidator]),visualizationsPaneValidator:new h.VisualizationsPaneValidator,visualLayoutValidator:new p.VisualLayoutValidator,visualSelectorValidator:new b.VisualSelectorValidator,visualSettingsValidator:new O.VisualSettingsValidator,visualTypeSelectorValidator:new b.VisualTypeSelectorValidator,zoomLevelValidator:new C.RangeValidator(.25,4)}},function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.StatusBarValidator=e.ActionBarValidator=e.ReportBarsValidator=void 0;var o=r(3),n=r(4),l=r(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"actionBar",validators:[l.Validators.actionBarValidator]},{field:"statusBar",validators:[l.Validators.statusBarValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.ReportBarsValidator=s;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.ActionBarValidator=u;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,i)},e}(n.ObjectValidator);e.StatusBarValidator=d},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MultipleFieldsValidator=void 0;var r=function(){function t(t){this.fieldValidatorsPairs=t}return t.prototype.validate=function(t,e,r){if(!this.fieldValidatorsPairs)return null;for(var i=e?e+"."+r:r,a=0,o=this.fieldValidatorsPairs;athis.maxValue||e{Object.defineProperty(e,"__esModule",{value:!0}),e.AnyOfValidator=void 0;var r=function(){function t(t){this.validators=t}return t.prototype.validate=function(t,e,r){if(null==t)return null;for(var i=!1,a=0,o=this.validators;a{Object.defineProperty(e,"__esModule",{value:!0}),e.FieldForbiddenValidator=void 0;var r=function(){function t(){}return t.prototype.validate=function(t,e,r){return void 0!==t?[{message:r+" is forbidden",path:(e?e+".":"")+r,keyword:"forbidden"}]:null},t}();e.FieldForbiddenValidator=r},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FieldRequiredValidator=void 0;var r=function(){function t(){}return t.prototype.validate=function(t,e,r){return null==t?[{message:r+" is required",path:(e?e+".":"")+r,keyword:"required"}]:null},t}();e.FieldRequiredValidator=r},function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MapValidator=void 0;var o=function(t){function e(e,r){var i=t.call(this)||this;return i.keyValidators=e,i.valueValidators=r,i}return a(e,t),e.prototype.validate=function(e,r,i){if(null==e)return null;var a=t.prototype.validate.call(this,e,r,i);if(a)return a;for(var o in e)if(e.hasOwnProperty(o)){for(var n=(r?r+".":"")+i+"."+o,l=0,s=this.keyValidators;l2&&"[]"===n.slice(l-2)&&(s=!0,r[n=n.slice(0,l-2)]||(r[n]=[])),a=o[1]?g(o[1]):""),s?r[n].push(a):r[n]=a}return r},recognize:function(t){var e,r,i,a=[this.rootState],o={},n=!1;if(-1!==(i=t.indexOf("?"))){var l=t.substr(i+1,t.length);t=t.substr(0,i),o=this.parseQueryString(l)}for("/"!==(t=decodeURI(t)).charAt(0)&&(t="/"+t),(e=t.length)>1&&"/"===t.charAt(e-1)&&(t=t.substr(0,e-1),n=!0),r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.FilterBuilder=void 0;var r=function(){function t(){}return t.prototype.withTargetObject=function(t){return this.target=t,this},t.prototype.withColumnTarget=function(t,e){return this.target={table:t,column:e},this},t.prototype.withMeasureTarget=function(t,e){return this.target={table:t,measure:e},this},t.prototype.withHierarchyLevelTarget=function(t,e,r){return this.target={table:t,hierarchy:e,hierarchyLevel:r},this},t.prototype.withColumnAggregation=function(t,e,r){return this.target={table:t,column:e,aggregationFunction:r},this},t.prototype.withHierarchyLevelAggregationTarget=function(t,e,r,i){return this.target={table:t,hierarchy:e,hierarchyLevel:r,aggregationFunction:i},this},t}();e.FilterBuilder=r},567:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeTimeFilterBuilder=e.RelativeDateFilterBuilder=e.TopNFilterBuilder=e.AdvancedFilterBuilder=e.BasicFilterBuilder=void 0;var i=r(153);Object.defineProperty(e,"BasicFilterBuilder",{enumerable:!0,get:function(){return i.BasicFilterBuilder}});var a=r(674);Object.defineProperty(e,"AdvancedFilterBuilder",{enumerable:!0,get:function(){return a.AdvancedFilterBuilder}});var o=r(664);Object.defineProperty(e,"TopNFilterBuilder",{enumerable:!0,get:function(){return o.TopNFilterBuilder}});var n=r(844);Object.defineProperty(e,"RelativeDateFilterBuilder",{enumerable:!0,get:function(){return n.RelativeDateFilterBuilder}});var l=r(275);Object.defineProperty(e,"RelativeTimeFilterBuilder",{enumerable:!0,get:function(){return l.RelativeTimeFilterBuilder}})},844:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeDateFilterBuilder=void 0;var o=r(149),n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isTodayIncluded=!0,e}return a(e,t),e.prototype.inLast=function(t,e){return this.operator=o.RelativeDateOperators.InLast,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inThis=function(t,e){return this.operator=o.RelativeDateOperators.InThis,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inNext=function(t,e){return this.operator=o.RelativeDateOperators.InNext,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.includeToday=function(t){return this.isTodayIncluded=t,this},e.prototype.build=function(){return new o.RelativeDateFilter(this.target,this.operator,this.timeUnitsCount,this.timeUnitType,this.isTodayIncluded)},e}(r(277).FilterBuilder);e.RelativeDateFilterBuilder=n},275:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.RelativeTimeFilterBuilder=void 0;var o=r(149),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.inLast=function(t,e){return this.operator=o.RelativeDateOperators.InLast,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inThis=function(t,e){return this.operator=o.RelativeDateOperators.InThis,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.inNext=function(t,e){return this.operator=o.RelativeDateOperators.InNext,this.timeUnitsCount=t,this.timeUnitType=e,this},e.prototype.build=function(){return new o.RelativeTimeFilter(this.target,this.operator,this.timeUnitsCount,this.timeUnitType)},e}(r(277).FilterBuilder);e.RelativeTimeFilterBuilder=n},664:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.TopNFilterBuilder=void 0;var o=r(149),n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.top=function(t){return this.operator="Top",this.itemCount=t,this},e.prototype.bottom=function(t){return this.operator="Bottom",this.itemCount=t,this},e.prototype.orderByTarget=function(t){return this.orderByTargetValue=t,this},e.prototype.build=function(){return new o.TopNFilter(this.target,this.operator,this.itemCount,this.orderByTargetValue)},e}(r(277).FilterBuilder);e.TopNFilterBuilder=n},460:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.default={version:"2.23.1",type:"js"}},536:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.invalidEmbedUrlErrorMessage=e.EmbedUrlNotSupported=e.APINotSupportedForRDLError=void 0,e.APINotSupportedForRDLError="This API is currently not supported for RDL reports",e.EmbedUrlNotSupported="Embed URL is invalid for this scenario. Please use Power BI REST APIs to get the valid URL",e.invalidEmbedUrlErrorMessage="Invalid embed URL detected. Either URL hostname or protocol are invalid. Please use Power BI REST APIs to get the valid URL"},357:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.routerFactory=e.wpmpFactory=e.hpmFactory=void 0;var i=r(960),a=r(319),o=r(891),n=r(913);e.hpmFactory=function(t,e,r,i,o){return void 0===r&&(r=n.default.version),void 0===i&&(i=n.default.type),new a.HttpPostMessage(t,{"x-sdk-type":i,"x-sdk-version":r,"x-sdk-wrapper-version":o},e)},e.wpmpFactory=function(t,e,r){return new i.WindowPostMessageProxy({processTrackingProperties:{addTrackingProperties:a.HttpPostMessage.addTrackingProperties,getTrackingProperties:a.HttpPostMessage.getTrackingProperties},isErrorMessage:a.HttpPostMessage.isErrorMessage,suppressWarnings:!0,name:t,logMessages:e,eventSourceOverrideWindow:r})},e.routerFactory=function(t){return new o.Router(t)}},220:function(t,e,r){var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0?"&":"?";return t+(i+e+"=")+r},e.isSavedInternal=function(t,e,a){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.get("/report/hasUnsavedChanges",{uid:e},a)];case 1:return[2,!r.sent().body];case 2:throw r.sent().body;case 3:return[2]}}))}))},e.isRDLEmbed=function(t){return t&&t.toLowerCase().indexOf("/rdlembed?")>=0},e.autoAuthInEmbedUrl=function(t){return t&&decodeURIComponent(t).toLowerCase().indexOf("autoauth=true")>=0},e.getRandomValue=l,e.getTimeDiffInMilliseconds=function(t,e){return Math.abs(t.getTime()-e.getTime())},e.isCreate=function(t){return"create"===t||"quickcreate"===t},e.validateEmbedUrl=function(t){if(t){var e=void 0;try{e=new URL(t.toLowerCase())}catch(t){return!1}return"https:"===e.protocol&&(a.test(e.hostname)||o.test(e.hostname))}}},23:function(t,e,r){var i,a=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(a,o){function n(t){try{s(i.next(t))}catch(t){o(t)}}function l(t){try{s(i.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((i=i.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,i,a,o,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((a=(a=n.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]0&&a[a.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]{var e;self,e=()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowPostMessageProxy=void 0;var r=function(){function t(e){void 0===e&&(e={processTrackingProperties:{addTrackingProperties:t.defaultAddTrackingProperties,getTrackingProperties:t.defaultGetTrackingProperties},isErrorMessage:t.defaultIsErrorMessage,receiveWindow:window,name:t.createRandomString()});var r=this;this.pendingRequestPromises={},this.addTrackingProperties=e.processTrackingProperties&&e.processTrackingProperties.addTrackingProperties||t.defaultAddTrackingProperties,this.getTrackingProperties=e.processTrackingProperties&&e.processTrackingProperties.getTrackingProperties||t.defaultGetTrackingProperties,this.isErrorMessage=e.isErrorMessage||t.defaultIsErrorMessage,this.receiveWindow=e.receiveWindow||window,this.name=e.name||t.createRandomString(),this.logMessages=e.logMessages||!1,this.eventSourceOverrideWindow=e.eventSourceOverrideWindow,this.suppressWarnings=e.suppressWarnings||!1,this.logMessages&&console.log("new WindowPostMessageProxy created with name: ".concat(this.name," receiving on window: ").concat(this.receiveWindow.document.title)),this.handlers=[],this.windowMessageHandler=function(t){return r.onMessageReceived(t)},this.start()}return t.defaultAddTrackingProperties=function(e,r){return e[t.messagePropertyName]=r,e},t.defaultGetTrackingProperties=function(e){return e[t.messagePropertyName]},t.defaultIsErrorMessage=function(t){return!!t.error},t.createDeferred=function(){var t={resolve:null,reject:null,promise:null},e=new Promise((function(e,r){t.resolve=e,t.reject=r}));return t.promise=e,t},t.createRandomString=function(){var t=window.crypto||window.msCrypto,e=new Uint32Array(1);return t.getRandomValues(e),e[0].toString(36).substring(1)},t.prototype.addHandler=function(t){this.handlers.push(t)},t.prototype.removeHandler=function(t){var e=this.handlers.indexOf(t);if(-1===e)throw new Error("You attempted to remove a handler but no matching handler was found.");this.handlers.splice(e,1)},t.prototype.start=function(){this.receiveWindow.addEventListener("message",this.windowMessageHandler)},t.prototype.stop=function(){this.receiveWindow.removeEventListener("message",this.windowMessageHandler)},t.prototype.postMessage=function(e,r,i){var a={id:t.createRandomString()};this.addTrackingProperties(r,a),console.log("".concat(this.name," Posting message:")),console.log(JSON.stringify(r,null," ")),console.log("target origin: ".concat(i)),e.postMessage(r,null!=i?i:"*");var o=t.createDeferred();return this.pendingRequestPromises[a.id]=o,o.promise},t.prototype.sendResponse=function(t,e,r,i){this.addTrackingProperties(e,r),this.logMessages&&(console.log("".concat(this.name," Sending response:")),console.log(JSON.stringify(e,null," "))),t.postMessage(e,null!=i?i:"*")},t.prototype.onMessageReceived=function(t){var e=this;this.logMessages&&(console.log("".concat(this.name," Received message:")),console.log("type: ".concat(t.type)),console.log(JSON.stringify(t.data,null," ")));var r=this.eventSourceOverrideWindow||t.source;if(r){var i=t.data;if("object"==typeof i){var a,o;try{a=this.getTrackingProperties(i)}catch(t){this.suppressWarnings||console.warn("Proxy(".concat(this.name,"): Error occurred when attempting to get tracking properties from incoming message:"),JSON.stringify(i,null," "),"Error: ",t)}if(a&&(o=this.pendingRequestPromises[a.id]),o){var n=!0;try{n=this.isErrorMessage(i)}catch(t){console.warn("Proxy(".concat(this.name,") Error occurred when trying to determine if message is consider an error response. Message: "),JSON.stringify(i,null,""),"Error: ",t)}n?o.reject(i):o.resolve(i),delete this.pendingRequestPromises[a.id]}else this.handlers.some((function(t){var o=!1;try{o=t.test(i)}catch(t){e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): Error occurred when handler was testing incoming message:"),JSON.stringify(i,null," "),"Error: ",t)}if(o){var n=void 0;try{n=Promise.resolve(t.handle(i))}catch(t){e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): Error occurred when handler was processing incoming message:"),JSON.stringify(i,null," "),"Error: ",t),n=Promise.resolve()}return n.then((function(t){if(!t){var o="Handler for message: ".concat(JSON.stringify(i,null," ")," did not return a response message. The default response message will be returned instead.");e.suppressWarnings||console.warn("Proxy(".concat(e.name,"): ").concat(o)),t={warning:o}}e.sendResponse(r,t,a)})),!0}}))||this.suppressWarnings||console.warn("Proxy(".concat(this.name,") did not handle message. Handlers: ").concat(this.handlers.length," Message: ").concat(JSON.stringify(i,null,""),"."))}else this.suppressWarnings||console.warn("Proxy(".concat(this.name,"): Received message that was not an object. Discarding message"))}},t.messagePropertyName="windowPostMessageProxy",t}();e.WindowPostMessageProxy=r})(),t})(),t.exports=e()}},e={};function r(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,r),o.exports}var i={};return(()=>{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.RelativeTimeFilterBuilder=t.RelativeDateFilterBuilder=t.TopNFilterBuilder=t.AdvancedFilterBuilder=t.BasicFilterBuilder=t.Create=t.QuickCreate=t.VisualDescriptor=t.Visual=t.Qna=t.Page=t.Embed=t.Tile=t.Dashboard=t.Report=t.models=t.factories=t.service=void 0;var e=r(149);t.models=e;var a=r(562);t.service=a;var o=r(357);t.factories=o;var n=r(125);Object.defineProperty(t,"Report",{enumerable:!0,get:function(){return n.Report}});var l=r(365);Object.defineProperty(t,"Dashboard",{enumerable:!0,get:function(){return l.Dashboard}});var s=r(43);Object.defineProperty(t,"Tile",{enumerable:!0,get:function(){return s.Tile}});var u=r(932);Object.defineProperty(t,"Embed",{enumerable:!0,get:function(){return u.Embed}});var d=r(220);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return d.Page}});var c=r(148);Object.defineProperty(t,"Qna",{enumerable:!0,get:function(){return c.Qna}});var p=r(23);Object.defineProperty(t,"Visual",{enumerable:!0,get:function(){return p.Visual}});var f=r(558);Object.defineProperty(t,"VisualDescriptor",{enumerable:!0,get:function(){return f.VisualDescriptor}});var h=r(714);Object.defineProperty(t,"QuickCreate",{enumerable:!0,get:function(){return h.QuickCreate}});var v=r(536);Object.defineProperty(t,"Create",{enumerable:!0,get:function(){return v.Create}});var y=r(567);Object.defineProperty(t,"BasicFilterBuilder",{enumerable:!0,get:function(){return y.BasicFilterBuilder}}),Object.defineProperty(t,"AdvancedFilterBuilder",{enumerable:!0,get:function(){return y.AdvancedFilterBuilder}}),Object.defineProperty(t,"TopNFilterBuilder",{enumerable:!0,get:function(){return y.TopNFilterBuilder}}),Object.defineProperty(t,"RelativeDateFilterBuilder",{enumerable:!0,get:function(){return y.RelativeDateFilterBuilder}}),Object.defineProperty(t,"RelativeTimeFilterBuilder",{enumerable:!0,get:function(){return y.RelativeTimeFilterBuilder}});var m=new a.Service(o.hpmFactory,o.wpmpFactory,o.routerFactory);window.powerbi&&window.powerBISDKGlobalServiceInstanceName?window[window.powerBISDKGlobalServiceInstanceName]=m:window.powerbi=m})(),i})())); diff --git a/owners.txt b/owners.txt deleted file mode 100644 index 19b61d37..00000000 --- a/owners.txt +++ /dev/null @@ -1 +0,0 @@ -corembed