(function(){function u(n){var t,i,r;if(n.__basePrototypePending){t=n.__baseType;t.__basePrototypePending&&t.__setupBase();for(i in t.prototype)r=t.prototype[i],n.prototype[i]||(n.prototype[i]=r);delete n.__basePrototypePending;delete n.__setupBase}}function f(n,t,i){n.__basePrototypePending&&n.__setupBase();i?n.__baseType.apply(t,i):n.__baseType.apply(t)}function e(n,t,i,r){var u=n.__baseType.prototype[i];return r?u.apply(t,r):u.apply(t)}function o(){var n,t,u;for(n in r)r.hasOwnProperty(n)&&(t=r[n],u=t.isPrototype?i.prototype:i,t.func?u[n]=t.func:delete u[n])}var t={version:"0.7.4.0",isUndefined:function(n){return n===undefined},isNull:function(n){return n===null},isNullOrUndefined:function(n){return n===null||n===undefined},isValue:function(n){return n!==null&&n!==undefined}},i=Function,r={registerNamespace:{isPrototype:!1,func:i.registerNamespace},registerInterface:{isPrototype:!0,func:i.prototype.registerInterface},registerClass:{isPrototype:!0,func:i.prototype.registerClass},registerEnum:{isPrototype:!0,func:i.prototype.registerEnum}},n={};i.registerNamespace=function(n){n==="tableauSoftware"&&(window.tableauSoftware=window.tableauSoftware||{})};i.prototype.registerInterface=function(){};i.prototype.registerEnum=function(){for(var n in this.prototype)this[n]=this.prototype[n]};i.prototype.registerClass=function(n,t){var i=this;this.prototype.constructor=this;this.__baseType=t||Object;t&&(this.__basePrototypePending=!0,this.__setupBase=function(){u(i)},this.initializeBase=function(n,t){f(i,n,t)},this.callBaseMethod=function(n,t,r){e(i,n,t,r)})};t.Delegate=function(){};t.Delegate.registerClass("Delegate");t.Delegate.empty=function(){};t.Delegate._contains=function(n,t,i){for(var r=0;r<n.length;r+=2)if(n[r]===t&&n[r+1]===i)return!0;return!1};t.Delegate._create=function(n){var i=function(){var r,i;if(n.length==2)return n[1].apply(n[0],arguments);for(r=n.concat(),i=0;i<r.length;i+=2)t.Delegate._contains(n,r[i],r[i+1])&&r[i+1].apply(r[i],arguments);return null};return i._targets=n,i};t.Delegate.create=function(n,i){return n?t.Delegate._create([n,i]):i};t.Delegate.combine=function(n,i){if(!n)return i._targets?i:t.Delegate.create(null,i);if(!i)return n._targets?n:t.Delegate.create(null,n);var r=n._targets?n._targets:[null,n],u=i._targets?i._targets:[null,i];return t.Delegate._create(r.concat(u))};t.Delegate.remove=function(n,i){var r,f,e,u;if(!n||n===i)return null;if(!i)return n;for(r=n._targets,f=null,i._targets?(f=i._targets[0],e=i._targets[1]):e=i,u=0;u<r.length;u+=2)if(r[u]===f&&r[u+1]===e)return r.length==2?null:(r.splice(u,2),t.Delegate._create(r));return n};t.IEnumerator=function(){};t.IEnumerator.prototype={get_current:null,moveNext:null,reset:null};t.IEnumerator.getEnumerator=function(n){return n?n.getEnumerator?n.getEnumerator():new t.ArrayEnumerator(n):null};t.IEnumerable=function(){};t.IEnumerable.prototype={getEnumerator:null};t.ArrayEnumerator=function(n){this._array=n;this._index=-1;this.current=null};t.ArrayEnumerator.prototype={moveNext:function(){return this._index++,this.current=this._array[this._index],this._index<this._array.length},reset:function(){this._index=-1;this.current=null}};t.IDisposable=function(){};t.IDisposable.prototype={dispose:null};t.StringBuilder=function(n){this._parts=t.isNullOrUndefined(n)?[]:[n];this.isEmpty=this._parts.length==0};t.StringBuilder.prototype={append:function(n){return t.isNullOrUndefined(n)||(this._parts.push(n),this.isEmpty=!1),this},appendLine:function(n){return this.append(n),this.append("\r\n"),this.isEmpty=!1,this},clear:function(){this._parts=[];this.isEmpty=!0},toString:function(n){return this._parts.join(n||"")}};t.StringBuilder.registerClass("StringBuilder");t.EventArgs=function(){};t.EventArgs.registerClass("EventArgs");t.EventArgs.Empty=new t.EventArgs;t.CancelEventArgs=function(){t.CancelEventArgs.initializeBase(this);this.cancel=!1};t.CancelEventArgs.registerClass("CancelEventArgs",t.EventArgs);t.Tuple=function(n,t,i){this.first=n;this.second=t;arguments.length==3&&(this.third=i)};t.Tuple.registerClass("Tuple");i.registerNamespace("tab");n.EscapingUtil=function(){};n.EscapingUtil.escapeHtml=function(n){var t=n||"";return t=t.replace(new RegExp("&","g"),"&amp;"),t=t.replace(new RegExp("<","g"),"&lt;"),t=t.replace(new RegExp(">","g"),"&gt;"),t=t.replace(new RegExp('"',"g"),"&quot;"),t=t.replace(new RegExp("'","g"),"&#39;"),t.replace(new RegExp("/","g"),"&#47;")};n.WindowHelper=function(n){this.$6=n};n.WindowHelper.close=function(n){n.close()};n.WindowHelper.getOpener=function(n){return n.opener};n.WindowHelper.getLocation=function(n){return n.location};n.WindowHelper.setLocationHref=function(n,t){n.location.href=t};n.WindowHelper.locationReplace=function(n,t){n.location.replace(t)};n.WindowHelper.clearLocationHash=function(n){var t=n.href;return t=t.substr(0,t.length-n.hash.length),t.charAt(t.length-1)==="#"&&(t=t.substr(0,t.length-1)),t};n.WindowHelper.updateURLRetryInfo=function(n,t,i){var r=n.search,f=r.indexOf(":retry=true"),u;return i?f===-1&&(r.length?t=t.replace(r,r+"&:retry=true"):t+="?:retry=true"):f!==-1&&(u="",r!=="?:retry=true"&&(u=r.replace("&:retry=true","")),t=t.replace(r,u)),t};n.WindowHelper.open=function(n,t){window.open(n,t)};n.WindowHelper.reload=function(n,t){n.location.reload(t)};n.WindowHelper.requestAnimationFrame=function(t){return n.WindowHelper.$4(t)};n.WindowHelper.cancelAnimationFrame=function(i){t.isValue(i)&&n.WindowHelper.$5(i)};n.WindowHelper.reloadLocation=function(t){var i=n.WindowHelper.clearLocationHash(window.location);i=n.WindowHelper.updateURLRetryInfo(window.location,i,t);window.location.replace(i)};n.WindowHelper.locationIndicatesRetry=function(){return window.location.search.indexOf(":retry=true")!==-1};n.WindowHelper.$7=function(){var t=0;n.WindowHelper.$4=function(n){var i=(new Date).getTime(),r=Math.max(0,16-(i-t));return t=i+r,window.setTimeout(function(){n()},r)}};n.WindowHelper.prototype={$6:null,get_pageXOffset:function(){return n.WindowHelper.$2(this.$6)},get_pageYOffset:function(){return n.WindowHelper.$3(this.$6)},get_innerWidth:function(){return n.WindowHelper.$0(this.$6)},get_innerHeight:function(){return n.WindowHelper.$1(this.$6)}};n.EscapingUtil.registerClass("tab.EscapingUtil");n.WindowHelper.registerClass("tab.WindowHelper");n.WindowHelper.retryString=":retry=true";n.WindowHelper.$0=null;n.WindowHelper.$1=null;n.WindowHelper.$2=null;n.WindowHelper.$3=null;n.WindowHelper.$4=null;n.WindowHelper.$5=null,function(){var f,e,i;n.WindowHelper.$0="innerWidth"in window?function(n){return n.innerWidth}:function(n){return n.document.documentElement.offsetWidth};n.WindowHelper.$1="innerHeight"in window?function(n){return n.innerHeight}:function(n){return n.document.documentElement.offsetHeight};n.WindowHelper.$2=t.isValue(window.self.pageXOffset)?function(n){return n.pageXOffset}:function(n){return n.document.documentElement.scrollLeft};n.WindowHelper.$3=t.isValue(window.self.pageYOffset)?function(n){return n.pageYOffset}:function(n){return n.document.documentElement.scrollTop};var o="requestAnimationFrame",s="cancelAnimationFrame",h=["ms","moz","webkit","o"],u=null,r=null;for((o in window)&&(u=o),(s in window)&&(r=s),f=0;f<h.length&&(u==null||r==null);++f)e=h[f],i=e+"RequestAnimationFrame",u==null&&i in window&&(u=i),r==null&&(i=e+"CancelAnimationFrame",i in window&&(r=i),i=e+"CancelRequestAnimationFrame",i in window&&(r=i));u!=null?n.WindowHelper.$4=function(n){return window[u](n)}:n.WindowHelper.$7();n.WindowHelper.$5=r!=null?function(n){window[r](n)}:function(n){window.clearTimeout(n)}}();i.registerNamespace("tab");n.$create__SheetInfoImpl=function(n,t,i,r,u,f,e,o,s){var h={};return h.name=n,h.sheetType=t,h.index=i,h.size=r,h.workbook=u,h.url=f,h.isActive=e,h.isHidden=o,h.zoneId=s,h};n.$create_JavaScriptApi$2=function(n,t,i,r,u){var f={};return f.$1=n,f.$0=t,f.$2=i,f.$3=r,f.$4=u,f};n.$create__StoryPointInfoImpl=function(n,t,i,r,u,f){var e={};return e.caption=n,e.index=t,e.storyPointId=i,e.isActive=r,e.isUpdated=u,e.parentStoryImpl=f,e};n._ApiCommand=function(n,t,i,r){this.$0=n;this.$2=t;this.$1=i;this.$3=r};n._ApiCommand.parse=function(t){var r,i=t.indexOf(","),u,f,o,e,s;return i<0?(r=t,new n._ApiCommand(r,null,null,null)):(r=t.substr(0,i),f=t.substr(i+1),i=f.indexOf(","),i<0)?(u=f,new n._ApiCommand(r,u,null,null)):(u=f.substr(0,i),e=f.substr(i+1),i=e.indexOf(","),i<0)?(o=e,new n._ApiCommand(r,u,o,null)):(o=e.substr(0,i),s=e.substr(i+1),new n._ApiCommand(r,u,o,s))};n._ApiCommand.prototype={$0:null,$1:null,$2:null,$3:null,get_name:function(){return this.$0},get_handlerId:function(){return this.$1},get_sourceId:function(){return this.$2},get_parameters:function(){return this.$3},get_isApiCommandName:function(){return!this.get_rawName().indexOf("api.",0)},get_rawName:function(){return this.$0},serialize:function(){var n=[];return n.push(this.$0),n.push(this.$2),n.push(this.$1),t.isValue(this.$3)&&n.push(this.$3),n.join(",")}};n._ApiServerResultParser=function(n){var t=JSON.parse(n);this.$0=t["api.commandResult"];this.$1=t["api.commandData"]};n._ApiServerResultParser.prototype={$0:null,$1:null,get_result:function(){return this.$0},get_data:function(){return this.$1}};n.JavaScriptApi$4=function(n){var t=JSON.parse(n);this.$0=t["api.workbookName"];this.$1=t["api.worksheetName"];this.$2=t["api.commandData"]};n.JavaScriptApi$4.prototype={$0:null,$1:null,$2:null,get_$3:function(){return this.$0},get_$4:function(){return this.$1},get_$5:function(){return this.$2}};n._CommandReturnHandler=function(n,t,i,r){this.$0=n;this.$2=i;this.$1=t;this.$3=r};n._CommandReturnHandler.prototype={$0:null,$1:0,$2:null,$3:null,get_commandName:function(){return this.$0},get_successCallback:function(){return this.$2},get_successCallbackTiming:function(){return this.$1},get_errorCallback:function(){return this.$3}};n.JavaScriptApi$1=function(){this.$2={};this.$3={};this.$4={};this.$5={};n._Utility.hasWindowAddEventListener()?window.addEventListener("message",this.$8(),!1):n._Utility.hasDocumentAttachEvent()?(document.attachEvent("onmessage",this.$8()),window.attachEvent("onmessage",this.$8())):window.onmessage=this.$8();this.$0=this.$1=0};n.JavaScriptApi$1.prototype={$0:0,$1:0,registerHandler:function(i){var r="handler"+this.$0;if(t.isValue(i.get_handlerId())||t.isValue(this.$2[i.get_handlerId()]))throw n._TableauException.createInternalError("Handler '"+i.get_handlerId()+"' is already registered.");this.$0++;i.set_handlerId(r);this.$2[r]=i;i.add_customViewsListLoad(t.Delegate.create(this,this.$6));i.add_stateReadyForQuery(t.Delegate.create(this,this.$7))},unregisterHandler:function(n){(t.isValue(n.get_handlerId())||t.isValue(this.$2[n.get_handlerId()]))&&(delete this.$2[n.get_handlerId()],n.remove_customViewsListLoad(t.Delegate.create(this,this.$6)),n.remove_stateReadyForQuery(t.Delegate.create(this,this.$7)))},sendCommand:function(i,r,u){var s=i.get_iframe(),f=i.get_handlerId(),h,e,c,o,l,v,a;!n._Utility.hasWindowPostMessage()||t.isNullOrUndefined(s)||t.isNullOrUndefined(s.contentWindow)||(h="cmd"+this.$1,this.$1++,e=this.$3[f],t.isNullOrUndefined(e)&&(e={},this.$3[f]=e),e[h]=u,c=u.get_commandName(),c==="api.ShowCustomViewCommand"&&(o=this.$4[f],t.isNullOrUndefined(o)&&(o={},this.$4[f]=o),o[h]=u),l=null,t.isValue(r)&&(l=n.JsonUtil.toJson(r,!1,"")),v=new n._ApiCommand(c,h,f,l),a=v.serialize(),n._Utility.isPostMessageSynchronous()?window.setTimeout(function(){s.contentWindow.postMessage(a,i.get_serverRoot())},0):s.contentWindow.postMessage(a,i.get_serverRoot()))},$6:function(n){var f=n.get_handlerId(),e=this.$4[f],i,r,o,u;if(!t.isNullOrUndefined(e)){i=e;for(r in i)o={key:r,value:i[r]},u=o.value,t.isValue(u.get_successCallback())&&u.get_successCallback()(null);delete this.$4[f]}},$7:function(i){var r=this.$5[i.get_handlerId()],u;if(!n._Utility.isNullOrEmpty(r))while(r.length>0)u=r.pop(),t.isValue(u)&&u()},$8:function(){return t.Delegate.create(this,function(n){this.$9(n)})},$9:function(i){if(!t.isNullOrUndefined(i.data)){var r=n._ApiCommand.parse(i.data),f=r.get_rawName(),e=r.get_handlerId(),u=this.$2[e];(t.isNullOrUndefined(u)||u.get_handlerId()!==r.get_handlerId())&&(u=new n.JavaScriptApi$0);r.get_isApiCommandName()?r.get_sourceId()==="xdomainSourceId"?u.handleEventNotification(r.get_name(),r.get_parameters()):this.$A(r):this.$B(f,i,u)}},$A:function(i){var o=this.$3[i.get_handlerId()],r=t.isValue(o)?o[i.get_sourceId()]:null,f,e,s,u,h;if(!t.isNullOrUndefined(r)&&(delete o[i.get_sourceId()],i.get_name()===r.get_commandName()))if(f=new n._ApiServerResultParser(i.get_parameters()),e=f.get_data(),f.get_result()==="api.success")switch(r.get_successCallbackTiming()){case 0:t.isValue(r.get_successCallback())&&r.get_successCallback()(e);break;case 1:s=function(){t.isValue(r.get_successCallback())&&r.get_successCallback()(e)};u=this.$5[i.get_handlerId()];t.isNullOrUndefined(u)&&(u=[],this.$5[i.get_handlerId()]=u);u.push(s);break;default:throw n._TableauException.createInternalError("Unknown timing value: "+r.get_successCallbackTiming());}else t.isValue(r.get_errorCallback())&&(h=f.get_result()==="api.remotefailed",r.get_errorCallback()(h,e))},$B:function(t,i,r){var f,e,u;if(t==="tableau.loadIndicatorsLoaded"){f=this.$2;for(e in f)if(u={key:e,value:f[e]},n._Utility.hasOwnProperty(this.$2,u.key)&&u.value.get_iframe().contentWindow===i.source){u.value.hideLoadIndicators();break}}else t==="layoutInfoReq"?this.$C(i.source):(t==="tableau.completed"||t==="completed"||t==="layoutInfoReq")&&r.handleVizLoad()},$C:function(i){if(n._Utility.hasWindowPostMessage()){var r=new n.WindowHelper(window.self),f=t.isValue(r.get_innerWidth())?r.get_innerWidth():document.documentElement.offsetWidth,e=t.isValue(r.get_innerHeight())?r.get_innerHeight():document.documentElement.offsetHeight,o=t.isValue(r.get_pageXOffset())?r.get_pageXOffset():document.documentElement.scrollLeft,s=t.isValue(r.get_pageYOffset())?r.get_pageYOffset():document.documentElement.scrollTop,u=[];u.push("layoutInfoResp");u.push(o);u.push(s);u.push(f);u.push(e);i.postMessage(u.join(","),"*")}}};n.JavaScriptApi$0=function(){};n.JavaScriptApi$0.prototype={$0:null,add_customViewsListLoad:function(n){this.$1=t.Delegate.combine(this.$1,n)},remove_customViewsListLoad:function(n){this.$1=t.Delegate.remove(this.$1,n)},$1:null,add_stateReadyForQuery:function(n){this.$2=t.Delegate.combine(this.$2,n)},remove_stateReadyForQuery:function(n){this.$2=t.Delegate.remove(this.$2,n)},$2:null,get_iframe:function(){return null},get_handlerId:function(){return this.$0},set_handlerId:function(n){return this.$0=n,n},get_serverRoot:function(){return"*"},hideLoadIndicators:function(){},handleVizLoad:function(){},handleEventNotification:function(){},$3:function(){this.$1(null);this.$2(null)}};n.CrossDomainMessagingOptions=function(t,i){n._Param.verifyValue(t,"router");n._Param.verifyValue(i,"handler");this.$0=t;this.$1=i};n.CrossDomainMessagingOptions.prototype={$0:null,$1:null,get_router:function(){return this.$0},get_handler:function(){return this.$1},sendCommand:function(n,t){this.$0.sendCommand(this.$1,n,t)}};n._Enums=function(){};n._Enums.$0=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.PeriodType,!0)};n._Enums.$1=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.DateRangeType,!0)};n._Enums.$2=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.FilterUpdateType,!0)};n._Enums.$3=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.SelectionUpdateType,!0)};n._Enums.$4=function(i){var r=t.isValue(i)?i.toString():"";return n._Enums.$8(r,"",tableauSoftware.SelectionUpdateType,!1)!=null};n._Enums.$5=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.NullOption,!0)};n._Enums.$6=function(i,r){var u=t.isValue(i)?i:"";return n._Enums.$8(u,r,tableauSoftware.SheetSizeBehavior,!0)};n._Enums.$7=function(i){var r=t.isValue(i)?i:"";return n._Enums.$8(r,"",tableauSoftware.TableauEventName,!1)};n._Enums.$8=function(i,r,u,f){var h,e,o,s,c;if(t.isValue(i)){h=i.toString().toUpperCase();e=u;for(o in e)if(s={key:o,value:e[o]},c=s.value.toString().toUpperCase(),h===c)return s.value}if(f)throw n._TableauException.createInvalidParameter(r);return null};n._ApiBootstrap=function(){};n._ApiBootstrap.initialize=function(){n._ApiObjectRegistry.registerCrossDomainMessageRouter(function(){return new n.JavaScriptApi$1})};n._ApiObjectRegistry=function(){};n._ApiObjectRegistry.registerCrossDomainMessageRouter=function(t){return n._ApiObjectRegistry.$2("ICrossDomainMessageRouter",t)};n._ApiObjectRegistry.createCrossDomainMessageRouter=function(){return n._ApiObjectRegistry.$3("ICrossDomainMessageRouter")};n._ApiObjectRegistry.$2=function(i,r){t.isNullOrUndefined(n._ApiObjectRegistry.$1)&&(n._ApiObjectRegistry.$1={});var u=n._ApiObjectRegistry.$1[i];return n._ApiObjectRegistry.$1[i]=r,u};n._ApiObjectRegistry.$3=function(i){var r;if(t.isNullOrUndefined(n._ApiObjectRegistry.$1))throw n._TableauException.createInternalError("No types registered");if(r=n._ApiObjectRegistry.$1[i],t.isNullOrUndefined(r))throw n._TableauException.createInternalError("No creation function has been registered for interface type '"+i+"'.");return r()};n._CustomViewImpl=function(n,t,i){this.$2=n;this.$4=t;this.$3=i;this.$7=!1;this.$8=!1;this.$9=!1};n._CustomViewImpl._getAsync=function(t){var i=new n._Deferred;return i.resolve(t.get__customViewImpl().get_$A()),i.get_promise()};n._CustomViewImpl._createNew=function(t,i,r,u){var f=new n._CustomViewImpl(t,r.name,i),e;return f.$7=r.isPublic,f.$6=r._sessionUrl,e=r.owner,f.$5=e.friendlyName,f.$8=!1,u!=null&&u===r.id&&(f.$8=!0),f.$1=r,f};n._CustomViewImpl._saveNewAsync=function(i,r,u){var f=new n._Deferred,e={},o;return e["api.customViewName"]=u,o=n._CustomViewImpl.$13("api.SaveNewCustomViewCommand",f,function(u){n._CustomViewImpl._processCustomViewUpdate(i,r,u,!0);var e=null;t.isValue(i.get_$19())&&(e=i.get_$19().get_item(0));f.resolve(e)}),r.sendCommand(e,o),f.get_promise()};n._CustomViewImpl._showCustomViewAsync=function(i,r,u){var f=new n._Deferred,e={},o;return t.isValue(u)&&(e["api.customViewParam"]=u),o=n._CustomViewImpl.$13("api.ShowCustomViewCommand",f,function(){var n=i.get_activeCustomView();f.resolve(n)}),r.sendCommand(e,o),f.get_promise()};n._CustomViewImpl._makeCurrentCustomViewDefaultAsync=function(t,i){var r=new n._Deferred,u=n._CustomViewImpl.$13("api.MakeCurrentCustomViewDefaultCommand",r,function(){var n=t.get_activeCustomView();r.resolve(n)});return i.sendCommand({},u),r.get_promise()};n._CustomViewImpl._getCustomViewsAsync=function(t,i){var r=new n._Deferred,u=new n._CommandReturnHandler("api.FetchCustomViewsCommand",0,function(u){var f=u;n._CustomViewImpl._processCustomViews(t,i,f);r.resolve(t.get_$18()._toApiCollection())},function(t,i){r.reject(n._TableauException.create("serverError",i))});return i.sendCommand(null,u),r.get_promise()};n._CustomViewImpl._processCustomViews=function(t,i,r){n._CustomViewImpl._processCustomViewUpdate(t,i,r,!1)};n._CustomViewImpl._processCustomViewUpdate=function(i,r,u,f){var o,a,s,l,h,c,e;if(f&&i.set_$19(new n._Collection),i.set_$1B(null),o=null,t.isValue(u.currentView)&&(a=u.currentView,o=a.name),s=null,t.isValue(u.defaultId)&&(s=u.defaultId),f&&t.isValue(u.newView)&&(l=n._CustomViewImpl._createNew(i,r,u.newView,s),i.get_$19()._add(l.get_$D(),l.get_$A())),i.set_$1A(i.get_$18()),i.set_$18(new n._Collection),t.isValue(u.list)&&(h=u.list,h.length>0))for(c=0;c<h.length;c++)e=n._CustomViewImpl._createNew(i,r,h[c],s),i.get_$18()._add(e.get_$D(),e.get_$A()),i.get_$1A()._has(e.get_$D())?i.get_$1A()._remove(e.get_$D()):f&&(i.get_$19()._has(e.get_$D())||i.get_$19()._add(e.get_$D(),e.get_$A())),t.isValue(o)&&e.get_$D()===o&&i.set_$1B(e.get_$A())};n._CustomViewImpl.$13=function(t,i,r){var u=function(t,r){i.reject(n._TableauException.create("serverError",r))};return new n._CommandReturnHandler(t,0,r,u)};n._CustomViewImpl.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:!1,$8:!1,$9:!1,get_$A:function(){return this.$0==null&&(this.$0=new tableauSoftware.CustomView(this)),this.$0},get_$B:function(){return this.$2.get_workbook()},get_$C:function(){return this.$6},get_$D:function(){return this.$4},set_$D:function(t){if(this.$9)throw n._TableauException.create("staleDataReference","Stale data");return this.$4=t,t},get_$E:function(){return this.$5},get_$F:function(){return this.$7},set_$F:function(t){if(this.$9)throw n._TableauException.create("staleDataReference","Stale data");return this.$7=t,t},get_$10:function(){return this.$8},$11:function(){var i,r,u;if(this.$9||t.isNullOrUndefined(this.$1))throw n._TableauException.create("staleDataReference","Stale data");return this.$1.isPublic=this.$7,this.$1.isDefault=this.$8,this.$1.name=this.$4,i=new n._Deferred,r={},r["api.customViewParam"]=this.$1,u=n._CustomViewImpl.$13("api.UpdateCustomViewCommand",i,t.Delegate.create(this,function(t){n._CustomViewImpl._processCustomViewUpdate(this.$2,this.$3,t,!0);i.resolve(this.get_$A())})),this.$3.sendCommand(r,u),i.get_promise()},$12:function(){var i=new n._Deferred,r={},u;return r["api.customViewParam"]=this.$1,u=n._CustomViewImpl.$13("api.RemoveCustomViewCommand",i,t.Delegate.create(this,function(t){this.$9=!0;var r=t;n._CustomViewImpl._processCustomViews(this.$2,this.$3,r);i.resolve(this.get_$A())})),this.$3.sendCommand(r,u),i.get_promise()},_showAsync:function(){if(this.$9||t.isNullOrUndefined(this.$1))throw n._TableauException.create("staleDataReference","Stale data");return n._CustomViewImpl._showCustomViewAsync(this.$2,this.$3,this.$1)},$14:function(n){return this.$5!==n.$5||this.$6!==n.$6||this.$7!==n.$7||this.$8!==n.$8}};n._DashboardImpl=function(t,i,r){this.$F=new n._Collection;this.$10=new n._Collection;n._DashboardImpl.initializeBase(this,[t,i,r])};n._DashboardImpl.prototype={$E:null,get_sheet:function(){return this.get_dashboard()},get_dashboard:function(){return this.$E==null&&(this.$E=new tableauSoftware.Dashboard(this)),this.$E},get_worksheets:function(){return this.$F},get_objects:function(){return this.$10},$11:function(i,r){var u,e,o,f,l;for(this.$10=new n._Collection,this.$F=new n._Collection,u=0;u<i.length;u++){if(e=i[u],o=null,i[u].$0==="worksheet"){if(f=e.$1,t.isNullOrUndefined(f))continue;var a=this.$F.get__length(),v=n.SheetSizeFactory.createAutomatic(),s=r(f),h=t.isNullOrUndefined(s),y=h?"":s.getUrl(),p=n.$create__SheetInfoImpl(f,"worksheet",a,v,this.get_workbook(),y,!1,h,e.$4),c=new n._WorksheetImpl(p,this.get_workbookImpl(),this.get_messagingOptions(),this);o=c.get_worksheet();this.$F._add(f,c.get_worksheet())}l=new tableauSoftware.DashboardObject(e,this.get_dashboard(),o);this.$10._add(u.toString(),l)}}};n.JavaScriptApi$3=function(t,i){this.$2=new n._Collection;this.$1=t;this.$3=i};n.JavaScriptApi$3.$9=function(i){return t.isValue(i)&&t.isValue(n.JavaScriptApi$3.$0[i])?n.JavaScriptApi$3.$0[i]:"NONE"};n.JavaScriptApi$3.$B=function(i,r){for(var nt=i.worksheetDataSchemaMap[r].primaryDatasource,tt=i.parametersDatasource,y=new n._Collection,o=null,b=i.dataSourceList,u,p,f,h,e,c,l,w,a,k,v,d,g,s=0;s<b.length;s++)if(u=b[s],u.datasource!==tt)for(p=u.datasource===nt,f=new n.JavaScriptApi$3(u.datasource,p),p?o=f:y._add(u.datasource,f.get_$5()),h=0;h<u.fieldList.length;h++)if(e=u.fieldList[h],!t.isValue(e.baseColumnName))if(t.isValue(e.columnList))for(w=e.columnList,a=0,k=w.length;a<k;a++)v=w[a],c=n.JavaScriptApi$3.$C(v.fieldRole),l=n.JavaScriptApi$3.$9(v.aggregation),d=new tableauSoftware.Field(f.get_$5(),v.name,c,l),f.$A(d);else c=n.JavaScriptApi$3.$C(e.defaultFieldRole),l=n.JavaScriptApi$3.$9(e.defaultAggregation),g=new tableauSoftware.Field(f.get_$5(),e.name,c,l),f.$A(g);return t.isValue(o)&&y._addToFirst(o.get_$6(),o.get_$5()),y};n.JavaScriptApi$3.$C=function(n){if(t.isValue(n)){if(n==="dimension")return"dimension";if(n==="measure")return"measure"}return"unknown"};n.JavaScriptApi$3.prototype={$1:null,$3:!1,$4:null,get_$5:function(){return this.$4==null&&(this.$4=new tableauSoftware.DataSource(this)),this.$4},get_$6:function(){return this.$1},get_$7:function(){return this.$2},get_$8:function(){return this.$3},$A:function(n){this.$2._add(n.getName(),n)}};n._DeferredUtil=function(){};n._DeferredUtil.$0=function(i){var u,r;return i instanceof tableauSoftware.Promise?u=i:(t.isValue(i)&&typeof i.valueOf=="function"&&(i=i.valueOf()),n._DeferredUtil.$4(i)?(r=new n._DeferredImpl,i.then(t.Delegate.create(r,r.resolve),t.Delegate.create(r,r.reject)),u=r.get_promise()):u=n._DeferredUtil.$2(i)),u};n._DeferredUtil.$1=function(t){return n._DeferredUtil.$0(t).then(function(t){return n._DeferredUtil.$3(t)},null)};n._DeferredUtil.$2=function(i){return new n._PromiseImpl(function(r){try{return n._DeferredUtil.$0(t.isValue(r)?r(i):i)}catch(u){return n._DeferredUtil.$3(u)}})};n._DeferredUtil.$3=function(i){return new n._PromiseImpl(function(r,u){try{return t.isValue(u)?n._DeferredUtil.$0(u(i)):n._DeferredUtil.$3(i)}catch(f){return n._DeferredUtil.$3(f)}})};n._DeferredUtil.$4=function(n){return t.isValue(n)&&typeof n.then=="function"};n._CollectionImpl=function(){this.$0=[];this.$1={}};n._CollectionImpl.prototype={get__length:function(){return this.$0.length},get__rawArray:function(){return this.$0},_get:function(n){var i=this.$4(n);return t.isValue(this.$1[i])?this.$1[i]:undefined},_has:function(n){return t.isValue(this._get(n))},_add:function(n,t){this.$3(n,t);var i=this.$4(n);this.$0.push(t);this.$1[i]=t},_addToFirst:function(n,t){this.$3(n,t);var i=this.$4(n);this.$0.unshift(t);this.$1[i]=t},_remove:function(n){var r=this.$4(n),u,i;if(t.isValue(this.$1[r]))for(u=this.$1[r],delete this.$1[r],i=0;i<this.$0.length;i++)if(this.$0[i]===u){this.$0.splice(i,1);break}},_toApiCollection:function(){var n=this.$0.concat();return n.get=t.Delegate.create(this,function(n){return this._get(n)}),n.has=t.Delegate.create(this,function(n){return this._has(n)}),n},$2:function(t){if(n._Utility.isNullOrEmpty(t))throw new Error("Null key");if(this._has(t))throw new Error("Duplicate key '"+t+"'");},$3:function(n,i){if(this.$2(n),t.isNullOrUndefined(i))throw new Error("Null item");},$4:function(n){return"_"+n},get_item:function(n){return this.$0[n]}};n._DeferredImpl=function(){this.$2=[];this.$0=new n._PromiseImpl(t.Delegate.create(this,this.then));this.$1=t.Delegate.create(this,this.$5);this.$3=t.Delegate.create(this,this.$6)};n._DeferredImpl.prototype={$0:null,$1:null,$3:null,get_promise:function(){return this.$0},$4:function(t){var i=new n._DeferredImpl,u=t.length,e=u,f=[],o,r;if(!u)return i.resolve(f),i.get_promise();for(o=function(t,r){var u=n._DeferredUtil.$0(t);u.then(function(n){return f[r]=n,e--,e||i.resolve(f),null},function(n){return i.reject(n),null})},r=0;r<u;r++)o(t[r],r);return i.get_promise()},then:function(n,t){return this.$1(n,t)},resolve:function(n){return this.$3(n)},reject:function(t){return this.$3(n._DeferredUtil.$3(t))},$5:function(i,r){var u=new n._DeferredImpl;return this.$2.push(function(n){n.then(i,r).then(t.Delegate.create(u,u.resolve),t.Delegate.create(u,u.reject))}),u.get_promise()},$6:function(t){var r=n._DeferredUtil.$0(t),i,u;for(this.$1=r.then,this.$3=n._DeferredUtil.$0,i=0;i<this.$2.length;i++)u=this.$2[i],u(r);return this.$2=null,r}};n._PromiseImpl=function(n){this.then=n};n._PromiseImpl.prototype={then:null,always:function(n){return this.then(n,n)},otherwise:function(n){return this.then(null,n)}};n._MarkImpl=function(i){var f,u,r,e;if(this.$1=new n._Collection,n._jQueryShim.$12(i))for(f=i,u=0;u<f.length;u++){if(r=f[u],!t.isValue(r.fieldName))throw n._TableauException.createInvalidParameter("pair.fieldName");if(!t.isValue(r.value))throw n._TableauException.createInvalidParameter("pair.value");e=new tableauSoftware.Pair(r.fieldName,r.value);this.$1._add(e.fieldName,e)}else this.$2=i};n._MarkImpl.$6=function(i){var u=new n._Collection,f,o;if(t.isNullOrUndefined(i)||n._Utility.isNullOrEmpty(i.marks))return u;for(f=t.IEnumerator.getEnumerator(i.marks);f.moveNext();){var h=f.current,c=h.tupleId,e=new tableauSoftware.Mark(c);for(u._add(c.toString(),e),o=t.IEnumerator.getEnumerator(h.pairs);o.moveNext();){var r=o.current,l=n._Utility.convertRawValue(r.value,r.valueDataType),s=new tableauSoftware.Pair(r.fieldName,l);s.formattedValue=r.formattedValue;e.$0.get_$3()._has(s.fieldName)||e.$0.$7(s)}}return u};n._MarkImpl.prototype={$0:null,$2:0,get_$3:function(){return this.$1},get_$4:function(){return this.$2},get_$5:function(){return this.$0==null&&(this.$0=this.$1._toApiCollection()),this.$0},$7:function(n){this.$1._add(n.fieldName,n)}};n._Param=function(){};n._Param.verifyString=function(i,r){if(t.isNullOrUndefined(i)||!i.length)throw n._TableauException.createInternalStringArgumentException(r);};n._Param.verifyValue=function(i,r){if(t.isNullOrUndefined(i))throw n._TableauException.createInternalNullArgumentException(r);};n._ParameterImpl=function(i){var r,u;if(this.$1=i.name,this.$2=n._Utility.getDataValue(i.currentValue),this.$3=n._ParameterImpl.$16(i.dataType),this.$4=n._ParameterImpl.$14(i.allowableValuesType),t.isValue(i.allowableValues)&&this.$4==="list")for(this.$5=[],r=t.IEnumerator.getEnumerator(i.allowableValues);r.moveNext();)u=r.current,this.$5.push(n._Utility.getDataValue(u));this.$4==="range"&&(this.$6=n._Utility.getDataValue(i.minValue),this.$7=n._Utility.getDataValue(i.maxValue),this.$8=i.stepSize,(this.$3==="date"||this.$3==="datetime")&&t.isValue(this.$8)&&t.isValue(i.dateStepPeriod)&&(this.$9=n._ParameterImpl.$15(i.dateStepPeriod)))};n._ParameterImpl.$14=function(n){switch(n){case"list":return"list";case"range":return"range";case"any":default:return"all"}};n._ParameterImpl.$15=function(n){switch(n){case"hour":return"hour";case"second":return"second";case"minute":return"minute";case"day":return"day";case"week":return"week";case"month":return"month";case"quarter":return"quarter";case"year":default:return"year"}};n._ParameterImpl.$16=function(n){if(n==="boolean")return"boolean";switch(n){case"real":return"float";case"integer":case"tuple":return"integer";case"date":return"date";case"datetime":return"datetime";case"cstring":default:return"string"}};n._ParameterImpl.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,get_$A:function(){return this.$0==null&&(this.$0=new tableauSoftware.Parameter(this)),this.$0},get_$B:function(){return this.$1},get_$C:function(){return this.$2},get_$D:function(){return this.$3},get_$E:function(){return this.$4},get_$F:function(){return this.$5},get_$10:function(){return this.$6},get_$11:function(){return this.$7},get_$12:function(){return this.$8},get_$13:function(){return this.$9}};n._SheetImpl=function(t,i,r){n._Param.verifyValue(t,"sheetInfoImpl");n._Param.verifyValue(i,"workbookImpl");n._Param.verifyValue(r,"messagingOptions");this.$0=t.name;this.$1=t.index;this.$2=t.isActive;this.$3=t.isHidden;this.$4=t.sheetType;this.$5=t.size;this.$6=t.url;this.$7=i;this.$8=r;this.$A=t.zoneId};n._SheetImpl.$B=function(i){return t.isValue(i)?n._Utility.toInt(i):i};n._SheetImpl.$C=function(i){var f=n._Enums.$6(i.behavior,"size.behavior"),u=i.minSize,r;return t.isValue(u)&&(u=n.$create_Size(n._SheetImpl.$B(i.minSize.width),n._SheetImpl.$B(i.minSize.height))),r=i.maxSize,t.isValue(r)&&(r=n.$create_Size(n._SheetImpl.$B(i.maxSize.width),n._SheetImpl.$B(i.maxSize.height))),n.$create_SheetSize(f,u,r)};n._SheetImpl.prototype={$0:null,$1:0,$2:!1,$3:!1,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:0,get_name:function(){return this.$0},get_index:function(){return this.$1},get_workbookImpl:function(){return this.$7},get_workbook:function(){return this.$7.get_workbook()},get_url:function(){if(this.$3)throw n._TableauException.createNoUrlForHiddenWorksheet();return this.$6},get_size:function(){return this.$5},get_isHidden:function(){return this.$3},get_isActive:function(){return this.$2},set_isActive:function(n){return this.$2=n,n},get_isDashboard:function(){return this.$4==="dashboard"},get_sheetType:function(){return this.$4},get_parentStoryPoint:function(){return t.isValue(this.$9)?this.$9.get_storyPoint():null},get_parentStoryPointImpl:function(){return this.$9},set_parentStoryPointImpl:function(t){if(this.$4==="story")throw n._TableauException.createInternalError("A story cannot be a child of another story.");return this.$9=t,t},get_zoneId:function(){return this.$A},get_messagingOptions:function(){return this.$8},changeSizeAsync:function(i){var u,f,r,e;if(i=n._SheetImpl.$C(i),this.$4==="worksheet"&&i.behavior!=="automatic")throw n._TableauException.createInvalidSizeBehaviorOnWorksheet();return(u=new n._Deferred,this.$5.behavior===i.behavior&&i.behavior==="automatic")?(u.resolve(i),u.get_promise()):(f=this.$D(i),r={},r["api.setSheetSizeName"]=this.$0,r["api.minWidth"]=f["api.minWidth"],r["api.minHeight"]=f["api.minHeight"],r["api.maxWidth"]=f["api.maxWidth"],r["api.maxHeight"]=f["api.maxHeight"],e=new n._CommandReturnHandler("api.SetSheetSizeCommand",1,t.Delegate.create(this,function(){this.get_workbookImpl()._update(t.Delegate.create(this,function(){var n=this.get_workbookImpl().get_publishedSheets()._get(this.get_name()).getSize();u.resolve(n)}))}),function(t,i){u.reject(n._TableauException.createServerError(i))}),this.sendCommand(r,e),u.get_promise())},sendCommand:function(n,t){this.$8.sendCommand(n,t)},$D:function(i){var s=null;if(t.isNullOrUndefined(i)||t.isNullOrUndefined(i.behavior)||i.behavior!=="automatic"&&t.isNullOrUndefined(i.minSize)&&t.isNullOrUndefined(i.maxSize))throw n._TableauException.createInvalidSheetSizeParam();var u=0,f=0,e=0,o=0,r={};if(r["api.minWidth"]=0,r["api.minHeight"]=0,r["api.maxWidth"]=0,r["api.maxHeight"]=0,i.behavior==="automatic")s=n.$create_SheetSize("automatic",undefined,undefined);else if(i.behavior==="atmost"){if(t.isNullOrUndefined(i.maxSize)||t.isNullOrUndefined(i.maxSize.width)||t.isNullOrUndefined(i.maxSize.height))throw n._TableauException.createMissingMaxSize();if(i.maxSize.width<0||i.maxSize.height<0)throw n._TableauException.createInvalidSizeValue();r["api.maxWidth"]=i.maxSize.width;r["api.maxHeight"]=i.maxSize.height;s=n.$create_SheetSize("atmost",undefined,i.maxSize)}else if(i.behavior==="atleast"){if(t.isNullOrUndefined(i.minSize)||t.isNullOrUndefined(i.minSize.width)||t.isNullOrUndefined(i.minSize.height))throw n._TableauException.createMissingMinSize();if(i.minSize.width<0||i.minSize.height<0)throw n._TableauException.createInvalidSizeValue();r["api.minWidth"]=i.minSize.width;r["api.minHeight"]=i.minSize.height;s=n.$create_SheetSize("atleast",i.minSize,undefined)}else if(i.behavior==="range"){if(t.isNullOrUndefined(i.minSize)||t.isNullOrUndefined(i.maxSize)||t.isNullOrUndefined(i.minSize.width)||t.isNullOrUndefined(i.maxSize.width)||t.isNullOrUndefined(i.minSize.height)||t.isNullOrUndefined(i.maxSize.height))throw n._TableauException.createMissingMinMaxSize();if(i.minSize.width<0||i.minSize.height<0||i.maxSize.width<0||i.maxSize.height<0||i.minSize.width>i.maxSize.width||i.minSize.height>i.maxSize.height)throw n._TableauException.createInvalidRangeSize();r["api.minWidth"]=i.minSize.width;r["api.minHeight"]=i.minSize.height;r["api.maxWidth"]=i.maxSize.width;r["api.maxHeight"]=i.maxSize.height;s=n.$create_SheetSize("range",i.minSize,i.maxSize)}else if(i.behavior==="exactly"){if(t.isValue(i.minSize)&&t.isValue(i.maxSize)&&t.isValue(i.minSize.width)&&t.isValue(i.maxSize.width)&&t.isValue(i.minSize.height)&&t.isValue(i.maxSize.height)){if(u=i.minSize.width,f=i.minSize.height,e=i.maxSize.width,o=i.maxSize.height,u!==e||f!==o)throw n._TableauException.createSizeConflictForExactly();}else t.isValue(i.minSize)&&t.isValue(i.minSize.width)&&t.isValue(i.minSize.height)?(u=i.minSize.width,f=i.minSize.height,e=u,o=f):t.isValue(i.maxSize)&&t.isValue(i.maxSize.width)&&t.isValue(i.maxSize.height)&&(e=i.maxSize.width,o=i.maxSize.height,u=e,f=o);r["api.minWidth"]=u;r["api.minHeight"]=f;r["api.maxWidth"]=e;r["api.maxHeight"]=o;s=n.$create_SheetSize("exactly",n.$create_Size(u,f),n.$create_Size(e,o))}return this.$5=s,r}};n._StoryImpl=function(t,i,r,u,f){n._StoryImpl.initializeBase(this,[t,i,r]);n._Param.verifyValue(u,"storyPm");n._Param.verifyValue(f,"findSheetFunc");this.$F=f;this.update(u)};n._StoryImpl.prototype={$E:null,$F:null,$10:null,$11:null,add_activeStoryPointChange:function(n){this.$12=t.Delegate.combine(this.$12,n)},remove_activeStoryPointChange:function(n){this.$12=t.Delegate.remove(this.$12,n)},$12:null,get_activeStoryPointImpl:function(){return this.$E},get_sheet:function(){return this.get_story()},get_story:function(){return this.$10==null&&(this.$10=new tableauSoftware.Story(this)),this.$10},get_storyPointsInfo:function(){return this.$11},update:function(i){var l=null,f=null,r,e,a,s,c,v;for(this.$11=this.$11||new Array(i.storyPoints.length),r=0;r<i.storyPoints.length;r++){var o=i.storyPoints[r],y=o.caption,h=r===i.activeStoryPointIndex,u=n.$create__StoryPointInfoImpl(y,r,o.storyPointId,h,o.isUpdated,this);t.isNullOrUndefined(this.$11[r])?this.$11[r]=new tableauSoftware.StoryPointInfo(u):this.$11[r]._impl.storyPointId===u.storyPointId?(e=this.$11[r]._impl,e.caption=u.caption,e.index=u.index,e.isActive=h,e.isUpdated=u.isUpdated):this.$11[r]=new tableauSoftware.StoryPointInfo(u);h&&(l=o.containedSheetInfo,f=u)}a=this.$11.length-i.storyPoints.length;this.$11.splice(i.storyPoints.length,a);s=t.isNullOrUndefined(this.$E)||this.$E.get_storyPointId()!==f.storyPointId;t.isValue(this.$E)&&s&&this.$E.set_isActive(!1);c=this.$E;s?(v=n._StoryPointImpl.createContainedSheet(l,this.get_workbookImpl(),this.get_messagingOptions(),this.$F),this.$E=new n._StoryPointImpl(f,v)):(this.$E.set_isActive(f.isActive),this.$E.set_isUpdated(f.isUpdated));s&&t.isValue(c)&&this.$16(this.$11[c.get_index()],this.$E.get_storyPoint())},activatePreviousStoryPointAsync:function(){return this.$13("api.ActivatePreviousStoryPoint")},activateNextStoryPointAsync:function(){return this.$13("api.ActivateNextStoryPoint")},activateStoryPointAsync:function(i){var r=new n._Deferred,f,u,e;if(i<0||i>=this.$11.length)throw n._TableauException.createIndexOutOfRange(i);return f=this.get_activeStoryPointImpl(),u={},u["api.storyPointIndex"]=i,e=new n._CommandReturnHandler("api.ActivateStoryPoint",0,t.Delegate.create(this,function(n){var t=n;this.$15(f,t);r.resolve(this.$E.get_storyPoint())}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this.sendCommand(u,e),r.get_promise()},revertStoryPointAsync:function(i){var r,u,f;if(i=i||this.$E.get_index(),i<0||i>=this.$11.length)throw n._TableauException.createIndexOutOfRange(i);return r=new n._Deferred,u={},u["api.storyPointIndex"]=i,f=new n._CommandReturnHandler("api.RevertStoryPoint",0,t.Delegate.create(this,function(n){var t=n;this.$14(i,t);r.resolve(this.$11[i])}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this.sendCommand(u,f),r.get_promise()},$13:function(i){if(i!=="api.ActivatePreviousStoryPoint"&&i!=="api.ActivateNextStoryPoint")throw n._TableauException.createInternalError("commandName '"+i+"' is invalid.");var r=new n._Deferred,u=this.get_activeStoryPointImpl(),f=new n._CommandReturnHandler(i,0,t.Delegate.create(this,function(n){var t=n;this.$15(u,t);r.resolve(this.$E.get_storyPoint())}),function(t,i){r.reject(n._TableauException.createServerError(i))});return this.sendCommand({},f),r.get_promise()},$14:function(t,i){var r=this.$11[t]._impl;if(r.storyPointId!==i.storyPointId)throw n._TableauException.createInternalError("We should not be updating a story point where the IDs don't match. Existing storyPointID="+r.storyPointId+", newStoryPointID="+i.storyPointId);r.caption=i.caption;r.isUpdated=i.isUpdated;i.storyPointId===this.$E.get_storyPointId()&&this.$E.set_isUpdated(i.isUpdated)},$15:function(t,i){var r=i.index;if(t.get_index()!==r){var u=this.$11[t.get_index()],f=this.$11[r]._impl,e=n._StoryPointImpl.createContainedSheet(i.containedSheetInfo,this.get_workbookImpl(),this.get_messagingOptions(),this.$F);f.isActive=!0;this.$E=new n._StoryPointImpl(f,e);t.set_isActive(!1);u._impl.isActive=!1;this.$16(u,this.$E.get_storyPoint())}},$16:function(n,t){this.$12!=null&&this.$12(n,t)}};n._StoryPointImpl=function(n,i){var u,r,f;if(this.$2=n.isActive,this.$3=n.isUpdated,this.$0=n.caption,this.$1=n.index,this.$5=n.parentStoryImpl,this.$7=n.storyPointId,this.$4=i,t.isValue(i)&&(this.$4.set_parentStoryPointImpl(this),i.get_sheetType()==="dashboard"))for(u=this.$4,r=0;r<u.get_worksheets().get__length();r++)f=u.get_worksheets().get_item(r),f._impl.set_parentStoryPointImpl(this)};n._StoryPointImpl.createContainedSheet=function(i,r,u,f){var v=n._WorkbookImpl.$8(i.sheetType),y=n.SheetSizeFactory.createAutomatic(),o=f(i.name),s=t.isNullOrUndefined(o),p=s?"":o.getUrl(),h=n.$create__SheetInfoImpl(i.name,v,-1,y,r.get_workbook(),p,!1,s,i.zoneId),c,l,e,a;if(i.sheetType==="worksheet")return c=null,l=new n._WorksheetImpl(h,r,u,c),l;if(i.sheetType==="dashboard")return e=new n._DashboardImpl(h,r,u),a=n._WorkbookImpl.$9(i.dashboardZones),e.$11(a,f),e;if(i.sheetType==="story")throw n._TableauException.createInternalError("Cannot have a story embedded within another story.");else throw n._TableauException.createInternalError("Unknown sheet type '"+i.sheetType+"'");};n._StoryPointImpl.prototype={$0:null,$1:0,$2:!1,$3:!1,$4:null,$5:null,$6:null,$7:0,get_caption:function(){return this.$0},get_containedSheetImpl:function(){return this.$4},get_index:function(){return this.$1},get_isActive:function(){return this.$2},set_isActive:function(n){return this.$2=n,n},get_isUpdated:function(){return this.$3},set_isUpdated:function(n){return this.$3=n,n},get_parentStoryImpl:function(){return this.$5},get_storyPoint:function(){return this.$6==null&&(this.$6=new tableauSoftware.StoryPoint(this)),this.$6},get_storyPointId:function(){return this.$7},$8:function(){return n.$create__StoryPointInfoImpl(this.$0,this.$1,this.$7,this.$2,this.$3,this.$5)}};n.StoryPointInfoImplUtil=function(){};n.StoryPointInfoImplUtil.clone=function(t){return n.$create__StoryPointInfoImpl(t.caption,t.index,t.storyPointId,t.isActive,t.isUpdated,t.parentStoryImpl)};n._TableauException=function(){};n._TableauException.create=function(n,t){var i=new Error(t);return i.tableauSoftwareErrorCode=n,i};n._TableauException.createInternalError=function(i){return t.isValue(i)?n._TableauException.create("internalError","Internal error. Please contact Tableau support with the following information: "+i):n._TableauException.create("internalError","Internal error. Please contact Tableau support")};n._TableauException.createInternalNullArgumentException=function(t){return n._TableauException.createInternalError("Null/undefined argument '"+t+"'.")};n._TableauException.createInternalStringArgumentException=function(t){return n._TableauException.createInternalError("Invalid string argument '"+t+"'.")};n._TableauException.createServerError=function(t){return n._TableauException.create("serverError",t)};n._TableauException.createNotActiveSheet=function(){return n._TableauException.create("notActiveSheet","Operation not allowed on non-active sheet")};n._TableauException.createInvalidCustomViewName=function(t){return n._TableauException.create("invalidCustomViewName","Invalid custom view name: "+t)};n._TableauException.createInvalidParameter=function(t){return n._TableauException.create("invalidParameter","Invalid parameter: "+t)};n._TableauException.createInvalidFilterFieldNameOrValue=function(t){return n._TableauException.create("invalidFilterFieldNameOrValue","Invalid filter field name or value: "+t)};n._TableauException.createInvalidDateParameter=function(t){return n._TableauException.create("invalidDateParameter","Invalid date parameter: "+t)};n._TableauException.createNullOrEmptyParameter=function(t){return n._TableauException.create("nullOrEmptyParameter","Parameter cannot be null or empty: "+t)};n._TableauException.createMissingMaxSize=function(){return n._TableauException.create("missingMaxSize","Missing maxSize for SheetSizeBehavior.ATMOST")};n._TableauException.createMissingMinSize=function(){return n._TableauException.create("missingMinSize","Missing minSize for SheetSizeBehavior.ATLEAST")};n._TableauException.createMissingMinMaxSize=function(){return n._TableauException.create("missingMinMaxSize","Missing minSize or maxSize for SheetSizeBehavior.RANGE")};n._TableauException.createInvalidRangeSize=function(){return n._TableauException.create("invalidSize","Missing minSize or maxSize for SheetSizeBehavior.RANGE")};n._TableauException.createInvalidSizeValue=function(){return n._TableauException.create("invalidSize","Size value cannot be less than zero")};n._TableauException.createInvalidSheetSizeParam=function(){return n._TableauException.create("invalidSize","Invalid sheet size parameter")};n._TableauException.createSizeConflictForExactly=function(){return n._TableauException.create("invalidSize","Conflicting size values for SheetSizeBehavior.EXACTLY")};n._TableauException.createInvalidSizeBehaviorOnWorksheet=function(){return n._TableauException.create("invalidSizeBehaviorOnWorksheet","Only SheetSizeBehavior.AUTOMATIC is allowed on Worksheets")};n._TableauException.createNoUrlForHiddenWorksheet=function(){return n._TableauException.create("noUrlForHiddenWorksheet","Hidden worksheets do not have a URL.")};n._TableauException.$0=function(t){return n._TableauException.create("invalidAggregationFieldName","Invalid aggregation type for field '"+t+"'")};n._TableauException.createIndexOutOfRange=function(t){return n._TableauException.create("indexOutOfRange","Index '"+t+"' is out of range.")};n._TableauException.createUnsupportedEventName=function(t){return n._TableauException.create("unsupportedEventName","Unsupported event '"+t+"'.")};n._TableauException.createBrowserNotCapable=function(){return n._TableauException.create("browserNotCapable","This browser is incapable of supporting the Tableau JavaScript API.")};n._Utility=function(){};n._Utility.hasOwnProperty=function(n,t){return n.hasOwnProperty(t)};n._Utility.isNullOrEmpty=function(n){return t.isNullOrUndefined(n)||(n.length||0)<=0};n._Utility.isString=function(n){return typeof n=="string"};n._Utility.isNumber=function(n){return typeof n=="number"};n._Utility.isDate=function(n){return typeof n=="object"&&n instanceof Date?!0:Object.prototype.toString.call(n)!=="[object Date]"?!1:!isNaN(n.getTime())};n._Utility.isDateValid=function(n){return!isNaN(n.getTime())};n._Utility.indexOf=function(n,i,r){var f,u;if(t.isValue(Array.prototype.indexOf))return n.indexOf(i,r);if(r=r||0,f=n.length,f>0)for(u=r;u<f;u++)if(n[u]===i)return u;return-1};n._Utility.contains=function(t,i,r){var u=n._Utility.indexOf(t,i,r);return u>=0};n._Utility.getTopmostWindow=function(){for(var n=window.self;t.isValue(n.parent)&&n.parent!==n;)n=n.parent;return n};n._Utility.toInt=function(t){return n._Utility.isNumber(t)?t:parseInt(t.toString(),10)};n._Utility.toBoolean=function(t,i){var u=new RegExp("^(yes|y|true|t|1)$","i"),r;return n._Utility.isNullOrEmpty(t)?i:(r=t.match(u),!n._Utility.isNullOrEmpty(r))};n._Utility.hasClass=function(n,i){var r=new RegExp("[\\n\\t\\r]","g");return t.isValue(n)&&(" "+n.className+" ").replace(r," ").indexOf(" "+i+" ")>-1};n._Utility.findParentWithClassName=function(i,r,u){var f=t.isValue(i)?i.parentNode:null;for(u=u||document.body;f!=null;){if(n._Utility.hasClass(f,r))return f;f=f===u?null:f.parentNode}return f};n._Utility.hasJsonParse=function(){return t.isValue(window.JSON)&&t.isValue(window.JSON.parse)};n._Utility.hasWindowPostMessage=function(){return t.isValue(window.postMessage)};n._Utility.isPostMessageSynchronous=function(){if(n._Utility.isIE()){var t=new RegExp("(msie) ([\\w.]+)"),i=t.exec(window.navigator.userAgent.toLowerCase()),r=i[2]||"0",u=parseInt(r,10);return u<=8}return!1};n._Utility.hasDocumentAttachEvent=function(){return t.isValue(document.attachEvent)};n._Utility.hasWindowAddEventListener=function(){return t.isValue(window.addEventListener)};n._Utility.isElementOfTag=function(n,i){return t.isValue(n)&&n.nodeType===1&&n.tagName.toLowerCase()===i.toLowerCase()};n._Utility.elementToString=function(i){var r=new t.StringBuilder,u;return r.append(i.tagName.toLowerCase()),n._Utility.isNullOrEmpty(i.id)||r.append("#").append(i.id),n._Utility.isNullOrEmpty(i.className)||(u=i.className.split(" "),r.append(".").append(u.join("."))),r.toString()};n._Utility.tableauGCS=function(n){return t.isValue(window.getComputedStyle)?window.getComputedStyle(n):n.currentStyle};n._Utility.isIE=function(){return window.navigator.userAgent.indexOf("MSIE")>-1&&t.isNullOrUndefined(window.opera)};n._Utility.isSafari=function(){var n=window.navigator.userAgent,t=n.indexOf("WebKit")>=0,i=n.indexOf("Chrome")>=0;return n.indexOf("Safari")>=0||t&&!i};n._Utility.mobileDetect=function(){var n=window.navigator.userAgent;return n.indexOf("iPad")!==-1?!0:n.indexOf("Android")!==-1?!0:n.indexOf("AppleWebKit")!==-1&&n.indexOf("Mobile")!==-1?!0:!1};n._Utility.elementPosition=function(i){for(var r=0,u=0;!t.isNullOrUndefined(i);)u+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return n.$create_Point(r,u)};n._Utility.convertRawValue=function(n,i){if(i==="boolean")return n;if(t.isNullOrUndefined(n))return null;switch(i){case"date":case"datetime":return new Date(n);case"integer":case"real":return n==null?Number.NaN:n;case"cstring":case"tuple":case"unknown":default:return n}};n._Utility.getDataValue=function(i){return t.isNullOrUndefined(i)?n.$create_DataValue(null,null,null):n.$create_DataValue(n._Utility.convertRawValue(i.value,i.type),i.formattedValue,i.aliasedValue)};n._Utility.serializeDateForServer=function(i){var r="";if(t.isValue(i)&&n._Utility.isDate(i)){var u=i.getUTCFullYear(),f=i.getUTCMonth()+1,e=i.getUTCDate(),o=i.getUTCHours(),s=i.getUTCMinutes(),h=i.getUTCSeconds();r=u+"-"+f+"-"+e+" "+o+":"+s+":"+h}return r};n.VizImpl=function(i,r,u,f,e){if(!n._Utility.hasWindowPostMessage()||!n._Utility.hasJsonParse())throw n._TableauException.createBrowserNotCapable();this.$C=new n.CrossDomainMessagingOptions(i,this);this.$1=r;(t.isNullOrUndefined(u)||u.nodeType!==1)&&(u=document.body);this.$3=new n._VizParameters(u,f,e);this.$4=this.$3.get_url();t.isValue(e)&&(this.$8=e.onFirstInteractive)};n.VizImpl.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:!1,$A:!1,$B:!1,$C:null,add_customViewsListLoad:function(n){this.$D=t.Delegate.combine(this.$D,n)},remove_customViewsListLoad:function(n){this.$D=t.Delegate.remove(this.$D,n)},$D:null,add_stateReadyForQuery:function(n){this.$E=t.Delegate.combine(this.$E,n)},remove_stateReadyForQuery:function(n){this.$E=t.Delegate.remove(this.$E,n)},$E:null,add_$F:function(n){this.$10=t.Delegate.combine(this.$10,n)},remove_$F:function(n){this.$10=t.Delegate.remove(this.$10,n)},$10:null,add_$11:function(n){this.$12=t.Delegate.combine(this.$12,n)},remove_$11:function(n){this.$12=t.Delegate.remove(this.$12,n)},$12:null,add_$13:function(n){this.$14=t.Delegate.combine(this.$14,n)},remove_$13:function(n){this.$14=t.Delegate.remove(this.$14,n)},$14:null,add_$15:function(n){this.$16=t.Delegate.combine(this.$16,n)},remove_$15:function(n){this.$16=t.Delegate.remove(this.$16,n)},$16:null,add_$17:function(n){this.$18=t.Delegate.combine(this.$18,n)},remove_$17:function(n){this.$18=t.Delegate.remove(this.$18,n)},$18:null,add_$19:function(n){this.$1A=t.Delegate.combine(this.$1A,n)},remove_$19:function(n){this.$1A=t.Delegate.remove(this.$1A,n)},$1A:null,add_$1B:function(n){this.$1C=t.Delegate.combine(this.$1C,n)},remove_$1B:function(n){this.$1C=t.Delegate.remove(this.$1C,n)},$1C:null,add_$1D:function(n){this.$1E=t.Delegate.combine(this.$1E,n)},remove_$1D:function(n){this.$1E=t.Delegate.remove(this.$1E,n)},$1E:null,add_$1F:function(n){this.$20=t.Delegate.combine(this.$20,n)},remove_$1F:function(n){this.$20=t.Delegate.remove(this.$20,n)},$20:null,get_handlerId:function(){return this.$6},set_handlerId:function(n){return this.$6=n,n},get_iframe:function(){return this.$2},get_serverRoot:function(){return this.$3.serverRoot},get_$21:function(){return this.$1},get_$22:function(){return this.$9},get_$23:function(){return this.$A},get_$24:function(){return this.$2.style.display==="none"},get_$25:function(){return this.$3.parentElement},get_$26:function(){return this.$4},get_$27:function(){return this.$7.get_workbook()},get__workbookImpl:function(){return this.$7},get_$28:function(){return this.$B},hideLoadIndicators:function(){t.isValue(this.$5)&&(this.$5.$5(),this.$5=null,delete this.loadFeedback)},handleVizLoad:function(){this.hideLoadIndicators();this.$3B();t.isNullOrUndefined(this.$7)?this.$7=new n._WorkbookImpl(this,this.$C,t.Delegate.create(this,function(){this.$48()})):this.$7._update(t.Delegate.create(this,function(){this.$48()}))},handleEventNotification:function(i,r){var u=new n.JavaScriptApi$4(r),f,e,b,o,s,k,g,nt,a,tt,it,v,h,rt,y,c,ut,ft,et,p,l,ot,w;if(i==="api.VizInteractiveEvent")t.isValue(this.$7)&&this.$7.get_name()===u.get_$3()&&this.$48(),this.$42();else if(i==="api.MarksSelectionChangedEvent")this.$10!=null&&this.$7.get_name()===u.get_$3()&&(f=null,e=this.$7.get_activeSheetImpl(),e.get_name()===u.get_$4()?f=e:e.get_isDashboard()&&(b=e,f=b.get_worksheets()._get(u.get_$4())._impl),t.isValue(f)&&(f.set_selectedMarks(null),this.$10(new n.MarksEvent("marksselection",this.$1,f))));else if(i==="api.FilterChangedEvent"){if(this.$12!=null&&this.$7.get_name()===u.get_$3()&&(o=null,s=this.$7.get_activeSheetImpl(),s.get_name()===u.get_$4()?o=s:s.get_isDashboard()&&(k=s,o=k.get_worksheets()._get(u.get_$4())._impl),t.isValue(o))){var d=JSON.parse(u.get_$5()),st=d[0],ht=d[1];this.$12(new n.FilterEvent("filterchange",this.$1,o,st,ht))}}else if(i==="api.ParameterChangedEvent")this.$14!=null&&this.$7.get_name()===u.get_$3()&&(this.$7.set_$23(null),g=u.get_$5(),this.$3C(g));else if(i==="api.CustomViewsListLoadedEvent")nt=u.get_$5(),a=JSON.parse(nt),t.isNullOrUndefined(this.$7)&&(this.$7=new n._WorkbookImpl(this,this.$C,t.Delegate.create(this,function(){this.$48()}))),t.isValue(this.$7)&&n._CustomViewImpl._processCustomViews(this.$7,this.$C,a),this.$43(),this.$16==null||a.customViewLoaded||this.$3D(this.$7.get_activeCustomView());else if(i==="api.CustomViewUpdatedEvent"){if(tt=u.get_$5(),it=JSON.parse(tt),t.isNullOrUndefined(this.$7)&&(this.$7=new n._WorkbookImpl(this,this.$C,t.Delegate.create(this,function(){this.$48()}))),t.isValue(this.$7)&&n._CustomViewImpl._processCustomViewUpdate(this.$7,this.$C,it,!0),this.$18!=null)for(v=this.$7.get_$19()._toApiCollection(),h=0,rt=v.length;h<rt;h++)this.$3E(v[h])}else if(i==="api.CustomViewRemovedEvent"){if(this.$1A!=null)for(y=this.$7.get_$1A()._toApiCollection(),c=0,ut=y.length;c<ut;c++)this.$3F(y[c])}else if(i==="api.CustomViewSetDefaultEvent"){if(ft=u.get_$5(),et=JSON.parse(ft),t.isValue(this.$7)&&n._CustomViewImpl._processCustomViews(this.$7,this.$C,et),this.$1C!=null)for(p=this.$7.get_$19()._toApiCollection(),l=0,ot=p.length;l<ot;l++)this.$40(p[l])}else i==="api.TabSwitchEvent"?this.$7._update(t.Delegate.create(this,function(){if(t.isValue(this.$0)&&this.$0(),this.$7.get_name()===u.get_$3()){var n=u.get_$4(),i=u.get_$5();this.$41(n,i)}this.$48()})):i==="api.StorytellingStateChangedEvent"&&(w=this.$7.get_activeSheetImpl(),w.get_sheetType()==="story"&&w.update(JSON.parse(u.get_$5())))},addEventListener:function(t,i){var r=n._Enums.$7(t);if(r==="marksselection")this.add_$F(i);else if(r==="parametervaluechange")this.add_$13(i);else if(r==="filterchange")this.add_$11(i);else if(r==="customviewload")this.add_$15(i);else if(r==="customviewsave")this.add_$17(i);else if(r==="customviewremove")this.add_$19(i);else if(r==="customviewsetdefault")this.add_$1B(i);else if(r==="tabswitch")this.add_$1D(i);else if(r==="storypointswitch")this.add_$1F(i);else throw n._TableauException.createUnsupportedEventName(t);},removeEventListener:function(t,i){var r=n._Enums.$7(t);if(r==="marksselection")this.remove_$F(i);else if(r==="parametervaluechange")this.remove_$13(i);else if(r==="filterchange")this.remove_$11(i);else if(r==="customviewload")this.remove_$15(i);else if(r==="customviewsave")this.remove_$17(i);else if(r==="customviewremove")this.remove_$19(i);else if(r==="customviewsetdefault")this.remove_$1B(i);else if(r==="tabswitch")this.remove_$1D(i);else if(r==="storypointswitch")this.remove_$1F(i);else throw n._TableauException.createUnsupportedEventName(t);},$29:function(){var i=this.$3.$0;t.isValue(i)&&(i.innerHTML="",i.parentNode.removeChild(i),this.$3.$0=i=null);n._VizManagerImpl.$3(this.$1);this.$C.get_router().unregisterHandler(this)},$2A:function(){this.$2.style.display="block"},$2B:function(){this.$2.style.display="none"},$2C:function(){this.$47("showExportImageDialog")},$2D:function(n){var t=this.$44(n);this.$47("showExportDataDialog",t)},$2E:function(n){var t=this.$44(n);this.$47("showExportCrosstabDialog",t)},$2F:function(){this.$47("showExportPDFDialog")},$30:function(){var t=new n._Deferred,i=new n._CommandReturnHandler("api.RevertAllCommand",1,function(){t.resolve()},function(i,r){t.reject(n._TableauException.createServerError(r))});return this._sendCommand(null,i),t.get_promise()},$31:function(){var t=new n._Deferred,i=new n._CommandReturnHandler("api.RefreshDataCommand",1,function(){t.resolve()},function(i,r){t.reject(n._TableauException.createServerError(r))});return this._sendCommand(null,i),t.get_promise()},$32:function(){this.$47("showShareDialog")},$33:function(){if(this.get__workbookImpl().get_isDownloadAllowed())this.$47("showDownloadWorkbookDialog");else throw n._TableauException.create("downloadWorkbookNotAllowed","Download workbook is not allowed");},$34:function(){return this.$45("pauseAutomaticUpdates")},$35:function(){return this.$45("resumeAutomaticUpdates")},$36:function(){return this.$45("toggleAutomaticUpdates")},$37:function(n,t){this.$3.width=n;this.$3.height=t;this.$2.style.width=this.$3.width;this.$2.style.height=this.$3.height;this.$7._updateActiveSheetAsync()},$38:function(n){this.$B=n},$39:function(){return this.$3.$0},$3A:function(){try{n._VizManagerImpl.$2(this.$1)}catch(t){this.$29();throw t;}this.$5=new n._LoadFeedback;this.$5.$3(this.$3);this.$2=this.$4B();this.$5.$4();this.$2A();n._Utility.hasWindowPostMessage()||(n._Utility.isIE()?this.$2.onreadystatechange=this.$4D():this.$2.onload=this.$4D());this.$A=!this.$3.toolbar;this.$9=!this.$3.tabs;this.$C.get_router().registerHandler(this);this.$46(9999)},$3B:function(){if(n._Utility.hasWindowPostMessage()&&!t.isNullOrUndefined(this.$2)&&t.isValue(this.$2.contentWindow)){var r=n._Utility.elementPosition(this.$2),i=[];i.push("vizOffsetResp");i.push(r.x);i.push(r.y);this.$2.contentWindow.postMessage(i.join(","),"*")}},_sendCommand:function(n,t){this.$C.sendCommand(n,t)},$3C:function(t){this.$14!=null&&this.$14(new n.ParameterEvent("parametervaluechange",this.$1,t))},$3D:function(i){this.$16!=null&&this.$16(new n.CustomViewEvent("customviewload",this.$1,t.isValue(i)?i._impl:null))},$3E:function(t){this.$18!=null&&this.$18(new n.CustomViewEvent("customviewsave",this.$1,t._impl))},$3F:function(t){this.$1A!=null&&this.$1A(new n.CustomViewEvent("customviewremove",this.$1,t._impl))},$40:function(t){this.$1C!=null&&this.$1C(new n.CustomViewEvent("customviewsetdefault",this.$1,t._impl))},$41:function(t,i){this.$1E!=null&&this.$1E(new n.TabSwitchEvent("tabswitch",this.$1,t,i))},raiseStoryPointSwitch:function(t,i){this.$20!=null&&this.$20(new n.StoryPointSwitchEvent("storypointswitch",this.$1,t,i))},$42:function(){this.$E!=null&&this.$E(this)},$43:function(){this.$D!=null&&this.$D(this)},$44:function(i){if(t.isNullOrUndefined(i))return null;var r=this.$7.$B(i);if(t.isNullOrUndefined(r))throw n._TableauException.createNotActiveSheet();return r.get_name()},$45:function(i){var u,r,f;if(i!=="pauseAutomaticUpdates"&&i!=="resumeAutomaticUpdates"&&i!=="toggleAutomaticUpdates")throw n._TableauException.createInternalError(null);return u={},u["api.invokeCommandName"]=i,r=new n._Deferred,f=new n._CommandReturnHandler("api.InvokeCommandCommand",0,t.Delegate.create(this,function(n){var i=n;t.isValue(i.isAutoUpdate)&&(this.$B=!i.isAutoUpdate);r.resolve(this.$B)}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this._sendCommand(u,f),r.get_promise()},$46:function(n){var t="&:loadOrderID="+n.toString(),i="&:apiID="+this.$6;this.$2.src=this.$4+t+i},$47:function(i,r){var u,f;if(i!=="showExportImageDialog"&&i!=="showExportDataDialog"&&i!=="showExportCrosstabDialog"&&i!=="showExportPDFDialog"&&i!=="showShareDialog"&&i!=="showDownloadWorkbookDialog")throw n._TableauException.createInternalError(null);u={};u["api.invokeCommandName"]=i;t.isValue(r)&&(u["api.invokeCommandParam"]=r);f=new n._CommandReturnHandler("api.InvokeCommandCommand",0,null,null);this._sendCommand(u,f)},$48:function(){if(t.isValue(this.$8)){var i=this.$8;window.setTimeout(t.Delegate.create(this,function(){i(new n.TableauEvent("firstinteractive",this.$1))}),0);this.$8=null}this.$42()},$49:function(){n._Utility.isIE()?this.$2.readyState==="complete"&&this.handleVizLoad():this.handleVizLoad()},$4A:function(){window.setTimeout(t.Delegate.create(this,this.$49),3e3)},$4B:function(){var i,r,u;return t.isNullOrUndefined(this.$39())?null:(i=document.createElement("IFrame"),i.frameBorder="0",i.setAttribute("allowTransparency","true"),i.marginHeight="0",i.marginWidth="0",r=this.$3.width,u=this.$3.height,n._Utility.isNumber(r)&&(r=r+"px"),n._Utility.isNumber(u)&&(u=u+"px"),i.style.width=r,i.style.height=u,n._Utility.isSafari()&&i.addEventListener("mousewheel",t.Delegate.create(this,this.$4C),!1),this.$39().appendChild(i),i)},$4C:function(){},$4D:function(){return t.Delegate.create(this,function(){this.$4A()})}};n._VizManagerImpl=function(){};n._VizManagerImpl.get_$1=function(){return n._VizManagerImpl.$0.concat()};n._VizManagerImpl.$2=function(t){n._VizManagerImpl.$4(t);n._VizManagerImpl.$0.push(t)};n._VizManagerImpl.$3=function(t){for(var i=0,r=n._VizManagerImpl.$0.length;i<r;i++)if(n._VizManagerImpl.$0[i]===t){n._VizManagerImpl.$0.splice(i,1);break}};n._VizManagerImpl.$4=function(t){for(var r=t.getParentElement(),f,i=0,u=n._VizManagerImpl.$0.length;i<u;i++)if(n._VizManagerImpl.$0[i].getParentElement()===r){f="Another viz is already present in element '"+n._Utility.elementToString(r)+"'.";throw n._TableauException.create("vizAlreadyInManager",f);}};n._VizParameters=function(i,r,u){var o,e,s,f;if(t.isNullOrUndefined(i)||t.isNullOrUndefined(r))throw n._TableauException.create("noUrlOrParentElementNotFound","URL is empty or Parent element not found");if(t.isNullOrUndefined(u)?(u={},u.width="800px",u.height="600px",u.hideTabs=!1,u.hideToolbar=!1,u.onFirstInteractive=null):(t.isNullOrUndefined(u.width)&&(u.width="800px"),t.isNullOrUndefined(u.height)&&(u.height="600px")),o=new t.StringBuilder,o.append('<div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 0; padding: 0; margin: 0">'),o.append("<\/div>"),e=document.createElement("div"),e.innerHTML=o.toString(),this.$0=e.firstChild,i.appendChild(this.$0),e.innerHTML="",e=null,this.tabs=!(u.hideTabs||!1),this.toolbar=!(u.hideToolbar||!1),this.parentElement=i,this.createOptions=u,this.width=this.createOptions.width,this.height=this.createOptions.height,this.toolBarPosition=u.toolbarPosition,s=r.split("?"),this.$1=s[0],this.userSuppliedParameters=s.length===2?s[1]:"",f=new RegExp(".*?[^/:]/","").exec(this.$1),t.isNullOrUndefined(f)||f[0].toLowerCase().indexOf("http://")===-1&&f[0].toLowerCase().indexOf("https://")===-1)throw n._TableauException.create("invalidUrl","Invalid url");this.host_url=f[0].toLowerCase();this.name=this.$1.replace(f[0],"");this.name=this.name.replace("views/","");this.serverRoot=decodeURIComponent(this.host_url)};n._VizParameters.prototype={name:"",host_url:null,tabs:!1,toolbar:!1,toolBarPosition:null,width:null,height:null,serverRoot:null,parentElement:null,createOptions:null,userSuppliedParameters:null,$0:null,$1:null,get_url:function(){return this.$2()},get_baseUrl:function(){return this.$1},$2:function(){var n=[],f,r,u,i;n.push(this.get_baseUrl());n.push("?");this.userSuppliedParameters.length>0&&(n.push(this.userSuppliedParameters),n.push("&"));n.push(":embed=y");n.push("&:showVizHome=no");this.tabs||n.push("&:tabs=n");this.toolbar?t.isNullOrUndefined(this.toolBarPosition)||(n.push("&:toolbar="),n.push(this.toolBarPosition)):n.push("&:toolbar=n");f=this.createOptions;r=f;for(u in r)i={key:u,value:r[u]},i.key!=="embed"&&i.key!=="height"&&i.key!=="width"&&i.key!=="hideTabs"&&i.key!=="hideToolbar"&&i.key!=="onFirstInteractive"&&i.key!=="toolbarPosition"&&(n.push("&"),n.push(encodeURIComponent(i.key)),n.push("="),n.push(encodeURIComponent(i.value.toString())));return n.join("")}};n._WorkbookImpl=function(t,i,r){this.$5=new n._Collection;this.$15=new n._Collection;this.$16=new n._Collection;this.$17=new n._Collection;this.$1=t;this.$7=i;this.$10(r)};n._WorkbookImpl.$8=function(t){switch(t){case"dashboard":return"dashboard";case"story":return"story";case"worksheet":return"worksheet";default:throw n._TableauException.createInternalError("Unknown sheetType '"+t+"'");}};n._WorkbookImpl.$9=function(t){var f,u;for(t=t||[],f=[],u=0;u<t.length;u++){var r=t[u],e=r.zoneType,i="blank";switch(e){case"color":case"shape":case"size":case"map":i="legend";break;case"layout-basic":case"layout-flow":continue;case"filter":i="quickFilter";break;case"viz":i="worksheet";break;case"paramctrl":i="parameterControl";break;case"empty":i="blank";break;case"title":i="title";break;case"text":i="text";break;case"bitmap":i="image";break;case"web":i="webPage"}var o=n.$create_Size(r.width,r.height),s=n.$create_Point(r.x,r.y),h=r.name,c=n.$create_JavaScriptApi$2(h,i,s,o,r.zoneId);f.push(c)}return f};n._WorkbookImpl.$A=function(i){if(t.isNullOrUndefined(i))return null;if(n._Utility.isString(i))return i;var r=i,u=t.Delegate.create(r,r.getName);return t.isValue(u)?u():null};n._WorkbookImpl.$E=function(i){if(t.isNullOrUndefined(i))return n.SheetSizeFactory.createAutomatic();var r=i.minHeight,u=i.minWidth,f=i.maxHeight,e=i.maxWidth,o="automatic",s=null,h=null;return r||u?f||e?f===r&&e===u?(o="exactly",s=n.$create_Size(u,r),h=n.$create_Size(u,r)):(o="range",s=n.$create_Size(u,r),h=n.$create_Size(e,f)):(o="atleast",s=n.$create_Size(u,r)):(f||e)&&(o="atmost",h=n.$create_Size(e,f)),n.$create_SheetSize(o,s,h)};n._WorkbookImpl.$28=function(i){for(var u=new n._Collection,f=t.IEnumerator.getEnumerator(i.parameters),e,r;f.moveNext();)e=f.current,r=new n._ParameterImpl(e),u._add(r.get_$B(),r.get_$A());return u};n._WorkbookImpl.$29=function(i,r){for(var f=t.IEnumerator.getEnumerator(r.parameters),u;f.moveNext();)if(u=f.current,u.name===i)return new n._ParameterImpl(u);return null};n._WorkbookImpl.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$6:!1,$7:null,get_workbook:function(){return t.isNullOrUndefined(this.$0)&&(this.$0=new tableauSoftware.Workbook(this)),this.$0},get_viz:function(){return this.$1.get_$21()},get_publishedSheets:function(){return this.$5},get_name:function(){return this.$2},get_activeSheetImpl:function(){return this.$3},get_activeCustomView:function(){return this.$14},get_isDownloadAllowed:function(){return this.$6},$B:function(i){var r,f,u;return t.isNullOrUndefined(this.$3)?null:(r=n._WorkbookImpl.$A(i),t.isNullOrUndefined(r))?null:r===this.$3.get_name()?this.$3:this.$3.get_isDashboard()&&(f=this.$3,u=f.get_worksheets()._get(r),t.isValue(u))?u._impl:null},_setActiveSheetAsync:function(i){var u,f,e,s,r,o;if(n._Utility.isNumber(i)){if(u=i,u<this.$5.get__length()&&u>=0)return this.$C(this.$5.get_item(u).$0);throw n._TableauException.createIndexOutOfRange(u);}if(f=n._WorkbookImpl.$A(i),e=this.$5._get(f),t.isValue(e))return this.$C(e.$0);if(this.$3.get_isDashboard()&&(s=this.$3,r=s.get_worksheets()._get(f),t.isValue(r)))return this.$4=null,o="",r.getIsHidden()?this.$4=r._impl:o=r._impl.get_url(),this.$D(r._impl.get_name(),o);throw n._TableauException.create("sheetNotInWorkbook","Sheet is not found in Workbook");},_revertAllAsync:function(){var t=new n._Deferred,i=new n._CommandReturnHandler("api.RevertAllCommand",1,function(){t.resolve()},function(i,r){t.reject(n._TableauException.createServerError(r))});return this.$F(null,i),t.get_promise()},_update:function(n){this.$10(n)},$C:function(n){return this.$D(n.name,n.url)},$D:function(i,r){var u=new n._Deferred,f,e;return t.isValue(this.$3)&&i===this.$3.get_name()?(u.resolve(this.$3.get_sheet()),u.get_promise()):(f={},f["api.switchToSheetName"]=i,f["api.switchToRepositoryUrl"]=r,f["api.oldRepositoryUrl"]=this.$3.get_url(),e=new n._CommandReturnHandler("api.SwitchActiveSheetCommand",0,t.Delegate.create(this,function(){this.$1.$0=t.Delegate.create(this,function(){this.$1.$0=null;u.resolve(this.$3.get_sheet())})}),function(t,i){u.reject(n._TableauException.createServerError(i))}),this.$F(f,e),u.get_promise())},_updateActiveSheetAsync:function(){var r=new n._Deferred,i={},u;return i["api.switchToSheetName"]=this.$3.get_name(),i["api.switchToRepositoryUrl"]=this.$3.get_url(),i["api.oldRepositoryUrl"]=this.$3.get_url(),u=new n._CommandReturnHandler("api.UpdateActiveSheetCommand",0,t.Delegate.create(this,function(){r.resolve(this.$3.get_sheet())}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this.$F(i,u),r.get_promise()},$F:function(n,t){this.$7.sendCommand(n,t)},$10:function(i){var r=new n._CommandReturnHandler("api.GetClientInfoCommand",0,t.Delegate.create(this,function(n){var r=n;this.$11(r);t.isValue(i)&&i()}),null);this.$F(null,r)},$11:function(n){this.$2=n.workbookName;this.$6=n.isDownloadAllowed;this.$1.$38(!n.isAutoUpdate);this.$13(n);this.$12(n)},$12:function(i){var e=i.currentSheetName,r=this.$5._get(e),o,l,a,u,f,v,s,h,y,c;if(t.isNullOrUndefined(r)&&t.isNullOrUndefined(this.$4))throw n._TableauException.createInternalError("The active sheet was not specified in baseSheets");if(!t.isValue(this.$3)||this.$3.get_name()!==e){if(t.isValue(this.$3)&&(this.$3.set_isActive(!1),o=this.$5._get(this.$3.get_name()),t.isValue(o)&&(o.$0.isActive=!1),this.$3.get_sheetType()==="story"&&(l=this.$3,l.remove_activeStoryPointChange(t.Delegate.create(this.$1,this.$1.raiseStoryPointSwitch)))),t.isValue(this.$4))a=n.$create__SheetInfoImpl(this.$4.get_name(),"worksheet",-1,this.$4.get_size(),this.get_workbook(),"",!0,!0,4294967295),this.$4=null,this.$3=new n._WorksheetImpl(a,this,this.$7,null);else{for(u=null,f=0,v=i.publishedSheets.length;f<v;f++)if(i.publishedSheets[f].name===e){u=i.publishedSheets[f];break}if(t.isNullOrUndefined(u))throw n._TableauException.createInternalError("No base sheet was found corresponding to the active sheet.");s=t.Delegate.create(this,function(n){return this.$5._get(n)});u.sheetType==="dashboard"?(h=new n._DashboardImpl(r.$0,this,this.$7),this.$3=h,y=n._WorkbookImpl.$9(i.dashboardZones),h.$11(y,s)):u.sheetType==="story"?(c=new n._StoryImpl(r.$0,this,this.$7,i.story,s),this.$3=c,c.add_activeStoryPointChange(t.Delegate.create(this.$1,this.$1.raiseStoryPointSwitch))):this.$3=new n._WorksheetImpl(r.$0,this,this.$7,null);r.$0.isActive=!0}this.$3.set_isActive(!0)}},$13:function(i){var o=i.publishedSheets,r;if(!t.isNullOrUndefined(o))for(r=0;r<o.length;r++){var u=o[r],f=u.name,e=this.$5._get(f),s=n._WorkbookImpl.$E(u);if(t.isNullOrUndefined(e)){var h=f===i.currentSheetName,c=n._WorkbookImpl.$8(u.sheetType),l=n.$create__SheetInfoImpl(f,c,r,s,this.get_workbook(),u.repositoryUrl,h,!1,4294967295);e=new tableauSoftware.SheetInfo(l);this.$5._add(f,e)}else e.$0.size=s}},$14:null,get_$18:function(){return this.$15},set_$18:function(n){return this.$15=n,n},get_$19:function(){return this.$16},set_$19:function(n){return this.$16=n,n},get_$1A:function(){return this.$17},set_$1A:function(n){return this.$17=n,n},get_$1B:function(){return this.$14},set_$1B:function(n){return this.$14=n,n},$1C:function(){return n._CustomViewImpl._getCustomViewsAsync(this,this.$7)},$1D:function(i){var r,u;return t.isNullOrUndefined(i)||n._Utility.isNullOrEmpty(i)?n._CustomViewImpl._showCustomViewAsync(this,this.$7,null):(r=this.$15._get(i),t.isNullOrUndefined(r))?(u=new n._Deferred,u.reject(n._TableauException.createInvalidCustomViewName(i)),u.get_promise()):r._impl._showAsync()},$1E:function(i){var r,u;if(n._Utility.isNullOrEmpty(i))throw n._TableauException.createNullOrEmptyParameter("customViewName");return(r=this.$15._get(i),t.isNullOrUndefined(r))?(u=new n._Deferred,u.reject(n._TableauException.createInvalidCustomViewName(i)),u.get_promise()):r._impl.$12()},$1F:function(t){if(n._Utility.isNullOrEmpty(t))throw n._TableauException.createInvalidParameter("customViewName");return n._CustomViewImpl._saveNewAsync(this,this.$7,t)},$20:function(){return n._CustomViewImpl._makeCurrentCustomViewDefaultAsync(this,this.$7)},$21:null,$22:null,get_$23:function(){return this.$22},set_$23:function(n){return this.$22=n,n},get_$24:function(){return this.$21},$25:function(i){var r=new n._Deferred,u,f;return t.isValue(this.$22)?(r.resolve(this.$22.get_$A()),r.get_promise()):(u={},f=new n._CommandReturnHandler("api.FetchParametersCommand",0,t.Delegate.create(this,function(t){var f=t,u=n._WorkbookImpl.$29(i,f);this.$22=u;r.resolve(u.get_$A())}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this.$F(u,f),r.get_promise())},$26:function(){var i=new n._Deferred,r=new n._CommandReturnHandler("api.FetchParametersCommand",0,t.Delegate.create(this,function(t){var r=t;this.$21=n._WorkbookImpl.$28(r);i.resolve(this.get_$24()._toApiCollection())}),function(t,r){i.reject(n._TableauException.createServerError(r))});return this.$F({},r),i.get_promise()},$27:function(i,r){var u=new n._Deferred,e=null,f,o,s,h;return t.isValue(this.$21)&&(t.isNullOrUndefined(this.$21._get(i))||(e=this.$21._get(i)._impl,t.isNullOrUndefined(e)))?(u.reject(n._TableauException.createInvalidParameter(i)),u.get_promise()):(f={},f["api.setParameterName"]=t.isValue(this.$21)?e.get_$B():i,t.isValue(r)&&n._Utility.isDate(r)?(o=r,s=n._Utility.serializeDateForServer(o),f["api.setParameterValue"]=s):f["api.setParameterValue"]=t.isValue(r)?r.toString():null,this.$22=null,h=new n._CommandReturnHandler("api.SetParameterValueCommand",0,t.Delegate.create(this,function(r){var f=r,e;if(t.isNullOrUndefined(f)){u.reject(n._TableauException.create("serverError","server error"));return}if(!f.isValidPresModel){u.reject(n._TableauException.createInvalidParameter(i));return}e=new n._ParameterImpl(f);this.$22=e;u.resolve(e.get_$A())}),function(){u.reject(n._TableauException.createInvalidParameter(i))}),this.$F(f,h),u.get_promise())}};n._WorksheetImpl=function(t,i,r,u){this.$F=new n._Collection;this.$15=new n._Collection;this.$27=new n._Collection;n._WorksheetImpl.initializeBase(this,[t,i,r]);this.$10=u};n._WorksheetImpl.$16=function(i){if(t.isValue(i.invalidFieldCaption))return n._TableauException.create("invalidFilterFieldName",i.invalidFieldCaption);if(t.isValue(i.invalidValues))return n._TableauException.create("invalidFilterFieldValue",i.invalidValues);if(t.isValue(i.invalidAggFieldName)){var r=i.fieldCaption;return n._TableauException.$0(r)}return null};n._WorksheetImpl.$1E=function(i){if(t.isNullOrUndefined(i))throw n._TableauException.createNullOrEmptyParameter("filterOptions");if(t.isNullOrUndefined(i.min)&&t.isNullOrUndefined(i.max))throw n._TableauException.create("invalidParameter","At least one of filterOptions.min or filterOptions.max must be specified.");var r={};return t.isValue(i.min)&&(r.min=i.min),t.isValue(i.max)&&(r.max=i.max),t.isValue(i.nullOption)&&(r.nullOption=n._Enums.$5(i.nullOption,"filterOptions.nullOption")),r};n._WorksheetImpl.$1F=function(i){if(t.isNullOrUndefined(i))throw n._TableauException.createNullOrEmptyParameter("filterOptions");var r={};if(r.rangeType=n._Enums.$1(i.rangeType,"filterOptions.rangeType"),r.periodType=n._Enums.$0(i.periodType,"filterOptions.periodType"),r.rangeType==="lastn"||r.rangeType==="nextn"){if(t.isNullOrUndefined(i.rangeN))throw n._TableauException.create("missingRangeNForRelativeDateFilters","Missing rangeN field for a relative date filter of LASTN or NEXTN.");r.rangeN=n._Utility.toInt(i.rangeN)}if(t.isValue(i.anchorDate)){if(!n._Utility.isDate(i.anchorDate)||!n._Utility.isDateValid(i.anchorDate))throw n._TableauException.createInvalidDateParameter("filterOptions.anchorDate");r.anchorDate=i.anchorDate}return r};n._WorksheetImpl.$20=function(t,i,r){return new n._CommandReturnHandler(t,1,function(t){var u=n._WorksheetImpl.$16(t);u==null?r.resolve(i):r.reject(u)},function(t,u){if(t)r.reject(n._TableauException.createInvalidFilterFieldNameOrValue(i));else{var f=n._TableauException.create("filterCannotBePerformed",u);r.reject(f)}})};n._WorksheetImpl.$2B=function(i){return t.isValue(i.invalidFields)?n._TableauException.create("invalidSelectionFieldName",i.invalidFields):t.isValue(i.invalidValues)?n._TableauException.create("invalidSelectionValue",i.invalidValues):t.isValue(i.invalidDates)?n._TableauException.create("invalidSelectionDate",i.invalidDates):null};n._WorksheetImpl.prototype={$E:null,$10:null,get__dataSources:function(){return this.$F},set__dataSources:function(n){return this.$F=n,n},get_sheet:function(){return this.get_worksheet()},get_worksheet:function(){return this.$E==null&&(this.$E=new tableauSoftware.Worksheet(this)),this.$E},get_parentDashboardImpl:function(){return this.$10},get_parentDashboard:function(){return t.isValue(this.$10)?this.$10.get_dashboard():null},$11:function(){this.$13();var i=new n._Deferred,r=new n._CommandReturnHandler("api.GetDataSourcesCommand",0,t.Delegate.create(this,function(t){var u=t,r=n.JavaScriptApi$3.$B(u,this.get_name());this.set__dataSources(r);i.resolve(r._toApiCollection())}),function(t,r){i.reject(n._TableauException.createServerError(r))});return this.sendCommand({},r),i.get_promise()},$12:function(i){this.$13();var r=new n._Deferred,u=new n._CommandReturnHandler("api.GetDataSourcesCommand",0,t.Delegate.create(this,function(t){var o=t,f=n.JavaScriptApi$3.$B(o,this.get_name()),u,e;for(this.set__dataSources(f),u=0;u<f.get__length();u++)e=f.get_item(u),e.getName()===i&&r.resolve(e);r.reject(n._TableauException.create("serverError","datasource not found"))}),function(t,i){r.reject(n._TableauException.createServerError(i))});return this.sendCommand({},u),r.get_promise()},$13:function(){var i=this.get_isActive(),r=t.isValue(this.$10)&&this.$10.get_isActive(),u=t.isValue(this.get_parentStoryPointImpl())&&this.get_parentStoryPointImpl().get_parentStoryImpl().get_isActive();if(!i&&!r&&!u)throw n._TableauException.createNotActiveSheet();},$14:function(n){if(t.isValue(this.get_parentStoryPointImpl())){var i={};i.worksheet=this.get_name();t.isValue(this.get_parentDashboardImpl())&&(i.dashboard=this.get_parentDashboardImpl().get_name());i.flipboardZoneId=this.get_parentStoryPointImpl().get_containedSheetImpl().get_zoneId();i.storyboard=this.get_parentStoryPointImpl().get_parentStoryImpl().get_name();i.storyPointId=this.get_parentStoryPointImpl().get_storyPointId();n["api.visualId"]=i}else n["api.worksheetName"]=this.get_name(),t.isValue(this.get_parentDashboardImpl())&&(n["api.dashboardName"]=this.get_parentDashboardImpl().get_name())},get__filters:function(){return this.$15},set__filters:function(n){return this.$15=n,n},$17:function(i,r,u){var e,f,o;if(!n._Utility.isNullOrEmpty(i)&&!n._Utility.isNullOrEmpty(r))throw n._TableauException.createInternalError("Only fieldName OR fieldCaption is allowed, not both.");return u=u||{},e=new n._Deferred,f={},this.$14(f),!n._Utility.isNullOrEmpty(r)&&n._Utility.isNullOrEmpty(i)&&(f["api.fieldCaption"]=r),n._Utility.isNullOrEmpty(i)||(f["api.fieldName"]=i),f["api.filterHierarchicalLevels"]=0,f["api.ignoreDomain"]=u.ignoreDomain||!1,o=new n._CommandReturnHandler("api.GetOneFilterInfoCommand",0,t.Delegate.create(this,function(t){var i=n._WorksheetImpl.$16(t),r,u;i==null?(r=t,u=tableauSoftware.Filter.$7(this,r),e.resolve(u)):e.reject(i)}),function(t,i){e.reject(n._TableauException.createServerError(i))}),this.sendCommand(f,o),e.get_promise()},$18:function(i){var r,u,f;return this.$13(),i=i||{},r=new n._Deferred,u={},this.$14(u),u["api.ignoreDomain"]=i.ignoreDomain||!1,f=new n._CommandReturnHandler("api.GetFiltersListCommand",0,t.Delegate.create(this,function(n){var t=n;this.set__filters(tableauSoftware.Filter.$8(this,t));r.resolve(this.get__filters()._toApiCollection())}),function(t,i){r.reject(n._TableauException.createServerError(i))}),this.sendCommand(u,f),r.get_promise()},$19:function(n,t,i,r){return this.$22(n,t,i,r)},$1A:function(n){return this.$21(n)},$1B:function(t,i){var r=n._WorksheetImpl.$1E(i);return this.$23(t,r)},$1C:function(t,i){var r=n._WorksheetImpl.$1F(i);return this.$24(t,r)},$1D:function(i,r,u,f){if(t.isNullOrUndefined(r)&&u!=="all")throw n._TableauException.createInvalidParameter("values");return this.$25(i,r,u,f)},$21:function(t){var r,i,u;if(this.$13(),n._Utility.isNullOrEmpty(t))throw n._TableauException.createNullOrEmptyParameter("fieldName");return r=new n._Deferred,i={},i["api.fieldCaption"]=t,this.$14(i),u=n._WorksheetImpl.$20("api.ClearFilterCommand",t,r),this.sendCommand(i,u),r.get_promise()},$22:function(i,r,u,f){var o,s,h,e,c;if(this.$13(),n._Utility.isNullOrEmpty(i))throw n._TableauException.createNullOrEmptyParameter("fieldName");if(u=n._Enums.$2(u,"updateType"),o=[],n._jQueryShim.$12(r))for(s=0;s<r.length;s++)o.push(r[s].toString());else t.isValue(r)&&o.push(r.toString());return h=new n._Deferred,e={},e["api.fieldCaption"]=i,e["api.filterUpdateType"]=u,e["api.exclude"]=t.isValue(f)&&f.isExcludeMode?!0:!1,u!=="all"&&(e["api.filterCategoricalValues"]=o),this.$14(e),c=n._WorksheetImpl.$20("api.ApplyCategoricalFilterCommand",i,h),this.sendCommand(e,c),h.get_promise()},$23:function(i,r){var u,f,e,o,s;if(this.$13(),n._Utility.isNullOrEmpty(i))throw n._TableauException.createNullOrEmptyParameter("fieldName");if(t.isNullOrUndefined(r))throw n._TableauException.createNullOrEmptyParameter("filterOptions");if(u={},u["api.fieldCaption"]=i,t.isValue(r.min))if(n._Utility.isDate(r.min))if(f=r.min,n._Utility.isDateValid(f))u["api.filterRangeMin"]=n._Utility.serializeDateForServer(f);else throw n._TableauException.createInvalidDateParameter("filterOptions.min");else u["api.filterRangeMin"]=r.min;if(t.isValue(r.max))if(n._Utility.isDate(r.max))if(e=r.max,n._Utility.isDateValid(e))u["api.filterRangeMax"]=n._Utility.serializeDateForServer(e);else throw n._TableauException.createInvalidDateParameter("filterOptions.max");else u["api.filterRangeMax"]=r.max;return t.isValue(r.nullOption)&&(u["api.filterRangeNullOption"]=r.nullOption),this.$14(u),o=new n._Deferred,s=n._WorksheetImpl.$20("api.ApplyRangeFilterCommand",i,o),this.sendCommand(u,s),o.get_promise()},$24:function(i,r){var u,f,e;if(this.$13(),n._Utility.isNullOrEmpty(i))throw n._TableauException.createInvalidParameter("fieldName");else if(t.isNullOrUndefined(r))throw n._TableauException.createInvalidParameter("filterOptions");if(u={},u["api.fieldCaption"]=i,t.isValue(r)){if(u["api.filterPeriodType"]=r.periodType,u["api.filterDateRangeType"]=r.rangeType,r.rangeType==="lastn"||r.rangeType==="nextn"){if(t.isNullOrUndefined(r.rangeN))throw n._TableauException.create("missingRangeNForRelativeDateFilters","Missing rangeN field for a relative date filter of LASTN or NEXTN.");u["api.filterDateRange"]=r.rangeN}t.isValue(r.anchorDate)&&(u["api.filterDateArchorValue"]=n._Utility.serializeDateForServer(r.anchorDate))}return this.$14(u),f=new n._Deferred,e=n._WorksheetImpl.$20("api.ApplyRelativeDateFilterCommand",i,f),this.sendCommand(u,e),f.get_promise()},$25:function(i,r,u,f){var o,s,a,h,c,v,l,e,y,p;if(this.$13(),n._Utility.isNullOrEmpty(i))throw n._TableauException.createNullOrEmptyParameter("fieldName");if(u=n._Enums.$2(u,"updateType"),o=null,s=null,n._jQueryShim.$12(r))for(o=[],a=r,h=0;h<a.length;h++)o.push(a[h].toString());else if(n._Utility.isString(r))o=[],o.push(r.toString());else if(t.isValue(r)&&t.isValue(r.levels))if(c=r.levels,s=[],n._jQueryShim.$12(c))for(v=c,l=0;l<v.length;l++)s.push(v[l].toString());else s.push(c.toString());else if(t.isValue(r))throw n._TableauException.createInvalidParameter("values");return e={},e["api.fieldCaption"]=i,e["api.filterUpdateType"]=u,e["api.exclude"]=t.isValue(f)&&f.isExcludeMode?!0:!1,o!=null&&(e["api.filterHierarchicalValues"]=n.JsonUtil.toJson(o,!1,"")),s!=null&&(e["api.filterHierarchicalLevels"]=n.JsonUtil.toJson(s,!1,"")),this.$14(e),y=new n._Deferred,p=n._WorksheetImpl.$20("api.ApplyHierarchicalFilterCommand",i,y),this.sendCommand(e,p),y.get_promise()},get_selectedMarks:function(){return this.$27},set_selectedMarks:function(n){return this.$27=n,n},$28:function(){var t,i,r;return this.$13(),t=new n._Deferred,i={},this.$14(i),i["api.filterUpdateType"]="replace",r=new n._CommandReturnHandler("api.SelectMarksCommand",1,function(){t.resolve()},function(i,r){t.reject(n._TableauException.createServerError(r))}),this.sendCommand(i,r),t.get_promise()},$29:function(t,i,r){return(this.$13(),t==null&&i==null)?this.$28():n._Utility.isString(t)&&(n._jQueryShim.$12(i)||n._Utility.isString(i)||!n._Enums.$4(i))?this.$2C(t,i,r):n._jQueryShim.$12(t)?this.$2E(t,i):this.$2D(t,i)},$2A:function(){var i,r,u;return this.$13(),i=new n._Deferred,r={},this.$14(r),u=new n._CommandReturnHandler("api.FetchSelectedMarksCommand",0,t.Delegate.create(this,function(t){var r=t;this.$27=n._MarkImpl.$6(r);i.resolve(this.$27._toApiCollection())}),function(t,r){i.reject(n._TableauException.createServerError(r))}),this.sendCommand(r,u),i.get_promise()},$2C:function(n,t,i){var r=[],u=[],f=[],e=[],o=[],s=[];return this.$2F(r,u,f,e,o,s,n,t),this.$31(null,r,u,f,e,o,s,i)},$2D:function(t,i){var f=t,e=[],o=[],s=[],h=[],c=[],l=[],a=f,u,r;for(u in a)r={key:u,value:a[u]},t.hasOwnProperty(r.key)&&(n._jQueryShim.$11(f[r.key])||this.$2F(e,o,s,h,c,l,r.key,r.value));return this.$31(null,e,o,s,h,c,l,i)},$2E:function(i,r){for(var h=[],c=[],l=[],a=[],v=[],y=[],p=[],f,s,o,u,e=0;e<i.length;e++)if(f=i[e],t.isValue(f.$0.get_$4())&&f.$0.get_$4()>0)p.push(f.$0.get_$4());else for(s=f.$0.get_$3(),o=0;o<s.get__length();o++)u=s.get_item(o),u.hasOwnProperty("fieldName")&&u.hasOwnProperty("value")&&!n._jQueryShim.$11(u.fieldName)&&!n._jQueryShim.$11(u.value)&&this.$2F(h,c,l,a,v,y,u.fieldName,u.value);return this.$31(p,h,c,l,a,v,y,r)},$2F:function(i,r,u,f,e,o,s,h){var c=h,l,a,v,y,p;if(n._WorksheetImpl.$26.test(s))this.$30(u,f,s,h);else if(t.isValue(c.min)||t.isValue(c.max)){if(l={},t.isValue(c.min))if(n._Utility.isDate(c.min))if(a=c.min,n._Utility.isDateValid(a))l.min=n._Utility.serializeDateForServer(a);else throw n._TableauException.createInvalidDateParameter("options.min");else l.min=c.min;if(t.isValue(c.max))if(n._Utility.isDate(c.max))if(v=c.max,n._Utility.isDateValid(v))l.max=n._Utility.serializeDateForServer(v);else throw n._TableauException.createInvalidDateParameter("options.max");else l.max=c.max;t.isValue(c.nullOption)?(y=n._Enums.$5(c.nullOption,"options.nullOption"),l.nullOption=y):l.nullOption="allValues";p=n.JsonUtil.toJson(l,!1,"");this.$30(e,o,s,p)}else this.$30(i,r,s,h)},$30:function(t,i,r,u){var e=[],o,f;if(n._jQueryShim.$12(u))for(o=u,f=0;f<o.length;f++)e.push(o[f]);else e.push(u);i.push(e);t.push(r)},$31:function(t,i,r,u,f,e,o,s){var h={},y,l,b,p,a,k,w,v,d,c,g;if(this.$14(h),s=n._Enums.$3(s,"updateType"),h["api.filterUpdateType"]=s,n._Utility.isNullOrEmpty(t)||(h["api.tupleIds"]=n.JsonUtil.toJson(t,!1,"")),!n._Utility.isNullOrEmpty(i)&&!n._Utility.isNullOrEmpty(r)){for(h["api.categoricalFieldCaption"]=n.JsonUtil.toJson(i,!1,""),y=[],l=0;l<r.length;l++)b=n.JsonUtil.toJson(r[l],!1,""),y.push(b);h["api.categoricalMarkValues"]=n.JsonUtil.toJson(y,!1,"")}if(!n._Utility.isNullOrEmpty(u)&&!n._Utility.isNullOrEmpty(f)){for(h["api.hierarchicalFieldCaption"]=n.JsonUtil.toJson(u,!1,""),p=[],a=0;a<f.length;a++)k=n.JsonUtil.toJson(f[a],!1,""),p.push(k);h["api.hierarchicalMarkValues"]=n.JsonUtil.toJson(p,!1,"")}if(!n._Utility.isNullOrEmpty(e)&&!n._Utility.isNullOrEmpty(o)){for(h["api.rangeFieldCaption"]=n.JsonUtil.toJson(e,!1,""),w=[],v=0;v<o.length;v++)d=n.JsonUtil.toJson(o[v],!1,""),w.push(d);h["api.rangeMarkValues"]=n.JsonUtil.toJson(w,!1,"")}if(n._Utility.isNullOrEmpty(h["api.tupleIds"])&&n._Utility.isNullOrEmpty(h["api.categoricalFieldCaption"])&&n._Utility.isNullOrEmpty(h["api.hierarchicalFieldCaption"])&&n._Utility.isNullOrEmpty(h["api.rangeFieldCaption"]))throw n._TableauException.createInvalidParameter("fieldNameOrFieldValuesMap");return c=new n._Deferred,g=new n._CommandReturnHandler("api.SelectMarksCommand",1,function(t){var i=n._WorksheetImpl.$2B(t);i==null?c.resolve():c.reject(i)},function(t,i){c.reject(n._TableauException.createServerError(i))}),this.sendCommand(h,g),c.get_promise()}};n.JsonUtil=function(){};n.JsonUtil.parseJson=function(t){return n._jQueryShim.parseJSON(t)};n.JsonUtil.toJson=function(t,i,r){i=i||!1;r=r||"";return n.JsonUtil.$3(t,i,r,[])};n.JsonUtil.$1=function(n,i,r){var f,u;if(t.isValue(Array.prototype.indexOf))return n.indexOf(i,r);if(r=r||0,f=n.length,f>0)for(u=r;u<f;u++)if(n[u]===i)return u;return-1};n.JsonUtil.$2=function(t,i,r){var u=n.JsonUtil.$1(t,i,r);return u>=0};n.JsonUtil.$3=function(i,r,u,f){var e,s,o,h,l,a,v,c;if(n.JsonUtil.$2(f,i))throw Error.createError("The object contains recursive reference of sub-objects",null);if(t.isUndefined(i))return"undefined";if(i==null)return"null";if(e=n._jQueryShim.$13(i),e==="number"||e==="boolean")return i.toString();if(e==="string")return n.JsonUtil.$6(i);if(f.push(i),u=u||"",o=r?u+"\t":"",h=i.__json__||i.json,n._jQueryShim.$11(h)&&(l=h,s=l(i),i!==s))return a=n.JsonUtil.$3(s,r,o,f),f.pop(),a;if(t.isValue(i.nodeType)&&t.isValue(i.cloneNode))throw Error.createError("Can't serialize DOM nodes",null);return(v=r?" ":"",c=r?"\n":"",n._jQueryShim.$12(i))?n.JsonUtil.$5(i,r,u,f,o,c):e==="function"?(f.pop(),null):n.JsonUtil.$4(i,r,u,f,o,c,v)};n.JsonUtil.$4=function(i,r,u,f,e,o,s){var w=i,c=new t.StringBuilder("{"),y=!1,p=w,l,h,a,v;for(l in p){if(h={key:l,value:p[l]},typeof h.key=="number")a='"'+h.key+'"';else if(typeof h.key=="string")a=n.JsonUtil.$6(h.key);else continue;(v=n.JsonUtil.$3(h.value,r,e,f),v!=null)&&(y&&c.append(","),c.append(o+e+a+":"+s+v),y=!0)}return c.append(o+u+"}"),f.pop(),c.toString()};n.JsonUtil.$5=function(i,r,u,f,e,o){for(var l=!1,s=new t.StringBuilder("["),a=i,v,c,h=0;h<a.length;h++)v=a[h],c=n.JsonUtil.$3(v,r,e,f),c==null&&(c="undefined"),l&&s.append(","),s.append(o+e+c),l=!0;return s.append(o+u+"]"),f.pop(),s.toString()};n.JsonUtil.$6=function(n){return n='"'+n.replace(/(["\\])/g,"\\$1")+'"',n=n.replace(new RegExp("[\f]","g"),"\\f"),n=n.replace(new RegExp("[\b]","g"),"\\b"),n=n.replace(new RegExp("[\n]","g"),"\\n"),n=n.replace(new RegExp("[\t]","g"),"\\t"),n.replace(new RegExp("[\r]","g"),"\\r")};i.registerNamespace("tableauSoftware");n.$create_DataValue=function(t,i,r){var u={};return u.value=t,u.formattedValue=n._Utility.isNullOrEmpty(r)?i:r,u};n.$create_Point=function(n,t){var i={};return i.x=n,i.y=t,i};n.$create_Size=function(n,t){var i={};return i.width=n,i.height=t,i};n.$create_SheetSize=function(n,i,r){var u={};return u.behavior=n||"automatic",t.isValue(i)&&(u.minSize=i),t.isValue(r)&&(u.maxSize=r),u};tableauSoftware.CustomView=function(n){this._impl=n};tableauSoftware.CustomView.prototype={_impl:null,getWorkbook:function(){return this._impl.get_$B()},getUrl:function(){return this._impl.get_$C()},getName:function(){return this._impl.get_$D()},setName:function(n){this._impl.set_$D(n)},getOwnerName:function(){return this._impl.get_$E()},getAdvertised:function(){return this._impl.get_$F()},setAdvertised:function(n){this._impl.set_$F(n)},getDefault:function(){return this._impl.get_$10()},saveAsync:function(){return this._impl.$11()}};n.CustomViewEvent=function(t,i,r){n.CustomViewEvent.initializeBase(this,[t,i]);this.$2=new n.JavaScriptApi$6(i._impl.get__workbookImpl(),r)};n.CustomViewEvent.prototype={$2:null,getCustomViewAsync:function(){var t=new n._Deferred;return t.resolve(this.$2.get__customViewImpl().get_$A()),t.get_promise()}};n.JavaScriptApi$6=function(t,i){n.JavaScriptApi$6.initializeBase(this,[t,null]);this.$2=i};n.JavaScriptApi$6.prototype={$2:null,get__customViewImpl:function(){return this.$2}};tableauSoftware.Dashboard=function(n){tableauSoftware.Dashboard.initializeBase(this,[n])};tableauSoftware.Dashboard.prototype={_impl:null,getParentStoryPoint:function(){return this._impl.get_parentStoryPoint()},getObjects:function(){return this._impl.get_objects()._toApiCollection()},getWorksheets:function(){return this._impl.get_worksheets()._toApiCollection()}};tableauSoftware.DashboardObject=function(i,r,u){if(i.$0==="worksheet"&&t.isNullOrUndefined(u))throw n._TableauException.createInternalError("worksheet parameter is required for WORKSHEET objects");else if(i.$0!=="worksheet"&&t.isValue(u))throw n._TableauException.createInternalError("worksheet parameter should be undefined for non-WORKSHEET objects");this.$0=i;this.$1=r;this.$2=u};tableauSoftware.DashboardObject.prototype={$0:null,$1:null,$2:null,getObjectType:function(){return this.$0.$0},getDashboard:function(){return this.$1},getWorksheet:function(){return this.$2},getPosition:function(){return this.$0.$2},getSize:function(){return this.$0.$3}};tableauSoftware.DataSource=function(n){this.$0=n};tableauSoftware.DataSource.prototype={$0:null,getName:function(){return this.$0.get_$6()},getFields:function(){return this.$0.get_$7()._toApiCollection()},getIsPrimary:function(){return this.$0.get_$8()}};tableauSoftware.Field=function(n,t,i,r){this.$0=n;this.$1=t;this.$2=i;this.$3=r};tableauSoftware.Field.prototype={$0:null,$1:null,$2:null,$3:null,getDataSource:function(){return this.$0},getName:function(){return this.$1},getRole:function(){return this.$2},getAggregation:function(){return this.$3}};tableauSoftware.CategoricalFilter=function(n,t){tableauSoftware.CategoricalFilter.initializeBase(this,[n,t]);this.$D(t)};tableauSoftware.CategoricalFilter.prototype={$B:!1,$C:null,getIsExcludeMode:function(){return this.$B},getAppliedValues:function(){return this.$C},_updateFromJson:function(n){this.$D(n)},$D:function(i){var r,u;if(this.$B=i.isExclude,t.isValue(i.catAppliedValues))for(this.$C=[],r=t.IEnumerator.getEnumerator(i.catAppliedValues);r.moveNext();)u=r.current,this.$C.push(n._Utility.getDataValue(u))}};tableauSoftware.Filter=function(n,t){this.$0=n;this.$A(t)};tableauSoftware.Filter.$7=function(n,t){switch(t.type){case"C":return new tableauSoftware.CategoricalFilter(n,t);case"RD":return new tableauSoftware.RelativeDateFilter(n,t);case"H":return new tableauSoftware.HierarchicalFilter(n,t);case"Q":return new tableauSoftware.QuantitativeFilter(n,t)}return null};tableauSoftware.Filter.$8=function(i,r){for(var f=new n._Collection,e=t.IEnumerator.getEnumerator(r.filters),u,o;e.moveNext();)u=e.current,o=tableauSoftware.Filter.$7(i,u),f._add(u.caption,o);return f};tableauSoftware.Filter.$9=function(n){switch(n){case"dimension":return"dimension";case"measure":return"measure"}return"unknown"};tableauSoftware.Filter.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,getFilterType:function(){return this.$1},getFieldName:function(){return this.$2},getWorksheet:function(){return this.$0.get_worksheet()},getFieldAsync:function(){var i=new n._Deferred,r,u;return this.$3==null?(r=function(n){return i.reject(n),null},u=t.Delegate.create(this,function(n){return this.$3=new tableauSoftware.Field(n,this.$2,this.$5,this.$6),i.resolve(this.$3),null}),this.$0.$12(this.$4).then(u,r)):window.setTimeout(t.Delegate.create(this,function(){i.resolve(this.$3)}),0),i.get_promise()},_update:function(n){this.$A(n);this._updateFromJson(n)},_addFieldParams:function(){},$A:function(t){this.$2=t.caption;switch(t.type){case"C":this.$1="categorical";break;case"RD":this.$1="relativedate";break;case"H":this.$1="hierarchical";break;case"Q":this.$1="quantitative"}this.$3=null;this.$4=t.datasourceName;this.$5=tableauSoftware.Filter.$9(t.fieldRoleType);this.$6=n.JavaScriptApi$3.$9(t.fieldAggrType)}};n.FilterEvent=function(t,i,r,u,f){n.FilterEvent.initializeBase(this,[t,i,r]);this.$3=f;this.$4=new n.JavaScriptApi$5(i._impl.get__workbookImpl(),r,u,f)};n.FilterEvent.prototype={$3:null,$4:null,getFieldName:function(){return this.$3},getFilterAsync:function(){return this.$4.get__worksheetImpl().$17(this.$4.get__filterFieldName(),null,null)}};n.JavaScriptApi$5=function(t,i,r,u){n.JavaScriptApi$5.initializeBase(this,[t,i]);this.$2=r;this.$3=u};n.JavaScriptApi$5.prototype={$2:null,$3:null,get__filterFieldName:function(){return this.$2},get_$4:function(){return this.$3}};tableauSoftware.HierarchicalFilter=function(n,t){tableauSoftware.HierarchicalFilter.initializeBase(this,[n,t]);this.$C(t)};tableauSoftware.HierarchicalFilter.prototype={$B:0,_addFieldParams:function(n){n["api.filterHierarchicalLevels"]=this.$B},_updateFromJson:function(n){this.$C(n)},$C:function(n){this.$B=n.levels}};tableauSoftware.QuantitativeFilter=function(n,t){tableauSoftware.QuantitativeFilter.initializeBase(this,[n,t]);this.$10(t)};tableauSoftware.QuantitativeFilter.prototype={$B:null,$C:null,$D:null,$E:null,$F:!1,getMin:function(){return this.$D},getMax:function(){return this.$E},getIncludeNullValues:function(){return this.$F},getDomainMin:function(){return this.$B},getDomainMax:function(){return this.$C},_updateFromJson:function(n){this.$10(n)},$10:function(t){this.$B=n._Utility.getDataValue(t.domainMinValue);this.$C=n._Utility.getDataValue(t.domainMaxValue);this.$D=n._Utility.getDataValue(t.minValue);this.$E=n._Utility.getDataValue(t.maxValue);this.$F=t.includeNullValues}};tableauSoftware.RelativeDateFilter=function(n,t){tableauSoftware.RelativeDateFilter.initializeBase(this,[n,t]);this.$E(t)};tableauSoftware.RelativeDateFilter.prototype={$B:null,$C:null,$D:0,getPeriod:function(){return this.$B},getRange:function(){return this.$C},getRangeN:function(){return this.$D},_updateFromJson:function(n){this.$E(n)},$E:function(i){t.isValue(i.periodType)&&(this.$B=n._Enums.$0(i.periodType,"periodType"));t.isValue(i.rangeType)&&(this.$C=n._Enums.$1(i.rangeType,"rangeType"));t.isValue(i.rangeN)&&(this.$D=i.rangeN)}};n._LoadFeedback=function(){};n._LoadFeedback.prototype={$0:null,$1:null,$2:null,$3:function(n){var t,r,i;this.$0=n.$0;t=this.$0.style;this.$2=t.display;t.position="relative";t.overflow="hidden";t.display="none";r=[];r.push('<div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 0; padding: 0; margin: 0">');r.push("<\/div>");i=document.createElement("div");i.innerHTML=r.join("");this.$1=i.firstChild;this.$0.appendChild(this.$1);i.innerHTML="";i=null},$4:function(){t.isValue(this.$0)&&(this.$0.style.display=this.$2)},$5:function(){t.isValue(this.$1)&&(this.$1.innerHTML="",this.$1.parentNode.removeChild(this.$1),this.$1=null)}};tableauSoftware.Mark=function(t){this.$0=new n._MarkImpl(t)};tableauSoftware.Mark.prototype={$0:null,getPairs:function(){return this.$0.get_$5()}};n.MarksEvent=function(t,i,r){n.MarksEvent.initializeBase(this,[t,i,r]);this.$3=new n.JavaScriptApi$8(i._impl.get__workbookImpl(),r)};n.MarksEvent.prototype={$3:null,getMarksAsync:function(){var i=this.$3.get__worksheetImpl(),r;return t.isValue(i.get_selectedMarks())?(r=new n._Deferred,r.resolve(i.get_selectedMarks()._toApiCollection())):i.$2A()}};n.JavaScriptApi$8=function(t,i){n.JavaScriptApi$8.initializeBase(this,[t,i])};tableauSoftware.Pair=function(n,i){this.fieldName=n;this.value=i;this.formattedValue=t.isValue(i)?i.toString():""};tableauSoftware.Pair.prototype={fieldName:null,value:null,formattedValue:null};tableauSoftware.Parameter=function(n){this._impl=n};tableauSoftware.Parameter.prototype={_impl:null,getName:function(){return this._impl.get_$B()},getCurrentValue:function(){return this._impl.get_$C()},getDataType:function(){return this._impl.get_$D()},getAllowableValuesType:function(){return this._impl.get_$E()},getAllowableValues:function(){return this._impl.get_$F()},getMinValue:function(){return this._impl.get_$10()},getMaxValue:function(){return this._impl.get_$11()},getStepSize:function(){return this._impl.get_$12()},getDateStepPeriod:function(){return this._impl.get_$13()}};n.ParameterEvent=function(t,i,r){n.ParameterEvent.initializeBase(this,[t,i]);this.$2=new n.JavaScriptApi$7(i._impl.get__workbookImpl(),r)};n.ParameterEvent.prototype={$2:null,getParameterName:function(){return this.$2.get__parameterName()},getParameterAsync:function(){return this.$2.get__workbookImpl().$25(this.$2.get__parameterName())}};n.JavaScriptApi$7=function(t,i){n.JavaScriptApi$7.initializeBase(this,[t,null]);this.$2=i};n.JavaScriptApi$7.prototype={$2:null,get__parameterName:function(){return this.$2}};tableauSoftware.Sheet=function(t){n._Param.verifyValue(t,"sheetImpl");this._impl=t};tableauSoftware.Sheet.prototype={_impl:null,getName:function(){return this._impl.get_name()},getIndex:function(){return this._impl.get_index()},getWorkbook:function(){return this._impl.get_workbookImpl().get_workbook()},getSize:function(){return this._impl.get_size()},getIsHidden:function(){return this._impl.get_isHidden()},getIsActive:function(){return this._impl.get_isActive()},getSheetType:function(){return this._impl.get_sheetType()},getUrl:function(){return this._impl.get_url()},changeSizeAsync:function(n){return this._impl.changeSizeAsync(n)}};tableauSoftware.SheetInfo=function(n){this.$0=n};tableauSoftware.SheetInfo.prototype={$0:null,getName:function(){return this.$0.name},getSheetType:function(){return this.$0.sheetType},getSize:function(){return this.$0.size},getIndex:function(){return this.$0.index},getUrl:function(){return this.$0.url},getIsActive:function(){return this.$0.isActive},getIsHidden:function(){return this.$0.isHidden},getWorkbook:function(){return this.$0.workbook}};n.SheetSizeFactory=function(){};n.SheetSizeFactory.createAutomatic=function(){return n.$create_SheetSize("automatic",null,null)};tableauSoftware.Story=function(n){tableauSoftware.Story.initializeBase(this,[n])};tableauSoftware.Story.prototype={_impl:null,getActiveStoryPoint:function(){return this._impl.get_activeStoryPointImpl().get_storyPoint()},getStoryPointsInfo:function(){return this._impl.get_storyPointsInfo()},activatePreviousStoryPointAsync:function(){return this._impl.activatePreviousStoryPointAsync()},activateNextStoryPointAsync:function(){return this._impl.activateNextStoryPointAsync()},activateStoryPointAsync:function(n){return this._impl.activateStoryPointAsync(n)},revertStoryPointAsync:function(n){return this._impl.revertStoryPointAsync(n)}};tableauSoftware.StoryPoint=function(n){this.$0=n};tableauSoftware.StoryPoint.prototype={$0:null,getCaption:function(){return this.$0.get_caption()},getContainedSheet:function(){return t.isValue(this.$0.get_containedSheetImpl())?this.$0.get_containedSheetImpl().get_sheet():null},getIndex:function(){return this.$0.get_index()},getIsActive:function(){return this.$0.get_isActive()},getIsUpdated:function(){return this.$0.get_isUpdated()},getParentStory:function(){return this.$0.get_parentStoryImpl().get_story()}};tableauSoftware.StoryPointInfo=function(n){this._impl=n};tableauSoftware.StoryPointInfo.prototype={_impl:null,getCaption:function(){return this._impl.caption},getIndex:function(){return this._impl.index},getIsActive:function(){return this._impl.isActive},getIsUpdated:function(){return this._impl.isUpdated},getParentStory:function(){return this._impl.parentStoryImpl.get_story()}};n.StoryPointSwitchEvent=function(t,i,r,u){n.StoryPointSwitchEvent.initializeBase(this,[t,i]);this.$2=r;this.$3=u};n.StoryPointSwitchEvent.prototype={$2:null,$3:null,getOldStoryPointInfo:function(){return this.$2},getNewStoryPoint:function(){return this.$3}};n.TableauEvent=function(n,t){this.$0=t;this.$1=n};n.TableauEvent.prototype={$0:null,$1:null,getViz:function(){return this.$0},getEventName:function(){return this.$1}};n.EventContext=function(n,t){this.$0=n;this.$1=t};n.EventContext.prototype={$0:null,$1:null,get__workbookImpl:function(){return this.$0},get__worksheetImpl:function(){return this.$1}};n.TabSwitchEvent=function(t,i,r,u){n.TabSwitchEvent.initializeBase(this,[t,i]);this.$2=r;this.$3=u};n.TabSwitchEvent.prototype={$2:null,$3:null,getOldSheetName:function(){return this.$2},getNewSheetName:function(){return this.$3}};tableauSoftware.Viz=function(t,i,r){var u=n._ApiObjectRegistry.createCrossDomainMessageRouter();this._impl=new n.VizImpl(u,this,t,i,r);this._impl.$3A()};tableauSoftware.Viz.prototype={_impl:null,getAreTabsHidden:function(){return this._impl.get_$22()},getIsToolbarHidden:function(){return this._impl.get_$23()},getIsHidden:function(){return this._impl.get_$24()},getParentElement:function(){return this._impl.get_$25()},getUrl:function(){return this._impl.get_$26()},getWorkbook:function(){return this._impl.get_$27()},getAreAutomaticUpdatesPaused:function(){return this._impl.get_$28()},addEventListener:function(n,t){this._impl.addEventListener(n,t)},removeEventListener:function(n,t){this._impl.removeEventListener(n,t)},dispose:function(){this._impl.$29()},show:function(){this._impl.$2A()},hide:function(){this._impl.$2B()},showExportDataDialog:function(n){this._impl.$2D(n)},showExportCrossTabDialog:function(n){this._impl.$2E(n)},showExportImageDialog:function(){this._impl.$2C()},showExportPDFDialog:function(){this._impl.$2F()},revertAllAsync:function(){return this._impl.$30()},refreshDataAsync:function(){return this._impl.$31()},showShareDialog:function(){this._impl.$32()},showDownloadWorkbookDialog:function(){this._impl.$33()},pauseAutomaticUpdatesAsync:function(){return this._impl.$34()},resumeAutomaticUpdatesAsync:function(){return this._impl.$35()},toggleAutomaticUpdatesAsync:function(){return this._impl.$36()},setFrameSize:function(t,i){var r=t,u=i;n._Utility.isNumber(t)&&(r=t+"px");n._Utility.isNumber(i)&&(u=i+"px");this._impl.$37(r,u)}};tableauSoftware.VizManager=function(){};tableauSoftware.VizManager.getVizs=function(){return n._VizManagerImpl.get_$1()};tableauSoftware.Workbook=function(n){this.$0=n};tableauSoftware.Workbook.prototype={$0:null,getViz:function(){return this.$0.get_viz()},getPublishedSheetsInfo:function(){return this.$0.get_publishedSheets()._toApiCollection()},getName:function(){return this.$0.get_name()},getActiveSheet:function(){return this.$0.get_activeSheetImpl().get_sheet()},getActiveCustomView:function(){return this.$0.get_activeCustomView()},activateSheetAsync:function(n){return this.$0._setActiveSheetAsync(n)},revertAllAsync:function(){return this.$0._revertAllAsync()},getCustomViewsAsync:function(){return this.$0.$1C()},showCustomViewAsync:function(n){return this.$0.$1D(n)},removeCustomViewAsync:function(n){return this.$0.$1E(n)},rememberCustomViewAsync:function(n){return this.$0.$1F(n)},setActiveCustomViewAsDefaultAsync:function(){return this.$0.$20()},getParametersAsync:function(){return this.$0.$26()},changeParameterValueAsync:function(n,t){return this.$0.$27(n,t)}};tableauSoftware.Worksheet=function(n){tableauSoftware.Worksheet.initializeBase(this,[n])};tableauSoftware.Worksheet.prototype={_impl:null,getParentDashboard:function(){return this._impl.get_parentDashboard()},getParentStoryPoint:function(){return this._impl.get_parentStoryPoint()},getDataSourcesAsync:function(){return this._impl.$11()},getFilterAsync:function(n,t){return this._impl.$17(null,n,t)},getFiltersAsync:function(n){return this._impl.$18(n)},applyFilterAsync:function(n,t,i,r){return this._impl.$19(n,t,i,r)},clearFilterAsync:function(n){return this._impl.$1A(n)},applyRangeFilterAsync:function(n,t){return this._impl.$1B(n,t)},applyRelativeDateFilterAsync:function(n,t){return this._impl.$1C(n,t)},applyHierarchicalFilterAsync:function(n,t,i,r){return this._impl.$1D(n,t,i,r)},clearSelectedMarksAsync:function(){return this._impl.$28()},selectMarksAsync:function(n,t,i){return this._impl.$29(n,t,i)},getSelectedMarksAsync:function(){return this._impl.$2A()}};n.WorksheetEvent=function(t,i,r){n.WorksheetEvent.initializeBase(this,[t,i]);this.$2=r};n.WorksheetEvent.prototype={$2:null,getWorksheet:function(){return this.$2.get_worksheet()}};n._jQueryShim=function(){};n._jQueryShim.$11=function(t){return n._jQueryShim.$13(t)==="function"};n._jQueryShim.$12=function(i){return t.isValue(Array.isArray)?Array.isArray(i):n._jQueryShim.$13(i)==="array"};n._jQueryShim.$13=function(t){return t==null?String(t):n._jQueryShim.$8[n._jQueryShim.$A.call(t)]||"object"};n._jQueryShim.$14=function(i){return t.isValue(n._jQueryShim.$9)?i==null?"":n._jQueryShim.$9.call(i):i==null?"":i.replace(n._jQueryShim.$B,"").replace(n._jQueryShim.$C,"")};n._jQueryShim.parseJSON=function(i){if(typeof i!="string"||t.isNullOrUndefined(i))return null;if(i=n._jQueryShim.$14(i),window.JSON&&window.JSON.parse)return window.JSON.parse(i);if(n._jQueryShim.$D.test(i.replace(n._jQueryShim.$E,"@").replace(n._jQueryShim.$F,"]").replace(n._jQueryShim.$10,"")))return new Function("return "+i)();throw new Error("Invalid JSON: "+i);};n._ApiCommand.registerClass("tab._ApiCommand");n._ApiServerResultParser.registerClass("tab._ApiServerResultParser");n.JavaScriptApi$4.registerClass("tab.JavaScriptApi$4");n._CommandReturnHandler.registerClass("tab._CommandReturnHandler");n.JavaScriptApi$1.registerClass("tab.JavaScriptApi$1",null,n.ICrossDomainMessageRouter);n.JavaScriptApi$0.registerClass("tab.JavaScriptApi$0",null,n.ICrossDomainMessageHandler);n.CrossDomainMessagingOptions.registerClass("tab.CrossDomainMessagingOptions");n._Enums.registerClass("tab._Enums");n._ApiBootstrap.registerClass("tab._ApiBootstrap");n._ApiObjectRegistry.registerClass("tab._ApiObjectRegistry");n._CustomViewImpl.registerClass("tab._CustomViewImpl");n._SheetImpl.registerClass("tab._SheetImpl");n._DashboardImpl.registerClass("tab._DashboardImpl",n._SheetImpl);n.JavaScriptApi$3.registerClass("tab.JavaScriptApi$3");n._DeferredUtil.registerClass("tab._DeferredUtil");n._CollectionImpl.registerClass("tab._CollectionImpl");n._DeferredImpl.registerClass("tab._DeferredImpl");n._PromiseImpl.registerClass("tab._PromiseImpl");n._MarkImpl.registerClass("tab._MarkImpl");n._Param.registerClass("tab._Param");n._ParameterImpl.registerClass("tab._ParameterImpl");n._StoryImpl.registerClass("tab._StoryImpl",n._SheetImpl);n._StoryPointImpl.registerClass("tab._StoryPointImpl");n.StoryPointInfoImplUtil.registerClass("tab.StoryPointInfoImplUtil");n._TableauException.registerClass("tab._TableauException");n._Utility.registerClass("tab._Utility");n.VizImpl.registerClass("tab.VizImpl",null,n.ICrossDomainMessageHandler);n._VizManagerImpl.registerClass("tab._VizManagerImpl");n._VizParameters.registerClass("tab._VizParameters");n._WorkbookImpl.registerClass("tab._WorkbookImpl");n._WorksheetImpl.registerClass("tab._WorksheetImpl",n._SheetImpl);n.JsonUtil.registerClass("tab.JsonUtil");tableauSoftware.CustomView.registerClass("tableauSoftware.CustomView");n.TableauEvent.registerClass("tab.TableauEvent");n.CustomViewEvent.registerClass("tab.CustomViewEvent",n.TableauEvent);n.EventContext.registerClass("tab.EventContext");n.JavaScriptApi$6.registerClass("tab.JavaScriptApi$6",n.EventContext);tableauSoftware.Sheet.registerClass("tableauSoftware.Sheet");tableauSoftware.Dashboard.registerClass("tableauSoftware.Dashboard",tableauSoftware.Sheet);tableauSoftware.DashboardObject.registerClass("tableauSoftware.DashboardObject");tableauSoftware.DataSource.registerClass("tableauSoftware.DataSource");tableauSoftware.Field.registerClass("tableauSoftware.Field");tableauSoftware.Filter.registerClass("tableauSoftware.Filter");tableauSoftware.CategoricalFilter.registerClass("tableauSoftware.CategoricalFilter",tableauSoftware.Filter);n.WorksheetEvent.registerClass("tab.WorksheetEvent",n.TableauEvent);n.FilterEvent.registerClass("tab.FilterEvent",n.WorksheetEvent);n.JavaScriptApi$5.registerClass("tab.JavaScriptApi$5",n.EventContext);tableauSoftware.HierarchicalFilter.registerClass("tableauSoftware.HierarchicalFilter",tableauSoftware.Filter);tableauSoftware.QuantitativeFilter.registerClass("tableauSoftware.QuantitativeFilter",tableauSoftware.Filter);tableauSoftware.RelativeDateFilter.registerClass("tableauSoftware.RelativeDateFilter",tableauSoftware.Filter);n._LoadFeedback.registerClass("tab._LoadFeedback");tableauSoftware.Mark.registerClass("tableauSoftware.Mark");n.MarksEvent.registerClass("tab.MarksEvent",n.WorksheetEvent);n.JavaScriptApi$8.registerClass("tab.JavaScriptApi$8",n.EventContext);tableauSoftware.Pair.registerClass("tableauSoftware.Pair");tableauSoftware.Parameter.registerClass("tableauSoftware.Parameter");n.ParameterEvent.registerClass("tab.ParameterEvent",n.TableauEvent);n.JavaScriptApi$7.registerClass("tab.JavaScriptApi$7",n.EventContext);tableauSoftware.SheetInfo.registerClass("tableauSoftware.SheetInfo");n.SheetSizeFactory.registerClass("tab.SheetSizeFactory");tableauSoftware.Story.registerClass("tableauSoftware.Story",tableauSoftware.Sheet);tableauSoftware.StoryPoint.registerClass("tableauSoftware.StoryPoint");tableauSoftware.StoryPointInfo.registerClass("tableauSoftware.StoryPointInfo");n.StoryPointSwitchEvent.registerClass("tab.StoryPointSwitchEvent",n.TableauEvent);n.TabSwitchEvent.registerClass("tab.TabSwitchEvent",n.TableauEvent);tableauSoftware.Viz.registerClass("tableauSoftware.Viz");tableauSoftware.VizManager.registerClass("tableauSoftware.VizManager");tableauSoftware.Workbook.registerClass("tableauSoftware.Workbook");tableauSoftware.Worksheet.registerClass("tableauSoftware.Worksheet",tableauSoftware.Sheet);n._jQueryShim.registerClass("tab._jQueryShim");n._ApiCommand.crossDomainEventNotificationId="xdomainSourceId";n._ApiObjectRegistry.$1=null;n.JavaScriptApi$3.$0={sum:"SUM",average:"AVG",min:"MIN",max:"MAX","std-dev":"STDEV","std-dev-p":"STDEVP","var":"VAR","var-p":"VARP",count:"COUNT","count-d":"COUNTD",median:"MEDIAN",attr:"ATTR",none:"NONE",year:"YEAR",qtr:"QTR",month:"MONTH",day:"DAY",hour:"HOUR",minute:"MINUTE",second:"SECOND",week:"WEEK",weekday:"WEEKDAY","month-year":"MONTHYEAR",mdy:"MDY",end:"END","trunc-year":"TRUNC_YEAR","trunc-qtr":"TRUNC_QTR","trunc-month":"TRUNC_MONTH","trunc-week":"TRUNC_WEEK","trunc-day":"TRUNC_DAY","trunc-hour":"TRUNC_HOUR","trunc-minute":"TRUNC_MINUTE","trunc-second":"TRUNC_SECOND",quart1:"QUART1",quart3:"QUART3",skewness:"SKEWNESS",kurtosis:"KURTOSIS","in-out":"INOUT","sum-xsqr":"SUM_XSQR",user:"USER"};n._SheetImpl.noZoneId=4294967295;n._VizManagerImpl.$0=[];n._WorksheetImpl.$26=new RegExp("\\[[^\\]]+\\]\\.","g");n._jQueryShim.$8={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"};n._jQueryShim.$9=String.prototype.trim;n._jQueryShim.$A=Object.prototype.toString;n._jQueryShim.$B=new RegExp("^[\\s\\xA0]+");n._jQueryShim.$C=new RegExp("[\\s\\xA0]+$");n._jQueryShim.$D=new RegExp("^[\\],:{}\\s]*$");n._jQueryShim.$E=new RegExp('\\\\(?:["\\\\\\/bfnrt]|u[0-9a-fA-F]{4})',"g");n._jQueryShim.$F=new RegExp('"[^"\\\\\\n\\r]*"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?',"g");n._jQueryShim.$10=new RegExp("(?:^|:|,)(?:\\s*\\[)+","g");tableauSoftware.Promise=n._PromiseImpl;n._Deferred=n._DeferredImpl;n._Collection=n._CollectionImpl;tableauSoftware.DashboardObjectType={BLANK:"blank",WORKSHEET:"worksheet",QUICK_FILTER:"quickFilter",PARAMETER_CONTROL:"parameterControl",PAGE_FILTER:"pageFilter",LEGEND:"legend",TITLE:"title",TEXT:"text",IMAGE:"image",WEB_PAGE:"webPage"};tableauSoftware.FilterType={CATEGORICAL:"categorical",QUANTITATIVE:"quantitative",HIERARCHICAL:"hierarchical",RELATIVEDATE:"relativedate"};tableauSoftware.ParameterDataType={FLOAT:"float",INTEGER:"integer",STRING:"string",BOOLEAN:"boolean",DATE:"date",DATETIME:"datetime"};tableauSoftware.ParameterAllowableValuesType={ALL:"all",LIST:"list",RANGE:"range"};tableauSoftware.PeriodType={YEAR:"year",QUARTER:"quarter",MONTH:"month",WEEK:"week",DAY:"day",HOUR:"hour",MINUTE:"minute",SECOND:"second"};tableauSoftware.DateRangeType={LAST:"last",LASTN:"lastn",NEXT:"next",NEXTN:"nextn",CURR:"curr",TODATE:"todate"};tableauSoftware.SheetSizeBehavior={AUTOMATIC:"automatic",EXACTLY:"exactly",RANGE:"range",ATLEAST:"atleast",ATMOST:"atmost"};tableauSoftware.SheetType={WORKSHEET:"worksheet",DASHBOARD:"dashboard",STORY:"story"};tableauSoftware.FilterUpdateType={ALL:"all",REPLACE:"replace",ADD:"add",REMOVE:"remove"};tableauSoftware.SelectionUpdateType={REPLACE:"replace",ADD:"add",REMOVE:"remove"};tableauSoftware.NullOption={NULL_VALUES:"nullValues",NON_NULL_VALUES:"nonNullValues",ALL_VALUES:"allValues"};tableauSoftware.ErrorCode={INTERNAL_ERROR:"internalError",SERVER_ERROR:"serverError",INVALID_AGGREGATION_FIELD_NAME:"invalidAggregationFieldName",INVALID_PARAMETER:"invalidParameter",INVALID_URL:"invalidUrl",STALE_DATA_REFERENCE:"staleDataReference",VIZ_ALREADY_IN_MANAGER:"vizAlreadyInManager",NO_URL_OR_PARENT_ELEMENT_NOT_FOUND:"noUrlOrParentElementNotFound",INVALID_FILTER_FIELDNAME:"invalidFilterFieldName",INVALID_FILTER_FIELDVALUE:"invalidFilterFieldValue",INVALID_FILTER_FIELDNAME_OR_VALUE:"invalidFilterFieldNameOrValue",FILTER_CANNOT_BE_PERFORMED:"filterCannotBePerformed",NOT_ACTIVE_SHEET:"notActiveSheet",INVALID_CUSTOM_VIEW_NAME:"invalidCustomViewName",MISSING_RANGEN_FOR_RELATIVE_DATE_FILTERS:"missingRangeNForRelativeDateFilters",MISSING_MAX_SIZE:"missingMaxSize",MISSING_MIN_SIZE:"missingMinSize",MISSING_MINMAX_SIZE:"missingMinMaxSize",INVALID_SIZE:"invalidSize",INVALID_SIZE_BEHAVIOR_ON_WORKSHEET:"invalidSizeBehaviorOnWorksheet",SHEET_NOT_IN_WORKBOOK:"sheetNotInWorkbook",INDEX_OUT_OF_RANGE:"indexOutOfRange",DOWNLOAD_WORKBOOK_NOT_ALLOWED:"downloadWorkbookNotAllowed",NULL_OR_EMPTY_PARAMETER:"nullOrEmptyParameter",BROWSER_NOT_CAPABLE:"browserNotCapable",UNSUPPORTED_EVENT_NAME:"unsupportedEventName",INVALID_DATE_PARAMETER:"invalidDateParameter",INVALID_SELECTION_FIELDNAME:"invalidSelectionFieldName",INVALID_SELECTION_VALUE:"invalidSelectionValue",INVALID_SELECTION_DATE:"invalidSelectionDate",NO_URL_FOR_HIDDEN_WORKSHEET:"noUrlForHiddenWorksheet"};tableauSoftware.TableauEventName={CUSTOM_VIEW_LOAD:"customviewload",CUSTOM_VIEW_REMOVE:"customviewremove",CUSTOM_VIEW_SAVE:"customviewsave",CUSTOM_VIEW_SET_DEFAULT:"customviewsetdefault",FILTER_CHANGE:"filterchange",FIRST_INTERACTIVE:"firstinteractive",MARKS_SELECTION:"marksselection",PARAMETER_VALUE_CHANGE:"parametervaluechange",STORY_POINT_SWITCH:"storypointswitch",TAB_SWITCH:"tabswitch"};tableauSoftware.FieldRoleType={DIMENSION:"dimension",MEASURE:"measure",UNKNOWN:"unknown"};tableauSoftware.FieldAggregationType={SUM:"SUM",AVG:"AVG",MIN:"MIN",MAX:"MAX",STDEV:"STDEV",STDEVP:"STDEVP",VAR:"VAR",VARP:"VARP",COUNT:"COUNT",COUNTD:"COUNTD",MEDIAN:"MEDIAN",ATTR:"ATTR",NONE:"NONE",YEAR:"YEAR",QTR:"QTR",MONTH:"MONTH",DAY:"DAY",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",WEEK:"WEEK",WEEKDAY:"WEEKDAY",MONTHYEAR:"MONTHYEAR",MDY:"MDY",END:"END",TRUNC_YEAR:"TRUNC_YEAR",TRUNC_QTR:"TRUNC_QTR",TRUNC_MONTH:"TRUNC_MONTH",TRUNC_WEEK:"TRUNC_WEEK",TRUNC_DAY:"TRUNC_DAY",TRUNC_HOUR:"TRUNC_HOUR",TRUNC_MINUTE:"TRUNC_MINUTE",TRUNC_SECOND:"TRUNC_SECOND",QUART1:"QUART1",QUART3:"QUART3",SKEWNESS:"SKEWNESS",KURTOSIS:"KURTOSIS",INOUT:"INOUT",SUM_XSQR:"SUM_XSQR",USER:"USER"};tableauSoftware.ToolbarPosition={TOP:"top",BOTTOM:"bottom"};o();n._ApiBootstrap.initialize()})()