/* Excel iOS-specific API library */
/* Version: 16.0.9303.3000 */

/* Office.js Version: 16.0.9124.1000 */ 
/*
	Copyright (c) Microsoft Corporation.  All rights reserved.
*/

/*
	Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
*/

/*
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license   Licensed under MIT license
*            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version   2.3.0
*/

var __extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},OsfMsAjaxFactory,OSF,OSFWebkit,OSFLog,Logger,OSFAriaLogger,OSFAppTelemetry,OfficeExt,OfficeExtension,OfficeFirstPartyAuth,OfficeCore,Excel;(function(n){var t=function(){function t(){}var n=!0;return t.prototype.isMsAjaxLoaded=function(){var t="function",i="undefined";return typeof Sys!==i&&typeof Type!==i&&Sys.StringBuilder&&typeof Sys.StringBuilder===t&&Type.registerNamespace&&typeof Type.registerNamespace===t&&Type.registerClass&&typeof Type.registerClass===t&&typeof Function._validateParams===t&&Sys.Serialization&&Sys.Serialization.JavaScriptSerializer&&typeof Sys.Serialization.JavaScriptSerializer.serialize===t?n:!1},t.prototype.loadMsAjaxFull=function(n){var t=(window.location.protocol.toLowerCase()==="https:"?"https:":"http:")+"//ajax.aspnetcdn.com/ajax/3.5/MicrosoftAjax.js";OSF.OUtil.loadScript(t,n)},Object.defineProperty(t.prototype,"msAjaxError",{get:function(){var n=this;return n._msAjaxError==null&&n.isMsAjaxLoaded()&&(n._msAjaxError=Error),n._msAjaxError},set:function(n){this._msAjaxError=n},enumerable:n,configurable:n}),Object.defineProperty(t.prototype,"msAjaxString",{get:function(){var n=this;return n._msAjaxString==null&&n.isMsAjaxLoaded()&&(n._msAjaxString=String),n._msAjaxString},set:function(n){this._msAjaxString=n},enumerable:n,configurable:n}),Object.defineProperty(t.prototype,"msAjaxDebug",{get:function(){var n=this;return n._msAjaxDebug==null&&n.isMsAjaxLoaded()&&(n._msAjaxDebug=Sys.Debug),n._msAjaxDebug},set:function(n){this._msAjaxDebug=n},enumerable:n,configurable:n}),t}();n.MicrosoftAjaxFactory=t})(OfficeExt||(OfficeExt={}));OsfMsAjaxFactory=new OfficeExt.MicrosoftAjaxFactory;OSF=OSF||{},function(n){var t=function(){function n(n){this._internalStorage=n}return n.prototype.getItem=function(n){try{return this._internalStorage&&this._internalStorage.getItem(n)}catch(t){return null}},n.prototype.setItem=function(n,t){try{this._internalStorage&&this._internalStorage.setItem(n,t)}catch(i){}},n.prototype.clear=function(){try{this._internalStorage&&this._internalStorage.clear()}catch(n){}},n.prototype.removeItem=function(n){try{this._internalStorage&&this._internalStorage.removeItem(n)}catch(t){}},n.prototype.getKeysWithPrefix=function(n){var r=[],u,t,i;try{for(u=this._internalStorage&&this._internalStorage.length||0,t=0;t<u;t++)i=this._internalStorage.key(t),i.indexOf(n)===0&&r.push(i)}catch(f){}return r},n}();n.SafeStorage=t}(OfficeExt||(OfficeExt={}));OSF.XdmFieldName={ConversationUrl:"ConversationUrl",AppId:"AppId"};OSF.WindowNameItemKeys={BaseFrameName:"baseFrameName",HostInfo:"hostInfo",XdmInfo:"xdmInfo",SerializerVersion:"serializerVersion",AppContext:"appContext"};OSF.OUtil=function(){function rt(){var n=l*Math.random();return n^=e^(new Date).getMilliseconds()<<Math.floor(Math.random()*21),n.toString(16)}function b(){if(!p){try{var t=window.sessionStorage}catch(i){t=n}p=new OfficeExt.SafeStorage(t)}return p}function ut(n){for(var r=[],i=[],f=n.length,t,u=0;u<f;u++)t=n[u],t.tabIndex?t.tabIndex>0?i.push(t):t.tabIndex===0&&r.push(t):r.push(t);return i=i.sort(function(n,t){var r=n.tabIndex-t.tabIndex;return r===0&&(r=i.indexOf(n)-i.indexOf(t)),r}),[].concat(i,r)}var o="focus",s="on",k="configurable",d="writable",h="enumerable",u="",c="undefined",t=!1,i=!0,l=2147483647,n=null,r=-1,a=r,g="&_xdm_Info=",nt="&_serializer_version=",tt="_xdm_",ft="_serializer_version=",v="#",it="&",f="class",y={},et=3e4,p=n,w=n,e=(new Date).getTime();return{set_entropy:function(n){var t,r,i;if(typeof n=="string")for(t=0;t<n.length;t+=4){for(r=0,i=0;i<4&&t+i<n.length;i++)r=(r<<8)+n.charCodeAt(t+i);e^=r}else e^=typeof n=="number"?n:l*Math.random();e&=l},extend:function(n,t){var i=function(){};i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.uber=t.prototype;t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},setNamespace:function(n,t){t&&n&&!t[n]&&(t[n]={})},unsetNamespace:function(n,t){t&&n&&t[n]&&delete t[n]},serializeSettings:function(n){var r={},i,t;for(i in n){t=n[i];try{t=JSON?JSON.stringify(t,function(n,t){return OSF.OUtil.isDate(this[n])?OSF.DDA.SettingsManager.DateJSONPrefix+this[n].getTime()+OSF.DDA.SettingsManager.DataJSONSuffix:t}):Sys.Serialization.JavaScriptSerializer.serialize(t);r[i]=t}catch(u){}}return r},deserializeSettings:function(n){var f={},u,t;n=n||{};for(u in n){t=n[u];try{t=JSON?JSON.parse(t,function(n,t){var i;return typeof t=="string"&&t&&t.length>6&&t.slice(0,5)===OSF.DDA.SettingsManager.DateJSONPrefix&&t.slice(r)===OSF.DDA.SettingsManager.DataJSONSuffix&&(i=new Date(parseInt(t.slice(5,r))),i)?i:t}):Sys.Serialization.JavaScriptSerializer.deserialize(t,i);f[u]=t}catch(e){}}return f},loadScript:function(r,u,f){var s,e,o,h,c;r&&u&&(s=window.document,e=y[r],e?e.loaded?u():e.pendingCallbacks.push(u):(o=s.createElement("script"),o.type="text/javascript",e={loaded:t,pendingCallbacks:[u],timer:n},y[r]=e,h=function(){var r,t,u;for(e.timer!=n&&(clearTimeout(e.timer),delete e.timer),e.loaded=i,r=e.pendingCallbacks.length,t=0;t<r;t++)u=e.pendingCallbacks.shift(),u()},c=function(){var i,t,u;for(delete y[r],e.timer!=n&&(clearTimeout(e.timer),delete e.timer),i=e.pendingCallbacks.length,t=0;t<i;t++)u=e.pendingCallbacks.shift(),u()},o.readyState?o.onreadystatechange=function(){(o.readyState=="loaded"||o.readyState=="complete")&&(o.onreadystatechange=n,h())}:o.onload=h,o.onerror=c,f=f||et,e.timer=setTimeout(c,f),o.setAttribute("crossOrigin","anonymous"),o.src=r,s.getElementsByTagName("head")[0].appendChild(o)))},loadCSS:function(n){if(n){var i=window.document,t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;i.getElementsByTagName("head")[0].appendChild(t)}},parseEnum:function(n,t){var i=t[n.trim()];if(typeof i==c){OsfMsAjaxFactory.msAjaxDebug.trace("invalid enumeration string:"+n);throw OsfMsAjaxFactory.msAjaxError.argument("str");}return i},delayExecutionAndCache:function(){var n={calc:arguments[0]};return function(){return n.calc&&(n.val=n.calc.apply(this,arguments),delete n.calc),n.val}},getUniqueId:function(){return a=a+1,a.toString()},formatString:function(){var n=arguments,t=n[0];return t.replace(/{(\d+)}/gm,function(t,i){var r=parseInt(i,10)+1;return n[r]===undefined?"{"+i+"}":n[r]})},generateConversationId:function(){return[rt(),rt(),(new Date).getTime().toString()].join("_")},getFrameName:function(n){return tt+n+this.generateConversationId()},addXdmInfoAsHash:function(n,i){return OSF.OUtil.addInfoAsHash(n,g,i,t)},addSerializerVersionAsHash:function(n,t){return OSF.OUtil.addInfoAsHash(n,nt,t,i)},addInfoAsHash:function(n,t,i,r){n=n.trim()||u;var f=n.split(v),s=f.shift(),e=f.join(v),o;return o=r?[t,encodeURIComponent(i),e].join(u):[e,t,i].join(u),[s,v,o].join(u)},parseHostInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.HostInfo)},parseXdmInfo:function(n){var t=OSF.OUtil.parseXdmInfoWithGivenFragment(n,window.location.hash);return t||(t=OSF.OUtil.parseXdmInfoFromWindowName(n,window.name)),t},parseXdmInfoFromWindowName:function(n,t){return OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.XdmInfo)},parseXdmInfoWithGivenFragment:function(n,i){return OSF.OUtil.parseInfoWithGivenFragment(g,tt,t,n,i)},parseSerializerVersion:function(n){var t=OSF.OUtil.parseSerializerVersionWithGivenFragment(n,window.location.hash);return isNaN(t)&&(t=OSF.OUtil.parseSerializerVersionFromWindowName(n,window.name)),t},parseSerializerVersionFromWindowName:function(n,t){return parseInt(OSF.OUtil.parseInfoFromWindowName(n,t,OSF.WindowNameItemKeys.SerializerVersion))},parseSerializerVersionWithGivenFragment:function(n,t){return parseInt(OSF.OUtil.parseInfoWithGivenFragment(nt,ft,i,n,t))},parseInfoFromWindowName:function(t,i,r){var o;try{var u=JSON.parse(i),f=u!=n?u[r]:n,e=b();return!t&&e&&u!=n&&(o=u[OSF.WindowNameItemKeys.BaseFrameName]+r,f?e.setItem(o,f):f=e.getItem(o)),f}catch(s){return n}},parseInfoWithGivenFragment:function(t,i,u,f,e){var l=e.split(t),o=l.length>1?l[l.length-1]:n,s,h,c,a;return u&&o!=n&&(o.indexOf(it)>=0&&(o=o.split(it)[0]),o=decodeURIComponent(o)),s=b(),!f&&s&&(h=window.name.indexOf(i),h>r&&(c=window.name.indexOf(";",h),c==r&&(c=window.name.length),a=window.name.substring(h,c),o?s.setItem(a,o):o=s.getItem(a))),o},getConversationId:function(){var i=window.location.search,t=n,r;return i&&(r=i.indexOf("&"),t=r>0?i.substring(1,r):i.substr(1),t&&t.charAt(t.length-1)==="="&&(t=t.substring(0,t.length-1),t&&(t=decodeURIComponent(t)))),t},getInfoItems:function(n){var t=n.split("$");return typeof t[1]==c&&(t=n.split("|")),typeof t[1]==c&&(t=n.split("%7C")),t},getXdmFieldValue:function(n,t){var r=u,f=OSF.OUtil.parseXdmInfo(t),i;if(f&&(i=OSF.OUtil.getInfoItems(f),i!=undefined&&i.length>=3))switch(n){case OSF.XdmFieldName.ConversationUrl:r=i[2];break;case OSF.XdmFieldName.AppId:r=i[1]}return r},validateParamObject:function(n,r){var u=Function._validateParams(arguments,[{name:"params",type:Object,mayBeNull:t},{name:"expectedProperties",type:Object,mayBeNull:t},{name:"callback",type:Function,mayBeNull:i}]),f;if(u)throw u;for(f in r)if(u=Function._validateParameter(n[f],r[f],f),u)throw u;},writeProfilerMark:function(n){window.msWriteProfilerMark&&(window.msWriteProfilerMark(n),OsfMsAjaxFactory.msAjaxDebug.trace(n))},outputDebug:function(n){typeof OsfMsAjaxFactory!==c&&OsfMsAjaxFactory.msAjaxDebug&&OsfMsAjaxFactory.msAjaxDebug.trace&&OsfMsAjaxFactory.msAjaxDebug.trace(n)},defineNondefaultProperty:function(n,t,r,u){var e,f;r=r||{};for(e in u)f=u[e],r[f]==undefined&&(r[f]=i);return Object.defineProperty(n,t,r),n},defineNondefaultProperties:function(n,t,i){t=t||{};for(var r in t)OSF.OUtil.defineNondefaultProperty(n,r,t[r],i);return n},defineEnumerableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[h])},defineEnumerableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[h])},defineMutableProperty:function(n,t,i){return OSF.OUtil.defineNondefaultProperty(n,t,i,[d,h,k])},defineMutableProperties:function(n,t){return OSF.OUtil.defineNondefaultProperties(n,t,[d,h,k])},finalizeProperties:function(n,r){var e,u;r=r||{};for(var o=Object.getOwnPropertyNames(n),s=o.length,f=0;f<s;f++)e=o[f],u=Object.getOwnPropertyDescriptor(n,e),u.get||u.set||(u.writable=r.writable||t),u.configurable=r.configurable||t,u.enumerable=r.enumerable||i,Object.defineProperty(n,e,u);return n},mapList:function(n,t){var i=[],r;if(n)for(r in n)i.push(t(n[r]));return i},listContainsKey:function(n,r){for(var u in n)if(r==u)return i;return t},listContainsValue:function(n,r){for(var u in n)if(r==n[u])return i;return t},augmentList:function(n,t){var r=n.push?function(t,i){n.push(i)}:function(t,i){n[t]=i};for(var i in t)r(i,t[i])},redefineList:function(n,t){var r,i;for(r in n)delete n[r];for(i in t)n[i]=t[i]},isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},isFunction:function(n){return Object.prototype.toString.apply(n)==="[object Function]"},isDate:function(n){return Object.prototype.toString.apply(n)==="[object Date]"},addEventListener:function(n,i,r){n.addEventListener?n.addEventListener(i,r,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&n.attachEvent?n.attachEvent(s+i,r):n[s+i]=r},removeEventListener:function(i,r,u){i.removeEventListener?i.removeEventListener(r,u,t):Sys.Browser.agent===Sys.Browser.InternetExplorer&&i.detachEvent?i.detachEvent(s+r,u):i[s+r]=n},getCookieValue:function(n){var t=RegExp(n+"[^;]+").exec(document.cookie);return t.toString().replace(/^[^=]+./,u)},xhrGet:function(n,t,r){var u;try{u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState==4&&(u.status==200?t(u.responseText):r(u.status))};u.open("GET",n,i);u.send()}catch(f){r(f)}},xhrGetFull:function(n,t,r,u){var f,e=t;try{f=new XMLHttpRequest;f.onreadystatechange=function(){f.readyState==4&&(f.status==200?r(f,e):u(f.status))};f.open("GET",n,i);f.send()}catch(o){u(o)}},encodeBase64:function(n){var c;if(!n)return n;var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=[],i=[],s=0,l,o,h,r,f,e,t,y=n.length;do for(l=n.charCodeAt(s++),o=n.charCodeAt(s++),h=n.charCodeAt(s++),t=0,r=l&255,f=l>>8,e=o&255,i[t++]=r>>2,i[t++]=(r&3)<<4|f>>4,i[t++]=(f&15)<<2|e>>6,i[t++]=e&63,isNaN(o)||(r=o>>8,f=h&255,e=h>>8,i[t++]=r>>2,i[t++]=(r&3)<<4|f>>4,i[t++]=(f&15)<<2|e>>6,i[t++]=e&63),isNaN(o)?i[t-1]=64:isNaN(h)&&(i[t-2]=64,i[t-1]=64),c=0;c<t;c++)a.push(v.charAt(i[c]));while(s<y);return a.join(u)},getSessionStorage:function(){return b()},getLocalStorage:function(){if(!w){try{var t=window.localStorage}catch(i){t=n}w=new OfficeExt.SafeStorage(t)}return w},convertIntToCssHexColor:function(n){return"#"+(Number(n)+16777216).toString(16).slice(-6)},attachClickHandler:function(n,t){n.onclick=function(){t()};n.ontouchend=function(n){t();n.preventDefault()}},getQueryStringParamValue:function(n,i){var f=Function._validateParams(arguments,[{name:"queryString",type:String,mayBeNull:t},{name:"paramName",type:String,mayBeNull:t}]),r;return f?(OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: Parameters cannot be null."),u):(r=new RegExp("[\\?&]"+i+"=([^&#]*)","i"),!r.test(n))?(OsfMsAjaxFactory.msAjaxDebug.trace("OSF_Outil_getQueryStringParamValue: The parameter is not found."),u):r.exec(n)[1]},isiOS:function(){return window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?i:t},isChrome:function(){return window.navigator.userAgent.indexOf("Chrome")>0&&!OSF.OUtil.isEdge()},isEdge:function(){return window.navigator.userAgent.indexOf("Edge")>0},isIE:function(){return window.navigator.userAgent.indexOf("Trident")>0},isFirefox:function(){return window.navigator.userAgent.indexOf("Firefox")>0},shallowCopy:function(t){var u,i,f,r;if(t==n)return n;else if(t instanceof Object)if(Array.isArray(t)){for(u=[],i=0;i<t.length;i++)u.push(t[i]);return u}else{f=t.constructor();for(r in t)t.hasOwnProperty(r)&&(f[r]=t[r]);return f}else return t},createObject:function(t){var r=n,u,i;if(t)for(r={},u=t.length,i=0;i<u;i++)r[t[i].name]=t[i].value;return r},addClass:function(n,t){if(!OSF.OUtil.hasClass(n,t)){var i=n.getAttribute(f);i?n.setAttribute(f,i+" "+t):n.setAttribute(f,t)}},removeClass:function(n,t){if(OSF.OUtil.hasClass(n,t)){var i=n.getAttribute(f),r=new RegExp("(\\s|^)"+t+"(\\s|$)");i=i.replace(r,u);n.setAttribute(f,i)}},hasClass:function(n,t){var i=n.getAttribute(f);return i&&i.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},focusToFirstTabbable:function(u,f){var e,h=t,s,c=function(){h=i},l=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};if(u=ut(u),e=f?u.length-1:0,u.length===0)return n;while(!h&&e>=0&&e<u.length)s=u[e],window.focus(),s.addEventListener(o,c),s.focus(),s.removeEventListener(o,c),e=l(u.length,e,f),h||s!==document.activeElement||(h=i);return h?s:n},focusToNextTabbable:function(u,f,e){var l,s,c=t,h,a=function(){c=i},y=function(n,t){for(var i=0;i<n.length;i++)if(n[i]===t)return i;return r},v=function(n,t,i){if(t<0||t>n)return r;else if(t===0&&i)return r;else if(t===n-1&&!i)return r;return i?t-1:t+1};if(u=ut(u),l=y(u,f),s=v(u.length,l,e),s<0)return n;while(!c&&s>=0&&s<u.length)h=u[s],h.addEventListener(o,a),h.focus(),h.removeEventListener(o,a),s=v(u.length,s,e),c||h!==document.activeElement||(c=i);return c?h:n}}}();OSF.OUtil.Guid=function(){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return{generateNewGuid:function(){for(var i="",r=(new Date).getTime(),t=0;t<32&&r>0;t++)(t==8||t==12||t==16||t==20)&&(i+="-"),i+=n[r%16],r=Math.floor(r/16);for(;t<32;t++)(t==8||t==12||t==16||t==20)&&(i+="-"),i+=n[Math.floor(Math.random()*16)];return i}}}();window.OSF=OSF;OSF.OUtil.setNamespace("OSF",window);OSF.MessageIDs={FetchBundleUrl:0,LoadReactBundle:1,LoadBundleSuccess:2,LoadBundleError:3};OSF.AppName={Unsupported:0,Excel:1,Word:2,PowerPoint:4,Outlook:8,ExcelWebApp:16,WordWebApp:32,OutlookWebApp:64,Project:128,AccessWebApp:256,PowerpointWebApp:512,ExcelIOS:1024,Sway:2048,WordIOS:4096,PowerPointIOS:8192,Access:16384,Lync:32768,OutlookIOS:65536,OneNoteWebApp:131072,OneNote:262144,ExcelWinRT:524288,WordWinRT:1048576,PowerpointWinRT:2097152,OutlookAndroid:4194304,OneNoteWinRT:8388608,ExcelAndroid:8388609,VisioWebApp:8388610,OneNoteIOS:8388611,WordAndroid:8388613,PowerpointAndroid:8388614};OSF.InternalPerfMarker={DataCoercionBegin:"Agave.HostCall.CoerceDataStart",DataCoercionEnd:"Agave.HostCall.CoerceDataEnd"};OSF.HostCallPerfMarker={IssueCall:"Agave.HostCall.IssueCall",ReceiveResponse:"Agave.HostCall.ReceiveResponse",RuntimeExceptionRaised:"Agave.HostCall.RuntimeExecptionRaised"};OSF.AgaveHostAction={Select:0,UnSelect:1,CancelDialog:2,InsertAgave:3,CtrlF6In:4,CtrlF6Exit:5,CtrlF6ExitShift:6,SelectWithError:7,NotifyHostError:8,RefreshAddinCommands:9,PageIsReady:10,TabIn:11,TabInShift:12,TabExit:13,TabExitShift:14,EscExit:15,F2Exit:16,ExitNoFocusable:17,ExitNoFocusableShift:18,MouseEnter:19,MouseLeave:20};OSF.SharedConstants={NotificationConversationIdSuffix:"_ntf"};OSF.DialogMessageType={DialogMessageReceived:0,DialogParentMessageReceived:1,DialogClosed:12006};OSF.OfficeAppContext=function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it){var rt=this;rt._id=n;rt._appName=t;rt._appVersion=i;rt._appUILocale=r;rt._dataLocale=u;rt._docUrl=f;rt._clientMode=e;rt._settings=o;rt._reason=s;rt._osfControlType=h;rt._eToken=c;rt._correlationId=l;rt._appInstanceId=a;rt._touchEnabled=v;rt._commerceAllowed=y;rt._appMinorVersion=p;rt._requirementMatrix=w;rt._hostCustomMessage=b;rt._hostFullVersion=k;rt._isDialog=!1;rt._clientWindowHeight=d;rt._clientWindowWidth=g;rt._addinName=nt;rt._appDomains=tt;rt._dialogRequirementMatrix=it;rt.get_id=function(){return this._id};rt.get_appName=function(){return this._appName};rt.get_appVersion=function(){return this._appVersion};rt.get_appUILocale=function(){return this._appUILocale};rt.get_dataLocale=function(){return this._dataLocale};rt.get_docUrl=function(){return this._docUrl};rt.get_clientMode=function(){return this._clientMode};rt.get_bindings=function(){return this._bindings};rt.get_settings=function(){return this._settings};rt.get_reason=function(){return this._reason};rt.get_osfControlType=function(){return this._osfControlType};rt.get_eToken=function(){return this._eToken};rt.get_correlationId=function(){return this._correlationId};rt.get_appInstanceId=function(){return this._appInstanceId};rt.get_touchEnabled=function(){return this._touchEnabled};rt.get_commerceAllowed=function(){return this._commerceAllowed};rt.get_appMinorVersion=function(){return this._appMinorVersion};rt.get_requirementMatrix=function(){return this._requirementMatrix};rt.get_dialogRequirementMatrix=function(){return this._dialogRequirementMatrix};rt.get_hostCustomMessage=function(){return this._hostCustomMessage};rt.get_hostFullVersion=function(){return this._hostFullVersion};rt.get_isDialog=function(){return this._isDialog};rt.get_clientWindowHeight=function(){return this._clientWindowHeight};rt.get_clientWindowWidth=function(){return this._clientWindowWidth};rt.get_addinName=function(){return this._addinName};rt.get_appDomains=function(){return this._appDomains}};OSF.OsfControlType={DocumentLevel:0,ContainerLevel:1};OSF.ClientMode={ReadOnly:0,ReadWrite:1};OSF.OUtil.setNamespace("Microsoft",window);OSF.OUtil.setNamespace("Office",Microsoft);OSF.OUtil.setNamespace("Client",Microsoft.Office);OSF.OUtil.setNamespace("WebExtension",Microsoft.Office);Microsoft.Office.WebExtension.InitializationReason={Inserted:"inserted",DocumentOpened:"documentOpened"};Microsoft.Office.WebExtension.ValueFormat={Unformatted:"unformatted",Formatted:"formatted"};Microsoft.Office.WebExtension.FilterType={All:"all"};Microsoft.Office.WebExtension.PlatformType={PC:"PC",OfficeOnline:"OfficeOnline",Mac:"Mac",iOS:"iOS",Android:"Android",Universal:"Universal"};Microsoft.Office.WebExtension.HostType={Word:"Word",Excel:"Excel",PowerPoint:"PowerPoint",Outlook:"Outlook",OneNote:"OneNote",Project:"Project",Access:"Access"};Microsoft.Office.WebExtension.Parameters={BindingType:"bindingType",CoercionType:"coercionType",ValueFormat:"valueFormat",FilterType:"filterType",Columns:"columns",SampleData:"sampleData",GoToType:"goToType",SelectionMode:"selectionMode",Id:"id",PromptText:"promptText",ItemName:"itemName",FailOnCollision:"failOnCollision",StartRow:"startRow",StartColumn:"startColumn",RowCount:"rowCount",ColumnCount:"columnCount",Callback:"callback",AsyncContext:"asyncContext",Data:"data",Rows:"rows",OverwriteIfStale:"overwriteIfStale",FileType:"fileType",EventType:"eventType",Handler:"handler",SliceSize:"sliceSize",SliceIndex:"sliceIndex",ActiveView:"activeView",Status:"status",PlatformType:"platformType",HostType:"hostType",ForceConsent:"forceConsent",ForceAddAccount:"forceAddAccount",AuthChallenge:"authChallenge",Reserved:"reserved",Xml:"xml",Namespace:"namespace",Prefix:"prefix",XPath:"xPath",Text:"text",ImageLeft:"imageLeft",ImageTop:"imageTop",ImageWidth:"imageWidth",ImageHeight:"imageHeight",TaskId:"taskId",FieldId:"fieldId",FieldValue:"fieldValue",ServerUrl:"serverUrl",ListName:"listName",ResourceId:"resourceId",ViewType:"viewType",ViewName:"viewName",GetRawValue:"getRawValue",CellFormat:"cellFormat",TableOptions:"tableOptions",TaskIndex:"taskIndex",ResourceIndex:"resourceIndex",CustomFieldId:"customFieldId",Url:"url",MessageHandler:"messageHandler",Width:"width",Height:"height",RequireHTTPs:"requireHTTPS",MessageToParent:"messageToParent",DisplayInIframe:"displayInIframe",MessageContent:"messageContent",HideTitle:"hideTitle",UseDeviceIndependentPixels:"useDeviceIndependentPixels",AppCommandInvocationCompletedData:"appCommandInvocationCompletedData",Base64:"base64",FormId:"formId"};OSF.OUtil.setNamespace("DDA",OSF);OSF.DDA.DocumentMode={ReadOnly:1,ReadWrite:0};OSF.DDA.PropertyDescriptors={AsyncResultStatus:"AsyncResultStatus"};OSF.DDA.EventDescriptors={};OSF.DDA.ListDescriptors={};OSF.DDA.UI={};OSF.DDA.getXdmEventName=function(n,t){return t==Microsoft.Office.WebExtension.EventType.BindingSelectionChanged||t==Microsoft.Office.WebExtension.EventType.BindingDataChanged||t==Microsoft.Office.WebExtension.EventType.DataNodeDeleted||t==Microsoft.Office.WebExtension.EventType.DataNodeInserted||t==Microsoft.Office.WebExtension.EventType.DataNodeReplaced?n+"_"+t:t};OSF.DDA.MethodDispId={dispidMethodMin:64,dispidGetSelectedDataMethod:64,dispidSetSelectedDataMethod:65,dispidAddBindingFromSelectionMethod:66,dispidAddBindingFromPromptMethod:67,dispidGetBindingMethod:68,dispidReleaseBindingMethod:69,dispidGetBindingDataMethod:70,dispidSetBindingDataMethod:71,dispidAddRowsMethod:72,dispidClearAllRowsMethod:73,dispidGetAllBindingsMethod:74,dispidLoadSettingsMethod:75,dispidSaveSettingsMethod:76,dispidGetDocumentCopyMethod:77,dispidAddBindingFromNamedItemMethod:78,dispidAddColumnsMethod:79,dispidGetDocumentCopyChunkMethod:80,dispidReleaseDocumentCopyMethod:81,dispidNavigateToMethod:82,dispidGetActiveViewMethod:83,dispidGetDocumentThemeMethod:84,dispidGetOfficeThemeMethod:85,dispidGetFilePropertiesMethod:86,dispidClearFormatsMethod:87,dispidSetTableOptionsMethod:88,dispidSetFormatsMethod:89,dispidExecuteRichApiRequestMethod:93,dispidAppCommandInvocationCompletedMethod:94,dispidCloseContainerMethod:97,dispidGetAccessTokenMethod:98,dispidOpenBrowserWindow:102,dispidCreateDocumentMethod:105,dispidInsertFormMethod:106,dispidDisplayRibbonCalloutAsyncMethod:109,dispidGetSelectedTaskMethod:110,dispidGetSelectedResourceMethod:111,dispidGetTaskMethod:112,dispidGetResourceFieldMethod:113,dispidGetWSSUrlMethod:114,dispidGetTaskFieldMethod:115,dispidGetProjectFieldMethod:116,dispidGetSelectedViewMethod:117,dispidGetTaskByIndexMethod:118,dispidGetResourceByIndexMethod:119,dispidSetTaskFieldMethod:120,dispidSetResourceFieldMethod:121,dispidGetMaxTaskIndexMethod:122,dispidGetMaxResourceIndexMethod:123,dispidCreateTaskMethod:124,dispidAddDataPartMethod:128,dispidGetDataPartByIdMethod:129,dispidGetDataPartsByNamespaceMethod:130,dispidGetDataPartXmlMethod:131,dispidGetDataPartNodesMethod:132,dispidDeleteDataPartMethod:133,dispidGetDataNodeValueMethod:134,dispidGetDataNodeXmlMethod:135,dispidGetDataNodesMethod:136,dispidSetDataNodeValueMethod:137,dispidSetDataNodeXmlMethod:138,dispidAddDataNamespaceMethod:139,dispidGetDataUriByPrefixMethod:140,dispidGetDataPrefixByUriMethod:141,dispidGetDataNodeTextMethod:142,dispidSetDataNodeTextMethod:143,dispidMessageParentMethod:144,dispidSendMessageMethod:145,dispidMethodMax:145};OSF.DDA.EventDispId={dispidEventMin:0,dispidInitializeEvent:0,dispidSettingsChangedEvent:1,dispidDocumentSelectionChangedEvent:2,dispidBindingSelectionChangedEvent:3,dispidBindingDataChangedEvent:4,dispidDocumentOpenEvent:5,dispidDocumentCloseEvent:6,dispidActiveViewChangedEvent:7,dispidDocumentThemeChangedEvent:8,dispidOfficeThemeChangedEvent:9,dispidDialogMessageReceivedEvent:10,dispidDialogNotificationShownInAddinEvent:11,dispidDialogParentMessageReceivedEvent:12,dispidObjectDeletedEvent:13,dispidObjectSelectionChangedEvent:14,dispidObjectDataChangedEvent:15,dispidContentControlAddedEvent:16,dispidActivationStatusChangedEvent:32,dispidRichApiMessageEvent:33,dispidAppCommandInvokedEvent:39,dispidOlkItemSelectedChangedEvent:46,dispidOlkRecipientsChangedEvent:47,dispidOlkAppointmentTimeChangedEvent:48,dispidOlkRecurrenceChangedEvent:49,dispidTaskSelectionChangedEvent:56,dispidResourceSelectionChangedEvent:57,dispidViewSelectionChangedEvent:58,dispidDataNodeAddedEvent:60,dispidDataNodeReplacedEvent:61,dispidDataNodeDeletedEvent:62,dispidEventMax:63};OSF.DDA.ErrorCodeManager=function(){var n={};return{getErrorArgs:function(t){var i=n[t];return i?(i.name||(i.name=n[this.errorCodes.ooeInternalError].name),i.message||(i.message=n[this.errorCodes.ooeInternalError].message)):i=n[this.errorCodes.ooeInternalError],i},addErrorMessage:function(t,i){n[t]=i},errorCodes:{ooeSuccess:0,ooeChunkResult:1,ooeCoercionTypeNotSupported:1e3,ooeGetSelectionNotMatchDataType:1001,ooeCoercionTypeNotMatchBinding:1002,ooeInvalidGetRowColumnCounts:1003,ooeSelectionNotSupportCoercionType:1004,ooeInvalidGetStartRowColumn:1005,ooeNonUniformPartialGetNotSupported:1006,ooeGetDataIsTooLarge:1008,ooeFileTypeNotSupported:1009,ooeGetDataParametersConflict:1010,ooeInvalidGetColumns:1011,ooeInvalidGetRows:1012,ooeInvalidReadForBlankRow:1013,ooeUnsupportedDataObject:2e3,ooeCannotWriteToSelection:2001,ooeDataNotMatchSelection:2002,ooeOverwriteWorksheetData:2003,ooeDataNotMatchBindingSize:2004,ooeInvalidSetStartRowColumn:2005,ooeInvalidDataFormat:2006,ooeDataNotMatchCoercionType:2007,ooeDataNotMatchBindingType:2008,ooeSetDataIsTooLarge:2009,ooeNonUniformPartialSetNotSupported:2010,ooeInvalidSetColumns:2011,ooeInvalidSetRows:2012,ooeSetDataParametersConflict:2013,ooeCellDataAmountBeyondLimits:2014,ooeSelectionCannotBound:3e3,ooeBindingNotExist:3002,ooeBindingToMultipleSelection:3003,ooeInvalidSelectionForBindingType:3004,ooeOperationNotSupportedOnThisBindingType:3005,ooeNamedItemNotFound:3006,ooeMultipleNamedItemFound:3007,ooeInvalidNamedItemForBindingType:3008,ooeUnknownBindingType:3009,ooeOperationNotSupportedOnMatrixData:3010,ooeInvalidColumnsForBinding:3011,ooeSettingNameNotExist:4e3,ooeSettingsCannotSave:4001,ooeSettingsAreStale:4002,ooeOperationNotSupported:5e3,ooeInternalError:5001,ooeDocumentReadOnly:5002,ooeEventHandlerNotExist:5003,ooeInvalidApiCallInContext:5004,ooeShuttingDown:5005,ooeUnsupportedEnumeration:5007,ooeIndexOutOfRange:5008,ooeBrowserAPINotSupported:5009,ooeInvalidParam:5010,ooeRequestTimeout:5011,ooeInvalidOrTimedOutSession:5012,ooeInvalidApiArguments:5013,ooeOperationCancelled:5014,ooeTooManyIncompleteRequests:5100,ooeRequestTokenUnavailable:5101,ooeActivityLimitReached:5102,ooeCustomXmlNodeNotFound:6e3,ooeCustomXmlError:6100,ooeCustomXmlExceedQuota:6101,ooeCustomXmlOutOfDate:6102,ooeNoCapability:7e3,ooeCannotNavTo:7001,ooeSpecifiedIdNotExist:7002,ooeNavOutOfBound:7004,ooeElementMissing:8e3,ooeProtectedError:8001,ooeInvalidCellsValue:8010,ooeInvalidTableOptionValue:8011,ooeInvalidFormatValue:8012,ooeRowIndexOutOfRange:8020,ooeColIndexOutOfRange:8021,ooeFormatValueOutOfRange:8022,ooeCellFormatAmountBeyondLimits:8023,ooeMemoryFileLimit:11e3,ooeNetworkProblemRetrieveFile:11001,ooeInvalidSliceSize:11002,ooeInvalidCallback:11101,ooeInvalidWidth:12e3,ooeInvalidHeight:12001,ooeNavigationError:12002,ooeInvalidScheme:12003,ooeAppDomains:12004,ooeRequireHTTPS:12005,ooeWebDialogClosed:12006,ooeDialogAlreadyOpened:12007,ooeEndUserAllow:12008,ooeEndUserIgnore:12009,ooeNotUILessDialog:12010,ooeCrossZone:12011,ooeNotSSOAgave:13e3,ooeSSOUserNotSignedIn:13001,ooeSSOUserAborted:13002,ooeSSOUnsupportedUserIdentity:13003,ooeSSOInvalidResourceUrl:13004,ooeSSOInvalidGrant:13005,ooeSSOClientError:13006,ooeSSOServerError:13007,ooeAddinIsAlreadyRequestingToken:13008,ooeSSOUserConsentNotSupportedByCurrentAddinCategory:13009,ooeSSOConnectionLost:13010},initializeErrorMessages:function(t){n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotSupported]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetSelectionNotMatchDataType]={name:t.L_DataReadError,message:t.L_GetSelectionNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding]={name:t.L_InvalidCoercion,message:t.L_CoercionTypeNotMatchBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRowColumnCounts]={name:t.L_DataReadError,message:t.L_InvalidGetRowColumnCounts};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionNotSupportCoercionType]={name:t.L_DataReadError,message:t.L_SelectionNotSupportCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetStartRowColumn]={name:t.L_DataReadError,message:t.L_InvalidGetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialGetNotSupported]={name:t.L_DataReadError,message:t.L_NonUniformPartialGetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataIsTooLarge]={name:t.L_DataReadError,message:t.L_GetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFileTypeNotSupported]={name:t.L_DataReadError,message:t.L_FileTypeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeGetDataParametersConflict]={name:t.L_DataReadError,message:t.L_GetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetColumns]={name:t.L_DataReadError,message:t.L_InvalidGetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidGetRows]={name:t.L_DataReadError,message:t.L_InvalidGetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidReadForBlankRow]={name:t.L_DataReadError,message:t.L_InvalidReadForBlankRow};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject]={name:t.L_DataWriteError,message:t.L_UnsupportedDataObject};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotWriteToSelection]={name:t.L_DataWriteError,message:t.L_CannotWriteToSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchSelection]={name:t.L_DataWriteError,message:t.L_DataNotMatchSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOverwriteWorksheetData]={name:t.L_DataWriteError,message:t.L_OverwriteWorksheetData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingSize]={name:t.L_DataWriteError,message:t.L_DataNotMatchBindingSize};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetStartRowColumn]={name:t.L_DataWriteError,message:t.L_InvalidSetStartRowColumn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidDataFormat]={name:t.L_InvalidFormat,message:t.L_InvalidDataFormat};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchCoercionType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchCoercionType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDataNotMatchBindingType]={name:t.L_InvalidDataObject,message:t.L_DataNotMatchBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataIsTooLarge]={name:t.L_DataWriteError,message:t.L_SetDataIsTooLarge};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNonUniformPartialSetNotSupported]={name:t.L_DataWriteError,message:t.L_NonUniformPartialSetNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetColumns]={name:t.L_DataWriteError,message:t.L_InvalidSetColumns};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSetRows]={name:t.L_DataWriteError,message:t.L_InvalidSetRows};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSetDataParametersConflict]={name:t.L_DataWriteError,message:t.L_SetDataParametersConflict};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSelectionCannotBound]={name:t.L_BindingCreationError,message:t.L_SelectionCannotBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingNotExist]={name:t.L_InvalidBindingError,message:t.L_BindingNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBindingToMultipleSelection]={name:t.L_BindingCreationError,message:t.L_BindingToMultipleSelection};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSelectionForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidSelectionForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnThisBindingType]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnThisBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNamedItemNotFound]={name:t.L_BindingCreationError,message:t.L_NamedItemNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMultipleNamedItemFound]={name:t.L_BindingCreationError,message:t.L_MultipleNamedItemFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidNamedItemForBindingType]={name:t.L_BindingCreationError,message:t.L_InvalidNamedItemForBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnknownBindingType]={name:t.L_InvalidBinding,message:t.L_UnknownBindingType};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupportedOnMatrixData]={name:t.L_InvalidBindingOperation,message:t.L_OperationNotSupportedOnMatrixData};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidColumnsForBinding]={name:t.L_InvalidBinding,message:t.L_InvalidColumnsForBinding};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingNameNotExist]={name:t.L_ReadSettingsError,message:t.L_SettingNameNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsCannotSave]={name:t.L_SaveSettingsError,message:t.L_SettingsCannotSave};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSettingsAreStale]={name:t.L_SettingsStaleError,message:t.L_SettingsAreStale};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationNotSupported]={name:t.L_HostError,message:t.L_OperationNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError]={name:t.L_InternalError,message:t.L_InternalErrorDescription};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDocumentReadOnly]={name:t.L_PermissionDenied,message:t.L_DocumentReadOnly};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist]={name:t.L_EventRegistrationError,message:t.L_EventHandlerNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext]={name:t.L_InvalidAPICall,message:t.L_InvalidApiCallInContext};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeShuttingDown]={name:t.L_ShuttingDown,message:t.L_ShuttingDown};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration]={name:t.L_UnsupportedEnumeration,message:t.L_UnsupportedEnumerationMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeIndexOutOfRange]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeBrowserAPINotSupported]={name:t.L_APINotSupported,message:t.L_BrowserAPINotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTimeout]={name:t.L_APICallFailed,message:t.L_RequestTimeout};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidOrTimedOutSession]={name:t.L_InvalidOrTimedOutSession,message:t.L_InvalidOrTimedOutSessionMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeTooManyIncompleteRequests]={name:t.L_APICallFailed,message:t.L_TooManyIncompleteRequests};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequestTokenUnavailable]={name:t.L_APICallFailed,message:t.L_RequestTokenUnavailable};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeActivityLimitReached]={name:t.L_APICallFailed,message:t.L_ActivityLimitReached};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiArguments]={name:t.L_APICallFailed,message:t.L_InvalidApiArgumentsMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlNodeNotFound]={name:t.L_InvalidNode,message:t.L_CustomXmlNodeNotFound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlError]={name:t.L_CustomXmlError,message:t.L_CustomXmlError};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlExceedQuota]={name:t.L_CustomXmlExceedQuotaName,message:t.L_CustomXmlExceedQuotaMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCustomXmlOutOfDate]={name:t.L_CustomXmlOutOfDateName,message:t.L_CustomXmlOutOfDateMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCannotNavTo]={name:t.L_CannotNavigateTo,message:t.L_CannotNavigateTo};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSpecifiedIdNotExist]={name:t.L_SpecifiedIdNotExist,message:t.L_SpecifiedIdNotExist};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavOutOfBound]={name:t.L_NavOutOfBound,message:t.L_NavOutOfBound};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellDataAmountBeyondLimits]={name:t.L_DataWriteReminder,message:t.L_CellDataAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeElementMissing]={name:t.L_MissingParameter,message:t.L_ElementMissing};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeProtectedError]={name:t.L_PermissionDenied,message:t.L_NoCapability};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidCellsValue]={name:t.L_InvalidValue,message:t.L_InvalidCellsValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidTableOptionValue]={name:t.L_InvalidValue,message:t.L_InvalidTableOptionValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidFormatValue]={name:t.L_InvalidValue,message:t.L_InvalidFormatValue};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRowIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_RowIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeColIndexOutOfRange]={name:t.L_OutOfRange,message:t.L_ColIndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeFormatValueOutOfRange]={name:t.L_OutOfRange,message:t.L_FormatValueOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCellFormatAmountBeyondLimits]={name:t.L_FormattingReminder,message:t.L_CellFormatAmountBeyondLimits};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeMemoryFileLimit]={name:t.L_MemoryLimit,message:t.L_CloseFileBeforeRetrieve};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNetworkProblemRetrieveFile]={name:t.L_NetworkProblem,message:t.L_NetworkProblemRetrieveFile};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidSliceSize]={name:t.L_InvalidValue,message:t.L_SliceSizeNotSupported};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened]={name:t.L_DisplayDialogError,message:t.L_DialogAlreadyOpened};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidWidth]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidHeight]={name:t.L_IndexOutOfRange,message:t.L_IndexOutOfRange};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNavigationError]={name:t.L_DisplayDialogError,message:t.L_NetworkProblem};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidScheme]={name:t.L_DialogNavigateError,message:t.L_DialogInvalidScheme};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAppDomains]={name:t.L_DisplayDialogError,message:t.L_DialogAddressNotTrusted};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeRequireHTTPS]={name:t.L_DisplayDialogError,message:t.L_DialogRequireHTTPS};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeEndUserIgnore]={name:t.L_DisplayDialogError,message:t.L_UserClickIgnore};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeCrossZone]={name:t.L_DisplayDialogError,message:t.L_NewWindowCrossZoneErrorString};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeNotSSOAgave]={name:t.L_APINotSupported,message:t.L_InvalidSSOAddinMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserNotSignedIn]={name:t.L_UserNotSignedIn,message:t.L_UserNotSignedIn};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserAborted]={name:t.L_UserAborted,message:t.L_UserAbortedMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUnsupportedUserIdentity]={name:t.L_UnsupportedUserIdentity,message:t.L_UnsupportedUserIdentityMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidResourceUrl]={name:t.L_InvalidResourceUrl,message:t.L_InvalidResourceUrlMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOInvalidGrant]={name:t.L_InvalidGrant,message:t.L_InvalidGrantMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOClientError]={name:t.L_SSOClientError,message:t.L_SSOClientErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOServerError]={name:t.L_SSOServerError,message:t.L_SSOServerErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeAddinIsAlreadyRequestingToken]={name:t.L_AddinIsAlreadyRequestingToken,message:t.L_AddinIsAlreadyRequestingTokenMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOUserConsentNotSupportedByCurrentAddinCategory]={name:t.L_SSOUserConsentNotSupportedByCurrentAddinCategory,message:t.L_SSOUserConsentNotSupportedByCurrentAddinCategoryMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeSSOConnectionLost]={name:t.L_SSOConnectionLostError,message:t.L_SSOConnectionLostErrorMessage};n[OSF.DDA.ErrorCodeManager.errorCodes.ooeOperationCancelled]={name:t.L_OperationCancelledError,message:t.L_OperationCancelledErrorMessage}}}}(),function(n){var t;(function(n){var t=1.1,ut=function(){function n(){}return n}(),r,i,h,u,c,l,f,a,e,v,y,p,w,b,o,k,d,g,s,nt,tt,it,rt;n.RequirementVersion=ut;r=function(){function n(n){var t=this;t.isSetSupported=function(n,t){var f,u,e,i,r;if(n==undefined)return!1;if(t==undefined&&(t=0),f=this._setMap,u=f._sets,u.hasOwnProperty(n.toLowerCase())){e=u[n.toLowerCase()];try{if((i=this._getVersion(e),t=t+"",r=this._getVersion(t),i.major>0&&i.major>r.major)||i.minor>0&&i.minor>0&&i.major==r.major&&i.minor>=r.minor)return!0}catch(o){return!1}}return!1};t._getVersion=function(n){var u="version format incorrect",t=n.split("."),i=0,r=0;if(t.length<2&&isNaN(Number(n)))throw u;else if(i=Number(t[0]),t.length>=2&&(r=Number(t[1])),isNaN(i)||isNaN(r))throw u;return{minor:r,major:i}};t._setMap=n;t.isSetSupported=t.isSetSupported.bind(t)}return n}();n.RequirementMatrix=r;i=function(){function n(n){this._addSetMap=function(n){for(var t in n)this._sets[t]=n[t]};this._sets=n}return n}();n.DefaultSetRequirement=i;h=function(n){function i(){n.call(this,{dialogapi:t})}return __extends(i,n),i}(i);n.DefaultDialogSetRequirement=h;u=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,excelapi:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return __extends(i,n),i}(i);n.ExcelClientDefaultSetRequirement=u;c=function(n){function i(){n.call(this);this._addSetMap({imagecoercion:t})}return __extends(i,n),i}(u);n.ExcelClientV1DefaultSetRequirement=c;l=function(n){function t(){n.call(this,{mailbox:1.3})}return __extends(t,n),t}(i);n.OutlookClientDefaultSetRequirement=l;f=function(n){function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t,wordapi:t})}return __extends(i,n),i}(i);n.WordClientDefaultSetRequirement=f;a=function(n){function i(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2,imagecoercion:t})}return __extends(i,n),i}(f);n.WordClientV1DefaultSetRequirement=a;e=function(n){function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.PowerpointClientDefaultSetRequirement=e;v=function(n){function i(){n.call(this);this._addSetMap({imagecoercion:t})}return __extends(i,n),i}(e);n.PowerpointClientV1DefaultSetRequirement=v;y=function(n){function i(){n.call(this,{selection:t,textcoercion:t})}return __extends(i,n),i}(i);n.ProjectClientDefaultSetRequirement=y;p=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,file:t})}return __extends(i,n),i}(i);n.ExcelWebDefaultSetRequirement=p;w=function(n){function i(){n.call(this,{compressedfile:t,documentevents:t,file:t,imagecoercion:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablecoercion:t,textcoercion:t,textfile:t})}return __extends(i,n),i}(i);n.WordWebDefaultSetRequirement=w;b=function(n){function i(){n.call(this,{activeview:t,settings:t})}return __extends(i,n),i}(i);n.PowerpointWebDefaultSetRequirement=b;o=function(n){function t(){n.call(this,{mailbox:1.3})}return __extends(t,n),t}(i);n.OutlookWebDefaultSetRequirement=o;k=function(n){function i(){n.call(this,{activeview:t,documentevents:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.SwayWebDefaultSetRequirement=k;d=function(n){function i(){n.call(this,{bindingevents:t,partialtablebindings:t,settings:t,tablebindings:t,tablecoercion:t})}return __extends(i,n),i}(i);n.AccessWebDefaultSetRequirement=d;g=function(n){function i(){n.call(this,{bindingevents:t,documentevents:t,matrixbindings:t,matrixcoercion:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t})}return __extends(i,n),i}(i);n.ExcelIOSDefaultSetRequirement=g;s=function(n){function i(){n.call(this,{bindingevents:t,compressedfile:t,customxmlparts:t,documentevents:t,file:t,htmlcoercion:t,matrixbindings:t,matrixcoercion:t,ooxmlcoercion:t,pdffile:t,selection:t,settings:t,tablebindings:t,tablecoercion:t,textbindings:t,textcoercion:t,textfile:t})}return __extends(i,n),i}(i);n.WordIOSDefaultSetRequirement=s;nt=function(n){function t(){n.call(this);this._addSetMap({customxmlparts:1.2,wordapi:1.2})}return __extends(t,n),t}(s);n.WordIOSV1DefaultSetRequirement=nt;tt=function(n){function i(){n.call(this,{activeview:t,compressedfile:t,documentevents:t,file:t,pdffile:t,selection:t,settings:t,textcoercion:t})}return __extends(i,n),i}(i);n.PowerpointIOSDefaultSetRequirement=tt;it=function(n){function i(){n.call(this,{mailbox:t})}return __extends(i,n),i}(i);n.OutlookIOSDefaultSetRequirement=it;rt=function(){function n(){}var t="undefined";return n.initializeOsfDda=function(){OSF.OUtil.setNamespace("Requirement",OSF.DDA)},n.getDefaultRequirementMatrix=function(u){var f,e,s,o;return this.initializeDefaultSetMatrix(),f=undefined,e=u.get_requirementMatrix(),e!=undefined&&e.length>0&&typeof JSON!==t?(s=JSON.parse(u.get_requirementMatrix().toLowerCase()),f=new r(new i(s))):(o=n.getClientFullVersionString(u),f=n.DefaultSetArrayMatrix!=undefined&&n.DefaultSetArrayMatrix[o]!=undefined?new r(n.DefaultSetArrayMatrix[o]):new r(new i({}))),f},n.getDefaultDialogRequirementMatrix=function(n){var u=undefined,f=n.get_dialogRequirementMatrix(),e;return f!=undefined&&f.length>0&&typeof JSON!==t?(e=JSON.parse(n.get_requirementMatrix().toLowerCase()),u=new r(new i(e))):u=new r(new h),u},n.getClientFullVersionString=function(n){var i=n.get_appMinorVersion(),u="",r="",t=n.get_appName(),f=t==1024||t==4096||t==8192||t==65536;return f&&n.get_appVersion()==1?r=t==4096&&i>=15?"16.00.01":"16.00":n.get_appName()==64?r=n.get_appVersion():(u=i<10?"0"+i:""+i,r=n.get_appVersion()+"."+u),n.get_appName()+"-"+r},n.initializeDefaultSetMatrix=function(){n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1600]=new u;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1600]=new f;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1600]=new e;n.DefaultSetArrayMatrix[n.Excel_RCLIENT_1601]=new c;n.DefaultSetArrayMatrix[n.Word_RCLIENT_1601]=new a;n.DefaultSetArrayMatrix[n.PowerPoint_RCLIENT_1601]=new v;n.DefaultSetArrayMatrix[n.Outlook_RCLIENT_1600]=new l;n.DefaultSetArrayMatrix[n.Excel_WAC_1600]=new p;n.DefaultSetArrayMatrix[n.Word_WAC_1600]=new w;n.DefaultSetArrayMatrix[n.Outlook_WAC_1600]=new o;n.DefaultSetArrayMatrix[n.Outlook_WAC_1601]=new o;n.DefaultSetArrayMatrix[n.Project_RCLIENT_1600]=new y;n.DefaultSetArrayMatrix[n.Access_WAC_1600]=new d;n.DefaultSetArrayMatrix[n.PowerPoint_WAC_1600]=new b;n.DefaultSetArrayMatrix[n.Excel_IOS_1600]=new g;n.DefaultSetArrayMatrix[n.SWAY_WAC_1600]=new k;n.DefaultSetArrayMatrix[n.Word_IOS_1600]=new s;n.DefaultSetArrayMatrix[n.Word_IOS_16001]=new nt;n.DefaultSetArrayMatrix[n.PowerPoint_IOS_1600]=new tt;n.DefaultSetArrayMatrix[n.Outlook_IOS_1600]=new it},n.Excel_RCLIENT_1600="1-16.00",n.Excel_RCLIENT_1601="1-16.01",n.Word_RCLIENT_1600="2-16.00",n.Word_RCLIENT_1601="2-16.01",n.PowerPoint_RCLIENT_1600="4-16.00",n.PowerPoint_RCLIENT_1601="4-16.01",n.Outlook_RCLIENT_1600="8-16.00",n.Excel_WAC_1600="16-16.00",n.Word_WAC_1600="32-16.00",n.Outlook_WAC_1600="64-16.00",n.Outlook_WAC_1601="64-16.01",n.Project_RCLIENT_1600="128-16.00",n.Access_WAC_1600="256-16.00",n.PowerPoint_WAC_1600="512-16.00",n.Excel_IOS_1600="1024-16.00",n.SWAY_WAC_1600="2048-16.00",n.Word_IOS_1600="4096-16.00",n.Word_IOS_16001="4096-16.00.01",n.PowerPoint_IOS_1600="8192-16.00",n.Outlook_IOS_1600="65536-16.00",n.DefaultSetArrayMatrix={},n}();n.RequirementsMatrixFactory=rt})(t=n.Requirement||(n.Requirement={}))}(OfficeExt||(OfficeExt={}));OfficeExt.Requirement.RequirementsMatrixFactory.initializeOsfDda(),function(n){var t;(function(n){var t=function(){function n(){var n=this;n.getDiagnostics=function(n){return{host:this.getHost(),version:n||this.getDefaultVersion(),platform:this.getPlatform()}};n.platformRemappings={web:Microsoft.Office.WebExtension.PlatformType.OfficeOnline,winrt:Microsoft.Office.WebExtension.PlatformType.Universal,win32:Microsoft.Office.WebExtension.PlatformType.PC,mac:Microsoft.Office.WebExtension.PlatformType.Mac,ios:Microsoft.Office.WebExtension.PlatformType.iOS,android:Microsoft.Office.WebExtension.PlatformType.Android};n.camelCaseMappings={powerpoint:Microsoft.Office.WebExtension.HostType.PowerPoint,onenote:Microsoft.Office.WebExtension.HostType.OneNote};n.hostInfo=OSF._OfficeAppFactory.getHostInfo();n.getHost=n.getHost.bind(n);n.getPlatform=n.getPlatform.bind(n);n.getDiagnostics=n.getDiagnostics.bind(n)}return n.prototype.capitalizeFirstLetter=function(n){return n?n[0].toUpperCase()+n.slice(1).toLowerCase():n},n.getInstance=function(){return n.hostObj===undefined&&(n.hostObj=new n),n.hostObj},n.prototype.getPlatform=function(){var n=this,t;return n.hostInfo.hostPlatform&&(t=n.hostInfo.hostPlatform.toLowerCase(),n.platformRemappings[t])?n.platformRemappings[t]:null},n.prototype.getHost=function(){var n=this,t;if(n.hostInfo.hostType){if(t=n.hostInfo.hostType.toLowerCase(),n.camelCaseMappings[t])return n.camelCaseMappings[t];if(t=n.capitalizeFirstLetter(n.hostInfo.hostType),Microsoft.Office.WebExtension.HostType[t])return Microsoft.Office.WebExtension.HostType[t]}return null},n.prototype.getDefaultVersion=function(){return this.getHost()?"16.0.0000.0000":null},n}();n.Host=t})(t=n.HostName||(n.HostName={}))}(OfficeExt||(OfficeExt={}));Microsoft.Office.WebExtension.ApplicationMode={WebEditor:"webEditor",WebViewer:"webViewer",Client:"client"};Microsoft.Office.WebExtension.DocumentMode={ReadOnly:"readOnly",ReadWrite:"readWrite"};OSF.NamespaceManager=function(){var t,n=!1;return{enableShortcut:function(){n||(window.Office?t=window.Office:OSF.OUtil.setNamespace("Office",window),window.Office=Microsoft.Office.WebExtension,n=!0)},disableShortcut:function(){n&&(t?window.Office=t:OSF.OUtil.unsetNamespace("Office",window),n=!1)}}}();OSF.NamespaceManager.enableShortcut();Microsoft.Office.WebExtension.useShortNamespace=function(n){n?OSF.NamespaceManager.enableShortcut():OSF.NamespaceManager.disableShortcut()};Microsoft.Office.WebExtension.select=function(n,t){var i,r,o,u,f,e;if(n&&typeof n=="string"&&(r=n.indexOf("#"),r!=-1)){o=n.substring(0,r);u=n.substring(r+1);switch(o){case"binding":case"bindings":u&&(i=new OSF.DDA.BindingPromise(u))}}if(i)return i.onFail=t,i;else if(t)if(f=typeof t,f=="function")e={},e[Microsoft.Office.WebExtension.Parameters.Callback]=t,OSF.DDA.issueAsyncResult(e,OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext,OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidApiCallInContext));else throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,f);};OSF.DDA.Context=function(n,t,i,r,u){var o="requirements",f=this,s,e;OSF.OUtil.defineEnumerableProperties(f,{contentLanguage:{value:n.get_dataLocale()},displayLanguage:{value:n.get_appUILocale()},touchEnabled:{value:n.get_touchEnabled()},commerceAllowed:{value:n.get_commerceAllowed()},host:{value:OfficeExt.HostName.Host.getInstance().getHost()},platform:{value:OfficeExt.HostName.Host.getInstance().getPlatform()},diagnostics:{value:OfficeExt.HostName.Host.getInstance().getDiagnostics(n.get_hostFullVersion())}});i&&OSF.OUtil.defineEnumerableProperty(f,"license",{value:i});n.ui&&OSF.OUtil.defineEnumerableProperty(f,"ui",{value:n.ui});n.auth&&OSF.OUtil.defineEnumerableProperty(f,"auth",{value:n.auth});n.application&&OSF.OUtil.defineEnumerableProperty(f,"application",{value:n.application});n.get_isDialog()?(e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultDialogRequirementMatrix(n),OSF.OUtil.defineEnumerableProperty(f,o,{value:e})):(t&&OSF.OUtil.defineEnumerableProperty(f,"document",{value:t}),r&&(s=r.displayName||"appOM",delete r.displayName,OSF.OUtil.defineEnumerableProperty(f,s,{value:r})),u&&OSF.OUtil.defineEnumerableProperty(f,"officeTheme",{get:function(){return u()}}),e=OfficeExt.Requirement.RequirementsMatrixFactory.getDefaultRequirementMatrix(n),OSF.OUtil.defineEnumerableProperty(f,o,{value:e}))};OSF.DDA.OutlookContext=function(n,t,i,r,u){OSF.DDA.OutlookContext.uber.constructor.call(this,n,null,i,r,u);t&&OSF.OUtil.defineEnumerableProperty(this,"roamingSettings",{value:t})};OSF.OUtil.extend(OSF.DDA.OutlookContext,OSF.DDA.Context);OSF.DDA.OutlookAppOm=function(){};OSF.DDA.Application=function(){};OSF.DDA.Document=function(n,t){var i;switch(n.get_clientMode()){case OSF.ClientMode.ReadOnly:i=Microsoft.Office.WebExtension.DocumentMode.ReadOnly;break;case OSF.ClientMode.ReadWrite:i=Microsoft.Office.WebExtension.DocumentMode.ReadWrite}t&&OSF.OUtil.defineEnumerableProperty(this,"settings",{value:t});OSF.OUtil.defineMutableProperties(this,{mode:{value:i},url:{value:n.get_docUrl()}})};OSF.DDA.JsomDocument=function(n,t,i){var r=this,u;OSF.DDA.JsomDocument.uber.constructor.call(r,n,i);t&&OSF.OUtil.defineEnumerableProperty(r,"bindings",{get:function(){return t}});u=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(r,[u.GetSelectedDataAsync,u.SetSelectedDataAsync]);OSF.DDA.DispIdHost.addEventSupport(r,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged]))};OSF.OUtil.extend(OSF.DDA.JsomDocument,OSF.DDA.Document);OSF.OUtil.defineEnumerableProperty(Microsoft.Office.WebExtension,"context",{get:function(){var n;return OSF&&OSF._OfficeAppFactory&&(n=OSF._OfficeAppFactory.getContext()),n}});OSF.DDA.License=function(n){OSF.OUtil.defineEnumerableProperty(this,"value",{value:n})};OSF.DDA.ApiMethodCall=function(n,t,i,r,u){var f=this,e=n.length,o=OSF.OUtil.delayExecutionAndCache(function(){return OSF.OUtil.formatString(Strings.OfficeOM.L_InvalidParameters,u)});f.verifyArguments=function(n,t){var u,i,r;for(u in n){if(i=n[u],r=t[u],i["enum"])switch(typeof r){case"string":if(OSF.OUtil.listContainsValue(i["enum"],r))break;case"undefined":throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedEnumeration;default:throw o();}if(i.types&&!OSF.OUtil.listContainsValue(i.types,typeof r))throw o();}};f.extractRequiredArguments=function(t,i,r){var f,u,h,s,c,l;if(t.length<e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_MissingRequiredArguments);for(f=[],u=0;u<e;u++)f.push(t[u]);for(this.verifyArguments(n,f),h={},u=0;u<e;u++){if(s=n[u],c=f[u],s.verify&&(l=s.verify(c,i,r),!l))throw o();h[s.name]=c}return h};f.fillOptions=function(n,i,r,u){var o,f,e;n=n||{};for(o in t)OSF.OUtil.listContainsKey(n,o)||(f=undefined,e=t[o],e.calculate&&i&&(f=e.calculate(i,r,u)),f||e.defaultValue===undefined||(f=e.defaultValue),n[o]=f);return n};f.constructCallArgs=function(n,t,u,f){var e={},o,s,h;for(o in n)e[o]=n[o];for(s in t)e[s]=t[s];for(h in i)e[h]=i[h](u,f);return r&&(e=r(e,u,f)),e}};OSF.OUtil.setNamespace("AsyncResultEnum",OSF.DDA);OSF.DDA.AsyncResultEnum.Properties={Context:"Context",Value:"Value",Status:"Status",Error:"Error"};Microsoft.Office.WebExtension.AsyncResultStatus={Succeeded:"succeeded",Failed:"failed"};OSF.DDA.AsyncResultEnum.ErrorCode={Success:0,Failed:1};OSF.DDA.AsyncResultEnum.ErrorProperties={Name:"Name",Message:"Message",Code:"Code"};OSF.DDA.AsyncMethodNames={};OSF.DDA.AsyncMethodNames.addNames=function(n){var t,i;for(t in n)i={},OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}}),OSF.DDA.AsyncMethodNames[t]=i};OSF.DDA.AsyncMethodCall=function(n,t,i,r,u,f,e){function c(n,i,r,u){var f,e,c,l;if(n.length>s+2)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(c=n.length-1;c>=s;c--){l=n[c];switch(typeof l){case"object":if(f)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else f=l;break;case h:if(e)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalFunction);else e=l;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}if(f=o.fillOptions(f,i,r,u),e)if(f[Microsoft.Office.WebExtension.Parameters.Callback])throw Strings.OfficeOM.L_RedundantCallbackSpecification;else f[Microsoft.Office.WebExtension.Parameters.Callback]=e;return o.verifyArguments(t,f),f}var h="function",s=n.length,o=new OSF.DDA.ApiMethodCall(n,t,i,f,e);this.verifyAndExtractCall=function(n,t,i){var r=o.extractRequiredArguments(n,t,i),u=c(n,r,t,i);return o.constructCallArgs(r,u,t,i)};this.processResponse=function(n,t,i,f){return n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?r?r(t,i,f):t:u?u(n,t):OSF.DDA.ErrorCodeManager.getErrorArgs(n)};this.getCallArgs=function(n){for(var t,u,r,i=n.length-1;i>=s;i--){r=n[i];switch(typeof r){case"object":t=r;break;case h:u=r}}return t=t||{},u&&(t[Microsoft.Office.WebExtension.Parameters.Callback]=u),t}};OSF.DDA.AsyncMethodCallFactory=function(){return{manufacture:function(n){var t=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[],i=n.privateStateCallbacks?OSF.OUtil.createObject(n.privateStateCallbacks):[];return new OSF.DDA.AsyncMethodCall(n.requiredArguments||[],t,i,n.onSucceeded,n.onFailed,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.AsyncMethodCalls={};OSF.DDA.AsyncMethodCalls.define=function(n){OSF.DDA.AsyncMethodCalls[n.method.id]=OSF.DDA.AsyncMethodCallFactory.manufacture(n)};OSF.DDA.Error=function(n,t,i){OSF.OUtil.defineEnumerableProperties(this,{name:{value:n},message:{value:t},code:{value:i}})};OSF.DDA.AsyncResult=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{value:{value:n[OSF.DDA.AsyncResultEnum.Properties.Value]},status:{value:t?Microsoft.Office.WebExtension.AsyncResultStatus.Failed:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded}});n[OSF.DDA.AsyncResultEnum.Properties.Context]&&OSF.OUtil.defineEnumerableProperty(this,"asyncContext",{value:n[OSF.DDA.AsyncResultEnum.Properties.Context]});t&&OSF.OUtil.defineEnumerableProperty(this,"error",{value:new OSF.DDA.Error(t[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],t[OSF.DDA.AsyncResultEnum.ErrorProperties.Code])})};OSF.DDA.issueAsyncResult=function(n,t,i){var f=n[Microsoft.Office.WebExtension.Parameters.Callback],u,r;f&&(u={},u[OSF.DDA.AsyncResultEnum.Properties.Context]=n[Microsoft.Office.WebExtension.Parameters.AsyncContext],t==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?u[OSF.DDA.AsyncResultEnum.Properties.Value]=i:(r={},i=i||OSF.DDA.ErrorCodeManager.getErrorArgs(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError),r[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,r[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=i.name||i,r[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=i.message||i),f(new OSF.DDA.AsyncResult(u,r)))};OSF.DDA.SyncMethodNames={};OSF.DDA.SyncMethodNames.addNames=function(n){var t,i;for(t in n)i={},OSF.OUtil.defineEnumerableProperties(i,{id:{value:t},displayName:{value:n[t]}}),OSF.DDA.SyncMethodNames[t]=i};OSF.DDA.SyncMethodCall=function(n,t,i,r,u){function o(n,i,r,u){var o,c,s,h;if(n.length>e+1)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyArguments);for(s=n.length-1;s>=e;s--){h=n[s];switch(typeof h){case"object":if(o)throw OsfMsAjaxFactory.msAjaxError.parameterCount(Strings.OfficeOM.L_TooManyOptionalObjects);else o=h;break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Strings.OfficeOM.L_InValidOptionalArgument);}}return o=f.fillOptions(o,i,r,u),f.verifyArguments(t,o),o}var e=n.length,f=new OSF.DDA.ApiMethodCall(n,t,i,r,u);this.verifyAndExtractCall=function(n,t,i){var r=f.extractRequiredArguments(n,t,i),u=o(n,r,t,i);return f.constructCallArgs(r,u,t,i)}};OSF.DDA.SyncMethodCallFactory=function(){return{manufacture:function(n){var t=n.supportedOptions?OSF.OUtil.createObject(n.supportedOptions):[];return new OSF.DDA.SyncMethodCall(n.requiredArguments||[],t,n.privateStateCallbacks,n.checkCallArgs,n.method.displayName)}}}();OSF.DDA.SyncMethodCalls={};OSF.DDA.SyncMethodCalls.define=function(n){OSF.DDA.SyncMethodCalls[n.method.id]=OSF.DDA.SyncMethodCallFactory.manufacture(n)};OSF.DDA.ListType=function(){var n={};return{setListType:function(t,i){n[t]=i},isListType:function(t){return OSF.OUtil.listContainsKey(n,t)},getDescriptor:function(t){return n[t]}}}();OSF.DDA.HostParameterMap=function(n,t){function e(i,f){var a=i?{}:undefined,s,h,o,v,c,l;for(s in i){if(h=i[s],OSF.DDA.ListType.isListType(s)){o=[];for(v in h)o.push(e(h[v],f))}else OSF.OUtil.listContainsKey(r,s)?o=r[s][f](h):f==u&&n.preserveNesting(s)?o=e(h,f):(c=t[s],c?(l=c[f],l&&(o=l[h],o===undefined&&(o=h))):o=h);a[s]=o}return a}function l(i,r){var e,u,h,s;for(u in r)h=n.isComplexType(u)?l(i,t[u][o]):i[u],h!=undefined&&(e||(e={}),s=r[u],s==f&&(s=u),e[s]=n.pack(u,h));return e}function s(i,r,e){var o,a,h,l,p,v,y;e||(e={});for(o in r){if(a=r[o],a==f)h=i;else if(a==c){e[o]=i.toArray();continue}else h=i[a];if(h===null||h===undefined)e[o]=undefined;else if(h=n.unpack(o,h),n.isComplexType(o))l=t[o][u],n.preserveNesting(o)?e[o]=s(h,l):s(h,l,e);else if(OSF.DDA.ListType.isListType(o)){l={};p=OSF.DDA.ListType.getDescriptor(o);l[p]=f;v=new Array(h.length);for(y in h)v[y]=s(h[y],l);e[o]=v}else e[o]=h}return e}function a(n,i,r){var f=t[n][r],u,o,c;return r=="toHost"?(o=e(i,r),u=l(o,f)):r==h&&(c=s(i,f),u=e(c,r)),u}var h="fromHost",i=this,o="toHost",u=h,c="sourceData",f="self",r={};r[Microsoft.Office.WebExtension.Parameters.Data]={toHost:function(n){if(n!=null&&n.rows!==undefined){var t={};t[OSF.DDA.TableDataProperties.TableRows]=n.rows;t[OSF.DDA.TableDataProperties.TableHeaders]=n.headers;n=t}return n},fromHost:function(n){return n}};r[Microsoft.Office.WebExtension.Parameters.SampleData]=r[Microsoft.Office.WebExtension.Parameters.Data];t||(t={});i.addMapping=function(n,i){var e,h,c,l,r,s,a,v;if(i.map){e=i.map;h={};for(c in e)l=e[c],l==f&&(l=c),h[l]=c}else e=i.toHost,h=i.fromHost;if(r=t[n],r){s=r[o];for(a in s)e[a]=s[a];s=r[u];for(v in s)h[v]=s[v]}else r=t[n]={};r[o]=e;r[u]=h};i.toHost=function(n,t){return a(n,t,o)};i.fromHost=function(n,t){return a(n,t,u)};i.self=f;i.sourceData=c;i.addComplexType=function(t){n.addComplexType(t)};i.getDynamicType=function(t){return n.getDynamicType(t)};i.setDynamicType=function(t,i){n.setDynamicType(t,i)};i.dynamicTypes=r;i.doMapValues=function(n,t){return e(n,t)}};OSF.DDA.SpecialProcessor=function(n,t){var i=this;i.addComplexType=function(t){n.push(t)};i.getDynamicType=function(n){return t[n]};i.setDynamicType=function(n,i){t[n]=i};i.isComplexType=function(t){return OSF.OUtil.listContainsValue(n,t)};i.isDynamicType=function(n){return OSF.OUtil.listContainsKey(t,n)};i.preserveNesting=function(n){var t=[];return OSF.DDA.PropertyDescriptors&&t.push(OSF.DDA.PropertyDescriptors.Subset),OSF.DDA.DataNodeEventProperties&&(t=t.concat([OSF.DDA.DataNodeEventProperties.OldNode,OSF.DDA.DataNodeEventProperties.NewNode,OSF.DDA.DataNodeEventProperties.NextSiblingNode])),OSF.OUtil.listContainsValue(t,n)};i.pack=function(n,i){return this.isDynamicType(n)?t[n].toHost(i):i};i.unpack=function(n,i){return this.isDynamicType(n)?t[n].fromHost(i):i}};OSF.DDA.getDecoratedParameterMap=function(n,t){function r(n){var i=null,r,t;if(n)for(i={},r=n.length,t=0;t<r;t++)i[n[t].name]=n[t].value;return i}var i=new OSF.DDA.HostParameterMap(n),f=i.self,u;i.define=function(n){var t={},u=r(n.toHost);n.invertible?t.map=u:n.canonical?t.toHost=t.fromHost=u:(t.toHost=u,t.fromHost=r(n.fromHost));i.addMapping(n.type,t);n.isComplexType&&i.addComplexType(n.type)};for(u in t)i.define(t[u]);return i};OSF.OUtil.setNamespace("DispIdHost",OSF.DDA);OSF.DDA.DispIdHost.Methods={InvokeMethod:"invokeMethod",AddEventHandler:"addEventHandler",RemoveEventHandler:"removeEventHandler",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Delegates={ExecuteAsync:"executeAsync",RegisterEventAsync:"registerEventAsync",UnregisterEventAsync:"unregisterEventAsync",ParameterMap:"parameterMap",OpenDialog:"openDialog",CloseDialog:"closeDialog",MessageParent:"messageParent",SendMessage:"sendMessage"};OSF.DDA.DispIdHost.Facade=function(n,t){function y(n){return n==OSF.DDA.EventDispId.dispidObjectDeletedEvent||n==OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent||n==OSF.DDA.EventDispId.dispidObjectDataChangedEvent||n==OSF.DDA.EventDispId.dispidContentControlAddedEvent}function o(n,t,i,r){if(typeof n=="number")r||(r=t.getCallArgs(i)),OSF.DDA.issueAsyncResult(r,n,OSF.DDA.ErrorCodeManager.getErrorArgs(n));else throw n;}var s=!1,h=null,e=this,r={},u=OSF.DDA.AsyncMethodNames,i=OSF.DDA.MethodDispId,v={GoToByIdAsync:i.dispidNavigateToMethod,GetSelectedDataAsync:i.dispidGetSelectedDataMethod,SetSelectedDataAsync:i.dispidSetSelectedDataMethod,GetDocumentCopyChunkAsync:i.dispidGetDocumentCopyChunkMethod,ReleaseDocumentCopyAsync:i.dispidReleaseDocumentCopyMethod,GetDocumentCopyAsync:i.dispidGetDocumentCopyMethod,AddFromSelectionAsync:i.dispidAddBindingFromSelectionMethod,AddFromPromptAsync:i.dispidAddBindingFromPromptMethod,AddFromNamedItemAsync:i.dispidAddBindingFromNamedItemMethod,GetAllAsync:i.dispidGetAllBindingsMethod,GetByIdAsync:i.dispidGetBindingMethod,ReleaseByIdAsync:i.dispidReleaseBindingMethod,GetDataAsync:i.dispidGetBindingDataMethod,SetDataAsync:i.dispidSetBindingDataMethod,AddRowsAsync:i.dispidAddRowsMethod,AddColumnsAsync:i.dispidAddColumnsMethod,DeleteAllDataValuesAsync:i.dispidClearAllRowsMethod,RefreshAsync:i.dispidLoadSettingsMethod,SaveAsync:i.dispidSaveSettingsMethod,GetActiveViewAsync:i.dispidGetActiveViewMethod,GetFilePropertiesAsync:i.dispidGetFilePropertiesMethod,GetOfficeThemeAsync:i.dispidGetOfficeThemeMethod,GetDocumentThemeAsync:i.dispidGetDocumentThemeMethod,ClearFormatsAsync:i.dispidClearFormatsMethod,SetTableOptionsAsync:i.dispidSetTableOptionsMethod,SetFormatsAsync:i.dispidSetFormatsMethod,GetAccessTokenAsync:i.dispidGetAccessTokenMethod,ExecuteRichApiRequestAsync:i.dispidExecuteRichApiRequestMethod,AppCommandInvocationCompletedAsync:i.dispidAppCommandInvocationCompletedMethod,CloseContainerAsync:i.dispidCloseContainerMethod,OpenBrowserWindow:i.dispidOpenBrowserWindow,CreateDocumentAsync:i.dispidCreateDocumentMethod,InsertFormAsync:i.dispidInsertFormMethod,AddDataPartAsync:i.dispidAddDataPartMethod,GetDataPartByIdAsync:i.dispidGetDataPartByIdMethod,GetDataPartsByNameSpaceAsync:i.dispidGetDataPartsByNamespaceMethod,GetPartXmlAsync:i.dispidGetDataPartXmlMethod,GetPartNodesAsync:i.dispidGetDataPartNodesMethod,DeleteDataPartAsync:i.dispidDeleteDataPartMethod,GetNodeValueAsync:i.dispidGetDataNodeValueMethod,GetNodeXmlAsync:i.dispidGetDataNodeXmlMethod,GetRelativeNodesAsync:i.dispidGetDataNodesMethod,SetNodeValueAsync:i.dispidSetDataNodeValueMethod,SetNodeXmlAsync:i.dispidSetDataNodeXmlMethod,AddDataPartNamespaceAsync:i.dispidAddDataNamespaceMethod,GetDataPartNamespaceAsync:i.dispidGetDataUriByPrefixMethod,GetDataPartPrefixAsync:i.dispidGetDataPrefixByUriMethod,GetNodeTextAsync:i.dispidGetDataNodeTextMethod,SetNodeTextAsync:i.dispidSetDataNodeTextMethod,GetSelectedTask:i.dispidGetSelectedTaskMethod,GetTask:i.dispidGetTaskMethod,GetWSSUrl:i.dispidGetWSSUrlMethod,GetTaskField:i.dispidGetTaskFieldMethod,GetSelectedResource:i.dispidGetSelectedResourceMethod,GetResourceField:i.dispidGetResourceFieldMethod,GetProjectField:i.dispidGetProjectFieldMethod,GetSelectedView:i.dispidGetSelectedViewMethod,GetTaskByIndex:i.dispidGetTaskByIndexMethod,GetResourceByIndex:i.dispidGetResourceByIndexMethod,SetTaskField:i.dispidSetTaskFieldMethod,SetResourceField:i.dispidSetResourceFieldMethod,GetMaxTaskIndex:i.dispidGetMaxTaskIndexMethod,GetMaxResourceIndex:i.dispidGetMaxResourceIndexMethod,CreateTask:i.dispidCreateTaskMethod},l,f,a,c;for(f in v)u[f]&&(r[u[f].id]=v[f]);u=OSF.DDA.SyncMethodNames;i=OSF.DDA.MethodDispId;l={MessageParent:i.dispidMessageParentMethod,SendMessage:i.dispidSendMessageMethod};for(f in l)u[f]&&(r[u[f].id]=l[f]);u=Microsoft.Office.WebExtension.EventType;i=OSF.DDA.EventDispId;a={SettingsChanged:i.dispidSettingsChangedEvent,DocumentSelectionChanged:i.dispidDocumentSelectionChangedEvent,BindingSelectionChanged:i.dispidBindingSelectionChangedEvent,BindingDataChanged:i.dispidBindingDataChangedEvent,ActiveViewChanged:i.dispidActiveViewChangedEvent,OfficeThemeChanged:i.dispidOfficeThemeChangedEvent,DocumentThemeChanged:i.dispidDocumentThemeChangedEvent,AppCommandInvoked:i.dispidAppCommandInvokedEvent,DialogMessageReceived:i.dispidDialogMessageReceivedEvent,DialogParentMessageReceived:i.dispidDialogParentMessageReceivedEvent,ObjectDeleted:i.dispidObjectDeletedEvent,ObjectSelectionChanged:i.dispidObjectSelectionChangedEvent,ObjectDataChanged:i.dispidObjectDataChangedEvent,ContentControlAdded:i.dispidContentControlAddedEvent,RichApiMessage:i.dispidRichApiMessageEvent,ItemChanged:i.dispidOlkItemSelectedChangedEvent,RecipientsChanged:i.dispidOlkRecipientsChangedEvent,AppointmentTimeChanged:i.dispidOlkAppointmentTimeChangedEvent,RecurrenceChanged:i.dispidOlkRecurrenceChangedEvent,TaskSelectionChanged:i.dispidTaskSelectionChangedEvent,ResourceSelectionChanged:i.dispidResourceSelectionChangedEvent,ViewSelectionChanged:i.dispidViewSelectionChangedEvent,DataNodeInserted:i.dispidDataNodeAddedEvent,DataNodeReplaced:i.dispidDataNodeReplacedEvent,DataNodeDeleted:i.dispidDataNodeDeletedEvent};for(c in a)u[c]&&(r[u[c]]=a[c]);e[OSF.DDA.DispIdHost.Methods.InvokeMethod]=function(i,u,f,e){var s,a,v,l,p,b,w,k;try{a=i.id;v=OSF.DDA.AsyncMethodCalls[a];s=v.verifyAndExtractCall(u,f,e);var y=r[a],d=n(a),c=h;window.Excel&&window.Office.context.requirements.isSetSupported("RedirectV1Api")&&(window.Excel._RedirectV1APIs=!0);window.Excel&&window.Excel._RedirectV1APIs&&(c=window.Excel._V1APIMap[a])?(l=OSF.OUtil.shallowCopy(s),delete l[Microsoft.Office.WebExtension.Parameters.AsyncContext],c.preprocess&&(l=c.preprocess(l)),p=new window.Excel.RequestContext,b=c.call(p,l),p.sync().then(function(){var n=b.value,t=n.status;delete n.status;delete n["@odata.type"];c.postprocess&&(n=c.postprocess(n,l));t!=0&&(n=OSF.DDA.ErrorCodeManager.getErrorArgs(t));OSF.DDA.issueAsyncResult(s,t,n)})["catch"](function(){OSF.DDA.issueAsyncResult(s,OSF.DDA.ErrorCodeManager.errorCodes.ooeFailure,h)})):(w=t.toHost?t.toHost(y,s):s,k=(new Date).getTime(),d[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]({dispId:y,hostCallArgs:w,onCalling:function(){},onReceiving:function(){},onComplete:function(n,i){var r,u;r=n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?t.fromHost?t.fromHost(y,i):i:i;u=v.processResponse(n,r,f,s);OSF.DDA.issueAsyncResult(s,n,u);OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(y,w,Math.abs((new Date).getTime()-k),n)}}))}catch(g){o(g,v,u,s)}};e[OSF.DDA.DispIdHost.Methods.AddEventHandler]=function(i,u,f,e){function w(n){var t,i;n==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=l?u.addObjectEventHandler(h,c[Microsoft.Office.WebExtension.Parameters.Id],p):u.addEventHandler(h,p),t||(n=OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerAdditionFailed));n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(i=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(c,n,i)}var c,h,p,l=s,b,v,a,k,d;try{if(b=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.AddHandlerAsync.id],c=b.verifyAndExtractCall(i,f,u),h=c[Microsoft.Office.WebExtension.Parameters.EventType],p=c[Microsoft.Office.WebExtension.Parameters.Handler],e){w(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess);return}v=r[h];l=y(v);a=l?c[Microsoft.Office.WebExtension.Parameters.Id]:f.id||"";k=l?u.getObjectEventHandlerCount(h,a):u.getEventHandlerCount(h);k==0?(d=n(h)[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync],d({eventType:h,dispId:v,targetId:a,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:w,onEvent:function(n){var i=t.fromHost(v,n);l?u.fireObjectEvent(a,OSF.DDA.OMFactory.manufactureEventArgs(h,a,i)):u.fireEvent(OSF.DDA.OMFactory.manufactureEventArgs(h,f,i))}})):w(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)}catch(g){o(g,b,i,c)}};e[OSF.DDA.DispIdHost.Methods.RemoveEventHandler]=function(t,i,u){function k(n){var t;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess&&(t=OSF.DDA.ErrorCodeManager.getErrorArgs(n));OSF.DDA.issueAsyncResult(e,n,t)}var e,f,a,c=s,p,w,l,b,v,d,g;try{p=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.id];e=p.verifyAndExtractCall(t,u,i);f=e[Microsoft.Office.WebExtension.Parameters.EventType];a=e[Microsoft.Office.WebExtension.Parameters.Handler];w=r[f];c=y(w);l=c?e[Microsoft.Office.WebExtension.Parameters.Id]:u.id||"";a===h?(v=c?i.clearObjectEventHandlers(f,l):i.clearEventHandlers(f),b=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess):(v=c?i.removeObjectEventHandler(f,l,a):i.removeEventHandler(f,a),b=v?OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess:OSF.DDA.ErrorCodeManager.errorCodes.ooeEventHandlerNotExist);d=c?i.getObjectEventHandlerCount(f,l):i.getEventHandlerCount(f);v&&d==0?(g=n(f)[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync],g({eventType:f,dispId:w,targetId:l,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:k})):k(b)}catch(nt){o(nt,p,t,e)}};e[OSF.DDA.DispIdHost.Methods.OpenDialog]=function(i,u,f){function y(n){var t,i;n!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess?i=OSF.DDA.ErrorCodeManager.getErrorArgs(n):(t={},t[Microsoft.Office.WebExtension.Parameters.Id]=v,t[Microsoft.Office.WebExtension.Parameters.Data]=u,i=a.processResponse(n,t,f,c),OSF.DialogShownStatus.hasDialogShown=!0,u.clearEventHandlers(e),u.clearEventHandlers(l));OSF.DDA.issueAsyncResult(c,n,i)}var c,v,e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived,l=Microsoft.Office.WebExtension.EventType.DialogEventReceived,a;try{if((e==undefined||l==undefined)&&y(OSF.DDA.ErrorCodeManager.ooeOperationNotSupported),OSF.DDA.AsyncMethodNames.DisplayDialogAsync==h){y(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError);return}a=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.DisplayDialogAsync.id];c=a.verifyAndExtractCall(i,f,u);var w=r[e],p=n(e),b=p[OSF.DDA.DispIdHost.Delegates.OpenDialog]!=undefined?p[OSF.DDA.DispIdHost.Delegates.OpenDialog]:p[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync];v=JSON.stringify(c);OSF.DialogShownStatus.hasDialogShown||(u.clearQueuedEvent(e),u.clearQueuedEvent(l),u.clearQueuedEvent(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived));b({eventType:e,dispId:w,targetId:v,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:y,onEvent:function(n){var h=t.fromHost(w,n),o=OSF.DDA.OMFactory.manufactureEventArgs(e,f,h),r,i;o.type==l&&(r=OSF.DDA.ErrorCodeManager.getErrorArgs(o.error),i={},i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]=status||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError,i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name]=r.name||r,i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message]=r.message||r,o.error=new OSF.DDA.Error(i[OSF.DDA.AsyncResultEnum.ErrorProperties.Name],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Message],i[OSF.DDA.AsyncResultEnum.ErrorProperties.Code]));u.fireOrQueueEvent(o);h[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogClosed&&(u.clearEventHandlers(e),u.clearEventHandlers(l),u.clearEventHandlers(Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived),OSF.DialogShownStatus.hasDialogShown=s)}})}catch(k){o(k,a,i,c)}};e[OSF.DDA.DispIdHost.Methods.CloseDialog]=function(t,i,u,f){function y(n){h=n;OSF.DialogShownStatus.hasDialogShown=s}var a,e,v,h=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,c;try{c=OSF.DDA.AsyncMethodCalls[OSF.DDA.AsyncMethodNames.CloseAsync.id];a=c.verifyAndExtractCall(t,f,u);e=Microsoft.Office.WebExtension.EventType.DialogMessageReceived;v=Microsoft.Office.WebExtension.EventType.DialogEventReceived;u.clearEventHandlers(e);u.clearEventHandlers(v);var p=r[e],l=n(e),w=l[OSF.DDA.DispIdHost.Delegates.CloseDialog]!=undefined?l[OSF.DDA.DispIdHost.Delegates.CloseDialog]:l[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync];w({eventType:e,dispId:p,targetId:i,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)},onComplete:y})}catch(b){o(b,c,t,a)}if(h!=OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)throw OSF.OUtil.formatString(Strings.OfficeOM.L_FunctionCallFailed,OSF.DDA.AsyncMethodNames.CloseAsync.displayName,h);};e[OSF.DDA.DispIdHost.Methods.MessageParent]=function(t,i){var u={},f=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.MessageParent.id],e=f.verifyAndExtractCall(t,i,u),o=n(OSF.DDA.SyncMethodNames.MessageParent.id),s=o[OSF.DDA.DispIdHost.Delegates.MessageParent],h=r[OSF.DDA.SyncMethodNames.MessageParent.id];return s({dispId:h,hostCallArgs:e,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})};e[OSF.DDA.DispIdHost.Methods.SendMessage]=function(t,i,u){var f={},e=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.SendMessage.id],o=e.verifyAndExtractCall(t,u,f),s=n(OSF.DDA.SyncMethodNames.SendMessage.id),h=s[OSF.DDA.DispIdHost.Delegates.SendMessage],c=r[OSF.DDA.SyncMethodNames.SendMessage.id];return h({dispId:c,hostCallArgs:o,onCalling:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.IssueCall)},onReceiving:function(){OSF.OUtil.writeProfilerMark(OSF.HostCallPerfMarker.ReceiveResponse)}})}};OSF.DDA.DispIdHost.addAsyncMethods=function(n,t,i){var f,r,u;for(f in t)r=t[f],u=r.displayName,n[u]||OSF.OUtil.defineEnumerableProperty(n,u,{value:function(t){return function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.InvokeMethod];r(t,arguments,n,i)}}(r)})};OSF.DDA.DispIdHost.addEventSupport=function(n,t,i){var r=OSF.DDA.AsyncMethodNames.AddHandlerAsync.displayName,u=OSF.DDA.AsyncMethodNames.RemoveHandlerAsync.displayName;n[r]||OSF.OUtil.defineEnumerableProperty(n,r,{value:function(){var r=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.AddEventHandler];r(arguments,t,n,i)}});n[u]||OSF.OUtil.defineEnumerableProperty(n,u,{value:function(){var i=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.RemoveEventHandler];i(arguments,t,n)}})},function(n){var e="\n",i=!0,t=null,r="undefined",h=function(){function n(){}return n.isInstanceOfType=function(n,u){if(typeof u===r||u===t)return!1;if(u instanceof n)return i;var f=u.constructor;return f&&typeof f=="function"&&f.__typeName&&f.__typeName!=="Object"||(f=Object),!!(f===n)||f.__typeName&&n.__typeName&&f.__typeName===n.__typeName},n}(),o,u,s,f;n.MsAjaxTypeHelper=h;o=function(){function n(){}var i="Parameter name: {0}";return n.create=function(n,t){var i=new Error(n),r;if(i.message=n,t)for(r in t)i[r]=t[r];return i.popStackFrame(),i},n.parameterCount=function(t){var r="Sys.ParameterCountException: "+(t?t:"Parameter count mismatch."),i=n.create(r,{name:"Sys.ParameterCountException"});return i.popStackFrame(),i},n.argument=function(t,r){var o="Sys.ArgumentException: "+(r?r:"Value does not fall within the expected range."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentException",paramName:t}),f.popStackFrame(),f},n.argumentNull=function(t,r){var o="Sys.ArgumentNullException: "+(r?r:"Value cannot be null."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentNullException",paramName:t}),f.popStackFrame(),f},n.argumentOutOfRange=function(f,o,s){var h="Sys.ArgumentOutOfRangeException: "+(s?s:"Specified argument was out of the range of valid values."),c;return f&&(h+=e+u.format(i,f)),typeof o!==r&&o!==t&&(h+=e+u.format("Actual value was {0}.",o)),c=n.create(h,{name:"Sys.ArgumentOutOfRangeException",paramName:f,actualValue:o}),c.popStackFrame(),c},n.argumentType=function(t,r,f,o){var s="Sys.ArgumentTypeException: ",h;return s+=o?o:r&&f?u.format("Object of type '{0}' cannot be converted to type '{1}'.",r.getName?r.getName():r,f.getName?f.getName():f):"Object cannot be converted to the required type.",t&&(s+=e+u.format(i,t)),h=n.create(s,{name:"Sys.ArgumentTypeException",paramName:t,actualType:r,expectedType:f}),h.popStackFrame(),h},n.argumentUndefined=function(t,r){var o="Sys.ArgumentUndefinedException: "+(r?r:"Value cannot be undefined."),f;return t&&(o+=e+u.format(i,t)),f=n.create(o,{name:"Sys.ArgumentUndefinedException",paramName:t}),f.popStackFrame(),f},n.invalidOperation=function(t){var r="Sys.InvalidOperationException: "+(t?t:"Operation is not valid due to the current state of the object."),i=n.create(r,{name:"Sys.InvalidOperationException"});return i.popStackFrame(),i},n}();n.MsAjaxError=o;u=function(){function n(){}return n.format=function(n){for(var r,i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r=n,r.replace(/{(\d+)}/gm,function(n,t){var r=parseInt(t,10);return i[r]===undefined?"{"+t+"}":i[r]})},n.startsWith=function(n,t){return n.substr(0,t.length)===t},n}();n.MsAjaxString=u;s=function(){function n(){}return n.trace=function(){},n}();n.MsAjaxDebug=s;OsfMsAjaxFactory.isMsAjaxLoaded()||(f=function(n,t,i){n.__typeName===undefined&&(n.__typeName=t);n.__class===undefined&&(n.__class=i)},f(Function,"Function",i),f(Error,"Error",i),f(Object,"Object",i),f(String,"String",i),f(Boolean,"Boolean",i),f(Date,"Date",i),f(Number,"Number",i),f(RegExp,"RegExp",i),f(Array,"Array",i),Function.createCallback||(Function.createCallback=function(n,t){var r=Function._validateParams(arguments,[{name:"method",type:Function},{name:"context",mayBeNull:i}]);if(r)throw r;return function(){var u=arguments.length,r,i;if(u>0){for(r=[],i=0;i<u;i++)r[i]=arguments[i];return r[u]=t,n.apply(this,r)}return n.call(this,t)}}),Function.createDelegate||(Function.createDelegate=function(n,t){var r=Function._validateParams(arguments,[{name:"instance",mayBeNull:i},{name:"method",type:Function}]);if(r)throw r;return function(){return t.apply(n,arguments)}}),Function._validateParams||(Function._validateParams=function(n,i,u){var f,s=i.length,e,c,o,h;if(u=u||typeof u===r,f=Function._validateParameterCount(n,i,u),f)return f.popStackFrame(),f;for(e=0,c=n.length;e<c;e++){if(o=i[Math.min(e,s-1)],h=o.name,o.parameterArray)h+="["+(e-s+1)+"]";else if(!u&&e>=s)break;if(f=Function._validateParameter(n[e],o,h),f)return f.popStackFrame(),f}return t}),Function._validateParameterCount||(Function._validateParameterCount=function(n,r,u){var f,s,e=r.length,h=n.length,c,l,a;if(h<e){for(c=e,f=0;f<e;f++)l=r[f],(l.optional||l.parameterArray)&&c--;h<c&&(s=i)}else if(u&&h>e)for(s=i,f=0;f<e;f++)if(r[f].parameterArray){s=!1;break}return s?(a=o.parameterCount(),a.popStackFrame(),a):t}),Function._validateParameter||(Function._validateParameter=function(n,i,u){var f,h=i.type,l=!!i.integer,a=!!i.domElement,v=!!i.mayBeNull,o,s,c;if(f=Function._validateParameterType(n,h,l,a,v,u),f)return f.popStackFrame(),f;if(o=i.elementType,s=!!i.elementMayBeNull,h===Array&&typeof n!==r&&n!==t&&(o||!s))for(var y=!!i.elementInteger,p=!!i.elementDomElement,e=0;e<n.length;e++)if(c=n[e],f=Function._validateParameterType(c,o,y,p,s,u+"["+e+"]"),f)return f.popStackFrame(),f;return t}),Function._validateParameterType||(Function._validateParameterType=function(i,u,f,e,o,s){var h,c;return typeof i===r?o?t:(h=n.MsAjaxError.argumentUndefined(s),h.popStackFrame(),h):i===t?o?t:(h=n.MsAjaxError.argumentNull(s),h.popStackFrame(),h):u&&!n.MsAjaxTypeHelper.isInstanceOfType(u,i)?(h=n.MsAjaxError.argumentType(s,typeof i,u),h.popStackFrame(),h):t}),window.Type||(window.Type=Function),Type.registerNamespace||(Type.registerNamespace=function(n){for(var i=n.split("."),r=window,t=0;t<i.length;t++)r[i[t]]=r[i[t]]||{},r=r[i[t]]}),Type.prototype.registerClass||(Type.prototype.registerClass=function(n){n={}}),typeof Sys===r&&Type.registerNamespace("Sys"),Error.prototype.popStackFrame||(Error.prototype.popStackFrame=function(){var n=this,s,u;if(arguments.length!==0)throw o.parameterCount();if(typeof n.stack!==r&&n.stack!==t&&typeof n.fileName!==r&&n.fileName!==t&&typeof n.lineNumber!==r&&n.lineNumber!==t){for(var i=n.stack.split(e),f=i[0],h=n.fileName+":"+n.lineNumber;typeof f!==r&&f!==t&&f.indexOf(h)===-1;)i.shift(),f=i[0];(s=i[1],typeof s!==r&&s!==t)&&(u=s.match(/@(.*):(\d+)$/),typeof u!==r&&u!==t)&&(n.fileName=u[1],n.lineNumber=parseInt(u[2]),i.shift(),n.stack=i.join(e))}}),OsfMsAjaxFactory.msAjaxError=o,OsfMsAjaxFactory.msAjaxString=u,OsfMsAjaxFactory.msAjaxDebug=s)}(OfficeExt||(OfficeExt={}));OSF.OUtil.setNamespace("SafeArray",OSF.DDA);OSF.DDA.SafeArray.Response={Status:0,Payload:1};OSF.DDA.SafeArray.UniqueArguments={Offset:"offset",Run:"run",BindingSpecificData:"bindingSpecificData",MergedCellGuid:"{66e7831f-81b2-42e2-823c-89e872d541b3}"};OSF.OUtil.setNamespace("Delegate",OSF.DDA.SafeArray);OSF.DDA.SafeArray.Delegate._onException=function(n,t){var i,r=n.number;if(r)switch(r){case-2146828218:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2147467259:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened;break;case-2146828283:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2147209089:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInvalidParam;break;case-2146827850:default:i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}t.onComplete&&t.onComplete(i||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)};OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod=function(n){var t,i=n.number;if(i)switch(i){case-2146828218:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeNoCapability;break;case-2146827850:default:t=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError}return t||OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError};OSF.DDA.SafeArray.Delegate.SpecialProcessor=function(){function n(n){var t,e,i,r,u,f,o;try{if(e=n.ubound(1),i=n.ubound(2),n=n.toArray(),e==1&&i==1)t=[n];else for(t=[],r=0;r<e;r++){for(u=[],f=0;f<i;f++)o=n[r*i+f],o!=OSF.DDA.SafeArray.UniqueArguments.MergedCellGuid&&u.push(o);u.length>0&&t.push(u)}}catch(s){}return t}var i=[],t={};t[Microsoft.Office.WebExtension.Parameters.Data]=function(){var t=0,i=1;return{toHost:function(n){if(OSF.DDA.TableDataProperties&&typeof n!="string"&&n[OSF.DDA.TableDataProperties.TableRows]!==undefined){var r=[];r[t]=n[OSF.DDA.TableDataProperties.TableRows];r[i]=n[OSF.DDA.TableDataProperties.TableHeaders];n=r}return n},fromHost:function(r){var f,e,u;return r.toArray?(e=r.dimensions(),e===2?f=n(r):(u=r.toArray(),u.length===2&&(u[0]!=null&&u[0].toArray||u[1]!=null&&u[1].toArray)?(f={},f[OSF.DDA.TableDataProperties.TableRows]=n(u[t]),f[OSF.DDA.TableDataProperties.TableHeaders]=n(u[i])):f=u)):f=r,f}}}();OSF.DDA.SafeArray.Delegate.SpecialProcessor.uber.constructor.call(this,i,t);this.unpack=function(n,i){var r,u;return this.isComplexType(n)||OSF.DDA.ListType.isListType(n)?(u=(i||typeof i=="unknown")&&i.toArray,r=u?i.toArray():i||{}):r=this.isDynamicType(n)?t[n].fromHost(i):i,r}};OSF.OUtil.extend(OSF.DDA.SafeArray.Delegate.SpecialProcessor,OSF.DDA.SpecialProcessor);OSF.DDA.SafeArray.Delegate.ParameterMap=OSF.DDA.getDecoratedParameterMap(new OSF.DDA.SafeArray.Delegate.SpecialProcessor,[{type:Microsoft.Office.WebExtension.Parameters.ValueFormat,toHost:[{name:Microsoft.Office.WebExtension.ValueFormat.Unformatted,value:0},{name:Microsoft.Office.WebExtension.ValueFormat.Formatted,value:1}]},{type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.All,value:0}]}]);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.AsyncResultStatus,fromHost:[{name:Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded,value:0},{name:Microsoft.Office.WebExtension.AsyncResultStatus.Failed,value:1}]});OSF.DDA.SafeArray.Delegate.executeAsync=function(n){function t(n){var i=n,f,r,u;if(OSF.OUtil.isArray(n))for(f=i.length,r=0;r<f;r++)i[r]=t(i[r]);else if(OSF.OUtil.isDate(n))i=n.getVarDate();else if(typeof n=="object"&&!OSF.OUtil.isArray(n)){i=[];for(u in n)OSF.OUtil.isFunction(n[u])||(i[u]=t(n[u]))}return i}function i(n){var u=n,r,t;if(n!=null&&n.toArray)for(r=n.toArray(),u=new Array(r.length),t=0;t<r.length;t++)u[t]=i(r[t]);return u}try{n.onCalling&&n.onCalling();OSF.ClientHostController.execute(n.dispId,t(n.hostCallArgs),function(t){var u=t.toArray(),e=u[OSF.DDA.SafeArray.Response.Status],r,f,o;if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeChunkResult)return r=u[OSF.DDA.SafeArray.Response.Payload],r=i(r),r!=null&&(n._chunkResultData||(n._chunkResultData=[]),n._chunkResultData[r[0]]=r[1]),!1;if(n.onReceiving&&n.onReceiving(),n.onComplete){if(e==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){if(u.length>2)for(r=[],f=1;f<u.length;f++)r[f-1]=u[f];else r=u[OSF.DDA.SafeArray.Response.Payload];n._chunkResultData&&(r=i(r),r!=null&&(o=r[r.length-1],n._chunkResultData.length==o?r[r.length-1]=n._chunkResultData:e=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError))}else r=u[OSF.DDA.SafeArray.Response.Payload];n.onComplete(e,r)}return!0})}catch(r){OSF.DDA.SafeArray.Delegate._onException(r,n)}};OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent=function(n,t){var i=(new Date).getTime();return function(r){t.onReceiving&&t.onReceiving();var u=r.toArray?r.toArray()[OSF.DDA.SafeArray.Response.Status]:r;t.onComplete&&t.onComplete(u);OSF.AppTelemetry&&OSF.AppTelemetry.onRegisterDone(n,t.dispId,Math.abs((new Date).getTime()-i),u)}};OSF.DDA.SafeArray.Delegate.registerEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);try{OSF.ClientHostController.registerEvent(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.unregisterEventAsync=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.unregisterEvent(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.ClientMode={ReadWrite:0,ReadOnly:1};OSF.DDA.RichInitializationReason={1:Microsoft.Office.WebExtension.InitializationReason.Inserted,2:Microsoft.Office.WebExtension.InitializationReason.DocumentOpened};OSF.InitializationHelper=function(n,t,i,r,u){var f=this;f._hostInfo=n;f._webAppState=t;f._context=i;f._settings=r;f._hostFacade=u;f._initializeSettings=f.initializeSettings};OSF.InitializationHelper.prototype.deserializeSettings=function(n,t){var r=OSF.OUtil.getSessionStorage(),i,u;return r&&(i=r.getItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey()),i?n=JSON.parse(i):(i=JSON.stringify(n),r.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),i))),u=OSF.DDA.SettingsManager.deserializeSettings(n),t?new OSF.DDA.RefreshableSettings(u):new OSF.DDA.Settings(u)};OSF.InitializationHelper.prototype.saveAndSetDialogInfo=function(){};OSF.InitializationHelper.prototype.setAgaveHostCommunication=function(){};OSF.InitializationHelper.prototype.prepareRightBeforeWebExtensionInitialize=function(n){this.prepareApiSurface(n);Microsoft.Office.WebExtension.initialize(this.getInitializationReason(n))};OSF.InitializationHelper.prototype.prepareApiSurface=function(n){var r=new OSF.DDA.License(n.get_eToken()),u=OSF.DDA.OfficeTheme&&OSF.DDA.OfficeTheme.getOfficeTheme?OSF.DDA.OfficeTheme.getOfficeTheme:null,t,i;n.get_isDialog()?OSF.DDA.UI.ChildUI&&(n.ui=new OSF.DDA.UI.ChildUI):OSF.DDA.UI.ParentUI&&(n.ui=new OSF.DDA.UI.ParentUI,OfficeExt.Container&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.CloseContainerAsync]));OSF.DDA.OpenBrowser&&OSF.DDA.DispIdHost.addAsyncMethods(n.ui,[OSF.DDA.AsyncMethodNames.OpenBrowserWindow]);OSF.DDA.Auth&&(n.auth=new OSF.DDA.Auth,OSF.DDA.DispIdHost.addAsyncMethods(n.auth,[OSF.DDA.AsyncMethodNames.GetAccessTokenAsync]));OSF._OfficeAppFactory.setContext(new OSF.DDA.Context(n,n.doc,r,null,u));t=OSF.DDA.DispIdHost.getClientDelegateMethods;i=OSF.DDA.SafeArray.Delegate.ParameterMap;OSF._OfficeAppFactory.setHostFacade(new OSF.DDA.DispIdHost.Facade(t,i))};OSF.InitializationHelper.prototype.getInitializationReason=function(n){return OSF.DDA.RichInitializationReason[n.get_reason()]};OSF.DDA.DispIdHost.getClientDelegateMethods=function(n){var t={},i,r;return t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.SafeArray.Delegate.executeAsync,t[OSF.DDA.DispIdHost.Delegates.RegisterEventAsync]=OSF.DDA.SafeArray.Delegate.registerEventAsync,t[OSF.DDA.DispIdHost.Delegates.UnregisterEventAsync]=OSF.DDA.SafeArray.Delegate.unregisterEventAsync,t[OSF.DDA.DispIdHost.Delegates.OpenDialog]=OSF.DDA.SafeArray.Delegate.openDialog,t[OSF.DDA.DispIdHost.Delegates.CloseDialog]=OSF.DDA.SafeArray.Delegate.closeDialog,t[OSF.DDA.DispIdHost.Delegates.MessageParent]=OSF.DDA.SafeArray.Delegate.messageParent,t[OSF.DDA.DispIdHost.Delegates.SendMessage]=OSF.DDA.SafeArray.Delegate.sendMessage,OSF.DDA.AsyncMethodNames.RefreshAsync&&n==OSF.DDA.AsyncMethodNames.RefreshAsync.id&&(i=function(n,t,i){return OSF.DDA.ClientSettingsManager.read(t,i)},t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(i)),OSF.DDA.AsyncMethodNames.SaveAsync&&n==OSF.DDA.AsyncMethodNames.SaveAsync.id&&(r=function(n,t,i){return OSF.DDA.ClientSettingsManager.write(n[OSF.DDA.SettingsManager.SerializedSettings],n[Microsoft.Office.WebExtension.Parameters.OverwriteIfStale],t,i)},t[OSF.DDA.DispIdHost.Delegates.ExecuteAsync]=OSF.DDA.ClientSettingsManager.getSettingsExecuteMethod(r)),t};OSF=OSF||{},function(n){var t=function(){function n(n){this.data=n;this.safeArrayFlag=this.isSafeArray(n)}var t=!1;return n.prototype.dimensions=function(){var n=0;return this.safeArrayFlag?n=this.data[0][0]:this.isArray()&&(n=2),n},n.prototype.getItem=function(){var i=[],n=null,t;for(i=this.safeArrayFlag?this.toArray():this.data,n=i,t=0;t<arguments.length;t++)n=n[arguments[t]];return n},n.prototype.lbound=function(){return 0},n.prototype.ubound=function(n){var t=this,i=0;if(t.safeArrayFlag)i=t.data[0][n];else if(t.isArray())if(n==1)return t.data.length;else if(n==2)if(OSF.OUtil.isArray(t.data[0]))return t.data[0].length;else if(t.data[0]!=null)return 1;return i},n.prototype.toArray=function(){var i=this,r;if(i.isArray()==t)return i.data;for(var u=[],e=i.safeArrayFlag?1:0,f=e;f<i.data.length;f++)r=i.data[f],i.isSafeArray(r)?u.push(new n(r)):u.push(r);return u},n.prototype.isArray=function(){return OSF.OUtil.isArray(this.data)},n.prototype.isSafeArray=function(n){var e=t,i,o,r,u,f;if(OSF.OUtil.isArray(n)&&OSF.OUtil.isArray(n[0])){if(i=n[0],o=i[0],i.length!=o+1)return t;for(r=1,u=1;u<i.length;u++){if(f=i[u],isFinite(f)==t)return t;r=r*f}r++;e=r==n.length}return e},n}();n.WebkitSafeArray=t}(OSFWebkit||(OSFWebkit={})),function(n){var t;(function(n){function u(n,i){t.agaveHostCallback(n,i)}function f(n,i){t.agaveHostEventCallback(n,i)}function e(){return t==null&&(t=new i("OSF.ScriptMessaging.agaveHostCallback","OSF.ScriptMessaging.agaveHostEventCallback")),t}var t=null,r,i;n.agaveHostCallback=u;n.agaveHostEventCallback=f;n.GetScriptMessenger=e;r=function(){function n(n,t,i){this.id=n;this.targetId=t;this.handler=i}return n}();i=function(){function n(t,i){var r=this;r.callingIndex=0;r.callbackList={};r.eventHandlerList={};r.asyncMethodCallbackFunctionName=t;r.eventCallbackFunctionName=i;r.conversationId=n.getCurrentTimeMS().toString()}return n.prototype.invokeMethod=function(n,t,i,r){var u={};this.postWebkitMessage(u,n,t,i,r)},n.prototype.registerEvent=function(n,t,i,u,f,e){var o={eventCallbackFunction:this.eventCallbackFunctionName},s={id:i,targetId:u},h=this.postWebkitMessage(o,n,t,s,e);this.eventHandlerList[h]=new r(i,u,f)},n.prototype.unregisterEvent=function(n,t,i,r,u){var f=this,s={id:i,targetId:r},e,o;for(e in f.eventHandlerList)f.eventHandlerList.hasOwnProperty(e)&&(o=f.eventHandlerList[e],o.id==i&&o.targetId==r&&delete f.eventHandlerList[e]);f.invokeMethod(n,t,s,u)},n.prototype.agaveHostCallback=function(n,t){var r=this.callbackList[n],i;r&&(i=r(t),(i===undefined||i===!0)&&delete this.callbackList[n])},n.prototype.agaveHostEventCallback=function(n,t){var i=this.eventHandlerList[n];i&&i.handler(t)},n.prototype.postWebkitMessage=function(t,i,r,u,f){var e=this,s=e.generateCorrelationId(),h,o;return e.callbackList[s]=f,t.methodId=r,t.params=u,t.callbackId=s,t.callbackFunction=e.asyncMethodCallbackFunctionName,h=function(){window.webkit.messageHandlers[i].postMessage(JSON.stringify(t))},o=n.getCurrentTimeMS(),e.lastMessageTimestamp==null||o-e.lastMessageTimestamp>=n.MESSAGE_TIME_DELTA?(h(),e.lastMessageTimestamp=o):(e.lastMessageTimestamp+=n.MESSAGE_TIME_DELTA,setTimeout(function(){h()},e.lastMessageTimestamp-o)),s},n.prototype.generateCorrelationId=function(){return++this.callingIndex,this.conversationId+this.callingIndex},n.getCurrentTimeMS=function(){return(new Date).getTime()},n.MESSAGE_TIME_DELTA=10,n}();n.WebkitScriptMessaging=i})(t=n.ScriptMessaging||(n.ScriptMessaging={}))}(OSFWebkit||(OSFWebkit={}));OSF.ScriptMessaging=OSFWebkit.ScriptMessaging,function(n){var i,r,t;n.MessageHandlerName="Agave";n.PopupMessageHandlerName="WefPopupHandler",function(n){var t="HostFullVersion",i="HostCustomMessage",r="RequirementMatrix",u="CommerceAllowed",f="TouchEnabled",e="InstanceId",o="CorrelationId",s="APISetVersion",h="SolutionToken",c="ControlIntegrationLevel",l="ActivationMode",a="DocumentUrl",v="BindingCount",y="AppDataLocale",p="APPUILocale",w="AppCapabilities",b="APIVersionSequence",k="RevisionVersion",d="MinorVersion",g="MajorVersion",nt="SolutionReferenceId",tt="Settings";n[n[tt]=0]=tt;n[n[nt]=1]=nt;n[n.AppType=2]="AppType";n[n[g]=3]=g;n[n[d]=4]=d;n[n[k]=5]=k;n[n[b]=6]=b;n[n[w]=7]=w;n[n[p]=8]=p;n[n[y]=9]=y;n[n[v]=10]=v;n[n[a]=11]=a;n[n[l]=12]=l;n[n[c]=13]=c;n[n[h]=14]=h;n[n[s]=15]=s;n[n[o]=16]=o;n[n[e]=17]=e;n[n[f]=18]=f;n[n[u]=19]=u;n[n[r]=20]=r;n[n[i]=21]=i;n[n[t]=22]=t}(n.AppContextProperties||(n.AppContextProperties={}));i=n.AppContextProperties,function(n){var t="SendMessage",i="GetContext",r="WriteSettings",u="UnregisterEvent",f="RegisterEvent";n[n.Execute=1]="Execute";n[n[f]=2]=f;n[n[u]=3]=u;n[n[r]=4]=r;n[n[i]=5]=i;n[n[t]=6]=t}(n.MethodId||(n.MethodId={}));r=n.MethodId;t=function(){function t(n){this.hostScriptProxy=n}var r="message",i=null;return t.prototype.execute=function(t,r,u){var f=r,e,o;f==i&&(f=[]);e={id:t,apiArgs:f};o=function(t){var e,f,r;if(u){if(e=[],OSF.OUtil.isArray(t))for(f=0;f<t.length;f++)r=t[f],OSF.OUtil.isArray(r)&&(r=new n.WebkitSafeArray(r)),e.unshift(r);return u.apply(i,e)}};this.hostScriptProxy.invokeMethod(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.Execute,e,o)},t.prototype.registerEvent=function(t,i,r,u){var f=function(t){var i=t,u=0;OSF.OUtil.isArray(t)&&t.length>=2&&(i=t[0],u=t[1]);r&&r(u,new n.WebkitSafeArray(i))},e=function(t){if(u)return u(new n.WebkitSafeArray(t))};this.hostScriptProxy.registerEvent(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.RegisterEvent,t,i,f,e)},t.prototype.unregisterEvent=function(t,i,r){var u=function(t){return r(new n.WebkitSafeArray(t))};this.hostScriptProxy.unregisterEvent(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.UnregisterEvent,t,i,u)},t.prototype.messageParent=function(n){var t=n[Microsoft.Office.WebExtension.Parameters.MessageToParent],i={dialogMessage:{messageType:OSF.DialogMessageType.DialogMessageReceived,messageContent:t}};window.opener.postMessage(JSON.stringify(i),window.location.origin)},t.prototype.openDialog=function(n,u,f,e){function c(t){if(t.origin==window.location.origin)try{var i=JSON.parse(t.data);i.dialogMessage&&f(n,[OSF.DialogMessageType.DialogMessageReceived,i.dialogMessage.messageContent])}catch(r){OsfMsAjaxFactory.msAjaxDebug.trace("messages received cannot be handlered. Message:"+t.data)}}function k(){try{(t.popup==i||t.popup.closed)&&(window.clearInterval(t.interval),window.removeEventListener(r,c),t.NotifyError=i,t.popup=i,f(n,[OSF.DialogMessageType.DialogClosed]))}catch(u){OsfMsAjaxFactory.msAjaxDebug.trace("Error happened when popup window closed.")}}var l,o,h,y;if(t.popup&&!t.popup.closed){e(OSF.DDA.ErrorCodeManager.errorCodes.ooeDialogAlreadyOpened);return}l="action=displayDialog";t.OpenDialogCallback=undefined;var a="#",s=JSON.parse(u),v=s.url;if(v){o=v.split(a);h="?";o[0].indexOf("?")>-1&&(h="&");var p=screen.width*s.width/100,w=screen.height*s.height/100,b="width="+p+", height="+w;o[0]=o[0].concat(h).concat(l);y=o.join(a);t.popup=window.open(y,"",b);t.OpenDialogCallback=function(i){if(i==OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess){window.addEventListener(r,c);this.messageEventListener=c;t.interval=window.setInterval(k,1e3);function u(t){f(n,[t])}t.NotifyError=u}e(i)}}},t.prototype.closeDialog=function(n,u,f){t.popup?(t.interval&&window.clearInterval(t.interval),t.popup.close(),t.popup=i,window.removeEventListener(r,this.messageEventListener),t.NotifyError=i,f(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess)):f(OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError)},t.prototype.sendMessage=function(n){var t=n[Microsoft.Office.WebExtension.Parameters.MessageContent];!isNaN(parseFloat(t))&&isFinite(t)&&(t=t.toString());this.hostScriptProxy.invokeMethod(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.SendMessage,t,i)},t}();n.WebkitHostController=t}(OSFWebkit||(OSFWebkit={}));OSF.Webkit=OSFWebkit;OSF.ClientHostController=new OSFWebkit.WebkitHostController(OSF.ScriptMessaging.GetScriptMessenger());OSF.DDA.ClientSettingsManager={getSettingsExecuteMethod:function(n){return function(t){var i,r,u=function(n,i){t.onReceiving&&t.onReceiving();t.onComplete&&t.onComplete(n,i)};try{n(t.hostCallArgs,t.onCalling,u)}catch(f){i=OSF.DDA.ErrorCodeManager.errorCodes.ooeInternalError;r={name:Strings.OfficeOM.L_InternalError,message:f};u(i,r)}}},read:function(n,t){var u=[],f=[],i,r;n&&n();i=OSF._OfficeAppFactory.getInitializationHelper();r=function(n){t&&t(OSF.DDA.ErrorCodeManager.errorCodes.ooeSuccess,n.get_settings())};i.getAppContext(null,r)},write:function(n,t,i,r){var u={},e=[],o=[],f,s;for(f in n)e.push(f),o.push(n[f]);u.keys=e;u.values=o;i&&i();s=function(n){r&&r(n[0],null)};OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(OSF.Webkit.MessageHandlerName,OSF.Webkit.MethodId.WriteSettings,u,s)}};OSF.InitializationHelper.prototype.initializeSettings=function(n,t){var i=n.get_settings();return this.deserializeSettings(i,t)};OSF.InitializationHelper.prototype.getAppContext=function(n,t){var r=function(n){for(var f,i=OSF.Webkit.AppContextProperties,h=n[i.AppType],e=n[i.Settings],o={},s=e[0],c=e[1],r=0;r<s.length;r++)o[s[r]]=c[r];var l=n[i.SolutionReferenceId],a=n[i.MajorVersion],v=n[i.MinorVersion],y=n[i.AppCapabilities],p=n[i.APPUILocale],w=n[i.AppDataLocale],b=n[i.DocumentUrl],k=n[i.ActivationMode],d=n[i.ControlIntegrationLevel],u=n[i.SolutionToken];u=u?u.toString():"";var g=n[i.CorrelationId],nt=n[i.InstanceId],tt=n[i.TouchEnabled],it=n[i.CommerceAllowed],rt=n[i.RequirementMatrix],ut=n[i.HostCustomMessage],ft=n[i.HostFullVersion];f=new OSF.OfficeAppContext(l,h,a,p,w,b,y,o,k,d,u,g,nt,tt,it,v,rt,ut,ft);OSF.AppTelemetry&&OSF.AppTelemetry.initialize(f);t(f)},i;i=this._hostInfo.isDialog?OSF.Webkit.PopupMessageHandlerName:OSF.Webkit.MessageHandlerName;OSF.ScriptMessaging.GetScriptMessenger().invokeMethod(i,OSF.Webkit.MethodId.GetContext,[],r)},function(n){var u="ResponseTime",f="Message",i="SessionId",r="CorrelationId",t=!0,e=function(){function n(n){this._table=n;this._fields={}}return Object.defineProperty(n.prototype,"Fields",{get:function(){return this._fields},enumerable:t,configurable:t}),Object.defineProperty(n.prototype,"Table",{get:function(){return this._table},enumerable:t,configurable:t}),n.prototype.SerializeFields=function(){},n.prototype.SetSerializedField=function(n,t){typeof t!="undefined"&&t!==null&&(this._serializedFields[n]=t.toString())},n.prototype.SerializeRow=function(){var n=this;return n._serializedFields={},n.SetSerializedField("Table",n._table),n.SerializeFields(),JSON.stringify(n._serializedFields)},n}(),o,s,h,c,l;n.BaseUsageData=e;o=function(n){function u(){n.call(this,"AppActivated")}var e="IsFromWacAutomation",o="WacHostEnvironment",s="HostJSVersion",h="OfficeJSVersion",c="DocUrl",l="AppSizeHeight",a="AppSizeWidth",v="ClientId",y="HostVersion",p="Host",w="UserId",b="Browser",k="AssetId",d="AppURL",g="AppInstanceId",nt="AppId";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,nt,{get:function(){return this.Fields[nt]},set:function(n){this.Fields[nt]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,g,{get:function(){return this.Fields[g]},set:function(n){this.Fields[g]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,d,{get:function(){return this.Fields[d]},set:function(n){this.Fields[d]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,k,{get:function(){return this.Fields[k]},set:function(n){this.Fields[k]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,b,{get:function(){return this.Fields[b]},set:function(n){this.Fields[b]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,w,{get:function(){return this.Fields[w]},set:function(n){this.Fields[w]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,p,{get:function(){return this.Fields[p]},set:function(n){this.Fields[p]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,y,{get:function(){return this.Fields[y]},set:function(n){this.Fields[y]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,v,{get:function(){return this.Fields[v]},set:function(n){this.Fields[v]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,a,{get:function(){return this.Fields[a]},set:function(n){this.Fields[a]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,l,{get:function(){return this.Fields[l]},set:function(n){this.Fields[l]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,c,{get:function(){return this.Fields[c]},set:function(n){this.Fields[c]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(nt,n.AppId);n.SetSerializedField(g,n.AppInstanceId);n.SetSerializedField(d,n.AppURL);n.SetSerializedField(k,n.AssetId);n.SetSerializedField(b,n.Browser);n.SetSerializedField(w,n.UserId);n.SetSerializedField(p,n.Host);n.SetSerializedField(y,n.HostVersion);n.SetSerializedField(v,n.ClientId);n.SetSerializedField(a,n.AppSizeWidth);n.SetSerializedField(l,n.AppSizeHeight);n.SetSerializedField(f,n.Message);n.SetSerializedField(c,n.DocUrl);n.SetSerializedField(h,n.OfficeJSVersion);n.SetSerializedField(s,n.HostJSVersion);n.SetSerializedField(o,n.WacHostEnvironment);n.SetSerializedField(e,n.IsFromWacAutomation)},u}(e);n.AppActivatedUsageData=o;s=function(n){function f(){n.call(this,"ScriptLoad")}var e="StartTime",o="ScriptId";return __extends(f,n),Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t}),f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(o,n.ScriptId);n.SetSerializedField(e,n.StartTime);n.SetSerializedField(u,n.ResponseTime)},f}(e);n.ScriptLoadUsageData=s;h=function(n){function u(){n.call(this,"AppClosed")}var f="CloseMethod",e="OpenTime",o="AppSizeFinalHeight",s="AppSizeFinalWidth",h="FocusTime";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(h,n.FocusTime);n.SetSerializedField(s,n.AppSizeFinalWidth);n.SetSerializedField(o,n.AppSizeFinalHeight);n.SetSerializedField(e,n.OpenTime);n.SetSerializedField(f,n.CloseMethod)},u}(e);n.AppClosedUsageData=h;c=function(n){function f(){n.call(this,"APIUsage")}var e="ErrorType",o="Parameters",s="APIID",h="APIType";return __extends(f,n),Object.defineProperty(f.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,h,{get:function(){return this.Fields[h]},set:function(n){this.Fields[h]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,s,{get:function(){return this.Fields[s]},set:function(n){this.Fields[s]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,o,{get:function(){return this.Fields[o]},set:function(n){this.Fields[o]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,u,{get:function(){return this.Fields[u]},set:function(n){this.Fields[u]=n},enumerable:t,configurable:t}),Object.defineProperty(f.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),f.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(h,n.APIType);n.SetSerializedField(s,n.APIID);n.SetSerializedField(o,n.Parameters);n.SetSerializedField(u,n.ResponseTime);n.SetSerializedField(e,n.ErrorType)},f}(e);n.APIUsageUsageData=c;l=function(n){function u(){n.call(this,"AppInitialization")}var e="SuccessCode";return __extends(u,n),Object.defineProperty(u.prototype,r,{get:function(){return this.Fields[r]},set:function(n){this.Fields[r]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,i,{get:function(){return this.Fields[i]},set:function(n){this.Fields[i]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,e,{get:function(){return this.Fields[e]},set:function(n){this.Fields[e]=n},enumerable:t,configurable:t}),Object.defineProperty(u.prototype,f,{get:function(){return this.Fields[f]},set:function(n){this.Fields[f]=n},enumerable:t,configurable:t}),u.prototype.SerializeFields=function(){var n=this;n.SetSerializedField(r,n.CorrelationId);n.SetSerializedField(i,n.SessionId);n.SetSerializedField(e,n.SuccessCode);n.SetSerializedField(f,n.Message)},u}(e);n.AppInitializationUsageData=l}(OSFLog||(OSFLog={})),function(n){"use strict";function u(){}function f(){}function e(){try{return new t}catch(n){return null}}var i,r,t;(function(n){n[n.info=0]="info";n[n.warning=1]="warning";n[n.error=2]="error"})(n.TraceLevel||(n.TraceLevel={}));i=n.TraceLevel,function(n){n[n.none=0]="none";n[n.flush=1]="flush"}(n.SendFlag||(n.SendFlag={}));r=n.SendFlag;n.allowUploadingData=u;n.sendLog=f;t=function(){function n(){}return n.prototype.writeLog=function(){},n.prototype.loadProxyFrame=function(){},n}();OSF.Logger||(OSF.Logger=n);n.ulsEndpoint=e()}(Logger||(Logger={})),function(n){var t=function(){function n(){}return n.prototype.getAriaCDNLocation=function(){return OSF._OfficeAppFactory.getLoadScriptHelper().getOfficeJsBasePath()+"/ariatelemetry/aria-web-telemetry.js"},n.getInstance=function(){return n.AriaLoggerObj===undefined&&(n.AriaLoggerObj=new n),n.AriaLoggerObj},n.prototype.isIUsageData=function(n){return n.Fields!==undefined},n.prototype.loadAriaScriptAndLog=function(n,t){var i=1e3;OSF.OUtil.loadScript(this.getAriaCDNLocation(),function(){var u,i,r,f;try{this.ALogger||(u="db334b301e7b474db5e0f02f07c51a47-a1b5bc36-1bbe-482f-a64a-c2d9cb606706-7439",this.ALogger=AWTLogManager.initialize(u));i=new AWTEventProperties;i.setName("Office.Extensibility.OfficeJS."+n);for(r in t)r.toLowerCase()!=="table"&&i.setProperty(r,t[r]);f=new Date;i.setProperty("Date",f.toISOString());this.ALogger.logEvent(i)}catch(e){}},i)},n.prototype.logData=function(n){this.isIUsageData(n)?this.loadAriaScriptAndLog(n.Table,n.Fields):this.loadAriaScriptAndLog(n.Table,n)},n}();n.AriaLogger=t}(OSFAriaLogger||(OSFAriaLogger={})),function(n){function u(n){return n&&(n=n.replace(/[{}]/g,r).toLowerCase()),n||r}function y(f){var h,o;n.enableTelemetry&&(t||(t=new v,t.hostVersion=f.get_hostFullVersion()?f.get_hostFullVersion():f.get_appVersion(),t.appId=f.get_id(),t.host=f.get_appName(),t.browser=window.navigator.userAgent,t.correlationId=u(f.get_correlationId()),t.clientId=(new c).getClientId(),t.appInstanceId=f.get_appInstanceId(),t.appInstanceId&&(t.appInstanceId=t.appInstanceId.replace(/[{}]/g,r).toLowerCase()),t.message=f.get_hostCustomMessage(),t.officeJSVersion=OSF.ConstantNames.FileVersion,t.hostJSVersion="16.0.9124.1000",f._wacHostEnvironment&&(t.wacHostEnvironment=f._wacHostEnvironment),f._isFromWacAutomation!==undefined&&f._isFromWacAutomation!==i&&(t.isFromWacAutomation=f._isFromWacAutomation.toString().toLowerCase()),h=f.get_docUrl(),t.docUrl=a.test(h)?h:r,o=location.href,o&&(o=o.split("?")[0].split("#")[0]),t.appURL=o,function(n,t){var o,s,u,f,e;t.assetId=r;t.userId=r;try{o=decodeURIComponent(n);s=new DOMParser;u=s.parseFromString(o,"text/xml");f=u.getElementsByTagName("t")[0].attributes.getNamedItem("cid");e=u.getElementsByTagName("t")[0].attributes.getNamedItem("oid");f&&f.nodeValue?t.userId=f.nodeValue:e&&e.nodeValue&&(t.userId=e.nodeValue);t.assetId=u.getElementsByTagName("t")[0].attributes.getNamedItem("aid").nodeValue}catch(h){}finally{o=i;u=i;s=i}}(f.get_eToken(),t),function(){var l=new Date,r=i,o=0,c=!1,u=function(){document.hasFocus()?r==i&&(r=new Date):r&&(o+=Math.abs((new Date).getTime()-r.getTime()),r=i)},t=[],h,f;for(t.push(new e("focus",u)),t.push(new e("blur",u)),t.push(new e("focusout",u)),t.push(new e("focusin",u)),h=function(){for(var u=0;u<t.length;u++)OSF.OUtil.removeEventListener(window,t[u].name,t[u].handler);if(t.length=0,!c){document.hasFocus()&&r&&(o+=Math.abs((new Date).getTime()-r.getTime()),r=i);n.onAppClosed(Math.abs((new Date).getTime()-l.getTime()),o);c=s}},t.push(new e("beforeunload",h)),t.push(new e("unload",h)),f=0;f<t.length;f++)OSF.OUtil.addEventListener(window,t[f].name,t[f].handler);u()}(),n.onAppActivated()))}function p(){if(t){(new c).enumerateLog(function(n,t){return(new o).LogRawData(t)},s);var n=new OSFLog.AppActivatedUsageData;n.SessionId=f;n.AppId=t.appId;n.AssetId=t.assetId;n.AppURL=t.appURL;n.UserId=t.userId;n.ClientId=t.clientId;n.Browser=t.browser;n.Host=t.host;n.HostVersion=t.hostVersion;n.CorrelationId=u(t.correlationId);n.AppSizeWidth=window.innerWidth;n.AppSizeHeight=window.innerHeight;n.AppInstanceId=t.appInstanceId;n.Message=t.message;n.DocUrl=t.docUrl;n.OfficeJSVersion=t.officeJSVersion;n.HostJSVersion=t.hostJSVersion;t.wacHostEnvironment&&(n.WacHostEnvironment=t.wacHostEnvironment);t.isFromWacAutomation!==undefined&&t.isFromWacAutomation!==i&&(n.IsFromWacAutomation=t.isFromWacAutomation);(new o).LogData(n)}}function w(n,t,i,r){var e=new OSFLog.ScriptLoadUsageData;e.CorrelationId=u(r);e.SessionId=f;e.ScriptId=n;e.StartTime=t;e.ResponseTime=i;(new o).LogData(e)}function b(n,i,r,e,s){if(t){var c=new OSFLog.APIUsageUsageData;c.CorrelationId=u(h);c.SessionId=f;c.APIType=n;c.APIID=i;c.Parameters=r;c.ResponseTime=e;c.ErrorType=s;(new o).LogData(c)}}function k(n,t,u,f){var e=i,o;if(t)if(typeof t=="number")e=String(t);else if(typeof t=="object")for(o in t)e!==i?e+=",":e=r,typeof t[o]=="number"&&(e+=String(t[o]));else e=r;OSF.AppTelemetry.onCallDone("method",n,e,u,f)}function d(n,t){OSF.AppTelemetry.onCallDone("property",-1,n,t)}function g(n,t){OSF.AppTelemetry.onCallDone("event",n,i,0,t)}function nt(n,t,r,u){OSF.AppTelemetry.onCallDone(n?"registerevent":"unregisterevent",t,i,r,u)}function tt(n,i){if(t){var r=new OSFLog.AppClosedUsageData;r.CorrelationId=u(h);r.SessionId=f;r.FocusTime=i;r.OpenTime=n;r.AppSizeFinalWidth=window.innerWidth;r.AppSizeFinalHeight=window.innerHeight;(new c).saveLog(f,r.SerializeRow())}}function it(n){h=u(n)}function l(n,t){var i=new OSFLog.AppInitializationUsageData;i.CorrelationId=u(h);i.SessionId=f;i.SuccessCode=n?1:0;i.Message=t;(new o).LogData(i)}function rt(n){l(!1,n)}function ut(n){l(s,n)}var i=null,s=!0,r="";"use strict";var t,f=OSF.OUtil.Guid.generateNewGuid(),h=r,a=new RegExp("^https?://store\\.office(ppe|-int)?\\.com/","i");n.enableTelemetry=s;var v=function(){function n(){}return n}(),e=function(){function n(n,t){this.name=n;this.handler=t}return n}(),c=function(){function n(){this.clientIDKey="Office API client";this.logIdSetKey="Office App Log Id Set"}return n.prototype.getClientId=function(){var t=this,n=t.getValue(t.clientIDKey);return(!n||n.length<=0||n.length>40)&&(n=OSF.OUtil.Guid.generateNewGuid(),t.setValue(t.clientIDKey,n)),n},n.prototype.saveLog=function(n,t){var i=this,u=i.getValue(i.logIdSetKey);u=(u&&u.length>0?u+";":r)+n;i.setValue(i.logIdSetKey,u);i.setValue(n,t)},n.prototype.enumerateLog=function(n,t){var i=this,e=i.getValue(i.logIdSetKey),u,o,r,f;if(e){u=e.split(";");for(o in u)r=u[o],f=i.getValue(r),f&&(n&&n(r,f),t&&i.remove(r));t&&i.remove(i.logIdSetKey)}},n.prototype.getValue=function(n){var t=OSF.OUtil.getLocalStorage(),i=r;return t&&(i=t.getItem(n)),i},n.prototype.setValue=function(n,t){var i=OSF.OUtil.getLocalStorage();i&&i.setItem(n,t)},n.prototype.remove=function(n){var t=OSF.OUtil.getLocalStorage();if(t)try{t.removeItem(n)}catch(i){}},n}(),o=function(){function t(){}return t.prototype.LogData=function(t){if(n.enableTelemetry)try{OSFAriaLogger.AriaLogger.getInstance().logData(t)}catch(i){}},t.prototype.LogRawData=function(t){if(n.enableTelemetry)try{OSFAriaLogger.AriaLogger.getInstance().logData(JSON.parse(t))}catch(i){}},t}();n.initialize=y;n.onAppActivated=p;n.onScriptDone=w;n.onCallDone=b;n.onMethodDone=k;n.onPropertyDone=d;n.onEventDone=g;n.onRegisterDone=nt;n.onAppClosed=tt;n.setOsfControlAppCorrelationId=it;n.doAppInitializationLogging=l;n.logAppCommonMessage=rt;n.logAppException=ut;OSF.AppTelemetry=n}(OSFAppTelemetry||(OSFAppTelemetry={}));Microsoft.Office.WebExtension.EventType={};OSF.EventDispatch=function(n){var i=this,r,t,u;if(i._eventHandlers={},i._objectEventHandlers={},i._queuedEventsArgs={},n!=null)for(r=0;r<n.length;r++)t=n[r],u=t=="objectDeleted"||t=="objectSelectionChanged"||t=="objectDataChanged"||t=="contentControlAdded",u?i._objectEventHandlers[t]={}:i._eventHandlers[t]=[],i._queuedEventsArgs[t]=[]};OSF.EventDispatch.prototype={getSupportedEvents:function(){var n=[];for(var t in this._eventHandlers)n.push(t);for(t in this._objectEventHandlers)n.push(t);return n},supportsEvent:function(n){for(var t in this._eventHandlers)if(n==t)return!0;for(t in this._objectEventHandlers)if(n==t)return!0;return!1},hasEventHandler:function(n,t){var i=this._eventHandlers[n],r;if(i&&i.length>0)for(r=0;r<i.length;r++)if(i[r]===t)return!0;return!1},hasObjectEventHandler:function(n,t,i){var f=this._objectEventHandlers[n],r,u;if(f!=null)for(r=f[t],u=0;r!=null&&u<r.length;u++)if(r[u]===i)return!0;return!1},addEventHandler:function(n,t){if(typeof t!="function")return!1;var i=this._eventHandlers[n];return i&&!this.hasEventHandler(n,t)?(i.push(t),!0):!1},addObjectEventHandler:function(n,t,i){if(typeof i!="function")return!1;var r=this._objectEventHandlers[n];return r&&!this.hasObjectEventHandler(n,t,i)?(r[t]==null&&(r[t]=[]),r[t].push(i),!0):!1},addEventHandlerAndFireQueuedEvent:function(n,t){var r=this._eventHandlers[n],u=r.length==0,i=this.addEventHandler(n,t);return u&&i&&this.fireQueuedEvent(n),i},removeEventHandler:function(n,t){var i=this._eventHandlers[n],r;if(i&&i.length>0)for(r=0;r<i.length;r++)if(i[r]===t)return i.splice(r,1),!0;return!1},removeObjectEventHandler:function(n,t,i){var f=this._objectEventHandlers[n],r,u;if(f!=null)for(r=f[t],u=0;r!=null&&u<r.length;u++)if(r[u]===i)return r.splice(u,1),!0;return!1},clearEventHandlers:function(n){return typeof this._eventHandlers[n]!="undefined"&&this._eventHandlers[n].length>0?(this._eventHandlers[n]=[],!0):!1},clearObjectEventHandlers:function(n,t){return this._objectEventHandlers[n]!=null&&this._objectEventHandlers[n][t]!=null?(this._objectEventHandlers[n][t]=[],!0):!1},getEventHandlerCount:function(n){return this._eventHandlers[n]!=undefined?this._eventHandlers[n].length:-1},getObjectEventHandlerCount:function(n,t){return this._objectEventHandlers[n]==null||this._objectEventHandlers[n][t]==null?0:this._objectEventHandlers[n][t].length},fireEvent:function(n){var t,r,i;if(n.type==undefined)return!1;if(t=n.type,t&&this._eventHandlers[t]){for(r=this._eventHandlers[t],i=0;i<r.length;i++)r[i](n);return!0}else return!1},fireObjectEvent:function(n,t){var i,f,r,u;if(t.type==undefined)return!1;if(i=t.type,i&&this._objectEventHandlers[i]&&(f=this._objectEventHandlers[i],r=f[n],r!=null)){for(u=0;u<r.length;u++)r[u](t);return!0}return!1},fireOrQueueEvent:function(n){var t=this,i=n.type,r,u;return i&&t._eventHandlers[i]?(r=t._eventHandlers[i],u=t._queuedEventsArgs[i],r.length==0?u.push(n):t.fireEvent(n),!0):!1},fireQueuedEvent:function(n){var t,i,r,u;if(n&&this._eventHandlers[n]&&(t=this._eventHandlers[n],i=this._queuedEventsArgs[n],t.length>0)){for(r=t[0];i.length>0;)u=i.shift(),r(u);return!0}return!1},clearQueuedEvent:function(n){if(n&&this._eventHandlers[n]){var t=this._queuedEventsArgs[n];t&&(this._queuedEventsArgs[n]=[])}}};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureEventArgs=function(n,t,i){var o="hostPlatform",f="outlook",e="hostType",u=this,r;switch(n){case Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged:r=new OSF.DDA.DocumentSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.BindingSelectionChanged:r=new OSF.DDA.BindingSelectionChangedEventArgs(u.manufactureBinding(i,t.document),i[OSF.DDA.PropertyDescriptors.Subset]);break;case Microsoft.Office.WebExtension.EventType.BindingDataChanged:r=new OSF.DDA.BindingDataChangedEventArgs(u.manufactureBinding(i,t.document));break;case Microsoft.Office.WebExtension.EventType.SettingsChanged:r=new OSF.DDA.SettingsChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ActiveViewChanged:r=new OSF.DDA.ActiveViewChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.OfficeThemeChanged:r=new OSF.DDA.Theming.OfficeThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DocumentThemeChanged:r=new OSF.DDA.Theming.DocumentThemeChangedEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.AppCommandInvoked:r=OSF.DDA.AppCommand.AppCommandInvokedEventArgs.create(i);break;case Microsoft.Office.WebExtension.EventType.ObjectDeleted:case Microsoft.Office.WebExtension.EventType.ObjectSelectionChanged:case Microsoft.Office.WebExtension.EventType.ObjectDataChanged:case Microsoft.Office.WebExtension.EventType.ContentControlAdded:r=new OSF.DDA.ObjectEventArgs(n,i[Microsoft.Office.WebExtension.Parameters.Id]);break;case Microsoft.Office.WebExtension.EventType.RichApiMessage:r=new OSF.DDA.RichApiMessageEventArgs(n,i);break;case Microsoft.Office.WebExtension.EventType.DataNodeInserted:r=new OSF.DDA.NodeInsertedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeReplaced:r=new OSF.DDA.NodeReplacedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NewNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.DataNodeDeleted:r=new OSF.DDA.NodeDeletedEventArgs(u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.OldNode]),u.manufactureDataNode(i[OSF.DDA.DataNodeEventProperties.NextSiblingNode]),i[OSF.DDA.DataNodeEventProperties.InUndoRedo]);break;case Microsoft.Office.WebExtension.EventType.TaskSelectionChanged:r=new OSF.DDA.TaskSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ResourceSelectionChanged:r=new OSF.DDA.ResourceSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.ViewSelectionChanged:r=new OSF.DDA.ViewSelectionChangedEventArgs(t);break;case Microsoft.Office.WebExtension.EventType.DialogMessageReceived:r=new OSF.DDA.DialogEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived:r=new OSF.DDA.DialogParentEventArgs(i);break;case Microsoft.Office.WebExtension.EventType.ItemChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)r=new OSF.DDA.OlkItemSelectedChangedEventArgs(i),t.initialize(r.initialData),(OSF._OfficeAppFactory.getHostInfo()[o]=="win32"||OSF._OfficeAppFactory.getHostInfo()[o]=="mac")&&t.setCurrentItemNumber(r.itemNumber.itemNumber);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.RecipientsChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)r=new OSF.DDA.OlkRecipientsChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.AppointmentTimeChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)r=new OSF.DDA.OlkAppointmentTimeChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;case Microsoft.Office.WebExtension.EventType.RecurrenceChanged:if(OSF._OfficeAppFactory.getHostInfo()[e]==f)r=new OSF.DDA.OlkRecurrenceChangedEventArgs(i);else throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));break;default:throw OsfMsAjaxFactory.msAjaxError.argument(Microsoft.Office.WebExtension.Parameters.EventType,OSF.OUtil.formatString(Strings.OfficeOM.L_NotSupportedEventType,n));}return r};OSF.DDA.AsyncMethodNames.addNames({AddHandlerAsync:"addHandlerAsync",RemoveHandlerAsync:"removeHandlerAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RemoveHandlerAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Handler,value:{types:["function","object"],defaultValue:null}}],privateStateCallbacks:[]});OSF.DialogShownStatus={hasDialogShown:!1,isWindowDialog:!1};OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{DialogMessageReceivedEvent:"DialogMessageReceivedEvent"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DialogMessageReceived:"dialogMessageReceived",DialogEventReceived:"dialogEventReceived"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{MessageType:"messageType",MessageContent:"messageContent"});OSF.DDA.DialogEventType={};OSF.OUtil.augmentList(OSF.DDA.DialogEventType,{DialogClosed:"dialogClosed",NavigationFailed:"naviationFailed"});OSF.DDA.AsyncMethodNames.addNames({DisplayDialogAsync:"displayDialogAsync",CloseAsync:"close"});OSF.DDA.SyncMethodNames.addNames({MessageParent:"messageParent",AddMessageHandler:"addEventHandler",SendMessage:"sendMessage"});OSF.DDA.UI.ParentUI=function(){var i=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.DialogMessageReceived,Microsoft.Office.WebExtension.EventType.DialogEventReceived,Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived]),t=OSF.DDA.AsyncMethodNames.DisplayDialogAsync.displayName,n=this;n[t]||OSF.OUtil.defineEnumerableProperty(n,t,{value:function(){var t=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.OpenDialog];t(arguments,i,n)}});OSF.OUtil.finalizeProperties(this)};OSF.DDA.UI.ChildUI=function(n){var i=OSF.DDA.SyncMethodNames.MessageParent.displayName,t=this,r;t[i]||OSF.OUtil.defineEnumerableProperty(t,i,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.MessageParent];return n(arguments,t)}});r=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName;t[r]||typeof OSF.DialogParentMessageEventDispatch=="undefined"||OSF.DDA.DispIdHost.addEventSupport(t,OSF.DialogParentMessageEventDispatch,n);OSF.OUtil.finalizeProperties(this)};OSF.DialogHandler=function(){};OSF.DDA.DialogEventArgs=function(n){n[OSF.DDA.PropertyDescriptors.MessageType]==OSF.DialogMessageType.DialogMessageReceived?OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}}):OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogEventReceived},error:{value:n[OSF.DDA.PropertyDescriptors.MessageType]}})};OSF.DDA.DialogParentEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DialogParentMessageReceived},message:{value:n[OSF.DDA.PropertyDescriptors.MessageContent]}})};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DisplayDialogAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Url,types:["string"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Width,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.Height,value:{types:["number"],defaultValue:99}},{name:Microsoft.Office.WebExtension.Parameters.RequireHTTPs,value:{types:["boolean"],defaultValue:!0}},{name:Microsoft.Office.WebExtension.Parameters.DisplayInIframe,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.HideTitle,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels,value:{types:["boolean"],defaultValue:!1}}],privateStateCallbacks:[],onSucceeded:function(n){var f=n[Microsoft.Office.WebExtension.Parameters.Id],i=n[Microsoft.Office.WebExtension.Parameters.Data],t=new OSF.DialogHandler,e=OSF.DDA.AsyncMethodNames.CloseAsync.displayName,r,u;return OSF.OUtil.defineEnumerableProperty(t,e,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.CloseDialog];n(arguments,f,i,t)}}),r=OSF.DDA.SyncMethodNames.AddMessageHandler.displayName,OSF.OUtil.defineEnumerableProperty(t,r,{value:function(){var r=OSF.DDA.SyncMethodCalls[OSF.DDA.SyncMethodNames.AddMessageHandler.id],n=r.verifyAndExtractCall(arguments,t,i),u=n[Microsoft.Office.WebExtension.Parameters.EventType],f=n[Microsoft.Office.WebExtension.Parameters.Handler];return i.addEventHandlerAndFireQueuedEvent(u,f)}}),u=OSF.DDA.SyncMethodNames.SendMessage.displayName,OSF.OUtil.defineEnumerableProperty(t,u,{value:function(){var n=OSF._OfficeAppFactory.getHostFacade()[OSF.DDA.DispIdHost.Methods.SendMessage];return n(arguments,i,t)}}),t},checkCallArgs:function(n){return n[Microsoft.Office.WebExtension.Parameters.Width]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Width]=1),!n[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&n[Microsoft.Office.WebExtension.Parameters.Width]>100&&(n[Microsoft.Office.WebExtension.Parameters.Width]=99),n[Microsoft.Office.WebExtension.Parameters.Height]<=0&&(n[Microsoft.Office.WebExtension.Parameters.Height]=1),!n[Microsoft.Office.WebExtension.Parameters.UseDeviceIndependentPixels]&&n[Microsoft.Office.WebExtension.Parameters.Height]>100&&(n[Microsoft.Office.WebExtension.Parameters.Height]=99),n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]||(n[Microsoft.Office.WebExtension.Parameters.RequireHTTPs]=!0),n}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.CloseAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.MessageParent,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageToParent,types:["string","number","boolean"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.AddMessageHandler,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.EventType,"enum":Microsoft.Office.WebExtension.EventType,verify:function(n,t,i){return i.supportsEvent(n)}},{name:Microsoft.Office.WebExtension.Parameters.Handler,types:["function"]}],supportedOptions:[]});OSF.DDA.SyncMethodCalls.define({method:OSF.DDA.SyncMethodNames.SendMessage,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.MessageContent,types:["string"]}],supportedOptions:[],privateStateCallbacks:[]});OSF.DDA.SafeArray.Delegate.openDialog=function(n){try{n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!0,n);OSF.ClientHostController.openDialog(n.dispId,n.targetId,function(t,i){n.onEvent&&n.onEvent(i);OSF.AppTelemetry&&OSF.AppTelemetry.onEventDone(n.dispId)},t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.closeDialog=function(n){n.onCalling&&n.onCalling();var t=OSF.DDA.SafeArray.Delegate._getOnAfterRegisterEvent(!1,n);try{OSF.ClientHostController.closeDialog(n.dispId,n.targetId,t)}catch(i){OSF.DDA.SafeArray.Delegate._onException(i,n)}};OSF.DDA.SafeArray.Delegate.messageParent=function(n){try{n.onCalling&&n.onCalling();var i=(new Date).getTime(),t=OSF.ClientHostController.messageParent(n.hostCallArgs);return n.onReceiving&&n.onReceiving(),OSF.AppTelemetry&&OSF.AppTelemetry.onMethodDone(n.dispId,n.hostCallArgs,Math.abs((new Date).getTime()-i),t),t}catch(r){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(r)}};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.DialogMessageReceivedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.MessageType,value:0},{name:OSF.DDA.PropertyDescriptors.MessageContent,value:1}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.sendMessage=function(n){try{n.onCalling&&n.onCalling();var r=(new Date).getTime(),t=OSF.ClientHostController.sendMessage(n.hostCallArgs);return n.onReceiving&&n.onReceiving(),t}catch(i){return OSF.DDA.SafeArray.Delegate._onExceptionSyncMethod(i)}};Microsoft.Office.WebExtension.TableData=function(n,t){function i(n){if(n==null||n==undefined)return null;try{for(var t=OSF.DDA.DataCoercion.findArrayDimensionality(n,2);t<2;t++)n=[n];return n}catch(i){}}OSF.OUtil.defineEnumerableProperties(this,{headers:{get:function(){return t},set:function(n){t=i(n)}},rows:{get:function(){return n},set:function(t){n=t==null||OSF.OUtil.isArray(t)&&t.length==0?[]:i(t)}}});this.headers=t;this.rows=n};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureTableData=function(n){return new Microsoft.Office.WebExtension.TableData(n[OSF.DDA.TableDataProperties.TableRows],n[OSF.DDA.TableDataProperties.TableHeaders])};Microsoft.Office.WebExtension.CoercionType={Text:"text",Matrix:"matrix",Table:"table"};OSF.DDA.DataCoercion=function(){var n=null;return{findArrayDimensionality:function(n){if(OSF.OUtil.isArray(n)){for(var t=0,i=0;i<n.length;i++)t=Math.max(t,OSF.DDA.DataCoercion.findArrayDimensionality(n[i]));return t+1}else return 0},getCoercionDefaultForBinding:function(n){switch(n){case Microsoft.Office.WebExtension.BindingType.Matrix:return Microsoft.Office.WebExtension.CoercionType.Matrix;case Microsoft.Office.WebExtension.BindingType.Table:return Microsoft.Office.WebExtension.CoercionType.Table;case Microsoft.Office.WebExtension.BindingType.Text:default:return Microsoft.Office.WebExtension.CoercionType.Text}},getBindingDefaultForCoercion:function(n){switch(n){case Microsoft.Office.WebExtension.CoercionType.Matrix:return Microsoft.Office.WebExtension.BindingType.Matrix;case Microsoft.Office.WebExtension.CoercionType.Table:return Microsoft.Office.WebExtension.BindingType.Table;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:return Microsoft.Office.WebExtension.BindingType.Text}},determineCoercionType:function(t){if(t==n||t==undefined)return n;var i=n,r=typeof t;if(t.rows!==undefined)i=Microsoft.Office.WebExtension.CoercionType.Table;else if(OSF.OUtil.isArray(t))i=Microsoft.Office.WebExtension.CoercionType.Matrix;else if(r=="string"||r=="number"||r=="boolean"||OSF.OUtil.isDate(t))i=Microsoft.Office.WebExtension.CoercionType.Text;else throw OSF.DDA.ErrorCodeManager.errorCodes.ooeUnsupportedDataObject;return i},coerceData:function(n,t,i){return i=i||OSF.DDA.DataCoercion.determineCoercionType(n),i&&i!=t&&(OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionBegin),n=OSF.DDA.DataCoercion._coerceDataFromTable(t,OSF.DDA.DataCoercion._coerceDataToTable(n,i)),OSF.OUtil.writeProfilerMark(OSF.InternalPerfMarker.DataCoercionEnd)),n},_matrixToText:function(n){if(n.length==1&&n[0].length==1)return""+n[0][0];for(var t="",i=0;i<n.length;i++)t+=n[i].join("\t")+"\n";return t.substring(0,t.length-1)},_textToMatrix:function(n){for(var t=n.split("\n"),i=0;i<t.length;i++)t[i]=t[i].split("\t");return t},_tableToText:function(t){var i="",r;return t.headers!=n&&(i=OSF.DDA.DataCoercion._matrixToText([t.headers])+"\n"),r=OSF.DDA.DataCoercion._matrixToText(t.rows),r==""&&(i=i.substring(0,i.length-1)),i+r},_tableToMatrix:function(t){var i=t.rows;return t.headers!=n&&i.unshift(t.headers),i},_coerceDataFromTable:function(t,i){var r;switch(t){case Microsoft.Office.WebExtension.CoercionType.Table:r=i;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:r=OSF.DDA.DataCoercion._tableToMatrix(i);break;case Microsoft.Office.WebExtension.CoercionType.SlideRange:r=n;OSF.DDA.OMFactory.manufactureSlideRange&&(r=OSF.DDA.OMFactory.manufactureSlideRange(OSF.DDA.DataCoercion._tableToText(i)));r==n&&(r=OSF.DDA.DataCoercion._tableToText(i));break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:r=OSF.DDA.DataCoercion._tableToText(i)}return r},_coerceDataToTable:function(n,t){t==undefined&&(t=OSF.DDA.DataCoercion.determineCoercionType(n));var i;switch(t){case Microsoft.Office.WebExtension.CoercionType.Table:i=n;break;case Microsoft.Office.WebExtension.CoercionType.Matrix:i=new Microsoft.Office.WebExtension.TableData(n);break;case Microsoft.Office.WebExtension.CoercionType.Text:case Microsoft.Office.WebExtension.CoercionType.Html:case Microsoft.Office.WebExtension.CoercionType.Ooxml:default:i=new Microsoft.Office.WebExtension.TableData(OSF.DDA.DataCoercion._textToMatrix(n))}return i}}}();OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:Microsoft.Office.WebExtension.CoercionType.Text,value:0},{name:Microsoft.Office.WebExtension.CoercionType.Matrix,value:1},{name:Microsoft.Office.WebExtension.CoercionType.Table,value:2}]});OSF.DDA.AsyncMethodNames.addNames({GetSelectedDataAsync:"getSelectedDataAsync",SetSelectedDataAsync:"setSelectedDataAsync"}),function(){function r(n,t,i){var r=n[Microsoft.Office.WebExtension.Parameters.Data];return OSF.DDA.TableDataProperties&&r&&(r[OSF.DDA.TableDataProperties.TableRows]!=undefined||r[OSF.DDA.TableDataProperties.TableHeaders]!=undefined)&&(r=OSF.DDA.OMFactory.manufactureTableData(r)),r=OSF.DDA.DataCoercion.coerceData(r,i[Microsoft.Office.WebExtension.Parameters.CoercionType]),r==undefined?null:r}var i=!1,n="boolean",t="number";OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,"enum":Microsoft.Office.WebExtension.CoercionType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:{"enum":Microsoft.Office.WebExtension.ValueFormat,defaultValue:Microsoft.Office.WebExtension.ValueFormat.Unformatted}},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:{"enum":Microsoft.Office.WebExtension.FilterType,defaultValue:Microsoft.Office.WebExtension.FilterType.All}}],privateStateCallbacks:[],onSucceeded:r});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string","object",t,n]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.ImageLeft,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageTop,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:[t,n],defaultValue:i}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:[t,n],defaultValue:i}}],privateStateCallbacks:[]})}();OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetSelectedDataMethod,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:1},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:2}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetSelectedDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1},{name:Microsoft.Office.WebExtension.Parameters.ImageLeft,value:2},{name:Microsoft.Office.WebExtension.Parameters.ImageTop,value:3},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:4},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:5}]});OSF.DDA.SettingsManager={SerializedSettings:"serializedSettings",RefreshingSettings:"refreshingSettings",DateJSONPrefix:"Date(",DataJSONSuffix:")",serializeSettings:function(n){return OSF.OUtil.serializeSettings(n)},deserializeSettings:function(n){return OSF.OUtil.deserializeSettings(n)}};OSF.DDA.Settings=function(n){var t="name",i;n=n||{};i=function(n){var i=OSF.OUtil.getSessionStorage(),t,r;i&&(t=OSF.DDA.SettingsManager.serializeSettings(n),r=JSON?JSON.stringify(t):Sys.Serialization.JavaScriptSerializer.serialize(t),i.setItem(OSF._OfficeAppFactory.getCachedSessionSettingsKey(),r))};OSF.OUtil.defineEnumerableProperties(this,{get:{value:function(i){var u=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1}]),r;if(u)throw u;return r=n[i],typeof r=="undefined"?null:r}},set:{value:function(r,u){var f=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1},{name:"value",mayBeNull:!0}]);if(f)throw f;n[r]=u;i(n)}},remove:{value:function(r){var u=Function._validateParams(arguments,[{name:t,type:String,mayBeNull:!1}]);if(u)throw u;delete n[r];i(n)}}});OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.SaveAsync],n)};OSF.DDA.RefreshableSettings=function(n){OSF.DDA.RefreshableSettings.uber.constructor.call(this,n);OSF.DDA.DispIdHost.addAsyncMethods(this,[OSF.DDA.AsyncMethodNames.RefreshAsync],n);OSF.DDA.DispIdHost.addEventSupport(this,new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.SettingsChanged]))};OSF.OUtil.extend(OSF.DDA.RefreshableSettings,OSF.DDA.Settings);OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{SettingsChanged:"settingsChanged"});OSF.DDA.SettingsChangedEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.SettingsChanged},settings:{value:n}})};OSF.DDA.AsyncMethodNames.addNames({RefreshAsync:"refreshAsync",SaveAsync:"saveAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.RefreshAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:OSF.DDA.SettingsManager.RefreshingSettings,value:function(n,t){return t}}],onSucceeded:function(n,t,i){var f=n[OSF.DDA.SettingsManager.SerializedSettings],u=OSF.DDA.SettingsManager.deserializeSettings(f),e=i[OSF.DDA.SettingsManager.RefreshingSettings];for(var r in e)t.remove(r);for(r in u)t.set(r,u[r]);return t}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SaveAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:{types:["boolean"],defaultValue:!0}}],privateStateCallbacks:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:function(n,t){return OSF.DDA.SettingsManager.serializeSettings(t)}}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidLoadSettingsMethod,fromHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSaveSettingsMethod,toHost:[{name:OSF.DDA.SettingsManager.SerializedSettings,value:OSF.DDA.SettingsManager.SerializedSettings},{name:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale,value:Microsoft.Office.WebExtension.Parameters.OverwriteIfStale}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidSettingsChangedEvent});Microsoft.Office.WebExtension.BindingType={Table:"table",Text:"text",Matrix:"matrix"};OSF.DDA.BindingProperties={Id:"BindingId",Type:Microsoft.Office.WebExtension.Parameters.BindingType};OSF.OUtil.augmentList(OSF.DDA.ListDescriptors,{BindingList:"BindingList"});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{Subset:"subset",BindingProperties:"BindingProperties"});OSF.DDA.ListType.setListType(OSF.DDA.ListDescriptors.BindingList,OSF.DDA.PropertyDescriptors.BindingProperties);OSF.DDA.BindingPromise=function(n,t){this._id=n;OSF.OUtil.defineEnumerableProperty(this,"onFail",{get:function(){return t},set:function(n){var i=typeof n;if(i!="undefined"&&i!="function")throw OSF.OUtil.formatString(Strings.OfficeOM.L_CallbackNotAFunction,i);t=n}})};OSF.DDA.BindingPromise.prototype={_fetch:function(n){var t=this,i;return t.binding?n&&n(t.binding):t._binding||(i=t,Microsoft.Office.WebExtension.context.document.bindings.getByIdAsync(t._id,function(t){t.status==Microsoft.Office.WebExtension.AsyncResultStatus.Succeeded?(OSF.OUtil.defineEnumerableProperty(i,"binding",{value:t.value}),n&&n(i.binding)):i.onFail&&i.onFail(t)})),t},getDataAsync:function(){var n=arguments;return this._fetch(function(t){t.getDataAsync.apply(t,n)}),this},setDataAsync:function(){var n=arguments;return this._fetch(function(t){t.setDataAsync.apply(t,n)}),this},addHandlerAsync:function(){var n=arguments;return this._fetch(function(t){t.addHandlerAsync.apply(t,n)}),this},removeHandlerAsync:function(){var n=arguments;return this._fetch(function(t){t.removeHandlerAsync.apply(t,n)}),this}};OSF.DDA.BindingFacade=function(n){this._eventDispatches=[];OSF.OUtil.defineEnumerableProperty(this,"document",{value:n});var t=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[t.AddFromSelectionAsync,t.AddFromNamedItemAsync,t.GetAllAsync,t.GetByIdAsync,t.ReleaseByIdAsync])};OSF.DDA.UnknownBinding=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{document:{value:t},id:{value:n}})};OSF.DDA.Binding=function(n,t){var r,u,i,f;OSF.OUtil.defineEnumerableProperties(this,{document:{value:t},id:{value:n}});r=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[r.GetDataAsync,r.SetDataAsync]);u=Microsoft.Office.WebExtension.EventType;i=t.bindings._eventDispatches;i[n]||(i[n]=new OSF.EventDispatch([u.BindingSelectionChanged,u.BindingDataChanged]));f=i[n];OSF.DDA.DispIdHost.addEventSupport(this,f)};OSF.DDA.generateBindingId=function(){return"UnnamedBinding_"+OSF.OUtil.getUniqueId()+"_"+(new Date).getTime()};OSF.DDA.OMFactory=OSF.DDA.OMFactory||{};OSF.DDA.OMFactory.manufactureBinding=function(n,t){var r=n[OSF.DDA.BindingProperties.Id],u=n[OSF.DDA.BindingProperties.RowCount],f=n[OSF.DDA.BindingProperties.ColumnCount],s=n[OSF.DDA.BindingProperties.HasHeaders],i,e,o;switch(n[OSF.DDA.BindingProperties.Type]){case Microsoft.Office.WebExtension.BindingType.Text:i=new OSF.DDA.TextBinding(r,t);break;case Microsoft.Office.WebExtension.BindingType.Matrix:i=new OSF.DDA.MatrixBinding(r,t,u,f);break;case Microsoft.Office.WebExtension.BindingType.Table:e=function(){return OSF.DDA.ExcelDocument&&Microsoft.Office.WebExtension.context.document&&Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.ExcelDocument};o=e()&&OSF.DDA.ExcelTableBinding?OSF.DDA.ExcelTableBinding:OSF.DDA.TableBinding;i=new o(r,t,u,f,s);break;default:i=new OSF.DDA.UnknownBinding(r,t)}return i};OSF.DDA.AsyncMethodNames.addNames({AddFromSelectionAsync:"addFromSelectionAsync",AddFromNamedItemAsync:"addFromNamedItemAsync",GetAllAsync:"getAllAsync",GetByIdAsync:"getByIdAsync",ReleaseByIdAsync:"releaseByIdAsync",GetDataAsync:"getDataAsync",SetDataAsync:"setDataAsync"}),function(){function u(n){return OSF.DDA.OMFactory.manufactureBinding(n,Microsoft.Office.WebExtension.context.document)}function f(n){return n.id}function e(n,t,i){var u=n[Microsoft.Office.WebExtension.Parameters.Data];return OSF.DDA.TableDataProperties&&u&&(u[OSF.DDA.TableDataProperties.TableRows]!=undefined||u[OSF.DDA.TableDataProperties.TableHeaders]!=undefined)&&(u=OSF.DDA.OMFactory.manufactureTableData(u)),u=OSF.DDA.DataCoercion.coerceData(u,i[Microsoft.Office.WebExtension.Parameters.CoercionType]),u==undefined?r:u}var t="number",i="object",n="string",r=null;OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromSelectionAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:[n],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}}],privateStateCallbacks:[],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromNamedItemAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.ItemName,types:[n]},{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:[n],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.FailOnCollision,value:function(){return!0}}],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetAllAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(n){return OSF.OUtil.mapList(n[OSF.DDA.ListDescriptors.BindingList],u)}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[n]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:u});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ReleaseByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:[n]}],supportedOptions:[],privateStateCallbacks:[],onSucceeded:function(n,t,i){var r=i[Microsoft.Office.WebExtension.Parameters.Id];delete t._eventDispatches[r]}});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetDataAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n,t){return OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)}}},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:{"enum":Microsoft.Office.WebExtension.ValueFormat,defaultValue:Microsoft.Office.WebExtension.ValueFormat.Unformatted}},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:{"enum":Microsoft.Office.WebExtension.FilterType,defaultValue:Microsoft.Office.WebExtension.FilterType.All}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:[i,n],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.RowCount,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.ColumnCount,value:{types:[t],defaultValue:0}}],checkCallArgs:function(n,t){if(n[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&n[Microsoft.Office.WebExtension.Parameters.StartColumn]==0&&n[Microsoft.Office.WebExtension.Parameters.RowCount]==0&&n[Microsoft.Office.WebExtension.Parameters.ColumnCount]==0&&(delete n[Microsoft.Office.WebExtension.Parameters.StartRow],delete n[Microsoft.Office.WebExtension.Parameters.StartColumn],delete n[Microsoft.Office.WebExtension.Parameters.RowCount],delete n[Microsoft.Office.WebExtension.Parameters.ColumnCount]),n[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[Microsoft.Office.WebExtension.Parameters.StartRow]||n[Microsoft.Office.WebExtension.Parameters.StartColumn]||n[Microsoft.Office.WebExtension.Parameters.RowCount]||n[Microsoft.Office.WebExtension.Parameters.ColumnCount]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:f}],onSucceeded:e});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[n,i,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:[i,n],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[i],defaultValue:r}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}}],checkCallArgs:function(n,t){if(n[Microsoft.Office.WebExtension.Parameters.StartRow]==0&&n[Microsoft.Office.WebExtension.Parameters.StartColumn]==0&&(delete n[Microsoft.Office.WebExtension.Parameters.StartRow],delete n[Microsoft.Office.WebExtension.Parameters.StartColumn]),n[Microsoft.Office.WebExtension.Parameters.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[Microsoft.Office.WebExtension.Parameters.StartRow]||n[Microsoft.Office.WebExtension.Parameters.StartColumn]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:f}]})}();OSF.OUtil.augmentList(OSF.DDA.BindingProperties,{RowCount:"BindingRowCount",ColumnCount:"BindingColumnCount",HasHeaders:"HasHeaders"});OSF.DDA.MatrixBinding=function(n,t,i,r){OSF.DDA.MatrixBinding.uber.constructor.call(this,n,t);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Matrix},rowCount:{value:i?i:0},columnCount:{value:r?r:0}})};OSF.OUtil.extend(OSF.DDA.MatrixBinding,OSF.DDA.Binding);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.BindingProperties,fromHost:[{name:OSF.DDA.BindingProperties.Id,value:0},{name:OSF.DDA.BindingProperties.Type,value:1},{name:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,value:2}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.BindingType,toHost:[{name:Microsoft.Office.WebExtension.BindingType.Text,value:0},{name:Microsoft.Office.WebExtension.BindingType.Matrix,value:1},{name:Microsoft.Office.WebExtension.BindingType.Table,value:2}],invertible:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromSelectionMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromNamedItemMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.ItemName,value:0},{name:Microsoft.Office.WebExtension.Parameters.Id,value:1},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:2},{name:Microsoft.Office.WebExtension.Parameters.FailOnCollision,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidReleaseBindingMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetBindingMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetAllBindingsMethod,fromHost:[{name:OSF.DDA.ListDescriptors.BindingList,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetBindingDataMethod,fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.ValueFormat,value:2},{name:Microsoft.Office.WebExtension.Parameters.FilterType,value:3},{name:OSF.DDA.PropertyDescriptors.Subset,value:4}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetBindingDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2},{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.BindingSpecificData,fromHost:[{name:OSF.DDA.BindingProperties.RowCount,value:0},{name:OSF.DDA.BindingProperties.ColumnCount,value:1},{name:OSF.DDA.BindingProperties.HasHeaders,value:2}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.Subset,toHost:[{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:0},{name:OSF.DDA.SafeArray.UniqueArguments.Run,value:1}],canonical:!0,isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.Offset,toHost:[{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:0},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:1}],canonical:!0,isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.SafeArray.UniqueArguments.Run,toHost:[{name:Microsoft.Office.WebExtension.Parameters.RowCount,value:0},{name:Microsoft.Office.WebExtension.Parameters.ColumnCount,value:1}],canonical:!0,isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddRowsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddColumnsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidClearAllRowsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{TableDataProperties:"TableDataProperties"});OSF.OUtil.augmentList(OSF.DDA.BindingProperties,{RowCount:"BindingRowCount",ColumnCount:"BindingColumnCount",HasHeaders:"HasHeaders"});OSF.DDA.TableDataProperties={TableRows:"TableRows",TableHeaders:"TableHeaders"};OSF.DDA.TableBinding=function(n,t,i,r,u){OSF.DDA.TableBinding.uber.constructor.call(this,n,t);OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.BindingType.Table},rowCount:{value:i?i:0},columnCount:{value:r?r:0},hasHeaders:{value:u?u:!1}});var f=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[f.AddRowsAsync,f.AddColumnsAsync,f.DeleteAllDataValuesAsync])};OSF.OUtil.extend(OSF.DDA.TableBinding,OSF.DDA.Binding);OSF.DDA.AsyncMethodNames.addNames({AddRowsAsync:"addRowsAsync",AddColumnsAsync:"addColumnsAsync",DeleteAllDataValuesAsync:"deleteAllDataValuesAsync"}),function(){function n(n){return n.id}OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddRowsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddColumnsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.DeleteAllDataValuesAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]})}();OSF.DDA.TextBinding=function(n,t){OSF.DDA.TextBinding.uber.constructor.call(this,n,t);OSF.OUtil.defineEnumerableProperty(this,"type",{value:Microsoft.Office.WebExtension.BindingType.Text})};OSF.OUtil.extend(OSF.DDA.TextBinding,OSF.DDA.Binding);OSF.DDA.AsyncMethodNames.addNames({AddFromPromptAsync:"addFromPromptAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.AddFromPromptAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.BindingType,"enum":Microsoft.Office.WebExtension.BindingType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:{types:["string"],calculate:OSF.DDA.generateBindingId}},{name:Microsoft.Office.WebExtension.Parameters.PromptText,value:{types:["string"],calculate:function(){return Strings.OfficeOM.L_AddBindingFromPromptDefaultText}}},{name:Microsoft.Office.WebExtension.Parameters.SampleData,value:{types:["object"],defaultValue:null}}],privateStateCallbacks:[],onSucceeded:function(n){return OSF.DDA.OMFactory.manufactureBinding(n,Microsoft.Office.WebExtension.context.document)}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidAddBindingFromPromptMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.BindingType,value:1},{name:Microsoft.Office.WebExtension.Parameters.PromptText,value:2}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{DocumentSelectionChanged:"documentSelectionChanged"});OSF.DDA.DocumentSelectionChangedEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.DocumentSelectionChanged},document:{value:n}})};OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectDeleted:"objectDeleted"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectSelectionChanged:"objectSelectionChanged"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ObjectDataChanged:"objectDataChanged"});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{ContentControlAdded:"contentControlAdded"});OSF.DDA.ObjectEventArgs=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{type:{value:n},object:{value:t}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidDocumentSelectionChangedEvent});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectDeletedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectSelectionChangedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidObjectDataChangedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidContentControlAddedEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{BindingSelectionChanged:"bindingSelectionChanged",BindingDataChanged:"bindingDataChanged"});OSF.OUtil.augmentList(OSF.DDA.EventDescriptors,{BindingSelectionChangedEvent:"BindingSelectionChangedEvent"});OSF.DDA.BindingSelectionChangedEventArgs=function(n,t){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingSelectionChanged},binding:{value:n}});for(var i in t)OSF.OUtil.defineEnumerableProperty(this,i,{value:t[i]})};OSF.DDA.BindingDataChangedEventArgs=function(n){OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.BindingDataChanged},binding:{value:n}})};OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:0},{name:OSF.DDA.PropertyDescriptors.Subset,value:1}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidBindingSelectionChangedEvent,fromHost:[{name:OSF.DDA.EventDescriptors.BindingSelectionChangedEvent,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidBindingDataChangedEvent,fromHost:[{name:OSF.DDA.PropertyDescriptors.BindingProperties,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.FilterType,{OnlyVisible:"onlyVisible"});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.FilterType,toHost:[{name:Microsoft.Office.WebExtension.FilterType.OnlyVisible,value:1}]});Microsoft.Office.WebExtension.GoToType={Binding:"binding",NamedItem:"namedItem",Slide:"slide",Index:"index"};Microsoft.Office.WebExtension.SelectionMode={Default:"default",Selected:"selected",None:"none"};Microsoft.Office.WebExtension.Index={First:"first",Last:"last",Next:"next",Previous:"previous"};OSF.DDA.AsyncMethodNames.addNames({GoToByIdAsync:"goToByIdAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GoToByIdAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Id,types:["string","number"]},{name:Microsoft.Office.WebExtension.Parameters.GoToType,"enum":Microsoft.Office.WebExtension.GoToType}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.SelectionMode,value:{"enum":Microsoft.Office.WebExtension.SelectionMode,defaultValue:Microsoft.Office.WebExtension.SelectionMode.Default}}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.GoToType,toHost:[{name:Microsoft.Office.WebExtension.GoToType.Binding,value:0},{name:Microsoft.Office.WebExtension.GoToType.NamedItem,value:1},{name:Microsoft.Office.WebExtension.GoToType.Slide,value:2},{name:Microsoft.Office.WebExtension.GoToType.Index,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.SelectionMode,toHost:[{name:Microsoft.Office.WebExtension.SelectionMode.Default,value:0},{name:Microsoft.Office.WebExtension.SelectionMode.Selected,value:1},{name:Microsoft.Office.WebExtension.SelectionMode.None,value:2}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidNavigateToMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.GoToType,value:1},{name:Microsoft.Office.WebExtension.Parameters.SelectionMode,value:2}]});OSF.OUtil.augmentList(Microsoft.Office.WebExtension.EventType,{RichApiMessage:"richApiMessage"});OSF.DDA.RichApiMessageEventArgs=function(n,t){var u=t[Microsoft.Office.WebExtension.Parameters.Data],f=[],r,i;if(u)for(r=0;r<u.length;r++)i=u[r],i.toArray&&(i=i.toArray()),f.push({messageCategory:i[0],messageType:i[1],targetId:i[2],message:i[3],id:i[4],isRemoteOverride:i[5]});OSF.OUtil.defineEnumerableProperties(this,{type:{value:Microsoft.Office.WebExtension.EventType.RichApiMessage},entries:{value:f}})},function(n){var t=function(){function n(){var n=this;n._eventDispatch=null;n._eventDispatch=new OSF.EventDispatch([Microsoft.Office.WebExtension.EventType.RichApiMessage]);OSF.DDA.DispIdHost.addEventSupport(n,n._eventDispatch)}return n}();n.RichApiMessageManager=t}(OfficeExt||(OfficeExt={}));OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.EventDispId.dispidRichApiMessageEvent,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.sourceData}]});OSF.DDA.AsyncMethodNames.addNames({ExecuteRichApiRequestAsync:"executeRichApiRequestAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["object"]}],supportedOptions:[]});OSF.OUtil.setNamespace("RichApi",OSF.DDA);OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidExecuteRichApiRequestMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:0}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.FilePropertiesDescriptor={Url:"Url"};OSF.OUtil.augmentList(OSF.DDA.PropertyDescriptors,{FilePropertiesDescriptor:"FilePropertiesDescriptor"});Microsoft.Office.WebExtension.FileProperties=function(n){OSF.OUtil.defineEnumerableProperties(this,{url:{value:n[OSF.DDA.FilePropertiesDescriptor.Url]}})};OSF.DDA.AsyncMethodNames.addNames({GetFilePropertiesAsync:"getFilePropertiesAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetFilePropertiesAsync,fromHost:[{name:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,value:0}],requiredArguments:[],supportedOptions:[],onSucceeded:function(n){return new Microsoft.Office.WebExtension.FileProperties(n)}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,fromHost:[{name:OSF.DDA.FilePropertiesDescriptor.Url,value:0}],isComplexType:!0});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetFilePropertiesMethod,fromHost:[{name:OSF.DDA.PropertyDescriptors.FilePropertiesDescriptor,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.ExcelTableBinding=function(n,t,i,r,u){var f=OSF.DDA.AsyncMethodNames;OSF.DDA.DispIdHost.addAsyncMethods(this,[f.ClearFormatsAsync,f.SetTableOptionsAsync,f.SetFormatsAsync]);OSF.DDA.ExcelTableBinding.uber.constructor.call(this,n,t,i,r,u);OSF.OUtil.finalizeProperties(this)};OSF.OUtil.extend(OSF.DDA.ExcelTableBinding,OSF.DDA.TableBinding),function(){var t="number",n="object",i="string";OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[i,n,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n],defaultValue:[]}}],privateStateCallbacks:[]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:[i,n,t,"boolean"]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.Rows,value:{types:[n,i],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.Columns,value:{types:[n],defaultValue:null}},{name:Microsoft.Office.WebExtension.Parameters.StartRow,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.StartColumn,value:{types:[t],defaultValue:0}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n],defaultValue:[]}}],checkCallArgs:function(n,t){var i=Microsoft.Office.WebExtension.Parameters;if(n[i.StartRow]==0&&n[i.StartColumn]==0&&OSF.OUtil.isArray(n[i.CellFormat])&&n[i.CellFormat].length===0&&OSF.OUtil.isArray(n[i.TableOptions])&&n[i.TableOptions].length===0&&(delete n[i.StartRow],delete n[i.StartColumn],delete n[i.CellFormat],delete n[i.TableOptions]),n[i.CoercionType]!=OSF.DDA.DataCoercion.getCoercionDefaultForBinding(t.type)&&(n[i.StartRow]&&n[i.StartRow]!=0||n[i.StartColumn]&&n[i.StartColumn]!=0||n[i.CellFormat]||n[i.TableOptions]))throw OSF.DDA.ErrorCodeManager.errorCodes.ooeCoercionTypeNotMatchBinding;return n},privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:function(n){return n.id}}]});OSF.DDA.BindingPromise.prototype.setTableOptionsAsync=function(){var n=arguments;return this._fetch(function(t){t.setTableOptionsAsync.apply(t,n)}),this};OSF.DDA.BindingPromise.prototype.setFormatsAsync=function(){var n=arguments;return this._fetch(function(t){t.setFormatsAsync.apply(t,n)}),this};OSF.DDA.BindingPromise.prototype.clearFormatsAsync=function(){var n=arguments;return this._fetch(function(t){t.clearFormatsAsync.apply(t,n)}),this}}(),function(){function n(n){return n.id}OSF.DDA.AsyncMethodNames.addNames({ClearFormatsAsync:"clearFormatsAsync",SetTableOptionsAsync:"setTableOptionsAsync",SetFormatsAsync:"setFormatsAsync"});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.ClearFormatsAsync,requiredArguments:[],supportedOptions:[],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetTableOptionsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.TableOptions,defaultValue:[]}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]});OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetFormatsAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.CellFormat,defaultValue:[]}],privateStateCallbacks:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:n}]})}();Microsoft.Office.WebExtension.Table={All:0,Data:1,Headers:2},function(){var u="undefined",e="auto fit",o="distributed",f="none";OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidClearFormatsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetTableOptionsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetFormatsMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:1}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetSelectedDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:0},{name:Microsoft.Office.WebExtension.Parameters.Data,value:1},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:2},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:3}]});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidSetBindingDataMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.Id,value:0},{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:1},{name:Microsoft.Office.WebExtension.Parameters.Data,value:2},{name:OSF.DDA.SafeArray.UniqueArguments.Offset,value:3},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:4},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:5}]});var s={headerRow:0,bandedRows:1,firstColumn:2,lastColumn:3,bandedColumns:4,filterButton:5,style:6,totalRow:7},h={row:0,column:1},t={alignHorizontal:{text:"alignHorizontal",type:1},alignVertical:{text:"alignVertical",type:2},backgroundColor:{text:"backgroundColor",type:101},borderStyle:{text:"borderStyle",type:201},borderColor:{text:"borderColor",type:202},borderTopStyle:{text:"borderTopStyle",type:203},borderTopColor:{text:"borderTopColor",type:204},borderBottomStyle:{text:"borderBottomStyle",type:205},borderBottomColor:{text:"borderBottomColor",type:206},borderLeftStyle:{text:"borderLeftStyle",type:207},borderLeftColor:{text:"borderLeftColor",type:208},borderRightStyle:{text:"borderRightStyle",type:209},borderRightColor:{text:"borderRightColor",type:210},borderOutlineStyle:{text:"borderOutlineStyle",type:211},borderOutlineColor:{text:"borderOutlineColor",type:212},borderInlineStyle:{text:"borderInlineStyle",type:213},borderInlineColor:{text:"borderInlineColor",type:214},fontFamily:{text:"fontFamily",type:301},fontStyle:{text:"fontStyle",type:302},fontSize:{text:"fontSize",type:303},fontUnderlineStyle:{text:"fontUnderlineStyle",type:304},fontColor:{text:"fontColor",type:305},fontDirection:{text:"fontDirection",type:306},fontStrikethrough:{text:"fontStrikethrough",type:307},fontSuperscript:{text:"fontSuperscript",type:308},fontSubscript:{text:"fontSubscript",type:309},fontNormal:{text:"fontNormal",type:310},indentLeft:{text:"indentLeft",type:401},indentRight:{text:"indentRight",type:402},numberFormat:{text:"numberFormat",type:501},width:{text:"width",type:701},height:{text:"height",type:702},wrapping:{text:"wrapping",type:703}},r=[{name:f,value:0},{name:"thin",value:1},{name:"medium",value:2},{name:"dashed",value:3},{name:"dotted",value:4},{name:"thick",value:5},{name:"double",value:6},{name:"hair",value:7},{name:"medium dashed",value:8},{name:"dash dot",value:9},{name:"medium dash dot",value:10},{name:"dash dot dot",value:11},{name:"medium dash dot dot",value:12},{name:"slant dash dot",value:13}],i=[{name:f,value:0},{name:"black",value:1},{name:"blue",value:2},{name:"gray",value:3},{name:"green",value:4},{name:"orange",value:5},{name:"pink",value:6},{name:"purple",value:7},{name:"red",value:8},{name:"teal",value:9},{name:"turquoise",value:10},{name:"violet",value:11},{name:"white",value:12},{name:"yellow",value:13},{name:"automatic",value:14}],n=OSF.DDA.SafeArray.Delegate.ParameterMap;n.define({type:t.alignHorizontal.text,toHost:[{name:"general",value:0},{name:"left",value:1},{name:"center",value:2},{name:"right",value:3},{name:"fill",value:4},{name:"justify",value:5},{name:"center across selection",value:6},{name:o,value:7}]});n.define({type:t.alignVertical.text,toHost:[{name:"top",value:0},{name:"center",value:1},{name:"bottom",value:2},{name:"justify",value:3},{name:o,value:4}]});n.define({type:t.backgroundColor.text,toHost:i});n.define({type:t.borderStyle.text,toHost:r});n.define({type:t.borderColor.text,toHost:i});n.define({type:t.borderTopStyle.text,toHost:r});n.define({type:t.borderTopColor.text,toHost:i});n.define({type:t.borderBottomStyle.text,toHost:r});n.define({type:t.borderBottomColor.text,toHost:i});n.define({type:t.borderLeftStyle.text,toHost:r});n.define({type:t.borderLeftColor.text,toHost:i});n.define({type:t.borderRightStyle.text,toHost:r});n.define({type:t.borderRightColor.text,toHost:i});n.define({type:t.borderOutlineStyle.text,toHost:r});n.define({type:t.borderOutlineColor.text,toHost:i});n.define({type:t.borderInlineStyle.text,toHost:r});n.define({type:t.borderInlineColor.text,toHost:i});n.define({type:t.fontStyle.text,toHost:[{name:"regular",value:0},{name:"italic",value:1},{name:"bold",value:2},{name:"bold italic",value:3}]});n.define({type:t.fontUnderlineStyle.text,toHost:[{name:f,value:0},{name:"single",value:1},{name:"double",value:2},{name:"single accounting",value:3},{name:"double accounting",value:4}]});n.define({type:t.fontColor.text,toHost:i});n.define({type:t.fontDirection.text,toHost:[{name:"context",value:0},{name:"left-to-right",value:1},{name:"right-to-left",value:2}]});n.define({type:t.width.text,toHost:[{name:e,value:-1}]});n.define({type:t.height.text,toHost:[{name:e,value:-1}]});n.define({type:Microsoft.Office.WebExtension.Parameters.TableOptions,toHost:[{name:"headerRow",value:0},{name:"bandedRows",value:1},{name:"firstColumn",value:2},{name:"lastColumn",value:3},{name:"bandedColumns",value:4},{name:"filterButton",value:5},{name:"style",value:6},{name:"totalRow",value:7}]});n.dynamicTypes[Microsoft.Office.WebExtension.Parameters.CellFormat]={toHost:function(t){for(var i in t)t[i].format&&(t[i].format=n.doMapValues(t[i].format,"toHost"));return t},fromHost:function(n){return n}};n.setDynamicType(Microsoft.Office.WebExtension.Parameters.CellFormat,{toHost:function(n){var c="cells",y="format",w=0,b=1,p=[],l,i,r,f,e,o,a,v,s;for(l in n){if(i=n[l],r=[],typeof i[c]!==u){if(f=i[c],typeof i[c]=="object"){e=[];for(o in f)typeof h[o]!==u&&(e[h[o]]=f[o])}else e=f;r[w]=e}if(i[y]){a=i[y];v=[];for(s in a)typeof t[s]!==u&&v.push([t[s].type,a[s]]);r[b]=v}p[l]=r}return p},fromHost:function(n){return n}});n.setDynamicType(Microsoft.Office.WebExtension.Parameters.TableOptions,{toHost:function(n){var i=[];for(var t in n)typeof s[t]!==u&&(i[s[t]]=n[t]);return i},fromHost:function(n){return n}})}();OSF.OUtil.augmentList(Microsoft.Office.WebExtension.CoercionType,{Image:"image"});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:Microsoft.Office.WebExtension.Parameters.CoercionType,toHost:[{name:Microsoft.Office.WebExtension.CoercionType.Image,value:8}]});OSF.DDA.AsyncMethodNames.addNames({GetAccessTokenAsync:"getAccessTokenAsync"});OSF.DDA.Auth=function(){};OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.GetAccessTokenAsync,requiredArguments:[],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.ForceConsent,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.ForceAddAccount,value:{types:["boolean"],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.AuthChallenge,value:{types:["string"],defaultValue:""}}],onSucceeded:function(n){return n[Microsoft.Office.WebExtension.Parameters.Data]}});OSF.DDA.SafeArray.Delegate.ParameterMap.define({type:OSF.DDA.MethodDispId.dispidGetAccessTokenMethod,toHost:[{name:Microsoft.Office.WebExtension.Parameters.ForceConsent,value:0},{name:Microsoft.Office.WebExtension.Parameters.ForceAddAccount,value:1},{name:Microsoft.Office.WebExtension.Parameters.AuthChallenge,value:2}],fromHost:[{name:Microsoft.Office.WebExtension.Parameters.Data,value:OSF.DDA.SafeArray.Delegate.ParameterMap.self}]});OSF.DDA.ExcelDocument=function(n,t){var i=this,r=new OSF.DDA.BindingFacade(i);OSF.DDA.DispIdHost.addAsyncMethods(r,[OSF.DDA.AsyncMethodNames.AddFromPromptAsync]);OSF.DDA.DispIdHost.addAsyncMethods(i,[OSF.DDA.AsyncMethodNames.GoToByIdAsync]);OSF.DDA.DispIdHost.addAsyncMethods(i,[OSF.DDA.AsyncMethodNames.GetFilePropertiesAsync]);OSF.DDA.ExcelDocument.uber.constructor.call(i,n,r,t);OSF.OUtil.finalizeProperties(i)};OSF.OUtil.extend(OSF.DDA.ExcelDocument,OSF.DDA.JsomDocument);OSF.InitializationHelper.prototype.loadAppSpecificScriptAndCreateOM=function(n,t){OSF.DDA.ErrorCodeManager.initializeErrorMessages(Strings.OfficeOM);n.doc=new OSF.DDA.ExcelDocument(n,this._initializeSettings(n,!0));OSF.DDA.DispIdHost.addAsyncMethods(OSF.DDA.RichApi,[OSF.DDA.AsyncMethodNames.ExecuteRichApiRequestAsync]);OSF.DDA.RichApi.richApiMessageManager=new OfficeExt.RichApiMessageManager;t()},function(){var t="boolean",n="number",i="object";OSF.DDA.AsyncMethodCalls.define({method:OSF.DDA.AsyncMethodNames.SetSelectedDataAsync,requiredArguments:[{name:Microsoft.Office.WebExtension.Parameters.Data,types:["string",i,n,t]}],supportedOptions:[{name:Microsoft.Office.WebExtension.Parameters.CoercionType,value:{"enum":Microsoft.Office.WebExtension.CoercionType,calculate:function(n){return OSF.DDA.DataCoercion.determineCoercionType(n[Microsoft.Office.WebExtension.Parameters.Data])}}},{name:Microsoft.Office.WebExtension.Parameters.CellFormat,value:{types:[n,i],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.TableOptions,value:{types:[n,i],defaultValue:[]}},{name:Microsoft.Office.WebExtension.Parameters.ImageWidth,value:{types:[n,t],defaultValue:!1}},{name:Microsoft.Office.WebExtension.Parameters.ImageHeight,value:{types:[n,t],defaultValue:!1}}],privateStateCallbacks:[]})}();__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){var t=function(){function n(n,t,i){this.m_actionInfo=n;this.m_operationType=t;this.m_flags=i}return Object.defineProperty(n.prototype,"actionInfo",{get:function(){return this.m_actionInfo},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),n}();n.Action=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(n){this.m_callback=n}return n.prototype._handleResult=function(n){this.m_callback&&this.m_callback()},n}(),i=function(){function i(){}return i.createSetPropertyAction=function(t,i,r,u,f){var e;n.Utility.validateObjectPath(i);var s={Id:t._nextId(),ActionType:4,Name:r,ObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},h=[u],o=n.Utility.setMethodArguments(t,s.ArgumentInfo,h);return n.Utility.validateReferencedObjectPaths(o),t._pendingRequest.ensureInstantiateObjectPath(i._objectPath),t._pendingRequest.ensureInstantiateObjectPaths(o),e=new n.Action(s,0,f),t._pendingRequest.addAction(e),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addReferencedObjectPaths(o),e.referencedObjectPath=i._objectPath,e.referencedArgumentObjectPaths=o,e},i.createMethodAction=function(t,i,r,u,f,e){var h,o,s;return n.Utility.validateObjectPath(i),h={Id:t._nextId(),ActionType:3,Name:r,ObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},o=n.Utility.setMethodArguments(t,h.ArgumentInfo,f),n.Utility.validateReferencedObjectPaths(o),t._pendingRequest.ensureInstantiateObjectPath(i._objectPath),t._pendingRequest.ensureInstantiateObjectPaths(o),s=new n.Action(h,u,n.Utility._fixupApiFlags(e)),t._pendingRequest.addAction(s),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addReferencedObjectPaths(o),s.referencedObjectPath=i._objectPath,s.referencedArgumentObjectPaths=o,s},i.createQueryAction=function(t,i,r){var f,u;return n.Utility.validateObjectPath(i),t._pendingRequest.ensureInstantiateObjectPath(i._objectPath),f={Id:t._nextId(),ActionType:2,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id},f.QueryInfo=r,u=new n.Action(f,1,4),t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u.referencedObjectPath=i._objectPath,u},i.createRecursiveQueryAction=function(t,i,r){n.Utility.validateObjectPath(i);t._pendingRequest.ensureInstantiateObjectPath(i._objectPath);var f={Id:t._nextId(),ActionType:6,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id,RecursiveQueryInfo:r},u=new n.Action(f,1,4);return t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u.referencedObjectPath=i._objectPath,u},i.createQueryAsJsonAction=function(t,i,r){var f,u;return n.Utility.validateObjectPath(i),t._pendingRequest.ensureInstantiateObjectPath(i._objectPath),f={Id:t._nextId(),ActionType:7,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id},f.QueryInfo=r,u=new n.Action(f,1,4),t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u.referencedObjectPath=i._objectPath,u},i.createEnsureUnchangedAction=function(t,i,r){n.Utility.validateObjectPath(i);t._pendingRequest.ensureInstantiateObjectPath(i._objectPath);var f={Id:t._nextId(),ActionType:8,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id,ObjectState:r},u=new n.Action(f,1,4);return t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u.referencedObjectPath=i._objectPath,u},i.createUpdateAction=function(t,i,r){n.Utility.validateObjectPath(i);t._pendingRequest.ensureInstantiateObjectPath(i._objectPath);var f={Id:t._nextId(),ActionType:9,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id,ObjectState:r},u=new n.Action(f,0,0);return t._pendingRequest.addAction(u),t._pendingRequest.addReferencedObjectPath(i._objectPath),u.referencedObjectPath=i._objectPath,u},i.createInstantiateAction=function(t,i){n.Utility.validateObjectPath(i);t._pendingRequest.ensureInstantiateObjectPath(i._objectPath.parentObjectPath);t._pendingRequest.ensureInstantiateObjectPaths(i._objectPath.argumentObjectPaths);var u={Id:t._nextId(),ActionType:1,Name:"",ObjectPathId:i._objectPath.objectPathInfo.Id},r=new n.Action(u,1,4);return r.referencedObjectPath=i._objectPath,t._pendingRequest.addAction(r),t._pendingRequest.addReferencedObjectPath(i._objectPath),t._pendingRequest.addActionResultHandler(r,new n.InstantiateActionResultHandler(i)),r},i.createTraceAction=function(t,i,r){var u={Id:t._nextId(),ActionType:5,Name:"Trace",ObjectPathId:0},f=new n.Action(u,1,4);return t._pendingRequest.addAction(f),r&&t._pendingRequest.addTrace(u.Id,i),f},i.createTraceMarkerForCallback=function(n,r){var u=i.createTraceAction(n,null,!1);n._pendingRequest.addActionResultHandler(u,new t(r))},i}();n.ActionFactory=i}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(t,i){n.Utility.checkArgumentNull(t,"context");this.m_context=t;this.m_objectPath=i;this.m_objectPath&&(t._processingResult||(n.ActionFactory.createInstantiateAction(t,this),t._autoCleanup&&this._KeepReference&&t.trackedObjects._autoAdd(this)))}return Object.defineProperty(t.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_objectPath",{get:function(){return this.m_objectPath},set:function(n){this.m_objectPath=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNull",{get:function(){return n.Utility.throwIfNotLoaded("isNull",this._isNull,null,this._isNull),this._isNull},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNullObject",{get:function(){return n.Utility.throwIfNotLoaded("isNullObject",this._isNull,null,this._isNull),this._isNull},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isNull",{get:function(){return this.m_isNull},set:function(n){this.m_isNull=n;n&&this.m_objectPath&&this.m_objectPath._updateAsNullObject()},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){this._isNull=n.Utility.isNullOrUndefined(t);this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,t)},t.prototype._handleIdResult=function(t){this._isNull=n.Utility.isNullOrUndefined(t);n.Utility.fixObjectPathIfNecessary(this,t);this.context.trackedObjects._autoTrackIfNecessaryWhenHandleObjectResultValue(this,t)},t.prototype._handleRetrieveResult=function(n,t){this._handleIdResult(n)},t.prototype._recursivelySet=function(i,r,u,f,e){var c=i instanceof t,v=i,o,a,h,s,l;if(c)if(Object.getPrototypeOf(this)===Object.getPrototypeOf(i))i=JSON.parse(JSON.stringify(i));else throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"properties",errorLocation:this._className+".set"});try{for(s=0;s<u.length;s++)o=u[s],i.hasOwnProperty(o)&&typeof i[o]!="undefined"&&(this[o]=i[o]);for(s=0;s<f.length;s++)o=f[s],i.hasOwnProperty(o)&&typeof i[o]!="undefined"&&(a=c?v[o]:i[o],this[o].set(a,r));for(h=!c,r&&!n.Utility.isNullOrUndefined(h)&&(h=r.throwOnReadOnly),s=0;s<e.length;s++)if(o=e[s],i.hasOwnProperty(o)&&typeof i[o]!="undefined"&&h)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.cannotApplyPropertyThroughSetMethod,o),debugInfo:{errorLocation:o}});for(o in i)if(u.indexOf(o)<0&&f.indexOf(o)<0){if(l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),o),!l)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.propertyDoesNotExist,o),debugInfo:{errorLocation:o}});if(h&&!l.set)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.attemptingToSetReadOnlyProperty,o),debugInfo:{errorLocation:o}});}}catch(y){throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".set"},innerError:y});}},t.prototype._recursivelyUpdate=function(t){var o=n._internalConfig.alwaysPolyfillClientObjectUpdateMethod,r,f,e,c,u,l,i,v,y;o||(o=!n.Utility.isSetSupported("RichApiRuntime","1.2"));try{if(r=this[n.Constants.scalarPropertyNames],r||(r=[]),f=this[n.Constants.scalarPropertyUpdateable],!f)for(f=[],u=0;u<r.length;u++)f.push(!1);e=this[n.Constants.navigationPropertyNames];e||(e=[]);var s={},h={},a=0;for(i in t)if(c=r.indexOf(i),c>=0){if(!f[c])throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.attemptingToSetReadOnlyProperty,i),debugInfo:{errorLocation:i}});s[i]=t[i];++a}else if(e.indexOf(i)>=0)h[i]=t[i];else throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.propertyDoesNotExist,i),debugInfo:{errorLocation:i}});if(a>0)if(o)for(u=0;u<r.length;u++)i=r[u],l=s[i],n.Utility.isUndefined(l)||n.ActionFactory.createSetPropertyAction(this.context,this,i,l);else n.ActionFactory.createUpdateAction(this.context,this,s);for(i in h)v=this[i],y=h[i],v._recursivelyUpdate(y)}catch(p){throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility._getResourceString(n.ResourceStrings.invalidArgument,"properties"),debugInfo:{errorLocation:this._className+".update"},innerError:p});}},t}();n.ClientObject=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n){this.m_context=n;this.m_actions=[];this.m_actionResultHandler={};this.m_referencedObjectPaths={};this.m_instantiatedObjectPaths={};this.m_traceInfos={};this.m_pendingProcessEventHandlers=[];this.m_pendingEventHandlerActions={};this.m_responseTraceIds={};this.m_responseTraceMessages=[];this.m_preSyncPromises=[]}return Object.defineProperty(t.prototype,"traceInfos",{get:function(){return this.m_traceInfos},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceMessages",{get:function(){return this.m_responseTraceMessages},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_responseTraceIds",{get:function(){return this.m_responseTraceIds},enumerable:!0,configurable:!0}),t.prototype._setResponseTraceIds=function(t){var i,r,u;if(t)for(i=0;i<t.length;i++)r=t[i],this.m_responseTraceIds[r]=r,u=this.m_traceInfos[r],n.Utility.isNullOrUndefined(u)||this.m_responseTraceMessages.push(u)},t.prototype.addAction=function(n){if(this.m_context.batchMode===1){var t=!1;n.actionInfo.ActionType===1&&n.referencedObjectPath.objectPathInfo.ObjectPathType===4&&(t=!0);t||this.m_context.ensureInProgressBatchIfBatchMode()}this.m_actions.push(n);n.actionInfo.ActionType==1&&(this.m_instantiatedObjectPaths[n.actionInfo.ObjectPathId]=n)},Object.defineProperty(t.prototype,"hasActions",{get:function(){return this.m_actions.length>0},enumerable:!0,configurable:!0}),t.prototype._getLastAction=function(){return this.m_actions[this.m_actions.length-1]},t.prototype.addTrace=function(n,t){this.m_traceInfos[n]=t},t.prototype.ensureInstantiateObjectPath=function(t){if(t){if(this.m_instantiatedObjectPaths[t.objectPathInfo.Id])return;if(this.ensureInstantiateObjectPath(t.parentObjectPath),this.ensureInstantiateObjectPaths(t.argumentObjectPaths),!this.m_instantiatedObjectPaths[t.objectPathInfo.Id]){var r={Id:this.m_context._nextId(),ActionType:1,Name:"",ObjectPathId:t.objectPathInfo.Id},i=new n.Action(r,1,4);i.referencedObjectPath=t;this.addReferencedObjectPath(t);this.addAction(i)}}},t.prototype.ensureInstantiateObjectPaths=function(n){if(n)for(var t=0;t<n.length;t++)this.ensureInstantiateObjectPath(n[t])},t.prototype.addReferencedObjectPath=function(t){if(!this.m_referencedObjectPaths[t.objectPathInfo.Id]){if(!t.isValid)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidObjectPath,message:n.Utility._getResourceString(n.ResourceStrings.invalidObjectPath,n.Utility.getObjectPathExpression(t)),debugInfo:{errorLocation:n.Utility.getObjectPathExpression(t)}});while(t)this.m_referencedObjectPaths[t.objectPathInfo.Id]=t,t.objectPathInfo.ObjectPathType==3&&this.addReferencedObjectPaths(t.argumentObjectPaths),t=t.parentObjectPath}},t.prototype.addReferencedObjectPaths=function(n){if(n)for(var t=0;t<n.length;t++)this.addReferencedObjectPath(n[t])},t.prototype.addActionResultHandler=function(n,t){this.m_actionResultHandler[n.actionInfo.Id]=t},t.prototype.aggregrateRequestFlags=function(n,t,i){return t===0&&(n=n|1,(i&2)==0&&(n=n&-17),n=n&-5),i&1&&(n=n|2),(i&4)==0&&(n=n&-5),n},t.prototype.finallyNormalizeFlags=function(t){return(t&1)==0&&(t=t&-17),n._internalConfig.enableConcurrentFlag||(t=t&-5),n._internalConfig.enableUndoableFlag||(t=t&-17),typeof this.m_flagsForTesting=="number"&&(t=this.m_flagsForTesting),t},t.prototype.buildRequestMessageBodyAndRequestFlags=function(){var i,e,u,o,s,f,r,h;n._internalConfig.enableEarlyDispose&&t._calculateLastUsedObjectPathIds(this.m_actions);i=20;e={};for(u in this.m_referencedObjectPaths)i=this.aggregrateRequestFlags(i,this.m_referencedObjectPaths[u].operationType,this.m_referencedObjectPaths[u].flags),e[u]=this.m_referencedObjectPaths[u].objectPathInfo;for(o=[],s=!1,f=0;f<this.m_actions.length;f++)r=this.m_actions[f],r.actionInfo.ActionType===3&&r.actionInfo.Name===n.Constants.keepReference&&(s=!0),i=this.aggregrateRequestFlags(i,r.operationType,r.flags),o.push(r.actionInfo);return i=this.finallyNormalizeFlags(i),h={AutoKeepReference:this.m_context._autoCleanup&&s,Actions:o,ObjectPaths:e},{body:h,flags:i}},t.prototype.processResponse=function(n){var t,i,r;if(n)for(t=0;t<n.length;t++)i=n[t],r=this.m_actionResultHandler[i.ActionId],r&&r._handleResult(i.Value)},t.prototype.invalidatePendingInvalidObjectPaths=function(){for(var n in this.m_referencedObjectPaths)this.m_referencedObjectPaths[n].isInvalidAfterRequest&&(this.m_referencedObjectPaths[n].isValid=!1)},t.prototype._addPendingEventHandlerAction=function(n,t){this.m_pendingEventHandlerActions[n._id]||(this.m_pendingEventHandlerActions[n._id]=[],this.m_pendingProcessEventHandlers.push(n));this.m_pendingEventHandlerActions[n._id].push(t)},Object.defineProperty(t.prototype,"_pendingProcessEventHandlers",{get:function(){return this.m_pendingProcessEventHandlers},enumerable:!0,configurable:!0}),t.prototype._getPendingEventHandlerActions=function(n){return this.m_pendingEventHandlerActions[n._id]},t.prototype._addPreSyncPromise=function(n){this.m_preSyncPromises.push(n)},Object.defineProperty(t.prototype,"_preSyncPromises",{get:function(){return this.m_preSyncPromises},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_actions",{get:function(){return this.m_actions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_objectPaths",{get:function(){return this.m_referencedObjectPaths},enumerable:!0,configurable:!0}),t.prototype._removeKeepReferenceAction=function(t){for(var r,i=this.m_actions.length-1;i>=0;i--)if(r=this.m_actions[i].actionInfo,r.ObjectPathId===t&&r.ActionType===3&&r.Name===n.Constants.keepReference){this.m_actions.splice(i);break}},t._updateLastUsedActionIdOfObjectPathId=function(n,i,r){for(var u,e,f;i;){if(n[i.objectPathInfo.Id])return;if(n[i.objectPathInfo.Id]=r,u=i.argumentObjectPaths,u)for(e=u.length,f=0;f<e;f++)t._updateLastUsedActionIdOfObjectPathId(n,u[f],r);i=i.parentObjectPath}},t._calculateLastUsedObjectPathIds=function(n){for(var o,v,s,h,l,u,f,i,c,e={},a=n.length,r=a-1;r>=0;--r)if(i=n[r],u=i.actionInfo.Id,i.referencedObjectPath&&t._updateLastUsedActionIdOfObjectPathId(e,i.referencedObjectPath,u),o=i.referencedArgumentObjectPaths,o)for(v=o.length,s=0;s<v;s++)t._updateLastUsedActionIdOfObjectPathId(e,o[s],u);h={};for(l in e)u=e[l],f=h[u],f||(f=[],h[u]=f),f.push(parseInt(l));for(r=0;r<a;r++)i=n[r],c=h[i.actionInfo.Id],c&&c.length>0?i.actionInfo.L=c:i.actionInfo.L&&delete i.actionInfo.L},t}();n.ClientRequest=t}(OfficeExtension||(OfficeExtension={})),function(n){var t,i;n._internalConfig={showDisposeInfoInDebugInfo:!1,showInternalApiInDebugInfo:!1,enableEarlyDispose:!0,alwaysPolyfillClientObjectUpdateMethod:!1,alwaysPolyfillClientObjectRetrieveMethod:!1,enableConcurrentFlag:!1,enableUndoableFlag:!1};n.config={extendedErrorLogging:!1};t=function(){function t(){}return t.prototype._resolveRequestUrlAndHeaderInfo=function(){return n.Utility._createPromiseFromResult(null)},t.prototype._createRequestExecutorOrNull=function(){return null},Object.defineProperty(t.prototype,"eventRegistration",{get:function(){return n._Internal.officeJsEventRegistration},enumerable:!0,configurable:!0}),t}();n.SessionBase=t;i=function(){function i(r){if(this.m_customRequestHeaders={},this.m_batchMode=0,this._onRunFinishedNotifiers=[],this.m_nextId=0,i._overrideSession)this.m_requestUrlAndHeaderInfoResolver=i._overrideSession;else if((n.Utility.isNullOrUndefined(r)||typeof r=="string"&&r.length===0)&&(r=i.defaultRequestUrlAndHeaders,r||(r={url:n.Constants.localDocument,headers:{}})),typeof r=="string")this.m_requestUrlAndHeaderInfo={url:r,headers:{}};else if(i.isRequestUrlAndHeaderInfoResolver(r))this.m_requestUrlAndHeaderInfoResolver=r;else if(i.isRequestUrlAndHeaderInfo(r)){var u=r;this.m_requestUrlAndHeaderInfo={url:u.url,headers:{}};n.Utility._copyHeaders(u.headers,this.m_requestUrlAndHeaderInfo.headers)}else throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"url"});this.m_requestUrlAndHeaderInfoResolver instanceof t&&(this.m_session=this.m_requestUrlAndHeaderInfoResolver);this._processingResult=!1;this._customData=n.Constants.iterativeExecutor;this.sync=this.sync.bind(this)}return Object.defineProperty(i.prototype,"session",{get:function(){return this.m_session},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"eventRegistration",{get:function(){return this.m_session?this.m_session.eventRegistration:n._Internal.officeJsEventRegistration},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_url",{get:function(){return this.m_requestUrlAndHeaderInfo?this.m_requestUrlAndHeaderInfo.url:null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_pendingRequest",{get:function(){return this.m_pendingRequest==null&&(this.m_pendingRequest=new n.ClientRequest(this)),this.m_pendingRequest},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"debugInfo",{get:function(){var t=new n.RequestPrettyPrinter(this._rootObjectPropertyName,this._pendingRequest._objectPaths,this._pendingRequest._actions,n._internalConfig.showDisposeInfoInDebugInfo),i=t.process();return{pendingStatements:i}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackedObjects",{get:function(){return this.m_trackedObjects||(this.m_trackedObjects=new n.TrackedObjects(this)),this.m_trackedObjects},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"requestHeaders",{get:function(){return this.m_customRequestHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"batchMode",{get:function(){return this.m_batchMode},enumerable:!0,configurable:!0}),i.prototype.ensureInProgressBatchIfBatchMode=function(){if(this.m_batchMode===1&&!this.m_explicitBatchInProgress)throw n.Utility.createRuntimeError(n.ErrorCodes.generalException,n.Utility._getResourceString(n.ResourceStrings.notInsideBatch),null);},i.prototype.load=function(t,r){n.Utility.validateContext(this,t);var u=i._parseQueryOption(r),f=n.ActionFactory.createQueryAction(this,t,u);this._pendingRequest.addActionResultHandler(f,t)},i.isLoadOption=function(t){if(!n.Utility.isUndefined(t.select)&&(typeof t.select=="string"||Array.isArray(t.select))||!n.Utility.isUndefined(t.expand)&&(typeof t.expand=="string"||Array.isArray(t.expand))||!n.Utility.isUndefined(t.top)&&typeof t.top=="number"||!n.Utility.isUndefined(t.skip)&&typeof t.skip=="number")return!0;for(var i in t)return!1;return!0},i.parseStrictLoadOption=function(n){var t={Select:[]};return i.parseStrictLoadOptionHelper(t,"","option",n),t},i.combineQueryPath=function(n,t,i){return n.length===0?t:n+i+t},i.parseStrictLoadOptionHelper=function(t,r,u,f){var e,o;for(e in f)if(o=f[e],e==="$all"){if(typeof o!="boolean")throw n._Internal.RuntimeError._createInvalidArgError({argumentName:i.combineQueryPath(u,e,".")});o&&t.Select.push(i.combineQueryPath(r,"*","/"))}else if(e==="$top"){if(typeof o!="number"||r.length>0)throw n._Internal.RuntimeError._createInvalidArgError({argumentName:i.combineQueryPath(u,e,".")});t.Top=o}else if(e==="$skip"){if(typeof o!="number"||r.length>0)throw n._Internal.RuntimeError._createInvalidArgError({argumentName:i.combineQueryPath(u,e,".")});t.Skip=o}else if(typeof o=="boolean")o&&t.Select.push(i.combineQueryPath(r,e,"/"));else if(typeof o=="object")i.parseStrictLoadOptionHelper(t,i.combineQueryPath(r,e,"/"),i.combineQueryPath(u,e,"."),o);else throw n._Internal.RuntimeError._createInvalidArgError({argumentName:i.combineQueryPath(u,e,".")});},i._parseQueryOption=function(t){var u={},f,r;if(typeof t=="string")f=t,u.Select=n.Utility._parseSelectExpand(f);else if(Array.isArray(t))u.Select=t;else if(typeof t=="object")if(r=t,i.isLoadOption(r)){if(typeof r.select=="string")u.Select=n.Utility._parseSelectExpand(r.select);else if(Array.isArray(r.select))u.Select=r.select;else if(!n.Utility.isNullOrUndefined(r.select))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"option.select"});if(typeof r.expand=="string")u.Expand=n.Utility._parseSelectExpand(r.expand);else if(Array.isArray(r.expand))u.Expand=r.expand;else if(!n.Utility.isNullOrUndefined(r.expand))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"option.expand"});if(typeof r.top=="number")u.Top=r.top;else if(!n.Utility.isNullOrUndefined(r.top))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"option.top"});if(typeof r.skip=="number")u.Skip=r.skip;else if(!n.Utility.isNullOrUndefined(r.skip))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"option.skip"});}else u=i.parseStrictLoadOption(t);else if(!n.Utility.isNullOrUndefined(t))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"option"});return u},i.prototype.loadRecursive=function(t,r,u){var f,e,o;if(!n.Utility.isPlainJsonObject(r))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"options"});f={};for(e in r)f[e]=i._parseQueryOption(r[e]);o=n.ActionFactory.createRecursiveQueryAction(this,t,{Queries:f,MaxDepth:u});this._pendingRequest.addActionResultHandler(o,t)},i.prototype.trace=function(t){n.ActionFactory.createTraceAction(this,t,!0)},i.prototype._processOfficeJsErrorResponse=function(n,t){},i.prototype.ensureRequestUrlAndHeaderInfo=function(){var t=this;return n.Utility._createPromiseFromResult(null).then(function(){if(!t.m_requestUrlAndHeaderInfo)return t.m_requestUrlAndHeaderInfoResolver._resolveRequestUrlAndHeaderInfo().then(function(i){if(t.m_requestUrlAndHeaderInfo=i,t.m_requestUrlAndHeaderInfo||(t.m_requestUrlAndHeaderInfo={url:n.Constants.localDocument,headers:{}}),n.Utility.isNullOrEmptyString(t.m_requestUrlAndHeaderInfo.url)&&(t.m_requestUrlAndHeaderInfo.url=n.Constants.localDocument),t.m_requestUrlAndHeaderInfo.headers||(t.m_requestUrlAndHeaderInfo.headers={}),typeof t.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull=="function"){var r=t.m_requestUrlAndHeaderInfoResolver._createRequestExecutorOrNull();r&&(t._requestExecutor=r)}})})},i.prototype.syncPrivateMain=function(){var n=this;return this.ensureRequestUrlAndHeaderInfo().then(function(){var t=n._pendingRequest;return n.m_pendingRequest=null,n.processPreSyncPromises(t).then(function(){return n.syncPrivate(t)})})},i.prototype.syncPrivate=function(t){var f=this,s,u,h,r,i;if(!t.hasActions)return this.processPendingEventHandlers(t);var e=t.buildRequestMessageBodyAndRequestFlags(),c=e.body,o=e.flags;return this._requestExecutor||(this._requestExecutor=n.Utility._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?new n.OfficeJsRequestExecutor(this):new n.HttpRequestExecutor),s=this._requestExecutor,u={},n.Utility._copyHeaders(this.m_requestUrlAndHeaderInfo.headers,u),n.Utility._copyHeaders(this.m_customRequestHeaders,u),h={Url:this.m_requestUrlAndHeaderInfo.url,Headers:u,Body:c},t.invalidatePendingInvalidObjectPaths(),r=null,i=null,this._lastSyncStart=performance.now(),this._lastRequestFlags=o,s.executeAsync(this._customData,o,h).then(function(u){return f._lastSyncEnd=performance.now(),r=f.processRequestExecutorResponseMessage(t,u),f.processPendingEventHandlers(t).catch(function(t){n.Utility.log("Error in processPendingEventHandlers");n.Utility.log(JSON.stringify(t));i=t})}).then(function(){var u,f;if(r){n.Utility.log("Throw error from response: "+JSON.stringify(r));throw r;}if(i){n.Utility.log("Throw error from ProcessEventHandler: "+JSON.stringify(i));u=null;i instanceof n._Internal.RuntimeError?(u=i,u.traceMessages=t._responseTraceMessages):(f=null,f=typeof i=="string"?i:i.message,n.Utility.isNullOrEmptyString(f)&&(f=n.Utility._getResourceString(n.ResourceStrings.cannotRegisterEvent)),u=new n._Internal.RuntimeError({code:n.ErrorCodes.cannotRegisterEvent,message:f,traceMessages:t._responseTraceMessages}));throw u;}})},i.prototype.processRequestExecutorResponseMessage=function(t,i){var o,r,e,s,u,f;if(i.Body&&i.Body.TraceIds&&t._setResponseTraceIds(i.Body.TraceIds),o=t._responseTraceMessages,r=null,i.Body&&(i.Body.Error&&i.Body.Error.ActionIndex>=0&&(e=new n.RequestPrettyPrinter(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!0),s=e.processForDebugStatementInfo(i.Body.Error.ActionIndex),r={statement:s.statement,surroundingStatements:s.surroundingStatements,fullStatements:["Please enable config.extendedErrorLogging to see full statements."]},n.config.extendedErrorLogging&&(e=new n.RequestPrettyPrinter(this._rootObjectPropertyName,t._objectPaths,t._actions,!1,!1),r.fullStatements=e.process())),u=null,i.Body.Results?u=i.Body.Results:i.Body.ProcessedResults&&i.Body.ProcessedResults.Results&&(u=i.Body.ProcessedResults.Results),u)){this._processingResult=!0;try{t.processResponse(u)}finally{this._processingResult=!1}}if(n.Utility.isNullOrEmptyString(i.ErrorCode)){if(i.Body&&i.Body.Error)return f={errorLocation:i.Body.Error.Location},r&&(f.statement=r.statement,f.surroundingStatements=r.surroundingStatements,f.fullStatements=r.fullStatements),new n._Internal.RuntimeError({code:i.Body.Error.Code,message:i.Body.Error.Message,traceMessages:o,debugInfo:f})}else return new n._Internal.RuntimeError({code:i.ErrorCode,message:i.ErrorMessage,traceMessages:o});return null},i.prototype.processPendingEventHandlers=function(t){for(var u,i=n.Utility._createPromiseFromResult(null),r=0;r<t._pendingProcessEventHandlers.length;r++)u=t._pendingProcessEventHandlers[r],i=i.then(this.createProcessOneEventHandlersFunc(u,t));return i},i.prototype.createProcessOneEventHandlersFunc=function(n,t){return function(){return n._processRegistration(t)}},i.prototype.processPreSyncPromises=function(t){for(var u,i=n.Utility._createPromiseFromResult(null),r=0;r<t._preSyncPromises.length;r++)u=t._preSyncPromises[r],i=i.then(this.createProcessOneProSyncFunc(u));return i},i.prototype.createProcessOneProSyncFunc=function(n){return function(){return n}},i.prototype.sync=function(n){return this.syncPrivateMain().then(function(){return n})},i.prototype.batch=function(t){var i=this,u,r,f,e;if(this.m_batchMode!==1)return n.CoreUtility.Promise.reject(n.Utility.createRuntimeError(n.ErrorCodes.generalException,null,null));if(this.m_explicitBatchInProgress)return n.CoreUtility.Promise.reject(n.Utility.createRuntimeError(n.ErrorCodes.generalException,n.Utility._getResourceString(n.ResourceStrings.pendingBatchInProgress),null));if(n.Utility.isNullOrUndefined(t))return n.Utility._createPromiseFromResult(null);this.m_explicitBatchInProgress=!0;u=this.m_pendingRequest;this.m_pendingRequest=new n.ClientRequest(this);try{r=t(this._rootObject,this)}catch(o){return this.m_explicitBatchInProgress=!1,this.m_pendingRequest=u,n.CoreUtility.Promise.reject(o)}return typeof r=="object"&&r&&typeof r.then=="function"?e=n.Utility._createPromiseFromResult(null).then(function(){return r}).then(function(n){return i.m_explicitBatchInProgress=!1,f=i.m_pendingRequest,i.m_pendingRequest=u,n}).catch(function(t){return i.m_explicitBatchInProgress=!1,f=i.m_pendingRequest,i.m_pendingRequest=u,n.CoreUtility.Promise.reject(t)}):(this.m_explicitBatchInProgress=!1,f=this.m_pendingRequest,this.m_pendingRequest=u,e=n.Utility._createPromiseFromResult(r)),e.then(function(n){return i.ensureRequestUrlAndHeaderInfo().then(function(){return i.syncPrivate(f)}).then(function(){return n})})},i._run=function(n,t,r,u,f,e){return r===void 0&&(r=3),u===void 0&&(u=5e3),i._runCommon("run",null,n,0,t,r,u,f,e)},i.isRequestUrlAndHeaderInfo=function(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})&&!n.Utility.isNullOrUndefined(t.url)},i.isRequestUrlAndHeaderInfoResolver=function(n){return typeof n=="object"&&n!==null&&typeof n._resolveRequestUrlAndHeaderInfo=="function"},i._runBatch=function(n,t,r,u,f,e,o){return u===void 0&&(u=3),f===void 0&&(f=5e3),i._runBatchCommon(0,n,t,r,u,f,e,o)},i._runExplicitBatch=function(n,t,r,u,f,e,o){return u===void 0&&(u=3),f===void 0&&(f=5e3),i._runBatchCommon(1,n,t,r,u,f,e,o)},i._runBatchCommon=function(t,r,u,f,e,o,s,h){var a,y,p,c,l,v;if(e===void 0&&(e=3),o===void 0&&(o=5e3),p=null,c=0,u.length>0&&(typeof u[0]=="string"||i.isRequestUrlAndHeaderInfo(u[0])||i.isRequestUrlAndHeaderInfoResolver(u[0]))&&(p=u[0],c=1),u.length==c+1)a=f,y=u[c+0];else if(u.length==c+2){if(n.Utility.isNullOrUndefined(u[c+0]))a=f;else if(u[c+0]instanceof n.ClientObject)a=function(){return u[c+0].context};else if(u[c+0]instanceof i)a=function(){return u[c+0]};else if(Array.isArray(u[c+0])){if(l=u[c+0],l.length==0)return i.createErrorPromise(r);for(v=0;v<l.length;v++){if(!(l[v]instanceof n.ClientObject))return i.createErrorPromise(r);if(l[v].context!=l[0].context)return i.createErrorPromise(r,n.ResourceStrings.invalidRequestContext)}a=function(){return l[0].context}}else return i.createErrorPromise(r);y=u[c+1]}else return i.createErrorPromise(r);return i._runCommon(r,p,a,t,y,e,o,s,h)},i.createErrorPromise=function(t,i){return i===void 0&&(i=n.ResourceStrings.invalidArgument),n.CoreUtility.Promise.reject(n.Utility.createRuntimeError(i,n.Utility._getResourceString(i),t))},i._runCommon=function(t,r,u,f,e,o,s,h,c){i._overrideSession&&(r=i._overrideSession);var p=new n.CoreUtility.Promise(function(n,t){n()}),l,v=!1,a,y;return p.then(function(){if(l=u(r),l._autoCleanup)return new n.CoreUtility.Promise(function(n,t){l._onRunFinishedNotifiers.push(function(){l._autoCleanup=!0;n()})});else l._autoCleanup=!0}).then(function(){if(typeof e!="function")return i.createErrorPromise(t);y=l.m_batchMode;l.m_batchMode=f;var r;return r=f==1?e(l.batch.bind(l)):e(l),(n.Utility.isNullOrUndefined(r)||typeof r.then!="function")&&n.Utility.throwError(n.ResourceStrings.runMustReturnPromise),r}).then(function(n){return f===1?n:l.sync(n)}).then(function(n){v=!0;a=n}).catch(function(n){a=n}).then(function(){function f(){var r;t++;var e=l.m_pendingRequest,a=l.m_batchMode,i=new n.ClientRequest(l);l.m_pendingRequest=i;l.m_batchMode=0;try{for(r in u)l.trackedObjects.remove(u[r])}finally{l.m_batchMode=a;l.m_pendingRequest=e}return l.syncPrivate(i).then(function(){h&&h(t)}).catch(function(){c&&c(t);t<o&&setTimeout(function(){f()},s)})}var u=l.trackedObjects._retrieveAndClearAutoCleanupList(),e,t;l._autoCleanup=!1;l.m_batchMode=y;for(e in u)u[e]._objectPath.isValid=!1;if(t=0,n.Utility._synchronousCleanup||i.isRequestUrlAndHeaderInfoResolver(r))return f();else f()}).then(function(){if(l._onRunFinishedNotifiers&&l._onRunFinishedNotifiers.length>0){var n=l._onRunFinishedNotifiers.shift();n()}if(v)return a;else throw a;})},i.prototype._nextId=function(){return++this.m_nextId},i}();n.ClientRequestContext=i}(OfficeExtension||(OfficeExtension={})),function(n){var i=function(){function t(n){this.m_type=n}return Object.defineProperty(t.prototype,"value",{get:function(){if(!this.m_isLoaded)throw new n._Internal.RuntimeError({code:n.ErrorCodes.valueNotLoaded,message:n.Utility._getResourceString(n.ResourceStrings.valueNotLoaded),debugInfo:{errorLocation:"clientResult.value"}});return this.m_value},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){(this.m_isLoaded=!0,typeof t=="object"&&t&&t._IsNull)||(this.m_value=this.m_type===1?n.Utility.adjustToDateTime(t):t)},t}(),t;n.ClientResult=i;t=function(){function t(t,i){var r;this.m_proxy=t;this.m_shouldPolyfill=i;var u=t[n.Constants.scalarPropertyNames],f=t[n.Constants.navigationPropertyNames],e=t[n.Constants.className],o=t[n.Constants.isCollection];if(u)for(r=0;r<u.length;r++)n.Utility.definePropertyThrowUnloadedException(this,e,u[r]);if(f)for(r=0;r<f.length;r++)n.Utility.definePropertyThrowUnloadedException(this,e,f[r]);o&&n.Utility.definePropertyThrowUnloadedException(this,e,n.Constants.itemsLowerCase)}return Object.defineProperty(t.prototype,"$proxy",{get:function(){return this.m_proxy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"$isNullObject",{get:function(){if(!this.m_isLoaded)throw new n._Internal.RuntimeError({code:n.ErrorCodes.valueNotLoaded,message:n.Utility._getResourceString(n.ResourceStrings.valueNotLoaded),debugInfo:{errorLocation:"retrieveResult.$isNullObject"}});return this.m_isNullObject},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return this.m_isLoaded?this.m_isNullObject?null:(n.Utility.isUndefined(this.m_json)&&(this.m_json=this.purifyJson(this.m_value)),this.m_json):undefined},t.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.prototype._handleResult=function(n){this.m_isLoaded=!0;n===null||typeof n=="object"&&n&&n._IsNull?(this.m_isNullObject=!0,n=null):this.m_isNullObject=!1;this.m_shouldPolyfill&&(n=this.changePropertyNameToCamelLowerCase(n));this.m_value=n;this.m_proxy._handleRetrieveResult(n,this)},t.prototype.changePropertyNameToCamelLowerCase=function(t){var o=95,r,i,u,f,e;if(Array.isArray(t)){for(i=[],r=0;r<t.length;r++)i.push(this.changePropertyNameToCamelLowerCase(t[r]));return i}else if(typeof t=="object"&&t!==null){i={};for(u in t)if(f=t[u],u===n.Constants.items){i={};i[n.Constants.itemsLowerCase]=this.changePropertyNameToCamelLowerCase(f);break}else e=n.Utility._toCamelLowerCase(u),i[e]=this.changePropertyNameToCamelLowerCase(f);return i}else return t},t.prototype.purifyJson=function(n){var f=95,r,i,u,t;if(Array.isArray(n)){for(i=[],r=0;r<n.length;r++)i.push(this.purifyJson(n[r]));return i}else if(typeof n=="object"&&n!==null){i={};for(u in n)u.charCodeAt(0)!==f&&(t=n[u],typeof t=="object"&&t!==null&&Array.isArray(t.items)&&(t=t.items),i[u]=this.purifyJson(t));return i}else return n},t}();n.RetrieveResultImpl=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.flags="flags",n.getItemAt="GetItemAt",n.id="Id",n.idLowerCase="id",n.idPrivate="_Id",n.index="_Index",n.items="_Items",n.iterativeExecutor="IterativeExecutor",n.localDocument="http://document.localhost/",n.localDocumentApiPrefix="http://document.localhost/_api/",n.keepReference="_KeepReference",n.objectPathIdPrivate="_ObjectPathId",n.processQuery="ProcessQuery",n.referenceId="_ReferenceId",n.isTracked="_IsTracked",n.sourceLibHeader="SdkVersion",n.sessionContext="sc",n.embeddingPageOrigin="EmbeddingPageOrigin",n.embeddingPageSessionInfo="EmbeddingPageSessionInfo",n.eventMessageCategory=65536,n.eventWorkbookId="Workbook",n.eventSourceRemote="Remote",n.itemsLowerCase="items",n.proxy="$proxy",n.scalarPropertyNames="_scalarPropertyNames",n.navigationPropertyNames="_navigationPropertyNames",n.className="_className",n.isCollection="_isCollection",n.scalarPropertyUpdateable="_scalarPropertyUpdateable",n.collectionPropertyPath="_collectionPropertyPath",n.objectPathInfoDoNotKeepReferenceFieldName="D",n}();n.Constants=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return Object.defineProperty(t,"Promise",{get:function(){if(typeof n.Promise!="undefined")return n.Promise;if(typeof Office!="undefined"&&Office.Promise)return Office.Promise;if(typeof OfficeExtension!="undefined"&&OfficeExtension.Promise)return OfficeExtension.Promise;throw new n.Error("No Promise implementation found");},enumerable:!0,configurable:!0}),t}();n.CoreUtility=t}(OfficeExtension||(OfficeExtension={})),function(n){var u=1,r={invokeRequestModifier:function(n){return n.DdaMethod.Version=u,n},invokeResponseModifier:function(n){return u=n.Version,n.Error&&(n.error={},n.error.Code=n.Error),n}},i,t,f,e;(function(n){n[n.Success=0]="Success";n[n.Timeout=1]="Timeout";n[n.InternalError=5001]="InternalError"})(i||(i={})),function(n){n.SendingId="sId";n.RespondingId="rId";n.CommandKey="command";n.SessionInfoKey="sessionInfo";n.ParamsKey="params";n.ApiReadyCommand="apiready";n.ExecuteMethodCommand="executeMethod";n.GetAppContextCommand="getAppContext";n.RegisterEventCommand="registerEvent";n.UnregisterEventCommand="unregisterEvent";n.FireEventCommand="fireEvent"}(t||(t={}));f=function(u){function f(n,t){var i=u.call(this)||this;return i.m_chosenWindow=null,i.m_chosenOrigin=null,i.m_enabled=!0,i.m_onMessageHandler=i._onMessage.bind(i),i.m_callbackList={},i.m_id=0,i.m_timeoutId=-1,i.m_appContext=null,i.m_url=n,i.m_options=t,i.m_options||(i.m_options={sessionKey:Math.random().toString()}),i.m_options.sessionKey||(i.m_options.sessionKey=Math.random().toString()),i.m_options.container||(i.m_options.container=document.body),i.m_options.timeoutInMilliseconds||(i.m_options.timeoutInMilliseconds=6e4),i.m_options.height||(i.m_options.height="400px"),i.m_options.width||(i.m_options.width="100%"),i.m_options.webApplication&&i.m_options.webApplication.accessToken&&i.m_options.webApplication.accessTokenTtl||(i.m_options.webApplication=null),i}return __extends(f,u),f.prototype._getIFrameSrc=function(){var u=window.location.protocol+"//"+window.location.host,i=n.Constants.embeddingPageOrigin+"="+encodeURIComponent(u)+"&"+n.Constants.embeddingPageSessionInfo+"="+encodeURIComponent(this.m_options.sessionKey),f=!1,t,r;return(this.m_url.toLowerCase().indexOf("/_layouts/preauth.aspx")>0||this.m_url.toLowerCase().indexOf("/_layouts/15/preauth.aspx")>0)&&(f=!0),t=document.createElement("a"),t.href=this.m_url,this.m_options.webApplication?(r=n.Constants.embeddingPageOrigin+"="+u+"&"+n.Constants.embeddingPageSessionInfo+"="+this.m_options.sessionKey,t.search=t.search.length===0||t.search==="?"?"?"+n.Constants.sessionContext+"="+encodeURIComponent(r):t.search+"&"+n.Constants.sessionContext+"="+encodeURIComponent(r)):f?t.hash=t.hash.length===0||t.hash==="#"?"#"+i:t.hash+"&"+i:t.search=t.search.length===0||t.search==="?"?"?"+i:t.search+"&"+i,t.href},f.prototype.init=function(){var t=this,i;return window.addEventListener("message",this.m_onMessageHandler),i=this._getIFrameSrc(),new n.CoreUtility.Promise(function(r,u){var f=document.createElement("iframe"),e,o,s;t.m_options.id&&(f.id=t.m_options.id,f.name=t.m_options.id);f.style.height=t.m_options.height;f.style.width=t.m_options.width;t.m_options.webApplication?(e=document.createElement("form"),e.setAttribute("action",i),e.setAttribute("method","post"),e.setAttribute("target",f.name),t.m_options.container.appendChild(e),o=document.createElement("input"),o.setAttribute("type","hidden"),o.setAttribute("name","access_token"),o.setAttribute("value",t.m_options.webApplication.accessToken),e.appendChild(o),s=document.createElement("input"),s.setAttribute("type","hidden"),s.setAttribute("name","access_token_ttl"),s.setAttribute("value",t.m_options.webApplication.accessTokenTtl),e.appendChild(s),t.m_options.container.appendChild(f),e.submit()):(f.src=i,t.m_options.container.appendChild(f));t.m_timeoutId=setTimeout(function(){t.close();var i=n.Utility.createRuntimeError(n.ErrorCodes.timeout,n.Utility._getResourceString(n.ResourceStrings.timeout),"EmbeddedSession.init");u(i)},t.m_options.timeoutInMilliseconds);t.m_promiseResolver=r})},f.prototype._invoke=function(n,t,u){if(!this.m_enabled){t(i.InternalError,null);return}r.invokeRequestModifier&&(u=r.invokeRequestModifier(u));this._sendMessageWithCallback(this.m_id++,n,u,function(n){r.invokeResponseModifier&&(n=r.invokeResponseModifier(n));var u=n.Error;delete n.Error;t(u||i.Success,n)})},f.prototype.close=function(){window.removeEventListener("message",this.m_onMessageHandler);window.clearTimeout(this.m_timeoutId);this.m_enabled=!1},Object.defineProperty(f.prototype,"eventRegistration",{get:function(){return this.m_sessionEventManager||(this.m_sessionEventManager=new n.EventRegistration(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this))),this.m_sessionEventManager},enumerable:!0,configurable:!0}),f.prototype._createRequestExecutorOrNull=function(){return new e(this)},f.prototype._resolveRequestUrlAndHeaderInfo=function(){return n.Utility._createPromiseFromResult(null)},f.prototype._registerEventImpl=function(i,r){var u=this;return new n.CoreUtility.Promise(function(n,f){u._sendMessageWithCallback(u.m_id++,t.RegisterEventCommand,{EventId:i,TargetId:r},function(){n(null)})})},f.prototype._unregisterEventImpl=function(i,r){var u=this;return new n.CoreUtility.Promise(function(n,f){u._sendMessageWithCallback(u.m_id++,t.UnregisterEventCommand,{EventId:i,TargetId:r},function(){n()})})},f.prototype._onMessage=function(n){var u=this,i,e,r,o,s;if(this.m_enabled&&(!this.m_chosenWindow||this.m_chosenWindow===n.source&&this.m_chosenOrigin===n.origin)){if(i=n.data,i&&i[t.CommandKey]===t.ApiReadyCommand){!this.m_chosenWindow&&this._isValidDescendant(n.source)&&i[t.SessionInfoKey]===this.m_options.sessionKey&&(this.m_chosenWindow=n.source,this.m_chosenOrigin=n.origin,this._sendMessageWithCallback(this.m_id++,t.GetAppContextCommand,null,function(n){u._setupContext(n);window.clearTimeout(u.m_timeoutId);u.m_promiseResolver()}));return}if(i&&i[t.CommandKey]===t.FireEventCommand){var f=i[t.ParamsKey],h=f.EventId,c=f.TargetId,l=f.Data;if(this.m_sessionEventManager)for(e=this.m_sessionEventManager.getHandlers(h,c),r=0;r<e.length;r++)e[r](l);return}i&&i.hasOwnProperty(t.RespondingId)&&(o=i[t.RespondingId],s=this.m_callbackList[o],typeof s=="function"&&s(i[t.ParamsKey]),delete this.m_callbackList[o])}},f.prototype._sendMessageWithCallback=function(n,i,r,u){this.m_callbackList[n]=u;var f={};f[t.SendingId]=n;f[t.CommandKey]=i;f[t.ParamsKey]=r;this.m_chosenWindow.postMessage(JSON.stringify(f),this.m_chosenOrigin)},f.prototype._isValidDescendant=function(n){function i(t){if(t===n)return!0;for(var r=0,u=t.frames.length;r<u;r++)if(i(t.frames[r]))return!0;return!1}for(var u=this.m_options.container||document.body,r=u.getElementsByTagName("iframe"),t=0,f=r.length;t<f;t++)if(i(r[t].contentWindow))return!0;return!1},f.prototype._setupContext=function(n){!(this.m_appContext=n)},f}(n.SessionBase);n.EmbeddedSession=f;e=function(){function r(n){this.m_session=n}return r.prototype.executeAsync=function(u,f,e){var o=this,s=n.RichApiMessageUtility.buildMessageArrayForIRequestExecutor(u,f,e,r.SourceLibHeaderValue);return new n.CoreUtility.Promise(function(u,f){o.m_session._invoke(t.ExecuteMethodCommand,function(t,r){n.Utility.log("Response:");n.Utility.log(JSON.stringify(r));var f;f=t==i.Success?n.RichApiMessageUtility.buildResponseOnSuccess(n.RichApiMessageUtility.getResponseBodyFromSafeArray(r.Data),n.RichApiMessageUtility.getResponseHeadersFromSafeArray(r.Data)):n.RichApiMessageUtility.buildResponseOnError(r.error.Code,r.error.Message);u(f)},r._transformMessageArrayIntoParams(s))})},r._transformMessageArrayIntoParams=function(n){return{ArrayData:n,DdaMethod:{DispatchId:r.DispidExecuteRichApiRequestMethod}}},r.DispidExecuteRichApiRequestMethod=93,r.SourceLibHeaderValue="Embedded",r}()}(OfficeExtension||(OfficeExtension={})),function(n){var t;(function(t){var i=function(i){function r(n){var t=i.call(this,typeof n=="string"?n:n.message)||this;return Object.setPrototypeOf(t,r.prototype),t.name="OfficeExtension.Error",typeof n=="string"?t.message=n:(t.code=n.code,t.message=n.message,t.traceMessages=n.traceMessages||[],t.innerError=n.innerError||null,t.debugInfo=t._createDebugInfo(n.debugInfo||{})),t}return __extends(r,i),r.prototype.toString=function(){return this.code+": "+this.message},r.prototype._createDebugInfo=function(t){var i={code:this.code,message:this.message,toString:function(){return JSON.stringify(this)}};for(var r in t)i[r]=t[r];return this.innerError&&(i.innerError=this.innerError instanceof n._Internal.RuntimeError?this.innerError.debugInfo:this.innerError),i},r._createInvalidArgError=function(i){return new t.RuntimeError({code:n.ErrorCodes.invalidArgument,message:n.Utility.isNullOrEmptyString(i.argumentName)?n.Utility._getResourceString(n.ResourceStrings.invalidArgumentGeneric):n.Utility._getResourceString(n.ResourceStrings.invalidArgument,i.argumentName),debugInfo:i.errorLocation?{errorLocation:i.errorLocation}:{},innerError:i.innerError})},r}(Error);t.RuntimeError=i})(t=n._Internal||(n._Internal={}));n.Error=t.RuntimeError}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.accessDenied="AccessDenied",n.generalException="GeneralException",n.activityLimitReached="ActivityLimitReached",n.invalidObjectPath="InvalidObjectPath",n.propertyNotLoaded="PropertyNotLoaded",n.valueNotLoaded="ValueNotLoaded",n.invalidRequestContext="InvalidRequestContext",n.invalidArgument="InvalidArgument",n.runMustReturnPromise="RunMustReturnPromise",n.cannotRegisterEvent="CannotRegisterEvent",n.apiNotFound="ApiNotFound",n.connectionFailure="ConnectionFailure",n.timeout="Timeout",n.invalidOrTimedOutSession="InvalidOrTimedOutSession",n.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",n}();n.ErrorCodes=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n,t,i,r){var u=this;this.m_id=n._nextId();this.m_context=n;this.m_name=i;this.m_handlers=[];this.m_registered=!1;this.m_eventInfo=r;this.m_callback=function(n){u.m_eventInfo.eventArgsTransformFunc(n).then(function(n){return u.fireEvent(n)})}}return Object.defineProperty(t.prototype,"_registered",{get:function(){return this.m_registered},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_id",{get:function(){return this.m_id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_handlers",{get:function(){return this.m_handlers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_callback",{get:function(){return this.m_callback},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var i=n.ActionFactory.createTraceAction(this.m_context,null,!1);return this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:i.actionInfo.Id,handler:t,operation:0}),new n.EventHandlerResult(this.m_context,this,t)},t.prototype.remove=function(t){var i=n.ActionFactory.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:i.actionInfo.Id,handler:t,operation:1})},t.prototype.removeAll=function(){var t=n.ActionFactory.createTraceAction(this.m_context,null,!1);this.m_context._pendingRequest._addPendingEventHandlerAction(this,{id:t.actionInfo.Id,handler:null,operation:2})},t.prototype._processRegistration=function(t){var f=this,u=n.Utility._createPromiseFromResult(null),e=t._getPendingEventHandlerActions(this),r,s,i,o;if(!e)return u;for(r=[],i=0;i<this.m_handlers.length;i++)r.push(this.m_handlers[i]);for(s=!1,i=0;i<e.length;i++)if(t._responseTraceIds[e[i].id]){s=!0;switch(e[i].operation){case 0:r.push(e[i].handler);break;case 1:for(o=r.length-1;o>=0;o--)if(r[o]===e[i].handler){r.splice(o,1);break}break;case 2:r=[];break}}return s&&(!this.m_registered&&r.length>0?u=u.then(function(){return f.m_eventInfo.registerFunc(f.m_callback)}).then(function(){return f.m_registered=!0}):this.m_registered&&r.length==0&&(u=u.then(function(){return f.m_eventInfo.unregisterFunc(f.m_callback)}).catch(function(t){n.Utility.log("Error when unregister event: "+JSON.stringify(t))}).then(function(){return f.m_registered=!1})),u=u.then(function(){return f.m_handlers=r})),u},t.prototype.fireEvent=function(t){for(var u,f,r=[],i=0;i<this.m_handlers.length;i++)u=this.m_handlers[i],f=n.Utility._createPromiseFromResult(null).then(this.createFireOneEventHandlerFunc(u,t)).catch(function(t){n.Utility.log("Error when invoke handler: "+JSON.stringify(t))}),r.push(f);n.CoreUtility.Promise.all(r)},t.prototype.createFireOneEventHandlerFunc=function(n,t){return function(){return n(t)}},t}();n.EventHandlers=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(n,t,i){this.m_context=n;this.m_allHandlers=t;this.m_handler=i}return Object.defineProperty(n.prototype,"context",{get:function(){return this.m_context},enumerable:!0,configurable:!0}),n.prototype.remove=function(){this.m_allHandlers&&this.m_handler&&(this.m_allHandlers.remove(this.m_handler),this.m_allHandlers=null,this.m_handler=null)},n}();n.EventHandlerResult=t}(OfficeExtension||(OfficeExtension={})),function(n){var t,i;(function(t){var i=function(){function i(){}return i.prototype.register=function(i,r,u){switch(i){case 4:return n.Utility.promisify(function(n){return Office.context.document.bindings.getByIdAsync(r,n)}).then(function(t){return n.Utility.promisify(function(n){return t.addHandlerAsync(Office.EventType.BindingDataChanged,u,n)})});case 3:return n.Utility.promisify(function(n){return Office.context.document.bindings.getByIdAsync(r,n)}).then(function(t){return n.Utility.promisify(function(n){return t.addHandlerAsync(Office.EventType.BindingSelectionChanged,u,n)})});case 2:return n.Utility.promisify(function(n){return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,u,n)});case 1:return n.Utility.promisify(function(n){return Office.context.document.settings.addHandlerAsync(Office.EventType.SettingsChanged,u,n)});case 5:return n.Utility.promisify(function(n){return OSF.DDA.RichApi.richApiMessageManager.addHandlerAsync("richApiMessage",u,n)});case 13:return n.Utility.promisify(function(n){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDeleted,u,{id:r},n)});case 14:return n.Utility.promisify(function(n){return Office.context.document.addHandlerAsync(Office.EventType.ObjectSelectionChanged,u,{id:r},n)});case 15:return n.Utility.promisify(function(n){return Office.context.document.addHandlerAsync(Office.EventType.ObjectDataChanged,u,{id:r},n)});case 16:return n.Utility.promisify(function(n){return Office.context.document.addHandlerAsync(Office.EventType.ContentControlAdded,u,{id:r},n)});default:throw t.RuntimeError._createInvalidArgError({argumentName:"eventId"});}},i.prototype.unregister=function(i,r,u){switch(i){case 4:return n.Utility.promisify(function(n){return Office.context.document.bindings.getByIdAsync(r,n)}).then(function(t){return n.Utility.promisify(function(n){return t.removeHandlerAsync(Office.EventType.BindingDataChanged,{handler:u},n)})});case 3:return n.Utility.promisify(function(n){return Office.context.document.bindings.getByIdAsync(r,n)}).then(function(t){return n.Utility.promisify(function(n){return t.removeHandlerAsync(Office.EventType.BindingSelectionChanged,{handler:u},n)})});case 2:return n.Utility.promisify(function(n){return Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:u},n)});case 1:return n.Utility.promisify(function(n){return Office.context.document.settings.removeHandlerAsync(Office.EventType.SettingsChanged,{handler:u},n)});case 5:return n.Utility.promisify(function(n){return OSF.DDA.RichApi.richApiMessageManager.removeHandlerAsync("richApiMessage",{handler:u},n)});case 13:return n.Utility.promisify(function(n){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDeleted,{id:r,handler:u},n)});case 14:return n.Utility.promisify(function(n){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectSelectionChanged,{id:r,handler:u},n)});case 15:return n.Utility.promisify(function(n){return Office.context.document.removeHandlerAsync(Office.EventType.ObjectDataChanged,{id:r,handler:u},n)});case 16:return n.Utility.promisify(function(n){return Office.context.document.removeHandlerAsync(Office.EventType.ContentControlAdded,{id:r,handler:u},n)});default:throw t.RuntimeError._createInvalidArgError({argumentName:"eventId"});}},i}();t.officeJsEventRegistration=new i})(t=n._Internal||(n._Internal={}));i=function(){function i(n,t){this.m_handlersByEventByTarget={};this.m_registerEventImpl=n;this.m_unregisterEventImpl=t}return i.prototype.getHandlers=function(t,i){var r,u;return n.Utility.isNullOrUndefined(i)&&(i=""),r=this.m_handlersByEventByTarget[t],r||(r={},this.m_handlersByEventByTarget[t]=r),u=r[i],u||(u=[],r[i]=u),u},i.prototype.register=function(i,r,u){if(!u)throw t.RuntimeError._createInvalidArgError({argumentName:"handler"});var f=this.getHandlers(i,r);return(f.push(u),f.length===1)?this.m_registerEventImpl(i,r):n.Utility._createPromiseFromResult(null)},i.prototype.unregister=function(i,r,u){var f,e;if(!u)throw t.RuntimeError._createInvalidArgError({argumentName:"handler"});for(f=this.getHandlers(i,r),e=f.length-1;e>=0;e--)if(f[e]===u){f.splice(e,1);break}return f.length===0?this.m_unregisterEventImpl(i,r):n.Utility._createPromiseFromResult(null)},i}();n.EventRegistration=i}(OfficeExtension||(OfficeExtension={})),function(n){function r(n){t._testReadyImpl=n}function u(n){t.getGenericEventRegistration()._handleRichApiMessage(n)}var t=function(){function t(){this.m_eventRegistration=new n.EventRegistration(this._registerEventImpl.bind(this),this._unregisterEventImpl.bind(this));this.m_richApiMessageHandler=this._handleRichApiMessage.bind(this)}return t.prototype.ready=function(){var i=this;return this.m_ready||(this.m_ready=t._testReadyImpl?t._testReadyImpl().then(function(){i.m_isReady=!0}):n._Internal.officeJsEventRegistration.register(5,"",this.m_richApiMessageHandler).then(function(){i.m_isReady=!0})),this.m_ready},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.m_isReady},enumerable:!0,configurable:!0}),t.prototype.register=function(n,t,i){var r=this;return this.ready().then(function(){return r.m_eventRegistration.register(n,t,i)})},t.prototype.unregister=function(n,t,i){var r=this;return this.ready().then(function(){return r.m_eventRegistration.unregister(n,t,i)})},t.prototype._registerEventImpl=function(t,i){return n.Utility._createPromiseFromResult(null)},t.prototype._unregisterEventImpl=function(t,i){return n.Utility._createPromiseFromResult(null)},t.prototype._handleRichApiMessage=function(t){var r,i,u,e,f;if(t&&t.entries)for(r=0;r<t.entries.length;r++)if(i=t.entries[r],i.messageCategory==n.Constants.eventMessageCategory&&(n.Utility._logEnabled&&n.Utility.log(JSON.stringify(i)),u=this.m_eventRegistration.getHandlers(i.messageType,i.targetId),u.length>0))for(e=JSON.parse(i.message),i.isRemoteOverride&&(e.source=n.Constants.eventSourceRemote),f=0;f<u.length;f++)u[f](e)},t.getGenericEventRegistration=function(){return t.s_genericEventRegistration||(t.s_genericEventRegistration=new t),t.s_genericEventRegistration},t.richApiMessageEventCategory=65536,t}(),i;n._testSetRichApiMessageReadyImpl=r;n._testTriggerRichApiMessageEvent=u;i=function(i){function r(n,t,r,u){var f=i.call(this,n,t,r,u)||this;return f.m_genericEventInfo=u,f}return __extends(r,i),r.prototype.add=function(i){var r=this;return this._handlers.length==0&&this.m_genericEventInfo.registerFunc&&this.m_genericEventInfo.registerFunc(),t.getGenericEventRegistration().isReady||this._context._pendingRequest._addPreSyncPromise(t.getGenericEventRegistration().ready()),n.ActionFactory.createTraceMarkerForCallback(this._context,function(){r._handlers.push(i);r._handlers.length==1&&t.getGenericEventRegistration().register(r.m_genericEventInfo.eventType,r.m_genericEventInfo.getTargetIdFunc(),r._callback)}),new n.EventHandlerResult(this._context,this,i)},r.prototype.remove=function(i){var r=this;this._handlers.length==1&&this.m_genericEventInfo.unregisterFunc&&this.m_genericEventInfo.unregisterFunc();n.ActionFactory.createTraceMarkerForCallback(this._context,function(){for(var n=r._handlers,u=n.length-1;u>=0;u--)if(n[u]===i){n.splice(u,1);break}n.length==0&&t.getGenericEventRegistration().unregister(r.m_genericEventInfo.eventType,r.m_genericEventInfo.getTargetIdFunc(),r._callback)})},r.prototype.removeAll=function(){},r}(n.EventHandlers);n.GenericEventHandlers=i}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.prototype.executeAsync=function(i,r,u){var s=JSON.stringify(u.Body),f=u.Url,e,o;if(f.charAt(f.length-1)!="/"&&(f=f+"/"),f=f+n.Constants.processQuery,f=f+"?"+n.Constants.flags+"="+r.toString(),e={method:"POST",url:f,headers:{},body:s},e.headers[n.Constants.sourceLibHeader]=t.SourceLibHeaderValue,e.headers["CONTENT-TYPE"]="application/json",u.Headers)for(o in u.Headers)e.headers[o]=u.Headers[o];return n.HttpUtility.sendRequest(e).then(function(t){var i,r;return t.statusCode===200?i={ErrorCode:null,ErrorMessage:null,Headers:t.headers,Body:JSON.parse(t.body)}:(n.Utility.log("Error Response:"+t.body),r=n.Utility._parseErrorResponse(t),i={ErrorCode:r.errorCode,ErrorMessage:r.errorMessage,Headers:t.headers,Body:null}),i})},t.SourceLibHeaderValue="officejs-rest",t}();n.HttpRequestExecutor=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.setCustomSendRequestFunc=function(n){t.s_customSendRequestFunc=n},t.xhrSendRequestFunc=function(t){return new n.CoreUtility.Promise(function(i,r){var u=new XMLHttpRequest,f;if(u.open(t.method,t.url),u.onload=function(){var t={statusCode:u.status,headers:n.Utility._parseHttpResponseHeaders(u.getAllResponseHeaders()),body:u.responseText};i(t)},u.onerror=function(){r(new n._Internal.RuntimeError({code:n.ErrorCodes.connectionFailure,message:n.Utility._getResourceString(n.ResourceStrings.connectionFailureWithStatus,u.statusText)}))},t.headers)for(f in t.headers)u.setRequestHeader(f,t.headers[f]);u.send(t.body)})},t.sendRequest=function(n){t.validateAndNormalizeRequest(n);var i=t.s_customSendRequestFunc;return i||(i=t.xhrSendRequestFunc),i(n)},t.setCustomSendLocalDocumentRequestFunc=function(n){t.s_customSendLocalDocumentRequestFunc=n},t.sendLocalDocumentRequest=function(n){t.validateAndNormalizeRequest(n);var i;return i=t.s_customSendLocalDocumentRequestFunc||t.officeJsSendLocalDocumentRequestFunc,i(n)},t.officeJsSendLocalDocumentRequestFunc=function(t){t=n.Utility._validateLocalDocumentRequest(t);var i=n.Utility._buildRequestMessageSafeArray(t);return new n.CoreUtility.Promise(function(t,r){OSF.DDA.RichApi.executeRichApiRequestAsync(i,function(i){var r;r=i.status=="succeeded"?{statusCode:n.RichApiMessageUtility.getResponseStatusCode(i),headers:n.RichApiMessageUtility.getResponseHeaders(i),body:n.RichApiMessageUtility.getResponseBody(i)}:n.RichApiMessageUtility.buildHttpResponseFromOfficeJsError(i.error.code,i.error.message);n.Utility.log(JSON.stringify(r));t(r)})})},t.validateAndNormalizeRequest=function(t){if(n.Utility.isNullOrUndefined(t))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"request"});n.Utility.isNullOrEmptyString(t.method)&&(t.method="GET");t.method=t.method.toUpperCase()},t.logRequest=function(i){if(n.Utility._logEnabled){if(n.Utility.log("---HTTP Request---"),n.Utility.log(i.method+" "+i.url),i.headers)for(var r in i.headers)n.Utility.log(r+": "+i.headers[r]);t._logBody&&n.Utility.log(i.body)}},t.logResponse=function(i){if(n.Utility._logEnabled){if(n.Utility.log("---HTTP Response---"),n.Utility.log(""+i.statusCode),i.headers)for(var r in i.headers)n.Utility.log(r+": "+i.headers[r]);t._logBody&&n.Utility.log(i.body)}},t._logBody=!1,t}();n.HttpUtility=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(n){this.m_clientObject=n}return n.prototype._handleResult=function(n){this.m_clientObject._handleIdResult(n)},n}();n.InstantiateActionResultHandler=t}(OfficeExtension||(OfficeExtension={})),function(n){}(OfficeExtension||(OfficeExtension={})),function(n){var u=function(){function t(n){this.m_session=n}return t.prototype.executeAsync=function(t,r,u){var e={url:n.Constants.processQuery,method:"POST",headers:u.Headers,body:u.Body},f={id:i.nextId(),type:1,flags:r,message:e};return n.Utility.log(JSON.stringify(f)),this.m_session.sendMessageToHost(f).then(function(t){var i,r,u;return n.Utility.log("Received response: "+JSON.stringify(t)),i=t.message,i.statusCode===200?r={ErrorCode:null,ErrorMessage:null,Headers:i.headers,Body:i.body}:(n.Utility.log("Error Response:"+i.body),u=n.Utility._parseErrorResponse(i),r={ErrorCode:u.errorCode,ErrorMessage:u.errorMessage,Headers:i.headers,Body:null}),r})},t}(),i=function(i){function r(n){var t=i.call(this)||this;return t.m_promiseResolver={},t.m_bridge=n,t.m_bridge.onMessageFromHost=function(n){t.onMessageFromHost(n)},t}return __extends(r,i),r.prototype._resolveRequestUrlAndHeaderInfo=function(){return n.Utility._createPromiseFromResult(null)},r.prototype._createRequestExecutorOrNull=function(){return n.Utility.log("NativeBridgeSession::CreateRequestExecutor"),new u(this)},Object.defineProperty(r.prototype,"eventRegistration",{get:function(){return n._Internal.officeJsEventRegistration},enumerable:!0,configurable:!0}),r.init=function(t){if(t&&typeof t=="object"){var i=new r(t);n.ClientRequestContext._overrideSession=i;n.HttpUtility.setCustomSendLocalDocumentRequestFunc(function(n){var t={id:r.nextId(),type:1,flags:0,message:n};return i.sendMessageToHost(t).then(function(n){return n.message})})}},r.prototype.sendMessageToHost=function(t){var i=this;return this.m_bridge.sendMessageToHost(JSON.stringify(t)),new n.CoreUtility.Promise(function(n,r){i.m_promiseResolver[t.id]=n})},r.prototype.onMessageFromHost=function(n){var i,r;n==="test"?t._testFunc&&t._testFunc():(i=JSON.parse(n),typeof i.id=="number"&&(r=this.m_promiseResolver[i.id],r&&r(i),delete this.m_promiseResolver[i.id]))},r.nextId=function(){return r.s_nextId++},r.s_nextId=1,r}(n.SessionBase),r=function(){function n(){}return n.init=function(n){i.init(n)},n}(),t;n.HostBridge=r;typeof _richApiNativeBridge=="object"&&_richApiNativeBridge&&r.init(_richApiNativeBridge);t=function(){function n(){}return n.setTestFunc=function(t){n._testFunc=t},n}();n.HostBridgeTest=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n,t,i,r,u,f){this.m_objectPathInfo=n;this.m_parentObjectPath=t;this.m_isCollection=i;this.m_isInvalidAfterRequest=r;this.m_isValid=!0;this.m_operationType=u;this.m_flags=f}return Object.defineProperty(t.prototype,"objectPathInfo",{get:function(){return this.m_objectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationType",{get:function(){return this.m_operationType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this.m_flags},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollection",{get:function(){return this.m_isCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInvalidAfterRequest",{get:function(){return this.m_isInvalidAfterRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentObjectPath",{get:function(){return this.m_parentObjectPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"argumentObjectPaths",{get:function(){return this.m_argumentObjectPaths},set:function(n){this.m_argumentObjectPaths=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this.m_isValid},set:function(n){this.m_isValid=n;!n&&this.m_objectPathInfo.ObjectPathType===6&&this.m_savedObjectPathInfo&&(t.copyObjectPathInfo(this.m_savedObjectPathInfo.pathInfo,this.m_objectPathInfo),this.m_parentObjectPath=this.m_savedObjectPathInfo.parent,this.m_isValid=!0,this.m_savedObjectPathInfo=null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"originalObjectPathInfo",{get:function(){return this.m_originalObjectPathInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getByIdMethodName",{get:function(){return this.m_getByIdMethodName},set:function(n){this.m_getByIdMethodName=n},enumerable:!0,configurable:!0}),t.prototype._updateAsNullObject=function(){this.resetForUpdateUsingObjectData();this.m_objectPathInfo.ObjectPathType=7;this.m_objectPathInfo.Name="";this.m_parentObjectPath=null},t.prototype.saveOriginalObjectPathInfo=function(){n.config.extendedErrorLogging&&!this.m_originalObjectPathInfo&&(this.m_originalObjectPathInfo={},t.copyObjectPathInfo(this.m_objectPathInfo,this.m_originalObjectPathInfo))},t.prototype.updateUsingObjectData=function(i,r){var l=i[n.Constants.referenceId],h,c,f,e,o,a,s,u;if(!n.Utility.isNullOrEmptyString(l)){this.m_savedObjectPathInfo||this.isInvalidAfterRequest||!t.isRestorableObjectPath(this.m_objectPathInfo.ObjectPathType)||(h={},t.copyObjectPathInfo(this.m_objectPathInfo,h),this.m_savedObjectPathInfo={pathInfo:h,parent:this.m_parentObjectPath});this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();this.m_objectPathInfo.ObjectPathType=6;this.m_objectPathInfo.Name=l;delete this.m_objectPathInfo.ParentObjectPathId;this.m_parentObjectPath=null;return}if(c=r[n.Constants.collectionPropertyPath],!n.Utility.isNullOrEmptyString(c)&&(u=n.Utility.tryGetObjectIdFromLoadOrRetrieveResult(i),!n.Utility.isNullOrUndefined(u))){for(f=c.split("."),e=r.context[f[0]],o=1;o<f.length;o++)e=e[f[o]];this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();this.m_parentObjectPath=e._objectPath;this.m_objectPathInfo.ParentObjectPathId=this.m_parentObjectPath.objectPathInfo.Id;this.m_objectPathInfo.ObjectPathType=5;this.m_objectPathInfo.Name="";this.m_objectPathInfo.ArgumentInfo.Arguments=[u];return}if(a=this.parentObjectPath&&this.parentObjectPath.isCollection,s=this.getByIdMethodName,(a||!n.Utility.isNullOrEmptyString(s))&&(u=n.Utility.tryGetObjectIdFromLoadOrRetrieveResult(i),!n.Utility.isNullOrUndefined(u))){this.saveOriginalObjectPathInfo();this.resetForUpdateUsingObjectData();n.Utility.isNullOrEmptyString(s)?(this.m_objectPathInfo.ObjectPathType=5,this.m_objectPathInfo.Name=""):(this.m_objectPathInfo.ObjectPathType=3,this.m_objectPathInfo.Name=s,this.m_getByIdMethodName=null);this.m_objectPathInfo.ArgumentInfo.Arguments=[u];return}},t.prototype.resetForUpdateUsingObjectData=function(){this.m_isInvalidAfterRequest=!1;this.m_isValid=!0;this.m_operationType=1;this.m_flags=4;this.m_objectPathInfo.ArgumentInfo={};this.m_argumentObjectPaths=null},t.isRestorableObjectPath=function(n){return n===1||n===5||n===3||n===4},t.copyObjectPathInfo=function(n,t){t.Id=n.Id;t.ArgumentInfo=n.ArgumentInfo;t.Name=n.Name;t.ObjectPathType=n.ObjectPathType;t.ParentObjectPathId=n.ParentObjectPathId},t}();n.ObjectPath=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.createGlobalObjectObjectPath=function(t){var i={Id:t._nextId(),ObjectPathType:1,Name:""};return new n.ObjectPath(i,null,!1,!1,1,4)},t.createNewObjectObjectPath=function(t,i,r,u){var f={Id:t._nextId(),ObjectPathType:2,Name:i};return new n.ObjectPath(f,null,r,!1,1,n.Utility._fixupApiFlags(u))},t.createPropertyObjectPath=function(t,i,r,u,f,e){var o={Id:t._nextId(),ObjectPathType:4,Name:r,ParentObjectPathId:i._objectPath.objectPathInfo.Id};return new n.ObjectPath(o,i._objectPath,u,f,1,n.Utility._fixupApiFlags(e))},t.createIndexerObjectPath=function(t,i,r){var u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return u.ArgumentInfo.Arguments=r,new n.ObjectPath(u,i._objectPath,!1,!1,1,4)},t.createIndexerObjectPathUsingParentPath=function(t,i,r){var u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i.objectPathInfo.Id,ArgumentInfo:{}};return u.ArgumentInfo.Arguments=r,new n.ObjectPath(u,i,!1,!1,1,4)},t.createMethodObjectPath=function(t,i,r,u,f,e,o,s,h){var l={Id:t._nextId(),ObjectPathType:3,Name:r,ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},a=n.Utility.setMethodArguments(t,l.ArgumentInfo,f),c=new n.ObjectPath(l,i._objectPath,e,o,u,n.Utility._fixupApiFlags(h));return c.argumentObjectPaths=a,c.getByIdMethodName=s,c},t.createReferenceIdObjectPath=function(t,i){var r={Id:t._nextId(),ObjectPathType:6,Name:i,ArgumentInfo:{}};return new n.ObjectPath(r,null,!1,!1,1,4)},t.createChildItemObjectPathUsingIndexerOrGetItemAt=function(i,r,u,f,e){var o=n.Utility.tryGetObjectIdFromLoadOrRetrieveResult(f);return i&&!n.Utility.isNullOrUndefined(o)?t.createChildItemObjectPathUsingIndexer(r,u,f):t.createChildItemObjectPathUsingGetItemAt(r,u,f,e)},t.createChildItemObjectPathUsingIndexer=function(t,i,r){var f=n.Utility.tryGetObjectIdFromLoadOrRetrieveResult(r),u=u={Id:t._nextId(),ObjectPathType:5,Name:"",ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}};return u.ArgumentInfo.Arguments=[f],new n.ObjectPath(u,i._objectPath,!1,!1,1,4)},t.createChildItemObjectPathUsingGetItemAt=function(t,i,r,u){var e=r[n.Constants.index],f;return e&&(u=e),f={Id:t._nextId(),ObjectPathType:3,Name:n.Constants.getItemAt,ParentObjectPathId:i._objectPath.objectPathInfo.Id,ArgumentInfo:{}},f.ArgumentInfo.Arguments=[u],new n.ObjectPath(f,i._objectPath,!1,!1,1,4)},t}();n.ObjectPathFactory=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n){this.m_context=n}return t.prototype.executeAsync=function(i,r,u){var f=this,e=n.RichApiMessageUtility.buildMessageArrayForIRequestExecutor(i,r,u,t.SourceLibHeaderValue);return new n.CoreUtility.Promise(function(t,i){OSF.DDA.RichApi.executeRichApiRequestAsync(e,function(i){n.Utility.log("Response:");n.Utility.log(JSON.stringify(i));var r;i.status=="succeeded"?r=n.RichApiMessageUtility.buildResponseOnSuccess(n.RichApiMessageUtility.getResponseBody(i),n.RichApiMessageUtility.getResponseHeaders(i)):(r=n.RichApiMessageUtility.buildResponseOnError(i.error.code,i.error.message),f.m_context._processOfficeJsErrorResponse(i.error.code,r));t(r)})})},t.SourceLibHeaderValue="officejs",t}();n.OfficeJsRequestExecutor=t}(OfficeExtension||(OfficeExtension={})),function(n){var t,i;(function(n){n.OfficeRequire=function(){return null}()})(t=n._Internal||(n._Internal={})),function(n){var t;(function(t){function i(){return function(){"use strict";function vt(n){return typeof n=="function"||typeof n=="object"&&n!==null}function b(n){return typeof n=="function"}function yt(n){return typeof n=="object"&&n!==null}function wt(n){k=n}function bt(n){f=n}function ni(){var t=process.nextTick,n=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&n[1]==="0"&&n[2]==="10"&&(t=setImmediate),function(){t(c)}}function tr(){return function(){pt(c)}}function ti(){var n=0,i=new it(c),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}function ii(){var n=new MessageChannel;return n.port1.onmessage=c,function(){n.port2.postMessage(0)}}function ri(){return function(){setTimeout(c,1)}}function c(){for(var t,i,n=0;n<h;n+=2)t=e[n],i=e[n+1],t(i),e[n]=undefined,e[n+1]=undefined;h=0}function l(){}function ui(){return new TypeError("You cannot resolve a promise with itself")}function fi(){return new TypeError("A promises callback cannot return that same promise.")}function ei(n){try{return n.then}catch(t){return y.error=t,y}}function oi(n,t,i,r){try{n.call(t,i,r)}catch(u){return u}}function si(n,i,u){f(function(n){var f=!1,e=oi(u,i,function(t){f||(f=!0,i!==t?v(n,t):r(n,t))},function(i){f||(f=!0,t(n,i))},"Settle: "+(n._label||" unknown promise"));!f&&e&&(f=!0,t(n,e))},n)}function hi(n,i){i._state===a?r(n,i._result):i._state===s?t(n,i._result):p(i,undefined,function(t){v(n,t)},function(i){t(n,i)})}function ci(n,i){if(i.constructor===n.constructor)hi(n,i);else{var u=ei(i);u===y?t(n,y.error):u===undefined?r(n,i):b(u)?si(n,i,u):r(n,i)}}function v(n,i){n===i?t(n,ui()):vt(i)?ci(n,i):r(n,i)}function li(n){n._onerror&&n._onerror(n._result);d(n)}function r(n,t){n._state===o&&(n._result=t,n._state=a,n._subscribers.length!==0&&f(d,n))}function t(n,t){n._state===o&&(n._state=s,n._result=t,f(li,n))}function p(n,t,i,r){var u=n._subscribers,e=u.length;n._onerror=null;u[e]=t;u[e+a]=i;u[e+s]=r;e===0&&n._state&&f(d,n)}function d(n){var i=n._subscribers,e=n._state,r,u,f,t;if(i.length!==0){for(f=n._result,t=0;t<i.length;t+=3)r=i[t],u=i[t+e],r?ft(e,r,u,f):u(f);n._subscribers.length=0}}function ut(){this.error=null}function ai(n,t){try{return n(t)}catch(i){return w.error=i,w}}function ft(n,i,u,f){var c=b(u),e,l,h,y;if(c){if(e=ai(u,f),e===w?(y=!0,l=e.error,e=null):h=!0,i===e){t(i,fi());return}}else e=f,h=!0;i._state!==o||(c&&h?v(i,e):y?t(i,l):n===a?r(i,e):n===s&&t(i,e))}function vi(n,i){try{i(function(t){v(n,t)},function(i){t(n,i)})}catch(r){t(n,r)}}function u(n,i){var u=this;u._instanceConstructor=n;u.promise=new n(l);u._validateInput(i)?(u._input=i,u.length=i.length,u._remaining=i.length,u._init(),u.length===0?r(u.promise,u._result):(u.length=u.length||0,u._enumerate(),u._remaining===0&&r(u.promise,u._result))):t(u.promise,u._validationError())}function yi(n){return new et(this,n).promise}function pi(n){function e(n){v(i,n)}function s(n){t(i,n)}var u=this,i=new u(l),f,r;if(!nt(n))return t(i,new TypeError("You must pass an array to race.")),i;for(f=n.length,r=0;i._state===o&&r<f;r++)p(u.resolve(n[r]),undefined,e,s);return i}function wi(n){var i=this,t;return n&&typeof n=="object"&&n.constructor===i?n:(t=new i(l),v(t,n),t)}function bi(n){var r=this,i=new r(l);return t(i,n),i}function ki(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function di(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function i(n){this._id=lt++;this._state=undefined;this._result=undefined;this._subscribers=[];l!==n&&(b(n)||ki(),this instanceof i||di(),vi(this,n))}var g,e,rt,w,et,ot,st,ht,ct,lt,at;g=Array.isArray?Array.isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"};var nt=g,h=0,gi={}.toString,pt,k,f=function(n,t){e[h]=n;e[h+1]=t;h+=2;h===2&&(k?k(c):rt())};var kt=typeof window!="undefined"?window:undefined,tt=kt||{},it=tt.MutationObserver||tt.WebKitMutationObserver,dt=typeof process!="undefined"&&{}.toString.call(process)==="[object process]",gt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";e=new Array(1e3);rt=dt?ni():it?ti():gt?ii():ri();var o=void 0,a=1,s=2,y=new ut;return w=new ut,u.prototype._validateInput=function(n){return nt(n)},u.prototype._validationError=function(){return new n.Error("Array Methods must be provided an Array")},u.prototype._init=function(){this._result=new Array(this.length)},et=u,u.prototype._enumerate=function(){for(var n=this,i=n.length,r=n.promise,u=n._input,t=0;r._state===o&&t<i;t++)n._eachEntry(u[t],t)},u.prototype._eachEntry=function(n,t){var i=this,r=i._instanceConstructor;yt(n)?n.constructor===r&&n._state!==o?(n._onerror=null,i._settledAt(n._state,t,n._result)):i._willSettleAt(r.resolve(n),t):(i._remaining--,i._result[t]=n)},u.prototype._settledAt=function(n,i,u){var f=this,e=f.promise;e._state===o&&(f._remaining--,n===s?t(e,u):f._result[i]=u);f._remaining===0&&r(e,f._result)},u.prototype._willSettleAt=function(n,t){var i=this;p(n,undefined,function(n){i._settledAt(a,t,n)},function(n){i._settledAt(s,t,n)})},ot=yi,st=pi,ht=wi,ct=bi,lt=0,at=i,i.all=ot,i.race=st,i.resolve=ht,i.reject=ct,i._setScheduler=wt,i._setAsap=bt,i._asap=f,i.prototype={constructor:i,then:function(n,t){var u=this,i=u._state,r,e,o;return i===a&&!n||i===s&&!t?this:(r=new this.constructor(l),e=u._result,i?(o=arguments[i-1],f(function(){ft(i,r,o,e)})):p(u,r,n,t),r)},"catch":function(n){return this.then(null,n)}},at}.call(this)}t.Init=i})(t=n.PromiseImpl||(n.PromiseImpl={}))}(t=n._Internal||(n._Internal={})),function(n){function t(){var n=window.navigator.userAgent,t=n.indexOf("Edge/");return t>=0?(n=n.substring(t+5,n.length),n<"14.14393"?!0:!1):!1}function i(){return typeof window=="undefined"&&typeof Promise=="function"?Promise:typeof window!="undefined"&&window.Promise?t()?n.PromiseImpl.Init():window.Promise:n.PromiseImpl.Init()}n.OfficePromise=i()}(t=n._Internal||(n._Internal={}));i=t.OfficePromise;n.Promise=i}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n){this._autoCleanupList={};this.m_context=n}return t.prototype.add=function(n){var t=this;Array.isArray(n)?n.forEach(function(n){return t._addCommon(n,!0)}):this._addCommon(n,!0)},t.prototype._autoAdd=function(n){this._addCommon(n,!1);this._autoCleanupList[n._objectPath.objectPathInfo.Id]=n},t.prototype._autoTrackIfNecessaryWhenHandleObjectResultValue=function(t,i){var r=this.m_context._autoCleanup&&!t[n.Constants.isTracked]&&t!==this.m_context._rootObject&&i&&!n.Utility.isNullOrEmptyString(i[n.Constants.referenceId]);r&&(this._autoCleanupList[t._objectPath.objectPathInfo.Id]=t,t[n.Constants.isTracked]=!0)},t.prototype._addCommon=function(t,i){if(t[n.Constants.isTracked]){i&&this.m_context._autoCleanup&&delete this._autoCleanupList[t._objectPath.objectPathInfo.Id];return}var r=t[n.Constants.referenceId],u=t._objectPath.objectPathInfo[n.Constants.objectPathInfoDoNotKeepReferenceFieldName];if(u)throw n.Utility.createRuntimeError(n.ErrorCodes.generalException,n.Utility._getResourceString(n.ResourceStrings.objectIsUntracked),null);n.Utility.isNullOrEmptyString(r)&&t._KeepReference&&(t._KeepReference(),n.ActionFactory.createInstantiateAction(this.m_context,t),i&&this.m_context._autoCleanup&&delete this._autoCleanupList[t._objectPath.objectPathInfo.Id],t[n.Constants.isTracked]=!0)},t.prototype.remove=function(n){var t=this;Array.isArray(n)?n.forEach(function(n){return t._removeCommon(n)}):this._removeCommon(n)},t.prototype._removeCommon=function(t){var i,r;t._objectPath.objectPathInfo[n.Constants.objectPathInfoDoNotKeepReferenceFieldName]=!0;t.context._pendingRequest._removeKeepReferenceAction(t._objectPath.objectPathInfo.Id);i=t[n.Constants.referenceId];n.Utility.isNullOrEmptyString(i)||(r=this.m_context._rootObject,r._RemoveReference&&r._RemoveReference(i));delete t[n.Constants.isTracked]},t.prototype._retrieveAndClearAutoCleanupList=function(){var n=this._autoCleanupList;return this._autoCleanupList={},n},t}();n.TrackedObjects=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(n,t,i,r,u){n||(n="root");this.m_globalObjName=n;this.m_referencedObjectPaths=t;this.m_actions=i;this.m_statements=[];this.m_variableNameForObjectPathMap={};this.m_variableNameToObjectPathMap={};this.m_declaredObjectPathMap={};this.m_showDispose=r;this.m_removePII=u}return t.prototype.process=function(){this.m_showDispose&&n.ClientRequest._calculateLastUsedObjectPathIds(this.m_actions);for(var t=0;t<this.m_actions.length;t++)this.processOneAction(this.m_actions[t]);return this.m_statements},t.prototype.processForDebugStatementInfo=function(t){var o,c,i,u,f,e,r,s,h;for(this.m_showDispose&&n.ClientRequest._calculateLastUsedObjectPathIds(this.m_actions),o=5,this.m_statements=[],c="",i=-1,u=0;u<this.m_actions.length;u++)if(this.processOneAction(this.m_actions[u]),t==u&&(i=this.m_statements.length-1),i>=0&&this.m_statements.length>i+o+1)break;if(i<0)return null;for(f=i-o,f<0&&(f=0),e=i+1+o,e>this.m_statements.length&&(e=this.m_statements.length),r=[],f!=0&&r.push("..."),s=f;s<i;s++)r.push(this.m_statements[s]);for(r.push("// >>>>>"),r.push(this.m_statements[i]),r.push("// <<<<<"),h=i+1;h<e;h++)r.push(this.m_statements[h]);return e<this.m_statements.length&&r.push("..."),{statement:this.m_statements[i],surroundingStatements:r}},t.prototype.processOneAction=function(n){var t=n.actionInfo;switch(t.ActionType){case 1:this.processInstantiateAction(n);break;case 3:this.processMethodAction(n);break;case 2:this.processQueryAction(n);break;case 7:this.processQueryAsJsonAction(n);break;case 6:this.processRecursiveQueryAction(n);break;case 4:this.processSetPropertyAction(n);break;case 5:this.processTraceAction(n);break;case 8:this.processEnsureUnchangedAction(n);break;case 9:this.processUpdateAction(n);break}},t.prototype.processInstantiateAction=function(n){var i=n.actionInfo.ObjectPathId,u=this.m_referencedObjectPaths[i],r=this.getObjVarName(i),t;this.m_declaredObjectPathMap[i]?(t="// Instantiate {"+r+"}",t=this.appendDisposeCommentIfRelevant(t,n),this.m_statements.push(t)):(t="var "+r+"="+this.buildObjectPathExpressionWithParent(u)+";",t=this.appendDisposeCommentIfRelevant(t,n),this.m_statements.push(t),this.m_declaredObjectPathMap[i]=r)},t.prototype.processMethodAction=function(t){var r=t.actionInfo.Name,i;if(r==="_KeepReference"){if(!n._internalConfig.showInternalApiInDebugInfo)return;r="track"}i=this.getObjVarName(t.actionInfo.ObjectPathId)+"."+n.Utility._toCamelLowerCase(r)+"("+this.buildArgumentsExpression(t.actionInfo.ArgumentInfo)+");";i=this.appendDisposeCommentIfRelevant(i,t);this.m_statements.push(i)},t.prototype.processQueryAction=function(n){var i=this.buildQueryExpression(n),t=this.getObjVarName(n.actionInfo.ObjectPathId)+".load("+i+");";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.processQueryAsJsonAction=function(n){var i=this.buildQueryExpression(n),t=this.getObjVarName(n.actionInfo.ObjectPathId)+".retrieve("+i+");";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.processRecursiveQueryAction=function(n){var i="",t;n.actionInfo.RecursiveQueryInfo&&(i=JSON.stringify(n.actionInfo.RecursiveQueryInfo));t=this.getObjVarName(n.actionInfo.ObjectPathId)+".loadRecursive("+i+");";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.processSetPropertyAction=function(t){var i=this.getObjVarName(t.actionInfo.ObjectPathId)+"."+n.Utility._toCamelLowerCase(t.actionInfo.Name)+"="+this.buildArgumentsExpression(t.actionInfo.ArgumentInfo)+";";i=this.appendDisposeCommentIfRelevant(i,t);this.m_statements.push(i)},t.prototype.processTraceAction=function(n){var t="context.trace();";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.processEnsureUnchangedAction=function(n){var t=this.getObjVarName(n.actionInfo.ObjectPathId)+".ensureUnchanged("+JSON.stringify(n.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.processUpdateAction=function(n){var t=this.getObjVarName(n.actionInfo.ObjectPathId)+".update("+JSON.stringify(n.actionInfo.ObjectState)+");";t=this.appendDisposeCommentIfRelevant(t,n);this.m_statements.push(t)},t.prototype.appendDisposeCommentIfRelevant=function(n,t){var u=this,i,r;return this.m_showDispose&&(i=t.actionInfo.L,i&&i.length>0)?(r=i.map(function(n){return u.getObjVarName(n)}).join(", "),n+" // And then dispose {"+r+"}"):n},t.prototype.buildQueryExpression=function(n){if(n.actionInfo.QueryInfo){var t={};return t.select=n.actionInfo.QueryInfo.Select,t.expand=n.actionInfo.QueryInfo.Expand,t.skip=n.actionInfo.QueryInfo.Skip,t.top=n.actionInfo.QueryInfo.Top,typeof t.top=="undefined"&&typeof t.skip=="undefined"&&typeof t.expand=="undefined"?typeof t.select=="undefined"?"":JSON.stringify(t.select):JSON.stringify(t)}return""},t.prototype.buildObjectPathExpressionWithParent=function(n){var t=n.objectPathInfo.ObjectPathType==5||n.objectPathInfo.ObjectPathType==3||n.objectPathInfo.ObjectPathType==4;return t&&n.objectPathInfo.ParentObjectPathId?this.getObjVarName(n.objectPathInfo.ParentObjectPathId)+"."+this.buildObjectPathExpression(n):this.buildObjectPathExpression(n)},t.prototype.buildObjectPathExpression=function(n){var t=this.buildObjectPathInfoExpression(n.objectPathInfo),i=n.originalObjectPathInfo;return i&&(t=t+" /* originally "+this.buildObjectPathInfoExpression(i)+" */"),t},t.prototype.buildObjectPathInfoExpression=function(t){switch(t.ObjectPathType){case 1:return"context."+this.m_globalObjName;case 5:return"getItem("+this.buildArgumentsExpression(t.ArgumentInfo)+")";case 3:return n.Utility._toCamelLowerCase(t.Name)+"("+this.buildArgumentsExpression(t.ArgumentInfo)+")";case 2:return t.Name+".newObject()";case 7:return"null";case 4:return n.Utility._toCamelLowerCase(t.Name);case 6:return"context."+this.m_globalObjName+"._getObjectByReferenceId("+JSON.stringify(t.Name)+")"}},t.prototype.buildArgumentsExpression=function(n){var t="",i;if(!n.Arguments||n.Arguments.length===0)return t;if(this.m_removePII)return typeof n.Arguments[0]=="undefined"?t:"...";for(i=0;i<n.Arguments.length;i++)i>0&&(t=t+", "),t=t+this.buildArgumentLiteral(n.Arguments[i],n.ReferencedObjectPathIds?n.ReferencedObjectPathIds[i]:null);return t==="undefined"&&(t=""),t},t.prototype.buildArgumentLiteral=function(n,t){return typeof n=="number"&&n===t?this.getObjVarName(t):JSON.stringify(n)},t.prototype.getObjVarNameBase=function(t){var u="v",f=this.m_referencedObjectPaths[t],i,r;if(f)switch(f.objectPathInfo.ObjectPathType){case 1:u=this.m_globalObjName;break;case 4:u=n.Utility._toCamelLowerCase(f.objectPathInfo.Name);break;case 3:i=f.objectPathInfo.Name;i.length>3&&i.substr(0,3)==="Get"&&(i=i.substr(3));u=n.Utility._toCamelLowerCase(i);break;case 5:r=this.getObjVarNameBase(f.objectPathInfo.ParentObjectPathId);u=r.charAt(r.length-1)==="s"?r.substr(0,r.length-1):r+"Item";break}return u},t.prototype.getObjVarName=function(n){var t,i;if(this.m_variableNameForObjectPathMap[n])return this.m_variableNameForObjectPathMap[n];if(t=this.getObjVarNameBase(n),!this.m_variableNameToObjectPathMap[t])return this.m_variableNameForObjectPathMap[n]=t,this.m_variableNameToObjectPathMap[t]=n,t;for(i=1;this.m_variableNameToObjectPathMap[t+i.toString()];)i++;return t=t+i.toString(),this.m_variableNameForObjectPathMap[n]=t,this.m_variableNameToObjectPathMap[t]=n,t},t}();n.RequestPrettyPrinter=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.cannotRegisterEvent="CannotRegisterEvent",n.connectionFailureWithStatus="ConnectionFailureWithStatus",n.connectionFailureWithDetails="ConnectionFailureWithDetails",n.invalidObjectPath="InvalidObjectPath",n.invalidRequestContext="InvalidRequestContext",n.invalidArgument="InvalidArgument",n.invalidArgumentGeneric="InvalidArgumentGeneric",n.propertyNotLoaded="PropertyNotLoaded",n.runMustReturnPromise="RunMustReturnPromise",n.timeout="Timeout",n.propertyDoesNotExist="PropertyDoesNotExist",n.attemptingToSetReadOnlyProperty="AttemptingToSetReadOnlyProperty",n.moreInfoInnerError="MoreInfoInnerError",n.cannotApplyPropertyThroughSetMethod="CannotApplyPropertyThroughSetMethod",n.valueNotLoaded="ValueNotLoaded",n.invalidOrTimedOutSessionMessage="InvalidOrTimedOutSessionMessage",n.invalidOperationInCellEditMode="InvalidOperationInCellEditMode",n.objectIsUntracked="ObjectIsUntracked",n.customFunctionDefintionMissing="CustomFunctionDefintionMissing",n.customFunctionImplementationMissing="CustomFunctionImplementationMissing",n.customFunctionNameContainsBadChars="CustomFunctionNameContainsBadChars",n.customFunctionNameCannotSplit="CustomFunctionNameCannotSplit",n.customFunctionUnexpectedNumberOfEntriesInResultBatch="CustomFunctionUnexpectedNumberOfEntriesInResultBatch",n.customFunctionCancellationHandlerMissing="CustomFunctionCancellationHandlerMissing",n.apiNotFoundDetails="ApiNotFoundDetails",n.pendingBatchInProgress="PendingBatchInProgress",n.notInsideBatch="NotInsideBatch",n.cannotUpdateReadOnlyProperty="CannotUpdateReadOnlyProperty",n}();n.ResourceStrings=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function n(){}return n.CannotRegisterEvent="The event handler cannot be registered.",n.ConnectionFailureWithStatus="The request failed with status code of {0}.",n.ConnectionFailureWithDetails="The request failed with status code of {0}, error code {1} and the following error message: {2}",n.InvalidArgument="The argument '{0}' doesn't work for this situation, is missing, or isn't in the right format.",n.InvalidObjectPath='The object path \'{0}\' isn\'t working for what you\'re trying to do. If you\'re using the object across multiple "context.sync" calls and outside the sequential execution of a ".run" batch, please use the "context.trackedObjects.add()" and "context.trackedObjects.remove()" methods to manage the object\'s lifetime.',n.InvalidRequestContext="Cannot use the object across different request contexts.",n.PropertyNotLoaded="The property '{0}' is not available. Before reading the property's value, call the load method on the containing object and call \"context.sync()\" on the associated request context.",n.RunMustReturnPromise='The batch function passed to the ".run" method didn\'t return a promise. The function must return a promise, so that any automatically-tracked objects can be released at the completion of the batch operation. Typically, you return a promise by returning the response from "context.sync()".',n.Timeout="The operation has timed out.",n.ValueNotLoaded='The value of the result object has not been loaded yet. Before reading the value property, call "context.sync()" on the associated request context.',n.InvalidOrTimedOutSessionMessage="Your Office Online session has expired or is invalid. To continue, refresh the page.",n.InvalidOperationInCellEditMode="Excel is in cell-editing mode. Please exit the edit mode by pressing ENTER or TAB or selecting another cell, and then try again.",n.CustomFunctionDefintionMissing="A property with this name that represents the function's definition must exist on Excel.Script.CustomFunctions.",n.CustomFunctionImplementationMissing="The property with this name on Excel.Script.CustomFunctions that represents the function's definition must contain a 'call' property that implements the function.",n.CustomFunctionNameContainsBadChars="The function name may only contain letters, digits, underscores, and periods.",n.CustomFunctionNameCannotSplit="The function name must contain a non-empty namespace and a non-empty short name.",n.CustomFunctionUnexpectedNumberOfEntriesInResultBatch="The batching function returned a number of results that doesn't match the number of parameter value sets that were passed into it.",n.CustomFunctionCancellationHandlerMissing="The cancellation handler onCanceled is missing in the function. The handler must be present as the function is defined as cancelable.",n.ApiNotFoundDetails="The method or property {0} is part of the {1} requirement set, which is not available in your version of {2}.",n.PendingBatchInProgress="There is a pending batch in progress. The batch method may not be called inside another batch, or simultaneously with another batch.",n.NotInsideBatch="Operations may not be invoked outside of a batch method.",n.CannotUpdateReadOnlyProperty="The property '{0}' is read-only and it cannot be updated.",n.ObjectIsUntracked="The object is untracked.",n}();n.ResourceStringValues=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.buildMessageArrayForIRequestExecutor=function(i,r,u,f){var o=JSON.stringify(u.Body),e;return n.Utility.log("Request:"),n.Utility.log(o),e={},e[n.Constants.sourceLibHeader]=f,t.buildRequestMessageSafeArray(i,r,"POST","ProcessQuery",e,o)},t.buildResponseOnSuccess=function(n,t){var i={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return i.Body=JSON.parse(n),i.Headers=t,i},t.buildResponseOnError=function(i,r){var u={ErrorCode:"",ErrorMessage:"",Headers:null,Body:null};return u.ErrorCode=n.ErrorCodes.generalException,u.ErrorMessage=r,i==t.OfficeJsErrorCode_ooeNoCapability?u.ErrorCode=n.ErrorCodes.accessDenied:i==t.OfficeJsErrorCode_ooeActivityLimitReached?u.ErrorCode=n.ErrorCodes.activityLimitReached:i==t.OfficeJsErrorCode_ooeInvalidOrTimedOutSession&&(u.ErrorCode=n.ErrorCodes.invalidOrTimedOutSession,u.ErrorMessage=n.Utility._getResourceString(n.ResourceStrings.invalidOrTimedOutSessionMessage)),u},t.buildHttpResponseFromOfficeJsError=function(i,r){var f=500,u={};return u.error={},u.error.code=n.ErrorCodes.generalException,u.error.message=r,i===t.OfficeJsErrorCode_ooeNoCapability?(f=403,u.error.code=n.ErrorCodes.accessDenied):i===t.OfficeJsErrorCode_ooeActivityLimitReached&&(f=429,u.error.code=n.ErrorCodes.activityLimitReached),{statusCode:f,headers:{},body:JSON.stringify(u)}},t.buildRequestMessageSafeArray=function(n,t,i,r,u,f){var e=[],o;if(u)for(o in u)e.push(o),e.push(u[o]);var s=0,h="",c="",l="";return[n,i,r,e,f,s,t,h,c,l]},t.getResponseBody=function(n){return t.getResponseBodyFromSafeArray(n.value.data)},t.getResponseHeaders=function(n){return t.getResponseHeadersFromSafeArray(n.value.data)},t.getResponseBodyFromSafeArray=function(n){var t=n[2],i;return typeof t=="string"?t:(i=t,i.join(""))},t.getResponseHeadersFromSafeArray=function(n){var i=n[1],r,t;if(!i)return null;for(r={},t=0;t<i.length-1;t+=2)r[i[t]]=i[t+1];return r},t.getResponseStatusCode=function(n){return t.getResponseStatusCodeFromSafeArray(n.value.data)},t.getResponseStatusCodeFromSafeArray=function(n){return n[0]},t.OfficeJsErrorCode_ooeInvalidOrTimedOutSession=5012,t.OfficeJsErrorCode_ooeActivityLimitReached=5102,t.OfficeJsErrorCode_ooeNoCapability=7e3,t}();n.RichApiMessageUtility=t}(OfficeExtension||(OfficeExtension={})),function(n){var t=function(){function t(){}return t.checkArgumentNull=function(i,r){if(t.isNullOrUndefined(i))throw n._Internal.RuntimeError._createInvalidArgError({argumentName:r});},t.isNullOrUndefined=function(n){return n===null?!0:typeof n=="undefined"?!0:!1},t.isUndefined=function(n){return typeof n=="undefined"?!0:!1},t.isNullOrEmptyString=function(n){return n===null?!0:typeof n=="undefined"?!0:n.length==0?!0:!1},t.isPlainJsonObject=function(n){return t.isNullOrUndefined(n)?!1:typeof n!="object"?!1:Object.getPrototypeOf(n)===Object.getPrototypeOf({})},t.trim=function(n){return n.replace(new RegExp("^\\s+|\\s+$","g"),"")},t.caseInsensitiveCompareString=function(n,i){return t.isNullOrUndefined(n)?t.isNullOrUndefined(i):t.isNullOrUndefined(i)?!1:n.toUpperCase()==i.toUpperCase()},t.adjustToDateTime=function(i){var r,u;if(t.isNullOrUndefined(i))return null;if(typeof i=="string")return new Date(i);if(Array.isArray(i)){for(r=i,u=0;u<r.length;u++)r[u]=t.adjustToDateTime(r[u]);return r}throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"date"});},t.isReadonlyRestRequest=function(n){return t.caseInsensitiveCompareString(n,"GET")},t.setMethodArguments=function(n,i,r){if(t.isNullOrUndefined(r))return null;var u=[],f=[],e=t.collectObjectPathInfos(n,r,u,f);return i.Arguments=r,e&&(i.ReferencedObjectPathIds=f),u},t.collectObjectPathInfos=function(i,r,u,f){for(var o,h,c,s=!1,e=0;e<r.length;e++)r[e]instanceof n.ClientObject?(o=r[e],t.validateContext(i,o),r[e]=o._objectPath.objectPathInfo.Id,f.push(o._objectPath.objectPathInfo.Id),u.push(o._objectPath),s=!0):Array.isArray(r[e])?(h=[],c=t.collectObjectPathInfos(i,r[e],u,h),c?(f.push(h),s=!0):f.push(0)):t.isPlainJsonObject(r[e])?(f.push(0),t.replaceClientObjectPropertiesWithObjectPathIds(r[e],u)):f.push(0);return s},t.replaceClientObjectPropertiesWithObjectPathIds=function(i,r){var e,u,f,o,s,h;for(e in i)if(u=i[e],u instanceof n.ClientObject)r.push(u._objectPath),i[e]=(s={},s[n.Constants.objectPathIdPrivate]=u._objectPath.objectPathInfo.Id,s);else if(Array.isArray(u))for(f=0;f<u.length;f++)u[f]instanceof n.ClientObject?(o=u[f],r.push(o._objectPath),u[f]=(h={},h[n.Constants.objectPathIdPrivate]=o._objectPath.objectPathInfo.Id,h)):t.isPlainJsonObject(u[f])&&t.replaceClientObjectPropertiesWithObjectPathIds(u[f],r);else t.isPlainJsonObject(u)&&t.replaceClientObjectPropertiesWithObjectPathIds(u,r)},t.fixObjectPathIfNecessary=function(n,t){n&&n._objectPath&&t&&n._objectPath.updateUsingObjectData(t,n)},t.tryGetObjectIdFromLoadOrRetrieveResult=function(i){var r=i[n.Constants.id];return t.isNullOrUndefined(r)&&(r=i[n.Constants.idLowerCase]),t.isNullOrUndefined(r)&&(r=i[n.Constants.idPrivate]),r},t.validateObjectPath=function(i){for(var r=i._objectPath;r;){if(!r.isValid)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidObjectPath,message:t._getResourceString(n.ResourceStrings.invalidObjectPath,t.getObjectPathExpression(r)),debugInfo:{errorLocation:t.getObjectPathExpression(r)}});r=r.parentObjectPath}},t.validateReferencedObjectPaths=function(i){var u,r;if(i)for(u=0;u<i.length;u++)for(r=i[u];r;){if(!r.isValid)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidObjectPath,message:t._getResourceString(n.ResourceStrings.invalidObjectPath,t.getObjectPathExpression(r))});r=r.parentObjectPath}},t.validateContext=function(i,r){if(r&&r.context!==i)throw new n._Internal.RuntimeError({code:n.ErrorCodes.invalidRequestContext,message:t._getResourceString(n.ResourceStrings.invalidRequestContext)});},t.log=function(n){t._logEnabled&&typeof console!="undefined"&&console.log&&console.log(n)},t.load=function(n,t){return n.context.load(n,t),n},t.loadAndSync=function(n,t){return n.context.load(n,t),n.context.sync().then(function(){return n})},t.retrieve=function(i,r){var u=n._internalConfig.alwaysPolyfillClientObjectRetrieveMethod,f,e,o;return u||(u=!t.isSetSupported("RichApiRuntime","1.1")),f=new n.RetrieveResultImpl(i,u),e=n.ClientRequestContext._parseQueryOption(r),o=u?n.ActionFactory.createQueryAction(i.context,i,e):n.ActionFactory.createQueryAsJsonAction(i.context,i,e),i.context._pendingRequest.addActionResultHandler(o,f),f},t.retrieveAndSync=function(n,i){var r=t.retrieve(n,i);return n.context.sync().then(function(){return r})},t.isSetSupported=function(n,t){return typeof window!="undefined"&&window.Office&&window.Office.context&&window.Office.context.requirements?window.Office.context.requirements.isSetSupported(n,t):!0},t._parseSelectExpand=function(n){function e(n){var t=n.toLowerCase(),i,r;return t==="items"||t==="items/"?"*":(i=6,r=t.substr(0,i)==="items/"||t.substr(0,i)==="items.",r&&(n=n.substr(i)),n.replace(new RegExp("[/.]items[/.]","gi"),"/"))}var f=[],u,r,i;if(!t.isNullOrEmptyString(n))for(u=n.split(","),r=0;r<u.length;r++)i=u[r],i=e(i.trim()),i.length>0&&f.push(i);return f},t.toJson=function(n,i,r,u){var o={},e,f;for(e in i)f=i[e],typeof f!="undefined"&&(o[e]=f);for(e in r)f=r[e],typeof f!="undefined"&&(o[e]=f[t.fieldName_isCollection]&&typeof f[t.fieldName_m__items]!="undefined"?f.toJSON().items:f.toJSON());return u&&(o.items=u.map(function(n){return n.toJSON()})),o},t.throwError=function(i,r,u){throw new n._Internal.RuntimeError({code:i,message:t._getResourceString(i,r),debugInfo:u?{errorLocation:u}:undefined});},t.createRuntimeError=function(t,i,r){return new n._Internal.RuntimeError({code:t,message:i,debugInfo:{errorLocation:r}})},t._getResourceString=function(i,r){var u,e,f,o;return typeof window!="undefined"&&window.Strings&&window.Strings.OfficeOM&&(e="L_"+i,f=window.Strings.OfficeOM[e],f&&(u=f)),u||(u=n.ResourceStringValues[i]),u||(u=i),t.isNullOrUndefined(r)||(Array.isArray(r)?(o=r,u=t._formatString(u,o)):u=u.replace("{0}",r)),u},t._formatString=function(t,i){return t.replace(/\{\d\}/g,function(t){var r=parseInt(t.substr(1,t.length-2));if(r<i.length)return i[r];else throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"format"});})},t.throwIfNotLoaded=function(n,i,r,u){if(!u&&t.isUndefined(i)&&n.charCodeAt(0)!=t.s_underscoreCharCode)throw t.createPropertyNotLoadedException(r,n);},t.createPropertyNotLoadedException=function(i,r){return new n._Internal.RuntimeError({code:n.ErrorCodes.propertyNotLoaded,message:t._getResourceString(n.ResourceStrings.propertyNotLoaded,r),debugInfo:i?{errorLocation:i+"."+r}:undefined})},t.createCannotUpdateReadOnlyPropertyException=function(i,r){return new n._Internal.RuntimeError({code:n.ErrorCodes.cannotUpdateReadOnlyProperty,message:t._getResourceString(n.ResourceStrings.cannotUpdateReadOnlyProperty,r),debugInfo:i?{errorLocation:i+"."+r}:undefined})},t.throwIfApiNotSupported=function(i,r,u,f){if(t._doApiNotSupportedCheck&&!t.isSetSupported(r,u)){var e=t._getResourceString(n.ResourceStrings.apiNotFoundDetails,[i,r+" "+u,f]);throw new n._Internal.RuntimeError({code:n.ErrorCodes.apiNotFound,message:e,debugInfo:{errorLocation:i}});}},t.getObjectPathExpression=function(n){for(var i="";n;){switch(n.objectPathInfo.ObjectPathType){case 1:i=i;break;case 2:i="new()"+(i.length>0?".":"")+i;break;case 3:i=t.normalizeName(n.objectPathInfo.Name)+"()"+(i.length>0?".":"")+i;break;case 4:i=t.normalizeName(n.objectPathInfo.Name)+(i.length>0?".":"")+i;break;case 5:i="getItem()"+(i.length>0?".":"")+i;break;case 6:i="_reference()"+(i.length>0?".":"")+i;break}n=n.parentObjectPath}return i},t._createPromiseFromResult=function(t){return new n.CoreUtility.Promise(function(n,i){n(t)})},t._createTimeoutPromise=function(t){return new n.CoreUtility.Promise(function(n,i){setTimeout(function(){n(null)},t)})},t.promisify=function(t){return new n.CoreUtility.Promise(function(n,i){var r=function(t){t.status=="failed"?i(t.error):n(t.value)};t(r)})},t._addActionResultHandler=function(n,t,i){n.context._pendingRequest.addActionResultHandler(t,i)},t._handleNavigationPropertyResults=function(n,i,r){for(var u=0;u<r.length-1;u+=2)t.isUndefined(i[r[u+1]])||n[r[u]]._handleResult(i[r[u+1]])},t.normalizeName=function(n){return n.substr(0,1).toLowerCase()+n.substr(1)},t._isLocalDocumentUrl=function(n){return t._getLocalDocumentUrlPrefixLength(n)>0},t._getLocalDocumentUrlPrefixLength=function(n){for(var i=["http://document.localhost","https://document.localhost","//document.localhost"],r=n.toLowerCase().trim(),t=0;t<i.length;t++)if(r===i[t])return i[t].length;else if(r.substr(0,i[t].length+1)===i[t]+"/")return i[t].length+1;return 0},t._validateLocalDocumentRequest=function(i){var f=t._getLocalDocumentUrlPrefixLength(i.url),r,u;if(f<=0)throw n._Internal.RuntimeError._createInvalidArgError({argumentName:"request"});return r=i.url.substr(f),u=r.toLowerCase(),u==="_api"?r="":u.substr(0,5)==="_api/"&&(r=r.substr(5)),{method:i.method,url:r,headers:i.headers,body:i.body}},t._buildRequestMessageSafeArray=function(i){var r=0,f,s,e,u,o,h;if(t.isReadonlyRestRequest(i.method)||(r=1),i.url.substr(0,n.Constants.processQuery.length).toLowerCase()===n.Constants.processQuery.toLowerCase()&&(f=i.url.indexOf("?"),f>0))for(s=i.url.substr(f+1),e=s.split("&"),u=0;u<e.length;u++)if(o=e[u].split("="),o[0].toLowerCase()===n.Constants.flags){h=parseInt(o[1]);r=h;r=r&1;break}return n.RichApiMessageUtility.buildRequestMessageSafeArray("",r,i.method,i.url,i.headers,i.body)},t._parseHttpResponseHeaders=function(n){var s={},h,o,r,i,u,f,e;if(!t.isNullOrEmptyString(n))for(h=new RegExp("\r?\n"),o=n.split(h),r=0;r<o.length;r++)i=o[r],i!=null&&(u=i.indexOf(":"),u>0&&(f=i.substr(0,u),e=i.substr(u+1),f=t.trim(f),e=t.trim(e),s[f.toUpperCase()]=e));return s},t._parseErrorResponse=function(i){var r=null,f,e,u;if(t.isPlainJsonObject(i.body))r=i.body;else if(!t.isNullOrEmptyString(i.body)){f=t.trim(i.body);try{r=JSON.parse(f)}catch(o){t.log("Error when parse "+f)}}return!t.isNullOrUndefined(r)&&typeof r=="object"&&r.error?(u=r.error.code,e=t._getResourceString(n.ResourceStrings.connectionFailureWithDetails,[i.statusCode.toString(),r.error.code,r.error.message])):e=t._getResourceString(n.ResourceStrings.connectionFailureWithStatus,i.statusCode.toString()),t.isNullOrEmptyString(u)&&(u=n.ErrorCodes.connectionFailure),{errorCode:u,errorMessage:e}},t._copyHeaders=function(n,t){if(n&&t)for(var i in n)t[i]=n[i]},t._toCamelLowerCase=function(n){if(t.isNullOrEmptyString(n))return n;for(var i=0;i<n.length&&n.charCodeAt(i)>=65&&n.charCodeAt(i)<=90;)i++;return i<n.length?n.substr(0,i).toLowerCase()+n.substr(i):n.toLowerCase()},t._fixupApiFlags=function(n){return typeof n=="boolean"&&(n=n?1:0),n},t.definePropertyThrowUnloadedException=function(n,i,r){Object.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){throw t.createPropertyNotLoadedException(i,r);},set:function(){throw t.createCannotUpdateReadOnlyPropertyException(i,r);}})},t.defineReadOnlyPropertyWithValue=function(n,i,r){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return r},set:function(){throw t.createCannotUpdateReadOnlyPropertyException(null,i);}})},t.processRetrieveResult=function(i,r,u,f){var c,a,v,l,e,o,h,w,s;if(!t.isNullOrUndefined(r))if(f){if(c=r[n.Constants.itemsLowerCase],Array.isArray(c)){for(a=[],e=0;e<c.length;e++)v=f(c[e],e),l={},l[n.Constants.proxy]=v,v._handleRetrieveResult(c[e],l),a.push(l);t.defineReadOnlyPropertyWithValue(u,n.Constants.itemsLowerCase,a)}}else{var y=i[n.Constants.scalarPropertyNames],p=i[n.Constants.navigationPropertyNames],b=i[n.Constants.className];if(y)for(e=0;e<y.length;e++)o=y[e],h=r[o],t.isUndefined(h)?t.definePropertyThrowUnloadedException(u,b,o):t.defineReadOnlyPropertyWithValue(u,o,h);if(p)for(e=0;e<p.length;e++)o=p[e],h=r[o],t.isUndefined(h)?t.definePropertyThrowUnloadedException(u,b,o):(w=i[o],s={},w._handleRetrieveResult(h,s),s[n.Constants.proxy]=w,Array.isArray(s[n.Constants.itemsLowerCase])&&(s=s[n.Constants.itemsLowerCase]),t.defineReadOnlyPropertyWithValue(u,o,s))}},t.fieldName_m__items="m__items",t.fieldName_isCollection="_isCollection",t._logEnabled=!1,t._synchronousCleanup=!1,t._doApiNotSupportedCheck=!1,t.s_underscoreCharCode="_".charCodeAt(0),t}();n.Utility=t}(OfficeExtension||(OfficeExtension={}));__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){var c="OfficeCore",l="AgaveVisualApi",a=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,v=OfficeExtension.ObjectPathFactory.createMethodObjectPath,y=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,i=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,p=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,w=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,b=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,t=OfficeExtension.ActionFactory.createMethodAction,k=OfficeExtension.ActionFactory.createEnsureUnchangedAction,d=OfficeExtension.ActionFactory.createSetPropertyAction,r=OfficeExtension.Utility.isNullOrUndefined,g=OfficeExtension.Utility.isUndefined,nt=OfficeExtension.Utility.throwIfNotLoaded,tt=OfficeExtension.Utility.throwIfApiNotSupported,it=OfficeExtension.Utility.load,rt=OfficeExtension.Utility.retrieve,u=OfficeExtension.Utility.toJson,f=OfficeExtension.Utility.fixObjectPathIfNecessary,e=OfficeExtension.Utility._addActionResultHandler,ut=OfficeExtension.Utility._handleNavigationPropertyResults,ft=OfficeExtension.Utility.adjustToDateTime,o=OfficeExtension.Utility.processRetrieveResult,et="BiShim",s=function(s){function h(){return s!==null&&s.apply(this,arguments)||this}return __extends(h,s),Object.defineProperty(h.prototype,"_className",{get:function(){return"BiShim"},enumerable:!0,configurable:!0}),h.prototype.initialize=function(n){t(this.context,this,"Initialize",0,[n],!1)},h.prototype.getData=function(){var i=t(this.context,this,"getData",1,[],!1),n=new OfficeExtension.ClientResult;return e(this,i,n),n},h.prototype.setVisualObjects=function(n){t(this.context,this,"setVisualObjects",0,[n],!1)},h.prototype._handleResult=function(n){if(s.prototype._handleResult.call(this,n),!r(n)){var t=n;f(this,t)}},h.prototype._handleRetrieveResult=function(n,t){s.prototype._handleRetrieveResult.call(this,n,t);o(this,n,t)},h.newObject=function(t){return new n.BiShim(t,i(t,"Microsoft.AgaveVisual.BiShim",!1,!1))},h.prototype.toJSON=function(){return u(this,{},{})},h}(OfficeExtension.ClientObject),h;n.BiShim=s,function(n){n.generalException="GeneralException"}(h=n.AgaveVisualErrorCodes||(n.AgaveVisualErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(n){var y="OfficeCore",p="ExperimentApi",w=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,i=OfficeExtension.ObjectPathFactory.createMethodObjectPath,b=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,o=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,k=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,d=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,g=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,t=OfficeExtension.ActionFactory.createMethodAction,nt=OfficeExtension.ActionFactory.createSetPropertyAction,r=OfficeExtension.Utility.isNullOrUndefined,s=OfficeExtension.Utility.isUndefined,h=OfficeExtension.Utility.throwIfNotLoaded,tt=OfficeExtension.Utility.throwIfApiNotSupported,c=OfficeExtension.Utility.load,u=OfficeExtension.Utility.fixObjectPathIfNecessary,f=OfficeExtension.Utility._addActionResultHandler,it=OfficeExtension.Utility._handleNavigationPropertyResults,rt=OfficeExtension.Utility.adjustToDateTime,l=function(e){function s(){return e!==null&&e.apply(this,arguments)||this}return __extends(s,e),Object.defineProperty(s.prototype,"_className",{get:function(){return"FlightingService"},enumerable:!0,configurable:!0}),s.prototype.getClientSessionId=function(){var i=t(this.context,this,"GetClientSessionId",1,[]),n=new OfficeExtension.ClientResult;return f(this,i,n),n},s.prototype.getDeferredFlights=function(){var i=t(this.context,this,"GetDeferredFlights",1,[]),n=new OfficeExtension.ClientResult;return f(this,i,n),n},s.prototype.getFeature=function(t,r,u,f){return new n.ABType(this.context,i(this.context,this,"GetFeature",1,[t,r,u,f],!1,!1,null))},s.prototype.getFeatureGate=function(t,r){return new n.ABType(this.context,i(this.context,this,"GetFeatureGate",1,[t,r],!1,!1,null))},s.prototype.resetOverride=function(n){t(this.context,this,"ResetOverride",0,[n])},s.prototype.setOverride=function(n,i,r){t(this.context,this,"SetOverride",0,[n,i,r])},s.prototype._handleResult=function(n){if(e.prototype._handleResult.call(this,n),!r(n)){var t=n;u(this,t)}},s.newObject=function(t){return new n.FlightingService(t,o(t,"Microsoft.Experiment.FlightingService",!1))},s.prototype.toJSON=function(){return{}},s}(OfficeExtension.ClientObject),e,a,v;n.FlightingService=l;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ABType"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return h("value",this.m_value,"ABType",this._isNull),this.m_value},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!r(t)){var i=t;u(this,i);s(i.Value)||(this.m_value=i.Value)}},t.prototype.load=function(n){return c(this,n),this},t.prototype.toJSON=function(){return{value:this.m_value}},t}(OfficeExtension.ClientObject);n.ABType=e,function(n){n.boolean="Boolean";n.integer="Integer";n.string="String"}(a=n.FeatureType||(n.FeatureType={})),function(n){n.generalException="GeneralException"}(v=n.ExperimentErrorCodes||(n.ExperimentErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(n){function r(t,i){return OfficeExtension.ClientRequestContext._runBatch("OfficeCore.run",arguments,function(t){return new n.RequestContext(t)})}var t=function(){function t(n){this.context=n}return Object.defineProperty(t.prototype,"authentication",{get:function(){return this.m_authentication||(this.m_authentication=n.AuthenticationService.newObject(this.context)),this.m_authentication},enumerable:!0,configurable:!0}),t}(),i;n.FirstPartyApis=t;i=function(i){function r(n){return i.call(this,n)||this}return __extends(r,i),Object.defineProperty(r.prototype,"firstParty",{get:function(){return this.m_firstPartyApis||(this.m_firstPartyApis=new t(this)),this.m_firstPartyApis},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flighting",{get:function(){return this.flightingService},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"telemetry",{get:function(){return this.m_telemetry||(this.m_telemetry=n.TelemetryService.newObject(this)),this.m_telemetry},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bi",{get:function(){return this.m_biShim||(this.m_biShim=n.BiShim.newObject(this)),this.m_biShim},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flightingService",{get:function(){return this.m_flightingService||(this.m_flightingService=n.FlightingService.newObject(this)),this.m_flightingService},enumerable:!0,configurable:!0}),r}(OfficeExtension.ClientRequestContext);n.RequestContext=i;n.run=r}(OfficeCore||(OfficeCore={})),function(n){var o="OfficeCore",s="TelemetryApi",h=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,c=OfficeExtension.ObjectPathFactory.createMethodObjectPath,l=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,t=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,a=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,v=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,y=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,i=OfficeExtension.ActionFactory.createMethodAction,p=OfficeExtension.ActionFactory.createSetPropertyAction,r=OfficeExtension.Utility.isNullOrUndefined,w=OfficeExtension.Utility.isUndefined,b=OfficeExtension.Utility.throwIfNotLoaded,k=OfficeExtension.Utility.throwIfApiNotSupported,d=OfficeExtension.Utility.load,u=OfficeExtension.Utility.fixObjectPathIfNecessary,g=OfficeExtension.Utility._addActionResultHandler,nt=OfficeExtension.Utility._handleNavigationPropertyResults,tt=OfficeExtension.Utility.adjustToDateTime,it="TelemetryService",f=function(f){function e(){return f!==null&&f.apply(this,arguments)||this}return __extends(e,f),Object.defineProperty(e.prototype,"_className",{get:function(){return"TelemetryService"},enumerable:!0,configurable:!0}),e.prototype.sendTelemetryEvent=function(n,t,r,u,f){i(this.context,this,"SendTelemetryEvent",1,[n,t,r,u,f],!1)},e.prototype._handleResult=function(n){if(f.prototype._handleResult.call(this,n),!r(n)){var t=n;u(this,t)}},e.newObject=function(i){return new n.TelemetryService(i,t(i,"Microsoft.Telemetry.TelemetryService",!1,!1))},e.prototype.toJSON=function(){return{}},e}(OfficeExtension.ClientObject),e;n.TelemetryService=f,function(n){n.generalException="GeneralException"}(e=n.TelemetryErrorCodes||(n.TelemetryErrorCodes={}))}(OfficeCore||(OfficeCore={})),function(n){function t(n){var t=new OfficeCore.RequestContext,r=OfficeCore.AuthenticationService.newObject(t),i;return t._customData="WacPartition",i=new OfficeExtension.Promise(function(i,u){var f=r.getAccessToken(n);t.sync().then(function(){i(f)}).catch(function(n){throw n;})}),i.then(function(n){return new OfficeExtension.Promise(function(t,i){t(n)})})}function i(){var n=new OfficeCore.RequestContext,i=OfficeCore.AuthenticationService.newObject(n),t;return n._customData="WacPartition",t=new OfficeExtension.Promise(function(t,r){var u=i.getPrimaryIdentityInfo();n.sync().then(function(){t(u)}).catch(function(n){throw n;})}),t.then(function(n){return new OfficeExtension.Promise(function(t,i){t(n)})})}n.getAccessToken=t;n.getPrimaryIdentityInfo=i}(OfficeFirstPartyAuth||(OfficeFirstPartyAuth={})),function(n){var nt="Office",ct="OfficeSharedApi",o=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,l=OfficeExtension.ObjectPathFactory.createMethodObjectPath,tt=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,it=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,lt=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,at=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,a=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,u=OfficeExtension.ActionFactory.createMethodAction,rt=OfficeExtension.ActionFactory.createEnsureUnchangedAction,v=OfficeExtension.ActionFactory.createSetPropertyAction,f=OfficeExtension.Utility.isNullOrUndefined,t=OfficeExtension.Utility.isUndefined,i=OfficeExtension.Utility.throwIfNotLoaded,ut=OfficeExtension.Utility.throwIfApiNotSupported,y=OfficeExtension.Utility.load,p=OfficeExtension.Utility.retrieve,s=OfficeExtension.Utility.toJson,h=OfficeExtension.Utility.fixObjectPathIfNecessary,e=OfficeExtension.Utility._addActionResultHandler,ft=OfficeExtension.Utility._handleNavigationPropertyResults,w=OfficeExtension.Utility.adjustToDateTime,c=OfficeExtension.Utility.processRetrieveResult,et,ot,b,r,k,d,g,st,ht;(function(n){n.organizationAccount="OrganizationAccount";n.microsoftAccount="MicrosoftAccount"})(et=n.IdentityType||(n.IdentityType={}));ot="AuthenticationService";b=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"AuthenticationService"},enumerable:!0,configurable:!0}),i.prototype.getAccessToken=function(n){var i=u(this.context,this,"GetAccessToken",1,[n],!0),t=new OfficeExtension.ClientResult;return e(this,i,t),t},i.prototype.getPrimaryIdentityInfo=function(){ut("AuthenticationService.getPrimaryIdentityInfo","FirstPartyAuthentication","1.2",nt);var t=u(this.context,this,"GetPrimaryIdentityInfo",1,[],!0),n=new OfficeExtension.ClientResult;return e(this,t,n),n},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!f(n)){var i=n;h(this,i)}},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);c(this,n,i)},i.newObject=function(t){return new n.AuthenticationService(t,it(t,"Microsoft.Authentication.AuthenticationService",!1,!1))},i.prototype.toJSON=function(){return s(this,{},{})},i}(OfficeExtension.ClientObject);n.AuthenticationService=b;r="Comment";k=function(a){function b(){return a!==null&&a.apply(this,arguments)||this}return __extends(b,a),Object.defineProperty(b.prototype,"_className",{get:function(){return"Comment"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_scalarPropertyNames",{get:function(){return["id","text","created","level","resolved","author","mentions"]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1,!1,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"_navigationPropertyNames",{get:function(){return["parent","parentOrNullObject","replies"]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"parent",{get:function(){return this._P||(this._P=new n.Comment(this.context,o(this.context,this,"Parent",!1,!1,!1))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"parentOrNullObject",{get:function(){return this._Pa||(this._Pa=new n.Comment(this.context,o(this.context,this,"ParentOrNullObject",!1,!1,!1))),this._Pa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"replies",{get:function(){return this._R||(this._R=new n.CommentCollection(this.context,o(this.context,this,"Replies",!0,!1,!1))),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"author",{get:function(){return i("author",this._A,r,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"created",{get:function(){return i("created",this._C,r,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"id",{get:function(){return i("id",this._I,r,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"level",{get:function(){return i("level",this._L,r,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"mentions",{get:function(){return i("mentions",this._M,r,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"resolved",{get:function(){return i("resolved",this._Re,r,this._isNull),this._Re},set:function(n){this._Re=n;v(this.context,this,"Resolved",n)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"text",{get:function(){return i("text",this._T,r,this._isNull),this._T},set:function(n){this._T=n;v(this.context,this,"Text",n)},enumerable:!0,configurable:!0}),b.prototype.set=function(n,t){this._recursivelySet(n,t,["text","resolved"],[],["parent","parentOrNullObject","replies"])},b.prototype.update=function(n){this._recursivelyUpdate(n)},b.prototype.delete=function(){u(this.context,this,"Delete",0,[],!1)},b.prototype.getParentOrSelf=function(){return new n.Comment(this.context,l(this.context,this,"GetParentOrSelf",1,[],!1,!1,null,!1))},b.prototype.getRichText=function(n){var i=u(this.context,this,"GetRichText",1,[n],!1),t=new OfficeExtension.ClientResult;return e(this,i,t),t},b.prototype.reply=function(t,i){return new n.Comment(this.context,l(this.context,this,"Reply",0,[t,i],!1,!1,null,!1))},b.prototype.setRichText=function(n,t){var r=u(this.context,this,"SetRichText",0,[n,t],!1),i=new OfficeExtension.ClientResult;return e(this,r,i),i},b.prototype._handleResult=function(n){if(a.prototype._handleResult.call(this,n),!f(n)){var i=n;h(this,i);t(i.Author)||(this._A=i.Author);t(i.Created)||(this._C=w(i.Created));t(i.Id)||(this._I=i.Id);t(i.Level)||(this._L=i.Level);t(i.Mentions)||(this._M=i.Mentions);t(i.Resolved)||(this._Re=i.Resolved);t(i.Text)||(this._T=i.Text);ft(this,i,["parent","Parent","parentOrNullObject","ParentOrNullObject","replies","Replies"])}},b.prototype.load=function(n){return y(this,n)},b.prototype.retrieve=function(n){return p(this,n)},b.prototype._handleIdResult=function(n){(a.prototype._handleIdResult.call(this,n),f(n))||t(n.Id)||(this._I=n.Id)},b.prototype._handleRetrieveResult=function(n,i){if(a.prototype._handleRetrieveResult.call(this,n,i),!f(n)){var r=n;t(r.Created)||(r.created=w(r.created));c(this,n,i)}},b.prototype.toJSON=function(){return s(this,{author:this._A,created:this._C,id:this._I,level:this._L,mentions:this._M,resolved:this._Re,text:this._T},{replies:this._R})},b.prototype.ensureUnchanged=function(n){rt(this.context,this,n);return},b}(OfficeExtension.ClientObject);n.Comment=k;d="CommentCollection";g=function(t){function r(){return t!==null&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_className",{get:function(){return"CommentCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"items",{get:function(){return i("items",this.m__items,d,this._isNull),this.m__items},enumerable:!0,configurable:!0}),r.prototype.getCount=function(){var t=u(this.context,this,"GetCount",1,[],!1),n=new OfficeExtension.ClientResult;return e(this,t,n),n},r.prototype.getItem=function(t){return new n.Comment(this.context,tt(this.context,this,[t]))},r.prototype._handleResult=function(i){var u,e,r,o;if((t.prototype._handleResult.call(this,i),!f(i))&&(u=i,h(this,u),!f(u[OfficeExtension.Constants.items])))for(this.m__items=[],e=u[OfficeExtension.Constants.items],r=0;r<e.length;r++)o=new n.Comment(this.context,a(!0,this.context,this,e[r],r)),o._handleResult(e[r]),this.m__items.push(o)},r.prototype.load=function(n){return y(this,n)},r.prototype.retrieve=function(n){return p(this,n)},r.prototype._handleRetrieveResult=function(i,r){var u=this;t.prototype._handleRetrieveResult.call(this,i,r);c(this,i,r,function(t,i){return new n.Comment(u.context,a(!0,u.context,u,t,i))})},r.prototype.toJSON=function(){return s(this,{},{},this.m__items)},r}(OfficeExtension.ClientObject);n.CommentCollection=g,function(n){n.plain="Plain";n.markdown="Markdown";n.delta="Delta"}(st=n.CommentTextFormat||(n.CommentTextFormat={})),function(n){n.apiNotAvailable="ApiNotAvailable";n.clientError="ClientError";n.invalidArgument="InvalidArgument";n.invalidGrant="InvalidGrant";n.invalidResourceUrl="InvalidResourceUrl";n.serverError="ServerError";n.unsupportedUserIdentity="UnsupportedUserIdentity";n.userNotSignedIn="UserNotSignedIn"}(ht=n.ErrorCodes||(n.ErrorCodes={}))}(OfficeCore||(OfficeCore={}));__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){function dr(n){return n[0].toLowerCase()+n.slice(1)}function ri(n,t,i){var o=1500,f,r,u,e,h;if(Array.isArray(i)&&i.length>0&&Array.isArray(i[0])&&i.length*i[0].length>o&&ti()){for(f=Math.max(1,Math.round(o/i[0].length)),n._ValidateArraySize(i.length,i[0].length),r=0;r<i.length;r+=f)u=f,r+u>i.length&&(u=i.length-r),e=n.getRow(r).untrack().getBoundingRect(n.getRow(r+u-1).untrack()).untrack(),h=i.slice(r,r+u),s(e.context,e,t,h);return!0}return!1}function bi(n){return typeof window!="undefined"&&window.Office&&window.Office.context&&window.Office.context.requirements?window.Office.context.requirements.isSetSupported("ExcelApi",n):!0}function ti(){return bi(1.3)}function nc(n){return typeof window!="undefined"&&window.Office&&window.Office.context?window.Office.context.platform===n:!1}function tc(t,i,r){return OfficeExtension.ClientRequestContext._runBatch("Excel.run",arguments,function(t){return new n.RequestContext(t)})}function ic(t,i){return OfficeExtension.ClientRequestContext._runExplicitBatch("Excel.runBatch",arguments,function(t){return new n.RequestContext(t)})}function ui(n){var t={BindingColumnCount:n.bindingColumnCount,BindingId:n.bindingId,BindingRowCount:n.bindingRowCount,bindingType:n.bindingType,HasHeaders:n.hasHeaders};return window.OSF.DDA.OMFactory.manufactureBinding(t,window.Microsoft.Office.WebExtension.context.document)}function tu(n,t){var r=n.headers==null,i;return i=r?n.rows:n,i=window.OSF.DDA.DataCoercion.coerceData(i,t[window.Microsoft.Office.WebExtension.Parameters.CoercionType]),i===undefined?null:i}function rc(n){var f=typeof window!="undefined"&&window.Office&&window.Office.context&&window.Office.context.diagnostics&&window.Office.context.diagnostics.version,t;if(!f)return!1;t=n[window.Office.context.diagnostics.platform.toLowerCase()];t==null&&(t=n.general);var e=window.Office.context.diagnostics.version,o=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/,i=o.exec(e);if(i){var r=parseInt(i[1]),u=parseInt(i[2]),s=parseInt(i[3]);if(r<t.desiredMajor||r===t.desiredMajor&&u<t.desiredMinor)return!0;if(r===t.desiredMajor&&u===t.desiredMinor&&s<t.desiredBuild){var h=i[4],c=/^3\d\d\d+$/,l=c.exec(h);if(l)return!0}}return!1}var dh=["ThreeArrows","ThreeArrowsGray","ThreeFlags","ThreeTrafficLights1","ThreeTrafficLights2","ThreeSigns","ThreeSymbols","ThreeSymbols2","FourArrows","FourArrowsGray","FourRedToBlack","FourRating","FourTrafficLights","FiveArrows","FiveArrowsGray","FiveRating","FiveQuarters","ThreeStars","ThreeTriangles","FiveBoxes"],gh=[["RedDownArrow","YellowSideArrow","GreenUpArrow"],["GrayDownArrow","GraySideArrow","GrayUpArrow"],["RedFlag","YellowFlag","GreenFlag"],["RedCircleWithBorder","YellowCircle","GreenCircle"],["RedTrafficLight","YellowTrafficLight","GreenTrafficLight"],["RedDiamond","YellowTriangle","GreenCircle"],["RedCrossSymbol","YellowExclamationSymbol","GreenCheckSymbol"],["RedCross","YellowExclamation","GreenCheck"],["RedDownArrow","YellowDownInclineArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GrayUpInclineArrow","GrayUpArrow"],["BlackCircle","GrayCircle","PinkCircle","RedCircle"],["OneBar","TwoBars","ThreeBars","FourBars"],["BlackCircleWithBorder","RedCircleWithBorder","YellowCircle","GreenCircle"],["RedDownArrow","YellowDownInclineArrow","YellowSideArrow","YellowUpInclineArrow","GreenUpArrow"],["GrayDownArrow","GrayDownInclineArrow","GraySideArrow","GrayUpInclineArrow","GrayUpArrow"],["NoBars","OneBar","TwoBars","ThreeBars","FourBars"],["WhiteCircleAllWhiteQuarters","CircleWithThreeWhiteQuarters","CircleWithTwoWhiteQuarters","CircleWithOneWhiteQuarter","BlackCircle"],["SilverStar","HalfGoldStar","GoldStar"],["RedDownTriangle","YellowDash","GreenUpTriangle"],["NoFilledBoxes","OneFilledBox","TwoFilledBoxes","ThreeFilledBoxes","FourFilledBoxes"],],gr,nu,ru,uu,fu,ki,fc,eu,yt,ou,su,hu,di,cu,ec,lu,nt,au,et,vu,yu,pu,wu,bu,gi,nr,ku,du,ct,gu,tr,nf,ir,tf,rr,rf,ur,uf,ht,ff,fr,ef,fi,of,er,sf,or,hf,lt,cf,sr,lf,af,vf,ei,yf,hr,pf,pt,wf,cr,bf,wt,kf,oc,df,lr,gf,ut,ne,sc,te,ar,ie,bt,re,hc,ue,cc,fe,tt,ee,lc,oe,vr,se,ac,he,at,ce,vt,le,vc,ae,ve,ye,yc,pe,kt,we,be,ke,de,ge,pc,no,ft,to,wc,io,bc,ro,ci,uo,li,fo,dt,eo,gt,oo,so,ho,kc,co,dc,lo,ai,ao,vo,yo,po,wo,bo,ko,yr,go,gc,ns,ts,is,pr,rs,ot,us,vi,fs,es,os,ss,hs,oi,cs,ni,ls,yi,as,si,vs,nl,ys,pi,ps,hi,ws,wr,bs,ks,ds,gs,nh,th,ih,rh,uh,fh,eh,ii,oh,sh,hh,wi,ch,br,lh,it,ah,vh,yh,tl,ph,il,wh,rl,ul,fl,el,ol,sl,hl,cl,ll,al,vl,yl,pl,wl,bl,kl,dl,gl,na,ta,ia,ra,ua,fa,ea,oa,sa,ha,ca,la,aa,va,ya,pa,wa,ba,ka,da,ga,nv,tv,iv,rv,uv,fv,ev,ov,sv,hv,cv,lv,av,vv,yv,pv,wv,bv,st,kv,dv,gv,ny,ty,iy,ry,uy,kr,i,fy,bh,kh;n.icons={};dh.map(function(t,i){var r=dr(t);n.icons[r]=[];gh[i].map(function(i,u){i=dr(i);var f={set:t,index:u};n.icons[r].push(f);n.icons[r][i]=f})});gr=function(){function n(n,t,i){this.m_workbookUrl=n;this.m_requestHeaders=t;this.m_requestHeaders||(this.m_requestHeaders={});OfficeExtension.Utility.isNullOrUndefined(i)&&(i=!0);this.m_persisted=i}return n.prototype.close=function(){var i=this,t,u,r;return this.m_requestUrlAndHeaderInfo&&!OfficeExtension.Utility._isLocalDocumentUrl(this.m_requestUrlAndHeaderInfo.url)?(t=this.m_requestUrlAndHeaderInfo.url,t.charAt(t.length-1)!=="/"&&(t=t+"/"),t=t+"closeSession",u=this.m_requestUrlAndHeaderInfo,r={method:"POST",url:t,headers:this.m_requestUrlAndHeaderInfo.headers,body:""},this.m_requestUrlAndHeaderInfo=null,OfficeExtension.HttpUtility.sendRequest(r).then(function(t){var u,r,f;if(t.statusCode!==204){u=OfficeExtension.Utility._parseErrorResponse(t);throw OfficeExtension.Utility.createRuntimeError(u.errorCode,u.errorMessage,"Session.close");}i.m_requestUrlAndHeaderInfo=null;r=null;for(f in i.m_requestHeaders)if(f.toLowerCase()===n.WorkbookSessionIdHeaderNameLower){r=f;break}r&&delete i.m_requestHeaders[r]})):OfficeExtension.Utility._createPromiseFromResult(null)},n.prototype._resolveRequestUrlAndHeaderInfo=function(){var r=this,u,e,t,i,f,o;if(this.m_requestUrlAndHeaderInfo)return OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);if(OfficeExtension.Utility.isNullOrEmptyString(this.m_workbookUrl)||OfficeExtension.Utility._isLocalDocumentUrl(this.m_workbookUrl))return this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo);u=!1;for(e in this.m_requestHeaders)if(e.toLowerCase()===n.WorkbookSessionIdHeaderNameLower){u=!0;break}return u?(this.m_requestUrlAndHeaderInfo={url:this.m_workbookUrl,headers:this.m_requestHeaders},OfficeExtension.Utility._createPromiseFromResult(this.m_requestUrlAndHeaderInfo)):(t=this.m_workbookUrl,t.charAt(t.length-1)!=="/"&&(t=t+"/"),t=t+"createSession",i={},OfficeExtension.Utility._copyHeaders(this.m_requestHeaders,i),i["Content-Type"]="application/json",f={},f.persistChanges=this.m_persisted,o={method:"POST",url:t,headers:i,body:JSON.stringify(f)},OfficeExtension.HttpUtility.sendRequest(o).then(function(t){var u,f,e;if(t.statusCode!==201){u=OfficeExtension.Utility._parseErrorResponse(t);throw OfficeExtension.Utility.createRuntimeError(u.errorCode,u.errorMessage,"Session.resolveRequestUrlAndHeaderInfo");}return f=JSON.parse(t.body),e=f.id,i={},OfficeExtension.Utility._copyHeaders(r.m_requestHeaders,i),i[n.WorkbookSessionIdHeaderName]=e,r.m_requestUrlAndHeaderInfo={url:r.m_workbookUrl,headers:i},r.m_requestUrlAndHeaderInfo}))},n.WorkbookSessionIdHeaderName="Workbook-Session-Id",n.WorkbookSessionIdHeaderNameLower="workbook-session-id",n}();n.Session=gr;nu=function(n){function t(t){var i=n.call(this,t)||this;return i.m_workbook=new ki(i,OfficeExtension.ObjectPathFactory.createGlobalObjectObjectPath(i)),i._rootObject=i.m_workbook,i._rootObjectPropertyName="workbook",i}return __extends(t,n),t.prototype._processOfficeJsErrorResponse=function(n,t){var i=5004;n===i&&(t.ErrorCode=kh.invalidOperationInCellEditMode,t.ErrorMessage=OfficeExtension.Utility._getResourceString(OfficeExtension.ResourceStrings.invalidOperationInCellEditMode))},Object.defineProperty(t.prototype,"workbook",{get:function(){return this.m_workbook},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"application",{get:function(){return this.workbook.application},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runtime",{get:function(){return this.workbook._Runtime},enumerable:!0,configurable:!0}),t}(OfficeCore.RequestContext);n.RequestContext=nu;n.run=tc;n.runBatch=ic;n._RedirectV1APIs=!1;n._V1APIMap={GetDataAsync:{call:function(n,t){return n.workbook._V1Api.bindingGetData(t)},postprocess:tu},GetSelectedDataAsync:{call:function(n,t){return n.workbook._V1Api.getSelectedData(t)},postprocess:tu},GoToByIdAsync:{call:function(n,t){return n.workbook._V1Api.gotoById(t)}},AddColumnsAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddColumns(t)}},AddFromSelectionAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromSelection(t)},postprocess:ui},AddFromNamedItemAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromNamedItem(t)},postprocess:ui},AddFromPromptAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddFromPrompt(t)},postprocess:ui},AddRowsAsync:{call:function(n,t){return n.workbook._V1Api.bindingAddRows(t)}},GetByIdAsync:{call:function(n,t){return n.workbook._V1Api.bindingGetById(t)},postprocess:ui},ReleaseByIdAsync:{call:function(n,t){return n.workbook._V1Api.bindingReleaseById(t)}},GetAllAsync:{call:function(n){return n.workbook._V1Api.bindingGetAll()},postprocess:function(n){return n.bindings.map(function(n){return ui(n)})}},DeleteAllDataValuesAsync:{call:function(n,t){return n.workbook._V1Api.bindingDeleteAllDataValues(t)}},SetSelectedDataAsync:{preprocess:function(n){var t=n.cellFormat;return typeof window!="undefined"&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):typeof window!="undefined"&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.setSelectedData(t)}},SetDataAsync:{preprocess:function(n){var t=n.cellFormat;return typeof window!="undefined"&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):typeof window!="undefined"&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.bindingSetData(t)}},SetFormatsAsync:{preprocess:function(n){var t=n.cellFormat;return typeof window!="undefined"&&window.OSF.DDA.SafeArray?window.OSF.OUtil.listContainsKey(window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.SafeArray.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)):typeof window!="undefined"&&window.OSF.DDA.WAC&&window.OSF.OUtil.listContainsKey(window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes,"cellFormat")&&(n.cellFormat=window.OSF.DDA.WAC.Delegate.ParameterMap.dynamicTypes.cellFormat.toHost(t)),n},call:function(n,t){return n.workbook._V1Api.bindingSetFormats(t)}},SetTableOptionsAsync:{call:function(n,t){return n.workbook._V1Api.bindingSetTableOptions(t)}},ClearFormatsAsync:{call:function(n,t){return n.workbook._V1Api.bindingClearFormats(t)}},GetFilePropertiesAsync:{call:function(n){return n.workbook._V1Api.getFilePropertiesAsync()}}};var ey=!0,f="Excel",e="ExcelApi",l=OfficeExtension.ObjectPathFactory.createPropertyObjectPath,t=OfficeExtension.ObjectPathFactory.createMethodObjectPath,rt=OfficeExtension.ObjectPathFactory.createIndexerObjectPath,oy=OfficeExtension.ObjectPathFactory.createNewObjectObjectPath,sy=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexer,hy=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingGetItemAt,d=OfficeExtension.ObjectPathFactory.createChildItemObjectPathUsingIndexerOrGetItemAt,h=OfficeExtension.ActionFactory.createMethodAction,b=OfficeExtension.ActionFactory.createEnsureUnchangedAction,s=OfficeExtension.ActionFactory.createSetPropertyAction,c=OfficeExtension.Utility.isNullOrUndefined,u=OfficeExtension.Utility.isUndefined,r=OfficeExtension.Utility.throwIfNotLoaded,o=OfficeExtension.Utility.throwIfApiNotSupported,p=OfficeExtension.Utility.load,w=OfficeExtension.Utility.retrieve,a=OfficeExtension.Utility.toJson,v=OfficeExtension.Utility.fixObjectPathIfNecessary,k=OfficeExtension.Utility._addActionResultHandler,g=OfficeExtension.Utility._handleNavigationPropertyResults,iu=OfficeExtension.Utility.adjustToDateTime,y=OfficeExtension.Utility.processRetrieveResult,cy="Runtime",uc=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"Runtime"},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.Runtime=uc;ru="Application";uu=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"Application"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["calculationMode"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calculationMode",{get:function(){return r("calculationMode",this._C,ru,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"CalculationMode",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["calculationMode"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.calculate=function(n){h(this.context,this,"Calculate",0,[n],0)},t.prototype.suspendApiCalculationUntilNextSync=function(){nc("Mac")&&bi(1.6)&&!bi(1.7)||(o("Application.suspendApiCalculationUntilNextSync",e,"1.6",f),h(this.context,this,"SuspendApiCalculationUntilNextSync",0,[],0))},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.CalculationMode)||(this._C=i.CalculationMode)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{calculationMode:this._C},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.Application=uu;fu="Workbook";ki=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"Workbook"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["name"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_navigationPropertyNames",{get:function(){return["worksheets","names","tables","application","bindings","functions","_V1Api","pivotTables","settings","customXmlParts","internalTest","properties","styles","protection","dataConnections","_Runtime"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"application",{get:function(){return this._A||(this._A=new n.Application(this.context,l(this.context,this,"Application",!1,!1,4))),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"bindings",{get:function(){return this._B||(this._B=new n.BindingCollection(this.context,l(this.context,this,"Bindings",!0,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"customXmlParts",{get:function(){return o("Workbook.customXmlParts",e,"1.5",f),this._C||(this._C=new n.CustomXmlPartCollection(this.context,l(this.context,this,"CustomXmlParts",!0,!1,4))),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dataConnections",{get:function(){return o("Workbook.dataConnections",e,"1.7",f),this._D||(this._D=new n.DataConnectionCollection(this.context,l(this.context,this,"DataConnections",!1,!1,4))),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"functions",{get:function(){return o("Workbook.functions",e,"1.2",f),this._F||(this._F=new n.Functions(this.context,l(this.context,this,"Functions",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"internalTest",{get:function(){return o("Workbook.internalTest",e,"1.6",f),this._I||(this._I=new n.InternalTest(this.context,l(this.context,this,"InternalTest",!1,!1,4))),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"names",{get:function(){return this._Na||(this._Na=new n.NamedItemCollection(this.context,l(this.context,this,"Names",!0,!1,4))),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pivotTables",{get:function(){return o("Workbook.pivotTables",e,"1.3",f),this._P||(this._P=new n.PivotTableCollection(this.context,l(this.context,this,"PivotTables",!0,!1,4))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"properties",{get:function(){return o("Workbook.properties",e,"1.7",f),this._Pr||(this._Pr=new n.DocumentProperties(this.context,l(this.context,this,"Properties",!1,!1,4))),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"protection",{get:function(){return o("Workbook.protection",e,"1.7",f),this._Pro||(this._Pro=new n.WorkbookProtection(this.context,l(this.context,this,"Protection",!1,!1,4))),this._Pro},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"settings",{get:function(){return o("Workbook.settings",e,"1.4",f),this._S||(this._S=new n.SettingCollection(this.context,l(this.context,this,"Settings",!0,!1,4))),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"styles",{get:function(){return o("Workbook.styles",e,"1.7",f),this._St||(this._St=new n.StyleCollection(this.context,l(this.context,this,"Styles",!0,!1,4))),this._St},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tables",{get:function(){return this._T||(this._T=new n.TableCollection(this.context,l(this.context,this,"Tables",!0,!1,4))),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"worksheets",{get:function(){return this._W||(this._W=new n.WorksheetCollection(this.context,l(this.context,this,"Worksheets",!0,!1,4))),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_Runtime",{get:function(){return o("Workbook._Runtime",e,"1.5",f),this.__R||(this.__R=new n.Runtime(this.context,l(this.context,this,"_Runtime",!1,!1,4))),this.__R},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_V1Api",{get:function(){return o("Workbook._V1Api",e,"1.3",f),this.__V||(this.__V=new n._V1Api(this.context,l(this.context,this,"_V1Api",!1,!1,4))),this.__V},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"name",{get:function(){return r("name",this._N,fu,this._isNull),o("Workbook.name",e,"1.7",f),this._N},enumerable:!0,configurable:!0}),s.prototype.set=function(n,t){this._recursivelySet(n,t,[],["properties"],["_Runtime","_V1Api","application","bindings","customXmlParts","dataConnections","functions","internalTest","names","pivotTables","protection","settings","styles","tables","worksheets"])},s.prototype.update=function(n){this._recursivelyUpdate(n)},s.prototype.getActiveCell=function(){return o("Workbook.getActiveCell",e,"1.7",f),new n.Range(this.context,t(this.context,this,"GetActiveCell",1,[],!1,!0,null,4))},s.prototype.getSelectedRange=function(){return new n.Range(this.context,t(this.context,this,"GetSelectedRange",1,[],!1,!0,null,4))},s.prototype._GetObjectByReferenceId=function(n){var i=h(this.context,this,"_GetObjectByReferenceId",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},s.prototype._GetObjectTypeNameByReferenceId=function(n){var i=h(this.context,this,"_GetObjectTypeNameByReferenceId",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},s.prototype._GetRangeForEventByReferenceId=function(i){return new n.Range(this.context,t(this.context,this,"_GetRangeForEventByReferenceId",1,[i],!1,!1,null,4))},s.prototype._GetRangeOrNullObjectForEventByReferenceId=function(i){return new n.Range(this.context,t(this.context,this,"_GetRangeOrNullObjectForEventByReferenceId",1,[i],!1,!1,null,4))},s.prototype._GetReferenceCount=function(){var t=h(this.context,this,"_GetReferenceCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype._RemoveAllReferences=function(){h(this.context,this,"_RemoveAllReferences",1,[],0)},s.prototype._RemoveReference=function(n){h(this.context,this,"_RemoveReference",1,[n],0)},s.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Name)||(this._N=t.Name);g(this,t,["application","Application","bindings","Bindings","customXmlParts","CustomXmlParts","dataConnections","DataConnections","functions","Functions","internalTest","InternalTest","names","Names","pivotTables","PivotTables","properties","Properties","protection","Protection","settings","Settings","styles","Styles","tables","Tables","worksheets","Worksheets","_Runtime","_Runtime","_V1Api","_V1Api"])}},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},Object.defineProperty(s.prototype,"onSelectionChanged",{get:function(){var n=this;return o("Workbook.onSelectionChanged",e,"1.3",f),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(t){return n.context.eventRegistration.register(2,"",t)},unregisterFunc:function(t){return n.context.eventRegistration.unregister(2,"",t)},eventArgsTransformFunc:function(t){return OfficeExtension.Utility._createPromiseFromResult({workbook:n})}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_onMessage",{get:function(){var n=this;return o("Workbook._onMessage",e,"1.7",f),this.m__Message||(this.m__Message=new OfficeExtension.EventHandlers(this.context,this,"_Message",{registerFunc:function(t){return n.context.eventRegistration.register(5,"",t)},unregisterFunc:function(t){return n.context.eventRegistration.unregister(5,"",t)},eventArgsTransformFunc:function(t){return OfficeExtension.Utility._createPromiseFromResult({entries:t.entries,workbook:n})}})),this.m__Message},enumerable:!0,configurable:!0}),s.prototype.toJSON=function(){return a(this,{name:this._N},{bindings:this._B,customXmlParts:this._C,names:this._Na,pivotTables:this._P,properties:this._Pr,settings:this._S,styles:this._St,tables:this._T,worksheets:this._W})},s.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},s}(OfficeExtension.ClientObject);n.Workbook=ki;fc="WorkbookProtection";eu=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"WorkbookProtection"},enumerable:!0,configurable:!0}),t.prototype.protect=function(n){h(this.context,this,"Protect",0,[n],0)},t.prototype.unprotect=function(n){h(this.context,this,"Unprotect",0,[n],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.WorkbookProtection=eu;yt="Worksheet";ou=function(i){function k(){return i!==null&&i.apply(this,arguments)||this}return __extends(k,i),Object.defineProperty(k.prototype,"_className",{get:function(){return"Worksheet"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_collectionPropertyPath",{get:function(){return"workbook.worksheets"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyNames",{get:function(){return["name","id","position","visibility","tabColor","standardWidth","standardHeight"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_navigationPropertyNames",{get:function(){return["charts","tables","protection","pivotTables","names","freezePanes"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"charts",{get:function(){return this._C||(this._C=new n.ChartCollection(this.context,l(this.context,this,"Charts",!0,!1,4))),this._C._ParentObject=this,this._C},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"freezePanes",{get:function(){return o("Worksheet.freezePanes",e,"1.7",f),this._F||(this._F=new n.WorksheetFreezePanes(this.context,l(this.context,this,"FreezePanes",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"names",{get:function(){return o("Worksheet.names",e,"1.4",f),this._Na||(this._Na=new n.NamedItemCollection(this.context,l(this.context,this,"Names",!0,!1,4))),this._Na},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"pivotTables",{get:function(){return o("Worksheet.pivotTables",e,"1.3",f),this._P||(this._P=new n.PivotTableCollection(this.context,l(this.context,this,"PivotTables",!0,!1,4))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"protection",{get:function(){return o("Worksheet.protection",e,"1.2",f),this._Pr||(this._Pr=new n.WorksheetProtection(this.context,l(this.context,this,"Protection",!1,!1,4))),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"tables",{get:function(){return this.m_tables||(this.m_tables=new n.TableCollection(this.context,l(this.context,this,"Tables",!0,!1,4))),this.m_tables._ParentObject=this,this.m_tables},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"id",{get:function(){return r("id",this._I,yt,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"name",{get:function(){return r("name",this._N,yt,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"position",{get:function(){return r("position",this._Po,yt,this._isNull),this._Po},set:function(n){this._Po=n;s(this.context,this,"Position",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"standardHeight",{get:function(){return r("standardHeight",this._S,yt,this._isNull),o("Worksheet.standardHeight",e,"1.7",f),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"standardWidth",{get:function(){return r("standardWidth",this._St,yt,this._isNull),o("Worksheet.standardWidth",e,"1.7",f),this._St},set:function(n){this._St=n;s(this.context,this,"StandardWidth",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"tabColor",{get:function(){return r("tabColor",this._T,yt,this._isNull),o("Worksheet.tabColor",e,"1.7",f),this._T},set:function(n){this._T=n;s(this.context,this,"TabColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"visibility",{get:function(){return r("visibility",this._V,yt,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Visibility",n,0)},enumerable:!0,configurable:!0}),k.prototype.set=function(n,t){this._recursivelySet(n,t,["name","position","visibility","tabColor","standardWidth"],[],["charts","freezePanes","names","pivotTables","protection","tables"])},k.prototype.update=function(n){this._recursivelyUpdate(n)},k.prototype.activate=function(){h(this.context,this,"Activate",1,[],0)},k.prototype.calculate=function(n){o("Worksheet.calculate",e,"1.6",f);h(this.context,this,"Calculate",0,[n],0)},k.prototype.copy=function(i,r){return o("Worksheet.copy",e,"1.7",f),new n.Worksheet(this.context,t(this.context,this,"Copy",0,[i,r],!1,!1,"_GetAnotherWorksheetById",0))},k.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},k.prototype.getCell=function(i,r){return new n.Range(this.context,t(this.context,this,"GetCell",1,[i,r],!1,!0,null,4))},k.prototype.getNext=function(i){return o("Worksheet.getNext",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetNext",1,[i],!1,!0,"_GetSheetById",4))},k.prototype.getNextOrNullObject=function(i){return o("Worksheet.getNextOrNullObject",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetNextOrNullObject",1,[i],!1,!0,"_GetSheetById",4))},k.prototype.getPrevious=function(i){return o("Worksheet.getPrevious",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetPrevious",1,[i],!1,!0,"_GetSheetById",4))},k.prototype.getPreviousOrNullObject=function(i){return o("Worksheet.getPreviousOrNullObject",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetPreviousOrNullObject",1,[i],!1,!0,"_GetSheetById",4))},k.prototype.getRange=function(i){return new n.Range(this.context,t(this.context,this,"GetRange",1,[i],!1,!0,null,4))},k.prototype.getRangeByIndexes=function(i,r,u,s){return o("Worksheet.getRangeByIndexes",e,"1.7",f),new n.Range(this.context,t(this.context,this,"GetRangeByIndexes",1,[i,r,u,s],!1,!0,null,4))},k.prototype.getUsedRange=function(i){return new n.Range(this.context,t(this.context,this,"GetUsedRange",1,[i],!1,!0,null,4))},k.prototype.getUsedRangeOrNullObject=function(i){return o("Worksheet.getUsedRangeOrNullObject",e,"1.4",f),new n.Range(this.context,t(this.context,this,"GetUsedRangeOrNullObject",1,[i],!1,!0,null,4))},k.prototype._GetAnotherWorksheetById=function(i){return o("Worksheet._GetAnotherWorksheetById",e,"1.7",f),new n.Worksheet(this.context,t(this.context,this,"_GetAnotherWorksheetById",0,[i],!1,!1,null,0))},k.prototype._GetSheetById=function(i){return o("Worksheet._GetSheetById",e,"1.7",f),new n.Worksheet(this.context,t(this.context,this,"_GetSheetById",1,[i],!1,!1,null,4))},k.prototype._RegisterActivatedEvent=function(){o("Worksheet._RegisterActivatedEvent",e,"1.7",f);h(this.context,this,"_RegisterActivatedEvent",0,[],0)},k.prototype._RegisterDataChangedEvent=function(){o("Worksheet._RegisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_RegisterDataChangedEvent",0,[],0)},k.prototype._RegisterDeactivatedEvent=function(){o("Worksheet._RegisterDeactivatedEvent",e,"1.7",f);h(this.context,this,"_RegisterDeactivatedEvent",0,[],0)},k.prototype._RegisterSelectionChangedEvent=function(){o("Worksheet._RegisterSelectionChangedEvent",e,"1.7",f);h(this.context,this,"_RegisterSelectionChangedEvent",0,[],0)},k.prototype._UnregisterActivatedEvent=function(){o("Worksheet._UnregisterActivatedEvent",e,"1.7",f);h(this.context,this,"_UnregisterActivatedEvent",0,[],0)},k.prototype._UnregisterDataChangedEvent=function(){o("Worksheet._UnregisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDataChangedEvent",0,[],0)},k.prototype._UnregisterDeactivatedEvent=function(){o("Worksheet._UnregisterDeactivatedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDeactivatedEvent",0,[],0)},k.prototype._UnregisterSelectionChangedEvent=function(){o("Worksheet._UnregisterSelectionChangedEvent",e,"1.7",f);h(this.context,this,"_UnregisterSelectionChangedEvent",0,[],0)},k.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Id)||(this._I=t.Id);u(t.Name)||(this._N=t.Name);u(t.Position)||(this._Po=t.Position);u(t.StandardHeight)||(this._S=t.StandardHeight);u(t.StandardWidth)||(this._St=t.StandardWidth);u(t.TabColor)||(this._T=t.TabColor);u(t.Visibility)||(this._V=t.Visibility);g(this,t,["charts","Charts","freezePanes","FreezePanes","names","Names","pivotTables","PivotTables","protection","Protection","tables","Tables"])}},k.prototype.load=function(n){return p(this,n)},k.prototype.retrieve=function(n){return w(this,n)},k.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._I=n.Id)},k.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},Object.defineProperty(k.prototype,"onActivated",{get:function(){var n=this;return o("Worksheet.onActivated",e,"1.7",f),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){n._RegisterActivatedEvent()},unregisterFunc:function(){n._UnregisterActivatedEvent()},getTargetIdFunc:function(){return n.id},eventArgsTransformFunc:function(n){var t={type:st.worksheetActivated,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"onChanged",{get:function(){var n=this;return o("Worksheet.onChanged",e,"1.7",f),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:10,registerFunc:function(){return n._RegisterDataChangedEvent()},unregisterFunc:function(){return n._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return n.id},eventArgsTransformFunc:function(t){var i={type:st.worksheetChanged,changeType:t.changeType,source:t.source,worksheetId:n.id,address:t.address,getRange:function(n){return o("WorksheetChangedEventArgs.getRange",e,"1.8",f),n.workbook._GetRangeForEventByReferenceId(t.referenceId)},getRangeOrNullObject:function(n){return o("WorksheetChangedEventArgs.getRangeOrNullObject",e,"1.8",f),n.workbook._GetRangeOrNullObjectForEventByReferenceId(t.referenceId)}};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"onDeactivated",{get:function(){var n=this;return o("Worksheet.onDeactivated",e,"1.7",f),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){n._RegisterDeactivatedEvent()},unregisterFunc:function(){n._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return n.id},eventArgsTransformFunc:function(n){var t={type:st.worksheetDeactivated,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"onSelectionChanged",{get:function(){var n=this;return o("Worksheet.onSelectionChanged",e,"1.7",f),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:14,registerFunc:function(){return n._RegisterSelectionChangedEvent()},unregisterFunc:function(){return n._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return n.id},eventArgsTransformFunc:function(t){var i={type:st.worksheetSelectionChanged,worksheetId:n.id,address:t.address};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),k.prototype.toJSON=function(){return a(this,{id:this._I,name:this._N,position:this._Po,standardHeight:this._S,standardWidth:this._St,tabColor:this._T,visibility:this._V},{charts:this._C,names:this._Na,pivotTables:this._P,protection:this._Pr,tables:this.m_tables})},k.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},k}(OfficeExtension.ClientObject);n.Worksheet=ou;su="WorksheetCollection";hu=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"WorksheetCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,su,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i){return new n.Worksheet(this.context,t(this.context,this,"Add",0,[i],!1,!0,null,0))},u.prototype.getActiveWorksheet=function(){return new n.Worksheet(this.context,t(this.context,this,"GetActiveWorksheet",1,[],!1,!1,null,4))},u.prototype.getCount=function(n){o("WorksheetCollection.getCount",e,"1.4",f);var i=h(this.context,this,"GetCount",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},u.prototype.getFirst=function(i){return o("WorksheetCollection.getFirst",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetFirst",1,[i],!1,!0,null,4))},u.prototype.getItem=function(t){return new n.Worksheet(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return o("WorksheetCollection.getItemOrNullObject",e,"1.4",f),new n.Worksheet(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype.getLast=function(i){return o("WorksheetCollection.getLast",e,"1.5",f),new n.Worksheet(this.context,t(this.context,this,"GetLast",1,[i],!1,!0,null,4))},u.prototype._RegisterActivatedEvent=function(){o("WorksheetCollection._RegisterActivatedEvent",e,"1.7",f);h(this.context,this,"_RegisterActivatedEvent",0,[],0)},u.prototype._RegisterAddedEvent=function(){o("WorksheetCollection._RegisterAddedEvent",e,"1.7",f);h(this.context,this,"_RegisterAddedEvent",0,[],0)},u.prototype._RegisterDeactivatedEvent=function(){o("WorksheetCollection._RegisterDeactivatedEvent",e,"1.7",f);h(this.context,this,"_RegisterDeactivatedEvent",0,[],0)},u.prototype._RegisterDeletedEvent=function(){o("WorksheetCollection._RegisterDeletedEvent",e,"1.7",f);h(this.context,this,"_RegisterDeletedEvent",0,[],0)},u.prototype._UnregisterActivatedEvent=function(){o("WorksheetCollection._UnregisterActivatedEvent",e,"1.7",f);h(this.context,this,"_UnregisterActivatedEvent",0,[],0)},u.prototype._UnregisterAddedEvent=function(){o("WorksheetCollection._UnregisterAddedEvent",e,"1.7",f);h(this.context,this,"_UnregisterAddedEvent",0,[],0)},u.prototype._UnregisterDeactivatedEvent=function(){o("WorksheetCollection._UnregisterDeactivatedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDeactivatedEvent",0,[],0)},u.prototype._UnregisterDeletedEvent=function(){o("WorksheetCollection._UnregisterDeletedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDeletedEvent",0,[],0)},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.Worksheet(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.Worksheet(u.context,d(!0,u.context,u,t,i))})},Object.defineProperty(u.prototype,"onActivated",{get:function(){var n=this;return o("WorksheetCollection.onActivated",e,"1.7",f),this.m_activated||(this.m_activated=new OfficeExtension.GenericEventHandlers(this.context,this,"Activated",{eventType:11,registerFunc:function(){return n._RegisterActivatedEvent()},unregisterFunc:function(){return n._UnregisterActivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(n){var t={type:st.worksheetActivated,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_activated},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"onAdded",{get:function(){var n=this;return o("WorksheetCollection.onAdded",e,"1.7",f),this.m_added||(this.m_added=new OfficeExtension.GenericEventHandlers(this.context,this,"Added",{eventType:13,registerFunc:function(){return n._RegisterAddedEvent()},unregisterFunc:function(){return n._UnregisterAddedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(n){var t={type:st.worksheetAdded,source:n.source,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_added},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"onDeactivated",{get:function(){var n=this;return o("WorksheetCollection.onDeactivated",e,"1.7",f),this.m_deactivated||(this.m_deactivated=new OfficeExtension.GenericEventHandlers(this.context,this,"Deactivated",{eventType:12,registerFunc:function(){return n._RegisterDeactivatedEvent()},unregisterFunc:function(){return n._UnregisterDeactivatedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(n){var t={type:st.worksheetDeactivated,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deactivated},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"onDeleted",{get:function(){var n=this;return o("WorksheetCollection.onDeleted",e,"1.7",f),this.m_deleted||(this.m_deleted=new OfficeExtension.GenericEventHandlers(this.context,this,"Deleted",{eventType:15,registerFunc:function(){return n._RegisterDeletedEvent()},unregisterFunc:function(){return n._UnregisterDeletedEvent()},getTargetIdFunc:function(){return OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(n){var t={type:st.worksheetDeleted,source:n.source,worksheetId:n.worksheetId};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_deleted},enumerable:!0,configurable:!0}),u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.WorksheetCollection=hu;di="WorksheetProtection";cu=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"WorksheetProtection"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["protected","options"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return r("options",this._O,di,this._isNull),this._O},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protected",{get:function(){return r("protected",this._P,di,this._isNull),this._P},enumerable:!0,configurable:!0}),t.prototype.protect=function(n,t){if(rc({mac:{desiredMajor:16,desiredMinor:7,desiredBuild:17101600},ios:{desiredMajor:2,desiredMinor:7,desiredBuild:1016},general:{desiredMajor:16,desiredMinor:0,desiredBuild:8716}})){h(this.context,this,"Protect",0,[n],!1);return}h(this.context,this,"Protect",0,[n,t],0)},t.prototype.unprotect=function(n){h(this.context,this,"Unprotect",0,[n],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Options)||(this._O=i.Options);u(i.Protected)||(this._P=i.Protected)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{options:this._O,protected:this._P},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.WorksheetProtection=cu;ec="WorksheetFreezePanes";lu=function(i){function r(){return i!==null&&i.apply(this,arguments)||this}return __extends(r,i),Object.defineProperty(r.prototype,"_className",{get:function(){return"WorksheetFreezePanes"},enumerable:!0,configurable:!0}),r.prototype.freezeAt=function(n){h(this.context,this,"FreezeAt",0,[n],0)},r.prototype.freezeColumns=function(n){h(this.context,this,"FreezeColumns",0,[n],0)},r.prototype.freezeRows=function(n){h(this.context,this,"FreezeRows",0,[n],0)},r.prototype.getLocation=function(){return new n.Range(this.context,t(this.context,this,"GetLocation",1,[],!1,!0,null,4))},r.prototype.getLocationOrNullObject=function(){return new n.Range(this.context,t(this.context,this,"GetLocationOrNullObject",1,[],!1,!0,null,4))},r.prototype.unfreeze=function(){h(this.context,this,"Unfreeze",0,[],0)},r.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t)}},r.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},r.prototype.toJSON=function(){return a(this,{},{})},r}(OfficeExtension.ClientObject);n.WorksheetFreezePanes=lu;nt="Range";au=function(i){function d(){return i!==null&&i.apply(this,arguments)||this}return __extends(d,i),Object.defineProperty(d.prototype,"_className",{get:function(){return"Range"},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat","numberFormatLocal","values","text","formulas","formulasLocal","rowIndex","columnIndex","rowCount","columnCount","address","addressLocal","cellCount","_ReferenceId","valueTypes","formulasR1C1","hidden","rowHidden","columnHidden","isEntireColumn","isEntireRow","hyperlink","style"]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!0,!0,!1,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"_navigationPropertyNames",{get:function(){return["format","worksheet","sort","conditionalFormats"]},enumerable:!0,configurable:!0}),d.prototype._ensureInteger=function(t,i){typeof t=="number"&&isFinite(t)&&Math.floor(t)===t||OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,t,i)},d.prototype._getAdjacentRange=function(n,t,i,r,u){t==null&&(t=1);this._ensureInteger(t,n);var f,e=0,o=0;return(t>0?f=i.getOffsetRange(r,u):(f=i,e=r,o=u),Math.abs(t)===1)?f:f.getBoundingRect(i.getOffsetRange(r*t+e,u*t+o))},Object.defineProperty(d.prototype,"conditionalFormats",{get:function(){return o("Range.conditionalFormats",e,"1.6",f),this._Con||(this._Con=new n.ConditionalFormatCollection(this.context,l(this.context,this,"ConditionalFormats",!0,!1,4))),this._Con},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"format",{get:function(){return this._F||(this._F=new n.RangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"sort",{get:function(){return o("Range.sort",e,"1.2",f),this._S||(this._S=new n.RangeSort(this.context,l(this.context,this,"Sort",!1,!1,4))),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"worksheet",{get:function(){return this._W||(this._W=new n.Worksheet(this.context,l(this.context,this,"Worksheet",!1,!1,4))),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"address",{get:function(){return r("address",this._A,nt,this._isNull),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"addressLocal",{get:function(){return r("addressLocal",this._Ad,nt,this._isNull),this._Ad},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"cellCount",{get:function(){return r("cellCount",this._C,nt,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"columnCount",{get:function(){return r("columnCount",this._Co,nt,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"columnHidden",{get:function(){return r("columnHidden",this._Col,nt,this._isNull),o("Range.columnHidden",e,"1.2",f),this._Col},set:function(n){this._Col=n;s(this.context,this,"ColumnHidden",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"columnIndex",{get:function(){return r("columnIndex",this._Colu,nt,this._isNull),this._Colu},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"formulas",{get:function(){return r("formulas",this.m_formulas,nt,this._isNull),this.m_formulas},set:function(n){(this.m_formulas=n,ri(this,"Formulas",n))||(this.m_formulas=n,s(this.context,this,"Formulas",n,0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"formulasLocal",{get:function(){return r("formulasLocal",this.m_formulasLocal,nt,this._isNull),this.m_formulasLocal},set:function(n){(this.m_formulasLocal=n,ri(this,"FormulasLocal",n))||(this.m_formulasLocal=n,s(this.context,this,"FormulasLocal",n,0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"formulasR1C1",{get:function(){return r("formulasR1C1",this.m_formulasR1C1,nt,this._isNull),o("Range.formulasR1C1",e,"1.2",f),this.m_formulasR1C1},set:function(n){(this.m_formulasR1C1=n,ri(this,"FormulasR1C1",n))||(this.m_formulasR1C1=n,s(this.context,this,"FormulasR1C1",n,0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hidden",{get:function(){return r("hidden",this._H,nt,this._isNull),o("Range.hidden",e,"1.2",f),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hyperlink",{get:function(){return r("hyperlink",this._Hy,nt,this._isNull),o("Range.hyperlink",e,"1.7",f),this._Hy},set:function(n){this._Hy=n;s(this.context,this,"Hyperlink",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isEntireColumn",{get:function(){return r("isEntireColumn",this.m_isEntireColumn,nt,this._isNull),o("Range.isEntireColumn",e,"1.7",f),this.m_isEntireColumn},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isEntireRow",{get:function(){return r("isEntireRow",this.m_isEntireRow,nt,this._isNull),o("Range.isEntireRow",e,"1.7",f),this.m_isEntireRow},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"numberFormat",{get:function(){return r("numberFormat",this.m_numberFormat,nt,this._isNull),this.m_numberFormat},set:function(n){(this.m_numberFormat=n,ri(this,"NumberFormat",n))||(this.m_numberFormat=n,s(this.context,this,"NumberFormat",n,0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"numberFormatLocal",{get:function(){return r("numberFormatLocal",this._N,nt,this._isNull),o("Range.numberFormatLocal",e,"1.7",f),this._N},set:function(n){this._N=n;s(this.context,this,"NumberFormatLocal",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rowCount",{get:function(){return r("rowCount",this._R,nt,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rowHidden",{get:function(){return r("rowHidden",this._Ro,nt,this._isNull),o("Range.rowHidden",e,"1.2",f),this._Ro},set:function(n){this._Ro=n;s(this.context,this,"RowHidden",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rowIndex",{get:function(){return r("rowIndex",this._Row,nt,this._isNull),this._Row},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"style",{get:function(){return r("style",this._St,nt,this._isNull),o("Range.style",e,"1.7",f),this._St},set:function(n){this._St=n;s(this.context,this,"Style",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"text",{get:function(){return r("text",this._T,nt,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"valueTypes",{get:function(){return r("valueTypes",this._V,nt,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"values",{get:function(){return r("values",this.m_values,nt,this._isNull),this.m_values},set:function(n){(this.m_values=n,ri(this,"Values",n))||(this.m_values=n,s(this.context,this,"Values",n,0))},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"_ReferenceId",{get:function(){return r("_ReferenceId",this.__R,nt,this._isNull),this.__R},enumerable:!0,configurable:!0}),d.prototype.set=function(n,t){this._recursivelySet(n,t,["numberFormat","numberFormatLocal","values","formulas","formulasLocal","formulasR1C1","rowHidden","columnHidden","hyperlink","style"],["format"],["conditionalFormats","sort","worksheet"])},d.prototype.update=function(n){this._recursivelyUpdate(n)},d.prototype.calculate=function(){o("Range.calculate",e,"1.6",f);h(this.context,this,"Calculate",0,[],0)},d.prototype.clear=function(n){h(this.context,this,"Clear",0,[n],0)},d.prototype.delete=function(n){h(this.context,this,"Delete",0,[n],0)},d.prototype.getAbsoluteResizedRange=function(i,r){return o("Range.getAbsoluteResizedRange",e,"1.7",f),new n.Range(this.context,t(this.context,this,"GetAbsoluteResizedRange",1,[i,r],!1,!0,null,4))},d.prototype.getBoundingRect=function(i){return new n.Range(this.context,t(this.context,this,"GetBoundingRect",1,[i],!1,!0,null,4))},d.prototype.getCell=function(i,r){return new n.Range(this.context,t(this.context,this,"GetCell",1,[i,r],!1,!0,null,4))},d.prototype.getColumn=function(i){return new n.Range(this.context,t(this.context,this,"GetColumn",1,[i],!1,!0,null,4))},d.prototype.getColumnsAfter=function(i){return ti()?(o("Range.getColumnsAfter",e,"1.3",f),new n.Range(this.context,t(this.context,this,"GetColumnsAfter",1,[i],!1,!0,null,4))):(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i===0&&OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove"),this._getAdjacentRange("getColumnsAfter",i,this.getLastColumn(),0,1))},d.prototype.getColumnsBefore=function(i){return ti()?(o("Range.getColumnsBefore",e,"1.3",f),new n.Range(this.context,t(this.context,this,"GetColumnsBefore",1,[i],!1,!0,null,4))):(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i===0&&OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove"),this._getAdjacentRange("getColumnsBefore",i,this.getColumn(0),0,-1))},d.prototype.getEntireColumn=function(){return new n.Range(this.context,t(this.context,this,"GetEntireColumn",1,[],!1,!0,null,4))},d.prototype.getEntireRow=function(){return new n.Range(this.context,t(this.context,this,"GetEntireRow",1,[],!1,!0,null,4))},d.prototype.getImage=function(){o("Range.getImage",e,"1.7",f);var t=h(this.context,this,"GetImage",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},d.prototype.getIntersection=function(i){return new n.Range(this.context,t(this.context,this,"GetIntersection",1,[i],!1,!0,null,4))},d.prototype.getIntersectionOrNullObject=function(i){return o("Range.getIntersectionOrNullObject",e,"1.4",f),new n.Range(this.context,t(this.context,this,"GetIntersectionOrNullObject",1,[i],!1,!0,null,4))},d.prototype.getLastCell=function(){return new n.Range(this.context,t(this.context,this,"GetLastCell",1,[],!1,!0,null,4))},d.prototype.getLastColumn=function(){return new n.Range(this.context,t(this.context,this,"GetLastColumn",1,[],!1,!0,null,4))},d.prototype.getLastRow=function(){return new n.Range(this.context,t(this.context,this,"GetLastRow",1,[],!1,!0,null,4))},d.prototype.getOffsetRange=function(i,r){return new n.Range(this.context,t(this.context,this,"GetOffsetRange",1,[i,r],!1,!0,null,4))},d.prototype.getResizedRange=function(i,r){if(!ti()){this._ensureInteger(i,"getResizedRange");this._ensureInteger(r,"getResizedRange");var u=i>=0&&r>=0?this:this.getCell(0,0);return u.getBoundingRect(this.getLastCell().getOffsetRange(i,r))}return o("Range.getResizedRange",e,"1.3",f),new n.Range(this.context,t(this.context,this,"GetResizedRange",1,[i,r],!1,!0,null,4))},d.prototype.getRow=function(i){return new n.Range(this.context,t(this.context,this,"GetRow",1,[i],!1,!0,null,4))},d.prototype.getRowsAbove=function(i){return ti()?(o("Range.getRowsAbove",e,"1.3",f),new n.Range(this.context,t(this.context,this,"GetRowsAbove",1,[i],!1,!0,null,4))):(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i===0&&OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove"),this._getAdjacentRange("getRowsAbove",i,this.getRow(0),-1,0))},d.prototype.getRowsBelow=function(i){return ti()?(o("Range.getRowsBelow",e,"1.3",f),new n.Range(this.context,t(this.context,this,"GetRowsBelow",1,[i],!1,!0,null,4))):(i==null&&(i=1),this._ensureInteger(i,"RowsAbove"),i===0&&OfficeExtension.Utility.throwError(n.ErrorCodes.invalidArgument,"count","RowsAbove"),this._getAdjacentRange("getRowsBelow",i,this.getLastRow(),1,0))},d.prototype.getSurroundingRegion=function(){return o("Range.getSurroundingRegion",e,"1.7",f),new n.Range(this.context,t(this.context,this,"GetSurroundingRegion",1,[],!1,!0,null,4))},d.prototype.getUsedRange=function(i){return new n.Range(this.context,t(this.context,this,"GetUsedRange",1,[i],!1,!0,null,4))},d.prototype.getUsedRangeOrNullObject=function(i){return o("Range.getUsedRangeOrNullObject",e,"1.4",f),new n.Range(this.context,t(this.context,this,"GetUsedRangeOrNullObject",1,[i],!1,!0,null,4))},d.prototype.getVisibleView=function(){return o("Range.getVisibleView",e,"1.3",f),new n.RangeView(this.context,t(this.context,this,"GetVisibleView",1,[],!1,!1,null,4))},d.prototype.insert=function(i){return new n.Range(this.context,t(this.context,this,"Insert",0,[i],!1,!0,null,0))},d.prototype.merge=function(n){o("Range.merge",e,"1.2",f);h(this.context,this,"Merge",0,[n],0)},d.prototype.select=function(){h(this.context,this,"Select",1,[],0)},d.prototype.showCard=function(){o("Range.showCard",e,"1.7",f);h(this.context,this,"ShowCard",0,[],0)},d.prototype.unmerge=function(){o("Range.unmerge",e,"1.2",f);h(this.context,this,"Unmerge",0,[],0)},d.prototype._KeepReference=function(){h(this.context,this,"_KeepReference",1,[],0)},d.prototype._ValidateArraySize=function(n,t){o("Range._ValidateArraySize",e,"1.3",f);h(this.context,this,"_ValidateArraySize",1,[n,t],4)},d.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.isEntireColumn)||(this.m_isEntireColumn=t.isEntireColumn);u(t.isEntireRow)||(this.m_isEntireRow=t.isEntireRow);u(t.Address)||(this._A=t.Address);u(t.AddressLocal)||(this._Ad=t.AddressLocal);u(t.CellCount)||(this._C=t.CellCount);u(t.ColumnCount)||(this._Co=t.ColumnCount);u(t.ColumnHidden)||(this._Col=t.ColumnHidden);u(t.ColumnIndex)||(this._Colu=t.ColumnIndex);u(t.Formulas)||(this.m_formulas=t.Formulas);u(t.FormulasLocal)||(this.m_formulasLocal=t.FormulasLocal);u(t.FormulasR1C1)||(this.m_formulasR1C1=t.FormulasR1C1);u(t.Hidden)||(this._H=t.Hidden);u(t.Hyperlink)||(this._Hy=t.Hyperlink);u(t.IsEntireColumn)||(this.m_isEntireColumn=t.IsEntireColumn);u(t.IsEntireRow)||(this.m_isEntireRow=t.IsEntireRow);u(t.NumberFormat)||(this.m_numberFormat=t.NumberFormat);u(t.NumberFormatLocal)||(this._N=t.NumberFormatLocal);u(t.RowCount)||(this._R=t.RowCount);u(t.RowHidden)||(this._Ro=t.RowHidden);u(t.RowIndex)||(this._Row=t.RowIndex);u(t.Style)||(this._St=t.Style);u(t.Text)||(this._T=t.Text);u(t.ValueTypes)||(this._V=t.ValueTypes);u(t.Values)||(this.m_values=t.Values);u(t._ReferenceId)||(this.__R=t._ReferenceId);g(this,t,["conditionalFormats","ConditionalFormats","format","Format","sort","Sort","worksheet","Worksheet"])}},d.prototype.load=function(n){return p(this,n)},d.prototype.retrieve=function(n){return w(this,n)},d.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n._ReferenceId)||(this.__R=n._ReferenceId)},d.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},d.prototype.track=function(){return this.context.trackedObjects.add(this),this},d.prototype.untrack=function(){return this.context.trackedObjects.remove(this),this},d.prototype.toJSON=function(){return a(this,{address:this._A,addressLocal:this._Ad,cellCount:this._C,columnCount:this._Co,columnHidden:this._Col,columnIndex:this._Colu,formulas:this.m_formulas,formulasLocal:this.m_formulasLocal,formulasR1C1:this.m_formulasR1C1,hidden:this._H,hyperlink:this._Hy,isEntireColumn:this.m_isEntireColumn,isEntireRow:this.m_isEntireRow,numberFormat:this.m_numberFormat,numberFormatLocal:this._N,rowCount:this._R,rowHidden:this._Ro,rowIndex:this._Row,style:this._St,text:this._T,values:this.m_values,valueTypes:this._V},{conditionalFormats:this._Con,format:this._F})},d.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},d}(OfficeExtension.ClientObject);n.Range=au;et="RangeView";vu=function(i){function f(){return i!==null&&i.apply(this,arguments)||this}return __extends(f,i),Object.defineProperty(f.prototype,"_className",{get:function(){return"RangeView"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat","values","text","formulas","formulasLocal","formulasR1C1","valueTypes","rowCount","columnCount","cellAddresses","index"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!0,!0,!0,!1,!1,!1,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_navigationPropertyNames",{get:function(){return["rows"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"rows",{get:function(){return this._Ro||(this._Ro=new n.RangeViewCollection(this.context,l(this.context,this,"Rows",!0,!1,4))),this._Ro},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"cellAddresses",{get:function(){return r("cellAddresses",this._C,et,this._isNull),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"columnCount",{get:function(){return r("columnCount",this._Co,et,this._isNull),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"formulas",{get:function(){return r("formulas",this._F,et,this._isNull),this._F},set:function(n){this._F=n;s(this.context,this,"Formulas",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"formulasLocal",{get:function(){return r("formulasLocal",this._Fo,et,this._isNull),this._Fo},set:function(n){this._Fo=n;s(this.context,this,"FormulasLocal",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"formulasR1C1",{get:function(){return r("formulasR1C1",this._For,et,this._isNull),this._For},set:function(n){this._For=n;s(this.context,this,"FormulasR1C1",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"index",{get:function(){return r("index",this._I,et,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"numberFormat",{get:function(){return r("numberFormat",this._N,et,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"NumberFormat",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"rowCount",{get:function(){return r("rowCount",this._R,et,this._isNull),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"text",{get:function(){return r("text",this._T,et,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueTypes",{get:function(){return r("valueTypes",this._Va,et,this._isNull),this._Va},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"values",{get:function(){return r("values",this._V,et,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Values",n,0)},enumerable:!0,configurable:!0}),f.prototype.set=function(n,t){this._recursivelySet(n,t,["numberFormat","values","formulas","formulasLocal","formulasR1C1"],[],["rows"])},f.prototype.update=function(n){this._recursivelyUpdate(n)},f.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},f.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.CellAddresses)||(this._C=t.CellAddresses);u(t.ColumnCount)||(this._Co=t.ColumnCount);u(t.Formulas)||(this._F=t.Formulas);u(t.FormulasLocal)||(this._Fo=t.FormulasLocal);u(t.FormulasR1C1)||(this._For=t.FormulasR1C1);u(t.Index)||(this._I=t.Index);u(t.NumberFormat)||(this._N=t.NumberFormat);u(t.RowCount)||(this._R=t.RowCount);u(t.Text)||(this._T=t.Text);u(t.ValueTypes)||(this._Va=t.ValueTypes);u(t.Values)||(this._V=t.Values);g(this,t,["rows","Rows"])}},f.prototype.load=function(n){return p(this,n)},f.prototype.retrieve=function(n){return w(this,n)},f.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},f.prototype.toJSON=function(){return a(this,{cellAddresses:this._C,columnCount:this._Co,formulas:this._F,formulasLocal:this._Fo,formulasR1C1:this._For,index:this._I,numberFormat:this._N,rowCount:this._R,text:this._T,values:this._V,valueTypes:this._Va},{rows:this._Ro})},f.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},f}(OfficeExtension.ClientObject);n.RangeView=vu;yu="RangeViewCollection";pu=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"RangeViewCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,yu,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.getCount=function(){o("RangeViewCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItemAt=function(i){return new n.RangeView(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.RangeView(this.context,d(!1,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.RangeView(u.context,d(!1,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.RangeViewCollection=pu;wu="SettingCollection";bu=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"SettingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,wu,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i,r){return r=nr._replaceDateWithStringDate(r),new n.Setting(this.context,t(this.context,this,"Add",0,[i,r],!1,!0,null,0))},u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.Setting(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return new n.Setting(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.Setting(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.Setting(u.context,d(!0,u.context,u,t,i))})},Object.defineProperty(u.prototype,"onSettingsChanged",{get:function(){var n=this;return this.m_settingsChanged||(this.m_settingsChanged=new OfficeExtension.EventHandlers(this.context,this,"SettingsChanged",{registerFunc:function(t){return n.context.eventRegistration.register(1,"",t)},unregisterFunc:function(t){return n.context.eventRegistration.unregister(1,"",t)},eventArgsTransformFunc:function(t){return OfficeExtension.Utility._createPromiseFromResult({settings:n})}})),this.m_settingsChanged},enumerable:!0,configurable:!0}),u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.SettingCollection=bu;gi="Setting";nr=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"Setting"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),t.replaceStringDateWithDate=function(n){var i=JSON.stringify(n);return JSON.parse(i,function(n,i){var r;return typeof i=="string"&&i&&i.length>6&&i.slice(0,5)===t.DateJSONPrefix&&i.slice(-1)===t.DateJSONSuffix&&(r=new Date(parseInt(i.slice(5,-1))),r)?r:i})},t._replaceDateWithStringDate=function(n){var i=JSON.stringify(n,function(n,i){return this[n]instanceof Date?t.DateJSONPrefix+this[n].getTime()+t.DateJSONSuffix:i});return JSON.parse(i)},Object.defineProperty(t.prototype,"key",{get:function(){return r("key",this._K,gi,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r("value",this.m_value,gi,this._isNull),this.m_value},set:function(n){if(!c(n)){this.m_value=n;var i=t._replaceDateWithStringDate(n);s(this.context,this,"Value",i);return}this.m_value=n;s(this.context,this,"Value",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["value"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},t.prototype._handleResult=function(i){if(n.prototype._handleResult.call(this,i),!c(i)){var r=i;v(this,r);u(r.Key)||(this._K=r.Key);u(r.Value)||(this.m_value=r.Value,this.m_value=t.replaceStringDateWithDate(this.m_value))}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{key:this._K,value:this.m_value},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t.DateJSONPrefix="Date(",t.DateJSONSuffix=")",t}(OfficeExtension.ClientObject);n.Setting=nr;ku="NamedItemCollection";du=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"NamedItemCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,ku,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i,r,u){return o("NamedItemCollection.add",e,"1.4",f),new n.NamedItem(this.context,t(this.context,this,"Add",0,[i,r,u],!1,!0,null,0))},u.prototype.addFormulaLocal=function(i,r,u){return o("NamedItemCollection.addFormulaLocal",e,"1.4",f),new n.NamedItem(this.context,t(this.context,this,"AddFormulaLocal",0,[i,r,u],!1,!1,null,0))},u.prototype.getCount=function(){o("NamedItemCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.NamedItem(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return o("NamedItemCollection.getItemOrNullObject",e,"1.4",f),new n.NamedItem(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.NamedItem(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.NamedItem(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.NamedItemCollection=du;ct="NamedItem";gu=function(i){function k(){return i!==null&&i.apply(this,arguments)||this}return __extends(k,i),Object.defineProperty(k.prototype,"_className",{get:function(){return"NamedItem"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyNames",{get:function(){return["name","type","value","visible","_Id","comment","scope","formula"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!1,!0,!1,!0,!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_navigationPropertyNames",{get:function(){return["worksheet","worksheetOrNullObject","arrayValues"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"arrayValues",{get:function(){return o("NamedItem.arrayValues",e,"1.7",f),this._A||(this._A=new n.NamedItemArrayValues(this.context,l(this.context,this,"ArrayValues",!1,!1,4))),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"worksheet",{get:function(){return o("NamedItem.worksheet",e,"1.4",f),this._W||(this._W=new n.Worksheet(this.context,l(this.context,this,"Worksheet",!1,!1,4))),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"worksheetOrNullObject",{get:function(){return o("NamedItem.worksheetOrNullObject",e,"1.4",f),this._Wo||(this._Wo=new n.Worksheet(this.context,l(this.context,this,"WorksheetOrNullObject",!1,!1,4))),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"comment",{get:function(){return r("comment",this._C,ct,this._isNull),o("NamedItem.comment",e,"1.4",f),this._C},set:function(n){this._C=n;s(this.context,this,"Comment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"formula",{get:function(){return r("formula",this._F,ct,this._isNull),o("NamedItem.formula",e,"1.7",f),this._F},set:function(n){this._F=n;s(this.context,this,"Formula",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"name",{get:function(){return r("name",this._N,ct,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"scope",{get:function(){return r("scope",this._S,ct,this._isNull),o("NamedItem.scope",e,"1.4",f),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"type",{get:function(){return r("type",this._T,ct,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"value",{get:function(){return r("value",this._V,ct,this._isNull),this._V},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"visible",{get:function(){return r("visible",this._Vi,ct,this._isNull),this._Vi},set:function(n){this._Vi=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_Id",{get:function(){return r("_Id",this.__I,ct,this._isNull),this.__I},enumerable:!0,configurable:!0}),k.prototype.set=function(n,t){this._recursivelySet(n,t,["visible","comment","formula"],[],["arrayValues","worksheet","worksheetOrNullObject"])},k.prototype.update=function(n){this._recursivelyUpdate(n)},k.prototype.delete=function(){o("NamedItem.delete",e,"1.4",f);h(this.context,this,"Delete",0,[],0)},k.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},k.prototype.getRangeOrNullObject=function(){return o("NamedItem.getRangeOrNullObject",e,"1.4",f),new n.Range(this.context,t(this.context,this,"GetRangeOrNullObject",1,[],!1,!0,null,4))},k.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Comment)||(this._C=t.Comment);u(t.Formula)||(this._F=t.Formula);u(t.Name)||(this._N=t.Name);u(t.Scope)||(this._S=t.Scope);u(t.Type)||(this._T=t.Type);u(t.Value)||(this._V=t.Value);u(t.Visible)||(this._Vi=t.Visible);u(t._Id)||(this.__I=t._Id);g(this,t,["arrayValues","ArrayValues","worksheet","Worksheet","worksheetOrNullObject","WorksheetOrNullObject"])}},k.prototype.load=function(n){return p(this,n)},k.prototype.retrieve=function(n){return w(this,n)},k.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n._Id)||(this.__I=n._Id)},k.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},k.prototype.toJSON=function(){return a(this,{comment:this._C,formula:this._F,name:this._N,scope:this._S,type:this._T,value:this._V,visible:this._Vi},{arrayValues:this._A})},k.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},k}(OfficeExtension.ClientObject);n.NamedItem=gu;tr="NamedItemArrayValues";nf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"NamedItemArrayValues"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["values","types"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"types",{get:function(){return r("types",this._T,tr,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return r("values",this._V,tr,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Types)||(this._T=i.Types);u(i.Values)||(this._V=i.Values)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{types:this._T,values:this._V},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.NamedItemArrayValues=nf;ir="Binding";tf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"Binding"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["id","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"id",{get:function(){return r("id",this._I,ir,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"type",{get:function(){return r("type",this._T,ir,this._isNull),this._T},enumerable:!0,configurable:!0}),s.prototype.delete=function(){o("Binding.delete",e,"1.3",f);h(this.context,this,"Delete",0,[],0)},s.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!1,null,4))},s.prototype.getTable=function(){return new n.Table(this.context,t(this.context,this,"GetTable",1,[],!1,!1,null,4))},s.prototype.getText=function(){var t=h(this.context,this,"GetText",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Id)||(this._I=t.Id);u(t.Type)||(this._T=t.Type)}},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._I=n.Id)},s.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},Object.defineProperty(s.prototype,"onDataChanged",{get:function(){var n=this;return o("Binding.onDataChanged",e,"1.3",f),this.m_dataChanged||(this.m_dataChanged=new OfficeExtension.EventHandlers(this.context,this,"DataChanged",{registerFunc:function(t){return n.context.eventRegistration.register(4,n.id,t)},unregisterFunc:function(t){return n.context.eventRegistration.unregister(4,n.id,t)},eventArgsTransformFunc:function(t){var i={binding:n};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_dataChanged},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"onSelectionChanged",{get:function(){var n=this;return o("Binding.onSelectionChanged",e,"1.3",f),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.EventHandlers(this.context,this,"SelectionChanged",{registerFunc:function(t){return n.context.eventRegistration.register(3,n.id,t)},unregisterFunc:function(t){return n.context.eventRegistration.unregister(3,n.id,t)},eventArgsTransformFunc:function(t){var i={binding:n,columnCount:t.columnCount,rowCount:t.rowCount,startColumn:t.startColumn,startRow:t.startRow};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),s.prototype.toJSON=function(){return a(this,{id:this._I,type:this._T},{})},s.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},s}(OfficeExtension.ClientObject);n.Binding=tf;rr="BindingCollection";rf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"BindingCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,rr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,rr,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.add=function(i,r,u){return o("BindingCollection.add",e,"1.3",f),new n.Binding(this.context,t(this.context,this,"Add",0,[i,r,u],!1,!0,null,0))},s.prototype.addFromNamedItem=function(i,r,u){return o("BindingCollection.addFromNamedItem",e,"1.3",f),new n.Binding(this.context,t(this.context,this,"AddFromNamedItem",0,[i,r,u],!1,!1,null,0))},s.prototype.addFromSelection=function(i,r){return o("BindingCollection.addFromSelection",e,"1.3",f),new n.Binding(this.context,t(this.context,this,"AddFromSelection",0,[i,r],!1,!1,null,0))},s.prototype.getCount=function(){o("BindingCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItem=function(t){return new n.Binding(this.context,rt(this.context,this,[t]))},s.prototype.getItemAt=function(i){return new n.Binding(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype.getItemOrNullObject=function(i){return o("BindingCollection.getItemOrNullObject",e,"1.4",f),new n.Binding(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.Binding(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.Binding(u.context,d(!0,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.BindingCollection=rf;ur="TableCollection";uf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"TableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(n){this.m__ParentObject=n},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,ur,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,ur,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.add=function(i,r){return new n.Table(this.context,t(this.context,this,"Add",0,[i,r],!1,!0,null,0))},s.prototype.getCount=function(){o("TableCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItem=function(t){return new n.Table(this.context,rt(this.context,this,[t]))},s.prototype.getItemAt=function(i){return new n.Table(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype.getItemOrNullObject=function(i){return o("TableCollection.getItemOrNullObject",e,"1.4",f),new n.Table(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},s.prototype._RegisterDataChangedEvent=function(){o("TableCollection._RegisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_RegisterDataChangedEvent",0,[],0)},s.prototype._UnregisterDataChangedEvent=function(){o("TableCollection._UnregisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDataChangedEvent",0,[],0)},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.Table(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.Table(u.context,d(!0,u.context,u,t,i))})},Object.defineProperty(s.prototype,"onChanged",{get:function(){var n=this;return o("TableCollection.onChanged",e,"1.7",f),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return n._RegisterDataChangedEvent()},unregisterFunc:function(){return n._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return n._ParentObject?n._ParentObject.id:OfficeExtension.Constants.eventWorkbookId},eventArgsTransformFunc:function(n){var t={type:st.tableChanged,changeType:n.changeType,source:n.source,worksheetId:n.worksheetId,tableId:n.tableId,address:n.address,getRange:function(t){return o("TableChangedEventArgs.getRange",e,"1.8",f),t.workbook._GetRangeForEventByReferenceId(n.referenceId)},getRangeOrNullObject:function(t){return o("TableChangedEventArgs.getRangeOrNullObject",e,"1.8",f),t.workbook._GetRangeOrNullObjectForEventByReferenceId(n.referenceId)}};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_changed},enumerable:!0,configurable:!0}),s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.TableCollection=uf;ht="Table";ff=function(i){function k(){return i!==null&&i.apply(this,arguments)||this}return __extends(k,i),Object.defineProperty(k.prototype,"_className",{get:function(){return"Table"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_collectionPropertyPath",{get:function(){return"workbook.tables"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyNames",{get:function(){return["id","name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_navigationPropertyNames",{get:function(){return["columns","rows","sort","worksheet"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"columns",{get:function(){return this._C||(this._C=new n.TableColumnCollection(this.context,l(this.context,this,"Columns",!0,!1,4))),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"rows",{get:function(){return this._R||(this._R=new n.TableRowCollection(this.context,l(this.context,this,"Rows",!0,!1,4))),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"sort",{get:function(){return o("Table.sort",e,"1.2",f),this._So||(this._So=new n.TableSort(this.context,l(this.context,this,"Sort",!1,!1,4))),this._So},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"worksheet",{get:function(){return o("Table.worksheet",e,"1.2",f),this._W||(this._W=new n.Worksheet(this.context,l(this.context,this,"Worksheet",!1,!1,4))),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"highlightFirstColumn",{get:function(){return r("highlightFirstColumn",this._H,ht,this._isNull),o("Table.highlightFirstColumn",e,"1.3",f),this._H},set:function(n){this._H=n;s(this.context,this,"HighlightFirstColumn",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"highlightLastColumn",{get:function(){return r("highlightLastColumn",this._Hi,ht,this._isNull),o("Table.highlightLastColumn",e,"1.3",f),this._Hi},set:function(n){this._Hi=n;s(this.context,this,"HighlightLastColumn",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"id",{get:function(){return r("id",this._I,ht,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"name",{get:function(){return r("name",this._N,ht,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"showBandedColumns",{get:function(){return r("showBandedColumns",this._S,ht,this._isNull),o("Table.showBandedColumns",e,"1.3",f),this._S},set:function(n){this._S=n;s(this.context,this,"ShowBandedColumns",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"showBandedRows",{get:function(){return r("showBandedRows",this._Sh,ht,this._isNull),o("Table.showBandedRows",e,"1.3",f),this._Sh},set:function(n){this._Sh=n;s(this.context,this,"ShowBandedRows",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"showFilterButton",{get:function(){return r("showFilterButton",this._Sho,ht,this._isNull),o("Table.showFilterButton",e,"1.3",f),this._Sho},set:function(n){this._Sho=n;s(this.context,this,"ShowFilterButton",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"showHeaders",{get:function(){return r("showHeaders",this._Show,ht,this._isNull),this._Show},set:function(n){this._Show=n;s(this.context,this,"ShowHeaders",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"showTotals",{get:function(){return r("showTotals",this._ShowT,ht,this._isNull),this._ShowT},set:function(n){this._ShowT=n;s(this.context,this,"ShowTotals",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"style",{get:function(){return r("style",this._St,ht,this._isNull),this._St},set:function(n){this._St=n;s(this.context,this,"Style",n,0)},enumerable:!0,configurable:!0}),k.prototype.set=function(n,t){this._recursivelySet(n,t,["name","showHeaders","showTotals","style","highlightFirstColumn","highlightLastColumn","showBandedRows","showBandedColumns","showFilterButton"],[],["columns","rows","sort","worksheet"])},k.prototype.update=function(n){this._recursivelyUpdate(n)},k.prototype.clearFilters=function(){o("Table.clearFilters",e,"1.2",f);h(this.context,this,"ClearFilters",0,[],0)},k.prototype.convertToRange=function(){return o("Table.convertToRange",e,"1.2",f),new n.Range(this.context,t(this.context,this,"ConvertToRange",0,[],!1,!0,null,0))},k.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},k.prototype.getDataBodyRange=function(){return new n.Range(this.context,t(this.context,this,"GetDataBodyRange",1,[],!1,!0,null,4))},k.prototype.getHeaderRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetHeaderRowRange",1,[],!1,!0,null,4))},k.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},k.prototype.getTotalRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetTotalRowRange",1,[],!1,!0,null,4))},k.prototype.reapplyFilters=function(){o("Table.reapplyFilters",e,"1.2",f);h(this.context,this,"ReapplyFilters",0,[],0)},k.prototype._RegisterDataChangedEvent=function(){o("Table._RegisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_RegisterDataChangedEvent",0,[],0)},k.prototype._RegisterSelectionChangedEvent=function(){o("Table._RegisterSelectionChangedEvent",e,"1.7",f);h(this.context,this,"_RegisterSelectionChangedEvent",0,[],0)},k.prototype._UnregisterDataChangedEvent=function(){o("Table._UnregisterDataChangedEvent",e,"1.7",f);h(this.context,this,"_UnregisterDataChangedEvent",0,[],0)},k.prototype._UnregisterSelectionChangedEvent=function(){o("Table._UnregisterSelectionChangedEvent",e,"1.7",f);h(this.context,this,"_UnregisterSelectionChangedEvent",0,[],0)},k.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Id)||(t.Id=t.Id.toString());u(t.HighlightFirstColumn)||(this._H=t.HighlightFirstColumn);u(t.HighlightLastColumn)||(this._Hi=t.HighlightLastColumn);u(t.Id)||(this._I=t.Id);u(t.Name)||(this._N=t.Name);u(t.ShowBandedColumns)||(this._S=t.ShowBandedColumns);u(t.ShowBandedRows)||(this._Sh=t.ShowBandedRows);u(t.ShowFilterButton)||(this._Sho=t.ShowFilterButton);u(t.ShowHeaders)||(this._Show=t.ShowHeaders);u(t.ShowTotals)||(this._ShowT=t.ShowTotals);u(t.Style)||(this._St=t.Style);g(this,t,["columns","Columns","rows","Rows","sort","Sort","worksheet","Worksheet"])}},k.prototype.load=function(n){return p(this,n)},k.prototype.retrieve=function(n){return w(this,n)},k.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(n.Id=n.Id.toString(),this._I=n.Id)},k.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},Object.defineProperty(k.prototype,"onChanged",{get:function(){var n=this;return o("Table.onChanged",e,"1.7",f),this.m_changed||(this.m_changed=new OfficeExtension.GenericEventHandlers(this.context,this,"Changed",{eventType:101,registerFunc:function(){return n._RegisterDataChangedEvent()},unregisterFunc:function(){return n._UnregisterDataChangedEvent()},getTargetIdFunc:function(){return n.id.toString()},eventArgsTransformFunc:function(n){var t={type:st.tableChanged,changeType:n.changeType,source:n.source,worksheetId:n.worksheetId,tableId:n.tableId,address:n.address,getRange:function(t){return o("TableChangedEventArgs.getRange",e,"1.8",f),t.workbook._GetRangeForEventByReferenceId(n.referenceId)},getRangeOrNullObject:function(t){return o("TableChangedEventArgs.getRangeOrNullObject",e,"1.8",f),t.workbook._GetRangeOrNullObjectForEventByReferenceId(n.referenceId)}};return OfficeExtension.Utility._createPromiseFromResult(t)}})),this.m_changed},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"onSelectionChanged",{get:function(){var n=this;return o("Table.onSelectionChanged",e,"1.7",f),this.m_selectionChanged||(this.m_selectionChanged=new OfficeExtension.GenericEventHandlers(this.context,this,"SelectionChanged",{eventType:100,registerFunc:function(){n._RegisterSelectionChangedEvent()},unregisterFunc:function(){n._UnregisterSelectionChangedEvent()},getTargetIdFunc:function(){return n.id},eventArgsTransformFunc:function(t){var i=!t.address||t.address.length===0,r={type:st.tableSelectionChanged,isInsideTable:!i,worksheetId:t.worksheetId,tableId:n.id,address:t.address};return OfficeExtension.Utility._createPromiseFromResult(r)}})),this.m_selectionChanged},enumerable:!0,configurable:!0}),k.prototype.toJSON=function(){return a(this,{highlightFirstColumn:this._H,highlightLastColumn:this._Hi,id:this._I,name:this._N,showBandedColumns:this._S,showBandedRows:this._Sh,showFilterButton:this._Sho,showHeaders:this._Show,showTotals:this._ShowT,style:this._St},{columns:this._C,rows:this._R,sort:this._So})},k.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},k}(OfficeExtension.ClientObject);n.Table=ff;fr="TableColumnCollection";ef=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"TableColumnCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,fr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,fr,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.add=function(i,r,u){return new n.TableColumn(this.context,t(this.context,this,"Add",0,[i,r,u],!1,!0,null,0))},s.prototype.getCount=function(){o("TableColumnCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItem=function(t){return new n.TableColumn(this.context,rt(this.context,this,[t]))},s.prototype.getItemAt=function(i){return new n.TableColumn(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype.getItemOrNullObject=function(i){return o("TableColumnCollection.getItemOrNullObject",e,"1.4",f),new n.TableColumn(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.TableColumn(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.TableColumn(u.context,d(!0,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.TableColumnCollection=ef;fi="TableColumn";of=function(i){function k(){return i!==null&&i.apply(this,arguments)||this}return __extends(k,i),Object.defineProperty(k.prototype,"_className",{get:function(){return"TableColumn"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyNames",{get:function(){return["id","index","values","name"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_navigationPropertyNames",{get:function(){return["filter"]},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"filter",{get:function(){return o("TableColumn.filter",e,"1.2",f),this._F||(this._F=new n.Filter(this.context,l(this.context,this,"Filter",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"id",{get:function(){return r("id",this._I,fi,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"index",{get:function(){return r("index",this._In,fi,this._isNull),this._In},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"name",{get:function(){return r("name",this._N,fi,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"values",{get:function(){return r("values",this._V,fi,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Values",n,0)},enumerable:!0,configurable:!0}),k.prototype.set=function(n,t){this._recursivelySet(n,t,["values","name"],[],["filter"])},k.prototype.update=function(n){this._recursivelyUpdate(n)},k.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},k.prototype.getDataBodyRange=function(){return new n.Range(this.context,t(this.context,this,"GetDataBodyRange",1,[],!1,!0,null,4))},k.prototype.getHeaderRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetHeaderRowRange",1,[],!1,!0,null,4))},k.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},k.prototype.getTotalRowRange=function(){return new n.Range(this.context,t(this.context,this,"GetTotalRowRange",1,[],!1,!0,null,4))},k.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Id)||(this._I=t.Id);u(t.Index)||(this._In=t.Index);u(t.Name)||(this._N=t.Name);u(t.Values)||(this._V=t.Values);g(this,t,["filter","Filter"])}},k.prototype.load=function(n){return p(this,n)},k.prototype.retrieve=function(n){return w(this,n)},k.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._I=n.Id)},k.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},k.prototype.toJSON=function(){return a(this,{id:this._I,index:this._In,name:this._N,values:this._V},{filter:this._F})},k.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},k}(OfficeExtension.ClientObject);n.TableColumn=of;er="TableRowCollection";sf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"TableRowCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,er,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,er,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.add=function(i,r){return new n.TableRow(this.context,t(this.context,this,"Add",0,[i,r],!1,!0,null,0))},s.prototype.getCount=function(){o("TableRowCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItemAt=function(i){return new n.TableRow(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.TableRow(this.context,d(!1,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.TableRow(u.context,d(!1,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.TableRowCollection=sf;or="TableRow";hf=function(i){function f(){return i!==null&&i.apply(this,arguments)||this}return __extends(f,i),Object.defineProperty(f.prototype,"_className",{get:function(){return"TableRow"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyNames",{get:function(){return["index","values"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"index",{get:function(){return r("index",this._I,or,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"values",{get:function(){return r("values",this._V,or,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Values",n,0)},enumerable:!0,configurable:!0}),f.prototype.set=function(n,t){this._recursivelySet(n,t,["values"],[],[])},f.prototype.update=function(n){this._recursivelyUpdate(n)},f.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},f.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},f.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Index)||(this._I=t.Index);u(t.Values)||(this._V=t.Values)}},f.prototype.load=function(n){return p(this,n)},f.prototype.retrieve=function(n){return w(this,n)},f.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},f.prototype.toJSON=function(){return a(this,{index:this._I,values:this._V},{})},f.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},f}(OfficeExtension.ClientObject);n.TableRow=hf;lt="RangeFormat";cf=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"RangeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","borders","protection"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"borders",{get:function(){return this._B||(this._B=new n.RangeBorderCollection(this.context,l(this.context,this,"Borders",!0,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.RangeFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.RangeFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protection",{get:function(){return o("RangeFormat.protection",e,"1.2",f),this._P||(this._P=new n.FormatProtection(this.context,l(this.context,this,"Protection",!1,!1,4))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"columnWidth",{get:function(){return r("columnWidth",this._C,lt,this._isNull),o("RangeFormat.columnWidth",e,"1.2",f),this._C},set:function(n){this._C=n;s(this.context,this,"ColumnWidth",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalAlignment",{get:function(){return r("horizontalAlignment",this._H,lt,this._isNull),this._H},set:function(n){this._H=n;s(this.context,this,"HorizontalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rowHeight",{get:function(){return r("rowHeight",this._R,lt,this._isNull),o("RangeFormat.rowHeight",e,"1.2",f),this._R},set:function(n){this._R=n;s(this.context,this,"RowHeight",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textOrientation",{get:function(){return r("textOrientation",this._T,lt,this._isNull),o("RangeFormat.textOrientation",e,"1.7",f),this._T},set:function(n){this._T=n;s(this.context,this,"TextOrientation",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useStandardHeight",{get:function(){return r("useStandardHeight",this._U,lt,this._isNull),o("RangeFormat.useStandardHeight",e,"1.7",f),this._U},set:function(n){this._U=n;s(this.context,this,"UseStandardHeight",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useStandardWidth",{get:function(){return r("useStandardWidth",this._Us,lt,this._isNull),o("RangeFormat.useStandardWidth",e,"1.7",f),this._Us},set:function(n){this._Us=n;s(this.context,this,"UseStandardWidth",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlignment",{get:function(){return r("verticalAlignment",this._V,lt,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"VerticalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrapText",{get:function(){return r("wrapText",this._W,lt,this._isNull),this._W},set:function(n){this._W=n;s(this.context,this,"WrapText",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["wrapText","horizontalAlignment","verticalAlignment","columnWidth","rowHeight","textOrientation","useStandardHeight","useStandardWidth"],["fill","font","protection"],["borders"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.autofitColumns=function(){o("RangeFormat.autofitColumns",e,"1.2",f);h(this.context,this,"AutofitColumns",0,[],0)},i.prototype.autofitRows=function(){o("RangeFormat.autofitRows",e,"1.2",f);h(this.context,this,"AutofitRows",0,[],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.ColumnWidth)||(this._C=i.ColumnWidth);u(i.HorizontalAlignment)||(this._H=i.HorizontalAlignment);u(i.RowHeight)||(this._R=i.RowHeight);u(i.TextOrientation)||(this._T=i.TextOrientation);u(i.UseStandardHeight)||(this._U=i.UseStandardHeight);u(i.UseStandardWidth)||(this._Us=i.UseStandardWidth);u(i.VerticalAlignment)||(this._V=i.VerticalAlignment);u(i.WrapText)||(this._W=i.WrapText);g(this,i,["borders","Borders","fill","Fill","font","Font","protection","Protection"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{columnWidth:this._C,horizontalAlignment:this._H,rowHeight:this._R,textOrientation:this._T,useStandardHeight:this._U,useStandardWidth:this._Us,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo,protection:this._P})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.RangeFormat=cf;sr="FormatProtection";lf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"FormatProtection"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["locked","formulaHidden"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaHidden",{get:function(){return r("formulaHidden",this._F,sr,this._isNull),this._F},set:function(n){this._F=n;s(this.context,this,"FormulaHidden",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locked",{get:function(){return r("locked",this._L,sr,this._isNull),this._L},set:function(n){this._L=n;s(this.context,this,"Locked",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["locked","formulaHidden"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.FormulaHidden)||(this._F=i.FormulaHidden);u(i.Locked)||(this._L=i.Locked)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{formulaHidden:this._F,locked:this._L},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.FormatProtection=lf;af="RangeFill";vf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,af,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["color"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.RangeFill=vf;ei="RangeBorder";yf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["sideIndex","style","weight","color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,ei,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sideIndex",{get:function(){return r("sideIndex",this._S,ei,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return r("style",this._St,ei,this._isNull),this._St},set:function(n){this._St=n;s(this.context,this,"Style",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return r("weight",this._W,ei,this._isNull),this._W},set:function(n){this._W=n;s(this.context,this,"Weight",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["style","weight","color"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color);u(i.SideIndex)||(this._S=i.SideIndex);u(i.Style)||(this._St=i.Style);u(i.Weight)||(this._W=i.Weight)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C,sideIndex:this._S,style:this._St,weight:this._W},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.RangeBorder=yf;hr="RangeBorderCollection";pf=function(i){function f(){return i!==null&&i.apply(this,arguments)||this}return __extends(f,i),Object.defineProperty(f.prototype,"_className",{get:function(){return"RangeBorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,hr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this._C,hr,this._isNull),this._C},enumerable:!0,configurable:!0}),f.prototype.getItem=function(t){return new n.RangeBorder(this.context,rt(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.RangeBorder(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},f.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.RangeBorder(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},f.prototype.load=function(n){return p(this,n)},f.prototype.retrieve=function(n){return w(this,n)},f.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.RangeBorder(u.context,d(!0,u.context,u,t,i))})},f.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},f}(OfficeExtension.ClientObject);n.RangeBorderCollection=pf;pt="RangeFont";wf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["name","size","color","italic","bold","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return r("bold",this._B,pt,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"Bold",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,pt,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return r("italic",this._I,pt,this._isNull),this._I},set:function(n){this._I=n;s(this.context,this,"Italic",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return r("name",this._N,pt,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return r("size",this._S,pt,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Size",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return r("underline",this._U,pt,this._isNull),this._U},set:function(n){this._U=n;s(this.context,this,"Underline",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["name","size","color","italic","bold","underline"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Bold)||(this._B=i.Bold);u(i.Color)||(this._C=i.Color);u(i.Italic)||(this._I=i.Italic);u(i.Name)||(this._N=i.Name);u(i.Size)||(this._S=i.Size);u(i.Underline)||(this._U=i.Underline)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.RangeFont=wf;cr="ChartCollection";bf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"ChartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_ParentObject",{get:function(){return this.m__ParentObject},set:function(n){this.m__ParentObject=n},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,cr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,cr,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.add=function(i,r,u){return new n.Chart(this.context,t(this.context,this,"Add",0,[i,r,u],!1,!0,null,0))},s.prototype.getCount=function(){o("ChartCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItem=function(i){return new n.Chart(this.context,t(this.context,this,"GetItem",1,[i],!1,!1,null,4))},s.prototype.getItemAt=function(i){return new n.Chart(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype.getItemOrNullObject=function(i){return o("ChartCollection.getItemOrNullObject",e,"1.4",f),new n.Chart(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},s.prototype._GetItem=function(t){return new n.Chart(this.context,rt(this.context,this,[t]))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.Chart(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.Chart(u.context,d(!0,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.ChartCollection=bf;wt="Chart";kf=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["name","top","left","width","height","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["title","dataLabels","legend","series","axes","format","worksheet"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axes",{get:function(){return this._A||(this._A=new n.ChartAxes(this.context,l(this.context,this,"Axes",!1,!1,4))),this._A},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataLabels",{get:function(){return this._D||(this._D=new n.ChartDataLabels(this.context,l(this.context,this,"DataLabels",!1,!1,4))),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartAreaFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"legend",{get:function(){return this._Le||(this._Le=new n.ChartLegend(this.context,l(this.context,this,"Legend",!1,!1,4))),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._S||(this._S=new n.ChartSeriesCollection(this.context,l(this.context,this,"Series",!0,!1,4))),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._T||(this._T=new n.ChartTitle(this.context,l(this.context,this,"Title",!1,!1,4))),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"worksheet",{get:function(){return o("Chart.worksheet",e,"1.2",f),this._Wo||(this._Wo=new n.Worksheet(this.context,l(this.context,this,"Worksheet",!1,!1,4))),this._Wo},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return r("height",this._H,wt,this._isNull),this._H},set:function(n){this._H=n;s(this.context,this,"Height",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return r("id",this._I,wt,this._isNull),o("Chart.id",e,"1.7",f),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return r("left",this._L,wt,this._isNull),this._L},set:function(n){this._L=n;s(this.context,this,"Left",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this._N,wt,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return r("top",this._To,wt,this._isNull),this._To},set:function(n){this._To=n;s(this.context,this,"Top",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return r("width",this._W,wt,this._isNull),this._W},set:function(n){this._W=n;s(this.context,this,"Width",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["name","top","left","width","height"],["title","dataLabels","legend","axes","format"],["series","worksheet"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},i.prototype.getImage=function(n,t,i){o("Chart.getImage",e,"1.2",f);var u=h(this.context,this,"GetImage",1,[n,t,i],4),r=new OfficeExtension.ClientResult;return k(this,u,r),r},i.prototype.setData=function(n,t){h(this.context,this,"SetData",0,[n,t],0)},i.prototype.setPosition=function(n,t){h(this.context,this,"SetPosition",0,[n,t],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Height)||(this._H=i.Height);u(i.Id)||(this._I=i.Id);u(i.Left)||(this._L=i.Left);u(i.Name)||(this._N=i.Name);u(i.Top)||(this._To=i.Top);u(i.Width)||(this._W=i.Width);g(this,i,["axes","Axes","dataLabels","DataLabels","format","Format","legend","Legend","series","Series","title","Title","worksheet","Worksheet"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleIdResult=function(n){(t.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._I=n.Id)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{height:this._H,id:this._I,left:this._L,name:this._N,top:this._To,width:this._W},{axes:this._A,dataLabels:this._D,format:this._F,legend:this._Le,series:this._S,title:this._T})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.Chart=kf;oc="ChartAreaFormat";df=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAreaFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"border",{get:function(){return o("ChartAreaFormat.border",e,"1.7",f),this._B||(this._B=new n.ChartBorder(this.context,l(this.context,this,"Border",!1,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font","border"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["border","Border","fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{border:this._B,font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAreaFormat=df;lr="ChartSeriesCollection";gf=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"ChartSeriesCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,lr,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,lr,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.getCount=function(){o("ChartSeriesCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItemAt=function(i){return new n.ChartSeries(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.ChartSeries(this.context,d(!1,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.ChartSeries(u.context,d(!1,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.ChartSeriesCollection=gf;ut="ChartSeries";ne=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartSeries"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["name","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["points","format","trendlines"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._Fo||(this._Fo=new n.ChartSeriesFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"points",{get:function(){return this._Po||(this._Po=new n.ChartPointsCollection(this.context,l(this.context,this,"Points",!0,!1,4))),this._Po},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trendlines",{get:function(){return o("ChartSeries.trendlines",e,"1.7",f),this._T||(this._T=new n.ChartTrendlineCollection(this.context,l(this.context,this,"Trendlines",!0,!1,4))),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"doughnutHoleSize",{get:function(){return r("doughnutHoleSize",this._D,ut,this._isNull),o("ChartSeries.doughnutHoleSize",e,"1.7",f),this._D},set:function(n){this._D=n;s(this.context,this,"DoughnutHoleSize",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filtered",{get:function(){return r("filtered",this._F,ut,this._isNull),o("ChartSeries.filtered",e,"1.7",f),this._F},set:function(n){this._F=n;s(this.context,this,"Filtered",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gapWidth",{get:function(){return r("gapWidth",this._G,ut,this._isNull),o("ChartSeries.gapWidth",e,"1.7",f),this._G},set:function(n){this._G=n;s(this.context,this,"GapWidth",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasDataLabels",{get:function(){return r("hasDataLabels",this._H,ut,this._isNull),o("ChartSeries.hasDataLabels",e,"1.7",f),this._H},set:function(n){this._H=n;s(this.context,this,"HasDataLabels",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerBackgroundColor",{get:function(){return r("markerBackgroundColor",this._M,ut,this._isNull),o("ChartSeries.markerBackgroundColor",e,"1.7",f),this._M},set:function(n){this._M=n;s(this.context,this,"MarkerBackgroundColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerForegroundColor",{get:function(){return r("markerForegroundColor",this._Ma,ut,this._isNull),o("ChartSeries.markerForegroundColor",e,"1.7",f),this._Ma},set:function(n){this._Ma=n;s(this.context,this,"MarkerForegroundColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerSize",{get:function(){return r("markerSize",this._Mar,ut,this._isNull),o("ChartSeries.markerSize",e,"1.7",f),this._Mar},set:function(n){this._Mar=n;s(this.context,this,"MarkerSize",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerStyle",{get:function(){return r("markerStyle",this._Mark,ut,this._isNull),o("ChartSeries.markerStyle",e,"1.7",f),this._Mark},set:function(n){this._Mark=n;s(this.context,this,"MarkerStyle",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this._N,ut,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"plotOrder",{get:function(){return r("plotOrder",this._P,ut,this._isNull),o("ChartSeries.plotOrder",e,"1.7",f),this._P},set:function(n){this._P=n;s(this.context,this,"PlotOrder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showShadow",{get:function(){return r("showShadow",this._S,ut,this._isNull),o("ChartSeries.showShadow",e,"1.7",f),this._S},set:function(n){this._S=n;s(this.context,this,"ShowShadow",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smooth",{get:function(){return r("smooth",this._Sm,ut,this._isNull),o("ChartSeries.smooth",e,"1.7",f),this._Sm},set:function(n){this._Sm=n;s(this.context,this,"Smooth",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["name","hasDataLabels","filtered","markerSize","markerStyle","showShadow","markerBackgroundColor","markerForegroundColor","smooth","plotOrder","gapWidth","doughnutHoleSize"],["format"],["points","trendlines"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.delete=function(){o("ChartSeries.delete",e,"1.7",f);h(this.context,this,"Delete",0,[],0)},i.prototype.setBubbleSizes=function(n){o("ChartSeries.setBubbleSizes",e,"1.7",f);h(this.context,this,"SetBubbleSizes",0,[n],0)},i.prototype.setValues=function(n){o("ChartSeries.setValues",e,"1.7",f);h(this.context,this,"SetValues",0,[n],0)},i.prototype.setXAxisValues=function(n){o("ChartSeries.setXAxisValues",e,"1.7",f);h(this.context,this,"SetXAxisValues",0,[n],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.DoughnutHoleSize)||(this._D=i.DoughnutHoleSize);u(i.Filtered)||(this._F=i.Filtered);u(i.GapWidth)||(this._G=i.GapWidth);u(i.HasDataLabels)||(this._H=i.HasDataLabels);u(i.MarkerBackgroundColor)||(this._M=i.MarkerBackgroundColor);u(i.MarkerForegroundColor)||(this._Ma=i.MarkerForegroundColor);u(i.MarkerSize)||(this._Mar=i.MarkerSize);u(i.MarkerStyle)||(this._Mark=i.MarkerStyle);u(i.Name)||(this._N=i.Name);u(i.PlotOrder)||(this._P=i.PlotOrder);u(i.ShowShadow)||(this._S=i.ShowShadow);u(i.Smooth)||(this._Sm=i.Smooth);g(this,i,["format","Format","points","Points","trendlines","Trendlines"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{doughnutHoleSize:this._D,filtered:this._F,gapWidth:this._G,hasDataLabels:this._H,markerBackgroundColor:this._M,markerForegroundColor:this._Ma,markerSize:this._Mar,markerStyle:this._Mark,name:this._N,plotOrder:this._P,showShadow:this._S,smooth:this._Sm},{format:this._Fo,points:this._Po,trendlines:this._T})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartSeries=ne;sc="ChartSeriesFormat";te=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartSeriesFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["fill","line"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this._L||(this._L=new n.ChartLineFormat(this.context,l(this.context,this,"Line",!1,!1,4))),this._L},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["line"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["fill","Fill","line","Line"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{line:this._L})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartSeriesFormat=te;ar="ChartPointsCollection";ie=function(i){function s(){return i!==null&&i.apply(this,arguments)||this}return __extends(s,i),Object.defineProperty(s.prototype,"_className",{get:function(){return"ChartPointsCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return r("items",this.m__items,ar,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"count",{get:function(){return r("count",this._C,ar,this._isNull),this._C},enumerable:!0,configurable:!0}),s.prototype.getCount=function(){o("ChartPointsCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},s.prototype.getItemAt=function(i){return new n.ChartPoint(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},s.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.ChartPoint(this.context,d(!1,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},s.prototype.load=function(n){return p(this,n)},s.prototype.retrieve=function(n){return w(this,n)},s.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.ChartPoint(u.context,d(!1,u.context,u,t,i))})},s.prototype.toJSON=function(){return a(this,{count:this._C},{},this.m__items)},s}(OfficeExtension.ClientObject);n.ChartPointsCollection=ie;bt="ChartPoint";re=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartPoint"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["value","hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format","dataLabel"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataLabel",{get:function(){return o("ChartPoint.dataLabel",e,"1.7",f),this._D||(this._D=new n.ChartDataLabel(this.context,l(this.context,this,"DataLabel",!1,!1,4))),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartPointFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasDataLabel",{get:function(){return r("hasDataLabel",this._H,bt,this._isNull),o("ChartPoint.hasDataLabel",e,"1.7",f),this._H},set:function(n){this._H=n;s(this.context,this,"HasDataLabel",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerBackgroundColor",{get:function(){return r("markerBackgroundColor",this._M,bt,this._isNull),o("ChartPoint.markerBackgroundColor",e,"1.7",f),this._M},set:function(n){this._M=n;s(this.context,this,"MarkerBackgroundColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerForegroundColor",{get:function(){return r("markerForegroundColor",this._Ma,bt,this._isNull),o("ChartPoint.markerForegroundColor",e,"1.7",f),this._Ma},set:function(n){this._Ma=n;s(this.context,this,"MarkerForegroundColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerSize",{get:function(){return r("markerSize",this._Mar,bt,this._isNull),o("ChartPoint.markerSize",e,"1.7",f),this._Mar},set:function(n){this._Mar=n;s(this.context,this,"MarkerSize",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerStyle",{get:function(){return r("markerStyle",this._Mark,bt,this._isNull),o("ChartPoint.markerStyle",e,"1.7",f),this._Mark},set:function(n){this._Mark=n;s(this.context,this,"MarkerStyle",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return r("value",this._V,bt,this._isNull),this._V},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["hasDataLabel","markerStyle","markerSize","markerBackgroundColor","markerForegroundColor"],["format","dataLabel"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.HasDataLabel)||(this._H=i.HasDataLabel);u(i.MarkerBackgroundColor)||(this._M=i.MarkerBackgroundColor);u(i.MarkerForegroundColor)||(this._Ma=i.MarkerForegroundColor);u(i.MarkerSize)||(this._Mar=i.MarkerSize);u(i.MarkerStyle)||(this._Mark=i.MarkerStyle);u(i.Value)||(this._V=i.Value);g(this,i,["dataLabel","DataLabel","format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{hasDataLabel:this._H,markerBackgroundColor:this._M,markerForegroundColor:this._Ma,markerSize:this._Mar,markerStyle:this._Mark,value:this._V},{dataLabel:this._D,format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartPoint=re;hc="ChartPointFormat";ue=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartPointFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"border",{get:function(){return o("ChartPointFormat.border",e,"1.7",f),this._B||(this._B=new n.ChartBorder(this.context,l(this.context,this,"Border",!1,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["border"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["border","Border","fill","Fill"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{border:this._B})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartPointFormat=ue;cc="ChartAxes";fe=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAxes"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["categoryAxis","seriesAxis","valueAxis"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryAxis",{get:function(){return this._C||(this._C=new n.ChartAxis(this.context,l(this.context,this,"CategoryAxis",!1,!1,4))),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seriesAxis",{get:function(){return this._S||(this._S=new n.ChartAxis(this.context,l(this.context,this,"SeriesAxis",!1,!1,4))),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueAxis",{get:function(){return this._V||(this._V=new n.ChartAxis(this.context,l(this.context,this,"ValueAxis",!1,!1,4))),this._V},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["categoryAxis","seriesAxis","valueAxis"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["categoryAxis","CategoryAxis","seriesAxis","SeriesAxis","valueAxis","ValueAxis"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{categoryAxis:this._C,seriesAxis:this._S,valueAxis:this._V})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAxes=fe;tt="ChartAxis";ee=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAxis"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","customDisplayUnit","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","logBase","left","top","height","width","reversePlotOrder","crossesAt","visible","tickMarkSpacing","tickLabelSpacing"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["majorGridlines","minorGridlines","title","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartAxisFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"majorGridlines",{get:function(){return this._M||(this._M=new n.ChartGridlines(this.context,l(this.context,this,"MajorGridlines",!1,!1,4))),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minorGridlines",{get:function(){return this._Min||(this._Min=new n.ChartGridlines(this.context,l(this.context,this,"MinorGridlines",!1,!1,4))),this._Min},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._Tit||(this._Tit=new n.ChartAxisTitle(this.context,l(this.context,this,"Title",!1,!1,4))),this._Tit},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseTimeUnit",{get:function(){return r("baseTimeUnit",this._B,tt,this._isNull),o("ChartAxis.baseTimeUnit",e,"1.7",f),this._B},set:function(n){this._B=n;s(this.context,this,"BaseTimeUnit",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryType",{get:function(){return r("categoryType",this._C,tt,this._isNull),o("ChartAxis.categoryType",e,"1.7",f),this._C},set:function(n){this._C=n;s(this.context,this,"CategoryType",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"crossesAt",{get:function(){return r("crossesAt",this._Cr,tt,this._isNull),o("ChartAxis.crossesAt",e,"1.7",f),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"customDisplayUnit",{get:function(){return r("customDisplayUnit",this._Cu,tt,this._isNull),o("ChartAxis.customDisplayUnit",e,"1.7",f),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayUnit",{get:function(){return r("displayUnit",this._D,tt,this._isNull),o("ChartAxis.displayUnit",e,"1.7",f),this._D},set:function(n){this._D=n;s(this.context,this,"DisplayUnit",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return r("height",this._H,tt,this._isNull),o("ChartAxis.height",e,"1.7",f),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return r("left",this._L,tt,this._isNull),o("ChartAxis.left",e,"1.7",f),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"logBase",{get:function(){return r("logBase",this._Lo,tt,this._isNull),o("ChartAxis.logBase",e,"1.7",f),this._Lo},set:function(n){this._Lo=n;s(this.context,this,"LogBase",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"majorTimeUnitScale",{get:function(){return r("majorTimeUnitScale",this._Ma,tt,this._isNull),o("ChartAxis.majorTimeUnitScale",e,"1.7",f),this._Ma},set:function(n){this._Ma=n;s(this.context,this,"MajorTimeUnitScale",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"majorUnit",{get:function(){return r("majorUnit",this._Maj,tt,this._isNull),this._Maj},set:function(n){this._Maj=n;s(this.context,this,"MajorUnit",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maximum",{get:function(){return r("maximum",this._Max,tt,this._isNull),this._Max},set:function(n){this._Max=n;s(this.context,this,"Maximum",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minimum",{get:function(){return r("minimum",this._Mi,tt,this._isNull),this._Mi},set:function(n){this._Mi=n;s(this.context,this,"Minimum",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minorTimeUnitScale",{get:function(){return r("minorTimeUnitScale",this._Mino,tt,this._isNull),o("ChartAxis.minorTimeUnitScale",e,"1.7",f),this._Mino},set:function(n){this._Mino=n;s(this.context,this,"MinorTimeUnitScale",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minorUnit",{get:function(){return r("minorUnit",this._Minor,tt,this._isNull),this._Minor},set:function(n){this._Minor=n;s(this.context,this,"MinorUnit",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reversePlotOrder",{get:function(){return r("reversePlotOrder",this._R,tt,this._isNull),o("ChartAxis.reversePlotOrder",e,"1.7",f),this._R},set:function(n){this._R=n;s(this.context,this,"ReversePlotOrder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showDisplayUnitLabel",{get:function(){return r("showDisplayUnitLabel",this._S,tt,this._isNull),o("ChartAxis.showDisplayUnitLabel",e,"1.7",f),this._S},set:function(n){this._S=n;s(this.context,this,"ShowDisplayUnitLabel",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tickLabelSpacing",{get:function(){return r("tickLabelSpacing",this._T,tt,this._isNull),o("ChartAxis.tickLabelSpacing",e,"1.7",f),this._T},set:function(n){this._T=n;s(this.context,this,"TickLabelSpacing",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tickMarkSpacing",{get:function(){return r("tickMarkSpacing",this._Ti,tt,this._isNull),o("ChartAxis.tickMarkSpacing",e,"1.7",f),this._Ti},set:function(n){this._Ti=n;s(this.context,this,"TickMarkSpacing",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return r("top",this._To,tt,this._isNull),o("ChartAxis.top",e,"1.7",f),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this._V,tt,this._isNull),o("ChartAxis.visible",e,"1.7",f),this._V},set:function(n){this._V=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return r("width",this._W,tt,this._isNull),o("ChartAxis.width",e,"1.7",f),this._W},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["majorUnit","maximum","minimum","minorUnit","displayUnit","showDisplayUnitLabel","minorTimeUnitScale","majorTimeUnitScale","baseTimeUnit","categoryType","logBase","reversePlotOrder","visible","tickMarkSpacing","tickLabelSpacing"],["majorGridlines","minorGridlines","title","format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.setCategoryNames=function(n){o("ChartAxis.setCategoryNames",e,"1.7",f);h(this.context,this,"SetCategoryNames",0,[n],0)},i.prototype.setCrossesAt=function(n){o("ChartAxis.setCrossesAt",e,"1.7",f);h(this.context,this,"SetCrossesAt",0,[n],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.BaseTimeUnit)||(this._B=i.BaseTimeUnit);u(i.CategoryType)||(this._C=i.CategoryType);u(i.CrossesAt)||(this._Cr=i.CrossesAt);u(i.CustomDisplayUnit)||(this._Cu=i.CustomDisplayUnit);u(i.DisplayUnit)||(this._D=i.DisplayUnit);u(i.Height)||(this._H=i.Height);u(i.Left)||(this._L=i.Left);u(i.LogBase)||(this._Lo=i.LogBase);u(i.MajorTimeUnitScale)||(this._Ma=i.MajorTimeUnitScale);u(i.MajorUnit)||(this._Maj=i.MajorUnit);u(i.Maximum)||(this._Max=i.Maximum);u(i.Minimum)||(this._Mi=i.Minimum);u(i.MinorTimeUnitScale)||(this._Mino=i.MinorTimeUnitScale);u(i.MinorUnit)||(this._Minor=i.MinorUnit);u(i.ReversePlotOrder)||(this._R=i.ReversePlotOrder);u(i.ShowDisplayUnitLabel)||(this._S=i.ShowDisplayUnitLabel);u(i.TickLabelSpacing)||(this._T=i.TickLabelSpacing);u(i.TickMarkSpacing)||(this._Ti=i.TickMarkSpacing);u(i.Top)||(this._To=i.Top);u(i.Visible)||(this._V=i.Visible);u(i.Width)||(this._W=i.Width);g(this,i,["format","Format","majorGridlines","MajorGridlines","minorGridlines","MinorGridlines","title","Title"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{baseTimeUnit:this._B,categoryType:this._C,crossesAt:this._Cr,customDisplayUnit:this._Cu,displayUnit:this._D,height:this._H,left:this._L,logBase:this._Lo,majorTimeUnitScale:this._Ma,majorUnit:this._Maj,maximum:this._Max,minimum:this._Mi,minorTimeUnitScale:this._Mino,minorUnit:this._Minor,reversePlotOrder:this._R,showDisplayUnitLabel:this._S,tickLabelSpacing:this._T,tickMarkSpacing:this._Ti,top:this._To,visible:this._V,width:this._W},{format:this._F,majorGridlines:this._M,minorGridlines:this._Min,title:this._Tit})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAxis=ee;lc="ChartAxisFormat";oe=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAxisFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["font","line"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._F||(this._F=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this._L||(this._L=new n.ChartLineFormat(this.context,l(this.context,this,"Line",!1,!1,4))),this._L},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font","line"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["font","Font","line","Line"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{font:this._F,line:this._L})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAxisFormat=oe;vr="ChartAxisTitle";se=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAxisTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["text","visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartAxisTitleFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return r("text",this._T,vr,this._isNull),this._T},set:function(n){this._T=n;s(this.context,this,"Text",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this._V,vr,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["text","visible"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Text)||(this._T=i.Text);u(i.Visible)||(this._V=i.Visible);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{text:this._T,visible:this._V},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAxisTitle=se;ac="ChartAxisTitleFormat";he=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartAxisTitleFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["font"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._F||(this._F=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{font:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartAxisTitleFormat=he;at="ChartDataLabels";ce=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartDataLabels"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartDataLabelFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return r("position",this._P,at,this._isNull),this._P},set:function(n){this._P=n;s(this.context,this,"Position",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"separator",{get:function(){return r("separator",this._S,at,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Separator",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showBubbleSize",{get:function(){return r("showBubbleSize",this._Sh,at,this._isNull),this._Sh},set:function(n){this._Sh=n;s(this.context,this,"ShowBubbleSize",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCategoryName",{get:function(){return r("showCategoryName",this._Sho,at,this._isNull),this._Sho},set:function(n){this._Sho=n;s(this.context,this,"ShowCategoryName",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showLegendKey",{get:function(){return r("showLegendKey",this._Show,at,this._isNull),this._Show},set:function(n){this._Show=n;s(this.context,this,"ShowLegendKey",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showPercentage",{get:function(){return r("showPercentage",this._ShowP,at,this._isNull),this._ShowP},set:function(n){this._ShowP=n;s(this.context,this,"ShowPercentage",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSeriesName",{get:function(){return r("showSeriesName",this._ShowS,at,this._isNull),this._ShowS},set:function(n){this._ShowS=n;s(this.context,this,"ShowSeriesName",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showValue",{get:function(){return r("showValue",this._ShowV,at,this._isNull),this._ShowV},set:function(n){this._ShowV=n;s(this.context,this,"ShowValue",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Position)||(this._P=i.Position);u(i.Separator)||(this._S=i.Separator);u(i.ShowBubbleSize)||(this._Sh=i.ShowBubbleSize);u(i.ShowCategoryName)||(this._Sho=i.ShowCategoryName);u(i.ShowLegendKey)||(this._Show=i.ShowLegendKey);u(i.ShowPercentage)||(this._ShowP=i.ShowPercentage);u(i.ShowSeriesName)||(this._ShowS=i.ShowSeriesName);u(i.ShowValue)||(this._ShowV=i.ShowValue);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{position:this._P,separator:this._S,showBubbleSize:this._Sh,showCategoryName:this._Sho,showLegendKey:this._Show,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartDataLabels=ce;vt="ChartDataLabel";le=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartDataLabel"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return r("position",this._P,vt,this._isNull),this._P},set:function(n){this._P=n;s(this.context,this,"Position",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"separator",{get:function(){return r("separator",this._S,vt,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Separator",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showBubbleSize",{get:function(){return r("showBubbleSize",this._Sh,vt,this._isNull),this._Sh},set:function(n){this._Sh=n;s(this.context,this,"ShowBubbleSize",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCategoryName",{get:function(){return r("showCategoryName",this._Sho,vt,this._isNull),this._Sho},set:function(n){this._Sho=n;s(this.context,this,"ShowCategoryName",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showLegendKey",{get:function(){return r("showLegendKey",this._Show,vt,this._isNull),this._Show},set:function(n){this._Show=n;s(this.context,this,"ShowLegendKey",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPercentage",{get:function(){return r("showPercentage",this._ShowP,vt,this._isNull),this._ShowP},set:function(n){this._ShowP=n;s(this.context,this,"ShowPercentage",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showSeriesName",{get:function(){return r("showSeriesName",this._ShowS,vt,this._isNull),this._ShowS},set:function(n){this._ShowS=n;s(this.context,this,"ShowSeriesName",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showValue",{get:function(){return r("showValue",this._ShowV,vt,this._isNull),this._ShowV},set:function(n){this._ShowV=n;s(this.context,this,"ShowValue",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["position","showValue","showSeriesName","showCategoryName","showLegendKey","showPercentage","showBubbleSize","separator"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Position)||(this._P=i.Position);u(i.Separator)||(this._S=i.Separator);u(i.ShowBubbleSize)||(this._Sh=i.ShowBubbleSize);u(i.ShowCategoryName)||(this._Sho=i.ShowCategoryName);u(i.ShowLegendKey)||(this._Show=i.ShowLegendKey);u(i.ShowPercentage)||(this._ShowP=i.ShowPercentage);u(i.ShowSeriesName)||(this._ShowS=i.ShowSeriesName);u(i.ShowValue)||(this._ShowV=i.ShowValue)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{position:this._P,separator:this._S,showBubbleSize:this._Sh,showCategoryName:this._Sho,showLegendKey:this._Show,showPercentage:this._ShowP,showSeriesName:this._ShowS,showValue:this._ShowV},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ChartDataLabel=le;vc="ChartDataLabelFormat";ae=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartDataLabelFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["font","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartDataLabelFormat=ae;ve="ChartGridlines";ye=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartGridlines"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartGridlinesFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this._V,ve,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["visible"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Visible)||(this._V=i.Visible);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{visible:this._V},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartGridlines=ye;yc="ChartGridlinesFormat";pe=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartGridlinesFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this._L||(this._L=new n.ChartLineFormat(this.context,l(this.context,this,"Line",!1,!1,4))),this._L},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["line"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["line","Line"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{line:this._L})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartGridlinesFormat=pe;kt="ChartLegend";we=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartLegend"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["visible","position","overlay","left","top","showShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format","legendEntries"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartLegendFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"legendEntries",{get:function(){return o("ChartLegend.legendEntries",e,"1.7",f),this._Le||(this._Le=new n.ChartLegendEntryCollection(this.context,l(this.context,this,"LegendEntries",!0,!1,4))),this._Le},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return r("left",this._L,kt,this._isNull),o("ChartLegend.left",e,"1.7",f),this._L},set:function(n){this._L=n;s(this.context,this,"Left",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overlay",{get:function(){return r("overlay",this._O,kt,this._isNull),this._O},set:function(n){this._O=n;s(this.context,this,"Overlay",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return r("position",this._P,kt,this._isNull),this._P},set:function(n){this._P=n;s(this.context,this,"Position",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showShadow",{get:function(){return r("showShadow",this._S,kt,this._isNull),o("ChartLegend.showShadow",e,"1.7",f),this._S},set:function(n){this._S=n;s(this.context,this,"ShowShadow",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return r("top",this._T,kt,this._isNull),o("ChartLegend.top",e,"1.7",f),this._T},set:function(n){this._T=n;s(this.context,this,"Top",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this._V,kt,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["visible","position","overlay","left","top","showShadow"],["format"],["legendEntries"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Left)||(this._L=i.Left);u(i.Overlay)||(this._O=i.Overlay);u(i.Position)||(this._P=i.Position);u(i.ShowShadow)||(this._S=i.ShowShadow);u(i.Top)||(this._T=i.Top);u(i.Visible)||(this._V=i.Visible);g(this,i,["format","Format","legendEntries","LegendEntries"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{left:this._L,overlay:this._O,position:this._P,showShadow:this._S,top:this._T,visible:this._V},{format:this._F,legendEntries:this._Le})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartLegend=we;be="ChartLegendEntry";ke=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartLegendEntry"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["visible"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return r("visible",this._V,be,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["visible"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Visible)||(this._V=i.Visible)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{visible:this._V},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ChartLegendEntry=ke;de="ChartLegendEntryCollection";ge=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"ChartLegendEntryCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,de,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItemAt=function(i){return new n.ChartLegendEntry(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.ChartLegendEntry(this.context,d(!1,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.ChartLegendEntry(u.context,d(!1,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.ChartLegendEntryCollection=ge;pc="ChartLegendFormat";no=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartLegendFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["font","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartLegendFormat=no;ft="ChartTitle";to=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartTitle"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["visible","text","overlay","horizontalAlignment","top","left","width","height","verticalAlignment","textOrientation","position","showShadow"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartTitleFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return r("height",this._H,ft,this._isNull),o("ChartTitle.height",e,"1.7",f),this._H},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalAlignment",{get:function(){return r("horizontalAlignment",this._Ho,ft,this._isNull),o("ChartTitle.horizontalAlignment",e,"1.7",f),this._Ho},set:function(n){this._Ho=n;s(this.context,this,"HorizontalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return r("left",this._L,ft,this._isNull),o("ChartTitle.left",e,"1.7",f),this._L},set:function(n){this._L=n;s(this.context,this,"Left",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overlay",{get:function(){return r("overlay",this._O,ft,this._isNull),this._O},set:function(n){this._O=n;s(this.context,this,"Overlay",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return r("position",this._P,ft,this._isNull),o("ChartTitle.position",e,"1.7",f),this._P},set:function(n){this._P=n;s(this.context,this,"Position",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showShadow",{get:function(){return r("showShadow",this._S,ft,this._isNull),o("ChartTitle.showShadow",e,"1.7",f),this._S},set:function(n){this._S=n;s(this.context,this,"ShowShadow",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return r("text",this._T,ft,this._isNull),this._T},set:function(n){this._T=n;s(this.context,this,"Text",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textOrientation",{get:function(){return r("textOrientation",this._Te,ft,this._isNull),o("ChartTitle.textOrientation",e,"1.7",f),this._Te},set:function(n){this._Te=n;s(this.context,this,"TextOrientation",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return r("top",this._To,ft,this._isNull),o("ChartTitle.top",e,"1.7",f),this._To},set:function(n){this._To=n;s(this.context,this,"Top",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlignment",{get:function(){return r("verticalAlignment",this._V,ft,this._isNull),o("ChartTitle.verticalAlignment",e,"1.7",f),this._V},set:function(n){this._V=n;s(this.context,this,"VerticalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return r("visible",this._Vi,ft,this._isNull),this._Vi},set:function(n){this._Vi=n;s(this.context,this,"Visible",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return r("width",this._W,ft,this._isNull),o("ChartTitle.width",e,"1.7",f),this._W},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["visible","text","overlay","horizontalAlignment","top","left","verticalAlignment","textOrientation","position","showShadow"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Height)||(this._H=i.Height);u(i.HorizontalAlignment)||(this._Ho=i.HorizontalAlignment);u(i.Left)||(this._L=i.Left);u(i.Overlay)||(this._O=i.Overlay);u(i.Position)||(this._P=i.Position);u(i.ShowShadow)||(this._S=i.ShowShadow);u(i.Text)||(this._T=i.Text);u(i.TextOrientation)||(this._Te=i.TextOrientation);u(i.Top)||(this._To=i.Top);u(i.VerticalAlignment)||(this._V=i.VerticalAlignment);u(i.Visible)||(this._Vi=i.Visible);u(i.Width)||(this._W=i.Width);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{height:this._H,horizontalAlignment:this._Ho,left:this._L,overlay:this._O,position:this._P,showShadow:this._S,text:this._T,textOrientation:this._Te,top:this._To,verticalAlignment:this._V,visible:this._Vi,width:this._W},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartTitle=to;wc="ChartTitleFormat";io=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartTitleFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["font","fill","border"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"border",{get:function(){return o("ChartTitleFormat.border",e,"1.7",f),this._B||(this._B=new n.ChartBorder(this.context,l(this.context,this,"Border",!1,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ChartFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.ChartFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["font","border"],["fill"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["border","Border","fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{border:this._B,font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartTitleFormat=io;bc="ChartFill";ro=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartFill"},enumerable:!0,configurable:!0}),t.prototype.load=function(n){return p(this,n),this},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype.setSolidColor=function(n){h(this.context,this,"SetSolidColor",0,[n],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.ChartFill=ro;ci="ChartBorder";uo=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","lineStyle","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,ci,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineStyle",{get:function(){return r("lineStyle",this._L,ci,this._isNull),this._L},set:function(n){this._L=n;s(this.context,this,"LineStyle",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return r("weight",this._W,ci,this._isNull),this._W},set:function(n){this._W=n;s(this.context,this,"Weight",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["color","lineStyle","weight"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color);u(i.LineStyle)||(this._L=i.LineStyle);u(i.Weight)||(this._W=i.Weight)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C,lineStyle:this._L,weight:this._W},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ChartBorder=uo;li="ChartLineFormat";fo=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartLineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","lineStyle","weight"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,li,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineStyle",{get:function(){return r("lineStyle",this._L,li,this._isNull),o("ChartLineFormat.lineStyle",e,"1.7",f),this._L},set:function(n){this._L=n;s(this.context,this,"LineStyle",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return r("weight",this._W,li,this._isNull),o("ChartLineFormat.weight",e,"1.7",f),this._W},set:function(n){this._W=n;s(this.context,this,"Weight",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["color","lineStyle","weight"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color);u(i.LineStyle)||(this._L=i.LineStyle);u(i.Weight)||(this._W=i.Weight)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C,lineStyle:this._L,weight:this._W},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ChartLineFormat=fo;dt="ChartFont";eo=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ChartFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["bold","color","italic","name","size","underline"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return r("bold",this._B,dt,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"Bold",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,dt,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return r("italic",this._I,dt,this._isNull),this._I},set:function(n){this._I=n;s(this.context,this,"Italic",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return r("name",this._N,dt,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return r("size",this._S,dt,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Size",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return r("underline",this._U,dt,this._isNull),this._U},set:function(n){this._U=n;s(this.context,this,"Underline",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["bold","color","italic","name","size","underline"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Bold)||(this._B=i.Bold);u(i.Color)||(this._C=i.Color);u(i.Italic)||(this._I=i.Italic);u(i.Name)||(this._N=i.Name);u(i.Size)||(this._S=i.Size);u(i.Underline)||(this._U=i.Underline)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{bold:this._B,color:this._C,italic:this._I,name:this._N,size:this._S,underline:this._U},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ChartFont=eo;gt="ChartTrendline";oo=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartTrendline"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["polynomialOrder","movingAveragePeriod","_Id","displayRSquared","name","intercept"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ChartTrendlineFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayRSquared",{get:function(){return r("displayRSquared",this._D,gt,this._isNull),this._D},set:function(n){this._D=n;s(this.context,this,"DisplayRSquared",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intercept",{get:function(){return r("intercept",this._I,gt,this._isNull),this._I},set:function(n){this._I=n;s(this.context,this,"Intercept",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"movingAveragePeriod",{get:function(){return r("movingAveragePeriod",this._M,gt,this._isNull),this._M},set:function(n){this._M=n;s(this.context,this,"MovingAveragePeriod",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this._N,gt,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"polynomialOrder",{get:function(){return r("polynomialOrder",this._P,gt,this._isNull),this._P},set:function(n){this._P=n;s(this.context,this,"PolynomialOrder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_Id",{get:function(){return r("_Id",this.__I,gt,this._isNull),this.__I},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["polynomialOrder","movingAveragePeriod","displayRSquared","name","intercept"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.DisplayRSquared)||(this._D=i.DisplayRSquared);u(i.Intercept)||(this._I=i.Intercept);u(i.MovingAveragePeriod)||(this._M=i.MovingAveragePeriod);u(i.Name)||(this._N=i.Name);u(i.PolynomialOrder)||(this._P=i.PolynomialOrder);u(i._Id)||(this.__I=i._Id);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleIdResult=function(n){(t.prototype._handleIdResult.call(this,n),c(n))||u(n._Id)||(this.__I=n._Id)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{displayRSquared:this._D,intercept:this._I,movingAveragePeriod:this._M,name:this._N,polynomialOrder:this._P},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartTrendline=oo;so="ChartTrendlineCollection";ho=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartTrendlineCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"items",{get:function(){return r("items",this.m__items,so,this._isNull),this.m__items},enumerable:!0,configurable:!0}),i.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},i.prototype.getItem=function(t){return new n.ChartTrendline(this.context,rt(this.context,this,[t]))},i.prototype._handleResult=function(i){var u,f,r,e;if((t.prototype._handleResult.call(this,i),!c(i))&&(u=i,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.ChartTrendline(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(i,r){var u=this;t.prototype._handleRetrieveResult.call(this,i,r);y(this,i,r,function(t,i){return new n.ChartTrendline(u.context,d(!0,u.context,u,t,i))})},i.prototype.toJSON=function(){return a(this,{},{},this.m__items)},i}(OfficeExtension.ClientObject);n.ChartTrendlineCollection=ho;kc="ChartTrendlineFormat";co=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ChartTrendlineFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["line"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"line",{get:function(){return this._L||(this._L=new n.ChartLineFormat(this.context,l(this.context,this,"Line",!1,!1,4))),this._L},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["line"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["line","Line"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{line:this._L})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ChartTrendlineFormat=co;dc="RangeSort";lo=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"RangeSort"},enumerable:!0,configurable:!0}),t.prototype.apply=function(n,t,i,r,u){h(this.context,this,"Apply",0,[n,t,i,r,u],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.RangeSort=lo;ai="TableSort";ao=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"TableSort"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["matchCase","method","fields"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return r("fields",this._F,ai,this._isNull),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchCase",{get:function(){return r("matchCase",this._M,ai,this._isNull),this._M},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){return r("method",this._Me,ai,this._isNull),this._Me},enumerable:!0,configurable:!0}),t.prototype.apply=function(n,t,i){h(this.context,this,"Apply",0,[n,t,i],0)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype.reapply=function(){h(this.context,this,"Reapply",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Fields)||(this._F=i.Fields);u(i.MatchCase)||(this._M=i.MatchCase);u(i.Method)||(this._Me=i.Method)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{fields:this._F,matchCase:this._M,method:this._Me},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.TableSort=ao;vo="Filter";yo=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"Filter"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return r("criteria",this._C,vo,this._isNull),this._C},enumerable:!0,configurable:!0}),t.prototype.apply=function(n){h(this.context,this,"Apply",0,[n],0)},t.prototype.applyBottomItemsFilter=function(n){h(this.context,this,"ApplyBottomItemsFilter",0,[n],0)},t.prototype.applyBottomPercentFilter=function(n){h(this.context,this,"ApplyBottomPercentFilter",0,[n],0)},t.prototype.applyCellColorFilter=function(n){h(this.context,this,"ApplyCellColorFilter",0,[n],0)},t.prototype.applyCustomFilter=function(n,t,i){h(this.context,this,"ApplyCustomFilter",0,[n,t,i],0)},t.prototype.applyDynamicFilter=function(n){h(this.context,this,"ApplyDynamicFilter",0,[n],0)},t.prototype.applyFontColorFilter=function(n){h(this.context,this,"ApplyFontColorFilter",0,[n],0)},t.prototype.applyIconFilter=function(n){h(this.context,this,"ApplyIconFilter",0,[n],0)},t.prototype.applyTopItemsFilter=function(n){h(this.context,this,"ApplyTopItemsFilter",0,[n],0)},t.prototype.applyTopPercentFilter=function(n){h(this.context,this,"ApplyTopPercentFilter",0,[n],0)},t.prototype.applyValuesFilter=function(n){h(this.context,this,"ApplyValuesFilter",0,[n],0)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Criteria)||(this._C=i.Criteria)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{criteria:this._C},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.Filter=yo;po="CustomXmlPartScopedCollection";wo=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"CustomXmlPartScopedCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,po,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.CustomXmlPart(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return new n.CustomXmlPart(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype.getOnlyItem=function(){return new n.CustomXmlPart(this.context,t(this.context,this,"GetOnlyItem",1,[],!1,!1,null,4))},u.prototype.getOnlyItemOrNullObject=function(){return new n.CustomXmlPart(this.context,t(this.context,this,"GetOnlyItemOrNullObject",1,[],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.CustomXmlPart(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.CustomXmlPart(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.CustomXmlPartScopedCollection=wo;bo="CustomXmlPartCollection";ko=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"CustomXmlPartCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,bo,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i){return new n.CustomXmlPart(this.context,t(this.context,this,"Add",0,[i],!1,!0,null,0))},u.prototype.getByNamespace=function(i){return new n.CustomXmlPartScopedCollection(this.context,t(this.context,this,"GetByNamespace",1,[i],!0,!1,null,4))},u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.CustomXmlPart(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return new n.CustomXmlPart(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.CustomXmlPart(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.CustomXmlPart(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.CustomXmlPartCollection=ko;yr="CustomXmlPart";go=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"CustomXmlPart"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["id","namespaceUri"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return r("id",this._I,yr,this._isNull),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"namespaceUri",{get:function(){return r("namespaceUri",this._N,yr,this._isNull),this._N},enumerable:!0,configurable:!0}),t.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},t.prototype.getXml=function(){var t=h(this.context,this,"GetXml",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},t.prototype.setXml=function(n){h(this.context,this,"SetXml",0,[n],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Id)||(this._I=i.Id);u(i.NamespaceUri)||(this._N=i.NamespaceUri)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleIdResult=function(t){(n.prototype._handleIdResult.call(this,t),c(t))||u(t.Id)||(this._I=t.Id)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{id:this._I,namespaceUri:this._N},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.CustomXmlPart=go;gc="_V1Api";ns=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"_V1Api"},enumerable:!0,configurable:!0}),t.prototype.bindingAddColumns=function(n){var i=h(this.context,this,"BindingAddColumns",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingAddFromNamedItem=function(n){var i=h(this.context,this,"BindingAddFromNamedItem",1,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingAddFromPrompt=function(n){var i=h(this.context,this,"BindingAddFromPrompt",1,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingAddFromSelection=function(n){var i=h(this.context,this,"BindingAddFromSelection",1,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingAddRows=function(n){var i=h(this.context,this,"BindingAddRows",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingClearFormats=function(n){var i=h(this.context,this,"BindingClearFormats",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingDeleteAllDataValues=function(n){var i=h(this.context,this,"BindingDeleteAllDataValues",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingGetAll=function(){var t=h(this.context,this,"BindingGetAll",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},t.prototype.bindingGetById=function(n){var i=h(this.context,this,"BindingGetById",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingGetData=function(n){var i=h(this.context,this,"BindingGetData",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingReleaseById=function(n){var i=h(this.context,this,"BindingReleaseById",1,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingSetData=function(n){var i=h(this.context,this,"BindingSetData",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingSetFormats=function(n){var i=h(this.context,this,"BindingSetFormats",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.bindingSetTableOptions=function(n){var i=h(this.context,this,"BindingSetTableOptions",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.getFilePropertiesAsync=function(){o("_V1Api.getFilePropertiesAsync",e,"1.6",f);var t=h(this.context,this,"GetFilePropertiesAsync",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},t.prototype.getSelectedData=function(n){var i=h(this.context,this,"GetSelectedData",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.gotoById=function(n){var i=h(this.context,this,"GotoById",1,[n],4),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.setSelectedData=function(n){var i=h(this.context,this,"SetSelectedData",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n._V1Api=ns;ts="PivotTableCollection";is=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"PivotTableCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,ts,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.getCount=function(){o("PivotTableCollection.getCount",e,"1.4",f);var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.PivotTable(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return o("PivotTableCollection.getItemOrNullObject",e,"1.4",f),new n.PivotTable(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype.refreshAll=function(){h(this.context,this,"RefreshAll",0,[],0)},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.PivotTable(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.PivotTable(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.PivotTableCollection=is;pr="PivotTable";rs=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"PivotTable"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["name","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["worksheet"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"worksheet",{get:function(){return this._W||(this._W=new n.Worksheet(this.context,l(this.context,this,"Worksheet",!1,!1,4))),this._W},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return r("id",this._I,pr,this._isNull),o("PivotTable.id",e,"1.5",f),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this._N,pr,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"Name",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["name"],[],["worksheet"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.refresh=function(){h(this.context,this,"Refresh",0,[],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Id)||(this._I=i.Id);u(i.Name)||(this._N=i.Name);g(this,i,["worksheet","Worksheet"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleIdResult=function(n){(t.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._I=n.Id)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{id:this._I,name:this._N},{})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.PivotTable=rs;ot="DocumentProperties";us=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"DocumentProperties"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["title","subject","author","keywords","comments","lastAuthor","revisionNumber","creationDate","category","manager","company"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["custom"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"custom",{get:function(){return this._Cu||(this._Cu=new n.CustomPropertyCollection(this.context,l(this.context,this,"Custom",!0,!1,4))),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"author",{get:function(){return r("author",this._A,ot,this._isNull),this._A},set:function(n){this._A=n;s(this.context,this,"Author",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"category",{get:function(){return r("category",this._C,ot,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Category",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"comments",{get:function(){return r("comments",this._Co,ot,this._isNull),this._Co},set:function(n){this._Co=n;s(this.context,this,"Comments",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"company",{get:function(){return r("company",this._Com,ot,this._isNull),this._Com},set:function(n){this._Com=n;s(this.context,this,"Company",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"creationDate",{get:function(){return r("creationDate",this._Cr,ot,this._isNull),this._Cr},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keywords",{get:function(){return r("keywords",this._K,ot,this._isNull),this._K},set:function(n){this._K=n;s(this.context,this,"Keywords",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lastAuthor",{get:function(){return r("lastAuthor",this._L,ot,this._isNull),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"manager",{get:function(){return r("manager",this._M,ot,this._isNull),this._M},set:function(n){this._M=n;s(this.context,this,"Manager",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"revisionNumber",{get:function(){return r("revisionNumber",this._R,ot,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"RevisionNumber",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"subject",{get:function(){return r("subject",this._S,ot,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Subject",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return r("title",this._T,ot,this._isNull),this._T},set:function(n){this._T=n;s(this.context,this,"Title",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["title","subject","author","keywords","comments","revisionNumber","category","manager","company"],[],["custom"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Author)||(this._A=i.Author);u(i.Category)||(this._C=i.Category);u(i.Comments)||(this._Co=i.Comments);u(i.Company)||(this._Com=i.Company);u(i.CreationDate)||(this._Cr=iu(i.CreationDate));u(i.Keywords)||(this._K=i.Keywords);u(i.LastAuthor)||(this._L=i.LastAuthor);u(i.Manager)||(this._M=i.Manager);u(i.RevisionNumber)||(this._R=i.RevisionNumber);u(i.Subject)||(this._S=i.Subject);u(i.Title)||(this._T=i.Title);g(this,i,["custom","Custom"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){if(t.prototype._handleRetrieveResult.call(this,n,i),!c(n)){var r=n;u(r.CreationDate)||(r.creationDate=iu(r.creationDate));y(this,n,i)}},i.prototype.toJSON=function(){return a(this,{author:this._A,category:this._C,comments:this._Co,company:this._Com,creationDate:this._Cr,keywords:this._K,lastAuthor:this._L,manager:this._M,revisionNumber:this._R,subject:this._S,title:this._T},{custom:this._Cu})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.DocumentProperties=us;vi="CustomProperty";fs=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"CustomProperty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["key","value","type"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return r("key",this._K,vi,this._isNull),this._K},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return r("type",this._T,vi,this._isNull),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r("value",this._V,vi,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"Value",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["value"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Key)||(this._K=i.Key);u(i.Type)||(this._T=i.Type);u(i.Value)||(this._V=i.Value)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{key:this._K,type:this._T,value:this._V},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.CustomProperty=fs;es="CustomPropertyCollection";os=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"CustomPropertyCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,es,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i,r){return new n.CustomProperty(this.context,t(this.context,this,"Add",0,[i,r],!1,!0,null,0))},u.prototype.deleteAll=function(){h(this.context,this,"DeleteAll",0,[],0)},u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.CustomProperty(this.context,rt(this.context,this,[t]))},u.prototype.getItemOrNullObject=function(i){return new n.CustomProperty(this.context,t(this.context,this,"GetItemOrNullObject",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.CustomProperty(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.CustomProperty(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.CustomPropertyCollection=os;ss="ConditionalFormatCollection";hs=function(i){function u(){return i!==null&&i.apply(this,arguments)||this}return __extends(u,i),Object.defineProperty(u.prototype,"_className",{get:function(){return"ConditionalFormatCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return r("items",this.m__items,ss,this._isNull),this.m__items},enumerable:!0,configurable:!0}),u.prototype.add=function(i){return new n.ConditionalFormat(this.context,t(this.context,this,"Add",0,[i],!1,!0,null,0))},u.prototype.clearAll=function(){h(this.context,this,"ClearAll",0,[],0)},u.prototype.getCount=function(){var t=h(this.context,this,"GetCount",1,[],4),n=new OfficeExtension.ClientResult;return k(this,t,n),n},u.prototype.getItem=function(t){return new n.ConditionalFormat(this.context,rt(this.context,this,[t]))},u.prototype.getItemAt=function(i){return new n.ConditionalFormat(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},u.prototype._handleResult=function(t){var u,f,r,e;if((i.prototype._handleResult.call(this,t),!c(t))&&(u=t,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.ConditionalFormat(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},u.prototype.load=function(n){return p(this,n)},u.prototype.retrieve=function(n){return w(this,n)},u.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.ConditionalFormat(u.context,d(!0,u.context,u,t,i))})},u.prototype.toJSON=function(){return a(this,{},{},this.m__items)},u}(OfficeExtension.ClientObject);n.ConditionalFormatCollection=hs;oi="ConditionalFormat";cs=function(i){function f(){return i!==null&&i.apply(this,arguments)||this}return __extends(f,i),Object.defineProperty(f.prototype,"_className",{get:function(){return"ConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyNames",{get:function(){return["stopIfTrue","priority","type","id"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!1,!1]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_navigationPropertyNames",{get:function(){return["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"cellValue",{get:function(){return this._C||(this._C=new n.CellValueConditionalFormat(this.context,l(this.context,this,"CellValue",!1,!1,4))),this._C},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"cellValueOrNullObject",{get:function(){return this._Ce||(this._Ce=new n.CellValueConditionalFormat(this.context,l(this.context,this,"CellValueOrNullObject",!1,!1,4))),this._Ce},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"colorScale",{get:function(){return this._Co||(this._Co=new n.ColorScaleConditionalFormat(this.context,l(this.context,this,"ColorScale",!1,!1,4))),this._Co},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"colorScaleOrNullObject",{get:function(){return this._Col||(this._Col=new n.ColorScaleConditionalFormat(this.context,l(this.context,this,"ColorScaleOrNullObject",!1,!1,4))),this._Col},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"custom",{get:function(){return this._Cu||(this._Cu=new n.CustomConditionalFormat(this.context,l(this.context,this,"Custom",!1,!1,4))),this._Cu},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"customOrNullObject",{get:function(){return this._Cus||(this._Cus=new n.CustomConditionalFormat(this.context,l(this.context,this,"CustomOrNullObject",!1,!1,4))),this._Cus},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataBar",{get:function(){return this._D||(this._D=new n.DataBarConditionalFormat(this.context,l(this.context,this,"DataBar",!1,!1,4))),this._D},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataBarOrNullObject",{get:function(){return this._Da||(this._Da=new n.DataBarConditionalFormat(this.context,l(this.context,this,"DataBarOrNullObject",!1,!1,4))),this._Da},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"iconSet",{get:function(){return this._I||(this._I=new n.IconSetConditionalFormat(this.context,l(this.context,this,"IconSet",!1,!1,4))),this._I},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"iconSetOrNullObject",{get:function(){return this._Ic||(this._Ic=new n.IconSetConditionalFormat(this.context,l(this.context,this,"IconSetOrNullObject",!1,!1,4))),this._Ic},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"preset",{get:function(){return this._P||(this._P=new n.PresetCriteriaConditionalFormat(this.context,l(this.context,this,"Preset",!1,!1,4))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"presetOrNullObject",{get:function(){return this._Pr||(this._Pr=new n.PresetCriteriaConditionalFormat(this.context,l(this.context,this,"PresetOrNullObject",!1,!1,4))),this._Pr},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"textComparison",{get:function(){return this._T||(this._T=new n.TextConditionalFormat(this.context,l(this.context,this,"TextComparison",!1,!1,4))),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"textComparisonOrNullObject",{get:function(){return this._Te||(this._Te=new n.TextConditionalFormat(this.context,l(this.context,this,"TextComparisonOrNullObject",!1,!1,4))),this._Te},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"topBottom",{get:function(){return this._To||(this._To=new n.TopBottomConditionalFormat(this.context,l(this.context,this,"TopBottom",!1,!1,4))),this._To},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"topBottomOrNullObject",{get:function(){return this._Top||(this._Top=new n.TopBottomConditionalFormat(this.context,l(this.context,this,"TopBottomOrNullObject",!1,!1,4))),this._Top},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"id",{get:function(){return r("id",this._Id0,oi,this._isNull),this._Id0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"priority",{get:function(){return r("priority",this._Pri,oi,this._isNull),this._Pri},set:function(n){this._Pri=n;s(this.context,this,"Priority",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"stopIfTrue",{get:function(){return r("stopIfTrue",this._S,oi,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"StopIfTrue",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"type",{get:function(){return r("type",this._Ty,oi,this._isNull),this._Ty},enumerable:!0,configurable:!0}),f.prototype.set=function(n,t){this._recursivelySet(n,t,["stopIfTrue","priority"],["dataBarOrNullObject","dataBar","customOrNullObject","custom","iconSet","iconSetOrNullObject","colorScale","colorScaleOrNullObject","topBottom","topBottomOrNullObject","preset","presetOrNullObject","textComparison","textComparisonOrNullObject","cellValue","cellValueOrNullObject"],[])},f.prototype.update=function(n){this._recursivelyUpdate(n)},f.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},f.prototype.getRange=function(){return new n.Range(this.context,t(this.context,this,"GetRange",1,[],!1,!0,null,4))},f.prototype.getRangeOrNullObject=function(){return new n.Range(this.context,t(this.context,this,"GetRangeOrNullObject",1,[],!1,!0,null,4))},f.prototype._handleResult=function(n){if(i.prototype._handleResult.call(this,n),!c(n)){var t=n;v(this,t);u(t.Id)||(this._Id0=t.Id);u(t.Priority)||(this._Pri=t.Priority);u(t.StopIfTrue)||(this._S=t.StopIfTrue);u(t.Type)||(this._Ty=t.Type);g(this,t,["cellValue","CellValue","cellValueOrNullObject","CellValueOrNullObject","colorScale","ColorScale","colorScaleOrNullObject","ColorScaleOrNullObject","custom","Custom","customOrNullObject","CustomOrNullObject","dataBar","DataBar","dataBarOrNullObject","DataBarOrNullObject","iconSet","IconSet","iconSetOrNullObject","IconSetOrNullObject","preset","Preset","presetOrNullObject","PresetOrNullObject","textComparison","TextComparison","textComparisonOrNullObject","TextComparisonOrNullObject","topBottom","TopBottom","topBottomOrNullObject","TopBottomOrNullObject"])}},f.prototype.load=function(n){return p(this,n)},f.prototype.retrieve=function(n){return w(this,n)},f.prototype._handleIdResult=function(n){(i.prototype._handleIdResult.call(this,n),c(n))||u(n.Id)||(this._Id0=n.Id)},f.prototype._handleRetrieveResult=function(n,t){i.prototype._handleRetrieveResult.call(this,n,t);y(this,n,t)},f.prototype.toJSON=function(){return a(this,{id:this._Id0,priority:this._Pri,stopIfTrue:this._S,type:this._Ty},{cellValue:this._C,cellValueOrNullObject:this._Ce,colorScale:this._Co,colorScaleOrNullObject:this._Col,custom:this._Cu,customOrNullObject:this._Cus,dataBar:this._D,dataBarOrNullObject:this._Da,iconSet:this._I,iconSetOrNullObject:this._Ic,preset:this._P,presetOrNullObject:this._Pr,textComparison:this._T,textComparisonOrNullObject:this._Te,topBottom:this._To,topBottomOrNullObject:this._Top})},f.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},f}(OfficeExtension.ClientObject);n.ConditionalFormat=cs;ni="DataBarConditionalFormat";ls=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"DataBarConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["positiveFormat","negativeFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"negativeFormat",{get:function(){return this._N||(this._N=new n.ConditionalDataBarNegativeFormat(this.context,l(this.context,this,"NegativeFormat",!1,!1,4))),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"positiveFormat",{get:function(){return this._P||(this._P=new n.ConditionalDataBarPositiveFormat(this.context,l(this.context,this,"PositiveFormat",!1,!1,4))),this._P},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisColor",{get:function(){return r("axisColor",this._A,ni,this._isNull),this._A},set:function(n){this._A=n;s(this.context,this,"AxisColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisFormat",{get:function(){return r("axisFormat",this._Ax,ni,this._isNull),this._Ax},set:function(n){this._Ax=n;s(this.context,this,"AxisFormat",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"barDirection",{get:function(){return r("barDirection",this._B,ni,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"BarDirection",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lowerBoundRule",{get:function(){return r("lowerBoundRule",this._L,ni,this._isNull),this._L},set:function(n){this._L=n;s(this.context,this,"LowerBoundRule",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showDataBarOnly",{get:function(){return r("showDataBarOnly",this._S,ni,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"ShowDataBarOnly",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"upperBoundRule",{get:function(){return r("upperBoundRule",this._U,ni,this._isNull),this._U},set:function(n){this._U=n;s(this.context,this,"UpperBoundRule",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["showDataBarOnly","barDirection","axisFormat","axisColor","lowerBoundRule","upperBoundRule"],["positiveFormat","negativeFormat"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.AxisColor)||(this._A=i.AxisColor);u(i.AxisFormat)||(this._Ax=i.AxisFormat);u(i.BarDirection)||(this._B=i.BarDirection);u(i.LowerBoundRule)||(this._L=i.LowerBoundRule);u(i.ShowDataBarOnly)||(this._S=i.ShowDataBarOnly);u(i.UpperBoundRule)||(this._U=i.UpperBoundRule);g(this,i,["negativeFormat","NegativeFormat","positiveFormat","PositiveFormat"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{axisColor:this._A,axisFormat:this._Ax,barDirection:this._B,lowerBoundRule:this._L,showDataBarOnly:this._S,upperBoundRule:this._U},{negativeFormat:this._N,positiveFormat:this._P})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.DataBarConditionalFormat=ls;yi="ConditionalDataBarPositiveFormat";as=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalDataBarPositiveFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["fillColor","gradientFill","borderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r("borderColor",this._B,yi,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"BorderColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillColor",{get:function(){return r("fillColor",this._F,yi,this._isNull),this._F},set:function(n){this._F=n;s(this.context,this,"FillColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gradientFill",{get:function(){return r("gradientFill",this._G,yi,this._isNull),this._G},set:function(n){this._G=n;s(this.context,this,"GradientFill",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["fillColor","gradientFill","borderColor"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.BorderColor)||(this._B=i.BorderColor);u(i.FillColor)||(this._F=i.FillColor);u(i.GradientFill)||(this._G=i.GradientFill)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{borderColor:this._B,fillColor:this._F,gradientFill:this._G},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalDataBarPositiveFormat=as;si="ConditionalDataBarNegativeFormat";vs=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalDataBarNegativeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r("borderColor",this._B,si,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"BorderColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillColor",{get:function(){return r("fillColor",this._F,si,this._isNull),this._F},set:function(n){this._F=n;s(this.context,this,"FillColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchPositiveBorderColor",{get:function(){return r("matchPositiveBorderColor",this._M,si,this._isNull),this._M},set:function(n){this._M=n;s(this.context,this,"MatchPositiveBorderColor",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchPositiveFillColor",{get:function(){return r("matchPositiveFillColor",this._Ma,si,this._isNull),this._Ma},set:function(n){this._Ma=n;s(this.context,this,"MatchPositiveFillColor",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["fillColor","matchPositiveFillColor","borderColor","matchPositiveBorderColor"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.BorderColor)||(this._B=i.BorderColor);u(i.FillColor)||(this._F=i.FillColor);u(i.MatchPositiveBorderColor)||(this._M=i.MatchPositiveBorderColor);u(i.MatchPositiveFillColor)||(this._Ma=i.MatchPositiveFillColor)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{borderColor:this._B,fillColor:this._F,matchPositiveBorderColor:this._M,matchPositiveFillColor:this._Ma},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalDataBarNegativeFormat=vs;nl="CustomConditionalFormat";ys=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"CustomConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["rule","format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ConditionalRangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rule",{get:function(){return this._R||(this._R=new n.ConditionalFormatRule(this.context,l(this.context,this,"Rule",!1,!1,4))),this._R},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,[],["rule","format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);g(this,i,["format","Format","rule","Rule"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{},{format:this._F,rule:this._R})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.CustomConditionalFormat=ys;pi="ConditionalFormatRule";ps=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalFormatRule"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["formula","formulaLocal","formulaR1C1"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formula",{get:function(){return r("formula",this._F,pi,this._isNull),this._F},set:function(n){this._F=n;s(this.context,this,"Formula",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaLocal",{get:function(){return r("formulaLocal",this._Fo,pi,this._isNull),this._Fo},set:function(n){this._Fo=n;s(this.context,this,"FormulaLocal",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formulaR1C1",{get:function(){return r("formulaR1C1",this._For,pi,this._isNull),this._For},set:function(n){this._For=n;s(this.context,this,"FormulaR1C1",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["formula","formulaLocal","formulaR1C1"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Formula)||(this._F=i.Formula);u(i.FormulaLocal)||(this._Fo=i.FormulaLocal);u(i.FormulaR1C1)||(this._For=i.FormulaR1C1)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{formula:this._F,formulaLocal:this._Fo,formulaR1C1:this._For},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalFormatRule=ps;hi="IconSetConditionalFormat";ws=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"IconSetConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["reverseIconOrder","showIconOnly","style","criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return r("criteria",this._C,hi,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Criteria",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reverseIconOrder",{get:function(){return r("reverseIconOrder",this._R,hi,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"ReverseIconOrder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showIconOnly",{get:function(){return r("showIconOnly",this._S,hi,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"ShowIconOnly",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return r("style",this._St,hi,this._isNull),this._St},set:function(n){this._St=n;s(this.context,this,"Style",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["reverseIconOrder","showIconOnly","style","criteria"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Criteria)||(this._C=i.Criteria);u(i.ReverseIconOrder)||(this._R=i.ReverseIconOrder);u(i.ShowIconOnly)||(this._S=i.ShowIconOnly);u(i.Style)||(this._St=i.Style)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{criteria:this._C,reverseIconOrder:this._R,showIconOnly:this._S,style:this._St},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.IconSetConditionalFormat=ws;wr="ColorScaleConditionalFormat";bs=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ColorScaleConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["threeColorScale","criteria"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"criteria",{get:function(){return r("criteria",this._C,wr,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Criteria",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"threeColorScale",{get:function(){return r("threeColorScale",this._T,wr,this._isNull),this._T},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["criteria"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Criteria)||(this._C=i.Criteria);u(i.ThreeColorScale)||(this._T=i.ThreeColorScale)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{criteria:this._C,threeColorScale:this._T},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ColorScaleConditionalFormat=bs;ks="TopBottomConditionalFormat";ds=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"TopBottomConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ConditionalRangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rule",{get:function(){return r("rule",this._R,ks,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"Rule",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["rule"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Rule)||(this._R=i.Rule);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{rule:this._R},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.TopBottomConditionalFormat=ds;gs="PresetCriteriaConditionalFormat";nh=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"PresetCriteriaConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ConditionalRangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rule",{get:function(){return r("rule",this._R,gs,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"Rule",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["rule"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Rule)||(this._R=i.Rule);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{rule:this._R},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.PresetCriteriaConditionalFormat=nh;th="TextConditionalFormat";ih=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"TextConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ConditionalRangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rule",{get:function(){return r("rule",this._R,th,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"Rule",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["rule"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Rule)||(this._R=i.Rule);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{rule:this._R},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.TextConditionalFormat=ih;rh="CellValueConditionalFormat";uh=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"CellValueConditionalFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["rule"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["format"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._F||(this._F=new n.ConditionalRangeFormat(this.context,l(this.context,this,"Format",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rule",{get:function(){return r("rule",this._R,rh,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"Rule",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["rule"],["format"],[])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.Rule)||(this._R=i.Rule);g(this,i,["format","Format"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{rule:this._R},{format:this._F})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.CellValueConditionalFormat=uh;fh="ConditionalRangeFormat";eh=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"ConditionalRangeFormat"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["numberFormat"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["fill","font","borders"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"borders",{get:function(){return this._B||(this._B=new n.ConditionalRangeBorderCollection(this.context,l(this.context,this,"Borders",!0,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.ConditionalRangeFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.ConditionalRangeFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return r("numberFormat",this._N,fh,this._isNull),this._N},set:function(n){this._N=n;s(this.context,this,"NumberFormat",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["numberFormat"],["fill","font"],["borders"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.NumberFormat)||(this._N=i.NumberFormat);g(this,i,["borders","Borders","fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{numberFormat:this._N},{borders:this._B,fill:this._F,font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.ConditionalRangeFormat=eh;ii="ConditionalRangeFont";oh=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeFont"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color","italic","bold","underline","strikethrough"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return r("bold",this._B,ii,this._isNull),this._B},set:function(n){this._B=n;s(this.context,this,"Bold",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,ii,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return r("italic",this._I,ii,this._isNull),this._I},set:function(n){this._I=n;s(this.context,this,"Italic",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikethrough",{get:function(){return r("strikethrough",this._S,ii,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"Strikethrough",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return r("underline",this._U,ii,this._isNull),this._U},set:function(n){this._U=n;s(this.context,this,"Underline",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["color","italic","bold","underline","strikethrough"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Bold)||(this._B=i.Bold);u(i.Color)||(this._C=i.Color);u(i.Italic)||(this._I=i.Italic);u(i.Strikethrough)||(this._S=i.Strikethrough);u(i.Underline)||(this._U=i.Underline)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{bold:this._B,color:this._C,italic:this._I,strikethrough:this._S,underline:this._U},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalRangeFont=oh;sh="ConditionalRangeFill";hh=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeFill"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,sh,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["color"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype.clear=function(){h(this.context,this,"Clear",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalRangeFill=hh;wi="ConditionalRangeBorder";ch=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"ConditionalRangeBorder"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["sideIndex","style","color"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return r("color",this._C,wi,this._isNull),this._C},set:function(n){this._C=n;s(this.context,this,"Color",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sideIndex",{get:function(){return r("sideIndex",this._S,wi,this._isNull),this._S},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return r("style",this._St,wi,this._isNull),this._St},set:function(n){this._St=n;s(this.context,this,"Style",n,0)},enumerable:!0,configurable:!0}),t.prototype.set=function(n,t){this._recursivelySet(n,t,["style","color"],[],[])},t.prototype.update=function(n){this._recursivelyUpdate(n)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Color)||(this._C=i.Color);u(i.SideIndex)||(this._S=i.SideIndex);u(i.Style)||(this._St=i.Style)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{color:this._C,sideIndex:this._S,style:this._St},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.ConditionalRangeBorder=ch;br="ConditionalRangeBorderCollection";lh=function(i){function f(){return i!==null&&i.apply(this,arguments)||this}return __extends(f,i),Object.defineProperty(f.prototype,"_className",{get:function(){return"ConditionalRangeBorderCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_scalarPropertyNames",{get:function(){return["count"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"_navigationPropertyNames",{get:function(){return["top","bottom","left","right"]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"bottom",{get:function(){return this._B||(this._B=new n.ConditionalRangeBorder(this.context,l(this.context,this,"Bottom",!1,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"left",{get:function(){return this._L||(this._L=new n.ConditionalRangeBorder(this.context,l(this.context,this,"Left",!1,!1,4))),this._L},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"right",{get:function(){return this._R||(this._R=new n.ConditionalRangeBorder(this.context,l(this.context,this,"Right",!1,!1,4))),this._R},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"top",{get:function(){return this._T||(this._T=new n.ConditionalRangeBorder(this.context,l(this.context,this,"Top",!1,!1,4))),this._T},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"items",{get:function(){return r("items",this.m__items,br,this._isNull),this.m__items},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){return r("count",this._C,br,this._isNull),this._C},enumerable:!0,configurable:!0}),f.prototype.getItem=function(t){return new n.ConditionalRangeBorder(this.context,rt(this.context,this,[t]))},f.prototype.getItemAt=function(i){return new n.ConditionalRangeBorder(this.context,t(this.context,this,"GetItemAt",1,[i],!1,!1,null,4))},f.prototype._handleResult=function(t){var r,e,f,o;if((i.prototype._handleResult.call(this,t),!c(t))&&(r=t,v(this,r),u(r.Count)||(this._C=r.Count),g(this,r,["bottom","Bottom","left","Left","right","Right","top","Top"]),!c(r[OfficeExtension.Constants.items])))for(this.m__items=[],e=r[OfficeExtension.Constants.items],f=0;f<e.length;f++)o=new n.ConditionalRangeBorder(this.context,d(!0,this.context,this,e[f],f)),o._handleResult(e[f]),this.m__items.push(o)},f.prototype.load=function(n){return p(this,n)},f.prototype.retrieve=function(n){return w(this,n)},f.prototype._handleRetrieveResult=function(t,r){var u=this;i.prototype._handleRetrieveResult.call(this,t,r);y(this,t,r,function(t,i){return new n.ConditionalRangeBorder(u.context,d(!0,u.context,u,t,i))})},f.prototype.toJSON=function(){return a(this,{count:this._C},{bottom:this._B,left:this._L,right:this._R,top:this._T},this.m__items)},f}(OfficeExtension.ClientObject);n.ConditionalRangeBorderCollection=lh;it="Style";ah=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"Style"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyNames",{get:function(){return["builtIn","formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","name","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_scalarPropertyUpdateable",{get:function(){return[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_navigationPropertyNames",{get:function(){return["borders","font","fill"]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"borders",{get:function(){return this._B||(this._B=new n.RangeBorderCollection(this.context,l(this.context,this,"Borders",!0,!1,4))),this._B},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._F||(this._F=new n.RangeFill(this.context,l(this.context,this,"Fill",!1,!1,4))),this._F},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"font",{get:function(){return this._Fo||(this._Fo=new n.RangeFont(this.context,l(this.context,this,"Font",!1,!1,4))),this._Fo},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"builtIn",{get:function(){return r("builtIn",this._Bu,it,this._isNull),this._Bu},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"formulaHidden",{get:function(){return r("formulaHidden",this._For,it,this._isNull),this._For},set:function(n){this._For=n;s(this.context,this,"FormulaHidden",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalAlignment",{get:function(){return r("horizontalAlignment",this._H,it,this._isNull),this._H},set:function(n){this._H=n;s(this.context,this,"HorizontalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeAlignment",{get:function(){return r("includeAlignment",this._I,it,this._isNull),this._I},set:function(n){this._I=n;s(this.context,this,"IncludeAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeBorder",{get:function(){return r("includeBorder",this._In,it,this._isNull),this._In},set:function(n){this._In=n;s(this.context,this,"IncludeBorder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeFont",{get:function(){return r("includeFont",this._Inc,it,this._isNull),this._Inc},set:function(n){this._Inc=n;s(this.context,this,"IncludeFont",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeNumber",{get:function(){return r("includeNumber",this._Incl,it,this._isNull),this._Incl},set:function(n){this._Incl=n;s(this.context,this,"IncludeNumber",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includePatterns",{get:function(){return r("includePatterns",this._Inclu,it,this._isNull),this._Inclu},set:function(n){this._Inclu=n;s(this.context,this,"IncludePatterns",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeProtection",{get:function(){return r("includeProtection",this._Includ,it,this._isNull),this._Includ},set:function(n){this._Includ=n;s(this.context,this,"IncludeProtection",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"indentLevel",{get:function(){return r("indentLevel",this._Ind,it,this._isNull),this._Ind},set:function(n){this._Ind=n;s(this.context,this,"IndentLevel",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locked",{get:function(){return r("locked",this._L,it,this._isNull),this._L},set:function(n){this._L=n;s(this.context,this,"Locked",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return r("name",this._N,it,this._isNull),this._N},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return r("numberFormat",this._Nu,it,this._isNull),this._Nu},set:function(n){this._Nu=n;s(this.context,this,"NumberFormat",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatLocal",{get:function(){return r("numberFormatLocal",this._Num,it,this._isNull),this._Num},set:function(n){this._Num=n;s(this.context,this,"NumberFormatLocal",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readingOrder",{get:function(){return r("readingOrder",this._R,it,this._isNull),this._R},set:function(n){this._R=n;s(this.context,this,"ReadingOrder",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shrinkToFit",{get:function(){return r("shrinkToFit",this._S,it,this._isNull),this._S},set:function(n){this._S=n;s(this.context,this,"ShrinkToFit",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlignment",{get:function(){return r("verticalAlignment",this._V,it,this._isNull),this._V},set:function(n){this._V=n;s(this.context,this,"VerticalAlignment",n,0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrapText",{get:function(){return r("wrapText",this._W,it,this._isNull),this._W},set:function(n){this._W=n;s(this.context,this,"WrapText",n,0)},enumerable:!0,configurable:!0}),i.prototype.set=function(n,t){this._recursivelySet(n,t,["formulaHidden","horizontalAlignment","includeAlignment","includeBorder","includeFont","includeNumber","includePatterns","includeProtection","indentLevel","locked","numberFormat","numberFormatLocal","readingOrder","shrinkToFit","verticalAlignment","wrapText"],["font","fill"],["borders"])},i.prototype.update=function(n){this._recursivelyUpdate(n)},i.prototype.delete=function(){h(this.context,this,"Delete",0,[],0)},i.prototype._handleResult=function(n){if(t.prototype._handleResult.call(this,n),!c(n)){var i=n;v(this,i);u(i.BuiltIn)||(this._Bu=i.BuiltIn);u(i.FormulaHidden)||(this._For=i.FormulaHidden);u(i.HorizontalAlignment)||(this._H=i.HorizontalAlignment);u(i.IncludeAlignment)||(this._I=i.IncludeAlignment);u(i.IncludeBorder)||(this._In=i.IncludeBorder);u(i.IncludeFont)||(this._Inc=i.IncludeFont);u(i.IncludeNumber)||(this._Incl=i.IncludeNumber);u(i.IncludePatterns)||(this._Inclu=i.IncludePatterns);u(i.IncludeProtection)||(this._Includ=i.IncludeProtection);u(i.IndentLevel)||(this._Ind=i.IndentLevel);u(i.Locked)||(this._L=i.Locked);u(i.Name)||(this._N=i.Name);u(i.NumberFormat)||(this._Nu=i.NumberFormat);u(i.NumberFormatLocal)||(this._Num=i.NumberFormatLocal);u(i.ReadingOrder)||(this._R=i.ReadingOrder);u(i.ShrinkToFit)||(this._S=i.ShrinkToFit);u(i.VerticalAlignment)||(this._V=i.VerticalAlignment);u(i.WrapText)||(this._W=i.WrapText);g(this,i,["borders","Borders","fill","Fill","font","Font"])}},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(n,i){t.prototype._handleRetrieveResult.call(this,n,i);y(this,n,i)},i.prototype.toJSON=function(){return a(this,{builtIn:this._Bu,formulaHidden:this._For,horizontalAlignment:this._H,includeAlignment:this._I,includeBorder:this._In,includeFont:this._Inc,includeNumber:this._Incl,includePatterns:this._Inclu,includeProtection:this._Includ,indentLevel:this._Ind,locked:this._L,name:this._N,numberFormat:this._Nu,numberFormatLocal:this._Num,readingOrder:this._R,shrinkToFit:this._S,verticalAlignment:this._V,wrapText:this._W},{borders:this._B,fill:this._F,font:this._Fo})},i.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},i}(OfficeExtension.ClientObject);n.Style=ah;vh="StyleCollection";yh=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_className",{get:function(){return"StyleCollection"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_isCollection",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"items",{get:function(){return r("items",this.m__items,vh,this._isNull),this.m__items},enumerable:!0,configurable:!0}),i.prototype.add=function(n){h(this.context,this,"Add",0,[n],0)},i.prototype.getItem=function(t){return new n.Style(this.context,rt(this.context,this,[t]))},i.prototype._handleResult=function(i){var u,f,r,e;if((t.prototype._handleResult.call(this,i),!c(i))&&(u=i,v(this,u),!c(u[OfficeExtension.Constants.items])))for(this.m__items=[],f=u[OfficeExtension.Constants.items],r=0;r<f.length;r++)e=new n.Style(this.context,d(!0,this.context,this,f[r],r)),e._handleResult(f[r]),this.m__items.push(e)},i.prototype.load=function(n){return p(this,n)},i.prototype.retrieve=function(n){return w(this,n)},i.prototype._handleRetrieveResult=function(i,r){var u=this;t.prototype._handleRetrieveResult.call(this,i,r);y(this,i,r,function(t,i){return new n.Style(u.context,d(!0,u.context,u,t,i))})},i.prototype.toJSON=function(){return a(this,{},{},this.m__items)},i}(OfficeExtension.ClientObject);n.StyleCollection=yh;tl="InternalTest";ph=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"InternalTest"},enumerable:!0,configurable:!0}),t.prototype.delay=function(n){var i=h(this.context,this,"Delay",0,[n],0),t=new OfficeExtension.ClientResult;return k(this,i,t),t},t.prototype.firstPartyMethod=function(){o("InternalTest.firstPartyMethod",e,"1.7",f);h(this.context,this,"FirstPartyMethod",1,[],5)},t.prototype.triggerMessage=function(n,t,i,r){o("InternalTest.triggerMessage",e,"1.7",f);h(this.context,this,"TriggerMessage",0,[n,t,i,r],0)},t.prototype.triggerPostProcess=function(){o("InternalTest.triggerPostProcess",e,"1.7",f);h(this.context,this,"TriggerPostProcess",0,[],0)},t.prototype.triggerTestEvent=function(n,t){o("InternalTest.triggerTestEvent",e,"1.7",f);h(this.context,this,"TriggerTestEvent",0,[n,t],0)},t.prototype.triggerTestEventWithFilter=function(n,t,i){o("InternalTest.triggerTestEventWithFilter",e,"1.7",f);h(this.context,this,"TriggerTestEventWithFilter",0,[n,t,i],0)},t.prototype._RegisterTest1Event=function(){o("InternalTest._RegisterTest1Event",e,"1.7",f);h(this.context,this,"_RegisterTest1Event",0,[],0)},t.prototype._RegisterTestEvent=function(){o("InternalTest._RegisterTestEvent",e,"1.7",f);h(this.context,this,"_RegisterTestEvent",0,[],0)},t.prototype._UnregisterTest1Event=function(){o("InternalTest._UnregisterTest1Event",e,"1.7",f);h(this.context,this,"_UnregisterTest1Event",0,[],0)},t.prototype._UnregisterTestEvent=function(){o("InternalTest._UnregisterTestEvent",e,"1.7",f);h(this.context,this,"_UnregisterTestEvent",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},Object.defineProperty(t.prototype,"onTest1Event",{get:function(){var n=this;return o("InternalTest.onTest1Event",e,"1.7",f),this.m_test1Event||(this.m_test1Event=new OfficeExtension.GenericEventHandlers(this.context,this,"Test1Event",{eventType:2,registerFunc:function(){return n._RegisterTest1Event()},unregisterFunc:function(){return n._UnregisterTest1Event()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var i={prop1:t.prop1,worksheet:n.context.workbook.worksheets.getItem(t.worksheetId)};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_test1Event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTestEvent",{get:function(){var n=this;return o("InternalTest.onTestEvent",e,"1.7",f),this.m_testEvent||(this.m_testEvent=new OfficeExtension.GenericEventHandlers(this.context,this,"TestEvent",{eventType:1,registerFunc:function(){return n._RegisterTestEvent()},unregisterFunc:function(){return n._UnregisterTestEvent()},getTargetIdFunc:function(){return""},eventArgsTransformFunc:function(t){var i={prop1:t.prop1,worksheet:n.context.workbook.worksheets.getItem(t.worksheetId)};return OfficeExtension.Utility._createPromiseFromResult(i)}})),this.m_testEvent},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.InternalTest=ph;il="DataConnectionCollection";wh=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"DataConnectionCollection"},enumerable:!0,configurable:!0}),t.prototype.refreshAll=function(){h(this.context,this,"RefreshAll",0,[],0)},t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{},{})},t}(OfficeExtension.ClientObject);n.DataConnectionCollection=wh,function(n){n.range="Range";n.table="Table";n.text="Text"}(rl=n.BindingType||(n.BindingType={})),function(n){n.edgeTop="EdgeTop";n.edgeBottom="EdgeBottom";n.edgeLeft="EdgeLeft";n.edgeRight="EdgeRight";n.insideVertical="InsideVertical";n.insideHorizontal="InsideHorizontal";n.diagonalDown="DiagonalDown";n.diagonalUp="DiagonalUp"}(ul=n.BorderIndex||(n.BorderIndex={})),function(n){n.none="None";n.continuous="Continuous";n.dash="Dash";n.dashDot="DashDot";n.dashDotDot="DashDotDot";n.dot="Dot";n.double="Double";n.slantDashDot="SlantDashDot"}(fl=n.BorderLineStyle||(n.BorderLineStyle={})),function(n){n.hairline="Hairline";n.thin="Thin";n.medium="Medium";n.thick="Thick"}(el=n.BorderWeight||(n.BorderWeight={})),function(n){n.automatic="Automatic";n.automaticExceptTables="AutomaticExceptTables";n.manual="Manual"}(ol=n.CalculationMode||(n.CalculationMode={})),function(n){n.recalculate="Recalculate";n.full="Full";n.fullRebuild="FullRebuild"}(sl=n.CalculationType||(n.CalculationType={})),function(n){n.all="All";n.formats="Formats";n.contents="Contents";n.hyperlinks="Hyperlinks";n.removeHyperlinks="RemoveHyperlinks"}(hl=n.ClearApplyTo||(n.ClearApplyTo={})),function(n){n.none="None";n.hundreds="Hundreds";n.thousands="Thousands";n.tenThousands="TenThousands";n.hundredThousands="HundredThousands";n.millions="Millions";n.tenMillions="TenMillions";n.hundredMillions="HundredMillions";n.billions="Billions";n.trillions="Trillions";n.custom="Custom"}(cl=n.ChartAxisDisplayUnit||(n.ChartAxisDisplayUnit={})),function(n){n.days="Days";n.months="Months";n.years="Years"}(ll=n.ChartAxisTimeUnit||(n.ChartAxisTimeUnit={})),function(n){n.automatic="Automatic";n.textAxis="TextAxis";n.dateAxis="DateAxis"}(al=n.ChartAxisCategoryType||(n.ChartAxisCategoryType={})),function(n){n.none="None";n.continuous="Continuous";n.dash="Dash";n.dashDot="DashDot";n.dashDotDot="DashDotDot";n.dot="Dot";n.grey25="Grey25";n.grey50="Grey50";n.grey75="Grey75";n.automatic="Automatic";n.roundDot="RoundDot"}(vl=n.ChartLineStyle||(n.ChartLineStyle={})),function(n){n.invalid="Invalid";n.none="None";n.center="Center";n.insideEnd="InsideEnd";n.insideBase="InsideBase";n.outsideEnd="OutsideEnd";n.left="Left";n.right="Right";n.top="Top";n.bottom="Bottom";n.bestFit="BestFit";n.callout="Callout"}(yl=n.ChartDataLabelPosition||(n.ChartDataLabelPosition={})),function(n){n.automatic="Automatic";n.top="Top";n.bottom="Bottom";n.left="Left";n.right="Right"}(pl=n.ChartTitlePosition||(n.ChartTitlePosition={})),function(n){n.invalid="Invalid";n.top="Top";n.bottom="Bottom";n.left="Left";n.right="Right";n.corner="Corner";n.custom="Custom"}(wl=n.ChartLegendPosition||(n.ChartLegendPosition={})),function(n){n.invalid="Invalid";n.automatic="Automatic";n.none="None";n.square="Square";n.diamond="Diamond";n.triangle="Triangle";n.x="X";n.star="Star";n.dot="Dot";n.dash="Dash";n.circle="Circle";n.plus="Plus";n.picture="Picture"}(bl=n.ChartMarkerStyle||(n.ChartMarkerStyle={})),function(n){n.auto="Auto";n.columns="Columns";n.rows="Rows"}(kl=n.ChartSeriesBy||(n.ChartSeriesBy={})),function(n){n.center="Center";n.left="Left";n.right="Right";n.justify="Justify";n.distributed="Distributed"}(dl=n.ChartTextHorizontalAlignment||(n.ChartTextHorizontalAlignment={})),function(n){n.center="Center";n.bottom="Bottom";n.top="Top";n.justify="Justify";n.distributed="Distributed"}(gl=n.ChartTextVerticalAlignment||(n.ChartTextVerticalAlignment={})),function(n){n.invalid="Invalid";n.columnClustered="ColumnClustered";n.columnStacked="ColumnStacked";n.columnStacked100="ColumnStacked100";n._3DColumnClustered="3DColumnClustered";n._3DColumnStacked="3DColumnStacked";n._3DColumnStacked100="3DColumnStacked100";n.barClustered="BarClustered";n.barStacked="BarStacked";n.barStacked100="BarStacked100";n._3DBarClustered="3DBarClustered";n._3DBarStacked="3DBarStacked";n._3DBarStacked100="3DBarStacked100";n.lineStacked="LineStacked";n.lineStacked100="LineStacked100";n.lineMarkers="LineMarkers";n.lineMarkersStacked="LineMarkersStacked";n.lineMarkersStacked100="LineMarkersStacked100";n.pieOfPie="PieOfPie";n.pieExploded="PieExploded";n._3DPieExploded="3DPieExploded";n.barOfPie="BarOfPie";n.xyscatterSmooth="XYScatterSmooth";n.xyscatterSmoothNoMarkers="XYScatterSmoothNoMarkers";n.xyscatterLines="XYScatterLines";n.xyscatterLinesNoMarkers="XYScatterLinesNoMarkers";n.areaStacked="AreaStacked";n.areaStacked100="AreaStacked100";n._3DAreaStacked="3DAreaStacked";n._3DAreaStacked100="3DAreaStacked100";n.doughnutExploded="DoughnutExploded";n.radarMarkers="RadarMarkers";n.radarFilled="RadarFilled";n.surface="Surface";n.surfaceWireframe="SurfaceWireframe";n.surfaceTopView="SurfaceTopView";n.surfaceTopViewWireframe="SurfaceTopViewWireframe";n.bubble="Bubble";n.bubble3DEffect="Bubble3DEffect";n.stockHLC="StockHLC";n.stockOHLC="StockOHLC";n.stockVHLC="StockVHLC";n.stockVOHLC="StockVOHLC";n.cylinderColClustered="CylinderColClustered";n.cylinderColStacked="CylinderColStacked";n.cylinderColStacked100="CylinderColStacked100";n.cylinderBarClustered="CylinderBarClustered";n.cylinderBarStacked="CylinderBarStacked";n.cylinderBarStacked100="CylinderBarStacked100";n.cylinderCol="CylinderCol";n.coneColClustered="ConeColClustered";n.coneColStacked="ConeColStacked";n.coneColStacked100="ConeColStacked100";n.coneBarClustered="ConeBarClustered";n.coneBarStacked="ConeBarStacked";n.coneBarStacked100="ConeBarStacked100";n.coneCol="ConeCol";n.pyramidColClustered="PyramidColClustered";n.pyramidColStacked="PyramidColStacked";n.pyramidColStacked100="PyramidColStacked100";n.pyramidBarClustered="PyramidBarClustered";n.pyramidBarStacked="PyramidBarStacked";n.pyramidBarStacked100="PyramidBarStacked100";n.pyramidCol="PyramidCol";n._3DColumn="3DColumn";n.line="Line";n._3DLine="3DLine";n._3DPie="3DPie";n.pie="Pie";n.xyscatter="XYScatter";n._3DArea="3DArea";n.area="Area";n.doughnut="Doughnut";n.radar="Radar"}(na=n.ChartType||(n.ChartType={})),function(n){n.none="None";n.single="Single"}(ta=n.ChartUnderlineStyle||(n.ChartUnderlineStyle={})),function(n){n.automatic="Automatic";n.none="None";n.cellMidPoint="CellMidPoint"}(ia=n.ConditionalDataBarAxisFormat||(n.ConditionalDataBarAxisFormat={})),function(n){n.context="Context";n.leftToRight="LeftToRight";n.rightToLeft="RightToLeft"}(ra=n.ConditionalDataBarDirection||(n.ConditionalDataBarDirection={})),function(n){n.top="Top";n.bottom="Bottom"}(ua=n.ConditionalFormatDirection||(n.ConditionalFormatDirection={})),function(n){n.custom="Custom";n.dataBar="DataBar";n.colorScale="ColorScale";n.iconSet="IconSet";n.topBottom="TopBottom";n.presetCriteria="PresetCriteria";n.containsText="ContainsText";n.cellValue="CellValue"}(fa=n.ConditionalFormatType||(n.ConditionalFormatType={})),function(n){n.invalid="Invalid";n.automatic="Automatic";n.lowestValue="LowestValue";n.highestValue="HighestValue";n.number="Number";n.percent="Percent";n.formula="Formula";n.percentile="Percentile"}(ea=n.ConditionalFormatRuleType||(n.ConditionalFormatRuleType={})),function(n){n.invalid="Invalid";n.number="Number";n.percent="Percent";n.formula="Formula";n.percentile="Percentile"}(oa=n.ConditionalFormatIconRuleType||(n.ConditionalFormatIconRuleType={})),function(n){n.invalid="Invalid";n.lowestValue="LowestValue";n.highestValue="HighestValue";n.number="Number";n.percent="Percent";n.formula="Formula";n.percentile="Percentile"}(sa=n.ConditionalFormatColorCriterionType||(n.ConditionalFormatColorCriterionType={})),function(n){n.invalid="Invalid";n.topItems="TopItems";n.topPercent="TopPercent";n.bottomItems="BottomItems";n.bottomPercent="BottomPercent"}(ha=n.ConditionalTopBottomCriterionType||(n.ConditionalTopBottomCriterionType={})),function(n){n.invalid="Invalid";n.blanks="Blanks";n.nonBlanks="NonBlanks";n.errors="Errors";n.nonErrors="NonErrors";n.yesterday="Yesterday";n.today="Today";n.tomorrow="Tomorrow";n.lastSevenDays="LastSevenDays";n.lastWeek="LastWeek";n.thisWeek="ThisWeek";n.nextWeek="NextWeek";n.lastMonth="LastMonth";n.thisMonth="ThisMonth";n.nextMonth="NextMonth";n.aboveAverage="AboveAverage";n.belowAverage="BelowAverage";n.equalOrAboveAverage="EqualOrAboveAverage";n.equalOrBelowAverage="EqualOrBelowAverage";n.oneStdDevAboveAverage="OneStdDevAboveAverage";n.oneStdDevBelowAverage="OneStdDevBelowAverage";n.twoStdDevAboveAverage="TwoStdDevAboveAverage";n.twoStdDevBelowAverage="TwoStdDevBelowAverage";n.threeStdDevAboveAverage="ThreeStdDevAboveAverage";n.threeStdDevBelowAverage="ThreeStdDevBelowAverage";n.uniqueValues="UniqueValues";n.duplicateValues="DuplicateValues"}(ca=n.ConditionalFormatPresetCriterion||(n.ConditionalFormatPresetCriterion={})),function(n){n.invalid="Invalid";n.contains="Contains";n.notContains="NotContains";n.beginsWith="BeginsWith";n.endsWith="EndsWith"}(la=n.ConditionalTextOperator||(n.ConditionalTextOperator={})),function(n){n.invalid="Invalid";n.between="Between";n.notBetween="NotBetween";n.equalTo="EqualTo";n.notEqualTo="NotEqualTo";n.greaterThan="GreaterThan";n.lessThan="LessThan";n.greaterThanOrEqual="GreaterThanOrEqual";n.lessThanOrEqual="LessThanOrEqual"}(aa=n.ConditionalCellValueOperator||(n.ConditionalCellValueOperator={})),function(n){n.invalid="Invalid";n.greaterThan="GreaterThan";n.greaterThanOrEqual="GreaterThanOrEqual"}(va=n.ConditionalIconCriterionOperator||(n.ConditionalIconCriterionOperator={})),function(n){n.edgeTop="EdgeTop";n.edgeBottom="EdgeBottom";n.edgeLeft="EdgeLeft";n.edgeRight="EdgeRight"}(ya=n.ConditionalRangeBorderIndex||(n.ConditionalRangeBorderIndex={})),function(n){n.none="None";n.continuous="Continuous";n.dash="Dash";n.dashDot="DashDot";n.dashDotDot="DashDotDot";n.dot="Dot"}(pa=n.ConditionalRangeBorderLineStyle||(n.ConditionalRangeBorderLineStyle={})),function(n){n.none="None";n.single="Single";n.double="Double"}(wa=n.ConditionalRangeFontUnderlineStyle||(n.ConditionalRangeFontUnderlineStyle={})),function(n){n.up="Up";n.left="Left"}(ba=n.DeleteShiftDirection||(n.DeleteShiftDirection={})),function(n){n.unknown="Unknown";n.aboveAverage="AboveAverage";n.allDatesInPeriodApril="AllDatesInPeriodApril";n.allDatesInPeriodAugust="AllDatesInPeriodAugust";n.allDatesInPeriodDecember="AllDatesInPeriodDecember";n.allDatesInPeriodFebruray="AllDatesInPeriodFebruray";n.allDatesInPeriodJanuary="AllDatesInPeriodJanuary";n.allDatesInPeriodJuly="AllDatesInPeriodJuly";n.allDatesInPeriodJune="AllDatesInPeriodJune";n.allDatesInPeriodMarch="AllDatesInPeriodMarch";n.allDatesInPeriodMay="AllDatesInPeriodMay";n.allDatesInPeriodNovember="AllDatesInPeriodNovember";n.allDatesInPeriodOctober="AllDatesInPeriodOctober";n.allDatesInPeriodQuarter1="AllDatesInPeriodQuarter1";n.allDatesInPeriodQuarter2="AllDatesInPeriodQuarter2";n.allDatesInPeriodQuarter3="AllDatesInPeriodQuarter3";n.allDatesInPeriodQuarter4="AllDatesInPeriodQuarter4";n.allDatesInPeriodSeptember="AllDatesInPeriodSeptember";n.belowAverage="BelowAverage";n.lastMonth="LastMonth";n.lastQuarter="LastQuarter";n.lastWeek="LastWeek";n.lastYear="LastYear";n.nextMonth="NextMonth";n.nextQuarter="NextQuarter";n.nextWeek="NextWeek";n.nextYear="NextYear";n.thisMonth="ThisMonth";n.thisQuarter="ThisQuarter";n.thisWeek="ThisWeek";n.thisYear="ThisYear";n.today="Today";n.tomorrow="Tomorrow";n.yearToDate="YearToDate";n.yesterday="Yesterday"}(ka=n.DynamicFilterCriteria||(n.DynamicFilterCriteria={})),function(n){n.year="Year";n.month="Month";n.day="Day";n.hour="Hour";n.minute="Minute";n.second="Second"}(da=n.FilterDatetimeSpecificity||(n.FilterDatetimeSpecificity={})),function(n){n.bottomItems="BottomItems";n.bottomPercent="BottomPercent";n.cellColor="CellColor";n.dynamic="Dynamic";n.fontColor="FontColor";n.values="Values";n.topItems="TopItems";n.topPercent="TopPercent";n.icon="Icon";n.custom="Custom"}(ga=n.FilterOn||(n.FilterOn={})),function(n){n.and="And";n.or="Or"}(nv=n.FilterOperator||(n.FilterOperator={})),function(n){n.general="General";n.left="Left";n.center="Center";n.right="Right";n.fill="Fill";n.justify="Justify";n.centerAcrossSelection="CenterAcrossSelection";n.distributed="Distributed"}(tv=n.HorizontalAlignment||(n.HorizontalAlignment={})),function(n){n.invalid="Invalid";n.threeArrows="ThreeArrows";n.threeArrowsGray="ThreeArrowsGray";n.threeFlags="ThreeFlags";n.threeTrafficLights1="ThreeTrafficLights1";n.threeTrafficLights2="ThreeTrafficLights2";n.threeSigns="ThreeSigns";n.threeSymbols="ThreeSymbols";n.threeSymbols2="ThreeSymbols2";n.fourArrows="FourArrows";n.fourArrowsGray="FourArrowsGray";n.fourRedToBlack="FourRedToBlack";n.fourRating="FourRating";n.fourTrafficLights="FourTrafficLights";n.fiveArrows="FiveArrows";n.fiveArrowsGray="FiveArrowsGray";n.fiveRating="FiveRating";n.fiveQuarters="FiveQuarters";n.threeStars="ThreeStars";n.threeTriangles="ThreeTriangles";n.fiveBoxes="FiveBoxes"}(iv=n.IconSet||(n.IconSet={})),function(n){n.fit="Fit";n.fitAndCenter="FitAndCenter";n.fill="Fill"}(rv=n.ImageFittingMode||(n.ImageFittingMode={})),function(n){n.down="Down";n.right="Right"}(uv=n.InsertShiftDirection||(n.InsertShiftDirection={})),function(n){n.worksheet="Worksheet";n.workbook="Workbook"}(fv=n.NamedItemScope||(n.NamedItemScope={})),function(n){n.string="String";n.integer="Integer";n.double="Double";n.boolean="Boolean";n.range="Range";n.error="Error";n.array="Array"}(ev=n.NamedItemType||(n.NamedItemType={})),function(n){n.none="None";n.single="Single";n.double="Double";n.singleAccountant="SingleAccountant";n.doubleAccountant="DoubleAccountant"}(ov=n.RangeUnderlineStyle||(n.RangeUnderlineStyle={})),function(n){n.visible="Visible";n.hidden="Hidden";n.veryHidden="VeryHidden"}(sv=n.SheetVisibility||(n.SheetVisibility={})),function(n){n.unknown="Unknown";n.empty="Empty";n.string="String";n.integer="Integer";n.double="Double";n.boolean="Boolean";n.error="Error";n.richValue="RichValue"}(hv=n.RangeValueType||(n.RangeValueType={})),function(n){n.rows="Rows";n.columns="Columns"}(cv=n.SortOrientation||(n.SortOrientation={})),function(n){n.value="Value";n.cellColor="CellColor";n.fontColor="FontColor";n.icon="Icon"}(lv=n.SortOn||(n.SortOn={})),function(n){n.normal="Normal";n.textAsNumber="TextAsNumber"}(av=n.SortDataOption||(n.SortDataOption={})),function(n){n.pinYin="PinYin";n.strokeCount="StrokeCount"}(vv=n.SortMethod||(n.SortMethod={})),function(n){n.top="Top";n.center="Center";n.bottom="Bottom";n.justify="Justify";n.distributed="Distributed"}(yv=n.VerticalAlignment||(n.VerticalAlignment={})),function(n){n.number="Number";n.boolean="Boolean";n.date="Date";n.string="String";n.float="Float"}(pv=n.DocumentPropertyType||(n.DocumentPropertyType={})),function(n){n.local="Local";n.remote="Remote"}(wv=n.EventSource||(n.EventSource={})),function(n){n.others="Others";n.rangeEdited="RangeEdited";n.rowInserted="RowInserted";n.rowDeleted="RowDeleted";n.columnInserted="ColumnInserted";n.columnDeleted="ColumnDeleted";n.cellInserted="CellInserted";n.cellDeleted="CellDeleted"}(bv=n.DataChangeType||(n.DataChangeType={})),function(n){n.worksheetChanged="WorksheetChanged";n.worksheetSelectionChanged="WorksheetSelectionChanged";n.worksheetAdded="WorksheetAdded";n.worksheetActivated="WorksheetActivated";n.worksheetDeactivated="WorksheetDeactivated";n.tableChanged="TableChanged";n.tableSelectionChanged="TableSelectionChanged";n.worksheetDeleted="WorksheetDeleted";n.chartAdded="ChartAdded";n.chartActivated="ChartActivated";n.chartDeactivated="ChartDeactivated";n.chartDeleted="ChartDeleted";n.worksheetCalculated="WorksheetCalculated"}(st=n.EventType||(n.EventType={})),function(n){n.title="Title";n.subject="Subject";n.author="Author";n.keywords="Keywords";n.comments="Comments";n.template="Template";n.lastAuth="LastAuth";n.revision="Revision";n.appName="AppName";n.lastPrint="LastPrint";n.creation="Creation";n.lastSave="LastSave";n.category="Category";n.format="Format";n.manager="Manager";n.company="Company"}(kv=n.DocumentPropertyItem||(n.DocumentPropertyItem={})),function(n){n.normal="Normal";n.unlocked="Unlocked";n.none="None"}(dv=n.ProtectionSelectionMode||(n.ProtectionSelectionMode={})),function(n){n.portrait="Portrait";n.landscape="Landscape"}(gv=n.PageOrientation||(n.PageOrientation={})),function(n){n.letter="Letter";n.letterSmall="LetterSmall";n.tabloid="Tabloid";n.ledger="Ledger";n.legal="Legal";n.statement="Statement";n.executive="Executive";n.a3="A3";n.a4="A4";n.a4Small="A4Small";n.a5="A5";n.b4="B4";n.b5="B5";n.folio="Folio";n.quatro="Quatro";n.paper10x14="Paper10x14";n.paper11x17="Paper11x17";n.note="Note";n.envelope9="Envelope9";n.envelope10="Envelope10";n.envelope11="Envelope11";n.envelope12="Envelope12";n.envelope14="Envelope14";n.csheet="Csheet";n.dsheet="Dsheet";n.esheet="Esheet";n.envelopeDL="EnvelopeDL";n.envelopeC5="EnvelopeC5";n.envelopeC3="EnvelopeC3";n.envelopeC4="EnvelopeC4";n.envelopeC6="EnvelopeC6";n.envelopeC65="EnvelopeC65";n.envelopeB4="EnvelopeB4";n.envelopeB5="EnvelopeB5";n.envelopeB6="EnvelopeB6";n.envelopeItaly="EnvelopeItaly";n.envelopeMonarch="EnvelopeMonarch";n.envelopePersonal="EnvelopePersonal";n.fanfoldUS="FanfoldUS";n.fanfoldStdGerman="FanfoldStdGerman";n.fanfoldLegalGerman="FanfoldLegalGerman"}(ny=n.PaperType||(n.PaperType={})),function(n){n.context="Context";n.leftToRight="LeftToRight";n.rightToLeft="RightToLeft"}(ty=n.ReadingOrder||(n.ReadingOrder={})),function(n){n.normal="Normal";n.comma="Comma";n.currency="Currency";n.percent="Percent";n.wholeComma="WholeComma";n.wholeDollar="WholeDollar";n.hlink="Hlink";n.hlinkTrav="HlinkTrav";n.note="Note";n.warningText="WarningText";n.emphasis1="Emphasis1";n.emphasis2="Emphasis2";n.emphasis3="Emphasis3";n.sheetTitle="SheetTitle";n.heading1="Heading1";n.heading2="Heading2";n.heading3="Heading3";n.heading4="Heading4";n.input="Input";n.output="Output";n.calculation="Calculation";n.checkCell="CheckCell";n.linkedCell="LinkedCell";n.total="Total";n.good="Good";n.bad="Bad";n.neutral="Neutral";n.accent1="Accent1";n.accent1_20="Accent1_20";n.accent1_40="Accent1_40";n.accent1_60="Accent1_60";n.accent2="Accent2";n.accent2_20="Accent2_20";n.accent2_40="Accent2_40";n.accent2_60="Accent2_60";n.accent3="Accent3";n.accent3_20="Accent3_20";n.accent3_40="Accent3_40";n.accent3_60="Accent3_60";n.accent4="Accent4";n.accent4_20="Accent4_20";n.accent4_40="Accent4_40";n.accent4_60="Accent4_60";n.accent5="Accent5";n.accent5_20="Accent5_20";n.accent5_40="Accent5_40";n.accent5_60="Accent5_60";n.accent6="Accent6";n.accent6_20="Accent6_20";n.accent6_40="Accent6_40";n.accent6_60="Accent6_60";n.explanatoryText="ExplanatoryText"}(iy=n.BuiltInStyle||(n.BuiltInStyle={})),function(n){n.errorsDisplayed="ErrorsDisplayed";n.errorsBlank="ErrorsBlank";n.errorsDash="ErrorsDash";n.errorsNotAvailable="ErrorsNotAvailable"}(ry=n.PrintErrorType||(n.PrintErrorType={})),function(n){n.none="None";n.before="Before";n.after="After";n.beginning="Beginning";n.end="End"}(uy=n.WorksheetPositionType||(n.WorksheetPositionType={}));kr="FunctionResult";i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_className",{get:function(){return"FunctionResult<T>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_scalarPropertyNames",{get:function(){return["error","value"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return r("error",this._E,kr,this._isNull),this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return r("value",this._V,kr,this._isNull),this._V},enumerable:!0,configurable:!0}),t.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i);u(i.Error)||(this._E=i.Error);u(i.Value)||(this._V=i.Value)}},t.prototype.load=function(n){return p(this,n)},t.prototype.retrieve=function(n){return w(this,n)},t.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},t.prototype.toJSON=function(){return a(this,{error:this._E,value:this._V},{})},t.prototype.ensureUnchanged=function(n){b(this.context,this,n);return},t}(OfficeExtension.ClientObject);n.FunctionResult=i;fy="Functions";bh=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return __extends(r,n),Object.defineProperty(r.prototype,"_className",{get:function(){return"Functions"},enumerable:!0,configurable:!0}),r.prototype.abs=function(n){return new i(this.context,t(this.context,this,"Abs",0,[n],!1,!0,null,0))},r.prototype.accrInt=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"AccrInt",0,[n,r,u,f,e,o,s,h],!1,!0,null,0))},r.prototype.accrIntM=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"AccrIntM",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.acos=function(n){return new i(this.context,t(this.context,this,"Acos",0,[n],!1,!0,null,0))},r.prototype.acosh=function(n){return new i(this.context,t(this.context,this,"Acosh",0,[n],!1,!0,null,0))},r.prototype.acot=function(n){return new i(this.context,t(this.context,this,"Acot",0,[n],!1,!0,null,0))},r.prototype.acoth=function(n){return new i(this.context,t(this.context,this,"Acoth",0,[n],!1,!0,null,0))},r.prototype.amorDegrc=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"AmorDegrc",0,[n,r,u,f,e,o,s],!1,!0,null,0))},r.prototype.amorLinc=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"AmorLinc",0,[n,r,u,f,e,o,s],!1,!0,null,0))},r.prototype.and=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"And",0,[r],!1,!0,null,0))},r.prototype.arabic=function(n){return new i(this.context,t(this.context,this,"Arabic",0,[n],!1,!0,null,0))},r.prototype.areas=function(n){return new i(this.context,t(this.context,this,"Areas",0,[n],!1,!0,null,0))},r.prototype.asc=function(n){return new i(this.context,t(this.context,this,"Asc",0,[n],!1,!0,null,0))},r.prototype.asin=function(n){return new i(this.context,t(this.context,this,"Asin",0,[n],!1,!0,null,0))},r.prototype.asinh=function(n){return new i(this.context,t(this.context,this,"Asinh",0,[n],!1,!0,null,0))},r.prototype.atan=function(n){return new i(this.context,t(this.context,this,"Atan",0,[n],!1,!0,null,0))},r.prototype.atan2=function(n,r){return new i(this.context,t(this.context,this,"Atan2",0,[n,r],!1,!0,null,0))},r.prototype.atanh=function(n){return new i(this.context,t(this.context,this,"Atanh",0,[n],!1,!0,null,0))},r.prototype.aveDev=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"AveDev",0,[r],!1,!0,null,0))},r.prototype.average=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Average",0,[r],!1,!0,null,0))},r.prototype.averageA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"AverageA",0,[r],!1,!0,null,0))},r.prototype.averageIf=function(n,r,u){return new i(this.context,t(this.context,this,"AverageIf",0,[n,r,u],!1,!0,null,0))},r.prototype.averageIfs=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"AverageIfs",0,[n,u],!1,!0,null,0))},r.prototype.bahtText=function(n){return new i(this.context,t(this.context,this,"BahtText",0,[n],!1,!0,null,0))},r.prototype.base=function(n,r,u){return new i(this.context,t(this.context,this,"Base",0,[n,r,u],!1,!0,null,0))},r.prototype.besselI=function(n,r){return new i(this.context,t(this.context,this,"BesselI",0,[n,r],!1,!0,null,0))},r.prototype.besselJ=function(n,r){return new i(this.context,t(this.context,this,"BesselJ",0,[n,r],!1,!0,null,0))},r.prototype.besselK=function(n,r){return new i(this.context,t(this.context,this,"BesselK",0,[n,r],!1,!0,null,0))},r.prototype.besselY=function(n,r){return new i(this.context,t(this.context,this,"BesselY",0,[n,r],!1,!0,null,0))},r.prototype.beta_Dist=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Beta_Dist",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.beta_Inv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Beta_Inv",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.bin2Dec=function(n){return new i(this.context,t(this.context,this,"Bin2Dec",0,[n],!1,!0,null,0))},r.prototype.bin2Hex=function(n,r){return new i(this.context,t(this.context,this,"Bin2Hex",0,[n,r],!1,!0,null,0))},r.prototype.bin2Oct=function(n,r){return new i(this.context,t(this.context,this,"Bin2Oct",0,[n,r],!1,!0,null,0))},r.prototype.binom_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Binom_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.binom_Dist_Range=function(n,r,u,f){return new i(this.context,t(this.context,this,"Binom_Dist_Range",0,[n,r,u,f],!1,!0,null,0))},r.prototype.binom_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Binom_Inv",0,[n,r,u],!1,!0,null,0))},r.prototype.bitand=function(n,r){return new i(this.context,t(this.context,this,"Bitand",0,[n,r],!1,!0,null,0))},r.prototype.bitlshift=function(n,r){return new i(this.context,t(this.context,this,"Bitlshift",0,[n,r],!1,!0,null,0))},r.prototype.bitor=function(n,r){return new i(this.context,t(this.context,this,"Bitor",0,[n,r],!1,!0,null,0))},r.prototype.bitrshift=function(n,r){return new i(this.context,t(this.context,this,"Bitrshift",0,[n,r],!1,!0,null,0))},r.prototype.bitxor=function(n,r){return new i(this.context,t(this.context,this,"Bitxor",0,[n,r],!1,!0,null,0))},r.prototype.ceiling_Math=function(n,r,u){return new i(this.context,t(this.context,this,"Ceiling_Math",0,[n,r,u],!1,!0,null,0))},r.prototype.ceiling_Precise=function(n,r){return new i(this.context,t(this.context,this,"Ceiling_Precise",0,[n,r],!1,!0,null,0))},r.prototype.char=function(n){return new i(this.context,t(this.context,this,"Char",0,[n],!1,!0,null,0))},r.prototype.chiSq_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"ChiSq_Dist",0,[n,r,u],!1,!0,null,0))},r.prototype.chiSq_Dist_RT=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Dist_RT",0,[n,r],!1,!0,null,0))},r.prototype.chiSq_Inv=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Inv",0,[n,r],!1,!0,null,0))},r.prototype.chiSq_Inv_RT=function(n,r){return new i(this.context,t(this.context,this,"ChiSq_Inv_RT",0,[n,r],!1,!0,null,0))},r.prototype.choose=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Choose",0,[n,u],!1,!0,null,0))},r.prototype.clean=function(n){return new i(this.context,t(this.context,this,"Clean",0,[n],!1,!0,null,0))},r.prototype.code=function(n){return new i(this.context,t(this.context,this,"Code",0,[n],!1,!0,null,0))},r.prototype.columns=function(n){return new i(this.context,t(this.context,this,"Columns",0,[n],!1,!0,null,0))},r.prototype.combin=function(n,r){return new i(this.context,t(this.context,this,"Combin",0,[n,r],!1,!0,null,0))},r.prototype.combina=function(n,r){return new i(this.context,t(this.context,this,"Combina",0,[n,r],!1,!0,null,0))},r.prototype.complex=function(n,r,u){return new i(this.context,t(this.context,this,"Complex",0,[n,r,u],!1,!0,null,0))},r.prototype.concatenate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Concatenate",0,[r],!1,!0,null,0))},r.prototype.confidence_Norm=function(n,r,u){return new i(this.context,t(this.context,this,"Confidence_Norm",0,[n,r,u],!1,!0,null,0))},r.prototype.confidence_T=function(n,r,u){return new i(this.context,t(this.context,this,"Confidence_T",0,[n,r,u],!1,!0,null,0))},r.prototype.convert=function(n,r,u){return new i(this.context,t(this.context,this,"Convert",0,[n,r,u],!1,!0,null,0))},r.prototype.cos=function(n){return new i(this.context,t(this.context,this,"Cos",0,[n],!1,!0,null,0))},r.prototype.cosh=function(n){return new i(this.context,t(this.context,this,"Cosh",0,[n],!1,!0,null,0))},r.prototype.cot=function(n){return new i(this.context,t(this.context,this,"Cot",0,[n],!1,!0,null,0))},r.prototype.coth=function(n){return new i(this.context,t(this.context,this,"Coth",0,[n],!1,!0,null,0))},r.prototype.count=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Count",0,[r],!1,!0,null,0))},r.prototype.countA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"CountA",0,[r],!1,!0,null,0))},r.prototype.countBlank=function(n){return new i(this.context,t(this.context,this,"CountBlank",0,[n],!1,!0,null,0))},r.prototype.countIf=function(n,r){return new i(this.context,t(this.context,this,"CountIf",0,[n,r],!1,!0,null,0))},r.prototype.countIfs=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"CountIfs",0,[r],!1,!0,null,0))},r.prototype.coupDayBs=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDayBs",0,[n,r,u,f],!1,!0,null,0))},r.prototype.coupDays=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDays",0,[n,r,u,f],!1,!0,null,0))},r.prototype.coupDaysNc=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupDaysNc",0,[n,r,u,f],!1,!0,null,0))},r.prototype.coupNcd=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupNcd",0,[n,r,u,f],!1,!0,null,0))},r.prototype.coupNum=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupNum",0,[n,r,u,f],!1,!0,null,0))},r.prototype.coupPcd=function(n,r,u,f){return new i(this.context,t(this.context,this,"CoupPcd",0,[n,r,u,f],!1,!0,null,0))},r.prototype.csc=function(n){return new i(this.context,t(this.context,this,"Csc",0,[n],!1,!0,null,0))},r.prototype.csch=function(n){return new i(this.context,t(this.context,this,"Csch",0,[n],!1,!0,null,0))},r.prototype.cumIPmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"CumIPmt",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.cumPrinc=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"CumPrinc",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.daverage=function(n,r,u){return new i(this.context,t(this.context,this,"DAverage",0,[n,r,u],!1,!0,null,0))},r.prototype.dcount=function(n,r,u){return new i(this.context,t(this.context,this,"DCount",0,[n,r,u],!1,!0,null,0))},r.prototype.dcountA=function(n,r,u){return new i(this.context,t(this.context,this,"DCountA",0,[n,r,u],!1,!0,null,0))},r.prototype.dget=function(n,r,u){return new i(this.context,t(this.context,this,"DGet",0,[n,r,u],!1,!0,null,0))},r.prototype.dmax=function(n,r,u){return new i(this.context,t(this.context,this,"DMax",0,[n,r,u],!1,!0,null,0))},r.prototype.dmin=function(n,r,u){return new i(this.context,t(this.context,this,"DMin",0,[n,r,u],!1,!0,null,0))},r.prototype.dproduct=function(n,r,u){return new i(this.context,t(this.context,this,"DProduct",0,[n,r,u],!1,!0,null,0))},r.prototype.dstDev=function(n,r,u){return new i(this.context,t(this.context,this,"DStDev",0,[n,r,u],!1,!0,null,0))},r.prototype.dstDevP=function(n,r,u){return new i(this.context,t(this.context,this,"DStDevP",0,[n,r,u],!1,!0,null,0))},r.prototype.dsum=function(n,r,u){return new i(this.context,t(this.context,this,"DSum",0,[n,r,u],!1,!0,null,0))},r.prototype.dvar=function(n,r,u){return new i(this.context,t(this.context,this,"DVar",0,[n,r,u],!1,!0,null,0))},r.prototype.dvarP=function(n,r,u){return new i(this.context,t(this.context,this,"DVarP",0,[n,r,u],!1,!0,null,0))},r.prototype.date=function(n,r,u){return new i(this.context,t(this.context,this,"Date",0,[n,r,u],!1,!0,null,0))},r.prototype.datevalue=function(n){return new i(this.context,t(this.context,this,"Datevalue",0,[n],!1,!0,null,0))},r.prototype.day=function(n){return new i(this.context,t(this.context,this,"Day",0,[n],!1,!0,null,0))},r.prototype.days=function(n,r){return new i(this.context,t(this.context,this,"Days",0,[n,r],!1,!0,null,0))},r.prototype.days360=function(n,r,u){return new i(this.context,t(this.context,this,"Days360",0,[n,r,u],!1,!0,null,0))},r.prototype.db=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Db",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.dbcs=function(n){return new i(this.context,t(this.context,this,"Dbcs",0,[n],!1,!0,null,0))},r.prototype.ddb=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Ddb",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.dec2Bin=function(n,r){return new i(this.context,t(this.context,this,"Dec2Bin",0,[n,r],!1,!0,null,0))},r.prototype.dec2Hex=function(n,r){return new i(this.context,t(this.context,this,"Dec2Hex",0,[n,r],!1,!0,null,0))},r.prototype.dec2Oct=function(n,r){return new i(this.context,t(this.context,this,"Dec2Oct",0,[n,r],!1,!0,null,0))},r.prototype.decimal=function(n,r){return new i(this.context,t(this.context,this,"Decimal",0,[n,r],!1,!0,null,0))},r.prototype.degrees=function(n){return new i(this.context,t(this.context,this,"Degrees",0,[n],!1,!0,null,0))},r.prototype.delta=function(n,r){return new i(this.context,t(this.context,this,"Delta",0,[n,r],!1,!0,null,0))},r.prototype.devSq=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"DevSq",0,[r],!1,!0,null,0))},r.prototype.disc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Disc",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.dollar=function(n,r){return new i(this.context,t(this.context,this,"Dollar",0,[n,r],!1,!0,null,0))},r.prototype.dollarDe=function(n,r){return new i(this.context,t(this.context,this,"DollarDe",0,[n,r],!1,!0,null,0))},r.prototype.dollarFr=function(n,r){return new i(this.context,t(this.context,this,"DollarFr",0,[n,r],!1,!0,null,0))},r.prototype.duration=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Duration",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.ecma_Ceiling=function(n,r){return new i(this.context,t(this.context,this,"ECMA_Ceiling",0,[n,r],!1,!0,null,0))},r.prototype.edate=function(n,r){return new i(this.context,t(this.context,this,"EDate",0,[n,r],!1,!0,null,0))},r.prototype.effect=function(n,r){return new i(this.context,t(this.context,this,"Effect",0,[n,r],!1,!0,null,0))},r.prototype.eoMonth=function(n,r){return new i(this.context,t(this.context,this,"EoMonth",0,[n,r],!1,!0,null,0))},r.prototype.erf=function(n,r){return new i(this.context,t(this.context,this,"Erf",0,[n,r],!1,!0,null,0))},r.prototype.erfC=function(n){return new i(this.context,t(this.context,this,"ErfC",0,[n],!1,!0,null,0))},r.prototype.erfC_Precise=function(n){return new i(this.context,t(this.context,this,"ErfC_Precise",0,[n],!1,!0,null,0))},r.prototype.erf_Precise=function(n){return new i(this.context,t(this.context,this,"Erf_Precise",0,[n],!1,!0,null,0))},r.prototype.error_Type=function(n){return new i(this.context,t(this.context,this,"Error_Type",0,[n],!1,!0,null,0))},r.prototype.even=function(n){return new i(this.context,t(this.context,this,"Even",0,[n],!1,!0,null,0))},r.prototype.exact=function(n,r){return new i(this.context,t(this.context,this,"Exact",0,[n,r],!1,!0,null,0))},r.prototype.exp=function(n){return new i(this.context,t(this.context,this,"Exp",0,[n],!1,!0,null,0))},r.prototype.expon_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"Expon_Dist",0,[n,r,u],!1,!0,null,0))},r.prototype.fvschedule=function(n,r){return new i(this.context,t(this.context,this,"FVSchedule",0,[n,r],!1,!0,null,0))},r.prototype.f_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"F_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.f_Dist_RT=function(n,r,u){return new i(this.context,t(this.context,this,"F_Dist_RT",0,[n,r,u],!1,!0,null,0))},r.prototype.f_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"F_Inv",0,[n,r,u],!1,!0,null,0))},r.prototype.f_Inv_RT=function(n,r,u){return new i(this.context,t(this.context,this,"F_Inv_RT",0,[n,r,u],!1,!0,null,0))},r.prototype.fact=function(n){return new i(this.context,t(this.context,this,"Fact",0,[n],!1,!0,null,0))},r.prototype.factDouble=function(n){return new i(this.context,t(this.context,this,"FactDouble",0,[n],!1,!0,null,0))},r.prototype.false=function(){return new i(this.context,t(this.context,this,"False",0,[],!1,!0,null,0))},r.prototype.find=function(n,r,u){return new i(this.context,t(this.context,this,"Find",0,[n,r,u],!1,!0,null,0))},r.prototype.findB=function(n,r,u){return new i(this.context,t(this.context,this,"FindB",0,[n,r,u],!1,!0,null,0))},r.prototype.fisher=function(n){return new i(this.context,t(this.context,this,"Fisher",0,[n],!1,!0,null,0))},r.prototype.fisherInv=function(n){return new i(this.context,t(this.context,this,"FisherInv",0,[n],!1,!0,null,0))},r.prototype.fixed=function(n,r,u){return new i(this.context,t(this.context,this,"Fixed",0,[n,r,u],!1,!0,null,0))},r.prototype.floor_Math=function(n,r,u){return new i(this.context,t(this.context,this,"Floor_Math",0,[n,r,u],!1,!0,null,0))},r.prototype.floor_Precise=function(n,r){return new i(this.context,t(this.context,this,"Floor_Precise",0,[n,r],!1,!0,null,0))},r.prototype.fv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Fv",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.gamma=function(n){return new i(this.context,t(this.context,this,"Gamma",0,[n],!1,!0,null,0))},r.prototype.gammaLn=function(n){return new i(this.context,t(this.context,this,"GammaLn",0,[n],!1,!0,null,0))},r.prototype.gammaLn_Precise=function(n){return new i(this.context,t(this.context,this,"GammaLn_Precise",0,[n],!1,!0,null,0))},r.prototype.gamma_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Gamma_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.gamma_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Gamma_Inv",0,[n,r,u],!1,!0,null,0))},r.prototype.gauss=function(n){return new i(this.context,t(this.context,this,"Gauss",0,[n],!1,!0,null,0))},r.prototype.gcd=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Gcd",0,[r],!1,!0,null,0))},r.prototype.geStep=function(n,r){return new i(this.context,t(this.context,this,"GeStep",0,[n,r],!1,!0,null,0))},r.prototype.geoMean=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"GeoMean",0,[r],!1,!0,null,0))},r.prototype.hlookup=function(n,r,u,f){return new i(this.context,t(this.context,this,"HLookup",0,[n,r,u,f],!1,!0,null,0))},r.prototype.harMean=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"HarMean",0,[r],!1,!0,null,0))},r.prototype.hex2Bin=function(n,r){return new i(this.context,t(this.context,this,"Hex2Bin",0,[n,r],!1,!0,null,0))},r.prototype.hex2Dec=function(n){return new i(this.context,t(this.context,this,"Hex2Dec",0,[n],!1,!0,null,0))},r.prototype.hex2Oct=function(n,r){return new i(this.context,t(this.context,this,"Hex2Oct",0,[n,r],!1,!0,null,0))},r.prototype.hour=function(n){return new i(this.context,t(this.context,this,"Hour",0,[n],!1,!0,null,0))},r.prototype.hypGeom_Dist=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"HypGeom_Dist",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.hyperlink=function(n,r){return new i(this.context,t(this.context,this,"Hyperlink",0,[n,r],!1,!0,null,0))},r.prototype.iso_Ceiling=function(n,r){return new i(this.context,t(this.context,this,"ISO_Ceiling",0,[n,r],!1,!0,null,0))},r.prototype.if=function(n,r,u){return new i(this.context,t(this.context,this,"If",0,[n,r,u],!1,!0,null,0))},r.prototype.imAbs=function(n){return new i(this.context,t(this.context,this,"ImAbs",0,[n],!1,!0,null,0))},r.prototype.imArgument=function(n){return new i(this.context,t(this.context,this,"ImArgument",0,[n],!1,!0,null,0))},r.prototype.imConjugate=function(n){return new i(this.context,t(this.context,this,"ImConjugate",0,[n],!1,!0,null,0))},r.prototype.imCos=function(n){return new i(this.context,t(this.context,this,"ImCos",0,[n],!1,!0,null,0))},r.prototype.imCosh=function(n){return new i(this.context,t(this.context,this,"ImCosh",0,[n],!1,!0,null,0))},r.prototype.imCot=function(n){return new i(this.context,t(this.context,this,"ImCot",0,[n],!1,!0,null,0))},r.prototype.imCsc=function(n){return new i(this.context,t(this.context,this,"ImCsc",0,[n],!1,!0,null,0))},r.prototype.imCsch=function(n){return new i(this.context,t(this.context,this,"ImCsch",0,[n],!1,!0,null,0))},r.prototype.imDiv=function(n,r){return new i(this.context,t(this.context,this,"ImDiv",0,[n,r],!1,!0,null,0))},r.prototype.imExp=function(n){return new i(this.context,t(this.context,this,"ImExp",0,[n],!1,!0,null,0))},r.prototype.imLn=function(n){return new i(this.context,t(this.context,this,"ImLn",0,[n],!1,!0,null,0))},r.prototype.imLog10=function(n){return new i(this.context,t(this.context,this,"ImLog10",0,[n],!1,!0,null,0))},r.prototype.imLog2=function(n){return new i(this.context,t(this.context,this,"ImLog2",0,[n],!1,!0,null,0))},r.prototype.imPower=function(n,r){return new i(this.context,t(this.context,this,"ImPower",0,[n,r],!1,!0,null,0))},r.prototype.imProduct=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"ImProduct",0,[r],!1,!0,null,0))},r.prototype.imReal=function(n){return new i(this.context,t(this.context,this,"ImReal",0,[n],!1,!0,null,0))},r.prototype.imSec=function(n){return new i(this.context,t(this.context,this,"ImSec",0,[n],!1,!0,null,0))},r.prototype.imSech=function(n){return new i(this.context,t(this.context,this,"ImSech",0,[n],!1,!0,null,0))},r.prototype.imSin=function(n){return new i(this.context,t(this.context,this,"ImSin",0,[n],!1,!0,null,0))},r.prototype.imSinh=function(n){return new i(this.context,t(this.context,this,"ImSinh",0,[n],!1,!0,null,0))},r.prototype.imSqrt=function(n){return new i(this.context,t(this.context,this,"ImSqrt",0,[n],!1,!0,null,0))},r.prototype.imSub=function(n,r){return new i(this.context,t(this.context,this,"ImSub",0,[n,r],!1,!0,null,0))},r.prototype.imSum=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"ImSum",0,[r],!1,!0,null,0))},r.prototype.imTan=function(n){return new i(this.context,t(this.context,this,"ImTan",0,[n],!1,!0,null,0))},r.prototype.imaginary=function(n){return new i(this.context,t(this.context,this,"Imaginary",0,[n],!1,!0,null,0))},r.prototype.int=function(n){return new i(this.context,t(this.context,this,"Int",0,[n],!1,!0,null,0))},r.prototype.intRate=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"IntRate",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.ipmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Ipmt",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.irr=function(n,r){return new i(this.context,t(this.context,this,"Irr",0,[n,r],!1,!0,null,0))},r.prototype.isErr=function(n){return new i(this.context,t(this.context,this,"IsErr",0,[n],!1,!0,null,0))},r.prototype.isError=function(n){return new i(this.context,t(this.context,this,"IsError",0,[n],!1,!0,null,0))},r.prototype.isEven=function(n){return new i(this.context,t(this.context,this,"IsEven",0,[n],!1,!0,null,0))},r.prototype.isFormula=function(n){return new i(this.context,t(this.context,this,"IsFormula",0,[n],!1,!0,null,0))},r.prototype.isLogical=function(n){return new i(this.context,t(this.context,this,"IsLogical",0,[n],!1,!0,null,0))},r.prototype.isNA=function(n){return new i(this.context,t(this.context,this,"IsNA",0,[n],!1,!0,null,0))},r.prototype.isNonText=function(n){return new i(this.context,t(this.context,this,"IsNonText",0,[n],!1,!0,null,0))},r.prototype.isNumber=function(n){return new i(this.context,t(this.context,this,"IsNumber",0,[n],!1,!0,null,0))},r.prototype.isOdd=function(n){return new i(this.context,t(this.context,this,"IsOdd",0,[n],!1,!0,null,0))},r.prototype.isText=function(n){return new i(this.context,t(this.context,this,"IsText",0,[n],!1,!0,null,0))},r.prototype.isoWeekNum=function(n){return new i(this.context,t(this.context,this,"IsoWeekNum",0,[n],!1,!0,null,0))},r.prototype.ispmt=function(n,r,u,f){return new i(this.context,t(this.context,this,"Ispmt",0,[n,r,u,f],!1,!0,null,0))},r.prototype.isref=function(n){return new i(this.context,t(this.context,this,"Isref",0,[n],!1,!0,null,0))},r.prototype.kurt=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Kurt",0,[r],!1,!0,null,0))},r.prototype.large=function(n,r){return new i(this.context,t(this.context,this,"Large",0,[n,r],!1,!0,null,0))},r.prototype.lcm=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Lcm",0,[r],!1,!0,null,0))},r.prototype.left=function(n,r){return new i(this.context,t(this.context,this,"Left",0,[n,r],!1,!0,null,0))},r.prototype.leftb=function(n,r){return new i(this.context,t(this.context,this,"Leftb",0,[n,r],!1,!0,null,0))},r.prototype.len=function(n){return new i(this.context,t(this.context,this,"Len",0,[n],!1,!0,null,0))},r.prototype.lenb=function(n){return new i(this.context,t(this.context,this,"Lenb",0,[n],!1,!0,null,0))},r.prototype.ln=function(n){return new i(this.context,t(this.context,this,"Ln",0,[n],!1,!0,null,0))},r.prototype.log=function(n,r){return new i(this.context,t(this.context,this,"Log",0,[n,r],!1,!0,null,0))},r.prototype.log10=function(n){return new i(this.context,t(this.context,this,"Log10",0,[n],!1,!0,null,0))},r.prototype.logNorm_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"LogNorm_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.logNorm_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"LogNorm_Inv",0,[n,r,u],!1,!0,null,0))},r.prototype.lookup=function(n,r,u){return new i(this.context,t(this.context,this,"Lookup",0,[n,r,u],!1,!0,null,0))},r.prototype.lower=function(n){return new i(this.context,t(this.context,this,"Lower",0,[n],!1,!0,null,0))},r.prototype.mduration=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"MDuration",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.mirr=function(n,r,u){return new i(this.context,t(this.context,this,"MIrr",0,[n,r,u],!1,!0,null,0))},r.prototype.mround=function(n,r){return new i(this.context,t(this.context,this,"MRound",0,[n,r],!1,!0,null,0))},r.prototype.match=function(n,r,u){return new i(this.context,t(this.context,this,"Match",0,[n,r,u],!1,!0,null,0))},r.prototype.max=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Max",0,[r],!1,!0,null,0))},r.prototype.maxA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"MaxA",0,[r],!1,!0,null,0))},r.prototype.median=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Median",0,[r],!1,!0,null,0))},r.prototype.mid=function(n,r,u){return new i(this.context,t(this.context,this,"Mid",0,[n,r,u],!1,!0,null,0))},r.prototype.midb=function(n,r,u){return new i(this.context,t(this.context,this,"Midb",0,[n,r,u],!1,!0,null,0))},r.prototype.min=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Min",0,[r],!1,!0,null,0))},r.prototype.minA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"MinA",0,[r],!1,!0,null,0))},r.prototype.minute=function(n){return new i(this.context,t(this.context,this,"Minute",0,[n],!1,!0,null,0))},r.prototype.mod=function(n,r){return new i(this.context,t(this.context,this,"Mod",0,[n,r],!1,!0,null,0))},r.prototype.month=function(n){return new i(this.context,t(this.context,this,"Month",0,[n],!1,!0,null,0))},r.prototype.multiNomial=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"MultiNomial",0,[r],!1,!0,null,0))},r.prototype.n=function(n){return new i(this.context,t(this.context,this,"N",0,[n],!1,!0,null,0))},r.prototype.nper=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"NPer",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.na=function(){return new i(this.context,t(this.context,this,"Na",0,[],!1,!0,null,0))},r.prototype.negBinom_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"NegBinom_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.networkDays=function(n,r,u){return new i(this.context,t(this.context,this,"NetworkDays",0,[n,r,u],!1,!0,null,0))},r.prototype.networkDays_Intl=function(n,r,u,f){return new i(this.context,t(this.context,this,"NetworkDays_Intl",0,[n,r,u,f],!1,!0,null,0))},r.prototype.nominal=function(n,r){return new i(this.context,t(this.context,this,"Nominal",0,[n,r],!1,!0,null,0))},r.prototype.norm_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Norm_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.norm_Inv=function(n,r,u){return new i(this.context,t(this.context,this,"Norm_Inv",0,[n,r,u],!1,!0,null,0))},r.prototype.norm_S_Dist=function(n,r){return new i(this.context,t(this.context,this,"Norm_S_Dist",0,[n,r],!1,!0,null,0))},r.prototype.norm_S_Inv=function(n){return new i(this.context,t(this.context,this,"Norm_S_Inv",0,[n],!1,!0,null,0))},r.prototype.not=function(n){return new i(this.context,t(this.context,this,"Not",0,[n],!1,!0,null,0))},r.prototype.now=function(){return new i(this.context,t(this.context,this,"Now",0,[],!1,!0,null,0))},r.prototype.npv=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Npv",0,[n,u],!1,!0,null,0))},r.prototype.numberValue=function(n,r,u){return new i(this.context,t(this.context,this,"NumberValue",0,[n,r,u],!1,!0,null,0))},r.prototype.oct2Bin=function(n,r){return new i(this.context,t(this.context,this,"Oct2Bin",0,[n,r],!1,!0,null,0))},r.prototype.oct2Dec=function(n){return new i(this.context,t(this.context,this,"Oct2Dec",0,[n],!1,!0,null,0))},r.prototype.oct2Hex=function(n,r){return new i(this.context,t(this.context,this,"Oct2Hex",0,[n,r],!1,!0,null,0))},r.prototype.odd=function(n){return new i(this.context,t(this.context,this,"Odd",0,[n],!1,!0,null,0))},r.prototype.oddFPrice=function(n,r,u,f,e,o,s,h,c){return new i(this.context,t(this.context,this,"OddFPrice",0,[n,r,u,f,e,o,s,h,c],!1,!0,null,0))},r.prototype.oddFYield=function(n,r,u,f,e,o,s,h,c){return new i(this.context,t(this.context,this,"OddFYield",0,[n,r,u,f,e,o,s,h,c],!1,!0,null,0))},r.prototype.oddLPrice=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"OddLPrice",0,[n,r,u,f,e,o,s,h],!1,!0,null,0))},r.prototype.oddLYield=function(n,r,u,f,e,o,s,h){return new i(this.context,t(this.context,this,"OddLYield",0,[n,r,u,f,e,o,s,h],!1,!0,null,0))},r.prototype.or=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Or",0,[r],!1,!0,null,0))},r.prototype.pduration=function(n,r,u){return new i(this.context,t(this.context,this,"PDuration",0,[n,r,u],!1,!0,null,0))},r.prototype.percentRank_Exc=function(n,r,u){return new i(this.context,t(this.context,this,"PercentRank_Exc",0,[n,r,u],!1,!0,null,0))},r.prototype.percentRank_Inc=function(n,r,u){return new i(this.context,t(this.context,this,"PercentRank_Inc",0,[n,r,u],!1,!0,null,0))},r.prototype.percentile_Exc=function(n,r){return new i(this.context,t(this.context,this,"Percentile_Exc",0,[n,r],!1,!0,null,0))},r.prototype.percentile_Inc=function(n,r){return new i(this.context,t(this.context,this,"Percentile_Inc",0,[n,r],!1,!0,null,0))},r.prototype.permut=function(n,r){return new i(this.context,t(this.context,this,"Permut",0,[n,r],!1,!0,null,0))},r.prototype.permutationa=function(n,r){return new i(this.context,t(this.context,this,"Permutationa",0,[n,r],!1,!0,null,0))},r.prototype.phi=function(n){return new i(this.context,t(this.context,this,"Phi",0,[n],!1,!0,null,0))},r.prototype.pi=function(){return new i(this.context,t(this.context,this,"Pi",0,[],!1,!0,null,0))},r.prototype.pmt=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Pmt",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.poisson_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"Poisson_Dist",0,[n,r,u],!1,!0,null,0))},r.prototype.power=function(n,r){return new i(this.context,t(this.context,this,"Power",0,[n,r],!1,!0,null,0))},r.prototype.ppmt=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Ppmt",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.price=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Price",0,[n,r,u,f,e,o,s],!1,!0,null,0))},r.prototype.priceDisc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"PriceDisc",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.priceMat=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"PriceMat",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.product=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Product",0,[r],!1,!0,null,0))},r.prototype.proper=function(n){return new i(this.context,t(this.context,this,"Proper",0,[n],!1,!0,null,0))},r.prototype.pv=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Pv",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.quartile_Exc=function(n,r){return new i(this.context,t(this.context,this,"Quartile_Exc",0,[n,r],!1,!0,null,0))},r.prototype.quartile_Inc=function(n,r){return new i(this.context,t(this.context,this,"Quartile_Inc",0,[n,r],!1,!0,null,0))},r.prototype.quotient=function(n,r){return new i(this.context,t(this.context,this,"Quotient",0,[n,r],!1,!0,null,0))},r.prototype.radians=function(n){return new i(this.context,t(this.context,this,"Radians",0,[n],!1,!0,null,0))},r.prototype.rand=function(){return new i(this.context,t(this.context,this,"Rand",0,[],!1,!0,null,0))},r.prototype.randBetween=function(n,r){return new i(this.context,t(this.context,this,"RandBetween",0,[n,r],!1,!0,null,0))},r.prototype.rank_Avg=function(n,r,u){return new i(this.context,t(this.context,this,"Rank_Avg",0,[n,r,u],!1,!0,null,0))},r.prototype.rank_Eq=function(n,r,u){return new i(this.context,t(this.context,this,"Rank_Eq",0,[n,r,u],!1,!0,null,0))},r.prototype.rate=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"Rate",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.received=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"Received",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.replace=function(n,r,u,f){return new i(this.context,t(this.context,this,"Replace",0,[n,r,u,f],!1,!0,null,0))},r.prototype.replaceB=function(n,r,u,f){return new i(this.context,t(this.context,this,"ReplaceB",0,[n,r,u,f],!1,!0,null,0))},r.prototype.rept=function(n,r){return new i(this.context,t(this.context,this,"Rept",0,[n,r],!1,!0,null,0))},r.prototype.right=function(n,r){return new i(this.context,t(this.context,this,"Right",0,[n,r],!1,!0,null,0))},r.prototype.rightb=function(n,r){return new i(this.context,t(this.context,this,"Rightb",0,[n,r],!1,!0,null,0))},r.prototype.roman=function(n,r){return new i(this.context,t(this.context,this,"Roman",0,[n,r],!1,!0,null,0))},r.prototype.round=function(n,r){return new i(this.context,t(this.context,this,"Round",0,[n,r],!1,!0,null,0))},r.prototype.roundDown=function(n,r){return new i(this.context,t(this.context,this,"RoundDown",0,[n,r],!1,!0,null,0))},r.prototype.roundUp=function(n,r){return new i(this.context,t(this.context,this,"RoundUp",0,[n,r],!1,!0,null,0))},r.prototype.rows=function(n){return new i(this.context,t(this.context,this,"Rows",0,[n],!1,!0,null,0))},r.prototype.rri=function(n,r,u){return new i(this.context,t(this.context,this,"Rri",0,[n,r,u],!1,!0,null,0))},r.prototype.sec=function(n){return new i(this.context,t(this.context,this,"Sec",0,[n],!1,!0,null,0))},r.prototype.sech=function(n){return new i(this.context,t(this.context,this,"Sech",0,[n],!1,!0,null,0))},r.prototype.second=function(n){return new i(this.context,t(this.context,this,"Second",0,[n],!1,!0,null,0))},r.prototype.seriesSum=function(n,r,u,f){return new i(this.context,t(this.context,this,"SeriesSum",0,[n,r,u,f],!1,!0,null,0))},r.prototype.sheet=function(n){return new i(this.context,t(this.context,this,"Sheet",0,[n],!1,!0,null,0))},r.prototype.sheets=function(n){return new i(this.context,t(this.context,this,"Sheets",0,[n],!1,!0,null,0))},r.prototype.sign=function(n){return new i(this.context,t(this.context,this,"Sign",0,[n],!1,!0,null,0))},r.prototype.sin=function(n){return new i(this.context,t(this.context,this,"Sin",0,[n],!1,!0,null,0))},r.prototype.sinh=function(n){return new i(this.context,t(this.context,this,"Sinh",0,[n],!1,!0,null,0))},r.prototype.skew=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Skew",0,[r],!1,!0,null,0))},r.prototype.skew_p=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Skew_p",0,[r],!1,!0,null,0))},r.prototype.sln=function(n,r,u){return new i(this.context,t(this.context,this,"Sln",0,[n,r,u],!1,!0,null,0))},r.prototype.small=function(n,r){return new i(this.context,t(this.context,this,"Small",0,[n,r],!1,!0,null,0))},r.prototype.sqrt=function(n){return new i(this.context,t(this.context,this,"Sqrt",0,[n],!1,!0,null,0))},r.prototype.sqrtPi=function(n){return new i(this.context,t(this.context,this,"SqrtPi",0,[n],!1,!0,null,0))},r.prototype.stDevA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"StDevA",0,[r],!1,!0,null,0))},r.prototype.stDevPA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"StDevPA",0,[r],!1,!0,null,0))},r.prototype.stDev_P=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"StDev_P",0,[r],!1,!0,null,0))},r.prototype.stDev_S=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"StDev_S",0,[r],!1,!0,null,0))},r.prototype.standardize=function(n,r,u){return new i(this.context,t(this.context,this,"Standardize",0,[n,r,u],!1,!0,null,0))},r.prototype.substitute=function(n,r,u,f){return new i(this.context,t(this.context,this,"Substitute",0,[n,r,u,f],!1,!0,null,0))},r.prototype.subtotal=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"Subtotal",0,[n,u],!1,!0,null,0))},r.prototype.sum=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Sum",0,[r],!1,!0,null,0))},r.prototype.sumIf=function(n,r,u){return new i(this.context,t(this.context,this,"SumIf",0,[n,r,u],!1,!0,null,0))},r.prototype.sumIfs=function(n){for(var u=[],r=1;r<arguments.length;r++)u[r-1]=arguments[r];return new i(this.context,t(this.context,this,"SumIfs",0,[n,u],!1,!0,null,0))},r.prototype.sumSq=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"SumSq",0,[r],!1,!0,null,0))},r.prototype.syd=function(n,r,u,f){return new i(this.context,t(this.context,this,"Syd",0,[n,r,u,f],!1,!0,null,0))},r.prototype.t=function(n){return new i(this.context,t(this.context,this,"T",0,[n],!1,!0,null,0))},r.prototype.tbillEq=function(n,r,u){return new i(this.context,t(this.context,this,"TBillEq",0,[n,r,u],!1,!0,null,0))},r.prototype.tbillPrice=function(n,r,u){return new i(this.context,t(this.context,this,"TBillPrice",0,[n,r,u],!1,!0,null,0))},r.prototype.tbillYield=function(n,r,u){return new i(this.context,t(this.context,this,"TBillYield",0,[n,r,u],!1,!0,null,0))},r.prototype.t_Dist=function(n,r,u){return new i(this.context,t(this.context,this,"T_Dist",0,[n,r,u],!1,!0,null,0))},r.prototype.t_Dist_2T=function(n,r){return new i(this.context,t(this.context,this,"T_Dist_2T",0,[n,r],!1,!0,null,0))},r.prototype.t_Dist_RT=function(n,r){return new i(this.context,t(this.context,this,"T_Dist_RT",0,[n,r],!1,!0,null,0))},r.prototype.t_Inv=function(n,r){return new i(this.context,t(this.context,this,"T_Inv",0,[n,r],!1,!0,null,0))},r.prototype.t_Inv_2T=function(n,r){return new i(this.context,t(this.context,this,"T_Inv_2T",0,[n,r],!1,!0,null,0))},r.prototype.tan=function(n){return new i(this.context,t(this.context,this,"Tan",0,[n],!1,!0,null,0))},r.prototype.tanh=function(n){return new i(this.context,t(this.context,this,"Tanh",0,[n],!1,!0,null,0))},r.prototype.text=function(n,r){return new i(this.context,t(this.context,this,"Text",0,[n,r],!1,!0,null,0))},r.prototype.time=function(n,r,u){return new i(this.context,t(this.context,this,"Time",0,[n,r,u],!1,!0,null,0))},r.prototype.timevalue=function(n){return new i(this.context,t(this.context,this,"Timevalue",0,[n],!1,!0,null,0))},r.prototype.today=function(){return new i(this.context,t(this.context,this,"Today",0,[],!1,!0,null,0))},r.prototype.trim=function(n){return new i(this.context,t(this.context,this,"Trim",0,[n],!1,!0,null,0))},r.prototype.trimMean=function(n,r){return new i(this.context,t(this.context,this,"TrimMean",0,[n,r],!1,!0,null,0))},r.prototype.true=function(){return new i(this.context,t(this.context,this,"True",0,[],!1,!0,null,0))},r.prototype.trunc=function(n,r){return new i(this.context,t(this.context,this,"Trunc",0,[n,r],!1,!0,null,0))},r.prototype.type=function(n){return new i(this.context,t(this.context,this,"Type",0,[n],!1,!0,null,0))},r.prototype.usdollar=function(n,r){return new i(this.context,t(this.context,this,"USDollar",0,[n,r],!1,!0,null,0))},r.prototype.unichar=function(n){return new i(this.context,t(this.context,this,"Unichar",0,[n],!1,!0,null,0))},r.prototype.unicode=function(n){return new i(this.context,t(this.context,this,"Unicode",0,[n],!1,!0,null,0))},r.prototype.upper=function(n){return new i(this.context,t(this.context,this,"Upper",0,[n],!1,!0,null,0))},r.prototype.vlookup=function(n,r,u,f){return new i(this.context,t(this.context,this,"VLookup",0,[n,r,u,f],!1,!0,null,0))},r.prototype.value=function(n){return new i(this.context,t(this.context,this,"Value",0,[n],!1,!0,null,0))},r.prototype.varA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"VarA",0,[r],!1,!0,null,0))},r.prototype.varPA=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"VarPA",0,[r],!1,!0,null,0))},r.prototype.var_P=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Var_P",0,[r],!1,!0,null,0))},r.prototype.var_S=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Var_S",0,[r],!1,!0,null,0))},r.prototype.vdb=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Vdb",0,[n,r,u,f,e,o,s],!1,!0,null,0))},r.prototype.weekNum=function(n,r){return new i(this.context,t(this.context,this,"WeekNum",0,[n,r],!1,!0,null,0))},r.prototype.weekday=function(n,r){return new i(this.context,t(this.context,this,"Weekday",0,[n,r],!1,!0,null,0))},r.prototype.weibull_Dist=function(n,r,u,f){return new i(this.context,t(this.context,this,"Weibull_Dist",0,[n,r,u,f],!1,!0,null,0))},r.prototype.workDay=function(n,r,u){return new i(this.context,t(this.context,this,"WorkDay",0,[n,r,u],!1,!0,null,0))},r.prototype.workDay_Intl=function(n,r,u,f){return new i(this.context,t(this.context,this,"WorkDay_Intl",0,[n,r,u,f],!1,!0,null,0))},r.prototype.xirr=function(n,r,u){return new i(this.context,t(this.context,this,"Xirr",0,[n,r,u],!1,!0,null,0))},r.prototype.xnpv=function(n,r,u){return new i(this.context,t(this.context,this,"Xnpv",0,[n,r,u],!1,!0,null,0))},r.prototype.xor=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new i(this.context,t(this.context,this,"Xor",0,[r],!1,!0,null,0))},r.prototype.year=function(n){return new i(this.context,t(this.context,this,"Year",0,[n],!1,!0,null,0))},r.prototype.yearFrac=function(n,r,u){return new i(this.context,t(this.context,this,"YearFrac",0,[n,r,u],!1,!0,null,0))},r.prototype.yield=function(n,r,u,f,e,o,s){return new i(this.context,t(this.context,this,"Yield",0,[n,r,u,f,e,o,s],!1,!0,null,0))},r.prototype.yieldDisc=function(n,r,u,f,e){return new i(this.context,t(this.context,this,"YieldDisc",0,[n,r,u,f,e],!1,!0,null,0))},r.prototype.yieldMat=function(n,r,u,f,e,o){return new i(this.context,t(this.context,this,"YieldMat",0,[n,r,u,f,e,o],!1,!0,null,0))},r.prototype.z_Test=function(n,r,u){return new i(this.context,t(this.context,this,"Z_Test",0,[n,r,u],!1,!0,null,0))},r.prototype._handleResult=function(t){if(n.prototype._handleResult.call(this,t),!c(t)){var i=t;v(this,i)}},r.prototype._handleRetrieveResult=function(t,i){n.prototype._handleRetrieveResult.call(this,t,i);y(this,t,i)},r.prototype.toJSON=function(){return a(this,{},{})},r}(OfficeExtension.ClientObject);n.Functions=bh,function(n){n.accessDenied="AccessDenied";n.apiNotFound="ApiNotFound";n.conflict="Conflict";n.generalException="GeneralException";n.insertDeleteConflict="InsertDeleteConflict";n.invalidArgument="InvalidArgument";n.invalidBinding="InvalidBinding";n.invalidOperation="InvalidOperation";n.invalidReference="InvalidReference";n.invalidSelection="InvalidSelection";n.itemAlreadyExists="ItemAlreadyExists";n.itemNotFound="ItemNotFound";n.notImplemented="NotImplemented";n.unsupportedOperation="UnsupportedOperation";n.invalidOperationInCellEditMode="InvalidOperationInCellEditMode"}(kh=n.ErrorCodes||(n.ErrorCodes={}))}(Excel||(Excel={}));OfficeExtension.Utility._doApiNotSupportedCheck=!0