1/*! powerbi-client v2.16.5 | (c) 2016 Microsoft Corporation MIT */ 2!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["powerbi-client"]=e():t["powerbi-client"]=e()}(this,(function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(a,i,function(e){return t[e]}.bind(null,i));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){ 3/*! powerbi-models v1.7.1 | (c) 2016 Microsoft Corporation MIT */ 4var a;a=function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(a,i,function(e){return t[e]}.bind(null,i));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.validateCustomTheme=e.validateCommandsSettings=e.validateVisualSettings=e.validateVisualHeader=e.validateExportDataRequest=e.validateQnaInterpretInputData=e.validateLoadQnaConfiguration=e.validateSaveAsParameters=e.validateFilter=e.validatePage=e.validateTileLoad=e.validateDashboardLoad=e.validateCreateReport=e.validateReportLoad=e.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.VisualDataRoleKindPreference=e.VisualDataRoleKind=e.CommandDisplayOption=e.SlicerTargetSelector=e.VisualTypeSelector=e.VisualSelector=e.PageSelector=e.Selector=e.SortDirection=e.LegendPosition=e.TextAlignment=e.CommonErrorCodes=e.BookmarksPlayMode=e.ExportDataType=e.QnaMode=e.PageNavigationPosition=e.isColumnAggr=e.isHierarchyLevelAggr=e.isHierarchyLevel=e.isColumn=e.isMeasure=e.getFilterType=e.isBasicFilterWithKeys=e.isFilterKeyColumnsTarget=e.AdvancedFilter=e.TupleFilter=e.BasicFilterWithKeys=e.BasicFilter=e.RelativeTimeFilter=e.RelativeDateFilter=e.TopNFilter=e.IncludeExcludeFilter=e.NotSupportedFilter=e.Filter=e.RelativeDateOperators=e.RelativeDateFilterTimeUnit=e.FilterType=e.FiltersLevel=e.MenuLocation=e.ContrastMode=e.TokenType=e.ViewMode=e.Permissions=e.SectionVisibility=e.HyperlinkCl
4ickBehavior=e.LayoutType=e.VisualContainerDisplayMode=e.BackgroundType=e.DisplayOption=e.PageSizeType=e.TraceType=void 0;var o,n=r(1);!function(t){t[t.Information=0]="Information",t[t.Verbose=1]="Verbose",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.ExpectedError=4]="ExpectedError",t[t.UnexpectedError=5]="UnexpectedError",t[t.Fatal=6]="Fatal"}(e.TraceType||(e.TraceType={})),function(t){t[t.Widescreen=0]="Widescreen",t[t.Standard=1]="Standard",t[t.Cortana=2]="Cortana",t[t.Letter=3]="Letter",t[t.Custom=4]="Custom"}(e.PageSizeType||(e.PageSizeType={})),function(t){t[t.FitToPage=0]="FitToPage",t[t.FitToWidth=1]="FitToWidth",t[t.ActualSize=2]="ActualSize"}(e.DisplayOption||(e.DisplayOption={})),function(t){t[t.Default=0]="Default",t[t.Transparent=1]="Transparent"}(e.BackgroundType||(e.BackgroundType={})),function(t){t[t.Visible=0]="Visible",t[t.Hidden=1]="Hidden"}(e.VisualContainerDisplayMode||(e.VisualContainerDisplayMode={})),function(t){t[t.Master=0]="Master",t[t.Custom=1]="Custom",t[t.MobilePortrait=2]="MobilePortrait",t[t.MobileLandscape=3]="MobileLandscape"}(e.LayoutType||(e.LayoutType={})),function(t){t[t.Navigate=0]="Navigate",t[t.NavigateAndRaiseEvent=1]="NavigateAndRaiseEvent",t[t.RaiseEvent=2]="RaiseEvent"}
vendor: 9,916 bytes, line 4
4(e.HyperlinkClickBehavior||(e.HyperlinkClickBehavior={})),function(t){t[t.AlwaysVisible=0]="AlwaysVisible",t[t.HiddenInViewMode=1]="HiddenInViewMode"}(e.SectionVisibility||(e.SectionVisibility={})),function(t){t[t.Read=0]="Read",t[t.ReadWrite=1]="ReadWrite",t[t.Copy=2]="Copy",t[t.Create=4]="Create",t[t.All=7]="All"}(e.Permissions||(e.Permissions={})),function(t){t[t.View=0]="View",t[t.Edit=1]="Edit"}(e.ViewMode||(e.ViewMode={})),function(t){t[t.Aad=0]="Aad",t[t.Embed=1]="Embed"}(e.TokenType||(e.TokenType={})),function(t){t[t.None=0]="None",t[t.HighContrast1=1]="HighContrast1",t[t.HighContrast2=2]="HighContrast2",t[t.HighContrastBlack=3]="HighContrastBlack",t[t.HighContrastWhite=4]="HighContrastWhite"}(e.ContrastMode||(e.ContrastMode={})),function(t){t[t.Bottom=0]="Bottom",t[t.Top=1]="Top"}(e.MenuLocation||(e.MenuLocation={})),function(t){t[t.Report=0]="Report",t[t.Page=1]="Page",t[t.Visual=2]="Visual"}(e.FiltersLevel||(e.FiltersLevel={})),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"}(o=e.FilterType||(e.FilterType={})),function(t){t[t.Days=0]="Days",t[t.Weeks=1]="Weeks",t[t.CalendarWeeks=2]="CalendarWeeks",t[t.Months=3]="Months",t[t.CalendarMonths=4]="CalendarMonths",t[t.Years=5]="Years",t[t.CalendarYears=6]="CalendarYears",t[t.Minutes=7]="Minutes",t[t.Hours=8]="Hours"}(e.RelativeDateFilterTimeUnit||(e.RelativeDateFilterTimeUnit={})),function(t){t[t.InLast=0]="InLast",t[t.InThis=1]="InThis",t[t.InNext=2]="InNext"}(e.RelativeDateOperators||(e.RelativeDateOperators={}));var l=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=l;var s=function(t){function e(r,a,i){var n=t.call(this,r,o.Unknown)||this;return n.message=a,n.notSupportedTypeName=i,n.schemaUrl=e.schemaUrl,n}return i(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}(l);e.NotSupportedFilter=s;var d=function(t){function e(r,a,i){var n=t.call(this,r,o.IncludeExclude)||this;return n.values=i,n.isExclude=a,n.schemaUrl=e.schemaUrl,n}return i(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}(l);e.IncludeExcludeFilter=d;var u=function(t){function e(r,a,i,n){var l=t.call(this,r,o.TopN)||this;return l.operator=a,l.itemCount=i,l.schemaUrl=e.schemaUrl,l.orderBy=n,l}return i(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}(l);e.TopNFilter=u;var c=function(t){function e(r,a,i,n,l){var s=t.call(this,r,o.RelativeDate)||this;return s.operator=a,s.timeUnitsCount=i,s.timeUnitType=n,s.includeToday=l,s.schemaUrl=e.schemaUrl,s}return i(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}(l);e.RelativeDateFilter=c;var p=function(t){function e(r,a,i,n){var l=t.call(this,r,o.RelativeTime)||this;return l.operator=a,l.timeUnitsCount=i,l.timeUnitType=n,l.schemaUrl=e.schemaUrl,l}return i(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}(l);e.RelativeTimeFilter=p;var f=function(t){function e(r,a){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var l=t.call(this,r,o.Basic)||this;if(l.operator=a,l.schemaUrl=e.schemaUrl,0===i.length&&"All"!==a)throw new Error('values must be a non-empty array unless your operator is "All".');return Array.isArray(i[0])?l.values=i[0]:l.values=i,l}return i(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.values=this.values,e.requireSingleSelection=!!this.requireSingleSelection,e},e.schemaUrl="http://powerbi.com/product/schema#basic",e}(l);e.BasicFilter=f;var h=function(t){function e(e,r,a,i){var o=t.call(this,e,r,a)||this;o.keyValues=i,o.target=e;var n=e.keys?e.keys.length:0;if(n>0&&!i)throw new Error("You should pass the values to be filtered for each key. You passed: no values and "+n+" keys");if(0===n&&i&&i.length>0)throw new Error("You passed key values but your target object doesn't contain the keys to be filtered");for(var l=0,s=o.keyValues;l<s.length;l++){var d=s[l];if(d){var u=d.length;if(u!==n)throw new Error("Each tuple of key values should contain a value for each of the keys. You passed: "+u+" values and "+n+" keys")}}return o}return i(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.keyValues=this.keyValues,e},e}(f);e.BasicFilterWithKeys=h;var v=function(t){function e(r,a,i){var n=t.call(this,r,o.Tuple)||this;return n.operator=a,n.schemaUrl=e.schemaUrl,n.values=i,n}return i(e,t),e.prototype.toJSON=function(){var e=t.prototype.toJSON.call(this);return e.operator=this.operator,e.values=this.values,e.target=this.target,e},e.schemaUrl="http://powerbi.com/product/schema#tuple",e}(l);e.TupleFilter=v;var y=function(t){function e(r,a){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var l,s=t.call(this,r,o.Advanced)||this;if(s.schemaUrl=e.schemaUrl,"string"!=typeof a||0===a.length)throw new Error("logicalOperator must be a valid operator, You passed: "+a);if(s.logicalOperator=a,0===(l=Array.isArray(i[0])?i[0]:i).length)throw new Error("conditions must be a non-empty array. You passed: "+i);if(l.length>2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: "+i.length);if(1===l.length&&"And"!==a)throw new Error('Logical Operator must be "And" when there is only one condition provided');return s.conditions=l,s}return i(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}(l);function m(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 V(t){return!(!t.table||!t.column||t.aggregationFunction)}e.AdvancedFilter=y,e.isFilterKeyColumnsTarget=function(t){return V(t)&&!!t.keys},e.isBasicFilterWithKeys=function(t){return m(t)===o.Basic&&!!t.keyValues},e.getFilterType=m,e.isMeasure=function(t){return void 0!==t.table&&void 0!==t.measure},e.isColumn=V,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)},function(t){t[t.Bottom=0]="Bottom",t[t.Left=1]="Left"}(e.PageNavigationPosition||(e.PageNavigationPosition={})),function(t){t[t.Interactive=0]="Interactive",t[t.ResultOnly=1]="ResultOnly"}(e.QnaMode||(e.QnaMode={})),function(t){t[t.Summarized=0]="Summarized",t[t.Underlying=1]="Underlying"}(e.ExportDataType||(e.ExportDataType={})),function(t){t[t.Off=0]="Off",t[t.Presentation=1]="Presentation"}(e.BookmarksPlayMode||(e.BookmarksPlayMode={})),e.CommonErrorCodes={TokenExpired:"TokenExpired",NotFound:"PowerBIEntityNotFound",InvalidParameters:"Invalid parameters",LoadReportFailed:"LoadReportFailed",NotAuthorized:"PowerBINotAuthorizedException",FailedToLoadModel:"ExplorationContainer_FailedToLoadModel_DefaultDetails"},e.TextAlignment={Left:"left",Center:"center",Right:"right"},e.LegendPosition={Top:"Top",Bottom:"Bottom",Right:"Right",Left:"Left",TopCenter:"TopCenter",BottomCenter:"BottomCenter",RightCenter:"RightCenter",LeftCenter:"LeftCenter"},function(t){t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"}(e.SortDirection||(e.SortDirection={}));var g=function(){function t(t){this.$schema=t}return t.prototype.toJSON=function(){return{$schema:this.$schema}},t}();e.Selector=g;var b=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.pageName=r,a}return i(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}(g);e.PageSelector=b;var w=function(t){function e(r){var a=t.call(this,e.schemaUrl)||this;return a.visualName=r,a}return i(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}(g);e.VisualSelector=w;var P=function(t){function e(e){var r=t.call(this,w.schemaUrl)||this;return r.visualType=e,r}return i(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}(g);e.VisualTypeSelector=P;var _=function(t){function e(e){var r=t.call(this,w.schemaUrl)||this;return r.target=e,r}return i(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}(g);function S(t){return t&&!!t.groupName}function E(t){return Array.isArray(t)}function O(t){var e=t.message;
4return e||(e=t.path+" is invalid. Not meeting "+t.keyword+" constraint"),{message:e}}e.SlicerTargetSelector=_,function(t){t[t.Enabled=0]="Enabled",t[t.Disabled=1]="Disabled",t[t.Hidden=2]="Hidden"}(e.CommandDisplayOption||(e.CommandDisplayOption={})),function(t){t[t.Grouping=0]="Grouping",t[t.Measure=1]="Measure",t[t.GroupingOrMeasure=2]="GroupingOrMeasure"}(e.VisualDataRoleKind||(e.VisualDataRoleKind={})),function(t){t[t.Measure=0]="Measure",t[t.Grouping=1]="Grouping"}(e.VisualDataRoleKindPreference||(e.VisualDataRoleKindPreference={})),e.isFlatMenuExtension=function(t){return t&&!S(t)},e.isGroupedMenuExtension=S,e.isIExtensions=function(t){return t&&!E(t)},e.isIExtensionArray=E,e.validateVisualSelector=function(t){var e=n.Validators.visualSelectorValidator.validate(t);return e?e.map(O):void 0},e.validateSlicer=function(t){var e=n.Validators.slicerValidator.validate(t);return e?e.map(O):void 0},e.validateSlicerState=function(t){var e=n.Validators.slicerStateValidator.validate(t);return e?e.map(O):void 0},e.validatePlayBookmarkRequest=function(t){var e=n.Validators.playBookmarkRequestValidator.validate(t);return e?e.map(O):void 0},e.validateAddBookmarkRequest=function(t){var e=n.Validators.addBookmarkRequestValidator.validate(t);return e?e.map(O):void 0},e.validateApplyBookmarkByNameRequest=function(t){var e=n.Validators.applyBookmarkByNameRequestValidator.validate(t);return e?e.map(O):void 0},e.validateApplyBookmarkStateRequest=function(t){var e=n.Validators.applyBookmarkStateRequestValidator.validate(t);return e?e.map(O):void 0},e.validateCaptureBookmarkRequest=function(t){var e=n.Validators.captureBookmarkRequestValidator.validate(t);return e?e.map(O):void 0},e.validateSettings=function(t){var e=n.Validators.settingsValidator.validate(t);return e?e.map(O):void 0},e.validatePanes=function(t){var e=n.Validators.reportPanesValidator.validate(t);return e?e.map(O):void 0},e.validateBookmarksPane=function(t){var e=n.Validators.bookmarksPaneValidator.validate(t);return e?e.map(O):void 0},e.validateFiltersPane=function(t){var e=n.Validators.filtersPaneValidator.validate(t);return e?e.map(O):void 0},e.validateFieldsPane=function(t){var e=n.Validators.fieldsPaneValidator.validate(t);return e?e.map(O):void 0},e.validatePageNavigationPane=function(t){var e=n.Validators.pageNavigationPaneValidator.validate(t);return e?e.map(O):void 0},e.validateSelectionPane=function(t){var e=n.Validators.selectionPaneValidator.validate(t);return e?e.map(O):void 0},e.validateSyncSlicersPane=function(t){var e=n.Validators.syncSlicersPaneValidator.validate(t);return e?e.map(O):void 0},e.validateVisualizationsPane=function(t){var e=n.Validators.visualizationsPaneValidator.validate(t);return e?e.map(O):void 0},e.validateCustomPageSize=function(t){var e=n.Validators.customPageSizeValidator.validate(t);return e?e.map(O):void 0},e.validateExtension=function(t){var e=n.Validators.extensionValidator.validate(t);return e?e.map(O):void 0},e.validateMenuGroupExtension=function(t){var e=n.Validators.menuGroupExtensionValidator.validate(t);return e?e.map(O):void 0},e.validateReportLoad=function(t){var e=n.Validators.reportLoadValidator.validate(t);return e?e.map(O):void 0},e.validateCreateReport=function(t){var e=n.Validators.reportCreateValidator.validate(t);return e?e.map(O):void 0},e.validateDashboardLoad=function(t){var e=n.Validators.dashboardLoadValidator.validate(t);return e?e.map(O):void 0},e.validateTileLoad=function(t){var e=n.Validators.tileLoadValidator.validate(t);return e?e.map(O):void 0},e.validatePage=function(t){var e=n.Validators.pageValidator.validate(t);return e?e.map(O):void 0},e.validateFilter=function(t){var e=n.Validators.filtersValidator.validate(t);return e?e.map(O):void 0},e.validateSaveAsParameters=function(t){var e=n.Validators.saveAsParametersValidator.validate(t);return e?e.map(O):void 0},e.validateLoadQnaConfiguration=function(t){var e=n.Validators.loadQnaValidator.validate(t);return e?e.map(O):void 0},e.validateQnaInterpretInputData=function(t){var e=n.Validators.qnaInterpretInputDataValidator.validate(t);return e?e.map(O):void 0},e.validateExportDataRequest=function(t){var e=n.Validators.exportDataRequestValidator.validate(t);return e?e.map(O):void 0},e.validateVisualHeader=function(t){var e=n.Validators.visualHeaderValidator.validate(t);return e?e.map(O):void 0},e.validateVisualSettings=function(t){var e=n.Validators.visualSettingsValidator.validate(t);return e?e.map(O):void 0},e.validateCommandsSettings=function(t){var e=n.Validators.commandsSettingsValidator.validate(t);return e?e.map(O):void 0},e.validateCustomTheme=function(t){var e=n.Validators.customThemeValidator.validate(t);return e?e.map(O):void 0}}
vendor: 3,960 bytes, line 4
4,function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Validators=void 0;var a=r(2),i=r(5),o=r(6),n=r(7),l=r(8),s=r(9),d=r(10),u=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),_=r(24),S=r(25),E=r(26),O=r(27),T=r(28),k=r(4);e.Validators={addBookmarkRequestValidator:new i.AddBookmarkRequestValidator,advancedFilterTypeValidator:new k.EnumValidator([0]),advancedFilterValidator:new c.AdvancedFilterValidator,anyArrayValidator:new k.ArrayValidator([new S.AnyOfValidator([new k.StringValidator,new k.NumberValidator,new k.BooleanValidator])]),anyFilterValidator:new S.AnyOfValidator([new c.BasicFilterValidator,new c.AdvancedFilterValidator,new c.IncludeExcludeFilterValidator,new c.NotSupportedFilterValidator,new c.RelativeDateFilterValidator,new c.TopNFilterValidator,new c.RelativeTimeFilterValidator]),anyValueValidator:new S.AnyOfValidator([new k.StringValidator,new k.NumberValidator,new k.BooleanValidator]),actionBarValidator:new a.ActionBarValidator,applyBookmarkByNameRequestValidator:new i.ApplyBookmarkByNameRequestValidator,applyBookmarkStateRequestValidator:new i.ApplyBookmarkStateRequestValidator,applyBookmarkValidator:new S.AnyOfValidator([new i.ApplyBookmarkByNameRequestValidator,new i.ApplyBookmarkStateRequestValidator]),backgroundValidator:new k.EnumValidator([0,1]),basicFilterTypeValidator:new k.EnumValidator([1]),basicFilterValidator:new c.BasicFilterValidator,booleanArrayValidator:new k.BooleanArrayValidator,booleanValidator:new k.BooleanValidator,bookmarksPaneValidator:new h.BookmarksPaneValidator,captureBookmarkOptionsValidator:new i.CaptureBookmarkOptionsValidator,captureBookmarkRequestValidator:new i.CaptureBookmarkRequestValidator,commandDisplayOptionValidator:new k.EnumValidator([0,1,2]),commandExtensionSelectorValidator:new S.AnyOfValidator([new g.VisualSelectorValidator,new g.VisualTypeSelectorValidator]),commandExtensionArrayValidator:new k.ArrayValidator([new u.CommandExtensionValidator]),commandExtensionValidator:new u.CommandExtensionValidator,commandsSettingsArrayValidator:new k.ArrayValidator([new o.CommandsSettingsValidator]),commandsSettingsValidator:new o.CommandsSettingsValidator,conditionItemValidator:new c.ConditionItemValidator,contrastModeValidator:new k.EnumValidator([0,1,2,3,4]),customLayoutDisplayOptionValidator:new k.EnumValidator([0,1,2]),customLayoutValidator:new p.CustomLayoutValidator,customPageSizeValidator:new f.CustomPageSizeValidator,customThemeValidator:new n.CustomThemeValidator,dashboardLoadValidator:new l.DashboardLoadValidator,datasetBindingValidator:new s.DatasetBindingValidator,displayStateModeValidator:new k.EnumValidator([0,1]),displayStateValidator:new p.DisplayStateValidator,exportDataRequestValidator:new d.ExportDataRequestValidator,extensionArrayValidator:new k.ArrayValidator([new u.ExtensionValidator]),extensionsValidator:new S.AnyOfValidator([new k.ArrayValidator([new u.ExtensionValidator]),new u.ExtensionsValidator]),extensionPointsValidator:new u.ExtensionPointsValidator,extensionValidator:new u.ExtensionValidator,fieldForbiddenValidator:new E.FieldForbiddenValidator,fieldRequiredValidator:new O.FieldRequiredValidator,fieldsPaneValidator:new h.FieldsPaneValidator,filterColumnTargetValidator:new c.FilterColumnTargetValidator,filterConditionsValidator:new k.ArrayValidator([new c.ConditionItemValidator]),filterHierarchyTargetValidator:new c.FilterHierarchyTargetValidator,filterMeasureTargetValidator:new c.FilterMeasureTargetValidator,filterTargetValidator:new S.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator]),filtersArrayValidator:new k.ArrayValidator([new S.AnyOfValidator([new c.BasicFilterValidator,new c.AdvancedFilterValidator,new c.RelativeDateFilterValidator,new c.RelativeTimeFilterValidator])]),filtersValidator:new c.FilterValidator,filtersPaneValidator:new h.FiltersPaneValidator,hyperlinkCl
4ickBehaviorValidator:new k.EnumValidator([0,1,2]),includeExcludeFilterValidator:new c.IncludeExcludeFilterValidator,includeExludeFilterTypeValidator:new k.EnumValidator([3]),layoutTypeValidator:new k.EnumValidator([0,1,2,3]),loadQnaValidator:new v.LoadQnaValidator,menuExtensionValidator:new S.AnyOfValidator([new u.FlatMenuExtensionValidator,new u.GroupedMenuExtensionValidator]),menuGroupExtensionArrayValidator:new k.ArrayValidator([new u.MenuGroupExtensionValidator]),menuGroupExtensionValidator:new u.MenuGroupExtensionValidator,menuLocationValidator:new k.EnumValidator([0,1]),notSupportedFilterTypeValidator:new k.EnumValidator([2]),notSupportedFilterValidator:new c.NotSupportedFilterValidator,numberArrayValidator:new k.NumberArrayValidator,numberValidator:new k.NumberValidator,pageLayoutValidator:new T.MapValidator([new k.StringValidator],[new p.VisualLayoutValidator]),pageNavigationPaneValidator:new h.PageNavigationPaneValidator,pageNavigationPositionValidator:new k.EnumValidator([0,1]),pageSizeTypeValidator:new k.EnumValidator([0,1,2,3,4,5]),pageSizeValidator:new f.PageSizeValidator,pageValidator:new f.PageValidator,pageViewFieldValidator:new f.PageViewFieldValidator,pagesLayoutValidator:new T.MapValidator([new k.StringValidator],[new p.PageLayoutValidator]),reportBarsValidator:new a.ReportBarsValidator,reportPanesValidator:new h.ReportPanesValidator,permissionsValidator:new k.EnumValidator([0,1,2,4,7]),playBookmarkRequestValidator:new i.PlayBookmarkRequestValidator,qnaInterpretInputDataValidator:new v.QnaInterpretInputDataValidator,qnaSettingValidator:new v.QnaSettingsValidator,relativeDateFilterOperatorValidator:new k.EnumValidator([0,1,2]),relativeDateFilterTimeUnitTypeValidator:new k.EnumValidator([0,1,2,3,4,5,6]),relativeDateFilterTypeValidator:new k.EnumValidator([4]),relativeDateFilterValidator:new c.RelativeDateFilterValidator,relativeTimeFilterTimeUnitTypeValidator:new k.EnumValidator([7,8]),relativeTimeFilterTypeValidator:new k.EnumValidator([7]),relativeTimeFilterValidator:new c.RelativeTimeFilterValidator,reportCreateValidator:new y.ReportCreateValidator,reportLoadValidator:new m.ReportLoadValidator,saveAsParametersValidator:new V.SaveAsParametersValidator,selectionPaneValidator:new h.SelectionPaneValidator,settingsValidator:new b.SettingsValidator,singleCommandSettingsValidator:new o.SingleCommandSettingsValidator,slicerSelectorValidator:new S.AnyOfValidator([new g.VisualSelectorValidator,new g.SlicerTargetSelectorValidator]),slicerStateValidator:new w.SlicerStateValidator,slicerTargetValidator:new S.AnyOfValidator([new c.FilterColumnTargetValidator,new c.FilterHierarchyTargetValidator,new c.FilterMeasureTargetValidator,new c.FilterKeyColumnsTargetValidator,new c.FilterKeyHierarchyTargetValidator]),slicerValidator:new w.SlicerValidator,stringArrayValidator:new k.StringArrayValidator,stringValidator:new k.StringValidator,syncSlicersPaneValidator:new h.SyncSlicersPaneValidator,tileLoadValidator:new P.TileLoadValidator,tokenTypeValidator:new k.EnumValidator([0,1]),topNFilterTypeValidator:new k.EnumValidator([5]),topNFilterValidator:new c.TopNFilterValidator,viewModeValidator:new k.EnumValidator([0,1]),visualCommandSelectorValidator:new S.AnyOfValidator([new g.VisualSelectorValidator,new g.VisualTypeSelectorValidator]),visualHeaderSelectorValidator:new S.AnyOfValidator([new g.VisualSelectorValidator,new g.VisualTypeSelectorValidator]),visualHeaderSettingsValidator:new _.VisualHeaderSettingsValidator,visualHeaderValidator:new _.VisualHeaderValidator,visualHeadersValidator:new k.ArrayValidator([new _.VisualHeaderValidator]),visualizationsPaneValidator:new h.VisualizationsPaneValidator,visualLayoutValidator:new p.VisualLayoutValidator,visualSelectorValidator:new g.VisualSelectorValidator,visualSettingsValidator:new _.VisualSettingsValidator,visualTypeSelectorValidator:new g.VisualTypeSelectorValidator}},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});
vendor: 4,218 bytes, line 4
4Object.defineProperty(e,"__esModule",{value:!0}),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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"actionBar",validators:[l.Validators.actionBarValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ReportBarsValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ActionBarValidator=d},function(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 a=e?e+"."+r:r,i=0,o=this.fieldValidatorsPairs;i<o.length;i++)for(var n=o[i],l=0,s=n.validators;l<s.length;l++){var d=s[l].validate(t[n.field],a,n.field);if(d)return d}return null},t}();e.MultipleFieldsValidator=r},function(t,e){var r,a=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function a(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)});Object.defineProperty(e,"__esModule",{value:!0}),e.NumberArrayValidator=e.BooleanArrayValidator=e.StringArrayValidator=e.EnumValidator=e.SchemaValidator=e.ValueValidator=e.NumberValidator=e.BooleanValidator=e.StringValidator=e.TypeValidator=e.ArrayValidator=e.ObjectValidator=void 0;var i=function(){function t(){}return t.prototype.validate=function(t,e,r){return null==t?null:"object"!=typeof t||Array.isArray(t)?[{message:void 0!==r?r+" must be an object":"input must be an object",path:e,keyword:"type"}]:null},t}();e.ObjectValidator=i;var o=function(){function t(t){this.itemValidators=t}return t.prototype.validate=function(t,e,r){if(null==t)return null;if(!Array.isArray(t))return[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"type"}];for(var a=0;a<t.length;a++)for(var i=(e?e+".":"")+r+"."+a,o=0,n=this.itemValidators;o<n.length;o++)if(n[o].validate(t[a],i,r))return[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"type"}];return null},t}();e.ArrayValidator=o;var n=function(){function t(t){this.expectedType=t}return t.prototype.validate=function(t,e,r){return null==t?null:typeof t!==this.expectedType?[{message:r+" must be a "+this.expectedType,path:(e?e+".":"")+r,keyword:"type"}]:null},t}();e.TypeValidator=n;var l=function(t){function e(){return t.call(this,"string")||this}return a(e,t),e}(n);e.StringValidator=l;var s=function(t){function e(){return t.call(this,"boolean")||this}return a(e,t),e}(n);e.BooleanValidator=s;var d=function(t){function e(){return t.call(this,"number")||this}return a(e,t),e}(n);e.NumberValidator=d;var u=function(){function t(t){this.possibleValues=t}return t.prototype.validate=function(t,e,r){return null==t?null:this.possibleValues.indexOf(t)<0?[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"invalid"}]:null},t}();e.ValueValidator=u;var c=function(t){function e(e){var r=t.call(this,[e])||this;return r.schemaValue=e,r}return a(e,t),e.prototype.validate=function(e,r,a){return t.prototype.validate.call(this,e,r,a)},e}(u);e.SchemaValidator=c;var p=function(t){function e(e){var r=t.call(this)||this;return r.possibleValues=e,r}return a(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);return i||new u(this.possibleValues).validate(e,r,a)},e}(d);e.EnumValidator=p;var f=function(t){function e(){return t.call(this,[new l])||this}return a(e,t),e.prototype.validate=function(e,r,a){return t.prototype.validate.call(this,e,r,a)?[{message:a+" must be an array of str
4ings",path:(r?r+".":"")+a,keyword:"type"}]:null},e}(o);e.StringArrayValidator=f;var h=function(t){function e(){return t.call(this,[new s])||this}return a(e,t),e.prototype.validate=function(e,r,a){return t.prototype.validate.call(this,e,r,a)?[{message:a+" must be an array of booleans",path:(r?r+".":"")+a,keyword:"type"}]:null},e}(o);e.BooleanArrayValidator=h;var v=function(t){function e(){return t.call(this,[new d])||this}return a(e,t),e.prototype.validate=function(e,r,a){return t.prototype.validate.call(this,e,r,a)?[{message:a+" must be an array of numbers",path:(r?r+".":"")+a,keyword:"type"}]:null},e}(o);e.NumberArrayValidator=v},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CaptureBookmarkRequestValidator=e.CaptureBookmarkOptionsValidator=e.ApplyBookmarkStateRequestValidator=e.ApplyBookmarkByNameRequestValidator=e.AddBookmarkRequestValidator=e.PlayBookmarkRequestValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var s=[{field:"playMode",validators:[l.Validators.fieldRequiredValidator,new n.EnumValidator([0,1])]}];return new o.MultipleFieldsValidator(s).validate(e,r,a)},e}(n.ObjectValidator);e.PlayBookmarkRequestValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"state",validators:[l.Validators.stringValidator]},{field:"displayName",validators:[l.Validators.stringValidator]},{field:"apply",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.AddBookmarkRequestValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"name",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ApplyBookmarkByNameRequestValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"state",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ApplyBookmarkStateRequestValidator=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"personalizeVisuals",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.CaptureBookmarkOptionsValidator=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"options",validators:[l.Validators.fieldRequiredValidator,l.Validators.captureBookmarkOptionsValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.CaptureBookmarkRequestValidator=f},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});
vendor: 44,376 bytes, line 4
4Object.defineProperty(e,"__esModule",{value:!0}),e.SingleCommandSettingsValidator=e.CommandsSettingsValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"copy",validators:[l.Validators.singleCommandSettingsValidator]},{field:"drill",validators:[l.Validators.singleCommandSettingsValidator]},{field:"drillthrough",validators:[l.Validators.singleCommandSettingsValidator]},{field:"expandCollapse",validators:[l.Validators.singleCommandSettingsValidator]},{field:"exportData",validators:[l.Validators.singleCommandSettingsValidator]},{field:"includeExclude",validators:[l.Validators.singleCommandSettingsValidator]},{field:"removeVisual",validators:[l.Validators.singleCommandSettingsValidator]},{field:"search",validators:[l.Validators.singleCommandSettingsValidator]},{field:"seeData",validators:[l.Validators.singleCommandSettingsValidator]},{field:"sort",validators:[l.Validators.singleCommandSettingsValidator]},{field:"spotlight",validators:[l.Validators.singleCommandSettingsValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.CommandsSettingsValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"displayOption",validators:[l.Validators.fieldRequiredValidator,l.Validators.commandDisplayOptionValidator]},{field:"selector",validators:[l.Validators.visualCommandSelectorValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SingleCommandSettingsValidator=d},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CustomThemeValidator=void 0;var o=r(3),n=r(4),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var l=[{field:"themeJson",validators:[new n.ObjectValidator]}];return new o.MultipleFieldsValidator(l).validate(e,r,a)},e}(n.ObjectValidator);e.CustomThemeValidator=l},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.DashboardLoadValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"accessToken",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"id",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"groupId",validators:[l.Validators.stringValidator]},{field:"pageView",validators:[l.Validators.pageViewFieldValidator]},{field:"tokenType",validators:[l.Validators.tokenTypeValidator]},{field:"embedUrl",validators:[l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.DashboardLoadValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.DatasetBindingValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"datasetId",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.DatasetBindingValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExportDataRequestValidator=void 0;var o=r(3),n=r(4),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var l=[{field:"rows",validators:[new n.NumberValidator]},{field:"exportDataType",validators:[new n.EnumValidator([0,1])]}];return new o.MultipleFieldsValidator(l).validate(e,r,a)},e}(n.ObjectValidator);e.ExportDataRequestValidator=l},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsValidator=e.MenuGroupExtensionValidator=e.ExtensionValidator=e.CommandExtensionValidator=e.ExtensionItemValidator=e.ExtensionPointsValidator=e.GroupedMenuExtensionValidator=e.FlatMenuExtensionValidator=e.MenuExtensionBaseValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"title",validators:[l.Validators.stringValidator]},{field:"icon",validators:[l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.MenuExtensionBaseValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"menuLocation",validators:[l.Validators.menuLocationValidator]},{field:"groupName",validators:[l.Validators.fieldForbiddenValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(s);e.FlatMenuExtensionValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"groupName",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"menuLocation",validators:[l.Validators.fieldForbiddenValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(s);e.GroupedMenuExtensionValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visualContextMenu",validators:[l.Validators.menuExtensionValidator]},{field:"visualOptionsMenu",validators:[l.Validators.menuExtensionValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ExtensionPointsValidator=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"name",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"extend",validators:[l.Validators.fieldRequiredValidator,l.Validators.extensionPointsValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ExtensionItemValidator=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"title",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"icon",validators:[l.Validators.stringValidator]},{field:"selector",validators:[l.Validators.commandExtensionSelectorValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(p);e.CommandExtensionValidator=f;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"command",validators:[l.Validators.commandExtensionValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ExtensionValidator=h;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"name",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"title",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"menuLocation",validators:[l.Validators.menuLocationValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.MenuGroupExtensionValidator=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"commands",validators:[l.Validators.fieldRequiredValidator,l.Validators.commandExtensionArrayValidator]},{field:"groups",validators:[l.Validators.menuGroupExtensionArrayValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ExtensionsValidator=y},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionItemValidator=e.FilterValidator=e.IncludeExcludeFilterValidator=e.NotSupportedFilterValidator=e.TopNFilterValidator=e.RelativeTimeFilterValidator=e.RelativeDateFilterValidator=e.AdvancedFilterValidator=e.BasicFilterValidator=e.FilterMeasureTargetValidator=e.FilterKeyHierarchyTargetValidator=e.FilterHierarchyTargetValidator=e.FilterKeyColumnsTargetValidator=e.FilterColumnTargetValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"table",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"column",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.FilterColumnTargetValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"keys",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringArrayValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(s);e.FilterKeyColumnsTargetValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"table",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"hierarchy",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"hierarchyLevel",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.FilterHierarchyTargetValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"keys",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringArrayValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(u);e.FilterKeyHierarchyTargetValidator=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"table",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"measure",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.FilterMeasureTargetValidator=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"operator",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"values",validators:[l.Validators.fieldRequiredValidator,l.Validators.anyArrayValidator]},{field:"filterType",validators:[l.Validators.basicFilterTypeValidator]},{field:"requireSingleSelection",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.BasicFilterValidator=f;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"logicalOperator",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"conditions",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterConditionsValidator]},{field:"filterType",validators:[l.Validators.advancedFilterTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.AdvancedFilterValidator=h;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"operator",validators:[l.Validators.fieldRequiredValidator,l.Validators.relativeDateFilterOperatorValidator]},{field:"timeUnitsCount",validators:[l.Validators.fieldRequiredValidator,l.Validators.numberValidator]},{field:"timeUnitType",validators:[l.Validators.fieldRequiredValidator,l.Validators.relativeDateFilterTimeUnitTypeValidator]},{field:"includeToday",validators:[l.Validators.fieldRequiredValidator,l.Validators.booleanValidator]},{field:"filterType",validators:[l.Validators.relativeDateFilterTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.RelativeDateFilterValidator=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"operator",validators:[l.Validators.fieldRequiredValidator,l.Validators.relativeDateFilterOperatorValidator]},{field:"timeUnitsCount",validators:[l.Validators.fieldRequiredValidator,l.Validators.numberValidator]},{field:"timeUnitType",validators:[l.Validators.fieldRequiredValidator,l.Validators.relativeTimeFilterTimeUnitTypeValidator]},{field:"filterType",validators:[l.Validators.relativeTimeFilterTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.RelativeTimeFilterValidator=y;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"operator",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"itemCount",validators:[l.Validators.fieldRequiredValidator,l.Validators.numberValidator]},{field:"filterType",validators:[l.Validators.topNFilterTypeValidator]},{field:"orderBy",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.TopNFilterValidator=m;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.filterTargetValidator]},{field:"message",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"notSupportedTypeName",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"filterType",validators:[l.Validators.notSupportedFilterTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.NotSupportedFilterValidator=V;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"target",validators:[l.Validators.fieldRequiredValidator,l.Validators.filterTargetValidator]},{field:"isExclude",validators:[l.Validators.fieldRequiredValidator,l.Validators.booleanValidator]},{field:"values",validators:[l.Validators.fieldRequiredValidator,l.Validators.anyArrayValidator]},{field:"filterType",validators:[l.Validators.includeExludeFilterTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.IncludeExcludeFilterValidator=g;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(t,e,r){return null==t?null:l.Validators.anyFilterValidator.validate(t,e,r)},e}(n.ObjectValidator);e.FilterValidator=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"value",validators:[l.Validators.anyValueValidator]},{field:"operator",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ConditionItemValidator=w},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.PageLayoutValidator=e.DisplayStateValidator=e.VisualLayoutValidator=e.CustomLayoutValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"pageSize",validators:[l.Validators.pageSizeValidator]},{field:"displayOption",validators:[l.Validators.customLayoutDisplayOptionValidator]},{field:"pagesLayout",validators:[l.Validators.pagesLayoutValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.CustomLayoutValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"x",validators:[l.Validators.numberValidator]},{field:"y",validators:[l.Validators.numberValidator]},{field:"z",validators:[l.Validators.numberValidator]},{field:"width",validators:[l.Validators.numberValidator]},{field:"height",validators:[l.Validators.numberValidator]},{field:"displayState",validators:[l.Validators.displayStateValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualLayoutValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"mode",validators:[l.Validators.displayStateModeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.DisplayStateValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visualsLayout",validators:[l.Validators.fieldRequiredValidator,l.Validators.pageLayoutValidator]},{field:"defaultLayout",validators:[l.Validators.visualLayoutValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.PageLayoutValidator=c},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.PageViewFieldValidator=e.PageValidator=e.CustomPageSizeValidator=e.PageSizeValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"type",validators:[l.Validators.fieldRequiredValidator,l.Validators.pageSizeTypeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.PageSizeValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"width",validators:[l.Validators.numberValidator]},{field:"height",validators:[l.Validators.numberValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(s);e.CustomPageSizeValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"name",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.PageValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);return i||(["actualSize","fitToWidth","oneColumn"].indexOf(e)<0?[{message:'pageView must be a string with one of the following values: "actualSize", "fitToWidth", "oneColumn"'}]:null)},e}(n.StringValidator);e.PageViewFieldValidator=c},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.VisualizationsPaneValidator=e.SyncSlicersPaneValidator=e.SelectionPaneValidator=e.PageNavigationPaneValidator=e.FiltersPaneValidator=e.FieldsPaneValidator=e.BookmarksPaneValidator=e.ReportPanesValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"bookmarks",validators:[l.Validators.bookmarksPaneValidator]},{field:"fields",validators:[l.Validators.fieldsPaneValidator]},{field:"filters",validators:[l.Validators.filtersPaneValidator]},{field:"pageNavigation",validators:[l.Validators.pageNavigationPaneValidator]},{field:"selection",validators:[l.Validators.selectionPaneValidator]},{field:"syncSlicers",validators:[l.Validators.syncSlicersPaneValidator]},{field:"visualizations",validators:[l.Validators.visualizationsPaneValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ReportPanesValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.BookmarksPaneValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"expanded",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.FieldsPaneValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]},{field:"expanded",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.FiltersPaneValidator=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]},{field:"position",validators:[l.Validators.pageNavigationPositionValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.PageNavigationPaneValidator=p;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SelectionPaneValidator=f;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SyncSlicersPaneValidator=h;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"expanded",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualizationsPaneValidator=v},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.QnaInterpretInputDataValidator=e.QnaSettingsValidator=e.LoadQnaValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"accessToken",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"datasetIds",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringArrayValidator]},{field:"question",validators:[l.Validators.stringValidator]},{field:"viewMode",validators:[l.Validators.viewModeValidator]},{field:"settings",validators:[l.Validators.qnaSettingValidator]},{field:"tokenType",validators:[l.Validators.tokenTypeValidator]},{field:"groupId",validators:[l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.LoadQnaValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"filterPaneEnabled",validators:[l.Validators.booleanValidator]},{field:"hideErrors",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.QnaSettingsValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"datasetIds",validators:[l.Validators.stringArrayValidator]},{field:"question",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.QnaInterpretInputDataValidator=u},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReportCreateValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"accessToken",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"datasetId",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"groupId",validators:[l.Validators.stringValidator]},{field:"tokenType",validators:[l.Validators.tokenTypeValidator]},{field:"theme",validators:[l.Validators.customThemeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ReportCreateValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReportLoadValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"accessToken",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"id",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"groupId",validators:[l.Validators.stringValidator]},{field:"settings",validators:[l.Validators.settingsValidator]},{field:"pageName",validators:[l.Validators.stringValidator]},{field:"filters",validators:[l.Validators.filtersArrayValidator]},{field:"permissions",validators:[l.Validators.permissionsValidator]},{field:"viewMode",validators:[l.Validators.viewModeValidator]},{field:"tokenType",validators:[l.Validators.tokenTypeValidator]},{field:"bookmark",validators:[l.Validators.applyBookmarkValidator]},{field:"theme",validators:[l.Validators.customThemeValidator]},{field:"embedUrl",validators:[l.Validators.stringValidator]},{field:"datasetBinding",validators:[l.Validators.datasetBindingValidator]},{field:"contrastMode",validators:[l.Validators.contrastModeValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.ReportLoadValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SaveAsParametersValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"name",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SaveAsParametersValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SlicerTargetSelectorValidator=e.VisualTypeSelectorValidator=e.VisualSelectorValidator=void 0;var o=r(3),n=r(4),l=r(4),s=r(1),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"$schema",validators:[s.Validators.stringValidator,new l.SchemaValidator("http://powerbi.com/product/schema#visualSelector")]},{field:"visualName",validators:[s.Validators.fieldRequiredValidator,s.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualSelectorValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"$schema",validators:[s.Validators.fieldRequiredValidator,s.Validators.stringValidator,new l.SchemaValidator("http://powerbi.com/product/schema#visualTypeSelector")]},{field:"visualType",validators:[s.Validators.fieldRequiredValidator,s.Validators.stringValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualTypeSelectorValidator=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"$schema",validators:[s.Validators.fieldRequiredValidator,s.Validators.stringValidator,new l.SchemaValidator("http://powerbi.com/product/schema#slicerTargetSelector")]},{field:"target",validators:[s.Validators.fieldRequiredValidator,s.Validators.slicerTargetValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SlicerTargetSelectorValidator=c},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SettingsValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"filterPaneEnabled",validators:[l.Validators.booleanValidator]},{field:"navContentPaneEnabled",validators:[l.Validators.booleanValidator]},{field:"bookmarksPaneEnabled",validators:[l.Validators.booleanValidator]},{field:"useCustomSaveAsDialog",validators:[l.Validators.booleanValidator]},{field:"extensions",validators:[l.Validators.extensionsValidator]},{field:"layoutType",validators:[l.Validators.layoutTypeValidator]},{field:"customLayout",validators:[l.Validators.customLayoutValidator]},{field:"background",validators:[l.Validators.backgroundValidator]},{field:"visualSettings",validators:[l.Validators.visualSettingsValidator]},{field:"hideErrors",validators:[l.Validators.booleanValidator]},{field:"commands",validators:[l.Validators.commandsSettingsArrayValidator]},{field:"hyperlinkClickBehavior",validators:[l.Validators.hyperlinkClickBehaviorValidator]},{field:"bars",validators:[l.Validators.reportBarsValidator]},{field:"panes",validators:[l.Validators.reportPanesValidator]},{field:"personalBookmarksEnabled",validators:[l.Validators.booleanValidator]},{field:"persistentFiltersEnabled",validators:[l.Validators.booleanValidator]},{field:"visualRenderedEvents",validators:[l.Validators.booleanValidator]},{field:"authoringHintsEnabled",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SettingsValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SlicerStateValidator=e.SlicerValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"selector",validators:[l.Validators.fieldRequiredValidator,l.Validators.slicerSelectorValidator]},{field:"state",validators:[l.Validators.fieldRequiredValidator,l.Validators.slicerStateValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SlicerValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"filters",validators:[l.Validators.filtersArrayValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.SlicerStateValidator=d},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.TileLoadValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"accessToken",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"id",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"dashboardId",validators:[l.Validators.fieldRequiredValidator,l.Validators.stringValidator]},{field:"groupId",validators:[l.Validators.stringValidator]},{field:"pageView",validators:[l.Validators.stringValidator]},{field:"tokenType",validators:[l.Validators.tokenTypeValidator]},{field:"width",validators:[l.Validators.numberValidator]},{field:"height",validators:[l.Validators.numberValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.TileLoadValidator=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.VisualHeaderValidator=e.VisualHeaderSettingsValidator=e.VisualSettingsValidator=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 i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visualHeaders",validators:[l.Validators.visualHeadersValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualSettingsValidator=s;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"visible",validators:[l.Validators.booleanValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualHeaderSettingsValidator=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;var n=[{field:"settings",validators:[l.Validators.fieldRequiredValidator,l.Validators.visualHeaderSettingsValidator]},{field:"selector",validators:[l.Validators.visualHeaderSelectorValidator]}];return new o.MultipleFieldsValidator(n).validate(e,r,a)},e}(n.ObjectValidator);e.VisualHeaderValidator=u}
4,function(t,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 a=!1,i=0,o=this.validators;i<o.length;i++)if(!o[i].validate(t,e,r)){a=!0;break}return a?null:[{message:r+" property is invalid",path:(e?e+".":"")+r,keyword:"invalid"}]},t}();e.AnyOfValidator=r},function(t,e){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},function(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 a,i=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(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 a=t.call(this)||this;return a.keyValidators=e,a.valueValidators=r,a}return i(e,t),e.prototype.validate=function(e,r,a){if(null==e)return null;var i=t.prototype.validate.call(this,e,r,a);if(i)return i;for(var o in e)if(e.hasOwnProperty(o)){for(var n=(r?r+".":"")+a+"."+o,l=0,s=this.keyValidators;l<s.length;l++)if(i=s[l].validate(o,n,a))return i;for(var d=0,u=this.valueValidators;d<u.length;d++)if(i=u[d].validate(e[o],n,a))return i}return null},e}(r(4).ObjectValidator);e.MapValidator=o}])},t.exports=a()},function(t,e,r){var a=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Embed=void 0;var o=r(2),n=r(7),l=r(0),s=r(3),d=function(){function t(e,r,a,i,n,l){if(this.allowedEvents=[],o.autoAuthInEmbedUrl(a.embedUrl))throw new Error(s.EmbedUrlNotSupported);Array.prototype.push.apply(this.allowedEvents,t.allowedEvents),this.eventHandlers=[],this.service=e,this.element=r,this.iframe=i,this.iframeLoaded=!1,this.embedtype=a.type.toLowerCase(),this.populateConfig(a,l),"create"===this.embedtype?this.setIframe(!1,n,l):this.setIframe(!0,n,l)}return t.prototype.createReport=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(e=l.validateCreateReport(t))throw e;r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/create",t,{uid:this.config.uniqueId,sdkSessionId:this.service.getSdkSessionId()},this.iframe.contentWindow)];case 2:return[2,r.sent().body];case 3:throw r.sent().body;case 4:return[2]}}
4))}))},t.prototype.save=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.post("/report/save",null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},t.prototype.saveAs=function(t){return a(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.service.hpm.post("/report/saveAs",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,e.sent().body];case 2:throw e.sent().body;case 3:return[2]}}))}))},t.prototype.getCorrelationId=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.get("/getCorrelationId",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},t.prototype.load=function(t){return a(this,void 0,void 0,(function(){var e,r,a;return i(this,(function(i){switch(i.label){case 0:if(!this.config.accessToken)return console.debug("Power BI SDK iframe is loaded but powerbi.embed is not called yet."),[2];if(!this.iframeLoaded)return console.debug("Power BI SDK is trying to post /report/load before iframe is ready."),[2];if(e=t&&"report"===this.config.type?this.phasedLoadPath:this.loadPath,r={uid:this.config.uniqueId,sdkSessionId:this.service.getSdkSessionId(),bootstrapped:this.config.bootstrapped,sdkVersion:n.default.version},a=new Date,this.lastLoadRequest&&o.getTimeDiffInMilliseconds(this.lastLoadRequest,a)<100)return console.debug("Power BI SDK sent more than two /report/load requests in the last 100ms interval."),[2];this.lastLoadRequest=a,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.service.hpm.post(e,this.config,r,this.iframe.contentWindow)];case 2:return[2,i.sent().body];case 3:throw i.sent().body;case 4:return[2]}}
4))}))},t.prototype.off=function(t,e){var r=this,a={name:t,type:null,id:null,value:null};e?(o.remove((function(t){return t.test(a)&&t.handle===e}),this.eventHandlers),this.element.removeEventListener(t,e)):this.eventHandlers.filter((function(t){return t.test(a)})).forEach((function(e){o.remove((function(t){return t===e}),r.eventHandlers),r.element.removeEventListener(t,e.handle)}))},t.prototype.on=function(t,e){if(-1===this.allowedEvents.indexOf(t))throw new Error("eventName must be one of "+this.allowedEvents+". You passed: "+t);this.eventHandlers.push({test:function(e){return e.name===t},handle:e}),this.element.addEventListener(t,e)},t.prototype.reload=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.load()];case 1:return[2,t.sent()]}}))}))},t.prototype.setAccessToken=function(e){return a(this,void 0,void 0,(function(){var r,a;return i(this,(function(i){switch(i.label){case 0:r="create"===(r=this.config.type)||"visual"===r||"qna"===r?"report":r,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.service.hpm.post("/"+r+"/token",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return a=i.sent(),this.config.accessToken=e,this.element.setAttribute(t.accessTokenAttribute,e),this.service.accessToken=e,[2,a.body];case 3:throw i.sent().body;case 4:return[2]}}
4))}))},t.prototype.getAccessToken=function(e){var r=this.config.accessToken||this.element.getAttribute(t.accessTokenAttribute)||e;if(!r)throw new Error("No access token was found for element. You must specify an access token directly on the element using attribute '"+t.accessTokenAttribute+"' or specify a global token at: powerbi.accessToken.");return r},t.prototype.populateConfig=function(t,e){this.bootstrapConfig?(this.config=o.assign({},this.bootstrapConfig,t),this.bootstrapConfig=null):this.config=o.assign({},t),this.config.embedUrl=this.getEmbedUrl(e),this.config.groupId=this.getGroupId(),this.addLocaleToEmbedUrl(t),this.config.uniqueId=this.getUniqueId(),e?(this.bootstrapConfig=this.config,this.bootstrapConfig.bootstrapped=!0):this.config.accessToken=this.getAccessToken(this.service.accessToken),this.configChanged(e)},t.prototype.addLocaleToEmbedUrl=function(t){if(t.settings){var e=t.settings.localeSettings;e&&e.language&&(this.config.embedUrl=o.addParamToUrl(this.config.embedUrl,"language",e.language)),e&&e.formatLocale&&(this.config.embedUrl=o.addParamToUrl(this.config.embedUrl,"formatLocale",e.formatLocale))}},t.prototype.getEmbedUrl=function(e){var r=this.config.embedUrl||this.element.getAttribute(t.embedUrlAttribute);if(e&&!r&&(r=this.getDefaultEmbedUrl(this.config.hostname)),"string"!=typeof r||0===r.length)throw new Error("Embed Url is required, but it was not found. You must provide an embed url either as part of embed configuration or as attribute '"+t.embedUrlAttribute+"'.");return r},t.prototype.getDefaultEmbedUrl=function(e){e||(e=t.defaultEmbedHostName);var r=this.getDefaultEmbedUrlEndpoint();if(0===(e=e.toLowerCase().trim()).indexOf("http://"))throw new Error("HTTP is not allowed. HTTPS is required");return 0===e.indexOf("https://")?e+"/"+r:"https://"+e+"/"+r},t.prototype.getUniqueId=function(){return this.config.uniqueId||this.element.getAttribute(t.nameAttribute)||o.createRandomString()},t.prototype.getGroupId=function(){return this.config.groupId||t.findGroupIdFromEmbedUrl(this.config.embedUrl)},t.prototype.fullscreen=function(){(this.iframe.requestFullscreen||this.iframe.msRequestFullscreen||this.iframe.mozRequestFullScreen||this.iframe.webkitRequestFullscreen).call(this.iframe)},t.prototype.exitFullscreen=function(){this.isFullscreen(this.iframe)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.msExitFullscreen).call(document)},t.prototype.isFullscreen=function(t){return["fullscreenElement","webkitFullscreenElement","mozFullscreenScreenElement","msFullscreenElement"].some((function(e){return document[e]===t}))},t.prototype.setIframe=function(e,r,a){var i=this;if(!this.iframe){var n=document.createElement("iframe"),l=this.config.uniqueId?o.addParamToUrl(this.config.embedUrl,"uid",this.config.uniqueId):this.config.embedUrl;n.style.width="100%",n.style.height="100%",n.setAttribute("src",l),n.setAttribute("scrolling","no"),n.setAttribute("allowfullscreen","true");for(var s=this.element;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(n),this.iframe=s.firstChild}if(e){if(!a){var d=this.validate(this.config);if(d)throw d}this.iframe.addEventListener("load",(function(){i.iframeLoaded=!0,i.load(r)}),!1),this.service.getNumberOfComponents()<=t.maxFrontLoadTimes&&(this.frontLoadHandler=function(){i.frontLoadSendConfig(i.config)},this.element.addEventListener("ready",this.frontLoadHandler,!1))}else this.iframe.addEventListener("load",(function(){return i.createReport(i.createConfig)}),!1)},t.prototype.setComponentTitle=function(t){this.iframe&&(null==t?this.iframe.removeAttribute("title"):this.iframe.setAttribute("title",t))},t.prototype.setComponentTabIndex=function(t){this.element&&this.element.setAttribute("tabindex",null==t?"0":t.toString())},t.prototype.removeComponentTabIndex=function(t){this.element&&this.element.removeAttribute("tabindex")},t.findGroupIdFromEmbedUrl=function(t){var e,r=t.match(/groupId="?([^&]+)"?/);return r&&(e=r[1]),e},t.prototype.frontLoadSendConfig=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(!t.accessToken)return[2];if(e=this.validate(t))throw e;if(null==this.iframe.contentWindow)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/frontload/config",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent().body];case 3:throw r.sent().body;case 4:return[2]}}
4))}))},t.allowedEvents=["loaded","saved","rendered","saveAsTriggered","error","dataSelected","buttonClicked"],t.accessTokenAttribute="powerbi-access-token",t.embedUrlAttribute="powerbi-embed-url",t.nameAttribute="powerbi-name",t.typeAttribute="powerbi-type",t.defaultEmbedHostName="https://app.powerbi.com",t.maxFrontLoadTimes=2,t}();e.Embed=d},function(t,e){var r=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};function i(t,e){if(!Array.isArray(e))throw new Error("You attempted to call find with second parameter that was not an array. You passed: "+e);var r;return e.some((function(e,a){if(t(e))return r=a,!0})),r}function o(){var t=window.crypto||window.msCrypto,e=new Uint32Array(1);return t.getRandomValues(e),e[0]}Object.defineProperty(e,"__esModule",{value:!0}),e.getTimeDiffInMilliseconds=e.getRandomValue=e.autoAuthInEmbedUrl=e.isRDLEmbed=e.isSavedInternal=e.addParamToUrl=e.generateUUID=e.createRandomString=e.assign=e.remove=e.find=e.findIndex=e.raiseCustomEvent=void 0,e.raiseCustomEvent=function(t,e,r){var a;"function"==typeof CustomEvent?a=new CustomEvent(e,{detail:r,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r),t.dispatchEvent(a)},e.findIndex=i,e.find=function(t,e){return e[i(t,e)]},e.remove=function(t,e){var r=i(t,e);e.splice(r,1)},e.assign=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0];if(null==r)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(r),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var n in o)o.hasOwnProperty(n)&&(a[n]=o[n])}return a},e.createRandomString=function(){return o().toString(36).substring(1)},e.generateUUID=function(){return(new Date).getTime(),"undefined"!=typeof performance&&"function"==typeof performance.now&&performance.now(),"xxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=o()%16;return 4,e.toString(16)}))},e.addParamToUrl=function(t,e,r){var a=t.indexOf("?")>0?"&":"?";return t+=a+e+"="+r},e.isSavedInternal=function(t,e,i){return r(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.get("/report/hasUnsavedChanges",{uid:e},i)];case 1:return[2,!r.sent().body];case 2:throw r.sent().body;case 3:return[2]}}
4))}))},e.isRDLEmbed=function(t){return t.toLowerCase().indexOf("/rdlembed?")>=0},e.autoAuthInEmbedUrl=function(t){return t&&decodeURIComponent(t).toLowerCase().indexOf("autoauth=true")>=0},e.getRandomValue=o,e.getTimeDiffInMilliseconds=function(t,e){return Math.abs(t.getTime()-e.getTime())}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),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"},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Report=void 0;var l=r(1),s=r(0),d=r(2),u=r(3),c=r(5),p=r(14),f=function(t){function e(r,a,i,o,n,l){var s=this,d=i;return(s=t.call(this,r,a,d,l,o,n)||this).loadPath="/report/load",s.phasedLoadPath="/report/prepare",Array.prototype.push.apply(s.allowedEvents,e.allowedEvents),s.bookmarksManager=new p.BookmarksManager(r,d,s.iframe),s}return i(e,t),e.findIdFromEmbedUrl=function(t){var e,r=t.match(/reportId="?([^&]+)"?/);return r&&(e=r[1]),e},e.prototype.render=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.service.hpm.post("/report/render",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,e.sent().body];case 2:throw e.sent().body;case 3:return[2]}}
4))}))},e.prototype.addPage=function(t){return o(this,void 0,void 0,(function(){var e,r,a;return n(this,(function(i){switch(i.label){case 0:e={displayName:t},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/addPage",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return r=i.sent(),a=r.body,[2,new c.Page(this,a.name,a.displayName,a.isActive,a.visibility,a.defaultSize,a.defaultDisplayOption)];case 3:throw i.sent().body;case 4:return[2]}}))}))},e.prototype.deletePage=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.service.hpm.delete("/report/pages/"+t,{},{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,e.sent().body];case 2:throw e.sent().body;case 3:return[2]}}))}))},e.prototype.renamePage=function(t,e){return o(this,void 0,void 0,(function(){var r;return n(this,(function(a){switch(a.label){case 0:r={name:t,displayName:e},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.service.hpm.put("/report/pages/"+t+"/name",r,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,a.sent().body];case 3:throw a.sent().body;case 4:return[2]}}
4))}))},e.prototype.getFilters=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:if(d.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(u.APINotSupportedForRDLError)];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.service.hpm.get("/report/filters",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,t.sent().body];case 3:throw t.sent().body;case 4:return[2]}}))}))},e.prototype.getId=function(){var t=this.config,r=t.id||this.element.getAttribute(e.reportIdAttribute)||e.findIdFromEmbedUrl(t.embedUrl);if("string"!=typeof r||0===r.length)throw new Error("Report id is required, but it was not found. You must provide an id either as part of embed configuration or as attribute '"+e.reportIdAttribute+"'.");return r},e.prototype.getPages=function(){return o(this,void 0,void 0,(function(){var t=this;return n(this,(function(e){switch(e.label){case 0:if(d.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(u.APINotSupportedForRDLError)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.service.hpm.get("/report/pages",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,e.sent().body.map((function(e){return new c.Page(t,e.name,e.displayName,e.isActive,e.visibility,e.defaultSize,e.defaultDisplayOption)}))];case 3:throw e.sent().body;case 4:return[2]}}
4))}))},e.prototype.page=function(t,e,r,a){return new c.Page(this,t,e,r,a)},e.prototype.print=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:if(d.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(u.APINotSupportedForRDLError)];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/print",null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,t.sent().body];case 3:throw t.sent().body;case 4:return[2]}}))}))},e.prototype.removeFilters=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return d.isRDLEmbed(this.config.embedUrl)?[2,Promise.reject(u.APINotSupportedForRDLError)]:[4,this.setFilters([])];case 1:return[2,t.sent()]}}))}))},e.prototype.setPage=function(t){return o(this,void 0,void 0,(function(){var e;return n(this,(function(r){switch(r.label){case 0:if(d.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(u.APINotSupportedForRDLError)];e={name:t,displayName:null,isActive:!0},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.put("/report/pages/active",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}
4))}))},e.prototype.setFilters=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:if(d.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(u.APINotSupportedForRDLError)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.service.hpm.put("/report/filters",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,e.sent()];case 3:throw e.sent().body;case 4:return[2]}}))}))},e.prototype.updateSettings=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:if(d.isRDLEmbed(this.config.embedUrl)&&null!=t.customLayout)return[2,Promise.reject(u.APINotSupportedForRDLError)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.service.hpm.patch("/report/settings",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,e.sent()];case 3:throw e.sent().body;case 4:return[2]}}))}))},e.prototype.validate=function(t){return s.validateReportLoad(t)},e.prototype.configChanged=function(t){var r=this.config;this.isMobileSettings(r.settings)&&(r.embedUrl=d.addParamToUrl(r.embedUrl,"isMobile","true"));var a=this.element.getAttribute(e.filterPaneEnabledAttribute),i=this.element.getAttribute(e.navContentPaneEnabledAttribute),o={filterPaneEnabled:null==a?void 0:"false"!==a,navContentPaneEnabled:null==i?void 0:"false"!==i};this.config.settings=d.assign({},o,r.settings),t||(r.id=this.getId())},e.prototype.getDefaultEmbedUrlEndpoint=function(){return"reportEmbed"},e.prototype.switchMode=function(t){return o(this,void 0,void 0,(function(){var e,r;return n(this,(function(a){switch(a.label){case 0:e="string"==typeof t?t:this.viewModeToString(t),r="/report/switchMode/"+e,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.service.hpm.post(r,null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,a.sent().body];case 3:throw a.sent().body;case 4:return[2]}}
4))}))},e.prototype.refresh=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.post("/report/refresh",null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},e.prototype.isSaved=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return d.isRDLEmbed(this.config.embedUrl)?[2,Promise.reject(u.APINotSupportedForRDLError)]:[4,d.isSavedInternal(this.service.hpm,this.config.uniqueId,this.iframe.contentWindow)];case 1:return[2,t.sent()]}}))}))},e.prototype.applyTheme=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return d.isRDLEmbed(this.config.embedUrl)?[2,Promise.reject(u.APINotSupportedForRDLError)]:[4,this.applyThemeInternal(t)];case 1:return[2,e.sent()]}}))}))},e.prototype.resetTheme=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return d.isRDLEmbed(this.config.embedUrl)?[2,Promise.reject(u.APINotSupportedForRDLError)]:[4,this.applyThemeInternal({})];case 1:return[2,t.sent()]}}))}))},e.prototype.resetPersistentFilters=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.delete("/report/userState",null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent()];case 2:throw t.sent().body;case 3:return[2]}}
4))}))},e.prototype.savePersistentFilters=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.post("/report/userState",null,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent()];case 2:throw t.sent().body;case 3:return[2]}}))}))},e.prototype.arePersistentFiltersApplied=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.service.hpm.get("/report/isUserStateApplied",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},e.prototype.applyThemeInternal=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.service.hpm.put("/report/theme",t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 1:return[2,e.sent().body];case 2:throw e.sent().body;case 3:return[2]}}
vendor: 2,780 bytes, line 4
4))}))},e.prototype.viewModeToString=function(t){var e;switch(t){case s.ViewMode.Edit:e="edit";break;case s.ViewMode.View:e="view"}return e},e.prototype.isMobileSettings=function(t){return t&&(t.layoutType===s.LayoutType.MobileLandscape||t.layoutType===s.LayoutType.MobilePortrait)},e.allowedEvents=["filtersApplied","pageChanged","commandTriggered","swipeStart","swipeEnd","bookmarkApplied","dataHyperlinkClicked","visualRendered","visualClicked","selectionChanged"],e.reportIdAttribute="powerbi-report-id",e.filterPaneEnabledAttribute="powerbi-settings-filter-pane-enabled",e.navContentPaneEnabledAttribute="powerbi-settings-nav-content-pane-enabled",e.typeAttribute="powerbi-type",e.type="Report",e}(l.Embed);e.Report=f},function(t,e,r){var a=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Page=void 0;var o=r(6),n=r(0),l=r(2),s=r(3),d=function(){function t(t,e,r,a,i,o,n){this.report=t,this.name=e,this.displayName=r,this.isActive=a,this.visibility=i,this.defaultSize=o,this.defaultDisplayOption=n}return t.prototype.getFilters=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.report.service.hpm.get("/report/pages/"+this.name+"/filters",{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}
4))}))},t.prototype.delete=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.report.service.hpm.delete("/report/pages/"+this.name,{},{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},t.prototype.removeFilters=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.setFilters([])];case 1:return[2,t.sent()]}}))}))},t.prototype.setActive=function(){return a(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:t={name:this.name,displayName:null,isActive:!0},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.report.service.hpm.put("/report/pages/active",t,{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 2:return[2,e.sent()];case 3:throw e.sent().body;case 4:return[2]}}))}))},t.prototype.setFilters=function(t){return a(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.report.service.hpm.put("/report/pages/"+this.name+"/filters",t,{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 1:return[2,e.sent()];case 2:throw e.sent().body;case 3:return[2]}}
4))}))},t.prototype.setDisplayName=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:e={name:this.name,displayName:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.report.service.hpm.put("/report/pages/"+this.name+"/name",e,{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}))}))},t.prototype.getVisuals=function(){return a(this,void 0,void 0,(function(){var t=this;return i(this,(function(e){switch(e.label){case 0:if(l.isRDLEmbed(this.report.config.embedUrl))return[2,Promise.reject(s.APINotSupportedForRDLError)];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.report.service.hpm.get("/report/pages/"+this.name+"/visuals",{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 2:return[2,e.sent().body.map((function(e){return new o.VisualDescriptor(t,e.name,e.title,e.type,e.layout)}))];case 3:throw e.sent().body;case 4:return[2]}}))}))},t.prototype.hasLayout=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(l.isRDLEmbed(this.report.config.embedUrl))return[2,Promise.reject(s.APINotSupportedForRDLError)];e=n.LayoutType[t],r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.report.service.hpm.get("/report/pages/"+this.name+"/layoutTypes/"+e,{uid:this.report.config.uniqueId},this.report.iframe.contentWindow)];case 2:return[2,r.sent().body];case 3:throw r.sent().body;case 4:return[2]}}
4))}))},t}();e.Page=d},function(t,e){var r=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.VisualDescriptor=void 0;var i=function(){function t(t,e,r,a,i){this.name=e,this.title=r,this.type=a,this.layout=i,this.page=t}return t.prototype.getFilters=function(){return r(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.page.report.service.hpm.get("/report/pages/"+this.page.name+"/visuals/"+this.name+"/filters",{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}
4))}))},t.prototype.removeFilters=function(){return r(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.setFilters([])];case 1:return[2,t.sent()]}}))}))},t.prototype.setFilters=function(t){return r(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.page.report.service.hpm.put("/report/pages/"+this.page.name+"/visuals/"+this.name+"/filters",t,{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,e.sent()];case 2:throw e.sent().body;case 3:return[2]}}))}))},t.prototype.exportData=function(t,e){return r(this,void 0,void 0,(function(){var r;return a(this,(function(a){switch(a.label){case 0:r={rows:e,exportDataType:t},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.page.report.service.hpm.post("/report/pages/"+this.page.name+"/visuals/"+this.name+"/exportData",r,{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 2:return[2,a.sent().body];case 3:throw a.sent().body;case 4:return[2]}}
4))}))},t.prototype.setSlicerState=function(t){return r(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.page.report.service.hpm.put("/report/pages/"+this.page.name+"/visuals/"+this.name+"/slicer",t,{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,e.sent()];case 2:throw e.sent().body;case 3:return[2]}}))}))},t.prototype.getSlicerState=function(){return r(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.page.report.service.hpm.get("/report/pages/"+this.page.name+"/visuals/"+this.name+"/slicer",{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,t.sent().body];case 2:throw t.sent().body;case 3:return[2]}}))}))},t.prototype.clone=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.page.report.service.hpm.post("/report/pages/"+this.page.name+"/visuals/"+this.name+"/clone",t,{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,e.sent().body];case 2:throw e.sent().body;case 3:return[2]}}
4))}))},t.prototype.sortBy=function(t){return r(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.page.report.service.hpm.put("/report/pages/"+this.page.name+"/visuals/"+this.name+"/sortBy",t,{uid:this.page.report.config.uniqueId},this.page.report.iframe.contentWindow)];case 1:return[2,e.sent()];case 2:throw e.sent().body;case 3:return[2]}}))}))},t}();e.VisualDescriptor=i},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default={version:"2.16.5",type:"js"}},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Dashboard=void 0;var o=r(1),n=r(0),l=function(t){function e(r,a,i,o,n){var l=t.call(this,r,a,i,void 0,o,n)||this;return l.loadPath="/dashboard/load",l.phasedLoadPath="/dashboard/prepare",Array.prototype.push.apply(l.allowedEvents,e.allowedEvents),l}return i(e,t),e.findIdFromEmbedUrl=function(t){var e,r=t.match(/dashboardId="?([^&]+)"?/);return r&&(e=r[1]),e},e.prototype.getId=function(){var t=this.config,r=t.id||this.element.getAttribute(e.dashboardIdAttribute)||e.findIdFromEmbedUrl(t.embedUrl);if("string"!=typeof r||0===r.length)throw new Error("Dashboard id is required, but it was not found. You must provide an id either as part of embed configuration or as attribute '"+e.dashboardIdAttribute+"'.");return r},e.prototype.validate=function(t){var e=t,r=n.validateDashboardLoad(e);return r||this.ValidatePageView(e.pageView)},e.prototype.configChanged=function(t){t||(this.config.id=this.getId())},e.prototype.getDefaultEmbedUrlEndpoint=function(){return"dashboardEmbed"},e.prototype.ValidatePageView=function(t){if(t&&"fitToWidth"!==t&&"oneColumn"!==t&&"actualSize"!==t)return[{message:"pageView must be one of the followings: fitToWidth, oneColumn, actualSize"}]},e.allowedEvents=["tileClicked","error"],e.dashboardIdAttribute="powerbi-dashboard-id",e.typeAttribute="powerbi-type",e.type="Dashboard",e}(o.Embed);e.Dashboard=l},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.Tile=void 0;var o=r(0),n=function(t){function e(r,a,i,o,n){var l=this,s=i;return(l=t.call(this,r,a,s,void 0,o,n)||this).loadPath="/tile/load",Array.prototype.push.apply(l.allowedEvents,e.allowedEvents),l}return i(e,t),e.prototype.getId=function(){var t=this.config.id||e.findIdFromEmbedUrl(this.config.embedUrl);if("string"!=typeof t||0===t.length)throw new Error("Tile id is required, but it was not found. You must provide an id either as part of embed configuration.");return t},e.prototype.validate=function(t){var e=t;return o.validateTileLoad(e)},e.prototype.configChanged=function(t){t||(this.config.id=this.getId())},e.prototype.getDefaultEmbedUrlEndpoint=function(){return"tileEmbed"},e.findIdFromEmbedUrl=function(t){var e,r=t.match(/tileId="?([^&]+)"?/);return r&&(e=r[1]),e},e.type="Tile",e.allowedEvents=["tileClicked","tileLoaded"],e}(r(1).Embed);e.Tile=n},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
vendor: 5,707 bytes, line 4
4function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Qna=void 0;var l=r(0),s=function(t){function e(r,a,i,o,n){var l=t.call(this,r,a,i,void 0,o,n)||this;return l.loadPath="/qna/load",l.phasedLoadPath="/qna/prepare",Array.prototype.push.apply(l.allowedEvents,e.allowedEvents),l}return i(e,t),e.prototype.getId=function(){return null},e.prototype.setQuestion=function(t){return o(this,void 0,void 0,(function(){var e;return n(this,(function(r){switch(r.label){case 0:e={question:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/qna/interpret",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}))}))},e.prototype.configChanged=function(t){},e.prototype.getDefaultEmbedUrlEndpoint=function(){return"qnaEmbed"},e.prototype.validate=function(t){return l.validateLoadQnaConfiguration(t)},e.type="Qna",e.allowedEvents=["loaded","visualRendered"],e}(r(1).Embed);e.Qna=s},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Visual=void 0;var l=r(0),s=r(4),d=r(6),u=function(t){function e(e,r,a,i,o,n){return t.call(this,e,r,a,i,o,n)||this}return i(e,t),e.prototype.load=function(e){var r=this.config;if(r.accessToken){if("string"!=typeof r.pageName||0===r.pageName.length)throw new Error("Page name is required when embedding a visual.");if("string"!=typeof r.visualName||0===r.visualName.length)throw new Error("Visual name is required, but it was not found. You must provide a visual name as part of embed configuration.");var a=r.width?r.width:this.iframe.offsetWidth,i=r.height?r.height:this.iframe.offsetHeight,o={type:l.PageSizeType.Custom,width:a,height:i},n={};return n[r.pageName]={defaultLayout:{displayState:{mode:l.VisualContainerDisplayMode.Hidden}},visualsLayout:{}},n[r.pageName].visualsLayout[r.visualName]={displayState:{mode:l.VisualContainerDisplayMode.Visible},x:1,y:1,z:1,width:o.width,height:o.height},r.settings=r.settings||{},r.settings.filterPaneEnabled=!1,r.settings.navContentPaneEnabled=!1,r.settings.layoutType=l.LayoutType.Custom,r.settings.customLayout={displayOption:l.DisplayOption.FitToPage,pageSize:o,pagesLayout:n},this.config=r,t.prototype.load.call(this,e)}},e.prototype.getPages=function(){throw e.GetPagesNotSupportedError},e.prototype.setPage=function(t){throw e.SetPageNotSupportedError},e.prototype.render=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(t){throw e.RenderNotSupportedError}))}))},e.prototype.getVisualDescriptor=function(){return o(this,void 0,void 0,(function(){var t,e,r,a,i;return n(this,(function(o){switch(o.label){case 0:t=this.config,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.service.hpm.get("/report/pages/"+t.pageName+"/visuals",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:if(e=o.sent(),0===(r=e.body.filter((function(e){return e.name===t.visualName}))).length)throw{message:"visualNotFound",detailedMessage:"Visual not found"};return a=r[0],i=this.page(t.pageName),[2,new d.VisualDescriptor(i,a.name,a.title,a.type,a.layout)];case 3:throw o.sent().body;case 4:return[2]}}
4))}))},e.prototype.getFilters=function(t){return o(this,void 0,void 0,(function(){var e;return n(this,(function(r){switch(r.label){case 0:e=this.getFiltersLevelUrl(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.get(e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent().body];case 3:throw r.sent().body;case 4:return[2]}}))}))},e.prototype.setFilters=function(t,e){return o(this,void 0,void 0,(function(){var r;return n(this,(function(a){switch(a.label){case 0:r=this.getFiltersLevelUrl(e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.service.hpm.put(r,t,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,a.sent()];case 3:throw a.sent().body;case 4:return[2]}}))}))},e.prototype.removeFilters=function(t){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,this.setFilters([],t)];case 1:return[2,e.sent()]}}))}))},e.prototype.getFiltersLevelUrl=function(t){var e=this.config;switch(t){case l.FiltersLevel.Report:return"/report/filters";case l.FiltersLevel.Page:return"/report/pages/"+e.pageName+"/filters";default:return"/report/pages/"+e.pageName+"/visuals/"+e.visualName+"/filters"}},e.type="visual",e.GetPagesNotSupportedError="Get pages is not supported while embedding a visual.",e.SetPageNotSupportedError="Set page is not supported while embedding a visual.",e.RenderNotSupportedError="render is not supported while embedding a visual.",e}(s.Report);e.Visual=u},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.VisualDescriptor=e.Visual=e.Qna=e.Page=e.Embed=e.Tile=e.Dashboard=e.Report=e.models=e.factories=e.service=void 0;var a=r(13);e.service=a;var i=r(16);e.factories=i;var o=r(0);e.models=o;var n=r(4);Object.defineProperty(e,"Report",{enumerable:!0,get:function(){return n.Report}});var l=r(8);Object.defineProperty(e,"Dashboard",{enumerable:!0,get:function(){return l.Dashboard}});var s=r(9);Object.defineProperty(e,"Tile",{enumerable:!0,get:function(){return s.Tile}});var d=r(1);Object.defineProperty(e,"Embed",{enumerable:!0,get:function(){return d.Embed}});var u=r(5);Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return u.Page}});var c=r(10);Object.defineProperty(e,"Qna",{enumerable:!0,get:function(){return c.Qna}});var p=r(11);Object.defineProperty(e,"Visual",{enumerable:!0,get:function(){return p.Visual}});var f=r(6);Object.defineProperty(e,"VisualDescriptor",{enumerable:!0,get:function(){return f.VisualDescriptor}});var h=new a.Service(i.hpmFactory,i.wpmpFactory,i.routerFactory);window.powerbi=h},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;var a=r(1),i=r(4),o=r(15),n=r(8),l=r(9),s=r(5),d=r(10),u=r(11),c=r(2),p=function(){function t(e,r,a,i){var o=this;void 0===i&&(i={}),this.wpmp=r(i.wpmpName,i.logMessages),this.hpm=e(this.wpmp,null,i.version,i.type),this.router=a(this.wpmp),this.uniqueSessionId=c.generateUUID(),this.router.post("/reports/:uniqueId/events/:eventName",(function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/reports/:uniqueId/pages/:pageName/events/:eventName",(function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/reports/:uniqueId/pages/:pageName/visuals/:visualName/events/:eventName",(function(t,e){var r={type:"report",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/dashboards/:uniqueId/events/:eventName",(function(t,e){var r={type:"dashboard",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/tile/:uniqueId/events/:eventName",(function(t,e){var r={type:"tile",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/qna/:uniqueId/events/:eventName",(function(t,e){var r={type:"qna",id:t.params.uniqueId,name:t.params.eventName,value:t.body};o.handleEvent(r)})),this.router.post("/ready/:uniqueId",(function(t,e){var r={type:"report",id:t.params.uniqueId,name:"ready",value:t.body};o.handleEvent(r)})),this.embeds=[],this.config=c.assign({},t.defaultConfig,i),this.config.autoEmbedOnContentLoaded&&this.enableAutoEmbed()}return t.prototype.createReport=function(t,e){e.type="create";var r=t,a=new o.Create(this,r,e);return r.powerBiEmbed=a,this.addOrOverwriteEmbed(a,t),a},t.prototype.init=function(t,e){var r=this;return void 0===e&&(e=void 0),t=t&&t instanceof HTMLElement?t:document.body,Array.prototype.slice.call(t.querySelectorAll("["+a.Embed.embedUrlAttribute+"]")).map((function(t){return r.embed(t,e)}))},t.prototype.embed=function(t,e){return void 0===e&&(e={}),this.embedInternal(t,e)},t.prototype.load=function(t,e){return void 0===e&&(e={}),this.embedInternal(t,e,!0,!1)},t.prototype.bootstrap=function(t,e){return this.embedInternal(t,e,!1,!0)},t.prototype.embedInternal=function(t,e,r,a){var i;void 0===e&&(e={});var o=t;if(o.powerBiEmbed){if(a)throw new Error("Attempted to bootstrap element "+t.outerHTML+", but the element is already a powerbi element.");i=this.embedExisting(o,e,r)}else i=this.embedNew(o,e,r,a);return i},t.prototype.getNumberOfComponents=function(){return this.embeds?this.embeds.length:0},t.prototype.getSdkSessionId=function(){return this.uniqueSessionId},t.prototype.embedNew=function(e,r,o,n){var l=r.type||e.getAttribute(a.Embed.typeAttribute);if(!l)throw new Error("Attempted to embed using config "+JSON.stringify(r)+" on element "+e.outerHTML+", but could not determine what type of component to embed. You must specify a type in the configuration or as an attribute such as '"+a.Embed.typeAttribute+'="'+i.Report.type.toLowerCase()+"\"'.");r.type=l;var s=c.find((function(t){return l===t.type.toLowerCase()}),t.components);if(!s)throw new Error("Attempted to embed component of type: "+l+" but did not find any matching component. Please verify the type you specified is intended.");var d=new s(this,e,r,o,n);return e.powerBiEmbed=d,this.addOrOverwriteEmbed(d,e),d},t.prototype.embedExisting=function(t,e,r){var a=c.find((function(e){return e.element===t}),this.embeds);if(!a)throw new Error("Attempted to embed using config "+JSON.stringify(e)+" on element "+t.outerHTML+" which already has embedded component associated, but could not find the existing component in the list of active components. This could indicate the embeds list is out of sync with the DOM, or the component is referencing the incorrect HTML element.");if(e.type&&"qna"===e.type.toLowerCase())return this.embedNew(t,e);if("string"==typeof e.type&&e.type!==a.config.type){if("report"===e.type&&"create"===a.config.type){var o=new i.Report(this,t,e,!1,!1,t.powerBiEmbed.iframe);return a.populateConfig(e,!1),o.load(),t.powerBiEmbed=o,this.addOrOverwriteEmbed(a,t),o}throw new Error("Embedding on an existing element with a different type than the previous embed object is not supported. Attempted to embed using config "+JSON.stringify(e)+" on element "+t.outerHTML+", but the existing element contains an embed of type: "+this.config.type+" which does not match the new type: "+e.type)}return a.populateConfig(e,!1),a.load(r),a},t.prototype.enableAutoEmbed=function(){var t=this;window.addEventListener("DOMContentLoaded",(function(e){return t.init(document.body)}),!1)},t.prototype.get=function(t){var e=t;if(!e.powerBiEmbed)throw new Error("You attempted to get an instance of powerbi component associated with element: "+t.outerHTML+" but there was no associated instance.");return e.powerBiEmbed}
4,t.prototype.find=function(t){return c.find((function(e){return e.config.uniqueId===t}),this.embeds)},t.prototype.addOrOverwriteEmbed=function(t,e){this.embeds=this.embeds.filter((function(t){return t.element!==e})),this.embeds.push(t)},t.prototype.reset=function(t){var e=t;if(e.powerBiEmbed){var r=e.powerBiEmbed;r.frontLoadHandler&&r.element.removeEventListener("ready",r.frontLoadHandler,!1),c.remove((function(t){return t===e.powerBiEmbed}),this.embeds),delete e.powerBiEmbed;var a=t.querySelector("iframe");a&&(void 0!==a.remove?a.remove():a.parentElement.removeChild(a))}},t.prototype.handleTileEvents=function(t){"tile"===t.type&&this.handleEvent(t)},t.prototype.handleEvent=function(t){var e=c.find((function(e){return e.config.uniqueId===t.id}),this.embeds);if(e){var r=t.value;if("pageChanged"===t.name){var a=r.newPage;if(!a)throw new Error("Page model not found at 'event.value.newPage'.");r.newPage=new s.Page(e,a.name,a.displayName,!0)}c.raiseCustomEvent(e.element,t.name,r)}},t.prototype.preload=function(t,e){var r=document.createElement("iframe");r.setAttribute("style","display:none;"),r.setAttribute("src",t.embedUrl),r.setAttribute("scrolling","no"),r.setAttribute("allowfullscreen","false");var a=e;return a||(a=document.getElementsByTagName("body")[0]),a.appendChild(r),r.onload=function(){c.raiseCustomEvent(r,"preloaded",{})},r},t.components=[l.Tile,i.Report,n.Dashboard,d.Qna,u.Visual],t.defaultConfig={autoEmbedOnContentLoaded:!1,onError:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return console.log(t[0],t.slice(1))}},t}();e.Service=p},function(t,e,r){var a=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.BookmarksManager=void 0;var o=r(2),n=r(3),l=function(){function t(t,e,r){this.service=t,this.config=e,this.iframe=r}return t.prototype.getBookmarks=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(o.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(n.APINotSupportedForRDLError)];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.service.hpm.get("/report/bookmarks",{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,t.sent().body];case 3:throw t.sent().body;case 4:return[2]}}
vendor: 1,410 bytes, line 4
4))}))},t.prototype.apply=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(o.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(n.APINotSupportedForRDLError)];e={name:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/bookmarks/applyByName",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}))}))},t.prototype.play=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(o.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(n.APINotSupportedForRDLError)];e={playMode:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/bookmarks/play",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}))}))},t.prototype.capture=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(o.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(n.APINotSupportedForRDLError)];e={options:t||{}},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/bookmarks/capture",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent().body];case 3:throw r.sent().body;case 4:return[2]}}
4))}))},t.prototype.applyState=function(t){return a(this,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:if(o.isRDLEmbed(this.config.embedUrl))return[2,Promise.reject(n.APINotSupportedForRDLError)];e={state:t},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.service.hpm.post("/report/bookmarks/applyState",e,{uid:this.config.uniqueId},this.iframe.contentWindow)];case 2:return[2,r.sent()];case 3:throw r.sent().body;case 4:return[2]}}))}))},t}();e.BookmarksManager=l},function(t,e,r){var a,i=this&&this.__extends||(a=function(t,e){return(a=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])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,a){return new(r||(r=Promise))((function(i,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function l(t){try{s(a.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,l)}s((a=a.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,a,i,o,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,a=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(6===o[0]&&n.label<i[1]){n.label=i[1],i=o;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(o);break}i[2]&&n.ops.pop(),n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t],a=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Create=void 0;var l=r(0),s=r(1),d=r(2),u=function(t){function e(e,r,a,i,o){return t.call(this,e,r,a,void 0,i,o)||this}return i(e,t),e.prototype.getId=function(){var t=this.createConfig&&this.createConfig.datasetId?this.createConfig.datasetId:e.findIdFromEmbedUrl(this.config.embedUrl);if("string"!=typeof t||0===t.length)throw new Error("Dataset id is required, but it was not found. You must provide an id either as part of embed configuration.");return t},e.prototype.validate=function(t){return l.validateCreateReport(t)},e.prototype.configChanged=function(t){if(!t){var e=this.config;this.createConfig={accessToken:e.accessToken,datasetId:e.datasetId||this.getId(),groupId:e.groupId,settings:e.settings,tokenType:e.tokenType,theme:e.theme}}},e.prototype.getDefaultEmbedUrlEndpoint=function(){return"reportEmbed"},e.prototype.isSaved=function(){return o(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,d.isSavedInternal(this.service.hpm,this.config.uniqueId,this.iframe.contentWindow)];case 1:return[2,t.sent()]}}))}))},e.findIdFromEmbedUrl=function(t){var e,r=t.match(/datasetId="?([^&]+)"?/);return r&&(e=r[1]),e},e}(s.Embed);e.Create=u},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.routerFactory=e.wpmpFactory=e.hpmFactory=void 0;var a=r(7),i=r(17),o=r(18),n=r(19);e.hpmFactory=function(t,e,r,i){return void 0===r&&(r=a.default.version),void 0===i&&(i=a.default.type),new o.HttpPostMessage(t,{"x-sdk-type":i,"x-sdk-version":r},e)};e.wpmpFactory=function(t,e,r){return new i.WindowPostMessageProxy({processTrackingProperties:{addTrackingProperties:o.HttpPostMessage.addTrackingProperties,getTrackingProperties:o.HttpPostMessage.getTrackingProperties},isErrorMessage:o.HttpPostMessage.isErrorMessage,suppressWarnings:!0,name:t,logMessages:e,eventSourceOverrideWindow:r})};e.routerFactory=function(t){return new n.Router(t)}},function(t,e,r){ 5/*! window-post-message-proxy v0.2.6 | (c) 2016 Microsoft Corporation MIT */ 6var a;a=function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var i=e[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e){"use strict";var r=function(){function t(e){var r=this;void 0===e&&(e={processTrackingProperties:{addTrackingProperties:t.defaultAddTrackingProperties,getTrackingProperties:t.defaultGetTrackingProperties},isErrorMessage:t.defaultIsErrorMessage,receiveWindow:window,name:t.createRandomString()}),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||
vendor: 14,295 bytes, lines 6-10
6!1,this.logMessages&&console.log("new WindowPostMessageProxy created with name: "+this.name+" receiving on window: "+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){var a={id:t.createRandomString()};this.addTrackingProperties(r,a),this.logMessages&&(console.log(this.name+" Posting message:"),console.log(JSON.stringify(r,null," "))),e.postMessage(r,"*");var i=t.createDeferred();return this.pendingRequestPromises[a.id]=i,i.promise},t.prototype.sendResponse=function(t,e,r){this.addTrackingProperties(e,r),this.logMessages&&(console.log(this.name+" Sending response:"),console.log(JSON.stringify(e,null," "))),t.postMessage(e,"*")},t.prototype.onMessageReceived=function(t){var e=this;this.logMessages&&(console.log(this.name+" Received message:"),console.log("type: "+t.type),console.log(JSON.stringify(t.data,null," ")));var r=this.eventSourceOverrideWindow||t.source,a=t.data;if("object"==typeof a){var i,o;try{i=this.getTrackingProperties(a)}catch(t){this.suppressWarnings||console.warn("Proxy("+this.name+"): Error occurred when attempting to get tracking properties from incoming message:",JSON.stringify(a,null," "),"Error: ",t)}if(i&&(o=this.pendingRequestPromises[i.id]),o){var n=!0;try{n=this.isErrorMessage(a)}catch(t){console.warn("Proxy("+this.name+") Error occurred when trying to determine if message is consider an error response. Message: ",JSON.stringify(a,null,""),"Error: ",t)}n?o.reject(a):o.resolve(a),delete this.pendingRequestPromises[i.id]}else this.handlers.some((function(t){var o=!1;try{o=t.test(a)}catch(t){e.suppressWarnings||console.warn("Proxy("+e.name+"): Error occurred when handler was testing incoming message:",JSON.stringify(a,null," "),"Error: ",t)}if(o){var n=void 0;try{n=Promise.resolve(t.handle(a))}catch(t){e.suppressWarnings||console.warn("Proxy("+e.name+"): Error occurred when handler was processing incoming message:",JSON.stringify(a,null," "),"Error: ",t),n=Promise.resolve()}return n.then((function(t){if(!t){var o="Handler for message: "+JSON.stringify(a,null," ")+" did not return a response message. The default response message will be returned instead.";e.suppressWarnings||console.warn("Proxy("+e.name+"): "+o),t={warning:o}}e.sendResponse(r,t,i)})),!0}}))||this.suppressWarnings||console.warn("Proxy("+this.name+") did not handle message. Handlers: "+this.handlers.length+" Message: "+JSON.stringify(a,null,"")+".")}else this.suppressWarnings||console.warn("Proxy("+this.name+"): Received message that was not an object. Discarding message")},t.messagePropertyName="windowPostMessageProxy",t}();e.WindowPostMessageProxy=r}])},t.exports=a()},function(t,e,r){ 7/*! http-post-message v0.2.3 | (c) 2016 Microsoft Corporation MIT */ 8var a;a=function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var i=e[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e){"use strict";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){return void 0===e&&(e={}),void 0===r&&(r=this.defaultTargetWindow),this.send({method:"GET",url:t,headers:e},r)},t.prototype.post=function(t,e,r,a){return void 0===r&&(r={}),void 0===a&&(a=this.defaultTargetWindow),this.send({method:"POST",url:t,headers:r,body:e},a)},t.prototype.put=function(t,e,r,a){return void 0===r&&(r={}),void 0===a&&(a=this.defaultTargetWindow),this.send({method:"PUT",url:t,headers:r,body:e},a)},t.prototype.patch=function(t,e,r,a){return void 0===r&&(r={}),void 0===a&&(a=this.defaultTargetWindow),this.send({method:"PATCH",url:t,headers:r,body:e},a)},t.prototype.delete=function(t,e,r,a){return void 0===e&&(e=null),void 0===r&&(r={}),void 0===a&&(a=this.defaultTargetWindow),this.send({method:"DELETE",url:t,headers:r,body:e},a)},t.prototype.send=function(t,e){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)},t.prototype.assign=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(null==t)throw new TypeError("Cannot convert undefined or null to object");var a=Object(t);return e.forEach((function(t){if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e])})),a},t}();e.HttpPostMessage=r}])},t.exports=a()},function(t,e,r){ 9/*! powerbi-router v0.1.5 | (c) 2016 Microsoft Corporation MIT */ 10var a;a=function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var i=e[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";var a=r(1),i=function(){function t(t){this.handlers=t,this.getRouteRecognizer=new a,this.patchRouteRecognizer=new a,this.postRouteRecognizer=new a,this.putRouteRecognizer=new a,this.deleteRouteRecognizer=new a}return t.prototype.get=function(t,e){return this.registerHandler(this.getRouteRecognizer,"GET",t,e),this},t.prototype.patch=function(t,e){return this.registerHandler(this.patchRouteRecognizer,"PATCH",t,e),this},t.prototype.post=function(t,e){return this.registerHandler(this.postRouteRecognizer,"POST",t,e),this},t.prototype.put=function(t,e){return this.registerHandler(this.putRouteRecognizer,"PUT",t,e),this},t.prototype.delete=function(t,e){return this.registerHandler(this.deleteRouteRecognizer,"DELETE",t,e),this},t.prototype.registerHandler=function(t,e,r,a){t.add([{path:r,handler:function(t){var e=new o;return Promise.resolve(a(t,e)).then((function(t){return e}))}}]);var i={test:function(r){if(r.method!==e)return!1;var a=t.recognize(r.url);if(void 0===a)return!1;var i=a[0];return r.params=i.params,r.queryParams=a.queryParams,r.handler=i.handler,!0},handle:function(t){return t.handler(t)}};this.handlers.addHandler(i)},t}();e.Router=i;var o=function(){function t(){this.statusCode=200,this.headers={},this.body=null}return t.prototype.send=function(t,e){this.statusCode=t,this.body=e},t}();e.Response=o},function(t,e,r){var a;(function(t){(function(){"use strict";function i(t,e,r){this.path=t,this.matcher=e,this.delegate=r}function o(t){this.routes={},this.children={},this.target=t}function n(t,e,r){return function(a,o){var l=t+a;if(!o)return new i(t+a,e,r);o(n(l,e,r))}}function l(t,e,r){for(var a=0,i=0;i<t.length;i++)a+=t[i].path.length;var o={path:e=e.substr(a),handler:r};t.push(o)}i.prototype={to:function(t,e){var r=this.delegate;if(r&&r.willAddRoute&&(t=r.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),e){if(0===e.length)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,e,this.delegate)}return this}},o.prototype={add:function(t,e){this.routes[t]=e},addChild:function(t,e,r,a){var i=new o(e);this.children[t]=i;var l=n(t,i,a);a&&a.contextEntered&&a.contextEntered(e,l),r(l)}};var s=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\"].join("|\\")+")","g");function d(t){this.string=t}function u(t){this.name=t}function c(t){this.name=t}function p(){}function f(t,e,r){"/"===t.charAt(0)&&(t=t.substr(1));var a=t.split("/"),i=new Array(a.length);r.val="";for(var o=0;o<a.length;o++){var n,l=a[o];(n=l.match(/^:([^\/]+)$/))?(i[o]=new u(n[1]),e.push(n[1]),r.val+="3"):(n=l.match(/^\*([^\/]+)$/))?(i[o]=new c(n[1]),r.val+="1",e.push(n[1])):""===l?(i[o]=new p,r.val+="2"):(i[o]=new d(l),r.val+="4")}return r.val=+r.val,i}function h(t){this.charSpec=t,this.nextStates=[],this.charSpecs={},this.regex=void 0,this.handlers=void 0,this.specificity=void 0}function v(t,e){for(var r=[],a=0,i=t.length;a<i;a++){var o=t[a];r=r.concat(o.match(e))}return r}d.prototype={eachChar:function(t){for(var e,r=this.string,a=0;a<r.length;a++)e=r.charAt(a),t=t.put({invalidChars:void 0,repeat:!1,validChars:e});return t},regex:function(){return this.string.replace(s,"\\$1")},generate:function(){return this.string}},u.prototype={eachChar:function(t){return t.put({invalidChars:"/",repeat:!0,validChars:void 0})},regex:function(){return"([^/]+)"},generate:function(t){return t[this.name]}},c.prototype={eachChar:function(t){return t.put({invalidChars:"",repeat:!0,validChars:void 0})},regex:function(){return"(.+)"},generate:function(t){return t[this.name]}},p.prototype={eachChar:function(t){return t},regex:function(){return""},generate:function(){return""}},h.prototype={get:function(t){if(this.charSpecs[t.validChars])return this.charSpecs[t.validChars];for(var e=this.nextStates,r=0;r<e.length;r++){var a=e[r],i=a.charSpec.validChars===t.validChars;if(i=i&&a.charSpec.invalidChars===t.invalidChars)return this.charSpecs[t.validChars]=a,a}},put:function(t){var e;return(e=this.get(t))||(e=new h(t),this.nextStates.push(e),t.repeat&&e.nextStates.push(e)),e},match:function(t){for(var e,r,a,i=this.nextStates,o=[],n=0;n<i.length;n++)void 0!==(a=(r=(e=i[n]).charSpec).validChars)?-1!==a.indexOf(t)&&o.push(e):void 0!==(a=r.invalidChars)&&-1===a.indexOf(t)&&o.push(e);return o}};var y=Object.create||function(t){function e(){}return e.prototype=t,new e};function m(t){this.queryParams=t||{}}function V(t){var e;t=t.replace(/\+/gm,"%20");try{e=decodeURIComponent(t)}catch(t){e=""}return e}m.prototype=y({splice:Array.prototype.splice,slice:Array.prototype.slice,push:Array.prototype.push,length:0,queryParams:null});var g=function(){this.rootState=new h,this.names={}};(g.prototype={add:function(t,e){for(var r,a=this.rootState,i="^",o={},n=new Array(t.length),l=[],s=!0,d=0;d<t.length;d++){var u=t[d],c=[],h=f(u.path,c,o);l=l.concat(h);for(var v=0;v<h.length;v++){var y=h[v];y instanceof p||(s=!1,a=a.put({invalidChars:void 0,repeat:!1,validChars:"/"}),i+="/",a=y.eachChar(a),i+=y.regex())}var m={handler:u.handler,names:c};n[d]=m}s&&(a=a.put({invalidChars:void 0,repeat:!1,validChars:"/"}),i+="/"),a.handlers=n,a.regex=new RegExp(i+"$"),a.specificity=o,(r=e&&e.as)&&(this.names[r]={segments:l,handlers:n})},handlersFor:function(t){var e=this.names[t];if(!e)throw new Error("There is no route named "+t);for(var r=new Array(e.handlers.length),a=0;a<e.handlers.length;a++)r[a]=e.handlers[a];return r},hasRoute:function(t){return!!this.names[t]},generate:function(t,e){var r=this.names[t],a="";if(!r)throw new Error("There is no route named "+t);for(var i=r.segments,o=0;o<i.length;o++){var n=i[o];n instanceof p||(a+="/",a+=n.generate(e))}return"/"!==a.charAt(0)&&(a="/"+a),e&&e.queryParams&&(a+=this.generateQueryString(e.queryParams,r.handlers)),a},generateQueryString:function(t,e){var r,a=[],i=[];for(var o in t)t.hasOwnProperty(o)&&i.push(o);i.sort();for(var n=0;n<i.length;n++){var l=t[o=i[n]];if(null!=l){var s=encodeURIComponent(o);if(r=l,"[object Array]"===Object.prototype.toString.call(r))for(var d=0;d<l.length;d++){var u=o+"[]="+encodeURIComponent(l[d]);a.push(u)}else s+="="+encodeURIComponent(l),a.push(s)}}return 0===a.length?"":"?"+a.join("&")},parseQueryString:function(t){for(var e=t.split("&"),r={},a=0;a<e.length;a++){var i,o=e[a].split("="),n=V(o[0]),l=n.length,s=!1;1===o.length?i="true":(l>2&&"[]"===n.slice(l-2)&&(s=!0,r[n=n.slice(0,l-2)]||(r[n]=[])),i=o[1]?V(o[1]):""),s?r[n].push(i):r[n]=i}return r},recognize:function(t){var e,r,a,i=[this.rootState],o={},n=!1;if(-1!==(a=t.indexOf("?"))){var l=t.substr(a+1,t.length);t=t.substr(0,a),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<t.length&&(i=v(i,t.charAt(r))).length;r++);var s=[];for(r=0;r<i.length;r++)i[r].handlers&&s.push(i[r]);i=function(t){return t.sort((function(t,e){return e.specificity.val-t.specificity.val}))}(s);var d=s[0];if(d&&d.handlers)return n&&"(.+)$"===d.regex.source.slice(-5)&&(t+="/"),function(t,e,r){var a=t.handlers,i=t.regex,o=e.match(i),n=1,l=new m(r);l.length=a.length;for(var s=0;s<a.length;s++){for(var d=a[s],u=d.names,c={},p=0;p<u.length;p++)c[u[p]]=o[n++];l[s]={handler:d.handler,params:c,isDynamic:!!u.length}}return l}(d,t,o)}}).map=function(t,e){var r=new o;t(n("",r,this.delegate)),function t(e,r,a,i){var o=r.routes;for(var n in o)if(o.hasOwnProperty(n)){var s=e.slice();l(s,n,o[n]),r.children[n]?t(s,r.children[n],a,i):a.call(i,s)}}([],r,(function(t){e?e(this,t):this.add(t)}),this)},g.VERSION="0.1.11";var b=g;r(3).amd?void 0===(a=function(){return b}.call(e,r,e,t))||(t.exports=a):void 0!==t&&t.exports?t.exports=b:void 0!==this&&(this.RouteRecognizer=b)}).call(this)}).call(e,r(2)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}}])},t.exports=a()}])}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.